diff --git a/assets/index-DYrsZeFG.js b/assets/index-DYrsZeFG.js deleted file mode 100644 index 30c31ca5..00000000 --- a/assets/index-DYrsZeFG.js +++ /dev/null @@ -1,630 +0,0 @@ -var xEe=Object.defineProperty;var LV=e=>{throw TypeError(e)};var kEe=(e,t,n)=>t in e?xEe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var AEe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ls=(e,t,n)=>kEe(e,typeof t!="symbol"?t+"":t,n),Z6=(e,t,n)=>t.has(e)||LV("Cannot "+n);var Ce=(e,t,n)=>(Z6(e,t,"read from private field"),n?n.call(e):t.get(e)),Fn=(e,t,n)=>t.has(e)?LV("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),on=(e,t,n,r)=>(Z6(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),lr=(e,t,n)=>(Z6(e,t,"access private method"),n);var Uk=(e,t,n,r)=>({set _(i){on(e,t,i,n)},get _(){return Ce(e,t,r)}});var NOt=AEe((cSt,D_)=>{(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a30838d5-ab21-4532-a436-3c1c90bba3cd",e._sentryDebugIdIdentifier="sentry-dbid-a30838d5-ab21-4532-a436-3c1c90bba3cd")}catch{}})();function pre(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var _Ee=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};_Ee.SENTRY_RELEASE={id:"ef94119ac2e791f5c0b43bbdbc169622c912711d"};(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 pf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Cu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function gp(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var mre={exports:{}},WC={},gre={exports:{}},Or={};/** - * @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 oT=Symbol.for("react.element"),CEe=Symbol.for("react.portal"),REe=Symbol.for("react.fragment"),IEe=Symbol.for("react.strict_mode"),NEe=Symbol.for("react.profiler"),DEe=Symbol.for("react.provider"),PEe=Symbol.for("react.context"),LEe=Symbol.for("react.forward_ref"),MEe=Symbol.for("react.suspense"),$Ee=Symbol.for("react.memo"),FEe=Symbol.for("react.lazy"),MV=Symbol.iterator;function BEe(e){return e===null||typeof e!="object"?null:(e=MV&&e[MV]||e["@@iterator"],typeof e=="function"?e:null)}var bre={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},yre=Object.assign,vre={};function Vv(e,t,n){this.props=e,this.context=t,this.refs=vre,this.updater=n||bre}Vv.prototype.isReactComponent={};Vv.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")};Vv.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ore(){}Ore.prototype=Vv.prototype;function WM(e,t,n){this.props=e,this.context=t,this.refs=vre,this.updater=n||bre}var VM=WM.prototype=new Ore;VM.constructor=WM;yre(VM,Vv.prototype);VM.isPureReactComponent=!0;var $V=Array.isArray,Sre=Object.prototype.hasOwnProperty,qM={current:null},Ere={key:!0,ref:!0,__self:!0,__source:!0};function wre(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)Sre.call(t,r)&&!Ere.hasOwnProperty(r)&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1>>1,Se=G[Re];if(0>>1;Rei($e,H))aei(Xe,$e)?(G[Re]=Xe,G[ae]=H,Re=ae):(G[Re]=$e,G[ke]=H,Re=ke);else if(aei(Xe,H))G[Re]=Xe,G[ae]=H,Re=ae;else break e}}return ie}function i(G,ie){var H=G.sortIndex-ie.sortIndex;return H!==0?H:G.id-ie.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=[],d=1,f=null,p=3,g=!1,O=!1,S=!1,T=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function k(G){for(var ie=n(u);ie!==null;){if(ie.callback===null)r(u);else if(ie.startTime<=G)r(u),ie.sortIndex=ie.expirationTime,t(l,ie);else break;ie=n(u)}}function _(G){if(S=!1,k(G),!O)if(n(l)!==null)O=!0,ne(R);else{var ie=n(u);ie!==null&&K(_,ie.startTime-G)}}function R(G,ie){O=!1,S&&(S=!1,w(L),L=-1),g=!0;var H=p;try{for(k(ie),f=n(l);f!==null&&(!(f.expirationTime>ie)||G&&!V());){var Re=f.callback;if(typeof Re=="function"){f.callback=null,p=f.priorityLevel;var Se=Re(f.expirationTime<=ie);ie=e.unstable_now(),typeof Se=="function"?f.callback=Se:f===n(l)&&r(l),k(ie)}else r(l);f=n(l)}if(f!==null)var Z=!0;else{var ke=n(u);ke!==null&&K(_,ke.startTime-ie),Z=!1}return Z}finally{f=null,p=H,g=!1}}var N=!1,P=null,L=-1,j=5,B=-1;function V(){return!(e.unstable_now()-BG||125Re?(G.sortIndex=H,t(u,G),n(l)===null&&G===n(u)&&(S?(w(L),L=-1):S=!0,K(_,H-Re))):(G.sortIndex=Se,t(l,G),O||g||(O=!0,ne(R))),G},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(G){var ie=p;return function(){var H=p;p=ie;try{return G.apply(this,arguments)}finally{p=H}}}})(_re);Are.exports=_re;var ZEe=Are.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 XEe=M,xu=ZEe;function Lt(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$7=Object.prototype.hasOwnProperty,KEe=/^[: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]*$/,BV={},UV={};function JEe(e){return $7.call(UV,e)?!0:$7.call(BV,e)?!1:KEe.test(e)?UV[e]=!0:(BV[e]=!0,!1)}function e2e(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 t2e(e,t,n,r){if(t===null||typeof t>"u"||e2e(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 tl(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 qs={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){qs[e]=new tl(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];qs[t]=new tl(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){qs[e]=new tl(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){qs[e]=new tl(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){qs[e]=new tl(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){qs[e]=new tl(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){qs[e]=new tl(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){qs[e]=new tl(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){qs[e]=new tl(e,5,!1,e.toLowerCase(),null,!1,!1)});var YM=/[\-:]([a-z])/g;function ZM(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(YM,ZM);qs[t]=new tl(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(YM,ZM);qs[t]=new tl(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(YM,ZM);qs[t]=new tl(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){qs[e]=new tl(e,1,!1,e.toLowerCase(),null,!1,!1)});qs.xlinkHref=new tl("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){qs[e]=new tl(e,1,!1,e.toLowerCase(),null,!0,!0)});function XM(e,t,n,r){var i=qs.hasOwnProperty(t)?qs[t]:null;(i!==null?i.type!==0:r||!(2o||i[s]!==a[o]){var l=` -`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=o);break}}}finally{J6=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?AE(e):""}function n2e(e){switch(e.tag){case 5:return AE(e.type);case 16:return AE("Lazy");case 13:return AE("Suspense");case 19:return AE("SuspenseList");case 0:case 2:case 15:return e=eN(e.type,!1),e;case 11:return e=eN(e.type.render,!1),e;case 1:return e=eN(e.type,!0),e;default:return""}}function z7(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 ey:return"Fragment";case Jb:return"Portal";case F7:return"Profiler";case KM:return"StrictMode";case B7:return"Suspense";case U7:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ire:return(e.displayName||"Context")+".Consumer";case Rre:return(e._context.displayName||"Context")+".Provider";case JM:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case e9:return t=e.displayName||null,t!==null?t:z7(e.type)||"Memo";case o0:t=e._payload,e=e._init;try{return z7(e(t))}catch{}}return null}function r2e(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 z7(t);case 8:return t===KM?"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 tm(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Dre(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function i2e(e){var t=Dre(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 Hk(e){e._valueTracker||(e._valueTracker=i2e(e))}function Pre(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Dre(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function P_(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 j7(e,t){var n=t.checked;return da({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function jV(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=tm(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 Lre(e,t){t=t.checked,t!=null&&XM(e,"checked",t,!1)}function H7(e,t){Lre(e,t);var n=tm(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")?Q7(e,t.type,n):t.hasOwnProperty("defaultValue")&&Q7(e,t.type,tm(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function HV(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 Q7(e,t,n){(t!=="number"||P_(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var _E=Array.isArray;function wy(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Qk.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function F2(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var GE={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},a2e=["Webkit","ms","Moz","O"];Object.keys(GE).forEach(function(e){a2e.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),GE[t]=GE[e]})});function Bre(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||GE.hasOwnProperty(e)&&GE[e]?(""+t).trim():t+"px"}function Ure(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Bre(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var s2e=da({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 q7(e,t){if(t){if(s2e[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Lt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Lt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Lt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Lt(62))}}function G7(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 Y7=null;function t9(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Z7=null,Ty=null,xy=null;function VV(e){if(e=cT(e)){if(typeof Z7!="function")throw Error(Lt(280));var t=e.stateNode;t&&(t=ZC(t),Z7(e.stateNode,e.type,t))}}function zre(e){Ty?xy?xy.push(e):xy=[e]:Ty=e}function jre(){if(Ty){var e=Ty,t=xy;if(xy=Ty=null,VV(e),t)for(e=0;e>>=0,e===0?32:31-(b2e(e)/y2e|0)|0}var Wk=64,Vk=4194304;function CE(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 F_(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=CE(o):(a&=s,a!==0&&(r=CE(a)))}else s=n&~i,s!==0?r=CE(s):a!==0&&(r=CE(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;0n;n++)t.push(e);return t}function lT(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-yd(t),e[t]=n}function E2e(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=ZE),tq=" ",nq=!1;function lie(e,t){switch(e){case"keyup":return Z2e.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uie(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ty=!1;function K2e(e,t){switch(e){case"compositionend":return uie(t);case"keypress":return t.which!==32?null:(nq=!0,tq);case"textInput":return e=t.data,e===tq&&nq?null:e;default:return null}}function J2e(e,t){if(ty)return e==="compositionend"||!u9&&lie(e,t)?(e=sie(),R4=s9=_0=null,ty=!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)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=sq(n)}}function hie(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?hie(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function pie(){for(var e=window,t=P_();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=P_(e.document)}return t}function c9(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 lwe(e){var t=pie(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&hie(n.ownerDocument.documentElement,n)){if(r!==null&&c9(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=oq(n,a);var s=oq(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=document.documentMode,ny=null,nP=null,KE=null,rP=!1;function lq(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;rP||ny==null||ny!==P_(r)||(r=ny,"selectionStart"in r&&c9(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}),KE&&Q2(KE,r)||(KE=r,r=z_(nP,"onSelect"),0ay||(e.current=uP[ay],uP[ay]=null,ay--)}function _i(e,t){ay++,uP[ay]=e.current,e.current=t}var nm={},vo=gm(nm),kl=gm(!1),d1=nm;function cv(e,t){var n=e.type.contextTypes;if(!n)return nm;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 Al(e){return e=e.childContextTypes,e!=null}function H_(){Fi(kl),Fi(vo)}function mq(e,t,n){if(vo.current!==nm)throw Error(Lt(168));_i(vo,t),_i(kl,n)}function wie(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(Lt(108,r2e(e)||"Unknown",i));return da({},n,r)}function Q_(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||nm,d1=vo.current,_i(vo,e),_i(kl,kl.current),!0}function gq(e,t,n){var r=e.stateNode;if(!r)throw Error(Lt(169));n?(e=wie(e,t,d1),r.__reactInternalMemoizedMergedChildContext=e,Fi(kl),Fi(vo),_i(vo,e)):Fi(kl),_i(kl,n)}var Nh=null,XC=!1,pN=!1;function Tie(e){Nh===null?Nh=[e]:Nh.push(e)}function Owe(e){XC=!0,Tie(e)}function bm(){if(!pN&&Nh!==null){pN=!0;var e=0,t=si;try{var n=Nh;for(si=1;e>=s,i-=s,Fh=1<<32-yd(t)+i|n<L?(j=P,P=null):j=P.sibling;var B=p(w,P,k[L],_);if(B===null){P===null&&(P=j);break}e&&P&&B.alternate===null&&t(w,P),x=a(B,x,L),N===null?R=B:N.sibling=B,N=B,P=j}if(L===k.length)return n(w,P),Ki&&Eg(w,L),R;if(P===null){for(;LL?(j=P,P=null):j=P.sibling;var V=p(w,P,B.value,_);if(V===null){P===null&&(P=j);break}e&&P&&V.alternate===null&&t(w,P),x=a(V,x,L),N===null?R=V:N.sibling=V,N=V,P=j}if(B.done)return n(w,P),Ki&&Eg(w,L),R;if(P===null){for(;!B.done;L++,B=k.next())B=f(w,B.value,_),B!==null&&(x=a(B,x,L),N===null?R=B:N.sibling=B,N=B);return Ki&&Eg(w,L),R}for(P=r(w,P);!B.done;L++,B=k.next())B=g(P,w,L,B.value,_),B!==null&&(e&&B.alternate!==null&&P.delete(B.key===null?L:B.key),x=a(B,x,L),N===null?R=B:N.sibling=B,N=B);return e&&P.forEach(function(W){return t(w,W)}),Ki&&Eg(w,L),R}function T(w,x,k,_){if(typeof k=="object"&&k!==null&&k.type===ey&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case jk:e:{for(var R=k.key,N=x;N!==null;){if(N.key===R){if(R=k.type,R===ey){if(N.tag===7){n(w,N.sibling),x=i(N,k.props.children),x.return=w,w=x;break e}}else if(N.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===o0&&vq(R)===N.type){n(w,N.sibling),x=i(N,k.props),x.ref=WS(w,N,k),x.return=w,w=x;break e}n(w,N);break}else t(w,N);N=N.sibling}k.type===ey?(x=n1(k.props.children,w.mode,_,k.key),x.return=w,w=x):(_=F4(k.type,k.key,k.props,null,w.mode,_),_.ref=WS(w,x,k),_.return=w,w=_)}return s(w);case Jb:e:{for(N=k.key;x!==null;){if(x.key===N)if(x.tag===4&&x.stateNode.containerInfo===k.containerInfo&&x.stateNode.implementation===k.implementation){n(w,x.sibling),x=i(x,k.children||[]),x.return=w,w=x;break e}else{n(w,x);break}else t(w,x);x=x.sibling}x=EN(k,w.mode,_),x.return=w,w=x}return s(w);case o0:return N=k._init,T(w,x,N(k._payload),_)}if(_E(k))return O(w,x,k,_);if(US(k))return S(w,x,k,_);Jk(w,k)}return typeof k=="string"&&k!==""||typeof k=="number"?(k=""+k,x!==null&&x.tag===6?(n(w,x.sibling),x=i(x,k),x.return=w,w=x):(n(w,x),x=SN(k,w.mode,_),x.return=w,w=x),s(w)):n(w,x)}return T}var fv=_ie(!0),Cie=_ie(!1),q_=gm(null),G_=null,ly=null,p9=null;function m9(){p9=ly=G_=null}function g9(e){var t=q_.current;Fi(q_),e._currentValue=t}function fP(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 Ay(e,t){G_=e,p9=ly=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Tl=!0),e.firstContext=null)}function Tc(e){var t=e._currentValue;if(p9!==e)if(e={context:e,memoizedValue:t,next:null},ly===null){if(G_===null)throw Error(Lt(308));ly=e,G_.dependencies={lanes:0,firstContext:e}}else ly=ly.next=e;return t}var Pg=null;function b9(e){Pg===null?Pg=[e]:Pg.push(e)}function Rie(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,b9(t)):(n.next=i.next,i.next=n),t.interleaved=n,tp(e,r)}function tp(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 l0=!1;function y9(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Iie(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 Wh(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function j0(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Fr&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,tp(e,n)}return i=r.interleaved,i===null?(t.next=t,b9(r)):(t.next=i.next,i.next=t),r.interleaved=t,tp(e,n)}function N4(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,r9(e,n)}}function Oq(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 Y_(e,t,n,r){var i=e.updateQueue;l0=!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 d=e.alternate;d!==null&&(d=d.updateQueue,o=d.lastBaseUpdate,o!==s&&(o===null?d.firstBaseUpdate=u:o.next=u,d.lastBaseUpdate=l))}if(a!==null){var f=i.baseState;s=0,d=u=l=null,o=a;do{var p=o.lane,g=o.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:g,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var O=e,S=o;switch(p=t,g=n,S.tag){case 1:if(O=S.payload,typeof O=="function"){f=O.call(g,f,p);break e}f=O;break e;case 3:O.flags=O.flags&-65537|128;case 0:if(O=S.payload,p=typeof O=="function"?O.call(g,f,p):O,p==null)break e;f=da({},f,p);break e;case 2:l0=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[o]:p.push(o))}else g={eventTime:g,lane:p,tag:o.tag,payload:o.payload,callback:o.callback,next:null},d===null?(u=d=g,l=f):d=d.next=g,s|=p;if(o=o.next,o===null){if(o=i.shared.pending,o===null)break;p=o,o=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(d===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=d,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);p1|=s,e.lanes=s,e.memoizedState=f}}function Sq(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=gN.transition;gN.transition={};try{e(!1),t()}finally{si=n,gN.transition=r}}function Gie(){return xc().memoizedState}function Twe(e,t,n){var r=Q0(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Yie(e))Zie(t,n);else if(n=Rie(e,t,n,r),n!==null){var i=Go();vd(n,e,r,i),Xie(n,t,r)}}function xwe(e,t,n){var r=Q0(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Yie(e))Zie(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,xd(o,s)){var l=t.interleaved;l===null?(i.next=i,b9(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Rie(e,t,i,r),n!==null&&(i=Go(),vd(n,e,r,i),Xie(n,t,r))}}function Yie(e){var t=e.alternate;return e===ua||t!==null&&t===ua}function Zie(e,t){JE=X_=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xie(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,r9(e,n)}}var K_={readContext:Tc,useCallback:ao,useContext:ao,useEffect:ao,useImperativeHandle:ao,useInsertionEffect:ao,useLayoutEffect:ao,useMemo:ao,useReducer:ao,useRef:ao,useState:ao,useDebugValue:ao,useDeferredValue:ao,useTransition:ao,useMutableSource:ao,useSyncExternalStore:ao,useId:ao,unstable_isNewReconciler:!1},kwe={readContext:Tc,useCallback:function(e,t){return nf().memoizedState=[e,t===void 0?null:t],e},useContext:Tc,useEffect:wq,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,P4(4194308,4,Hie.bind(null,t,e),n)},useLayoutEffect:function(e,t){return P4(4194308,4,e,t)},useInsertionEffect:function(e,t){return P4(4,2,e,t)},useMemo:function(e,t){var n=nf();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=nf();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=Twe.bind(null,ua,e),[r.memoizedState,e]},useRef:function(e){var t=nf();return e={current:e},t.memoizedState=e},useState:Eq,useDebugValue:k9,useDeferredValue:function(e){return nf().memoizedState=e},useTransition:function(){var e=Eq(!1),t=e[0];return e=wwe.bind(null,e[1]),nf().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ua,i=nf();if(Ki){if(n===void 0)throw Error(Lt(407));n=n()}else{if(n=t(),ws===null)throw Error(Lt(349));h1&30||Lie(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,wq($ie.bind(null,r,a,e),[e]),r.flags|=2048,K2(9,Mie.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=nf(),t=ws.identifierPrefix;if(Ki){var n=Bh,r=Fh;n=(r&~(1<<32-yd(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Z2++,0<\/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[mf]=t,e[q2]=r,oae(e,t,!1,!1),t.stateNode=e;e:{switch(s=G7(n,r),n){case"dialog":Pi("cancel",e),Pi("close",e),i=r;break;case"iframe":case"object":case"embed":Pi("load",e),i=r;break;case"video":case"audio":for(i=0;imv&&(t.flags|=128,r=!0,VS(a,!1),t.lanes=4194304)}else{if(!r)if(e=Z_(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),VS(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!Ki)return so(t),null}else 2*Da()-a.renderingStartTime>mv&&n!==1073741824&&(t.flags|=128,r=!0,VS(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=Da(),t.sibling=null,n=oa.current,_i(oa,r?n&1|2:n&1),t):(so(t),null);case 22:case 23:return N9(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ru&1073741824&&(so(t),t.subtreeFlags&6&&(t.flags|=8192)):so(t),null;case 24:return null;case 25:return null}throw Error(Lt(156,t.tag))}function Pwe(e,t){switch(f9(t),t.tag){case 1:return Al(t.type)&&H_(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return hv(),Fi(kl),Fi(vo),S9(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return O9(t),null;case 13:if(Fi(oa),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Lt(340));dv()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Fi(oa),null;case 4:return hv(),null;case 10:return g9(t.type._context),null;case 22:case 23:return N9(),null;case 24:return null;default:return null}}var tA=!1,fo=!1,Lwe=typeof WeakSet=="function"?WeakSet:Set,cn=null;function uy(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){wa(e,t,r)}else n.current=null}function SP(e,t,n){try{n()}catch(r){wa(e,t,r)}}var Pq=!1;function Mwe(e,t){if(iP=B_,e=pie(),c9(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,d=0,f=e,p=null;t:for(;;){for(var g;f!==n||i!==0&&f.nodeType!==3||(o=s+i),f!==a||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(g=f.firstChild)!==null;)p=f,f=g;for(;;){if(f===e)break t;if(p===n&&++u===i&&(o=s),p===a&&++d===r&&(l=s),(g=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=g}n=o===-1||l===-1?null:{start:o,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(aP={focusedElem:e,selectionRange:n},B_=!1,cn=t;cn!==null;)if(t=cn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,cn=e;else for(;cn!==null;){t=cn;try{var O=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(O!==null){var S=O.memoizedProps,T=O.memoizedState,w=t.stateNode,x=w.getSnapshotBeforeUpdate(t.elementType===t.type?S:sd(t.type,S),T);w.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var k=t.stateNode.containerInfo;k.nodeType===1?k.textContent="":k.nodeType===9&&k.documentElement&&k.removeChild(k.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Lt(163))}}catch(_){wa(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,cn=e;break}cn=t.return}return O=Pq,Pq=!1,O}function e2(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&&SP(t,n,a)}i=i.next}while(i!==r)}}function e5(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 EP(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 cae(e){var t=e.alternate;t!==null&&(e.alternate=null,cae(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[mf],delete t[q2],delete t[lP],delete t[ywe],delete t[vwe])),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 dae(e){return e.tag===5||e.tag===3||e.tag===4}function Lq(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||dae(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 wP(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=j_));else if(r!==4&&(e=e.child,e!==null))for(wP(e,t,n),e=e.sibling;e!==null;)wP(e,t,n),e=e.sibling}function TP(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(TP(e,t,n),e=e.sibling;e!==null;)TP(e,t,n),e=e.sibling}var $s=null,ld=!1;function Zp(e,t,n){for(n=n.child;n!==null;)fae(e,t,n),n=n.sibling}function fae(e,t,n){if(kf&&typeof kf.onCommitFiberUnmount=="function")try{kf.onCommitFiberUnmount(VC,n)}catch{}switch(n.tag){case 5:fo||uy(n,t);case 6:var r=$s,i=ld;$s=null,Zp(e,t,n),$s=r,ld=i,$s!==null&&(ld?(e=$s,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):$s.removeChild(n.stateNode));break;case 18:$s!==null&&(ld?(e=$s,n=n.stateNode,e.nodeType===8?hN(e.parentNode,n):e.nodeType===1&&hN(e,n),j2(e)):hN($s,n.stateNode));break;case 4:r=$s,i=ld,$s=n.stateNode.containerInfo,ld=!0,Zp(e,t,n),$s=r,ld=i;break;case 0:case 11:case 14:case 15:if(!fo&&(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)&&SP(n,t,s),i=i.next}while(i!==r)}Zp(e,t,n);break;case 1:if(!fo&&(uy(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){wa(n,t,o)}Zp(e,t,n);break;case 21:Zp(e,t,n);break;case 22:n.mode&1?(fo=(r=fo)||n.memoizedState!==null,Zp(e,t,n),fo=r):Zp(e,t,n);break;default:Zp(e,t,n)}}function Mq(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Lwe),t.forEach(function(r){var i=Wwe.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function ad(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~a}if(r=i,r=Da()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Fwe(r/1960))-r,10e?16:e,C0===null)var r=!1;else{if(e=C0,C0=null,t3=0,Fr&6)throw Error(Lt(331));var i=Fr;for(Fr|=4,cn=e.current;cn!==null;){var a=cn,s=a.child;if(cn.flags&16){var o=a.deletions;if(o!==null){for(var l=0;lDa()-R9?t1(e,0):C9|=n),_l(e,t)}function Oae(e,t){t===0&&(e.mode&1?(t=Vk,Vk<<=1,!(Vk&130023424)&&(Vk=4194304)):t=1);var n=Go();e=tp(e,t),e!==null&&(lT(e,t,n),_l(e,n))}function Qwe(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Oae(e,n)}function Wwe(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(Lt(314))}r!==null&&r.delete(t),Oae(e,n)}var Sae;Sae=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||kl.current)Tl=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Tl=!1,Nwe(e,t,n);Tl=!!(e.flags&131072)}else Tl=!1,Ki&&t.flags&1048576&&xie(t,V_,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;L4(e,t),e=t.pendingProps;var i=cv(t,vo.current);Ay(t,n),i=w9(null,t,r,e,i,n);var a=T9();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,Al(r)?(a=!0,Q_(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,y9(t),i.updater=JC,t.stateNode=i,i._reactInternals=t,pP(t,r,e,n),t=bP(null,t,r,!0,a,n)):(t.tag=0,Ki&&a&&d9(t),zo(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(L4(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=qwe(r),e=sd(r,e),i){case 0:t=gP(null,t,r,e,n);break e;case 1:t=Iq(null,t,r,e,n);break e;case 11:t=Cq(null,t,r,e,n);break e;case 14:t=Rq(null,t,r,sd(r.type,e),n);break e}throw Error(Lt(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:sd(r,i),gP(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:sd(r,i),Iq(e,t,r,i,n);case 3:e:{if(iae(t),e===null)throw Error(Lt(387));r=t.pendingProps,a=t.memoizedState,i=a.element,Iie(e,t),Y_(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=pv(Error(Lt(423)),t),t=Nq(e,t,r,n,i);break e}else if(r!==i){i=pv(Error(Lt(424)),t),t=Nq(e,t,r,n,i);break e}else for(bu=z0(t.stateNode.containerInfo.firstChild),Eu=t,Ki=!0,fd=null,n=Cie(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(dv(),r===i){t=np(e,t,n);break e}zo(e,t,r,n)}t=t.child}return t;case 5:return Nie(t),e===null&&dP(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,s=i.children,sP(r,i)?s=null:a!==null&&sP(r,a)&&(t.flags|=32),rae(e,t),zo(e,t,s,n),t.child;case 6:return e===null&&dP(t),null;case 13:return aae(e,t,n);case 4:return v9(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=fv(t,null,r,n):zo(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:sd(r,i),Cq(e,t,r,i,n);case 7:return zo(e,t,t.pendingProps,n),t.child;case 8:return zo(e,t,t.pendingProps.children,n),t.child;case 12:return zo(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,_i(q_,r._currentValue),r._currentValue=s,a!==null)if(xd(a.value,s)){if(a.children===i.children&&!kl.current){t=np(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=Wh(-1,n&-n),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),fP(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(Lt(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),fP(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}zo(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ay(t,n),i=Tc(i),r=r(i),t.flags|=1,zo(e,t,r,n),t.child;case 14:return r=t.type,i=sd(r,t.pendingProps),i=sd(r.type,i),Rq(e,t,r,i,n);case 15:return tae(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:sd(r,i),L4(e,t),t.tag=1,Al(r)?(e=!0,Q_(t)):e=!1,Ay(t,n),Kie(t,r,i),pP(t,r,i,n),bP(null,t,r,!0,e,n);case 19:return sae(e,t,n);case 22:return nae(e,t,n)}throw Error(Lt(156,t.tag))};function Eae(e,t){return Yre(e,t)}function Vwe(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 dc(e,t,n,r){return new Vwe(e,t,n,r)}function P9(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qwe(e){if(typeof e=="function")return P9(e)?1:0;if(e!=null){if(e=e.$$typeof,e===JM)return 11;if(e===e9)return 14}return 2}function W0(e,t){var n=e.alternate;return n===null?(n=dc(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 F4(e,t,n,r,i,a){var s=2;if(r=e,typeof e=="function")P9(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case ey:return n1(n.children,i,a,t);case KM:s=8,i|=8;break;case F7:return e=dc(12,n,t,i|2),e.elementType=F7,e.lanes=a,e;case B7:return e=dc(13,n,t,i),e.elementType=B7,e.lanes=a,e;case U7:return e=dc(19,n,t,i),e.elementType=U7,e.lanes=a,e;case Nre:return n5(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Rre:s=10;break e;case Ire:s=9;break e;case JM:s=11;break e;case e9:s=14;break e;case o0:s=16,r=null;break e}throw Error(Lt(130,e==null?e:typeof e,""))}return t=dc(s,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function n1(e,t,n,r){return e=dc(7,e,r,t),e.lanes=n,e}function n5(e,t,n,r){return e=dc(22,e,r,t),e.elementType=Nre,e.lanes=n,e.stateNode={isHidden:!1},e}function SN(e,t,n){return e=dc(6,e,null,t),e.lanes=n,e}function EN(e,t,n){return t=dc(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Gwe(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=nN(0),this.expirationTimes=nN(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nN(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function L9(e,t,n,r,i,a,s,o,l){return e=new Gwe(e,t,n,o,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=dc(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},y9(a),e}function Ywe(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(kae)}catch(e){console.error(e)}}kae(),kre.exports=Ru;var Yv=kre.exports;const IE=Cu(Yv),eTe=pre({__proto__:null,default:IE},[Yv]);var Qq=Yv;M7.createRoot=Qq.createRoot,M7.hydrateRoot=Qq.hydrateRoot;const ew={black:"#000",white:"#fff"},Tb={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},xb={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},kb={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Ab={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},_b={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},GS={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},tTe={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function rp(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n0?Bs(Zv,--Dl):0,bv--,Ha===10&&(bv=1,l5--),Ha}function wu(){return Ha=Dl2||nw(Ha)>3?"":" "}function vTe(e,t){for(;--t&&wu()&&!(Ha<48||Ha>102||Ha>57&&Ha<65||Ha>70&&Ha<97););return fT(e,B4()+(t<6&&_f()==32&&wu()==32))}function RP(e){for(;wu();)switch(Ha){case e:return Dl;case 34:case 39:e!==34&&e!==39&&RP(Ha);break;case 40:e===41&&RP(e);break;case 92:wu();break}return Dl}function OTe(e,t){for(;wu()&&e+Ha!==57;)if(e+Ha===84&&_f()===47)break;return"/*"+fT(t,Dl-1)+"*"+o5(e===47?e:wu())}function STe(e){for(;!nw(_f());)wu();return fT(e,Dl)}function ETe(e){return Dae(z4("",null,null,null,[""],e=Nae(e),0,[0],e))}function z4(e,t,n,r,i,a,s,o,l){for(var u=0,d=0,f=s,p=0,g=0,O=0,S=1,T=1,w=1,x=0,k="",_=i,R=a,N=r,P=k;T;)switch(O=x,x=wu()){case 40:if(O!=108&&Bs(P,f-1)==58){CP(P+=qr(U4(x),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:P+=U4(x);break;case 9:case 10:case 13:case 32:P+=yTe(O);break;case 92:P+=vTe(B4()-1,7);continue;case 47:switch(_f()){case 42:case 47:iA(wTe(OTe(wu(),B4()),t,n),l);break;default:P+="/"}break;case 123*S:o[u++]=df(P)*w;case 125*S:case 59:case 0:switch(x){case 0:case 125:T=0;case 59+d:w==-1&&(P=qr(P,/\f/g,"")),g>0&&df(P)-f&&iA(g>32?Vq(P+";",r,n,f-1):Vq(qr(P," ","")+";",r,n,f-2),l);break;case 59:P+=";";default:if(iA(N=Wq(P,t,n,u,d,i,o,k,_=[],R=[],f),a),x===123)if(d===0)z4(P,t,N,N,_,a,f,o,R);else switch(p===99&&Bs(P,3)===110?100:p){case 100:case 108:case 109:case 115:z4(e,N,N,r&&iA(Wq(e,N,N,0,0,i,o,k,i,_=[],f),R),i,R,f,o,r?_:R);break;default:z4(P,N,N,N,[""],R,0,o,R)}}u=d=g=0,S=w=1,k=P="",f=s;break;case 58:f=1+df(P),g=O;default:if(S<1){if(x==123)--S;else if(x==125&&S++==0&&bTe()==125)continue}switch(P+=o5(x),x*S){case 38:w=d>0?1:(P+="\f",-1);break;case 44:o[u++]=(df(P)-1)*w,w=1;break;case 64:_f()===45&&(P+=U4(wu())),p=_f(),d=f=df(k=P+=STe(B4())),x++;break;case 45:O===45&&df(P)==2&&(S=0)}}return a}function Wq(e,t,n,r,i,a,s,o,l,u,d){for(var f=i-1,p=i===0?a:[""],g=z9(p),O=0,S=0,T=0;O0?p[w]+" "+x:qr(x,/&\f/g,p[w])))&&(l[T++]=k);return u5(e,t,n,i===0?B9:o,l,u,d)}function wTe(e,t,n){return u5(e,t,n,_ae,o5(gTe()),tw(e,2,-2),0)}function Vq(e,t,n,r){return u5(e,t,n,U9,tw(e,0,r),tw(e,r+1,-1),r)}function Cy(e,t){for(var n="",r=z9(e),i=0;i6)switch(Bs(e,t+1)){case 109:if(Bs(e,t+4)!==45)break;case 102:return qr(e,/(.+:)(.+)-([^]+)/,"$1"+Vr+"$2-$3$1"+i3+(Bs(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~CP(e,"stretch")?Pae(qr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Bs(e,t+1)!==115)break;case 6444:switch(Bs(e,df(e)-3-(~CP(e,"!important")&&10))){case 107:return qr(e,":",":"+Vr)+e;case 101:return qr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Vr+(Bs(e,14)===45?"inline-":"")+"box$3$1"+Vr+"$2$3$1"+lo+"$2box$3")+e}break;case 5936:switch(Bs(e,t+11)){case 114:return Vr+e+lo+qr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Vr+e+lo+qr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Vr+e+lo+qr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Vr+e+lo+e+e}return e}var NTe=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case U9:t.return=Pae(t.value,t.length);break;case Cae:return Cy([YS(t,{value:qr(t.value,"@","@"+Vr)})],i);case B9:if(t.length)return mTe(t.props,function(a){switch(pTe(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Cy([YS(t,{props:[qr(a,/:(read-\w+)/,":"+i3+"$1")]})],i);case"::placeholder":return Cy([YS(t,{props:[qr(a,/:(plac\w+)/,":"+Vr+"input-$1")]}),YS(t,{props:[qr(a,/:(plac\w+)/,":"+i3+"$1")]}),YS(t,{props:[qr(a,/:(plac\w+)/,lo+"input-$1")]})],i)}return""})}},DTe=[NTe],Lae=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var T=S.getAttribute("data-emotion");T.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var i=t.stylisPlugins||DTe,a={},s,o=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var T=S.getAttribute("data-emotion").split(" "),w=1;w=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var WTe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},VTe=!1,qTe=/[A-Z]|^ms/g,GTe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,jae=function(t){return t.charCodeAt(1)===45},Gq=function(t){return t!=null&&typeof t!="boolean"},wN=Aae(function(e){return jae(e)?e:e.replace(qTe,"-$&").toLowerCase()}),Yq=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(GTe,function(r,i,a){return ff={name:i,styles:a,next:ff},i})}return WTe[t]!==1&&!jae(t)&&typeof n=="number"&&n!==0?n+"px":n},YTe="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function rw(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return ff={name:i.name,styles:i.styles,next:ff},i.name;var a=n;if(a.styles!==void 0){var s=a.next;if(s!==void 0)for(;s!==void 0;)ff={name:s.name,styles:s.styles,next:ff},s=s.next;var o=a.styles+";";return o}return ZTe(e,t,n)}case"function":{if(e!==void 0){var l=ff,u=n(e);return ff=l,rw(e,t,u)}break}}var d=n;if(t==null)return d;var f=t[d];return f!==void 0?f:d}function ZTe(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?nxe:rxe},eG=function(t,n,r){var i;if(n){var a=n.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(s){return t.__emotion_forwardProp(s)&&a(s)}:a}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},ixe=!1,axe=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Uae(n,r,i),KTe(function(){return zae(n,r,i)}),null},sxe=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,s;n!==void 0&&(a=n.label,s=n.target);var o=eG(t,n,r),l=o||Jq(i),u=!l("as");return function(){var d=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{f.push(d[0][0]);for(var p=d.length,g=1;gt(pxe(i)?n:i):t;return I.jsx(txe,{styles:r})}function V9(e,t){return IP(e,t)}const Xae=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},mxe=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Zae,StyledEngineProvider:hxe,ThemeContext:hT,css:O5,default:V9,internal_processStyles:Xae,keyframes:Xv},Symbol.toStringTag,{value:"Module"}));function $h(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 Kae(e){if(!$h(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Kae(e[n])}),t}function Yo(e,t,n={clone:!0}){const r=n.clone?Q({},e):e;return $h(e)&&$h(t)&&Object.keys(t).forEach(i=>{$h(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&$h(e[i])?r[i]=Yo(e[i],t[i],n):n.clone?r[i]=$h(t[i])?Kae(t[i]):t[i]:r[i]=t[i]}),r}const gxe=Object.freeze(Object.defineProperty({__proto__:null,default:Yo,isPlainObject:$h},Symbol.toStringTag,{value:"Module"})),bxe=["values","unit","step"],yxe=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>Q({},n,{[r.key]:r.val}),{})};function Jae(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=Tt(e,bxe),a=yxe(t),s=Object.keys(a);function o(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function u(p,g){const O=s.indexOf(g);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(O!==-1&&typeof t[s[O]]=="number"?t[s[O]]:g)-r/100}${n})`}function d(p){return s.indexOf(p)+1`@media (min-width:${q9[e]}px)`};function Pl(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||tG;return t.reduce((s,o,l)=>(s[a.up(a.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const a=r.breakpoints||tG;return Object.keys(t).reduce((s,o)=>{if(Object.keys(a.values||q9).indexOf(o)!==-1){const l=a.up(o);s[l]=n(t[o],o)}else{const l=o;s[l]=t[l]}return s},{})}return n(t)}function ese(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const a=e.up(i);return r[a]={},r},{}))||{}}function tse(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function Oxe(e,...t){const n=ese(e),r=[n,...t].reduce((i,a)=>Yo(i,a),{});return tse(Object.keys(n),r)}function Sxe(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((i,a)=>{a{e[i]!=null&&(n[i]=!0)}),n}function r1({values:e,breakpoints:t,base:n}){const r=n||Sxe(e,t),i=Object.keys(r);if(i.length===0)return e;let a;return i.reduce((s,o,l)=>(Array.isArray(e)?(s[o]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(s[o]=e[o]!=null?e[o]:e[a],a=o):s[o]=e,s),{})}function st(e){if(typeof e!="string")throw new Error(rp(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Exe=Object.freeze(Object.defineProperty({__proto__:null,default:st},Symbol.toStringTag,{value:"Module"}));function S5(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function a3(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=S5(e,n)||r,t&&(i=t(i,r,e)),i}function $a(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=s=>{if(s[t]==null)return null;const o=s[t],l=s.theme,u=S5(l,r)||{};return Pl(s,o,f=>{let p=a3(u,i,f);return f===p&&typeof f=="string"&&(p=a3(u,i,`${t}${f==="default"?"":st(f)}`,f)),n===!1?p:{[n]:p}})};return a.propTypes={},a.filterProps=[t],a}function wxe(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Txe={m:"margin",p:"padding"},xxe={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},nG={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},kxe=wxe(e=>{if(e.length>2)if(nG[e])e=nG[e];else return[e];const[t,n]=e.split(""),r=Txe[t],i=xxe[n]||"";return Array.isArray(i)?i.map(a=>r+a):[r+i]}),G9=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Y9=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...G9,...Y9];function pT(e,t,n,r){var i;const a=(i=S5(e,t,!1))!=null?i:n;return typeof a=="number"?s=>typeof s=="string"?s:a*s:Array.isArray(a)?s=>typeof s=="string"?s:a[s]:typeof a=="function"?a:()=>{}}function Z9(e){return pT(e,"spacing",8)}function g1(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function Axe(e,t){return n=>e.reduce((r,i)=>(r[i]=g1(t,n),r),{})}function _xe(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=kxe(n),a=Axe(i,r),s=e[n];return Pl(e,s,a)}function nse(e,t){const n=Z9(e.theme);return Object.keys(e).map(r=>_xe(e,t,r,n)).reduce(r2,{})}function va(e){return nse(e,G9)}va.propTypes={};va.filterProps=G9;function Oa(e){return nse(e,Y9)}Oa.propTypes={};Oa.filterProps=Y9;function Cxe(e=8){if(e.mui)return e;const t=Z9({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(a=>{const s=t(a);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function E5(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(a=>{r[a]=i}),r),{}),n=r=>Object.keys(r).reduce((i,a)=>t[a]?r2(i,t[a](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function sc(e){return typeof e!="number"?e:`${e}px solid`}function Nc(e,t){return $a({prop:e,themeKey:"borders",transform:t})}const Rxe=Nc("border",sc),Ixe=Nc("borderTop",sc),Nxe=Nc("borderRight",sc),Dxe=Nc("borderBottom",sc),Pxe=Nc("borderLeft",sc),Lxe=Nc("borderColor"),Mxe=Nc("borderTopColor"),$xe=Nc("borderRightColor"),Fxe=Nc("borderBottomColor"),Bxe=Nc("borderLeftColor"),Uxe=Nc("outline",sc),zxe=Nc("outlineColor"),w5=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=pT(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:g1(t,r)});return Pl(e,e.borderRadius,n)}return null};w5.propTypes={};w5.filterProps=["borderRadius"];E5(Rxe,Ixe,Nxe,Dxe,Pxe,Lxe,Mxe,$xe,Fxe,Bxe,w5,Uxe,zxe);const T5=e=>{if(e.gap!==void 0&&e.gap!==null){const t=pT(e.theme,"spacing",8),n=r=>({gap:g1(t,r)});return Pl(e,e.gap,n)}return null};T5.propTypes={};T5.filterProps=["gap"];const x5=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=pT(e.theme,"spacing",8),n=r=>({columnGap:g1(t,r)});return Pl(e,e.columnGap,n)}return null};x5.propTypes={};x5.filterProps=["columnGap"];const k5=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=pT(e.theme,"spacing",8),n=r=>({rowGap:g1(t,r)});return Pl(e,e.rowGap,n)}return null};k5.propTypes={};k5.filterProps=["rowGap"];const jxe=$a({prop:"gridColumn"}),Hxe=$a({prop:"gridRow"}),Qxe=$a({prop:"gridAutoFlow"}),Wxe=$a({prop:"gridAutoColumns"}),Vxe=$a({prop:"gridAutoRows"}),qxe=$a({prop:"gridTemplateColumns"}),Gxe=$a({prop:"gridTemplateRows"}),Yxe=$a({prop:"gridTemplateAreas"}),Zxe=$a({prop:"gridArea"});E5(T5,x5,k5,jxe,Hxe,Qxe,Wxe,Vxe,qxe,Gxe,Yxe,Zxe);function Ry(e,t){return t==="grey"?t:e}const Xxe=$a({prop:"color",themeKey:"palette",transform:Ry}),Kxe=$a({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ry}),Jxe=$a({prop:"backgroundColor",themeKey:"palette",transform:Ry});E5(Xxe,Kxe,Jxe);function hu(e){return e<=1&&e!==0?`${e*100}%`:e}const eke=$a({prop:"width",transform:hu}),X9=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const a=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||q9[n];return a?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:hu(n)}};return Pl(e,e.maxWidth,t)}return null};X9.filterProps=["maxWidth"];const tke=$a({prop:"minWidth",transform:hu}),nke=$a({prop:"height",transform:hu}),rke=$a({prop:"maxHeight",transform:hu}),ike=$a({prop:"minHeight",transform:hu});$a({prop:"size",cssProperty:"width",transform:hu});$a({prop:"size",cssProperty:"height",transform:hu});const ake=$a({prop:"boxSizing"});E5(eke,X9,tke,nke,rke,ike,ake);const mT={border:{themeKey:"borders",transform:sc},borderTop:{themeKey:"borders",transform:sc},borderRight:{themeKey:"borders",transform:sc},borderBottom:{themeKey:"borders",transform:sc},borderLeft:{themeKey:"borders",transform:sc},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:sc},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:w5},color:{themeKey:"palette",transform:Ry},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ry},backgroundColor:{themeKey:"palette",transform:Ry},p:{style:Oa},pt:{style:Oa},pr:{style:Oa},pb:{style:Oa},pl:{style:Oa},px:{style:Oa},py:{style:Oa},padding:{style:Oa},paddingTop:{style:Oa},paddingRight:{style:Oa},paddingBottom:{style:Oa},paddingLeft:{style:Oa},paddingX:{style:Oa},paddingY:{style:Oa},paddingInline:{style:Oa},paddingInlineStart:{style:Oa},paddingInlineEnd:{style:Oa},paddingBlock:{style:Oa},paddingBlockStart:{style:Oa},paddingBlockEnd:{style:Oa},m:{style:va},mt:{style:va},mr:{style:va},mb:{style:va},ml:{style:va},mx:{style:va},my:{style:va},margin:{style:va},marginTop:{style:va},marginRight:{style:va},marginBottom:{style:va},marginLeft:{style:va},marginX:{style:va},marginY:{style:va},marginInline:{style:va},marginInlineStart:{style:va},marginInlineEnd:{style:va},marginBlock:{style:va},marginBlockStart:{style:va},marginBlockEnd:{style:va},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:T5},rowGap:{style:k5},columnGap:{style:x5},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:hu},maxWidth:{style:X9},minWidth:{transform:hu},height:{transform:hu},maxHeight:{transform:hu},minHeight:{transform:hu},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function ske(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function oke(e,t){return typeof e=="function"?e(t):e}function rse(){function e(n,r,i,a){const s={[n]:r,theme:i},o=a[n];if(!o)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:d,style:f}=o;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=S5(i,u)||{};return f?f(s):Pl(s,r,O=>{let S=a3(p,d,O);return O===S&&typeof O=="string"&&(S=a3(p,d,`${n}${O==="default"?"":st(O)}`,O)),l===!1?S:{[l]:S}})}function t(n){var r;const{sx:i,theme:a={}}=n||{};if(!i)return null;const s=(r=a.unstable_sxConfig)!=null?r:mT;function o(l){let u=l;if(typeof l=="function")u=l(a);else if(typeof l!="object")return l;if(!u)return null;const d=ese(a.breakpoints),f=Object.keys(d);let p=d;return Object.keys(u).forEach(g=>{const O=oke(u[g],a);if(O!=null)if(typeof O=="object")if(s[g])p=r2(p,e(g,O,a,s));else{const S=Pl({theme:a},O,T=>({[g]:T}));ske(S,O)?p[g]=t({sx:O,theme:a}):p=r2(p,S)}else p=r2(p,e(g,O,a,s))}),tse(f,p)}return Array.isArray(i)?i.map(o):o(i)}return t}const Kv=rse();Kv.filterProps=["sx"];function ise(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const lke=["breakpoints","palette","spacing","shape"];function Jv(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:a={}}=e,s=Tt(e,lke),o=Jae(n),l=Cxe(i);let u=Yo({breakpoints:o,direction:"ltr",components:{},palette:Q({mode:"light"},r),spacing:l,shape:Q({},vxe,a)},s);return u.applyStyles=ise,u=t.reduce((d,f)=>Yo(d,f),u),u.unstable_sxConfig=Q({},mT,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(f){return Kv({sx:f,theme:this})},u}const uke=Object.freeze(Object.defineProperty({__proto__:null,default:Jv,private_createBreakpoints:Jae,unstable_applyStyles:ise},Symbol.toStringTag,{value:"Module"}));function cke(e){return Object.keys(e).length===0}function K9(e=null){const t=M.useContext(hT);return!t||cke(t)?e:t}const dke=Jv();function A5(e=dke){return K9(e)}function fke({styles:e,themeId:t,defaultTheme:n={}}){const r=A5(n),i=typeof e=="function"?e(t&&r[t]||r):e;return I.jsx(Zae,{styles:i})}const hke=["sx"],pke=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:mT;return Object.keys(e).forEach(a=>{i[a]?r.systemProps[a]=e[a]:r.otherProps[a]=e[a]}),r};function gT(e){const{sx:t}=e,n=Tt(e,hke),{systemProps:r,otherProps:i}=pke(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...s)=>{const o=t(...s);return $h(o)?Q({},r,o):r}:a=Q({},r,t),Q({},i,{sx:a})}const mke=Object.freeze(Object.defineProperty({__proto__:null,default:Kv,extendSxProp:gT,unstable_createStyleFunctionSx:rse,unstable_defaultSxConfig:mT},Symbol.toStringTag,{value:"Module"})),rG=e=>e,gke=()=>{let e=rG;return{configure(t){e=t},generate(t){return e(t)},reset(){e=rG}}},J9=gke();function ase(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;to!=="theme"&&o!=="sx"&&o!=="as"})(Kv);return M.forwardRef(function(l,u){const d=A5(n),f=gT(l),{className:p,component:g="div"}=f,O=Tt(f,bke);return I.jsx(a,Q({as:g,ref:u,className:wt(p,i?i(r):r),theme:t&&d[t]||d},O))})}const vke={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function dn(e,t,n="Mui"){const r=vke[t];return r?`${n}-${r}`:`${J9.generate(e)}-${t}`}function hn(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=dn(e,i,n)}),r}var sse={exports:{}},li={};/** - * @license React - * react-is.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 e$=Symbol.for("react.element"),t$=Symbol.for("react.portal"),_5=Symbol.for("react.fragment"),C5=Symbol.for("react.strict_mode"),R5=Symbol.for("react.profiler"),I5=Symbol.for("react.provider"),N5=Symbol.for("react.context"),Oke=Symbol.for("react.server_context"),D5=Symbol.for("react.forward_ref"),P5=Symbol.for("react.suspense"),L5=Symbol.for("react.suspense_list"),M5=Symbol.for("react.memo"),$5=Symbol.for("react.lazy"),Ske=Symbol.for("react.offscreen"),ose;ose=Symbol.for("react.module.reference");function Dc(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case e$:switch(e=e.type,e){case _5:case R5:case C5:case P5:case L5:return e;default:switch(e=e&&e.$$typeof,e){case Oke:case N5:case D5:case $5:case M5:case I5:return e;default:return t}}case t$:return t}}}li.ContextConsumer=N5;li.ContextProvider=I5;li.Element=e$;li.ForwardRef=D5;li.Fragment=_5;li.Lazy=$5;li.Memo=M5;li.Portal=t$;li.Profiler=R5;li.StrictMode=C5;li.Suspense=P5;li.SuspenseList=L5;li.isAsyncMode=function(){return!1};li.isConcurrentMode=function(){return!1};li.isContextConsumer=function(e){return Dc(e)===N5};li.isContextProvider=function(e){return Dc(e)===I5};li.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===e$};li.isForwardRef=function(e){return Dc(e)===D5};li.isFragment=function(e){return Dc(e)===_5};li.isLazy=function(e){return Dc(e)===$5};li.isMemo=function(e){return Dc(e)===M5};li.isPortal=function(e){return Dc(e)===t$};li.isProfiler=function(e){return Dc(e)===R5};li.isStrictMode=function(e){return Dc(e)===C5};li.isSuspense=function(e){return Dc(e)===P5};li.isSuspenseList=function(e){return Dc(e)===L5};li.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===_5||e===R5||e===C5||e===P5||e===L5||e===Ske||typeof e=="object"&&e!==null&&(e.$$typeof===$5||e.$$typeof===M5||e.$$typeof===I5||e.$$typeof===N5||e.$$typeof===D5||e.$$typeof===ose||e.getModuleId!==void 0)};li.typeOf=Dc;sse.exports=li;var iG=sse.exports;const Eke=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function lse(e){const t=`${e}`.match(Eke);return t&&t[1]||""}function use(e,t=""){return e.displayName||e.name||lse(e)||t}function aG(e,t,n){const r=use(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function wke(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return use(e,"Component");if(typeof e=="object")switch(e.$$typeof){case iG.ForwardRef:return aG(e,e.render,"ForwardRef");case iG.Memo:return aG(e,e.type,"memo");default:return}}}const Tke=Object.freeze(Object.defineProperty({__proto__:null,default:wke,getFunctionName:lse},Symbol.toStringTag,{value:"Module"})),xke=["ownerState"],kke=["variants"],Ake=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function _ke(e){return Object.keys(e).length===0}function Cke(e){return typeof e=="string"&&e.charCodeAt(0)>96}function xN(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Rke=Jv(),Ike=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function aA({defaultTheme:e,theme:t,themeId:n}){return _ke(t)?e:t[n]||t}function Nke(e){return e?(t,n)=>n[e]:null}function j4(e,t){let{ownerState:n}=t,r=Tt(t,xke);const i=typeof e=="function"?e(Q({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(a=>j4(a,Q({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:a=[]}=i;let o=Tt(i,kke);return a.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props(Q({ownerState:n},r,n)):Object.keys(l.props).forEach(d=>{(n==null?void 0:n[d])!==l.props[d]&&r[d]!==l.props[d]&&(u=!1)}),u&&(Array.isArray(o)||(o=[o]),o.push(typeof l.style=="function"?l.style(Q({ownerState:n},r,n)):l.style))}),o}return i}function Dke(e={}){const{themeId:t,defaultTheme:n=Rke,rootShouldForwardProp:r=xN,slotShouldForwardProp:i=xN}=e,a=s=>Kv(Q({},s,{theme:aA(Q({},s,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(s,o={})=>{Xae(s,R=>R.filter(N=>!(N!=null&&N.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:p=Nke(Ike(u))}=o,g=Tt(o,Ake),O=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,S=f||!1;let T,w=xN;u==="Root"||u==="root"?w=r:u?w=i:Cke(s)&&(w=void 0);const x=V9(s,Q({shouldForwardProp:w,label:T},g)),k=R=>typeof R=="function"&&R.__emotion_real!==R||$h(R)?N=>j4(R,Q({},N,{theme:aA({theme:N.theme,defaultTheme:n,themeId:t})})):R,_=(R,...N)=>{let P=k(R);const L=N?N.map(k):[];l&&p&&L.push(V=>{const W=aA(Q({},V,{defaultTheme:n,themeId:t}));if(!W.components||!W.components[l]||!W.components[l].styleOverrides)return null;const re=W.components[l].styleOverrides,ee={};return Object.entries(re).forEach(([q,ne])=>{ee[q]=j4(ne,Q({},V,{theme:W}))}),p(V,ee)}),l&&!O&&L.push(V=>{var W;const re=aA(Q({},V,{defaultTheme:n,themeId:t})),ee=re==null||(W=re.components)==null||(W=W[l])==null?void 0:W.variants;return j4({variants:ee},Q({},V,{theme:re}))}),S||L.push(a);const j=L.length-N.length;if(Array.isArray(R)&&j>0){const V=new Array(j).fill("");P=[...R,...V],P.raw=[...R.raw,...V]}const B=x(P,...L);return s.muiName&&(B.muiName=s.muiName),B};return x.withConfig&&(_.withConfig=x.withConfig),_}}const cse=Dke();function yv(e,t){const n=Q({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Q({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},a=t[r];n[r]={},!a||!Object.keys(a)?n[r]=i:!i||!Object.keys(i)?n[r]=a:(n[r]=Q({},a),Object.keys(i).forEach(s=>{n[r][s]=yv(i[s],a[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function dse(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:yv(t.components[n].defaultProps,r)}function fse({props:e,name:t,defaultTheme:n,themeId:r}){let i=A5(n);return r&&(i=i[r]||i),dse({theme:i,name:t,props:e})}const Ko=typeof window<"u"?M.useLayoutEffect:M.useEffect;function Pke(e,t,n,r,i){const[a,s]=M.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return Ko(()=>{let o=!0;if(!n)return;const l=n(e),u=()=>{o&&s(l.matches)};return u(),l.addListener(u),()=>{o=!1,l.removeListener(u)}},[e,n]),a}const hse=M.useSyncExternalStore;function Lke(e,t,n,r,i){const a=M.useCallback(()=>t,[t]),s=M.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:d}=r(e);return()=>d}return a},[a,e,r,i,n]),[o,l]=M.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const d=n(e);return[()=>d.matches,f=>(d.addListener(f),()=>{d.removeListener(f)})]},[a,n,e]);return hse(l,o,s)}function pse(e,t={}){const n=K9(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:a=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:o=!1}=dse({name:"MuiUseMediaQuery",props:t,theme:n});let l=e;return l=l.replace(/^@media( ?)/m,""),(hse!==void 0?Lke:Pke)(l,i,a,s,o)}function Ag(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const Mke=Object.freeze(Object.defineProperty({__proto__:null,default:Ag},Symbol.toStringTag,{value:"Module"}));function n$(e,t=0,n=1){return Ag(e,t,n)}function $ke(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function b1(e){if(e.type)return e;if(e.charAt(0)==="#")return b1($ke(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(rp(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(rp(10,i))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:i}}function F5(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,a)=>a<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Fke(e){e=b1(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),s=(u,d=(u+n/30)%12)=>i-a*Math.max(Math.min(d-3,9-d,1),-1);let o="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(o+="a",l.push(t[3])),F5({type:o,values:l})}function Bke(e){e=b1(e);let t=e.type==="hsl"||e.type==="hsla"?b1(Fke(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function sA(e,t){return e=b1(e),t=n$(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,F5(e)}function Uke(e,t){if(e=b1(e),t=n$(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return F5(e)}function zke(e,t){if(e=b1(e),t=n$(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return F5(e)}function jke(e,t=.15){return Bke(e)>.5?Uke(e,t):zke(e,t)}function s3(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function B5(e,t=166){let n;function r(...i){const a=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function Hke(e,t){return()=>null}function i2(e,t){var n,r;return M.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function ca(e){return e&&e.ownerDocument||document}function Lf(e){return ca(e).defaultView||window}function Qke(e,t){return()=>null}function iw(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let sG=0;function Wke(e){const[t,n]=M.useState(e),r=e||t;return M.useEffect(()=>{t==null&&(sG+=1,n(`mui-${sG}`))},[t]),r}const oG=lv.useId;function eO(e){if(oG!==void 0){const t=oG();return e??t}return Wke(e)}function Vke(e,t,n,r,i){return null}function Cf({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=M.useRef(e!==void 0),[a,s]=M.useState(t),o=i?e:a,l=M.useCallback(u=>{i||s(u)},[]);return[o,l]}function Qs(e){const t=M.useRef(e);return Ko(()=>{t.current=e}),M.useRef((...n)=>(0,t.current)(...n)).current}function vr(...e){return M.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{iw(n,t)})},e)}const lG={};function qke(e,t){const n=M.useRef(lG);return n.current===lG&&(n.current=e(t)),n}const Gke=[];function Yke(e){M.useEffect(e,Gke)}class bT{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new bT}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Mg(){const e=qke(bT.create).current;return Yke(e.disposeEffect),e}let U5=!0,DP=!1;const Zke=new bT,Xke={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Kke(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Xke[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Jke(e){e.metaKey||e.altKey||e.ctrlKey||(U5=!0)}function kN(){U5=!1}function eAe(){this.visibilityState==="hidden"&&DP&&(U5=!0)}function tAe(e){e.addEventListener("keydown",Jke,!0),e.addEventListener("mousedown",kN,!0),e.addEventListener("pointerdown",kN,!0),e.addEventListener("touchstart",kN,!0),e.addEventListener("visibilitychange",eAe,!0)}function nAe(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return U5||Kke(t)}function z5(){const e=M.useCallback(i=>{i!=null&&tAe(i.ownerDocument)},[]),t=M.useRef(!1);function n(){return t.current?(DP=!0,Zke.start(100,()=>{DP=!1}),t.current=!1,!0):!1}function r(i){return nAe(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function mse(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const rAe=e=>{const t=M.useRef({});return M.useEffect(()=>{t.current=e}),t.current};function iAe(e){return M.Children.toArray(e).filter(t=>M.isValidElement(t))}const aAe={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function pn(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((a,s)=>{if(s){const o=t(s);o!==""&&a.push(o),n&&n[s]&&a.push(n[s])}return a},[]).join(" ")}),r}function Rf(e){return typeof e=="string"}function dy(e,t,n){return e===void 0||Rf(e)?t:Q({},t,{ownerState:Q({},t.ownerState,n)})}function a2(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function uG(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function gse(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){const g=wt(n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),O=Q({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),S=Q({},n,i,r);return g.length>0&&(S.className=g),Object.keys(O).length>0&&(S.style=O),{props:S,internalRef:void 0}}const s=a2(Q({},i,r)),o=uG(r),l=uG(i),u=t(s),d=wt(u==null?void 0:u.className,n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),f=Q({},u==null?void 0:u.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),p=Q({},u,n,l,o);return d.length>0&&(p.className=d),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:u.ref}}function bse(e,t,n){return typeof e=="function"?e(t,n):e}const sAe=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ho(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:a=!1}=e,s=Tt(e,sAe),o=a?{}:bse(r,i),{props:l,internalRef:u}=gse(Q({},s,{externalSlotProps:o})),d=vr(u,o==null?void 0:o.ref,(t=e.additionalProps)==null?void 0:t.ref);return dy(n,Q({},l,{ref:d}),i)}const yse=M.createContext(null);function vse(){return M.useContext(yse)}const oAe=typeof Symbol=="function"&&Symbol.for,lAe=oAe?Symbol.for("mui.nested"):"__THEME_NESTED__";function uAe(e,t){return typeof t=="function"?t(e):Q({},e,t)}function cAe(e){const{children:t,theme:n}=e,r=vse(),i=M.useMemo(()=>{const a=r===null?n:uAe(r,n);return a!=null&&(a[lAe]=r!==null),a},[n,r]);return I.jsx(yse.Provider,{value:i,children:t})}const dAe=["value"],Ose=M.createContext();function fAe(e){let{value:t}=e,n=Tt(e,dAe);return I.jsx(Ose.Provider,Q({value:t??!0},n))}const r$=()=>{const e=M.useContext(Ose);return e??!1},Sse=M.createContext(void 0);function hAe({value:e,children:t}){return I.jsx(Sse.Provider,{value:e,children:t})}function pAe(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?yv(i.defaultProps,r):!i.styleOverrides&&!i.variants?yv(i,r):r}function mAe({props:e,name:t}){const n=M.useContext(Sse);return pAe({props:e,name:t,theme:{components:n}})}const cG={};function dG(e,t,n,r=!1){return M.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const a=n(i),s=e?Q({},t,{[e]:a}):a;return r?()=>s:s}return e?Q({},t,{[e]:n}):Q({},t,n)},[e,t,n,r])}function gAe(e){const{children:t,theme:n,themeId:r}=e,i=K9(cG),a=vse()||cG,s=dG(r,i,n),o=dG(r,a,n,!0),l=s.direction==="rtl";return I.jsx(cAe,{theme:o,children:I.jsx(hT.Provider,{value:s,children:I.jsx(fAe,{value:l,children:I.jsx(hAe,{value:s==null?void 0:s.components,children:t})})})})}const bAe=["className","component","disableGutters","fixed","maxWidth","classes"],yAe=Jv(),vAe=cse("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${st(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),OAe=e=>fse({props:e,name:"MuiContainer",defaultTheme:yAe}),SAe=(e,t)=>{const n=l=>dn(t,l),{classes:r,fixed:i,disableGutters:a,maxWidth:s}=e,o={root:["root",s&&`maxWidth${st(String(s))}`,i&&"fixed",a&&"disableGutters"]};return pn(o,n,r)};function EAe(e={}){const{createStyledComponent:t=vAe,useThemeProps:n=OAe,componentName:r="MuiContainer"}=e,i=t(({theme:s,ownerState:o})=>Q({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!o.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}),({theme:s,ownerState:o})=>o.fixed&&Object.keys(s.breakpoints.values).reduce((l,u)=>{const d=u,f=s.breakpoints.values[d];return f!==0&&(l[s.breakpoints.up(d)]={maxWidth:`${f}${s.breakpoints.unit}`}),l},{}),({theme:s,ownerState:o})=>Q({},o.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},o.maxWidth&&o.maxWidth!=="xs"&&{[s.breakpoints.up(o.maxWidth)]:{maxWidth:`${s.breakpoints.values[o.maxWidth]}${s.breakpoints.unit}`}}));return M.forwardRef(function(o,l){const u=n(o),{className:d,component:f="div",disableGutters:p=!1,fixed:g=!1,maxWidth:O="lg"}=u,S=Tt(u,bAe),T=Q({},u,{component:f,disableGutters:p,fixed:g,maxWidth:O}),w=SAe(T,r);return I.jsx(i,Q({as:f,ownerState:T,className:wt(w.root,d),ref:l},S))})}const wAe=["component","direction","spacing","divider","children","className","useFlexGap"],TAe=Jv(),xAe=cse("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function kAe(e){return fse({props:e,name:"MuiStack",defaultTheme:TAe})}function AAe(e,t){const n=M.Children.toArray(e).filter(Boolean);return n.reduce((r,i,a)=>(r.push(i),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],CAe=({ownerState:e,theme:t})=>{let n=Q({display:"flex",flexDirection:"column"},Pl({theme:t},r1({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=Z9(t),i=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),a=r1({values:e.direction,base:i}),s=r1({values:e.spacing,base:i});typeof a=="object"&&Object.keys(a).forEach((l,u,d)=>{if(!a[l]){const p=u>0?a[d[u-1]]:"column";a[l]=p}}),n=Yo(n,Pl({theme:t},s,(l,u)=>e.useFlexGap?{gap:g1(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${_Ae(u?a[u]:e.direction)}`]:g1(r,l)}}))}return n=Oxe(t.breakpoints,n),n};function RAe(e={}){const{createStyledComponent:t=xAe,useThemeProps:n=kAe,componentName:r="MuiStack"}=e,i=()=>pn({root:["root"]},l=>dn(r,l),{}),a=t(CAe);return M.forwardRef(function(l,u){const d=n(l),f=gT(d),{component:p="div",direction:g="column",spacing:O=0,divider:S,children:T,className:w,useFlexGap:x=!1}=f,k=Tt(f,wAe),_={direction:g,spacing:O,useFlexGap:x},R=i();return I.jsx(a,Q({as:p,ownerState:_,ref:u,className:wt(R.root,w)},k,{children:S?AAe(T,S):T}))})}function IAe(e,t){return Q({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Fa={},Ese={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Ese);var Ii=Ese.exports;const NAe=gp(nTe),DAe=gp(Mke);var wse=Ii;Object.defineProperty(Fa,"__esModule",{value:!0});var Qn=Fa.alpha=Ase;Fa.blend=QAe;Fa.colorChannel=void 0;var aw=Fa.darken=a$;Fa.decomposeColor=kc;Fa.emphasize=_se;var PAe=Fa.getContrastRatio=BAe;Fa.getLuminance=o3;Fa.hexToRgb=Tse;Fa.hslToRgb=kse;var sw=Fa.lighten=s$;Fa.private_safeAlpha=UAe;Fa.private_safeColorChannel=void 0;Fa.private_safeDarken=zAe;Fa.private_safeEmphasize=HAe;Fa.private_safeLighten=jAe;Fa.recomposeColor=tO;Fa.rgbToHex=FAe;var fG=wse(NAe),LAe=wse(DAe);function i$(e,t=0,n=1){return(0,LAe.default)(e,t,n)}function Tse(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function MAe(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function kc(e){if(e.type)return e;if(e.charAt(0)==="#")return kc(Tse(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,fG.default)(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error((0,fG.default)(10,i))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:i}}const xse=e=>{const t=kc(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Fa.colorChannel=xse;const $Ae=(e,t)=>{try{return xse(e)}catch{return e}};Fa.private_safeColorChannel=$Ae;function tO(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,a)=>a<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function FAe(e){if(e.indexOf("#")===0)return e;const{values:t}=kc(e);return`#${t.map((n,r)=>MAe(r===3?Math.round(255*n):n)).join("")}`}function kse(e){e=kc(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),s=(u,d=(u+n/30)%12)=>i-a*Math.max(Math.min(d-3,9-d,1),-1);let o="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(o+="a",l.push(t[3])),tO({type:o,values:l})}function o3(e){e=kc(e);let t=e.type==="hsl"||e.type==="hsla"?kc(kse(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function BAe(e,t){const n=o3(e),r=o3(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Ase(e,t){return e=kc(e),t=i$(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,tO(e)}function UAe(e,t,n){try{return Ase(e,t)}catch{return e}}function a$(e,t){if(e=kc(e),t=i$(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return tO(e)}function zAe(e,t,n){try{return a$(e,t)}catch{return e}}function s$(e,t){if(e=kc(e),t=i$(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return tO(e)}function jAe(e,t,n){try{return s$(e,t)}catch{return e}}function _se(e,t=.15){return o3(e)>.5?a$(e,t):s$(e,t)}function HAe(e,t,n){try{return _se(e,t)}catch{return e}}function QAe(e,t,n,r=1){const i=(l,u)=>Math.round((l**(1/r)*(1-n)+u**(1/r)*n)**r),a=kc(e),s=kc(t),o=[i(a.values[0],s.values[0]),i(a.values[1],s.values[1]),i(a.values[2],s.values[2])];return tO({type:"rgb",values:o})}const WAe=["mode","contrastThreshold","tonalOffset"],hG={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ew.white,default:ew.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},AN={text:{primary:ew.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:ew.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function pG(e,t,n,r){const i=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=sw(e.main,i):t==="dark"&&(e.dark=aw(e.main,a)))}function VAe(e="light"){return e==="dark"?{main:kb[200],light:kb[50],dark:kb[400]}:{main:kb[700],light:kb[400],dark:kb[800]}}function qAe(e="light"){return e==="dark"?{main:xb[200],light:xb[50],dark:xb[400]}:{main:xb[500],light:xb[300],dark:xb[700]}}function GAe(e="light"){return e==="dark"?{main:Tb[500],light:Tb[300],dark:Tb[700]}:{main:Tb[700],light:Tb[400],dark:Tb[800]}}function YAe(e="light"){return e==="dark"?{main:Ab[400],light:Ab[300],dark:Ab[700]}:{main:Ab[700],light:Ab[500],dark:Ab[900]}}function ZAe(e="light"){return e==="dark"?{main:_b[400],light:_b[300],dark:_b[700]}:{main:_b[800],light:_b[500],dark:_b[900]}}function XAe(e="light"){return e==="dark"?{main:GS[400],light:GS[300],dark:GS[700]}:{main:"#ed6c02",light:GS[500],dark:GS[900]}}function KAe(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=Tt(e,WAe),a=e.primary||VAe(t),s=e.secondary||qAe(t),o=e.error||GAe(t),l=e.info||YAe(t),u=e.success||ZAe(t),d=e.warning||XAe(t);function f(S){return PAe(S,AN.text.primary)>=n?AN.text.primary:hG.text.primary}const p=({color:S,name:T,mainShade:w=500,lightShade:x=300,darkShade:k=700})=>{if(S=Q({},S),!S.main&&S[w]&&(S.main=S[w]),!S.hasOwnProperty("main"))throw new Error(rp(11,T?` (${T})`:"",w));if(typeof S.main!="string")throw new Error(rp(12,T?` (${T})`:"",JSON.stringify(S.main)));return pG(S,"light",x,r),pG(S,"dark",k,r),S.contrastText||(S.contrastText=f(S.main)),S},g={dark:AN,light:hG};return Yo(Q({common:Q({},ew),mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:o,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:tTe,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r},g[t]),i)}const JAe=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function e4e(e){return Math.round(e*1e5)/1e5}const mG={textTransform:"uppercase"},gG='"Roboto", "Helvetica", "Arial", sans-serif';function t4e(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=gG,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:s=400,fontWeightMedium:o=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:d,pxToRem:f}=n,p=Tt(n,JAe),g=i/14,O=f||(w=>`${w/u*g}rem`),S=(w,x,k,_,R)=>Q({fontFamily:r,fontWeight:w,fontSize:O(x),lineHeight:k},r===gG?{letterSpacing:`${e4e(_/x)}em`}:{},R,d),T={h1:S(a,96,1.167,-1.5),h2:S(a,60,1.2,-.5),h3:S(s,48,1.167,0),h4:S(s,34,1.235,.25),h5:S(s,24,1.334,0),h6:S(o,20,1.6,.15),subtitle1:S(s,16,1.75,.15),subtitle2:S(o,14,1.57,.1),body1:S(s,16,1.5,.15),body2:S(s,14,1.43,.15),button:S(o,14,1.75,.4,mG),caption:S(s,12,1.66,.4),overline:S(s,12,2.66,1,mG),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Yo(Q({htmlFontSize:u,pxToRem:O,fontFamily:r,fontSize:i,fontWeightLight:a,fontWeightRegular:s,fontWeightMedium:o,fontWeightBold:l},T),p,{clone:!1})}const n4e=.2,r4e=.14,i4e=.12;function Gi(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${n4e})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${r4e})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${i4e})`].join(",")}const a4e=["none",Gi(0,2,1,-1,0,1,1,0,0,1,3,0),Gi(0,3,1,-2,0,2,2,0,0,1,5,0),Gi(0,3,3,-2,0,3,4,0,0,1,8,0),Gi(0,2,4,-1,0,4,5,0,0,1,10,0),Gi(0,3,5,-1,0,5,8,0,0,1,14,0),Gi(0,3,5,-1,0,6,10,0,0,1,18,0),Gi(0,4,5,-2,0,7,10,1,0,2,16,1),Gi(0,5,5,-3,0,8,10,1,0,3,14,2),Gi(0,5,6,-3,0,9,12,1,0,3,16,2),Gi(0,6,6,-3,0,10,14,1,0,4,18,3),Gi(0,6,7,-4,0,11,15,1,0,4,20,3),Gi(0,7,8,-4,0,12,17,2,0,5,22,4),Gi(0,7,8,-4,0,13,19,2,0,5,24,4),Gi(0,7,9,-4,0,14,21,2,0,5,26,4),Gi(0,8,9,-5,0,15,22,2,0,6,28,5),Gi(0,8,10,-5,0,16,24,2,0,6,30,5),Gi(0,8,11,-5,0,17,26,2,0,6,32,5),Gi(0,9,11,-5,0,18,28,2,0,7,34,6),Gi(0,9,12,-6,0,19,29,2,0,7,36,6),Gi(0,10,13,-6,0,20,31,3,0,8,38,7),Gi(0,10,13,-6,0,21,33,3,0,8,40,7),Gi(0,10,14,-6,0,22,35,3,0,8,42,7),Gi(0,11,14,-7,0,23,36,3,0,9,44,8),Gi(0,11,15,-7,0,24,38,3,0,9,46,8)],s4e=["duration","easing","delay"],o4e={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Cse={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function bG(e){return`${Math.round(e)}ms`}function l4e(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function u4e(e){const t=Q({},o4e,e.easing),n=Q({},Cse,e.duration);return Q({getAutoHeightDuration:l4e,create:(i=["all"],a={})=>{const{duration:s=n.standard,easing:o=t.easeInOut,delay:l=0}=a;return Tt(a,s4e),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof s=="string"?s:bG(s)} ${o} ${typeof l=="string"?l:bG(l)}`).join(",")}},e,{easing:t,duration:n})}const c4e={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},d4e=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function o$(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:a={}}=e,s=Tt(e,d4e);if(e.vars)throw new Error(rp(18));const o=KAe(r),l=Jv(e);let u=Yo(l,{mixins:IAe(l.breakpoints,n),palette:o,shadows:a4e.slice(),typography:t4e(o,a),transitions:u4e(i),zIndex:Q({},c4e)});return u=Yo(u,s),u=t.reduce((d,f)=>Yo(d,f),u),u.unstable_sxConfig=Q({},mT,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(f){return Kv({sx:f,theme:this})},u}const l$=o$();function Uf(){const e=A5(l$);return e[gv]||e}var yT={},_N={exports:{}},yG;function Rse(){return yG||(yG=1,function(e){function t(n,r){if(n==null)return{};var i={};for(var a in n)if({}.hasOwnProperty.call(n,a)){if(r.includes(a))continue;i[a]=n[a]}return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(_N)),_N.exports}const Ise=gp(mxe),f4e=gp(gxe),h4e=gp(Exe),p4e=gp(Tke),m4e=gp(uke),g4e=gp(mke);var nO=Ii;Object.defineProperty(yT,"__esModule",{value:!0});var b4e=yT.default=R4e;yT.shouldForwardProp=H4;yT.systemDefaultTheme=void 0;var Ju=nO(Vae()),PP=nO(Rse()),vG=T4e(Ise),y4e=f4e;nO(h4e);nO(p4e);var v4e=nO(m4e),O4e=nO(g4e);const S4e=["ownerState"],E4e=["variants"],w4e=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Nse(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Nse=function(r){return r?n:t})(e)}function T4e(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Nse(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function x4e(e){return Object.keys(e).length===0}function k4e(e){return typeof e=="string"&&e.charCodeAt(0)>96}function H4(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const A4e=yT.systemDefaultTheme=(0,v4e.default)(),_4e=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function oA({defaultTheme:e,theme:t,themeId:n}){return x4e(t)?e:t[n]||t}function C4e(e){return e?(t,n)=>n[e]:null}function Q4(e,t){let{ownerState:n}=t,r=(0,PP.default)(t,S4e);const i=typeof e=="function"?e((0,Ju.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(a=>Q4(a,(0,Ju.default)({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:a=[]}=i;let o=(0,PP.default)(i,E4e);return a.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props((0,Ju.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(d=>{(n==null?void 0:n[d])!==l.props[d]&&r[d]!==l.props[d]&&(u=!1)}),u&&(Array.isArray(o)||(o=[o]),o.push(typeof l.style=="function"?l.style((0,Ju.default)({ownerState:n},r,n)):l.style))}),o}return i}function R4e(e={}){const{themeId:t,defaultTheme:n=A4e,rootShouldForwardProp:r=H4,slotShouldForwardProp:i=H4}=e,a=s=>(0,O4e.default)((0,Ju.default)({},s,{theme:oA((0,Ju.default)({},s,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(s,o={})=>{(0,vG.internal_processStyles)(s,R=>R.filter(N=>!(N!=null&&N.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:p=C4e(_4e(u))}=o,g=(0,PP.default)(o,w4e),O=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,S=f||!1;let T,w=H4;u==="Root"||u==="root"?w=r:u?w=i:k4e(s)&&(w=void 0);const x=(0,vG.default)(s,(0,Ju.default)({shouldForwardProp:w,label:T},g)),k=R=>typeof R=="function"&&R.__emotion_real!==R||(0,y4e.isPlainObject)(R)?N=>Q4(R,(0,Ju.default)({},N,{theme:oA({theme:N.theme,defaultTheme:n,themeId:t})})):R,_=(R,...N)=>{let P=k(R);const L=N?N.map(k):[];l&&p&&L.push(V=>{const W=oA((0,Ju.default)({},V,{defaultTheme:n,themeId:t}));if(!W.components||!W.components[l]||!W.components[l].styleOverrides)return null;const re=W.components[l].styleOverrides,ee={};return Object.entries(re).forEach(([q,ne])=>{ee[q]=Q4(ne,(0,Ju.default)({},V,{theme:W}))}),p(V,ee)}),l&&!O&&L.push(V=>{var W;const re=oA((0,Ju.default)({},V,{defaultTheme:n,themeId:t})),ee=re==null||(W=re.components)==null||(W=W[l])==null?void 0:W.variants;return Q4({variants:ee},(0,Ju.default)({},V,{theme:re}))}),S||L.push(a);const j=L.length-N.length;if(Array.isArray(R)&&j>0){const V=new Array(j).fill("");P=[...R,...V],P.raw=[...R.raw,...V]}const B=x(P,...L);return s.muiName&&(B.muiName=s.muiName),B};return x.withConfig&&(_.withConfig=x.withConfig),_}}function j5(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ys=e=>j5(e)&&e!=="classes",lt=b4e({themeId:gv,defaultTheme:l$,rootShouldForwardProp:Ys}),I4e=["theme"];function N4e(e){let{theme:t}=e,n=Tt(e,I4e);const r=t[gv];return I.jsx(gAe,Q({},n,{themeId:r?gv:void 0,theme:r||t}))}const OG=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function mn(e){return mAe(e)}function D4e(e){return dn("MuiSvgIcon",e)}hn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const P4e=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],L4e=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${st(t)}`,`fontSize${st(n)}`]};return pn(i,D4e,r)},M4e=lt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${st(n.color)}`],t[`fontSize${st(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,a,s,o,l,u,d,f,p,g,O;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(s=a.pxToRem)==null?void 0:s.call(a,20))||"1.25rem",medium:((o=e.typography)==null||(l=o.pxToRem)==null?void 0:l.call(o,24))||"1.5rem",large:((u=e.typography)==null||(d=u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.active,disabled:(O=(e.vars||e).palette)==null||(O=O.action)==null?void 0:O.disabled,inherit:void 0}[t.color]}}),rm=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:s="inherit",component:o="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:f,viewBox:p="0 0 24 24"}=r,g=Tt(r,P4e),O=M.isValidElement(i)&&i.type==="svg",S=Q({},r,{color:s,component:o,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:p,hasSvgAsChild:O}),T={};d||(T.viewBox=p);const w=L4e(S);return I.jsxs(M4e,Q({as:o,className:wt(w.root,a),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},T,g,O&&i.props,{ownerState:S,children:[O?i.props.children:i,f?I.jsx("title",{children:f}):null]}))});rm.muiName="SvgIcon";function Id(e,t){function n(r,i){return I.jsx(rm,Q({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=rm.muiName,M.memo(M.forwardRef(n))}const $4e={configure:e=>{J9.configure(e)}},F4e=Object.freeze(Object.defineProperty({__proto__:null,capitalize:st,createChainedFunction:s3,createSvgIcon:Id,debounce:B5,deprecatedPropType:Hke,isMuiElement:i2,ownerDocument:ca,ownerWindow:Lf,requirePropFactory:Qke,setRef:iw,unstable_ClassNameGenerator:$4e,unstable_useEnhancedEffect:Ko,unstable_useId:eO,unsupportedProp:Vke,useControlled:Cf,useEventCallback:Qs,useForkRef:vr,useIsFocusVisible:z5},Symbol.toStringTag,{value:"Module"}));function LP(e,t){return LP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},LP(e,t)}function Dse(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,LP(e,t)}const SG={disabled:!1},l3=rn.createContext(null);var B4e=function(t){return t.scrollTop},NE="unmounted",Tg="exited",xg="entering",Ub="entered",MP="exiting",Pc=function(e){Dse(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var s=i,o=s&&!s.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?o?(l=Tg,a.appearStatus=xg):l=Ub:r.unmountOnExit||r.mountOnEnter?l=NE:l=Tg,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var s=i.in;return s&&a.status===NE?{status:Tg}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==xg&&s!==Ub&&(a=xg):(s===xg||s===Ub)&&(a=MP)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,s,o;return a=s=o=i,i!=null&&typeof i!="number"&&(a=i.exit,s=i.enter,o=i.appear!==void 0?i.appear:s),{exit:a,enter:s,appear:o}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===xg){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:IE.findDOMNode(this);s&&B4e(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Tg&&this.setState({status:NE})},n.performEnter=function(i){var a=this,s=this.props.enter,o=this.context?this.context.isMounting:i,l=this.props.nodeRef?[o]:[IE.findDOMNode(this),o],u=l[0],d=l[1],f=this.getTimeouts(),p=o?f.appear:f.enter;if(!i&&!s||SG.disabled){this.safeSetState({status:Ub},function(){a.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:xg},function(){a.props.onEntering(u,d),a.onTransitionEnd(p,function(){a.safeSetState({status:Ub},function(){a.props.onEntered(u,d)})})})},n.performExit=function(){var i=this,a=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:IE.findDOMNode(this);if(!a||SG.disabled){this.safeSetState({status:Tg},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:MP},function(){i.props.onExiting(o),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Tg},function(){i.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,s=!0;return this.nextCallback=function(o){s&&(s=!1,a.nextCallback=null,i(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:IE.findDOMNode(this),o=i==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=l[0],d=l[1];this.props.addEndListener(u,d)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===NE)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var o=Tt(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return rn.createElement(l3.Provider,{value:null},typeof s=="function"?s(i,o):rn.cloneElement(rn.Children.only(s),o))},t}(rn.Component);Pc.contextType=l3;Pc.propTypes={};function Cb(){}Pc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Cb,onEntering:Cb,onEntered:Cb,onExit:Cb,onExiting:Cb,onExited:Cb};Pc.UNMOUNTED=NE;Pc.EXITED=Tg;Pc.ENTERING=xg;Pc.ENTERED=Ub;Pc.EXITING=MP;function U4e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u$(e,t){var n=function(a){return t&&M.isValidElement(a)?t(a):a},r=Object.create(null);return e&&M.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function z4e(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var s,o={};for(var l in t){if(r[l])for(s=0;se.scrollTop;function im(e,t){var n,r;const{timeout:i,easing:a,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof a=="object"?a[t.mode]:a,delay:s.transitionDelay}}function V4e(e){return dn("MuiCollapse",e)}hn("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const q4e=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],G4e=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return pn(r,V4e,n)},Y4e=lt("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>Q({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&Q({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),Z4e=lt("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>Q({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),X4e=lt("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>Q({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),f$=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiCollapse"}),{addEndListener:i,children:a,className:s,collapsedSize:o="0px",component:l,easing:u,in:d,onEnter:f,onEntered:p,onEntering:g,onExit:O,onExited:S,onExiting:T,orientation:w="vertical",style:x,timeout:k=Cse.standard,TransitionComponent:_=Pc}=r,R=Tt(r,q4e),N=Q({},r,{orientation:w,collapsedSize:o}),P=G4e(N),L=Uf(),j=Mg(),B=M.useRef(null),V=M.useRef(),W=typeof o=="number"?`${o}px`:o,re=w==="horizontal",ee=re?"width":"height",q=M.useRef(null),ne=vr(n,q),K=ae=>Xe=>{if(ae){const We=q.current;Xe===void 0?ae(We):ae(We,Xe)}},G=()=>B.current?B.current[re?"clientWidth":"clientHeight"]:0,ie=K((ae,Xe)=>{B.current&&re&&(B.current.style.position="absolute"),ae.style[ee]=W,f&&f(ae,Xe)}),H=K((ae,Xe)=>{const We=G();B.current&&re&&(B.current.style.position="");const{duration:Ye,easing:xt}=im({style:x,timeout:k,easing:u},{mode:"enter"});if(k==="auto"){const it=L.transitions.getAutoHeightDuration(We);ae.style.transitionDuration=`${it}ms`,V.current=it}else ae.style.transitionDuration=typeof Ye=="string"?Ye:`${Ye}ms`;ae.style[ee]=`${We}px`,ae.style.transitionTimingFunction=xt,g&&g(ae,Xe)}),Re=K((ae,Xe)=>{ae.style[ee]="auto",p&&p(ae,Xe)}),Se=K(ae=>{ae.style[ee]=`${G()}px`,O&&O(ae)}),Z=K(S),ke=K(ae=>{const Xe=G(),{duration:We,easing:Ye}=im({style:x,timeout:k,easing:u},{mode:"exit"});if(k==="auto"){const xt=L.transitions.getAutoHeightDuration(Xe);ae.style.transitionDuration=`${xt}ms`,V.current=xt}else ae.style.transitionDuration=typeof We=="string"?We:`${We}ms`;ae.style[ee]=W,ae.style.transitionTimingFunction=Ye,T&&T(ae)}),$e=ae=>{k==="auto"&&j.start(V.current||0,ae),i&&i(q.current,ae)};return I.jsx(_,Q({in:d,onEnter:ie,onEntered:Re,onEntering:H,onExit:Se,onExited:Z,onExiting:ke,addEndListener:$e,nodeRef:q,timeout:k==="auto"?null:k},R,{children:(ae,Xe)=>I.jsx(Y4e,Q({as:l,className:wt(P.root,s,{entered:P.entered,exited:!d&&W==="0px"&&P.hidden}[ae]),style:Q({[re?"minWidth":"minHeight"]:W},x),ref:ne},Xe,{ownerState:Q({},N,{state:ae}),children:I.jsx(Z4e,{ownerState:Q({},N,{state:ae}),className:P.wrapper,ref:B,children:I.jsx(X4e,{ownerState:Q({},N,{state:ae}),className:P.wrapperInner,children:a})})}))}))});f$.muiSupportAuto=!0;function K4e(e){return dn("MuiPaper",e)}hn("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const J4e=["className","component","elevation","square","variant"],e_e=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return pn(a,K4e,i)},t_e=lt("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return Q({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&Q({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Qn("#fff",OG(t.elevation))}, ${Qn("#fff",OG(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Gs=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiPaper"}),{className:i,component:a="div",elevation:s=1,square:o=!1,variant:l="elevation"}=r,u=Tt(r,J4e),d=Q({},r,{component:a,elevation:s,square:o,variant:l}),f=e_e(d);return I.jsx(t_e,Q({as:a,ownerState:d,className:wt(f.root,i),ref:n},u))}),n_e=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],r_e=["component","slots","slotProps"],i_e=["component"];function a_e(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:a,getSlotOwnerState:s,internalForwardedProps:o}=t,l=Tt(t,n_e),{component:u,slots:d={[e]:void 0},slotProps:f={[e]:void 0}}=a;Tt(a,r_e);const p=d[e]||r,g=bse(f[e],i),O=gse(Q({className:n},l,{externalForwardedProps:void 0,externalSlotProps:g})),{props:{component:S},internalRef:T}=O,w=Tt(O.props,i_e),x=vr(T,g==null?void 0:g.ref,t.ref),k=s?s(w):{},_=Q({},i,k),R=S,N=dy(p,Q({},e==="root",!d[e]&&o,w,R&&{as:R},{ref:x}),_);return Object.keys(k).forEach(P=>{delete N[P]}),[p,N]}function s_e(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:s,in:o,onExited:l,timeout:u}=e,[d,f]=M.useState(!1),p=wt(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:s,height:s,top:-(s/2)+a,left:-(s/2)+i},O=wt(n.child,d&&n.childLeaving,r&&n.childPulsate);return!o&&!d&&f(!0),M.useEffect(()=>{if(!o&&l!=null){const S=setTimeout(l,u);return()=>{clearTimeout(S)}}},[l,o,u]),I.jsx("span",{className:p,style:g,children:I.jsx("span",{className:O})})}const tc=hn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),o_e=["center","classes","className"];let H5=e=>e,EG,wG,TG,xG;const $P=550,l_e=80,u_e=Xv(EG||(EG=H5` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`)),c_e=Xv(wG||(wG=H5` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`)),d_e=Xv(TG||(TG=H5` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`)),f_e=lt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),h_e=lt(s_e,{name:"MuiTouchRipple",slot:"Ripple"})(xG||(xG=H5` - opacity: 0; - position: absolute; - - &.${0} { - opacity: 0.3; - transform: scale(1); - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - &.${0} { - animation-duration: ${0}ms; - } - - & .${0} { - opacity: 1; - display: block; - width: 100%; - height: 100%; - border-radius: 50%; - background-color: currentColor; - } - - & .${0} { - opacity: 0; - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - & .${0} { - position: absolute; - /* @noflip */ - left: 0px; - top: 0; - animation-name: ${0}; - animation-duration: 2500ms; - animation-timing-function: ${0}; - animation-iteration-count: infinite; - animation-delay: 200ms; - } -`),tc.rippleVisible,u_e,$P,({theme:e})=>e.transitions.easing.easeInOut,tc.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,tc.child,tc.childLeaving,c_e,$P,({theme:e})=>e.transitions.easing.easeInOut,tc.childPulsate,d_e,({theme:e})=>e.transitions.easing.easeInOut),p_e=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:s}=r,o=Tt(r,o_e),[l,u]=M.useState([]),d=M.useRef(0),f=M.useRef(null);M.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const p=M.useRef(!1),g=Mg(),O=M.useRef(null),S=M.useRef(null),T=M.useCallback(_=>{const{pulsate:R,rippleX:N,rippleY:P,rippleSize:L,cb:j}=_;u(B=>[...B,I.jsx(h_e,{classes:{ripple:wt(a.ripple,tc.ripple),rippleVisible:wt(a.rippleVisible,tc.rippleVisible),ripplePulsate:wt(a.ripplePulsate,tc.ripplePulsate),child:wt(a.child,tc.child),childLeaving:wt(a.childLeaving,tc.childLeaving),childPulsate:wt(a.childPulsate,tc.childPulsate)},timeout:$P,pulsate:R,rippleX:N,rippleY:P,rippleSize:L},d.current)]),d.current+=1,f.current=j},[a]),w=M.useCallback((_={},R={},N=()=>{})=>{const{pulsate:P=!1,center:L=i||R.pulsate,fakeElement:j=!1}=R;if((_==null?void 0:_.type)==="mousedown"&&p.current){p.current=!1;return}(_==null?void 0:_.type)==="touchstart"&&(p.current=!0);const B=j?null:S.current,V=B?B.getBoundingClientRect():{width:0,height:0,left:0,top:0};let W,re,ee;if(L||_===void 0||_.clientX===0&&_.clientY===0||!_.clientX&&!_.touches)W=Math.round(V.width/2),re=Math.round(V.height/2);else{const{clientX:q,clientY:ne}=_.touches&&_.touches.length>0?_.touches[0]:_;W=Math.round(q-V.left),re=Math.round(ne-V.top)}if(L)ee=Math.sqrt((2*V.width**2+V.height**2)/3),ee%2===0&&(ee+=1);else{const q=Math.max(Math.abs((B?B.clientWidth:0)-W),W)*2+2,ne=Math.max(Math.abs((B?B.clientHeight:0)-re),re)*2+2;ee=Math.sqrt(q**2+ne**2)}_!=null&&_.touches?O.current===null&&(O.current=()=>{T({pulsate:P,rippleX:W,rippleY:re,rippleSize:ee,cb:N})},g.start(l_e,()=>{O.current&&(O.current(),O.current=null)})):T({pulsate:P,rippleX:W,rippleY:re,rippleSize:ee,cb:N})},[i,T,g]),x=M.useCallback(()=>{w({},{pulsate:!0})},[w]),k=M.useCallback((_,R)=>{if(g.clear(),(_==null?void 0:_.type)==="touchend"&&O.current){O.current(),O.current=null,g.start(0,()=>{k(_,R)});return}O.current=null,u(N=>N.length>0?N.slice(1):N),f.current=R},[g]);return M.useImperativeHandle(n,()=>({pulsate:x,start:w,stop:k}),[x,w,k]),I.jsx(f_e,Q({className:wt(tc.root,a.root,s),ref:S},o,{children:I.jsx(c$,{component:null,exit:!0,children:l})}))});function m_e(e){return dn("MuiButtonBase",e)}const g_e=hn("MuiButtonBase",["root","disabled","focusVisible"]),b_e=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],y_e=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,s=pn({root:["root",t&&"disabled",n&&"focusVisible"]},m_e,i);return n&&r&&(s.root+=` ${r}`),s},v_e=lt("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${g_e.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Mf=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:s,className:o,component:l="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:g="a",onBlur:O,onClick:S,onContextMenu:T,onDragLeave:w,onFocus:x,onFocusVisible:k,onKeyDown:_,onKeyUp:R,onMouseDown:N,onMouseLeave:P,onMouseUp:L,onTouchEnd:j,onTouchMove:B,onTouchStart:V,tabIndex:W=0,TouchRippleProps:re,touchRippleRef:ee,type:q}=r,ne=Tt(r,b_e),K=M.useRef(null),G=M.useRef(null),ie=vr(G,ee),{isFocusVisibleRef:H,onFocus:Re,onBlur:Se,ref:Z}=z5(),[ke,$e]=M.useState(!1);u&&ke&&$e(!1),M.useImperativeHandle(i,()=>({focusVisible:()=>{$e(!0),K.current.focus()}}),[]);const[ae,Xe]=M.useState(!1);M.useEffect(()=>{Xe(!0)},[]);const We=ae&&!d&&!u;M.useEffect(()=>{ke&&p&&!d&&ae&&G.current.pulsate()},[d,p,ke,ae]);function Ye(xe,Ue,Ct=f){return Qs(qt=>(Ue&&Ue(qt),!Ct&&G.current&&G.current[xe](qt),!0))}const xt=Ye("start",N),it=Ye("stop",T),Pt=Ye("stop",w),jt=Ye("stop",L),ct=Ye("stop",xe=>{ke&&xe.preventDefault(),P&&P(xe)}),Ot=Ye("start",V),yt=Ye("stop",j),Ut=Ye("stop",B),de=Ye("stop",xe=>{Se(xe),H.current===!1&&$e(!1),O&&O(xe)},!1),_e=Qs(xe=>{K.current||(K.current=xe.currentTarget),Re(xe),H.current===!0&&($e(!0),k&&k(xe)),x&&x(xe)}),Ne=()=>{const xe=K.current;return l&&l!=="button"&&!(xe.tagName==="A"&&xe.href)},Ke=M.useRef(!1),ut=Qs(xe=>{p&&!Ke.current&&ke&&G.current&&xe.key===" "&&(Ke.current=!0,G.current.stop(xe,()=>{G.current.start(xe)})),xe.target===xe.currentTarget&&Ne()&&xe.key===" "&&xe.preventDefault(),_&&_(xe),xe.target===xe.currentTarget&&Ne()&&xe.key==="Enter"&&!u&&(xe.preventDefault(),S&&S(xe))}),Je=Qs(xe=>{p&&xe.key===" "&&G.current&&ke&&!xe.defaultPrevented&&(Ke.current=!1,G.current.stop(xe,()=>{G.current.pulsate(xe)})),R&&R(xe),S&&xe.target===xe.currentTarget&&Ne()&&xe.key===" "&&!xe.defaultPrevented&&S(xe)});let gt=l;gt==="button"&&(ne.href||ne.to)&&(gt=g);const Jt={};gt==="button"?(Jt.type=q===void 0?"button":q,Jt.disabled=u):(!ne.href&&!ne.to&&(Jt.role="button"),u&&(Jt["aria-disabled"]=u));const Fe=vr(n,Z,K),we=Q({},r,{centerRipple:a,component:l,disabled:u,disableRipple:d,disableTouchRipple:f,focusRipple:p,tabIndex:W,focusVisible:ke}),be=y_e(we);return I.jsxs(v_e,Q({as:gt,className:wt(be.root,o),ownerState:we,onBlur:de,onClick:S,onContextMenu:it,onFocus:_e,onKeyDown:ut,onKeyUp:Je,onMouseDown:xt,onMouseLeave:ct,onMouseUp:jt,onDragLeave:Pt,onTouchEnd:yt,onTouchMove:Ut,onTouchStart:Ot,ref:Fe,tabIndex:u?-1:W,type:q},Jt,ne,{children:[s,We?I.jsx(p_e,Q({ref:ie,center:a},re)):null]}))});function O_e(e){return dn("MuiIconButton",e)}const S_e=hn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),E_e=["edge","children","className","color","disabled","disableFocusRipple","size"],w_e=e=>{const{classes:t,disabled:n,color:r,edge:i,size:a}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${st(r)}`,i&&`edge${st(i)}`,`size${st(a)}`]};return pn(s,O_e,t)},T_e=lt(Mf,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${st(n.color)}`],n.edge&&t[`edge${st(n.edge)}`],t[`size${st(n.size)}`]]}})(({theme:e,ownerState:t})=>Q({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Qn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return Q({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&Q({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":Q({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qn(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${S_e.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Oo=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiIconButton"}),{edge:i=!1,children:a,className:s,color:o="default",disabled:l=!1,disableFocusRipple:u=!1,size:d="medium"}=r,f=Tt(r,E_e),p=Q({},r,{edge:i,color:o,disabled:l,disableFocusRipple:u,size:d}),g=w_e(p);return I.jsx(T_e,Q({className:wt(g.root,s),centerRipple:!0,focusRipple:!u,disabled:l,ref:n},f,{ownerState:p,children:a}))}),x_e=Id(I.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function k_e(e){return dn("MuiTypography",e)}hn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const A_e=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],__e=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:a,classes:s}=e,o={root:["root",a,e.align!=="inherit"&&`align${st(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return pn(o,k_e,s)},C_e=lt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${st(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>Q({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),kG={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},R_e={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},I_e=e=>R_e[e]||e,wr=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiTypography"}),i=I_e(r.color),a=gT(Q({},r,{color:i})),{align:s="inherit",className:o,component:l,gutterBottom:u=!1,noWrap:d=!1,paragraph:f=!1,variant:p="body1",variantMapping:g=kG}=a,O=Tt(a,A_e),S=Q({},a,{align:s,color:i,className:o,component:l,gutterBottom:u,noWrap:d,paragraph:f,variant:p,variantMapping:g}),T=l||(f?"p":g[p]||kG[p])||"span",w=__e(S);return I.jsx(C_e,Q({as:T,ref:n,ownerState:S,className:wt(w.root,o)},O))});function N_e(e){return dn("MuiAppBar",e)}hn("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const D_e=["className","color","enableColorOnDark","position"],P_e=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${st(t)}`,`position${st(n)}`]};return pn(i,N_e,r)},lA=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,L_e=lt(Gs,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${st(n.position)}`],t[`color${st(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return Q({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&Q({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&Q({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&Q({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:lA(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:lA(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:lA(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:lA(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),h$=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiAppBar"}),{className:i,color:a="primary",enableColorOnDark:s=!1,position:o="fixed"}=r,l=Tt(r,D_e),u=Q({},r,{color:a,position:o,enableColorOnDark:s}),d=P_e(u);return I.jsx(L_e,Q({square:!0,component:"header",ownerState:u,elevation:4,className:wt(d.root,i,o==="fixed"&&"mui-fixed"),ref:n},l))});function AG(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function M_e(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:i="any",stringify:a,trim:s=!1}=e;return(o,{inputValue:l,getOptionLabel:u})=>{let d=s?l.trim():l;n&&(d=d.toLowerCase()),t&&(d=AG(d));const f=d?o.filter(p=>{let g=(a||u)(p);return n&&(g=g.toLowerCase()),t&&(g=AG(g)),i==="start"?g.indexOf(d)===0:g.indexOf(d)>-1}):o;return typeof r=="number"?f.slice(0,r):f}}function uA(e,t){for(let n=0;n{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function B_e(e){const{unstable_isActiveElementInListbox:t=F_e,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:s=!1,clearOnBlur:o=!e.freeSolo,clearOnEscape:l=!1,componentName:u="useAutocomplete",defaultValue:d=e.multiple?[]:null,disableClearable:f=!1,disableCloseOnSelect:p=!1,disabled:g,disabledItemsFocusable:O=!1,disableListWrap:S=!1,filterOptions:T=$_e,filterSelectedOptions:w=!1,freeSolo:x=!1,getOptionDisabled:k,getOptionKey:_,getOptionLabel:R=Ie=>{var Te;return(Te=Ie.label)!=null?Te:Ie},groupBy:N,handleHomeEndKeys:P=!e.freeSolo,id:L,includeInputInList:j=!1,inputValue:B,isOptionEqualToValue:V=(Ie,Te)=>Ie===Te,multiple:W=!1,onChange:re,onClose:ee,onHighlightChange:q,onInputChange:ne,onOpen:K,open:G,openOnFocus:ie=!1,options:H,readOnly:Re=!1,selectOnFocus:Se=!e.freeSolo,value:Z}=e,ke=eO(L);let $e=R;$e=Ie=>{const Te=R(Ie);return typeof Te!="string"?String(Te):Te};const ae=M.useRef(!1),Xe=M.useRef(!0),We=M.useRef(null),Ye=M.useRef(null),[xt,it]=M.useState(null),[Pt,jt]=M.useState(-1),ct=i?0:-1,Ot=M.useRef(ct),[yt,Ut]=Cf({controlled:Z,default:d,name:u}),[de,_e]=Cf({controlled:B,default:"",name:u,state:"inputValue"}),[Ne,Ke]=M.useState(!1),ut=M.useCallback((Ie,Te)=>{if(!(W?yt.length!(w&&(W?yt:[yt]).some(Te=>Te!==null&&V(Ie,Te)))),{inputValue:we&&Jt?"":de,getOptionLabel:$e}):[],Ue=rAe({filteredOptions:xe,value:yt,inputValue:de});M.useEffect(()=>{const Ie=yt!==Ue.value;Ne&&!Ie||x&&!Ie||ut(null,yt)},[yt,ut,Ne,Ue.value,x]);const Ct=Je&&xe.length>0&&!Re,qt=Qs(Ie=>{Ie===-1?We.current.focus():xt.querySelector(`[data-tag-index="${Ie}"]`).focus()});M.useEffect(()=>{W&&Pt>yt.length-1&&(jt(-1),qt(-1))},[yt,W,Pt,qt]);function tt(Ie,Te){if(!Ye.current||Ie<0||Ie>=xe.length)return-1;let at=Ie;for(;;){const qe=Ye.current.querySelector(`[data-option-index="${at}"]`),St=O?!1:!qe||qe.disabled||qe.getAttribute("aria-disabled")==="true";if(qe&&qe.hasAttribute("tabindex")&&!St)return at;if(Te==="next"?at=(at+1)%xe.length:at=(at-1+xe.length)%xe.length,at===Ie)return-1}}const Wt=Qs(({event:Ie,index:Te,reason:at="auto"})=>{if(Ot.current=Te,Te===-1?We.current.removeAttribute("aria-activedescendant"):We.current.setAttribute("aria-activedescendant",`${ke}-option-${Te}`),q&&q(Ie,Te===-1?null:xe[Te],at),!Ye.current)return;const qe=Ye.current.querySelector(`[role="option"].${n}-focused`);qe&&(qe.classList.remove(`${n}-focused`),qe.classList.remove(`${n}-focusVisible`));let St=Ye.current;if(Ye.current.getAttribute("role")!=="listbox"&&(St=Ye.current.parentElement.querySelector('[role="listbox"]')),!St)return;if(Te===-1){St.scrollTop=0;return}const _t=Ye.current.querySelector(`[data-option-index="${Te}"]`);if(_t&&(_t.classList.add(`${n}-focused`),at==="keyboard"&&_t.classList.add(`${n}-focusVisible`),St.scrollHeight>St.clientHeight&&at!=="mouse"&&at!=="touch")){const Gt=_t,jn=St.clientHeight+St.scrollTop,qn=Gt.offsetTop+Gt.offsetHeight;qn>jn?St.scrollTop=qn-St.clientHeight:Gt.offsetTop-Gt.offsetHeight*(N?1.3:0){if(!be)return;const _t=tt((()=>{const Gt=xe.length-1;if(Te==="reset")return ct;if(Te==="start")return 0;if(Te==="end")return Gt;const jn=Ot.current+Te;return jn<0?jn===-1&&j?-1:S&&Ot.current!==-1||Math.abs(Te)>1?0:Gt:jn>Gt?jn===Gt+1&&j?-1:S||Math.abs(Te)>1?Gt:0:jn})(),at);if(Wt({index:_t,reason:qe,event:Ie}),r&&Te!=="reset")if(_t===-1)We.current.value=de;else{const Gt=$e(xe[_t]);We.current.value=Gt,Gt.toLowerCase().indexOf(de.toLowerCase())===0&&de.length>0&&We.current.setSelectionRange(de.length,Gt.length)}}),zt=()=>{const Ie=(Te,at)=>{const qe=Te?$e(Te):"",St=at?$e(at):"";return qe===St};if(Ot.current!==-1&&Ue.filteredOptions&&Ue.filteredOptions.length!==xe.length&&Ue.inputValue===de&&(W?yt.length===Ue.value.length&&Ue.value.every((Te,at)=>$e(yt[at])===$e(Te)):Ie(Ue.value,yt))){const Te=Ue.filteredOptions[Ot.current];if(Te)return uA(xe,at=>$e(at)===$e(Te))}return-1},Sn=M.useCallback(()=>{if(!be)return;const Ie=zt();if(Ie!==-1){Ot.current=Ie;return}const Te=W?yt[0]:yt;if(xe.length===0||Te==null){Ht({diff:"reset"});return}if(Ye.current){if(Te!=null){const at=xe[Ot.current];if(W&&at&&uA(yt,St=>V(at,St))!==-1)return;const qe=uA(xe,St=>V(St,Te));qe===-1?Ht({diff:"reset"}):Wt({index:qe});return}if(Ot.current>=xe.length-1){Wt({index:xe.length-1});return}Wt({index:Ot.current})}},[xe.length,W?!1:yt,w,Ht,Wt,be,de,W]),pr=Qs(Ie=>{iw(Ye,Ie),Ie&&Sn()});M.useEffect(()=>{Sn()},[Sn]);const Mr=Ie=>{Je||(gt(!0),Fe(!0),K&&K(Ie))},Rr=(Ie,Te)=>{Je&&(gt(!1),ee&&ee(Ie,Te))},Yr=(Ie,Te,at,qe)=>{if(W){if(yt.length===Te.length&&yt.every((St,_t)=>St===Te[_t]))return}else if(yt===Te)return;re&&re(Ie,Te,at,qe),Ut(Te)},Ni=M.useRef(!1),hi=(Ie,Te,at="selectOption",qe="options")=>{let St=at,_t=Te;if(W){_t=Array.isArray(yt)?yt.slice():[];const Gt=uA(_t,jn=>V(Te,jn));Gt===-1?_t.push(Te):qe!=="freeSolo"&&(_t.splice(Gt,1),St="removeOption")}ut(Ie,_t),Yr(Ie,_t,St,{option:Te}),!p&&(!Ie||!Ie.ctrlKey&&!Ie.metaKey)&&Rr(Ie,St),(s===!0||s==="touch"&&Ni.current||s==="mouse"&&!Ni.current)&&We.current.blur()};function ji(Ie,Te){if(Ie===-1)return-1;let at=Ie;for(;;){if(Te==="next"&&at===yt.length||Te==="previous"&&at===-1)return-1;const qe=xt.querySelector(`[data-tag-index="${at}"]`);if(!qe||!qe.hasAttribute("tabindex")||qe.disabled||qe.getAttribute("aria-disabled")==="true")at+=Te==="next"?1:-1;else return at}}const pi=(Ie,Te)=>{if(!W)return;de===""&&Rr(Ie,"toggleInput");let at=Pt;Pt===-1?de===""&&Te==="previous"&&(at=yt.length-1):(at+=Te==="next"?1:-1,at<0&&(at=0),at===yt.length&&(at=-1)),at=ji(at,Te),jt(at),qt(at)},ds=Ie=>{ae.current=!0,_e(""),ne&&ne(Ie,"","clear"),Yr(Ie,W?[]:null,"clear")},Hi=Ie=>Te=>{if(Ie.onKeyDown&&Ie.onKeyDown(Te),!Te.defaultMuiPrevented&&(Pt!==-1&&["ArrowLeft","ArrowRight"].indexOf(Te.key)===-1&&(jt(-1),qt(-1)),Te.which!==229))switch(Te.key){case"Home":be&&P&&(Te.preventDefault(),Ht({diff:"start",direction:"next",reason:"keyboard",event:Te}));break;case"End":be&&P&&(Te.preventDefault(),Ht({diff:"end",direction:"previous",reason:"keyboard",event:Te}));break;case"PageUp":Te.preventDefault(),Ht({diff:-_G,direction:"previous",reason:"keyboard",event:Te}),Mr(Te);break;case"PageDown":Te.preventDefault(),Ht({diff:_G,direction:"next",reason:"keyboard",event:Te}),Mr(Te);break;case"ArrowDown":Te.preventDefault(),Ht({diff:1,direction:"next",reason:"keyboard",event:Te}),Mr(Te);break;case"ArrowUp":Te.preventDefault(),Ht({diff:-1,direction:"previous",reason:"keyboard",event:Te}),Mr(Te);break;case"ArrowLeft":pi(Te,"previous");break;case"ArrowRight":pi(Te,"next");break;case"Enter":if(Ot.current!==-1&&be){const at=xe[Ot.current],qe=k?k(at):!1;if(Te.preventDefault(),qe)return;hi(Te,at,"selectOption"),r&&We.current.setSelectionRange(We.current.value.length,We.current.value.length)}else x&&de!==""&&we===!1&&(W&&Te.preventDefault(),hi(Te,de,"createOption","freeSolo"));break;case"Escape":be?(Te.preventDefault(),Te.stopPropagation(),Rr(Te,"escape")):l&&(de!==""||W&&yt.length>0)&&(Te.preventDefault(),Te.stopPropagation(),ds(Te));break;case"Backspace":if(W&&!Re&&de===""&&yt.length>0){const at=Pt===-1?yt.length-1:Pt,qe=yt.slice();qe.splice(at,1),Yr(Te,qe,"removeOption",{option:yt[at]})}break;case"Delete":if(W&&!Re&&de===""&&yt.length>0&&Pt!==-1){const at=Pt,qe=yt.slice();qe.splice(at,1),Yr(Te,qe,"removeOption",{option:yt[at]})}break}},Ks=Ie=>{Ke(!0),ie&&!ae.current&&Mr(Ie)},Qi=Ie=>{if(t(Ye)){We.current.focus();return}Ke(!1),Xe.current=!0,ae.current=!1,a&&Ot.current!==-1&&be?hi(Ie,xe[Ot.current],"blur"):a&&x&&de!==""?hi(Ie,de,"blur","freeSolo"):o&&ut(Ie,yt),Rr(Ie,"blur")},Ur=Ie=>{const Te=Ie.target.value;de!==Te&&(_e(Te),Fe(!1),ne&&ne(Ie,Te,"input")),Te===""?!f&&!W&&Yr(Ie,null,"clear"):Mr(Ie)},nr=Ie=>{const Te=Number(Ie.currentTarget.getAttribute("data-option-index"));Ot.current!==Te&&Wt({event:Ie,index:Te,reason:"mouse"})},Zr=Ie=>{Wt({event:Ie,index:Number(Ie.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Ni.current=!0},ze=Ie=>{const Te=Number(Ie.currentTarget.getAttribute("data-option-index"));hi(Ie,xe[Te],"selectOption"),Ni.current=!1},nt=Ie=>Te=>{const at=yt.slice();at.splice(Ie,1),Yr(Te,at,"removeOption",{option:yt[Ie]})},le=Ie=>{Je?Rr(Ie,"toggleInput"):Mr(Ie)},he=Ie=>{Ie.currentTarget.contains(Ie.target)&&Ie.target.getAttribute("id")!==ke&&Ie.preventDefault()},Le=Ie=>{Ie.currentTarget.contains(Ie.target)&&(We.current.focus(),Se&&Xe.current&&We.current.selectionEnd-We.current.selectionStart===0&&We.current.select(),Xe.current=!1)},Ve=Ie=>{!g&&(de===""||!Je)&&le(Ie)};let pt=x&&de.length>0;pt=pt||(W?yt.length>0:yt!==null);let Vt=xe;return N&&(Vt=xe.reduce((Ie,Te,at)=>{const qe=N(Te);return Ie.length>0&&Ie[Ie.length-1].group===qe?Ie[Ie.length-1].options.push(Te):Ie.push({key:at,index:at,group:qe,options:[Te]}),Ie},[])),g&&Ne&&Qi(),{getRootProps:(Ie={})=>Q({"aria-owns":Ct?`${ke}-listbox`:null},Ie,{onKeyDown:Hi(Ie),onMouseDown:he,onClick:Le}),getInputLabelProps:()=>({id:`${ke}-label`,htmlFor:ke}),getInputProps:()=>({id:ke,value:de,onBlur:Qi,onFocus:Ks,onChange:Ur,onMouseDown:Ve,"aria-activedescendant":be?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ct?`${ke}-listbox`:void 0,"aria-expanded":Ct,autoComplete:"off",ref:We,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:g}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:ds}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:le}),getTagProps:({index:Ie})=>Q({key:Ie,"data-tag-index":Ie,tabIndex:-1},!Re&&{onDelete:nt(Ie)}),getListboxProps:()=>({role:"listbox",id:`${ke}-listbox`,"aria-labelledby":`${ke}-label`,ref:pr,onMouseDown:Ie=>{Ie.preventDefault()}}),getOptionProps:({index:Ie,option:Te})=>{var at;const qe=(W?yt:[yt]).some(_t=>_t!=null&&V(Te,_t)),St=k?k(Te):!1;return{key:(at=_==null?void 0:_(Te))!=null?at:$e(Te),tabIndex:-1,role:"option",id:`${ke}-option-${Ie}`,onMouseMove:nr,onClick:ze,onTouchStart:Zr,"data-option-index":Ie,"aria-disabled":St,"aria-selected":qe}},id:ke,inputValue:de,value:yt,dirty:pt,expanded:be&&xt,popupOpen:be,focused:Ne||Pt!==-1,anchorEl:xt,setAnchorEl:it,focusedTag:Pt,groupedOptions:Vt}}var p$={};Object.defineProperty(p$,"__esModule",{value:!0});var Pse=p$.default=void 0,U_e=j_e(M),z_e=Ise;function Lse(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Lse=function(r){return r?n:t})(e)}function j_e(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Lse(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function H_e(e){return Object.keys(e).length===0}function Q_e(e=null){const t=U_e.useContext(z_e.ThemeContext);return!t||H_e(t)?e:t}Pse=p$.default=Q_e;var Cl="top",Ac="bottom",_c="right",Rl="left",m$="auto",vT=[Cl,Ac,_c,Rl],vv="start",ow="end",W_e="clippingParents",Mse="viewport",ZS="popper",V_e="reference",CG=vT.reduce(function(e,t){return e.concat([t+"-"+vv,t+"-"+ow])},[]),$se=[].concat(vT,[m$]).reduce(function(e,t){return e.concat([t,t+"-"+vv,t+"-"+ow])},[]),q_e="beforeRead",G_e="read",Y_e="afterRead",Z_e="beforeMain",X_e="main",K_e="afterMain",J_e="beforeWrite",e3e="write",t3e="afterWrite",n3e=[q_e,G_e,Y_e,Z_e,X_e,K_e,J_e,e3e,t3e];function $f(e){return e?(e.nodeName||"").toLowerCase():null}function ku(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function y1(e){var t=ku(e).Element;return e instanceof t||e instanceof Element}function yc(e){var t=ku(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function g$(e){if(typeof ShadowRoot>"u")return!1;var t=ku(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function r3e(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},a=t.elements[n];!yc(a)||!$f(a)||(Object.assign(a.style,r),Object.keys(i).forEach(function(s){var o=i[s];o===!1?a.removeAttribute(s):a.setAttribute(s,o===!0?"":o)}))})}function i3e(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],a=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),o=s.reduce(function(l,u){return l[u]="",l},{});!yc(i)||!$f(i)||(Object.assign(i.style,o),Object.keys(a).forEach(function(l){i.removeAttribute(l)}))})}}const a3e={name:"applyStyles",enabled:!0,phase:"write",fn:r3e,effect:i3e,requires:["computeStyles"]};function If(e){return e.split("-")[0]}var i1=Math.max,u3=Math.min,Ov=Math.round;function FP(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Fse(){return!/^((?!chrome|android).)*safari/i.test(FP())}function Sv(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&yc(e)&&(i=e.offsetWidth>0&&Ov(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Ov(r.height)/e.offsetHeight||1);var s=y1(e)?ku(e):window,o=s.visualViewport,l=!Fse()&&n,u=(r.left+(l&&o?o.offsetLeft:0))/i,d=(r.top+(l&&o?o.offsetTop:0))/a,f=r.width/i,p=r.height/a;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function b$(e){var t=Sv(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Bse(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&g$(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ip(e){return ku(e).getComputedStyle(e)}function s3e(e){return["table","td","th"].indexOf($f(e))>=0}function ym(e){return((y1(e)?e.ownerDocument:e.document)||window.document).documentElement}function Q5(e){return $f(e)==="html"?e:e.assignedSlot||e.parentNode||(g$(e)?e.host:null)||ym(e)}function RG(e){return!yc(e)||ip(e).position==="fixed"?null:e.offsetParent}function o3e(e){var t=/firefox/i.test(FP()),n=/Trident/i.test(FP());if(n&&yc(e)){var r=ip(e);if(r.position==="fixed")return null}var i=Q5(e);for(g$(i)&&(i=i.host);yc(i)&&["html","body"].indexOf($f(i))<0;){var a=ip(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function OT(e){for(var t=ku(e),n=RG(e);n&&s3e(n)&&ip(n).position==="static";)n=RG(n);return n&&($f(n)==="html"||$f(n)==="body"&&ip(n).position==="static")?t:n||o3e(e)||t}function y$(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function s2(e,t,n){return i1(e,u3(t,n))}function l3e(e,t,n){var r=s2(e,t,n);return r>n?n:r}function Use(){return{top:0,right:0,bottom:0,left:0}}function zse(e){return Object.assign({},Use(),e)}function jse(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var u3e=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,zse(typeof t!="number"?t:jse(t,vT))};function c3e(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,o=If(n.placement),l=y$(o),u=[Rl,_c].indexOf(o)>=0,d=u?"height":"width";if(!(!a||!s)){var f=u3e(i.padding,n),p=b$(a),g=l==="y"?Cl:Rl,O=l==="y"?Ac:_c,S=n.rects.reference[d]+n.rects.reference[l]-s[l]-n.rects.popper[d],T=s[l]-n.rects.reference[l],w=OT(a),x=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,k=S/2-T/2,_=f[g],R=x-p[d]-f[O],N=x/2-p[d]/2+k,P=s2(_,N,R),L=l;n.modifiersData[r]=(t={},t[L]=P,t.centerOffset=P-N,t)}}function d3e(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Bse(t.elements.popper,i)&&(t.elements.arrow=i))}const f3e={name:"arrow",enabled:!0,phase:"main",fn:c3e,effect:d3e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ev(e){return e.split("-")[1]}var h3e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function p3e(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Ov(n*i)/i||0,y:Ov(r*i)/i||0}}function IG(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,o=e.position,l=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=s.x,g=p===void 0?0:p,O=s.y,S=O===void 0?0:O,T=typeof d=="function"?d({x:g,y:S}):{x:g,y:S};g=T.x,S=T.y;var w=s.hasOwnProperty("x"),x=s.hasOwnProperty("y"),k=Rl,_=Cl,R=window;if(u){var N=OT(n),P="clientHeight",L="clientWidth";if(N===ku(n)&&(N=ym(n),ip(N).position!=="static"&&o==="absolute"&&(P="scrollHeight",L="scrollWidth")),N=N,i===Cl||(i===Rl||i===_c)&&a===ow){_=Ac;var j=f&&N===R&&R.visualViewport?R.visualViewport.height:N[P];S-=j-r.height,S*=l?1:-1}if(i===Rl||(i===Cl||i===Ac)&&a===ow){k=_c;var B=f&&N===R&&R.visualViewport?R.visualViewport.width:N[L];g-=B-r.width,g*=l?1:-1}}var V=Object.assign({position:o},u&&h3e),W=d===!0?p3e({x:g,y:S},ku(n)):{x:g,y:S};if(g=W.x,S=W.y,l){var re;return Object.assign({},V,(re={},re[_]=x?"0":"",re[k]=w?"0":"",re.transform=(R.devicePixelRatio||1)<=1?"translate("+g+"px, "+S+"px)":"translate3d("+g+"px, "+S+"px, 0)",re))}return Object.assign({},V,(t={},t[_]=x?S+"px":"",t[k]=w?g+"px":"",t.transform="",t))}function m3e(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,o=n.roundOffsets,l=o===void 0?!0:o,u={placement:If(t.placement),variation:Ev(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,IG(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,IG(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const g3e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:m3e,data:{}};var cA={passive:!0};function b3e(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,s=r.resize,o=s===void 0?!0:s,l=ku(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(d){d.addEventListener("scroll",n.update,cA)}),o&&l.addEventListener("resize",n.update,cA),function(){a&&u.forEach(function(d){d.removeEventListener("scroll",n.update,cA)}),o&&l.removeEventListener("resize",n.update,cA)}}const y3e={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:b3e,data:{}};var v3e={left:"right",right:"left",bottom:"top",top:"bottom"};function W4(e){return e.replace(/left|right|bottom|top/g,function(t){return v3e[t]})}var O3e={start:"end",end:"start"};function NG(e){return e.replace(/start|end/g,function(t){return O3e[t]})}function v$(e){var t=ku(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function O$(e){return Sv(ym(e)).left+v$(e).scrollLeft}function S3e(e,t){var n=ku(e),r=ym(e),i=n.visualViewport,a=r.clientWidth,s=r.clientHeight,o=0,l=0;if(i){a=i.width,s=i.height;var u=Fse();(u||!u&&t==="fixed")&&(o=i.offsetLeft,l=i.offsetTop)}return{width:a,height:s,x:o+O$(e),y:l}}function E3e(e){var t,n=ym(e),r=v$(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=i1(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=i1(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),o=-r.scrollLeft+O$(e),l=-r.scrollTop;return ip(i||n).direction==="rtl"&&(o+=i1(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:s,x:o,y:l}}function S$(e){var t=ip(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Hse(e){return["html","body","#document"].indexOf($f(e))>=0?e.ownerDocument.body:yc(e)&&S$(e)?e:Hse(Q5(e))}function o2(e,t){var n;t===void 0&&(t=[]);var r=Hse(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=ku(r),s=i?[a].concat(a.visualViewport||[],S$(r)?r:[]):r,o=t.concat(s);return i?o:o.concat(o2(Q5(s)))}function BP(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function w3e(e,t){var n=Sv(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function DG(e,t,n){return t===Mse?BP(S3e(e,n)):y1(t)?w3e(t,n):BP(E3e(ym(e)))}function T3e(e){var t=o2(Q5(e)),n=["absolute","fixed"].indexOf(ip(e).position)>=0,r=n&&yc(e)?OT(e):e;return y1(r)?t.filter(function(i){return y1(i)&&Bse(i,r)&&$f(i)!=="body"}):[]}function x3e(e,t,n,r){var i=t==="clippingParents"?T3e(e):[].concat(t),a=[].concat(i,[n]),s=a[0],o=a.reduce(function(l,u){var d=DG(e,u,r);return l.top=i1(d.top,l.top),l.right=u3(d.right,l.right),l.bottom=u3(d.bottom,l.bottom),l.left=i1(d.left,l.left),l},DG(e,s,r));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Qse(e){var t=e.reference,n=e.element,r=e.placement,i=r?If(r):null,a=r?Ev(r):null,s=t.x+t.width/2-n.width/2,o=t.y+t.height/2-n.height/2,l;switch(i){case Cl:l={x:s,y:t.y-n.height};break;case Ac:l={x:s,y:t.y+t.height};break;case _c:l={x:t.x+t.width,y:o};break;case Rl:l={x:t.x-n.width,y:o};break;default:l={x:t.x,y:t.y}}var u=i?y$(i):null;if(u!=null){var d=u==="y"?"height":"width";switch(a){case vv:l[u]=l[u]-(t[d]/2-n[d]/2);break;case ow:l[u]=l[u]+(t[d]/2-n[d]/2);break}}return l}function lw(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,s=a===void 0?e.strategy:a,o=n.boundary,l=o===void 0?W_e:o,u=n.rootBoundary,d=u===void 0?Mse:u,f=n.elementContext,p=f===void 0?ZS:f,g=n.altBoundary,O=g===void 0?!1:g,S=n.padding,T=S===void 0?0:S,w=zse(typeof T!="number"?T:jse(T,vT)),x=p===ZS?V_e:ZS,k=e.rects.popper,_=e.elements[O?x:p],R=x3e(y1(_)?_:_.contextElement||ym(e.elements.popper),l,d,s),N=Sv(e.elements.reference),P=Qse({reference:N,element:k,strategy:"absolute",placement:i}),L=BP(Object.assign({},k,P)),j=p===ZS?L:N,B={top:R.top-j.top+w.top,bottom:j.bottom-R.bottom+w.bottom,left:R.left-j.left+w.left,right:j.right-R.right+w.right},V=e.modifiersData.offset;if(p===ZS&&V){var W=V[i];Object.keys(B).forEach(function(re){var ee=[_c,Ac].indexOf(re)>=0?1:-1,q=[Cl,Ac].indexOf(re)>=0?"y":"x";B[re]+=W[q]*ee})}return B}function k3e(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,s=n.padding,o=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?$se:l,d=Ev(r),f=d?o?CG:CG.filter(function(O){return Ev(O)===d}):vT,p=f.filter(function(O){return u.indexOf(O)>=0});p.length===0&&(p=f);var g=p.reduce(function(O,S){return O[S]=lw(e,{placement:S,boundary:i,rootBoundary:a,padding:s})[If(S)],O},{});return Object.keys(g).sort(function(O,S){return g[O]-g[S]})}function A3e(e){if(If(e)===m$)return[];var t=W4(e);return[NG(e),t,NG(t)]}function _3e(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,s=n.altAxis,o=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,g=n.flipVariations,O=g===void 0?!0:g,S=n.allowedAutoPlacements,T=t.options.placement,w=If(T),x=w===T,k=l||(x||!O?[W4(T)]:A3e(T)),_=[T].concat(k).reduce(function(ke,$e){return ke.concat(If($e)===m$?k3e(t,{placement:$e,boundary:d,rootBoundary:f,padding:u,flipVariations:O,allowedAutoPlacements:S}):$e)},[]),R=t.rects.reference,N=t.rects.popper,P=new Map,L=!0,j=_[0],B=0;B<_.length;B++){var V=_[B],W=If(V),re=Ev(V)===vv,ee=[Cl,Ac].indexOf(W)>=0,q=ee?"width":"height",ne=lw(t,{placement:V,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),K=ee?re?_c:Rl:re?Ac:Cl;R[q]>N[q]&&(K=W4(K));var G=W4(K),ie=[];if(a&&ie.push(ne[W]<=0),o&&ie.push(ne[K]<=0,ne[G]<=0),ie.every(function(ke){return ke})){j=V,L=!1;break}P.set(V,ie)}if(L)for(var H=O?3:1,Re=function($e){var ae=_.find(function(Xe){var We=P.get(Xe);if(We)return We.slice(0,$e).every(function(Ye){return Ye})});if(ae)return j=ae,"break"},Se=H;Se>0;Se--){var Z=Re(Se);if(Z==="break")break}t.placement!==j&&(t.modifiersData[r]._skip=!0,t.placement=j,t.reset=!0)}}const C3e={name:"flip",enabled:!0,phase:"main",fn:_3e,requiresIfExists:["offset"],data:{_skip:!1}};function PG(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function LG(e){return[Cl,_c,Ac,Rl].some(function(t){return e[t]>=0})}function R3e(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,s=lw(t,{elementContext:"reference"}),o=lw(t,{altBoundary:!0}),l=PG(s,r),u=PG(o,i,a),d=LG(l),f=LG(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const I3e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:R3e};function N3e(e,t,n){var r=If(e),i=[Rl,Cl].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],o=a[1];return s=s||0,o=(o||0)*i,[Rl,_c].indexOf(r)>=0?{x:o,y:s}:{x:s,y:o}}function D3e(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,s=$se.reduce(function(d,f){return d[f]=N3e(f,t.rects,a),d},{}),o=s[t.placement],l=o.x,u=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const P3e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:D3e};function L3e(e){var t=e.state,n=e.name;t.modifiersData[n]=Qse({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const M3e={name:"popperOffsets",enabled:!0,phase:"read",fn:L3e,data:{}};function $3e(e){return e==="x"?"y":"x"}function F3e(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,s=n.altAxis,o=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,g=p===void 0?!0:p,O=n.tetherOffset,S=O===void 0?0:O,T=lw(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:d}),w=If(t.placement),x=Ev(t.placement),k=!x,_=y$(w),R=$3e(_),N=t.modifiersData.popperOffsets,P=t.rects.reference,L=t.rects.popper,j=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,B=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),V=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(N){if(a){var re,ee=_==="y"?Cl:Rl,q=_==="y"?Ac:_c,ne=_==="y"?"height":"width",K=N[_],G=K+T[ee],ie=K-T[q],H=g?-L[ne]/2:0,Re=x===vv?P[ne]:L[ne],Se=x===vv?-L[ne]:-P[ne],Z=t.elements.arrow,ke=g&&Z?b$(Z):{width:0,height:0},$e=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Use(),ae=$e[ee],Xe=$e[q],We=s2(0,P[ne],ke[ne]),Ye=k?P[ne]/2-H-We-ae-B.mainAxis:Re-We-ae-B.mainAxis,xt=k?-P[ne]/2+H+We+Xe+B.mainAxis:Se+We+Xe+B.mainAxis,it=t.elements.arrow&&OT(t.elements.arrow),Pt=it?_==="y"?it.clientTop||0:it.clientLeft||0:0,jt=(re=V==null?void 0:V[_])!=null?re:0,ct=K+Ye-jt-Pt,Ot=K+xt-jt,yt=s2(g?u3(G,ct):G,K,g?i1(ie,Ot):ie);N[_]=yt,W[_]=yt-K}if(o){var Ut,de=_==="x"?Cl:Rl,_e=_==="x"?Ac:_c,Ne=N[R],Ke=R==="y"?"height":"width",ut=Ne+T[de],Je=Ne-T[_e],gt=[Cl,Rl].indexOf(w)!==-1,Jt=(Ut=V==null?void 0:V[R])!=null?Ut:0,Fe=gt?ut:Ne-P[Ke]-L[Ke]-Jt+B.altAxis,we=gt?Ne+P[Ke]+L[Ke]-Jt-B.altAxis:Je,be=g&>?l3e(Fe,Ne,we):s2(g?Fe:ut,Ne,g?we:Je);N[R]=be,W[R]=be-Ne}t.modifiersData[r]=W}}const B3e={name:"preventOverflow",enabled:!0,phase:"main",fn:F3e,requiresIfExists:["offset"]};function U3e(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function z3e(e){return e===ku(e)||!yc(e)?v$(e):U3e(e)}function j3e(e){var t=e.getBoundingClientRect(),n=Ov(t.width)/e.offsetWidth||1,r=Ov(t.height)/e.offsetHeight||1;return n!==1||r!==1}function H3e(e,t,n){n===void 0&&(n=!1);var r=yc(t),i=yc(t)&&j3e(t),a=ym(t),s=Sv(e,i,n),o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(($f(t)!=="body"||S$(a))&&(o=z3e(t)),yc(t)?(l=Sv(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=O$(a))),{x:s.left+o.scrollLeft-l.x,y:s.top+o.scrollTop-l.y,width:s.width,height:s.height}}function Q3e(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function i(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(o){if(!n.has(o)){var l=t.get(o);l&&i(l)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||i(a)}),r}function W3e(e){var t=Q3e(e);return n3e.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function V3e(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function q3e(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var MG={placement:"bottom",modifiers:[],strategy:"absolute"};function $G(){for(var e=arguments.length,t=new Array(e),n=0;n{a||o(X3e(i)||document.body)},[i,a]),Ko(()=>{if(s&&!a)return iw(n,s),()=>{iw(n,null)}},[n,s,a]),a){if(M.isValidElement(r)){const u={ref:l};return M.cloneElement(r,u)}return I.jsx(M.Fragment,{children:r})}return I.jsx(M.Fragment,{children:s&&Yv.createPortal(r,s)})});function K3e(e){return dn("MuiPopper",e)}hn("MuiPopper",["root"]);const J3e=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],eCe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function tCe(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function UP(e){return typeof e=="function"?e():e}function nCe(e){return e.nodeType!==void 0}const rCe=e=>{const{classes:t}=e;return pn({root:["root"]},K3e,t)},iCe={},aCe=M.forwardRef(function(t,n){var r;const{anchorEl:i,children:a,direction:s,disablePortal:o,modifiers:l,open:u,placement:d,popperOptions:f,popperRef:p,slotProps:g={},slots:O={},TransitionProps:S}=t,T=Tt(t,J3e),w=M.useRef(null),x=vr(w,n),k=M.useRef(null),_=vr(k,p),R=M.useRef(_);Ko(()=>{R.current=_},[_]),M.useImperativeHandle(p,()=>k.current,[]);const N=tCe(d,s),[P,L]=M.useState(N),[j,B]=M.useState(UP(i));M.useEffect(()=>{k.current&&k.current.forceUpdate()}),M.useEffect(()=>{i&&B(UP(i))},[i]),Ko(()=>{if(!j||!u)return;const q=G=>{L(G.placement)};let ne=[{name:"preventOverflow",options:{altBoundary:o}},{name:"flip",options:{altBoundary:o}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:G})=>{q(G)}}];l!=null&&(ne=ne.concat(l)),f&&f.modifiers!=null&&(ne=ne.concat(f.modifiers));const K=Z3e(j,w.current,Q({placement:N},f,{modifiers:ne}));return R.current(K),()=>{K.destroy(),R.current(null)}},[j,o,l,u,f,N]);const V={placement:P};S!==null&&(V.TransitionProps=S);const W=rCe(t),re=(r=O.root)!=null?r:"div",ee=Ho({elementType:re,externalSlotProps:g.root,externalForwardedProps:T,additionalProps:{role:"tooltip",ref:x},ownerState:t,className:W.root});return I.jsx(re,Q({},ee,{children:typeof a=="function"?a(V):a}))}),sCe=M.forwardRef(function(t,n){const{anchorEl:r,children:i,container:a,direction:s="ltr",disablePortal:o=!1,keepMounted:l=!1,modifiers:u,open:d,placement:f="bottom",popperOptions:p=iCe,popperRef:g,style:O,transition:S=!1,slotProps:T={},slots:w={}}=t,x=Tt(t,eCe),[k,_]=M.useState(!0),R=()=>{_(!1)},N=()=>{_(!0)};if(!l&&!d&&(!S||k))return null;let P;if(a)P=a;else if(r){const B=UP(r);P=B&&nCe(B)?ca(B).body:ca(null).body}const L=!d&&l&&(!S||k)?"none":void 0,j=S?{in:d,onEnter:R,onExited:N}:void 0;return I.jsx(Wse,{disablePortal:o,container:P,children:I.jsx(aCe,Q({anchorEl:r,direction:s,disablePortal:o,modifiers:u,ref:n,open:S?!k:d,placement:f,popperOptions:p,popperRef:g,slotProps:T,slots:w},x,{style:Q({position:"fixed",top:0,left:0,display:L},O),TransitionProps:j,children:i}))})}),oCe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],lCe=lt(sCe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),W5=M.forwardRef(function(t,n){var r;const i=Pse(),a=mn({props:t,name:"MuiPopper"}),{anchorEl:s,component:o,components:l,componentsProps:u,container:d,disablePortal:f,keepMounted:p,modifiers:g,open:O,placement:S,popperOptions:T,popperRef:w,transition:x,slots:k,slotProps:_}=a,R=Tt(a,oCe),N=(r=k==null?void 0:k.root)!=null?r:l==null?void 0:l.Root,P=Q({anchorEl:s,container:d,disablePortal:f,keepMounted:p,modifiers:g,open:O,placement:S,popperOptions:T,popperRef:w,transition:x},R);return I.jsx(lCe,Q({as:o,direction:i==null?void 0:i.direction,slots:{root:N},slotProps:_??u},P,{ref:n}))});function uCe(e){return dn("MuiListSubheader",e)}hn("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const cCe=["className","color","component","disableGutters","disableSticky","inset"],dCe=e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:a}=e,s={root:["root",n!=="default"&&`color${st(n)}`,!r&&"gutters",i&&"inset",!a&&"sticky"]};return pn(s,uCe,t)},fCe=lt("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${st(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>Q({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),Vse=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiListSubheader"}),{className:i,color:a="default",component:s="li",disableGutters:o=!1,disableSticky:l=!1,inset:u=!1}=r,d=Tt(r,cCe),f=Q({},r,{color:a,component:s,disableGutters:o,disableSticky:l,inset:u}),p=dCe(f);return I.jsx(fCe,Q({as:s,className:wt(p.root,i),ref:n,ownerState:f},d))});Vse.muiSkipListHighlight=!0;const hCe=Id(I.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function pCe(e){return dn("MuiChip",e)}const jr=hn("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),mCe=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],gCe=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:a,onDelete:s,clickable:o,variant:l}=e,u={root:["root",l,n&&"disabled",`size${st(r)}`,`color${st(i)}`,o&&"clickable",o&&`clickableColor${st(i)}`,s&&"deletable",s&&`deletableColor${st(i)}`,`${l}${st(i)}`],label:["label",`label${st(r)}`],avatar:["avatar",`avatar${st(r)}`,`avatarColor${st(i)}`],icon:["icon",`icon${st(r)}`,`iconColor${st(a)}`],deleteIcon:["deleteIcon",`deleteIcon${st(r)}`,`deleteIconColor${st(i)}`,`deleteIcon${st(l)}Color${st(i)}`]};return pn(u,pCe,t)},bCe=lt("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:a,onDelete:s,size:o,variant:l}=n;return[{[`& .${jr.avatar}`]:t.avatar},{[`& .${jr.avatar}`]:t[`avatar${st(o)}`]},{[`& .${jr.avatar}`]:t[`avatarColor${st(r)}`]},{[`& .${jr.icon}`]:t.icon},{[`& .${jr.icon}`]:t[`icon${st(o)}`]},{[`& .${jr.icon}`]:t[`iconColor${st(i)}`]},{[`& .${jr.deleteIcon}`]:t.deleteIcon},{[`& .${jr.deleteIcon}`]:t[`deleteIcon${st(o)}`]},{[`& .${jr.deleteIcon}`]:t[`deleteIconColor${st(r)}`]},{[`& .${jr.deleteIcon}`]:t[`deleteIcon${st(l)}Color${st(r)}`]},t.root,t[`size${st(o)}`],t[`color${st(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${st(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${st(r)}`],t[l],t[`${l}${st(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return Q({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${jr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${jr.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${jr.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${jr.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${jr.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${jr.icon}`]:Q({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&Q({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${jr.deleteIcon}`]:Q({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Qn(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Qn(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Qn(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${jr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${jr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>Q({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${jr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${jr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>Q({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${jr.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${jr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${jr.avatar}`]:{marginLeft:4},[`& .${jr.avatarSmall}`]:{marginLeft:2},[`& .${jr.icon}`]:{marginLeft:4},[`& .${jr.iconSmall}`]:{marginLeft:2},[`& .${jr.deleteIcon}`]:{marginRight:5},[`& .${jr.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Qn(e.palette[t.color].main,.7)}`,[`&.${jr.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qn(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${jr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Qn(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${jr.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Qn(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),yCe=lt("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${st(r)}`]]}})(({ownerState:e})=>Q({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function FG(e){return e.key==="Backspace"||e.key==="Delete"}const qse=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiChip"}),{avatar:i,className:a,clickable:s,color:o="default",component:l,deleteIcon:u,disabled:d=!1,icon:f,label:p,onClick:g,onDelete:O,onKeyDown:S,onKeyUp:T,size:w="medium",variant:x="filled",tabIndex:k,skipFocusWhenDisabled:_=!1}=r,R=Tt(r,mCe),N=M.useRef(null),P=vr(N,n),L=ie=>{ie.stopPropagation(),O&&O(ie)},j=ie=>{ie.currentTarget===ie.target&&FG(ie)&&ie.preventDefault(),S&&S(ie)},B=ie=>{ie.currentTarget===ie.target&&(O&&FG(ie)?O(ie):ie.key==="Escape"&&N.current&&N.current.blur()),T&&T(ie)},V=s!==!1&&g?!0:s,W=V||O?Mf:l||"div",re=Q({},r,{component:W,disabled:d,size:w,color:o,iconColor:M.isValidElement(f)&&f.props.color||o,onDelete:!!O,clickable:V,variant:x}),ee=gCe(re),q=W===Mf?Q({component:l||"div",focusVisibleClassName:ee.focusVisible},O&&{disableRipple:!0}):{};let ne=null;O&&(ne=u&&M.isValidElement(u)?M.cloneElement(u,{className:wt(u.props.className,ee.deleteIcon),onClick:L}):I.jsx(hCe,{className:wt(ee.deleteIcon),onClick:L}));let K=null;i&&M.isValidElement(i)&&(K=M.cloneElement(i,{className:wt(ee.avatar,i.props.className)}));let G=null;return f&&M.isValidElement(f)&&(G=M.cloneElement(f,{className:wt(ee.icon,f.props.className)})),I.jsxs(bCe,Q({as:W,className:wt(ee.root,a),disabled:V&&d?!0:void 0,onClick:g,onKeyDown:j,onKeyUp:B,ref:P,tabIndex:_&&d?-1:k,ownerState:re},q,R,{children:[K||G,I.jsx(yCe,{className:wt(ee.label),ownerState:re,children:p}),ne]}))}),vCe=["onChange","maxRows","minRows","style","value"];function dA(e){return parseInt(e,10)||0}const OCe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function SCe(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const Gse=M.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:a=1,style:s,value:o}=t,l=Tt(t,vCe),{current:u}=M.useRef(o!=null),d=M.useRef(null),f=vr(n,d),p=M.useRef(null),g=M.useRef(null),O=M.useCallback(()=>{const w=d.current,k=Lf(w).getComputedStyle(w);if(k.width==="0px")return{outerHeightStyle:0,overflowing:!1};const _=g.current;_.style.width=k.width,_.value=w.value||t.placeholder||"x",_.value.slice(-1)===` -`&&(_.value+=" ");const R=k.boxSizing,N=dA(k.paddingBottom)+dA(k.paddingTop),P=dA(k.borderBottomWidth)+dA(k.borderTopWidth),L=_.scrollHeight;_.value="x";const j=_.scrollHeight;let B=L;a&&(B=Math.max(Number(a)*j,B)),i&&(B=Math.min(Number(i)*j,B)),B=Math.max(B,j);const V=B+(R==="border-box"?N+P:0),W=Math.abs(B-L)<=1;return{outerHeightStyle:V,overflowing:W}},[i,a,t.placeholder]),S=M.useCallback(()=>{const w=O();if(SCe(w))return;const x=w.outerHeightStyle,k=d.current;p.current!==x&&(p.current=x,k.style.height=`${x}px`),k.style.overflow=w.overflowing?"hidden":""},[O]);Ko(()=>{const w=()=>{S()};let x;const k=B5(w),_=d.current,R=Lf(_);R.addEventListener("resize",k);let N;return typeof ResizeObserver<"u"&&(N=new ResizeObserver(w),N.observe(_)),()=>{k.clear(),cancelAnimationFrame(x),R.removeEventListener("resize",k),N&&N.disconnect()}},[O,S]),Ko(()=>{S()});const T=w=>{u||S(),r&&r(w)};return I.jsxs(M.Fragment,{children:[I.jsx("textarea",Q({value:o,onChange:T,ref:f,rows:a,style:s},l)),I.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:g,tabIndex:-1,style:Q({},OCe.shadow,s,{paddingTop:0,paddingBottom:0})})]})});function vm({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const V5=M.createContext(void 0);function zf(){return M.useContext(V5)}function Yse(e){return I.jsx(fke,Q({},e,{defaultTheme:l$,themeId:gv}))}function BG(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function c3(e,t=!1){return e&&(BG(e.value)&&e.value!==""||t&&BG(e.defaultValue)&&e.defaultValue!=="")}function ECe(e){return e.startAdornment}function wCe(e){return dn("MuiInputBase",e)}const su=hn("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),TCe=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],q5=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${st(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},G5=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},xCe=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:s,formControl:o,fullWidth:l,hiddenLabel:u,multiline:d,readOnly:f,size:p,startAdornment:g,type:O}=e,S={root:["root",`color${st(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",s&&"focused",o&&"formControl",p&&p!=="medium"&&`size${st(p)}`,d&&"multiline",g&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",O==="search"&&"inputTypeSearch",d&&"inputMultiline",p==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",g&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return pn(S,wCe,t)},Y5=lt("div",{name:"MuiInputBase",slot:"Root",overridesResolver:q5})(({theme:e,ownerState:t})=>Q({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${su.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Q({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Z5=lt("input",{name:"MuiInputBase",slot:"Input",overridesResolver:G5})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=Q({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return Q({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${su.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${su.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),kCe=I.jsx(Yse,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),ACe=M.forwardRef(function(t,n){var r;const i=mn({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:s,autoFocus:o,className:l,components:u={},componentsProps:d={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:g,endAdornment:O,fullWidth:S=!1,id:T,inputComponent:w="input",inputProps:x={},inputRef:k,maxRows:_,minRows:R,multiline:N=!1,name:P,onBlur:L,onChange:j,onClick:B,onFocus:V,onKeyDown:W,onKeyUp:re,placeholder:ee,readOnly:q,renderSuffix:ne,rows:K,slotProps:G={},slots:ie={},startAdornment:H,type:Re="text",value:Se}=i,Z=Tt(i,TCe),ke=x.value!=null?x.value:Se,{current:$e}=M.useRef(ke!=null),ae=M.useRef(),Xe=M.useCallback(be=>{},[]),We=vr(ae,k,x.ref,Xe),[Ye,xt]=M.useState(!1),it=zf(),Pt=vm({props:i,muiFormControl:it,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Pt.focused=it?it.focused:Ye,M.useEffect(()=>{!it&&p&&Ye&&(xt(!1),L&&L())},[it,p,Ye,L]);const jt=it&&it.onFilled,ct=it&&it.onEmpty,Ot=M.useCallback(be=>{c3(be)?jt&&jt():ct&&ct()},[jt,ct]);Ko(()=>{$e&&Ot({value:ke})},[ke,Ot,$e]);const yt=be=>{if(Pt.disabled){be.stopPropagation();return}V&&V(be),x.onFocus&&x.onFocus(be),it&&it.onFocus?it.onFocus(be):xt(!0)},Ut=be=>{L&&L(be),x.onBlur&&x.onBlur(be),it&&it.onBlur?it.onBlur(be):xt(!1)},de=(be,...xe)=>{if(!$e){const Ue=be.target||ae.current;if(Ue==null)throw new Error(rp(1));Ot({value:Ue.value})}x.onChange&&x.onChange(be,...xe),j&&j(be,...xe)};M.useEffect(()=>{Ot(ae.current)},[]);const _e=be=>{ae.current&&be.currentTarget===be.target&&ae.current.focus(),B&&B(be)};let Ne=w,Ke=x;N&&Ne==="input"&&(K?Ke=Q({type:void 0,minRows:K,maxRows:K},Ke):Ke=Q({type:void 0,maxRows:_,minRows:R},Ke),Ne=Gse);const ut=be=>{Ot(be.animationName==="mui-auto-fill-cancel"?ae.current:{value:"x"})};M.useEffect(()=>{it&&it.setAdornedStart(!!H)},[it,H]);const Je=Q({},i,{color:Pt.color||"primary",disabled:Pt.disabled,endAdornment:O,error:Pt.error,focused:Pt.focused,formControl:it,fullWidth:S,hiddenLabel:Pt.hiddenLabel,multiline:N,size:Pt.size,startAdornment:H,type:Re}),gt=xCe(Je),Jt=ie.root||u.Root||Y5,Fe=G.root||d.root||{},we=ie.input||u.Input||Z5;return Ke=Q({},Ke,(r=G.input)!=null?r:d.input),I.jsxs(M.Fragment,{children:[!g&&kCe,I.jsxs(Jt,Q({},Fe,!Rf(Jt)&&{ownerState:Q({},Je,Fe.ownerState)},{ref:n,onClick:_e},Z,{className:wt(gt.root,Fe.className,l,q&&"MuiInputBase-readOnly"),children:[H,I.jsx(V5.Provider,{value:null,children:I.jsx(we,Q({ownerState:Je,"aria-invalid":Pt.error,"aria-describedby":a,autoComplete:s,autoFocus:o,defaultValue:f,disabled:Pt.disabled,id:T,onAnimationStart:ut,name:P,placeholder:ee,readOnly:q,required:Pt.required,rows:K,value:ke,onKeyDown:W,onKeyUp:re,type:Re},Ke,!Rf(we)&&{as:Ne,ownerState:Q({},Je,Ke.ownerState)},{ref:We,className:wt(gt.input,Ke.className,q&&"MuiInputBase-readOnly"),onBlur:Ut,onChange:de,onFocus:yt}))}),O,ne?ne(Q({},Pt,{startAdornment:H})):null]}))]})}),E$=ACe;function _Ce(e){return dn("MuiInput",e)}const m0=Q({},su,hn("MuiInput",["root","underline","input"]));function CCe(e){return dn("MuiOutlinedInput",e)}const rf=Q({},su,hn("MuiOutlinedInput",["root","notchedOutline","input"]));function RCe(e){return dn("MuiFilledInput",e)}const ou=Q({},su,hn("MuiFilledInput",["root","underline","input"])),Zse=Id(I.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function ICe(e){return dn("MuiAutocomplete",e)}const ur=hn("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var UG,zG;const NCe=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],DCe=["ref"],PCe=["key"],LCe=["key"],MCe=e=>{const{classes:t,disablePortal:n,expanded:r,focused:i,fullWidth:a,hasClearIcon:s,hasPopupIcon:o,inputFocused:l,popupOpen:u,size:d}=e,f={root:["root",r&&"expanded",i&&"focused",a&&"fullWidth",s&&"hasClearIcon",o&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${st(d)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return pn(f,ICe,t)},$Ce=lt("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:a,inputFocused:s,size:o}=n;return[{[`& .${ur.tag}`]:t.tag},{[`& .${ur.tag}`]:t[`tagSize${st(o)}`]},{[`& .${ur.inputRoot}`]:t.inputRoot},{[`& .${ur.input}`]:t.input},{[`& .${ur.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,i&&t.hasClearIcon]}})({[`&.${ur.focused} .${ur.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${ur.clearIndicator}`]:{visibility:"visible"}},[`& .${ur.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${ur.inputRoot}`]:{[`.${ur.hasPopupIcon}&, .${ur.hasClearIcon}&`]:{paddingRight:30},[`.${ur.hasPopupIcon}.${ur.hasClearIcon}&`]:{paddingRight:56},[`& .${ur.input}`]:{width:0,minWidth:30}},[`& .${m0.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${m0.root}.${su.sizeSmall}`]:{[`& .${m0.input}`]:{padding:"2px 4px 3px 0"}},[`& .${rf.root}`]:{padding:9,[`.${ur.hasPopupIcon}&, .${ur.hasClearIcon}&`]:{paddingRight:39},[`.${ur.hasPopupIcon}.${ur.hasClearIcon}&`]:{paddingRight:65},[`& .${ur.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${ur.endAdornment}`]:{right:9}},[`& .${rf.root}.${su.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${ur.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${ou.root}`]:{paddingTop:19,paddingLeft:8,[`.${ur.hasPopupIcon}&, .${ur.hasClearIcon}&`]:{paddingRight:39},[`.${ur.hasPopupIcon}.${ur.hasClearIcon}&`]:{paddingRight:65},[`& .${ou.input}`]:{padding:"7px 4px"},[`& .${ur.endAdornment}`]:{right:9}},[`& .${ou.root}.${su.sizeSmall}`]:{paddingBottom:1,[`& .${ou.input}`]:{padding:"2.5px 4px"}},[`& .${su.hiddenLabel}`]:{paddingTop:8},[`& .${ou.root}.${su.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${ur.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${ou.root}.${su.hiddenLabel}.${su.sizeSmall}`]:{[`& .${ur.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${ur.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${ur.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${ur.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${ur.inputRoot}`]:{flexWrap:"wrap"}}}]}),FCe=lt("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),BCe=lt(Oo,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),UCe=lt(Oo,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>Q({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),zCe=lt(W5,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ur.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),jCe=lt(Gs,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>Q({},e.typography.body1,{overflow:"auto"})),HCe=lt("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),QCe=lt("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),WCe=lt("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${ur.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${ur.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${ur.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ur.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${ur.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),VCe=lt(Vse,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),qCe=lt("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${ur.option}`]:{paddingLeft:24}}),GCe=M.forwardRef(function(t,n){var r,i,a,s;const o=mn({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:u=!1,autoSelect:d=!1,blurOnSelect:f=!1,ChipProps:p,className:g,clearIcon:O=UG||(UG=I.jsx(x_e,{fontSize:"small"})),clearOnBlur:S=!o.freeSolo,clearOnEscape:T=!1,clearText:w="Clear",closeText:x="Close",componentsProps:k={},defaultValue:_=o.multiple?[]:null,disableClearable:R=!1,disableCloseOnSelect:N=!1,disabled:P=!1,disabledItemsFocusable:L=!1,disableListWrap:j=!1,disablePortal:B=!1,filterSelectedOptions:V=!1,forcePopupIcon:W="auto",freeSolo:re=!1,fullWidth:ee=!1,getLimitTagsText:q=qe=>`+${qe}`,getOptionLabel:ne,groupBy:K,handleHomeEndKeys:G=!o.freeSolo,includeInputInList:ie=!1,limitTags:H=-1,ListboxComponent:Re="ul",ListboxProps:Se,loading:Z=!1,loadingText:ke="Loading…",multiple:$e=!1,noOptionsText:ae="No options",openOnFocus:Xe=!1,openText:We="Open",PaperComponent:Ye=Gs,PopperComponent:xt=W5,popupIcon:it=zG||(zG=I.jsx(Zse,{})),readOnly:Pt=!1,renderGroup:jt,renderInput:ct,renderOption:Ot,renderTags:yt,selectOnFocus:Ut=!o.freeSolo,size:de="medium",slotProps:_e={}}=o,Ne=Tt(o,NCe),{getRootProps:Ke,getInputProps:ut,getInputLabelProps:Je,getPopupIndicatorProps:gt,getClearProps:Jt,getTagProps:Fe,getListboxProps:we,getOptionProps:be,value:xe,dirty:Ue,expanded:Ct,id:qt,popupOpen:tt,focused:Wt,focusedTag:Ht,anchorEl:zt,setAnchorEl:Sn,inputValue:pr,groupedOptions:Mr}=B_e(Q({},o,{componentName:"Autocomplete"})),Rr=!R&&!P&&Ue&&!Pt,Yr=(!re||W===!0)&&W!==!1,{onMouseDown:Ni}=ut(),{ref:hi}=Se??{},ji=we(),{ref:pi}=ji,ds=Tt(ji,DCe),Hi=vr(pi,hi),Qi=ne||(qe=>{var St;return(St=qe.label)!=null?St:qe}),Ur=Q({},o,{disablePortal:B,expanded:Ct,focused:Wt,fullWidth:ee,getOptionLabel:Qi,hasClearIcon:Rr,hasPopupIcon:Yr,inputFocused:Ht===-1,popupOpen:tt,size:de}),nr=MCe(Ur);let Zr;if($e&&xe.length>0){const qe=St=>Q({className:nr.tag,disabled:P},Fe(St));yt?Zr=yt(xe,qe,Ur):Zr=xe.map((St,_t)=>{const Gt=qe({index:_t}),{key:jn}=Gt,qn=Tt(Gt,PCe);return I.jsx(qse,Q({label:Qi(St),size:de},qn,p),jn)})}if(H>-1&&Array.isArray(Zr)){const qe=Zr.length-H;!Wt&&qe>0&&(Zr=Zr.splice(0,H),Zr.push(I.jsx("span",{className:nr.tag,children:q(qe)},Zr.length)))}const nt=jt||(qe=>I.jsxs("li",{children:[I.jsx(VCe,{className:nr.groupLabel,ownerState:Ur,component:"div",children:qe.group}),I.jsx(qCe,{className:nr.groupUl,ownerState:Ur,children:qe.children})]},qe.key)),he=Ot||((qe,St)=>{const{key:_t}=qe,Gt=Tt(qe,LCe);return I.jsx("li",Q({},Gt,{children:Qi(St)}),_t)}),Le=(qe,St)=>{const _t=be({option:qe,index:St});return he(Q({},_t,{className:nr.option}),qe,{selected:_t["aria-selected"],index:St,inputValue:pr},Ur)},Ve=(r=_e.clearIndicator)!=null?r:k.clearIndicator,pt=(i=_e.paper)!=null?i:k.paper,Vt=(a=_e.popper)!=null?a:k.popper,Ie=(s=_e.popupIndicator)!=null?s:k.popupIndicator,Te=qe=>I.jsx(zCe,Q({as:xt,disablePortal:B,style:{width:zt?zt.clientWidth:null},ownerState:Ur,role:"presentation",anchorEl:zt,open:tt},Vt,{className:wt(nr.popper,Vt==null?void 0:Vt.className),children:I.jsx(jCe,Q({ownerState:Ur,as:Ye},pt,{className:wt(nr.paper,pt==null?void 0:pt.className),children:qe}))}));let at=null;return Mr.length>0?at=Te(I.jsx(WCe,Q({as:Re,className:nr.listbox,ownerState:Ur},ds,Se,{ref:Hi,children:Mr.map((qe,St)=>K?nt({key:qe.key,group:qe.group,children:qe.options.map((_t,Gt)=>Le(_t,qe.index+Gt))}):Le(qe,St))}))):Z&&Mr.length===0?at=Te(I.jsx(HCe,{className:nr.loading,ownerState:Ur,children:ke})):Mr.length===0&&!re&&!Z&&(at=Te(I.jsx(QCe,{className:nr.noOptions,ownerState:Ur,role:"presentation",onMouseDown:qe=>{qe.preventDefault()},children:ae}))),I.jsxs(M.Fragment,{children:[I.jsx($Ce,Q({ref:n,className:wt(nr.root,g),ownerState:Ur},Ke(Ne),{children:ct({id:qt,disabled:P,fullWidth:!0,size:de==="small"?"small":void 0,InputLabelProps:Je(),InputProps:Q({ref:Sn,className:nr.inputRoot,startAdornment:Zr,onClick:qe=>{qe.target===qe.currentTarget&&Ni(qe)}},(Rr||Yr)&&{endAdornment:I.jsxs(FCe,{className:nr.endAdornment,ownerState:Ur,children:[Rr?I.jsx(BCe,Q({},Jt(),{"aria-label":w,title:w,ownerState:Ur},Ve,{className:wt(nr.clearIndicator,Ve==null?void 0:Ve.className),children:O})):null,Yr?I.jsx(UCe,Q({},gt(),{disabled:P,"aria-label":tt?x:We,title:tt?x:We,ownerState:Ur},Ie,{className:wt(nr.popupIndicator,Ie==null?void 0:Ie.className),children:it})):null]})}),inputProps:Q({className:nr.input,disabled:P,readOnly:Pt},ut())})})),zt?at:null]})}),YCe=Id(I.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function ZCe(e){return dn("MuiAvatar",e)}const XCe=hn("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),KCe=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],JCe=e=>{const{classes:t,variant:n,colorDefault:r}=e;return pn({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},ZCe,t)},e5e=lt("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:Q({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:Q({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),t5e=lt("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),n5e=lt(YCe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function r5e({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,a]=M.useState(!1);return M.useEffect(()=>{if(!n&&!r)return;a(!1);let s=!0;const o=new Image;return o.onload=()=>{s&&a("loaded")},o.onerror=()=>{s&&a("error")},o.crossOrigin=e,o.referrerPolicy=t,o.src=n,r&&(o.srcset=r),()=>{s=!1}},[e,t,n,r]),i}const a1=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiAvatar"}),{alt:i,children:a,className:s,component:o="div",slots:l={},slotProps:u={},imgProps:d,sizes:f,src:p,srcSet:g,variant:O="circular"}=r,S=Tt(r,KCe);let T=null;const w=r5e(Q({},d,{src:p,srcSet:g})),x=p||g,k=x&&w!=="error",_=Q({},r,{colorDefault:!k,component:o,variant:O}),R=JCe(_),[N,P]=a_e("img",{className:R.img,elementType:t5e,externalForwardedProps:{slots:l,slotProps:{img:Q({},d,u.img)}},additionalProps:{alt:i,src:p,srcSet:g,sizes:f},ownerState:_});return k?T=I.jsx(N,Q({},P)):a||a===0?T=a:x&&i?T=i[0]:T=I.jsx(n5e,{ownerState:_,className:R.fallback}),I.jsx(e5e,Q({as:o,ownerState:_,className:wt(R.root,s),ref:n},S,{children:T}))});function i5e(e){return dn("MuiAvatarGroup",e)}const a5e=hn("MuiAvatarGroup",["root","avatar"]),s5e=["children","className","component","componentsProps","max","renderSurplus","slotProps","spacing","total","variant"],jG={small:-16,medium:null},o5e=e=>{const{classes:t}=e;return pn({root:["root"],avatar:["avatar"]},i5e,t)},l5e=lt("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(e,t)=>Q({[`& .${a5e.avatar}`]:t.avatar},t.root)})(({theme:e,ownerState:t})=>{const n=t.spacing&&jG[t.spacing]!==void 0?jG[t.spacing]:-t.spacing;return{[`& .${XCe.root}`]:{border:`2px solid ${(e.vars||e).palette.background.default}`,boxSizing:"content-box",marginLeft:n??-8,"&:last-child":{marginLeft:0}},display:"flex",flexDirection:"row-reverse"}}),u5e=M.forwardRef(function(t,n){var r;const i=mn({props:t,name:"MuiAvatarGroup"}),{children:a,className:s,component:o="div",componentsProps:l={},max:u=5,renderSurplus:d,slotProps:f={},spacing:p="medium",total:g,variant:O="circular"}=i,S=Tt(i,s5e);let T=u<2?2:u;const w=Q({},i,{max:u,spacing:p,component:o,variant:O}),x=o5e(w),k=M.Children.toArray(a).filter(j=>M.isValidElement(j)),_=g||k.length;_===T&&(T+=1),T=Math.min(_+1,T);const R=Math.min(k.length,T-1),N=Math.max(_-T,_-R,0),P=d?d(N):`+${N}`,L=(r=f.additionalAvatar)!=null?r:l.additionalAvatar;return I.jsxs(l5e,Q({as:o,ownerState:w,className:wt(x.root,s),ref:n},S,{children:[N?I.jsx(a1,Q({variant:O},L,{className:wt(x.avatar,L==null?void 0:L.className),children:P})):null,k.slice(0,R).reverse().map(j=>M.cloneElement(j,{className:wt(j.props.className,x.avatar),variant:j.props.variant||O}))]}))}),c5e=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],d5e={entering:{opacity:1},entered:{opacity:1}},d3=M.forwardRef(function(t,n){const r=Uf(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:o,easing:l,in:u,onEnter:d,onEntered:f,onEntering:p,onExit:g,onExited:O,onExiting:S,style:T,timeout:w=i,TransitionComponent:x=Pc}=t,k=Tt(t,c5e),_=M.useRef(null),R=vr(_,o.ref,n),N=ee=>q=>{if(ee){const ne=_.current;q===void 0?ee(ne):ee(ne,q)}},P=N(p),L=N((ee,q)=>{d$(ee);const ne=im({style:T,timeout:w,easing:l},{mode:"enter"});ee.style.webkitTransition=r.transitions.create("opacity",ne),ee.style.transition=r.transitions.create("opacity",ne),d&&d(ee,q)}),j=N(f),B=N(S),V=N(ee=>{const q=im({style:T,timeout:w,easing:l},{mode:"exit"});ee.style.webkitTransition=r.transitions.create("opacity",q),ee.style.transition=r.transitions.create("opacity",q),g&&g(ee)}),W=N(O),re=ee=>{a&&a(_.current,ee)};return I.jsx(x,Q({appear:s,in:u,nodeRef:_,onEnter:L,onEntered:j,onEntering:P,onExit:V,onExited:W,onExiting:B,addEndListener:re,timeout:w},k,{children:(ee,q)=>M.cloneElement(o,Q({style:Q({opacity:0,visibility:ee==="exited"&&!u?"hidden":void 0},d5e[ee],T,o.props.style),ref:R},q))}))});function f5e(e){return dn("MuiBackdrop",e)}hn("MuiBackdrop",["root","invisible"]);const h5e=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],p5e=e=>{const{classes:t,invisible:n}=e;return pn({root:["root",n&&"invisible"]},f5e,t)},m5e=lt("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>Q({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),rO=M.forwardRef(function(t,n){var r,i,a;const s=mn({props:t,name:"MuiBackdrop"}),{children:o,className:l,component:u="div",components:d={},componentsProps:f={},invisible:p=!1,open:g,slotProps:O={},slots:S={},TransitionComponent:T=d3,transitionDuration:w}=s,x=Tt(s,h5e),k=Q({},s,{component:u,invisible:p}),_=p5e(k),R=(r=O.root)!=null?r:f.root;return I.jsx(T,Q({in:g,timeout:w},x,{children:I.jsx(m5e,Q({"aria-hidden":!0},R,{as:(i=(a=S.root)!=null?a:d.Root)!=null?i:u,className:wt(_.root,l,R==null?void 0:R.className),ownerState:Q({},k,R==null?void 0:R.ownerState),classes:_,ref:n,children:o}))}))}),g5e=hn("MuiBox",["root"]),b5e=o$(),ea=yke({themeId:gv,defaultTheme:b5e,defaultClassName:g5e.root,generateClassName:J9.generate});function y5e(e){return dn("MuiButton",e)}const fA=hn("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),v5e=M.createContext({}),O5e=M.createContext(void 0),S5e=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],E5e=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,classes:s}=e,o={root:["root",a,`${a}${st(t)}`,`size${st(i)}`,`${a}Size${st(i)}`,`color${st(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${st(i)}`],endIcon:["icon","endIcon",`iconSize${st(i)}`]},l=pn(o,y5e,s);return Q({},s,l)},Xse=e=>Q({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),w5e=lt(Mf,{shouldForwardProp:e=>Ys(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${st(n.color)}`],t[`size${st(n.size)}`],t[`${n.variant}Size${st(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return Q({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Q({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Qn(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Q({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${fA.focusVisible}`]:Q({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${fA.disabled}`]:Q({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Qn(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${fA.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${fA.disabled}`]:{boxShadow:"none"}}),T5e=lt("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${st(n.size)}`]]}})(({ownerState:e})=>Q({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Xse(e))),x5e=lt("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${st(n.size)}`]]}})(({ownerState:e})=>Q({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Xse(e))),po=M.forwardRef(function(t,n){const r=M.useContext(v5e),i=M.useContext(O5e),a=yv(r,t),s=mn({props:a,name:"MuiButton"}),{children:o,color:l="primary",component:u="button",className:d,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:g=!1,endIcon:O,focusVisibleClassName:S,fullWidth:T=!1,size:w="medium",startIcon:x,type:k,variant:_="text"}=s,R=Tt(s,S5e),N=Q({},s,{color:l,component:u,disabled:f,disableElevation:p,disableFocusRipple:g,fullWidth:T,size:w,type:k,variant:_}),P=E5e(N),L=x&&I.jsx(T5e,{className:P.startIcon,ownerState:N,children:x}),j=O&&I.jsx(x5e,{className:P.endIcon,ownerState:N,children:O}),B=i||"";return I.jsxs(w5e,Q({ownerState:N,className:wt(r.className,P.root,d,B),component:u,disabled:f,focusRipple:!g,focusVisibleClassName:wt(P.focusVisible,S),ref:n,type:k},R,{classes:P,children:[L,o,j]}))});function k5e(e){return dn("MuiCard",e)}hn("MuiCard",["root"]);const A5e=["className","raised"],_5e=e=>{const{classes:t}=e;return pn({root:["root"]},k5e,t)},C5e=lt(Gs,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Kse=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiCard"}),{className:i,raised:a=!1}=r,s=Tt(r,A5e),o=Q({},r,{raised:a}),l=_5e(o);return I.jsx(C5e,Q({className:wt(l.root,i),elevation:a?8:void 0,ref:n,ownerState:o},s))});function R5e(e){return dn("MuiCardActionArea",e)}const CN=hn("MuiCardActionArea",["root","focusVisible","focusHighlight"]),I5e=["children","className","focusVisibleClassName"],N5e=e=>{const{classes:t}=e;return pn({root:["root"],focusHighlight:["focusHighlight"]},R5e,t)},D5e=lt(Mf,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${CN.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${CN.focusVisible} .${CN.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}})),P5e=lt("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:(e,t)=>t.focusHighlight})(({theme:e})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})})),L5e=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiCardActionArea"}),{children:i,className:a,focusVisibleClassName:s}=r,o=Tt(r,I5e),l=r,u=N5e(l);return I.jsxs(D5e,Q({className:wt(u.root,a),focusVisibleClassName:wt(s,u.focusVisible),ref:n,ownerState:l},o,{children:[i,I.jsx(P5e,{className:u.focusHighlight,ownerState:l})]}))});function M5e(e){return dn("MuiCardContent",e)}hn("MuiCardContent",["root"]);const $5e=["className","component"],F5e=e=>{const{classes:t}=e;return pn({root:["root"]},M5e,t)},B5e=lt("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),U5e=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiCardContent"}),{className:i,component:a="div"}=r,s=Tt(r,$5e),o=Q({},r,{component:a}),l=F5e(o);return I.jsx(B5e,Q({as:a,className:wt(l.root,i),ownerState:o,ref:n},s))});function z5e(e){return dn("PrivateSwitchBase",e)}hn("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const j5e=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],H5e=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,a={root:["root",n&&"checked",r&&"disabled",i&&`edge${st(i)}`],input:["input"]};return pn(a,z5e,t)},Q5e=lt(Mf)(({ownerState:e})=>Q({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),W5e=lt("input",{shouldForwardProp:Ys})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),w$=M.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:a,className:s,defaultChecked:o,disabled:l,disableFocusRipple:u=!1,edge:d=!1,icon:f,id:p,inputProps:g,inputRef:O,name:S,onBlur:T,onChange:w,onFocus:x,readOnly:k,required:_=!1,tabIndex:R,type:N,value:P}=t,L=Tt(t,j5e),[j,B]=Cf({controlled:i,default:!!o,name:"SwitchBase",state:"checked"}),V=zf(),W=ie=>{x&&x(ie),V&&V.onFocus&&V.onFocus(ie)},re=ie=>{T&&T(ie),V&&V.onBlur&&V.onBlur(ie)},ee=ie=>{if(ie.nativeEvent.defaultPrevented)return;const H=ie.target.checked;B(H),w&&w(ie,H)};let q=l;V&&typeof q>"u"&&(q=V.disabled);const ne=N==="checkbox"||N==="radio",K=Q({},t,{checked:j,disabled:q,disableFocusRipple:u,edge:d}),G=H5e(K);return I.jsxs(Q5e,Q({component:"span",className:wt(G.root,s),centerRipple:!0,focusRipple:!u,disabled:q,tabIndex:null,role:void 0,onFocus:W,onBlur:re,ownerState:K,ref:n},L,{children:[I.jsx(W5e,Q({autoFocus:r,checked:i,defaultChecked:o,className:G.input,disabled:q,id:ne?p:void 0,name:S,onChange:ee,readOnly:k,ref:O,required:_,ownerState:K,tabIndex:R,type:N},N==="checkbox"&&P===void 0?{}:{value:P},g)),j?a:f]}))}),V5e=Id(I.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),q5e=Id(I.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),G5e=Id(I.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Y5e(e){return dn("MuiCheckbox",e)}const RN=hn("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Z5e=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],X5e=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,a={root:["root",n&&"indeterminate",`color${st(r)}`,`size${st(i)}`]},s=pn(a,Y5e,t);return Q({},t,s)},K5e=lt(w$,{shouldForwardProp:e=>Ys(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${st(n.size)}`],n.color!=="default"&&t[`color${st(n.color)}`]]}})(({theme:e,ownerState:t})=>Q({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${RN.checked}, &.${RN.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${RN.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),J5e=I.jsx(q5e,{}),eRe=I.jsx(V5e,{}),tRe=I.jsx(G5e,{}),X5=M.forwardRef(function(t,n){var r,i;const a=mn({props:t,name:"MuiCheckbox"}),{checkedIcon:s=J5e,color:o="primary",icon:l=eRe,indeterminate:u=!1,indeterminateIcon:d=tRe,inputProps:f,size:p="medium",className:g}=a,O=Tt(a,Z5e),S=u?d:l,T=u?d:s,w=Q({},a,{color:o,indeterminate:u,size:p}),x=X5e(w);return I.jsx(K5e,Q({type:"checkbox",inputProps:Q({"data-indeterminate":u},f),icon:M.cloneElement(S,{fontSize:(r=S.props.fontSize)!=null?r:p}),checkedIcon:M.cloneElement(T,{fontSize:(i=T.props.fontSize)!=null?i:p}),ownerState:w,ref:n,className:wt(x.root,g)},O,{classes:x}))});function nRe(e){return dn("MuiCircularProgress",e)}hn("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const rRe=["className","color","disableShrink","size","style","thickness","value","variant"];let K5=e=>e,HG,QG,WG,VG;const Xp=44,iRe=Xv(HG||(HG=K5` - 0% { - transform: rotate(0deg); - } - - 100% { - transform: rotate(360deg); - } -`)),aRe=Xv(QG||(QG=K5` - 0% { - stroke-dasharray: 1px, 200px; - stroke-dashoffset: 0; - } - - 50% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -15px; - } - - 100% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -125px; - } -`)),sRe=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,a={root:["root",n,`color${st(r)}`],svg:["svg"],circle:["circle",`circle${st(n)}`,i&&"circleDisableShrink"]};return pn(a,nRe,t)},oRe=lt("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${st(n.color)}`]]}})(({ownerState:e,theme:t})=>Q({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&O5(WG||(WG=K5` - animation: ${0} 1.4s linear infinite; - `),iRe)),lRe=lt("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),uRe=lt("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${st(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>Q({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&O5(VG||(VG=K5` - animation: ${0} 1.4s ease-in-out infinite; - `),aRe)),kd=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiCircularProgress"}),{className:i,color:a="primary",disableShrink:s=!1,size:o=40,style:l,thickness:u=3.6,value:d=0,variant:f="indeterminate"}=r,p=Tt(r,rRe),g=Q({},r,{color:a,disableShrink:s,size:o,thickness:u,value:d,variant:f}),O=sRe(g),S={},T={},w={};if(f==="determinate"){const x=2*Math.PI*((Xp-u)/2);S.strokeDasharray=x.toFixed(3),w["aria-valuenow"]=Math.round(d),S.strokeDashoffset=`${((100-d)/100*x).toFixed(3)}px`,T.transform="rotate(-90deg)"}return I.jsx(oRe,Q({className:wt(O.root,i),style:Q({width:o,height:o},T,l),ownerState:g,ref:n,role:"progressbar"},w,p,{children:I.jsx(lRe,{className:O.svg,ownerState:g,viewBox:`${Xp/2} ${Xp/2} ${Xp} ${Xp}`,children:I.jsx(uRe,{className:O.circle,style:S,ownerState:g,cx:Xp,cy:Xp,r:(Xp-u)/2,fill:"none",strokeWidth:u})})}))});function qG(e){return e.substring(2).toLowerCase()}function cRe(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const d=vr(t.ref,o),f=Qs(O=>{const S=u.current;u.current=!1;const T=ca(o.current);if(!l.current||!o.current||"clientX"in O&&cRe(O,T))return;if(s.current){s.current=!1;return}let w;O.composedPath?w=O.composedPath().indexOf(o.current)>-1:w=!T.documentElement.contains(O.target)||o.current.contains(O.target),!w&&(n||!S)&&i(O)}),p=O=>S=>{u.current=!0;const T=t.props[O];T&&T(S)},g={ref:d};return a!==!1&&(g[a]=p(a)),M.useEffect(()=>{if(a!==!1){const O=qG(a),S=ca(o.current),T=()=>{s.current=!0};return S.addEventListener(O,f),S.addEventListener("touchmove",T),()=>{S.removeEventListener(O,f),S.removeEventListener("touchmove",T)}}},[f,a]),r!==!1&&(g[r]=p(r)),M.useEffect(()=>{if(r!==!1){const O=qG(r),S=ca(o.current);return S.addEventListener(O,f),()=>{S.removeEventListener(O,f)}}},[f,r]),I.jsx(M.Fragment,{children:M.cloneElement(t,g)})}const T$=EAe({createStyledComponent:lt("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${st(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>mn({props:e,name:"MuiContainer"})}),fRe=(e,t)=>Q({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),hRe=e=>Q({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),pRe=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,o])=>{var l;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(l=o.palette)==null?void 0:l.mode}});let i=Q({html:fRe(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:Q({margin:0},hRe(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const a=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return a&&(i=[i,a]),i};function mRe(e){const t=mn({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return I.jsxs(M.Fragment,{children:[I.jsx(Yse,{styles:i=>pRe(i,r)}),n]})}function gRe(e){const t=ca(e);return t.body===e?Lf(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function l2(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function GG(e){return parseInt(Lf(e).getComputedStyle(e).paddingRight,10)||0}function bRe(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function YG(e,t,n,r,i){const a=[t,n,...r];[].forEach.call(e.children,s=>{const o=a.indexOf(s)===-1,l=!bRe(s);o&&l&&l2(s,i)})}function IN(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function yRe(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(gRe(r)){const s=mse(ca(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${GG(r)+s}px`;const o=ca(r).querySelectorAll(".mui-fixed");[].forEach.call(o,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${GG(l)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=ca(r).body;else{const s=r.parentElement,o=Lf(r);a=(s==null?void 0:s.nodeName)==="HTML"&&o.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:s,property:o})=>{a?s.style.setProperty(o,a):s.style.removeProperty(o)})}}function vRe(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class ORe{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&l2(t.modalRef,!1);const i=vRe(n);YG(n,t.mount,t.modalRef,i,!0);const a=IN(this.containers,s=>s.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=IN(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=yRe(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=IN(this.containers,s=>s.modals.indexOf(t)!==-1),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&l2(t.modalRef,n),YG(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&l2(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const SRe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ERe(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function wRe(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function TRe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||wRe(e))}function xRe(e){const t=[],n=[];return Array.from(e.querySelectorAll(SRe)).forEach((r,i)=>{const a=ERe(r);a===-1||!TRe(r)||(a===0?t.push(r):n.push({documentOrder:i,tabIndex:a,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function kRe(){return!0}function ARe(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=xRe,isEnabled:s=kRe,open:o}=e,l=M.useRef(!1),u=M.useRef(null),d=M.useRef(null),f=M.useRef(null),p=M.useRef(null),g=M.useRef(!1),O=M.useRef(null),S=vr(t.ref,O),T=M.useRef(null);M.useEffect(()=>{!o||!O.current||(g.current=!n)},[n,o]),M.useEffect(()=>{if(!o||!O.current)return;const k=ca(O.current);return O.current.contains(k.activeElement)||(O.current.hasAttribute("tabIndex")||O.current.setAttribute("tabIndex","-1"),g.current&&O.current.focus()),()=>{i||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[o]),M.useEffect(()=>{if(!o||!O.current)return;const k=ca(O.current),_=P=>{T.current=P,!(r||!s()||P.key!=="Tab")&&k.activeElement===O.current&&P.shiftKey&&(l.current=!0,d.current&&d.current.focus())},R=()=>{const P=O.current;if(P===null)return;if(!k.hasFocus()||!s()||l.current){l.current=!1;return}if(P.contains(k.activeElement)||r&&k.activeElement!==u.current&&k.activeElement!==d.current)return;if(k.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!g.current)return;let L=[];if((k.activeElement===u.current||k.activeElement===d.current)&&(L=a(O.current)),L.length>0){var j,B;const V=!!((j=T.current)!=null&&j.shiftKey&&((B=T.current)==null?void 0:B.key)==="Tab"),W=L[0],re=L[L.length-1];typeof W!="string"&&typeof re!="string"&&(V?re.focus():W.focus())}else P.focus()};k.addEventListener("focusin",R),k.addEventListener("keydown",_,!0);const N=setInterval(()=>{k.activeElement&&k.activeElement.tagName==="BODY"&&R()},50);return()=>{clearInterval(N),k.removeEventListener("focusin",R),k.removeEventListener("keydown",_,!0)}},[n,r,i,s,o,a]);const w=k=>{f.current===null&&(f.current=k.relatedTarget),g.current=!0,p.current=k.target;const _=t.props.onFocus;_&&_(k)},x=k=>{f.current===null&&(f.current=k.relatedTarget),g.current=!0};return I.jsxs(M.Fragment,{children:[I.jsx("div",{tabIndex:o?0:-1,onFocus:x,ref:u,"data-testid":"sentinelStart"}),M.cloneElement(t,{ref:S,onFocus:w}),I.jsx("div",{tabIndex:o?0:-1,onFocus:x,ref:d,"data-testid":"sentinelEnd"})]})}function _Re(e){return typeof e=="function"?e():e}function CRe(e){return e?e.props.hasOwnProperty("in"):!1}const RRe=new ORe;function IRe(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=RRe,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:o,children:l,onClose:u,open:d,rootRef:f}=e,p=M.useRef({}),g=M.useRef(null),O=M.useRef(null),S=vr(O,f),[T,w]=M.useState(!d),x=CRe(l);let k=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(k=!1);const _=()=>ca(g.current),R=()=>(p.current.modalRef=O.current,p.current.mount=g.current,p.current),N=()=>{i.mount(R(),{disableScrollLock:r}),O.current&&(O.current.scrollTop=0)},P=Qs(()=>{const ne=_Re(t)||_().body;i.add(R(),ne),O.current&&N()}),L=M.useCallback(()=>i.isTopModal(R()),[i]),j=Qs(ne=>{g.current=ne,ne&&(d&&L()?N():O.current&&l2(O.current,k))}),B=M.useCallback(()=>{i.remove(R(),k)},[k,i]);M.useEffect(()=>()=>{B()},[B]),M.useEffect(()=>{d?P():(!x||!a)&&B()},[d,B,x,a,P]);const V=ne=>K=>{var G;(G=ne.onKeyDown)==null||G.call(ne,K),!(K.key!=="Escape"||K.which===229||!L())&&(n||(K.stopPropagation(),u&&u(K,"escapeKeyDown")))},W=ne=>K=>{var G;(G=ne.onClick)==null||G.call(ne,K),K.target===K.currentTarget&&u&&u(K,"backdropClick")};return{getRootProps:(ne={})=>{const K=a2(e);delete K.onTransitionEnter,delete K.onTransitionExited;const G=Q({},K,ne);return Q({role:"presentation"},G,{onKeyDown:V(G),ref:S})},getBackdropProps:(ne={})=>{const K=ne;return Q({"aria-hidden":!0},K,{onClick:W(K),open:d})},getTransitionProps:()=>{const ne=()=>{w(!1),s&&s()},K=()=>{w(!0),o&&o(),a&&B()};return{onEnter:s3(ne,l==null?void 0:l.props.onEnter),onExited:s3(K,l==null?void 0:l.props.onExited)}},rootRef:S,portalRef:j,isTopModal:L,exited:T,hasTransition:x}}function NRe(e){return dn("MuiModal",e)}hn("MuiModal",["root","hidden","backdrop"]);const DRe=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],PRe=e=>{const{open:t,exited:n,classes:r}=e;return pn({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},NRe,r)},LRe=lt("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>Q({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),MRe=lt(rO,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),iO=M.forwardRef(function(t,n){var r,i,a,s,o,l;const u=mn({name:"MuiModal",props:t}),{BackdropComponent:d=MRe,BackdropProps:f,className:p,closeAfterTransition:g=!1,children:O,container:S,component:T,components:w={},componentsProps:x={},disableAutoFocus:k=!1,disableEnforceFocus:_=!1,disableEscapeKeyDown:R=!1,disablePortal:N=!1,disableRestoreFocus:P=!1,disableScrollLock:L=!1,hideBackdrop:j=!1,keepMounted:B=!1,onBackdropClick:V,open:W,slotProps:re,slots:ee}=u,q=Tt(u,DRe),ne=Q({},u,{closeAfterTransition:g,disableAutoFocus:k,disableEnforceFocus:_,disableEscapeKeyDown:R,disablePortal:N,disableRestoreFocus:P,disableScrollLock:L,hideBackdrop:j,keepMounted:B}),{getRootProps:K,getBackdropProps:G,getTransitionProps:ie,portalRef:H,isTopModal:Re,exited:Se,hasTransition:Z}=IRe(Q({},ne,{rootRef:n})),ke=Q({},ne,{exited:Se}),$e=PRe(ke),ae={};if(O.props.tabIndex===void 0&&(ae.tabIndex="-1"),Z){const{onEnter:jt,onExited:ct}=ie();ae.onEnter=jt,ae.onExited=ct}const Xe=(r=(i=ee==null?void 0:ee.root)!=null?i:w.Root)!=null?r:LRe,We=(a=(s=ee==null?void 0:ee.backdrop)!=null?s:w.Backdrop)!=null?a:d,Ye=(o=re==null?void 0:re.root)!=null?o:x.root,xt=(l=re==null?void 0:re.backdrop)!=null?l:x.backdrop,it=Ho({elementType:Xe,externalSlotProps:Ye,externalForwardedProps:q,getSlotProps:K,additionalProps:{ref:n,as:T},ownerState:ke,className:wt(p,Ye==null?void 0:Ye.className,$e==null?void 0:$e.root,!ke.open&&ke.exited&&($e==null?void 0:$e.hidden))}),Pt=Ho({elementType:We,externalSlotProps:xt,additionalProps:f,getSlotProps:jt=>G(Q({},jt,{onClick:ct=>{V&&V(ct),jt!=null&&jt.onClick&&jt.onClick(ct)}})),className:wt(xt==null?void 0:xt.className,f==null?void 0:f.className,$e==null?void 0:$e.backdrop),ownerState:ke});return!B&&!W&&(!Z||Se)?null:I.jsx(Wse,{ref:H,container:S,disablePortal:N,children:I.jsxs(Xe,Q({},it,{children:[!j&&d?I.jsx(We,Q({},Pt)):null,I.jsx(ARe,{disableEnforceFocus:_,disableAutoFocus:k,disableRestoreFocus:P,isEnabled:Re,open:W,children:M.cloneElement(O,ae)})]}))})});function $Re(e){return dn("MuiDivider",e)}const ZG=hn("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),FRe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],BRe=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:a,orientation:s,textAlign:o,variant:l}=e;return pn({root:["root",t&&"absolute",l,a&&"light",s==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",o==="right"&&s!=="vertical"&&"textAlignRight",o==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},$Re,r)},URe=lt("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>Q({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Qn(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>Q({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>Q({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>Q({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>Q({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),zRe=lt("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>Q({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),wv=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiDivider"}),{absolute:i=!1,children:a,className:s,component:o=a?"div":"hr",flexItem:l=!1,light:u=!1,orientation:d="horizontal",role:f=o!=="hr"?"separator":void 0,textAlign:p="center",variant:g="fullWidth"}=r,O=Tt(r,FRe),S=Q({},r,{absolute:i,component:o,flexItem:l,light:u,orientation:d,role:f,textAlign:p,variant:g}),T=BRe(S);return I.jsx(URe,Q({as:o,className:wt(T.root,s),role:f,ref:n,ownerState:S},O,{children:a?I.jsx(zRe,{className:T.wrapper,ownerState:S,children:a}):null}))});wv.muiSkipListHighlight=!0;const jRe=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function HRe(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),a=Lf(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const u=a.getComputedStyle(t);s=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let o=0,l=0;if(s&&s!=="none"&&typeof s=="string"){const u=s.split("(")[1].split(")")[0].split(",");o=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?i?`translateX(${i.right+o-r.left}px)`:`translateX(${a.innerWidth+o-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-o}px)`:`translateX(-${r.left+r.width-o}px)`:e==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${a.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function QRe(e){return typeof e=="function"?e():e}function hA(e,t,n){const r=QRe(n),i=HRe(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const WRe=M.forwardRef(function(t,n){const r=Uf(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:o=!0,children:l,container:u,direction:d="down",easing:f=i,in:p,onEnter:g,onEntered:O,onEntering:S,onExit:T,onExited:w,onExiting:x,style:k,timeout:_=a,TransitionComponent:R=Pc}=t,N=Tt(t,jRe),P=M.useRef(null),L=vr(l.ref,P,n),j=G=>ie=>{G&&(ie===void 0?G(P.current):G(P.current,ie))},B=j((G,ie)=>{hA(d,G,u),d$(G),g&&g(G,ie)}),V=j((G,ie)=>{const H=im({timeout:_,style:k,easing:f},{mode:"enter"});G.style.webkitTransition=r.transitions.create("-webkit-transform",Q({},H)),G.style.transition=r.transitions.create("transform",Q({},H)),G.style.webkitTransform="none",G.style.transform="none",S&&S(G,ie)}),W=j(O),re=j(x),ee=j(G=>{const ie=im({timeout:_,style:k,easing:f},{mode:"exit"});G.style.webkitTransition=r.transitions.create("-webkit-transform",ie),G.style.transition=r.transitions.create("transform",ie),hA(d,G,u),T&&T(G)}),q=j(G=>{G.style.webkitTransition="",G.style.transition="",w&&w(G)}),ne=G=>{s&&s(P.current,G)},K=M.useCallback(()=>{P.current&&hA(d,P.current,u)},[d,u]);return M.useEffect(()=>{if(p||d==="down"||d==="right")return;const G=B5(()=>{P.current&&hA(d,P.current,u)}),ie=Lf(P.current);return ie.addEventListener("resize",G),()=>{G.clear(),ie.removeEventListener("resize",G)}},[d,p,u]),M.useEffect(()=>{p||K()},[p,K]),I.jsx(R,Q({nodeRef:P,onEnter:B,onEntered:W,onEntering:V,onExit:ee,onExited:q,onExiting:re,addEndListener:ne,appear:o,in:p,timeout:_},N,{children:(G,ie)=>M.cloneElement(l,Q({ref:L,style:Q({visibility:G==="exited"&&!p?"hidden":void 0},k,l.props.style)},ie))}))}),VRe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],qRe=e=>{const{classes:t,disableUnderline:n}=e,i=pn({root:["root",!n&&"underline"],input:["input"]},RCe,t);return Q({},t,i)},GRe=lt(Y5,{shouldForwardProp:e=>Ys(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...q5(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",i=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Q({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${ou.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${ou.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:o}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ou.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ou.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ou.disabled}, .${ou.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ou.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Q({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),YRe=lt(Z5,{name:"MuiFilledInput",slot:"Input",overridesResolver:G5})(({theme:e,ownerState:t})=>Q({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),x$=M.forwardRef(function(t,n){var r,i,a,s;const o=mn({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:d=!1,inputComponent:f="input",multiline:p=!1,slotProps:g,slots:O={},type:S="text"}=o,T=Tt(o,VRe),w=Q({},o,{fullWidth:d,inputComponent:f,multiline:p,type:S}),x=qRe(o),k={root:{ownerState:w},input:{ownerState:w}},_=g??u?Yo(k,g??u):k,R=(r=(i=O.root)!=null?i:l.Root)!=null?r:GRe,N=(a=(s=O.input)!=null?s:l.Input)!=null?a:YRe;return I.jsx(E$,Q({slots:{root:R,input:N},componentsProps:_,fullWidth:d,inputComponent:f,multiline:p,ref:n,type:S},T,{classes:x}))});x$.muiName="Input";function ZRe(e){return dn("MuiFormControl",e)}hn("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const XRe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],KRe=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${st(n)}`,r&&"fullWidth"]};return pn(i,ZRe,t)},JRe=lt("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>Q({},t.root,t[`margin${st(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>Q({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Lc=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiFormControl"}),{children:i,className:a,color:s="primary",component:o="div",disabled:l=!1,error:u=!1,focused:d,fullWidth:f=!1,hiddenLabel:p=!1,margin:g="none",required:O=!1,size:S="medium",variant:T="outlined"}=r,w=Tt(r,XRe),x=Q({},r,{color:s,component:o,disabled:l,error:u,fullWidth:f,hiddenLabel:p,margin:g,required:O,size:S,variant:T}),k=KRe(x),[_,R]=M.useState(()=>{let re=!1;return i&&M.Children.forEach(i,ee=>{if(!i2(ee,["Input","Select"]))return;const q=i2(ee,["Select"])?ee.props.input:ee;q&&ECe(q.props)&&(re=!0)}),re}),[N,P]=M.useState(()=>{let re=!1;return i&&M.Children.forEach(i,ee=>{i2(ee,["Input","Select"])&&(c3(ee.props,!0)||c3(ee.props.inputProps,!0))&&(re=!0)}),re}),[L,j]=M.useState(!1);l&&L&&j(!1);const B=d!==void 0&&!l?d:L;let V;const W=M.useMemo(()=>({adornedStart:_,setAdornedStart:R,color:s,disabled:l,error:u,filled:N,focused:B,fullWidth:f,hiddenLabel:p,size:S,onBlur:()=>{j(!1)},onEmpty:()=>{P(!1)},onFilled:()=>{P(!0)},onFocus:()=>{j(!0)},registerEffect:V,required:O,variant:T}),[_,s,l,u,N,B,f,p,V,O,S,T]);return I.jsx(V5.Provider,{value:W,children:I.jsx(JRe,Q({as:o,ownerState:x,className:wt(k.root,a),ref:n},w,{children:i}))})}),Bn=RAe({createStyledComponent:lt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>mn({props:e,name:"MuiStack"})});function eIe(e){return dn("MuiFormControlLabel",e)}const DE=hn("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),tIe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],nIe=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:a}=e,s={root:["root",n&&"disabled",`labelPlacement${st(r)}`,i&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return pn(s,eIe,t)},rIe=lt("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${DE.label}`]:t.label},t.root,t[`labelPlacement${st(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>Q({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${DE.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${DE.label}`]:{[`&.${DE.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),iIe=lt("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${DE.error}`]:{color:(e.vars||e).palette.error.main}})),uw=M.forwardRef(function(t,n){var r,i;const a=mn({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:o={},control:l,disabled:u,disableTypography:d,label:f,labelPlacement:p="end",required:g,slotProps:O={}}=a,S=Tt(a,tIe),T=zf(),w=(r=u??l.props.disabled)!=null?r:T==null?void 0:T.disabled,x=g??l.props.required,k={disabled:w,required:x};["checked","name","onChange","value","inputRef"].forEach(j=>{typeof l.props[j]>"u"&&typeof a[j]<"u"&&(k[j]=a[j])});const _=vm({props:a,muiFormControl:T,states:["error"]}),R=Q({},a,{disabled:w,labelPlacement:p,required:x,error:_.error}),N=nIe(R),P=(i=O.typography)!=null?i:o.typography;let L=f;return L!=null&&L.type!==wr&&!d&&(L=I.jsx(wr,Q({component:"span"},P,{className:wt(N.label,P==null?void 0:P.className),children:L}))),I.jsxs(rIe,Q({className:wt(N.root,s),ownerState:R,ref:n},S,{children:[M.cloneElement(l,k),x?I.jsxs(Bn,{display:"block",children:[L,I.jsxs(iIe,{ownerState:R,"aria-hidden":!0,className:N.asterisk,children:[" ","*"]})]}):L]}))});function aIe(e){return dn("MuiFormGroup",e)}hn("MuiFormGroup",["root","row","error"]);const sIe=["className","row"],oIe=e=>{const{classes:t,row:n,error:r}=e;return pn({root:["root",n&&"row",r&&"error"]},aIe,t)},lIe=lt("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>Q({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),k$=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiFormGroup"}),{className:i,row:a=!1}=r,s=Tt(r,sIe),o=zf(),l=vm({props:r,muiFormControl:o,states:["error"]}),u=Q({},r,{row:a,error:l.error}),d=oIe(u);return I.jsx(lIe,Q({className:wt(d.root,i),ownerState:u,ref:n},s))});function uIe(e){return dn("MuiFormHelperText",e)}const XG=hn("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var KG;const cIe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],dIe=e=>{const{classes:t,contained:n,size:r,disabled:i,error:a,filled:s,focused:o,required:l}=e,u={root:["root",i&&"disabled",a&&"error",r&&`size${st(r)}`,n&&"contained",o&&"focused",s&&"filled",l&&"required"]};return pn(u,uIe,t)},fIe=lt("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${st(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>Q({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${XG.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${XG.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),aO=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:s="p"}=r,o=Tt(r,cIe),l=zf(),u=vm({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),d=Q({},r,{component:s,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=dIe(d);return I.jsx(fIe,Q({as:s,ownerState:d,className:wt(f.root,a),ref:n},o,{children:i===" "?KG||(KG=I.jsx("span",{className:"notranslate",children:"​"})):i}))});function hIe(e){return dn("MuiFormLabel",e)}const u2=hn("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),pIe=["children","className","color","component","disabled","error","filled","focused","required"],mIe=e=>{const{classes:t,color:n,focused:r,disabled:i,error:a,filled:s,required:o}=e,l={root:["root",`color${st(n)}`,i&&"disabled",a&&"error",s&&"filled",r&&"focused",o&&"required"],asterisk:["asterisk",a&&"error"]};return pn(l,hIe,t)},gIe=lt("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>Q({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>Q({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${u2.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${u2.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${u2.error}`]:{color:(e.vars||e).palette.error.main}})),bIe=lt("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${u2.error}`]:{color:(e.vars||e).palette.error.main}})),J5=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiFormLabel"}),{children:i,className:a,component:s="label"}=r,o=Tt(r,pIe),l=zf(),u=vm({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),d=Q({},r,{color:u.color||"primary",component:s,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=mIe(d);return I.jsxs(gIe,Q({as:s,ownerState:d,className:wt(f.root,a),ref:n},o,{children:[i,u.required&&I.jsxs(bIe,{ownerState:d,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),JG=M.createContext();function yIe(e){return dn("MuiGrid",e)}const vIe=[0,1,2,3,4,5,6,7,8,9,10],OIe=["column-reverse","column","row-reverse","row"],SIe=["nowrap","wrap-reverse","wrap"],XS=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],cw=hn("MuiGrid",["root","container","item","zeroMinWidth",...vIe.map(e=>`spacing-xs-${e}`),...OIe.map(e=>`direction-xs-${e}`),...SIe.map(e=>`wrap-xs-${e}`),...XS.map(e=>`grid-xs-${e}`),...XS.map(e=>`grid-sm-${e}`),...XS.map(e=>`grid-md-${e}`),...XS.map(e=>`grid-lg-${e}`),...XS.map(e=>`grid-xl-${e}`)]),EIe=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Iy(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function wIe({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,i)=>{let a={};if(t[i]&&(n=t[i]),!n)return r;if(n===!0)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=r1({values:t.columns,breakpoints:e.breakpoints.values}),o=typeof s=="object"?s[i]:s;if(o==null)return r;const l=`${Math.round(n/o*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const d=e.spacing(t.columnSpacing);if(d!=="0px"){const f=`calc(${l} + ${Iy(d)})`;u={flexBasis:f,maxWidth:f}}}a=Q({flexBasis:l,flexGrow:0,maxWidth:l},u)}return e.breakpoints.values[i]===0?Object.assign(r,a):r[e.breakpoints.up(i)]=a,r},{})}function TIe({theme:e,ownerState:t}){const n=r1({values:t.direction,breakpoints:e.breakpoints.values});return Pl({theme:e},n,r=>{const i={flexDirection:r};return r.indexOf("column")===0&&(i[`& > .${cw.item}`]={maxWidth:"none"}),i})}function Jse({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(i=>{n===""&&t[i]!==0&&(n=i)});const r=Object.keys(e).sort((i,a)=>e[i]-e[a]);return r.slice(0,r.indexOf(n))}function xIe({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let i={};if(n&&r!==0){const a=r1({values:r,breakpoints:e.breakpoints.values});let s;typeof a=="object"&&(s=Jse({breakpoints:e.breakpoints.values,values:a})),i=Pl({theme:e},a,(o,l)=>{var u;const d=e.spacing(o);return d!=="0px"?{marginTop:`-${Iy(d)}`,[`& > .${cw.item}`]:{paddingTop:Iy(d)}}:(u=s)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${cw.item}`]:{paddingTop:0}}})}return i}function kIe({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let i={};if(n&&r!==0){const a=r1({values:r,breakpoints:e.breakpoints.values});let s;typeof a=="object"&&(s=Jse({breakpoints:e.breakpoints.values,values:a})),i=Pl({theme:e},a,(o,l)=>{var u;const d=e.spacing(o);return d!=="0px"?{width:`calc(100% + ${Iy(d)})`,marginLeft:`-${Iy(d)}`,[`& > .${cw.item}`]:{paddingLeft:Iy(d)}}:(u=s)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${cw.item}`]:{paddingLeft:0}}})}return i}function AIe(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(i=>{const a=e[i];Number(a)>0&&r.push(n[`spacing-${i}-${String(a)}`])}),r}const _Ie=lt("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:i,item:a,spacing:s,wrap:o,zeroMinWidth:l,breakpoints:u}=n;let d=[];r&&(d=AIe(s,u,t));const f=[];return u.forEach(p=>{const g=n[p];g&&f.push(t[`grid-${p}-${String(g)}`])}),[t.root,r&&t.container,a&&t.item,l&&t.zeroMinWidth,...d,i!=="row"&&t[`direction-xs-${String(i)}`],o!=="wrap"&&t[`wrap-xs-${String(o)}`],...f]}})(({ownerState:e})=>Q({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),TIe,xIe,kIe,wIe);function CIe(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const i=e[r];if(Number(i)>0){const a=`spacing-${r}-${String(i)}`;n.push(a)}}),n}const RIe=e=>{const{classes:t,container:n,direction:r,item:i,spacing:a,wrap:s,zeroMinWidth:o,breakpoints:l}=e;let u=[];n&&(u=CIe(a,l));const d=[];l.forEach(p=>{const g=e[p];g&&d.push(`grid-${p}-${String(g)}`)});const f={root:["root",n&&"container",i&&"item",o&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...d]};return pn(f,yIe,t)},fy=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiGrid"}),{breakpoints:i}=Uf(),a=gT(r),{className:s,columns:o,columnSpacing:l,component:u="div",container:d=!1,direction:f="row",item:p=!1,rowSpacing:g,spacing:O=0,wrap:S="wrap",zeroMinWidth:T=!1}=a,w=Tt(a,EIe),x=g||O,k=l||O,_=M.useContext(JG),R=d?o||12:_,N={},P=Q({},w);i.keys.forEach(B=>{w[B]!=null&&(N[B]=w[B],delete P[B])});const L=Q({},a,{columns:R,container:d,direction:f,item:p,rowSpacing:x,columnSpacing:k,wrap:S,zeroMinWidth:T,spacing:O},N,{breakpoints:i.keys}),j=RIe(L);return I.jsx(JG.Provider,{value:R,children:I.jsx(_Ie,Q({ownerState:L,className:wt(j.root,s),as:u,ref:n},P))})}),IIe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function zP(e){return`scale(${e}, ${e**2})`}const NIe={entering:{opacity:1,transform:zP(1)},entered:{opacity:1,transform:"none"}},NN=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),f3=M.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:a,easing:s,in:o,onEnter:l,onEntered:u,onEntering:d,onExit:f,onExited:p,onExiting:g,style:O,timeout:S="auto",TransitionComponent:T=Pc}=t,w=Tt(t,IIe),x=Mg(),k=M.useRef(),_=Uf(),R=M.useRef(null),N=vr(R,a.ref,n),P=q=>ne=>{if(q){const K=R.current;ne===void 0?q(K):q(K,ne)}},L=P(d),j=P((q,ne)=>{d$(q);const{duration:K,delay:G,easing:ie}=im({style:O,timeout:S,easing:s},{mode:"enter"});let H;S==="auto"?(H=_.transitions.getAutoHeightDuration(q.clientHeight),k.current=H):H=K,q.style.transition=[_.transitions.create("opacity",{duration:H,delay:G}),_.transitions.create("transform",{duration:NN?H:H*.666,delay:G,easing:ie})].join(","),l&&l(q,ne)}),B=P(u),V=P(g),W=P(q=>{const{duration:ne,delay:K,easing:G}=im({style:O,timeout:S,easing:s},{mode:"exit"});let ie;S==="auto"?(ie=_.transitions.getAutoHeightDuration(q.clientHeight),k.current=ie):ie=ne,q.style.transition=[_.transitions.create("opacity",{duration:ie,delay:K}),_.transitions.create("transform",{duration:NN?ie:ie*.666,delay:NN?K:K||ie*.333,easing:G})].join(","),q.style.opacity=0,q.style.transform=zP(.75),f&&f(q)}),re=P(p),ee=q=>{S==="auto"&&x.start(k.current||0,q),r&&r(R.current,q)};return I.jsx(T,Q({appear:i,in:o,nodeRef:R,onEnter:j,onEntered:B,onEntering:L,onExit:W,onExited:re,onExiting:V,addEndListener:ee,timeout:S==="auto"?null:S},w,{children:(q,ne)=>M.cloneElement(a,Q({style:Q({opacity:0,transform:zP(.75),visibility:q==="exited"&&!o?"hidden":void 0},NIe[q],O,a.props.style),ref:N},ne))}))});f3.muiSupportAuto=!0;function DIe(e){return dn("MuiIcon",e)}hn("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const PIe=["baseClassName","className","color","component","fontSize"],LIe=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${st(t)}`,`fontSize${st(n)}`]};return pn(i,DIe,r)},MIe=lt("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${st(n.color)}`],t[`fontSize${st(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[t.color]})),eoe=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiIcon"}),{baseClassName:i="material-icons",className:a,color:s="inherit",component:o="span",fontSize:l="medium"}=r,u=Tt(r,PIe),d=Q({},r,{baseClassName:i,color:s,component:o,fontSize:l}),f=LIe(d);return I.jsx(MIe,Q({as:o,className:wt(i,"notranslate",f.root,a),ownerState:d,"aria-hidden":!0,ref:n},u))});eoe.muiName="Icon";const $Ie=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],FIe=e=>{const{classes:t,disableUnderline:n}=e,i=pn({root:["root",!n&&"underline"],input:["input"]},_Ce,t);return Q({},t,i)},BIe=lt(Y5,{shouldForwardProp:e=>Ys(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...q5(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Q({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${m0.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${m0.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${m0.disabled}, .${m0.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${m0.disabled}:before`]:{borderBottomStyle:"dotted"}})}),UIe=lt(Z5,{name:"MuiInput",slot:"Input",overridesResolver:G5})({}),A$=M.forwardRef(function(t,n){var r,i,a,s;const o=mn({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:d,fullWidth:f=!1,inputComponent:p="input",multiline:g=!1,slotProps:O,slots:S={},type:T="text"}=o,w=Tt(o,$Ie),x=FIe(o),_={root:{ownerState:{disableUnderline:l}}},R=O??d?Yo(O??d,_):_,N=(r=(i=S.root)!=null?i:u.Root)!=null?r:BIe,P=(a=(s=S.input)!=null?s:u.Input)!=null?a:UIe;return I.jsx(E$,Q({slots:{root:N,input:P},slotProps:R,fullWidth:f,inputComponent:p,multiline:g,ref:n,type:T},w,{classes:x}))});A$.muiName="Input";function zIe(e){return dn("MuiInputAdornment",e)}const eY=hn("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var tY;const jIe=["children","className","component","disablePointerEvents","disableTypography","position","variant"],HIe=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${st(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},QIe=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:a,variant:s}=e,o={root:["root",n&&"disablePointerEvents",i&&`position${st(i)}`,s,r&&"hiddenLabel",a&&`size${st(a)}`]};return pn(o,zIe,t)},WIe=lt("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:HIe})(({theme:e,ownerState:t})=>Q({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${eY.positionStart}&:not(.${eY.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),jP=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiInputAdornment"}),{children:i,className:a,component:s="div",disablePointerEvents:o=!1,disableTypography:l=!1,position:u,variant:d}=r,f=Tt(r,jIe),p=zf()||{};let g=d;d&&p.variant,p&&!g&&(g=p.variant);const O=Q({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:o,position:u,variant:g}),S=QIe(O);return I.jsx(V5.Provider,{value:null,children:I.jsx(WIe,Q({as:s,ownerState:O,className:wt(S.root,a),ref:n},f,{children:typeof i=="string"&&!l?I.jsx(wr,{color:"text.secondary",children:i}):I.jsxs(M.Fragment,{children:[u==="start"?tY||(tY=I.jsx("span",{className:"notranslate",children:"​"})):null,i]})}))})});function VIe(e){return dn("MuiInputLabel",e)}hn("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const qIe=["disableAnimation","margin","shrink","variant","className"],GIe=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:s,required:o}=e,l={root:["root",n&&"formControl",!a&&"animated",i&&"shrink",r&&r!=="normal"&&`size${st(r)}`,s],asterisk:[o&&"asterisk"]},u=pn(l,VIe,t);return Q({},t,u)},YIe=lt(J5,{shouldForwardProp:e=>Ys(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${u2.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>Q({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&Q({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&Q({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&Q({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),toe=M.forwardRef(function(t,n){const r=mn({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:a,className:s}=r,o=Tt(r,qIe),l=zf();let u=a;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const d=vm({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),f=Q({},r,{disableAnimation:i,formControl:l,shrink:u,size:d.size,variant:d.variant,required:d.required,focused:d.focused}),p=GIe(f);return I.jsx(YIe,Q({"data-shrink":u,ownerState:f,ref:n,className:wt(p.root,s)},o,{classes:p}))}),vc=M.createContext({});function ZIe(e){return dn("MuiList",e)}hn("MuiList",["root","padding","dense","subheader"]);const XIe=["children","className","component","dense","disablePadding","subheader"],KIe=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return pn({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},ZIe,t)},JIe=lt("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>Q({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),noe=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiList"}),{children:i,className:a,component:s="ul",dense:o=!1,disablePadding:l=!1,subheader:u}=r,d=Tt(r,XIe),f=M.useMemo(()=>({dense:o}),[o]),p=Q({},r,{component:s,dense:o,disablePadding:l}),g=KIe(p);return I.jsx(vc.Provider,{value:f,children:I.jsxs(JIe,Q({as:s,className:wt(g.root,a),ref:n,ownerState:p},d,{children:[u,i]}))})});function e6e(e){return dn("MuiListItem",e)}const zb=hn("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function t6e(e){return dn("MuiListItemButton",e)}const jb=hn("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),n6e=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],r6e=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},i6e=e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:a,divider:s,selected:o}=e,u=pn({root:["root",r&&"dense",!a&&"gutters",s&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",o&&"selected"]},t6e,n);return Q({},n,u)},a6e=lt(Mf,{shouldForwardProp:e=>Ys(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:r6e})(({theme:e,ownerState:t})=>Q({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${jb.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${jb.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${jb.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${jb.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${jb.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),nY=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:a=!1,component:s="div",children:o,dense:l=!1,disableGutters:u=!1,divider:d=!1,focusVisibleClassName:f,selected:p=!1,className:g}=r,O=Tt(r,n6e),S=M.useContext(vc),T=M.useMemo(()=>({dense:l||S.dense||!1,alignItems:i,disableGutters:u}),[i,S.dense,l,u]),w=M.useRef(null);Ko(()=>{a&&w.current&&w.current.focus()},[a]);const x=Q({},r,{alignItems:i,dense:T.dense,disableGutters:u,divider:d,selected:p}),k=i6e(x),_=vr(w,n);return I.jsx(vc.Provider,{value:T,children:I.jsx(a6e,Q({ref:_,href:O.href||O.to,component:(O.href||O.to)&&s==="div"?"button":s,focusVisibleClassName:wt(k.focusVisible,f),ownerState:x,className:wt(k.root,g)},O,{classes:k,children:o}))})});function s6e(e){return dn("MuiListItemSecondaryAction",e)}hn("MuiListItemSecondaryAction",["root","disableGutters"]);const o6e=["className"],l6e=e=>{const{disableGutters:t,classes:n}=e;return pn({root:["root",t&&"disableGutters"]},s6e,n)},u6e=lt("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>Q({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),_$=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=r,a=Tt(r,o6e),s=M.useContext(vc),o=Q({},r,{disableGutters:s.disableGutters}),l=l6e(o);return I.jsx(u6e,Q({className:wt(l.root,i),ownerState:o,ref:n},a))});_$.muiName="ListItemSecondaryAction";const c6e=["className"],d6e=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],f6e=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},h6e=e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:a,disableGutters:s,disablePadding:o,divider:l,hasSecondaryAction:u,selected:d}=e;return pn({root:["root",i&&"dense",!s&&"gutters",!o&&"padding",l&&"divider",a&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",d&&"selected"],container:["container"]},e6e,r)},p6e=lt("div",{name:"MuiListItem",slot:"Root",overridesResolver:f6e})(({theme:e,ownerState:t})=>Q({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&Q({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${jb.root}`]:{paddingRight:48}},{[`&.${zb.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${zb.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${zb.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${zb.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${zb.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),m6e=lt("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),g6e=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:a=!1,button:s=!1,children:o,className:l,component:u,components:d={},componentsProps:f={},ContainerComponent:p="li",ContainerProps:{className:g}={},dense:O=!1,disabled:S=!1,disableGutters:T=!1,disablePadding:w=!1,divider:x=!1,focusVisibleClassName:k,secondaryAction:_,selected:R=!1,slotProps:N={},slots:P={}}=r,L=Tt(r.ContainerProps,c6e),j=Tt(r,d6e),B=M.useContext(vc),V=M.useMemo(()=>({dense:O||B.dense||!1,alignItems:i,disableGutters:T}),[i,B.dense,O,T]),W=M.useRef(null);Ko(()=>{a&&W.current&&W.current.focus()},[a]);const re=M.Children.toArray(o),ee=re.length&&i2(re[re.length-1],["ListItemSecondaryAction"]),q=Q({},r,{alignItems:i,autoFocus:a,button:s,dense:V.dense,disabled:S,disableGutters:T,disablePadding:w,divider:x,hasSecondaryAction:ee,selected:R}),ne=h6e(q),K=vr(W,n),G=P.root||d.Root||p6e,ie=N.root||f.root||{},H=Q({className:wt(ne.root,ie.className,l),disabled:S},j);let Re=u||"li";return s&&(H.component=u||"div",H.focusVisibleClassName=wt(zb.focusVisible,k),Re=Mf),ee?(Re=!H.component&&!u?"div":Re,p==="li"&&(Re==="li"?Re="div":H.component==="li"&&(H.component="div")),I.jsx(vc.Provider,{value:V,children:I.jsxs(m6e,Q({as:p,className:wt(ne.container,g),ref:K,ownerState:q},L,{children:[I.jsx(G,Q({},ie,!Rf(G)&&{as:Re,ownerState:Q({},q,ie.ownerState)},H,{children:re})),re.pop()]}))})):I.jsx(vc.Provider,{value:V,children:I.jsxs(G,Q({},ie,{as:Re,ref:K},!Rf(G)&&{ownerState:Q({},q,ie.ownerState)},H,{children:[re,_&&I.jsx(_$,{children:_})]}))})});function b6e(e){return dn("MuiListItemAvatar",e)}hn("MuiListItemAvatar",["root","alignItemsFlexStart"]);const y6e=["className"],v6e=e=>{const{alignItems:t,classes:n}=e;return pn({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},b6e,n)},O6e=lt("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>Q({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),S6e=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiListItemAvatar"}),{className:i}=r,a=Tt(r,y6e),s=M.useContext(vc),o=Q({},r,{alignItems:s.alignItems}),l=v6e(o);return I.jsx(O6e,Q({className:wt(l.root,i),ownerState:o,ref:n},a))});function E6e(e){return dn("MuiListItemIcon",e)}const rY=hn("MuiListItemIcon",["root","alignItemsFlexStart"]),w6e=["className"],T6e=e=>{const{alignItems:t,classes:n}=e;return pn({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},E6e,n)},x6e=lt("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>Q({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),s1=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiListItemIcon"}),{className:i}=r,a=Tt(r,w6e),s=M.useContext(vc),o=Q({},r,{alignItems:s.alignItems}),l=T6e(o);return I.jsx(x6e,Q({className:wt(l.root,i),ownerState:o,ref:n},a))});function k6e(e){return dn("MuiListItemText",e)}const h3=hn("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),A6e=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],_6e=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:a}=e;return pn({root:["root",n&&"inset",a&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},k6e,t)},C6e=lt("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${h3.primary}`]:t.primary},{[`& .${h3.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>Q({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Vh=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiListItemText"}),{children:i,className:a,disableTypography:s=!1,inset:o=!1,primary:l,primaryTypographyProps:u,secondary:d,secondaryTypographyProps:f}=r,p=Tt(r,A6e),{dense:g}=M.useContext(vc);let O=l??i,S=d;const T=Q({},r,{disableTypography:s,inset:o,primary:!!O,secondary:!!S,dense:g}),w=_6e(T);return O!=null&&O.type!==wr&&!s&&(O=I.jsx(wr,Q({variant:g?"body2":"body1",className:w.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:O}))),S!=null&&S.type!==wr&&!s&&(S=I.jsx(wr,Q({variant:"body2",className:w.secondary,color:"text.secondary",display:"block"},f,{children:S}))),I.jsxs(C6e,Q({className:wt(w.root,a),ownerState:T,ref:n},p,{children:[O,S]}))}),R6e=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function DN(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function iY(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function roe(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function KS(e,t,n,r,i,a){let s=!1,o=i(e,t,t?n:!1);for(;o;){if(o===e.firstChild){if(s)return!1;s=!0}const l=r?!1:o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||!roe(o,a)||l)o=i(e,o,n);else return o.focus(),!0}return!1}const dw=M.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:a=!1,children:s,className:o,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:d,variant:f="selectedMenu"}=t,p=Tt(t,R6e),g=M.useRef(null),O=M.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ko(()=>{i&&g.current.focus()},[i]),M.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(k,{direction:_})=>{const R=!g.current.style.width;if(k.clientHeight{const _=g.current,R=k.key,N=ca(_).activeElement;if(R==="ArrowDown")k.preventDefault(),KS(_,N,u,l,DN);else if(R==="ArrowUp")k.preventDefault(),KS(_,N,u,l,iY);else if(R==="Home")k.preventDefault(),KS(_,null,u,l,DN);else if(R==="End")k.preventDefault(),KS(_,null,u,l,iY);else if(R.length===1){const P=O.current,L=R.toLowerCase(),j=performance.now();P.keys.length>0&&(j-P.lastTime>500?(P.keys=[],P.repeating=!0,P.previousKeyMatched=!0):P.repeating&&L!==P.keys[0]&&(P.repeating=!1)),P.lastTime=j,P.keys.push(L);const B=N&&!P.repeating&&roe(N,P);P.previousKeyMatched&&(B||KS(_,N,!1,l,DN,P))?k.preventDefault():P.previousKeyMatched=!1}d&&d(k)},T=vr(g,n);let w=-1;M.Children.forEach(s,(k,_)=>{if(!M.isValidElement(k)){w===_&&(w+=1,w>=s.length&&(w=-1));return}k.props.disabled||(f==="selectedMenu"&&k.props.selected||w===-1)&&(w=_),w===_&&(k.props.disabled||k.props.muiSkipListHighlight||k.type.muiSkipListHighlight)&&(w+=1,w>=s.length&&(w=-1))});const x=M.Children.map(s,(k,_)=>{if(_===w){const R={};return a&&(R.autoFocus=!0),k.props.tabIndex===void 0&&f==="selectedMenu"&&(R.tabIndex=0),M.cloneElement(k,R)}return k});return I.jsx(noe,Q({role:"menu",ref:T,className:o,onKeyDown:S,tabIndex:i?0:-1},p,{children:x}))});function I6e(e){return dn("MuiPopover",e)}hn("MuiPopover",["root","paper"]);const N6e=["onEntering"],D6e=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],P6e=["slotProps"];function aY(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function sY(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function oY(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function PN(e){return typeof e=="function"?e():e}const L6e=e=>{const{classes:t}=e;return pn({root:["root"],paper:["paper"]},I6e,t)},M6e=lt(iO,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ioe=lt(Gs,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),sO=M.forwardRef(function(t,n){var r,i,a;const s=mn({props:t,name:"MuiPopover"}),{action:o,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:f="anchorEl",children:p,className:g,container:O,elevation:S=8,marginThreshold:T=16,open:w,PaperProps:x={},slots:k,slotProps:_,transformOrigin:R={vertical:"top",horizontal:"left"},TransitionComponent:N=f3,transitionDuration:P="auto",TransitionProps:{onEntering:L}={},disableScrollLock:j=!1}=s,B=Tt(s.TransitionProps,N6e),V=Tt(s,D6e),W=(r=_==null?void 0:_.paper)!=null?r:x,re=M.useRef(),ee=vr(re,W.ref),q=Q({},s,{anchorOrigin:u,anchorReference:f,elevation:S,marginThreshold:T,externalPaperSlotProps:W,transformOrigin:R,TransitionComponent:N,transitionDuration:P,TransitionProps:B}),ne=L6e(q),K=M.useCallback(()=>{if(f==="anchorPosition")return d;const jt=PN(l),Ot=(jt&&jt.nodeType===1?jt:ca(re.current).body).getBoundingClientRect();return{top:Ot.top+aY(Ot,u.vertical),left:Ot.left+sY(Ot,u.horizontal)}},[l,u.horizontal,u.vertical,d,f]),G=M.useCallback(jt=>({vertical:aY(jt,R.vertical),horizontal:sY(jt,R.horizontal)}),[R.horizontal,R.vertical]),ie=M.useCallback(jt=>{const ct={width:jt.offsetWidth,height:jt.offsetHeight},Ot=G(ct);if(f==="none")return{top:null,left:null,transformOrigin:oY(Ot)};const yt=K();let Ut=yt.top-Ot.vertical,de=yt.left-Ot.horizontal;const _e=Ut+ct.height,Ne=de+ct.width,Ke=Lf(PN(l)),ut=Ke.innerHeight-T,Je=Ke.innerWidth-T;if(T!==null&&Utut){const gt=_e-ut;Ut-=gt,Ot.vertical+=gt}if(T!==null&&deJe){const gt=Ne-Je;de-=gt,Ot.horizontal+=gt}return{top:`${Math.round(Ut)}px`,left:`${Math.round(de)}px`,transformOrigin:oY(Ot)}},[l,f,K,G,T]),[H,Re]=M.useState(w),Se=M.useCallback(()=>{const jt=re.current;if(!jt)return;const ct=ie(jt);ct.top!==null&&(jt.style.top=ct.top),ct.left!==null&&(jt.style.left=ct.left),jt.style.transformOrigin=ct.transformOrigin,Re(!0)},[ie]);M.useEffect(()=>(j&&window.addEventListener("scroll",Se),()=>window.removeEventListener("scroll",Se)),[l,j,Se]);const Z=(jt,ct)=>{L&&L(jt,ct),Se()},ke=()=>{Re(!1)};M.useEffect(()=>{w&&Se()}),M.useImperativeHandle(o,()=>w?{updatePosition:()=>{Se()}}:null,[w,Se]),M.useEffect(()=>{if(!w)return;const jt=B5(()=>{Se()}),ct=Lf(l);return ct.addEventListener("resize",jt),()=>{jt.clear(),ct.removeEventListener("resize",jt)}},[l,w,Se]);let $e=P;P==="auto"&&!N.muiSupportAuto&&($e=void 0);const ae=O||(l?ca(PN(l)).body:void 0),Xe=(i=k==null?void 0:k.root)!=null?i:M6e,We=(a=k==null?void 0:k.paper)!=null?a:ioe,Ye=Ho({elementType:We,externalSlotProps:Q({},W,{style:H?W.style:Q({},W.style,{opacity:0})}),additionalProps:{elevation:S,ref:ee},ownerState:q,className:wt(ne.paper,W==null?void 0:W.className)}),xt=Ho({elementType:Xe,externalSlotProps:(_==null?void 0:_.root)||{},externalForwardedProps:V,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:ae,open:w},ownerState:q,className:wt(ne.root,g)}),{slotProps:it}=xt,Pt=Tt(xt,P6e);return I.jsx(Xe,Q({},Pt,!Rf(Xe)&&{slotProps:it,disableScrollLock:j},{children:I.jsx(N,Q({appear:!0,in:w,onEntering:Z,onExited:ke,timeout:$e},B,{children:I.jsx(We,Q({},Ye,{children:p}))}))}))});function $6e(e){return dn("MuiMenu",e)}hn("MuiMenu",["root","paper","list"]);const F6e=["onEntering"],B6e=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],U6e={vertical:"top",horizontal:"right"},z6e={vertical:"top",horizontal:"left"},j6e=e=>{const{classes:t}=e;return pn({root:["root"],paper:["paper"],list:["list"]},$6e,t)},H6e=lt(sO,{shouldForwardProp:e=>Ys(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Q6e=lt(ioe,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),W6e=lt(dw,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),aoe=M.forwardRef(function(t,n){var r,i;const a=mn({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:o,className:l,disableAutoFocusItem:u=!1,MenuListProps:d={},onClose:f,open:p,PaperProps:g={},PopoverClasses:O,transitionDuration:S="auto",TransitionProps:{onEntering:T}={},variant:w="selectedMenu",slots:x={},slotProps:k={}}=a,_=Tt(a.TransitionProps,F6e),R=Tt(a,B6e),N=r$(),P=Q({},a,{autoFocus:s,disableAutoFocusItem:u,MenuListProps:d,onEntering:T,PaperProps:g,transitionDuration:S,TransitionProps:_,variant:w}),L=j6e(P),j=s&&!u&&p,B=M.useRef(null),V=(G,ie)=>{B.current&&B.current.adjustStyleForScrollbar(G,{direction:N?"rtl":"ltr"}),T&&T(G,ie)},W=G=>{G.key==="Tab"&&(G.preventDefault(),f&&f(G,"tabKeyDown"))};let re=-1;M.Children.map(o,(G,ie)=>{M.isValidElement(G)&&(G.props.disabled||(w==="selectedMenu"&&G.props.selected||re===-1)&&(re=ie))});const ee=(r=x.paper)!=null?r:Q6e,q=(i=k.paper)!=null?i:g,ne=Ho({elementType:x.root,externalSlotProps:k.root,ownerState:P,className:[L.root,l]}),K=Ho({elementType:ee,externalSlotProps:q,ownerState:P,className:L.paper});return I.jsx(H6e,Q({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:N?"right":"left"},transformOrigin:N?U6e:z6e,slots:{paper:ee,root:x.root},slotProps:{root:ne,paper:K},open:p,ref:n,transitionDuration:S,TransitionProps:Q({onEntering:V},_),ownerState:P},R,{classes:O,children:I.jsx(W6e,Q({onKeyDown:W,actions:B,autoFocus:s&&(re===-1||u),autoFocusItem:j,variant:w},d,{className:wt(L.list,d.className),children:o}))}))});function V6e(e){return dn("MuiMenuItem",e)}const JS=hn("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),q6e=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],G6e=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Y6e=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:s}=e,l=pn({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",a&&"selected"]},V6e,s);return Q({},s,l)},Z6e=lt(Mf,{shouldForwardProp:e=>Ys(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:G6e})(({theme:e,ownerState:t})=>Q({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${JS.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${JS.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${JS.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${JS.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${JS.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${ZG.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${ZG.inset}`]:{marginLeft:52},[`& .${h3.root}`]:{marginTop:0,marginBottom:0},[`& .${h3.inset}`]:{paddingLeft:36},[`& .${rY.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Q({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${rY.root} svg`]:{fontSize:"1.25rem"}}))),Od=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:s=!1,divider:o=!1,disableGutters:l=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:f,className:p}=r,g=Tt(r,q6e),O=M.useContext(vc),S=M.useMemo(()=>({dense:s||O.dense||!1,disableGutters:l}),[O.dense,s,l]),T=M.useRef(null);Ko(()=>{i&&T.current&&T.current.focus()},[i]);const w=Q({},r,{dense:S.dense,divider:o,disableGutters:l}),x=Y6e(r),k=vr(T,n);let _;return r.disabled||(_=f!==void 0?f:-1),I.jsx(vc.Provider,{value:S,children:I.jsx(Z6e,Q({ref:k,role:d,tabIndex:_,component:a,focusVisibleClassName:wt(x.focusVisible,u),className:wt(x.root,p)},g,{ownerState:w,classes:x}))})});function X6e(e){return dn("MuiNativeSelect",e)}const C$=hn("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),K6e=["className","disabled","error","IconComponent","inputRef","variant"],J6e=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${st(n)}`,a&&"iconOpen",r&&"disabled"]};return pn(o,X6e,t)},soe=({ownerState:e,theme:t})=>Q({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Q({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${C$.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),eNe=lt("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ys,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${C$.multiple}`]:t.multiple}]}})(soe),ooe=({ownerState:e,theme:t})=>Q({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${C$.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),tNe=lt("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${st(n.variant)}`],n.open&&t.iconOpen]}})(ooe),nNe=M.forwardRef(function(t,n){const{className:r,disabled:i,error:a,IconComponent:s,inputRef:o,variant:l="standard"}=t,u=Tt(t,K6e),d=Q({},t,{disabled:i,variant:l,error:a}),f=J6e(d);return I.jsxs(M.Fragment,{children:[I.jsx(eNe,Q({ownerState:d,className:wt(f.select,r),disabled:i,ref:o||n},u)),t.multiple?null:I.jsx(tNe,{as:s,ownerState:d,className:f.icon})]})});var lY;const rNe=["children","classes","className","label","notched"],iNe=lt("fieldset",{shouldForwardProp:Ys})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),aNe=lt("legend",{shouldForwardProp:Ys})(({ownerState:e,theme:t})=>Q({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&Q({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function sNe(e){const{className:t,label:n,notched:r}=e,i=Tt(e,rNe),a=n!=null&&n!=="",s=Q({},e,{notched:r,withLabel:a});return I.jsx(iNe,Q({"aria-hidden":!0,className:t,ownerState:s},i,{children:I.jsx(aNe,{ownerState:s,children:a?I.jsx("span",{children:n}):lY||(lY=I.jsx("span",{className:"notranslate",children:"​"}))})}))}const oNe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],lNe=e=>{const{classes:t}=e,r=pn({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},CCe,t);return Q({},t,r)},uNe=lt(Y5,{shouldForwardProp:e=>Ys(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:q5})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Q({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${rf.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${rf.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${rf.focused} .${rf.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${rf.error} .${rf.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${rf.disabled} .${rf.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Q({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),cNe=lt(sNe,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),dNe=lt(Z5,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:G5})(({theme:e,ownerState:t})=>Q({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),R$=M.forwardRef(function(t,n){var r,i,a,s,o;const l=mn({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:d=!1,inputComponent:f="input",label:p,multiline:g=!1,notched:O,slots:S={},type:T="text"}=l,w=Tt(l,oNe),x=lNe(l),k=zf(),_=vm({props:l,muiFormControl:k,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),R=Q({},l,{color:_.color||"primary",disabled:_.disabled,error:_.error,focused:_.focused,formControl:k,fullWidth:d,hiddenLabel:_.hiddenLabel,multiline:g,size:_.size,type:T}),N=(r=(i=S.root)!=null?i:u.Root)!=null?r:uNe,P=(a=(s=S.input)!=null?s:u.Input)!=null?a:dNe;return I.jsx(E$,Q({slots:{root:N,input:P},renderSuffix:L=>I.jsx(cNe,{ownerState:R,className:x.notchedOutline,label:p!=null&&p!==""&&_.required?o||(o=I.jsxs(M.Fragment,{children:[p," ","*"]})):p,notched:typeof O<"u"?O:!!(L.startAdornment||L.filled||L.focused)}),fullWidth:d,inputComponent:f,multiline:g,ref:n,type:T},w,{classes:Q({},x,{notchedOutline:null})}))});R$.muiName="Input";const fNe=Id(I.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),hNe=Id(I.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),pNe=lt("span",{shouldForwardProp:Ys})({position:"relative",display:"flex"}),mNe=lt(fNe)({transform:"scale(1)"}),gNe=lt(hNe)(({theme:e,ownerState:t})=>Q({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function loe(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i=Q({},e,{checked:t});return I.jsxs(pNe,{className:n.root,ownerState:i,children:[I.jsx(mNe,{fontSize:r,className:n.background,ownerState:i}),I.jsx(gNe,{fontSize:r,className:n.dot,ownerState:i})]})}const uoe=M.createContext(void 0);function bNe(){return M.useContext(uoe)}function yNe(e){return dn("MuiRadio",e)}const uY=hn("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),vNe=["checked","checkedIcon","color","icon","name","onChange","size","className"],ONe=e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${st(n)}`,r!=="medium"&&`size${st(r)}`]};return Q({},t,pn(i,yNe,t))},SNe=lt(w$,{shouldForwardProp:e=>Ys(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${st(n.size)}`],t[`color${st(n.color)}`]]}})(({theme:e,ownerState:t})=>Q({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${uY.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${uY.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function ENe(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const cY=I.jsx(loe,{checked:!0}),dY=I.jsx(loe,{}),fY=M.forwardRef(function(t,n){var r,i;const a=mn({props:t,name:"MuiRadio"}),{checked:s,checkedIcon:o=cY,color:l="primary",icon:u=dY,name:d,onChange:f,size:p="medium",className:g}=a,O=Tt(a,vNe),S=Q({},a,{color:l,size:p}),T=ONe(S),w=bNe();let x=s;const k=s3(f,w&&w.onChange);let _=d;return w&&(typeof x>"u"&&(x=ENe(w.value,a.value)),typeof _>"u"&&(_=w.name)),I.jsx(SNe,Q({type:"radio",icon:M.cloneElement(u,{fontSize:(r=dY.props.fontSize)!=null?r:p}),checkedIcon:M.cloneElement(o,{fontSize:(i=cY.props.fontSize)!=null?i:p}),ownerState:S,classes:T,name:_,checked:x,onChange:k,ref:n,className:wt(T.root,g)},O))});function wNe(e){return dn("MuiRadioGroup",e)}hn("MuiRadioGroup",["root","row","error"]);const TNe=["actions","children","className","defaultValue","name","onChange","value"],xNe=e=>{const{classes:t,row:n,error:r}=e;return pn({root:["root",n&&"row",r&&"error"]},wNe,t)},kNe=M.forwardRef(function(t,n){const{actions:r,children:i,className:a,defaultValue:s,name:o,onChange:l,value:u}=t,d=Tt(t,TNe),f=M.useRef(null),p=xNe(t),[g,O]=Cf({controlled:u,default:s,name:"RadioGroup"});M.useImperativeHandle(r,()=>({focus:()=>{let x=f.current.querySelector("input:not(:disabled):checked");x||(x=f.current.querySelector("input:not(:disabled)")),x&&x.focus()}}),[]);const S=vr(n,f),T=eO(o),w=M.useMemo(()=>({name:T,onChange(x){O(x.target.value),l&&l(x,x.target.value)},value:g}),[T,l,O,g]);return I.jsx(uoe.Provider,{value:w,children:I.jsx(k$,Q({role:"radiogroup",ref:S,className:wt(p.root,a)},d,{children:i}))})});function ANe(e){return dn("MuiSelect",e)}const eE=hn("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var hY;const _Ne=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],CNe=lt("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${eE.select}`]:t.select},{[`&.${eE.select}`]:t[n.variant]},{[`&.${eE.error}`]:t.error},{[`&.${eE.multiple}`]:t.multiple}]}})(soe,{[`&.${eE.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),RNe=lt("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${st(n.variant)}`],n.open&&t.iconOpen]}})(ooe),INe=lt("input",{shouldForwardProp:e=>j5(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function pY(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function NNe(e){return e==null||typeof e=="string"&&!e.trim()}const DNe=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${st(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return pn(o,ANe,t)},PNe=M.forwardRef(function(t,n){var r;const{"aria-describedby":i,"aria-label":a,autoFocus:s,autoWidth:o,children:l,className:u,defaultOpen:d,defaultValue:f,disabled:p,displayEmpty:g,error:O=!1,IconComponent:S,inputRef:T,labelId:w,MenuProps:x={},multiple:k,name:_,onBlur:R,onChange:N,onClose:P,onFocus:L,onOpen:j,open:B,readOnly:V,renderValue:W,SelectDisplayProps:re={},tabIndex:ee,value:q,variant:ne="standard"}=t,K=Tt(t,_Ne),[G,ie]=Cf({controlled:q,default:f,name:"Select"}),[H,Re]=Cf({controlled:B,default:d,name:"Select"}),Se=M.useRef(null),Z=M.useRef(null),[ke,$e]=M.useState(null),{current:ae}=M.useRef(B!=null),[Xe,We]=M.useState(),Ye=vr(n,T),xt=M.useCallback(tt=>{Z.current=tt,tt&&$e(tt)},[]),it=ke==null?void 0:ke.parentNode;M.useImperativeHandle(Ye,()=>({focus:()=>{Z.current.focus()},node:Se.current,value:G}),[G]),M.useEffect(()=>{d&&H&&ke&&!ae&&(We(o?null:it.clientWidth),Z.current.focus())},[ke,o]),M.useEffect(()=>{s&&Z.current.focus()},[s]),M.useEffect(()=>{if(!w)return;const tt=ca(Z.current).getElementById(w);if(tt){const Wt=()=>{getSelection().isCollapsed&&Z.current.focus()};return tt.addEventListener("click",Wt),()=>{tt.removeEventListener("click",Wt)}}},[w]);const Pt=(tt,Wt)=>{tt?j&&j(Wt):P&&P(Wt),ae||(We(o?null:it.clientWidth),Re(tt))},jt=tt=>{tt.button===0&&(tt.preventDefault(),Z.current.focus(),Pt(!0,tt))},ct=tt=>{Pt(!1,tt)},Ot=M.Children.toArray(l),yt=tt=>{const Wt=Ot.find(Ht=>Ht.props.value===tt.target.value);Wt!==void 0&&(ie(Wt.props.value),N&&N(tt,Wt))},Ut=tt=>Wt=>{let Ht;if(Wt.currentTarget.hasAttribute("tabindex")){if(k){Ht=Array.isArray(G)?G.slice():[];const zt=G.indexOf(tt.props.value);zt===-1?Ht.push(tt.props.value):Ht.splice(zt,1)}else Ht=tt.props.value;if(tt.props.onClick&&tt.props.onClick(Wt),G!==Ht&&(ie(Ht),N)){const zt=Wt.nativeEvent||Wt,Sn=new zt.constructor(zt.type,zt);Object.defineProperty(Sn,"target",{writable:!0,value:{value:Ht,name:_}}),N(Sn,tt)}k||Pt(!1,Wt)}},de=tt=>{V||[" ","ArrowUp","ArrowDown","Enter"].indexOf(tt.key)!==-1&&(tt.preventDefault(),Pt(!0,tt))},_e=ke!==null&&H,Ne=tt=>{!_e&&R&&(Object.defineProperty(tt,"target",{writable:!0,value:{value:G,name:_}}),R(tt))};delete K["aria-invalid"];let Ke,ut;const Je=[];let gt=!1;(c3({value:G})||g)&&(W?Ke=W(G):gt=!0);const Jt=Ot.map(tt=>{if(!M.isValidElement(tt))return null;let Wt;if(k){if(!Array.isArray(G))throw new Error(rp(2));Wt=G.some(Ht=>pY(Ht,tt.props.value)),Wt&>&&Je.push(tt.props.children)}else Wt=pY(G,tt.props.value),Wt&>&&(ut=tt.props.children);return M.cloneElement(tt,{"aria-selected":Wt?"true":"false",onClick:Ut(tt),onKeyUp:Ht=>{Ht.key===" "&&Ht.preventDefault(),tt.props.onKeyUp&&tt.props.onKeyUp(Ht)},role:"option",selected:Wt,value:void 0,"data-value":tt.props.value})});gt&&(k?Je.length===0?Ke=null:Ke=Je.reduce((tt,Wt,Ht)=>(tt.push(Wt),Ht{const{classes:t}=e;return t},I$={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ys(e)&&e!=="variant",slot:"Root"},FNe=lt(A$,I$)(""),BNe=lt(R$,I$)(""),UNe=lt(x$,I$)(""),N$=M.forwardRef(function(t,n){const r=mn({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:s={},className:o,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:d=Zse,id:f,input:p,inputProps:g,label:O,labelId:S,MenuProps:T,multiple:w=!1,native:x=!1,onClose:k,onOpen:_,open:R,renderValue:N,SelectDisplayProps:P,variant:L="outlined"}=r,j=Tt(r,LNe),B=x?nNe:PNe,V=zf(),W=vm({props:r,muiFormControl:V,states:["variant","error"]}),re=W.variant||L,ee=Q({},r,{variant:re,classes:s}),q=$Ne(ee),ne=Tt(q,MNe),K=p||{standard:I.jsx(FNe,{ownerState:ee}),outlined:I.jsx(BNe,{label:O,ownerState:ee}),filled:I.jsx(UNe,{ownerState:ee})}[re],G=vr(n,K.ref);return I.jsx(M.Fragment,{children:M.cloneElement(K,Q({inputComponent:B,inputProps:Q({children:a,error:W.error,IconComponent:d,variant:re,type:void 0,multiple:w},x?{id:f}:{autoWidth:i,defaultOpen:l,displayEmpty:u,labelId:S,MenuProps:T,onClose:k,onOpen:_,open:R,renderValue:N,SelectDisplayProps:Q({id:f},P)},g,{classes:g?Yo(ne,g.classes):ne},p?p.props.inputProps:{})},(w&&x||u)&&re==="outlined"?{notched:!0}:{},{ref:G,className:wt(K.props.className,o,q.root)},!p&&{variant:re},j))})});N$.muiName="Select";function zNe(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const jNe=2;function coe(e,t){return e-t}function mY(e,t){var n;const{index:r}=(n=e.reduce((i,a,s)=>{const o=Math.abs(t-a);return i===null||o({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},qNe=e=>e;let bA;function bY(){return bA===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?bA=CSS.supports("touch-action","none"):bA=!0),bA}function GNe(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:a=!1,marks:s=!1,max:o=100,min:l=0,name:u,onChange:d,onChangeCommitted:f,orientation:p="horizontal",rootRef:g,scale:O=qNe,step:S=1,shiftStep:T=10,tabIndex:w,value:x}=e,k=M.useRef(),[_,R]=M.useState(-1),[N,P]=M.useState(-1),[L,j]=M.useState(!1),B=M.useRef(0),[V,W]=Cf({controlled:x,default:n??l,name:"Slider"}),re=d&&((be,xe,Ue)=>{const Ct=be.nativeEvent||be,qt=new Ct.constructor(Ct.type,Ct);Object.defineProperty(qt,"target",{writable:!0,value:{value:xe,name:u}}),d(qt,xe,Ue)}),ee=Array.isArray(V);let q=ee?V.slice().sort(coe):[V];q=q.map(be=>be==null?l:Ag(be,l,o));const ne=s===!0&&S!==null?[...Array(Math.floor((o-l)/S)+1)].map((be,xe)=>({value:l+S*xe})):s||[],K=ne.map(be=>be.value),{isFocusVisibleRef:G,onBlur:ie,onFocus:H,ref:Re}=z5(),[Se,Z]=M.useState(-1),ke=M.useRef(),$e=vr(Re,ke),ae=vr(g,$e),Xe=be=>xe=>{var Ue;const Ct=Number(xe.currentTarget.getAttribute("data-index"));H(xe),G.current===!0&&Z(Ct),P(Ct),be==null||(Ue=be.onFocus)==null||Ue.call(be,xe)},We=be=>xe=>{var Ue;ie(xe),G.current===!1&&Z(-1),P(-1),be==null||(Ue=be.onBlur)==null||Ue.call(be,xe)},Ye=(be,xe)=>{const Ue=Number(be.currentTarget.getAttribute("data-index")),Ct=q[Ue],qt=K.indexOf(Ct);let tt=xe;if(ne&&S==null){const Wt=K[K.length-1];tt>Wt?tt=Wt:ttxe=>{var Ue;if(S!==null){const Ct=Number(xe.currentTarget.getAttribute("data-index")),qt=q[Ct];let tt=null;(xe.key==="ArrowLeft"||xe.key==="ArrowDown")&&xe.shiftKey||xe.key==="PageDown"?tt=Math.max(qt-T,l):((xe.key==="ArrowRight"||xe.key==="ArrowUp")&&xe.shiftKey||xe.key==="PageUp")&&(tt=Math.min(qt+T,o)),tt!==null&&(Ye(xe,tt),xe.preventDefault())}be==null||(Ue=be.onKeyDown)==null||Ue.call(be,xe)};Ko(()=>{if(r&&ke.current.contains(document.activeElement)){var be;(be=document.activeElement)==null||be.blur()}},[r]),r&&_!==-1&&R(-1),r&&Se!==-1&&Z(-1);const it=be=>xe=>{var Ue;(Ue=be.onChange)==null||Ue.call(be,xe),Ye(xe,xe.target.valueAsNumber)},Pt=M.useRef();let jt=p;a&&p==="horizontal"&&(jt+="-reverse");const ct=({finger:be,move:xe=!1})=>{const{current:Ue}=ke,{width:Ct,height:qt,bottom:tt,left:Wt}=Ue.getBoundingClientRect();let Ht;jt.indexOf("vertical")===0?Ht=(tt-be.y)/qt:Ht=(be.x-Wt)/Ct,jt.indexOf("-reverse")!==-1&&(Ht=1-Ht);let zt;if(zt=HNe(Ht,l,o),S)zt=WNe(zt,S,l);else{const pr=mY(K,zt);zt=K[pr]}zt=Ag(zt,l,o);let Sn=0;if(ee){xe?Sn=Pt.current:Sn=mY(q,zt),i&&(zt=Ag(zt,q[Sn-1]||-1/0,q[Sn+1]||1/0));const pr=zt;zt=gY({values:q,newValue:zt,index:Sn}),i&&xe||(Sn=zt.indexOf(pr),Pt.current=Sn)}return{newValue:zt,activeIndex:Sn}},Ot=Qs(be=>{const xe=pA(be,k);if(!xe)return;if(B.current+=1,be.type==="mousemove"&&be.buttons===0){yt(be);return}const{newValue:Ue,activeIndex:Ct}=ct({finger:xe,move:!0});mA({sliderRef:ke,activeIndex:Ct,setActive:R}),W(Ue),!L&&B.current>jNe&&j(!0),re&&!gA(Ue,V)&&re(be,Ue,Ct)}),yt=Qs(be=>{const xe=pA(be,k);if(j(!1),!xe)return;const{newValue:Ue}=ct({finger:xe,move:!0});R(-1),be.type==="touchend"&&P(-1),f&&f(be,Ue),k.current=void 0,de()}),Ut=Qs(be=>{if(r)return;bY()||be.preventDefault();const xe=be.changedTouches[0];xe!=null&&(k.current=xe.identifier);const Ue=pA(be,k);if(Ue!==!1){const{newValue:qt,activeIndex:tt}=ct({finger:Ue});mA({sliderRef:ke,activeIndex:tt,setActive:R}),W(qt),re&&!gA(qt,V)&&re(be,qt,tt)}B.current=0;const Ct=ca(ke.current);Ct.addEventListener("touchmove",Ot,{passive:!0}),Ct.addEventListener("touchend",yt,{passive:!0})}),de=M.useCallback(()=>{const be=ca(ke.current);be.removeEventListener("mousemove",Ot),be.removeEventListener("mouseup",yt),be.removeEventListener("touchmove",Ot),be.removeEventListener("touchend",yt)},[yt,Ot]);M.useEffect(()=>{const{current:be}=ke;return be.addEventListener("touchstart",Ut,{passive:bY()}),()=>{be.removeEventListener("touchstart",Ut),de()}},[de,Ut]),M.useEffect(()=>{r&&de()},[r,de]);const _e=be=>xe=>{var Ue;if((Ue=be.onMouseDown)==null||Ue.call(be,xe),r||xe.defaultPrevented||xe.button!==0)return;xe.preventDefault();const Ct=pA(xe,k);if(Ct!==!1){const{newValue:tt,activeIndex:Wt}=ct({finger:Ct});mA({sliderRef:ke,activeIndex:Wt,setActive:R}),W(tt),re&&!gA(tt,V)&&re(xe,tt,Wt)}B.current=0;const qt=ca(ke.current);qt.addEventListener("mousemove",Ot,{passive:!0}),qt.addEventListener("mouseup",yt)},Ne=p3(ee?q[0]:l,l,o),Ke=p3(q[q.length-1],l,o)-Ne,ut=(be={})=>{const xe=a2(be),Ue={onMouseDown:_e(xe||{})},Ct=Q({},xe,Ue);return Q({},be,{ref:ae},Ct)},Je=be=>xe=>{var Ue;(Ue=be.onMouseOver)==null||Ue.call(be,xe);const Ct=Number(xe.currentTarget.getAttribute("data-index"));P(Ct)},gt=be=>xe=>{var Ue;(Ue=be.onMouseLeave)==null||Ue.call(be,xe),P(-1)};return{active:_,axis:jt,axisProps:VNe,dragging:L,focusedThumbIndex:Se,getHiddenInputProps:(be={})=>{var xe;const Ue=a2(be),Ct={onChange:it(Ue||{}),onFocus:Xe(Ue||{}),onBlur:We(Ue||{}),onKeyDown:xt(Ue||{})},qt=Q({},Ue,Ct);return Q({tabIndex:w,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":O(o),"aria-valuemin":O(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(xe=e.step)!=null?xe:void 0,disabled:r},be,qt,{style:Q({},aAe,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:ut,getThumbProps:(be={})=>{const xe=a2(be),Ue={onMouseOver:Je(xe||{}),onMouseLeave:gt(xe||{})};return Q({},be,xe,Ue)},marks:ne,open:N,range:ee,rootRef:ae,trackLeap:Ke,trackOffset:Ne,values:q,getThumbStyle:be=>({pointerEvents:_!==-1&&_!==be?"none":void 0})}}const YNe=e=>!e||!Rf(e);function ZNe(e){return dn("MuiSlider",e)}const fc=hn("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),XNe=e=>{const{open:t}=e;return{offset:wt(t&&fc.valueLabelOpen),circle:fc.valueLabelCircle,label:fc.valueLabelLabel}};function KNe(e){const{children:t,className:n,value:r}=e,i=XNe(e);return t?M.cloneElement(t,{className:wt(t.props.className)},I.jsxs(M.Fragment,{children:[t.props.children,I.jsx("span",{className:wt(i.offset,n),"aria-hidden":!0,children:I.jsx("span",{className:i.circle,children:I.jsx("span",{className:i.label,children:r})})})]})):null}const JNe=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function yY(e){return e}const eDe=lt("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${st(n.color)}`],n.size!=="medium"&&t[`size${st(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${fc.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${fc.dragging}`]:{[`& .${fc.thumb}, & .${fc.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),tDe=lt("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),nDe=lt("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n,track:"inverted"},style:Q({},e.vars?{backgroundColor:e.vars.palette.Slider[`${n}Track`],borderColor:e.vars.palette.Slider[`${n}Track`]}:Q({backgroundColor:sw(e.palette[n].main,.62),borderColor:sw(e.palette[n].main,.62)},e.applyStyles("dark",{backgroundColor:aw(e.palette[n].main,.5)}),e.applyStyles("dark",{borderColor:aw(e.palette[n].main,.5)})))}))]}}),rDe=lt("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${st(n.color)}`],n.size!=="medium"&&t[`thumbSize${st(n.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${fc.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{[`&:hover, &.${fc.focusVisible}`]:Q({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Qn(e.palette[n].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${fc.active}`]:Q({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Qn(e.palette[n].main,.16)}`})}}))]}}),iDe=lt(KNe,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>Q({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${fc.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${fc.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),aDe=lt("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>j5(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),sDe=lt("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>j5(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>Q({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),oDe=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:a,classes:s,color:o,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",o&&`color${st(o)}`,l&&`size${st(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${st(l)}`,o&&`thumbColor${st(o)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return pn(u,ZNe,s)},lDe=({children:e})=>e,uDe=M.forwardRef(function(t,n){var r,i,a,s,o,l,u,d,f,p,g,O,S,T,w,x,k,_,R,N,P,L,j,B;const V=mn({props:t,name:"MuiSlider"}),W=r$(),{"aria-label":re,"aria-valuetext":ee,"aria-labelledby":q,component:ne="span",components:K={},componentsProps:G={},color:ie="primary",classes:H,className:Re,disableSwap:Se=!1,disabled:Z=!1,getAriaLabel:ke,getAriaValueText:$e,marks:ae=!1,max:Xe=100,min:We=0,orientation:Ye="horizontal",shiftStep:xt=10,size:it="medium",step:Pt=1,scale:jt=yY,slotProps:ct,slots:Ot,track:yt="normal",valueLabelDisplay:Ut="off",valueLabelFormat:de=yY}=V,_e=Tt(V,JNe),Ne=Q({},V,{isRtl:W,max:Xe,min:We,classes:H,disabled:Z,disableSwap:Se,orientation:Ye,marks:ae,color:ie,size:it,step:Pt,shiftStep:xt,scale:jt,track:yt,valueLabelDisplay:Ut,valueLabelFormat:de}),{axisProps:Ke,getRootProps:ut,getHiddenInputProps:Je,getThumbProps:gt,open:Jt,active:Fe,axis:we,focusedThumbIndex:be,range:xe,dragging:Ue,marks:Ct,values:qt,trackOffset:tt,trackLeap:Wt,getThumbStyle:Ht}=GNe(Q({},Ne,{rootRef:n}));Ne.marked=Ct.length>0&&Ct.some(Ie=>Ie.label),Ne.dragging=Ue,Ne.focusedThumbIndex=be;const zt=oDe(Ne),Sn=(r=(i=Ot==null?void 0:Ot.root)!=null?i:K.Root)!=null?r:eDe,pr=(a=(s=Ot==null?void 0:Ot.rail)!=null?s:K.Rail)!=null?a:tDe,Mr=(o=(l=Ot==null?void 0:Ot.track)!=null?l:K.Track)!=null?o:nDe,Rr=(u=(d=Ot==null?void 0:Ot.thumb)!=null?d:K.Thumb)!=null?u:rDe,Yr=(f=(p=Ot==null?void 0:Ot.valueLabel)!=null?p:K.ValueLabel)!=null?f:iDe,Ni=(g=(O=Ot==null?void 0:Ot.mark)!=null?O:K.Mark)!=null?g:aDe,hi=(S=(T=Ot==null?void 0:Ot.markLabel)!=null?T:K.MarkLabel)!=null?S:sDe,ji=(w=(x=Ot==null?void 0:Ot.input)!=null?x:K.Input)!=null?w:"input",pi=(k=ct==null?void 0:ct.root)!=null?k:G.root,ds=(_=ct==null?void 0:ct.rail)!=null?_:G.rail,Hi=(R=ct==null?void 0:ct.track)!=null?R:G.track,Ks=(N=ct==null?void 0:ct.thumb)!=null?N:G.thumb,Qi=(P=ct==null?void 0:ct.valueLabel)!=null?P:G.valueLabel,Ur=(L=ct==null?void 0:ct.mark)!=null?L:G.mark,nr=(j=ct==null?void 0:ct.markLabel)!=null?j:G.markLabel,Zr=(B=ct==null?void 0:ct.input)!=null?B:G.input,ze=Ho({elementType:Sn,getSlotProps:ut,externalSlotProps:pi,externalForwardedProps:_e,additionalProps:Q({},YNe(Sn)&&{as:ne}),ownerState:Q({},Ne,pi==null?void 0:pi.ownerState),className:[zt.root,Re]}),nt=Ho({elementType:pr,externalSlotProps:ds,ownerState:Ne,className:zt.rail}),le=Ho({elementType:Mr,externalSlotProps:Hi,additionalProps:{style:Q({},Ke[we].offset(tt),Ke[we].leap(Wt))},ownerState:Q({},Ne,Hi==null?void 0:Hi.ownerState),className:zt.track}),he=Ho({elementType:Rr,getSlotProps:gt,externalSlotProps:Ks,ownerState:Q({},Ne,Ks==null?void 0:Ks.ownerState),className:zt.thumb}),Le=Ho({elementType:Yr,externalSlotProps:Qi,ownerState:Q({},Ne,Qi==null?void 0:Qi.ownerState),className:zt.valueLabel}),Ve=Ho({elementType:Ni,externalSlotProps:Ur,ownerState:Ne,className:zt.mark}),pt=Ho({elementType:hi,externalSlotProps:nr,ownerState:Ne,className:zt.markLabel}),Vt=Ho({elementType:ji,getSlotProps:Je,externalSlotProps:Zr,ownerState:Ne});return I.jsxs(Sn,Q({},ze,{children:[I.jsx(pr,Q({},nt)),I.jsx(Mr,Q({},le)),Ct.filter(Ie=>Ie.value>=We&&Ie.value<=Xe).map((Ie,Te)=>{const at=p3(Ie.value,We,Xe),qe=Ke[we].offset(at);let St;return yt===!1?St=qt.indexOf(Ie.value)!==-1:St=yt==="normal"&&(xe?Ie.value>=qt[0]&&Ie.value<=qt[qt.length-1]:Ie.value<=qt[0])||yt==="inverted"&&(xe?Ie.value<=qt[0]||Ie.value>=qt[qt.length-1]:Ie.value>=qt[0]),I.jsxs(M.Fragment,{children:[I.jsx(Ni,Q({"data-index":Te},Ve,!Rf(Ni)&&{markActive:St},{style:Q({},qe,Ve.style),className:wt(Ve.className,St&&zt.markActive)})),Ie.label!=null?I.jsx(hi,Q({"aria-hidden":!0,"data-index":Te},pt,!Rf(hi)&&{markLabelActive:St},{style:Q({},qe,pt.style),className:wt(zt.markLabel,pt.className,St&&zt.markLabelActive),children:Ie.label})):null]},Te)}),qt.map((Ie,Te)=>{const at=p3(Ie,We,Xe),qe=Ke[we].offset(at),St=Ut==="off"?lDe:Yr;return I.jsx(St,Q({},!Rf(St)&&{valueLabelFormat:de,valueLabelDisplay:Ut,value:typeof de=="function"?de(jt(Ie),Te):de,index:Te,open:Jt===Te||Fe===Te||Ut==="on",disabled:Z},Le,{children:I.jsx(Rr,Q({"data-index":Te},he,{className:wt(zt.thumb,he.className,Fe===Te&&zt.active,be===Te&&zt.focusVisible),style:Q({},qe,Ht(Te),he.style),children:I.jsx(ji,Q({"data-index":Te,"aria-label":ke?ke(Te):re,"aria-valuenow":jt(Ie),"aria-labelledby":q,"aria-valuetext":$e?$e(jt(Ie),Te):ee,value:qt[Te]},Vt))}))}),Te)})]}))});function cDe(e){return dn("MuiTooltip",e)}const R0=hn("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),dDe=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function fDe(e){return Math.round(e*1e5)/1e5}const hDe=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:a}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${st(a.split("-")[0])}`],arrow:["arrow"]};return pn(s,cDe,t)},pDe=lt(W5,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>Q({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${R0.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${R0.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${R0.arrow}`]:Q({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${R0.arrow}`]:Q({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),mDe=lt("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${st(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>Q({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Qn(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${fDe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${R0.popper}[data-popper-placement*="left"] &`]:Q({transformOrigin:"right center"},t.isRtl?Q({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):Q({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${R0.popper}[data-popper-placement*="right"] &`]:Q({transformOrigin:"left center"},t.isRtl?Q({marginRight:"14px"},t.touch&&{marginRight:"24px"}):Q({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${R0.popper}[data-popper-placement*="top"] &`]:Q({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${R0.popper}[data-popper-placement*="bottom"] &`]:Q({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),gDe=lt("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Qn(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let yA=!1;const vY=new bT;let tE={x:0,y:0};function vA(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const I0=M.forwardRef(function(t,n){var r,i,a,s,o,l,u,d,f,p,g,O,S,T,w,x,k,_,R;const N=mn({props:t,name:"MuiTooltip"}),{arrow:P=!1,children:L,components:j={},componentsProps:B={},describeChild:V=!1,disableFocusListener:W=!1,disableHoverListener:re=!1,disableInteractive:ee=!1,disableTouchListener:q=!1,enterDelay:ne=100,enterNextDelay:K=0,enterTouchDelay:G=700,followCursor:ie=!1,id:H,leaveDelay:Re=0,leaveTouchDelay:Se=1500,onClose:Z,onOpen:ke,open:$e,placement:ae="bottom",PopperComponent:Xe,PopperProps:We={},slotProps:Ye={},slots:xt={},title:it,TransitionComponent:Pt=f3,TransitionProps:jt}=N,ct=Tt(N,dDe),Ot=M.isValidElement(L)?L:I.jsx("span",{children:L}),yt=Uf(),Ut=r$(),[de,_e]=M.useState(),[Ne,Ke]=M.useState(null),ut=M.useRef(!1),Je=ee||ie,gt=Mg(),Jt=Mg(),Fe=Mg(),we=Mg(),[be,xe]=Cf({controlled:$e,default:!1,name:"Tooltip",state:"open"});let Ue=be;const Ct=eO(H),qt=M.useRef(),tt=Qs(()=>{qt.current!==void 0&&(document.body.style.WebkitUserSelect=qt.current,qt.current=void 0),we.clear()});M.useEffect(()=>tt,[tt]);const Wt=_t=>{vY.clear(),yA=!0,xe(!0),ke&&!Ue&&ke(_t)},Ht=Qs(_t=>{vY.start(800+Re,()=>{yA=!1}),xe(!1),Z&&Ue&&Z(_t),gt.start(yt.transitions.duration.shortest,()=>{ut.current=!1})}),zt=_t=>{ut.current&&_t.type!=="touchstart"||(de&&de.removeAttribute("title"),Jt.clear(),Fe.clear(),ne||yA&&K?Jt.start(yA?K:ne,()=>{Wt(_t)}):Wt(_t))},Sn=_t=>{Jt.clear(),Fe.start(Re,()=>{Ht(_t)})},{isFocusVisibleRef:pr,onBlur:Mr,onFocus:Rr,ref:Yr}=z5(),[,Ni]=M.useState(!1),hi=_t=>{Mr(_t),pr.current===!1&&(Ni(!1),Sn(_t))},ji=_t=>{de||_e(_t.currentTarget),Rr(_t),pr.current===!0&&(Ni(!0),zt(_t))},pi=_t=>{ut.current=!0;const Gt=Ot.props;Gt.onTouchStart&&Gt.onTouchStart(_t)},ds=_t=>{pi(_t),Fe.clear(),gt.clear(),tt(),qt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",we.start(G,()=>{document.body.style.WebkitUserSelect=qt.current,zt(_t)})},Hi=_t=>{Ot.props.onTouchEnd&&Ot.props.onTouchEnd(_t),tt(),Fe.start(Se,()=>{Ht(_t)})};M.useEffect(()=>{if(!Ue)return;function _t(Gt){(Gt.key==="Escape"||Gt.key==="Esc")&&Ht(Gt)}return document.addEventListener("keydown",_t),()=>{document.removeEventListener("keydown",_t)}},[Ht,Ue]);const Ks=vr(Ot.ref,Yr,_e,n);!it&&it!==0&&(Ue=!1);const Qi=M.useRef(),Ur=_t=>{const Gt=Ot.props;Gt.onMouseMove&&Gt.onMouseMove(_t),tE={x:_t.clientX,y:_t.clientY},Qi.current&&Qi.current.update()},nr={},Zr=typeof it=="string";V?(nr.title=!Ue&&Zr&&!re?it:null,nr["aria-describedby"]=Ue?Ct:null):(nr["aria-label"]=Zr?it:null,nr["aria-labelledby"]=Ue&&!Zr?Ct:null);const ze=Q({},nr,ct,Ot.props,{className:wt(ct.className,Ot.props.className),onTouchStart:pi,ref:Ks},ie?{onMouseMove:Ur}:{}),nt={};q||(ze.onTouchStart=ds,ze.onTouchEnd=Hi),re||(ze.onMouseOver=vA(zt,ze.onMouseOver),ze.onMouseLeave=vA(Sn,ze.onMouseLeave),Je||(nt.onMouseOver=zt,nt.onMouseLeave=Sn)),W||(ze.onFocus=vA(ji,ze.onFocus),ze.onBlur=vA(hi,ze.onBlur),Je||(nt.onFocus=ji,nt.onBlur=hi));const le=M.useMemo(()=>{var _t;let Gt=[{name:"arrow",enabled:!!Ne,options:{element:Ne,padding:4}}];return(_t=We.popperOptions)!=null&&_t.modifiers&&(Gt=Gt.concat(We.popperOptions.modifiers)),Q({},We.popperOptions,{modifiers:Gt})},[Ne,We]),he=Q({},N,{isRtl:Ut,arrow:P,disableInteractive:Je,placement:ae,PopperComponentProp:Xe,touch:ut.current}),Le=hDe(he),Ve=(r=(i=xt.popper)!=null?i:j.Popper)!=null?r:pDe,pt=(a=(s=(o=xt.transition)!=null?o:j.Transition)!=null?s:Pt)!=null?a:f3,Vt=(l=(u=xt.tooltip)!=null?u:j.Tooltip)!=null?l:mDe,Ie=(d=(f=xt.arrow)!=null?f:j.Arrow)!=null?d:gDe,Te=dy(Ve,Q({},We,(p=Ye.popper)!=null?p:B.popper,{className:wt(Le.popper,We==null?void 0:We.className,(g=(O=Ye.popper)!=null?O:B.popper)==null?void 0:g.className)}),he),at=dy(pt,Q({},jt,(S=Ye.transition)!=null?S:B.transition),he),qe=dy(Vt,Q({},(T=Ye.tooltip)!=null?T:B.tooltip,{className:wt(Le.tooltip,(w=(x=Ye.tooltip)!=null?x:B.tooltip)==null?void 0:w.className)}),he),St=dy(Ie,Q({},(k=Ye.arrow)!=null?k:B.arrow,{className:wt(Le.arrow,(_=(R=Ye.arrow)!=null?R:B.arrow)==null?void 0:_.className)}),he);return I.jsxs(M.Fragment,{children:[M.cloneElement(Ot,ze),I.jsx(Ve,Q({as:Xe??W5,placement:ae,anchorEl:ie?{getBoundingClientRect:()=>({top:tE.y,left:tE.x,right:tE.x,bottom:tE.y,width:0,height:0})}:de,popperRef:Qi,open:de?Ue:!1,id:Ct,transition:!0},nt,Te,{popperOptions:le,children:({TransitionProps:_t})=>I.jsx(pt,Q({timeout:yt.transitions.duration.shorter},_t,at,{children:I.jsxs(Vt,Q({},qe,{children:[it,P?I.jsx(Ie,Q({},St,{ref:Ke})):null]}))}))}))]})});function bDe(e){return dn("MuiSwitch",e)}const $o=hn("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),yDe=["className","color","edge","size","sx"],vDe=e=>{const{classes:t,edge:n,size:r,color:i,checked:a,disabled:s}=e,o={root:["root",n&&`edge${st(n)}`,`size${st(r)}`],switchBase:["switchBase",`color${st(i)}`,a&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=pn(o,bDe,t);return Q({},t,l)},ODe=lt("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${st(n.edge)}`],t[`size${st(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${$o.thumb}`]:{width:16,height:16},[`& .${$o.switchBase}`]:{padding:4,[`&.${$o.checked}`]:{transform:"translateX(16px)"}}}}]}),SDe=lt(w$,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${$o.input}`]:t.input},n.color!=="default"&&t[`color${st(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${$o.checked}`]:{transform:"translateX(20px)"},[`&.${$o.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${$o.checked} + .${$o.track}`]:{opacity:.5},[`&.${$o.disabled} + .${$o.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${$o.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Qn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${$o.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qn(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${$o.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?sw(e.palette[t].main,.62):aw(e.palette[t].main,.55)}`}},[`&.${$o.checked} + .${$o.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),EDe=lt("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),wDe=lt("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),TDe=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiSwitch"}),{className:i,color:a="primary",edge:s=!1,size:o="medium",sx:l}=r,u=Tt(r,yDe),d=Q({},r,{color:a,edge:s,size:o}),f=vDe(d),p=I.jsx(wDe,{className:f.thumb,ownerState:d});return I.jsxs(ODe,{className:wt(f.root,i),sx:l,ownerState:d,children:[I.jsx(SDe,Q({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:d},u,{classes:Q({},f,{root:f.switchBase})})),I.jsx(EDe,{className:f.track,ownerState:d})]})}),doe=M.createContext();function xDe(e){return dn("MuiTable",e)}hn("MuiTable",["root","stickyHeader"]);const kDe=["className","component","padding","size","stickyHeader"],ADe=e=>{const{classes:t,stickyHeader:n}=e;return pn({root:["root",n&&"stickyHeader"]},xDe,t)},_De=lt("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>Q({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Q({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),OY="table",CDe=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiTable"}),{className:i,component:a=OY,padding:s="normal",size:o="medium",stickyHeader:l=!1}=r,u=Tt(r,kDe),d=Q({},r,{component:a,padding:s,size:o,stickyHeader:l}),f=ADe(d),p=M.useMemo(()=>({padding:s,size:o,stickyHeader:l}),[s,o,l]);return I.jsx(doe.Provider,{value:p,children:I.jsx(_De,Q({as:a,role:a===OY?null:"table",ref:n,className:wt(f.root,i),ownerState:d},u))})}),eR=M.createContext();function RDe(e){return dn("MuiTableBody",e)}hn("MuiTableBody",["root"]);const IDe=["className","component"],NDe=e=>{const{classes:t}=e;return pn({root:["root"]},RDe,t)},DDe=lt("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),PDe={variant:"body"},SY="tbody",LDe=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiTableBody"}),{className:i,component:a=SY}=r,s=Tt(r,IDe),o=Q({},r,{component:a}),l=NDe(o);return I.jsx(eR.Provider,{value:PDe,children:I.jsx(DDe,Q({className:wt(l.root,i),as:a,ref:n,role:a===SY?null:"rowgroup",ownerState:o},s))})});function MDe(e){return dn("MuiTableCell",e)}const $De=hn("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),FDe=["align","className","component","padding","scope","size","sortDirection","variant"],BDe=e=>{const{classes:t,variant:n,align:r,padding:i,size:a,stickyHeader:s}=e,o={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${st(r)}`,i!=="normal"&&`padding${st(i)}`,`size${st(a)}`]};return pn(o,MDe,t)},UDe=lt("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${st(n.size)}`],n.padding!=="normal"&&t[`padding${st(n.padding)}`],n.align!=="inherit"&&t[`align${st(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>Q({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?sw(Qn(e.palette.divider,1),.88):aw(Qn(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${$De.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Rb=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:s,padding:o,scope:l,size:u,sortDirection:d,variant:f}=r,p=Tt(r,FDe),g=M.useContext(doe),O=M.useContext(eR),S=O&&O.variant==="head";let T;s?T=s:T=S?"th":"td";let w=l;T==="td"?w=void 0:!w&&S&&(w="col");const x=f||O&&O.variant,k=Q({},r,{align:i,component:T,padding:o||(g&&g.padding?g.padding:"normal"),size:u||(g&&g.size?g.size:"medium"),sortDirection:d,stickyHeader:x==="head"&&g&&g.stickyHeader,variant:x}),_=BDe(k);let R=null;return d&&(R=d==="asc"?"ascending":"descending"),I.jsx(UDe,Q({as:T,ref:n,className:wt(_.root,a),"aria-sort":R,scope:w,ownerState:k},p))});function zDe(e){return dn("MuiTableContainer",e)}hn("MuiTableContainer",["root"]);const jDe=["className","component"],HDe=e=>{const{classes:t}=e;return pn({root:["root"]},zDe,t)},QDe=lt("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),WDe=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiTableContainer"}),{className:i,component:a="div"}=r,s=Tt(r,jDe),o=Q({},r,{component:a}),l=HDe(o);return I.jsx(QDe,Q({ref:n,as:a,className:wt(l.root,i),ownerState:o},s))});function VDe(e){return dn("MuiTableHead",e)}hn("MuiTableHead",["root"]);const qDe=["className","component"],GDe=e=>{const{classes:t}=e;return pn({root:["root"]},VDe,t)},YDe=lt("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),ZDe={variant:"head"},EY="thead",XDe=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiTableHead"}),{className:i,component:a=EY}=r,s=Tt(r,qDe),o=Q({},r,{component:a}),l=GDe(o);return I.jsx(eR.Provider,{value:ZDe,children:I.jsx(YDe,Q({as:a,className:wt(l.root,i),ref:n,role:a===EY?null:"rowgroup",ownerState:o},s))})});function KDe(e){return dn("MuiToolbar",e)}hn("MuiToolbar",["root","gutters","regular","dense"]);const JDe=["className","component","disableGutters","variant"],e7e=e=>{const{classes:t,disableGutters:n,variant:r}=e;return pn({root:["root",!n&&"gutters",r]},KDe,t)},t7e=lt("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>Q({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),D$=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiToolbar"}),{className:i,component:a="div",disableGutters:s=!1,variant:o="regular"}=r,l=Tt(r,JDe),u=Q({},r,{component:a,disableGutters:s,variant:o}),d=e7e(u);return I.jsx(t7e,Q({as:a,className:wt(d.root,i),ref:n,ownerState:u},l))});function n7e(e){return dn("MuiTableRow",e)}const wY=hn("MuiTableRow",["root","selected","hover","head","footer"]),r7e=["className","component","hover","selected"],i7e=e=>{const{classes:t,selected:n,hover:r,head:i,footer:a}=e;return pn({root:["root",n&&"selected",r&&"hover",i&&"head",a&&"footer"]},n7e,t)},a7e=lt("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${wY.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${wY.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),TY="tr",xY=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiTableRow"}),{className:i,component:a=TY,hover:s=!1,selected:o=!1}=r,l=Tt(r,r7e),u=M.useContext(eR),d=Q({},r,{component:a,hover:s,selected:o,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=i7e(d);return I.jsx(a7e,Q({as:a,ref:n,className:wt(f.root,i),role:a===TY?null:"row",ownerState:d},l))});function s7e(e){return dn("MuiTextField",e)}hn("MuiTextField",["root"]);const o7e=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],l7e={standard:A$,filled:x$,outlined:R$},u7e=e=>{const{classes:t}=e;return pn({root:["root"]},s7e,t)},c7e=lt(Lc,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ST=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:a=!1,children:s,className:o,color:l="primary",defaultValue:u,disabled:d=!1,error:f=!1,FormHelperTextProps:p,fullWidth:g=!1,helperText:O,id:S,InputLabelProps:T,inputProps:w,InputProps:x,inputRef:k,label:_,maxRows:R,minRows:N,multiline:P=!1,name:L,onBlur:j,onChange:B,onFocus:V,placeholder:W,required:re=!1,rows:ee,select:q=!1,SelectProps:ne,type:K,value:G,variant:ie="outlined"}=r,H=Tt(r,o7e),Re=Q({},r,{autoFocus:a,color:l,disabled:d,error:f,fullWidth:g,multiline:P,required:re,select:q,variant:ie}),Se=u7e(Re),Z={};ie==="outlined"&&(T&&typeof T.shrink<"u"&&(Z.notched=T.shrink),Z.label=_),q&&((!ne||!ne.native)&&(Z.id=void 0),Z["aria-describedby"]=void 0);const ke=eO(S),$e=O&&ke?`${ke}-helper-text`:void 0,ae=_&&ke?`${ke}-label`:void 0,Xe=l7e[ie],We=I.jsx(Xe,Q({"aria-describedby":$e,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:g,multiline:P,name:L,rows:ee,maxRows:R,minRows:N,type:K,value:G,id:ke,inputRef:k,onBlur:j,onChange:B,onFocus:V,placeholder:W,inputProps:w},Z,x));return I.jsxs(c7e,Q({className:wt(Se.root,o),disabled:d,error:f,fullWidth:g,ref:n,required:re,color:l,variant:ie,ownerState:Re},H,{children:[_!=null&&_!==""&&I.jsx(toe,Q({htmlFor:ke,id:ae},T,{children:_})),q?I.jsx(N$,Q({"aria-describedby":$e,id:ke,labelId:ae,value:G,input:We},ne,{children:s})):We,O&&I.jsx(aO,Q({id:$e},p,{children:O}))]}))});function d7e(e){return dn("MuiToggleButton",e)}const hy=hn("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),foe=M.createContext({}),hoe=M.createContext(void 0);function f7e(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.indexOf(e)>=0:e===t}const h7e=["value"],p7e=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],m7e=e=>{const{classes:t,fullWidth:n,selected:r,disabled:i,size:a,color:s}=e,o={root:["root",r&&"selected",i&&"disabled",n&&"fullWidth",`size${st(a)}`,s]};return pn(o,d7e,t)},g7e=lt(Mf,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${st(n.size)}`]]}})(({theme:e,ownerState:t})=>{let n=t.color==="standard"?e.palette.text.primary:e.palette[t.color].main,r;return e.vars&&(n=t.color==="standard"?e.vars.palette.text.primary:e.vars.palette[t.color].main,r=t.color==="standard"?e.vars.palette.text.primaryChannel:e.vars.palette[t.color].mainChannel),Q({},e.typography.button,{borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active},t.fullWidth&&{width:"100%"},{[`&.${hy.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:sA(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${hy.selected}`]:{color:n,backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:sA(n,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${r} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:sA(n,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:sA(n,e.palette.action.selectedOpacity)}}}},t.size==="small"&&{padding:7,fontSize:e.typography.pxToRem(13)},t.size==="large"&&{padding:15,fontSize:e.typography.pxToRem(15)})}),V4=M.forwardRef(function(t,n){const r=M.useContext(foe),{value:i}=r,a=Tt(r,h7e),s=M.useContext(hoe),o=yv(Q({},a,{selected:f7e(t.value,i)}),t),l=mn({props:o,name:"MuiToggleButton"}),{children:u,className:d,color:f="standard",disabled:p=!1,disableFocusRipple:g=!1,fullWidth:O=!1,onChange:S,onClick:T,selected:w,size:x="medium",value:k}=l,_=Tt(l,p7e),R=Q({},l,{color:f,disabled:p,disableFocusRipple:g,fullWidth:O,size:x}),N=m7e(R),P=j=>{T&&(T(j,k),j.defaultPrevented)||S&&S(j,k)},L=s||"";return I.jsx(g7e,Q({className:wt(a.className,N.root,d,L),disabled:p,focusRipple:!g,ref:n,onClick:P,onChange:S,value:k,ownerState:R,"aria-pressed":w},_,{children:u}))});function b7e(e){return dn("MuiToggleButtonGroup",e)}const Yi=hn("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),y7e=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],v7e=e=>{const{classes:t,orientation:n,fullWidth:r,disabled:i}=e,a={root:["root",n==="vertical"&&"vertical",r&&"fullWidth"],grouped:["grouped",`grouped${st(n)}`,i&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return pn(a,b7e,t)},O7e=lt("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Yi.grouped}`]:t.grouped},{[`& .${Yi.grouped}`]:t[`grouped${st(n.orientation)}`]},{[`& .${Yi.firstButton}`]:t.firstButton},{[`& .${Yi.lastButton}`]:t.lastButton},{[`& .${Yi.middleButton}`]:t.middleButton},t.root,n.orientation==="vertical"&&t.vertical,n.fullWidth&&t.fullWidth]}})(({ownerState:e,theme:t})=>Q({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},e.orientation==="vertical"&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${Yi.grouped}`]:Q({},e.orientation==="horizontal"?{[`&.${Yi.selected} + .${Yi.grouped}.${Yi.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${Yi.selected} + .${Yi.grouped}.${Yi.selected}`]:{borderTop:0,marginTop:0}})},e.orientation==="horizontal"?{[`& .${Yi.firstButton},& .${Yi.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Yi.lastButton},& .${Yi.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${Yi.firstButton},& .${Yi.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${Yi.lastButton},& .${Yi.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},e.orientation==="horizontal"?{[`& .${Yi.lastButton}.${hy.disabled},& .${Yi.middleButton}.${hy.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${Yi.lastButton}.${hy.disabled},& .${Yi.middleButton}.${hy.disabled}`]:{borderTop:"1px solid transparent"}})),poe=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiToggleButtonGroup"}),{children:i,className:a,color:s="standard",disabled:o=!1,exclusive:l=!1,fullWidth:u=!1,onChange:d,orientation:f="horizontal",size:p="medium",value:g}=r,O=Tt(r,y7e),S=Q({},r,{disabled:o,fullWidth:u,orientation:f,size:p}),T=v7e(S),w=M.useCallback((P,L)=>{if(!d)return;const j=g&&g.indexOf(L);let B;g&&j>=0?(B=g.slice(),B.splice(j,1)):B=g?g.concat(L):[L],d(P,B)},[d,g]),x=M.useCallback((P,L)=>{d&&d(P,g===L?null:L)},[d,g]),k=M.useMemo(()=>({className:T.grouped,onChange:l?x:w,value:g,size:p,fullWidth:u,color:s,disabled:o}),[T.grouped,l,x,w,g,p,u,s,o]),_=iAe(i),R=_.length,N=P=>{const L=P===0,j=P===R-1;return L&&j?"":L?T.firstButton:j?T.lastButton:T.middleButton};return I.jsx(O7e,Q({role:"group",className:wt(T.root,a),ref:n,ownerState:S},O,{children:I.jsx(foe.Provider,{value:k,children:_.map((P,L)=>I.jsx(hoe.Provider,{value:N(L),children:P},L))})}))});var moe={exports:{}},goe={};/** - * @license React - * use-sync-external-store-with-selector.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 ET=M;function S7e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var E7e=typeof Object.is=="function"?Object.is:S7e,w7e=ET.useSyncExternalStore,T7e=ET.useRef,x7e=ET.useEffect,k7e=ET.useMemo,A7e=ET.useDebugValue;goe.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=T7e(null);if(a.current===null){var s={hasValue:!1,value:null};a.current=s}else s=a.current;a=k7e(function(){function l(g){if(!u){if(u=!0,d=g,g=r(g),i!==void 0&&s.hasValue){var O=s.value;if(i(O,g))return f=O}return f=g}if(O=f,E7e(d,g))return O;var S=r(g);return i!==void 0&&i(O,S)?O:(d=g,f=S)}var u=!1,d,f,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,i]);var o=w7e(e,a[0],a[1]);return x7e(function(){s.hasValue=!0,s.value=o},[o]),A7e(o),o};moe.exports=goe;var _7e=moe.exports,yu="default"in lv?rn:lv,kY=Symbol.for("react-redux-context"),AY=typeof globalThis<"u"?globalThis:{};function C7e(){if(!yu.createContext)return{};const e=AY[kY]??(AY[kY]=new Map);let t=e.get(yu.createContext);return t||(t=yu.createContext(null),e.set(yu.createContext,t)),t}var am=C7e(),R7e=()=>{throw new Error("uSES not initialized!")};function P$(e=am){return function(){return yu.useContext(e)}}var boe=P$(),yoe=R7e,I7e=e=>{yoe=e},N7e=(e,t)=>e===t;function D7e(e=am){const t=e===am?boe:P$(e),n=(r,i={})=>{const{equalityFn:a=N7e,devModeChecks:s={}}=typeof i=="function"?{equalityFn:i}:i,{store:o,subscription:l,getServerState:u,stabilityCheck:d,identityFunctionCheck:f}=t();yu.useRef(!0);const p=yu.useCallback({[r.name](O){return r(O)}}[r.name],[r,d,s.stabilityCheck]),g=yoe(l.addNestedSub,o.getState,u||o.getState,p,a);return yu.useDebugValue(g),g};return Object.assign(n,{withTypes:()=>n}),n}var Pr=D7e();function P7e(e){e()}function L7e(){let e=null,t=null;return{clear(){e=null,t=null},notify(){P7e(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var _Y={notify(){},get:()=>[]};function M7e(e,t){let n,r=_Y,i=0,a=!1;function s(S){d();const T=r.subscribe(S);let w=!1;return()=>{w||(w=!0,T(),f())}}function o(){r.notify()}function l(){O.onStateChange&&O.onStateChange()}function u(){return a}function d(){i++,n||(n=e.subscribe(l),r=L7e())}function f(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=_Y)}function p(){a||(a=!0,d())}function g(){a&&(a=!1,f())}const O={addNestedSub:s,notifyNestedSubs:o,handleChangeWrapper:l,isSubscribed:u,trySubscribe:p,tryUnsubscribe:g,getListeners:()=>r};return O}var $7e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",F7e=typeof navigator<"u"&&navigator.product==="ReactNative",B7e=$7e||F7e?yu.useLayoutEffect:yu.useEffect;function U7e({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:a="once"}){const s=yu.useMemo(()=>{const u=M7e(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:a}},[e,r,i,a]),o=yu.useMemo(()=>e.getState(),[e]);B7e(()=>{const{subscription:u}=s;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),o!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[s,o]);const l=t||am;return yu.createElement(l.Provider,{value:s},n)}var z7e=U7e;function voe(e=am){const t=e===am?boe:P$(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var j7e=voe();function H7e(e=am){const t=e===am?j7e:voe(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Du=H7e();I7e(_7e.useSyncExternalStoreWithSelector);/** - * @remix-run/router v1.19.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function sa(){return sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Tv(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function W7e(){return Math.random().toString(36).substr(2,8)}function RY(e,t){return{usr:e.state,key:e.key,idx:t}}function fw(e,t,n,r){return n===void 0&&(n=null),sa({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Om(t):t,{state:n,key:t&&t.key||r||W7e()})}function wT(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Om(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function V7e(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,s=i.history,o=ja.Pop,l=null,u=d();u==null&&(u=0,s.replaceState(sa({},s.state,{idx:u}),""));function d(){return(s.state||{idx:null}).idx}function f(){o=ja.Pop;let T=d(),w=T==null?null:T-u;u=T,l&&l({action:o,location:S.location,delta:w})}function p(T,w){o=ja.Push;let x=fw(S.location,T,w);u=d()+1;let k=RY(x,u),_=S.createHref(x);try{s.pushState(k,"",_)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;i.location.assign(_)}a&&l&&l({action:o,location:S.location,delta:1})}function g(T,w){o=ja.Replace;let x=fw(S.location,T,w);u=d();let k=RY(x,u),_=S.createHref(x);s.replaceState(k,"",_),a&&l&&l({action:o,location:S.location,delta:0})}function O(T){let w=i.location.origin!=="null"?i.location.origin:i.location.href,x=typeof T=="string"?T:wT(T);return x=x.replace(/ $/,"%20"),fr(w,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,w)}let S={get action(){return o},get location(){return e(i,s)},listen(T){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(CY,f),l=T,()=>{i.removeEventListener(CY,f),l=null}},createHref(T){return t(i,T)},createURL:O,encodeLocation(T){let w=O(T);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:p,replace:g,go(T){return s.go(T)}};return S}var di;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(di||(di={}));const q7e=new Set(["lazy","caseSensitive","path","id","index","children"]);function G7e(e){return e.index===!0}function hw(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,a)=>{let s=[...n,String(a)],o=typeof i.id=="string"?i.id:s.join("-");if(fr(i.index!==!0||!i.children,"Cannot specify children on an index route"),fr(!r[o],'Found a route id collision on id "'+o+`". Route id's must be globally unique within Data Router usages`),G7e(i)){let l=sa({},i,t(i),{id:o});return r[o]=l,l}else{let l=sa({},i,t(i),{id:o,children:void 0});return r[o]=l,i.children&&(l.children=hw(i.children,t,s,r)),l}})}function _g(e,t,n){return n===void 0&&(n="/"),q4(e,t,n,!1)}function q4(e,t,n,r){let i=typeof t=="string"?Om(t):t,a=TT(i.pathname||"/",n);if(a==null)return null;let s=Ooe(e);Z7e(s);let o=null;for(let l=0;o==null&&l{let l={relativePath:o===void 0?a.path||"":o,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};l.relativePath.startsWith("/")&&(fr(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=V0([r,l.relativePath]),d=n.concat(l);a.children&&a.children.length>0&&(fr(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Ooe(a.children,t,d,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:rPe(u,a.index),routesMeta:d})};return e.forEach((a,s)=>{var o;if(a.path===""||!((o=a.path)!=null&&o.includes("?")))i(a,s);else for(let l of Soe(a.path))i(a,s,l)}),t}function Soe(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let s=Soe(r.join("/")),o=[];return o.push(...s.map(l=>l===""?a:[a,l].join("/"))),i&&o.push(...s),o.map(l=>e.startsWith("/")&&l===""?"/":l)}function Z7e(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:iPe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const X7e=/^:[\w-]+$/,K7e=3,J7e=2,ePe=1,tPe=10,nPe=-2,IY=e=>e==="*";function rPe(e,t){let n=e.split("/"),r=n.length;return n.some(IY)&&(r+=nPe),t&&(r+=J7e),n.filter(i=>!IY(i)).reduce((i,a)=>i+(X7e.test(a)?K7e:a===""?ePe:tPe),r)}function iPe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function aPe(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,i={},a="/",s=[];for(let o=0;o{let{paramName:p,isOptional:g}=d;if(p==="*"){let S=o[f]||"";s=a.slice(0,a.length-S.length).replace(/(.)\/+$/,"$1")}const O=o[f];return g&&!O?u[p]=void 0:u[p]=(O||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:s,pattern:e}}function sPe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Tv(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,o,l)=>(r.push({paramName:o,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function oPe(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Tv(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function TT(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function lPe(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Om(e):e;return{pathname:n?n.startsWith("/")?n:uPe(n,t):t,search:dPe(r),hash:fPe(i)}}function uPe(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function LN(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Eoe(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function L$(e,t){let n=Eoe(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function M$(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Om(e):(i=sa({},e),fr(!i.pathname||!i.pathname.includes("?"),LN("?","pathname","search",i)),fr(!i.pathname||!i.pathname.includes("#"),LN("#","pathname","hash",i)),fr(!i.search||!i.search.includes("#"),LN("#","search","hash",i)));let a=e===""||i.pathname==="",s=a?"/":i.pathname,o;if(s==null)o=n;else{let f=t.length-1;if(!r&&s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),f-=1;i.pathname=p.join("/")}o=f>=0?t[f]:"/"}let l=lPe(i,o),u=s&&s!=="/"&&s.endsWith("/"),d=(a||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}const V0=e=>e.join("/").replace(/\/\/+/g,"/"),cPe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),dPe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,fPe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class m3{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function xT(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const woe=["post","put","patch","delete"],hPe=new Set(woe),pPe=["get",...woe],mPe=new Set(pPe),gPe=new Set([301,302,303,307,308]),bPe=new Set([307,308]),MN={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},yPe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},nE={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},$$=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,vPe=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Toe="remix-router-transitions";function OPe(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;fr(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let le=e.detectErrorBoundary;i=he=>({hasErrorBoundary:le(he)})}else i=vPe;let a={},s=hw(e.routes,i,void 0,a),o,l=e.basename||"/",u=e.unstable_dataStrategy||xPe,d=e.unstable_patchRoutesOnNavigation,f=sa({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),p=null,g=new Set,O=1e3,S=new Set,T=null,w=null,x=null,k=e.hydrationData!=null,_=_g(s,e.history.location,l),R=null;if(_==null&&!d){let le=Uo(404,{pathname:e.history.location.pathname}),{matches:he,route:Le}=jY(s);_=he,R={[Le.id]:le}}_&&!e.hydrationData&&Ur(_,s,e.history.location.pathname).active&&(_=null);let N;if(_)if(_.some(le=>le.route.lazy))N=!1;else if(!_.some(le=>le.route.loader))N=!0;else if(f.v7_partialHydration){let le=e.hydrationData?e.hydrationData.loaderData:null,he=e.hydrationData?e.hydrationData.errors:null,Le=Ve=>Ve.route.loader?typeof Ve.route.loader=="function"&&Ve.route.loader.hydrate===!0?!1:le&&le[Ve.route.id]!==void 0||he&&he[Ve.route.id]!==void 0:!0;if(he){let Ve=_.findIndex(pt=>he[pt.route.id]!==void 0);N=_.slice(0,Ve+1).every(Le)}else N=_.every(Le)}else N=e.hydrationData!=null;else if(N=!1,_=[],f.v7_partialHydration){let le=Ur(null,s,e.history.location.pathname);le.active&&le.matches&&(_=le.matches)}let P,L={historyAction:e.history.action,location:e.history.location,matches:_,initialized:N,navigation:MN,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||R,fetchers:new Map,blockers:new Map},j=ja.Pop,B=!1,V,W=!1,re=new Map,ee=null,q=!1,ne=!1,K=[],G=new Set,ie=new Map,H=0,Re=-1,Se=new Map,Z=new Set,ke=new Map,$e=new Map,ae=new Set,Xe=new Map,We=new Map,Ye=new Map,xt=!1;function it(){if(p=e.history.listen(le=>{let{action:he,location:Le,delta:Ve}=le;if(xt){xt=!1;return}Tv(We.size===0||Ve!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let pt=Ni({currentLocation:L.location,nextLocation:Le,historyAction:he});if(pt&&Ve!=null){xt=!0,e.history.go(Ve*-1),Yr(pt,{state:"blocked",location:Le,proceed(){Yr(pt,{state:"proceeding",proceed:void 0,reset:void 0,location:Le}),e.history.go(Ve)},reset(){let Vt=new Map(L.blockers);Vt.set(pt,nE),ct({blockers:Vt})}});return}return de(he,Le)}),n){FPe(t,re);let le=()=>BPe(t,re);t.addEventListener("pagehide",le),ee=()=>t.removeEventListener("pagehide",le)}return L.initialized||de(ja.Pop,L.location,{initialHydration:!0}),P}function Pt(){p&&p(),ee&&ee(),g.clear(),V&&V.abort(),L.fetchers.forEach((le,he)=>tt(he)),L.blockers.forEach((le,he)=>Rr(he))}function jt(le){return g.add(le),()=>g.delete(le)}function ct(le,he){he===void 0&&(he={}),L=sa({},L,le);let Le=[],Ve=[];f.v7_fetcherPersist&&L.fetchers.forEach((pt,Vt)=>{pt.state==="idle"&&(ae.has(Vt)?Ve.push(Vt):Le.push(Vt))}),[...g].forEach(pt=>pt(L,{deletedFetchers:Ve,unstable_viewTransitionOpts:he.viewTransitionOpts,unstable_flushSync:he.flushSync===!0})),f.v7_fetcherPersist&&(Le.forEach(pt=>L.fetchers.delete(pt)),Ve.forEach(pt=>tt(pt)))}function Ot(le,he,Le){var Ve,pt;let{flushSync:Vt}=Le===void 0?{}:Le,Ie=L.actionData!=null&&L.navigation.formMethod!=null&&ud(L.navigation.formMethod)&&L.navigation.state==="loading"&&((Ve=le.state)==null?void 0:Ve._isRedirect)!==!0,Te;he.actionData?Object.keys(he.actionData).length>0?Te=he.actionData:Te=null:Ie?Te=L.actionData:Te=null;let at=he.loaderData?UY(L.loaderData,he.loaderData,he.matches||[],he.errors):L.loaderData,qe=L.blockers;qe.size>0&&(qe=new Map(qe),qe.forEach((Gt,jn)=>qe.set(jn,nE)));let St=B===!0||L.navigation.formMethod!=null&&ud(L.navigation.formMethod)&&((pt=le.state)==null?void 0:pt._isRedirect)!==!0;o&&(s=o,o=void 0),q||j===ja.Pop||(j===ja.Push?e.history.push(le,le.state):j===ja.Replace&&e.history.replace(le,le.state));let _t;if(j===ja.Pop){let Gt=re.get(L.location.pathname);Gt&&Gt.has(le.pathname)?_t={currentLocation:L.location,nextLocation:le}:re.has(le.pathname)&&(_t={currentLocation:le,nextLocation:L.location})}else if(W){let Gt=re.get(L.location.pathname);Gt?Gt.add(le.pathname):(Gt=new Set([le.pathname]),re.set(L.location.pathname,Gt)),_t={currentLocation:L.location,nextLocation:le}}ct(sa({},he,{actionData:Te,loaderData:at,historyAction:j,location:le,initialized:!0,navigation:MN,revalidation:"idle",restoreScrollPosition:Qi(le,he.matches||L.matches),preventScrollReset:St,blockers:qe}),{viewTransitionOpts:_t,flushSync:Vt===!0}),j=ja.Pop,B=!1,W=!1,q=!1,ne=!1,K=[]}async function yt(le,he){if(typeof le=="number"){e.history.go(le);return}let Le=HP(L.location,L.matches,l,f.v7_prependBasename,le,f.v7_relativeSplatPath,he==null?void 0:he.fromRouteId,he==null?void 0:he.relative),{path:Ve,submission:pt,error:Vt}=DY(f.v7_normalizeFormMethod,!1,Le,he),Ie=L.location,Te=fw(L.location,Ve,he&&he.state);Te=sa({},Te,e.history.encodeLocation(Te));let at=he&&he.replace!=null?he.replace:void 0,qe=ja.Push;at===!0?qe=ja.Replace:at===!1||pt!=null&&ud(pt.formMethod)&&pt.formAction===L.location.pathname+L.location.search&&(qe=ja.Replace);let St=he&&"preventScrollReset"in he?he.preventScrollReset===!0:void 0,_t=(he&&he.unstable_flushSync)===!0,Gt=Ni({currentLocation:Ie,nextLocation:Te,historyAction:qe});if(Gt){Yr(Gt,{state:"blocked",location:Te,proceed(){Yr(Gt,{state:"proceeding",proceed:void 0,reset:void 0,location:Te}),yt(le,he)},reset(){let jn=new Map(L.blockers);jn.set(Gt,nE),ct({blockers:jn})}});return}return await de(qe,Te,{submission:pt,pendingError:Vt,preventScrollReset:St,replace:he&&he.replace,enableViewTransition:he&&he.unstable_viewTransition,flushSync:_t})}function Ut(){if(xe(),ct({revalidation:"loading"}),L.navigation.state!=="submitting"){if(L.navigation.state==="idle"){de(L.historyAction,L.location,{startUninterruptedRevalidation:!0});return}de(j||L.historyAction,L.navigation.location,{overrideNavigation:L.navigation})}}async function de(le,he,Le){V&&V.abort(),V=null,j=le,q=(Le&&Le.startUninterruptedRevalidation)===!0,Ks(L.location,L.matches),B=(Le&&Le.preventScrollReset)===!0,W=(Le&&Le.enableViewTransition)===!0;let Ve=o||s,pt=Le&&Le.overrideNavigation,Vt=_g(Ve,he,l),Ie=(Le&&Le.flushSync)===!0,Te=Ur(Vt,Ve,he.pathname);if(Te.active&&Te.matches&&(Vt=Te.matches),!Vt){let{error:qn,notFoundMatches:Wi,route:ti}=hi(he.pathname);Ot(he,{matches:Wi,loaderData:{},errors:{[ti.id]:qn}},{flushSync:Ie});return}if(L.initialized&&!ne&&IPe(L.location,he)&&!(Le&&Le.submission&&ud(Le.submission.formMethod))){Ot(he,{matches:Vt},{flushSync:Ie});return}V=new AbortController;let at=Ib(e.history,he,V.signal,Le&&Le.submission),qe;if(Le&&Le.pendingError)qe=[py(Vt).route.id,{type:di.error,error:Le.pendingError}];else if(Le&&Le.submission&&ud(Le.submission.formMethod)){let qn=await _e(at,he,Le.submission,Vt,Te.active,{replace:Le.replace,flushSync:Ie});if(qn.shortCircuited)return;if(qn.pendingActionResult){let[Wi,ti]=qn.pendingActionResult;if(lu(ti)&&xT(ti.error)&&ti.error.status===404){V=null,Ot(he,{matches:qn.matches,loaderData:{},errors:{[Wi]:ti.error}});return}}Vt=qn.matches||Vt,qe=qn.pendingActionResult,pt=$N(he,Le.submission),Ie=!1,Te.active=!1,at=Ib(e.history,at.url,at.signal)}let{shortCircuited:St,matches:_t,loaderData:Gt,errors:jn}=await Ne(at,he,Vt,Te.active,pt,Le&&Le.submission,Le&&Le.fetcherSubmission,Le&&Le.replace,Le&&Le.initialHydration===!0,Ie,qe);St||(V=null,Ot(he,sa({matches:_t||Vt},zY(qe),{loaderData:Gt,errors:jn})))}async function _e(le,he,Le,Ve,pt,Vt){Vt===void 0&&(Vt={}),xe();let Ie=MPe(he,Le);if(ct({navigation:Ie},{flushSync:Vt.flushSync===!0}),pt){let qe=await nr(Ve,he.pathname,le.signal);if(qe.type==="aborted")return{shortCircuited:!0};if(qe.type==="error"){let{boundaryId:St,error:_t}=ji(he.pathname,qe);return{matches:qe.partialMatches,pendingActionResult:[St,{type:di.error,error:_t}]}}else if(qe.matches)Ve=qe.matches;else{let{notFoundMatches:St,error:_t,route:Gt}=hi(he.pathname);return{matches:St,pendingActionResult:[Gt.id,{type:di.error,error:_t}]}}}let Te,at=PE(Ve,he);if(!at.route.action&&!at.route.lazy)Te={type:di.error,error:Uo(405,{method:le.method,pathname:he.pathname,routeId:at.route.id})};else if(Te=(await we("action",le,[at],Ve))[0],le.signal.aborted)return{shortCircuited:!0};if(Bg(Te)){let qe;return Vt&&Vt.replace!=null?qe=Vt.replace:qe=$Y(Te.response.headers.get("Location"),new URL(le.url),l)===L.location.pathname+L.location.search,await Fe(le,Te,{submission:Le,replace:qe}),{shortCircuited:!0}}if(Fg(Te))throw Uo(400,{type:"defer-action"});if(lu(Te)){let qe=py(Ve,at.route.id);return(Vt&&Vt.replace)!==!0&&(j=ja.Push),{matches:Ve,pendingActionResult:[qe.route.id,Te]}}return{matches:Ve,pendingActionResult:[at.route.id,Te]}}async function Ne(le,he,Le,Ve,pt,Vt,Ie,Te,at,qe,St){let _t=pt||$N(he,Vt),Gt=Vt||Ie||VY(_t),jn=!q&&(!f.v7_partialHydration||!at);if(Ve){if(jn){let xr=Ke(St);ct(sa({navigation:_t},xr!==void 0?{actionData:xr}:{}),{flushSync:qe})}let En=await nr(Le,he.pathname,le.signal);if(En.type==="aborted")return{shortCircuited:!0};if(En.type==="error"){let{boundaryId:xr,error:mi}=ji(he.pathname,En);return{matches:En.partialMatches,loaderData:{},errors:{[xr]:mi}}}else if(En.matches)Le=En.matches;else{let{error:xr,notFoundMatches:mi,route:dr}=hi(he.pathname);return{matches:mi,loaderData:{},errors:{[dr.id]:xr}}}}let qn=o||s,[Wi,ti]=PY(e.history,L,Le,Gt,he,f.v7_partialHydration&&at===!0,f.v7_skipActionErrorRevalidation,ne,K,G,ae,ke,Z,qn,l,St);if(pi(En=>!(Le&&Le.some(xr=>xr.route.id===En))||Wi&&Wi.some(xr=>xr.route.id===En)),Re=++H,Wi.length===0&&ti.length===0){let En=Sn();return Ot(he,sa({matches:Le,loaderData:{},errors:St&&lu(St[1])?{[St[0]]:St[1].error}:null},zY(St),En?{fetchers:new Map(L.fetchers)}:{}),{flushSync:qe}),{shortCircuited:!0}}if(jn){let En={};if(!Ve){En.navigation=_t;let xr=Ke(St);xr!==void 0&&(En.actionData=xr)}ti.length>0&&(En.fetchers=ut(ti)),ct(En,{flushSync:qe})}ti.forEach(En=>{ie.has(En.key)&&Ht(En.key),En.controller&&ie.set(En.key,En.controller)});let $u=()=>ti.forEach(En=>Ht(En.key));V&&V.signal.addEventListener("abort",$u);let{loaderResults:xo,fetcherResults:Ml}=await be(L.matches,Le,Wi,ti,le);if(le.signal.aborted)return{shortCircuited:!0};V&&V.signal.removeEventListener("abort",$u),ti.forEach(En=>ie.delete(En.key));let $l=HY([...xo,...Ml]);if($l){if($l.idx>=Wi.length){let En=ti[$l.idx-Wi.length].key;Z.add(En)}return await Fe(le,$l.result,{replace:Te}),{shortCircuited:!0}}let{loaderData:Fl,errors:As}=BY(L,Le,Wi,xo,St,ti,Ml,Xe);Xe.forEach((En,xr)=>{En.subscribe(mi=>{(mi||En.done)&&Xe.delete(xr)})}),f.v7_partialHydration&&at&&L.errors&&Object.entries(L.errors).filter(En=>{let[xr]=En;return!Wi.some(mi=>mi.route.id===xr)}).forEach(En=>{let[xr,mi]=En;As=Object.assign(As||{},{[xr]:mi})});let je=Sn(),ha=pr(Re),nh=je||ha||ti.length>0;return sa({matches:Le,loaderData:Fl,errors:As},nh?{fetchers:new Map(L.fetchers)}:{})}function Ke(le){if(le&&!lu(le[1]))return{[le[0]]:le[1].data};if(L.actionData)return Object.keys(L.actionData).length===0?null:L.actionData}function ut(le){return le.forEach(he=>{let Le=L.fetchers.get(he.key),Ve=rE(void 0,Le?Le.data:void 0);L.fetchers.set(he.key,Ve)}),new Map(L.fetchers)}function Je(le,he,Le,Ve){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");ie.has(le)&&Ht(le);let pt=(Ve&&Ve.unstable_flushSync)===!0,Vt=o||s,Ie=HP(L.location,L.matches,l,f.v7_prependBasename,Le,f.v7_relativeSplatPath,he,Ve==null?void 0:Ve.relative),Te=_g(Vt,Ie,l),at=Ur(Te,Vt,Ie);if(at.active&&at.matches&&(Te=at.matches),!Te){Ct(le,he,Uo(404,{pathname:Ie}),{flushSync:pt});return}let{path:qe,submission:St,error:_t}=DY(f.v7_normalizeFormMethod,!0,Ie,Ve);if(_t){Ct(le,he,_t,{flushSync:pt});return}let Gt=PE(Te,qe);if(B=(Ve&&Ve.preventScrollReset)===!0,St&&ud(St.formMethod)){gt(le,he,qe,Gt,Te,at.active,pt,St);return}ke.set(le,{routeId:he,path:qe}),Jt(le,he,qe,Gt,Te,at.active,pt,St)}async function gt(le,he,Le,Ve,pt,Vt,Ie,Te){xe(),ke.delete(le);function at(dr){if(!dr.route.action&&!dr.route.lazy){let Vi=Uo(405,{method:Te.formMethod,pathname:Le,routeId:he});return Ct(le,he,Vi,{flushSync:Ie}),!0}return!1}if(!Vt&&at(Ve))return;let qe=L.fetchers.get(le);Ue(le,$Pe(Te,qe),{flushSync:Ie});let St=new AbortController,_t=Ib(e.history,Le,St.signal,Te);if(Vt){let dr=await nr(pt,Le,_t.signal);if(dr.type==="aborted")return;if(dr.type==="error"){let{error:Vi}=ji(Le,dr);Ct(le,he,Vi,{flushSync:Ie});return}else if(dr.matches){if(pt=dr.matches,Ve=PE(pt,Le),at(Ve))return}else{Ct(le,he,Uo(404,{pathname:Le}),{flushSync:Ie});return}}ie.set(le,St);let Gt=H,qn=(await we("action",_t,[Ve],pt))[0];if(_t.signal.aborted){ie.get(le)===St&&ie.delete(le);return}if(f.v7_fetcherPersist&&ae.has(le)){if(Bg(qn)||lu(qn)){Ue(le,r0(void 0));return}}else{if(Bg(qn))if(ie.delete(le),Re>Gt){Ue(le,r0(void 0));return}else return Z.add(le),Ue(le,rE(Te)),Fe(_t,qn,{fetcherSubmission:Te});if(lu(qn)){Ct(le,he,qn.error);return}}if(Fg(qn))throw Uo(400,{type:"defer-action"});let Wi=L.navigation.location||L.location,ti=Ib(e.history,Wi,St.signal),$u=o||s,xo=L.navigation.state!=="idle"?_g($u,L.navigation.location,l):L.matches;fr(xo,"Didn't find any matches after fetcher action");let Ml=++H;Se.set(le,Ml);let $l=rE(Te,qn.data);L.fetchers.set(le,$l);let[Fl,As]=PY(e.history,L,xo,Te,Wi,!1,f.v7_skipActionErrorRevalidation,ne,K,G,ae,ke,Z,$u,l,[Ve.route.id,qn]);As.filter(dr=>dr.key!==le).forEach(dr=>{let Vi=dr.key,ko=L.fetchers.get(Vi),Ao=rE(void 0,ko?ko.data:void 0);L.fetchers.set(Vi,Ao),ie.has(Vi)&&Ht(Vi),dr.controller&&ie.set(Vi,dr.controller)}),ct({fetchers:new Map(L.fetchers)});let je=()=>As.forEach(dr=>Ht(dr.key));St.signal.addEventListener("abort",je);let{loaderResults:ha,fetcherResults:nh}=await be(L.matches,xo,Fl,As,ti);if(St.signal.aborted)return;St.signal.removeEventListener("abort",je),Se.delete(le),ie.delete(le),As.forEach(dr=>ie.delete(dr.key));let En=HY([...ha,...nh]);if(En){if(En.idx>=Fl.length){let dr=As[En.idx-Fl.length].key;Z.add(dr)}return Fe(ti,En.result)}let{loaderData:xr,errors:mi}=BY(L,L.matches,Fl,ha,void 0,As,nh,Xe);if(L.fetchers.has(le)){let dr=r0(qn.data);L.fetchers.set(le,dr)}pr(Ml),L.navigation.state==="loading"&&Ml>Re?(fr(j,"Expected pending action"),V&&V.abort(),Ot(L.navigation.location,{matches:xo,loaderData:xr,errors:mi,fetchers:new Map(L.fetchers)})):(ct({errors:mi,loaderData:UY(L.loaderData,xr,xo,mi),fetchers:new Map(L.fetchers)}),ne=!1)}async function Jt(le,he,Le,Ve,pt,Vt,Ie,Te){let at=L.fetchers.get(le);Ue(le,rE(Te,at?at.data:void 0),{flushSync:Ie});let qe=new AbortController,St=Ib(e.history,Le,qe.signal);if(Vt){let qn=await nr(pt,Le,St.signal);if(qn.type==="aborted")return;if(qn.type==="error"){let{error:Wi}=ji(Le,qn);Ct(le,he,Wi,{flushSync:Ie});return}else if(qn.matches)pt=qn.matches,Ve=PE(pt,Le);else{Ct(le,he,Uo(404,{pathname:Le}),{flushSync:Ie});return}}ie.set(le,qe);let _t=H,jn=(await we("loader",St,[Ve],pt))[0];if(Fg(jn)&&(jn=await Coe(jn,St.signal,!0)||jn),ie.get(le)===qe&&ie.delete(le),!St.signal.aborted){if(ae.has(le)){Ue(le,r0(void 0));return}if(Bg(jn))if(Re>_t){Ue(le,r0(void 0));return}else{Z.add(le),await Fe(St,jn);return}if(lu(jn)){Ct(le,he,jn.error);return}fr(!Fg(jn),"Unhandled fetcher deferred data"),Ue(le,r0(jn.data))}}async function Fe(le,he,Le){let{submission:Ve,fetcherSubmission:pt,replace:Vt}=Le===void 0?{}:Le;he.response.headers.has("X-Remix-Revalidate")&&(ne=!0);let Ie=he.response.headers.get("Location");fr(Ie,"Expected a Location header on the redirect Response"),Ie=$Y(Ie,new URL(le.url),l);let Te=fw(L.location,Ie,{_isRedirect:!0});if(n){let jn=!1;if(he.response.headers.has("X-Remix-Reload-Document"))jn=!0;else if($$.test(Ie)){const qn=e.history.createURL(Ie);jn=qn.origin!==t.location.origin||TT(qn.pathname,l)==null}if(jn){Vt?t.location.replace(Ie):t.location.assign(Ie);return}}V=null;let at=Vt===!0||he.response.headers.has("X-Remix-Replace")?ja.Replace:ja.Push,{formMethod:qe,formAction:St,formEncType:_t}=L.navigation;!Ve&&!pt&&qe&&St&&_t&&(Ve=VY(L.navigation));let Gt=Ve||pt;if(bPe.has(he.response.status)&&Gt&&ud(Gt.formMethod))await de(at,Te,{submission:sa({},Gt,{formAction:Ie}),preventScrollReset:B});else{let jn=$N(Te,Ve);await de(at,Te,{overrideNavigation:jn,fetcherSubmission:pt,preventScrollReset:B})}}async function we(le,he,Le,Ve){try{let pt=await kPe(u,le,he,Le,Ve,a,i);return await Promise.all(pt.map((Vt,Ie)=>{if(DPe(Vt)){let Te=Vt.result;return{type:di.redirect,response:CPe(Te,he,Le[Ie].route.id,Ve,l,f.v7_relativeSplatPath)}}return _Pe(Vt)}))}catch(pt){return Le.map(()=>({type:di.error,error:pt}))}}async function be(le,he,Le,Ve,pt){let[Vt,...Ie]=await Promise.all([Le.length?we("loader",pt,Le,he):[],...Ve.map(Te=>{if(Te.matches&&Te.match&&Te.controller){let at=Ib(e.history,Te.path,Te.controller.signal);return we("loader",at,[Te.match],Te.matches).then(qe=>qe[0])}else return Promise.resolve({type:di.error,error:Uo(404,{pathname:Te.path})})})]);return await Promise.all([WY(le,Le,Vt,Vt.map(()=>pt.signal),!1,L.loaderData),WY(le,Ve.map(Te=>Te.match),Ie,Ve.map(Te=>Te.controller?Te.controller.signal:null),!0)]),{loaderResults:Vt,fetcherResults:Ie}}function xe(){ne=!0,K.push(...pi()),ke.forEach((le,he)=>{ie.has(he)&&(G.add(he),Ht(he))})}function Ue(le,he,Le){Le===void 0&&(Le={}),L.fetchers.set(le,he),ct({fetchers:new Map(L.fetchers)},{flushSync:(Le&&Le.flushSync)===!0})}function Ct(le,he,Le,Ve){Ve===void 0&&(Ve={});let pt=py(L.matches,he);tt(le),ct({errors:{[pt.route.id]:Le},fetchers:new Map(L.fetchers)},{flushSync:(Ve&&Ve.flushSync)===!0})}function qt(le){return f.v7_fetcherPersist&&($e.set(le,($e.get(le)||0)+1),ae.has(le)&&ae.delete(le)),L.fetchers.get(le)||yPe}function tt(le){let he=L.fetchers.get(le);ie.has(le)&&!(he&&he.state==="loading"&&Se.has(le))&&Ht(le),ke.delete(le),Se.delete(le),Z.delete(le),ae.delete(le),G.delete(le),L.fetchers.delete(le)}function Wt(le){if(f.v7_fetcherPersist){let he=($e.get(le)||0)-1;he<=0?($e.delete(le),ae.add(le)):$e.set(le,he)}else tt(le);ct({fetchers:new Map(L.fetchers)})}function Ht(le){let he=ie.get(le);fr(he,"Expected fetch controller: "+le),he.abort(),ie.delete(le)}function zt(le){for(let he of le){let Le=qt(he),Ve=r0(Le.data);L.fetchers.set(he,Ve)}}function Sn(){let le=[],he=!1;for(let Le of Z){let Ve=L.fetchers.get(Le);fr(Ve,"Expected fetcher: "+Le),Ve.state==="loading"&&(Z.delete(Le),le.push(Le),he=!0)}return zt(le),he}function pr(le){let he=[];for(let[Le,Ve]of Se)if(Ve0}function Mr(le,he){let Le=L.blockers.get(le)||nE;return We.get(le)!==he&&We.set(le,he),Le}function Rr(le){L.blockers.delete(le),We.delete(le)}function Yr(le,he){let Le=L.blockers.get(le)||nE;fr(Le.state==="unblocked"&&he.state==="blocked"||Le.state==="blocked"&&he.state==="blocked"||Le.state==="blocked"&&he.state==="proceeding"||Le.state==="blocked"&&he.state==="unblocked"||Le.state==="proceeding"&&he.state==="unblocked","Invalid blocker state transition: "+Le.state+" -> "+he.state);let Ve=new Map(L.blockers);Ve.set(le,he),ct({blockers:Ve})}function Ni(le){let{currentLocation:he,nextLocation:Le,historyAction:Ve}=le;if(We.size===0)return;We.size>1&&Tv(!1,"A router only supports one blocker at a time");let pt=Array.from(We.entries()),[Vt,Ie]=pt[pt.length-1],Te=L.blockers.get(Vt);if(!(Te&&Te.state==="proceeding")&&Ie({currentLocation:he,nextLocation:Le,historyAction:Ve}))return Vt}function hi(le){let he=Uo(404,{pathname:le}),Le=o||s,{matches:Ve,route:pt}=jY(Le);return pi(),{notFoundMatches:Ve,route:pt,error:he}}function ji(le,he){return{boundaryId:py(he.partialMatches).route.id,error:Uo(400,{type:"route-discovery",pathname:le,message:he.error!=null&&"message"in he.error?he.error:String(he.error)})}}function pi(le){let he=[];return Xe.forEach((Le,Ve)=>{(!le||le(Ve))&&(Le.cancel(),he.push(Ve),Xe.delete(Ve))}),he}function ds(le,he,Le){if(T=le,x=he,w=Le||null,!k&&L.navigation===MN){k=!0;let Ve=Qi(L.location,L.matches);Ve!=null&&ct({restoreScrollPosition:Ve})}return()=>{T=null,x=null,w=null}}function Hi(le,he){return w&&w(le,he.map(Ve=>Y7e(Ve,L.loaderData)))||le.key}function Ks(le,he){if(T&&x){let Le=Hi(le,he);T[Le]=x()}}function Qi(le,he){if(T){let Le=Hi(le,he),Ve=T[Le];if(typeof Ve=="number")return Ve}return null}function Ur(le,he,Le){if(d){if(S.has(Le))return{active:!1,matches:le};if(le){if(Object.keys(le[0].params).length>0)return{active:!0,matches:q4(he,Le,l,!0)}}else return{active:!0,matches:q4(he,Le,l,!0)||[]}}return{active:!1,matches:null}}async function nr(le,he,Le){let Ve=le;for(;;){let pt=o==null,Vt=o||s;try{await TPe(d,he,Ve,Vt,a,i,Ye,Le)}catch(at){return{type:"error",error:at,partialMatches:Ve}}finally{pt&&(s=[...s])}if(Le.aborted)return{type:"aborted"};let Ie=_g(Vt,he,l);if(Ie)return Zr(he,S),{type:"success",matches:Ie};let Te=q4(Vt,he,l,!0);if(!Te||Ve.length===Te.length&&Ve.every((at,qe)=>at.route.id===Te[qe].route.id))return Zr(he,S),{type:"success",matches:null};Ve=Te}}function Zr(le,he){if(he.size>=O){let Le=he.values().next().value;he.delete(Le)}he.add(le)}function ze(le){a={},o=hw(le,i,void 0,a)}function nt(le,he){let Le=o==null;koe(le,he,o||s,a,i),Le&&(s=[...s],ct({}))}return P={get basename(){return l},get future(){return f},get state(){return L},get routes(){return s},get window(){return t},initialize:it,subscribe:jt,enableScrollRestoration:ds,navigate:yt,fetch:Je,revalidate:Ut,createHref:le=>e.history.createHref(le),encodeLocation:le=>e.history.encodeLocation(le),getFetcher:qt,deleteFetcher:Wt,dispose:Pt,getBlocker:Mr,deleteBlocker:Rr,patchRoutes:nt,_internalFetchControllers:ie,_internalActiveDeferreds:Xe,_internalSetRoutes:ze},P}function SPe(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function HP(e,t,n,r,i,a,s,o){let l,u;if(s){l=[];for(let f of t)if(l.push(f),f.route.id===s){u=f;break}}else l=t,u=t[t.length-1];let d=M$(i||".",L$(l,a),TT(e.pathname,n)||e.pathname,o==="path");return i==null&&(d.search=e.search,d.hash=e.hash),(i==null||i===""||i===".")&&u&&u.route.index&&!F$(d.search)&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(d.pathname=d.pathname==="/"?n:V0([n,d.pathname])),wT(d)}function DY(e,t,n,r){if(!r||!SPe(r))return{path:n};if(r.formMethod&&!LPe(r.formMethod))return{path:n,error:Uo(405,{method:r.formMethod})};let i=()=>({path:n,error:Uo(400,{type:"invalid-body"})}),a=r.formMethod||"get",s=e?a.toUpperCase():a.toLowerCase(),o=Aoe(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!ud(s))return i();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((g,O)=>{let[S,T]=O;return""+g+S+"="+T+` -`},""):String(r.body);return{path:n,submission:{formMethod:s,formAction:o,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!ud(s))return i();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:s,formAction:o,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return i()}}}fr(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=QP(r.formData),u=r.formData;else if(r.body instanceof FormData)l=QP(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=FY(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=FY(l)}catch{return i()}let d={formMethod:s,formAction:o,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(ud(d.formMethod))return{path:n,submission:d};let f=Om(n);return t&&f.search&&F$(f.search)&&l.append("index",""),f.search="?"+l,{path:wT(f),submission:d}}function EPe(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function PY(e,t,n,r,i,a,s,o,l,u,d,f,p,g,O,S){let T=S?lu(S[1])?S[1].error:S[1].data:void 0,w=e.createURL(t.location),x=e.createURL(i),k=S&&lu(S[1])?S[0]:void 0,_=k?EPe(n,k):n,R=S?S[1].statusCode:void 0,N=s&&R&&R>=400,P=_.filter((j,B)=>{let{route:V}=j;if(V.lazy)return!0;if(V.loader==null)return!1;if(a)return typeof V.loader!="function"||V.loader.hydrate?!0:t.loaderData[V.id]===void 0&&(!t.errors||t.errors[V.id]===void 0);if(wPe(t.loaderData,t.matches[B],j)||l.some(ee=>ee===j.route.id))return!0;let W=t.matches[B],re=j;return LY(j,sa({currentUrl:w,currentParams:W.params,nextUrl:x,nextParams:re.params},r,{actionResult:T,actionStatus:R,defaultShouldRevalidate:N?!1:o||w.pathname+w.search===x.pathname+x.search||w.search!==x.search||xoe(W,re)}))}),L=[];return f.forEach((j,B)=>{if(a||!n.some(q=>q.route.id===j.routeId)||d.has(B))return;let V=_g(g,j.path,O);if(!V){L.push({key:B,routeId:j.routeId,path:j.path,matches:null,match:null,controller:null});return}let W=t.fetchers.get(B),re=PE(V,j.path),ee=!1;p.has(B)?ee=!1:u.has(B)?(u.delete(B),ee=!0):W&&W.state!=="idle"&&W.data===void 0?ee=o:ee=LY(re,sa({currentUrl:w,currentParams:t.matches[t.matches.length-1].params,nextUrl:x,nextParams:n[n.length-1].params},r,{actionResult:T,actionStatus:R,defaultShouldRevalidate:N?!1:o})),ee&&L.push({key:B,routeId:j.routeId,path:j.path,matches:V,match:re,controller:new AbortController})}),[P,L]}function wPe(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function xoe(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function LY(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function TPe(e,t,n,r,i,a,s,o){let l=[t,...n.map(u=>u.route.id)].join("-");try{let u=s.get(l);u||(u=e({path:t,matches:n,patch:(d,f)=>{o.aborted||koe(d,f,r,i,a)}}),s.set(l,u)),u&&NPe(u)&&await u}finally{s.delete(l)}}function koe(e,t,n,r,i){if(e){var a;let s=r[e];fr(s,"No route found to patch children into: routeId = "+e);let o=hw(t,i,[e,"patch",String(((a=s.children)==null?void 0:a.length)||"0")],r);s.children?s.children.push(...o):s.children=o}else{let s=hw(t,i,["patch",String(n.length||"0")],r);n.push(...s)}}async function MY(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];fr(i,"No route found in manifest");let a={};for(let s in r){let l=i[s]!==void 0&&s!=="hasErrorBoundary";Tv(!l,'Route "'+i.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!l&&!q7e.has(s)&&(a[s]=r[s])}Object.assign(i,a),Object.assign(i,sa({},t(i),{lazy:void 0}))}function xPe(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function kPe(e,t,n,r,i,a,s,o){let l=r.reduce((f,p)=>f.add(p.route.id),new Set),u=new Set,d=await e({matches:i.map(f=>{let p=l.has(f.route.id);return sa({},f,{shouldLoad:p,resolve:O=>(u.add(f.route.id),p?APe(t,n,f,a,s,O,o):Promise.resolve({type:di.data,result:void 0}))})}),request:n,params:i[0].params,context:o});return i.forEach(f=>fr(u.has(f.route.id),'`match.resolve()` was not called for route id "'+f.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),d.filter((f,p)=>l.has(i[p].route.id))}async function APe(e,t,n,r,i,a,s){let o,l,u=d=>{let f,p=new Promise((S,T)=>f=T);l=()=>f(),t.signal.addEventListener("abort",l);let g=S=>typeof d!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):d({request:t,params:n.params,context:s},...S!==void 0?[S]:[]),O;return a?O=a(S=>g(S)):O=(async()=>{try{return{type:"data",result:await g()}}catch(S){return{type:"error",result:S}}})(),Promise.race([O,p])};try{let d=n.route[e];if(n.route.lazy)if(d){let f,[p]=await Promise.all([u(d).catch(g=>{f=g}),MY(n.route,i,r)]);if(f!==void 0)throw f;o=p}else if(await MY(n.route,i,r),d=n.route[e],d)o=await u(d);else if(e==="action"){let f=new URL(t.url),p=f.pathname+f.search;throw Uo(405,{method:t.method,pathname:p,routeId:n.route.id})}else return{type:di.data,result:void 0};else if(d)o=await u(d);else{let f=new URL(t.url),p=f.pathname+f.search;throw Uo(404,{pathname:p})}fr(o.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(d){return{type:di.error,result:d}}finally{l&&t.signal.removeEventListener("abort",l)}return o}async function _Pe(e){let{result:t,type:n}=e;if(_oe(t)){let u;try{let d=t.headers.get("Content-Type");d&&/\bapplication\/json\b/.test(d)?t.body==null?u=null:u=await t.json():u=await t.text()}catch(d){return{type:di.error,error:d}}return n===di.error?{type:di.error,error:new m3(t.status,t.statusText,u),statusCode:t.status,headers:t.headers}:{type:di.data,data:u,statusCode:t.status,headers:t.headers}}if(n===di.error){if(QY(t)){var r;if(t.data instanceof Error){var i;return{type:di.error,error:t.data,statusCode:(i=t.init)==null?void 0:i.status}}t=new m3(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:di.error,error:t,statusCode:xT(t)?t.status:void 0}}if(PPe(t)){var a,s;return{type:di.deferred,deferredData:t,statusCode:(a=t.init)==null?void 0:a.status,headers:((s=t.init)==null?void 0:s.headers)&&new Headers(t.init.headers)}}if(QY(t)){var o,l;return{type:di.data,data:t.data,statusCode:(o=t.init)==null?void 0:o.status,headers:(l=t.init)!=null&&l.headers?new Headers(t.init.headers):void 0}}return{type:di.data,data:t}}function CPe(e,t,n,r,i,a){let s=e.headers.get("Location");if(fr(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!$$.test(s)){let o=r.slice(0,r.findIndex(l=>l.route.id===n)+1);s=HP(new URL(t.url),o,i,!0,s,a),e.headers.set("Location",s)}return e}function $Y(e,t,n){if($$.test(e)){let r=e,i=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=TT(i.pathname,n)!=null;if(i.origin===t.origin&&a)return i.pathname+i.search+i.hash}return e}function Ib(e,t,n,r){let i=e.createURL(Aoe(t)).toString(),a={signal:n};if(r&&ud(r.formMethod)){let{formMethod:s,formEncType:o}=r;a.method=s.toUpperCase(),o==="application/json"?(a.headers=new Headers({"Content-Type":o}),a.body=JSON.stringify(r.json)):o==="text/plain"?a.body=r.text:o==="application/x-www-form-urlencoded"&&r.formData?a.body=QP(r.formData):a.body=r.formData}return new Request(i,a)}function QP(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function FY(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function RPe(e,t,n,r,i,a){let s={},o=null,l,u=!1,d={},f=r&&lu(r[1])?r[1].error:void 0;return n.forEach((p,g)=>{let O=t[g].route.id;if(fr(!Bg(p),"Cannot handle redirect results in processLoaderData"),lu(p)){let S=p.error;f!==void 0&&(S=f,f=void 0),o=o||{};{let T=py(e,O);o[T.route.id]==null&&(o[T.route.id]=S)}s[O]=void 0,u||(u=!0,l=xT(p.error)?p.error.status:500),p.headers&&(d[O]=p.headers)}else Fg(p)?(i.set(O,p.deferredData),s[O]=p.deferredData.data,p.statusCode!=null&&p.statusCode!==200&&!u&&(l=p.statusCode),p.headers&&(d[O]=p.headers)):(s[O]=p.data,p.statusCode&&p.statusCode!==200&&!u&&(l=p.statusCode),p.headers&&(d[O]=p.headers))}),f!==void 0&&r&&(o={[r[0]]:f},s[r[0]]=void 0),{loaderData:s,errors:o,statusCode:l||200,loaderHeaders:d}}function BY(e,t,n,r,i,a,s,o){let{loaderData:l,errors:u}=RPe(t,n,r,i,o);for(let d=0;dr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function jY(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Uo(e,t){let{pathname:n,routeId:r,method:i,type:a,message:s}=t===void 0?{}:t,o="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(o="Bad Request",a==="route-discovery"?l='Unable to match URL "'+n+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error: -`+s):i&&n&&r?l="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"?l="defer() is not supported in actions":a==="invalid-body"&&(l="Unable to encode submission body")):e===403?(o="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(o="Not Found",l='No route matches URL "'+n+'"'):e===405&&(o="Method Not Allowed",i&&n&&r?l="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(l='Invalid request method "'+i.toUpperCase()+'"')),new m3(e||500,o,new Error(l),!0)}function HY(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Bg(n))return{result:n,idx:t}}}function Aoe(e){let t=typeof e=="string"?Om(e):e;return wT(sa({},t,{hash:""}))}function IPe(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function NPe(e){return typeof e=="object"&&e!=null&&"then"in e}function DPe(e){return _oe(e.result)&&gPe.has(e.result.status)}function Fg(e){return e.type===di.deferred}function lu(e){return e.type===di.error}function Bg(e){return(e&&e.type)===di.redirect}function QY(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function PPe(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function _oe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function LPe(e){return mPe.has(e.toLowerCase())}function ud(e){return hPe.has(e.toLowerCase())}async function WY(e,t,n,r,i,a){for(let s=0;sf.route.id===l.route.id),d=u!=null&&!xoe(u,l)&&(a&&a[l.route.id])!==void 0;if(Fg(o)&&(i||d)){let f=r[s];fr(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await Coe(o,f,i).then(p=>{p&&(n[s]=p||n[s])})}}}async function Coe(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:di.data,data:e.deferredData.unwrappedData}}catch(i){return{type:di.error,error:i}}return{type:di.data,data:e.deferredData.data}}}function F$(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function PE(e,t){let n=typeof t=="string"?Om(t).search:t.search;if(e[e.length-1].route.index&&F$(n||""))return e[e.length-1];let r=Eoe(e);return r[r.length-1]}function VY(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:s}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function $N(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function MPe(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function rE(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function $Pe(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function r0(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function FPe(e,t){try{let n=e.sessionStorage.getItem(Toe);if(n){let r=JSON.parse(n);for(let[i,a]of Object.entries(r||{}))a&&Array.isArray(a)&&t.set(i,new Set(a||[]))}}catch{}}function BPe(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(Toe,JSON.stringify(n))}catch(r){Tv(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** - * React Router v6.26.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function g3(){return g3=Object.assign?Object.assign.bind():function(e){for(var t=1;t{o.current=!0}),M.useCallback(function(u,d){if(d===void 0&&(d={}),!o.current)return;if(typeof u=="number"){r.go(u);return}let f=M$(u,JSON.parse(s),a,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:V0([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,s,a,e])}const zPe=M.createContext(null);function jPe(e){let t=M.useContext(yp).outlet;return t&&M.createElement(zPe.Provider,{value:e},t)}function Em(){let{matches:e}=M.useContext(yp),t=e[e.length-1];return t?t.params:{}}function HPe(e,t,n,r){AT()||fr(!1);let{navigator:i}=M.useContext(kT),{matches:a}=M.useContext(yp),s=a[a.length-1],o=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=Sm(),d;d=u;let f=d.pathname||"/",p=f;if(l!=="/"){let S=l.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(S.length).join("/")}let g=_g(e,{pathname:p});return GPe(g&&g.map(S=>Object.assign({},S,{params:Object.assign({},o,S.params),pathname:V0([l,i.encodeLocation?i.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?l:V0([l,i.encodeLocation?i.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),a,n,r)}function QPe(){let e=Loe(),t=xT(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return M.createElement(M.Fragment,null,M.createElement("h2",null,"Unexpected Application Error!"),M.createElement("h3",{style:{fontStyle:"italic"}},t),n?M.createElement("pre",{style:i},n):null,null)}const WPe=M.createElement(QPe,null);class VPe extends M.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?M.createElement(yp.Provider,{value:this.props.routeContext},M.createElement(Ioe.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function qPe(e){let{routeContext:t,match:n,children:r}=e,i=M.useContext(tR);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),M.createElement(yp.Provider,{value:t},r)}function GPe(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if(!n)return null;if(n.errors)e=n.matches;else if((a=r)!=null&&a.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,o=(i=n)==null?void 0:i.errors;if(o!=null){let d=s.findIndex(f=>f.route.id&&(o==null?void 0:o[f.route.id])!==void 0);d>=0||fr(!1),s=s.slice(0,Math.min(s.length,d+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((d,f,p)=>{let g,O=!1,S=null,T=null;n&&(g=o&&f.route.id?o[f.route.id]:void 0,S=f.route.errorElement||WPe,l&&(u<0&&p===0?(O=!0,T=null):u===p&&(O=!0,T=f.route.hydrateFallbackElement||null)));let w=t.concat(s.slice(0,p+1)),x=()=>{let k;return g?k=S:O?k=T:f.route.Component?k=M.createElement(f.route.Component,null):f.route.element?k=f.route.element:k=d,M.createElement(qPe,{match:f,routeContext:{outlet:d,matches:w,isDataRoute:n!=null},children:k})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?M.createElement(VPe,{location:n.location,revalidation:n.revalidation,component:S,error:g,children:x(),routeContext:{outlet:null,matches:w,isDataRoute:!0}}):x()},null)}var Doe=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Doe||{}),b3=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(b3||{});function YPe(e){let t=M.useContext(tR);return t||fr(!1),t}function ZPe(e){let t=M.useContext(Roe);return t||fr(!1),t}function XPe(e){let t=M.useContext(yp);return t||fr(!1),t}function Poe(e){let t=XPe(),n=t.matches[t.matches.length-1];return n.route.id||fr(!1),n.route.id}function Loe(){var e;let t=M.useContext(Ioe),n=ZPe(b3.UseRouteError),r=Poe(b3.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function KPe(){let{router:e}=YPe(Doe.UseNavigateStable),t=Poe(b3.UseNavigateStable),n=M.useRef(!1);return Noe(()=>{n.current=!0}),M.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,g3({fromRouteId:t},a)))},[e,t])}function U$(e){let{to:t,replace:n,state:r,relative:i}=e;AT()||fr(!1);let{future:a,static:s}=M.useContext(kT),{matches:o}=M.useContext(yp),{pathname:l}=Sm(),u=Mc(),d=M$(t,L$(o,a.v7_relativeSplatPath),l,i==="path"),f=JSON.stringify(d);return M.useEffect(()=>u(JSON.parse(f),{replace:n,state:r,relative:i}),[u,f,i,n,r]),null}function nR(e){return jPe(e.context)}function JPe(e){let{basename:t="/",children:n=null,location:r,navigationType:i=ja.Pop,navigator:a,static:s=!1,future:o}=e;AT()&&fr(!1);let l=t.replace(/^\/*/,"/"),u=M.useMemo(()=>({basename:l,navigator:a,static:s,future:g3({v7_relativeSplatPath:!1},o)}),[l,o,a,s]);typeof r=="string"&&(r=Om(r));let{pathname:d="/",search:f="",hash:p="",state:g=null,key:O="default"}=r,S=M.useMemo(()=>{let T=TT(d,l);return T==null?null:{location:{pathname:T,search:f,hash:p,state:g,key:O},navigationType:i}},[l,d,f,p,g,O,i]);return S==null?null:M.createElement(kT.Provider,{value:u},M.createElement(B$.Provider,{children:n,value:S}))}new Promise(()=>{});function e8e(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:M.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:M.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:M.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** - * React Router DOM v6.26.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function y3(){return y3=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function t8e(e,t){let n=WP(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(a=>{n.append(i,a)})}),n}const n8e="6";try{window.__reactRouterVersion=n8e}catch{}function r8e(e,t){return OPe({basename:void 0,future:y3({},void 0,{v7_prependBasename:!0}),history:Q7e({window:void 0}),hydrationData:i8e(),routes:e,mapRouteProperties:e8e,unstable_dataStrategy:void 0,unstable_patchRoutesOnNavigation:void 0,window:void 0}).initialize()}function i8e(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=y3({},t,{errors:a8e(t.errors)})),t}function a8e(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new m3(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let a=window[i.__subType];if(typeof a=="function")try{let s=new a(i.message);s.stack="",n[r]=s}catch{}}if(n[r]==null){let a=new Error(i.message);a.stack="",n[r]=a}}else n[r]=i;return n}const s8e=M.createContext({isTransitioning:!1}),o8e=M.createContext(new Map),l8e="startTransition",qY=lv[l8e],u8e="flushSync",GY=eTe[u8e];function c8e(e){qY?qY(e):e()}function iE(e){GY?GY(e):e()}class d8e{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function f8e(e){let{fallbackElement:t,router:n,future:r}=e,[i,a]=M.useState(n.state),[s,o]=M.useState(),[l,u]=M.useState({isTransitioning:!1}),[d,f]=M.useState(),[p,g]=M.useState(),[O,S]=M.useState(),T=M.useRef(new Map),{v7_startTransition:w}=r||{},x=M.useCallback(L=>{w?c8e(L):L()},[w]),k=M.useCallback((L,j)=>{let{deletedFetchers:B,unstable_flushSync:V,unstable_viewTransitionOpts:W}=j;B.forEach(ee=>T.current.delete(ee)),L.fetchers.forEach((ee,q)=>{ee.data!==void 0&&T.current.set(q,ee.data)});let re=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!W||re){V?iE(()=>a(L)):x(()=>a(L));return}if(V){iE(()=>{p&&(d&&d.resolve(),p.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:W.currentLocation,nextLocation:W.nextLocation})});let ee=n.window.document.startViewTransition(()=>{iE(()=>a(L))});ee.finished.finally(()=>{iE(()=>{f(void 0),g(void 0),o(void 0),u({isTransitioning:!1})})}),iE(()=>g(ee));return}p?(d&&d.resolve(),p.skipTransition(),S({state:L,currentLocation:W.currentLocation,nextLocation:W.nextLocation})):(o(L),u({isTransitioning:!0,flushSync:!1,currentLocation:W.currentLocation,nextLocation:W.nextLocation}))},[n.window,p,d,T,x]);M.useLayoutEffect(()=>n.subscribe(k),[n,k]),M.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new d8e)},[l]),M.useEffect(()=>{if(d&&s&&n.window){let L=s,j=d.promise,B=n.window.document.startViewTransition(async()=>{x(()=>a(L)),await j});B.finished.finally(()=>{f(void 0),g(void 0),o(void 0),u({isTransitioning:!1})}),g(B)}},[x,s,d,n.window]),M.useEffect(()=>{d&&s&&i.location.key===s.location.key&&d.resolve()},[d,p,i.location,s]),M.useEffect(()=>{!l.isTransitioning&&O&&(o(O.state),u({isTransitioning:!0,flushSync:!1,currentLocation:O.currentLocation,nextLocation:O.nextLocation}),S(void 0))},[l.isTransitioning,O]),M.useEffect(()=>{},[]);let _=M.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:L=>n.navigate(L),push:(L,j,B)=>n.navigate(L,{state:j,preventScrollReset:B==null?void 0:B.preventScrollReset}),replace:(L,j,B)=>n.navigate(L,{replace:!0,state:j,preventScrollReset:B==null?void 0:B.preventScrollReset})}),[n]),R=n.basename||"/",N=M.useMemo(()=>({router:n,navigator:_,static:!1,basename:R}),[n,_,R]),P=M.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return M.createElement(M.Fragment,null,M.createElement(tR.Provider,{value:N},M.createElement(Roe.Provider,{value:i},M.createElement(o8e.Provider,{value:T.current},M.createElement(s8e.Provider,{value:l},M.createElement(JPe,{basename:R,location:i.location,navigationType:i.historyAction,navigator:_,future:P},i.initialized||n.future.v7_partialHydration?M.createElement(h8e,{routes:n.routes,future:n.future,state:i}):t))))),null)}const h8e=M.memo(p8e);function p8e(e){let{routes:t,future:n,state:r}=e;return HPe(t,void 0,r,n)}var YY;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(YY||(YY={}));var ZY;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(ZY||(ZY={}));function z$(e){let t=M.useRef(WP(e)),n=M.useRef(!1),r=Sm(),i=M.useMemo(()=>t8e(r.search,n.current?null:t.current),[r.search]),a=Mc(),s=M.useCallback((o,l)=>{const u=WP(typeof o=="function"?o(i):o);n.current=!0,a("?"+u,l)},[a,i]);return[i,s]}function Ms(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var m8e=typeof Symbol=="function"&&Symbol.observable||"@@observable",XY=m8e,FN=()=>Math.random().toString(36).substring(7).split("").join("."),g8e={INIT:`@@redux/INIT${FN()}`,REPLACE:`@@redux/REPLACE${FN()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${FN()}`},v3=g8e;function j$(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function H$(e,t,n){if(typeof e!="function")throw new Error(Ms(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Ms(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Ms(1));return n(H$)(e,t)}let r=e,i=t,a=new Map,s=a,o=0,l=!1;function u(){s===a&&(s=new Map,a.forEach((T,w)=>{s.set(w,T)}))}function d(){if(l)throw new Error(Ms(3));return i}function f(T){if(typeof T!="function")throw new Error(Ms(4));if(l)throw new Error(Ms(5));let w=!0;u();const x=o++;return s.set(x,T),function(){if(w){if(l)throw new Error(Ms(6));w=!1,u(),s.delete(x),a=null}}}function p(T){if(!j$(T))throw new Error(Ms(7));if(typeof T.type>"u")throw new Error(Ms(8));if(typeof T.type!="string")throw new Error(Ms(17));if(l)throw new Error(Ms(9));try{l=!0,i=r(i,T)}finally{l=!1}return(a=s).forEach(x=>{x()}),T}function g(T){if(typeof T!="function")throw new Error(Ms(10));r=T,p({type:v3.REPLACE})}function O(){const T=f;return{subscribe(w){if(typeof w!="object"||w===null)throw new Error(Ms(11));function x(){const _=w;_.next&&_.next(d())}return x(),{unsubscribe:T(x)}},[XY](){return this}}}return p({type:v3.INIT}),{dispatch:p,subscribe:f,getState:d,replaceReducer:g,[XY]:O}}function b8e(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:v3.INIT})>"u")throw new Error(Ms(12));if(typeof n(void 0,{type:v3.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ms(13))})}function Moe(e){const t=Object.keys(e),n={};for(let a=0;a"u")throw o&&o.type,new Error(Ms(14));u[f]=O,l=l||O!==g}return l=l||r.length!==Object.keys(s).length,l?u:s}}function O3(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function y8e(...e){return t=>(n,r)=>{const i=t(n,r);let a=()=>{throw new Error(Ms(15))};const s={getState:i.getState,dispatch:(l,...u)=>a(l,...u)},o=e.map(l=>l(s));return a=O3(...o)(i.dispatch),{...i,dispatch:a}}}function v8e(e){return j$(e)&&"type"in e&&typeof e.type=="string"}var $oe=Symbol.for("immer-nothing"),KY=Symbol.for("immer-draftable"),Au=Symbol.for("immer-state");function md(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var xv=Object.getPrototypeOf;function v1(e){return!!e&&!!e[Au]}function ap(e){var t;return e?Foe(e)||Array.isArray(e)||!!e[KY]||!!((t=e.constructor)!=null&&t[KY])||iR(e)||aR(e):!1}var O8e=Object.prototype.constructor.toString();function Foe(e){if(!e||typeof e!="object")return!1;const t=xv(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===O8e}function S3(e,t){rR(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function rR(e){const t=e[Au];return t?t.type_:Array.isArray(e)?1:iR(e)?2:aR(e)?3:0}function VP(e,t){return rR(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Boe(e,t,n){const r=rR(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function S8e(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function iR(e){return e instanceof Map}function aR(e){return e instanceof Set}function kg(e){return e.copy_||e.base_}function qP(e,t){if(iR(e))return new Map(e);if(aR(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Foe(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Au];let i=Reflect.ownKeys(r);for(let a=0;a1&&(e.set=e.add=e.clear=e.delete=E8e),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Q$(r,!0))),e}function E8e(){md(2)}function sR(e){return Object.isFrozen(e)}var w8e={};function O1(e){const t=w8e[e];return t||md(0,e),t}var pw;function Uoe(){return pw}function T8e(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function JY(e,t){t&&(O1("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function GP(e){YP(e),e.drafts_.forEach(x8e),e.drafts_=null}function YP(e){e===pw&&(pw=e.parent_)}function eZ(e){return pw=T8e(pw,e)}function x8e(e){const t=e[Au];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function tZ(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Au].modified_&&(GP(t),md(4)),ap(e)&&(e=E3(t,e),t.parent_||w3(t,e)),t.patches_&&O1("Patches").generateReplacementPatches_(n[Au].base_,e,t.patches_,t.inversePatches_)):e=E3(t,n,[]),GP(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==$oe?e:void 0}function E3(e,t,n){if(sR(t))return t;const r=t[Au];if(!r)return S3(t,(i,a)=>nZ(e,r,t,i,a,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return w3(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let a=i,s=!1;r.type_===3&&(a=new Set(i),i.clear(),s=!0),S3(a,(o,l)=>nZ(e,r,i,o,l,n,s)),w3(e,i,!1),n&&e.patches_&&O1("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function nZ(e,t,n,r,i,a,s){if(v1(i)){const o=a&&t&&t.type_!==3&&!VP(t.assigned_,r)?a.concat(r):void 0,l=E3(e,i,o);if(Boe(n,r,l),v1(l))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(ap(i)&&!sR(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;E3(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&w3(e,i)}}function w3(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Q$(t,n)}function k8e(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Uoe(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=W$;n&&(i=[r],a=mw);const{revoke:s,proxy:o}=Proxy.revocable(i,a);return r.draft_=o,r.revoke_=s,o}var W$={get(e,t){if(t===Au)return e;const n=kg(e);if(!VP(n,t))return A8e(e,n,t);const r=n[t];return e.finalized_||!ap(r)?r:r===BN(e.base_,t)?(UN(e),e.copy_[t]=XP(r,e)):r},has(e,t){return t in kg(e)},ownKeys(e){return Reflect.ownKeys(kg(e))},set(e,t,n){const r=zoe(kg(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=BN(kg(e),t),a=i==null?void 0:i[Au];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(S8e(n,i)&&(n!==void 0||VP(e.base_,t)))return!0;UN(e),ZP(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return BN(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,UN(e),ZP(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=kg(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){md(11)},getPrototypeOf(e){return xv(e.base_)},setPrototypeOf(){md(12)}},mw={};S3(W$,(e,t)=>{mw[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});mw.deleteProperty=function(e,t){return mw.set.call(this,e,t,void 0)};mw.set=function(e,t,n){return W$.set.call(this,e[0],t,n,e[0])};function BN(e,t){const n=e[Au];return(n?kg(n):e)[t]}function A8e(e,t,n){var i;const r=zoe(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function zoe(e,t){if(!(t in e))return;let n=xv(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=xv(n)}}function ZP(e){e.modified_||(e.modified_=!0,e.parent_&&ZP(e.parent_))}function UN(e){e.copy_||(e.copy_=qP(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var _8e=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const a=n;n=t;const s=this;return function(l=a,...u){return s.produce(l,d=>n.call(this,d,...u))}}typeof n!="function"&&md(6),r!==void 0&&typeof r!="function"&&md(7);let i;if(ap(t)){const a=eZ(this),s=XP(t,void 0);let o=!0;try{i=n(s),o=!1}finally{o?GP(a):YP(a)}return JY(a,r),tZ(i,a)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===$oe&&(i=void 0),this.autoFreeze_&&Q$(i,!0),r){const a=[],s=[];O1("Patches").generateReplacementPatches_(t,i,a,s),r(a,s)}return i}else md(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...o)=>this.produceWithPatches(s,l=>t(l,...o));let r,i;return[this.produce(t,n,(s,o)=>{r=s,i=o}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){ap(e)||md(8),v1(e)&&(e=C8e(e));const t=eZ(this),n=XP(e,void 0);return n[Au].isManual_=!0,YP(t),n}finishDraft(e,t){const n=e&&e[Au];(!n||!n.isManual_)&&md(9);const{scope_:r}=n;return JY(r,t),tZ(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=O1("Patches").applyPatches_;return v1(e)?r(e,t):this.produce(e,i=>r(i,t))}};function XP(e,t){const n=iR(e)?O1("MapSet").proxyMap_(e,t):aR(e)?O1("MapSet").proxySet_(e,t):k8e(e,t);return(t?t.scope_:Uoe()).drafts_.push(n),n}function C8e(e){return v1(e)||md(10,e),joe(e)}function joe(e){if(!ap(e)||sR(e))return e;const t=e[Au];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=qP(e,t.scope_.immer_.useStrictShallowCopy_)}else n=qP(e,!0);return S3(n,(r,i)=>{Boe(n,r,joe(i))}),t&&(t.finalized_=!1),n}var _u=new _8e,Hoe=_u.produce;_u.produceWithPatches.bind(_u);_u.setAutoFreeze.bind(_u);_u.setUseStrictShallowCopy.bind(_u);_u.applyPatches.bind(_u);_u.createDraft.bind(_u);_u.finishDraft.bind(_u);function Qoe(e){return({dispatch:n,getState:r})=>i=>a=>typeof a=="function"?a(n,r,e):i(a)}var R8e=Qoe(),I8e=Qoe,N8e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?O3:O3.apply(null,arguments)};function rZ(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(Sd(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>v8e(r)&&r.type===e,n}var Woe=class LE extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,LE.prototype)}static get[Symbol.species](){return LE}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new LE(...t[0].concat(this)):new LE(...t.concat(this))}};function iZ(e){return ap(e)?Hoe(e,()=>{}):e}function aZ(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error(Sd(10));const r=n.insert(t,e);return e.set(t,r),r}function D8e(e){return typeof e=="boolean"}var P8e=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let s=new Woe;return n&&(D8e(n)?s.push(R8e):s.push(I8e(n.extraArgument))),s},L8e="RTK_autoBatch",Voe=e=>t=>{setTimeout(t,e)},M8e=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Voe(10),$8e=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,a=!1,s=!1;const o=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?M8e:e.type==="callback"?e.queueNotification:Voe(e.timeout),u=()=>{s=!1,a&&(a=!1,o.forEach(d=>d()))};return Object.assign({},r,{subscribe(d){const f=()=>i&&d(),p=r.subscribe(f);return o.add(d),()=>{p(),o.delete(d)}},dispatch(d){var f;try{return i=!((f=d==null?void 0:d.meta)!=null&&f[L8e]),a=!i,a&&(s||(s=!0,l(u))),r.dispatch(d)}finally{i=!0}}})},F8e=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new Woe(e);return r&&i.push($8e(typeof r=="object"?r:void 0)),i};function B8e(e){const t=P8e(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:a=void 0,enhancers:s=void 0}=e||{};let o;if(typeof n=="function")o=n;else if(j$(n))o=Moe(n);else throw new Error(Sd(1));let l;typeof r=="function"?l=r(t):l=t();let u=O3;i&&(u=N8e({trace:!1,...typeof i=="object"&&i}));const d=y8e(...l),f=F8e(d);let p=typeof s=="function"?s(f):f();const g=u(...p);return H$(o,a,g)}function qoe(e){const t={},n=[];let r;const i={addCase(a,s){const o=typeof a=="string"?a:a.type;if(!o)throw new Error(Sd(28));if(o in t)throw new Error(Sd(29));return t[o]=s,i},addMatcher(a,s){return n.push({matcher:a,reducer:s}),i},addDefaultCase(a){return r=a,i}};return e(i),[t,n,r]}function U8e(e){return typeof e=="function"}function z8e(e,t){let[n,r,i]=qoe(t),a;if(U8e(e))a=()=>iZ(e());else{const o=iZ(e);a=()=>o}function s(o=a(),l){let u=[n[l.type],...r.filter(({matcher:d})=>d(l)).map(({reducer:d})=>d)];return u.filter(d=>!!d).length===0&&(u=[i]),u.reduce((d,f)=>{if(f)if(v1(d)){const g=f(d,l);return g===void 0?d:g}else{if(ap(d))return Hoe(d,p=>f(p,l));{const p=f(d,l);if(p===void 0){if(d===null)return d;throw new Error(Sd(9))}return p}}return d},o)}return s.getInitialState=a,s}var j8e=Symbol.for("rtk-slice-createasyncthunk");function H8e(e,t){return`${e}/${t}`}function Q8e({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[j8e];return function(i){const{name:a,reducerPath:s=a}=i;if(!a)throw new Error(Sd(11));typeof process<"u";const o=(typeof i.reducers=="function"?i.reducers(V8e()):i.reducers)||{},l=Object.keys(o),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(k,_){const R=typeof k=="string"?k:k.type;if(!R)throw new Error(Sd(12));if(R in u.sliceCaseReducersByType)throw new Error(Sd(13));return u.sliceCaseReducersByType[R]=_,d},addMatcher(k,_){return u.sliceMatchers.push({matcher:k,reducer:_}),d},exposeAction(k,_){return u.actionCreators[k]=_,d},exposeCaseReducer(k,_){return u.sliceCaseReducersByName[k]=_,d}};l.forEach(k=>{const _=o[k],R={reducerName:k,type:H8e(a,k),createNotation:typeof i.reducers=="function"};G8e(_)?Z8e(R,_,d,t):q8e(R,_,d)});function f(){const[k={},_=[],R=void 0]=typeof i.extraReducers=="function"?qoe(i.extraReducers):[i.extraReducers],N={...k,...u.sliceCaseReducersByType};return z8e(i.initialState,P=>{for(let L in N)P.addCase(L,N[L]);for(let L of u.sliceMatchers)P.addMatcher(L.matcher,L.reducer);for(let L of _)P.addMatcher(L.matcher,L.reducer);R&&P.addDefaultCase(R)})}const p=k=>k,g=new Map;let O;function S(k,_){return O||(O=f()),O(k,_)}function T(){return O||(O=f()),O.getInitialState()}function w(k,_=!1){function R(P){let L=P[k];return typeof L>"u"&&_&&(L=T()),L}function N(P=p){const L=aZ(g,_,{insert:()=>new WeakMap});return aZ(L,P,{insert:()=>{const j={};for(const[B,V]of Object.entries(i.selectors??{}))j[B]=W8e(V,P,T,_);return j}})}return{reducerPath:k,getSelectors:N,get selectors(){return N(R)},selectSlice:R}}const x={name:a,reducer:S,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:T,...w(s),injectInto(k,{reducerPath:_,...R}={}){const N=_??s;return k.inject({reducerPath:N,reducer:S},R),{...x,...w(N,!0)}}};return x}}function W8e(e,t,n,r){function i(a,...s){let o=t(a);return typeof o>"u"&&r&&(o=n()),e(o,...s)}return i.unwrapped=e,i}var M1=Q8e();function V8e(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function q8e({type:e,reducerName:t,createNotation:n},r,i){let a,s;if("reducer"in r){if(n&&!Y8e(r))throw new Error(Sd(17));a=r.reducer,s=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,s?rZ(e,s):rZ(e))}function G8e(e){return e._reducerDefinitionType==="asyncThunk"}function Y8e(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Z8e({type:e,reducerName:t},n,r,i){if(!i)throw new Error(Sd(18));const{payloadCreator:a,fulfilled:s,pending:o,rejected:l,settled:u,options:d}=n,f=i(e,a,d);r.exposeAction(t,f),s&&r.addCase(f.fulfilled,s),o&&r.addCase(f.pending,o),l&&r.addCase(f.rejected,l),u&&r.addMatcher(f.settled,u),r.exposeCaseReducer(t,{fulfilled:s||OA,pending:o||OA,rejected:l||OA,settled:u||OA})}function OA(){}function Sd(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const X8e={theme:"default",drawerOpen:!0},Goe=M1({name:"editor",initialState:X8e,reducers:{setTheme:(e,t)=>{e.theme=t.payload},setDrawerOpen:(e,t)=>{e.drawerOpen=t.payload}}}),{setTheme:Yoe,setDrawerOpen:K8e}=Goe.actions,V$=e=>e.config,J8e=Goe.reducer;function Zoe(e,t){return function(){return e.apply(t,arguments)}}const{toString:eLe}=Object.prototype,{getPrototypeOf:q$}=Object,oR=(e=>t=>{const n=eLe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Nd=e=>(e=e.toLowerCase(),t=>oR(t)===e),lR=e=>t=>typeof t===e,{isArray:oO}=Array,gw=lR("undefined");function tLe(e){return e!==null&&!gw(e)&&e.constructor!==null&&!gw(e.constructor)&&Tu(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Xoe=Nd("ArrayBuffer");function nLe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Xoe(e.buffer),t}const rLe=lR("string"),Tu=lR("function"),Koe=lR("number"),uR=e=>e!==null&&typeof e=="object",iLe=e=>e===!0||e===!1,G4=e=>{if(oR(e)!=="object")return!1;const t=q$(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},aLe=Nd("Date"),sLe=Nd("File"),oLe=Nd("Blob"),lLe=Nd("FileList"),uLe=e=>uR(e)&&Tu(e.pipe),cLe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Tu(e.append)&&((t=oR(e))==="formdata"||t==="object"&&Tu(e.toString)&&e.toString()==="[object FormData]"))},dLe=Nd("URLSearchParams"),[fLe,hLe,pLe,mLe]=["ReadableStream","Request","Response","Headers"].map(Nd),gLe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _T(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),oO(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Ug=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ele=e=>!gw(e)&&e!==Ug;function KP(){const{caseless:e}=ele(this)&&this||{},t={},n=(r,i)=>{const a=e&&Joe(t,i)||i;G4(t[a])&&G4(r)?t[a]=KP(t[a],r):G4(r)?t[a]=KP({},r):oO(r)?t[a]=r.slice():t[a]=r};for(let r=0,i=arguments.length;r(_T(t,(i,a)=>{n&&Tu(i)?e[a]=Zoe(i,n):e[a]=i},{allOwnKeys:r}),e),yLe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),vLe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},OLe=(e,t,n,r)=>{let i,a,s;const o={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)s=i[a],(!r||r(s,e,t))&&!o[s]&&(t[s]=e[s],o[s]=!0);e=n!==!1&&q$(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},SLe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},ELe=e=>{if(!e)return null;if(oO(e))return e;let t=e.length;if(!Koe(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},wLe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&q$(Uint8Array)),TLe=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},xLe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},kLe=Nd("HTMLFormElement"),ALe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),sZ=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),_Le=Nd("RegExp"),tle=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};_T(n,(i,a)=>{let s;(s=t(i,a,e))!==!1&&(r[a]=s||i)}),Object.defineProperties(e,r)},CLe=e=>{tle(e,(t,n)=>{if(Tu(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Tu(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},RLe=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return oO(e)?r(e):r(String(e).split(t)),n},ILe=()=>{},NLe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,zN="abcdefghijklmnopqrstuvwxyz",oZ="0123456789",nle={DIGIT:oZ,ALPHA:zN,ALPHA_DIGIT:zN+zN.toUpperCase()+oZ},DLe=(e=16,t=nle.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function PLe(e){return!!(e&&Tu(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const LLe=e=>{const t=new Array(10),n=(r,i)=>{if(uR(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const a=oO(r)?[]:{};return _T(r,(s,o)=>{const l=n(s,i+1);!gw(l)&&(a[o]=l)}),t[i]=void 0,a}}return r};return n(e,0)},MLe=Nd("AsyncFunction"),$Le=e=>e&&(uR(e)||Tu(e))&&Tu(e.then)&&Tu(e.catch),rle=((e,t)=>e?setImmediate:t?((n,r)=>(Ug.addEventListener("message",({source:i,data:a})=>{i===Ug&&a===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Ug.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Tu(Ug.postMessage)),FLe=typeof queueMicrotask<"u"?queueMicrotask.bind(Ug):typeof process<"u"&&process.nextTick||rle,rt={isArray:oO,isArrayBuffer:Xoe,isBuffer:tLe,isFormData:cLe,isArrayBufferView:nLe,isString:rLe,isNumber:Koe,isBoolean:iLe,isObject:uR,isPlainObject:G4,isReadableStream:fLe,isRequest:hLe,isResponse:pLe,isHeaders:mLe,isUndefined:gw,isDate:aLe,isFile:sLe,isBlob:oLe,isRegExp:_Le,isFunction:Tu,isStream:uLe,isURLSearchParams:dLe,isTypedArray:wLe,isFileList:lLe,forEach:_T,merge:KP,extend:bLe,trim:gLe,stripBOM:yLe,inherits:vLe,toFlatObject:OLe,kindOf:oR,kindOfTest:Nd,endsWith:SLe,toArray:ELe,forEachEntry:TLe,matchAll:xLe,isHTMLForm:kLe,hasOwnProperty:sZ,hasOwnProp:sZ,reduceDescriptors:tle,freezeMethods:CLe,toObjectSet:RLe,toCamelCase:ALe,noop:ILe,toFiniteNumber:NLe,findKey:Joe,global:Ug,isContextDefined:ele,ALPHABET:nle,generateString:DLe,isSpecCompliantForm:PLe,toJSONObject:LLe,isAsyncFn:MLe,isThenable:$Le,setImmediate:rle,asap:FLe};function Kn(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}rt.inherits(Kn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:rt.toJSONObject(this.config),code:this.code,status:this.status}}});const ile=Kn.prototype,ale={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ale[e]={value:e}});Object.defineProperties(Kn,ale);Object.defineProperty(ile,"isAxiosError",{value:!0});Kn.from=(e,t,n,r,i,a)=>{const s=Object.create(ile);return rt.toFlatObject(e,s,function(l){return l!==Error.prototype},o=>o!=="isAxiosError"),Kn.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,a&&Object.assign(s,a),s};const BLe=null;function JP(e){return rt.isPlainObject(e)||rt.isArray(e)}function sle(e){return rt.endsWith(e,"[]")?e.slice(0,-2):e}function lZ(e,t,n){return e?e.concat(t).map(function(i,a){return i=sle(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function ULe(e){return rt.isArray(e)&&!e.some(JP)}const zLe=rt.toFlatObject(rt,{},null,function(t){return/^is[A-Z]/.test(t)});function cR(e,t,n){if(!rt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=rt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,T){return!rt.isUndefined(T[S])});const r=n.metaTokens,i=n.visitor||d,a=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&rt.isSpecCompliantForm(t);if(!rt.isFunction(i))throw new TypeError("visitor must be a function");function u(O){if(O===null)return"";if(rt.isDate(O))return O.toISOString();if(!l&&rt.isBlob(O))throw new Kn("Blob is not supported. Use a Buffer instead.");return rt.isArrayBuffer(O)||rt.isTypedArray(O)?l&&typeof Blob=="function"?new Blob([O]):Buffer.from(O):O}function d(O,S,T){let w=O;if(O&&!T&&typeof O=="object"){if(rt.endsWith(S,"{}"))S=r?S:S.slice(0,-2),O=JSON.stringify(O);else if(rt.isArray(O)&&ULe(O)||(rt.isFileList(O)||rt.endsWith(S,"[]"))&&(w=rt.toArray(O)))return S=sle(S),w.forEach(function(k,_){!(rt.isUndefined(k)||k===null)&&t.append(s===!0?lZ([S],_,a):s===null?S:S+"[]",u(k))}),!1}return JP(O)?!0:(t.append(lZ(T,S,a),u(O)),!1)}const f=[],p=Object.assign(zLe,{defaultVisitor:d,convertValue:u,isVisitable:JP});function g(O,S){if(!rt.isUndefined(O)){if(f.indexOf(O)!==-1)throw Error("Circular reference detected in "+S.join("."));f.push(O),rt.forEach(O,function(w,x){(!(rt.isUndefined(w)||w===null)&&i.call(t,w,rt.isString(x)?x.trim():x,S,p))===!0&&g(w,S?S.concat(x):[x])}),f.pop()}}if(!rt.isObject(e))throw new TypeError("data must be an object");return g(e),t}function uZ(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function G$(e,t){this._pairs=[],e&&cR(e,this,t)}const ole=G$.prototype;ole.append=function(t,n){this._pairs.push([t,n])};ole.toString=function(t){const n=t?function(r){return t.call(this,r,uZ)}:uZ;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function jLe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function lle(e,t,n){if(!t)return e;const r=n&&n.encode||jLe,i=n&&n.serialize;let a;if(i?a=i(t,n):a=rt.isURLSearchParams(t)?t.toString():new G$(t,n).toString(r),a){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class cZ{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){rt.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ule={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},HLe=typeof URLSearchParams<"u"?URLSearchParams:G$,QLe=typeof FormData<"u"?FormData:null,WLe=typeof Blob<"u"?Blob:null,VLe={isBrowser:!0,classes:{URLSearchParams:HLe,FormData:QLe,Blob:WLe},protocols:["http","https","file","blob","url","data"]},Y$=typeof window<"u"&&typeof document<"u",e8=typeof navigator=="object"&&navigator||void 0,qLe=Y$&&(!e8||["ReactNative","NativeScript","NS"].indexOf(e8.product)<0),GLe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",YLe=Y$&&window.location.href||"http://localhost",ZLe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Y$,hasStandardBrowserEnv:qLe,hasStandardBrowserWebWorkerEnv:GLe,navigator:e8,origin:YLe},Symbol.toStringTag,{value:"Module"})),Il={...ZLe,...VLe};function XLe(e,t){return cR(e,new Il.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,a){return Il.isNode&&rt.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function KLe(e){return rt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function JLe(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r=n.length;return s=!s&&rt.isArray(i)?i.length:s,l?(rt.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!o):((!i[s]||!rt.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],a)&&rt.isArray(i[s])&&(i[s]=JLe(i[s])),!o)}if(rt.isFormData(e)&&rt.isFunction(e.entries)){const n={};return rt.forEachEntry(e,(r,i)=>{t(KLe(r),i,n,0)}),n}return null}function eMe(e,t,n){if(rt.isString(e))try{return(t||JSON.parse)(e),rt.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const CT={transitional:ule,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=rt.isObject(t);if(a&&rt.isHTMLForm(t)&&(t=new FormData(t)),rt.isFormData(t))return i?JSON.stringify(cle(t)):t;if(rt.isArrayBuffer(t)||rt.isBuffer(t)||rt.isStream(t)||rt.isFile(t)||rt.isBlob(t)||rt.isReadableStream(t))return t;if(rt.isArrayBufferView(t))return t.buffer;if(rt.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return XLe(t,this.formSerializer).toString();if((o=rt.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return cR(o?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),eMe(t)):t}],transformResponse:[function(t){const n=this.transitional||CT.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(rt.isResponse(t)||rt.isReadableStream(t))return t;if(t&&rt.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(o){if(s)throw o.name==="SyntaxError"?Kn.from(o,Kn.ERR_BAD_RESPONSE,this,null,this.response):o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Il.classes.FormData,Blob:Il.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};rt.forEach(["delete","get","head","post","put","patch"],e=>{CT.headers[e]={}});const tMe=rt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),nMe=e=>{const t={};let n,r,i;return e&&e.split(` -`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&tMe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},dZ=Symbol("internals");function aE(e){return e&&String(e).trim().toLowerCase()}function Y4(e){return e===!1||e==null?e:rt.isArray(e)?e.map(Y4):String(e)}function rMe(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const iMe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function jN(e,t,n,r,i){if(rt.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!rt.isString(t)){if(rt.isString(r))return t.indexOf(r)!==-1;if(rt.isRegExp(r))return r.test(t)}}function aMe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function sMe(e,t){const n=rt.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,a,s){return this[r].call(this,t,i,a,s)},configurable:!0})})}let Nl=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function a(o,l,u){const d=aE(l);if(!d)throw new Error("header name must be a non-empty string");const f=rt.findKey(i,d);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=Y4(o))}const s=(o,l)=>rt.forEach(o,(u,d)=>a(u,d,l));if(rt.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(rt.isString(t)&&(t=t.trim())&&!iMe(t))s(nMe(t),n);else if(rt.isHeaders(t))for(const[o,l]of t.entries())a(l,o,r);else t!=null&&a(n,t,r);return this}get(t,n){if(t=aE(t),t){const r=rt.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return rMe(i);if(rt.isFunction(n))return n.call(this,i,r);if(rt.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=aE(t),t){const r=rt.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||jN(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function a(s){if(s=aE(s),s){const o=rt.findKey(r,s);o&&(!n||jN(r,r[o],o,n))&&(delete r[o],i=!0)}}return rt.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!t||jN(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,r={};return rt.forEach(this,(i,a)=>{const s=rt.findKey(r,a);if(s){n[s]=Y4(i),delete n[a];return}const o=t?aMe(a):String(a).trim();o!==a&&delete n[a],n[o]=Y4(i),r[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return rt.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&rt.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[dZ]=this[dZ]={accessors:{}}).accessors,i=this.prototype;function a(s){const o=aE(s);r[o]||(sMe(i,s),r[o]=!0)}return rt.isArray(t)?t.forEach(a):a(t),this}};Nl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);rt.reduceDescriptors(Nl.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});rt.freezeMethods(Nl);function HN(e,t){const n=this||CT,r=t||n,i=Nl.from(r.headers);let a=r.data;return rt.forEach(e,function(o){a=o.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function dle(e){return!!(e&&e.__CANCEL__)}function lO(e,t,n){Kn.call(this,e??"canceled",Kn.ERR_CANCELED,t,n),this.name="CanceledError"}rt.inherits(lO,Kn,{__CANCEL__:!0});function fle(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Kn("Request failed with status code "+n.status,[Kn.ERR_BAD_REQUEST,Kn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function oMe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function lMe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,s;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),d=r[a];s||(s=u),n[i]=l,r[i]=u;let f=a,p=0;for(;f!==i;)p+=n[f++],f=f%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),u-s{n=d,i=null,a&&(clearTimeout(a),a=null),e.apply(null,u)};return[(...u)=>{const d=Date.now(),f=d-n;f>=r?s(u,d):(i=u,a||(a=setTimeout(()=>{a=null,s(i)},r-f)))},()=>i&&s(i)]}const T3=(e,t,n=3)=>{let r=0;const i=lMe(50,250);return uMe(a=>{const s=a.loaded,o=a.lengthComputable?a.total:void 0,l=s-r,u=i(l),d=s<=o;r=s;const f={loaded:s,total:o,progress:o?s/o:void 0,bytes:l,rate:u||void 0,estimated:u&&o&&d?(o-s)/u:void 0,event:a,lengthComputable:o!=null,[t?"download":"upload"]:!0};e(f)},n)},fZ=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},hZ=e=>(...t)=>rt.asap(()=>e(...t)),cMe=Il.hasStandardBrowserEnv?function(){const t=Il.navigator&&/(msie|trident)/i.test(Il.navigator.userAgent),n=document.createElement("a");let r;function i(a){let s=a;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(s){const o=rt.isString(s)?i(s):s;return o.protocol===r.protocol&&o.host===r.host}}():function(){return function(){return!0}}(),dMe=Il.hasStandardBrowserEnv?{write(e,t,n,r,i,a){const s=[e+"="+encodeURIComponent(t)];rt.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),rt.isString(r)&&s.push("path="+r),rt.isString(i)&&s.push("domain="+i),a===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function fMe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function hMe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function hle(e,t){return e&&!fMe(t)?hMe(e,t):t}const pZ=e=>e instanceof Nl?{...e}:e;function S1(e,t){t=t||{};const n={};function r(u,d,f){return rt.isPlainObject(u)&&rt.isPlainObject(d)?rt.merge.call({caseless:f},u,d):rt.isPlainObject(d)?rt.merge({},d):rt.isArray(d)?d.slice():d}function i(u,d,f){if(rt.isUndefined(d)){if(!rt.isUndefined(u))return r(void 0,u,f)}else return r(u,d,f)}function a(u,d){if(!rt.isUndefined(d))return r(void 0,d)}function s(u,d){if(rt.isUndefined(d)){if(!rt.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function o(u,d,f){if(f in t)return r(u,d);if(f in e)return r(void 0,u)}const l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:o,headers:(u,d)=>i(pZ(u),pZ(d),!0)};return rt.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=l[d]||i,p=f(e[d],t[d],d);rt.isUndefined(p)&&f!==o||(n[d]=p)}),n}const ple=e=>{const t=S1({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:o}=t;t.headers=s=Nl.from(s),t.url=lle(hle(t.baseURL,t.url),e.params,e.paramsSerializer),o&&s.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):"")));let l;if(rt.isFormData(n)){if(Il.hasStandardBrowserEnv||Il.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((l=s.getContentType())!==!1){const[u,...d]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([u||"multipart/form-data",...d].join("; "))}}if(Il.hasStandardBrowserEnv&&(r&&rt.isFunction(r)&&(r=r(t)),r||r!==!1&&cMe(t.url))){const u=i&&a&&dMe.read(a);u&&s.set(i,u)}return t},pMe=typeof XMLHttpRequest<"u",mMe=pMe&&function(e){return new Promise(function(n,r){const i=ple(e);let a=i.data;const s=Nl.from(i.headers).normalize();let{responseType:o,onUploadProgress:l,onDownloadProgress:u}=i,d,f,p,g,O;function S(){g&&g(),O&&O(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let T=new XMLHttpRequest;T.open(i.method.toUpperCase(),i.url,!0),T.timeout=i.timeout;function w(){if(!T)return;const k=Nl.from("getAllResponseHeaders"in T&&T.getAllResponseHeaders()),R={data:!o||o==="text"||o==="json"?T.responseText:T.response,status:T.status,statusText:T.statusText,headers:k,config:e,request:T};fle(function(P){n(P),S()},function(P){r(P),S()},R),T=null}"onloadend"in T?T.onloadend=w:T.onreadystatechange=function(){!T||T.readyState!==4||T.status===0&&!(T.responseURL&&T.responseURL.indexOf("file:")===0)||setTimeout(w)},T.onabort=function(){T&&(r(new Kn("Request aborted",Kn.ECONNABORTED,e,T)),T=null)},T.onerror=function(){r(new Kn("Network Error",Kn.ERR_NETWORK,e,T)),T=null},T.ontimeout=function(){let _=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const R=i.transitional||ule;i.timeoutErrorMessage&&(_=i.timeoutErrorMessage),r(new Kn(_,R.clarifyTimeoutError?Kn.ETIMEDOUT:Kn.ECONNABORTED,e,T)),T=null},a===void 0&&s.setContentType(null),"setRequestHeader"in T&&rt.forEach(s.toJSON(),function(_,R){T.setRequestHeader(R,_)}),rt.isUndefined(i.withCredentials)||(T.withCredentials=!!i.withCredentials),o&&o!=="json"&&(T.responseType=i.responseType),u&&([p,O]=T3(u,!0),T.addEventListener("progress",p)),l&&T.upload&&([f,g]=T3(l),T.upload.addEventListener("progress",f),T.upload.addEventListener("loadend",g)),(i.cancelToken||i.signal)&&(d=k=>{T&&(r(!k||k.type?new lO(null,e,T):k),T.abort(),T=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const x=oMe(i.url);if(x&&Il.protocols.indexOf(x)===-1){r(new Kn("Unsupported protocol "+x+":",Kn.ERR_BAD_REQUEST,e));return}T.send(a||null)})},gMe=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const a=function(u){if(!i){i=!0,o();const d=u instanceof Error?u:this.reason;r.abort(d instanceof Kn?d:new lO(d instanceof Error?d.message:d))}};let s=t&&setTimeout(()=>{s=null,a(new Kn(`timeout ${t} of ms exceeded`,Kn.ETIMEDOUT))},t);const o=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),e=null)};e.forEach(u=>u.addEventListener("abort",a));const{signal:l}=r;return l.unsubscribe=()=>rt.asap(o),l}},bMe=function*(e,t){let n=e.byteLength;if(!t||n{const i=yMe(e,t);let a=0,s,o=l=>{s||(s=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:d}=await i.next();if(u){o(),l.close();return}let f=d.byteLength;if(n){let p=a+=f;n(p)}l.enqueue(new Uint8Array(d))}catch(u){throw o(u),u}},cancel(l){return o(l),i.return()}},{highWaterMark:2})},dR=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",mle=dR&&typeof ReadableStream=="function",OMe=dR&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),gle=(e,...t)=>{try{return!!e(...t)}catch{return!1}},SMe=mle&&gle(()=>{let e=!1;const t=new Request(Il.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),gZ=64*1024,t8=mle&&gle(()=>rt.isReadableStream(new Response("").body)),x3={stream:t8&&(e=>e.body)};dR&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!x3[t]&&(x3[t]=rt.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Kn(`Response type '${t}' is not supported`,Kn.ERR_NOT_SUPPORT,r)})})})(new Response);const EMe=async e=>{if(e==null)return 0;if(rt.isBlob(e))return e.size;if(rt.isSpecCompliantForm(e))return(await new Request(Il.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(rt.isArrayBufferView(e)||rt.isArrayBuffer(e))return e.byteLength;if(rt.isURLSearchParams(e)&&(e=e+""),rt.isString(e))return(await OMe(e)).byteLength},wMe=async(e,t)=>{const n=rt.toFiniteNumber(e.getContentLength());return n??EMe(t)},TMe=dR&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:a,timeout:s,onDownloadProgress:o,onUploadProgress:l,responseType:u,headers:d,withCredentials:f="same-origin",fetchOptions:p}=ple(e);u=u?(u+"").toLowerCase():"text";let g=gMe([i,a&&a.toAbortSignal()],s),O;const S=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let T;try{if(l&&SMe&&n!=="get"&&n!=="head"&&(T=await wMe(d,r))!==0){let R=new Request(t,{method:"POST",body:r,duplex:"half"}),N;if(rt.isFormData(r)&&(N=R.headers.get("content-type"))&&d.setContentType(N),R.body){const[P,L]=fZ(T,T3(hZ(l)));r=mZ(R.body,gZ,P,L)}}rt.isString(f)||(f=f?"include":"omit");const w="credentials"in Request.prototype;O=new Request(t,{...p,signal:g,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:w?f:void 0});let x=await fetch(O);const k=t8&&(u==="stream"||u==="response");if(t8&&(o||k&&S)){const R={};["status","statusText","headers"].forEach(j=>{R[j]=x[j]});const N=rt.toFiniteNumber(x.headers.get("content-length")),[P,L]=o&&fZ(N,T3(hZ(o),!0))||[];x=new Response(mZ(x.body,gZ,P,()=>{L&&L(),S&&S()}),R)}u=u||"text";let _=await x3[rt.findKey(x3,u)||"text"](x,e);return!k&&S&&S(),await new Promise((R,N)=>{fle(R,N,{data:_,headers:Nl.from(x.headers),status:x.status,statusText:x.statusText,config:e,request:O})})}catch(w){throw S&&S(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new Kn("Network Error",Kn.ERR_NETWORK,e,O),{cause:w.cause||w}):Kn.from(w,w&&w.code,e,O)}}),n8={http:BLe,xhr:mMe,fetch:TMe};rt.forEach(n8,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const bZ=e=>`- ${e}`,xMe=e=>rt.isFunction(e)||e===null||e===!1,ble={getAdapter:e=>{e=rt.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let a=0;a`adapter ${o} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?a.length>1?`since : -`+a.map(bZ).join(` -`):" "+bZ(a[0]):"as no adapter specified";throw new Kn("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:n8};function QN(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new lO(null,e)}function yZ(e){return QN(e),e.headers=Nl.from(e.headers),e.data=HN.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ble.getAdapter(e.adapter||CT.adapter)(e).then(function(r){return QN(e),r.data=HN.call(e,e.transformResponse,r),r.headers=Nl.from(r.headers),r},function(r){return dle(r)||(QN(e),r&&r.response&&(r.response.data=HN.call(e,e.transformResponse,r.response),r.response.headers=Nl.from(r.response.headers))),Promise.reject(r)})}const yle="1.7.7",Z$={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Z$[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const vZ={};Z$.transitional=function(t,n,r){function i(a,s){return"[Axios v"+yle+"] Transitional option '"+a+"'"+s+(r?". "+r:"")}return(a,s,o)=>{if(t===!1)throw new Kn(i(s," has been removed"+(n?" in "+n:"")),Kn.ERR_DEPRECATED);return n&&!vZ[s]&&(vZ[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,s,o):!0}};function kMe(e,t,n){if(typeof e!="object")throw new Kn("options must be an object",Kn.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],s=t[a];if(s){const o=e[a],l=o===void 0||s(o,a,e);if(l!==!0)throw new Kn("option "+a+" must be "+l,Kn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Kn("Unknown option "+a,Kn.ERR_BAD_OPTION)}}const r8={assertOptions:kMe,validators:Z$},Kp=r8.validators;let o1=class{constructor(t){this.defaults=t,this.interceptors={request:new cZ,response:new cZ}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=S1(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&r8.assertOptions(r,{silentJSONParsing:Kp.transitional(Kp.boolean),forcedJSONParsing:Kp.transitional(Kp.boolean),clarifyTimeoutError:Kp.transitional(Kp.boolean)},!1),i!=null&&(rt.isFunction(i)?n.paramsSerializer={serialize:i}:r8.assertOptions(i,{encode:Kp.function,serialize:Kp.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=a&&rt.merge(a.common,a[n.method]);a&&rt.forEach(["delete","get","head","post","put","patch","common"],O=>{delete a[O]}),n.headers=Nl.concat(s,a);const o=[];let l=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(l=l&&S.synchronous,o.unshift(S.fulfilled,S.rejected))});const u=[];this.interceptors.response.forEach(function(S){u.push(S.fulfilled,S.rejected)});let d,f=0,p;if(!l){const O=[yZ.bind(this),void 0];for(O.unshift.apply(O,o),O.push.apply(O,u),p=O.length,d=Promise.resolve(n);f{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const s=new Promise(o=>{r.subscribe(o),a=o}).then(i);return s.cancel=function(){r.unsubscribe(a)},s},t(function(a,s,o){r.reason||(r.reason=new lO(a,s,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new vle(function(i){t=i}),cancel:t}}};function _Me(e){return function(n){return e.apply(null,n)}}function CMe(e){return rt.isObject(e)&&e.isAxiosError===!0}const i8={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(i8).forEach(([e,t])=>{i8[t]=e});function Ole(e){const t=new o1(e),n=Zoe(o1.prototype.request,t);return rt.extend(n,o1.prototype,t,{allOwnKeys:!0}),rt.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Ole(S1(e,i))},n}const tr=Ole(CT);tr.Axios=o1;tr.CanceledError=lO;tr.CancelToken=AMe;tr.isCancel=dle;tr.VERSION=yle;tr.toFormData=cR;tr.AxiosError=Kn;tr.Cancel=tr.CanceledError;tr.all=function(t){return Promise.all(t)};tr.spread=_Me;tr.isAxiosError=CMe;tr.mergeConfig=S1;tr.AxiosHeaders=Nl;tr.formToJSON=e=>cle(rt.isHTMLForm(e)?new FormData(e):e);tr.getAdapter=ble.getAdapter;tr.HttpStatusCode=i8;tr.default=tr;const{Axios:MOt,AxiosError:Sle,CanceledError:$Ot,isCancel:FOt,CancelToken:BOt,VERSION:UOt,all:zOt,Cancel:jOt,isAxiosError:HOt,spread:QOt,toFormData:WOt,AxiosHeaders:VOt,HttpStatusCode:qOt,formToJSON:GOt,getAdapter:YOt,mergeConfig:ZOt}=tr;function RMe(){const e=Loe();return I.jsx(Bn,{width:1,height:"100vh",alignItems:"center",justifyContent:"center",children:I.jsxs(Bn,{alignItems:"center",children:[I.jsx(wr,{variant:"h5",children:"Something went wrong"}),xT(e)&&I.jsxs(wr,{variant:"subtitle1",children:["Status Code: ",e.status]})]})})}const X$=rn.createContext({isLoading:!0,isLoggedIn:!1}),IMe={data:null},Ele=M1({name:"user",initialState:IMe,reducers:{setUserData:(e,t)=>{e.data=t.payload}}}),{setUserData:a8}=Ele.actions,RT=e=>e.user,NMe=Ele.reducer,DMe=e=>{var a;const{children:t}=e,{isLoggedIn:n}=M.useContext(X$),r=Sm(),i=Pr(RT);return n?I.jsx(U$,{to:`/${(a=i.data)==null?void 0:a.lastWorkspaceSlug}`,state:{from:r},replace:!0}):t},PMe=e=>{const{children:t}=e,{isLoggedIn:n,isLoading:r}=M.useContext(X$),i=Sm();return r?I.jsx(rO,{open:!0,children:I.jsx(kd,{color:"inherit"})}):n?t:I.jsx(U$,{to:"/",state:{from:i},replace:!0})};var K$={},WN={};const LMe=gp(F4e);var OZ;function ta(){return OZ||(OZ=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=LMe}(WN)),WN}var MMe=Ii;Object.defineProperty(K$,"__esModule",{value:!0});var wle=K$.default=void 0,$Me=MMe(ta()),FMe=I;wle=K$.default=(0,$Me.default)((0,FMe.jsx)("path",{d:"M17.77 3.77 16 2 6 12l10 10 1.77-1.77L9.54 12z"}),"ArrowBackIosNew");var J$={},BMe=Ii;Object.defineProperty(J$,"__esModule",{value:!0});var Tle=J$.default=void 0,UMe=BMe(ta()),zMe=I;Tle=J$.default=(0,UMe.default)((0,zMe.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");var eF={},jMe=Ii;Object.defineProperty(eF,"__esModule",{value:!0});var xle=eF.default=void 0,HMe=jMe(ta()),QMe=I;xle=eF.default=(0,HMe.default)((0,QMe.jsx)("path",{d:"M3 15h8v-2H3zm0 4h8v-2H3zm0-8h8V9H3zm0-6v2h8V5zm10 0h8v14h-8z"}),"VerticalSplit");var tF={},WMe=Ii;Object.defineProperty(tF,"__esModule",{value:!0});var nF=tF.default=void 0,VMe=WMe(ta()),qMe=I;nF=tF.default=(0,VMe.default)((0,qMe.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");const GMe=e=>{const[t,n]=M.useState([]);return M.useEffect(()=>{if(!e)return;const r=()=>n(e.getPresences()??[]);r();const i=e.subscribe("others",a=>{(a.type==="presence-changed"||a.type==="watched")&&r(),a.type==="unwatched"&&n(s=>s.filter(o=>o.clientID!==a.value.clientID))});return()=>{i(),n([])}},[e]),{presenceList:t}},YMe={mode:"both",shareRole:null,doc:null,client:null,cmView:null},kle=M1({name:"editor",initialState:YMe,reducers:{setMode:(e,t)=>{e.mode=t.payload},setShareRole:(e,t)=>{e.shareRole=t.payload},setDoc:(e,t)=>{e.doc=t.payload},setClient:(e,t)=>{e.client=t.payload},setCmView:(e,t)=>{Object.assign(e,{cmView:t.payload})}}}),{setMode:s8,setDoc:k3,setClient:A3,setShareRole:ZMe,setCmView:XMe}=kle.actions,vp=e=>e.editor,KMe=kle.reducer,JMe={data:null},Ale=M1({name:"workspace",initialState:JMe,reducers:{setWorkspaceData:(e,t)=>{e.data=t.payload}}}),{setWorkspaceData:SZ}=Ale.actions,fR=e=>e.workspace,e9e=Ale.reducer,t9e=Id(I.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt");function _le(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t=0)&&(n[i]=e[i]);return n}function EZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Cle=rn.createContext(),a9e={mui:{root:{},anchorOriginTopCenter:{},anchorOriginBottomCenter:{},anchorOriginTopRight:{},anchorOriginBottomRight:{},anchorOriginTopLeft:{},anchorOriginBottomLeft:{}},container:{containerRoot:{},containerAnchorOriginTopCenter:{},containerAnchorOriginBottomCenter:{},containerAnchorOriginTopRight:{},containerAnchorOriginBottomRight:{},containerAnchorOriginTopLeft:{},containerAnchorOriginBottomLeft:{}}},Sh={view:{default:20,dense:4},snackbar:{default:6,dense:2}},zg={maxSnack:3,dense:!1,hideIconVariant:!1,variant:"default",autoHideDuration:5e3,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:WRe,transitionDuration:{enter:225,exit:195}},c2=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},s9e=function(t){return""+c2(t.vertical)+c2(t.horizontal)},o9e=function(t){return Object.keys(t).filter(function(n){return!a9e.container[n]}).reduce(function(n,r){var i;return Li({},n,(i={},i[r]=t[r],i))},{})},g0={TIMEOUT:"timeout",CLICKAWAY:"clickaway",MAXSNACK:"maxsnack",INSTRUCTED:"instructed"},Z4={toContainerAnchorOrigin:function(t){return"containerAnchorOrigin"+t},toAnchorOrigin:function(t){var n=t.vertical,r=t.horizontal;return"anchorOrigin"+c2(n)+c2(r)},toVariant:function(t){return"variant"+c2(t)}},SA=function(t){return!!t||t===0},wZ=function(t){return typeof t=="number"||t===null},l9e=function(t,n,r){return function(i){return i==="autoHideDuration"?wZ(t.autoHideDuration)?t.autoHideDuration:wZ(n.autoHideDuration)?n.autoHideDuration:zg.autoHideDuration:t[i]||n[i]||r[i]}};function VN(e,t,n){return e===void 0&&(e={}),t===void 0&&(t={}),n===void 0&&(n={}),Li({},n,{},t,{},e)}var u9e="SnackbarContent",Rle={root:u9e+"-root"},c9e=lt("div")(function(e){var t,n,r=e.theme;return n={},n["&."+Rle.root]=(t={display:"flex",flexWrap:"wrap",flexGrow:1},t[r.breakpoints.up("sm")]={flexGrow:"initial",minWidth:288},t),n}),d9e=M.forwardRef(function(e,t){var n=e.className,r=q0(e,["className"]);return rn.createElement(c9e,Object.assign({ref:t,className:bw(Rle.root,n)},r))}),TZ={right:"left",left:"right",bottom:"up",top:"down"},f9e=function(t){return t.horizontal!=="center"?TZ[t.horizontal]:TZ[t.vertical]},h9e=function(t){return rn.createElement(rm,Object.assign({},t),rn.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 - 10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},p9e=function(t){return rn.createElement(rm,Object.assign({},t),rn.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},m9e=function(t){return rn.createElement(rm,Object.assign({},t),rn.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2, - 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12, - 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},g9e=function(t){return rn.createElement(rm,Object.assign({},t),rn.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, - 0 22,12A10,10 0 0,0 12,2Z`}))},EA={fontSize:20,marginInlineEnd:8},b9e={default:void 0,success:rn.createElement(h9e,{style:EA}),warning:rn.createElement(p9e,{style:EA}),error:rn.createElement(m9e,{style:EA}),info:rn.createElement(g9e,{style:EA})};function d2(e,t){return e.reduce(function(n,r){return r==null?n:function(){for(var a=arguments.length,s=new Array(a),o=0;o .MuiCollapse-container, & > .MuiCollapse-root",wrapper:"& > .MuiCollapse-container > .MuiCollapse-wrapper, & > .MuiCollapse-root > .MuiCollapse-wrapper"},GN=16,pg="SnackbarContainer",cd={root:pg+"-root",rootDense:pg+"-rootDense",top:pg+"-top",bottom:pg+"-bottom",left:pg+"-left",right:pg+"-right",center:pg+"-center"},E9e=lt("div")(function(e){var t,n,r,i,a,s,o=e.theme;return s={},s["&."+cd.root]=(t={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:o.zIndex.snackbar,height:"auto",width:"auto",transition:"top 300ms ease 0ms, right 300ms ease 0ms, bottom 300ms ease 0ms, left 300ms ease 0ms, margin 300ms ease 0ms, max-width 300ms ease 0ms",pointerEvents:"none"},t[qN.container]={pointerEvents:"all"},t[qN.wrapper]={padding:Sh.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},t.maxWidth="calc(100% - "+Sh.view.default*2+"px)",t[o.breakpoints.down("sm")]={width:"100%",maxWidth:"calc(100% - "+GN*2+"px)"},t),s["&."+cd.rootDense]=(n={},n[qN.wrapper]={padding:Sh.snackbar.dense+"px 0px"},n),s["&."+cd.top]={top:Sh.view.default-Sh.snackbar.default,flexDirection:"column"},s["&."+cd.bottom]={bottom:Sh.view.default-Sh.snackbar.default,flexDirection:"column-reverse"},s["&."+cd.left]=(r={left:Sh.view.default},r[o.breakpoints.up("sm")]={alignItems:"flex-start"},r[o.breakpoints.down("sm")]={left:GN+"px"},r),s["&."+cd.right]=(i={right:Sh.view.default},i[o.breakpoints.up("sm")]={alignItems:"flex-end"},i[o.breakpoints.down("sm")]={right:GN+"px"},i),s["&."+cd.center]=(a={left:"50%",transform:"translateX(-50%)"},a[o.breakpoints.up("sm")]={alignItems:"center"},a),s}),w9e=function(t){var n=t.className,r=t.anchorOrigin,i=t.dense,a=q0(t,["className","anchorOrigin","dense"]),s=bw(cd[r.vertical],cd[r.horizontal],cd.root,n,i&&cd.rootDense);return rn.createElement(E9e,Object.assign({className:s},a))},T9e=rn.memo(w9e),x9e=function(e){i9e(t,e);function t(r){var i;return i=e.call(this,r)||this,i.enqueueSnackbar=function(a,s){s===void 0&&(s={});var o=s,l=o.key,u=o.preventDuplicate,d=q0(o,["key","preventDuplicate"]),f=SA(l),p=f?l:new Date().getTime()+Math.random(),g=l9e(d,i.props,zg),O=Li({key:p},d,{message:a,open:!0,entered:!1,requestClose:!1,variant:g("variant"),anchorOrigin:g("anchorOrigin"),autoHideDuration:g("autoHideDuration")});return d.persist&&(O.autoHideDuration=void 0),i.setState(function(S){if(u===void 0&&i.props.preventDuplicate||u){var T=function(_){return f?_.key===l:_.message===a},w=S.queue.findIndex(T)>-1,x=S.snacks.findIndex(T)>-1;if(w||x)return S}return i.handleDisplaySnack(Li({},S,{queue:[].concat(S.queue,[O])}))}),p},i.handleDisplaySnack=function(a){var s=a.snacks;return s.length>=i.maxSnack?i.handleDismissOldest(a):i.processQueue(a)},i.processQueue=function(a){var s=a.queue,o=a.snacks;return s.length>0?Li({},a,{snacks:[].concat(o,[s[0]]),queue:s.slice(1,s.length)}):a},i.handleDismissOldest=function(a){if(a.snacks.some(function(d){return!d.open||d.requestClose}))return a;var s=!1,o=!1,l=a.snacks.reduce(function(d,f){return d+(f.open&&f.persist?1:0)},0);l===i.maxSnack&&(o=!0);var u=a.snacks.map(function(d){return!s&&(!d.persist||o)?(s=!0,d.entered?(d.onClose&&d.onClose(null,g0.MAXSNACK,d.key),i.props.onClose&&i.props.onClose(null,g0.MAXSNACK,d.key),Li({},d,{open:!1})):Li({},d,{requestClose:!0})):Li({},d)});return Li({},a,{snacks:u})},i.handleEnteredSnack=function(a,s,o){if(!SA(o))throw new Error("handleEnteredSnack Cannot be called with undefined key");i.setState(function(l){var u=l.snacks;return{snacks:u.map(function(d){return d.key===o?Li({},d,{entered:!0}):Li({},d)})}})},i.handleCloseSnack=function(a,s,o){if(i.props.onClose&&i.props.onClose(a,s,o),s!==g0.CLICKAWAY){var l=o===void 0;i.setState(function(u){var d=u.snacks,f=u.queue;return{snacks:d.map(function(p){return!l&&p.key!==o?Li({},p):p.entered?Li({},p,{open:!1}):Li({},p,{requestClose:!0})}),queue:f.filter(function(p){return p.key!==o})}})}},i.closeSnackbar=function(a){var s=i.state.snacks.find(function(o){return o.key===a});SA(a)&&s&&s.onClose&&s.onClose(null,g0.INSTRUCTED,a),i.handleCloseSnack(null,g0.INSTRUCTED,a)},i.handleExitedSnack=function(a,s,o){var l=s||o;if(!SA(l))throw new Error("handleExitedSnack Cannot be called with undefined key");i.setState(function(u){var d=i.processQueue(Li({},u,{snacks:u.snacks.filter(function(f){return f.key!==l})}));return d.queue.length===0?d:i.handleDismissOldest(d)})},i.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:i.enqueueSnackbar.bind(EZ(i)),closeSnackbar:i.closeSnackbar.bind(EZ(i))}},i}var n=t.prototype;return n.render=function(){var i=this,a=this.state.contextValue,s=this.props,o=s.iconVariant,l=s.dense,u=l===void 0?zg.dense:l,d=s.hideIconVariant,f=d===void 0?zg.hideIconVariant:d,p=s.domRoot,g=s.children,O=s.classes,S=O===void 0?{}:O,T=q0(s,["maxSnack","preventDuplicate","variant","anchorOrigin","iconVariant","dense","hideIconVariant","domRoot","children","classes"]),w=this.state.snacks.reduce(function(k,_){var R,N=s9e(_.anchorOrigin),P=k[N]||[];return Li({},k,(R={},R[N]=[].concat(P,[_]),R))},{}),x=Object.keys(w).map(function(k){var _=w[k];return rn.createElement(T9e,{key:k,dense:u,anchorOrigin:_[0].anchorOrigin,className:bw(S.containerRoot,S[Z4.toContainerAnchorOrigin(k)])},_.map(function(R){return rn.createElement(S9e,Object.assign({},T,{key:R.key,snack:R,dense:u,iconVariant:o,hideIconVariant:f,classes:o9e(S),onClose:i.handleCloseSnack,onExited:d2([i.handleExitedSnack,i.props.onExited]),onEntered:d2([i.handleEnteredSnack,i.props.onEntered])}))}))});return rn.createElement(Cle.Provider,{value:a},g,p?Yv.createPortal(x,p):x)},r9e(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||zg.maxSnack}}]),t}(M.Component),IT=function(){return M.useContext(Cle)};const k9e={data:null},Ile=M1({name:"document",initialState:k9e,reducers:{setDocumentData:(e,t)=>{e.data=t.payload}}}),{setDocumentData:_3}=Ile.actions,hR=e=>e.document,A9e=Ile.reducer;var uO=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},kv=typeof window>"u"||"Deno"in globalThis;function ec(){}function _9e(e,t){return typeof e=="function"?e(t):e}function o8(e){return typeof e=="number"&&e>=0&&e!==1/0}function Nle(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ny(e,t){return typeof e=="function"?e(t):e}function hd(e,t){return typeof e=="function"?e(t):e}function kZ(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:s,stale:o}=e;if(s){if(r){if(t.queryHash!==rF(s,t.options))return!1}else if(!yw(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||i&&i!==t.state.fetchStatus||a&&!a(t))}function AZ(e,t){const{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(E1(t.options.mutationKey)!==E1(a))return!1}else if(!yw(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function rF(e,t){return((t==null?void 0:t.queryKeyHashFn)||E1)(e)}function E1(e){return JSON.stringify(e,(t,n)=>l8(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function yw(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!yw(e[n],t[n])):!1}function Dle(e,t){if(e===t)return e;const n=_Z(e)&&_Z(t);if(n||l8(e)&&l8(t)){const r=n?e:Object.keys(e),i=r.length,a=n?t:Object.keys(t),s=a.length,o=n?[]:{};let l=0;for(let u=0;u{setTimeout(t,e)})}function u8(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Dle(e,t):t}function R9e(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function I9e(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ple=Symbol();function Lle(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Ple?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Gg,O0,Yy,ire,N9e=(ire=class extends uO{constructor(){super();Fn(this,Gg);Fn(this,O0);Fn(this,Yy);on(this,Yy,t=>{if(!kv&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){Ce(this,O0)||this.setEventListener(Ce(this,Yy))}onUnsubscribe(){var t;this.hasListeners()||((t=Ce(this,O0))==null||t.call(this),on(this,O0,void 0))}setEventListener(t){var n;on(this,Yy,t),(n=Ce(this,O0))==null||n.call(this),on(this,O0,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){Ce(this,Gg)!==t&&(on(this,Gg,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof Ce(this,Gg)=="boolean"?Ce(this,Gg):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Gg=new WeakMap,O0=new WeakMap,Yy=new WeakMap,ire),iF=new N9e,Zy,S0,Xy,are,D9e=(are=class extends uO{constructor(){super();Fn(this,Zy,!0);Fn(this,S0);Fn(this,Xy);on(this,Xy,t=>{if(!kv&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){Ce(this,S0)||this.setEventListener(Ce(this,Xy))}onUnsubscribe(){var t;this.hasListeners()||((t=Ce(this,S0))==null||t.call(this),on(this,S0,void 0))}setEventListener(t){var n;on(this,Xy,t),(n=Ce(this,S0))==null||n.call(this),on(this,S0,t(this.setOnline.bind(this)))}setOnline(t){Ce(this,Zy)!==t&&(on(this,Zy,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return Ce(this,Zy)}},Zy=new WeakMap,S0=new WeakMap,Xy=new WeakMap,are),R3=new D9e;function P9e(e){return Math.min(1e3*2**e,3e4)}function Mle(e){return(e??"online")==="online"?R3.isOnline():!0}var $le=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function YN(e){return e instanceof $le}function Fle(e){let t=!1,n=0,r=!1,i,a,s;const o=new Promise((w,x)=>{a=w,s=x}),l=w=>{var x;r||(O(new $le(w)),(x=e.abort)==null||x.call(e))},u=()=>{t=!0},d=()=>{t=!1},f=()=>iF.isFocused()&&(e.networkMode==="always"||R3.isOnline())&&e.canRun(),p=()=>Mle(e.networkMode)&&e.canRun(),g=w=>{var x;r||(r=!0,(x=e.onSuccess)==null||x.call(e,w),i==null||i(),a(w))},O=w=>{var x;r||(r=!0,(x=e.onError)==null||x.call(e,w),i==null||i(),s(w))},S=()=>new Promise(w=>{var x;i=k=>{(r||f())&&w(k)},(x=e.onPause)==null||x.call(e)}).then(()=>{var w;i=void 0,r||(w=e.onContinue)==null||w.call(e)}),T=()=>{if(r)return;let w;const x=n===0?e.initialPromise:void 0;try{w=x??e.fn()}catch(k){w=Promise.reject(k)}Promise.resolve(w).then(g).catch(k=>{var L;if(r)return;const _=e.retry??(kv?0:3),R=e.retryDelay??P9e,N=typeof R=="function"?R(n,k):R,P=_===!0||typeof _=="number"&&n<_||typeof _=="function"&&_(n,k);if(t||!P){O(k);return}n++,(L=e.onFail)==null||L.call(e,n,k),C9e(N).then(()=>f()?void 0:S()).then(()=>{t?O(k):T()})})};return{promise:o,cancel:l,continue:()=>(i==null||i(),o),cancelRetry:u,continueRetry:d,canStart:p,start:()=>(p()?T():S().then(T),o)}}function L9e(){let e=[],t=0,n=p=>{p()},r=p=>{p()},i=p=>setTimeout(p,0);const a=p=>{i=p},s=p=>{let g;t++;try{g=p()}finally{t--,t||u()}return g},o=p=>{t?e.push(p):i(()=>{n(p)})},l=p=>(...g)=>{o(()=>{p(...g)})},u=()=>{const p=e;e=[],p.length&&i(()=>{r(()=>{p.forEach(g=>{n(g)})})})};return{batch:s,batchCalls:l,schedule:o,setNotifyFunction:p=>{n=p},setBatchNotifyFunction:p=>{r=p},setScheduler:a}}var rs=L9e(),Yg,sre,Ble=(sre=class{constructor(){Fn(this,Yg)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),o8(this.gcTime)&&on(this,Yg,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(kv?1/0:5*60*1e3))}clearGcTimeout(){Ce(this,Yg)&&(clearTimeout(Ce(this,Yg)),on(this,Yg,void 0))}},Yg=new WeakMap,sre),Ky,Jy,Ku,uo,rT,Zg,od,_h,ore,M9e=(ore=class extends Ble{constructor(t){super();Fn(this,od);Fn(this,Ky);Fn(this,Jy);Fn(this,Ku);Fn(this,uo);Fn(this,rT);Fn(this,Zg);on(this,Zg,!1),on(this,rT,t.defaultOptions),this.setOptions(t.options),this.observers=[],on(this,Ku,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,on(this,Ky,$9e(this.options)),this.state=t.state??Ce(this,Ky),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=Ce(this,uo))==null?void 0:t.promise}setOptions(t){this.options={...Ce(this,rT),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Ce(this,Ku).remove(this)}setData(t,n){const r=u8(this.state.data,t,this.options);return lr(this,od,_h).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){lr(this,od,_h).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=Ce(this,uo))==null?void 0:r.promise;return(i=Ce(this,uo))==null||i.cancel(t),n?n.then(ec).catch(ec):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Ce(this,Ky))}isActive(){return this.observers.some(t=>hd(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!Nle(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=Ce(this,uo))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=Ce(this,uo))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Ce(this,Ku).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(Ce(this,uo)&&(Ce(this,Zg)?Ce(this,uo).cancel({revert:!0}):Ce(this,uo).cancelRetry()),this.scheduleGc()),Ce(this,Ku).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||lr(this,od,_h).call(this,{type:"invalidate"})}fetch(t,n){var l,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(Ce(this,uo))return Ce(this,uo).continueRetry(),Ce(this,uo).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(on(this,Zg,!0),r.signal)})},a=()=>{const f=Lle(this.options,n),p={queryKey:this.queryKey,meta:this.meta};return i(p),on(this,Zg,!1),this.options.persister?this.options.persister(f,p,this):f(p)},s={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};i(s),(l=this.options.behavior)==null||l.onFetch(s,this),on(this,Jy,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=s.fetchOptions)==null?void 0:u.meta))&&lr(this,od,_h).call(this,{type:"fetch",meta:(d=s.fetchOptions)==null?void 0:d.meta});const o=f=>{var p,g,O,S;YN(f)&&f.silent||lr(this,od,_h).call(this,{type:"error",error:f}),YN(f)||((g=(p=Ce(this,Ku).config).onError)==null||g.call(p,f,this),(S=(O=Ce(this,Ku).config).onSettled)==null||S.call(O,this.state.data,f,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return on(this,uo,Fle({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var p,g,O,S;if(f===void 0){o(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(T){o(T);return}(g=(p=Ce(this,Ku).config).onSuccess)==null||g.call(p,f,this),(S=(O=Ce(this,Ku).config).onSettled)==null||S.call(O,f,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:o,onFail:(f,p)=>{lr(this,od,_h).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{lr(this,od,_h).call(this,{type:"pause"})},onContinue:()=>{lr(this,od,_h).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),Ce(this,uo).start()}},Ky=new WeakMap,Jy=new WeakMap,Ku=new WeakMap,uo=new WeakMap,rT=new WeakMap,Zg=new WeakMap,od=new WeakSet,_h=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Ule(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return YN(i)&&i.revert&&Ce(this,Jy)?{...Ce(this,Jy),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),rs.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),Ce(this,Ku).notify({query:this,type:"updated",action:t})})},ore);function Ule(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Mle(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function $9e(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var of,lre,zle=(lre=class extends uO{constructor(t={}){super();Fn(this,of);this.config=t,on(this,of,new Map)}build(t,n,r){const i=n.queryKey,a=n.queryHash??rF(i,n);let s=this.get(a);return s||(s=new M9e({cache:this,queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){Ce(this,of).has(t.queryHash)||(Ce(this,of).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=Ce(this,of).get(t.queryHash);n&&(t.destroy(),n===t&&Ce(this,of).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){rs.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Ce(this,of).get(t)}getAll(){return[...Ce(this,of).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>kZ(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>kZ(t,r)):n}notify(t){rs.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){rs.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){rs.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},of=new WeakMap,lre),lf,Fo,Xg,uf,i0,ure,F9e=(ure=class extends Ble{constructor(t){super();Fn(this,uf);Fn(this,lf);Fn(this,Fo);Fn(this,Xg);this.mutationId=t.mutationId,on(this,Fo,t.mutationCache),on(this,lf,[]),this.state=t.state||jle(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Ce(this,lf).includes(t)||(Ce(this,lf).push(t),this.clearGcTimeout(),Ce(this,Fo).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){on(this,lf,Ce(this,lf).filter(n=>n!==t)),this.scheduleGc(),Ce(this,Fo).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Ce(this,lf).length||(this.state.status==="pending"?this.scheduleGc():Ce(this,Fo).remove(this))}continue(){var t;return((t=Ce(this,Xg))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,a,s,o,l,u,d,f,p,g,O,S,T,w,x,k,_,R,N,P;on(this,Xg,Fle({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(L,j)=>{lr(this,uf,i0).call(this,{type:"failed",failureCount:L,error:j})},onPause:()=>{lr(this,uf,i0).call(this,{type:"pause"})},onContinue:()=>{lr(this,uf,i0).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Ce(this,Fo).canRun(this)}));const n=this.state.status==="pending",r=!Ce(this,Xg).canStart();try{if(!n){lr(this,uf,i0).call(this,{type:"pending",variables:t,isPaused:r}),await((a=(i=Ce(this,Fo).config).onMutate)==null?void 0:a.call(i,t,this));const j=await((o=(s=this.options).onMutate)==null?void 0:o.call(s,t));j!==this.state.context&&lr(this,uf,i0).call(this,{type:"pending",context:j,variables:t,isPaused:r})}const L=await Ce(this,Xg).start();return await((u=(l=Ce(this,Fo).config).onSuccess)==null?void 0:u.call(l,L,t,this.state.context,this)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,L,t,this.state.context)),await((g=(p=Ce(this,Fo).config).onSettled)==null?void 0:g.call(p,L,null,this.state.variables,this.state.context,this)),await((S=(O=this.options).onSettled)==null?void 0:S.call(O,L,null,t,this.state.context)),lr(this,uf,i0).call(this,{type:"success",data:L}),L}catch(L){try{throw await((w=(T=Ce(this,Fo).config).onError)==null?void 0:w.call(T,L,t,this.state.context,this)),await((k=(x=this.options).onError)==null?void 0:k.call(x,L,t,this.state.context)),await((R=(_=Ce(this,Fo).config).onSettled)==null?void 0:R.call(_,void 0,L,this.state.variables,this.state.context,this)),await((P=(N=this.options).onSettled)==null?void 0:P.call(N,void 0,L,t,this.state.context)),L}finally{lr(this,uf,i0).call(this,{type:"error",error:L})}}finally{Ce(this,Fo).runNext(this)}}},lf=new WeakMap,Fo=new WeakMap,Xg=new WeakMap,uf=new WeakSet,i0=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),rs.batch(()=>{Ce(this,lf).forEach(r=>{r.onMutationUpdate(t)}),Ce(this,Fo).notify({mutation:this,type:"updated",action:t})})},ure);function jle(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var nu,iT,cre,B9e=(cre=class extends uO{constructor(t={}){super();Fn(this,nu);Fn(this,iT);this.config=t,on(this,nu,new Map),on(this,iT,Date.now())}build(t,n,r){const i=new F9e({mutationCache:this,mutationId:++Uk(this,iT)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=wA(t),r=Ce(this,nu).get(n)??[];r.push(t),Ce(this,nu).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=wA(t);if(Ce(this,nu).has(n)){const i=(r=Ce(this,nu).get(n))==null?void 0:r.filter(a=>a!==t);i&&(i.length===0?Ce(this,nu).delete(n):Ce(this,nu).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=Ce(this,nu).get(wA(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=Ce(this,nu).get(wA(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){rs.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...Ce(this,nu).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>AZ(n,r))}findAll(t={}){return this.getAll().filter(n=>AZ(t,n))}notify(t){rs.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return rs.batch(()=>Promise.all(t.map(n=>n.continue().catch(ec))))}},nu=new WeakMap,iT=new WeakMap,cre);function wA(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function c8(e){return{onFetch:(t,n)=>{const r=async()=>{var O,S,T,w,x;const i=t.options,a=(T=(S=(O=t.fetchOptions)==null?void 0:O.meta)==null?void 0:S.fetchMore)==null?void 0:T.direction,s=((w=t.state.data)==null?void 0:w.pages)||[],o=((x=t.state.data)==null?void 0:x.pageParams)||[],l={pages:[],pageParams:[]};let u=!1;const d=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},f=Lle(t.options,t.fetchOptions),p=async(k,_,R)=>{if(u)return Promise.reject();if(_==null&&k.pages.length)return Promise.resolve(k);const N={queryKey:t.queryKey,pageParam:_,direction:R?"backward":"forward",meta:t.options.meta};d(N);const P=await f(N),{maxPages:L}=t.options,j=R?I9e:R9e;return{pages:j(k.pages,P,L),pageParams:j(k.pageParams,_,L)}};let g;if(a&&s.length){const k=a==="backward",_=k?Hle:d8,R={pages:s,pageParams:o},N=_(i,R);g=await p(R,N,k)}else{g=await p(l,o[0]??i.initialPageParam);const k=e??s.length;for(let _=1;_{var i,a;return(a=(i=t.options).persister)==null?void 0:a.call(i,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function d8(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Hle(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}function U9e(e,t){return t?d8(e,t)!=null:!1}function z9e(e,t){return!t||!e.getPreviousPageParam?!1:Hle(e,t)!=null}var Sa,E0,w0,ev,tv,T0,nv,rv,dre,j9e=(dre=class{constructor(e={}){Fn(this,Sa);Fn(this,E0);Fn(this,w0);Fn(this,ev);Fn(this,tv);Fn(this,T0);Fn(this,nv);Fn(this,rv);on(this,Sa,e.queryCache||new zle),on(this,E0,e.mutationCache||new B9e),on(this,w0,e.defaultOptions||{}),on(this,ev,new Map),on(this,tv,new Map),on(this,T0,0)}mount(){Uk(this,T0)._++,Ce(this,T0)===1&&(on(this,nv,iF.subscribe(async e=>{e&&(await this.resumePausedMutations(),Ce(this,Sa).onFocus())})),on(this,rv,R3.subscribe(async e=>{e&&(await this.resumePausedMutations(),Ce(this,Sa).onOnline())})))}unmount(){var e,t;Uk(this,T0)._--,Ce(this,T0)===0&&((e=Ce(this,nv))==null||e.call(this),on(this,nv,void 0),(t=Ce(this,rv))==null||t.call(this),on(this,rv,void 0))}isFetching(e){return Ce(this,Sa).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Ce(this,E0).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Ce(this,Sa).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=Ce(this,Sa).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(Ny(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return Ce(this,Sa).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=Ce(this,Sa).get(r.queryHash),a=i==null?void 0:i.state.data,s=_9e(t,a);if(s!==void 0)return Ce(this,Sa).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return rs.batch(()=>Ce(this,Sa).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Ce(this,Sa).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=Ce(this,Sa);rs.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=Ce(this,Sa),r={type:"active",...e};return rs.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=rs.batch(()=>Ce(this,Sa).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(ec).catch(ec)}invalidateQueries(e={},t={}){return rs.batch(()=>{if(Ce(this,Sa).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=rs.batch(()=>Ce(this,Sa).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let a=i.fetch(void 0,n);return n.throwOnError||(a=a.catch(ec)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(ec)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=Ce(this,Sa).build(this,t);return n.isStaleByTime(Ny(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ec).catch(ec)}fetchInfiniteQuery(e){return e.behavior=c8(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ec).catch(ec)}resumePausedMutations(){return R3.isOnline()?Ce(this,E0).resumePausedMutations():Promise.resolve()}getQueryCache(){return Ce(this,Sa)}getMutationCache(){return Ce(this,E0)}getDefaultOptions(){return Ce(this,w0)}setDefaultOptions(e){on(this,w0,e)}setQueryDefaults(e,t){Ce(this,ev).set(E1(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Ce(this,ev).values()];let n={};return t.forEach(r=>{yw(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){Ce(this,tv).set(E1(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Ce(this,tv).values()];let n={};return t.forEach(r=>{yw(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Ce(this,w0).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=rF(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===Ple&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...Ce(this,w0).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Ce(this,Sa).clear(),Ce(this,E0).clear()}},Sa=new WeakMap,E0=new WeakMap,w0=new WeakMap,ev=new WeakMap,tv=new WeakMap,T0=new WeakMap,nv=new WeakMap,rv=new WeakMap,dre),bl,_r,aT,Bo,Kg,iv,cf,sT,av,sv,Jg,e1,x0,ov,ei,ME,f8,h8,p8,m8,g8,b8,y8,Wle,fre,Qle=(fre=class extends uO{constructor(t,n){super();Fn(this,ei);Fn(this,bl);Fn(this,_r);Fn(this,aT);Fn(this,Bo);Fn(this,Kg);Fn(this,iv);Fn(this,cf);Fn(this,sT);Fn(this,av);Fn(this,sv);Fn(this,Jg);Fn(this,e1);Fn(this,x0);Fn(this,ov,new Set);this.options=n,on(this,bl,t),on(this,cf,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(Ce(this,_r).addObserver(this),RZ(Ce(this,_r),this.options)?lr(this,ei,ME).call(this):this.updateResult(),lr(this,ei,m8).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return v8(Ce(this,_r),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return v8(Ce(this,_r),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,lr(this,ei,g8).call(this),lr(this,ei,b8).call(this),Ce(this,_r).removeObserver(this)}setOptions(t,n){const r=this.options,i=Ce(this,_r);if(this.options=Ce(this,bl).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof hd(this.options.enabled,Ce(this,_r))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");lr(this,ei,y8).call(this),Ce(this,_r).setOptions(this.options),r._defaulted&&!C3(this.options,r)&&Ce(this,bl).getQueryCache().notify({type:"observerOptionsUpdated",query:Ce(this,_r),observer:this});const a=this.hasListeners();a&&IZ(Ce(this,_r),i,this.options,r)&&lr(this,ei,ME).call(this),this.updateResult(n),a&&(Ce(this,_r)!==i||hd(this.options.enabled,Ce(this,_r))!==hd(r.enabled,Ce(this,_r))||Ny(this.options.staleTime,Ce(this,_r))!==Ny(r.staleTime,Ce(this,_r)))&&lr(this,ei,f8).call(this);const s=lr(this,ei,h8).call(this);a&&(Ce(this,_r)!==i||hd(this.options.enabled,Ce(this,_r))!==hd(r.enabled,Ce(this,_r))||s!==Ce(this,x0))&&lr(this,ei,p8).call(this,s)}getOptimisticResult(t){const n=Ce(this,bl).getQueryCache().build(Ce(this,bl),t),r=this.createResult(n,t);return Q9e(this,r)&&(on(this,Bo,r),on(this,iv,this.options),on(this,Kg,Ce(this,_r).state)),r}getCurrentResult(){return Ce(this,Bo)}trackResult(t,n){const r={};return Object.keys(t).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),t[i])})}),r}trackProp(t){Ce(this,ov).add(t)}getCurrentQuery(){return Ce(this,_r)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=Ce(this,bl).defaultQueryOptions(t),r=Ce(this,bl).getQueryCache().build(Ce(this,bl),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return lr(this,ei,ME).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),Ce(this,Bo)))}createResult(t,n){var P;const r=Ce(this,_r),i=this.options,a=Ce(this,Bo),s=Ce(this,Kg),o=Ce(this,iv),u=t!==r?t.state:Ce(this,aT),{state:d}=t;let f={...d},p=!1,g;if(n._optimisticResults){const L=this.hasListeners(),j=!L&&RZ(t,n),B=L&&IZ(t,r,n,i);(j||B)&&(f={...f,...Ule(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:O,errorUpdatedAt:S,status:T}=f;if(n.select&&f.data!==void 0)if(a&&f.data===(s==null?void 0:s.data)&&n.select===Ce(this,sT))g=Ce(this,av);else try{on(this,sT,n.select),g=n.select(f.data),g=u8(a==null?void 0:a.data,g,n),on(this,av,g),on(this,cf,null)}catch(L){on(this,cf,L)}else g=f.data;if(n.placeholderData!==void 0&&g===void 0&&T==="pending"){let L;if(a!=null&&a.isPlaceholderData&&n.placeholderData===(o==null?void 0:o.placeholderData))L=a.data;else if(L=typeof n.placeholderData=="function"?n.placeholderData((P=Ce(this,sv))==null?void 0:P.state.data,Ce(this,sv)):n.placeholderData,n.select&&L!==void 0)try{L=n.select(L),on(this,cf,null)}catch(j){on(this,cf,j)}L!==void 0&&(T="success",g=u8(a==null?void 0:a.data,L,n),p=!0)}Ce(this,cf)&&(O=Ce(this,cf),g=Ce(this,av),S=Date.now(),T="error");const w=f.fetchStatus==="fetching",x=T==="pending",k=T==="error",_=x&&w,R=g!==void 0;return{status:T,fetchStatus:f.fetchStatus,isPending:x,isSuccess:T==="success",isError:k,isInitialLoading:_,isLoading:_,data:g,dataUpdatedAt:f.dataUpdatedAt,error:O,errorUpdatedAt:S,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:w,isRefetching:w&&!x,isLoadingError:k&&!R,isPaused:f.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:k&&R,isStale:aF(t,n),refetch:this.refetch}}updateResult(t){const n=Ce(this,Bo),r=this.createResult(Ce(this,_r),this.options);if(on(this,Kg,Ce(this,_r).state),on(this,iv,this.options),Ce(this,Kg).data!==void 0&&on(this,sv,Ce(this,_r)),C3(r,n))return;on(this,Bo,r);const i={},a=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!Ce(this,ov).size)return!0;const l=new Set(o??Ce(this,ov));return this.options.throwOnError&&l.add("error"),Object.keys(Ce(this,Bo)).some(u=>{const d=u;return Ce(this,Bo)[d]!==n[d]&&l.has(d)})};(t==null?void 0:t.listeners)!==!1&&a()&&(i.listeners=!0),lr(this,ei,Wle).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&lr(this,ei,m8).call(this)}},bl=new WeakMap,_r=new WeakMap,aT=new WeakMap,Bo=new WeakMap,Kg=new WeakMap,iv=new WeakMap,cf=new WeakMap,sT=new WeakMap,av=new WeakMap,sv=new WeakMap,Jg=new WeakMap,e1=new WeakMap,x0=new WeakMap,ov=new WeakMap,ei=new WeakSet,ME=function(t){lr(this,ei,y8).call(this);let n=Ce(this,_r).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(ec)),n},f8=function(){lr(this,ei,g8).call(this);const t=Ny(this.options.staleTime,Ce(this,_r));if(kv||Ce(this,Bo).isStale||!o8(t))return;const r=Nle(Ce(this,Bo).dataUpdatedAt,t)+1;on(this,Jg,setTimeout(()=>{Ce(this,Bo).isStale||this.updateResult()},r))},h8=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(Ce(this,_r)):this.options.refetchInterval)??!1},p8=function(t){lr(this,ei,b8).call(this),on(this,x0,t),!(kv||hd(this.options.enabled,Ce(this,_r))===!1||!o8(Ce(this,x0))||Ce(this,x0)===0)&&on(this,e1,setInterval(()=>{(this.options.refetchIntervalInBackground||iF.isFocused())&&lr(this,ei,ME).call(this)},Ce(this,x0)))},m8=function(){lr(this,ei,f8).call(this),lr(this,ei,p8).call(this,lr(this,ei,h8).call(this))},g8=function(){Ce(this,Jg)&&(clearTimeout(Ce(this,Jg)),on(this,Jg,void 0))},b8=function(){Ce(this,e1)&&(clearInterval(Ce(this,e1)),on(this,e1,void 0))},y8=function(){const t=Ce(this,bl).getQueryCache().build(Ce(this,bl),this.options);if(t===Ce(this,_r))return;const n=Ce(this,_r);on(this,_r,t),on(this,aT,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Wle=function(t){rs.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(Ce(this,Bo))}),Ce(this,bl).getQueryCache().notify({query:Ce(this,_r),type:"observerResultsUpdated"})})},fre);function H9e(e,t){return hd(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function RZ(e,t){return H9e(e,t)||e.state.data!==void 0&&v8(e,t,t.refetchOnMount)}function v8(e,t,n){if(hd(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&aF(e,t)}return!1}function IZ(e,t,n,r){return(e!==t||hd(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&aF(e,n)}function aF(e,t){return hd(t.enabled,e)!==!1&&e.isStaleByTime(Ny(t.staleTime,e))}function Q9e(e,t){return!C3(e.getCurrentResult(),t)}var W9e=class extends Qle{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:c8()},t)}getOptimisticResult(e){return e.behavior=c8(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var O,S;const{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:a,isError:s,isRefetchError:o}=r,l=(S=(O=n.fetchMeta)==null?void 0:O.fetchMore)==null?void 0:S.direction,u=s&&l==="forward",d=i&&l==="forward",f=s&&l==="backward",p=i&&l==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:U9e(t,n.data),hasPreviousPage:z9e(t,n.data),isFetchNextPageError:u,isFetchingNextPage:d,isFetchPreviousPageError:f,isFetchingPreviousPage:p,isRefetchError:o&&!u&&!f,isRefetching:a&&!d&&!p}}},k0,A0,yl,Mh,Kh,X4,O8,hre,V9e=(hre=class extends uO{constructor(n,r){super();Fn(this,Kh);Fn(this,k0);Fn(this,A0);Fn(this,yl);Fn(this,Mh);on(this,k0,n),this.setOptions(r),this.bindMethods(),lr(this,Kh,X4).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const r=this.options;this.options=Ce(this,k0).defaultMutationOptions(n),C3(this.options,r)||Ce(this,k0).getMutationCache().notify({type:"observerOptionsUpdated",mutation:Ce(this,yl),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&E1(r.mutationKey)!==E1(this.options.mutationKey)?this.reset():((i=Ce(this,yl))==null?void 0:i.state.status)==="pending"&&Ce(this,yl).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=Ce(this,yl))==null||n.removeObserver(this)}onMutationUpdate(n){lr(this,Kh,X4).call(this),lr(this,Kh,O8).call(this,n)}getCurrentResult(){return Ce(this,A0)}reset(){var n;(n=Ce(this,yl))==null||n.removeObserver(this),on(this,yl,void 0),lr(this,Kh,X4).call(this),lr(this,Kh,O8).call(this)}mutate(n,r){var i;return on(this,Mh,r),(i=Ce(this,yl))==null||i.removeObserver(this),on(this,yl,Ce(this,k0).getMutationCache().build(Ce(this,k0),this.options)),Ce(this,yl).addObserver(this),Ce(this,yl).execute(n)}},k0=new WeakMap,A0=new WeakMap,yl=new WeakMap,Mh=new WeakMap,Kh=new WeakSet,X4=function(){var r;const n=((r=Ce(this,yl))==null?void 0:r.state)??jle();on(this,A0,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},O8=function(n){rs.batch(()=>{var r,i,a,s,o,l,u,d;if(Ce(this,Mh)&&this.hasListeners()){const f=Ce(this,A0).variables,p=Ce(this,A0).context;(n==null?void 0:n.type)==="success"?((i=(r=Ce(this,Mh)).onSuccess)==null||i.call(r,n.data,f,p),(s=(a=Ce(this,Mh)).onSettled)==null||s.call(a,n.data,null,f,p)):(n==null?void 0:n.type)==="error"&&((l=(o=Ce(this,Mh)).onError)==null||l.call(o,n.error,f,p),(d=(u=Ce(this,Mh)).onSettled)==null||d.call(u,void 0,n.error,f,p))}this.listeners.forEach(f=>{f(Ce(this,A0))})})},hre),Vle=M.createContext(void 0),NT=e=>{const t=M.useContext(Vle);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},q9e=({client:e,children:t})=>(M.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),I.jsx(Vle.Provider,{value:e,children:t})),qle=M.createContext(!1),G9e=()=>M.useContext(qle);qle.Provider;function Y9e(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Z9e=M.createContext(Y9e()),X9e=()=>M.useContext(Z9e);function Gle(e,t){return typeof e=="function"?e(...t):!!e}function K9e(){}var J9e=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},e$e=e=>{M.useEffect(()=>{e.clearReset()},[e])},t$e=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&Gle(n,[e.error,r]),n$e=e=>{e.suspense&&(typeof e.staleTime!="number"&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},r$e=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,i$e=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Yle(e,t,n){var u,d,f,p;const r=NT(),i=G9e(),a=X9e(),s=r.defaultQueryOptions(e);(d=(u=r.getDefaultOptions().queries)==null?void 0:u._experimental_beforeQuery)==null||d.call(u,s),s._optimisticResults=i?"isRestoring":"optimistic",n$e(s),J9e(s,a),e$e(a);const[o]=M.useState(()=>new t(r,s)),l=o.getOptimisticResult(s);if(M.useSyncExternalStore(M.useCallback(g=>{const O=i?()=>{}:o.subscribe(rs.batchCalls(g));return o.updateResult(),O},[o,i]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),M.useEffect(()=>{o.setOptions(s,{listeners:!1})},[s,o]),r$e(s,l))throw i$e(s,o,a);if(t$e({result:l,errorResetBoundary:a,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)}))throw l.error;return(p=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||p.call(f,s,l),s.notifyOnChangeProps?l:o.trackResult(l)}function cO(e,t){return Yle(e,Qle)}function Op(e,t){const n=NT(),[r]=M.useState(()=>new V9e(n,e));M.useEffect(()=>{r.setOptions(e)},[r,e]);const i=M.useSyncExternalStore(M.useCallback(s=>r.subscribe(rs.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=M.useCallback((s,o)=>{r.mutate(s,o).catch(K9e)},[r]);if(i.error&&Gle(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function sF(e,t){return Yle(e,W9e)}const a$e=()=>Op({mutationFn:async e=>(await tr.post("/files",e)).data}),s$e=()=>Op({mutationFn:async e=>tr.put(e.url,new Blob([e.file]),{headers:{Authorization:void 0,"Content-Type":e.file.type}})}),o$e=()=>Op({mutationFn:async e=>{const{exportType:t,content:n,fileName:r}=e;return await tr.post("/files/export-markdown",{exportType:t,content:n,fileName:r},{responseType:"blob",headers:{Accept:"application/octet-stream"}})}}),l$e=()=>{const{enqueueSnackbar:e}=IT(),t=Pr(vp),n=Pr(hR),r=o$e(),i=M.useCallback(async l=>{var u,d,f;try{const p=((d=(u=t.doc)==null?void 0:u.getRoot().content)==null?void 0:d.toString())||"",g=((f=n.data)==null?void 0:f.title)||"codepair_document";e(`${l.toUpperCase()} file export started`,{variant:"info"});const O=await r.mutateAsync({exportType:l,content:p,fileName:g}),S=O.headers["content-disposition"],T=S==null?void 0:S.match(/filename="?(.+)"?\s*$/i),w=T?T[1]:`${g}.${l}`,x=new Blob([O.data],{type:O.headers["content-type"]}),k=window.URL.createObjectURL(x),_=document.createElement("a");_.href=k,_.setAttribute("download",w),document.body.appendChild(_),_.click(),document.body.removeChild(_),window.URL.revokeObjectURL(k),e(`${l.toUpperCase()} file exported successfully`,{variant:"success"})}catch(p){console.error("Error:",p),e(`Failed to export ${l.toUpperCase()} file`,{variant:"error"})}},[t,n,e,r]);return{handleExportToPDF:()=>i("pdf"),handleExportToHTML:()=>i("html"),handleExportToMarkdown:()=>i("markdown")}};function u$e(){const[e,t]=M.useState(null),n=o=>{t(o.currentTarget)},r=()=>{t(null)},{handleExportToPDF:i,handleExportToHTML:a,handleExportToMarkdown:s}=l$e();return I.jsxs(Gs,{children:[I.jsx(Oo,{"aria-controls":"download-menu","aria-haspopup":"true",onClick:n,children:I.jsx(t9e,{})}),I.jsxs(aoe,{id:"download-menu",anchorEl:e,keepMounted:!0,open:!!e,onClose:r,children:[I.jsx(Od,{onClick:i,children:"Download as PDF"}),I.jsx(Od,{onClick:a,children:"Download as HTML"}),I.jsx(Od,{onClick:s,children:"Download as Markdown"})]})]})}var oF={},c$e=Ii;Object.defineProperty(oF,"__esModule",{value:!0});var Zle=oF.default=void 0,d$e=c$e(ta()),f$e=I;Zle=oF.default=(0,d$e.default)((0,f$e.jsx)("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92"}),"Share");function S8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.type==="checkbox",my=e=>e instanceof Date,Qo=e=>e==null;const Xle=e=>typeof e=="object";var Wa=e=>!Qo(e)&&!Array.isArray(e)&&Xle(e)&&!my(e),Kle=e=>Wa(e)&&e.target?DT(e.target)?e.target.checked:e.target.value:e,y$e=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Jle=(e,t)=>e.has(y$e(t)),v$e=e=>{const t=e.constructor&&e.constructor.prototype;return Wa(t)&&t.hasOwnProperty("isPrototypeOf")},lF=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function pl(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(lF&&(e instanceof Blob||e instanceof FileList))&&(n||Wa(e)))if(t=n?[]:{},!n&&!v$e(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=pl(e[r]));else return e;return t}var pR=e=>Array.isArray(e)?e.filter(Boolean):[],Ta=e=>e===void 0,Zt=(e,t,n)=>{if(!t||!Wa(e))return n;const r=pR(t.split(/[,[\].]+?/)).reduce((i,a)=>Qo(i)?i:i[a],e);return Ta(r)||r===e?Ta(e[t])?n:e[t]:r},nc=e=>typeof e=="boolean",uF=e=>/^\w*$/.test(e),eue=e=>pR(e.replace(/["|']|\]/g,"").split(/\.|\[/)),bi=(e,t,n)=>{let r=-1;const i=uF(t)?[t]:eue(t),a=i.length,s=a-1;for(;++rrn.useContext(tue),nue=e=>{const{children:t,...n}=e;return rn.createElement(tue.Provider,{value:n},t)};var rue=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const s=a;return t._proxyFormState[s]!==gd.all&&(t._proxyFormState[s]=!r||gd.all),n&&(n[s]=!0),e[s]}});return i},vl=e=>Wa(e)&&!Object.keys(e).length,iue=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return vl(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(s=>t[s]===(!r||gd.all))},f2=e=>Array.isArray(e)?e:[e],aue=(e,t,n)=>!e||!t||e===t||f2(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function dF(e){const t=rn.useRef(e);t.current=e,rn.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function O$e(e){const t=cF(),{control:n=t.control,disabled:r,name:i,exact:a}=e||{},[s,o]=rn.useState(n._formState),l=rn.useRef(!0),u=rn.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=rn.useRef(i);return d.current=i,dF({disabled:r,next:f=>l.current&&aue(d.current,f.name,a)&&iue(f,u.current,n._updateFormState)&&o({...n._formState,...f}),subject:n._subjects.state}),rn.useEffect(()=>(l.current=!0,u.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),rue(s,n,u.current,!1)}var vf=e=>typeof e=="string",sue=(e,t,n,r,i)=>vf(e)?(r&&t.watch.add(e),Zt(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),Zt(n,a))):(r&&(t.watchAll=!0),n);function oue(e){const t=cF(),{control:n=t.control,name:r,defaultValue:i,disabled:a,exact:s}=e||{},o=rn.useRef(r);o.current=r,dF({disabled:a,subject:n._subjects.values,next:d=>{aue(o.current,d.name,s)&&u(pl(sue(o.current,n._names,d.values||n._formValues,!1,i)))}});const[l,u]=rn.useState(n._getWatch(r,i));return rn.useEffect(()=>n._removeUnmounted()),l}function Hf(e){const t=cF(),{name:n,disabled:r,control:i=t.control,shouldUnregister:a}=e,s=Jle(i._names.array,n),o=oue({control:i,name:n,defaultValue:Zt(i._formValues,n,Zt(i._defaultValues,n,e.defaultValue)),exact:!0}),l=O$e({control:i,name:n,exact:!0}),u=rn.useRef(i.register(n,{...e.rules,value:o,...nc(e.disabled)?{disabled:e.disabled}:{}}));return rn.useEffect(()=>{const d=i._options.shouldUnregister||a,f=(p,g)=>{const O=Zt(i._fields,p);O&&O._f&&(O._f.mount=g)};if(f(n,!0),d){const p=pl(Zt(i._options.defaultValues,n));bi(i._defaultValues,n,p),Ta(Zt(i._formValues,n))&&bi(i._formValues,n,p)}return()=>{(s?d&&!i._state.action:d)?i.unregister(n):f(n,!1)}},[n,i,s,a]),rn.useEffect(()=>{Zt(i._fields,n)&&i._updateDisabledField({disabled:r,fields:i._fields,name:n,value:Zt(i._fields,n)._f.value})},[r,n,i]),{field:{name:n,value:o,...nc(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:rn.useCallback(d=>u.current.onChange({target:{value:Kle(d),name:n},type:I3.CHANGE}),[n]),onBlur:rn.useCallback(()=>u.current.onBlur({target:{value:Zt(i._formValues,n),name:n},type:I3.BLUR}),[n,i]),ref:rn.useCallback(d=>{const f=Zt(i._fields,n);f&&d&&(f._f.ref={focus:()=>d.focus(),select:()=>d.select(),setCustomValidity:p=>d.setCustomValidity(p),reportValidity:()=>d.reportValidity()})},[i._fields,n])},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Zt(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!Zt(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Zt(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Zt(l.validatingFields,n)},error:{enumerable:!0,get:()=>Zt(l.errors,n)}})}}var S$e=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},DZ=e=>({isOnSubmit:!e||e===gd.onSubmit,isOnBlur:e===gd.onBlur,isOnChange:e===gd.onChange,isOnAll:e===gd.all,isOnTouch:e===gd.onTouched}),PZ=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const h2=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const a=Zt(e,i);if(a){const{_f:s,...o}=a;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],i)&&!r)return!0;if(s.ref&&t(s.ref,s.name)&&!r)return!0;if(h2(o,t))break}else if(Wa(o)&&h2(o,t))break}}};var E$e=(e,t,n)=>{const r=f2(Zt(e,n));return bi(r,"root",t[n]),bi(e,n,r),e},fF=e=>e.type==="file",zh=e=>typeof e=="function",N3=e=>{if(!lF)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},K4=e=>vf(e),hF=e=>e.type==="radio",D3=e=>e instanceof RegExp;const LZ={value:!1,isValid:!1},MZ={value:!0,isValid:!0};var lue=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ta(e[0].attributes.value)?Ta(e[0].value)||e[0].value===""?MZ:{value:e[0].value,isValid:!0}:MZ:LZ}return LZ};const $Z={isValid:!1,value:null};var uue=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,$Z):$Z;function FZ(e,t,n="validate"){if(K4(e)||Array.isArray(e)&&e.every(K4)||nc(e)&&!e)return{type:n,message:K4(e)?e:"",ref:t}}var Nb=e=>Wa(e)&&!D3(e)?e:{value:e,message:""},BZ=async(e,t,n,r,i)=>{const{ref:a,refs:s,required:o,maxLength:l,minLength:u,min:d,max:f,pattern:p,validate:g,name:O,valueAsNumber:S,mount:T,disabled:w}=e._f,x=Zt(t,O);if(!T||w)return{};const k=s?s[0]:a,_=W=>{r&&k.reportValidity&&(k.setCustomValidity(nc(W)?"":W||""),k.reportValidity())},R={},N=hF(a),P=DT(a),L=N||P,j=(S||fF(a))&&Ta(a.value)&&Ta(x)||N3(a)&&a.value===""||x===""||Array.isArray(x)&&!x.length,B=S$e.bind(null,O,n,R),V=(W,re,ee,q=wh.maxLength,ne=wh.minLength)=>{const K=W?re:ee;R[O]={type:W?q:ne,message:K,ref:a,...B(W?q:ne,K)}};if(i?!Array.isArray(x)||!x.length:o&&(!L&&(j||Qo(x))||nc(x)&&!x||P&&!lue(s).isValid||N&&!uue(s).isValid)){const{value:W,message:re}=K4(o)?{value:!!o,message:o}:Nb(o);if(W&&(R[O]={type:wh.required,message:re,ref:k,...B(wh.required,re)},!n))return _(re),R}if(!j&&(!Qo(d)||!Qo(f))){let W,re;const ee=Nb(f),q=Nb(d);if(!Qo(x)&&!isNaN(x)){const ne=a.valueAsNumber||x&&+x;Qo(ee.value)||(W=ne>ee.value),Qo(q.value)||(re=nenew Date(new Date().toDateString()+" "+H),G=a.type=="time",ie=a.type=="week";vf(ee.value)&&x&&(W=G?K(x)>K(ee.value):ie?x>ee.value:ne>new Date(ee.value)),vf(q.value)&&x&&(re=G?K(x)+W.value,q=!Qo(re.value)&&x.length<+re.value;if((ee||q)&&(V(ee,W.message,re.message),!n))return _(R[O].message),R}if(p&&!j&&vf(x)){const{value:W,message:re}=Nb(p);if(D3(W)&&!x.match(W)&&(R[O]={type:wh.pattern,message:re,ref:a,...B(wh.pattern,re)},!n))return _(re),R}if(g){if(zh(g)){const W=await g(x,t),re=FZ(W,k);if(re&&(R[O]={...re,...B(wh.validate,re.message)},!n))return _(re.message),R}else if(Wa(g)){let W={};for(const re in g){if(!vl(W)&&!n)break;const ee=FZ(await g[re](x,t),k,re);ee&&(W={...ee,...B(re,ee.message)},_(ee.message),n&&(R[O]=W))}if(!vl(W)&&(R[O]={ref:k,...W},!n))return R}}return _(!0),R};function w$e(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}},P3=e=>Qo(e)||!Xle(e);function b0(e,t){if(P3(e)||P3(t))return e===t;if(my(e)&&my(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const s=t[i];if(my(a)&&my(s)||Wa(a)&&Wa(s)||Array.isArray(a)&&Array.isArray(s)?!b0(a,s):a!==s)return!1}}return!0}var cue=e=>e.type==="select-multiple",x$e=e=>hF(e)||DT(e),XN=e=>N3(e)&&e.isConnected,due=e=>{for(const t in e)if(zh(e[t]))return!0;return!1};function L3(e,t={}){const n=Array.isArray(e);if(Wa(e)||n)for(const r in e)Array.isArray(e[r])||Wa(e[r])&&!due(e[r])?(t[r]=Array.isArray(e[r])?[]:{},L3(e[r],t[r])):Qo(e[r])||(t[r]=!0);return t}function fue(e,t,n){const r=Array.isArray(e);if(Wa(e)||r)for(const i in e)Array.isArray(e[i])||Wa(e[i])&&!due(e[i])?Ta(t)||P3(n[i])?n[i]=Array.isArray(e[i])?L3(e[i],[]):{...L3(e[i])}:fue(e[i],Qo(t)?{}:t[i],n[i]):n[i]=!b0(e[i],t[i]);return n}var TA=(e,t)=>fue(e,t,L3(t)),hue=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Ta(e)?e:t?e===""?NaN:e&&+e:n&&vf(e)?new Date(e):r?r(e):e;function KN(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return fF(t)?t.files:hF(t)?uue(e.refs).value:cue(t)?[...t.selectedOptions].map(({value:n})=>n):DT(t)?lue(e.refs).value:hue(Ta(t.value)?e.ref.value:t.value,e)}var k$e=(e,t,n,r)=>{const i={};for(const a of e){const s=Zt(t,a);s&&bi(i,a,s._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},sE=e=>Ta(e)?e:D3(e)?e.source:Wa(e)?D3(e.value)?e.value.source:e.value:e;const UZ="AsyncFunction";var A$e=e=>(!e||!e.validate)&&!!(zh(e.validate)&&e.validate.constructor.name===UZ||Wa(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===UZ)),_$e=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function zZ(e,t,n){const r=Zt(e,n);if(r||uF(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),s=Zt(t,a),o=Zt(e,a);if(s&&!Array.isArray(s)&&n!==a)return{name:n};if(o&&o.type)return{name:a,error:o};i.pop()}return{name:n}}var C$e=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,R$e=(e,t)=>!pR(Zt(e,t)).length&&Ka(e,t);const I$e={mode:gd.onSubmit,reValidateMode:gd.onChange,shouldFocusError:!0};function N$e(e={}){let t={...I$e,...e},n={submitCount:0,isDirty:!1,isLoading:zh(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=Wa(t.defaultValues)||Wa(t.values)?pl(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:pl(i),s={action:!1,mount:!1,watch:!1},o={mount:new Set,unMount:new Set,array:new Set,watch:new Set},l,u=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:ZN(),array:ZN(),state:ZN()},p=DZ(t.mode),g=DZ(t.reValidateMode),O=t.criteriaMode===gd.all,S=de=>_e=>{clearTimeout(u),u=setTimeout(de,_e)},T=async de=>{if(d.isValid||de){const _e=t.resolver?vl((await L()).errors):await B(r,!0);_e!==n.isValid&&f.state.next({isValid:_e})}},w=(de,_e)=>{(d.isValidating||d.validatingFields)&&((de||Array.from(o.mount)).forEach(Ne=>{Ne&&(_e?bi(n.validatingFields,Ne,_e):Ka(n.validatingFields,Ne))}),f.state.next({validatingFields:n.validatingFields,isValidating:!vl(n.validatingFields)}))},x=(de,_e=[],Ne,Ke,ut=!0,Je=!0)=>{if(Ke&&Ne){if(s.action=!0,Je&&Array.isArray(Zt(r,de))){const gt=Ne(Zt(r,de),Ke.argA,Ke.argB);ut&&bi(r,de,gt)}if(Je&&Array.isArray(Zt(n.errors,de))){const gt=Ne(Zt(n.errors,de),Ke.argA,Ke.argB);ut&&bi(n.errors,de,gt),R$e(n.errors,de)}if(d.touchedFields&&Je&&Array.isArray(Zt(n.touchedFields,de))){const gt=Ne(Zt(n.touchedFields,de),Ke.argA,Ke.argB);ut&&bi(n.touchedFields,de,gt)}d.dirtyFields&&(n.dirtyFields=TA(i,a)),f.state.next({name:de,isDirty:W(de,_e),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else bi(a,de,_e)},k=(de,_e)=>{bi(n.errors,de,_e),f.state.next({errors:n.errors})},_=de=>{n.errors=de,f.state.next({errors:n.errors,isValid:!1})},R=(de,_e,Ne,Ke)=>{const ut=Zt(r,de);if(ut){const Je=Zt(a,de,Ta(Ne)?Zt(i,de):Ne);Ta(Je)||Ke&&Ke.defaultChecked||_e?bi(a,de,_e?Je:KN(ut._f)):q(de,Je),s.mount&&T()}},N=(de,_e,Ne,Ke,ut)=>{let Je=!1,gt=!1;const Jt={name:de},Fe=!!(Zt(r,de)&&Zt(r,de)._f&&Zt(r,de)._f.disabled);if(!Ne||Ke){d.isDirty&&(gt=n.isDirty,n.isDirty=Jt.isDirty=W(),Je=gt!==Jt.isDirty);const we=Fe||b0(Zt(i,de),_e);gt=!!(!Fe&&Zt(n.dirtyFields,de)),we||Fe?Ka(n.dirtyFields,de):bi(n.dirtyFields,de,!0),Jt.dirtyFields=n.dirtyFields,Je=Je||d.dirtyFields&>!==!we}if(Ne){const we=Zt(n.touchedFields,de);we||(bi(n.touchedFields,de,Ne),Jt.touchedFields=n.touchedFields,Je=Je||d.touchedFields&&we!==Ne)}return Je&&ut&&f.state.next(Jt),Je?Jt:{}},P=(de,_e,Ne,Ke)=>{const ut=Zt(n.errors,de),Je=d.isValid&&nc(_e)&&n.isValid!==_e;if(e.delayError&&Ne?(l=S(()=>k(de,Ne)),l(e.delayError)):(clearTimeout(u),l=null,Ne?bi(n.errors,de,Ne):Ka(n.errors,de)),(Ne?!b0(ut,Ne):ut)||!vl(Ke)||Je){const gt={...Ke,...Je&&nc(_e)?{isValid:_e}:{},errors:n.errors,name:de};n={...n,...gt},f.state.next(gt)}},L=async de=>{w(de,!0);const _e=await t.resolver(a,t.context,k$e(de||o.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return w(de),_e},j=async de=>{const{errors:_e}=await L(de);if(de)for(const Ne of de){const Ke=Zt(_e,Ne);Ke?bi(n.errors,Ne,Ke):Ka(n.errors,Ne)}else n.errors=_e;return _e},B=async(de,_e,Ne={valid:!0})=>{for(const Ke in de){const ut=de[Ke];if(ut){const{_f:Je,...gt}=ut;if(Je){const Jt=o.array.has(Je.name),Fe=ut._f&&A$e(ut._f);Fe&&d.validatingFields&&w([Ke],!0);const we=await BZ(ut,a,O,t.shouldUseNativeValidation&&!_e,Jt);if(Fe&&d.validatingFields&&w([Ke]),we[Je.name]&&(Ne.valid=!1,_e))break;!_e&&(Zt(we,Je.name)?Jt?E$e(n.errors,we,Je.name):bi(n.errors,Je.name,we[Je.name]):Ka(n.errors,Je.name))}!vl(gt)&&await B(gt,_e,Ne)}}return Ne.valid},V=()=>{for(const de of o.unMount){const _e=Zt(r,de);_e&&(_e._f.refs?_e._f.refs.every(Ne=>!XN(Ne)):!XN(_e._f.ref))&&ae(de)}o.unMount=new Set},W=(de,_e)=>(de&&_e&&bi(a,de,_e),!b0(Re(),i)),re=(de,_e,Ne)=>sue(de,o,{...s.mount?a:Ta(_e)?i:vf(de)?{[de]:_e}:_e},Ne,_e),ee=de=>pR(Zt(s.mount?a:i,de,e.shouldUnregister?Zt(i,de,[]):[])),q=(de,_e,Ne={})=>{const Ke=Zt(r,de);let ut=_e;if(Ke){const Je=Ke._f;Je&&(!Je.disabled&&bi(a,de,hue(_e,Je)),ut=N3(Je.ref)&&Qo(_e)?"":_e,cue(Je.ref)?[...Je.ref.options].forEach(gt=>gt.selected=ut.includes(gt.value)):Je.refs?DT(Je.ref)?Je.refs.length>1?Je.refs.forEach(gt=>(!gt.defaultChecked||!gt.disabled)&&(gt.checked=Array.isArray(ut)?!!ut.find(Jt=>Jt===gt.value):ut===gt.value)):Je.refs[0]&&(Je.refs[0].checked=!!ut):Je.refs.forEach(gt=>gt.checked=gt.value===ut):fF(Je.ref)?Je.ref.value="":(Je.ref.value=ut,Je.ref.type||f.values.next({name:de,values:{...a}})))}(Ne.shouldDirty||Ne.shouldTouch)&&N(de,ut,Ne.shouldTouch,Ne.shouldDirty,!0),Ne.shouldValidate&&H(de)},ne=(de,_e,Ne)=>{for(const Ke in _e){const ut=_e[Ke],Je=`${de}.${Ke}`,gt=Zt(r,Je);(o.array.has(de)||!P3(ut)||gt&&!gt._f)&&!my(ut)?ne(Je,ut,Ne):q(Je,ut,Ne)}},K=(de,_e,Ne={})=>{const Ke=Zt(r,de),ut=o.array.has(de),Je=pl(_e);bi(a,de,Je),ut?(f.array.next({name:de,values:{...a}}),(d.isDirty||d.dirtyFields)&&Ne.shouldDirty&&f.state.next({name:de,dirtyFields:TA(i,a),isDirty:W(de,Je)})):Ke&&!Ke._f&&!Qo(Je)?ne(de,Je,Ne):q(de,Je,Ne),PZ(de,o)&&f.state.next({...n}),f.values.next({name:s.mount?de:void 0,values:{...a}})},G=async de=>{s.mount=!0;const _e=de.target;let Ne=_e.name,Ke=!0;const ut=Zt(r,Ne),Je=()=>_e.type?KN(ut._f):Kle(de),gt=Jt=>{Ke=Number.isNaN(Jt)||b0(Jt,Zt(a,Ne,Jt))};if(ut){let Jt,Fe;const we=Je(),be=de.type===I3.BLUR||de.type===I3.FOCUS_OUT,xe=!_$e(ut._f)&&!t.resolver&&!Zt(n.errors,Ne)&&!ut._f.deps||C$e(be,Zt(n.touchedFields,Ne),n.isSubmitted,g,p),Ue=PZ(Ne,o,be);bi(a,Ne,we),be?(ut._f.onBlur&&ut._f.onBlur(de),l&&l(0)):ut._f.onChange&&ut._f.onChange(de);const Ct=N(Ne,we,be,!1),qt=!vl(Ct)||Ue;if(!be&&f.values.next({name:Ne,type:de.type,values:{...a}}),xe)return d.isValid&&(e.mode==="onBlur"?be&&T():T()),qt&&f.state.next({name:Ne,...Ue?{}:Ct});if(!be&&Ue&&f.state.next({...n}),t.resolver){const{errors:tt}=await L([Ne]);if(gt(we),Ke){const Wt=zZ(n.errors,r,Ne),Ht=zZ(tt,r,Wt.name||Ne);Jt=Ht.error,Ne=Ht.name,Fe=vl(tt)}}else w([Ne],!0),Jt=(await BZ(ut,a,O,t.shouldUseNativeValidation))[Ne],w([Ne]),gt(we),Ke&&(Jt?Fe=!1:d.isValid&&(Fe=await B(r,!0)));Ke&&(ut._f.deps&&H(ut._f.deps),P(Ne,Fe,Jt,Ct))}},ie=(de,_e)=>{if(Zt(n.errors,_e)&&de.focus)return de.focus(),1},H=async(de,_e={})=>{let Ne,Ke;const ut=f2(de);if(t.resolver){const Je=await j(Ta(de)?de:ut);Ne=vl(Je),Ke=de?!ut.some(gt=>Zt(Je,gt)):Ne}else de?(Ke=(await Promise.all(ut.map(async Je=>{const gt=Zt(r,Je);return await B(gt&>._f?{[Je]:gt}:gt)}))).every(Boolean),!(!Ke&&!n.isValid)&&T()):Ke=Ne=await B(r);return f.state.next({...!vf(de)||d.isValid&&Ne!==n.isValid?{}:{name:de},...t.resolver||!de?{isValid:Ne}:{},errors:n.errors}),_e.shouldFocus&&!Ke&&h2(r,ie,de?ut:o.mount),Ke},Re=de=>{const _e={...s.mount?a:i};return Ta(de)?_e:vf(de)?Zt(_e,de):de.map(Ne=>Zt(_e,Ne))},Se=(de,_e)=>({invalid:!!Zt((_e||n).errors,de),isDirty:!!Zt((_e||n).dirtyFields,de),error:Zt((_e||n).errors,de),isValidating:!!Zt(n.validatingFields,de),isTouched:!!Zt((_e||n).touchedFields,de)}),Z=de=>{de&&f2(de).forEach(_e=>Ka(n.errors,_e)),f.state.next({errors:de?n.errors:{}})},ke=(de,_e,Ne)=>{const Ke=(Zt(r,de,{_f:{}})._f||{}).ref,ut=Zt(n.errors,de)||{},{ref:Je,message:gt,type:Jt,...Fe}=ut;bi(n.errors,de,{...Fe,..._e,ref:Ke}),f.state.next({name:de,errors:n.errors,isValid:!1}),Ne&&Ne.shouldFocus&&Ke&&Ke.focus&&Ke.focus()},$e=(de,_e)=>zh(de)?f.values.subscribe({next:Ne=>de(re(void 0,_e),Ne)}):re(de,_e,!0),ae=(de,_e={})=>{for(const Ne of de?f2(de):o.mount)o.mount.delete(Ne),o.array.delete(Ne),_e.keepValue||(Ka(r,Ne),Ka(a,Ne)),!_e.keepError&&Ka(n.errors,Ne),!_e.keepDirty&&Ka(n.dirtyFields,Ne),!_e.keepTouched&&Ka(n.touchedFields,Ne),!_e.keepIsValidating&&Ka(n.validatingFields,Ne),!t.shouldUnregister&&!_e.keepDefaultValue&&Ka(i,Ne);f.values.next({values:{...a}}),f.state.next({...n,..._e.keepDirty?{isDirty:W()}:{}}),!_e.keepIsValid&&T()},Xe=({disabled:de,name:_e,field:Ne,fields:Ke,value:ut})=>{if(nc(de)&&s.mount||de){const Je=de?void 0:Ta(ut)?KN(Ne?Ne._f:Zt(Ke,_e)._f):ut;bi(a,_e,Je),N(_e,Je,!1,!1,!0)}},We=(de,_e={})=>{let Ne=Zt(r,de);const Ke=nc(_e.disabled)||nc(e.disabled);return bi(r,de,{...Ne||{},_f:{...Ne&&Ne._f?Ne._f:{ref:{name:de}},name:de,mount:!0,..._e}}),o.mount.add(de),Ne?Xe({field:Ne,disabled:nc(_e.disabled)?_e.disabled:e.disabled,name:de,value:_e.value}):R(de,!0,_e.value),{...Ke?{disabled:_e.disabled||e.disabled}:{},...t.progressive?{required:!!_e.required,min:sE(_e.min),max:sE(_e.max),minLength:sE(_e.minLength),maxLength:sE(_e.maxLength),pattern:sE(_e.pattern)}:{},name:de,onChange:G,onBlur:G,ref:ut=>{if(ut){We(de,_e),Ne=Zt(r,de);const Je=Ta(ut.value)&&ut.querySelectorAll&&ut.querySelectorAll("input,select,textarea")[0]||ut,gt=x$e(Je),Jt=Ne._f.refs||[];if(gt?Jt.find(Fe=>Fe===Je):Je===Ne._f.ref)return;bi(r,de,{_f:{...Ne._f,...gt?{refs:[...Jt.filter(XN),Je,...Array.isArray(Zt(i,de))?[{}]:[]],ref:{type:Je.type,name:de}}:{ref:Je}}}),R(de,!1,void 0,Je)}else Ne=Zt(r,de,{}),Ne._f&&(Ne._f.mount=!1),(t.shouldUnregister||_e.shouldUnregister)&&!(Jle(o.array,de)&&s.action)&&o.unMount.add(de)}}},Ye=()=>t.shouldFocusError&&h2(r,ie,o.mount),xt=de=>{nc(de)&&(f.state.next({disabled:de}),h2(r,(_e,Ne)=>{const Ke=Zt(r,Ne);Ke&&(_e.disabled=Ke._f.disabled||de,Array.isArray(Ke._f.refs)&&Ke._f.refs.forEach(ut=>{ut.disabled=Ke._f.disabled||de}))},0,!1))},it=(de,_e)=>async Ne=>{let Ke;Ne&&(Ne.preventDefault&&Ne.preventDefault(),Ne.persist&&Ne.persist());let ut=pl(a);if(f.state.next({isSubmitting:!0}),t.resolver){const{errors:Je,values:gt}=await L();n.errors=Je,ut=gt}else await B(r);if(Ka(n.errors,"root"),vl(n.errors)){f.state.next({errors:{}});try{await de(ut,Ne)}catch(Je){Ke=Je}}else _e&&await _e({...n.errors},Ne),Ye(),setTimeout(Ye);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:vl(n.errors)&&!Ke,submitCount:n.submitCount+1,errors:n.errors}),Ke)throw Ke},Pt=(de,_e={})=>{Zt(r,de)&&(Ta(_e.defaultValue)?K(de,pl(Zt(i,de))):(K(de,_e.defaultValue),bi(i,de,pl(_e.defaultValue))),_e.keepTouched||Ka(n.touchedFields,de),_e.keepDirty||(Ka(n.dirtyFields,de),n.isDirty=_e.defaultValue?W(de,pl(Zt(i,de))):W()),_e.keepError||(Ka(n.errors,de),d.isValid&&T()),f.state.next({...n}))},jt=(de,_e={})=>{const Ne=de?pl(de):i,Ke=pl(Ne),ut=vl(de),Je=ut?i:Ke;if(_e.keepDefaultValues||(i=Ne),!_e.keepValues){if(_e.keepDirtyValues)for(const gt of o.mount)Zt(n.dirtyFields,gt)?bi(Je,gt,Zt(a,gt)):K(gt,Zt(Je,gt));else{if(lF&&Ta(de))for(const gt of o.mount){const Jt=Zt(r,gt);if(Jt&&Jt._f){const Fe=Array.isArray(Jt._f.refs)?Jt._f.refs[0]:Jt._f.ref;if(N3(Fe)){const we=Fe.closest("form");if(we){we.reset();break}}}}r={}}a=e.shouldUnregister?_e.keepDefaultValues?pl(i):{}:pl(Je),f.array.next({values:{...Je}}),f.values.next({values:{...Je}})}o={mount:_e.keepDirtyValues?o.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!d.isValid||!!_e.keepIsValid||!!_e.keepDirtyValues,s.watch=!!e.shouldUnregister,f.state.next({submitCount:_e.keepSubmitCount?n.submitCount:0,isDirty:ut?!1:_e.keepDirty?n.isDirty:!!(_e.keepDefaultValues&&!b0(de,i)),isSubmitted:_e.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:ut?{}:_e.keepDirtyValues?_e.keepDefaultValues&&a?TA(i,a):n.dirtyFields:_e.keepDefaultValues&&de?TA(i,de):_e.keepDirty?n.dirtyFields:{},touchedFields:_e.keepTouched?n.touchedFields:{},errors:_e.keepErrors?n.errors:{},isSubmitSuccessful:_e.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},ct=(de,_e)=>jt(zh(de)?de(a):de,_e);return{control:{register:We,unregister:ae,getFieldState:Se,handleSubmit:it,setError:ke,_executeSchema:L,_getWatch:re,_getDirty:W,_updateValid:T,_removeUnmounted:V,_updateFieldArray:x,_updateDisabledField:Xe,_getFieldArray:ee,_reset:jt,_resetDefaultValues:()=>zh(t.defaultValues)&&t.defaultValues().then(de=>{ct(de,t.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:de=>{n={...n,...de}},_disableForm:xt,_subjects:f,_proxyFormState:d,_setErrors:_,get _fields(){return r},get _formValues(){return a},get _state(){return s},set _state(de){s=de},get _defaultValues(){return i},get _names(){return o},set _names(de){o=de},get _formState(){return n},set _formState(de){n=de},get _options(){return t},set _options(de){t={...t,...de}}},trigger:H,register:We,handleSubmit:it,watch:$e,setValue:K,getValues:Re,reset:ct,resetField:Pt,clearErrors:Z,unregister:ae,setError:ke,setFocus:(de,_e={})=>{const Ne=Zt(r,de),Ke=Ne&&Ne._f;if(Ke){const ut=Ke.refs?Ke.refs[0]:Ke.ref;ut.focus&&(ut.focus(),_e.shouldSelect&&ut.select())}},getFieldState:Se}}function pue(e={}){const t=rn.useRef(),n=rn.useRef(),[r,i]=rn.useState({isDirty:!1,isValidating:!1,isLoading:zh(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:zh(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...N$e(e),formState:r});const a=t.current.control;return a._options=e,dF({subject:a._subjects.state,next:s=>{iue(s,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),rn.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),rn.useEffect(()=>{if(a._proxyFormState.isDirty){const s=a._getDirty();s!==r.isDirty&&a._subjects.state.next({isDirty:s})}},[a,r.isDirty]),rn.useEffect(()=>{e.values&&!b0(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values,i(s=>({...s}))):a._resetDefaultValues()},[e.values,a]),rn.useEffect(()=>{e.errors&&a._setErrors(e.errors)},[e.errors,a]),rn.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),rn.useEffect(()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})},[e.shouldUnregister,a]),t.current.formState=rue(r,a),t.current}var pF={},D$e=Ii;Object.defineProperty(pF,"__esModule",{value:!0});var mue=pF.default=void 0,P$e=D$e(ta()),L$e=I;mue=pF.default=(0,P$e.default)((0,L$e.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel");var mF={},M$e=Ii;Object.defineProperty(mF,"__esModule",{value:!0});var gue=mF.default=void 0,$$e=M$e(ta()),F$e=I;gue=mF.default=(0,$$e.default)((0,F$e.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");function E8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function q$e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function G$e(e,t){return B$e(e)||H$e(e,t)||yue(e,t)||Q$e()}function bue(e){return U$e(e)||j$e(e)||yue(e)||W$e()}function Y$e(e){"@swc/helpers - typeof";return e&&typeof Symbol<"u"&&e.constructor===Symbol?"symbol":typeof e}function yue(e,t){if(e){if(typeof e=="string")return E8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E8(e,t)}}var vue=M.forwardRef(function(e,t){var n=e.rules,r=n===void 0?{}:n,i=e.parseError,a=e.type,s=e.required,o=e.name,l=e.control,u=e.component,d=u===void 0?ST:u,f=e.inputRef,p=e.transform,g=Pu(e,["rules","parseError","type","required","name","control","component","inputRef","transform"]),O=Sp(),S=i||O,T=zn({},r,s&&!r.required&&{required:"This field is required"},a==="email"&&!r.pattern&&{pattern:{value:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:"Please enter a valid email address"}}),w=Hf({name:o,control:l,disabled:g.disabled,rules:T}),x=w.field,k=w.fieldState,_=k.error,R=jf({value:x.value,onChange:x.onChange,transform:{input:typeof(p==null?void 0:p.input)=="function"?p.input:function(j){return j??""},output:typeof(p==null?void 0:p.output)=="function"?p.output:function(j){var B=j.target.value;return a!=="number"?B:B===""?null:B==null?B:Number(B)}}}),N=R.value,P=R.onChange,L=vr(x.ref,f);return I.jsx(d,vi(zn({},g),{name:x.name,value:N,onChange:function(j){P(j),typeof g.onChange=="function"&&g.onChange(j)},onBlur:x.onBlur,required:s,type:a,error:!!_,helperText:_?typeof S=="function"?S(_):_.message:g.helperText,ref:t,inputRef:L}))});vue.displayName="TextFieldElement";var PT=vue;function dO(e){var t=e.handleSubmit,n=e.children,r=e.FormProps,i=e.formContext,a=e.onSuccess,s=e.onError,o=Pu(e,["handleSubmit","children","FormProps","formContext","onSuccess","onError"]);return i?(typeof a=="function"&&typeof t=="function"&&console.warn("Property `onSuccess` will be ignored because handleSubmit is provided"),I.jsx(nue,vi(zn({},i),{children:I.jsx("form",vi(zn({noValidate:!0},r),{onSubmit:t||(a?i.handleSubmit(a,s):function(){return console.log("submit handler `onSuccess` is missing")}),children:n}))}))):I.jsx(Z$e,zn({onSuccess:a,onError:s,FormProps:r,children:n},o))}function Z$e(e){var t=e.onSuccess,n=e.onError,r=e.FormProps,i=e.children,a=Pu(e,["onSuccess","onError","FormProps","children"]),s=pue(zn({},a)),o=s.handleSubmit;return I.jsx(nue,vi(zn({},s),{children:I.jsx("form",vi(zn({onSubmit:o(t||function(){return console.log("submit handler `onSuccess` is missing")},n),noValidate:!0},r),{children:i}))}))}var X$e=M.forwardRef(function(e,t){var n=e.name,r=e.rules,i=r===void 0?{}:r,a=e.required,s=e.parseError,o=e.label,l=e.control,u=e.helperText,d=e.labelProps,f=e.inputRef,p=e.transform,g=Pu(e,["name","rules","required","parseError","label","control","helperText","labelProps","inputRef","transform"]),O=Sp(),S=s||O,T=zn({},i,a&&!i.required&&{required:"This field is required"}),w=Hf({name:n,control:l,disabled:g.disabled,rules:T}),x=w.field,k=w.fieldState,_=k.error,R=jf({value:x.value,onChange:x.onChange,transform:{input:p==null?void 0:p.input,output:typeof(p==null?void 0:p.output)=="function"?p==null?void 0:p.output:function(B,V){return V}}}),N=R.value,P=R.onChange,L=vr(x.ref,f),j=_?typeof S=="function"?S(_):_.message:u;return I.jsxs(Lc,{required:a,error:!!_,ref:t,children:[I.jsx(k$,{row:!0,children:I.jsx(uw,vi(zn({},d),{label:o||"",control:I.jsx(X5,vi(zn({},g),{color:g.color||"primary",sx:bue(Array.isArray(g.sx)?g.sx:[g.sx]).concat([{color:_?"error.main":void 0}]),value:N,checked:!!N,onChange:function(B,V){P(B,V),typeof g.onChange=="function"&&g.onChange(B,V)},inputRef:L}))}))}),j&&I.jsx(aO,{error:!!_,children:j})]})});X$e.displayName="CheckboxElement";var Oue=M.forwardRef(function(e,t){var n,r=e.name,i=e.required,a=e.valueKey,s=a===void 0?"id":a,o=e.labelKey,l=o===void 0?"label":o,u=e.options,d=u===void 0?[]:u,f=e.parseError,p=e.type,g=e.objectOnChange,O=e.rules,S=O===void 0?{}:O,T=e.control,w=e.inputRef,x=e.transform,k=Pu(e,["name","required","valueKey","labelKey","options","parseError","type","objectOnChange","rules","control","inputRef","transform"]),_=Sp(),R=f||_,N=!!(!((n=k.SelectProps)===null||n===void 0)&&n.native),P=zn({},S,i&&!S.required&&{required:"This field is required"}),L=Hf({name:r,rules:P,disabled:k.disabled,control:T}),j=L.field,B=L.fieldState,V=B.error,W=jf({value:j.value,onChange:j.onChange,transform:{input:typeof(x==null?void 0:x.input)=="function"?x.input:function(ne){var K,G;return(G=(K=ne==null?void 0:ne[s])!==null&&K!==void 0?K:ne)!==null&&G!==void 0?G:""},output:typeof(x==null?void 0:x.output)=="function"?x.output:function(ne){var K=ne.target.value;return p==="number"&&K&&(K=Number(K)),K}}}),re=W.value,ee=W.onChange,q=vr(j.ref,w);return p==="number"&&(typeof re>"u"?"undefined":Y$e(re))<"u"&&(k.InputLabelProps=k.InputLabelProps||{},k.InputLabelProps.shrink=!0),I.jsxs(ST,vi(zn({},k),{name:r,value:re,onBlur:j.onBlur,ref:t,onChange:function(ne){if(ee(ne),typeof k.onChange=="function"){var K=ne.target.value;p==="number"&&K&&(K=Number(K)),g&&(K=d.find(function(G){return G[s]===K})),k.onChange(K)}},select:!0,required:i,error:!!V,helperText:V?typeof R=="function"?R(V):V.message:k.helperText,inputRef:q,children:[N&&I.jsx("option",{}),d.map(function(ne){var K,G="".concat(r,"_").concat(ne[s]),ie={value:(K=ne==null?void 0:ne[s])!==null&&K!==void 0?K:ne,disabled:El(ne,"disabled")?!!ne.disabled:!1,children:ne[l]};return N?I.jsx("option",zn({},ie),G):I.jsx(Od,zn({},ie),G)})]}))});Oue.displayName="SelectElement";var w8=Oue,K$e=M.forwardRef(function(e,t){var n=e.helperText,r=e.options,i=e.label,a=e.name,s=e.parseError,o=e.required,l=e.labelKey,u=l===void 0?"label":l,d=e.valueKey,f=d===void 0?"id":d,p=e.returnObject,g=e.disabled,O=e.row,S=e.control,T=e.checkboxColor,w=e.rules,x=e.labelProps,k=e.transform,_=e.defaultValue,R=_===void 0?[]:_,N=Pu(e,["helperText","options","label","name","parseError","required","labelKey","valueKey","returnObject","disabled","row","control","checkboxColor","rules","labelProps","transform","defaultValue"]),P=Uf(),L=Sp(),j=s||L,B=Hf({name:a,rules:o?{required:"This field is required"}:w,disabled:g,control:S,defaultValue:R}),V=B.field,W=B.fieldState,re=W.error,ee=W.invalid,q=jf({value:V.value,onChange:V.onChange,transform:{input:typeof(k==null?void 0:k.input)=="function"?k.input:function(H){return Array.isArray(H)?H:[]},output:k==null?void 0:k.output}}),ne=q.value,K=q.onChange,G=function(H){var Re=El(H,f)?H[f]:H,Se=ne.findIndex(function(ke){var $e=El(ke,f)?ke[f]:ke;return Re===$e}),Z=(Se===-1?bue(ne).concat([H]):ne.filter(function(ke,$e){return Se!==$e})).map(function(ke){return p||!El(ke,f)?ke:ke[f]});K(Z),typeof N.onChange=="function"&&N.onChange(Z)},ie=re?typeof j=="function"?j(re):re.message:n;return I.jsxs(Lc,{error:ee,required:o,ref:t,children:[i?I.jsx(J5,{children:i}):null,I.jsx(k$,{row:O,children:r.map(function(H){var Re=El(H,f)?H[f]:H,Se=El(H,u)?H[u]:H,Z=ne.some(function(ke){return(El(ke,f)?ke[f]:ke)===Re});return M.createElement(uw,vi(zn({},x),{control:I.jsx(X5,{sx:{color:re?P.palette.error.main:void 0},color:T,value:Re,checked:Z,disabled:g,onChange:function(){return G(H)}}),label:"".concat(Se),key:"".concat(Re)}))})}),ie&&I.jsx(aO,{children:ie})]})});K$e.displayName="CheckboxButtonGroup";var J$e=48,eFe=8,tFe=M.forwardRef(function(e,t){var n,r,i,a,s,o=e.options,l=e.label,u=l===void 0?"":l,d=e.itemKey,f=d===void 0?"id":d,p=e.itemValue,g=p===void 0?"":p,O=e.itemLabel,S=O===void 0?"label":O,T=e.required,w=T===void 0?!1:T,x=e.rules,k=x===void 0?{}:x,_=e.parseError,R=e.name,N=e.menuMaxHeight,P=N===void 0?J$e*4.5+eFe:N,L=e.menuMaxWidth,j=L===void 0?250:L,B=e.minWidth,V=B===void 0?120:B,W=e.helperText,re=e.showChips,ee=e.preserveOrder,q=e.control,ne=e.showCheckbox,K=e.formControlProps,G=e.inputRef,ie=e.transform,H=e.inputLabelProps,Re=Pu(e,["options","label","itemKey","itemValue","itemLabel","required","rules","parseError","name","menuMaxHeight","menuMaxWidth","minWidth","helperText","showChips","preserveOrder","control","showCheckbox","formControlProps","inputRef","transform","inputLabelProps"]),Se=Sp(),Z=_||Se,ke=function(yt){var Ut,de;return(de=(Ut=o.find(function(_e){var Ne;return((Ne=_e[g||f])!==null&&Ne!==void 0?Ne:_e)===yt}))===null||Ut===void 0?void 0:Ut[S])!==null&&de!==void 0?de:yt},$e=zn({},k,w&&!k.required&&{required:"This field is required"}),ae=Hf({name:R,rules:$e,disabled:Re.disabled,control:q}),Xe=ae.field,We=ae.fieldState,Ye=We.error,xt=jf({value:Xe.value,onChange:Xe.onChange,transform:{input:typeof(ie==null?void 0:ie.input)=="function"?ie.input:function(yt){return Array.isArray(yt)?yt:[]},output:ie==null?void 0:ie.output}}),it=xt.value,Pt=xt.onChange,jt=vr(Xe.ref,G),ct=Ye?typeof Z=="function"?Z(Ye):Ye.message:W,Ot;return I.jsxs(Lc,vi(zn({},K),{style:zn({minWidth:V},K==null?void 0:K.style),variant:Re.variant,fullWidth:Re.fullWidth,error:!!Ye,size:Re.size,ref:t,children:[u&&I.jsx(toe,vi(zn({},H),{size:Re.size==="small"?"small":H==null?void 0:H.size,error:!!Ye,htmlFor:Re.id||"select-multi-select-".concat(R),required:w,children:u})),I.jsx(N$,vi(zn({},Re),{id:Re.id||"select-multi-select-".concat(R),multiple:!0,label:u||void 0,error:!!Ye,value:it,required:w,onChange:Pt,onBlur:Xe.onBlur,MenuProps:vi(zn({},Re.MenuProps),{slotProps:vi(zn({},(n=Re.MenuProps)===null||n===void 0?void 0:n.slotProps),{paper:zn({},(Ot=(i=Re.MenuProps)===null||i===void 0||(r=i.slotProps)===null||r===void 0?void 0:r.paper)!==null&&Ot!==void 0?Ot:{style:zn({maxHeight:P,width:j},El((s=Re.MenuProps)===null||s===void 0||(a=s.slotProps)===null||a===void 0?void 0:a.paper,"style")&&typeof Re.MenuProps.slotProps.paper.style=="object"&&zn({},Re.MenuProps.slotProps.paper.style))})})}),renderValue:typeof Re.renderValue=="function"?Re.renderValue:re?function(yt){return I.jsx("div",{style:{display:"flex",flexWrap:"wrap"},children:(ee?o.filter(function(Ut){return yt.includes(Ut)}):yt||[]).map(function(Ut){return I.jsx(qse,{label:ke(Ut),style:{display:"flex",flexWrap:"wrap"},onDelete:function(){Pt((Array.isArray(it)?it:[]).filter(function(de){return de!==Ut}))},deleteIcon:I.jsx(mue,{onMouseDown:function(de){de.stopPropagation()}})},Ut)})})}:function(yt){return Array.isArray(yt)?yt.map(ke).join(", "):""},inputRef:jt,children:o.map(function(yt){var Ut=yt[g||f]||yt,de=Array.isArray(it)?it.some(function(_e){return _e===Ut}):!1;return I.jsxs(Od,{value:Ut,sx:{fontWeight:function(_e){return de?_e.typography.fontWeightBold:_e.typography.fontWeightRegular}},children:[ne&&I.jsx(X5,{checked:de}),I.jsx(Vh,{primary:yt[S]||yt})]},Ut)})})),ct&&I.jsx(aO,{error:!!Ye,children:ct})]}))});tFe.displayName="MultiSelectElement";var Sue=M.forwardRef(function(e,t){var n=e.iconColor,r=e.renderIcon,i=r===void 0?function(u){return u?I.jsx(nF,{}):I.jsx(gue,{})}:r,a=Pu(e,["iconColor","renderIcon"]),s=G$e(M.useState(!0),2),o=s[0],l=s[1];return I.jsx(PT,vi(zn({},a),{ref:t,InputProps:{endAdornment:I.jsx(jP,{position:"end",children:I.jsx(Oo,{onMouseDown:function(u){return u.preventDefault()},onClick:function(){return l(!o)},tabIndex:-1,color:n??"default",children:i(o)})})},type:o?"password":"text"}))});Sue.displayName="PasswordElement";var nFe=Sue,rFe=M.forwardRef(function(e,t){var n=e.helperText,r=e.options,i=e.label,a=e.name,s=e.parseError,o=e.labelKey,l=o===void 0?"label":o,u=e.valueKey,d=u===void 0?"id":u,f=e.disabledKey,p=f===void 0?"disabled":f,g=e.required,O=e.emptyOptionLabel,S=e.returnObject,T=e.row,w=e.control,x=e.type,k=e.labelProps,_=e.disabled,R=e.formLabelProps,N=e.transform,P=e.rules,L=P===void 0?{}:P,j=Pu(e,["helperText","options","label","name","parseError","labelKey","valueKey","disabledKey","required","emptyOptionLabel","returnObject","row","control","type","labelProps","disabled","formLabelProps","transform","rules"]),B=Uf(),V=Sp(),W=s||V,re=zn({},L,g&&!L.required&&{required:"This field is required"}),ee=Hf({name:a,rules:re,disabled:_,control:w}),q=ee.field,ne=ee.fieldState,K=ne.error,G=jf({value:q.value,onChange:q.onChange,transform:{input:typeof(N==null?void 0:N.input)=="function"?N.input:function(Z){return Z||""},output:typeof(N==null?void 0:N.output)=="function"?N==null?void 0:N.output:function(Z,ke){return ke&&x==="number"?Number(ke):ke}}}),ie=G.value,H=G.onChange,Re=K?typeof W=="function"?W(K):K.message:n,Se=function(Z,ke){var $e=S?r.find(function(ae){return ae[d]===ke}):ke;H(Z,$e),typeof j.onChange=="function"&&j.onChange($e)};return I.jsxs(Lc,{error:!!K,ref:t,children:[i&&I.jsx(J5,vi(zn({},R),{required:g,error:!!K,children:i})),I.jsxs(kNe,{onChange:Se,name:a,row:T,value:ie,children:[O&&I.jsx(uw,vi(zn({},k),{control:I.jsx(fY,{sx:{color:K?B.palette.error.main:void 0},checked:!ie}),label:O,value:""})),r.map(function(Z){var ke=Z[d],$e=Z[p]||!1;ke===void 0&&console.error("RadioButtonGroup: valueKey ".concat(d," does not exist on option"),Z);var ae=S?ie==null?void 0:ie[d]:ie;x==="number"&&(ae=Number(ae));var Xe=ae===ke;return M.createElement(uw,vi(zn({},k),{control:I.jsx(fY,{sx:{color:K?B.palette.error.main:void 0},disabled:_||$e,checked:Xe}),value:ke,label:Z[l],key:ke}))})]}),Re&&I.jsx(aO,{children:Re})]})});rFe.displayName="RadioButtonGroup";var iFe=M.forwardRef(function(e,t){var n=e.name,r=e.control,i=e.switchProps,a=e.transform,s=Pu(e,["name","control","switchProps","transform"]),o=Hf({name:n,control:r,disabled:s.disabled}),l=o.field,u=jf({value:l.value,onChange:l.onChange,transform:{input:a==null?void 0:a.input,output:typeof(a==null?void 0:a.output)=="function"?a.output:function(g,O){return O}}}),d=u.value,f=u.onChange,p=vr(l.ref,i==null?void 0:i.ref);return I.jsx(uw,zn({ref:t,control:I.jsx(TDe,vi(zn({},i),{name:l.name,value:d,onChange:function(g,O){f(g,O),typeof(i==null?void 0:i.onChange)=="function"&&i.onChange(g,O)},onBlur:function(g){l.onBlur(),typeof(i==null?void 0:i.onBlur)=="function"&&(i==null||i.onBlur(g))},ref:p,checked:!!d}))},s))});iFe.displayName="SwitchElement";var aFe=M.forwardRef(function(e,t){var n=e.passwordFieldName,r=e.customInvalidFieldMessage,i=e.control,a=Pu(e,["passwordFieldName","customInvalidFieldMessage","control"]),s=oue({name:n,control:i});return I.jsx(nFe,vi(zn({control:i},a),{ref:t,rules:{validate:function(o){return o===s||(r??"Password should match")}}}))});aFe.displayName="PasswordRepeatElement";var sFe=M.forwardRef(function(e,t){var n=e.textFieldProps,r=e.autocompleteProps,i=e.name,a=e.control,s=e.options,o=e.loading,l=e.showCheckbox,u=e.rules,d=e.loadingIndicator,f=e.required,p=e.multiple,g=e.label,O=e.parseError,S=e.transform,T=e.matchId,w=Sp(),x=O||w,k=zn({},u,f&&{required:(u==null?void 0:u.required)||"This field is required"}),_=Hf({name:i,control:a,disabled:r==null?void 0:r.disabled,rules:k}),R=_.field,N=_.fieldState,P=N.error,L=function(K){return typeof(r==null?void 0:r.getOptionLabel)=="function"?r.getOptionLabel(K):El(K,"label")?"".concat(K==null?void 0:K.label):"".concat(K)},j=function(K,G){if(typeof(r==null?void 0:r.isOptionEqualToValue)=="function")return r.isOptionEqualToValue(K,G);var ie=El(K,"id")?K.id:K,H=El(G,"id")?G.id:G;return ie===H},B=function(K){return s.find(function(G){return T&&El(G,"id")?G.id===K:j(G,K)})},V=jf({value:R.value,onChange:R.onChange,transform:{input:typeof(S==null?void 0:S.input)=="function"?S.input:function(K){var G;return p?(Array.isArray(K)?K:[]).map(B):(G=B(K))!==null&&G!==void 0?G:null},output:typeof(S==null?void 0:S.output)=="function"?S.output:function(K,G){if(p){var ie=Array.isArray(G)?G:[];return T?ie.map(function(H){return El(H,"id")?H.id:H}):ie}return T&&El(G,"id")?G.id:G}}}),W=V.value,re=V.onChange,ee=vr(R.ref,n==null?void 0:n.inputRef),q=d||I.jsx(kd,{color:"inherit",size:20}),ne;return I.jsx(GCe,vi(zn({},r),{value:W,loading:o,multiple:p,options:s,disableCloseOnSelect:typeof(r==null?void 0:r.disableCloseOnSelect)=="boolean"?r.disableCloseOnSelect:!!p,isOptionEqualToValue:j,getOptionLabel:L,onChange:function(K,G,ie,H){re(K,G,ie,H),r!=null&&r.onChange&&r.onChange(K,G,ie,H)},ref:t,renderOption:(ne=r==null?void 0:r.renderOption)!==null&&ne!==void 0?ne:l?function(K,G,ie){var H=ie.selected;return I.jsxs("li",vi(zn({},K),{children:[I.jsx(X5,{sx:{marginRight:1},checked:H}),L(G)]}))}:void 0,onBlur:function(K){R.onBlur(),typeof(r==null?void 0:r.onBlur)=="function"&&r.onBlur(K)},renderInput:function(K){return I.jsx(ST,vi(zn({name:i,required:u!=null&&u.required?!0:f,label:g},n,K),{error:!!P,InputLabelProps:zn({},K.InputLabelProps,n==null?void 0:n.InputLabelProps),InputProps:zn(vi(zn({},K.InputProps),{endAdornment:I.jsxs(I.Fragment,{children:[o?q:null,K.InputProps.endAdornment]})}),n==null?void 0:n.InputProps),inputProps:zn({},K.inputProps,n==null?void 0:n.inputProps),helperText:P?typeof x=="function"?x(P):P.message:n==null?void 0:n.helperText,inputRef:ee}))}}))});sFe.displayName="AutocompleteElement";var oFe=M.forwardRef(function(e,t){var n=e.name,r=e.control,i=e.label,a=e.rules,s=a===void 0?{}:a,o=e.parseError,l=e.required,u=e.formControlProps,d=e.transform,f=Pu(e,["name","control","label","rules","parseError","required","formControlProps","transform"]),p=Sp(),g=o||p,O=zn({},s,l&&!s.required&&{required:"This field is required"}),S=Hf({name:n,control:r,disabled:f.disabled,rules:O}),T=S.field,w=S.fieldState,x=w.error,k=w.invalid,_=jf({value:T.value,onChange:T.onChange,transform:d}),R=_.value,N=_.onChange,P=x?typeof g=="function"?g(x):x.message:null;return I.jsxs(Lc,vi(zn({error:k,required:l,fullWidth:!0},u),{ref:t,children:[i&&I.jsx(J5,{component:"legend",error:k,children:i}),I.jsx(uDe,vi(zn({},f),{value:R,onChange:N,valueLabelDisplay:f.valueLabelDisplay||"auto"})),P&&I.jsx(aO,{error:k,children:P})]}))});oFe.displayName="SliderElement";var lFe=M.forwardRef(function(e,t){var n=e.rules,r=n===void 0?{}:n,i=e.parseError,a=e.required,s=e.name,o=e.control,l=e.rows,u=e.resizeStyle,d=e.inputRef,f=e.inputProps,p=e.transform,g=Pu(e,["rules","parseError","required","name","control","rows","resizeStyle","inputRef","inputProps","transform"]),O=Sp(),S=i||O,T=zn({},r,a&&!r.required&&{required:"This field is required"}),w=Hf({name:s,control:o,rules:T,disabled:g.disabled}),x=w.field,k=w.fieldState,_=k.error,R=jf({value:x.value,onChange:x.onChange,transform:{input:typeof(p==null?void 0:p.input)=="function"?p.input:function(j){return j??""},output:typeof(p==null?void 0:p.output)=="function"?p.output:function(j){return j.target.value}}}),N=R.value,P=R.onChange,L=vr(x.ref,d);return I.jsx(ST,vi(zn({},g),{name:s,value:N,onChange:function(j){P(j),typeof g.onChange=="function"&&g.onChange(j)},onBlur:x.onBlur,required:a,error:!!_,helperText:_?typeof S=="function"?S(_):_.message:g.helperText,inputRef:L,multiline:!0,InputProps:{inputComponent:Gse,inputProps:zn({minRows:l,style:{resize:u||"both"}},f||{})},ref:t}))});lFe.displayName="TextareaAutosizeElement";const Dy=["No Limit","30 minutes","1 hour","8 hours","24 hours","7 days"];//! moment.js -//! version : 2.30.1 -//! authors : Tim Wood, Iskren Chernev, Moment.js contributors -//! license : MIT -//! momentjs.com -var Eue;function tn(){return Eue.apply(null,arguments)}function uFe(e){Eue=e}function Ad(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function l1(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Hr(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function gF(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Hr(e,t))return!1;return!0}function ml(e){return e===void 0}function sp(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function LT(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function wue(e,t){var n=[],r,i=e.length;for(r=0;r>>0,r;for(r=0;r0)for(n=0;n=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var OF=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,xA=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,eD={},Py={};function Rn(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(Py[e]=i),t&&(Py[t[0]]=function(){return Ff(i.apply(this,arguments),t[1],t[2])}),n&&(Py[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function pFe(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function mFe(e){var t=e.match(OF),n,r;for(n=0,r=t.length;n=0&&xA.test(e);)e=e.replace(xA,r),xA.lastIndex=0,n-=1;return e}var gFe={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function bFe(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(OF).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var yFe="Invalid date";function vFe(){return this._invalidDate}var OFe="%d",SFe=/\d{1,2}/;function EFe(e){return this._ordinal.replace("%d",e)}var wFe={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function TFe(e,t,n,r){var i=this._relativeTime[n];return Wf(i)?i(e,t,n,r):i.replace(/%d/i,e)}function xFe(e,t){var n=this._relativeTime[e>0?"future":"past"];return Wf(n)?n(t):n.replace(/%s/i,t)}var QZ={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Fc(e){return typeof e=="string"?QZ[e]||QZ[e.toLowerCase()]:void 0}function SF(e){var t={},n,r;for(r in e)Hr(e,r)&&(n=Fc(r),n&&(t[n]=e[r]));return t}var kFe={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function AFe(e){var t=[],n;for(n in e)Hr(e,n)&&t.push({unit:n,priority:kFe[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var Aue=/\d/,Lu=/\d\d/,_ue=/\d{3}/,EF=/\d{4}/,gR=/[+-]?\d{6}/,zi=/\d\d?/,Cue=/\d\d\d\d?/,Rue=/\d\d\d\d\d\d?/,bR=/\d{1,3}/,wF=/\d{1,4}/,yR=/[+-]?\d{1,6}/,fO=/\d+/,vR=/[+-]?\d+/,_Fe=/Z|[+-]\d\d:?\d\d/gi,OR=/Z|[+-]\d\d(?::?\d\d)?/gi,CFe=/[+-]?\d+(\.\d{1,3})?/,$T=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,hO=/^[1-9]\d?/,TF=/^([1-9]\d|\d)/,M3;M3={};function ln(e,t,n){M3[e]=Wf(t)?t:function(r,i){return r&&n?n:t}}function RFe(e,t){return Hr(M3,e)?M3[e](t._strict,t._locale):new RegExp(IFe(e))}function IFe(e){return qh(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,a){return n||r||i||a}))}function qh(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function oc(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Tr(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=oc(t)),n}var A8={};function fi(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),sp(t)&&(r=function(a,s){s[t]=Tr(a)}),i=e.length,n=0;n68?1900:2e3)};var Iue=pO("FullYear",!0);function LFe(){return SR(this.year())}function pO(e,t){return function(n){return n!=null?(Nue(this,e,n),tn.updateOffset(this,t),this):vw(this,e)}}function vw(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Nue(e,t,n){var r,i,a,s,o;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,s=e.month(),o=e.date(),o=o===29&&s===1&&!SR(a)?28:o,i?r.setUTCFullYear(a,s,o):r.setFullYear(a,s,o)}}function MFe(e){return e=Fc(e),Wf(this[e])?this[e]():this}function $Fe(e,t){if(typeof e=="object"){e=SF(e);var n=AFe(e),r,i=n.length;for(r=0;r=0?(o=new Date(e+400,t,n,r,i,a,s),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,r,i,a,s),o}function Ow(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function $3(e,t,n){var r=7+t-n,i=(7+Ow(e,0,r).getUTCDay()-t)%7;return-i+r-1}function Fue(e,t,n,r,i){var a=(7+n-r)%7,s=$3(e,r,i),o=1+7*(t-1)+a+s,l,u;return o<=0?(l=e-1,u=p2(l)+o):o>p2(e)?(l=e+1,u=o-p2(e)):(l=e,u=o),{year:l,dayOfYear:u}}function Sw(e,t,n){var r=$3(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,a,s;return i<1?(s=e.year()-1,a=i+Gh(s,t,n)):i>Gh(e.year(),t,n)?(a=i-Gh(e.year(),t,n),s=e.year()+1):(s=e.year(),a=i),{week:a,year:s}}function Gh(e,t,n){var r=$3(e,t,n),i=$3(e+1,t,n);return(p2(e)-r+i)/7}Rn("w",["ww",2],"wo","week");Rn("W",["WW",2],"Wo","isoWeek");ln("w",zi,hO);ln("ww",zi,Lu);ln("W",zi,hO);ln("WW",zi,Lu);FT(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Tr(e)});function ZFe(e){return Sw(e,this._week.dow,this._week.doy).week}var XFe={dow:0,doy:6};function KFe(){return this._week.dow}function JFe(){return this._week.doy}function eBe(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function tBe(e){var t=Sw(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Rn("d",0,"do","day");Rn("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Rn("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Rn("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Rn("e",0,0,"weekday");Rn("E",0,0,"isoWeekday");ln("d",zi);ln("e",zi);ln("E",zi);ln("dd",function(e,t){return t.weekdaysMinRegex(e)});ln("ddd",function(e,t){return t.weekdaysShortRegex(e)});ln("dddd",function(e,t){return t.weekdaysRegex(e)});FT(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:ar(n).invalidWeekday=e});FT(["d","e","E"],function(e,t,n,r){t[r]=Tr(e)});function nBe(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function rBe(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function kF(e,t){return e.slice(t,7).concat(e.slice(0,t))}var iBe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Bue="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),aBe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),sBe=$T,oBe=$T,lBe=$T;function uBe(e,t){var n=Ad(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?kF(n,this._week.dow):e?n[e.day()]:n}function cBe(e){return e===!0?kF(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function dBe(e){return e===!0?kF(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function fBe(e,t,n){var r,i,a,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=Qf([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?t==="dddd"?(i=Ia.call(this._weekdaysParse,s),i!==-1?i:null):t==="ddd"?(i=Ia.call(this._shortWeekdaysParse,s),i!==-1?i:null):(i=Ia.call(this._minWeekdaysParse,s),i!==-1?i:null):t==="dddd"?(i=Ia.call(this._weekdaysParse,s),i!==-1||(i=Ia.call(this._shortWeekdaysParse,s),i!==-1)?i:(i=Ia.call(this._minWeekdaysParse,s),i!==-1?i:null)):t==="ddd"?(i=Ia.call(this._shortWeekdaysParse,s),i!==-1||(i=Ia.call(this._weekdaysParse,s),i!==-1)?i:(i=Ia.call(this._minWeekdaysParse,s),i!==-1?i:null)):(i=Ia.call(this._minWeekdaysParse,s),i!==-1||(i=Ia.call(this._weekdaysParse,s),i!==-1)?i:(i=Ia.call(this._shortWeekdaysParse,s),i!==-1?i:null))}function hBe(e,t,n){var r,i,a;if(this._weekdaysParseExact)return fBe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=Qf([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function pBe(e){if(!this.isValid())return e!=null?this:NaN;var t=vw(this,"Day");return e!=null?(e=nBe(e,this.localeData()),this.add(e-t,"d")):t}function mBe(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function gBe(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=rBe(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function bBe(e){return this._weekdaysParseExact?(Hr(this,"_weekdaysRegex")||AF.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Hr(this,"_weekdaysRegex")||(this._weekdaysRegex=sBe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function yBe(e){return this._weekdaysParseExact?(Hr(this,"_weekdaysRegex")||AF.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Hr(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=oBe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function vBe(e){return this._weekdaysParseExact?(Hr(this,"_weekdaysRegex")||AF.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Hr(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=lBe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function AF(){function e(d,f){return f.length-d.length}var t=[],n=[],r=[],i=[],a,s,o,l,u;for(a=0;a<7;a++)s=Qf([2e3,1]).day(a),o=qh(this.weekdaysMin(s,"")),l=qh(this.weekdaysShort(s,"")),u=qh(this.weekdays(s,"")),t.push(o),n.push(l),r.push(u),i.push(o),i.push(l),i.push(u);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function _F(){return this.hours()%12||12}function OBe(){return this.hours()||24}Rn("H",["HH",2],0,"hour");Rn("h",["hh",2],0,_F);Rn("k",["kk",2],0,OBe);Rn("hmm",0,0,function(){return""+_F.apply(this)+Ff(this.minutes(),2)});Rn("hmmss",0,0,function(){return""+_F.apply(this)+Ff(this.minutes(),2)+Ff(this.seconds(),2)});Rn("Hmm",0,0,function(){return""+this.hours()+Ff(this.minutes(),2)});Rn("Hmmss",0,0,function(){return""+this.hours()+Ff(this.minutes(),2)+Ff(this.seconds(),2)});function Uue(e,t){Rn(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Uue("a",!0);Uue("A",!1);function zue(e,t){return t._meridiemParse}ln("a",zue);ln("A",zue);ln("H",zi,TF);ln("h",zi,hO);ln("k",zi,hO);ln("HH",zi,Lu);ln("hh",zi,Lu);ln("kk",zi,Lu);ln("hmm",Cue);ln("hmmss",Rue);ln("Hmm",Cue);ln("Hmmss",Rue);fi(["H","HH"],ss);fi(["k","kk"],function(e,t,n){var r=Tr(e);t[ss]=r===24?0:r});fi(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});fi(["h","hh"],function(e,t,n){t[ss]=Tr(e),ar(n).bigHour=!0});fi("hmm",function(e,t,n){var r=e.length-2;t[ss]=Tr(e.substr(0,r)),t[bd]=Tr(e.substr(r)),ar(n).bigHour=!0});fi("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[ss]=Tr(e.substr(0,r)),t[bd]=Tr(e.substr(r,2)),t[Hh]=Tr(e.substr(i)),ar(n).bigHour=!0});fi("Hmm",function(e,t,n){var r=e.length-2;t[ss]=Tr(e.substr(0,r)),t[bd]=Tr(e.substr(r))});fi("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[ss]=Tr(e.substr(0,r)),t[bd]=Tr(e.substr(r,2)),t[Hh]=Tr(e.substr(i))});function SBe(e){return(e+"").toLowerCase().charAt(0)==="p"}var EBe=/[ap]\.?m?\.?/i,wBe=pO("Hours",!0);function TBe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var jue={calendar:fFe,longDateFormat:gFe,invalidDate:yFe,ordinal:OFe,dayOfMonthOrdinalParse:SFe,relativeTime:wFe,months:BFe,monthsShort:Due,week:XFe,weekdays:iBe,weekdaysMin:aBe,weekdaysShort:Bue,meridiemParse:EBe},Xi={},oE={},Ew;function xBe(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(i=ER(a.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&xBe(a,r)>=n-1)break;n--}t++}return Ew}function ABe(e){return!!(e&&e.match("^[^/\\\\]*$"))}function ER(e){var t=null,n;if(Xi[e]===void 0&&typeof D_<"u"&&D_&&D_.exports&&ABe(e))try{t=Ew._abbr,n=require,n("./locale/"+e),G0(t)}catch{Xi[e]=null}return Xi[e]}function G0(e,t){var n;return e&&(ml(t)?n=Ep(e):n=CF(e,t),n?Ew=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ew._abbr}function CF(e,t){if(t!==null){var n,r=jue;if(t.abbr=e,Xi[e]!=null)xue("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=Xi[e]._config;else if(t.parentLocale!=null)if(Xi[t.parentLocale]!=null)r=Xi[t.parentLocale]._config;else if(n=ER(t.parentLocale),n!=null)r=n._config;else return oE[t.parentLocale]||(oE[t.parentLocale]=[]),oE[t.parentLocale].push({name:e,config:t}),null;return Xi[e]=new vF(x8(r,t)),oE[e]&&oE[e].forEach(function(i){CF(i.name,i.config)}),G0(e),Xi[e]}else return delete Xi[e],null}function _Be(e,t){if(t!=null){var n,r,i=jue;Xi[e]!=null&&Xi[e].parentLocale!=null?Xi[e].set(x8(Xi[e]._config,t)):(r=ER(e),r!=null&&(i=r._config),t=x8(i,t),r==null&&(t.abbr=e),n=new vF(t),n.parentLocale=Xi[e],Xi[e]=n),G0(e)}else Xi[e]!=null&&(Xi[e].parentLocale!=null?(Xi[e]=Xi[e].parentLocale,e===G0()&&G0(e)):Xi[e]!=null&&delete Xi[e]);return Xi[e]}function Ep(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ew;if(!Ad(e)){if(t=ER(e),t)return t;e=[e]}return kBe(e)}function CBe(){return k8(Xi)}function RF(e){var t,n=e._a;return n&&ar(e).overflow===-2&&(t=n[jh]<0||n[jh]>11?jh:n[gf]<1||n[gf]>xF(n[bo],n[jh])?gf:n[ss]<0||n[ss]>24||n[ss]===24&&(n[bd]!==0||n[Hh]!==0||n[jg]!==0)?ss:n[bd]<0||n[bd]>59?bd:n[Hh]<0||n[Hh]>59?Hh:n[jg]<0||n[jg]>999?jg:-1,ar(e)._overflowDayOfYear&&(tgf)&&(t=gf),ar(e)._overflowWeeks&&t===-1&&(t=DFe),ar(e)._overflowWeekday&&t===-1&&(t=PFe),ar(e).overflow=t),e}var RBe=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,IBe=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,NBe=/Z|[+-]\d\d(?::?\d\d)?/,kA=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],tD=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],DBe=/^\/?Date\((-?\d+)/i,PBe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,LBe={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Hue(e){var t,n,r=e._i,i=RBe.exec(r)||IBe.exec(r),a,s,o,l,u=kA.length,d=tD.length;if(i){for(ar(e).iso=!0,t=0,n=u;tp2(s)||e._dayOfYear===0)&&(ar(e)._overflowDayOfYear=!0),n=Ow(s,0,e._dayOfYear),e._a[jh]=n.getUTCMonth(),e._a[gf]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[ss]===24&&e._a[bd]===0&&e._a[Hh]===0&&e._a[jg]===0&&(e._nextDay=!0,e._a[ss]=0),e._d=(e._useUTC?Ow:YFe).apply(null,r),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ss]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(ar(e).weekdayMismatch=!0)}}function HBe(e){var t,n,r,i,a,s,o,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,s=4,n=Hb(t.GG,e._a[bo],Sw(Ui(),1,4).year),r=Hb(t.W,1),i=Hb(t.E,1),(i<1||i>7)&&(l=!0)):(a=e._locale._week.dow,s=e._locale._week.doy,u=Sw(Ui(),a,s),n=Hb(t.gg,e._a[bo],u.year),r=Hb(t.w,u.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+a,(t.e<0||t.e>6)&&(l=!0)):i=a),r<1||r>Gh(n,a,s)?ar(e)._overflowWeeks=!0:l!=null?ar(e)._overflowWeekday=!0:(o=Fue(n,r,i,a,s),e._a[bo]=o.year,e._dayOfYear=o.dayOfYear)}tn.ISO_8601=function(){};tn.RFC_2822=function(){};function NF(e){if(e._f===tn.ISO_8601){Hue(e);return}if(e._f===tn.RFC_2822){Que(e);return}e._a=[],ar(e).empty=!0;var t=""+e._i,n,r,i,a,s,o=t.length,l=0,u,d;for(i=kue(e._f,e._locale).match(OF)||[],d=i.length,n=0;n0&&ar(e).unusedInput.push(s),t=t.slice(t.indexOf(r)+r.length),l+=r.length),Py[a]?(r?ar(e).empty=!1:ar(e).unusedTokens.push(a),NFe(a,r,e)):e._strict&&!r&&ar(e).unusedTokens.push(a);ar(e).charsLeftOver=o-l,t.length>0&&ar(e).unusedInput.push(t),e._a[ss]<=12&&ar(e).bigHour===!0&&e._a[ss]>0&&(ar(e).bigHour=void 0),ar(e).parsedDateParts=e._a.slice(0),ar(e).meridiem=e._meridiem,e._a[ss]=QBe(e._locale,e._a[ss],e._meridiem),u=ar(e).era,u!==null&&(e._a[bo]=e._locale.erasConvertYear(u,e._a[bo])),IF(e),RF(e)}function QBe(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function WBe(e){var t,n,r,i,a,s,o=!1,l=e._f.length;if(l===0){ar(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:mR()});function que(e,t){var n,r;if(t.length===1&&Ad(t[0])&&(t=t[0]),!t.length)return Ui();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function fUe(){if(!ml(this._isDSTShifted))return this._isDSTShifted;var e={},t;return yF(e,this),e=Wue(e),e._a?(t=e._isUTC?Qf(e._a):Ui(e._a),this._isDSTShifted=this.isValid()&&rUe(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function hUe(){return this.isValid()?!this._isUTC:!1}function pUe(){return this.isValid()?this._isUTC:!1}function Yue(){return this.isValid()?this._isUTC&&this._offset===0:!1}var mUe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,gUe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Dd(e,t){var n=e,r=null,i,a,s;return e_(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:sp(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=mUe.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:Tr(r[gf])*i,h:Tr(r[ss])*i,m:Tr(r[bd])*i,s:Tr(r[Hh])*i,ms:Tr(_8(r[jg]*1e3))*i}):(r=gUe.exec(e))?(i=r[1]==="-"?-1:1,n={y:mg(r[2],i),M:mg(r[3],i),w:mg(r[4],i),d:mg(r[5],i),h:mg(r[6],i),m:mg(r[7],i),s:mg(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(s=bUe(Ui(n.from),Ui(n.to)),n={},n.ms=s.milliseconds,n.M=s.months),a=new wR(n),e_(e)&&Hr(e,"_locale")&&(a._locale=e._locale),e_(e)&&Hr(e,"_isValid")&&(a._isValid=e._isValid),a}Dd.fn=wR.prototype;Dd.invalid=nUe;function mg(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function VZ(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function bUe(e,t){var n;return e.isValid()&&t.isValid()?(t=PF(t,e),e.isBefore(t)?n=VZ(e,t):(n=VZ(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Zue(e,t){return function(n,r){var i,a;return r!==null&&!isNaN(+r)&&(xue(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),i=Dd(n,r),Xue(this,i,e),this}}function Xue(e,t,n,r){var i=t._milliseconds,a=_8(t._days),s=_8(t._months);e.isValid()&&(r=r??!0,s&&Lue(e,vw(e,"Month")+s*n),a&&Nue(e,"Date",vw(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&tn.updateOffset(e,a||s))}var yUe=Zue(1,"add"),vUe=Zue(-1,"subtract");function Kue(e){return typeof e=="string"||e instanceof String}function OUe(e){return _d(e)||LT(e)||Kue(e)||sp(e)||EUe(e)||SUe(e)||e===null||e===void 0}function SUe(e){var t=l1(e)&&!gF(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,a,s=r.length;for(i=0;in.valueOf():n.valueOf()9999?J4(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Wf(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",J4(n,"Z")):J4(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function MUe(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(n+r+i+a)}function $Ue(e){e||(e=this.isUtc()?tn.defaultFormatUtc:tn.defaultFormat);var t=J4(this,e);return this.localeData().postformat(t)}function FUe(e,t){return this.isValid()&&(_d(e)&&e.isValid()||Ui(e).isValid())?Dd({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function BUe(e){return this.from(Ui(),e)}function UUe(e,t){return this.isValid()&&(_d(e)&&e.isValid()||Ui(e).isValid())?Dd({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function zUe(e){return this.to(Ui(),e)}function Jue(e){var t;return e===void 0?this._locale._abbr:(t=Ep(e),t!=null&&(this._locale=t),this)}var ece=$c("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function tce(){return this._locale}var F3=1e3,Ly=60*F3,B3=60*Ly,nce=(365*400+97)*24*B3;function My(e,t){return(e%t+t)%t}function rce(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-nce:new Date(e,t,n).valueOf()}function ice(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-nce:Date.UTC(e,t,n)}function jUe(e){var t,n;if(e=Fc(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?ice:rce,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=My(t+(this._isUTC?0:this.utcOffset()*Ly),B3);break;case"minute":t=this._d.valueOf(),t-=My(t,Ly);break;case"second":t=this._d.valueOf(),t-=My(t,F3);break}return this._d.setTime(t),tn.updateOffset(this,!0),this}function HUe(e){var t,n;if(e=Fc(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?ice:rce,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=B3-My(t+(this._isUTC?0:this.utcOffset()*Ly),B3)-1;break;case"minute":t=this._d.valueOf(),t+=Ly-My(t,Ly)-1;break;case"second":t=this._d.valueOf(),t+=F3-My(t,F3)-1;break}return this._d.setTime(t),tn.updateOffset(this,!0),this}function QUe(){return this._d.valueOf()-(this._offset||0)*6e4}function WUe(){return Math.floor(this.valueOf()/1e3)}function VUe(){return new Date(this.valueOf())}function qUe(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function GUe(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function YUe(){return this.isValid()?this.toISOString():null}function ZUe(){return bF(this)}function XUe(){return N0({},ar(this))}function KUe(){return ar(this).overflow}function JUe(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Rn("N",0,0,"eraAbbr");Rn("NN",0,0,"eraAbbr");Rn("NNN",0,0,"eraAbbr");Rn("NNNN",0,0,"eraName");Rn("NNNNN",0,0,"eraNarrow");Rn("y",["y",1],"yo","eraYear");Rn("y",["yy",2],0,"eraYear");Rn("y",["yyy",3],0,"eraYear");Rn("y",["yyyy",4],0,"eraYear");ln("N",LF);ln("NN",LF);ln("NNN",LF);ln("NNNN",cze);ln("NNNNN",dze);fi(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?ar(n).era=i:ar(n).invalidEra=e});ln("y",fO);ln("yy",fO);ln("yyy",fO);ln("yyyy",fO);ln("yo",fze);fi(["y","yy","yyy","yyyy"],bo);fi(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[bo]=n._locale.eraYearOrdinalParse(e,i):t[bo]=parseInt(e,10)});function eze(e,t){var n,r,i,a=this._eras||Ep("en")._eras;for(n=0,r=a.length;n=0)return a[r]}function nze(e,t){var n=e.since<=e.until?1:-1;return t===void 0?tn(e.since).year():tn(e.since).year()+(t-e.offset)*n}function rze(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ea&&(t=a),vze.call(this,e,t,n,r,i))}function vze(e,t,n,r,i){var a=Fue(e,t,n,r,i),s=Ow(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}Rn("Q",0,"Qo","quarter");ln("Q",Aue);fi("Q",function(e,t){t[jh]=(Tr(e)-1)*3});function Oze(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Rn("D",["DD",2],"Do","date");ln("D",zi,hO);ln("DD",zi,Lu);ln("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});fi(["D","DD"],gf);fi("Do",function(e,t){t[gf]=Tr(e.match(zi)[0])});var sce=pO("Date",!0);Rn("DDD",["DDDD",3],"DDDo","dayOfYear");ln("DDD",bR);ln("DDDD",_ue);fi(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Tr(e)});function Sze(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Rn("m",["mm",2],0,"minute");ln("m",zi,TF);ln("mm",zi,Lu);fi(["m","mm"],bd);var Eze=pO("Minutes",!1);Rn("s",["ss",2],0,"second");ln("s",zi,TF);ln("ss",zi,Lu);fi(["s","ss"],Hh);var wze=pO("Seconds",!1);Rn("S",0,0,function(){return~~(this.millisecond()/100)});Rn(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Rn(0,["SSS",3],0,"millisecond");Rn(0,["SSSS",4],0,function(){return this.millisecond()*10});Rn(0,["SSSSS",5],0,function(){return this.millisecond()*100});Rn(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Rn(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Rn(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Rn(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});ln("S",bR,Aue);ln("SS",bR,Lu);ln("SSS",bR,_ue);var D0,oce;for(D0="SSSS";D0.length<=9;D0+="S")ln(D0,fO);function Tze(e,t){t[jg]=Tr(("0."+e)*1e3)}for(D0="S";D0.length<=9;D0+="S")fi(D0,Tze);oce=pO("Milliseconds",!1);Rn("z",0,0,"zoneAbbr");Rn("zz",0,0,"zoneName");function xze(){return this._isUTC?"UTC":""}function kze(){return this._isUTC?"Coordinated Universal Time":""}var $t=MT.prototype;$t.add=yUe;$t.calendar=xUe;$t.clone=kUe;$t.diff=DUe;$t.endOf=HUe;$t.format=$Ue;$t.from=FUe;$t.fromNow=BUe;$t.to=UUe;$t.toNow=zUe;$t.get=MFe;$t.invalidAt=KUe;$t.isAfter=AUe;$t.isBefore=_Ue;$t.isBetween=CUe;$t.isSame=RUe;$t.isSameOrAfter=IUe;$t.isSameOrBefore=NUe;$t.isValid=ZUe;$t.lang=ece;$t.locale=Jue;$t.localeData=tce;$t.max=ZBe;$t.min=YBe;$t.parsingFlags=XUe;$t.set=$Fe;$t.startOf=jUe;$t.subtract=vUe;$t.toArray=qUe;$t.toObject=GUe;$t.toDate=VUe;$t.toISOString=LUe;$t.inspect=MUe;typeof Symbol<"u"&&Symbol.for!=null&&($t[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});$t.toJSON=YUe;$t.toString=PUe;$t.unix=WUe;$t.valueOf=QUe;$t.creationData=JUe;$t.eraName=rze;$t.eraNarrow=ize;$t.eraAbbr=aze;$t.eraYear=sze;$t.year=Iue;$t.isLeapYear=LFe;$t.weekYear=hze;$t.isoWeekYear=pze;$t.quarter=$t.quarters=Oze;$t.month=Mue;$t.daysInMonth=VFe;$t.week=$t.weeks=eBe;$t.isoWeek=$t.isoWeeks=tBe;$t.weeksInYear=bze;$t.weeksInWeekYear=yze;$t.isoWeeksInYear=mze;$t.isoWeeksInISOWeekYear=gze;$t.date=sce;$t.day=$t.days=pBe;$t.weekday=mBe;$t.isoWeekday=gBe;$t.dayOfYear=Sze;$t.hour=$t.hours=wBe;$t.minute=$t.minutes=Eze;$t.second=$t.seconds=wze;$t.millisecond=$t.milliseconds=oce;$t.utcOffset=aUe;$t.utc=oUe;$t.local=lUe;$t.parseZone=uUe;$t.hasAlignedHourOffset=cUe;$t.isDST=dUe;$t.isLocal=hUe;$t.isUtcOffset=pUe;$t.isUtc=Yue;$t.isUTC=Yue;$t.zoneAbbr=xze;$t.zoneName=kze;$t.dates=$c("dates accessor is deprecated. Use date instead.",sce);$t.months=$c("months accessor is deprecated. Use month instead",Mue);$t.years=$c("years accessor is deprecated. Use year instead",Iue);$t.zone=$c("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",sUe);$t.isDSTShifted=$c("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",fUe);function Aze(e){return Ui(e*1e3)}function _ze(){return Ui.apply(null,arguments).parseZone()}function lce(e){return e}var Qr=vF.prototype;Qr.calendar=hFe;Qr.longDateFormat=bFe;Qr.invalidDate=vFe;Qr.ordinal=EFe;Qr.preparse=lce;Qr.postformat=lce;Qr.relativeTime=TFe;Qr.pastFuture=xFe;Qr.set=dFe;Qr.eras=eze;Qr.erasParse=tze;Qr.erasConvertYear=nze;Qr.erasAbbrRegex=lze;Qr.erasNameRegex=oze;Qr.erasNarrowRegex=uze;Qr.months=jFe;Qr.monthsShort=HFe;Qr.monthsParse=WFe;Qr.monthsRegex=GFe;Qr.monthsShortRegex=qFe;Qr.week=ZFe;Qr.firstDayOfYear=JFe;Qr.firstDayOfWeek=KFe;Qr.weekdays=uBe;Qr.weekdaysMin=dBe;Qr.weekdaysShort=cBe;Qr.weekdaysParse=hBe;Qr.weekdaysRegex=bBe;Qr.weekdaysShortRegex=yBe;Qr.weekdaysMinRegex=vBe;Qr.isPM=SBe;Qr.meridiem=TBe;function U3(e,t,n,r){var i=Ep(),a=Qf().set(r,t);return i[n](a,e)}function uce(e,t,n){if(sp(e)&&(t=e,e=void 0),e=e||"",t!=null)return U3(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=U3(e,r,n,"month");return i}function $F(e,t,n,r){typeof e=="boolean"?(sp(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,sp(t)&&(n=t,t=void 0),t=t||"");var i=Ep(),a=e?i._week.dow:0,s,o=[];if(n!=null)return U3(t,(n+a)%7,r,"day");for(s=0;s<7;s++)o[s]=U3(t,(s+a)%7,r,"day");return o}function Cze(e,t){return uce(e,t,"months")}function Rze(e,t){return uce(e,t,"monthsShort")}function Ize(e,t,n){return $F(e,t,n,"weekdays")}function Nze(e,t,n){return $F(e,t,n,"weekdaysShort")}function Dze(e,t,n){return $F(e,t,n,"weekdaysMin")}G0("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=Tr(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});tn.lang=$c("moment.lang is deprecated. Use moment.locale instead.",G0);tn.langData=$c("moment.langData is deprecated. Use moment.localeData instead.",Ep);var Th=Math.abs;function Pze(){var e=this._data;return this._milliseconds=Th(this._milliseconds),this._days=Th(this._days),this._months=Th(this._months),e.milliseconds=Th(e.milliseconds),e.seconds=Th(e.seconds),e.minutes=Th(e.minutes),e.hours=Th(e.hours),e.months=Th(e.months),e.years=Th(e.years),this}function cce(e,t,n,r){var i=Dd(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Lze(e,t){return cce(this,e,t,1)}function Mze(e,t){return cce(this,e,t,-1)}function qZ(e){return e<0?Math.floor(e):Math.ceil(e)}function $ze(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,a,s,o,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=qZ(R8(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=oc(e/1e3),r.seconds=i%60,a=oc(i/60),r.minutes=a%60,s=oc(a/60),r.hours=s%24,t+=oc(s/24),l=oc(dce(t)),n+=l,t-=qZ(R8(l)),o=oc(n/12),n%=12,r.days=t,r.months=n,r.years=o,this}function dce(e){return e*4800/146097}function R8(e){return e*146097/4800}function Fze(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Fc(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+dce(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(R8(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function wp(e){return function(){return this.as(e)}}var fce=wp("ms"),Bze=wp("s"),Uze=wp("m"),zze=wp("h"),jze=wp("d"),Hze=wp("w"),Qze=wp("M"),Wze=wp("Q"),Vze=wp("y"),qze=fce;function Gze(){return Dd(this)}function Yze(e){return e=Fc(e),this.isValid()?this[e+"s"]():NaN}function $1(e){return function(){return this.isValid()?this._data[e]:NaN}}var Zze=$1("milliseconds"),Xze=$1("seconds"),Kze=$1("minutes"),Jze=$1("hours"),eje=$1("days"),tje=$1("months"),nje=$1("years");function rje(){return oc(this.days()/7)}var Rh=Math.round,gy={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ije(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function aje(e,t,n,r){var i=Dd(e).abs(),a=Rh(i.as("s")),s=Rh(i.as("m")),o=Rh(i.as("h")),l=Rh(i.as("d")),u=Rh(i.as("M")),d=Rh(i.as("w")),f=Rh(i.as("y")),p=a<=n.ss&&["s",a]||a0,p[4]=r,ije.apply(null,p)}function sje(e){return e===void 0?Rh:typeof e=="function"?(Rh=e,!0):!1}function oje(e,t){return gy[e]===void 0?!1:t===void 0?gy[e]:(gy[e]=t,e==="s"&&(gy.ss=t-1),!0)}function lje(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=gy,i,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},gy,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),a=aje(this,!n,r,i),n&&(a=i.pastFuture(+this,a)),i.postformat(a)}var nD=Math.abs;function Db(e){return(e>0)-(e<0)||+e}function xR(){if(!this.isValid())return this.localeData().invalidDate();var e=nD(this._milliseconds)/1e3,t=nD(this._days),n=nD(this._months),r,i,a,s,o=this.asSeconds(),l,u,d,f;return o?(r=oc(e/60),i=oc(r/60),e%=60,r%=60,a=oc(n/12),n%=12,s=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=o<0?"-":"",u=Db(this._months)!==Db(o)?"-":"",d=Db(this._days)!==Db(o)?"-":"",f=Db(this._milliseconds)!==Db(o)?"-":"",l+"P"+(a?u+a+"Y":"")+(n?u+n+"M":"")+(t?d+t+"D":"")+(i||r||e?"T":"")+(i?f+i+"H":"")+(r?f+r+"M":"")+(e?f+s+"S":"")):"P0D"}var Lr=wR.prototype;Lr.isValid=tUe;Lr.abs=Pze;Lr.add=Lze;Lr.subtract=Mze;Lr.as=Fze;Lr.asMilliseconds=fce;Lr.asSeconds=Bze;Lr.asMinutes=Uze;Lr.asHours=zze;Lr.asDays=jze;Lr.asWeeks=Hze;Lr.asMonths=Qze;Lr.asQuarters=Wze;Lr.asYears=Vze;Lr.valueOf=qze;Lr._bubble=$ze;Lr.clone=Gze;Lr.get=Yze;Lr.milliseconds=Zze;Lr.seconds=Xze;Lr.minutes=Kze;Lr.hours=Jze;Lr.days=eje;Lr.weeks=rje;Lr.months=tje;Lr.years=nje;Lr.humanize=lje;Lr.toISOString=xR;Lr.toString=xR;Lr.toJSON=xR;Lr.locale=Jue;Lr.localeData=tce;Lr.toIsoString=$c("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",xR);Lr.lang=ece;Rn("X",0,0,"unix");Rn("x",0,0,"valueOf");ln("x",vR);ln("X",CFe);fi("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});fi("x",function(e,t,n){n._d=new Date(Tr(e))});//! moment.js -tn.version="2.30.1";uFe(Ui);tn.fn=$t;tn.min=XBe;tn.max=KBe;tn.now=JBe;tn.utc=Qf;tn.unix=Aze;tn.months=Cze;tn.isDate=LT;tn.locale=G0;tn.invalid=mR;tn.duration=Dd;tn.isMoment=_d;tn.weekdays=Ize;tn.parseZone=_ze;tn.localeData=Ep;tn.isDuration=e_;tn.monthsShort=Rze;tn.weekdaysMin=Dze;tn.defineLocale=CF;tn.updateLocale=_Be;tn.locales=CBe;tn.weekdaysShort=Nze;tn.normalizeUnits=Fc;tn.relativeTimeRounding=sje;tn.relativeTimeThreshold=oje;tn.calendarFormat=TUe;tn.prototype=$t;tn.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const hce=e=>["workspaces",e,"documents"],uje=(e,t)=>["workpsaces",e,"documents",t],cje=e=>sF({queryKey:hce(e||""),queryFn:async({pageParam:n})=>(await tr.get(`/workspaces/${e}/documents`,{params:{cursor:n,page_size:30}})).data,enabled:!!e,initialPageParam:void 0,getPreviousPageParam:n=>n.cursor??void 0,getNextPageParam:n=>n.cursor??void 0}),dje=(e,t)=>{const n=Du(),r=cO({queryKey:uje(e||"",t||""),enabled:!!(e&&t),queryFn:async()=>(await tr.get(`/workspaces/${e}/documents/${t}`)).data,meta:{errorMessage:"This is a non-existent or unauthorized document."}});return M.useEffect(()=>(r.data&&n(_3(r.data)),()=>{n(_3(null))}),[n,r.data]),r},fje=e=>{const t=NT();return Op({mutationFn:async n=>(await tr.post(`/workspaces/${e}/documents`,n)).data,onSuccess:()=>{t.invalidateQueries({queryKey:hce(e)})}})},hje=(e,t)=>Op({mutationFn:async n=>(await tr.post(`/workspaces/${e}/documents/${t}/share-token`,n)).data});var I8=(e=>(e.READ="READ",e.EDIT="EDIT",e))(I8||{});const F1={};F1.write=async e=>{await navigator.clipboard.writeText(e)};F1.read=async()=>navigator.clipboard.readText();F1.readSync=()=>{throw new Error("`.readSync()` is not supported in browsers!")};F1.writeSync=()=>{throw new Error("`.writeSync()` is not supported in browsers!")};var FF={},pje=Ii;Object.defineProperty(FF,"__esModule",{value:!0});var kR=FF.default=void 0,mje=pje(ta()),gje=I;kR=FF.default=(0,mje.default)((0,gje.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy");var BF={},bje=Ii;Object.defineProperty(BF,"__esModule",{value:!0});var AR=BF.default=void 0,yje=bje(ta()),vje=I;AR=BF.default=(0,yje.default)((0,vje.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function Oje(e){var d,f;const{...t}=e,n=Em(),[r,i]=M.useState(null),a=Pr(hR),{mutateAsync:s}=hje(((d=a.data)==null?void 0:d.workspaceId)||"",((f=a.data)==null?void 0:f.id)||""),{enqueueSnackbar:o}=IT(),l=async p=>{let g;if(p.expiredString===Dy[0])g=null;else{const[S,T]=p.expiredString.split(" ");g=tn().add(Number(S),T).toDate()}const{sharingToken:O}=await s({role:p.role,expiredAt:g});i(`${window.location.origin}/${n.workspaceSlug}/${n.documentId}/share?token=${O}`)},u=async()=>{r&&(await F1.write(r),o("URL Copied!",{variant:"success"}))};return I.jsx(iO,{disableAutoFocus:!0,...t,children:I.jsxs(Gs,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[I.jsx(Oo,{sx:{position:"absolute",top:28,right:28},onClick:p=>{var g;return(g=e.onClose)==null?void 0:g.call(e,p,"backdropClick")},children:I.jsx(AR,{})}),I.jsxs(Bn,{gap:1,children:[I.jsx(wr,{variant:"subtitle1",children:"Share Link"}),I.jsx(Lc,{children:I.jsx(dO,{defaultValues:{expiredString:Dy[0],role:Object.values(I8)[0]},onSuccess:l,children:I.jsxs(Bn,{gap:2,children:[I.jsx(w8,{label:"Role",name:"role",options:Object.values(I8).map(p=>({id:p,label:p})),size:"small",sx:{width:1},variant:"filled"}),I.jsx(w8,{label:"Expired Date",name:"expiredString",options:Dy.map(p=>({id:p,label:p})),size:"small",sx:{width:1},variant:"filled"}),I.jsx(po,{type:"submit",variant:"contained",children:"Generate"})]})})}),!!r&&I.jsxs(Bn,{direction:"row",alignItems:"center",gap:2,children:[I.jsx(wr,{variant:"body1",width:1,noWrap:!0,children:r}),I.jsx(I0,{title:"Copy URL",children:I.jsx(Oo,{onClick:u,children:I.jsx(kR,{})})})]})]})]})})}function Sje(){const[e,t]=M.useState(!1),n=()=>{t(r=>!r)};return I.jsxs(I.Fragment,{children:[I.jsx(Oo,{onClick:n,color:"inherit",children:I.jsx(Zle,{})}),I.jsx(Oje,{open:e,onClose:n})]})}var UF={},Eje=Ii;Object.defineProperty(UF,"__esModule",{value:!0});var zF=UF.default=void 0,wje=Eje(ta()),Tje=I;zF=UF.default=(0,wje.default)((0,Tje.jsx)("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"}),"DarkMode");var jF={},xje=Ii;Object.defineProperty(jF,"__esModule",{value:!0});var HF=jF.default=void 0,kje=xje(ta()),Aje=I;HF=jF.default=(0,kje.default)((0,Aje.jsx)("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"}),"LightMode");function BT(){const e=pse("(prefers-color-scheme: dark)"),t=Pr(V$);return M.useMemo(()=>{const r=e?"dark":"light";return t.theme==="default"?r:t.theme},[t.theme,e])}function _je(){const e=Du(),t=BT(),n=()=>{e(Yoe(t=="light"?"dark":"light"))};return I.jsx(Oo,{onClick:n,color:"inherit",children:t==="light"?I.jsx(HF,{}):I.jsx(zF,{})})}class Er{lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,n,r){[t,n]=Av(this,t,n);let i=[];return this.decompose(0,t,i,2),r.length&&r.decompose(0,r.length,i,3),this.decompose(n,this.length,i,1),n_.from(i,this.length-(n-t)+r.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,n=this.length){[t,n]=Av(this,t,n);let r=[];return this.decompose(t,n,r,0),n_.from(r,n-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let n=this.scanIdentical(t,1),r=this.length-this.scanIdentical(t,-1),i=new m2(this),a=new m2(t);for(let s=n,o=n;;){if(i.next(s),a.next(s),s=0,i.lineBreak!=a.lineBreak||i.done!=a.done||i.value!=a.value)return!1;if(o+=i.value.length,i.done||o>=r)return!0}}iter(t=1){return new m2(this,t)}iterRange(t,n=this.length){return new pce(this,t,n)}iterLines(t,n){let r;if(t==null)r=this.iter();else{n==null&&(n=this.lines+1);let i=this.line(t).from;r=this.iterRange(i,Math.max(i,n==this.lines+1?this.length:n<=1?0:this.line(n-1).to))}return new mce(r)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(t.length==0)throw new RangeError("A document must have at least one line");return t.length==1&&!t[0]?Er.empty:t.length<=32?new Na(t):n_.from(Na.split(t,[]))}}class Na extends Er{constructor(t,n=Cje(t)){super(),this.text=t,this.length=n}get lines(){return this.text.length}get children(){return null}lineInner(t,n,r,i){for(let a=0;;a++){let s=this.text[a],o=i+s.length;if((n?r:o)>=t)return new Rje(i,o,r,s);i=o+1,r++}}decompose(t,n,r,i){let a=t<=0&&n>=this.length?this:new Na(GZ(this.text,t,n),Math.min(n,this.length)-Math.max(0,t));if(i&1){let s=r.pop(),o=r_(a.text,s.text.slice(),0,a.length);if(o.length<=32)r.push(new Na(o,s.length+a.length));else{let l=o.length>>1;r.push(new Na(o.slice(0,l)),new Na(o.slice(l)))}}else r.push(a)}replace(t,n,r){if(!(r instanceof Na))return super.replace(t,n,r);[t,n]=Av(this,t,n);let i=r_(this.text,r_(r.text,GZ(this.text,0,t)),n),a=this.length+r.length-(n-t);return i.length<=32?new Na(i,a):n_.from(Na.split(i,[]),a)}sliceString(t,n=this.length,r=` -`){[t,n]=Av(this,t,n);let i="";for(let a=0,s=0;a<=n&&st&&s&&(i+=r),ta&&(i+=o.slice(Math.max(0,t-a),n-a)),a=l+1}return i}flatten(t){for(let n of this.text)t.push(n)}scanIdentical(){return 0}static split(t,n){let r=[],i=-1;for(let a of t)r.push(a),i+=a.length+1,r.length==32&&(n.push(new Na(r,i)),r=[],i=-1);return i>-1&&n.push(new Na(r,i)),n}}let n_=class Qb extends Er{constructor(t,n){super(),this.children=t,this.length=n,this.lines=0;for(let r of t)this.lines+=r.lines}lineInner(t,n,r,i){for(let a=0;;a++){let s=this.children[a],o=i+s.length,l=r+s.lines-1;if((n?l:o)>=t)return s.lineInner(t,n,r,i);i=o+1,r=l+1}}decompose(t,n,r,i){for(let a=0,s=0;s<=n&&a=s){let u=i&((s<=t?1:0)|(l>=n?2:0));s>=t&&l<=n&&!u?r.push(o):o.decompose(t-s,n-s,r,u)}s=l+1}}replace(t,n,r){if([t,n]=Av(this,t,n),r.lines=a&&n<=o){let l=s.replace(t-a,n-a,r),u=this.lines-s.lines+l.lines;if(l.lines>4&&l.lines>u>>6){let d=this.children.slice();return d[i]=l,new Qb(d,this.length-(n-t)+r.length)}return super.replace(a,o,l)}a=o+1}return super.replace(t,n,r)}sliceString(t,n=this.length,r=` -`){[t,n]=Av(this,t,n);let i="";for(let a=0,s=0;at&&a&&(i+=r),ts&&(i+=o.sliceString(t-s,n-s,r)),s=l+1}return i}flatten(t){for(let n of this.children)n.flatten(t)}scanIdentical(t,n){if(!(t instanceof Qb))return 0;let r=0,[i,a,s,o]=n>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;i+=n,a+=n){if(i==s||a==o)return r;let l=this.children[i],u=t.children[a];if(l!=u)return r+l.scanIdentical(u,n);r+=l.length+1}}static from(t,n=t.reduce((r,i)=>r+i.length+1,-1)){let r=0;for(let g of t)r+=g.lines;if(r<32){let g=[];for(let O of t)O.flatten(g);return new Na(g,n)}let i=Math.max(32,r>>5),a=i<<1,s=i>>1,o=[],l=0,u=-1,d=[];function f(g){let O;if(g.lines>a&&g instanceof Qb)for(let S of g.children)f(S);else g.lines>s&&(l>s||!l)?(p(),o.push(g)):g instanceof Na&&l&&(O=d[d.length-1])instanceof Na&&g.lines+O.lines<=32?(l+=g.lines,u+=g.length+1,d[d.length-1]=new Na(O.text.concat(g.text),O.length+1+g.length)):(l+g.lines>i&&p(),l+=g.lines,u+=g.length+1,d.push(g))}function p(){l!=0&&(o.push(d.length==1?d[0]:Qb.from(d,u)),u=-1,l=d.length=0)}for(let g of t)f(g);return p(),o.length==1?o[0]:new Qb(o,n)}};Er.empty=new Na([""],0);function Cje(e){let t=-1;for(let n of e)t+=n.length+1;return t}function r_(e,t,n=0,r=1e9){for(let i=0,a=0,s=!0;a=n&&(l>r&&(o=o.slice(0,r-i)),i0?1:(t instanceof Na?t.text.length:t.children.length)<<1]}nextInner(t,n){for(this.done=this.lineBreak=!1;;){let r=this.nodes.length-1,i=this.nodes[r],a=this.offsets[r],s=a>>1,o=i instanceof Na?i.text.length:i.children.length;if(s==(n>0?o:0)){if(r==0)return this.done=!0,this.value="",this;n>0&&this.offsets[r-1]++,this.nodes.pop(),this.offsets.pop()}else if((a&1)==(n>0?0:1)){if(this.offsets[r]+=n,t==0)return this.lineBreak=!0,this.value=` -`,this;t--}else if(i instanceof Na){let l=i.text[s+(n<0?-1:0)];if(this.offsets[r]+=n,l.length>Math.max(0,t))return this.value=t==0?l:n>0?l.slice(t):l.slice(0,l.length-t),this;t-=l.length}else{let l=i.children[s+(n<0?-1:0)];t>l.length?(t-=l.length,this.offsets[r]+=n):(n<0&&this.offsets[r]--,this.nodes.push(l),this.offsets.push(n>0?1:(l instanceof Na?l.text.length:l.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class pce{constructor(t,n,r){this.value="",this.done=!1,this.cursor=new m2(t,n>r?-1:1),this.pos=n>r?t.length:0,this.from=Math.min(n,r),this.to=Math.max(n,r)}nextInner(t,n){if(n<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,n<0?this.pos-this.to:this.from-this.pos);let r=n<0?this.pos-this.from:this.to-this.pos;t>r&&(t=r),r-=t;let{value:i}=this.cursor.next(t);return this.pos+=(i.length+t)*n,this.value=i.length<=r?i:n<0?i.slice(i.length-r):i.slice(0,r),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class mce{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:n,lineBreak:r,value:i}=this.inner.next(t);return n&&this.afterBreak?(this.value="",this.afterBreak=!1):n?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(Er.prototype[Symbol.iterator]=function(){return this.iter()},m2.prototype[Symbol.iterator]=pce.prototype[Symbol.iterator]=mce.prototype[Symbol.iterator]=function(){return this});let Rje=class{constructor(t,n,r,i){this.from=t,this.to=n,this.number=r,this.text=i}get length(){return this.to-this.from}};function Av(e,t,n){return t=Math.max(0,Math.min(e.length,t)),[t,Math.max(t,Math.min(e.length,n))]}let $y="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=1;e<$y.length;e++)$y[e]+=$y[e-1];function Ije(e){for(let t=1;t<$y.length;t+=2)if($y[t]>e)return $y[t-1]<=e;return!1}function YZ(e){return e>=127462&&e<=127487}const ZZ=8205;function mo(e,t,n=!0,r=!0){return(n?gce:Nje)(e,t,r)}function gce(e,t,n){if(t==e.length)return t;t&&bce(e.charCodeAt(t))&&yce(e.charCodeAt(t-1))&&t--;let r=Us(e,t);for(t+=uc(r);t=0&&YZ(Us(e,s));)a++,s-=2;if(a%2==0)break;t+=2}else break}return t}function Nje(e,t,n){for(;t>0;){let r=gce(e,t-2,n);if(r=56320&&e<57344}function yce(e){return e>=55296&&e<56320}function Us(e,t){let n=e.charCodeAt(t);if(!yce(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return bce(r)?(n-55296<<10)+(r-56320)+65536:n}function QF(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}function uc(e){return e<65536?1:2}const N8=/\r\n?|\n/;var js=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(js||(js={}));class Nf{constructor(t){this.sections=t}get length(){let t=0;for(let n=0;nt)return a+(t-i);a+=o}else{if(r!=js.Simple&&u>=t&&(r==js.TrackDel&&it||r==js.TrackBefore&&it))return null;if(u>t||u==t&&n<0&&!o)return t==i||n<0?a:a+l;a+=l}i=u}if(t>i)throw new RangeError(`Position ${t} is out of range for changeset of length ${i}`);return a}touchesRange(t,n=t){for(let r=0,i=0;r=0&&i<=n&&o>=t)return in?"cover":!0;i=o}return!1}toString(){let t="";for(let n=0;n=0?":"+i:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(n=>typeof n!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Nf(t)}static create(t){return new Nf(t)}}class ns extends Nf{constructor(t,n){super(t),this.inserted=n}apply(t){if(this.length!=t.length)throw new RangeError("Applying change set to a document with the wrong length");return D8(this,(n,r,i,a,s)=>t=t.replace(i,i+(r-n),s),!1),t}mapDesc(t,n=!1){return P8(this,t,n,!0)}invert(t){let n=this.sections.slice(),r=[];for(let i=0,a=0;i=0){n[i]=o,n[i+1]=s;let l=i>>1;for(;r.length0&&P0(r,n,a.text),a.forward(d),o+=d}let u=t[s++];for(;o>1].toJSON()))}return t}static of(t,n,r){let i=[],a=[],s=0,o=null;function l(d=!1){if(!d&&!i.length)return;sp||f<0||p>n)throw new RangeError(`Invalid change range ${f} to ${p} (in doc of length ${n})`);let O=g?typeof g=="string"?Er.of(g.split(r||N8)):g:Er.empty,S=O.length;if(f==p&&S==0)return;fs&&co(i,f-s,-1),co(i,p-f,S),P0(a,i,O),s=p}}return u(t),l(!o),o}static empty(t){return new ns(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");let n=[],r=[];for(let i=0;io&&typeof s!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(a.length==1)n.push(a[0],0);else{for(;r.length=0&&n<=0&&n==e[i+1]?e[i]+=t:t==0&&e[i]==0?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}function P0(e,t,n){if(n.length==0)return;let r=t.length-2>>1;if(r>1])),!(n||s==e.sections.length||e.sections[s+1]<0);)o=e.sections[s++],l=e.sections[s++];t(i,u,a,d,f),i=u,a=d}}}function P8(e,t,n,r=!1){let i=[],a=r?[]:null,s=new ww(e),o=new ww(t);for(let l=-1;;)if(s.ins==-1&&o.ins==-1){let u=Math.min(s.len,o.len);co(i,u,-1),s.forward(u),o.forward(u)}else if(o.ins>=0&&(s.ins<0||l==s.i||s.off==0&&(o.len=0&&l=0){let u=0,d=s.len;for(;d;)if(o.ins==-1){let f=Math.min(d,o.len);u+=f,d-=f,o.forward(f)}else if(o.ins==0&&o.lenl||s.ins>=0&&s.len>l)&&(o||r.length>u),a.forward2(l),s.forward(l)}}}}class ww{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i>1;return n>=t.length?Er.empty:t[n]}textBit(t){let{inserted:n}=this.set,r=this.i-2>>1;return r>=n.length&&!t?Er.empty:n[r].slice(this.off,t==null?void 0:this.off+t)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t)}forward2(t){this.ins==-1?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}class Hg{constructor(t,n,r){this.from=t,this.to=n,this.flags=r}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let t=this.flags&7;return t==7?null:t}get goalColumn(){let t=this.flags>>6;return t==16777215?void 0:t}map(t,n=-1){let r,i;return this.empty?r=i=t.mapPos(this.from,n):(r=t.mapPos(this.from,1),i=t.mapPos(this.to,-1)),r==this.from&&i==this.to?this:new Hg(r,i,this.flags)}extend(t,n=t){if(t<=this.anchor&&n>=this.anchor)return dt.range(t,n);let r=Math.abs(t-this.anchor)>Math.abs(n-this.anchor)?t:n;return dt.range(this.anchor,r)}eq(t,n=!1){return this.anchor==t.anchor&&this.head==t.head&&(!n||!this.empty||this.assoc==t.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return dt.range(t.anchor,t.head)}static create(t,n,r){return new Hg(t,n,r)}}class dt{constructor(t,n){this.ranges=t,this.mainIndex=n}map(t,n=-1){return t.empty?this:dt.create(this.ranges.map(r=>r.map(t,n)),this.mainIndex)}eq(t,n=!1){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let r=0;rt.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||typeof t.main!="number"||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new dt(t.ranges.map(n=>Hg.fromJSON(n)),t.main)}static single(t,n=t){return new dt([dt.range(t,n)],0)}static create(t,n=0){if(t.length==0)throw new RangeError("A selection needs at least one range");for(let r=0,i=0;it?8:0)|a)}static normalized(t,n=0){let r=t[n];t.sort((i,a)=>i.from-a.from),n=t.indexOf(r);for(let i=1;ia.head?dt.range(l,o):dt.range(o,l))}}return new dt(t,n)}}function Oce(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let WF=0;class fn{constructor(t,n,r,i,a){this.combine=t,this.compareInput=n,this.compare=r,this.isStatic=i,this.id=WF++,this.default=t([]),this.extensions=typeof a=="function"?a(this):a}get reader(){return this}static define(t={}){return new fn(t.combine||(n=>n),t.compareInput||((n,r)=>n===r),t.compare||(t.combine?(n,r)=>n===r:VF),!!t.static,t.enables)}of(t){return new i_([],this,0,t)}compute(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new i_(t,this,1,n)}computeN(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new i_(t,this,2,n)}from(t,n){return n||(n=r=>r),this.compute([t],r=>n(r.field(t)))}}function VF(e,t){return e==t||e.length==t.length&&e.every((n,r)=>n===t[r])}class i_{constructor(t,n,r,i){this.dependencies=t,this.facet=n,this.type=r,this.value=i,this.id=WF++}dynamicSlot(t){var n;let r=this.value,i=this.facet.compareInput,a=this.id,s=t[a]>>1,o=this.type==2,l=!1,u=!1,d=[];for(let f of this.dependencies)f=="doc"?l=!0:f=="selection"?u=!0:((n=t[f.id])!==null&&n!==void 0?n:1)&1||d.push(t[f.id]);return{create(f){return f.values[s]=r(f),1},update(f,p){if(l&&p.docChanged||u&&(p.docChanged||p.selection)||L8(f,d)){let g=r(f);if(o?!XZ(g,f.values[s],i):!i(g,f.values[s]))return f.values[s]=g,1}return 0},reconfigure:(f,p)=>{let g,O=p.config.address[a];if(O!=null){let S=j3(p,O);if(this.dependencies.every(T=>T instanceof fn?p.facet(T)===f.facet(T):T instanceof xs?p.field(T,!1)==f.field(T,!1):!0)||(o?XZ(g=r(f),S,i):i(g=r(f),S)))return f.values[s]=S,0}else g=r(f);return f.values[s]=g,1}}}}function XZ(e,t,n){if(e.length!=t.length)return!1;for(let r=0;re[l.id]),i=n.map(l=>l.type),a=r.filter(l=>!(l&1)),s=e[t.id]>>1;function o(l){let u=[];for(let d=0;dr===i),t);return t.provide&&(n.provides=t.provide(n)),n}create(t){let n=t.facet(KZ).find(r=>r.field==this);return((n==null?void 0:n.create)||this.createF)(t)}slot(t){let n=t[this.id]>>1;return{create:r=>(r.values[n]=this.create(r),1),update:(r,i)=>{let a=r.values[n],s=this.updateF(a,i);return this.compareF(a,s)?0:(r.values[n]=s,1)},reconfigure:(r,i)=>i.config.address[this.id]!=null?(r.values[n]=i.field(this),0):(r.values[n]=this.create(r),1)}}init(t){return[this,KZ.of({field:this,create:t})]}get extension(){return this}}const Cg={lowest:4,low:3,default:2,high:1,highest:0};function uE(e){return t=>new Sce(t,e)}const Tp={highest:uE(Cg.highest),high:uE(Cg.high),default:uE(Cg.default),low:uE(Cg.low),lowest:uE(Cg.lowest)};class Sce{constructor(t,n){this.inner=t,this.prec=n}}class _R{of(t){return new M8(this,t)}reconfigure(t){return _R.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class M8{constructor(t,n){this.compartment=t,this.inner=n}}class z3{constructor(t,n,r,i,a,s){for(this.base=t,this.compartments=n,this.dynamicSlots=r,this.address=i,this.staticValues=a,this.facets=s,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(t,n,r){let i=[],a=Object.create(null),s=new Map;for(let p of Pje(t,n,s))p instanceof xs?i.push(p):(a[p.facet.id]||(a[p.facet.id]=[])).push(p);let o=Object.create(null),l=[],u=[];for(let p of i)o[p.id]=u.length<<1,u.push(g=>p.slot(g));let d=r==null?void 0:r.config.facets;for(let p in a){let g=a[p],O=g[0].facet,S=d&&d[p]||[];if(g.every(T=>T.type==0))if(o[O.id]=l.length<<1|1,VF(S,g))l.push(r.facet(O));else{let T=O.combine(g.map(w=>w.value));l.push(r&&O.compare(T,r.facet(O))?r.facet(O):T)}else{for(let T of g)T.type==0?(o[T.id]=l.length<<1|1,l.push(T.value)):(o[T.id]=u.length<<1,u.push(w=>T.dynamicSlot(w)));o[O.id]=u.length<<1,u.push(T=>Dje(T,O,g))}}let f=u.map(p=>p(o));return new z3(t,s,f,o,l,a)}}function Pje(e,t,n){let r=[[],[],[],[],[]],i=new Map;function a(s,o){let l=i.get(s);if(l!=null){if(l<=o)return;let u=r[l].indexOf(s);u>-1&&r[l].splice(u,1),s instanceof M8&&n.delete(s.compartment)}if(i.set(s,o),Array.isArray(s))for(let u of s)a(u,o);else if(s instanceof M8){if(n.has(s.compartment))throw new RangeError("Duplicate use of compartment in extensions");let u=t.get(s.compartment)||s.inner;n.set(s.compartment,u),a(u,o)}else if(s instanceof Sce)a(s.inner,s.prec);else if(s instanceof xs)r[o].push(s),s.provides&&a(s.provides,o);else if(s instanceof i_)r[o].push(s),s.facet.extensions&&a(s.facet.extensions,Cg.default);else{let u=s.extension;if(!u)throw new Error(`Unrecognized extension value in extension set (${s}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);a(u,o)}}return a(e,Cg.default),r.reduce((s,o)=>s.concat(o))}function g2(e,t){if(t&1)return 2;let n=t>>1,r=e.status[n];if(r==4)throw new Error("Cyclic dependency between fields and/or facets");if(r&2)return r;e.status[n]=4;let i=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|i}function j3(e,t){return t&1?e.config.staticValues[t>>1]:e.values[t>>1]}const Ece=fn.define(),$8=fn.define({combine:e=>e.some(t=>t),static:!0}),wce=fn.define({combine:e=>e.length?e[0]:void 0,static:!0}),Tce=fn.define(),xce=fn.define(),kce=fn.define(),Ace=fn.define({combine:e=>e.length?e[0]:!1});class Pd{constructor(t,n){this.type=t,this.value=n}static define(){return new Lje}}class Lje{of(t){return new Pd(this,t)}}class Mje{constructor(t){this.map=t}of(t){return new er(this,t)}}class er{constructor(t,n){this.type=t,this.value=n}map(t){let n=this.type.map(this.value,t);return n===void 0?void 0:n==this.value?this:new er(this.type,n)}is(t){return this.type==t}static define(t={}){return new Mje(t.map||(n=>n))}static mapEffects(t,n){if(!t.length)return t;let r=[];for(let i of t){let a=i.map(n);a&&r.push(a)}return r}}er.reconfigure=er.define();er.appendConfig=er.define();let os=class $E{constructor(t,n,r,i,a,s){this.startState=t,this.changes=n,this.selection=r,this.effects=i,this.annotations=a,this.scrollIntoView=s,this._doc=null,this._state=null,r&&Oce(r,n.newLength),a.some(o=>o.type==$E.time)||(this.annotations=a.concat($E.time.of(Date.now())))}static create(t,n,r,i,a,s){return new $E(t,n,r,i,a,s)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(t){for(let n of this.annotations)if(n.type==t)return n.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let n=this.annotation($E.userEvent);return!!(n&&(n==t||n.length>t.length&&n.slice(0,t.length)==t&&n[t.length]=="."))}};os.time=Pd.define();os.userEvent=Pd.define();os.addToHistory=Pd.define();os.remote=Pd.define();function $je(e,t){let n=[];for(let r=0,i=0;;){let a,s;if(r=e[r]))a=e[r++],s=e[r++];else if(i=0;i--){let a=r[i](e);a instanceof os?e=a:Array.isArray(a)&&a.length==1&&a[0]instanceof os?e=a[0]:e=Cce(t,Fy(a),!1)}return e}function Bje(e){let t=e.startState,n=t.facet(kce),r=e;for(let i=n.length-1;i>=0;i--){let a=n[i](e);a&&Object.keys(a).length&&(r=_ce(r,F8(t,a,e.changes.newLength),!0))}return r==e?e:os.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}const Uje=[];function Fy(e){return e==null?Uje:Array.isArray(e)?e:[e]}var Ji=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(Ji||(Ji={}));const zje=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let B8;try{B8=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function jje(e){if(B8)return B8.test(e);for(let t=0;t"€"&&(n.toUpperCase()!=n.toLowerCase()||zje.test(n)))return!0}return!1}function Hje(e){return t=>{if(!/\S/.test(t))return Ji.Space;if(jje(t))return Ji.Word;for(let n=0;n-1)return Ji.Word;return Ji.Other}}class Dr{constructor(t,n,r,i,a,s){this.config=t,this.doc=n,this.selection=r,this.values=i,this.status=t.statusTemplate.slice(),this.computeSlot=a,s&&(s._state=this);for(let o=0;oi.set(u,l)),n=null),i.set(o.value.compartment,o.value.extension)):o.is(er.reconfigure)?(n=null,r=o.value):o.is(er.appendConfig)&&(n=null,r=Fy(r).concat(o.value));let a;n?a=t.startState.values.slice():(n=z3.resolve(r,i,this),a=new Dr(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(l,u)=>u.reconfigure(l,this),null).values);let s=t.startState.facet($8)?t.newSelection:t.newSelection.asSingle();new Dr(n,t.newDoc,s,a,(o,l)=>l.update(o,t),t)}replaceSelection(t){return typeof t=="string"&&(t=this.toText(t)),this.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:t},range:dt.cursor(n.from+t.length)}))}changeByRange(t){let n=this.selection,r=t(n.ranges[0]),i=this.changes(r.changes),a=[r.range],s=Fy(r.effects);for(let o=1;os.spec.fromJSON(o,l)))}}return Dr.create({doc:t.doc,selection:dt.fromJSON(t.selection),extensions:n.extensions?i.concat([n.extensions]):i})}static create(t={}){let n=z3.resolve(t.extensions||[],new Map),r=t.doc instanceof Er?t.doc:Er.of((t.doc||"").split(n.staticFacet(Dr.lineSeparator)||N8)),i=t.selection?t.selection instanceof dt?t.selection:dt.single(t.selection.anchor,t.selection.head):dt.single(0);return Oce(i,r.length),n.staticFacet($8)||(i=i.asSingle()),new Dr(n,r,i,n.dynamicSlots.map(()=>null),(a,s)=>s.create(a),null)}get tabSize(){return this.facet(Dr.tabSize)}get lineBreak(){return this.facet(Dr.lineSeparator)||` -`}get readOnly(){return this.facet(Ace)}phrase(t,...n){for(let r of this.facet(Dr.phrases))if(Object.prototype.hasOwnProperty.call(r,t)){t=r[t];break}return n.length&&(t=t.replace(/\$(\$|\d*)/g,(r,i)=>{if(i=="$")return"$";let a=+(i||1);return!a||a>n.length?r:n[a-1]})),t}languageDataAt(t,n,r=-1){let i=[];for(let a of this.facet(Ece))for(let s of a(this,n,r))Object.prototype.hasOwnProperty.call(s,t)&&i.push(s[t]);return i}charCategorizer(t){return Hje(this.languageDataAt("wordChars",t).join(""))}wordAt(t){let{text:n,from:r,length:i}=this.doc.lineAt(t),a=this.charCategorizer(t),s=t-r,o=t-r;for(;s>0;){let l=mo(n,s,!1);if(a(n.slice(l,s))!=Ji.Word)break;s=l}for(;oe.length?e[0]:4});Dr.lineSeparator=wce;Dr.readOnly=Ace;Dr.phrases=fn.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every(i=>e[i]==t[i])}});Dr.languageData=Ece;Dr.changeFilter=Tce;Dr.transactionFilter=xce;Dr.transactionExtender=kce;_R.reconfigure=er.define();function Vf(e,t,n={}){let r={};for(let i of e)for(let a of Object.keys(i)){let s=i[a],o=r[a];if(o===void 0)r[a]=s;else if(!(o===s||s===void 0))if(Object.hasOwnProperty.call(n,a))r[a]=n[a](o,s);else throw new Error("Config merge conflict for field "+a)}for(let i in t)r[i]===void 0&&(r[i]=t[i]);return r}class w1{eq(t){return this==t}range(t,n=t){return U8.create(t,n,this)}}w1.prototype.startSide=w1.prototype.endSide=0;w1.prototype.point=!1;w1.prototype.mapMode=js.TrackDel;let U8=class Rce{constructor(t,n,r){this.from=t,this.to=n,this.value=r}static create(t,n,r){return new Rce(t,n,r)}};function z8(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class qF{constructor(t,n,r,i){this.from=t,this.to=n,this.value=r,this.maxPoint=i}get length(){return this.to[this.to.length-1]}findIndex(t,n,r,i=0){let a=r?this.to:this.from;for(let s=i,o=a.length;;){if(s==o)return s;let l=s+o>>1,u=a[l]-t||(r?this.value[l].endSide:this.value[l].startSide)-n;if(l==s)return u>=0?s:o;u>=0?o=l:s=l+1}}between(t,n,r,i){for(let a=this.findIndex(n,-1e9,!0),s=this.findIndex(r,1e9,!1,a);ag||p==g&&u.startSide>0&&u.endSide<=0)continue;(g-p||u.endSide-u.startSide)<0||(s<0&&(s=p),u.point&&(o=Math.max(o,g-p)),r.push(u),i.push(p-s),a.push(g-s))}return{mapped:r.length?new qF(i,a,r,o):null,pos:s}}}class Cr{constructor(t,n,r,i){this.chunkPos=t,this.chunk=n,this.nextLayer=r,this.maxPoint=i}static create(t,n,r,i){return new Cr(t,n,r,i)}get length(){let t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let t=this.nextLayer.size;for(let n of this.chunk)t+=n.value.length;return t}chunkEnd(t){return this.chunkPos[t]+this.chunk[t].length}update(t){let{add:n=[],sort:r=!1,filterFrom:i=0,filterTo:a=this.length}=t,s=t.filter;if(n.length==0&&!s)return this;if(r&&(n=n.slice().sort(z8)),this.isEmpty)return n.length?Cr.of(n):this;let o=new Ice(this,null,-1).goto(0),l=0,u=[],d=new sm;for(;o.value||l=0){let f=n[l++];d.addInner(f.from,f.to,f.value)||u.push(f)}else o.rangeIndex==1&&o.chunkIndexthis.chunkEnd(o.chunkIndex)||ao.to||a=a&&t<=a+s.length&&s.between(a,t-a,n-a,r)===!1)return}this.nextLayer.between(t,n,r)}}iter(t=0){return Tw.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,n=0){return Tw.from(t).goto(n)}static compare(t,n,r,i,a=-1){let s=t.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=a),o=n.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=a),l=JZ(s,o,r),u=new cE(s,l,a),d=new cE(o,l,a);r.iterGaps((f,p,g)=>eX(u,f,d,p,g,i)),r.empty&&r.length==0&&eX(u,0,d,0,0,i)}static eq(t,n,r=0,i){i==null&&(i=999999999);let a=t.filter(d=>!d.isEmpty&&n.indexOf(d)<0),s=n.filter(d=>!d.isEmpty&&t.indexOf(d)<0);if(a.length!=s.length)return!1;if(!a.length)return!0;let o=JZ(a,s),l=new cE(a,o,0).goto(r),u=new cE(s,o,0).goto(r);for(;;){if(l.to!=u.to||!j8(l.active,u.active)||l.point&&(!u.point||!l.point.eq(u.point)))return!1;if(l.to>i)return!0;l.next(),u.next()}}static spans(t,n,r,i,a=-1){let s=new cE(t,null,a).goto(n),o=n,l=s.openStart;for(;;){let u=Math.min(s.to,r);if(s.point){let d=s.activeForPoint(s.to),f=s.pointFromo&&(i.span(o,u,s.active,l),l=s.openEnd(u));if(s.to>r)return l+(s.point&&s.to>r?1:0);o=s.to,s.next()}}static of(t,n=!1){let r=new sm;for(let i of t instanceof U8?[t]:n?Qje(t):t)r.add(i.from,i.to,i.value);return r.finish()}static join(t){if(!t.length)return Cr.empty;let n=t[t.length-1];for(let r=t.length-2;r>=0;r--)for(let i=t[r];i!=Cr.empty;i=i.nextLayer)n=new Cr(i.chunkPos,i.chunk,n,Math.max(i.maxPoint,n.maxPoint));return n}}Cr.empty=new Cr([],[],null,-1);function Qje(e){if(e.length>1)for(let t=e[0],n=1;n0)return e.slice().sort(z8);t=r}return e}Cr.empty.nextLayer=Cr.empty;class sm{finishChunk(t){this.chunks.push(new qF(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,t&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(t,n,r){this.addInner(t,n,r)||(this.nextLayer||(this.nextLayer=new sm)).add(t,n,r)}addInner(t,n,r){let i=t-this.lastTo||r.startSide-this.last.endSide;if(i<=0&&(t-this.lastFrom||r.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return i<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=t),this.from.push(t-this.chunkStart),this.to.push(n-this.chunkStart),this.last=r,this.lastFrom=t,this.lastTo=n,this.value.push(r),r.point&&(this.maxPoint=Math.max(this.maxPoint,n-t)),!0)}addChunk(t,n){if((t-this.lastTo||n.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,n.maxPoint),this.chunks.push(n),this.chunkPos.push(t);let r=n.value.length-1;return this.last=n.value[r],this.lastFrom=n.from[r]+t,this.lastTo=n.to[r]+t,!0}finish(){return this.finishInner(Cr.empty)}finishInner(t){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return t;let n=Cr.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,n}}function JZ(e,t,n){let r=new Map;for(let a of e)for(let s=0;s=this.minPoint)break}}setRangeIndex(t){if(t==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=r&&i.push(new Ice(s,n,r,a));return i.length==1?i[0]:new Tw(i)}get startSide(){return this.value?this.value.startSide:0}goto(t,n=-1e9){for(let r of this.heap)r.goto(t,n);for(let r=this.heap.length>>1;r>=0;r--)rD(this.heap,r);return this.next(),this}forward(t,n){for(let r of this.heap)r.forward(t,n);for(let r=this.heap.length>>1;r>=0;r--)rD(this.heap,r);(this.to-t||this.value.endSide-n)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let t=this.heap[0];this.from=t.from,this.to=t.to,this.value=t.value,this.rank=t.rank,t.value&&t.next(),rD(this.heap,0)}}}function rD(e,t){for(let n=e[t];;){let r=(t<<1)+1;if(r>=e.length)break;let i=e[r];if(r+1=0&&(i=e[r+1],r++),n.compare(i)<0)break;e[r]=n,e[t]=i,t=r}}class cE{constructor(t,n,r){this.minPoint=r,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Tw.from(t,n,r)}goto(t,n=-1e9){return this.cursor.goto(t,n),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=t,this.endSide=n,this.openStart=-1,this.next(),this}forward(t,n){for(;this.minActive>-1&&(this.activeTo[this.minActive]-t||this.active[this.minActive].endSide-n)<0;)this.removeActive(this.minActive);this.cursor.forward(t,n)}removeActive(t){AA(this.active,t),AA(this.activeTo,t),AA(this.activeRank,t),this.minActive=tX(this.active,this.activeTo)}addActive(t){let n=0,{value:r,to:i,rank:a}=this.cursor;for(;n0;)n++;_A(this.active,n,r),_A(this.activeTo,n,i),_A(this.activeRank,n,a),t&&_A(t,n,this.cursor.from),this.minActive=tX(this.active,this.activeTo)}next(){let t=this.to,n=this.point;this.point=null;let r=this.openStart<0?[]:null;for(;;){let i=this.minActive;if(i>-1&&(this.activeTo[i]-this.cursor.from||this.active[i].endSide-this.cursor.startSide)<0){if(this.activeTo[i]>t){this.to=this.activeTo[i],this.endSide=this.active[i].endSide;break}this.removeActive(i),r&&AA(r,i)}else if(this.cursor.value)if(this.cursor.from>t){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let a=this.cursor.value;if(!a.point)this.addActive(r),this.cursor.next();else if(n&&this.cursor.to==this.to&&this.cursor.from=0&&r[i]=0&&!(this.activeRank[r]t||this.activeTo[r]==t&&this.active[r].endSide>=this.point.endSide)&&n.push(this.active[r]);return n.reverse()}openEnd(t){let n=0;for(let r=this.activeTo.length-1;r>=0&&this.activeTo[r]>t;r--)n++;return n}}function eX(e,t,n,r,i,a){e.goto(t),n.goto(r);let s=r+i,o=r,l=r-t;for(;;){let u=e.to+l-n.to||e.endSide-n.endSide,d=u<0?e.to+l:n.to,f=Math.min(d,s);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&j8(e.activeForPoint(e.to),n.activeForPoint(n.to))||a.comparePoint(o,f,e.point,n.point):f>o&&!j8(e.active,n.active)&&a.compareRange(o,f,e.active,n.active),d>s)break;o=d,u<=0&&e.next(),u>=0&&n.next()}}function j8(e,t){if(e.length!=t.length)return!1;for(let n=0;n=t;r--)e[r+1]=e[r];e[t]=n}function tX(e,t){let n=-1,r=1e9;for(let i=0;i=t)return i;if(i==e.length)break;a+=e.charCodeAt(i)==9?n-a%n:1,i=mo(e,i)}return r===!0?-1:e.length}const Q8="ͼ",nX=typeof Symbol>"u"?"__"+Q8:Symbol.for(Q8),W8=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),rX=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class om{constructor(t,n){this.rules=[];let{finish:r}=n||{};function i(s){return/^@/.test(s)?[s]:s.split(/,\s*/)}function a(s,o,l,u){let d=[],f=/^@(\w+)\b/.exec(s[0]),p=f&&f[1]=="keyframes";if(f&&o==null)return l.push(s[0]+";");for(let g in o){let O=o[g];if(/&/.test(g))a(g.split(/,\s*/).map(S=>s.map(T=>S.replace(/&/,T))).reduce((S,T)=>S.concat(T)),O,l);else if(O&&typeof O=="object"){if(!f)throw new RangeError("The value of a property ("+g+") should be a primitive value.");a(i(g),O,d,p)}else O!=null&&d.push(g.replace(/_.*/,"").replace(/[A-Z]/g,S=>"-"+S.toLowerCase())+": "+O+";")}(d.length||p)&&l.push((r&&!f&&!u?s.map(r):s).join(", ")+" {"+d.join(" ")+"}")}for(let s in t)a(i(s),t[s],this.rules)}getRules(){return this.rules.join(` -`)}static newName(){let t=rX[nX]||1;return rX[nX]=t+1,Q8+t.toString(36)}static mount(t,n,r){let i=t[W8],a=r&&r.nonce;i?a&&i.setNonce(a):i=new Wje(t,a),i.mount(Array.isArray(n)?n:[n],t)}}let iX=new Map;class Wje{constructor(t,n){let r=t.ownerDocument||t,i=r.defaultView;if(!t.head&&t.adoptedStyleSheets&&i.CSSStyleSheet){let a=iX.get(r);if(a)return t[W8]=a;this.sheet=new i.CSSStyleSheet,iX.set(r,this)}else this.styleTag=r.createElement("style"),n&&this.styleTag.setAttribute("nonce",n);this.modules=[],t[W8]=this}mount(t,n){let r=this.sheet,i=0,a=0;for(let s=0;s-1&&(this.modules.splice(l,1),a--,l=-1),l==-1){if(this.modules.splice(a++,0,o),r)for(let u=0;u",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Vje=typeof navigator<"u"&&/Mac/.test(navigator.platform),qje=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var zs=0;zs<10;zs++)lm[48+zs]=lm[96+zs]=String(zs);for(var zs=1;zs<=24;zs++)lm[zs+111]="F"+zs;for(var zs=65;zs<=90;zs++)lm[zs]=String.fromCharCode(zs+32),xw[zs]=String.fromCharCode(zs);for(var iD in lm)xw.hasOwnProperty(iD)||(xw[iD]=lm[iD]);function Gje(e){var t=Vje&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||qje&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?xw:lm)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}function H3(e){let t;return e.nodeType==11?t=e.getSelection?e:e.ownerDocument:t=e,t.getSelection()}function V8(e,t){return t?e==t||e.contains(t.nodeType!=1?t.parentNode:t):!1}function Yje(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function a_(e,t){if(!t.anchorNode)return!1;try{return V8(e,t.anchorNode)}catch{return!1}}function kw(e){return e.nodeType==3?T1(e,0,e.nodeValue.length).getClientRects():e.nodeType==1?e.getClientRects():[]}function b2(e,t,n,r){return n?aX(e,t,n,r,-1)||aX(e,t,n,r,1):!1}function Aw(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t}function aX(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:op(e))){if(e.nodeName=="DIV")return!1;let a=e.parentNode;if(!a||a.nodeType!=1)return!1;t=Aw(e)+(i<0?0:1),e=a}else if(e.nodeType==1){if(e=e.childNodes[t+(i<0?-1:0)],e.nodeType==1&&e.contentEditable=="false")return!1;t=i<0?op(e):0}else return!1}}function op(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function GF(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function Zje(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function Nce(e,t){let n=t.width/e.offsetWidth,r=t.height/e.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(t.width-e.offsetWidth)<1)&&(n=1),(r>.995&&r<1.005||!isFinite(r)||Math.abs(t.height-e.offsetHeight)<1)&&(r=1),{scaleX:n,scaleY:r}}function Xje(e,t,n,r,i,a,s,o){let l=e.ownerDocument,u=l.defaultView||window;for(let d=e,f=!1;d&&!f;)if(d.nodeType==1){let p,g=d==l.body,O=1,S=1;if(g)p=Zje(u);else{if(/^(fixed|sticky)$/.test(getComputedStyle(d).position)&&(f=!0),d.scrollHeight<=d.clientHeight&&d.scrollWidth<=d.clientWidth){d=d.assignedSlot||d.parentNode;continue}let x=d.getBoundingClientRect();({scaleX:O,scaleY:S}=Nce(d,x)),p={left:x.left,right:x.left+d.clientWidth*O,top:x.top,bottom:x.top+d.clientHeight*S}}let T=0,w=0;if(i=="nearest")t.top0&&t.bottom>p.bottom+w&&(w=t.bottom-p.bottom+w+s)):t.bottom>p.bottom&&(w=t.bottom-p.bottom+s,n<0&&t.top-w0&&t.right>p.right+T&&(T=t.right-p.right+T+a)):t.right>p.right&&(T=t.right-p.right+a,n<0&&t.leftn.clientHeight||n.scrollWidth>n.clientWidth)return n;n=n.assignedSlot||n.parentNode}else if(n.nodeType==11)n=n.host;else break;return null}class Jje{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(t){return this.anchorNode==t.anchorNode&&this.anchorOffset==t.anchorOffset&&this.focusNode==t.focusNode&&this.focusOffset==t.focusOffset}setRange(t){let{anchorNode:n,focusNode:r}=t;this.set(n,Math.min(t.anchorOffset,n?op(n):0),r,Math.min(t.focusOffset,r?op(r):0))}set(t,n,r,i){this.anchorNode=t,this.anchorOffset=n,this.focusNode=r,this.focusOffset=i}}let Pb=null;function Dce(e){if(e.setActive)return e.setActive();if(Pb)return e.focus(Pb);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(Pb==null?{get preventScroll(){return Pb={preventScroll:!0},!0}}:void 0),!Pb){Pb=!1;for(let n=0;nMath.max(1,e.scrollHeight-e.clientHeight-4)}class ho{constructor(t,n,r=!0){this.node=t,this.offset=n,this.precise=r}static before(t,n){return new ho(t.parentNode,Aw(t),n)}static after(t,n){return new ho(t.parentNode,Aw(t)+1,n)}}const YF=[];class $i{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(t){let n=this.posAtStart;for(let r of this.children){if(r==t)return n;n+=r.length+r.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(t){return this.posBefore(t)+t.length}sync(t,n){if(this.flags&2){let r=this.dom,i=null,a;for(let s of this.children){if(s.flags&7){if(!s.dom&&(a=i?i.nextSibling:r.firstChild)){let o=$i.get(a);(!o||!o.parent&&o.canReuseDOM(s))&&s.reuseDOM(a)}s.sync(t,n),s.flags&=-8}if(a=i?i.nextSibling:r.firstChild,n&&!n.written&&n.node==r&&a!=s.dom&&(n.written=!0),s.dom.parentNode==r)for(;a&&a!=s.dom;)a=oX(a);else r.insertBefore(s.dom,a);i=s.dom}for(a=i?i.nextSibling:r.firstChild,a&&n&&n.node==r&&(n.written=!0);a;)a=oX(a)}else if(this.flags&1)for(let r of this.children)r.flags&7&&(r.sync(t,n),r.flags&=-8)}reuseDOM(t){}localPosFromDOM(t,n){let r;if(t==this.dom)r=this.dom.childNodes[n];else{let i=op(t)==0?0:n==0?-1:1;for(;;){let a=t.parentNode;if(a==this.dom)break;i==0&&a.firstChild!=a.lastChild&&(t==a.firstChild?i=-1:i=1),t=a}i<0?r=t:r=t.nextSibling}if(r==this.dom.firstChild)return 0;for(;r&&!$i.get(r);)r=r.nextSibling;if(!r)return this.length;for(let i=0,a=0;;i++){let s=this.children[i];if(s.dom==r)return a;a+=s.length+s.breakAfter}}domBoundsAround(t,n,r=0){let i=-1,a=-1,s=-1,o=-1;for(let l=0,u=r,d=r;ln)return f.domBoundsAround(t,n,u);if(p>=t&&i==-1&&(i=l,a=u),u>n&&f.dom.parentNode==this.dom){s=l,o=d;break}d=p,u=p+f.breakAfter}return{from:a,to:o<0?r+this.length:o,startDOM:(i?this.children[i-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:s=0?this.children[s].dom:null}}markDirty(t=!1){this.flags|=2,this.markParentsDirty(t)}markParentsDirty(t){for(let n=this.parent;n;n=n.parent){if(t&&(n.flags|=2),n.flags&1)return;n.flags|=1,t=!1}}setParent(t){this.parent!=t&&(this.parent=t,this.flags&7&&this.markParentsDirty(!0))}setDOM(t){this.dom!=t&&(this.dom&&(this.dom.cmView=null),this.dom=t,t.cmView=this)}get rootView(){for(let t=this;;){let n=t.parent;if(!n)return t;t=n}}replaceChildren(t,n,r=YF){this.markDirty();for(let i=t;ithis.pos||t==this.pos&&(n>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=t-this.pos,this;let r=this.children[--this.i];this.pos-=r.length+r.breakAfter}}}function $ce(e,t,n,r,i,a,s,o,l){let{children:u}=e,d=u.length?u[t]:null,f=a.length?a[a.length-1]:null,p=f?f.breakAfter:s;if(!(t==r&&d&&!s&&!p&&a.length<2&&d.merge(n,i,a.length?f:null,n==0,o,l))){if(r0&&(!s&&a.length&&d.merge(n,d.length,a[0],!1,o,0)?d.breakAfter=a.shift().breakAfter:(n2);var bn={mac:cX||/Mac/.test(pu.platform),windows:/Win/.test(pu.platform),linux:/Linux|X11/.test(pu.platform),ie:CR,ie_version:Bce?q8.documentMode||6:Y8?+Y8[1]:G8?+G8[1]:0,gecko:lX,gecko_version:lX?+(/Firefox\/(\d+)/.exec(pu.userAgent)||[0,0])[1]:0,chrome:!!aD,chrome_version:aD?+aD[1]:0,ios:cX,android:/Android\b/.test(pu.userAgent),webkit:uX,safari:Uce,webkit_version:uX?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:q8.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const nHe=256;class lp extends $i{constructor(t){super(),this.text=t}get length(){return this.text.length}createDOM(t){this.setDOM(t||document.createTextNode(this.text))}sync(t,n){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(n&&n.node==this.dom&&(n.written=!0),this.dom.nodeValue=this.text)}reuseDOM(t){t.nodeType==3&&this.createDOM(t)}merge(t,n,r){return this.flags&8||r&&(!(r instanceof lp)||this.length-(n-t)+r.length>nHe||r.flags&8)?!1:(this.text=this.text.slice(0,t)+(r?r.text:"")+this.text.slice(n),this.markDirty(),!0)}split(t){let n=new lp(this.text.slice(t));return this.text=this.text.slice(0,t),this.markDirty(),n.flags|=this.flags&8,n}localPosFromDOM(t,n){return t==this.dom?n:n?this.text.length:0}domAtPos(t){return new ho(this.dom,t)}domBoundsAround(t,n,r){return{from:r,to:r+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(t,n){return rHe(this.dom,t,n)}}class up extends $i{constructor(t,n=[],r=0){super(),this.mark=t,this.children=n,this.length=r;for(let i of n)i.setParent(this)}setAttrs(t){if(Pce(t),this.mark.class&&(t.className=this.mark.class),this.mark.attrs)for(let n in this.mark.attrs)t.setAttribute(n,this.mark.attrs[n]);return t}canReuseDOM(t){return super.canReuseDOM(t)&&!((this.flags|t.flags)&8)}reuseDOM(t){t.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(t),this.flags|=6)}sync(t,n){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(t,n)}merge(t,n,r,i,a,s){return r&&(!(r instanceof up&&r.mark.eq(this.mark))||t&&a<=0||nt&&n.push(r=t&&(i=a),r=l,a++}let s=this.length-t;return this.length=t,i>-1&&(this.children.length=i,this.markDirty()),new up(this.mark,n,s)}domAtPos(t){return zce(this,t)}coordsAt(t,n){return Hce(this,t,n)}}function rHe(e,t,n){let r=e.nodeValue.length;t>r&&(t=r);let i=t,a=t,s=0;t==0&&n<0||t==r&&n>=0?bn.chrome||bn.gecko||(t?(i--,s=1):a=0)?0:o.length-1];return bn.safari&&!s&&l.width==0&&(l=Array.prototype.find.call(o,u=>u.width)||l),s?GF(l,s<0):l||null}class L0 extends $i{static create(t,n,r){return new L0(t,n,r)}constructor(t,n,r){super(),this.widget=t,this.length=n,this.side=r,this.prevWidget=null}split(t){let n=L0.create(this.widget,this.length-t,this.side);return this.length-=t,n}sync(t){(!this.dom||!this.widget.updateDOM(this.dom,t))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(t)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(t,n,r,i,a,s){return r&&(!(r instanceof L0)||!this.widget.compare(r.widget)||t>0&&a<=0||n0)?ho.before(this.dom):ho.after(this.dom,t==this.length)}domBoundsAround(){return null}coordsAt(t,n){let r=this.widget.coordsAt(this.dom,t,n);if(r)return r;let i=this.dom.getClientRects(),a=null;if(!i.length)return null;let s=this.side?this.side<0:t>0;for(let o=s?i.length-1:0;a=i[o],!(t>0?o==0:o==i.length-1||a.top0?ho.before(this.dom):ho.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(t){return this.dom.getBoundingClientRect()}get overrideDOMText(){return Er.empty}get isHidden(){return!0}}lp.prototype.children=L0.prototype.children=_v.prototype.children=YF;function zce(e,t){let n=e.dom,{children:r}=e,i=0;for(let a=0;ia&&t0;a--){let s=r[a-1];if(s.dom.parentNode==n)return s.domAtPos(s.length)}for(let a=i;a0&&t instanceof up&&i.length&&(r=i[i.length-1])instanceof up&&r.mark.eq(t.mark)?jce(r,t.children[0],n-1):(i.push(t),t.setParent(e)),e.length+=t.length}function Hce(e,t,n){let r=null,i=-1,a=null,s=-1;function o(u,d){for(let f=0,p=0;f=d&&(g.children.length?o(g,d-p):(!a||a.isHidden&&n>0)&&(O>d||p==O&&g.getSide()>0)?(a=g,s=d-p):(p-1?1:0)!=i.length-(n&&i.indexOf(n)>-1?1:0))return!1;for(let a of r)if(a!=n&&(i.indexOf(a)==-1||e[a]!==t[a]))return!1;return!0}function X8(e,t,n){let r=!1;if(t)for(let i in t)n&&i in n||(r=!0,i=="style"?e.style.cssText="":e.removeAttribute(i));if(n)for(let i in n)t&&t[i]==n[i]||(r=!0,i=="style"?e.style.cssText=n[i]:e.setAttribute(i,n[i]));return r}function aHe(e){let t=Object.create(null);for(let n=0;n0&&this.children[r-1].length==0;)this.children[--r].destroy();return this.children.length=r,this.markDirty(),this.length=t,n}transferDOM(t){this.dom&&(this.markDirty(),t.setDOM(this.dom),t.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(t){ZF(this.attrs,t)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}append(t,n){jce(this,t,n)}addLineDeco(t){let n=t.spec.attributes,r=t.spec.class;n&&(this.attrs=Z8(n,this.attrs||{})),r&&(this.attrs=Z8({class:r},this.attrs||{}))}domAtPos(t){return zce(this,t)}reuseDOM(t){t.nodeName=="DIV"&&(this.setDOM(t),this.flags|=6)}sync(t,n){var r;this.dom?this.flags&4&&(Pce(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(X8(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(t,n);let i=this.dom.lastChild;for(;i&&$i.get(i)instanceof up;)i=i.lastChild;if(!i||!this.length||i.nodeName!="BR"&&((r=$i.get(i))===null||r===void 0?void 0:r.isEditable)==!1&&(!bn.ios||!this.children.some(a=>a instanceof lp))){let a=document.createElement("BR");a.cmIgnore=!0,this.dom.appendChild(a)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let t=0,n;for(let r of this.children){if(!(r instanceof lp)||/[^ -~]/.test(r.text))return null;let i=kw(r.dom);if(i.length!=1)return null;t+=i[0].width,n=i[0].height}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:n}:null}coordsAt(t,n){let r=Hce(this,t,n);if(!this.children.length&&r&&this.parent){let{heightOracle:i}=this.parent.view.viewState,a=r.bottom-r.top;if(Math.abs(a-i.lineHeight)<2&&i.textHeight=n){if(a instanceof es)return a;if(s>n)break}i=s+a.breakAfter}return null}}class Y0 extends $i{constructor(t,n,r){super(),this.widget=t,this.length=n,this.deco=r,this.breakAfter=0,this.prevWidget=null}merge(t,n,r,i,a,s){return r&&(!(r instanceof Y0)||!this.widget.compare(r.widget)||t>0&&a<=0||n0}}class Ld{eq(t){return!1}updateDOM(t,n){return!1}compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(t){return!0}coordsAt(t,n,r){return null}get isHidden(){return!1}get editable(){return!1}destroy(t){}}var Zo=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(Zo||(Zo={}));class vn extends w1{constructor(t,n,r,i){super(),this.startSide=t,this.endSide=n,this.widget=r,this.spec=i}get heightRelevant(){return!1}static mark(t){return new UT(t)}static widget(t){let n=Math.max(-1e4,Math.min(1e4,t.side||0)),r=!!t.block;return n+=r&&!t.inlineOrder?n>0?3e8:-4e8:n>0?1e8:-1e8,new um(t,n,n,r,t.widget||null,!1)}static replace(t){let n=!!t.block,r,i;if(t.isBlockGap)r=-5e8,i=4e8;else{let{start:a,end:s}=Qce(t,n);r=(a?n?-3e8:-1:5e8)-1,i=(s?n?2e8:1:-6e8)+1}return new um(t,r,i,n,t.widget||null,!0)}static line(t){return new zT(t)}static set(t,n=!1){return Cr.of(t,n)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}vn.none=Cr.empty;class UT extends vn{constructor(t){let{start:n,end:r}=Qce(t);super(n?-1:5e8,r?1:-6e8,null,t),this.tagName=t.tagName||"span",this.class=t.class||"",this.attrs=t.attributes||null}eq(t){var n,r;return this==t||t instanceof UT&&this.tagName==t.tagName&&(this.class||((n=this.attrs)===null||n===void 0?void 0:n.class))==(t.class||((r=t.attrs)===null||r===void 0?void 0:r.class))&&ZF(this.attrs,t.attrs,"class")}range(t,n=t){if(t>=n)throw new RangeError("Mark decorations may not be empty");return super.range(t,n)}}UT.prototype.point=!1;class zT extends vn{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof zT&&this.spec.class==t.spec.class&&ZF(this.spec.attributes,t.spec.attributes)}range(t,n=t){if(n!=t)throw new RangeError("Line decoration ranges must be zero-length");return super.range(t,n)}}zT.prototype.mapMode=js.TrackBefore;zT.prototype.point=!0;class um extends vn{constructor(t,n,r,i,a,s){super(n,r,a,t),this.block=i,this.isReplace=s,this.mapMode=i?n<=0?js.TrackBefore:js.TrackAfter:js.TrackDel}get type(){return this.startSide!=this.endSide?Zo.WidgetRange:this.startSide<=0?Zo.WidgetBefore:Zo.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){return t instanceof um&&sHe(this.widget,t.widget)&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide}range(t,n=t){if(this.isReplace&&(t>n||t==n&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&n!=t)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(t,n)}}um.prototype.point=!0;function Qce(e,t=!1){let{inclusiveStart:n,inclusiveEnd:r}=e;return n==null&&(n=e.inclusive),r==null&&(r=e.inclusive),{start:n??t,end:r??t}}function sHe(e,t){return e==t||!!(e&&t&&e.compare(t))}function K8(e,t,n,r=0){let i=n.length-1;i>=0&&n[i]+r>=e?n[i]=Math.max(n[i],t):n.push(e,t)}class y2{constructor(t,n,r,i){this.doc=t,this.pos=n,this.end=r,this.disallowBlockEffectsFor=i,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=t.iter(),this.skip=n}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let t=this.content[this.content.length-1];return!(t.breakAfter||t instanceof Y0&&t.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new es),this.atCursorPos=!0),this.curLine}flushBuffer(t=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(CA(new _v(-1),t),t.length),this.pendingBuffer=0)}addBlockWidget(t){this.flushBuffer(),this.curLine=null,this.content.push(t)}finish(t){this.pendingBuffer&&t<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(t&&this.content.length&&this.content[this.content.length-1]instanceof Y0)&&this.getLine()}buildText(t,n,r){for(;t>0;){if(this.textOff==this.text.length){let{value:a,lineBreak:s,done:o}=this.cursor.next(this.skip);if(this.skip=0,o)throw new Error("Ran out of text content when drawing inline views");if(s){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,t--;continue}else this.text=a,this.textOff=0}let i=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(n.slice(n.length-r)),this.getLine().append(CA(new lp(this.text.slice(this.textOff,this.textOff+i)),n),r),this.atCursorPos=!0,this.textOff+=i,t-=i,r=0}}span(t,n,r,i){this.buildText(n-t,r,i),this.pos=n,this.openStart<0&&(this.openStart=i)}point(t,n,r,i,a,s){if(this.disallowBlockEffectsFor[s]&&r instanceof um){if(r.block)throw new RangeError("Block decorations may not be specified via plugins");if(n>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let o=n-t;if(r instanceof um)if(r.block)r.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Y0(r.widget||new fX("div"),o,r));else{let l=L0.create(r.widget||new fX("span"),o,o?0:r.startSide),u=this.atCursorPos&&!l.isEditable&&a<=i.length&&(t0),d=!l.isEditable&&(ti.length||r.startSide<=0),f=this.getLine();this.pendingBuffer==2&&!u&&!l.isEditable&&(this.pendingBuffer=0),this.flushBuffer(i),u&&(f.append(CA(new _v(1),i),a),a=i.length+Math.max(0,a-i.length)),f.append(CA(l,i),a),this.atCursorPos=d,this.pendingBuffer=d?ti.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=i.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(r);o&&(this.textOff+o<=this.text.length?this.textOff+=o:(this.skip+=o-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=n),this.openStart<0&&(this.openStart=a)}static build(t,n,r,i,a){let s=new y2(t,n,r,a);return s.openEnd=Cr.spans(i,n,r,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}}function CA(e,t){for(let n of t)e=new up(n,[e],e.length);return e}class fX extends Ld{constructor(t){super(),this.tag=t}eq(t){return t.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(t){return t.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}var Bi=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(Bi||(Bi={}));const x1=Bi.LTR,XF=Bi.RTL;function Wce(e){let t=[];for(let n=0;n=n){if(o.level==r)return s;(a<0||(i!=0?i<0?o.fromn:t[a].level>o.level))&&(a=s)}}if(a<0)throw new RangeError("Index out of range");return a}}function qce(e,t){if(e.length!=t.length)return!1;for(let n=0;n=0;S-=3)if(Xd[S+1]==-g){let T=Xd[S+2],w=T&2?i:T&4?T&1?a:i:0;w&&(yi[f]=yi[Xd[S]]=w),o=S;break}}else{if(Xd.length==189)break;Xd[o++]=f,Xd[o++]=p,Xd[o++]=l}else if((O=yi[f])==2||O==1){let S=O==i;l=S?0:1;for(let T=o-3;T>=0;T-=3){let w=Xd[T+2];if(w&2)break;if(S)Xd[T+2]|=2;else{if(w&4)break;Xd[T+2]|=4}}}}}function fHe(e,t,n,r){for(let i=0,a=r;i<=n.length;i++){let s=i?n[i-1].to:e,o=il;)O==T&&(O=n[--S].from,T=S?n[S-1].to:e),yi[--O]=g;l=d}else a=u,l++}}}function eL(e,t,n,r,i,a,s){let o=r%2?2:1;if(r%2==i%2)for(let l=t,u=0;ll&&s.push(new M0(l,S.from,g));let T=S.direction==x1!=!(g%2);tL(e,T?r+1:r,i,S.inner,S.from,S.to,s),l=S.to}O=S.to}else{if(O==n||(d?yi[O]!=o:yi[O]==o))break;O++}p?eL(e,l,O,r+1,i,p,s):lt;){let d=!0,f=!1;if(!u||l>a[u-1].to){let S=yi[l-1];S!=o&&(d=!1,f=S==16)}let p=!d&&o==1?[]:null,g=d?r:r+1,O=l;e:for(;;)if(u&&O==a[u-1].to){if(f)break e;let S=a[--u];if(!d)for(let T=S.from,w=u;;){if(T==t)break e;if(w&&a[w-1].to==T)T=a[--w].from;else{if(yi[T-1]==o)break e;break}}if(p)p.push(S);else{S.toyi.length;)yi[yi.length]=256;let r=[],i=t==x1?0:1;return tL(e,i,i,n,0,e.length,r),r}function Gce(e){return[new M0(0,e,0)]}let Yce="";function pHe(e,t,n,r,i){var a;let s=r.head-e.from,o=M0.find(t,s,(a=r.bidiLevel)!==null&&a!==void 0?a:-1,r.assoc),l=t[o],u=l.side(i,n);if(s==u){let p=o+=i?1:-1;if(p<0||p>=t.length)return null;l=t[o=p],s=l.side(!i,n),u=l.side(i,n)}let d=mo(e.text,s,l.forward(i,n));(dl.to)&&(d=u),Yce=e.text.slice(Math.min(s,d),Math.max(s,d));let f=o==(i?t.length-1:0)?null:t[o+(i?1:-1)];return f&&d==u&&f.level+(i?0:1)e.some(t=>t)}),rde=fn.define({combine:e=>e.some(t=>t)});class Uy{constructor(t,n="nearest",r="nearest",i=5,a=5,s=!1){this.range=t,this.y=n,this.x=r,this.yMargin=i,this.xMargin=a,this.isSnapshot=s}map(t){return t.empty?this:new Uy(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(t){return this.range.to<=t.doc.length?this:new Uy(dt.cursor(t.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const RA=er.define({map:(e,t)=>e.map(t)});function Oc(e,t,n){let r=e.facet(Jce);r.length?r[0](t):window.onerror?window.onerror(String(t),n,void 0,void 0,t):n?console.error(n+":",t):console.error(t)}const RR=fn.define({combine:e=>e.length?e[0]:!0});let gHe=0;const FE=fn.define();class fa{constructor(t,n,r,i,a){this.id=t,this.create=n,this.domEventHandlers=r,this.domEventObservers=i,this.extension=a(this)}static define(t,n){const{eventHandlers:r,eventObservers:i,provide:a,decorations:s}=n||{};return new fa(gHe++,t,r,i,o=>{let l=[FE.of(o)];return s&&l.push(_w.of(u=>{let d=u.plugin(o);return d?s(d):vn.none})),a&&l.push(a(o)),l})}static fromClass(t,n){return fa.define(r=>new t(r),n)}}class sD{constructor(t){this.spec=t,this.mustUpdate=null,this.value=null}update(t){if(this.value){if(this.mustUpdate){let n=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(n)}catch(r){if(Oc(n.state,r,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(t)}catch(n){Oc(t.state,n,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(t){var n;if(!((n=this.value)===null||n===void 0)&&n.destroy)try{this.value.destroy()}catch(r){Oc(t.state,r,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const ide=fn.define(),KF=fn.define(),_w=fn.define(),ade=fn.define(),JF=fn.define(),sde=fn.define();function hX(e,t){let n=e.state.facet(sde);if(!n.length)return n;let r=n.map(a=>a instanceof Function?a(e):a),i=[];return Cr.spans(r,t.from,t.to,{point(){},span(a,s,o,l){let u=a-t.from,d=s-t.from,f=i;for(let p=o.length-1;p>=0;p--,l--){let g=o[p].spec.bidiIsolate,O;if(g==null&&(g=mHe(t.text,u,d)),l>0&&f.length&&(O=f[f.length-1]).to==u&&O.direction==g)O.to=d,f=O.inner;else{let S={from:u,to:d,direction:g,inner:[]};f.push(S),f=S.inner}}}}),i}const ode=fn.define();function lde(e){let t=0,n=0,r=0,i=0;for(let a of e.state.facet(ode)){let s=a(e);s&&(s.left!=null&&(t=Math.max(t,s.left)),s.right!=null&&(n=Math.max(n,s.right)),s.top!=null&&(r=Math.max(r,s.top)),s.bottom!=null&&(i=Math.max(i,s.bottom)))}return{left:t,right:n,top:r,bottom:i}}const BE=fn.define();class Sc{constructor(t,n,r,i){this.fromA=t,this.toA=n,this.fromB=r,this.toB=i}join(t){return new Sc(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let n=t.length,r=this;for(;n>0;n--){let i=t[n-1];if(!(i.fromA>r.toA)){if(i.toAd)break;a+=2}if(!l)return r;new Sc(l.fromA,l.toA,l.fromB,l.toB).addToSet(r),s=l.toA,o=l.toB}}}class Q3{constructor(t,n,r){this.view=t,this.state=n,this.transactions=r,this.flags=0,this.startState=t.state,this.changes=ns.empty(this.startState.doc.length);for(let a of r)this.changes=this.changes.compose(a.changes);let i=[];this.changes.iterChangedRanges((a,s,o,l)=>i.push(new Sc(a,s,o,l))),this.changedRanges=i}static create(t,n,r){return new Q3(t,n,r)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(t=>t.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class pX extends $i{get length(){return this.view.state.doc.length}constructor(t){super(),this.view=t,this.decorations=[],this.dynamicDecorationMap=[],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(t.contentDOM),this.children=[new es],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Sc(0,0,0,t.state.doc.length)],0,null)}update(t){var n;let r=t.changedRanges;this.minWidth>0&&r.length&&(r.every(({fromA:u,toA:d})=>dthis.minWidthTo)?(this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let i=-1;this.view.inputState.composing>=0&&(!((n=this.domChanged)===null||n===void 0)&&n.newSel?i=this.domChanged.newSel.head:!wHe(t.changes,this.hasComposition)&&!t.selectionSet&&(i=t.state.selection.main.head));let a=i>-1?yHe(this.view,t.changes,i):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:u,to:d}=this.hasComposition;r=new Sc(u,d,t.changes.mapPos(u,-1),t.changes.mapPos(d,1)).addToSet(r.slice())}this.hasComposition=a?{from:a.range.fromB,to:a.range.toB}:null,(bn.ie||bn.chrome)&&!a&&t&&t.state.doc.lines!=t.startState.doc.lines&&(this.forceSelection=!0);let s=this.decorations,o=this.updateDeco(),l=SHe(s,o,t.changes);return r=Sc.extendWithRanges(r,l),!(this.flags&7)&&r.length==0?!1:(this.updateInner(r,t.startState.doc.length,a),t.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(t,n,r){this.view.viewState.mustMeasureContent=!0,this.updateChildren(t,n,r);let{observer:i}=this.view;i.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let s=bn.chrome||bn.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,s),this.flags&=-8,s&&(s.written||i.selectionRange.focusNode!=s.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(s=>s.flags&=-9);let a=[];if(this.view.viewport.from||this.view.viewport.to=0?i[s]:null;if(!o)break;let{fromA:l,toA:u,fromB:d,toB:f}=o,p,g,O,S;if(r&&r.range.fromBd){let _=y2.build(this.view.state.doc,d,r.range.fromB,this.decorations,this.dynamicDecorationMap),R=y2.build(this.view.state.doc,r.range.toB,f,this.decorations,this.dynamicDecorationMap);g=_.breakAtStart,O=_.openStart,S=R.openEnd;let N=this.compositionView(r);R.breakAtStart?N.breakAfter=1:R.content.length&&N.merge(N.length,N.length,R.content[0],!1,R.openStart,0)&&(N.breakAfter=R.content[0].breakAfter,R.content.shift()),_.content.length&&N.merge(0,0,_.content[_.content.length-1],!0,0,_.openEnd)&&_.content.pop(),p=_.content.concat(N).concat(R.content)}else({content:p,breakAtStart:g,openStart:O,openEnd:S}=y2.build(this.view.state.doc,d,f,this.decorations,this.dynamicDecorationMap));let{i:T,off:w}=a.findPos(u,1),{i:x,off:k}=a.findPos(l,-1);$ce(this,x,k,T,w,p,g,O,S)}r&&this.fixCompositionDOM(r)}compositionView(t){let n=new lp(t.text.nodeValue);n.flags|=8;for(let{deco:i}of t.marks)n=new up(i,[n],n.length);let r=new es;return r.append(n,0),r}fixCompositionDOM(t){let n=(a,s)=>{s.flags|=8|(s.children.some(l=>l.flags&7)?1:0),this.markedForComposition.add(s);let o=$i.get(a);o&&o!=s&&(o.dom=null),s.setDOM(a)},r=this.childPos(t.range.fromB,1),i=this.children[r.i];n(t.line,i);for(let a=t.marks.length-1;a>=-1;a--)r=i.childPos(r.off,1),i=i.children[r.i],n(a>=0?t.marks[a].node:t.text,i)}updateSelection(t=!1,n=!1){(t||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let r=this.view.root.activeElement,i=r==this.dom,a=!i&&a_(this.dom,this.view.observer.selectionRange)&&!(r&&this.dom.contains(r));if(!(i||n||a))return;let s=this.forceSelection;this.forceSelection=!1;let o=this.view.state.selection.main,l=this.moveToLine(this.domAtPos(o.anchor)),u=o.empty?l:this.moveToLine(this.domAtPos(o.head));if(bn.gecko&&o.empty&&!this.hasComposition&&bHe(l)){let f=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(f,l.node.childNodes[l.offset]||null)),l=u=new ho(f,0),s=!0}let d=this.view.observer.selectionRange;(s||!d.focusNode||(!b2(l.node,l.offset,d.anchorNode,d.anchorOffset)||!b2(u.node,u.offset,d.focusNode,d.focusOffset))&&!this.suppressWidgetCursorChange(d,o))&&(this.view.observer.ignore(()=>{bn.android&&bn.chrome&&this.dom.contains(d.focusNode)&&EHe(d.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let f=H3(this.view.root);if(f)if(o.empty){if(bn.gecko){let p=vHe(l.node,l.offset);if(p&&p!=3){let g=cde(l.node,l.offset,p==1?1:-1);g&&(l=new ho(g.node,g.offset))}}f.collapse(l.node,l.offset),o.bidiLevel!=null&&f.caretBidiLevel!==void 0&&(f.caretBidiLevel=o.bidiLevel)}else if(f.extend){f.collapse(l.node,l.offset);try{f.extend(u.node,u.offset)}catch{}}else{let p=document.createRange();o.anchor>o.head&&([l,u]=[u,l]),p.setEnd(u.node,u.offset),p.setStart(l.node,l.offset),f.removeAllRanges(),f.addRange(p)}a&&this.view.root.activeElement==this.dom&&(this.dom.blur(),r&&r.focus())}),this.view.observer.setSelectionRange(l,u)),this.impreciseAnchor=l.precise?null:new ho(d.anchorNode,d.anchorOffset),this.impreciseHead=u.precise?null:new ho(d.focusNode,d.focusOffset)}suppressWidgetCursorChange(t,n){return this.hasComposition&&n.empty&&b2(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)&&this.posFromDOM(t.focusNode,t.focusOffset)==n.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:t}=this,n=t.state.selection.main,r=H3(t.root),{anchorNode:i,anchorOffset:a}=t.observer.selectionRange;if(!r||!n.empty||!n.assoc||!r.modify)return;let s=es.find(this,n.head);if(!s)return;let o=s.posAtStart;if(n.head==o||n.head==o+s.length)return;let l=this.coordsAt(n.head,-1),u=this.coordsAt(n.head,1);if(!l||!u||l.bottom>u.top)return;let d=this.domAtPos(n.head+n.assoc);r.collapse(d.node,d.offset),r.modify("move",n.assoc<0?"forward":"backward","lineboundary"),t.observer.readSelectionRange();let f=t.observer.selectionRange;t.docView.posFromDOM(f.anchorNode,f.anchorOffset)!=n.from&&r.collapse(i,a)}moveToLine(t){let n=this.dom,r;if(t.node!=n)return t;for(let i=t.offset;!r&&i=0;i--){let a=$i.get(n.childNodes[i]);a instanceof es&&(r=a.domAtPos(a.length))}return r?new ho(r.node,r.offset,!0):t}nearest(t){for(let n=t;n;){let r=$i.get(n);if(r&&r.rootView==this)return r;n=n.parentNode}return null}posFromDOM(t,n){let r=this.nearest(t);if(!r)throw new RangeError("Trying to find position for a DOM position outside of the document");return r.localPosFromDOM(t,n)+r.posAtStart}domAtPos(t){let{i:n,off:r}=this.childCursor().findPos(t,-1);for(;n=0;s--){let o=this.children[s],l=a-o.breakAfter,u=l-o.length;if(lt||o.covers(1))&&(!r||o instanceof es&&!(r instanceof es&&n>=0))&&(r=o,i=u),a=u}return r?r.coordsAt(t-i,n):null}coordsForChar(t){let{i:n,off:r}=this.childPos(t,1),i=this.children[n];if(!(i instanceof es))return null;for(;i.children.length;){let{i:o,off:l}=i.childPos(r,1);for(;;o++){if(o==i.children.length)return null;if((i=i.children[o]).length)break}r=l}if(!(i instanceof lp))return null;let a=mo(i.text,r);if(a==r)return null;let s=T1(i.dom,r,a).getClientRects();for(let o=0;oMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,o=-1,l=this.view.textDirection==Bi.LTR;for(let u=0,d=0;di)break;if(u>=r){let g=f.dom.getBoundingClientRect();if(n.push(g.height),s){let O=f.dom.lastChild,S=O?kw(O):[];if(S.length){let T=S[S.length-1],w=l?T.right-g.left:g.right-T.left;w>o&&(o=w,this.minWidth=a,this.minWidthFrom=u,this.minWidthTo=p)}}}u=p+f.breakAfter}return n}textDirectionAt(t){let{i:n}=this.childPos(t,1);return getComputedStyle(this.children[n].dom).direction=="rtl"?Bi.RTL:Bi.LTR}measureTextSize(){for(let a of this.children)if(a instanceof es){let s=a.measureTextSize();if(s)return s}let t=document.createElement("div"),n,r,i;return t.className="cm-line",t.style.width="99999px",t.style.position="absolute",t.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(t);let a=kw(t.firstChild)[0];n=t.getBoundingClientRect().height,r=a?a.width/27:7,i=a?a.height:n,t.remove()}),{lineHeight:n,charWidth:r,textHeight:i}}childCursor(t=this.length){let n=this.children.length;return n&&(t-=this.children[--n].length),new Mce(this.children,t,n)}computeBlockGapDeco(){let t=[],n=this.view.viewState;for(let r=0,i=0;;i++){let a=i==n.viewports.length?null:n.viewports[i],s=a?a.from-1:this.length;if(s>r){let o=(n.lineBlockAt(s).bottom-n.lineBlockAt(r).top)/this.view.scaleY;t.push(vn.replace({widget:new mX(o),block:!0,inclusive:!0,isBlockGap:!0}).range(r,s))}if(!a)break;r=a.to+1}return vn.set(t)}updateDeco(){let t=this.view.state.facet(_w).map((i,a)=>(this.dynamicDecorationMap[a]=typeof i=="function")?i(this.view):i),n=!1,r=this.view.state.facet(ade).map((i,a)=>{let s=typeof i=="function";return s&&(n=!0),s?i(this.view):i});r.length&&(this.dynamicDecorationMap[t.length]=n,t.push(Cr.join(r)));for(let i=t.length;in.anchor?-1:1),i;if(!r)return;!n.empty&&(i=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,i.left),top:Math.min(r.top,i.top),right:Math.max(r.right,i.right),bottom:Math.max(r.bottom,i.bottom)});let a=lde(this.view),s={left:r.left-a.left,top:r.top-a.top,right:r.right+a.right,bottom:r.bottom+a.bottom},{offsetWidth:o,offsetHeight:l}=this.view.scrollDOM;Xje(this.view.scrollDOM,s,n.head0)r=r.childNodes[i-1],i=op(r);else break}if(n>=0)for(let r=e,i=t;;){if(r.nodeType==3)return{node:r,offset:i};if(r.nodeType==1&&i=0)r=r.childNodes[i],i=0;else break}return null}function vHe(e,t){return e.nodeType!=1?0:(t&&e.childNodes[t-1].contentEditable=="false"?1:0)|(t{rt.from&&(n=!0)}),n}function THe(e,t,n=1){let r=e.charCategorizer(t),i=e.doc.lineAt(t),a=t-i.from;if(i.length==0)return dt.cursor(t);a==0?n=1:a==i.length&&(n=-1);let s=a,o=a;n<0?s=mo(i.text,a,!1):o=mo(i.text,a);let l=r(i.text.slice(s,o));for(;s>0;){let u=mo(i.text,s,!1);if(r(i.text.slice(u,s))!=l)break;s=u}for(;oe?t.left-e:Math.max(0,e-t.right)}function kHe(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function oD(e,t){return e.topt.top+1}function gX(e,t){return te.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function rL(e,t,n){let r,i,a,s,o=!1,l,u,d,f;for(let O=e.firstChild;O;O=O.nextSibling){let S=kw(O);for(let T=0;Tk||s==k&&a>x){r=O,i=w,a=x,s=k;let _=k?n0?T0)}x==0?n>w.bottom&&(!d||d.bottomw.top)&&(u=O,f=w):d&&oD(d,w)?d=bX(d,w.bottom):f&&oD(f,w)&&(f=gX(f,w.top))}}if(d&&d.bottom>=n?(r=l,i=d):f&&f.top<=n&&(r=u,i=f),!r)return{node:e,offset:0};let p=Math.max(i.left,Math.min(i.right,t));if(r.nodeType==3)return yX(r,p,n);if(o&&r.contentEditable!="false")return rL(r,p,n);let g=Array.prototype.indexOf.call(e.childNodes,r)+(t>=(i.left+i.right)/2?1:0);return{node:e,offset:g}}function yX(e,t,n){let r=e.nodeValue.length,i=-1,a=1e9,s=0;for(let o=0;on?d.top-n:n-d.bottom)-1;if(d.left-1<=t&&d.right+1>=t&&f=(d.left+d.right)/2,g=p;if((bn.chrome||bn.gecko)&&T1(e,o).getBoundingClientRect().left==d.right&&(g=!p),f<=0)return{node:e,offset:o+(g?1:0)};i=o+(g?1:0),a=f}}}return{node:e,offset:i>-1?i:s>0?e.nodeValue.length:0}}function dde(e,t,n,r=-1){var i,a;let s=e.contentDOM.getBoundingClientRect(),o=s.top+e.viewState.paddingTop,l,{docHeight:u}=e.viewState,{x:d,y:f}=t,p=f-o;if(p<0)return 0;if(p>u)return e.state.doc.length;for(let _=e.viewState.heightOracle.textHeight/2,R=!1;l=e.elementAtHeight(p),l.type!=Zo.Text;)for(;p=r>0?l.bottom+_:l.top-_,!(p>=0&&p<=u);){if(R)return n?null:0;R=!0,r=-r}f=o+p;let g=l.from;if(ge.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:vX(e,s,l,d,f);let O=e.dom.ownerDocument,S=e.root.elementFromPoint?e.root:O,T=S.elementFromPoint(d,f);T&&!e.contentDOM.contains(T)&&(T=null),T||(d=Math.max(s.left+1,Math.min(s.right-1,d)),T=S.elementFromPoint(d,f),T&&!e.contentDOM.contains(T)&&(T=null));let w,x=-1;if(T&&((i=e.docView.nearest(T))===null||i===void 0?void 0:i.isEditable)!=!1){if(O.caretPositionFromPoint){let _=O.caretPositionFromPoint(d,f);_&&({offsetNode:w,offset:x}=_)}else if(O.caretRangeFromPoint){let _=O.caretRangeFromPoint(d,f);_&&({startContainer:w,startOffset:x}=_,(!e.contentDOM.contains(w)||bn.safari&&AHe(w,x,d)||bn.chrome&&_He(w,x,d))&&(w=void 0))}}if(!w||!e.docView.dom.contains(w)){let _=es.find(e.docView,g);if(!_)return p>l.top+l.height/2?l.to:l.from;({node:w,offset:x}=rL(_.dom,d,f))}let k=e.docView.nearest(w);if(!k)return null;if(k.isWidget&&((a=k.dom)===null||a===void 0?void 0:a.nodeType)==1){let _=k.dom.getBoundingClientRect();return t.y<_.top||t.y<=_.bottom&&t.x<=(_.left+_.right)/2?k.posAtStart:k.posAtEnd}else return k.localPosFromDOM(w,x)+k.posAtStart}function vX(e,t,n,r,i){let a=Math.round((r-t.left)*e.defaultCharacterWidth);if(e.lineWrapping&&n.height>e.defaultLineHeight*1.5){let o=e.viewState.heightOracle.textHeight,l=Math.floor((i-n.top-(e.defaultLineHeight-o)*.5)/o);a+=l*e.viewState.heightOracle.lineLength}let s=e.state.sliceDoc(n.from,n.to);return n.from+H8(s,a,e.state.tabSize)}function AHe(e,t,n){let r;if(e.nodeType!=3||t!=(r=e.nodeValue.length))return!1;for(let i=e.nextSibling;i;i=i.nextSibling)if(i.nodeType!=1||i.nodeName!="BR")return!1;return T1(e,r-1,r).getBoundingClientRect().left>n}function _He(e,t,n){if(t!=0)return!1;for(let i=e;;){let a=i.parentNode;if(!a||a.nodeType!=1||a.firstChild!=i)return!1;if(a.classList.contains("cm-line"))break;i=a}let r=e.nodeType==1?e.getBoundingClientRect():T1(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect();return n-r.left>5}function iL(e,t){let n=e.lineBlockAt(t);if(Array.isArray(n.type)){for(let r of n.type)if(r.to>t||r.to==t&&(r.to==n.to||r.type==Zo.Text))return r}return n}function CHe(e,t,n,r){let i=iL(e,t.head),a=!r||i.type!=Zo.Text||!(e.lineWrapping||i.widgetLineBreaks)?null:e.coordsAtPos(t.assoc<0&&t.head>i.from?t.head-1:t.head);if(a){let s=e.dom.getBoundingClientRect(),o=e.textDirectionAt(i.from),l=e.posAtCoords({x:n==(o==Bi.LTR)?s.right-1:s.left+1,y:(a.top+a.bottom)/2});if(l!=null)return dt.cursor(l,n?-1:1)}return dt.cursor(n?i.to:i.from,n?-1:1)}function OX(e,t,n,r){let i=e.state.doc.lineAt(t.head),a=e.bidiSpans(i),s=e.textDirectionAt(i.from);for(let o=t,l=null;;){let u=pHe(i,a,s,o,n),d=Yce;if(!u){if(i.number==(n?e.state.doc.lines:1))return o;d=` -`,i=e.state.doc.line(i.number+(n?1:-1)),a=e.bidiSpans(i),u=e.visualLineSide(i,!n)}if(l){if(!l(d))return o}else{if(!r)return u;l=r(d)}o=u}}function RHe(e,t,n){let r=e.state.charCategorizer(t),i=r(n);return a=>{let s=r(a);return i==Ji.Space&&(i=s),i==s}}function IHe(e,t,n,r){let i=t.head,a=n?1:-1;if(i==(n?e.state.doc.length:0))return dt.cursor(i,t.assoc);let s=t.goalColumn,o,l=e.contentDOM.getBoundingClientRect(),u=e.coordsAtPos(i,t.assoc||-1),d=e.documentTop;if(u)s==null&&(s=u.left-l.left),o=a<0?u.top:u.bottom;else{let g=e.viewState.lineBlockAt(i);s==null&&(s=Math.min(l.right-l.left,e.defaultCharacterWidth*(i-g.from))),o=(a<0?g.top:g.bottom)+d}let f=l.left+s,p=r??e.viewState.heightOracle.textHeight>>1;for(let g=0;;g+=10){let O=o+(p+g)*a,S=dde(e,{x:f,y:O},!1,a);if(Ol.bottom||(a<0?Si)){let T=e.docView.coordsForChar(S),w=!T||O{if(t>a&&ti(e)),n.from,t.head>n.from?-1:1);return r==n.from?n:dt.cursor(r,rnull),bn.gecko&&GHe(t.contentDOM.ownerDocument)}handleEvent(t){!UHe(this.view,t)||this.ignoreDuringComposition(t)||t.type=="keydown"&&this.keydown(t)||this.runHandlers(t.type,t)}runHandlers(t,n){let r=this.handlers[t];if(r){for(let i of r.observers)i(this.view,n);for(let i of r.handlers){if(n.defaultPrevented)break;if(i(this.view,n)){n.preventDefault();break}}}}ensureHandlers(t){let n=DHe(t),r=this.handlers,i=this.view.contentDOM;for(let a in n)if(a!="scroll"){let s=!n[a].handlers.length,o=r[a];o&&s!=!o.handlers.length&&(i.removeEventListener(a,this.handleEvent),o=null),o||i.addEventListener(a,this.handleEvent,{passive:s})}for(let a in r)a!="scroll"&&!n[a]&&i.removeEventListener(a,this.handleEvent);this.handlers=n}keydown(t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),t.keyCode==9&&Date.now()r.keyCode==t.keyCode))&&!t.ctrlKey||PHe.indexOf(t.key)>-1&&t.ctrlKey&&!t.shiftKey)?(this.pendingIOSKey=n||t,setTimeout(()=>this.flushIOSKey(),250),!0):(t.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(){let t=this.pendingIOSKey;return t?(this.pendingIOSKey=void 0,By(this.view.contentDOM,t.key,t.keyCode)):!1}ignoreDuringComposition(t){return/^key/.test(t.type)?this.composing>0?!0:bn.safari&&!bn.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(t){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=t}update(t){this.mouseSelection&&this.mouseSelection.update(t),this.draggedContent&&t.docChanged&&(this.draggedContent=this.draggedContent.map(t.changes)),t.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function SX(e,t){return(n,r)=>{try{return t.call(e,r,n)}catch(i){Oc(n.state,i)}}}function DHe(e){let t=Object.create(null);function n(r){return t[r]||(t[r]={observers:[],handlers:[]})}for(let r of e){let i=r.spec;if(i&&i.domEventHandlers)for(let a in i.domEventHandlers){let s=i.domEventHandlers[a];s&&n(a).handlers.push(SX(r.value,s))}if(i&&i.domEventObservers)for(let a in i.domEventObservers){let s=i.domEventObservers[a];s&&n(a).observers.push(SX(r.value,s))}}for(let r in Cd)n(r).handlers.push(Cd[r]);for(let r in Rd)n(r).observers.push(Rd[r]);return t}const fde=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],PHe="dthko",hde=[16,17,18,20,91,92,224,225],IA=6;function NA(e){return Math.max(0,e)*.7+8}function LHe(e,t){return Math.max(Math.abs(e.clientX-t.clientX),Math.abs(e.clientY-t.clientY))}class MHe{constructor(t,n,r,i){this.view=t,this.startEvent=n,this.style=r,this.mustSelect=i,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=n,this.scrollParent=Kje(t.contentDOM),this.atoms=t.state.facet(JF).map(s=>s(t));let a=t.contentDOM.ownerDocument;a.addEventListener("mousemove",this.move=this.move.bind(this)),a.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=n.shiftKey,this.multiple=t.state.facet(Dr.allowMultipleSelections)&&$He(t,n),this.dragging=BHe(t,n)&&bde(n)==1?null:!1}start(t){this.dragging===!1&&this.select(t)}move(t){var n;if(t.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&LHe(this.startEvent,t)<10)return;this.select(this.lastEvent=t);let r=0,i=0,a=((n=this.scrollParent)===null||n===void 0?void 0:n.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},s=lde(this.view);t.clientX-s.left<=a.left+IA?r=-NA(a.left-t.clientX):t.clientX+s.right>=a.right-IA&&(r=NA(t.clientX-a.right)),t.clientY-s.top<=a.top+IA?i=-NA(a.top-t.clientY):t.clientY+s.bottom>=a.bottom-IA&&(i=NA(t.clientY-a.bottom)),this.setScrollSpeed(r,i)}up(t){this.dragging==null&&this.select(this.lastEvent),this.dragging||t.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move),t.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(t,n){this.scrollSpeed={x:t,y:n},t||n?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(t){let n=null;for(let r=0;rthis.select(this.lastEvent),20)}}function $He(e,t){let n=e.state.facet(Zce);return n.length?n[0](t):bn.mac?t.metaKey:t.ctrlKey}function FHe(e,t){let n=e.state.facet(Xce);return n.length?n[0](t):bn.mac?!t.altKey:!t.ctrlKey}function BHe(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=H3(e.root);if(!r||r.rangeCount==0)return!0;let i=r.getRangeAt(0).getClientRects();for(let a=0;a=t.clientX&&s.top<=t.clientY&&s.bottom>=t.clientY)return!0}return!1}function UHe(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target,r;n!=e.contentDOM;n=n.parentNode)if(!n||n.nodeType==11||(r=$i.get(n))&&r.ignoreEvent(t))return!1;return!0}const Cd=Object.create(null),Rd=Object.create(null),pde=bn.ie&&bn.ie_version<15||bn.ios&&bn.webkit_version<604;function zHe(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(()=>{e.focus(),n.remove(),mde(e,n.value)},50)}function mde(e,t){let{state:n}=e,r,i=1,a=n.toText(t),s=a.lines==n.selection.ranges.length;if(aL!=null&&n.selection.ranges.every(l=>l.empty)&&aL==a.toString()){let l=-1;r=n.changeByRange(u=>{let d=n.doc.lineAt(u.from);if(d.from==l)return{range:u};l=d.from;let f=n.toText((s?a.line(i++).text:t)+n.lineBreak);return{changes:{from:d.from,insert:f},range:dt.cursor(u.from+f.length)}})}else s?r=n.changeByRange(l=>{let u=a.line(i++);return{changes:{from:l.from,to:l.to,insert:u.text},range:dt.cursor(l.from+u.length)}}):r=n.replaceSelection(a);e.dispatch(r,{userEvent:"input.paste",scrollIntoView:!0})}Rd.scroll=e=>{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft};Cd.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),t.keyCode==27&&(e.inputState.lastEscPress=Date.now()),!1);Rd.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")};Rd.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")};Cd.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let r of e.state.facet(Kce))if(n=r(e,t),n)break;if(!n&&t.button==0&&(n=QHe(e,t)),n){let r=!e.hasFocus;e.inputState.startMouseSelection(new MHe(e,t,n,r)),r&&e.observer.ignore(()=>Dce(e.contentDOM));let i=e.inputState.mouseSelection;if(i)return i.start(t),i.dragging===!1}return!1};function EX(e,t,n,r){if(r==1)return dt.cursor(t,n);if(r==2)return THe(e.state,t,n);{let i=es.find(e.docView,t),a=e.state.doc.lineAt(i?i.posAtEnd:t),s=i?i.posAtStart:a.from,o=i?i.posAtEnd:a.to;return oe>=t.top&&e<=t.bottom,wX=(e,t,n)=>gde(t,n)&&e>=n.left&&e<=n.right;function jHe(e,t,n,r){let i=es.find(e.docView,t);if(!i)return 1;let a=t-i.posAtStart;if(a==0)return 1;if(a==i.length)return-1;let s=i.coordsAt(a,-1);if(s&&wX(n,r,s))return-1;let o=i.coordsAt(a,1);return o&&wX(n,r,o)?1:s&&gde(r,s)?-1:1}function TX(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:jHe(e,n,t.clientX,t.clientY)}}const HHe=bn.ie&&bn.ie_version<=11;let xX=null,kX=0,AX=0;function bde(e){if(!HHe)return e.detail;let t=xX,n=AX;return xX=e,AX=Date.now(),kX=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(kX+1)%3:1}function QHe(e,t){let n=TX(e,t),r=bde(t),i=e.state.selection;return{update(a){a.docChanged&&(n.pos=a.changes.mapPos(n.pos),i=i.map(a.changes))},get(a,s,o){let l=TX(e,a),u,d=EX(e,l.pos,l.bias,r);if(n.pos!=l.pos&&!s){let f=EX(e,n.pos,n.bias,r),p=Math.min(f.from,d.from),g=Math.max(f.to,d.to);d=p1&&(u=WHe(i,l.pos))?u:o?i.addRange(d):dt.create([d])}}}function WHe(e,t){for(let n=0;n=t)return dt.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n?1:0))}return null}Cd.dragstart=(e,t)=>{let{selection:{main:n}}=e.state;if(t.target.draggable){let i=e.docView.nearest(t.target);if(i&&i.isWidget){let a=i.posAtStart,s=a+i.length;(a>=n.to||s<=n.from)&&(n=dt.range(a,s))}}let{inputState:r}=e;return r.mouseSelection&&(r.mouseSelection.dragging=!0),r.draggedContent=n,t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(n.from,n.to)),t.dataTransfer.effectAllowed="copyMove"),!1};Cd.dragend=e=>(e.inputState.draggedContent=null,!1);function _X(e,t,n,r){if(!n)return;let i=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:a}=e.inputState,s=r&&a&&FHe(e,t)?{from:a.from,to:a.to}:null,o={from:i,insert:n},l=e.state.changes(s?[s,o]:o);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:s?"move.drop":"input.drop"}),e.inputState.draggedContent=null}Cd.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let n=t.dataTransfer.files;if(n&&n.length){let r=Array(n.length),i=0,a=()=>{++i==n.length&&_X(e,t,r.filter(s=>s!=null).join(e.state.lineBreak),!1)};for(let s=0;s{/[\x00-\x08\x0e-\x1f]{2}/.test(o.result)||(r[s]=o.result),a()},o.readAsText(n[s])}return!0}else{let r=t.dataTransfer.getData("Text");if(r)return _X(e,t,r,!0),!0}return!1};Cd.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let n=pde?null:t.clipboardData;return n?(mde(e,n.getData("text/plain")||n.getData("text/uri-text")),!0):(zHe(e),!1)};function VHe(e,t){let n=e.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=t,r.focus(),r.selectionEnd=t.length,r.selectionStart=0,setTimeout(()=>{r.remove(),e.focus()},50)}function qHe(e){let t=[],n=[],r=!1;for(let i of e.selection.ranges)i.empty||(t.push(e.sliceDoc(i.from,i.to)),n.push(i));if(!t.length){let i=-1;for(let{from:a}of e.selection.ranges){let s=e.doc.lineAt(a);s.number>i&&(t.push(s.text),n.push({from:s.from,to:Math.min(e.doc.length,s.to+1)})),i=s.number}r=!0}return{text:t.join(e.lineBreak),ranges:n,linewise:r}}let aL=null;Cd.copy=Cd.cut=(e,t)=>{let{text:n,ranges:r,linewise:i}=qHe(e.state);if(!n&&!i)return!1;aL=i?n:null,t.type=="cut"&&!e.state.readOnly&&e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let a=pde?null:t.clipboardData;return a?(a.clearData(),a.setData("text/plain",n),!0):(VHe(e,n),!1)};const yde=Pd.define();function vde(e,t){let n=[];for(let r of e.facet(tde)){let i=r(e,t);i&&n.push(i)}return n?e.update({effects:n,annotations:yde.of(!0)}):null}function Ode(e){setTimeout(()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=vde(e.state,t);n?e.dispatch(n):e.update([])}},10)}Rd.focus=e=>{e.inputState.lastFocusTime=Date.now(),!e.scrollDOM.scrollTop&&(e.inputState.lastScrollTop||e.inputState.lastScrollLeft)&&(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),Ode(e)};Rd.blur=e=>{e.observer.clearSelectionRange(),Ode(e)};Rd.compositionstart=Rd.compositionupdate=e=>{e.inputState.compositionFirstChange==null&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0)};Rd.compositionend=e=>{e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,bn.chrome&&bn.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then(()=>e.observer.flush()):setTimeout(()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])},50)};Rd.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()};Cd.beforeinput=(e,t)=>{var n;let r;if(bn.chrome&&bn.android&&(r=fde.find(i=>i.inputType==t.inputType))&&(e.observer.delayAndroidKey(r.key,r.keyCode),r.key=="Backspace"||r.key=="Delete")){let i=((n=window.visualViewport)===null||n===void 0?void 0:n.height)||0;setTimeout(()=>{var a;(((a=window.visualViewport)===null||a===void 0?void 0:a.height)||0)>i+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())},100)}return!1};const CX=new Set;function GHe(e){CX.has(e)||(CX.add(e),e.addEventListener("copy",()=>{}),e.addEventListener("cut",()=>{}))}const RX=["pre-wrap","normal","pre-line","break-spaces"];class YHe{constructor(t){this.lineWrapping=t,this.doc=Er.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(t,n){let r=this.doc.lineAt(n).number-this.doc.lineAt(t).number+1;return this.lineWrapping&&(r+=Math.max(0,Math.ceil((n-t-r*this.lineLength*.5)/this.lineLength))),this.lineHeight*r}heightForLine(t){return this.lineWrapping?(1+Math.max(0,Math.ceil((t-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(t){return this.doc=t,this}mustRefreshForWrapping(t){return RX.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let n=!1;for(let r=0;r-1,l=Math.round(n)!=Math.round(this.lineHeight)||this.lineWrapping!=o;if(this.lineWrapping=o,this.lineHeight=n,this.charWidth=r,this.textHeight=i,this.lineLength=a,l){this.heightSamples={};for(let u=0;u0}set outdated(t){this.flags=(t?2:0)|this.flags&-3}setHeight(t,n){this.height!=n&&(Math.abs(this.height-n)>o_&&(t.heightChanged=!0),this.height=n)}replace(t,n,r){return Xo.of(r)}decomposeLeft(t,n){n.push(this)}decomposeRight(t,n){n.push(this)}applyChanges(t,n,r,i){let a=this,s=r.doc;for(let o=i.length-1;o>=0;o--){let{fromA:l,toA:u,fromB:d,toB:f}=i[o],p=a.lineAt(l,Mi.ByPosNoHeight,r.setDoc(n),0,0),g=p.to>=u?p:a.lineAt(u,Mi.ByPosNoHeight,r,0,0);for(f+=g.to-u,u=g.to;o>0&&p.from<=i[o-1].toA;)l=i[o-1].fromA,d=i[o-1].fromB,o--,la*2){let o=t[n-1];o.break?t.splice(--n,1,o.left,null,o.right):t.splice(--n,1,o.left,o.right),r+=1+o.break,i-=o.size}else if(a>i*2){let o=t[r];o.break?t.splice(r,1,o.left,null,o.right):t.splice(r,1,o.left,o.right),r+=2+o.break,a-=o.size}else break;else if(i=a&&s(this.blockAt(0,r,i,a))}updateHeight(t,n=0,r=!1,i){return i&&i.from<=n&&i.more&&this.setHeight(t,i.heights[i.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class iu extends Sde{constructor(t,n){super(t,n,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(t,n,r,i){return new bf(i,this.length,r,this.height,this.breaks)}replace(t,n,r){let i=r[0];return r.length==1&&(i instanceof iu||i instanceof Fs&&i.flags&4)&&Math.abs(this.length-i.length)<10?(i instanceof Fs?i=new iu(i.length,this.height):i.height=this.height,this.outdated||(i.outdated=!1),i):Xo.of(r)}updateHeight(t,n=0,r=!1,i){return i&&i.from<=n&&i.more?this.setHeight(t,i.heights[i.index++]):(r||this.outdated)&&this.setHeight(t,Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed))+this.breaks*t.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Fs extends Xo{constructor(t){super(t,0)}heightMetrics(t,n){let r=t.doc.lineAt(n).number,i=t.doc.lineAt(n+this.length).number,a=i-r+1,s,o=0;if(t.lineWrapping){let l=Math.min(this.height,t.lineHeight*a);s=l/a,this.length>a+1&&(o=(this.height-l)/(this.length-a-1))}else s=this.height/a;return{firstLine:r,lastLine:i,perLine:s,perChar:o}}blockAt(t,n,r,i){let{firstLine:a,lastLine:s,perLine:o,perChar:l}=this.heightMetrics(n,i);if(n.lineWrapping){let u=i+Math.round(Math.max(0,Math.min(1,(t-r)/this.height))*this.length),d=n.doc.lineAt(u),f=o+d.length*l,p=Math.max(r,t-f/2);return new bf(d.from,d.length,p,f,0)}else{let u=Math.max(0,Math.min(s-a,Math.floor((t-r)/o))),{from:d,length:f}=n.doc.line(a+u);return new bf(d,f,r+o*u,o,0)}}lineAt(t,n,r,i,a){if(n==Mi.ByHeight)return this.blockAt(t,r,i,a);if(n==Mi.ByPosNoHeight){let{from:g,to:O}=r.doc.lineAt(t);return new bf(g,O-g,0,0,0)}let{firstLine:s,perLine:o,perChar:l}=this.heightMetrics(r,a),u=r.doc.lineAt(t),d=o+u.length*l,f=u.number-s,p=i+o*f+l*(u.from-a-f);return new bf(u.from,u.length,Math.max(i,Math.min(p,i+this.height-d)),d,0)}forEachLine(t,n,r,i,a,s){t=Math.max(t,a),n=Math.min(n,a+this.length);let{firstLine:o,perLine:l,perChar:u}=this.heightMetrics(r,a);for(let d=t,f=i;d<=n;){let p=r.doc.lineAt(d);if(d==t){let O=p.number-o;f+=l*O+u*(t-a-O)}let g=l+u*p.length;s(new bf(p.from,p.length,f,g,0)),f+=g,d=p.to+1}}replace(t,n,r){let i=this.length-n;if(i>0){let a=r[r.length-1];a instanceof Fs?r[r.length-1]=new Fs(a.length+i):r.push(null,new Fs(i-1))}if(t>0){let a=r[0];a instanceof Fs?r[0]=new Fs(t+a.length):r.unshift(new Fs(t-1),null)}return Xo.of(r)}decomposeLeft(t,n){n.push(new Fs(t-1),null)}decomposeRight(t,n){n.push(null,new Fs(this.length-t-1))}updateHeight(t,n=0,r=!1,i){let a=n+this.length;if(i&&i.from<=n+this.length&&i.more){let s=[],o=Math.max(n,i.from),l=-1;for(i.from>n&&s.push(new Fs(i.from-n-1).updateHeight(t,n));o<=a&&i.more;){let d=t.doc.lineAt(o).length;s.length&&s.push(null);let f=i.heights[i.index++];l==-1?l=f:Math.abs(f-l)>=o_&&(l=-2);let p=new iu(d,f);p.outdated=!1,s.push(p),o+=d+1}o<=a&&s.push(null,new Fs(a-o).updateHeight(t,o));let u=Xo.of(s);return(l<0||Math.abs(u.height-this.height)>=o_||Math.abs(l-this.heightMetrics(t,n).perLine)>=o_)&&(t.heightChanged=!0),u}else(r||this.outdated)&&(this.setHeight(t,t.heightForGap(n,n+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class XHe extends Xo{constructor(t,n,r){super(t.length+n+r.length,t.height+r.height,n|(t.outdated||r.outdated?2:0)),this.left=t,this.right=r,this.size=t.size+r.size}get break(){return this.flags&1}blockAt(t,n,r,i){let a=r+this.left.height;return to))return u;let d=n==Mi.ByPosNoHeight?Mi.ByPosNoHeight:Mi.ByPos;return l?u.join(this.right.lineAt(o,d,r,s,o)):this.left.lineAt(o,d,r,i,a).join(u)}forEachLine(t,n,r,i,a,s){let o=i+this.left.height,l=a+this.left.length+this.break;if(this.break)t=l&&this.right.forEachLine(t,n,r,o,l,s);else{let u=this.lineAt(l,Mi.ByPos,r,i,a);t=t&&u.from<=n&&s(u),n>u.to&&this.right.forEachLine(u.to+1,n,r,o,l,s)}}replace(t,n,r){let i=this.left.length+this.break;if(nthis.left.length)return this.balanced(this.left,this.right.replace(t-i,n-i,r));let a=[];t>0&&this.decomposeLeft(t,a);let s=a.length;for(let o of r)a.push(o);if(t>0&&IX(a,s-1),n=r&&n.push(null)),t>r&&this.right.decomposeLeft(t-r,n)}decomposeRight(t,n){let r=this.left.length,i=r+this.break;if(t>=i)return this.right.decomposeRight(t-i,n);t2*n.size||n.size>2*t.size?Xo.of(this.break?[t,null,n]:[t,n]):(this.left=t,this.right=n,this.height=t.height+n.height,this.outdated=t.outdated||n.outdated,this.size=t.size+n.size,this.length=t.length+this.break+n.length,this)}updateHeight(t,n=0,r=!1,i){let{left:a,right:s}=this,o=n+a.length+this.break,l=null;return i&&i.from<=n+a.length&&i.more?l=a=a.updateHeight(t,n,r,i):a.updateHeight(t,n,r),i&&i.from<=o+s.length&&i.more?l=s=s.updateHeight(t,o,r,i):s.updateHeight(t,o,r),l?this.balanced(a,s):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function IX(e,t){let n,r;e[t]==null&&(n=e[t-1])instanceof Fs&&(r=e[t+1])instanceof Fs&&e.splice(t-1,3,new Fs(n.length+1+r.length))}const KHe=5;class eB{constructor(t,n){this.pos=t,this.oracle=n,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=t}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(t,n){if(this.lineStart>-1){let r=Math.min(n,this.lineEnd),i=this.nodes[this.nodes.length-1];i instanceof iu?i.length+=r-this.pos:(r>this.pos||!this.isCovered)&&this.nodes.push(new iu(r-this.pos,-1)),this.writtenTo=r,n>r&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=n}point(t,n,r){if(t=KHe)&&this.addLineDeco(i,a,s)}else n>t&&this.span(t,n);this.lineEnd>-1&&this.lineEnd-1)return;let{from:t,to:n}=this.oracle.doc.lineAt(this.pos);this.lineStart=t,this.lineEnd=n,this.writtenTot&&this.nodes.push(new iu(this.pos-t,-1)),this.writtenTo=this.pos}blankContent(t,n){let r=new Fs(n-t);return this.oracle.doc.lineAt(t).to==n&&(r.flags|=4),r}ensureLine(){this.enterLine();let t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof iu)return t;let n=new iu(0,-1);return this.nodes.push(n),n}addBlock(t){this.enterLine();let n=t.deco;n&&n.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(t),this.writtenTo=this.pos=this.pos+t.length,n&&n.endSide>0&&(this.covering=t)}addLineDeco(t,n,r){let i=this.ensureLine();i.length+=r,i.collapsed+=r,i.widgetHeight=Math.max(i.widgetHeight,t),i.breaks+=n,this.writtenTo=this.pos=this.pos+r}finish(t){let n=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(n instanceof iu)&&!this.isCovered?this.nodes.push(new iu(0,-1)):(this.writtenTod.clientHeight||d.scrollWidth>d.clientWidth)&&f.overflow!="visible"){let p=d.getBoundingClientRect();a=Math.max(a,p.left),s=Math.min(s,p.right),o=Math.max(o,p.top),l=u==e.parentNode?p.bottom:Math.min(l,p.bottom)}u=f.position=="absolute"||f.position=="fixed"?d.offsetParent:d.parentNode}else if(u.nodeType==11)u=u.host;else break;return{left:a-n.left,right:Math.max(a,s)-n.left,top:o-(n.top+t),bottom:Math.max(o,l)-(n.top+t)}}function nQe(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class uD{constructor(t,n,r){this.from=t,this.to=n,this.size=r}static same(t,n){if(t.length!=n.length)return!1;for(let r=0;rtypeof r!="function"&&r.class=="cm-lineWrapping");this.heightOracle=new YHe(n),this.stateDeco=t.facet(_w).filter(r=>typeof r!="function"),this.heightMap=Xo.empty().applyChanges(this.stateDeco,Er.empty,this.heightOracle.setDoc(t.doc),[new Sc(0,0,0,t.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=vn.set(this.lineGaps.map(r=>r.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:n}=this.state.selection;for(let r=0;r<=1;r++){let i=r?n.head:n.anchor;if(!t.some(({from:a,to:s})=>i>=a&&i<=s)){let{from:a,to:s}=this.lineBlockAt(i);t.push(new DA(a,s))}}this.viewports=t.sort((r,i)=>r.from-i.from),this.scaler=this.heightMap.height<=7e6?DX:new sQe(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,t=>{this.viewportLines.push(this.scaler.scale==1?t:UE(t,this.scaler))})}update(t,n=null){this.state=t.state;let r=this.stateDeco;this.stateDeco=this.state.facet(_w).filter(d=>typeof d!="function");let i=t.changedRanges,a=Sc.extendWithRanges(i,JHe(r,this.stateDeco,t?t.changes:ns.empty(this.state.doc.length))),s=this.heightMap.height,o=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),a),this.heightMap.height!=s&&(t.flags|=2),o?(this.scrollAnchorPos=t.changes.mapPos(o.from,-1),this.scrollAnchorHeight=o.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let l=a.length?this.mapViewport(this.viewport,t.changes):this.viewport;(n&&(n.range.headl.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,n));let u=!t.changes.empty||t.flags&2||l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,this.updateForViewport(),u&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes))),t.flags|=this.computeVisibleRanges(),n&&(this.scrollTarget=n),!this.mustEnforceCursorAssoc&&t.selectionSet&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet(rde)&&(this.mustEnforceCursorAssoc=!0)}measure(t){let n=t.contentDOM,r=window.getComputedStyle(n),i=this.heightOracle,a=r.whiteSpace;this.defaultTextDirection=r.direction=="rtl"?Bi.RTL:Bi.LTR;let s=this.heightOracle.mustRefreshForWrapping(a),o=n.getBoundingClientRect(),l=s||this.mustMeasureContent||this.contentDOMHeight!=o.height;this.contentDOMHeight=o.height,this.mustMeasureContent=!1;let u=0,d=0;if(o.width&&o.height){let{scaleX:_,scaleY:R}=Nce(n,o);(this.scaleX!=_||this.scaleY!=R)&&(this.scaleX=_,this.scaleY=R,u|=8,s=l=!0)}let f=(parseInt(r.paddingTop)||0)*this.scaleY,p=(parseInt(r.paddingBottom)||0)*this.scaleY;(this.paddingTop!=f||this.paddingBottom!=p)&&(this.paddingTop=f,this.paddingBottom=p,u|=10),this.editorWidth!=t.scrollDOM.clientWidth&&(i.lineWrapping&&(l=!0),this.editorWidth=t.scrollDOM.clientWidth,u|=8);let g=t.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=g&&(this.scrollAnchorHeight=-1,this.scrollTop=g),this.scrolledToBottom=Lce(t.scrollDOM);let O=(this.printing?nQe:tQe)(n,this.paddingTop),S=O.top-this.pixelViewport.top,T=O.bottom-this.pixelViewport.bottom;this.pixelViewport=O;let w=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(w!=this.inView&&(this.inView=w,w&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;let x=o.width;if((this.contentDOMWidth!=x||this.editorHeight!=t.scrollDOM.clientHeight)&&(this.contentDOMWidth=o.width,this.editorHeight=t.scrollDOM.clientHeight,u|=8),l){let _=t.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(_)&&(s=!0),s||i.lineWrapping&&Math.abs(x-this.contentDOMWidth)>i.charWidth){let{lineHeight:R,charWidth:N,textHeight:P}=t.docView.measureTextSize();s=R>0&&i.refresh(a,R,N,P,x/N,_),s&&(t.docView.minWidth=0,u|=8)}S>0&&T>0?d=Math.max(S,T):S<0&&T<0&&(d=Math.min(S,T)),i.heightChanged=!1;for(let R of this.viewports){let N=R.from==this.viewport.from?_:t.docView.measureVisibleLineHeights(R);this.heightMap=(s?Xo.empty().applyChanges(this.stateDeco,Er.empty,this.heightOracle,[new Sc(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(i,0,s,new ZHe(R.from,N))}i.heightChanged&&(u|=2)}let k=!this.viewportIsAppropriate(this.viewport,d)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return k&&(this.viewport=this.getViewport(d,this.scrollTarget)),this.updateForViewport(),(u&2||k)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,t)),u|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.docView.enforceCursorAssoc()),u}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,n){let r=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),i=this.heightMap,a=this.heightOracle,{visibleTop:s,visibleBottom:o}=this,l=new DA(i.lineAt(s-r*1e3,Mi.ByHeight,a,0,0).from,i.lineAt(o+(1-r)*1e3,Mi.ByHeight,a,0,0).to);if(n){let{head:u}=n.range;if(ul.to){let d=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),f=i.lineAt(u,Mi.ByPos,a,0,0),p;n.y=="center"?p=(f.top+f.bottom)/2-d/2:n.y=="start"||n.y=="nearest"&&u=o+Math.max(10,Math.min(r,250)))&&i>s-2*1e3&&a>1,s=i<<1;if(this.defaultTextDirection!=Bi.LTR&&!r)return[];let o=[],l=(u,d,f,p)=>{if(d-uu&&TT.from>=f.from&&T.to<=f.to&&Math.abs(T.from-u)T.fromw));if(!S){if(dT.from<=d&&T.to>=d)){let T=n.moveToLineBoundary(dt.cursor(d),!1,!0).head;T>u&&(d=T)}S=new uD(u,d,this.gapSize(f,u,d,p))}o.push(S)};for(let u of this.viewportLines){if(u.lengthu.from&&l(u.from,p,u,d),gn.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let n=[];Cr.spans(t,this.viewport.from,this.viewport.to,{span(i,a){n.push({from:i,to:a})},point(){}},20);let r=n.length!=this.visibleRanges.length||this.visibleRanges.some((i,a)=>i.from!=n[a].from||i.to!=n[a].to);return this.visibleRanges=n,r?4:0}lineBlockAt(t){return t>=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find(n=>n.from<=t&&n.to>=t)||UE(this.heightMap.lineAt(t,Mi.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return UE(this.heightMap.lineAt(this.scaler.fromDOM(t),Mi.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(t){let n=this.lineBlockAtHeight(t+8);return n.from>=this.viewport.from||this.viewportLines[0].top-t>200?n:this.viewportLines[0]}elementAtHeight(t){return UE(this.heightMap.blockAt(this.scaler.fromDOM(t),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class DA{constructor(t,n){this.from=t,this.to=n}}function iQe(e,t,n){let r=[],i=e,a=0;return Cr.spans(n,e,t,{span(){},point(s,o){s>i&&(r.push({from:i,to:s}),a+=s-i),i=o}},20),i=1)return t[t.length-1].to;let r=Math.floor(e*n);for(let i=0;;i++){let{from:a,to:s}=t[i],o=s-a;if(r<=o)return a+r;r-=o}}function LA(e,t){let n=0;for(let{from:r,to:i}of e.ranges){if(t<=i){n+=t-r;break}n+=i-r}return n/e.total}function aQe(e,t){for(let n of e)if(t(n))return n}const DX={toDOM(e){return e},fromDOM(e){return e},scale:1};class sQe{constructor(t,n,r){let i=0,a=0,s=0;this.viewports=r.map(({from:o,to:l})=>{let u=n.lineAt(o,Mi.ByPos,t,0,0).top,d=n.lineAt(l,Mi.ByPos,t,0,0).bottom;return i+=d-u,{from:o,to:l,top:u,bottom:d,domTop:0,domBottom:0}}),this.scale=(7e6-i)/(n.height-i);for(let o of this.viewports)o.domTop=s+(o.top-a)*this.scale,s=o.domBottom=o.domTop+(o.bottom-o.top),a=o.bottom}toDOM(t){for(let n=0,r=0,i=0;;n++){let a=nUE(i,t)):e._content)}const MA=fn.define({combine:e=>e.join(" ")}),sL=fn.define({combine:e=>e.indexOf(!0)>-1}),oL=om.newName(),Ede=om.newName(),wde=om.newName(),Tde={"&light":"."+Ede,"&dark":"."+wde};function lL(e,t,n){return new om(t,{finish(r){return/&/.test(r)?r.replace(/&\w*/,i=>{if(i=="&")return e;if(!n||!n[i])throw new RangeError(`Unsupported selector: ${i}`);return n[i]}):e+" "+r}})}const oQe=lL("."+oL,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},Tde),zE="￿";class lQe{constructor(t,n){this.points=t,this.text="",this.lineSeparator=n.facet(Dr.lineSeparator)}append(t){this.text+=t}lineBreak(){this.text+=zE}readRange(t,n){if(!t)return this;let r=t.parentNode;for(let i=t;;){this.findPointBefore(r,i);let a=this.text.length;this.readNode(i);let s=i.nextSibling;if(s==n)break;let o=$i.get(i),l=$i.get(s);(o&&l?o.breakAfter:(o?o.breakAfter:PX(i))||PX(s)&&(i.nodeName!="BR"||i.cmIgnore)&&this.text.length>a)&&this.lineBreak(),i=s}return this.findPointBefore(r,n),this}readTextNode(t){let n=t.nodeValue;for(let r of this.points)r.node==t&&(r.pos=this.text.length+Math.min(r.offset,n.length));for(let r=0,i=this.lineSeparator?null:/\r\n?|\n/g;;){let a=-1,s=1,o;if(this.lineSeparator?(a=n.indexOf(this.lineSeparator,r),s=this.lineSeparator.length):(o=i.exec(n))&&(a=o.index,s=o[0].length),this.append(n.slice(r,a<0?n.length:a)),a<0)break;if(this.lineBreak(),s>1)for(let l of this.points)l.node==t&&l.pos>this.text.length&&(l.pos-=s-1);r=a+s}}readNode(t){if(t.cmIgnore)return;let n=$i.get(t),r=n&&n.overrideDOMText;if(r!=null){this.findPointInside(t,r.length);for(let i=r.iter();!i.next().done;)i.lineBreak?this.lineBreak():this.append(i.value)}else t.nodeType==3?this.readTextNode(t):t.nodeName=="BR"?t.nextSibling&&this.lineBreak():t.nodeType==1&&this.readRange(t.firstChild,null)}findPointBefore(t,n){for(let r of this.points)r.node==t&&t.childNodes[r.offset]==n&&(r.pos=this.text.length)}findPointInside(t,n){for(let r of this.points)(t.nodeType==3?r.node==t:t.contains(r.node))&&(r.pos=this.text.length+(uQe(t,r.node,r.offset)?n:0))}}function uQe(e,t,n){for(;;){if(!t||n-1)this.newSel=null;else if(n>-1&&(this.bounds=t.docView.domBoundsAround(n,r,0))){let o=a||s?[]:hQe(t),l=new lQe(o,t.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=pQe(o,this.bounds.from)}else{let o=t.observer.selectionRange,l=a&&a.node==o.focusNode&&a.offset==o.focusOffset||!V8(t.contentDOM,o.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(o.focusNode,o.focusOffset),u=s&&s.node==o.anchorNode&&s.offset==o.anchorOffset||!V8(t.contentDOM,o.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(o.anchorNode,o.anchorOffset),d=t.viewport;if(bn.ios&&t.state.selection.main.empty&&l!=u&&(d.from>0||d.toDate.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:s,to:o}=t.bounds,l=i.from,u=null;(a===8||bn.android&&t.text.length=i.from&&n.to<=i.to&&(n.from!=i.from||n.to!=i.to)&&i.to-i.from-(n.to-n.from)<=4?n={from:i.from,to:i.to,insert:e.state.doc.slice(i.from,n.from).append(n.insert).append(e.state.doc.slice(n.to,i.to))}:(bn.mac||bn.android)&&n&&n.from==n.to&&n.from==i.head-1&&/^\. ?$/.test(n.insert.toString())&&e.contentDOM.getAttribute("autocorrect")=="off"?(r&&n.insert.length==2&&(r=dt.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:Er.of([" "])}):bn.chrome&&n&&n.from==n.to&&n.from==i.head&&n.insert.toString()==` - `&&e.lineWrapping&&(r&&(r=dt.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:Er.of([" "])}),n){if(bn.ios&&e.inputState.flushIOSKey()||bn.android&&(n.from==i.from&&n.to==i.to&&n.insert.length==1&&n.insert.lines==2&&By(e.contentDOM,"Enter",13)||(n.from==i.from-1&&n.to==i.to&&n.insert.length==0||a==8&&n.insert.lengthi.head)&&By(e.contentDOM,"Backspace",8)||n.from==i.from&&n.to==i.to+1&&n.insert.length==0&&By(e.contentDOM,"Delete",46)))return!0;let s=n.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let o,l=()=>o||(o=dQe(e,n,r));return e.state.facet(ede).some(u=>u(e,n.from,n.to,s,l))||e.dispatch(l()),!0}else if(r&&!r.main.eq(i)){let s=!1,o="select";return e.inputState.lastSelectionTime>Date.now()-50&&(e.inputState.lastSelectionOrigin=="select"&&(s=!0),o=e.inputState.lastSelectionOrigin),e.dispatch({selection:r,scrollIntoView:s,userEvent:o}),!0}else return!1}function dQe(e,t,n){let r,i=e.state,a=i.selection.main;if(t.from>=a.from&&t.to<=a.to&&t.to-t.from>=(a.to-a.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let o=a.fromt.to?i.sliceDoc(t.to,a.to):"";r=i.replaceSelection(e.state.toText(o+t.insert.sliceString(0,void 0,e.state.lineBreak)+l))}else{let o=i.changes(t),l=n&&n.main.to<=o.newLength?n.main:void 0;if(i.selection.ranges.length>1&&e.inputState.composing>=0&&t.to<=a.to&&t.to>=a.to-10){let u=e.state.sliceDoc(t.from,t.to),d,f=n&&ude(e,n.main.head);if(f){let O=t.insert.length-(t.to-t.from);d={from:f.from,to:f.to-O}}else d=e.state.doc.lineAt(a.head);let p=a.to-t.to,g=a.to-a.from;r=i.changeByRange(O=>{if(O.from==a.from&&O.to==a.to)return{changes:o,range:l||O.map(o)};let S=O.to-p,T=S-u.length;if(O.to-O.from!=g||e.state.sliceDoc(T,S)!=u||O.to>=d.from&&O.from<=d.to)return{range:O};let w=i.changes({from:T,to:S,insert:t.insert}),x=O.to-a.to;return{changes:w,range:l?dt.range(Math.max(0,l.anchor+x),Math.max(0,l.head+x)):O.map(w)}})}else r={changes:o,selection:l&&i.selection.replaceRange(l)}}let s="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,s+=".compose",e.inputState.compositionFirstChange&&(s+=".start",e.inputState.compositionFirstChange=!1)),i.update(r,{userEvent:s,scrollIntoView:!0})}function fQe(e,t,n,r){let i=Math.min(e.length,t.length),a=0;for(;a0&&o>0&&e.charCodeAt(s-1)==t.charCodeAt(o-1);)s--,o--;if(r=="end"){let l=Math.max(0,a-Math.min(s,o));n-=s+l-a}if(s=s?a-n:0;a-=l,o=a+(o-s),s=a}else if(o=o?a-n:0;a-=l,s=a+(s-o),o=a}return{from:a,toA:s,toB:o}}function hQe(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}=e.observer.selectionRange;return n&&(t.push(new LX(n,r)),(i!=n||a!=r)&&t.push(new LX(i,a))),t}function pQe(e,t){if(e.length==0)return null;let n=e[0].pos,r=e.length==2?e[1].pos:n;return n>-1&&r>-1?dt.single(n+t,r+t):null}const mQe={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},cD=bn.ie&&bn.ie_version<=11;class gQe{constructor(t){this.view=t,this.active=!1,this.selectionRange=new Jje,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=t.contentDOM,this.observer=new MutationObserver(n=>{for(let r of n)this.queue.push(r);(bn.ie&&bn.ie_version<=11||bn.ios&&t.composing)&&n.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),cD&&(this.onCharData=n=>{this.queue.push({target:n.target,type:"characterData",oldValue:n.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var n;((n=this.view.docView)===null||n===void 0?void 0:n.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),n.length>0&&n[n.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(n=>{n.length>0&&n[n.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(t){this.view.inputState.runHandlers("scroll",t),this.intersecting&&this.view.measure()}onScroll(t){this.intersecting&&this.flush(!1),this.onScrollChanged(t)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(t){if(this.gapIntersection&&(t.length!=this.gaps.length||this.gaps.some((n,r)=>n!=t[r]))){this.gapIntersection.disconnect();for(let n of t)this.gapIntersection.observe(n);this.gaps=t}}onSelectionChange(t){let n=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:r}=this,i=this.selectionRange;if(r.state.facet(RR)?r.root.activeElement!=this.dom:!a_(r.dom,i))return;let a=i.anchorNode&&r.docView.nearest(i.anchorNode);if(a&&a.ignoreEvent(t)){n||(this.selectionChanged=!1);return}(bn.ie&&bn.ie_version<=11||bn.android&&bn.chrome)&&!r.state.selection.main.empty&&i.focusNode&&b2(i.focusNode,i.focusOffset,i.anchorNode,i.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:t}=this,n=bn.safari&&t.root.nodeType==11&&Yje(this.dom.ownerDocument)==this.dom&&bQe(this.view)||H3(t.root);if(!n||this.selectionRange.eq(n))return!1;let r=a_(this.dom,n);return r&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime{let a=this.delayedAndroidKey;a&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=a.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&a.force&&By(this.dom,a.key,a.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(i)}(!this.delayedAndroidKey||t=="Enter")&&(this.delayedAndroidKey={key:t,keyCode:n,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}processRecords(){let t=this.pendingRecords();t.length&&(this.queue=[]);let n=-1,r=-1,i=!1;for(let a of t){let s=this.readMutation(a);s&&(s.typeOver&&(i=!0),n==-1?{from:n,to:r}=s:(n=Math.min(s.from,n),r=Math.max(s.to,r)))}return{from:n,to:r,typeOver:i}}readChange(){let{from:t,to:n,typeOver:r}=this.processRecords(),i=this.selectionChanged&&a_(this.dom,this.selectionRange);if(t<0&&!i)return null;t>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let a=new cQe(this.view,t,n,r);return this.view.docView.domChanged={newSel:a.newSel?a.newSel.main:null},a}flush(t=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;t&&this.readSelectionRange();let n=this.readChange();if(!n)return this.view.requestMeasure(),!1;let r=this.view.state,i=xde(this.view,n);return this.view.state==r&&this.view.update([]),i}readMutation(t){let n=this.view.docView.nearest(t.target);if(!n||n.ignoreMutation(t))return null;if(n.markDirty(t.type=="attributes"),t.type=="attributes"&&(n.flags|=4),t.type=="childList"){let r=MX(n,t.previousSibling||t.target.previousSibling,-1),i=MX(n,t.nextSibling||t.target.nextSibling,1);return{from:r?n.posAfter(r):n.posAtStart,to:i?n.posBefore(i):n.posAtEnd,typeOver:!1}}else return t.type=="characterData"?{from:n.posAtStart,to:n.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}:null}setWindow(t){t!=this.win&&(this.removeWindowListeners(this.win),this.win=t,this.addWindowListeners(this.win))}addWindowListeners(t){t.addEventListener("resize",this.onResize),t.addEventListener("beforeprint",this.onPrint),t.addEventListener("scroll",this.onScroll),t.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(t){t.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onResize),t.removeEventListener("beforeprint",this.onPrint),t.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var t,n,r;this.stop(),(t=this.intersection)===null||t===void 0||t.disconnect(),(n=this.gapIntersection)===null||n===void 0||n.disconnect(),(r=this.resizeScroll)===null||r===void 0||r.disconnect();for(let i of this.scrollTargets)i.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function MX(e,t,n){for(;t;){let r=$i.get(t);if(r&&r.parent==e)return r;let i=t.parentNode;t=i!=e.dom?i:n>0?t.nextSibling:t.previousSibling}return null}function bQe(e){let t=null;function n(l){l.preventDefault(),l.stopImmediatePropagation(),t=l.getTargetRanges()[0]}if(e.contentDOM.addEventListener("beforeinput",n,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",n,!0),!t)return null;let r=t.startContainer,i=t.startOffset,a=t.endContainer,s=t.endOffset,o=e.docView.domAtPos(e.state.selection.main.anchor);return b2(o.node,o.offset,a,s)&&([r,i,a,s]=[a,s,r,i]),{anchorNode:r,anchorOffset:i,focusNode:a,focusOffset:s}}class en{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(t={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),t.parent&&t.parent.appendChild(this.dom);let{dispatch:n}=t;this.dispatchTransactions=t.dispatchTransactions||n&&(r=>r.forEach(i=>n(i,this)))||(r=>this.update(r)),this.dispatch=this.dispatch.bind(this),this._root=t.root||eHe(t.parent)||document,this.viewState=new NX(t.state||Dr.create(t)),t.scrollTo&&t.scrollTo.is(RA)&&(this.viewState.scrollTarget=t.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(FE).map(r=>new sD(r));for(let r of this.plugins)r.update(this);this.observer=new gQe(this),this.inputState=new NHe(this),this.inputState.ensureHandlers(this.plugins),this.docView=new pX(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...t){let n=t.length==1&&t[0]instanceof os?t:t.length==1&&Array.isArray(t[0])?t[0]:[this.state.update(...t)];this.dispatchTransactions(n,this)}update(t){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let n=!1,r=!1,i,a=this.state;for(let p of t){if(p.startState!=a)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");a=p.state}if(this.destroyed){this.viewState.state=a;return}let s=this.hasFocus,o=0,l=null;t.some(p=>p.annotation(yde))?(this.inputState.notifiedFocused=s,o=1):s!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=s,l=vde(a,s),l||(o=1));let u=this.observer.delayedAndroidKey,d=null;if(u?(this.observer.clearDelayedAndroidKey(),d=this.observer.readChange(),(d&&!this.state.doc.eq(a.doc)||!this.state.selection.eq(a.selection))&&(d=null)):this.observer.clear(),a.facet(Dr.phrases)!=this.state.facet(Dr.phrases))return this.setState(a);i=Q3.create(this,a,t),i.flags|=o;let f=this.viewState.scrollTarget;try{this.updateState=2;for(let p of t){if(f&&(f=f.map(p.changes)),p.scrollIntoView){let{main:g}=p.state.selection;f=new Uy(g.empty?g:dt.cursor(g.head,g.head>g.anchor?-1:1))}for(let g of p.effects)g.is(RA)&&(f=g.value.clip(this.state))}this.viewState.update(i,f),this.bidiCache=W3.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),n=this.docView.update(i),this.state.facet(BE)!=this.styleModules&&this.mountStyles(),r=this.updateAttrs(),this.showAnnouncements(t),this.docView.updateSelection(n,t.some(p=>p.isUserEvent("select.pointer")))}finally{this.updateState=0}if(i.startState.facet(MA)!=i.state.facet(MA)&&(this.viewState.mustMeasureContent=!0),(n||r||f||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!i.empty)for(let p of this.state.facet(nL))try{p(i)}catch(g){Oc(this.state,g,"update listener")}(l||d)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),d&&!xde(this,d)&&u.force&&By(this.contentDOM,u.key,u.keyCode)})}setState(t){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=t;return}this.updateState=2;let n=this.hasFocus;try{for(let r of this.plugins)r.destroy(this);this.viewState=new NX(t),this.plugins=t.facet(FE).map(r=>new sD(r)),this.pluginMap.clear();for(let r of this.plugins)r.update(this);this.docView.destroy(),this.docView=new pX(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}n&&this.focus(),this.requestMeasure()}updatePlugins(t){let n=t.startState.facet(FE),r=t.state.facet(FE);if(n!=r){let i=[];for(let a of r){let s=n.indexOf(a);if(s<0)i.push(new sD(a));else{let o=this.plugins[s];o.mustUpdate=t,i.push(o)}}for(let a of this.plugins)a.mustUpdate!=t&&a.destroy(this);this.plugins=i,this.pluginMap.clear()}else for(let i of this.plugins)i.mustUpdate=t;for(let i=0;i-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,t&&this.observer.forceFlush();let n=null,r=this.scrollDOM,i=r.scrollTop*this.scaleY,{scrollAnchorPos:a,scrollAnchorHeight:s}=this.viewState;Math.abs(i-this.viewState.scrollTop)>1&&(s=-1),this.viewState.scrollAnchorHeight=-1;try{for(let o=0;;o++){if(s<0)if(Lce(r))a=-1,s=this.viewState.heightMap.height;else{let g=this.viewState.scrollAnchorAt(i);a=g.from,s=g.top}this.updateState=1;let l=this.viewState.measure(this);if(!l&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(o>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let u=[];l&4||([this.measureRequests,u]=[u,this.measureRequests]);let d=u.map(g=>{try{return g.read(this)}catch(O){return Oc(this.state,O),$X}}),f=Q3.create(this,this.state,[]),p=!1;f.flags|=l,n?n.flags|=l:n=f,this.updateState=2,f.empty||(this.updatePlugins(f),this.inputState.update(f),this.updateAttrs(),p=this.docView.update(f));for(let g=0;g1||O<-1){i=i+O,r.scrollTop=i/this.scaleY,s=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(n&&!n.empty)for(let o of this.state.facet(nL))o(n)}get themeClasses(){return oL+" "+(this.state.facet(sL)?wde:Ede)+" "+this.state.facet(MA)}updateAttrs(){let t=FX(this,ide,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(RR)?"true":"false",class:"cm-content",style:`${bn.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),FX(this,KF,n);let r=this.observer.ignore(()=>{let i=X8(this.contentDOM,this.contentAttrs,n),a=X8(this.dom,this.editorAttrs,t);return i||a});return this.editorAttrs=t,this.contentAttrs=n,r}showAnnouncements(t){let n=!0;for(let r of t)for(let i of r.effects)if(i.is(en.announce)){n&&(this.announceDOM.textContent=""),n=!1;let a=this.announceDOM.appendChild(document.createElement("div"));a.textContent=i.value}}mountStyles(){this.styleModules=this.state.facet(BE);let t=this.state.facet(en.cspNonce);om.mount(this.root,this.styleModules.concat(oQe).reverse(),t?{nonce:t}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(t){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),t){if(this.measureRequests.indexOf(t)>-1)return;if(t.key!=null){for(let n=0;nr.spec==t)||null),n&&n.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(t){return this.readMeasured(),this.viewState.elementAtHeight(t)}lineBlockAtHeight(t){return this.readMeasured(),this.viewState.lineBlockAtHeight(t)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(t){return this.viewState.lineBlockAt(t)}get contentHeight(){return this.viewState.contentHeight}moveByChar(t,n,r){return lD(this,t,OX(this,t,n,r))}moveByGroup(t,n){return lD(this,t,OX(this,t,n,r=>RHe(this,t.head,r)))}visualLineSide(t,n){let r=this.bidiSpans(t),i=this.textDirectionAt(t.from),a=r[n?r.length-1:0];return dt.cursor(a.side(n,i)+t.from,a.forward(!n,i)?1:-1)}moveToLineBoundary(t,n,r=!0){return CHe(this,t,n,r)}moveVertically(t,n,r){return lD(this,t,IHe(this,t,n,r))}domAtPos(t){return this.docView.domAtPos(t)}posAtDOM(t,n=0){return this.docView.posFromDOM(t,n)}posAtCoords(t,n=!0){return this.readMeasured(),dde(this,t,n)}coordsAtPos(t,n=1){this.readMeasured();let r=this.docView.coordsAt(t,n);if(!r||r.left==r.right)return r;let i=this.state.doc.lineAt(t),a=this.bidiSpans(i),s=a[M0.find(a,t-i.from,-1,n)];return GF(r,s.dir==Bi.LTR==n>0)}coordsForChar(t){return this.readMeasured(),this.docView.coordsForChar(t)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(t){return!this.state.facet(nde)||tthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>yQe)return Gce(t.length);let n=this.textDirectionAt(t.from),r;for(let a of this.bidiCache)if(a.from==t.from&&a.dir==n&&(a.fresh||qce(a.isolates,r=hX(this,t))))return a.order;r||(r=hX(this,t));let i=hHe(t.text,n,r);return this.bidiCache.push(new W3(t.from,t.to,n,r,!0,i)),i}get hasFocus(){var t;return(this.dom.ownerDocument.hasFocus()||bn.safari&&((t=this.inputState)===null||t===void 0?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{Dce(this.contentDOM),this.docView.updateSelection()})}setRoot(t){this._root!=t&&(this._root=t,this.observer.setWindow((t.nodeType==9?t:t.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let t of this.plugins)t.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(t,n={}){return RA.of(new Uy(typeof t=="number"?dt.cursor(t):t,n.y,n.x,n.yMargin,n.xMargin))}scrollSnapshot(){let{scrollTop:t,scrollLeft:n}=this.scrollDOM,r=this.viewState.scrollAnchorAt(t);return RA.of(new Uy(dt.cursor(r.from),"start","start",r.top-t,n,!0))}static domEventHandlers(t){return fa.define(()=>({}),{eventHandlers:t})}static domEventObservers(t){return fa.define(()=>({}),{eventObservers:t})}static theme(t,n){let r=om.newName(),i=[MA.of(r),BE.of(lL(`.${r}`,t))];return n&&n.dark&&i.push(sL.of(!0)),i}static baseTheme(t){return Tp.lowest(BE.of(lL("."+oL,t,Tde)))}static findFromDOM(t){var n;let r=t.querySelector(".cm-content"),i=r&&$i.get(r)||$i.get(t);return((n=i==null?void 0:i.rootView)===null||n===void 0?void 0:n.view)||null}}en.styleModule=BE;en.inputHandler=ede;en.focusChangeEffect=tde;en.perLineTextDirection=nde;en.exceptionSink=Jce;en.updateListener=nL;en.editable=RR;en.mouseSelectionStyle=Kce;en.dragMovesSelection=Xce;en.clickAddsSelectionRange=Zce;en.decorations=_w;en.outerDecorations=ade;en.atomicRanges=JF;en.bidiIsolatedRanges=sde;en.scrollMargins=ode;en.darkTheme=sL;en.cspNonce=fn.define({combine:e=>e.length?e[0]:""});en.contentAttributes=KF;en.editorAttributes=ide;en.lineWrapping=en.contentAttributes.of({class:"cm-lineWrapping"});en.announce=er.define();const yQe=4096,$X={};class W3{constructor(t,n,r,i,a,s){this.from=t,this.to=n,this.dir=r,this.isolates=i,this.fresh=a,this.order=s}static update(t,n){if(n.empty&&!t.some(a=>a.fresh))return t;let r=[],i=t.length?t[t.length-1].dir:Bi.LTR;for(let a=Math.max(0,t.length-10);a=0;i--){let a=r[i],s=typeof a=="function"?a(e):a;s&&Z8(s,n)}return n}const vQe=bn.mac?"mac":bn.windows?"win":bn.linux?"linux":"key";function OQe(e,t){const n=e.split(/-(?!$)/);let r=n[n.length-1];r=="Space"&&(r=" ");let i,a,s,o;for(let l=0;lr.concat(i),[]))),n}function EQe(e,t,n){return Ade(kde(e.state),t,e,n)}let y0=null;const wQe=4e3;function TQe(e,t=vQe){let n=Object.create(null),r=Object.create(null),i=(s,o)=>{let l=r[s];if(l==null)r[s]=o;else if(l!=o)throw new Error("Key binding "+s+" is used both as a regular binding and as a multi-stroke prefix")},a=(s,o,l,u,d)=>{var f,p;let g=n[s]||(n[s]=Object.create(null)),O=o.split(/ (?!$)/).map(w=>OQe(w,t));for(let w=1;w{let _=y0={view:k,prefix:x,scope:s};return setTimeout(()=>{y0==_&&(y0=null)},wQe),!0}]})}let S=O.join(" ");i(S,!1);let T=g[S]||(g[S]={preventDefault:!1,stopPropagation:!1,run:((p=(f=g._any)===null||f===void 0?void 0:f.run)===null||p===void 0?void 0:p.slice())||[]});l&&T.run.push(l),u&&(T.preventDefault=!0),d&&(T.stopPropagation=!0)};for(let s of e){let o=s.scope?s.scope.split(" "):["editor"];if(s.any)for(let u of o){let d=n[u]||(n[u]=Object.create(null));d._any||(d._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let f in d)d[f].run.push(s.any)}let l=s[t]||s.key;if(l)for(let u of o)a(u,l,s.run,s.preventDefault,s.stopPropagation),s.shift&&a(u,"Shift-"+l,s.shift,s.preventDefault,s.stopPropagation)}return n}function Ade(e,t,n,r){let i=Gje(t),a=Us(i,0),s=uc(a)==i.length&&i!=" ",o="",l=!1,u=!1,d=!1;y0&&y0.view==n&&y0.scope==r&&(o=y0.prefix+" ",hde.indexOf(t.keyCode)<0&&(u=!0,y0=null));let f=new Set,p=T=>{if(T){for(let w of T.run)if(!f.has(w)&&(f.add(w),w(n,t)))return T.stopPropagation&&(d=!0),!0;T.preventDefault&&(T.stopPropagation&&(d=!0),u=!0)}return!1},g=e[r],O,S;return g&&(p(g[o+$A(i,t,!s)])?l=!0:s&&(t.altKey||t.metaKey||t.ctrlKey)&&!(bn.windows&&t.ctrlKey&&t.altKey)&&(O=lm[t.keyCode])&&O!=i?(p(g[o+$A(O,t,!0)])||t.shiftKey&&(S=xw[t.keyCode])!=i&&S!=O&&p(g[o+$A(S,t,!1)]))&&(l=!0):s&&t.shiftKey&&p(g[o+$A(i,t,!0)])&&(l=!0),!l&&p(g._any)&&(l=!0)),u&&(l=!0),l&&d&&t.stopPropagation(),l}class jT{constructor(t,n,r,i,a){this.className=t,this.left=n,this.top=r,this.width=i,this.height=a}draw(){let t=document.createElement("div");return t.className=this.className,this.adjust(t),t}update(t,n){return n.className!=this.className?!1:(this.adjust(t),!0)}adjust(t){t.style.left=this.left+"px",t.style.top=this.top+"px",this.width!=null&&(t.style.width=this.width+"px"),t.style.height=this.height+"px"}eq(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.className}static forRange(t,n,r){if(r.empty){let i=t.coordsAtPos(r.head,r.assoc||1);if(!i)return[];let a=_de(t);return[new jT(n,i.left-a.left,i.top-a.top,null,i.bottom-i.top)]}else return xQe(t,n,r)}}function _de(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==Bi.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function UX(e,t,n){let r=dt.cursor(t);return{from:Math.max(n.from,e.moveToLineBoundary(r,!1,!0).from),to:Math.min(n.to,e.moveToLineBoundary(r,!0,!0).from),type:Zo.Text}}function xQe(e,t,n){if(n.to<=e.viewport.from||n.from>=e.viewport.to)return[];let r=Math.max(n.from,e.viewport.from),i=Math.min(n.to,e.viewport.to),a=e.textDirection==Bi.LTR,s=e.contentDOM,o=s.getBoundingClientRect(),l=_de(e),u=s.querySelector(".cm-line"),d=u&&window.getComputedStyle(u),f=o.left+(d?parseInt(d.paddingLeft)+Math.min(0,parseInt(d.textIndent)):0),p=o.right-(d?parseInt(d.paddingRight):0),g=iL(e,r),O=iL(e,i),S=g.type==Zo.Text?g:null,T=O.type==Zo.Text?O:null;if(S&&(e.lineWrapping||g.widgetLineBreaks)&&(S=UX(e,r,S)),T&&(e.lineWrapping||O.widgetLineBreaks)&&(T=UX(e,i,T)),S&&T&&S.from==T.from)return x(k(n.from,n.to,S));{let R=S?k(n.from,null,S):_(g,!1),N=T?k(null,n.to,T):_(O,!0),P=[];return(S||g).to<(T||O).from-(S&&T?1:0)||g.widgetLineBreaks>1&&R.bottom+e.defaultLineHeight/2W&&ee.from=ne)break;H>q&&V(Math.max(ie,q),R==null&&ie<=W,Math.min(H,ne),N==null&&H>=re,G.dir)}if(q=K.to+1,q>=ne)break}return B.length==0&&V(W,R==null,re,N==null,e.textDirection),{top:L,bottom:j,horizontal:B}}function _(R,N){let P=o.top+(N?R.top:R.bottom);return{top:P,bottom:P,horizontal:[]}}}function kQe(e,t){return e.constructor==t.constructor&&e.eq(t)}class AQe{constructor(t,n){this.view=t,this.layer=n,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=t.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),n.above&&this.dom.classList.add("cm-layer-above"),n.class&&this.dom.classList.add(n.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(t.state),t.requestMeasure(this.measureReq),n.mount&&n.mount(this.dom,t)}update(t){t.startState.facet(l_)!=t.state.facet(l_)&&this.setOrder(t.state),(this.layer.update(t,this.dom)||t.geometryChanged)&&(this.scale(),t.view.requestMeasure(this.measureReq))}setOrder(t){let n=0,r=t.facet(l_);for(;n!kQe(n,this.drawn[r]))){let n=this.dom.firstChild,r=0;for(let i of t)i.update&&n&&i.constructor&&this.drawn[r].constructor&&i.update(n,this.drawn[r])?(n=n.nextSibling,r++):this.dom.insertBefore(i.draw(),n);for(;n;){let i=n.nextSibling;n.remove(),n=i}this.drawn=t}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const l_=fn.define();function Cde(e){return[fa.define(t=>new AQe(t,e)),l_.of(e)]}const Rde=!bn.ios,Cw=fn.define({combine(e){return Vf(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(t,n)=>Math.min(t,n),drawRangeCursor:(t,n)=>t||n})}});function _Qe(e={}){return[Cw.of(e),CQe,RQe,IQe,rde.of(!0)]}function Ide(e){return e.startState.facet(Cw)!=e.state.facet(Cw)}const CQe=Cde({above:!0,markers(e){let{state:t}=e,n=t.facet(Cw),r=[];for(let i of t.selection.ranges){let a=i==t.selection.main;if(i.empty?!a||Rde:n.drawRangeCursor){let s=a?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",o=i.empty?i:dt.cursor(i.head,i.head>i.anchor?-1:1);for(let l of jT.forRange(e,s,o))r.push(l)}}return r},update(e,t){e.transactions.some(r=>r.selection)&&(t.style.animationName=t.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let n=Ide(e);return n&&zX(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){zX(t.state,e)},class:"cm-cursorLayer"});function zX(e,t){t.style.animationDuration=e.facet(Cw).cursorBlinkRate+"ms"}const RQe=Cde({above:!1,markers(e){return e.state.selection.ranges.map(t=>t.empty?[]:jT.forRange(e,"cm-selectionBackground",t)).reduce((t,n)=>t.concat(n))},update(e,t){return e.docChanged||e.selectionSet||e.viewportChanged||Ide(e)},class:"cm-selectionLayer"}),uL={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};Rde&&(uL[".cm-line"].caretColor="transparent !important",uL[".cm-content"]={caretColor:"transparent !important"});const IQe=Tp.highest(en.theme(uL)),Nde=er.define({map(e,t){return e==null?null:t.mapPos(e)}}),jE=xs.define({create(){return null},update(e,t){return e!=null&&(e=t.changes.mapPos(e)),t.effects.reduce((n,r)=>r.is(Nde)?r.value:n,e)}}),NQe=fa.fromClass(class{constructor(e){this.view=e,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(e){var t;let n=e.state.field(jE);n==null?this.cursor!=null&&((t=this.cursor)===null||t===void 0||t.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(e.startState.field(jE)!=n||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:e}=this,t=e.state.field(jE),n=t!=null&&e.coordsAtPos(t);if(!n)return null;let r=e.scrollDOM.getBoundingClientRect();return{left:n.left-r.left+e.scrollDOM.scrollLeft*e.scaleX,top:n.top-r.top+e.scrollDOM.scrollTop*e.scaleY,height:n.bottom-n.top}}drawCursor(e){if(this.cursor){let{scaleX:t,scaleY:n}=this.view;e?(this.cursor.style.left=e.left/t+"px",this.cursor.style.top=e.top/n+"px",this.cursor.style.height=e.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(e){this.view.state.field(jE)!=e&&this.view.dispatch({effects:Nde.of(e)})}},{eventObservers:{dragover(e){this.setDropPos(this.view.posAtCoords({x:e.clientX,y:e.clientY}))},dragleave(e){(e.target==this.view.contentDOM||!this.view.contentDOM.contains(e.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function DQe(){return[jE,NQe]}function jX(e,t,n,r,i){t.lastIndex=0;for(let a=e.iterRange(n,r),s=n,o;!a.next().done;s+=a.value.length)if(!a.lineBreak)for(;o=t.exec(a.value);)i(s+o.index,o)}function PQe(e,t){let n=e.visibleRanges;if(n.length==1&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n;let r=[];for(let{from:i,to:a}of n)i=Math.max(e.state.doc.lineAt(i).from,i-t),a=Math.min(e.state.doc.lineAt(a).to,a+t),r.length&&r[r.length-1].to>=i?r[r.length-1].to=a:r.push({from:i,to:a});return r}class LQe{constructor(t){const{regexp:n,decoration:r,decorate:i,boundary:a,maxLength:s=1e3}=t;if(!n.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=n,i)this.addMatch=(o,l,u,d)=>i(d,u,u+o[0].length,o,l);else if(typeof r=="function")this.addMatch=(o,l,u,d)=>{let f=r(o,l,u);f&&d(u,u+o[0].length,f)};else if(r)this.addMatch=(o,l,u,d)=>d(u,u+o[0].length,r);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=a,this.maxLength=s}createDeco(t){let n=new sm,r=n.add.bind(n);for(let{from:i,to:a}of PQe(t,this.maxLength))jX(t.state.doc,this.regexp,i,a,(s,o)=>this.addMatch(o,t,s,r));return n.finish()}updateDeco(t,n){let r=1e9,i=-1;return t.docChanged&&t.changes.iterChanges((a,s,o,l)=>{l>t.view.viewport.from&&o1e3?this.createDeco(t.view):i>-1?this.updateRange(t.view,n.map(t.changes),r,i):n}updateRange(t,n,r,i){for(let a of t.visibleRanges){let s=Math.max(a.from,r),o=Math.min(a.to,i);if(o>s){let l=t.state.doc.lineAt(s),u=l.tol.from;s--)if(this.boundary.test(l.text[s-1-l.from])){d=s;break}for(;op.push(w.range(S,T));if(l==u)for(this.regexp.lastIndex=d-l.from;(g=this.regexp.exec(l.text))&&g.indexthis.addMatch(T,t,S,O));n=n.update({filterFrom:d,filterTo:f,filter:(S,T)=>Sf,add:p})}}return n}}const cL=/x/.unicode!=null?"gu":"g",MQe=new RegExp(`[\0-\b ---Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,cL),$Qe={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let dD=null;function FQe(){var e;if(dD==null&&typeof document<"u"&&document.body){let t=document.body.style;dD=((e=t.tabSize)!==null&&e!==void 0?e:t.MozTabSize)!=null}return dD||!1}const u_=fn.define({combine(e){let t=Vf(e,{render:null,specialChars:MQe,addSpecialChars:null});return(t.replaceTabs=!FQe())&&(t.specialChars=new RegExp(" |"+t.specialChars.source,cL)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,cL)),t}});function BQe(e={}){return[u_.of(e),UQe()]}let HX=null;function UQe(){return HX||(HX=fa.fromClass(class{constructor(e){this.view=e,this.decorations=vn.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(u_)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new LQe({regexp:e.specialChars,decoration:(t,n,r)=>{let{doc:i}=n.state,a=Us(t[0],0);if(a==9){let s=i.lineAt(r),o=n.state.tabSize,l=Bf(s.text,o,r-s.from);return vn.replace({widget:new QQe((o-l%o)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[a]||(this.decorationCache[a]=vn.replace({widget:new HQe(e,a)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(u_);e.startState.facet(u_)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))}const zQe="•";function jQe(e){return e>=32?zQe:e==10?"␤":String.fromCharCode(9216+e)}class HQe extends Ld{constructor(t,n){super(),this.options=t,this.code=n}eq(t){return t.code==this.code}toDOM(t){let n=jQe(this.code),r=t.state.phrase("Control character")+" "+($Qe[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,r,n);if(i)return i;let a=document.createElement("span");return a.textContent=n,a.title=r,a.setAttribute("aria-label",r),a.className="cm-specialChar",a}ignoreEvent(){return!1}}class QQe extends Ld{constructor(t){super(),this.width=t}eq(t){return t.width==this.width}toDOM(){let t=document.createElement("span");return t.textContent=" ",t.className="cm-tab",t.style.width=this.width+"px",t}ignoreEvent(){return!1}}function WQe(){return qQe}const VQe=vn.line({class:"cm-activeLine"}),qQe=fa.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=-1,n=[];for(let r of e.state.selection.ranges){let i=e.lineBlockAt(r.head);i.from>t&&(n.push(VQe.range(i.from)),t=i.from)}return vn.set(n)}},{decorations:e=>e.decorations}),dL=2e3;function GQe(e,t,n){let r=Math.min(t.line,n.line),i=Math.max(t.line,n.line),a=[];if(t.off>dL||n.off>dL||t.col<0||n.col<0){let s=Math.min(t.off,n.off),o=Math.max(t.off,n.off);for(let l=r;l<=i;l++){let u=e.doc.line(l);u.length<=o&&a.push(dt.range(u.from+s,u.to+o))}}else{let s=Math.min(t.col,n.col),o=Math.max(t.col,n.col);for(let l=r;l<=i;l++){let u=e.doc.line(l),d=H8(u.text,s,e.tabSize,!0);if(d<0)a.push(dt.cursor(u.to));else{let f=H8(u.text,o,e.tabSize);a.push(dt.range(u.from+d,u.from+f))}}}return a}function YQe(e,t){let n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}function QX(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1),r=e.state.doc.lineAt(n),i=n-r.from,a=i>dL?-1:i==r.length?YQe(e,t.clientX):Bf(r.text,e.state.tabSize,n-r.from);return{line:r.number,col:a,off:i}}function ZQe(e,t){let n=QX(e,t),r=e.state.selection;return n?{update(i){if(i.docChanged){let a=i.changes.mapPos(i.startState.doc.line(n.line).from),s=i.state.doc.lineAt(a);n={line:s.number,col:n.col,off:Math.min(n.off,s.length)},r=r.map(i.changes)}},get(i,a,s){let o=QX(e,i);if(!o)return r;let l=GQe(e.state,n,o);return l.length?s?dt.create(l.concat(r.ranges)):dt.create(l):r}}:null}function XQe(e){let t=n=>n.altKey&&n.button==0;return en.mouseSelectionStyle.of((n,r)=>t(r)?ZQe(n,r):null)}const KQe={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},JQe={style:"cursor: crosshair"};function eWe(e={}){let[t,n]=KQe[e.key||"Alt"],r=fa.fromClass(class{constructor(i){this.view=i,this.isDown=!1}set(i){this.isDown!=i&&(this.isDown=i,this.view.update([]))}},{eventObservers:{keydown(i){this.set(i.keyCode==t||n(i))},keyup(i){(i.keyCode==t||!n(i))&&this.set(!1)},mousemove(i){this.set(n(i))}}});return[r,en.contentAttributes.of(i=>{var a;return!((a=i.plugin(r))===null||a===void 0)&&a.isDown?JQe:null})]}const dE="-10000px";class Dde{constructor(t,n,r,i){this.facet=n,this.createTooltipView=r,this.removeTooltipView=i,this.input=t.state.facet(n),this.tooltips=this.input.filter(a=>a),this.tooltipViews=this.tooltips.map(r)}update(t,n){var r;let i=t.state.facet(this.facet),a=i.filter(l=>l);if(i===this.input){for(let l of this.tooltipViews)l.update&&l.update(t);return!1}let s=[],o=n?[]:null;for(let l=0;ln[u]=l),n.length=o.length),this.input=i,this.tooltips=a,this.tooltipViews=s,!0}}function tWe(e){let{win:t}=e;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}const fD=fn.define({combine:e=>{var t,n,r;return{position:bn.ios?"absolute":((t=e.find(i=>i.position))===null||t===void 0?void 0:t.position)||"fixed",parent:((n=e.find(i=>i.parent))===null||n===void 0?void 0:n.parent)||null,tooltipSpace:((r=e.find(i=>i.tooltipSpace))===null||r===void 0?void 0:r.tooltipSpace)||tWe}}}),WX=new WeakMap,tB=fa.fromClass(class{constructor(e){this.view=e,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(fD);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new Dde(e,nB,n=>this.createTooltip(n),n=>{this.resizeObserver&&this.resizeObserver.unobserve(n.dom),n.dom.remove()}),this.above=this.manager.tooltips.map(n=>!!n.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(n=>{Date.now()>this.lastTransaction-50&&n.length>0&&n[n.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let n=t||e.geometryChanged,r=e.state.facet(fD);if(r.position!=this.position&&!this.madeAbsolute){this.position=r.position;for(let i of this.manager.tooltipViews)i.dom.style.position=this.position;n=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();for(let i of this.manager.tooltipViews)this.container.appendChild(i.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(e){let t=e.create(this.view);if(t.dom.classList.add("cm-tooltip"),e.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let n=document.createElement("div");n.className="cm-tooltip-arrow",t.dom.appendChild(n)}return t.dom.style.position=this.position,t.dom.style.top=dE,t.dom.style.left="0px",this.container.appendChild(t.dom),t.mount&&t.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(t.dom),t}destroy(){var e,t,n;this.view.win.removeEventListener("resize",this.measureSoon);for(let r of this.manager.tooltipViews)r.dom.remove(),(e=r.destroy)===null||e===void 0||e.call(r);this.parent&&this.container.remove(),(t=this.resizeObserver)===null||t===void 0||t.disconnect(),(n=this.intersectionObserver)===null||n===void 0||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=this.view.dom.getBoundingClientRect(),t=1,n=1,r=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:i}=this.manager.tooltipViews[0];if(bn.gecko)r=i.offsetParent!=this.container.ownerDocument.body;else if(i.style.top==dE&&i.style.left=="0px"){let a=i.getBoundingClientRect();r=Math.abs(a.top+1e4)>1||Math.abs(a.left)>1}}if(r||this.position=="absolute")if(this.parent){let i=this.parent.getBoundingClientRect();i.width&&i.height&&(t=i.width/this.parent.offsetWidth,n=i.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:n}=this.view.viewState);return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map((i,a)=>{let s=this.manager.tooltipViews[a];return s.getCoords?s.getCoords(i.pos):this.view.coordsAtPos(i.pos)}),size:this.manager.tooltipViews.map(({dom:i})=>i.getBoundingClientRect()),space:this.view.state.facet(fD).tooltipSpace(this.view),scaleX:t,scaleY:n,makeAbsolute:r}}writeMeasure(e){var t;if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let o of this.manager.tooltipViews)o.dom.style.position="absolute"}let{editor:n,space:r,scaleX:i,scaleY:a}=e,s=[];for(let o=0;o=Math.min(n.bottom,r.bottom)||f.rightMath.min(n.right,r.right)+.1){d.style.top=dE;continue}let g=l.arrow?u.dom.querySelector(".cm-tooltip-arrow"):null,O=g?7:0,S=p.right-p.left,T=(t=WX.get(u))!==null&&t!==void 0?t:p.bottom-p.top,w=u.offset||rWe,x=this.view.textDirection==Bi.LTR,k=p.width>r.right-r.left?x?r.left:r.right-p.width:x?Math.min(f.left-(g?14:0)+w.x,r.right-S):Math.max(r.left,f.left-S+(g?14:0)-w.x),_=this.above[o];!l.strictSide&&(_?f.top-(p.bottom-p.top)-w.yr.bottom)&&_==r.bottom-f.bottom>f.top-r.top&&(_=this.above[o]=!_);let R=(_?f.top-r.top:r.bottom-f.bottom)-O;if(Rk&&L.topN&&(N=_?L.top-T-2-O:L.bottom+O+2);if(this.position=="absolute"?(d.style.top=(N-e.parent.top)/a+"px",d.style.left=(k-e.parent.left)/i+"px"):(d.style.top=N/a+"px",d.style.left=k/i+"px"),g){let L=f.left+(x?w.x:-w.x)-(k+14-7);g.style.left=L/i+"px"}u.overlap!==!0&&s.push({left:k,top:N,right:P,bottom:N+T}),d.classList.toggle("cm-tooltip-above",_),d.classList.toggle("cm-tooltip-below",!_),u.positioned&&u.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=dE}},{eventObservers:{scroll(){this.maybeMeasure()}}}),nWe=en.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),rWe={x:0,y:0},nB=fn.define({enables:[tB,nWe]}),V3=fn.define();class IR{static create(t){return new IR(t)}constructor(t){this.view=t,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Dde(t,V3,n=>this.createHostedView(n),n=>n.dom.remove())}createHostedView(t){let n=t.create(this.view);return n.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(n.dom),this.mounted&&n.mount&&n.mount(this.view),n}mount(t){for(let n of this.manager.tooltipViews)n.mount&&n.mount(t);this.mounted=!0}positioned(t){for(let n of this.manager.tooltipViews)n.positioned&&n.positioned(t)}update(t){this.manager.update(t)}destroy(){var t;for(let n of this.manager.tooltipViews)(t=n.destroy)===null||t===void 0||t.call(n)}passProp(t){let n;for(let r of this.manager.tooltipViews){let i=r[t];if(i!==void 0){if(n===void 0)n=i;else if(n!==i)return}}return n}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const iWe=nB.compute([V3],e=>{let t=e.facet(V3).filter(n=>n);return t.length===0?null:{pos:Math.min(...t.map(n=>n.pos)),end:Math.max(...t.map(n=>{var r;return(r=n.end)!==null&&r!==void 0?r:n.pos})),create:IR.create,above:t[0].above,arrow:t.some(n=>n.arrow)}});class aWe{constructor(t,n,r,i,a){this.view=t,this.source=n,this.field=r,this.setHover=i,this.hoverTime=a,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:t.dom,time:0},this.checkHover=this.checkHover.bind(this),t.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),t.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let t=Date.now()-this.lastMove.time;to.bottom||n.xo.right+t.defaultCharacterWidth)return;let l=t.bidiSpans(t.state.doc.lineAt(i)).find(d=>d.from<=i&&d.to>=i),u=l&&l.dir==Bi.RTL?-1:1;a=n.x{this.pending==o&&(this.pending=null,l&&t.dispatch({effects:this.setHover.of(l)}))},l=>Oc(t.state,l,"hover tooltip"))}else s&&t.dispatch({effects:this.setHover.of(s)})}get tooltip(){let t=this.view.plugin(tB),n=t?t.manager.tooltips.findIndex(r=>r.create==IR.create):-1;return n>-1?t.manager.tooltipViews[n]:null}mousemove(t){var n;this.lastMove={x:t.clientX,y:t.clientY,target:t.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:r,tooltip:i}=this;if(r&&i&&!sWe(i.dom,t)||this.pending){let{pos:a}=r||this.pending,s=(n=r==null?void 0:r.end)!==null&&n!==void 0?n:a;(a==s?this.view.posAtCoords(this.lastMove)!=a:!oWe(this.view,a,s,t.clientX,t.clientY))&&(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(t){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:n}=this;if(n){let{tooltip:r}=this;r&&r.dom.contains(t.relatedTarget)?this.watchTooltipLeave(r.dom):this.view.dispatch({effects:this.setHover.of(null)})}}watchTooltipLeave(t){let n=r=>{t.removeEventListener("mouseleave",n),this.active&&!this.view.dom.contains(r.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})};t.addEventListener("mouseleave",n)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const FA=4;function sWe(e,t){let n=e.getBoundingClientRect();return t.clientX>=n.left-FA&&t.clientX<=n.right+FA&&t.clientY>=n.top-FA&&t.clientY<=n.bottom+FA}function oWe(e,t,n,r,i,a){let s=e.scrollDOM.getBoundingClientRect(),o=e.documentTop+e.documentPadding.top+e.contentHeight;if(s.left>r||s.righti||Math.min(s.bottom,o)=t&&l<=n}function lWe(e,t={}){let n=er.define(),r=xs.define({create(){return null},update(i,a){if(i&&(t.hideOnChange&&(a.docChanged||a.selection)||t.hideOn&&t.hideOn(a,i)))return null;if(i&&a.docChanged){let s=a.changes.mapPos(i.pos,-1,js.TrackDel);if(s==null)return null;let o=Object.assign(Object.create(null),i);o.pos=s,i.end!=null&&(o.end=a.changes.mapPos(i.end)),i=o}for(let s of a.effects)s.is(n)&&(i=s.value),s.is(uWe)&&(i=null);return i},provide:i=>V3.from(i)});return[r,fa.define(i=>new aWe(i,e,r,n,t.hoverTime||300)),iWe]}function Pde(e,t){let n=e.plugin(tB);if(!n)return null;let r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}const uWe=er.define(),VX=fn.define({combine(e){let t,n;for(let r of e)t=t||r.topContainer,n=n||r.bottomContainer;return{topContainer:t,bottomContainer:n}}});function Rw(e,t){let n=e.plugin(Lde),r=n?n.specs.indexOf(t):-1;return r>-1?n.panels[r]:null}const Lde=fa.fromClass(class{constructor(e){this.input=e.state.facet(Iw),this.specs=this.input.filter(n=>n),this.panels=this.specs.map(n=>n(e));let t=e.state.facet(VX);this.top=new BA(e,!0,t.topContainer),this.bottom=new BA(e,!1,t.bottomContainer),this.top.sync(this.panels.filter(n=>n.top)),this.bottom.sync(this.panels.filter(n=>!n.top));for(let n of this.panels)n.dom.classList.add("cm-panel"),n.mount&&n.mount()}update(e){let t=e.state.facet(VX);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new BA(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new BA(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(Iw);if(n!=this.input){let r=n.filter(l=>l),i=[],a=[],s=[],o=[];for(let l of r){let u=this.specs.indexOf(l),d;u<0?(d=l(e.view),o.push(d)):(d=this.panels[u],d.update&&d.update(e)),i.push(d),(d.top?a:s).push(d)}this.specs=r,this.panels=i,this.top.sync(a),this.bottom.sync(s);for(let l of o)l.dom.classList.add("cm-panel"),l.mount&&l.mount()}else for(let r of this.panels)r.update&&r.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>en.scrollMargins.of(t=>{let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class BA{constructor(t,n,r){this.view=t,this.top=n,this.container=r,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(t){for(let n of this.panels)n.destroy&&t.indexOf(n)<0&&n.destroy();this.panels=t,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let n=this.container||this.view.dom;n.insertBefore(this.dom,this.top?n.firstChild:null)}let t=this.dom.firstChild;for(let n of this.panels)if(n.dom.parentNode==this.dom){for(;t!=n.dom;)t=qX(t);t=t.nextSibling}else this.dom.insertBefore(n.dom,t);for(;t;)t=qX(t)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let t of this.classes.split(" "))t&&this.container.classList.remove(t);for(let t of(this.classes=this.view.themeClasses).split(" "))t&&this.container.classList.add(t)}}}function qX(e){let t=e.nextSibling;return e.remove(),t}const Iw=fn.define({enables:Lde});class cp extends w1{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}}cp.prototype.elementClass="";cp.prototype.toDOM=void 0;cp.prototype.mapMode=js.TrackBefore;cp.prototype.startSide=cp.prototype.endSide=-1;cp.prototype.point=!0;const c_=fn.define(),cWe={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Cr.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},v2=fn.define();function dWe(e){return[Mde(),v2.of(Object.assign(Object.assign({},cWe),e))]}const GX=fn.define({combine:e=>e.some(t=>t)});function Mde(e){return[fWe]}const fWe=fa.fromClass(class{constructor(e){this.view=e,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=e.state.facet(v2).map(t=>new ZX(e,t));for(let t of this.gutters)this.dom.appendChild(t.dom);this.fixed=!e.state.facet(GX),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,r=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(r<(n.to-n.from)*.8)}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(GX)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&this.dom.remove();let n=Cr.iter(this.view.state.facet(c_),this.view.viewport.from),r=[],i=this.gutters.map(a=>new hWe(a,this.view.viewport,-this.view.documentPadding.top));for(let a of this.view.viewportLineBlocks)if(r.length&&(r=[]),Array.isArray(a.type)){let s=!0;for(let o of a.type)if(o.type==Zo.Text&&s){fL(n,r,o.from);for(let l of i)l.line(this.view,o,r);s=!1}else if(o.widget)for(let l of i)l.widget(this.view,o)}else if(a.type==Zo.Text){fL(n,r,a.from);for(let s of i)s.line(this.view,a,r)}else if(a.widget)for(let s of i)s.widget(this.view,a);for(let a of i)a.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet(v2),n=e.state.facet(v2),r=e.docChanged||e.heightChanged||e.viewportChanged||!Cr.eq(e.startState.facet(c_),e.state.facet(c_),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let i of this.gutters)i.update(e)&&(r=!0);else{r=!0;let i=[];for(let a of n){let s=t.indexOf(a);s<0?i.push(new ZX(this.view,a)):(this.gutters[s].update(e),i.push(this.gutters[s]))}for(let a of this.gutters)a.dom.remove(),i.indexOf(a)<0&&a.destroy();for(let a of i)this.dom.appendChild(a.dom);this.gutters=i}return r}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>en.scrollMargins.of(t=>{let n=t.plugin(e);return!n||n.gutters.length==0||!n.fixed?null:t.textDirection==Bi.LTR?{left:n.dom.offsetWidth*t.scaleX}:{right:n.dom.offsetWidth*t.scaleX}})});function YX(e){return Array.isArray(e)?e:[e]}function fL(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class hWe{constructor(t,n,r){this.gutter=t,this.height=r,this.i=0,this.cursor=Cr.iter(t.markers,n.from)}addElement(t,n,r){let{gutter:i}=this,a=(n.top-this.height)/t.scaleY,s=n.height/t.scaleY;if(this.i==i.elements.length){let o=new $de(t,s,a,r);i.elements.push(o),i.dom.appendChild(o.dom)}else i.elements[this.i].update(t,s,a,r);this.height=n.bottom,this.i++}line(t,n,r){let i=[];fL(this.cursor,i,n.from),r.length&&(i=i.concat(r));let a=this.gutter.config.lineMarker(t,n,i);a&&i.unshift(a);let s=this.gutter;i.length==0&&!s.config.renderEmptyElements||this.addElement(t,n,i)}widget(t,n){let r=this.gutter.config.widgetMarker(t,n.widget,n);r&&this.addElement(t,n,[r])}finish(){let t=this.gutter;for(;t.elements.length>this.i;){let n=t.elements.pop();t.dom.removeChild(n.dom),n.destroy()}}}class ZX{constructor(t,n){this.view=t,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let r in n.domEventHandlers)this.dom.addEventListener(r,i=>{let a=i.target,s;if(a!=this.dom&&this.dom.contains(a)){for(;a.parentNode!=this.dom;)a=a.parentNode;let l=a.getBoundingClientRect();s=(l.top+l.bottom)/2}else s=i.clientY;let o=t.lineBlockAtHeight(s-t.documentTop);n.domEventHandlers[r](t,o,i)&&i.preventDefault()});this.markers=YX(n.markers(t)),n.initialSpacer&&(this.spacer=new $de(t,0,0,[n.initialSpacer(t)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(t){let n=this.markers;if(this.markers=YX(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){let i=this.config.updateSpacer(this.spacer.markers[0],t);i!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[i])}let r=t.view.viewport;return!Cr.eq(this.markers,n,r.from,r.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(t):!1)}destroy(){for(let t of this.elements)t.destroy()}}class $de{constructor(t,n,r,i){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(t,n,r,i)}update(t,n,r,i){this.height!=n&&(this.height=n,this.dom.style.height=n+"px"),this.above!=r&&(this.dom.style.marginTop=(this.above=r)?r+"px":""),pWe(this.markers,i)||this.setMarkers(t,i)}setMarkers(t,n){let r="cm-gutterElement",i=this.dom.firstChild;for(let a=0,s=0;;){let o=s,l=aa(o,l,u)||s(o,l,u):s}return r}})}});class hD extends cp{constructor(t){super(),this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function pD(e,t){return e.state.facet(by).formatNumber(t,e.state)}const gWe=v2.compute([by],e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(t){return t.state.facet(mWe)},lineMarker(t,n,r){return r.some(i=>i.toDOM)?null:new hD(pD(t,t.state.doc.lineAt(n.from).number))},widgetMarker:()=>null,lineMarkerChange:t=>t.startState.facet(by)!=t.state.facet(by),initialSpacer(t){return new hD(pD(t,XX(t.state.doc.lines)))},updateSpacer(t,n){let r=pD(n.view,XX(n.view.state.doc.lines));return r==t.number?t:new hD(r)},domEventHandlers:e.facet(by).domEventHandlers}));function bWe(e={}){return[by.of(e),Mde(),gWe]}function XX(e){let t=9;for(;t{let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.head).from;i>n&&(n=i,t.push(yWe.range(i)))}return Cr.of(t)});function OWe(){return vWe}const Fde=1024;let SWe=0;class hc{constructor(t,n){this.from=t,this.to=n}}class Wn{constructor(t={}){this.id=SWe++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof t!="function"&&(t=ls.match(t)),n=>{let r=t(n);return r===void 0?null:[this,r]}}}Wn.closedBy=new Wn({deserialize:e=>e.split(" ")});Wn.openedBy=new Wn({deserialize:e=>e.split(" ")});Wn.group=new Wn({deserialize:e=>e.split(" ")});Wn.isolate=new Wn({deserialize:e=>{if(e&&e!="rtl"&&e!="ltr"&&e!="auto")throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}});Wn.contextHash=new Wn({perNode:!0});Wn.lookAhead=new Wn({perNode:!0});Wn.mounted=new Wn({perNode:!0});class Nw{constructor(t,n,r){this.tree=t,this.overlay=n,this.parser=r}static get(t){return t&&t.props&&t.props[Wn.mounted.id]}}const EWe=Object.create(null);class ls{constructor(t,n,r,i=0){this.name=t,this.props=n,this.id=r,this.flags=i}static define(t){let n=t.props&&t.props.length?Object.create(null):EWe,r=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),i=new ls(t.name||"",n,t.id,r);if(t.props){for(let a of t.props)if(Array.isArray(a)||(a=a(i)),a){if(a[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[a[0].id]=a[1]}}return i}prop(t){return this.props[t.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(t){if(typeof t=="string"){if(this.name==t)return!0;let n=this.prop(Wn.group);return n?n.indexOf(t)>-1:!1}return this.id==t}static match(t){let n=Object.create(null);for(let r in t)for(let i of r.split(" "))n[i]=t[r];return r=>{for(let i=r.prop(Wn.group),a=-1;a<(i?i.length:0);a++){let s=n[a<0?r.name:i[a]];if(s)return s}}}}ls.none=new ls("",Object.create(null),0,8);class HT{constructor(t){this.types=t;for(let n=0;n0;for(let l=this.cursor(s|Ai.IncludeAnonymous);;){let u=!1;if(l.from<=a&&l.to>=i&&(!o&&l.type.isAnonymous||n(l)!==!1)){if(l.firstChild())continue;u=!0}for(;u&&r&&(o||!l.type.isAnonymous)&&r(l),!l.nextSibling();){if(!l.parent())return;u=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let n in this.props)t.push([+n,this.props[n]]);return t}balance(t={}){return this.children.length<=8?this:aB(ls.none,this.children,this.positions,0,this.children.length,0,this.length,(n,r,i)=>new Jr(this.type,n,r,i,this.propValues),t.makeTree||((n,r,i)=>new Jr(ls.none,n,r,i)))}static build(t){return kWe(t)}}Jr.empty=new Jr(ls.none,[],[],0);class rB{constructor(t,n){this.buffer=t,this.index=n}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new rB(this.buffer,this.index)}}class cm{constructor(t,n,r){this.buffer=t,this.length=n,this.set=r}get type(){return ls.none}toString(){let t=[];for(let n=0;n0));l=s[l+3]);return o}slice(t,n,r){let i=this.buffer,a=new Uint16Array(n-t),s=0;for(let o=t,l=0;o=t&&nt;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function Dw(e,t,n,r){for(var i;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to0?o.length:-1;t!=u;t+=n){let d=o[t],f=l[t]+s.from;if(Bde(i,r,f,f+d.length)){if(d instanceof cm){if(a&Ai.ExcludeBuffers)continue;let p=d.findChild(0,d.buffer.length,n,r-f,i);if(p>-1)return new Of(new wWe(s,d,t,f),null,p)}else if(a&Ai.IncludeAnonymous||!d.type.isAnonymous||iB(d)){let p;if(!(a&Ai.IgnoreMounts)&&(p=Nw.get(d))&&!p.overlay)return new yo(p.tree,f,t,s);let g=new yo(d,f,t,s);return a&Ai.IncludeAnonymous||!g.type.isAnonymous?g:g.nextChild(n<0?d.children.length-1:0,n,r,i)}}}if(a&Ai.IncludeAnonymous||!s.type.isAnonymous||(s.index>=0?t=s.index+n:t=n<0?-1:s._parent._tree.children.length,s=s._parent,!s))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}enter(t,n,r=0){let i;if(!(r&Ai.IgnoreOverlays)&&(i=Nw.get(this._tree))&&i.overlay){let a=t-this.from;for(let{from:s,to:o}of i.overlay)if((n>0?s<=a:s=a:o>a))return new yo(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,n,r)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function JX(e,t,n,r){let i=e.cursor(),a=[];if(!i.firstChild())return a;if(n!=null){for(let s=!1;!s;)if(s=i.type.is(n),!i.nextSibling())return a}for(;;){if(r!=null&&i.type.is(r))return a;if(i.type.is(t)&&a.push(i.node),!i.nextSibling())return r==null?a:[]}}function hL(e,t,n=t.length-1){for(let r=e.parent;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class wWe{constructor(t,n,r,i){this.parent=t,this.buffer=n,this.index=r,this.start=i}}class Of extends Ude{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,n,r){super(),this.context=t,this._parent=n,this.index=r,this.type=t.buffer.set.types[t.buffer.buffer[r]]}child(t,n,r){let{buffer:i}=this.context,a=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.context.start,r);return a<0?null:new Of(this.context,this,a)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}enter(t,n,r=0){if(r&Ai.ExcludeBuffers)return null;let{buffer:i}=this.context,a=i.findChild(this.index+4,i.buffer[this.index+3],n>0?1:-1,t-this.context.start,n);return a<0?null:new Of(this.context,this,a)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,n=t.buffer[this.index+3];return n<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new Of(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new Of(this.context,this._parent,t.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],n=[],{buffer:r}=this.context,i=this.index+4,a=r.buffer[this.index+3];if(a>i){let s=r.buffer[this.index+1];t.push(r.slice(i,a,s)),n.push(0)}return new Jr(this.type,t,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function zde(e){if(!e.length)return null;let t=0,n=e[0];for(let a=1;an.from||s.to=t){let o=new yo(s.tree,s.overlay[0].from+a.from,-1,a);(i||(i=[r])).push(Dw(o,t,n,!1))}}return i?zde(i):r}class q3{get name(){return this.type.name}constructor(t,n=0){if(this.mode=n,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,t instanceof yo)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;for(let r=t._parent;r;r=r._parent)this.stack.unshift(r.index);this.bufferNode=t,this.yieldBuf(t.index)}}yieldNode(t){return t?(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0):!1}yieldBuf(t,n){this.index=t;let{start:r,buffer:i}=this.buffer;return this.type=n||i.set.types[i.buffer[t]],this.from=r+i.buffer[t+1],this.to=r+i.buffer[t+2],!0}yield(t){return t?t instanceof yo?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,n,r){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,n,r,this.mode));let{buffer:i}=this.buffer,a=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.buffer.start,r);return a<0?!1:(this.stack.push(this.index),this.yieldBuf(a))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,n,r=this.mode){return this.buffer?r&Ai.ExcludeBuffers?!1:this.enterChild(1,t,n):this.yield(this._tree.enter(t,n,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&Ai.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&Ai.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode)):!1;let{buffer:n}=this.buffer,r=this.stack.length-1;if(t<0){let i=r<0?0:this.stack[r]+4;if(this.index!=i)return this.yieldBuf(n.findChild(i,this.index,-1,0,4))}else{let i=n.buffer[this.index+3];if(i<(r<0?n.buffer.length:n.buffer[this.stack[r]+3]))return this.yieldBuf(i)}return r<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let n,r,{buffer:i}=this;if(i){if(t>0){if(this.index-1)for(let a=n+t,s=t<0?-1:r._tree.children.length;a!=s;a+=t){let o=r._tree.children[a];if(this.mode&Ai.IncludeAnonymous||o instanceof cm||!o.type.isAnonymous||iB(o))return!1}return!0}move(t,n){if(n&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,n=0){for(;(this.from==this.to||(n<1?this.from>=t:this.from>t)||(n>-1?this.to<=t:this.to=0;){for(let s=t;s;s=s._parent)if(s.index==i){if(i==this.index)return s;n=s,r=a+1;break e}i=this.stack[--a]}for(let i=r;i=0;a--){if(a<0)return hL(this.node,t,i);let s=r[n.buffer[this.stack[a]]];if(!s.isAnonymous){if(t[i]&&t[i]!=s.name)return!1;i--}}return!0}}function iB(e){return e.children.some(t=>t instanceof cm||!t.type.isAnonymous||iB(t))}function kWe(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:i=Fde,reused:a=[],minRepeatType:s=r.types.length}=e,o=Array.isArray(n)?new rB(n,n.length):n,l=r.types,u=0,d=0;function f(R,N,P,L,j,B){let{id:V,start:W,end:re,size:ee}=o,q=d;for(;ee<0;)if(o.next(),ee==-1){let H=a[V];P.push(H),L.push(W-R);return}else if(ee==-3){u=V;return}else if(ee==-4){d=V;return}else throw new RangeError(`Unrecognized record size: ${ee}`);let ne=l[V],K,G,ie=W-R;if(re-W<=i&&(G=T(o.pos-N,j))){let H=new Uint16Array(G.size-G.skip),Re=o.pos-G.size,Se=H.length;for(;o.pos>Re;)Se=w(G.start,H,Se);K=new cm(H,re-G.start,r),ie=G.start-R}else{let H=o.pos-ee;o.next();let Re=[],Se=[],Z=V>=s?V:-1,ke=0,$e=re;for(;o.pos>H;)Z>=0&&o.id==Z&&o.size>=0?(o.end<=$e-i&&(O(Re,Se,W,ke,o.end,$e,Z,q),ke=Re.length,$e=o.end),o.next()):B>2500?p(W,H,Re,Se):f(W,H,Re,Se,Z,B+1);if(Z>=0&&ke>0&&ke-1&&ke>0){let ae=g(ne);K=aB(ne,Re,Se,0,Re.length,0,re-W,ae,ae)}else K=S(ne,Re,Se,re-W,q-re)}P.push(K),L.push(ie)}function p(R,N,P,L){let j=[],B=0,V=-1;for(;o.pos>N;){let{id:W,start:re,end:ee,size:q}=o;if(q>4)o.next();else{if(V>-1&&re=0;ee-=3)W[q++]=j[ee],W[q++]=j[ee+1]-re,W[q++]=j[ee+2]-re,W[q++]=q;P.push(new cm(W,j[2]-re,r)),L.push(re-R)}}function g(R){return(N,P,L)=>{let j=0,B=N.length-1,V,W;if(B>=0&&(V=N[B])instanceof Jr){if(!B&&V.type==R&&V.length==L)return V;(W=V.prop(Wn.lookAhead))&&(j=P[B]+V.length+W)}return S(R,N,P,L,j)}}function O(R,N,P,L,j,B,V,W){let re=[],ee=[];for(;R.length>L;)re.push(R.pop()),ee.push(N.pop()+P-j);R.push(S(r.types[V],re,ee,B-j,W-B)),N.push(j-P)}function S(R,N,P,L,j=0,B){if(u){let V=[Wn.contextHash,u];B=B?[V].concat(B):[V]}if(j>25){let V=[Wn.lookAhead,j];B=B?[V].concat(B):[V]}return new Jr(R,N,P,L,B)}function T(R,N){let P=o.fork(),L=0,j=0,B=0,V=P.end-i,W={size:0,start:0,skip:0};e:for(let re=P.pos-R;P.pos>re;){let ee=P.size;if(P.id==N&&ee>=0){W.size=L,W.start=j,W.skip=B,B+=4,L+=4,P.next();continue}let q=P.pos-ee;if(ee<0||q=s?4:0,K=P.start;for(P.next();P.pos>q;){if(P.size<0)if(P.size==-3)ne+=4;else break e;else P.id>=s&&(ne+=4);P.next()}j=K,L+=ee,B+=ne}return(N<0||L==R)&&(W.size=L,W.start=j,W.skip=B),W.size>4?W:void 0}function w(R,N,P){let{id:L,start:j,end:B,size:V}=o;if(o.next(),V>=0&&L4){let re=o.pos-(V-4);for(;o.pos>re;)P=w(R,N,P)}N[--P]=W,N[--P]=B-R,N[--P]=j-R,N[--P]=L}else V==-3?u=L:V==-4&&(d=L);return P}let x=[],k=[];for(;o.pos>0;)f(e.start||0,e.bufferStart||0,x,k,-1,0);let _=(t=e.length)!==null&&t!==void 0?t:x.length?k[0]+x[0].length:0;return new Jr(l[e.topID],x.reverse(),k.reverse(),_)}const eK=new WeakMap;function d_(e,t){if(!e.isAnonymous||t instanceof cm||t.type!=e)return 1;let n=eK.get(t);if(n==null){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof Jr)){n=1;break}n+=d_(e,r)}eK.set(t,n)}return n}function aB(e,t,n,r,i,a,s,o,l){let u=0;for(let O=r;O=d)break;N+=P}if(k==_+1){if(N>d){let P=O[_];g(P.children,P.positions,0,P.children.length,S[_]+x);continue}f.push(O[_])}else{let P=S[k-1]+O[k-1].length-R;f.push(aB(e,O,S,_,k,R,P,null,l))}p.push(R+x-a)}}return g(t,n,r,i,0),(o||l)(f,p,s)}class jde{constructor(){this.map=new WeakMap}setBuffer(t,n,r){let i=this.map.get(t);i||this.map.set(t,i=new Map),i.set(n,r)}getBuffer(t,n){let r=this.map.get(t);return r&&r.get(n)}set(t,n){t instanceof Of?this.setBuffer(t.context.buffer,t.index,n):t instanceof yo&&this.map.set(t.tree,n)}get(t){return t instanceof Of?this.getBuffer(t.context.buffer,t.index):t instanceof yo?this.map.get(t.tree):void 0}cursorSet(t,n){t.buffer?this.setBuffer(t.buffer.buffer,t.index,n):this.map.set(t.tree,n)}cursorGet(t){return t.buffer?this.getBuffer(t.buffer.buffer,t.index):this.map.get(t.tree)}}class Yh{constructor(t,n,r,i,a=!1,s=!1){this.from=t,this.to=n,this.tree=r,this.offset=i,this.open=(a?1:0)|(s?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(t,n=[],r=!1){let i=[new Yh(0,t.length,t,0,!1,r)];for(let a of n)a.to>t.length&&i.push(a);return i}static applyChanges(t,n,r=128){if(!n.length)return t;let i=[],a=1,s=t.length?t[0]:null;for(let o=0,l=0,u=0;;o++){let d=o=r)for(;s&&s.from=p.from||f<=p.to||u){let g=Math.max(p.from,l)-u,O=Math.min(p.to,f)-u;p=g>=O?null:new Yh(g,O,p.tree,p.offset+u,o>0,!!d)}if(p&&i.push(p),s.to>f)break;s=anew hc(i.from,i.to)):[new hc(0,0)]:[new hc(0,t.length)],this.createParse(t,n||[],r)}parse(t,n,r){let i=this.startParse(t,n,r);for(;;){let a=i.advance();if(a)return a}}};class AWe{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,n){return this.string.slice(t,n)}}function Hde(e){return(t,n,r,i)=>new CWe(t,e,n,r,i)}class tK{constructor(t,n,r,i,a){this.parser=t,this.parse=n,this.overlay=r,this.target=i,this.from=a}}function nK(e){if(!e.length||e.some(t=>t.from>=t.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(e))}class _We{constructor(t,n,r,i,a,s,o){this.parser=t,this.predicate=n,this.mounts=r,this.index=i,this.start=a,this.target=s,this.prev=o,this.depth=0,this.ranges=[]}}const pL=new Wn({perNode:!0});class CWe{constructor(t,n,r,i,a){this.nest=n,this.input=r,this.fragments=i,this.ranges=a,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=t}advance(){if(this.baseParse){let r=this.baseParse.advance();if(!r)return null;if(this.baseParse=null,this.baseTree=r,this.startInner(),this.stoppedAt!=null)for(let i of this.inner)i.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let r=this.baseTree;return this.stoppedAt!=null&&(r=new Jr(r.type,r.children,r.positions,r.length,r.propValues.concat([[pL,this.stoppedAt]]))),r}let t=this.inner[this.innerDone],n=t.parse.advance();if(n){this.innerDone++;let r=Object.assign(Object.create(null),t.target.props);r[Wn.mounted.id]=new Nw(n,t.overlay,t.parser),t.target.props=r}return null}get parsedPos(){if(this.baseParse)return 0;let t=this.input.length;for(let n=this.innerDone;n=this.stoppedAt)o=!1;else if(t.hasNode(i)){if(n){let u=n.mounts.find(d=>d.frag.from<=i.from&&d.frag.to>=i.to&&d.mount.overlay);if(u)for(let d of u.mount.overlay){let f=d.from+u.pos,p=d.to+u.pos;f>=i.from&&p<=i.to&&!n.ranges.some(g=>g.fromf)&&n.ranges.push({from:f,to:p})}}o=!1}else if(r&&(s=RWe(r.ranges,i.from,i.to)))o=s!=2;else if(!i.type.isAnonymous&&(a=this.nest(i,this.input))&&(i.fromnew hc(f.from-i.from,f.to-i.from)):null,i.tree,d.length?d[0].from:i.from)),a.overlay?d.length&&(r={ranges:d,depth:0,prev:r}):o=!1}}else n&&(l=n.predicate(i))&&(l===!0&&(l=new hc(i.from,i.to)),l.fromnew hc(d.from-n.start,d.to-n.start)),n.target,u[0].from))),n=n.prev}r&&!--r.depth&&(r=r.prev)}}}}function RWe(e,t,n){for(let r of e){if(r.from>=n)break;if(r.to>t)return r.from<=t&&r.to>=n?2:1}return 0}function rK(e,t,n,r,i,a){if(t=t&&n.enter(r,1,Ai.IgnoreOverlays|Ai.ExcludeBuffers)||n.next(!1)||(this.done=!0)}hasNode(t){if(this.moveTo(t.from),!this.done&&this.cursor.from+this.offset==t.from&&this.cursor.tree)for(let n=this.cursor.tree;;){if(n==t.tree)return!0;if(n.children.length&&n.positions[0]==0&&n.children[0]instanceof Jr)n=n.children[0];else break}return!1}}let NWe=class{constructor(t){var n;if(this.fragments=t,this.curTo=0,this.fragI=0,t.length){let r=this.curFrag=t[0];this.curTo=(n=r.tree.prop(pL))!==null&&n!==void 0?n:r.to,this.inner=new iK(r.tree,-r.offset)}else this.curFrag=this.inner=null}hasNode(t){for(;this.curFrag&&t.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=t.from&&this.curTo>=t.to&&this.inner.hasNode(t)}nextFrag(){var t;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let n=this.curFrag=this.fragments[this.fragI];this.curTo=(t=n.tree.prop(pL))!==null&&t!==void 0?t:n.to,this.inner=new iK(n.tree,-n.offset)}}findMounts(t,n){var r;let i=[];if(this.inner){this.inner.cursor.moveTo(t,1);for(let a=this.inner.cursor.node;a;a=a.parent){let s=(r=a.tree)===null||r===void 0?void 0:r.prop(Wn.mounted);if(s&&s.parser==n)for(let o=this.fragI;o=a.to)break;l.tree==this.curFrag.tree&&i.push({frag:l,pos:a.from-l.offset,mount:s})}}}return i}};function aK(e,t){let n=null,r=t;for(let i=1,a=0;i=o)break;l.to<=s||(n||(r=n=t.slice()),l.fromo&&n.splice(a+1,0,new hc(o,l.to))):l.to>o?n[a--]=new hc(o,l.to):n.splice(a--,1))}}return r}function DWe(e,t,n,r){let i=0,a=0,s=!1,o=!1,l=-1e9,u=[];for(;;){let d=i==e.length?1e9:s?e[i].to:e[i].from,f=a==t.length?1e9:o?t[a].to:t[a].from;if(s!=o){let p=Math.max(l,n),g=Math.min(d,f,r);pnew hc(p.from+r,p.to+r)),f=DWe(t,d,l,u);for(let p=0,g=l;;p++){let O=p==f.length,S=O?u:f[p].from;if(S>g&&n.push(new Yh(g,S,i.tree,-s,a.from>=g||a.openStart,a.to<=S||a.openEnd)),O)break;g=f[p].to}}else n.push(new Yh(l,u,i.tree,-s,a.from>=s||a.openStart,a.to<=o||a.openEnd))}return n}let PWe=0;class cu{constructor(t,n,r,i){this.name=t,this.set=n,this.base=r,this.modified=i,this.id=PWe++}toString(){let{name:t}=this;for(let n of this.modified)n.name&&(t=`${n.name}(${t})`);return t}static define(t,n){let r=typeof t=="string"?t:"?";if(t instanceof cu&&(n=t),n!=null&&n.base)throw new Error("Can not derive from a modified tag");let i=new cu(r,[],null,[]);if(i.set.push(i),n)for(let a of n.set)i.set.push(a);return i}static defineModifier(t){let n=new G3(t);return r=>r.modified.indexOf(n)>-1?r:G3.get(r.base||r,r.modified.concat(n).sort((i,a)=>i.id-a.id))}}let LWe=0;class G3{constructor(t){this.name=t,this.instances=[],this.id=LWe++}static get(t,n){if(!n.length)return t;let r=n[0].instances.find(o=>o.base==t&&MWe(n,o.modified));if(r)return r;let i=[],a=new cu(t.name,i,t,n);for(let o of n)o.instances.push(a);let s=$We(n);for(let o of t.set)if(!o.modified.length)for(let l of s)i.push(G3.get(o,l));return a}}function MWe(e,t){return e.length==t.length&&e.every((n,r)=>n==t[r])}function $We(e){let t=[[]];for(let n=0;nr.length-n.length)}function gO(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let i of n.split(" "))if(i){let a=[],s=2,o=i;for(let f=0;;){if(o=="..."&&f>0&&f+3==i.length){s=1;break}let p=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!p)throw new RangeError("Invalid path: "+i);if(a.push(p[0]=="*"?"":p[0][0]=='"'?JSON.parse(p[0]):p[0]),f+=p[0].length,f==i.length)break;let g=i[f++];if(f==i.length&&g=="!"){s=0;break}if(g!="/")throw new RangeError("Invalid path: "+i);o=i.slice(f)}let l=a.length-1,u=a[l];if(!u)throw new RangeError("Invalid path: "+i);let d=new Y3(r,s,l>0?a.slice(0,l):null);t[u]=d.sort(t[u])}}return Qde.add(t)}const Qde=new Wn;class Y3{constructor(t,n,r,i){this.tags=t,this.mode=n,this.context=r,this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(t){return!t||t.depth{let s=i;for(let o of a)for(let l of o.set){let u=n[l.id];if(u){s=s?s+" "+u:u;break}}return s},scope:r}}function FWe(e,t){let n=null;for(let r of e){let i=r.style(t);i&&(n=n?n+" "+i:i)}return n}function BWe(e,t,n,r=0,i=e.length){let a=new UWe(r,Array.isArray(t)?t:[t],n);a.highlightRange(e.cursor(),r,i,"",a.highlighters),a.flush(i)}class UWe{constructor(t,n,r){this.at=t,this.highlighters=n,this.span=r,this.class=""}startSpan(t,n){n!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=n)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,n,r,i,a){let{type:s,from:o,to:l}=t;if(o>=r||l<=n)return;s.isTop&&(a=this.highlighters.filter(g=>!g.scope||g.scope(s)));let u=i,d=zWe(t)||Y3.empty,f=FWe(a,d.tags);if(f&&(u&&(u+=" "),u+=f,d.mode==1&&(i+=(i?" ":"")+f)),this.startSpan(Math.max(n,o),u),d.opaque)return;let p=t.tree&&t.tree.prop(Wn.mounted);if(p&&p.overlay){let g=t.node.enter(p.overlay[0].from+o,1),O=this.highlighters.filter(T=>!T.scope||T.scope(p.tree.type)),S=t.firstChild();for(let T=0,w=o;;T++){let x=T=k||!t.nextSibling())););if(!x||k>r)break;w=x.to+o,w>n&&(this.highlightRange(g.cursor(),Math.max(n,x.from+o),Math.min(r,w),"",O),this.startSpan(Math.min(r,w),u))}S&&t.parent()}else if(t.firstChild()){p&&(i="");do if(!(t.to<=n)){if(t.from>=r)break;this.highlightRange(t,n,r,i,a),this.startSpan(Math.min(r,t.to),u)}while(t.nextSibling());t.parent()}}}function zWe(e){let t=e.type.prop(Qde);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}const Yt=cu.define,zA=Yt(),u0=Yt(),oK=Yt(u0),lK=Yt(u0),c0=Yt(),jA=Yt(c0),mD=Yt(c0),tf=Yt(),gg=Yt(tf),Kd=Yt(),Jd=Yt(),mL=Yt(),fE=Yt(mL),HA=Yt(),ge={comment:zA,lineComment:Yt(zA),blockComment:Yt(zA),docComment:Yt(zA),name:u0,variableName:Yt(u0),typeName:oK,tagName:Yt(oK),propertyName:lK,attributeName:Yt(lK),className:Yt(u0),labelName:Yt(u0),namespace:Yt(u0),macroName:Yt(u0),literal:c0,string:jA,docString:Yt(jA),character:Yt(jA),attributeValue:Yt(jA),number:mD,integer:Yt(mD),float:Yt(mD),bool:Yt(c0),regexp:Yt(c0),escape:Yt(c0),color:Yt(c0),url:Yt(c0),keyword:Kd,self:Yt(Kd),null:Yt(Kd),atom:Yt(Kd),unit:Yt(Kd),modifier:Yt(Kd),operatorKeyword:Yt(Kd),controlKeyword:Yt(Kd),definitionKeyword:Yt(Kd),moduleKeyword:Yt(Kd),operator:Jd,derefOperator:Yt(Jd),arithmeticOperator:Yt(Jd),logicOperator:Yt(Jd),bitwiseOperator:Yt(Jd),compareOperator:Yt(Jd),updateOperator:Yt(Jd),definitionOperator:Yt(Jd),typeOperator:Yt(Jd),controlOperator:Yt(Jd),punctuation:mL,separator:Yt(mL),bracket:fE,angleBracket:Yt(fE),squareBracket:Yt(fE),paren:Yt(fE),brace:Yt(fE),content:tf,heading:gg,heading1:Yt(gg),heading2:Yt(gg),heading3:Yt(gg),heading4:Yt(gg),heading5:Yt(gg),heading6:Yt(gg),contentSeparator:Yt(tf),list:Yt(tf),quote:Yt(tf),emphasis:Yt(tf),strong:Yt(tf),link:Yt(tf),monospace:Yt(tf),strikethrough:Yt(tf),inserted:Yt(),deleted:Yt(),changed:Yt(),invalid:Yt(),meta:HA,documentMeta:Yt(HA),annotation:Yt(HA),processingInstruction:Yt(HA),definition:cu.defineModifier("definition"),constant:cu.defineModifier("constant"),function:cu.defineModifier("function"),standard:cu.defineModifier("standard"),local:cu.defineModifier("local"),special:cu.defineModifier("special")};for(let e in ge){let t=ge[e];t instanceof cu&&(t.name=e)}Wde([{tag:ge.link,class:"tok-link"},{tag:ge.heading,class:"tok-heading"},{tag:ge.emphasis,class:"tok-emphasis"},{tag:ge.strong,class:"tok-strong"},{tag:ge.keyword,class:"tok-keyword"},{tag:ge.atom,class:"tok-atom"},{tag:ge.bool,class:"tok-bool"},{tag:ge.url,class:"tok-url"},{tag:ge.labelName,class:"tok-labelName"},{tag:ge.inserted,class:"tok-inserted"},{tag:ge.deleted,class:"tok-deleted"},{tag:ge.literal,class:"tok-literal"},{tag:ge.string,class:"tok-string"},{tag:ge.number,class:"tok-number"},{tag:[ge.regexp,ge.escape,ge.special(ge.string)],class:"tok-string2"},{tag:ge.variableName,class:"tok-variableName"},{tag:ge.local(ge.variableName),class:"tok-variableName tok-local"},{tag:ge.definition(ge.variableName),class:"tok-variableName tok-definition"},{tag:ge.special(ge.variableName),class:"tok-variableName2"},{tag:ge.definition(ge.propertyName),class:"tok-propertyName tok-definition"},{tag:ge.typeName,class:"tok-typeName"},{tag:ge.namespace,class:"tok-namespace"},{tag:ge.className,class:"tok-className"},{tag:ge.macroName,class:"tok-macroName"},{tag:ge.propertyName,class:"tok-propertyName"},{tag:ge.operator,class:"tok-operator"},{tag:ge.comment,class:"tok-comment"},{tag:ge.meta,class:"tok-meta"},{tag:ge.invalid,class:"tok-invalid"},{tag:ge.punctuation,class:"tok-punctuation"}]);var gD;const Qg=new Wn;function oB(e){return fn.define({combine:e?t=>t.concat(e):void 0})}const lB=new Wn;class pc{constructor(t,n,r=[],i=""){this.data=t,this.name=i,Dr.prototype.hasOwnProperty("tree")||Object.defineProperty(Dr.prototype,"tree",{get(){return Ri(this)}}),this.parser=n,this.extension=[dm.of(this),Dr.languageData.of((a,s,o)=>{let l=uK(a,s,o),u=l.type.prop(Qg);if(!u)return[];let d=a.facet(u),f=l.type.prop(lB);if(f){let p=l.resolve(s-l.from,o);for(let g of f)if(g.test(p,a)){let O=a.facet(g.facet);return g.type=="replace"?O:O.concat(d)}}return d})].concat(r)}isActiveAt(t,n,r=-1){return uK(t,n,r).type.prop(Qg)==this.data}findRegions(t){let n=t.facet(dm);if((n==null?void 0:n.data)==this.data)return[{from:0,to:t.doc.length}];if(!n||!n.allowsNesting)return[];let r=[],i=(a,s)=>{if(a.prop(Qg)==this.data){r.push({from:s,to:s+a.length});return}let o=a.prop(Wn.mounted);if(o){if(o.tree.prop(Qg)==this.data){if(o.overlay)for(let l of o.overlay)r.push({from:l.from+s,to:l.to+s});else r.push({from:s,to:s+a.length});return}else if(o.overlay){let l=r.length;if(i(o.tree,o.overlay[0].from+s),r.length>l)return}}for(let l=0;lr.isTop?n:void 0)]}),t.name)}configure(t,n){return new Cv(this.data,this.parser.configure(t),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Ri(e){let t=e.field(pc.state,!1);return t?t.tree:Jr.empty}class jWe{constructor(t){this.doc=t,this.cursorPos=0,this.string="",this.cursor=t.iter()}get length(){return this.doc.length}syncTo(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}chunk(t){return this.syncTo(t),this.string}get lineChunks(){return!0}read(t,n){let r=this.cursorPos-this.string.length;return t=this.cursorPos?this.doc.sliceString(t,n):this.string.slice(t-r,n-r)}}let hE=null;class Pw{constructor(t,n,r=[],i,a,s,o,l){this.parser=t,this.state=n,this.fragments=r,this.tree=i,this.treeLen=a,this.viewport=s,this.skipped=o,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(t,n,r){return new Pw(t,n,[],Jr.empty,0,r,[],null)}startParse(){return this.parser.startParse(new jWe(this.state.doc),this.fragments)}work(t,n){return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=Jr.empty&&this.isDone(n??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var r;if(typeof t=="number"){let i=Date.now()+t;t=()=>Date.now()>i}for(this.parse||(this.parse=this.startParse()),n!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>n)&&n=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext(()=>{for(;!(n=this.parse.advance()););}),this.treeLen=t,this.tree=n,this.fragments=this.withoutTempSkipped(Yh.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let n=hE;hE=this;try{return t()}finally{hE=n}}withoutTempSkipped(t){for(let n;n=this.tempSkipped.pop();)t=cK(t,n.from,n.to);return t}changes(t,n){let{fragments:r,tree:i,treeLen:a,viewport:s,skipped:o}=this;if(this.takeTree(),!t.empty){let l=[];if(t.iterChangedRanges((u,d,f,p)=>l.push({fromA:u,toA:d,fromB:f,toB:p})),r=Yh.applyChanges(r,l),i=Jr.empty,a=0,s={from:t.mapPos(s.from,-1),to:t.mapPos(s.to,1)},this.skipped.length){o=[];for(let u of this.skipped){let d=t.mapPos(u.from,1),f=t.mapPos(u.to,-1);dt.from&&(this.fragments=cK(this.fragments,i,a),this.skipped.splice(r--,1))}return this.skipped.length>=n?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,n){this.skipped.push({from:t,to:n})}static getSkippingParser(t){return new class extends sB{createParse(n,r,i){let a=i[0].from,s=i[i.length-1].to;return{parsedPos:a,advance(){let l=hE;if(l){for(let u of i)l.tempSkipped.push(u);t&&(l.scheduleOn=l.scheduleOn?Promise.all([l.scheduleOn,t]):t)}return this.parsedPos=s,new Jr(ls.none,[],[],s-a)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let n=this.fragments;return this.treeLen>=t&&n.length&&n[0].from==0&&n[0].to>=t}static get(){return hE}}function cK(e,t,n){return Yh.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class Rv{constructor(t){this.context=t,this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let n=this.context.changes(t.changes,t.state),r=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),n.viewport.to);return n.work(20,r)||n.takeTree(),new Rv(n)}static init(t){let n=Math.min(3e3,t.doc.length),r=Pw.create(t.facet(dm).parser,t,{from:0,to:n});return r.work(20,n)||r.takeTree(),new Rv(r)}}pc.state=xs.define({create:Rv.init,update(e,t){for(let n of t.effects)if(n.is(pc.setState))return n.value;return t.startState.facet(dm)!=t.state.facet(dm)?Rv.init(t.state):e.apply(t)}});let Vde=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};typeof requestIdleCallback<"u"&&(Vde=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const bD=typeof navigator<"u"&&(!((gD=navigator.scheduling)===null||gD===void 0)&&gD.isInputPending)?()=>navigator.scheduling.isInputPending():null,HWe=fa.fromClass(class{constructor(t){this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(t){let n=this.view.state.field(pc.state).context;(n.updateViewport(t.view.viewport)||this.view.viewport.to>n.treeLen)&&this.scheduleWork(),(t.docChanged||t.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(n)}scheduleWork(){if(this.working)return;let{state:t}=this.view,n=t.field(pc.state);(n.tree!=n.context.tree||!n.context.isDone(t.doc.length))&&(this.working=Vde(this.work))}work(t){this.working=null;let n=Date.now();if(this.chunkEndi+1e3,l=a.context.work(()=>bD&&bD()||Date.now()>s,i+(o?0:1e5));this.chunkBudget-=Date.now()-n,(l||this.chunkBudget<=0)&&(a.context.takeTree(),this.view.dispatch({effects:pc.setState.of(new Rv(a.context))})),this.chunkBudget>0&&!(l&&!o)&&this.scheduleWork(),this.checkAsyncSchedule(a.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(()=>this.scheduleWork()).catch(n=>Oc(this.view.state,n)).then(()=>this.workScheduled--),t.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),dm=fn.define({combine(e){return e.length?e[0]:null},enables:e=>[pc.state,HWe,en.contentAttributes.compute([e],t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]});class Lw{constructor(t,n=[]){this.language=t,this.support=n,this.extension=[t,n]}}class Z3{constructor(t,n,r,i,a,s=void 0){this.name=t,this.alias=n,this.extensions=r,this.filename=i,this.loadFunc=a,this.support=s,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(t=>this.support=t,t=>{throw this.loading=null,t}))}static of(t){let{load:n,support:r}=t;if(!n){if(!r)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");n=()=>Promise.resolve(r)}return new Z3(t.name,(t.alias||[]).concat(t.name).map(i=>i.toLowerCase()),t.extensions||[],t.filename,n,r)}static matchFilename(t,n){for(let i of t)if(i.filename&&i.filename.test(n))return i;let r=/\.([^.]+)$/.exec(n);if(r){for(let i of t)if(i.extensions.indexOf(r[1])>-1)return i}return null}static matchLanguageName(t,n,r=!0){n=n.toLowerCase();for(let i of t)if(i.alias.some(a=>a==n))return i;if(r)for(let i of t)for(let a of i.alias){let s=n.indexOf(a);if(s>-1&&(a.length>2||!/\w/.test(n[s-1])&&!/\w/.test(n[s+a.length])))return i}return null}}const QWe=fn.define(),QT=fn.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some(n=>n!=t[0]))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function X3(e){let t=e.facet(QT);return t.charCodeAt(0)==9?e.tabSize*t.length:t.length}function Mw(e,t){let n="",r=e.tabSize,i=e.facet(QT)[0];if(i==" "){for(;t>=r;)n+=" ",t-=r;i=" "}for(let a=0;a=t?WWe(e,n,t):null}class NR{constructor(t,n={}){this.state=t,this.options=n,this.unit=X3(t)}lineAt(t,n=1){let r=this.state.doc.lineAt(t),{simulateBreak:i,simulateDoubleBreak:a}=this.options;return i!=null&&i>=r.from&&i<=r.to?a&&i==t?{text:"",from:t}:(n<0?i-1&&(a+=s-this.countColumn(r,r.search(/\S|$/))),a}countColumn(t,n=t.length){return Bf(t,this.state.tabSize,n)}lineIndent(t,n=1){let{text:r,from:i}=this.lineAt(t,n),a=this.options.overrideIndentation;if(a){let s=a(i);if(s>-1)return s}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const WT=new Wn;function WWe(e,t,n){let r=t.resolveStack(n),i=r.node.enterUnfinishedNodesBefore(n);if(i!=r.node){let a=[];for(let s=i;s!=r.node;s=s.parent)a.push(s);for(let s=a.length-1;s>=0;s--)r={node:a[s],next:r}}return qde(r,e,n)}function qde(e,t,n){for(let r=e;r;r=r.next){let i=qWe(r.node);if(i)return i(cB.create(t,n,r))}return 0}function VWe(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}function qWe(e){let t=e.type.prop(WT);if(t)return t;let n=e.firstChild,r;if(n&&(r=n.type.prop(Wn.closedBy))){let i=e.lastChild,a=i&&r.indexOf(i.name)>-1;return s=>Gde(s,!0,1,void 0,a&&!VWe(s)?i.from:void 0)}return e.parent==null?GWe:null}function GWe(){return 0}class cB extends NR{constructor(t,n,r){super(t.state,t.options),this.base=t,this.pos=n,this.context=r}get node(){return this.context.node}static create(t,n,r){return new cB(t,n,r)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(t){let n=this.state.doc.lineAt(t.from);for(;;){let r=t.resolve(n.from);for(;r.parent&&r.parent.from==r.from;)r=r.parent;if(YWe(r,t))break;n=this.state.doc.lineAt(r.from)}return this.lineIndent(n.from)}continue(){return qde(this.context.next,this.base,this.pos)}}function YWe(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function ZWe(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let i=e.options.simulateBreak,a=e.state.doc.lineAt(n.from),s=i==null||i<=a.from?a.to:Math.min(a.to,i);for(let o=n.to;;){let l=t.childAfter(o);if(!l||l==r)return null;if(!l.type.isSkipped)return l.fromGde(r,t,n,e)}function Gde(e,t,n,r,i){let a=e.textAfter,s=a.match(/^\s*/)[0].length,o=r&&a.slice(s,s+r.length)==r||i==e.pos+s,l=t?ZWe(e):null;return l?o?e.column(l.from):e.column(l.to):e.baseIndent+(o?0:e.unit*n)}const KWe=e=>e.baseIndent;function f_({except:e,units:t=1}={}){return n=>{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}const JWe=200;function eVe(){return Dr.transactionFilter.of(e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:r}=e.newSelection.main,i=n.lineAt(r);if(r>i.from+JWe)return e;let a=n.sliceString(i.from,r);if(!t.some(u=>u.test(a)))return e;let{state:s}=e,o=-1,l=[];for(let{head:u}of s.selection.ranges){let d=s.doc.lineAt(u);if(d.from==o)continue;o=d.from;let f=uB(s,d.from);if(f==null)continue;let p=/^\s*/.exec(d.text)[0],g=Mw(s,f);p!=g&&l.push({from:d.from,to:d.from+p.length,insert:g})}return l.length?[e,{changes:l,sequential:!0}]:e})}const Yde=fn.define(),bO=new Wn;function Zde(e){let t=e.firstChild,n=e.lastChild;return t&&t.ton)continue;if(a&&o.from=t&&u.to>n&&(a=u)}}return a}function nVe(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}function K3(e,t,n){for(let r of e.facet(Yde)){let i=r(e,t,n);if(i)return i}return tVe(e,t,n)}function Xde(e,t){let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);return n>=r?void 0:{from:n,to:r}}const DR=er.define({map:Xde}),VT=er.define({map:Xde});function Kde(e){let t=[];for(let{head:n}of e.state.selection.ranges)t.some(r=>r.from<=n&&r.to>=n)||t.push(e.lineBlockAt(n));return t}const k1=xs.define({create(){return vn.none},update(e,t){e=e.map(t.changes);for(let n of t.effects)if(n.is(DR)&&!rVe(e,n.value.from,n.value.to)){let{preparePlaceholder:r}=t.state.facet(tfe),i=r?vn.replace({widget:new cVe(r(t.state,n.value))}):dK;e=e.update({add:[i.range(n.value.from,n.value.to)]})}else n.is(VT)&&(e=e.update({filter:(r,i)=>n.value.from!=r||n.value.to!=i,filterFrom:n.value.from,filterTo:n.value.to}));if(t.selection){let n=!1,{head:r}=t.selection.main;e.between(r,r,(i,a)=>{ir&&(n=!0)}),n&&(e=e.update({filterFrom:r,filterTo:r,filter:(i,a)=>a<=r||i>=r}))}return e},provide:e=>en.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,(r,i)=>{n.push(r,i)}),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let n=0;n{(!i||i.from>a)&&(i={from:a,to:s})}),i}function rVe(e,t,n){let r=!1;return e.between(t,t,(i,a)=>{i==t&&a==n&&(r=!0)}),r}function Jde(e,t){return e.field(k1,!1)?t:t.concat(er.appendConfig.of(nfe()))}const iVe=e=>{for(let t of Kde(e)){let n=K3(e.state,t.from,t.to);if(n)return e.dispatch({effects:Jde(e.state,[DR.of(n),efe(e,n)])}),!0}return!1},aVe=e=>{if(!e.state.field(k1,!1))return!1;let t=[];for(let n of Kde(e)){let r=J3(e.state,n.from,n.to);r&&t.push(VT.of(r),efe(e,r,!1))}return t.length&&e.dispatch({effects:t}),t.length>0};function efe(e,t,n=!0){let r=e.state.doc.lineAt(t.from).number,i=e.state.doc.lineAt(t.to).number;return en.announce.of(`${e.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${e.state.phrase("to")} ${i}.`)}const sVe=e=>{let{state:t}=e,n=[];for(let r=0;r{let t=e.state.field(k1,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,(r,i)=>{n.push(VT.of({from:r,to:i}))}),e.dispatch({effects:n}),!0},lVe=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:iVe},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:aVe},{key:"Ctrl-Alt-[",run:sVe},{key:"Ctrl-Alt-]",run:oVe}],uVe={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},tfe=fn.define({combine(e){return Vf(e,uVe)}});function nfe(e){return[k1,hVe]}function rfe(e,t){let{state:n}=e,r=n.facet(tfe),i=s=>{let o=e.lineBlockAt(e.posAtDOM(s.target)),l=J3(e.state,o.from,o.to);l&&e.dispatch({effects:VT.of(l)}),s.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(e,i,t);let a=document.createElement("span");return a.textContent=r.placeholderText,a.setAttribute("aria-label",n.phrase("folded code")),a.title=n.phrase("unfold"),a.className="cm-foldPlaceholder",a.onclick=i,a}const dK=vn.replace({widget:new class extends Ld{toDOM(e){return rfe(e,null)}}});class cVe extends Ld{constructor(t){super(),this.value=t}eq(t){return this.value==t.value}toDOM(t){return rfe(t,this.value)}}const dVe={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class yD extends cp{constructor(t,n){super(),this.config=t,this.open=n}eq(t){return this.config==t.config&&this.open==t.open}toDOM(t){if(this.config.markerDOM)return this.config.markerDOM(this.open);let n=document.createElement("span");return n.textContent=this.open?this.config.openText:this.config.closedText,n.title=t.state.phrase(this.open?"Fold line":"Unfold line"),n}}function fVe(e={}){let t=Object.assign(Object.assign({},dVe),e),n=new yD(t,!0),r=new yD(t,!1),i=fa.fromClass(class{constructor(s){this.from=s.viewport.from,this.markers=this.buildMarkers(s)}update(s){(s.docChanged||s.viewportChanged||s.startState.facet(dm)!=s.state.facet(dm)||s.startState.field(k1,!1)!=s.state.field(k1,!1)||Ri(s.startState)!=Ri(s.state)||t.foldingChanged(s))&&(this.markers=this.buildMarkers(s.view))}buildMarkers(s){let o=new sm;for(let l of s.viewportLineBlocks){let u=J3(s.state,l.from,l.to)?r:K3(s.state,l.from,l.to)?n:null;u&&o.add(l.from,l.from,u)}return o.finish()}}),{domEventHandlers:a}=t;return[i,dWe({class:"cm-foldGutter",markers(s){var o;return((o=s.plugin(i))===null||o===void 0?void 0:o.markers)||Cr.empty},initialSpacer(){return new yD(t,!1)},domEventHandlers:Object.assign(Object.assign({},a),{click:(s,o,l)=>{if(a.click&&a.click(s,o,l))return!0;let u=J3(s.state,o.from,o.to);if(u)return s.dispatch({effects:VT.of(u)}),!0;let d=K3(s.state,o.from,o.to);return d?(s.dispatch({effects:DR.of(d)}),!0):!1}})}),nfe()]}const hVe=en.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class qT{constructor(t,n){this.specs=t;let r;function i(o){let l=om.newName();return(r||(r=Object.create(null)))["."+l]=o,l}const a=typeof n.all=="string"?n.all:n.all?i(n.all):void 0,s=n.scope;this.scope=s instanceof pc?o=>o.prop(Qg)==s.data:s?o=>o==s:void 0,this.style=Wde(t.map(o=>({tag:o.tag,class:o.class||i(Object.assign({},o,{tag:null}))})),{all:a}).style,this.module=r?new om(r):null,this.themeType=n.themeType}static define(t,n){return new qT(t,n||{})}}const gL=fn.define(),ife=fn.define({combine(e){return e.length?[e[0]]:null}});function vD(e){let t=e.facet(gL);return t.length?t:e.facet(ife)}function afe(e,t){let n=[mVe],r;return e instanceof qT&&(e.module&&n.push(en.styleModule.of(e.module)),r=e.themeType),t!=null&&t.fallback?n.push(ife.of(e)):r?n.push(gL.computeN([en.darkTheme],i=>i.facet(en.darkTheme)==(r=="dark")?[e]:[])):n.push(gL.of(e)),n}class pVe{constructor(t){this.markCache=Object.create(null),this.tree=Ri(t.state),this.decorations=this.buildDeco(t,vD(t.state)),this.decoratedTo=t.viewport.to}update(t){let n=Ri(t.state),r=vD(t.state),i=r!=vD(t.startState),{viewport:a}=t.view,s=t.changes.mapPos(this.decoratedTo,1);n.length=a.to?(this.decorations=this.decorations.map(t.changes),this.decoratedTo=s):(n!=this.tree||t.viewportChanged||i)&&(this.tree=n,this.decorations=this.buildDeco(t.view,r),this.decoratedTo=a.to)}buildDeco(t,n){if(!n||!this.tree.length)return vn.none;let r=new sm;for(let{from:i,to:a}of t.visibleRanges)BWe(this.tree,n,(s,o,l)=>{r.add(s,o,this.markCache[l]||(this.markCache[l]=vn.mark({class:l})))},i,a);return r.finish()}}const mVe=Tp.high(fa.fromClass(pVe,{decorations:e=>e.decorations})),gVe=qT.define([{tag:ge.meta,color:"#404740"},{tag:ge.link,textDecoration:"underline"},{tag:ge.heading,textDecoration:"underline",fontWeight:"bold"},{tag:ge.emphasis,fontStyle:"italic"},{tag:ge.strong,fontWeight:"bold"},{tag:ge.strikethrough,textDecoration:"line-through"},{tag:ge.keyword,color:"#708"},{tag:[ge.atom,ge.bool,ge.url,ge.contentSeparator,ge.labelName],color:"#219"},{tag:[ge.literal,ge.inserted],color:"#164"},{tag:[ge.string,ge.deleted],color:"#a11"},{tag:[ge.regexp,ge.escape,ge.special(ge.string)],color:"#e40"},{tag:ge.definition(ge.variableName),color:"#00f"},{tag:ge.local(ge.variableName),color:"#30a"},{tag:[ge.typeName,ge.namespace],color:"#085"},{tag:ge.className,color:"#167"},{tag:[ge.special(ge.variableName),ge.macroName],color:"#256"},{tag:ge.definition(ge.propertyName),color:"#00c"},{tag:ge.comment,color:"#940"},{tag:ge.invalid,color:"#f00"}]),bVe=en.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),sfe=1e4,ofe="()[]{}",lfe=fn.define({combine(e){return Vf(e,{afterCursor:!0,brackets:ofe,maxScanDistance:sfe,renderMatch:OVe})}}),yVe=vn.mark({class:"cm-matchingBracket"}),vVe=vn.mark({class:"cm-nonmatchingBracket"});function OVe(e){let t=[],n=e.matched?yVe:vVe;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}const SVe=xs.define({create(){return vn.none},update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],r=t.state.facet(lfe);for(let i of t.state.selection.ranges){if(!i.empty)continue;let a=Sf(t.state,i.head,-1,r)||i.head>0&&Sf(t.state,i.head-1,1,r)||r.afterCursor&&(Sf(t.state,i.head,1,r)||i.headen.decorations.from(e)}),EVe=[SVe,bVe];function wVe(e={}){return[lfe.of(e),EVe]}const ufe=new Wn;function bL(e,t,n){let r=e.prop(t<0?Wn.openedBy:Wn.closedBy);if(r)return r;if(e.name.length==1){let i=n.indexOf(e.name);if(i>-1&&i%2==(t<0?1:0))return[n[i+t]]}return null}function yL(e){let t=e.type.prop(ufe);return t?t(e.node):e}function Sf(e,t,n,r={}){let i=r.maxScanDistance||sfe,a=r.brackets||ofe,s=Ri(e),o=s.resolveInner(t,n);for(let l=o;l;l=l.parent){let u=bL(l.type,n,a);if(u&&l.from0?t>=d.from&&td.from&&t<=d.to))return TVe(e,t,n,l,d,u,a)}}return xVe(e,t,n,s,o.type,i,a)}function TVe(e,t,n,r,i,a,s){let o=r.parent,l={from:i.from,to:i.to},u=0,d=o==null?void 0:o.cursor();if(d&&(n<0?d.childBefore(r.from):d.childAfter(r.to)))do if(n<0?d.to<=r.from:d.from>=r.to){if(u==0&&a.indexOf(d.type.name)>-1&&d.from0)return null;let u={from:n<0?t-1:t,to:n>0?t+1:t},d=e.doc.iterRange(t,n>0?e.doc.length:0),f=0;for(let p=0;!d.next().done&&p<=a;){let g=d.value;n<0&&(p+=g.length);let O=t+p*n;for(let S=n>0?0:g.length-1,T=n>0?g.length:-1;S!=T;S+=n){let w=s.indexOf(g[S]);if(!(w<0||r.resolveInner(O+S,1).type!=i))if(w%2==0==n>0)f++;else{if(f==1)return{start:u,end:{from:O+S,to:O+S+1},matched:w>>1==l>>1};f--}}n>0&&(p+=g.length)}return d.done?{start:u,matched:!1}:null}const kVe=Object.create(null),fK=[ls.none],hK=[],pK=Object.create(null),AVe=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])AVe[e]=_Ve(kVe,t);function OD(e,t){hK.indexOf(e)>-1||(hK.push(e),console.warn(t))}function _Ve(e,t){let n=[];for(let o of t.split(" ")){let l=[];for(let u of o.split(".")){let d=e[u]||ge[u];d?typeof d=="function"?l.length?l=l.map(d):OD(u,`Modifier ${u} used at start of tag`):l.length?OD(u,`Tag ${u} used as modifier`):l=Array.isArray(d)?d:[d]:OD(u,`Unknown highlighting tag ${u}`)}for(let u of l)n.push(u)}if(!n.length)return 0;let r=t.replace(/ /g,"_"),i=r+" "+n.map(o=>o.id),a=pK[i];if(a)return a.id;let s=pK[i]=ls.define({id:fK.length,name:r,props:[gO({[r]:n})]});return fK.push(s),s.id}Bi.RTL,Bi.LTR;const CVe=e=>{let t=fB(e.state);return t.line?RVe(e):t.block?NVe(e):!1};function dB(e,t){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let i=e(t,n);return i?(r(n.update(i)),!0):!1}}const RVe=dB(LVe,0),IVe=dB(cfe,0),NVe=dB((e,t)=>cfe(e,t,PVe(t)),0);function fB(e,t=e.selection.main.head){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}const pE=50;function DVe(e,{open:t,close:n},r,i){let a=e.sliceDoc(r-pE,r),s=e.sliceDoc(i,i+pE),o=/\s*$/.exec(a)[0].length,l=/^\s*/.exec(s)[0].length,u=a.length-o;if(a.slice(u-t.length,u)==t&&s.slice(l,l+n.length)==n)return{open:{pos:r-o,margin:o&&1},close:{pos:i+l,margin:l&&1}};let d,f;i-r<=2*pE?d=f=e.sliceDoc(r,i):(d=e.sliceDoc(r,r+pE),f=e.sliceDoc(i-pE,i));let p=/^\s*/.exec(d)[0].length,g=/\s*$/.exec(f)[0].length,O=f.length-g-n.length;return d.slice(p,p+t.length)==t&&f.slice(O,O+n.length)==n?{open:{pos:r+p+t.length,margin:/\s/.test(d.charAt(p+t.length))?1:0},close:{pos:i-g-n.length,margin:/\s/.test(f.charAt(O-1))?1:0}}:null}function PVe(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),i=n.to<=r.to?r:e.doc.lineAt(n.to),a=t.length-1;a>=0&&t[a].to>r.from?t[a].to=i.to:t.push({from:r.from,to:i.to})}return t}function cfe(e,t,n=t.selection.ranges){let r=n.map(a=>fB(t,a.from).block);if(!r.every(a=>a))return null;let i=n.map((a,s)=>DVe(t,r[s],a.from,a.to));if(e!=2&&!i.every(a=>a))return{changes:t.changes(n.map((a,s)=>i[s]?[]:[{from:a.from,insert:r[s].open+" "},{from:a.to,insert:" "+r[s].close}]))};if(e!=1&&i.some(a=>a)){let a=[];for(let s=0,o;si&&(a==s||s>d.from)){i=d.from;let f=fB(t,u).line;if(!f)continue;let p=/^\s*/.exec(d.text)[0].length,g=p==d.length,O=d.text.slice(p,p+f.length)==f?p:-1;pa.comment<0&&(!a.empty||a.single))){let a=[];for(let{line:o,token:l,indent:u,empty:d,single:f}of r)(f||!d)&&a.push({from:o.from+u,insert:l+" "});let s=t.changes(a);return{changes:s,selection:t.selection.map(s,1)}}else if(e!=1&&r.some(a=>a.comment>=0)){let a=[];for(let{line:s,comment:o,token:l}of r)if(o>=0){let u=s.from+o,d=u+l.length;s.text[d-s.from]==" "&&d++,a.push({from:u,to:d})}return{changes:a}}return null}const vL=Pd.define(),MVe=Pd.define(),$Ve=fn.define(),dfe=fn.define({combine(e){return Vf(e,{minDepth:100,newGroupDelay:500},{minDepth:Math.max,newGroupDelay:Math.min})}});function FVe(e){let t=0;return e.iterChangedRanges((n,r)=>t=r),t}const ffe=xs.define({create(){return Ef.empty},update(e,t){let n=t.state.facet(dfe),r=t.annotation(vL);if(r){let l=t.docChanged?dt.single(FVe(t.changes)):void 0,u=xl.fromTransaction(t,l),d=r.side,f=d==0?e.undone:e.done;return u?f=eC(f,f.length,n.minDepth,u):f=mfe(f,t.startState.selection),new Ef(d==0?r.rest:f,d==0?f:r.rest)}let i=t.annotation(MVe);if((i=="full"||i=="before")&&(e=e.isolate()),t.annotation(os.addToHistory)===!1)return t.changes.empty?e:e.addMapping(t.changes.desc);let a=xl.fromTransaction(t),s=t.annotation(os.time),o=t.annotation(os.userEvent);return a?e=e.addChanges(a,s,o,n.newGroupDelay,n.minDepth):t.selection&&(e=e.addSelection(t.startState.selection,s,o,n.newGroupDelay)),(i=="full"||i=="after")&&(e=e.isolate()),e},toJSON(e){return{done:e.done.map(t=>t.toJSON()),undone:e.undone.map(t=>t.toJSON())}},fromJSON(e){return new Ef(e.done.map(xl.fromJSON),e.undone.map(xl.fromJSON))}});function BVe(e={}){return[ffe,dfe.of(e),en.domEventHandlers({beforeinput(t,n){let r=t.inputType=="historyUndo"?hfe:t.inputType=="historyRedo"?OL:null;return r?(t.preventDefault(),r(n)):!1}})]}function PR(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let i=n.field(ffe,!1);if(!i)return!1;let a=i.pop(e,n,t);return a?(r(a),!0):!1}}const hfe=PR(0,!1),OL=PR(1,!1),UVe=PR(0,!0),zVe=PR(1,!0);class xl{constructor(t,n,r,i,a){this.changes=t,this.effects=n,this.mapped=r,this.startSelection=i,this.selectionsAfter=a}setSelAfter(t){return new xl(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){var t,n,r;return{changes:(t=this.changes)===null||t===void 0?void 0:t.toJSON(),mapped:(n=this.mapped)===null||n===void 0?void 0:n.toJSON(),startSelection:(r=this.startSelection)===null||r===void 0?void 0:r.toJSON(),selectionsAfter:this.selectionsAfter.map(i=>i.toJSON())}}static fromJSON(t){return new xl(t.changes&&ns.fromJSON(t.changes),[],t.mapped&&Nf.fromJSON(t.mapped),t.startSelection&&dt.fromJSON(t.startSelection),t.selectionsAfter.map(dt.fromJSON))}static fromTransaction(t,n){let r=mc;for(let i of t.startState.facet($Ve)){let a=i(t);a.length&&(r=r.concat(a))}return!r.length&&t.changes.empty?null:new xl(t.changes.invert(t.startState.doc),r,void 0,n||t.startState.selection,mc)}static selection(t){return new xl(void 0,mc,void 0,void 0,t)}}function eC(e,t,n,r){let i=t+1>n+20?t-n-1:0,a=e.slice(i,t);return a.push(r),a}function jVe(e,t){let n=[],r=!1;return e.iterChangedRanges((i,a)=>n.push(i,a)),t.iterChangedRanges((i,a,s,o)=>{for(let l=0;l=u&&s<=d&&(r=!0)}}),r}function HVe(e,t){return e.ranges.length==t.ranges.length&&e.ranges.filter((n,r)=>n.empty!=t.ranges[r].empty).length===0}function pfe(e,t){return e.length?t.length?e.concat(t):e:t}const mc=[],QVe=200;function mfe(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-QVe));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),eC(e,e.length-1,1e9,n.setSelAfter(r)))}else return[xl.selection([t])]}function WVe(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function SD(e,t){if(!e.length)return e;let n=e.length,r=mc;for(;n;){let i=VVe(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let a=e.slice(0,n);return a[n-1]=i,a}else t=i.mapped,n--,r=i.selectionsAfter}return r.length?[xl.selection(r)]:mc}function VVe(e,t,n){let r=pfe(e.selectionsAfter.length?e.selectionsAfter.map(o=>o.map(t)):mc,n);if(!e.changes)return xl.selection(r);let i=e.changes.map(t),a=t.mapDesc(e.changes,!0),s=e.mapped?e.mapped.composeDesc(a):a;return new xl(i,er.mapEffects(e.effects,t),s,e.startSelection.map(a),r)}const qVe=/^(input\.type|delete)($|\.)/;class Ef{constructor(t,n,r=0,i=void 0){this.done=t,this.undone=n,this.prevTime=r,this.prevUserEvent=i}isolate(){return this.prevTime?new Ef(this.done,this.undone):this}addChanges(t,n,r,i,a){let s=this.done,o=s[s.length-1];return o&&o.changes&&!o.changes.empty&&t.changes&&(!r||qVe.test(r))&&(!o.selectionsAfter.length&&n-this.prevTime0&&n-this.prevTimen.empty?e.moveByChar(n,t):LR(n,t))}function Eo(e){return e.textDirectionAt(e.state.selection.main.head)==Bi.LTR}const bfe=e=>gfe(e,!Eo(e)),yfe=e=>gfe(e,Eo(e));function vfe(e,t){return Md(e,n=>n.empty?e.moveByGroup(n,t):LR(n,t))}const YVe=e=>vfe(e,!Eo(e)),ZVe=e=>vfe(e,Eo(e));function XVe(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function MR(e,t,n){let r=Ri(e).resolveInner(t.head),i=n?Wn.closedBy:Wn.openedBy;for(let l=t.head;;){let u=n?r.childAfter(l):r.childBefore(l);if(!u)break;XVe(e,u,i)?r=u:l=n?u.to:u.from}let a=r.type.prop(i),s,o;return a&&(s=n?Sf(e,r.from,1):Sf(e,r.to,-1))&&s.matched?o=n?s.end.to:s.end.from:o=n?r.to:r.from,dt.cursor(o,n?-1:1)}const KVe=e=>Md(e,t=>MR(e.state,t,!Eo(e))),JVe=e=>Md(e,t=>MR(e.state,t,Eo(e)));function Ofe(e,t){return Md(e,n=>{if(!n.empty)return LR(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)})}const Sfe=e=>Ofe(e,!1),Efe=e=>Ofe(e,!0);function wfe(e){return Math.max(e.defaultLineHeight,Math.min(e.dom.clientHeight,innerHeight)-5)}function Tfe(e,t){let{state:n}=e,r=yO(n.selection,o=>o.empty?e.moveVertically(o,t,wfe(e)):LR(o,t));if(r.eq(n.selection))return!1;let i=e.coordsAtPos(n.selection.main.head),a=e.scrollDOM.getBoundingClientRect(),s;return i&&i.top>a.top&&i.bottomTfe(e,!1),SL=e=>Tfe(e,!0);function wm(e,t,n){let r=e.lineBlockAt(t.head),i=e.moveToLineBoundary(t,n);if(i.head==t.head&&i.head!=(n?r.to:r.from)&&(i=e.moveToLineBoundary(t,n,!1)),!n&&i.head==r.from&&r.length){let a=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;a&&t.head!=r.from+a&&(i=dt.cursor(r.from+a))}return i}const eqe=e=>Md(e,t=>wm(e,t,!0)),tqe=e=>Md(e,t=>wm(e,t,!1)),nqe=e=>Md(e,t=>wm(e,t,!Eo(e))),rqe=e=>Md(e,t=>wm(e,t,Eo(e))),iqe=e=>Md(e,t=>dt.cursor(e.lineBlockAt(t.head).from,1)),aqe=e=>Md(e,t=>dt.cursor(e.lineBlockAt(t.head).to,-1));function sqe(e,t,n){let r=!1,i=yO(e.selection,a=>{let s=Sf(e,a.head,-1)||Sf(e,a.head,1)||a.head>0&&Sf(e,a.head-1,1)||a.headsqe(e,t);function Bc(e,t){let n=yO(e.state.selection,r=>{let i=t(r);return dt.range(r.anchor,i.head,i.goalColumn)});return n.eq(e.state.selection)?!1:(e.dispatch(qf(e.state,n)),!0)}function xfe(e,t){return Bc(e,n=>e.moveByChar(n,t))}const kfe=e=>xfe(e,!Eo(e)),Afe=e=>xfe(e,Eo(e));function _fe(e,t){return Bc(e,n=>e.moveByGroup(n,t))}const lqe=e=>_fe(e,!Eo(e)),uqe=e=>_fe(e,Eo(e)),cqe=e=>Bc(e,t=>MR(e.state,t,!Eo(e))),dqe=e=>Bc(e,t=>MR(e.state,t,Eo(e)));function Cfe(e,t){return Bc(e,n=>e.moveVertically(n,t))}const Rfe=e=>Cfe(e,!1),Ife=e=>Cfe(e,!0);function Nfe(e,t){return Bc(e,n=>e.moveVertically(n,t,wfe(e)))}const gK=e=>Nfe(e,!1),bK=e=>Nfe(e,!0),fqe=e=>Bc(e,t=>wm(e,t,!0)),hqe=e=>Bc(e,t=>wm(e,t,!1)),pqe=e=>Bc(e,t=>wm(e,t,!Eo(e))),mqe=e=>Bc(e,t=>wm(e,t,Eo(e))),gqe=e=>Bc(e,t=>dt.cursor(e.lineBlockAt(t.head).from)),bqe=e=>Bc(e,t=>dt.cursor(e.lineBlockAt(t.head).to)),yK=({state:e,dispatch:t})=>(t(qf(e,{anchor:0})),!0),vK=({state:e,dispatch:t})=>(t(qf(e,{anchor:e.doc.length})),!0),OK=({state:e,dispatch:t})=>(t(qf(e,{anchor:e.selection.main.anchor,head:0})),!0),SK=({state:e,dispatch:t})=>(t(qf(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0),yqe=({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0),vqe=({state:e,dispatch:t})=>{let n=FR(e).map(({from:r,to:i})=>dt.range(r,Math.min(i+1,e.doc.length)));return t(e.update({selection:dt.create(n),userEvent:"select"})),!0},Oqe=({state:e,dispatch:t})=>{let n=yO(e.selection,r=>{var i;let a=Ri(e).resolveInner(r.head,1);for(;!(a.from=r.to||a.to>r.to&&a.from<=r.from||!(!((i=a.parent)===null||i===void 0)&&i.parent));)a=a.parent;return dt.range(a.to,a.from)});return t(qf(e,n)),!0},Sqe=({state:e,dispatch:t})=>{let n=e.selection,r=null;return n.ranges.length>1?r=dt.create([n.main]):n.main.empty||(r=dt.create([dt.cursor(n.main.head)])),r?(t(qf(e,r)),!0):!1};function $R(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:r}=e,i=r.changeByRange(a=>{let{from:s,to:o}=a;if(s==o){let l=t(s);ls&&(n="delete.forward",l=QA(e,l,!0)),s=Math.min(s,l),o=Math.max(o,l)}else s=QA(e,s,!1),o=QA(e,o,!0);return s==o?{range:a}:{changes:{from:s,to:o},range:dt.cursor(s)}});return i.changes.empty?!1:(e.dispatch(r.update(i,{scrollIntoView:!0,userEvent:n,effects:n=="delete.selection"?en.announce.of(r.phrase("Selection deleted")):void 0})),!0)}function QA(e,t,n){if(e instanceof en)for(let r of e.state.facet(en.atomicRanges).map(i=>i(e)))r.between(t,t,(i,a)=>{it&&(t=n?a:i)});return t}const Dfe=(e,t)=>$R(e,n=>{let{state:r}=e,i=r.doc.lineAt(n),a,s;if(!t&&n>i.from&&nDfe(e,!1),Pfe=e=>Dfe(e,!0),Lfe=(e,t)=>$R(e,n=>{let r=n,{state:i}=e,a=i.doc.lineAt(r),s=i.charCategorizer(r);for(let o=null;;){if(r==(t?a.to:a.from)){r==n&&a.number!=(t?i.doc.lines:1)&&(r+=t?1:-1);break}let l=mo(a.text,r-a.from,t)+a.from,u=a.text.slice(Math.min(r,l)-a.from,Math.max(r,l)-a.from),d=s(u);if(o!=null&&d!=o)break;(u!=" "||r!=n)&&(o=d),r=l}return r}),Mfe=e=>Lfe(e,!1),Eqe=e=>Lfe(e,!0),$fe=e=>$R(e,t=>{let n=e.lineBlockAt(t).to;return t$R(e,t=>{let n=e.lineBlockAt(t).from;return t>n?n:Math.max(0,t-1)}),Tqe=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(r=>({changes:{from:r.from,to:r.to,insert:Er.of(["",""])},range:dt.cursor(r.from)}));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0},xqe=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(r=>{if(!r.empty||r.from==0||r.from==e.doc.length)return{range:r};let i=r.from,a=e.doc.lineAt(i),s=i==a.from?i-1:mo(a.text,i-a.from,!1)+a.from,o=i==a.to?i+1:mo(a.text,i-a.from,!0)+a.from;return{changes:{from:s,to:o,insert:e.doc.slice(i,o).append(e.doc.slice(s,i))},range:dt.cursor(o)}});return n.changes.empty?!1:(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function FR(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),a=e.doc.lineAt(r.to);if(!r.empty&&r.to==a.from&&(a=e.doc.lineAt(r.to-1)),n>=i.number){let s=t[t.length-1];s.to=a.to,s.ranges.push(r)}else t.push({from:i.from,to:a.to,ranges:[r]});n=a.number+1}return t}function Ffe(e,t,n){if(e.readOnly)return!1;let r=[],i=[];for(let a of FR(e)){if(n?a.to==e.doc.length:a.from==0)continue;let s=e.doc.lineAt(n?a.to+1:a.from-1),o=s.length+1;if(n){r.push({from:a.to,to:s.to},{from:a.from,insert:s.text+e.lineBreak});for(let l of a.ranges)i.push(dt.range(Math.min(e.doc.length,l.anchor+o),Math.min(e.doc.length,l.head+o)))}else{r.push({from:s.from,to:a.from},{from:a.to,insert:e.lineBreak+s.text});for(let l of a.ranges)i.push(dt.range(l.anchor-o,l.head-o))}}return r.length?(t(e.update({changes:r,scrollIntoView:!0,selection:dt.create(i,e.selection.mainIndex),userEvent:"move.line"})),!0):!1}const kqe=({state:e,dispatch:t})=>Ffe(e,t,!1),Aqe=({state:e,dispatch:t})=>Ffe(e,t,!0);function Bfe(e,t,n){if(e.readOnly)return!1;let r=[];for(let i of FR(e))n?r.push({from:i.from,insert:e.doc.slice(i.from,i.to)+e.lineBreak}):r.push({from:i.to,insert:e.lineBreak+e.doc.slice(i.from,i.to)});return t(e.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const _qe=({state:e,dispatch:t})=>Bfe(e,t,!1),Cqe=({state:e,dispatch:t})=>Bfe(e,t,!0),Rqe=e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(FR(t).map(({from:i,to:a})=>(i>0?i--:ae.moveVertically(i,!0)).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0};function Iqe(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n=Ri(e).resolveInner(t),r=n.childBefore(t),i=n.childAfter(t),a;return r&&i&&r.to<=t&&i.from>=t&&(a=r.type.prop(Wn.closedBy))&&a.indexOf(i.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(i.from).from?{from:r.to,to:i.from}:null}const Nqe=Ufe(!1),Dqe=Ufe(!0);function Ufe(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=t.changeByRange(i=>{let{from:a,to:s}=i,o=t.doc.lineAt(a),l=!e&&a==s&&Iqe(t,a);e&&(a=s=(s<=o.to?o:t.doc.lineAt(s)).to);let u=new NR(t,{simulateBreak:a,simulateDoubleBreak:!!l}),d=uB(u,a);for(d==null&&(d=/^\s*/.exec(t.doc.lineAt(a).text)[0].length);so.from&&a{let i=[];for(let s=r.from;s<=r.to;){let o=e.doc.lineAt(s);o.number>n&&(r.empty||r.to>o.from)&&(t(o,i,r),n=o.number),s=o.to+1}let a=e.changes(i);return{changes:i,range:dt.range(a.mapPos(r.anchor,1),a.mapPos(r.head,1))}})}const Pqe=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new NR(e,{overrideIndentation:a=>{let s=n[a];return s??-1}}),i=hB(e,(a,s,o)=>{let l=uB(r,a.from);if(l==null)return;/\S/.test(a.text)||(l=0);let u=/^\s*/.exec(a.text)[0],d=Mw(e,l);(u!=d||o.frome.readOnly?!1:(t(e.update(hB(e,(n,r)=>{r.push({from:n.from,insert:e.facet(QT)})}),{userEvent:"input.indent"})),!0),jfe=({state:e,dispatch:t})=>e.readOnly?!1:(t(e.update(hB(e,(n,r)=>{let i=/^\s*/.exec(n.text)[0];if(!i)return;let a=Bf(i,e.tabSize),s=0,o=Mw(e,Math.max(0,a-X3(e)));for(;s({mac:e.key,run:e.run,shift:e.shift}))),$qe=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:KVe,shift:cqe},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:JVe,shift:dqe},{key:"Alt-ArrowUp",run:kqe},{key:"Shift-Alt-ArrowUp",run:_qe},{key:"Alt-ArrowDown",run:Aqe},{key:"Shift-Alt-ArrowDown",run:Cqe},{key:"Escape",run:Sqe},{key:"Mod-Enter",run:Dqe},{key:"Alt-l",mac:"Ctrl-l",run:vqe},{key:"Mod-i",run:Oqe,preventDefault:!0},{key:"Mod-[",run:jfe},{key:"Mod-]",run:zfe},{key:"Mod-Alt-\\",run:Pqe},{key:"Shift-Mod-k",run:Rqe},{key:"Shift-Mod-\\",run:oqe},{key:"Mod-/",run:CVe},{key:"Alt-A",run:IVe}].concat(Mqe),Fqe={key:"Tab",run:zfe,shift:jfe};function xi(){var e=arguments[0];typeof e=="string"&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&typeof n=="object"&&n.nodeType==null&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r];typeof i=="string"?e.setAttribute(r,i):i!=null&&(e[r]=i)}t++}for(;te.normalize("NFKD"):e=>e;class Iv{constructor(t,n,r=0,i=t.length,a,s){this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=t.iterRange(r,i),this.bufferStart=r,this.normalize=a?o=>a(EK(o)):EK,this.query=this.normalize(n)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Us(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let t=this.peek();if(t<0)return this.done=!0,this;let n=QF(t),r=this.bufferStart+this.bufferPos;this.bufferPos+=uc(t);let i=this.normalize(n);for(let a=0,s=r;;a++){let o=i.charCodeAt(a),l=this.match(o,s,this.bufferPos+this.bufferStart);if(a==i.length-1){if(l)return this.value=l,this;break}s==r&&athis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let t=this.matchPos-this.curLineStart;;){this.re.lastIndex=t;let n=this.matchPos<=this.to&&this.re.exec(this.curLine);if(n){let r=this.curLineStart+n.index,i=r+n[0].length;if(this.matchPos=tC(this.text,i+(r==i?1:0)),r==this.curLineStart+this.curLine.length&&this.nextLine(),(rthis.value.to)&&(!this.test||this.test(r,i,n)))return this.value={from:r,to:i,match:n},this;t=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length=r||i.to<=n){let o=new zy(n,t.sliceString(n,r));return ED.set(t,o),o}if(i.from==n&&i.to==r)return i;let{text:a,from:s}=i;return s>n&&(a=t.sliceString(n,s)+a,s=n),i.to=this.to?this.to:this.text.lineAt(t).to}next(){for(;;){let t=this.re.lastIndex=this.matchPos-this.flat.from,n=this.re.exec(this.flat.text);if(n&&!n[0]&&n.index==t&&(this.re.lastIndex=t+1,n=this.re.exec(this.flat.text)),n){let r=this.flat.from+n.index,i=r+n[0].length;if((this.flat.to>=this.to||n.index+n[0].length<=this.flat.text.length-10)&&(!this.test||this.test(r,i,n)))return this.value={from:r,to:i,match:n},this.matchPos=tC(this.text,i+(r==i?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=zy.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(Wfe.prototype[Symbol.iterator]=Vfe.prototype[Symbol.iterator]=function(){return this});function Bqe(e){try{return new RegExp(e,pB),!0}catch{return!1}}function tC(e,t){if(t>=e.length)return t;let n=e.lineAt(t),r;for(;t=56320&&r<57344;)t++;return t}function wL(e){let t=String(e.state.doc.lineAt(e.state.selection.main.head).number),n=xi("input",{class:"cm-textfield",name:"line",value:t}),r=xi("form",{class:"cm-gotoLine",onkeydown:a=>{a.keyCode==27?(a.preventDefault(),e.dispatch({effects:nC.of(!1)}),e.focus()):a.keyCode==13&&(a.preventDefault(),i())},onsubmit:a=>{a.preventDefault(),i()}},xi("label",e.state.phrase("Go to line"),": ",n)," ",xi("button",{class:"cm-button",type:"submit"},e.state.phrase("go")));function i(){let a=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(!a)return;let{state:s}=e,o=s.doc.lineAt(s.selection.main.head),[,l,u,d,f]=a,p=d?+d.slice(1):0,g=u?+u:o.number;if(u&&f){let T=g/100;l&&(T=T*(l=="-"?-1:1)+o.number/s.doc.lines),g=Math.round(s.doc.lines*T)}else u&&l&&(g=g*(l=="-"?-1:1)+o.number);let O=s.doc.line(Math.max(1,Math.min(s.doc.lines,g))),S=dt.cursor(O.from+Math.max(0,Math.min(p,O.length)));e.dispatch({effects:[nC.of(!1),en.scrollIntoView(S.from,{y:"center"})],selection:S}),e.focus()}return{dom:r}}const nC=er.define(),wK=xs.define({create(){return!0},update(e,t){for(let n of t.effects)n.is(nC)&&(e=n.value);return e},provide:e=>Iw.from(e,t=>t?wL:null)}),Uqe=e=>{let t=Rw(e,wL);if(!t){let n=[nC.of(!0)];e.state.field(wK,!1)==null&&n.push(er.appendConfig.of([wK,zqe])),e.dispatch({effects:n}),t=Rw(e,wL)}return t&&t.dom.querySelector("input").select(),!0},zqe=en.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),jqe={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Hqe=fn.define({combine(e){return Vf(e,jqe,{highlightWordAroundCursor:(t,n)=>t||n,minSelectionLength:Math.min,maxMatches:Math.min})}});function Qqe(e){return[Yqe,Gqe]}const Wqe=vn.mark({class:"cm-selectionMatch"}),Vqe=vn.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function TK(e,t,n,r){return(n==0||e(t.sliceDoc(n-1,n))!=Ji.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=Ji.Word)}function qqe(e,t,n,r){return e(t.sliceDoc(n,n+1))==Ji.Word&&e(t.sliceDoc(r-1,r))==Ji.Word}const Gqe=fa.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(Hqe),{state:n}=e,r=n.selection;if(r.ranges.length>1)return vn.none;let i=r.main,a,s=null;if(i.empty){if(!t.highlightWordAroundCursor)return vn.none;let l=n.wordAt(i.head);if(!l)return vn.none;s=n.charCategorizer(i.head),a=n.sliceDoc(l.from,l.to)}else{let l=i.to-i.from;if(l200)return vn.none;if(t.wholeWords){if(a=n.sliceDoc(i.from,i.to),s=n.charCategorizer(i.head),!(TK(s,n,i.from,i.to)&&qqe(s,n,i.from,i.to)))return vn.none}else if(a=n.sliceDoc(i.from,i.to),!a)return vn.none}let o=[];for(let l of e.visibleRanges){let u=new Iv(n.doc,a,l.from,l.to);for(;!u.next().done;){let{from:d,to:f}=u.value;if((!s||TK(s,n,d,f))&&(i.empty&&d<=i.from&&f>=i.to?o.push(Vqe.range(d,f)):(d>=i.to||f<=i.from)&&o.push(Wqe.range(d,f)),o.length>t.maxMatches))return vn.none}}return vn.set(o)}},{decorations:e=>e.decorations}),Yqe=en.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),Zqe=({state:e,dispatch:t})=>{let{selection:n}=e,r=dt.create(n.ranges.map(i=>e.wordAt(i.head)||dt.cursor(i.head)),n.mainIndex);return r.eq(n)?!1:(t(e.update({selection:r})),!0)};function Xqe(e,t){let{main:n,ranges:r}=e.selection,i=e.wordAt(n.head),a=i&&i.from==n.from&&i.to==n.to;for(let s=!1,o=new Iv(e.doc,t,r[r.length-1].to);;)if(o.next(),o.done){if(s)return null;o=new Iv(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),s=!0}else{if(s&&r.some(l=>l.from==o.value.from))continue;if(a){let l=e.wordAt(o.value.from);if(!l||l.from!=o.value.from||l.to!=o.value.to)continue}return o.value}}const Kqe=({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some(a=>a.from===a.to))return Zqe({state:e,dispatch:t});let r=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some(a=>e.sliceDoc(a.from,a.to)!=r))return!1;let i=Xqe(e,r);return i?(t(e.update({selection:e.selection.addRange(dt.range(i.from,i.to),!1),effects:en.scrollIntoView(i.to)})),!0):!1},vO=fn.define({combine(e){return Vf(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:t=>new cGe(t),scrollToMatch:t=>en.scrollIntoView(t)})}});class qfe{constructor(t){this.search=t.search,this.caseSensitive=!!t.caseSensitive,this.literal=!!t.literal,this.regexp=!!t.regexp,this.replace=t.replace||"",this.valid=!!this.search&&(!this.regexp||Bqe(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!t.wholeWord}unquote(t){return this.literal?t:t.replace(/\\([nrt\\])/g,(n,r)=>r=="n"?` -`:r=="r"?"\r":r=="t"?" ":"\\")}eq(t){return this.search==t.search&&this.replace==t.replace&&this.caseSensitive==t.caseSensitive&&this.regexp==t.regexp&&this.wholeWord==t.wholeWord}create(){return this.regexp?new nGe(this):new eGe(this)}getCursor(t,n=0,r){let i=t.doc?t:Dr.create({doc:t});return r==null&&(r=i.doc.length),this.regexp?Vb(this,i,n,r):Wb(this,i,n,r)}}class Gfe{constructor(t){this.spec=t}}function Wb(e,t,n,r){return new Iv(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:i=>i.toLowerCase(),e.wholeWord?Jqe(t.doc,t.charCategorizer(t.selection.main.head)):void 0)}function Jqe(e,t){return(n,r,i,a)=>((a>n||a+i.length=n)return null;i.push(r.value)}return i}highlight(t,n,r,i){let a=Wb(this.spec,t,Math.max(0,n-this.spec.unquoted.length),Math.min(r+this.spec.unquoted.length,t.doc.length));for(;!a.next().done;)i(a.value.from,a.value.to)}}function Vb(e,t,n,r){return new Wfe(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?tGe(t.charCategorizer(t.selection.main.head)):void 0},n,r)}function rC(e,t){return e.slice(mo(e,t,!1),t)}function iC(e,t){return e.slice(t,mo(e,t))}function tGe(e){return(t,n,r)=>!r[0].length||(e(rC(r.input,r.index))!=Ji.Word||e(iC(r.input,r.index))!=Ji.Word)&&(e(iC(r.input,r.index+r[0].length))!=Ji.Word||e(rC(r.input,r.index+r[0].length))!=Ji.Word)}class nGe extends Gfe{nextMatch(t,n,r){let i=Vb(this.spec,t,r,t.doc.length).next();return i.done&&(i=Vb(this.spec,t,0,n).next()),i.done?null:i.value}prevMatchInRange(t,n,r){for(let i=1;;i++){let a=Math.max(n,r-i*1e4),s=Vb(this.spec,t,a,r),o=null;for(;!s.next().done;)o=s.value;if(o&&(a==n||o.from>a+10))return o;if(a==n)return null}}prevMatch(t,n,r){return this.prevMatchInRange(t,0,n)||this.prevMatchInRange(t,r,t.doc.length)}getReplacement(t){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(n,r)=>r=="$"?"$":r=="&"?t.match[0]:r!="0"&&+r=n)return null;i.push(r.value)}return i}highlight(t,n,r,i){let a=Vb(this.spec,t,Math.max(0,n-250),Math.min(r+250,t.doc.length));for(;!a.next().done;)i(a.value.from,a.value.to)}}const $w=er.define(),mB=er.define(),Z0=xs.define({create(e){return new wD(TL(e).create(),null)},update(e,t){for(let n of t.effects)n.is($w)?e=new wD(n.value.create(),e.panel):n.is(mB)&&(e=new wD(e.query,n.value?gB:null));return e},provide:e=>Iw.from(e,t=>t.panel)});class wD{constructor(t,n){this.query=t,this.panel=n}}const rGe=vn.mark({class:"cm-searchMatch"}),iGe=vn.mark({class:"cm-searchMatch cm-searchMatch-selected"}),aGe=fa.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(Z0))}update(e){let t=e.state.field(Z0);(t!=e.startState.field(Z0)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return vn.none;let{view:n}=this,r=new sm;for(let i=0,a=n.visibleRanges,s=a.length;ia[i+1].from-2*250;)l=a[++i].to;e.highlight(n.state,o,l,(u,d)=>{let f=n.state.selection.ranges.some(p=>p.from==u&&p.to==d);r.add(u,d,f?iGe:rGe)})}return r.finish()}},{decorations:e=>e.decorations});function GT(e){return t=>{let n=t.state.field(Z0,!1);return n&&n.query.spec.valid?e(t,n):Xfe(t)}}const aC=GT((e,{query:t})=>{let{to:n}=e.state.selection.main,r=t.nextMatch(e.state,n,n);if(!r)return!1;let i=dt.single(r.from,r.to),a=e.state.facet(vO);return e.dispatch({selection:i,effects:[bB(e,r),a.scrollToMatch(i.main,e)],userEvent:"select.search"}),Zfe(e),!0}),sC=GT((e,{query:t})=>{let{state:n}=e,{from:r}=n.selection.main,i=t.prevMatch(n,r,r);if(!i)return!1;let a=dt.single(i.from,i.to),s=e.state.facet(vO);return e.dispatch({selection:a,effects:[bB(e,i),s.scrollToMatch(a.main,e)],userEvent:"select.search"}),Zfe(e),!0}),sGe=GT((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!n||!n.length?!1:(e.dispatch({selection:dt.create(n.map(r=>dt.range(r.from,r.to))),userEvent:"select.search.matches"}),!0)}),oGe=({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:i}=n.main,a=[],s=0;for(let o=new Iv(e.doc,e.sliceDoc(r,i));!o.next().done;){if(a.length>1e3)return!1;o.value.from==r&&(s=a.length),a.push(dt.range(o.value.from,o.value.to))}return t(e.update({selection:dt.create(a,s),userEvent:"select.search.matches"})),!0},xK=GT((e,{query:t})=>{let{state:n}=e,{from:r,to:i}=n.selection.main;if(n.readOnly)return!1;let a=t.nextMatch(n,r,r);if(!a)return!1;let s=[],o,l,u=[];if(a.from==r&&a.to==i&&(l=n.toText(t.getReplacement(a)),s.push({from:a.from,to:a.to,insert:l}),a=t.nextMatch(n,a.from,a.to),u.push(en.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(r).number)+"."))),a){let d=s.length==0||s[0].from>=a.to?0:a.to-a.from-l.length;o=dt.single(a.from-d,a.to-d),u.push(bB(e,a)),u.push(n.facet(vO).scrollToMatch(o.main,e))}return e.dispatch({changes:s,selection:o,effects:u,userEvent:"input.replace"}),!0}),lGe=GT((e,{query:t})=>{if(e.state.readOnly)return!1;let n=t.matchAll(e.state,1e9).map(i=>{let{from:a,to:s}=i;return{from:a,to:s,insert:t.getReplacement(i)}});if(!n.length)return!1;let r=e.state.phrase("replaced $ matches",n.length)+".";return e.dispatch({changes:n,effects:en.announce.of(r),userEvent:"input.replace.all"}),!0});function gB(e){return e.state.facet(vO).createPanel(e)}function TL(e,t){var n,r,i,a,s;let o=e.selection.main,l=o.empty||o.to>o.from+100?"":e.sliceDoc(o.from,o.to);if(t&&!l)return t;let u=e.facet(vO);return new qfe({search:((n=t==null?void 0:t.literal)!==null&&n!==void 0?n:u.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:(r=t==null?void 0:t.caseSensitive)!==null&&r!==void 0?r:u.caseSensitive,literal:(i=t==null?void 0:t.literal)!==null&&i!==void 0?i:u.literal,regexp:(a=t==null?void 0:t.regexp)!==null&&a!==void 0?a:u.regexp,wholeWord:(s=t==null?void 0:t.wholeWord)!==null&&s!==void 0?s:u.wholeWord})}function Yfe(e){let t=Rw(e,gB);return t&&t.dom.querySelector("[main-field]")}function Zfe(e){let t=Yfe(e);t&&t==e.root.activeElement&&t.select()}const Xfe=e=>{let t=e.state.field(Z0,!1);if(t&&t.panel){let n=Yfe(e);if(n&&n!=e.root.activeElement){let r=TL(e.state,t.query.spec);r.valid&&e.dispatch({effects:$w.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[mB.of(!0),t?$w.of(TL(e.state,t.query.spec)):er.appendConfig.of(fGe)]});return!0},Kfe=e=>{let t=e.state.field(Z0,!1);if(!t||!t.panel)return!1;let n=Rw(e,gB);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:mB.of(!1)}),!0},uGe=[{key:"Mod-f",run:Xfe,scope:"editor search-panel"},{key:"F3",run:aC,shift:sC,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:aC,shift:sC,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Kfe,scope:"editor search-panel"},{key:"Mod-Shift-l",run:oGe},{key:"Mod-Alt-g",run:Uqe},{key:"Mod-d",run:Kqe,preventDefault:!0}];class cGe{constructor(t){this.view=t;let n=this.query=t.state.field(Z0).query.spec;this.commit=this.commit.bind(this),this.searchField=xi("input",{value:n.search,placeholder:Kl(t,"Find"),"aria-label":Kl(t,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=xi("input",{value:n.replace,placeholder:Kl(t,"Replace"),"aria-label":Kl(t,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=xi("input",{type:"checkbox",name:"case",form:"",checked:n.caseSensitive,onchange:this.commit}),this.reField=xi("input",{type:"checkbox",name:"re",form:"",checked:n.regexp,onchange:this.commit}),this.wordField=xi("input",{type:"checkbox",name:"word",form:"",checked:n.wholeWord,onchange:this.commit});function r(i,a,s){return xi("button",{class:"cm-button",name:i,onclick:a,type:"button"},s)}this.dom=xi("div",{onkeydown:i=>this.keydown(i),class:"cm-search"},[this.searchField,r("next",()=>aC(t),[Kl(t,"next")]),r("prev",()=>sC(t),[Kl(t,"previous")]),r("select",()=>sGe(t),[Kl(t,"all")]),xi("label",null,[this.caseField,Kl(t,"match case")]),xi("label",null,[this.reField,Kl(t,"regexp")]),xi("label",null,[this.wordField,Kl(t,"by word")]),...t.state.readOnly?[]:[xi("br"),this.replaceField,r("replace",()=>xK(t),[Kl(t,"replace")]),r("replaceAll",()=>lGe(t),[Kl(t,"replace all")])],xi("button",{name:"close",onclick:()=>Kfe(t),"aria-label":Kl(t,"close"),type:"button"},["×"])])}commit(){let t=new qfe({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});t.eq(this.query)||(this.query=t,this.view.dispatch({effects:$w.of(t)}))}keydown(t){EQe(this.view,t,"search-panel")?t.preventDefault():t.keyCode==13&&t.target==this.searchField?(t.preventDefault(),(t.shiftKey?sC:aC)(this.view)):t.keyCode==13&&t.target==this.replaceField&&(t.preventDefault(),xK(this.view))}update(t){for(let n of t.transactions)for(let r of n.effects)r.is($w)&&!r.value.eq(this.query)&&this.setQuery(r.value)}setQuery(t){this.query=t,this.searchField.value=t.search,this.replaceField.value=t.replace,this.caseField.checked=t.caseSensitive,this.reField.checked=t.regexp,this.wordField.checked=t.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(vO).top}}function Kl(e,t){return e.state.phrase(t)}const WA=30,VA=/[\s\.,:;?!]/;function bB(e,{from:t,to:n}){let r=e.state.doc.lineAt(t),i=e.state.doc.lineAt(n).to,a=Math.max(r.from,t-WA),s=Math.min(i,n+WA),o=e.state.sliceDoc(a,s);if(a!=r.from){for(let l=0;lo.length-WA;l--)if(!VA.test(o[l-1])&&VA.test(o[l])){o=o.slice(0,l);break}}return en.announce.of(`${e.state.phrase("current match")}. ${o} ${e.state.phrase("on line")} ${r.number}.`)}const dGe=en.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),fGe=[Z0,Tp.low(aGe),dGe];class yB{constructor(t,n,r,i){this.state=t,this.pos=n,this.explicit=r,this.view=i,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(t){let n=Ri(this.state).resolveInner(this.pos,-1);for(;n&&t.indexOf(n.name)<0;)n=n.parent;return n?{from:n.from,to:this.pos,text:this.state.sliceDoc(n.from,this.pos),type:n.type}:null}matchBefore(t){let n=this.state.doc.lineAt(this.pos),r=Math.max(n.from,this.pos-250),i=n.text.slice(r-n.from,this.pos-n.from),a=i.search(ehe(t,!1));return a<0?null:{from:r+a,to:this.pos,text:i.slice(a)}}get aborted(){return this.abortListeners==null}addEventListener(t,n,r){t=="abort"&&this.abortListeners&&(this.abortListeners.push(n),r&&r.onDocChange&&(this.abortOnDocChange=!0))}}function kK(e){let t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),`[${n?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function hGe(e){let t=Object.create(null),n=Object.create(null);for(let{label:i}of e){t[i[0]]=!0;for(let a=1;atypeof i=="string"?{label:i}:i),[n,r]=t.every(i=>/^\w+$/.test(i.label))?[/\w*$/,/\w+$/]:hGe(t);return i=>{let a=i.matchBefore(r);return a||i.explicit?{from:a?a.from:i.pos,options:t,validFor:n}:null}}function pGe(e,t){return n=>{for(let r=Ri(n.state).resolveInner(n.pos,-1);r;r=r.parent){if(e.indexOf(r.name)>-1)return null;if(r.type.isTop)break}return t(n)}}class AK{constructor(t,n,r,i){this.completion=t,this.source=n,this.match=r,this.score=i}}function X0(e){return e.selection.main.from}function ehe(e,t){var n;let{source:r}=e,i=t&&r[0]!="^",a=r[r.length-1]!="$";return!i&&!a?e:new RegExp(`${i?"^":""}(?:${r})${a?"$":""}`,(n=e.flags)!==null&&n!==void 0?n:e.ignoreCase?"i":"")}const vB=Pd.define();function mGe(e,t,n,r){let{main:i}=e.selection,a=n-i.from,s=r-i.from;return Object.assign(Object.assign({},e.changeByRange(o=>o!=i&&n!=r&&e.sliceDoc(o.from+a,o.from+s)!=e.sliceDoc(n,r)?{range:o}:{changes:{from:o.from+a,to:r==i.from?o.to:o.from+s,insert:t},range:dt.cursor(o.from+a+t.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const _K=new WeakMap;function gGe(e){if(!Array.isArray(e))return e;let t=_K.get(e);return t||_K.set(e,t=Jfe(e)),t}const oC=er.define(),Fw=er.define();class bGe{constructor(t){this.pattern=t,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let n=0;n=48&&R<=57||R>=97&&R<=122?2:R>=65&&R<=90?1:0:(N=QF(R))!=N.toLowerCase()?1:N!=N.toUpperCase()?2:0;(!x||P==1&&T||_==0&&P!=0)&&(n[f]==R||r[f]==R&&(p=!0)?s[f++]=x:s.length&&(w=!1)),_=P,x+=uc(R)}return f==l&&s[0]==0&&w?this.result(-100+(p?-200:0),s,t):g==l&&O==0?this.ret(-200-t.length+(S==t.length?0:-100),[0,S]):o>-1?this.ret(-700-t.length,[o,o+this.pattern.length]):g==l?this.ret(-900-t.length,[O,S]):f==l?this.result(-100+(p?-200:0)+-700+(w?0:-1100),s,t):n.length==2?null:this.result((i[0]?-700:0)+-200+-1100,i,t)}result(t,n,r){let i=[],a=0;for(let s of n){let o=s+(this.astral?uc(Us(r,s)):1);a&&i[a-1]==s?i[a-1]=o:(i[a++]=s,i[a++]=o)}return this.ret(t-r.length,i)}}class yGe{constructor(t){this.pattern=t,this.matched=[],this.score=0,this.folded=t.toLowerCase()}match(t){if(t.length!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:vGe,filterStrict:!1,compareCompletions:(t,n)=>t.label.localeCompare(n.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(t,n)=>t&&n,closeOnBlur:(t,n)=>t&&n,icons:(t,n)=>t&&n,tooltipClass:(t,n)=>r=>CK(t(r),n(r)),optionClass:(t,n)=>r=>CK(t(r),n(r)),addToOptions:(t,n)=>t.concat(n),filterStrict:(t,n)=>t||n})}});function CK(e,t){return e?t?e+" "+t:e:t}function vGe(e,t,n,r,i,a){let s=e.textDirection==Bi.RTL,o=s,l=!1,u="top",d,f,p=t.left-i.left,g=i.right-t.right,O=r.right-r.left,S=r.bottom-r.top;if(o&&p=S||x>t.top?d=n.bottom-t.top:(u="bottom",d=t.bottom-n.top)}let T=(t.bottom-t.top)/a.offsetHeight,w=(t.right-t.left)/a.offsetWidth;return{style:`${u}: ${d/T}px; max-width: ${f/w}px`,class:"cm-completionInfo-"+(l?s?"left-narrow":"right-narrow":o?"left":"right")}}function OGe(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(n){let r=document.createElement("div");return r.classList.add("cm-completionIcon"),n.type&&r.classList.add(...n.type.split(/\s+/g).map(i=>"cm-completionIcon-"+i)),r.setAttribute("aria-hidden","true"),r},position:20}),t.push({render(n,r,i,a){let s=document.createElement("span");s.className="cm-completionLabel";let o=n.displayLabel||n.label,l=0;for(let u=0;ul&&s.appendChild(document.createTextNode(o.slice(l,d)));let p=s.appendChild(document.createElement("span"));p.appendChild(document.createTextNode(o.slice(d,f))),p.className="cm-completionMatchedText",l=f}return ln.position-r.position).map(n=>n.render)}function TD(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let i=Math.floor(t/n);return{from:i*n,to:(i+1)*n}}let r=Math.floor((e-t)/n);return{from:e-(r+1)*n,to:e-r*n}}class SGe{constructor(t,n,r){this.view=t,this.stateField=n,this.applyCompletion=r,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:l=>this.placeInfo(l),key:this},this.space=null,this.currentClass="";let i=t.state.field(n),{options:a,selected:s}=i.open,o=t.state.facet(Hs);this.optionContent=OGe(o),this.optionClass=o.optionClass,this.tooltipClass=o.tooltipClass,this.range=TD(a.length,s,o.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(t.state),this.dom.addEventListener("mousedown",l=>{let{options:u}=t.state.field(n).open;for(let d=l.target,f;d&&d!=this.dom;d=d.parentNode)if(d.nodeName=="LI"&&(f=/-(\d+)$/.exec(d.id))&&+f[1]{let u=t.state.field(this.stateField,!1);u&&u.tooltip&&t.state.facet(Hs).closeOnBlur&&l.relatedTarget!=t.contentDOM&&t.dispatch({effects:Fw.of(null)})}),this.showOptions(a,i.id)}mount(){this.updateSel()}showOptions(t,n){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t,n,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(t){var n;let r=t.state.field(this.stateField),i=t.startState.field(this.stateField);if(this.updateTooltipClass(t.state),r!=i){let{options:a,selected:s,disabled:o}=r.open;(!i.open||i.open.options!=a)&&(this.range=TD(a.length,s,t.state.facet(Hs).maxRenderedOptions),this.showOptions(a,r.id)),this.updateSel(),o!=((n=i.open)===null||n===void 0?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!o)}}updateTooltipClass(t){let n=this.tooltipClass(t);if(n!=this.currentClass){for(let r of this.currentClass.split(" "))r&&this.dom.classList.remove(r);for(let r of n.split(" "))r&&this.dom.classList.add(r);this.currentClass=n}}positioned(t){this.space=t,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let t=this.view.state.field(this.stateField),n=t.open;if((n.selected>-1&&n.selected=this.range.to)&&(this.range=TD(n.options.length,n.selected,this.view.state.facet(Hs).maxRenderedOptions),this.showOptions(n.options,t.id)),this.updateSelectedOption(n.selected)){this.destroyInfo();let{completion:r}=n.options[n.selected],{info:i}=r;if(!i)return;let a=typeof i=="string"?document.createTextNode(i):i(r);if(!a)return;"then"in a?a.then(s=>{s&&this.view.state.field(this.stateField,!1)==t&&this.addInfoPane(s,r)}).catch(s=>Oc(this.view.state,s,"completion info")):this.addInfoPane(a,r)}}addInfoPane(t,n){this.destroyInfo();let r=this.info=document.createElement("div");if(r.className="cm-tooltip cm-completionInfo",t.nodeType!=null)r.appendChild(t),this.infoDestroy=null;else{let{dom:i,destroy:a}=t;r.appendChild(i),this.infoDestroy=a||null}this.dom.appendChild(r),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(t){let n=null;for(let r=this.list.firstChild,i=this.range.from;r;r=r.nextSibling,i++)r.nodeName!="LI"||!r.id?i--:i==t?r.hasAttribute("aria-selected")||(r.setAttribute("aria-selected","true"),n=r):r.hasAttribute("aria-selected")&&r.removeAttribute("aria-selected");return n&&wGe(this.list,n),n}measureInfo(){let t=this.dom.querySelector("[aria-selected]");if(!t||!this.info)return null;let n=this.dom.getBoundingClientRect(),r=this.info.getBoundingClientRect(),i=t.getBoundingClientRect(),a=this.space;if(!a){let s=this.dom.ownerDocument.defaultView||window;a={left:0,top:0,right:s.innerWidth,bottom:s.innerHeight}}return i.top>Math.min(a.bottom,n.bottom)-10||i.bottomr.from||r.from==0))if(a=p,typeof u!="string"&&u.header)i.appendChild(u.header(u));else{let g=i.appendChild(document.createElement("completion-section"));g.textContent=p}}const d=i.appendChild(document.createElement("li"));d.id=n+"-"+s,d.setAttribute("role","option");let f=this.optionClass(o);f&&(d.className=f);for(let p of this.optionContent){let g=p(o,this.view.state,this.view,l);g&&d.appendChild(g)}}return r.from&&i.classList.add("cm-completionListIncompleteTop"),r.tonew SGe(n,e,t)}function wGe(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=n.height/e.offsetHeight;r.topn.bottom&&(e.scrollTop+=(r.bottom-n.bottom)/i)}function RK(e){return(e.boost||0)*100+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}function TGe(e,t){let n=[],r=null,i=u=>{n.push(u);let{section:d}=u.completion;if(d){r||(r=[]);let f=typeof d=="string"?d:d.name;r.some(p=>p.name==f)||r.push(typeof d=="string"?{name:f}:d)}},a=t.facet(Hs);for(let u of e)if(u.hasResult()){let d=u.result.getMatch;if(u.result.filter===!1)for(let f of u.result.options)i(new AK(f,u.source,d?d(f):[],1e9-n.length));else{let f=t.sliceDoc(u.from,u.to),p,g=a.filterStrict?new yGe(f):new bGe(f);for(let O of u.result.options)if(p=g.match(O.label)){let S=O.displayLabel?d?d(O,p.matched):[]:p.matched;i(new AK(O,u.source,S,p.score+(O.boost||0)))}}}if(r){let u=Object.create(null),d=0,f=(p,g)=>{var O,S;return((O=p.rank)!==null&&O!==void 0?O:1e9)-((S=g.rank)!==null&&S!==void 0?S:1e9)||(p.namef.score-d.score||l(d.completion,f.completion))){let d=u.completion;!o||o.label!=d.label||o.detail!=d.detail||o.type!=null&&d.type!=null&&o.type!=d.type||o.apply!=d.apply||o.boost!=d.boost?s.push(u):RK(u.completion)>RK(o)&&(s[s.length-1]=u),o=u.completion}return s}class yy{constructor(t,n,r,i,a,s){this.options=t,this.attrs=n,this.tooltip=r,this.timestamp=i,this.selected=a,this.disabled=s}setSelected(t,n){return t==this.selected||t>=this.options.length?this:new yy(this.options,IK(n,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,n,r,i,a){let s=TGe(t,n);if(!s.length)return i&&t.some(l=>l.state==1)?new yy(i.options,i.attrs,i.tooltip,i.timestamp,i.selected,!0):null;let o=n.facet(Hs).selectOnOpen?0:-1;if(i&&i.selected!=o&&i.selected!=-1){let l=i.options[i.selected].completion;for(let u=0;uu.hasResult()?Math.min(l,u.from):l,1e8),create:RGe,above:a.aboveCursor},i?i.timestamp:Date.now(),o,!1)}map(t){return new yy(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class lC{constructor(t,n,r){this.active=t,this.id=n,this.open=r}static start(){return new lC(_Ge,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(t){let{state:n}=t,r=n.facet(Hs),a=(r.override||n.languageDataAt("autocomplete",X0(n)).map(gGe)).map(o=>(this.active.find(u=>u.source==o)||new mu(o,this.active.some(u=>u.state!=0)?1:0)).update(t,r));a.length==this.active.length&&a.every((o,l)=>o==this.active[l])&&(a=this.active);let s=this.open;s&&t.docChanged&&(s=s.map(t.changes)),t.selection||a.some(o=>o.hasResult()&&t.changes.touchesRange(o.from,o.to))||!xGe(a,this.active)?s=yy.build(a,n,this.id,s,r):s&&s.disabled&&!a.some(o=>o.state==1)&&(s=null),!s&&a.every(o=>o.state!=1)&&a.some(o=>o.hasResult())&&(a=a.map(o=>o.hasResult()?new mu(o.source,0):o));for(let o of t.effects)o.is(rhe)&&(s=s&&s.setSelected(o.value,this.id));return a==this.active&&s==this.open?this:new lC(a,this.id,s)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?kGe:AGe}}function xGe(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;n-1&&(n["aria-activedescendant"]=e+"-"+t),n}const _Ge=[];function the(e,t){if(e.isUserEvent("input.complete")){let r=e.annotation(vB);if(r&&t.activateOnCompletion(r))return 12}let n=e.isUserEvent("input.type");return n&&t.activateOnTyping?5:n?1:e.isUserEvent("delete.backward")?2:e.selection?8:e.docChanged?16:0}class mu{constructor(t,n,r=-1){this.source=t,this.state=n,this.explicitPos=r}hasResult(){return!1}update(t,n){let r=the(t,n),i=this;(r&8||r&16&&this.touches(t))&&(i=new mu(i.source,0)),r&4&&i.state==0&&(i=new mu(this.source,1)),i=i.updateFor(t,r);for(let a of t.effects)if(a.is(oC))i=new mu(i.source,1,a.value?X0(t.state):-1);else if(a.is(Fw))i=new mu(i.source,0);else if(a.is(nhe))for(let s of a.value)s.source==i.source&&(i=s);return i}updateFor(t,n){return this.map(t.changes)}map(t){return t.empty||this.explicitPos<0?this:new mu(this.source,this.state,t.mapPos(this.explicitPos))}touches(t){return t.changes.touchesRange(X0(t.state))}}class jy extends mu{constructor(t,n,r,i,a){super(t,2,n),this.result=r,this.from=i,this.to=a}hasResult(){return!0}updateFor(t,n){var r;if(!(n&3))return this.map(t.changes);let i=this.result;i.map&&!t.changes.empty&&(i=i.map(i,t.changes));let a=t.changes.mapPos(this.from),s=t.changes.mapPos(this.to,1),o=X0(t.state);if((this.explicitPos<0?o<=a:os||!i||n&2&&X0(t.startState)==this.from)return new mu(this.source,n&4?1:0);let l=this.explicitPos<0?-1:t.changes.mapPos(this.explicitPos);return CGe(i.validFor,t.state,a,s)?new jy(this.source,l,i,a,s):i.update&&(i=i.update(i,a,s,new yB(t.state,o,l>=0)))?new jy(this.source,l,i,i.from,(r=i.to)!==null&&r!==void 0?r:X0(t.state)):new mu(this.source,1,l)}map(t){return t.empty?this:(this.result.map?this.result.map(this.result,t):this.result)?new jy(this.source,this.explicitPos<0?-1:t.mapPos(this.explicitPos),this.result,t.mapPos(this.from),t.mapPos(this.to,1)):new mu(this.source,0)}touches(t){return t.changes.touchesRange(this.from,this.to)}}function CGe(e,t,n,r){if(!e)return!1;let i=t.sliceDoc(n,r);return typeof e=="function"?e(i,n,r,t):ehe(e,!0).test(i)}const nhe=er.define({map(e,t){return e.map(n=>n.map(t))}}),rhe=er.define(),wl=xs.define({create(){return lC.start()},update(e,t){return e.update(t)},provide:e=>[nB.from(e,t=>t.tooltip),en.contentAttributes.from(e,t=>t.attrs)]});function OB(e,t){const n=t.completion.apply||t.completion.label;let r=e.state.field(wl).active.find(i=>i.source==t.source);return r instanceof jy?(typeof n=="string"?e.dispatch(Object.assign(Object.assign({},mGe(e.state,n,r.from,r.to)),{annotations:vB.of(t.completion)})):n(e,t.completion,r.from,r.to),!0):!1}const RGe=EGe(wl,OB);function qA(e,t="option"){return n=>{let r=n.state.field(wl,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp-1?r.open.selected+i*(e?1:-1):e?0:s-1;return o<0?o=t=="page"?0:s-1:o>=s&&(o=t=="page"?s-1:0),n.dispatch({effects:rhe.of(o)}),!0}}const IGe=e=>{let t=e.state.field(wl,!1);return e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestampe.state.field(wl,!1)?(e.dispatch({effects:oC.of(!0)}),!0):!1,DGe=e=>{let t=e.state.field(wl,!1);return!t||!t.active.some(n=>n.state!=0)?!1:(e.dispatch({effects:Fw.of(null)}),!0)};class PGe{constructor(t,n){this.active=t,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0}}const LGe=50,MGe=1e3,$Ge=fa.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let t of e.state.field(wl).active)t.state==1&&this.startQuery(t)}update(e){let t=e.state.field(wl),n=e.state.facet(Hs);if(!e.selectionSet&&!e.docChanged&&e.startState.field(wl)==t)return;let r=e.transactions.some(a=>{let s=the(a,n);return s&8||(a.selection||a.docChanged)&&!(s&3)});for(let a=0;aLGe&&Date.now()-s.time>MGe){for(let o of s.context.abortListeners)try{o()}catch(l){Oc(this.view.state,l)}s.context.abortListeners=null,this.running.splice(a--,1)}else s.updates.push(...e.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some(a=>a.effects.some(s=>s.is(oC)))&&(this.pendingStart=!0);let i=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=t.active.some(a=>a.state==1&&!this.running.some(s=>s.active.source==a.source))?setTimeout(()=>this.startUpdate(),i):-1,this.composing!=0)for(let a of e.transactions)a.isUserEvent("input.type")?this.composing=2:this.composing==2&&a.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:e}=this.view,t=e.field(wl);for(let n of t.active)n.state==1&&!this.running.some(r=>r.active.source==n.source)&&this.startQuery(n)}startQuery(e){let{state:t}=this.view,n=X0(t),r=new yB(t,n,e.explicitPos==n,this.view),i=new PGe(e,r);this.running.push(i),Promise.resolve(e.source(r)).then(a=>{i.context.aborted||(i.done=a||null,this.scheduleAccept())},a=>{this.view.dispatch({effects:Fw.of(null)}),Oc(this.view.state,a)})}scheduleAccept(){this.running.every(e=>e.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Hs).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(Hs);for(let r=0;rs.source==i.active.source);if(a&&a.state==1)if(i.done==null){let s=new mu(i.active.source,0);for(let o of i.updates)s=s.update(o,n);s.state!=1&&t.push(s)}else this.startQuery(a)}t.length&&this.view.dispatch({effects:nhe.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(wl,!1);if(t&&t.tooltip&&this.view.state.facet(Hs).closeOnBlur){let n=t.open&&Pde(this.view,t.open.tooltip);(!n||!n.dom.contains(e.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:Fw.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:oC.of(!1)}),20),this.composing=0}}}),FGe=typeof navigator=="object"&&/Win/.test(navigator.platform),BGe=Tp.highest(en.domEventHandlers({keydown(e,t){let n=t.state.field(wl,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||e.key.length>1||e.ctrlKey&&!(FGe&&e.altKey)||e.metaKey)return!1;let r=n.open.options[n.open.selected],i=n.active.find(s=>s.source==r.source),a=r.completion.commitCharacters||i.result.commitCharacters;return a&&a.indexOf(e.key)>-1&&OB(t,r),!1}})),ihe=en.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class UGe{constructor(t,n,r,i){this.field=t,this.line=n,this.from=r,this.to=i}}class SB{constructor(t,n,r){this.field=t,this.from=n,this.to=r}map(t){let n=t.mapPos(this.from,-1,js.TrackDel),r=t.mapPos(this.to,1,js.TrackDel);return n==null||r==null?null:new SB(this.field,n,r)}}class EB{constructor(t,n){this.lines=t,this.fieldPositions=n}instantiate(t,n){let r=[],i=[n],a=t.doc.lineAt(n),s=/^\s*/.exec(a.text)[0];for(let l of this.lines){if(r.length){let u=s,d=/^\t*/.exec(l)[0].length;for(let f=0;fnew SB(l.field,i[l.line]+l.from,i[l.line]+l.to));return{text:r,ranges:o}}static parse(t){let n=[],r=[],i=[],a;for(let s of t.split(/\r\n?|\n/)){for(;a=/[#$]\{(?:(\d+)(?::([^}]*))?|((?:\\[{}]|[^}])*))\}/.exec(s);){let o=a[1]?+a[1]:null,l=a[2]||a[3]||"",u=-1,d=l.replace(/\\[{}]/g,f=>f[1]);for(let f=0;f=u&&p.field++}i.push(new UGe(u,r.length,a.index,a.index+d.length)),s=s.slice(0,a.index)+l+s.slice(a.index+a[0].length)}s=s.replace(/\\([{}])/g,(o,l,u)=>{for(let d of i)d.line==r.length&&d.from>u&&(d.from--,d.to--);return l}),r.push(s)}return new EB(r,i)}}let zGe=vn.widget({widget:new class extends Ld{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),jGe=vn.mark({class:"cm-snippetField"});class OO{constructor(t,n){this.ranges=t,this.active=n,this.deco=vn.set(t.map(r=>(r.from==r.to?zGe:jGe).range(r.from,r.to)))}map(t){let n=[];for(let r of this.ranges){let i=r.map(t);if(!i)return null;n.push(i)}return new OO(n,this.active)}selectionInsideField(t){return t.ranges.every(n=>this.ranges.some(r=>r.field==this.active&&r.from<=n.from&&r.to>=n.to))}}const YT=er.define({map(e,t){return e&&e.map(t)}}),HGe=er.define(),Bw=xs.define({create(){return null},update(e,t){for(let n of t.effects){if(n.is(YT))return n.value;if(n.is(HGe)&&e)return new OO(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>en.decorations.from(e,t=>t?t.deco:vn.none)});function wB(e,t){return dt.create(e.filter(n=>n.field==t).map(n=>dt.range(n.from,n.to)))}function QGe(e){let t=EB.parse(e);return(n,r,i,a)=>{let{text:s,ranges:o}=t.instantiate(n.state,i),l={changes:{from:i,to:a,insert:Er.of(s)},scrollIntoView:!0,annotations:r?[vB.of(r),os.userEvent.of("input.complete")]:void 0};if(o.length&&(l.selection=wB(o,0)),o.some(u=>u.field>0)){let u=new OO(o,0),d=l.effects=[YT.of(u)];n.state.field(Bw,!1)===void 0&&d.push(er.appendConfig.of([Bw,YGe,ZGe,ihe]))}n.dispatch(n.state.update(l))}}function ahe(e){return({state:t,dispatch:n})=>{let r=t.field(Bw,!1);if(!r||e<0&&r.active==0)return!1;let i=r.active+e,a=e>0&&!r.ranges.some(s=>s.field==i+e);return n(t.update({selection:wB(r.ranges,i),effects:YT.of(a?null:new OO(r.ranges,i)),scrollIntoView:!0})),!0}}const WGe=({state:e,dispatch:t})=>e.field(Bw,!1)?(t(e.update({effects:YT.of(null)})),!0):!1,VGe=ahe(1),qGe=ahe(-1),GGe=[{key:"Tab",run:VGe,shift:qGe},{key:"Escape",run:WGe}],NK=fn.define({combine(e){return e.length?e[0]:GGe}}),YGe=Tp.highest(mO.compute([NK],e=>e.facet(NK)));function gl(e,t){return Object.assign(Object.assign({},t),{apply:QGe(e)})}const ZGe=en.domEventHandlers({mousedown(e,t){let n=t.state.field(Bw,!1),r;if(!n||(r=t.posAtCoords({x:e.clientX,y:e.clientY}))==null)return!1;let i=n.ranges.find(a=>a.from<=r&&a.to>=r);return!i||i.field==n.active?!1:(t.dispatch({selection:wB(n.ranges,i.field),effects:YT.of(n.ranges.some(a=>a.field>i.field)?new OO(n.ranges,i.field):null),scrollIntoView:!0}),!0)}}),Uw={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Wg=er.define({map(e,t){let n=t.mapPos(e,-1,js.TrackAfter);return n??void 0}}),TB=new class extends w1{};TB.startSide=1;TB.endSide=-1;const she=xs.define({create(){return Cr.empty},update(e,t){if(e=e.map(t.changes),t.selection){let n=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:r=>r>=n.from&&r<=n.to})}for(let n of t.effects)n.is(Wg)&&(e=e.update({add:[TB.range(n.value,n.value+1)]}));return e}});function XGe(){return[JGe,she]}const xD="()[]{}<>";function ohe(e){for(let t=0;t{if((KGe?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let i=e.state.selection.main;if(r.length>2||r.length==2&&uc(Us(r,0))==1||t!=i.from||n!=i.to)return!1;let a=nYe(e.state,r);return a?(e.dispatch(a),!0):!1}),eYe=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let r=lhe(e,e.selection.main.head).brackets||Uw.brackets,i=null,a=e.changeByRange(s=>{if(s.empty){let o=rYe(e.doc,s.head);for(let l of r)if(l==o&&BR(e.doc,s.head)==ohe(Us(l,0)))return{changes:{from:s.head-l.length,to:s.head+l.length},range:dt.cursor(s.head-l.length)}}return{range:i=s}});return i||t(e.update(a,{scrollIntoView:!0,userEvent:"delete.backward"})),!i},tYe=[{key:"Backspace",run:eYe}];function nYe(e,t){let n=lhe(e,e.selection.main.head),r=n.brackets||Uw.brackets;for(let i of r){let a=ohe(Us(i,0));if(t==i)return a==i?sYe(e,i,r.indexOf(i+i+i)>-1,n):iYe(e,i,a,n.before||Uw.before);if(t==a&&uhe(e,e.selection.main.from))return aYe(e,i,a)}return null}function uhe(e,t){let n=!1;return e.field(she).between(0,e.doc.length,r=>{r==t&&(n=!0)}),n}function BR(e,t){let n=e.sliceString(t,t+2);return n.slice(0,uc(Us(n,0)))}function rYe(e,t){let n=e.sliceString(t-2,t);return uc(Us(n,0))==n.length?n:n.slice(1)}function iYe(e,t,n,r){let i=null,a=e.changeByRange(s=>{if(!s.empty)return{changes:[{insert:t,from:s.from},{insert:n,from:s.to}],effects:Wg.of(s.to+t.length),range:dt.range(s.anchor+t.length,s.head+t.length)};let o=BR(e.doc,s.head);return!o||/\s/.test(o)||r.indexOf(o)>-1?{changes:{insert:t+n,from:s.head},effects:Wg.of(s.head+t.length),range:dt.cursor(s.head+t.length)}:{range:i=s}});return i?null:e.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function aYe(e,t,n){let r=null,i=e.changeByRange(a=>a.empty&&BR(e.doc,a.head)==n?{changes:{from:a.head,to:a.head+n.length,insert:n},range:dt.cursor(a.head+n.length)}:r={range:a});return r?null:e.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function sYe(e,t,n,r){let i=r.stringPrefixes||Uw.stringPrefixes,a=null,s=e.changeByRange(o=>{if(!o.empty)return{changes:[{insert:t,from:o.from},{insert:t,from:o.to}],effects:Wg.of(o.to+t.length),range:dt.range(o.anchor+t.length,o.head+t.length)};let l=o.head,u=BR(e.doc,l),d;if(u==t){if(DK(e,l))return{changes:{insert:t+t,from:l},effects:Wg.of(l+t.length),range:dt.cursor(l+t.length)};if(uhe(e,l)){let p=n&&e.sliceDoc(l,l+t.length*3)==t+t+t?t+t+t:t;return{changes:{from:l,to:l+p.length,insert:p},range:dt.cursor(l+p.length)}}}else{if(n&&e.sliceDoc(l-2*t.length,l)==t+t&&(d=PK(e,l-2*t.length,i))>-1&&DK(e,d))return{changes:{insert:t+t+t+t,from:l},effects:Wg.of(l+t.length),range:dt.cursor(l+t.length)};if(e.charCategorizer(l)(u)!=Ji.Word&&PK(e,l,i)>-1&&!oYe(e,l,t,i))return{changes:{insert:t+t,from:l},effects:Wg.of(l+t.length),range:dt.cursor(l+t.length)}}return{range:a=o}});return a?null:e.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function DK(e,t){let n=Ri(e).resolveInner(t+1);return n.parent&&n.from==t}function oYe(e,t,n,r){let i=Ri(e).resolveInner(t,-1),a=r.reduce((s,o)=>Math.max(s,o.length),0);for(let s=0;s<5;s++){let o=e.sliceDoc(i.from,Math.min(i.to,i.from+n.length+a)),l=o.indexOf(n);if(!l||l>-1&&r.indexOf(o.slice(0,l))>-1){let d=i.firstChild;for(;d&&d.from==i.from&&d.to-d.from>n.length+l;){if(e.sliceDoc(d.to-n.length,d.to)==n)return!1;d=d.firstChild}return!0}let u=i.to==t&&i.parent;if(!u)break;i=u}return!1}function PK(e,t,n){let r=e.charCategorizer(t);if(r(e.sliceDoc(t-1,t))!=Ji.Word)return t;for(let i of n){let a=t-i.length;if(e.sliceDoc(a,t)==i&&r(e.sliceDoc(a-1,a))!=Ji.Word)return a}return-1}function lYe(e={}){return[BGe,wl,Hs.of(e),$Ge,uYe,ihe]}const che=[{key:"Ctrl-Space",run:NGe},{key:"Escape",run:DGe},{key:"ArrowDown",run:qA(!0)},{key:"ArrowUp",run:qA(!1)},{key:"PageDown",run:qA(!0,"page")},{key:"PageUp",run:qA(!1,"page")},{key:"Enter",run:IGe}],uYe=Tp.highest(mO.computeN([Hs],e=>e.facet(Hs).defaultKeymap?[che]:[]));class cYe{constructor(t,n,r){this.from=t,this.to=n,this.diagnostic=r}}class Rg{constructor(t,n,r){this.diagnostics=t,this.panel=n,this.selected=r}static init(t,n,r){let i=t,a=r.facet(zw).markerFilter;a&&(i=a(i,r));let s=vn.set(i.map(o=>o.from==o.to||o.from==o.to-1&&r.doc.lineAt(o.from).to==o.from?vn.widget({widget:new vYe(o),diagnostic:o}).range(o.from):vn.mark({attributes:{class:"cm-lintRange cm-lintRange-"+o.severity+(o.markClass?" "+o.markClass:"")},diagnostic:o}).range(o.from,o.to)),!0);return new Rg(s,n,Nv(s))}}function Nv(e,t=null,n=0){let r=null;return e.between(n,1e9,(i,a,{spec:s})=>{if(!(t&&s.diagnostic!=t))return r=new cYe(i,a,s.diagnostic),!1}),r}function dYe(e,t){let n=t.pos,r=t.end||n,i=e.state.facet(zw).hideOn(e,n,r);if(i!=null)return i;let a=e.startState.doc.lineAt(t.pos);return!!(e.effects.some(s=>s.is(dhe))||e.changes.touchesRange(a.from,Math.max(a.to,r)))}function fYe(e,t){return e.field(vu,!1)?t:t.concat(er.appendConfig.of(EYe))}const dhe=er.define(),xB=er.define(),fhe=er.define(),vu=xs.define({create(){return new Rg(vn.none,null,null)},update(e,t){if(t.docChanged&&e.diagnostics.size){let n=e.diagnostics.map(t.changes),r=null,i=e.panel;if(e.selected){let a=t.changes.mapPos(e.selected.from,1);r=Nv(n,e.selected.diagnostic,a)||Nv(n,null,a)}!n.size&&i&&t.state.facet(zw).autoPanel&&(i=null),e=new Rg(n,i,r)}for(let n of t.effects)if(n.is(dhe)){let r=t.state.facet(zw).autoPanel?n.value.length?jw.open:null:e.panel;e=Rg.init(n.value,r,t.state)}else n.is(xB)?e=new Rg(e.diagnostics,n.value?jw.open:null,e.selected):n.is(fhe)&&(e=new Rg(e.diagnostics,e.panel,n.value));return e},provide:e=>[Iw.from(e,t=>t.panel),en.decorations.from(e,t=>t.diagnostics)]}),hYe=vn.mark({class:"cm-lintRange cm-lintRange-active"});function pYe(e,t,n){let{diagnostics:r}=e.state.field(vu),i=[],a=2e8,s=0;r.between(t-(n<0?1:0),t+(n>0?1:0),(l,u,{spec:d})=>{t>=l&&t<=u&&(l==u||(t>l||n>0)&&(tphe(e,n,!1)))}const gYe=e=>{let t=e.state.field(vu,!1);(!t||!t.panel)&&e.dispatch({effects:fYe(e.state,[xB.of(!0)])});let n=Rw(e,jw.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},LK=e=>{let t=e.state.field(vu,!1);return!t||!t.panel?!1:(e.dispatch({effects:xB.of(!1)}),!0)},bYe=e=>{let t=e.state.field(vu,!1);if(!t)return!1;let n=e.state.selection.main,r=t.diagnostics.iter(n.to+1);return!r.value&&(r=t.diagnostics.iter(0),!r.value||r.from==n.from&&r.to==n.to)?!1:(e.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),!0)},yYe=[{key:"Mod-Shift-m",run:gYe,preventDefault:!0},{key:"F8",run:bYe}],zw=fn.define({combine(e){return Object.assign({sources:e.map(t=>t.source).filter(t=>t!=null)},Vf(e.map(t=>t.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(t,n)=>t?n?r=>t(r)||n(r):t:n}))}});function hhe(e){let t=[];if(e)e:for(let{name:n}of e){for(let r=0;ra.toLowerCase()==i.toLowerCase())){t.push(i);continue e}}t.push("")}return t}function phe(e,t,n){var r;let i=n?hhe(t.actions):[];return xi("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},xi("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage(e):t.message),(r=t.actions)===null||r===void 0?void 0:r.map((a,s)=>{let o=!1,l=p=>{if(p.preventDefault(),o)return;o=!0;let g=Nv(e.state.field(vu).diagnostics,t);g&&a.apply(e,g.from,g.to)},{name:u}=a,d=i[s]?u.indexOf(i[s]):-1,f=d<0?u:[u.slice(0,d),xi("u",u.slice(d,d+1)),u.slice(d+1)];return xi("button",{type:"button",class:"cm-diagnosticAction",onclick:l,onmousedown:l,"aria-label":` Action: ${u}${d<0?"":` (access key "${i[s]})"`}.`},f)}),t.source&&xi("div",{class:"cm-diagnosticSource"},t.source))}class vYe extends Ld{constructor(t){super(),this.diagnostic=t}eq(t){return t.diagnostic==this.diagnostic}toDOM(){return xi("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class MK{constructor(t,n){this.diagnostic=n,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=phe(t,n,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class jw{constructor(t){this.view=t,this.items=[];let n=i=>{if(i.keyCode==27)LK(this.view),this.view.focus();else if(i.keyCode==38||i.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(i.keyCode==40||i.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(i.keyCode==36)this.moveSelection(0);else if(i.keyCode==35)this.moveSelection(this.items.length-1);else if(i.keyCode==13)this.view.focus();else if(i.keyCode>=65&&i.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:a}=this.items[this.selectedIndex],s=hhe(a.actions);for(let o=0;o{for(let a=0;aLK(this.view)},"×")),this.update()}get selectedIndex(){let t=this.view.state.field(vu).selected;if(!t)return-1;for(let n=0;n{let u=-1,d;for(let f=r;fr&&(this.items.splice(r,u-r),i=!0)),n&&d.diagnostic==n.diagnostic?d.dom.hasAttribute("aria-selected")||(d.dom.setAttribute("aria-selected","true"),a=d):d.dom.hasAttribute("aria-selected")&&d.dom.removeAttribute("aria-selected"),r++});r({sel:a.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:s,panel:o})=>{let l=o.height/this.list.offsetHeight;s.topo.bottom&&(this.list.scrollTop+=(s.bottom-o.bottom)/l)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),i&&this.sync()}sync(){let t=this.list.firstChild;function n(){let r=t;t=r.nextSibling,r.remove()}for(let r of this.items)if(r.dom.parentNode==this.list){for(;t!=r.dom;)n();t=r.dom.nextSibling}else this.list.insertBefore(r.dom,t);for(;t;)n()}moveSelection(t){if(this.selectedIndex<0)return;let n=this.view.state.field(vu),r=Nv(n.diagnostics,this.items[t].diagnostic);r&&this.view.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:fhe.of(r)})}static open(t){return new jw(t)}}function OYe(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(e)}')`}function GA(e){return OYe(``,'width="6" height="3"')}const SYe=en.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:GA("#d11")},".cm-lintRange-warning":{backgroundImage:GA("orange")},".cm-lintRange-info":{backgroundImage:GA("#999")},".cm-lintRange-hint":{backgroundImage:GA("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),EYe=[vu,en.decorations.compute([vu],e=>{let{selected:t,panel:n}=e.field(vu);return!t||!n||t.from==t.to?vn.none:vn.set([hYe.range(t.from,t.to)])}),lWe(pYe,{hideOn:dYe}),SYe],wYe=[bWe(),OWe(),BQe(),BVe(),fVe(),_Qe(),DQe(),Dr.allowMultipleSelections.of(!0),eVe(),afe(gVe,{fallback:!0}),wVe(),XGe(),lYe(),XQe(),eWe(),WQe(),Qqe(),mO.of([...tYe,...$qe,...uGe,...GVe,...lVe,...che,...yYe])];function TYe(e){const{presenceList:t}=e,[n,r]=M.useState(null),i=!!n,a=Pr(vp),s=p=>{r(p.currentTarget)},o=()=>{r(null)},l=p=>{var O;const g=p.presence.cursor;g!==null&&((O=a.cmView)==null||O.dispatch({effects:en.scrollIntoView(g[0],{y:"center"})}))},u=4,d=t.slice(u),f=p=>I.jsx(I0,{title:p.presence.name,children:I.jsx(a1,{onClick:()=>l(p),alt:p.presence.name,sx:{bgcolor:p.presence.color},children:p.presence.name[0]})},p.clientID);return I.jsxs(I.Fragment,{children:[I.jsxs(u5e,{children:[t.slice(0,u).map(f),t.length>u&&I.jsxs(a1,{onClick:s,children:["+",t.length-u]})]}),I.jsx(sO,{open:i,anchorEl:n,onClose:o,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:I.jsxs(Gs,{sx:{padding:2},children:[I.jsx(wr,{variant:"subtitle2",children:"Additional Users"}),d.map(p=>I.jsxs(g6e,{sx:{paddingY:1},onClick:()=>l(p),children:[I.jsx(S6e,{children:I.jsx(a1,{sx:{bgcolor:p.presence.color,width:24,height:24,fontSize:12},children:p.presence.name[0]})}),I.jsx(Vh,{primary:p.presence.name,primaryTypographyProps:{variant:"body2"}})]},p.clientID))]})})]})}function xYe(){const e=Du(),t=Mc(),n=Pr(vp),r=Pr(fR),{presenceList:i}=GMe(n.doc);M.useEffect(()=>{n.shareRole==="READ"&&e(s8("read"))},[e,n.shareRole]);const a=o=>{o&&e(s8(o))},s=()=>{var o;t(`/${(o=r.data)==null?void 0:o.slug}`)};return I.jsx(h$,{position:"static",sx:{zIndex:100},children:I.jsx(D$,{children:I.jsxs(Bn,{width:"100%",direction:"row",justifyContent:"space-between",children:[I.jsxs(Bn,{direction:"row",spacing:1,alignItems:"center",children:[!n.shareRole&&I.jsx(I0,{title:"Back to Previous Page",children:I.jsx(Oo,{color:"inherit",onClick:s,children:I.jsx(wle,{})})}),I.jsx(Gs,{children:n.shareRole!=="READ"&&I.jsxs(poe,{value:n.mode,exclusive:!0,onChange:(o,l)=>a(l),size:"small",children:[I.jsx(V4,{value:"edit","aria-label":"edit",children:I.jsx(I0,{title:"Edit Mode",children:I.jsx(Tle,{})})}),I.jsx(V4,{value:"both","aria-label":"both",children:I.jsx(I0,{title:"Both Mode",children:I.jsx(xle,{})})}),I.jsx(V4,{value:"read","aria-label":"read",children:I.jsx(I0,{title:"Read Mode",children:I.jsx(nF,{})})})]})}),I.jsx(u$e,{})]}),I.jsxs(Bn,{direction:"row",alignItems:"center",gap:1,children:[I.jsx(TYe,{presenceList:i}),!n.shareRole&&I.jsx(Sje,{}),I.jsx(_je,{})]})]})})})}function kYe(){return I.jsxs(ea,{sx:{flexGrow:1},height:"100vh",children:[I.jsx(xYe,{}),I.jsx(nR,{})]})}function AYe(){return I.jsx(Bn,{sx:{flexGrow:1,height:"100vh"},children:I.jsx(nR,{})})}var kB={},_Ye=Ii;Object.defineProperty(kB,"__esModule",{value:!0});var mhe=kB.default=void 0,CYe=_Ye(ta()),RYe=I;mhe=kB.default=(0,CYe.default)((0,RYe.jsx)("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout");var AB={},IYe=Ii;Object.defineProperty(AB,"__esModule",{value:!0});var ghe=AB.default=void 0,NYe=IYe(ta()),$K=I;ghe=AB.default=(0,NYe.default)([(0,$K.jsx)("circle",{cx:"10",cy:"8",r:"4"},"0"),(0,$K.jsx)("path",{d:"M10.67 13.02c-.22-.01-.44-.02-.67-.02-2.42 0-4.68.67-6.61 1.82-.88.52-1.39 1.5-1.39 2.53V20h9.26c-.79-1.13-1.26-2.51-1.26-4 0-1.07.25-2.07.67-2.98M20.75 16c0-.22-.03-.42-.06-.63l1.14-1.01-1-1.73-1.45.49c-.32-.27-.68-.48-1.08-.63L18 11h-2l-.3 1.49c-.4.15-.76.36-1.08.63l-1.45-.49-1 1.73 1.14 1.01c-.03.21-.06.41-.06.63s.03.42.06.63l-1.14 1.01 1 1.73 1.45-.49c.32.27.68.48 1.08.63L16 21h2l.3-1.49c.4-.15.76-.36 1.08-.63l1.45.49 1-1.73-1.14-1.01c.03-.21.06-.41.06-.63M17 18c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"},"1")],"ManageAccounts");const DYe={accessToken:null},bhe=M1({name:"auth",initialState:DYe,reducers:{setAccessToken:(e,t)=>{e.accessToken=t.payload}}}),{setAccessToken:_B}=bhe.actions,ZT=e=>e.auth,PYe=bhe.reducer;function yhe(e){const t=Du(),n=BT(),r=Mc(),i=()=>{t(_B(null)),t(a8(null))},a=()=>{r("/settings/profile")},s=()=>{t(Yoe(n=="light"?"dark":"light"))};return I.jsx(sO,{anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},...e,children:I.jsxs(dw,{children:[I.jsxs(Od,{onClick:s,children:[I.jsx(s1,{children:n==="light"?I.jsx(HF,{}):I.jsx(zF,{})}),I.jsx(Vh,{children:"Appearance"})]}),I.jsxs(Od,{onClick:a,children:[I.jsx(s1,{children:I.jsx(ghe,{fontSize:"small"})}),I.jsx(Vh,{children:"Profile"})]}),I.jsxs(Od,{onClick:i,children:[I.jsx(s1,{children:I.jsx(mhe,{fontSize:"small"})}),I.jsx(Vh,{children:"Logout"})]})]})})}function vhe(e){return I.jsx(rm,{...e,children:I.jsxs("svg",{width:"40",height:"38",viewBox:"0 0 40 38",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:30,height:30},children:[I.jsx("path",{d:"M11.8574 11.4048L18.8525 21.4507C19.2947 22.086 20.1683 22.2423 20.8036 21.8001C20.9398 21.7052 21.0581 21.5869 21.153 21.4507L28.148 11.4048C29.0327 10.1343 28.7198 8.3872 27.4495 7.5027C26.9794 7.17549 26.4205 7 25.8477 7H14.1577C12.6095 7 11.3545 8.25503 11.3545 9.80322C11.3547 10.3758 11.5302 10.9347 11.8574 11.4048Z",fill:"#514C49"}),I.jsx("path",{d:"M22.8637 29.5446C23.3612 29.8283 23.9338 29.9528 24.5042 29.9014L37.2991 28.7469C38.3271 28.6542 39.0851 27.7457 38.9924 26.7178C38.9876 26.6636 38.9803 26.6096 38.9706 26.556C38.5862 24.4114 37.8296 22.3507 36.7352 20.4668C35.6407 18.5829 34.2255 16.9048 32.5532 15.5085C31.761 14.8471 30.5825 14.953 29.9211 15.7455C29.8862 15.7872 29.8532 15.8305 29.8219 15.8752L22.4807 26.418C22.1535 26.888 21.978 27.4469 21.978 28.0198V27.9849C21.978 28.3055 22.0604 28.6208 22.2176 28.9002C22.3826 29.1751 22.6155 29.4029 22.8942 29.5617",fill:"#FDC433"}),I.jsx("path",{d:"M17.8492 28.7605C17.6844 29.097 17.4222 29.376 17.0969 29.5616L17.1365 29.539C16.6391 29.8227 16.0665 29.9472 15.4961 29.8959L2.70114 28.7414C2.64694 28.7365 2.59295 28.7293 2.53935 28.7196C1.52348 28.5375 0.847507 27.5663 1.02965 26.5505C1.41407 24.4057 2.17064 22.3451 3.26489 20.4611C4.35914 18.577 5.77455 16.8993 7.44706 15.5028C7.48877 15.4679 7.53208 15.4349 7.57681 15.4037C8.42384 14.8139 9.58841 15.0225 10.1784 15.8695L17.5196 26.4124C17.8468 26.8825 18.0223 27.4414 18.0223 28.0142V27.9685C18.0223 28.343 17.9096 28.7091 17.6991 29.019",fill:"#FDC433"})]})})}function LYe(){var o,l;const e=Mc(),t=Pr(RT),[n,r]=M.useState(null),i=u=>{r(u.currentTarget)},a=()=>{r(null)},s=()=>{var u;e(`/${(u=t.data)==null?void 0:u.lastWorkspaceSlug}`)};return I.jsxs(h$,{position:"fixed",children:[I.jsx(D$,{children:I.jsxs(Bn,{width:"100%",direction:"row-reverse",justifyContent:"space-between",alignItems:"center",children:[I.jsx(Oo,{onClick:i,children:I.jsx(a1,{children:(l=(o=t.data)==null?void 0:o.nickname)==null?void 0:l.charAt(0)})}),I.jsx(Oo,{onClick:s,children:I.jsx(vhe,{})})]})}),I.jsx(yhe,{open:!!n,anchorEl:n,onClose:a})]})}function MYe(){return I.jsxs(ea,{sx:{display:"flex"},children:[I.jsx(LYe,{}),I.jsx(nR,{})]})}const $Ye=e=>["workspaces",e],Ohe=()=>["workspaces"],CB=e=>{const t=Du(),n=cO({queryKey:$Ye(e||""),enabled:!!e,queryFn:async()=>(await tr.get(`/workspaces/${e}`)).data,meta:{errorMessage:"This is a non-existent or unauthorized Workspace."}});return M.useEffect(()=>(n.data&&t(SZ(n.data)),()=>{t(SZ(null))}),[t,n.data]),n},FYe=()=>sF({queryKey:Ohe(),queryFn:async({pageParam:t})=>(await tr.get("/workspaces",{params:{cursor:t}})).data,initialPageParam:void 0,getPreviousPageParam:t=>t.cursor??void 0,getNextPageParam:t=>t.cursor??void 0}),BYe=()=>{const e=NT();return Op({mutationFn:async t=>(await tr.post("/workspaces",t)).data,onSuccess:()=>{e.invalidateQueries({queryKey:Ohe()})}})},UYe=e=>Op({mutationFn:async t=>(await tr.post(`/workspaces/${e}/invite-token`,t)).data}),zYe=()=>Op({mutationFn:async e=>(await tr.post("/workspaces/join",e)).data});class Hw extends M.Component{constructor(t){super(t),this.scrollListener=this.scrollListener.bind(this),this.eventListenerOptions=this.eventListenerOptions.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this)}componentDidMount(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}componentDidUpdate(){if(this.props.isReverse&&this.loadMore){const t=this.getParentElement(this.scrollComponent);t.scrollTop=t.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}componentWillUnmount(){this.detachScrollListener(),this.detachMousewheelListener()}isPassiveSupported(){let t=!1;const n={get passive(){t=!0}};try{document.addEventListener("test",null,n),document.removeEventListener("test",null,n)}catch{}return t}eventListenerOptions(){let t=this.props.useCapture;return this.isPassiveSupported()?t={useCapture:this.props.useCapture,passive:!0}:t={passive:!1},t}setDefaultLoader(t){this.defaultLoader=t}detachMousewheelListener(){let t=window;this.props.useWindow===!1&&(t=this.scrollComponent.parentNode),t.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}detachScrollListener(){let t=window;this.props.useWindow===!1&&(t=this.getParentElement(this.scrollComponent)),t.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}getParentElement(t){const n=this.props.getScrollParent&&this.props.getScrollParent();return n??(t&&t.parentNode)}filterProps(t){return t}attachScrollListener(){const t=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!t)return;let n=window;this.props.useWindow===!1&&(n=t),n.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),n.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),n.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}mousewheelListener(t){t.deltaY===1&&!this.isPassiveSupported()&&t.preventDefault()}scrollListener(){const t=this.scrollComponent,n=window,r=this.getParentElement(t);let i;if(this.props.useWindow){const a=document.documentElement||document.body.parentNode||document.body,s=n.pageYOffset!==void 0?n.pageYOffset:a.scrollTop;this.props.isReverse?i=s:i=this.calculateOffset(t,s)}else this.props.isReverse?i=r.scrollTop:i=t.scrollHeight-r.scrollTop-r.clientHeight;i{this.scrollComponent=w,d&&d(w)};const T=[n];return i&&(o?s?T.unshift(o):T.push(o):this.defaultLoader&&(s?T.unshift(this.defaultLoader):T.push(this.defaultLoader))),rn.createElement(r,S,T)}}Ls(Hw,"propTypes",{children:Xl.node.isRequired,element:Xl.node,hasMore:Xl.bool,initialLoad:Xl.bool,isReverse:Xl.bool,loader:Xl.node,loadMore:Xl.func.isRequired,pageStart:Xl.number,ref:Xl.func,getScrollParent:Xl.func,threshold:Xl.number,useCapture:Xl.bool,useWindow:Xl.bool}),Ls(Hw,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});var RB={},jYe=Ii;Object.defineProperty(RB,"__esModule",{value:!0});var She=RB.default=void 0,HYe=jYe(ta()),QYe=I;She=RB.default=(0,HYe.default)((0,QYe.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var IB={},WYe=Ii;Object.defineProperty(IB,"__esModule",{value:!0});var UR=IB.default=void 0,VYe=WYe(ta()),qYe=I;UR=IB.default=(0,VYe.default)((0,qYe.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");function GYe(e,t){var n=M.useRef(!1),r=M.useRef(),i=M.useRef(e),a=M.useCallback(function(){return n.current},[]),s=M.useCallback(function(){n.current=!1,r.current&&clearTimeout(r.current),r.current=setTimeout(function(){n.current=!0,i.current()},t)},[t]),o=M.useCallback(function(){n.current=null,r.current&&clearTimeout(r.current)},[]);return M.useEffect(function(){i.current=e},[e]),M.useEffect(function(){return s(),o},[t]),[a,o,s]}function zR(e,t,n){n===void 0&&(n=[]);var r=GYe(e,t),i=r[0],a=r[1],s=r[2];return M.useEffect(s,n),[i,a]}const YYe=e=>["check","name-conflict",e],NB=e=>cO({queryKey:YYe(e||""),enabled:!!e,queryFn:async()=>(await tr.post("/check/name-conflict",{name:e})).data});function Ehe(e){const{title:t,onSuccess:n,enableConflictCheck:r,...i}=e,[a,s]=M.useState(""),[o,l]=M.useState(""),{data:u}=NB(o),d=M.useMemo(()=>r?a.length<2?"Title must be at least 2 characters":u!=null&&u.conflict?"Already Exists":null:null,[r,a.length,u==null?void 0:u.conflict]);zR(()=>{l(a)},500,[a]);const f=()=>{var O;(O=i==null?void 0:i.onClose)==null||O.call(i,new Event("Close Modal"),"escapeKeyDown")},p=async O=>{O.title.length>=2&&(await n(O),f())},g=O=>{r&&s(O.target.value)};return I.jsx(iO,{disableAutoFocus:!0,...i,children:I.jsxs(Gs,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[I.jsx(Oo,{sx:{position:"absolute",top:28,right:28},onClick:f,children:I.jsx(AR,{})}),I.jsxs(Bn,{gap:4,children:[I.jsxs(wr,{variant:"h5",children:["Create New ",t]}),I.jsx(Lc,{children:I.jsx(dO,{defaultValues:{title:""},onSuccess:p,children:I.jsxs(Bn,{gap:4,alignItems:"flex-end",children:[I.jsx(PT,{variant:"standard",name:"title",label:`Title of New ${t}`,required:!0,fullWidth:!0,inputProps:{maxLength:255},onChange:g,error:!!d,helperText:d}),I.jsx(po,{type:"submit",variant:"contained",size:"large",disabled:!!d,children:"OK"})]})})})]})]})})}function ZYe(e){const{width:t,...n}=e,r=Mc(),i=Em(),{data:a,hasNextPage:s,fetchNextPage:o}=FYe(),{mutateAsync:l}=BYe(),u=M.useMemo(()=>(a==null?void 0:a.pages.reduce((T,w)=>T.concat(w.workspaces),[]))??[],[a==null?void 0:a.pages]),[d,f]=M.useState(!1),p=T=>{r(`/${T}`)},g=T=>{var w;i.workspaceSlug!==T&&(p(T),(w=n==null?void 0:n.onClose)==null||w.call(n,new Event("Close Popover"),"backdropClick"))},O=()=>{var T;f(w=>!w),n.open&&((T=n==null?void 0:n.onClose)==null||T.call(n,new Event("Close Popover"),"backdropClick"))},S=async T=>{const w=await l(T);p(w.slug)};return I.jsxs(I.Fragment,{children:[I.jsxs(sO,{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...n,children:[I.jsx(dw,{sx:{width:t},children:I.jsx(ea,{style:{maxHeight:300,overflow:"auto"},children:I.jsx(Hw,{pageStart:0,loadMore:()=>o(),hasMore:s,loader:I.jsx(ea,{className:"loader",children:I.jsx(kd,{size:"sm"})},0),useWindow:!1,children:u.map(T=>I.jsxs(Od,{onClick:()=>g(T.slug),children:[I.jsx(Vh,{primaryTypographyProps:{noWrap:!0,variant:"body2"},children:T.title}),i.workspaceSlug===T.slug&&I.jsx(_$,{children:I.jsx(She,{fontSize:"small"})})]},T.id))})})}),I.jsx(wv,{}),I.jsx(dw,{sx:{width:t},children:I.jsxs(Od,{onClick:O,children:[I.jsx(s1,{children:I.jsx(UR,{fontSize:"small",color:"primary"})}),I.jsx(Vh,{primaryTypographyProps:{color:"primary"},children:"Create Workspace"})]})})]}),I.jsx(Ehe,{open:d,title:"Workspace",onClose:O,onSuccess:S,enableConflictCheck:!0})]})}const uC=256,FK=64;var DB={},XYe=Ii;Object.defineProperty(DB,"__esModule",{value:!0});var whe=DB.default=void 0,KYe=XYe(ta()),JYe=I;whe=DB.default=(0,KYe.default)((0,JYe.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");var PB={},eZe=Ii;Object.defineProperty(PB,"__esModule",{value:!0});var The=PB.default=void 0,tZe=eZe(ta()),nZe=I;The=PB.default=(0,tZe.default)((0,nZe.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");function rZe(){var d,f,p;const e=Pr(RT),t=Pr(fR),[n,r]=M.useState(null),[i,a]=M.useState(null),s=g=>{a(g.currentTarget)},o=()=>{a(null)},l=g=>{r(g.currentTarget)},u=()=>{r(null)};return I.jsxs(h$,{position:"fixed",children:[I.jsx(D$,{children:I.jsxs(Bn,{width:"100%",direction:"row",justifyContent:"space-between",alignItems:"center",children:[I.jsx(po,{variant:"text",color:"inherit",sx:{width:uC,textAlign:"left"},onClick:l,children:I.jsxs(Bn,{width:1,direction:"row",justifyContent:"space-between",alignItems:"center",children:[I.jsx(wr,{variant:"h6",component:"span",noWrap:!0,children:(d=t.data)==null?void 0:d.title}),n?I.jsx(The,{}):I.jsx(whe,{})]})}),I.jsx(ZYe,{open:!!n,anchorEl:n,onClose:u,width:uC}),I.jsx(Oo,{onClick:s,children:I.jsx(a1,{children:(p=(f=e.data)==null?void 0:f.nickname)==null?void 0:p.charAt(0)})})]})}),I.jsx(yhe,{open:!!i,anchorEl:i,onClose:o})]})}var LB={},iZe=Ii;Object.defineProperty(LB,"__esModule",{value:!0});var xhe=LB.default=void 0,aZe=iZe(ta()),sZe=I;xhe=LB.default=(0,aZe.default)((0,sZe.jsx)("path",{d:"M11 21H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h6zm2 0h6c1.1 0 2-.9 2-2v-7h-8zm8-11V5c0-1.1-.9-2-2-2h-6v7z"}),"SpaceDashboard");var MB={},oZe=Ii;Object.defineProperty(MB,"__esModule",{value:!0});var khe=MB.default=void 0,lZe=oZe(ta()),uZe=I;khe=MB.default=(0,lZe.default)((0,uZe.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"People");var $B={},cZe=Ii;Object.defineProperty($B,"__esModule",{value:!0});var Ahe=$B.default=void 0,dZe=cZe(ta()),BK=I;Ahe=$B.default=(0,dZe.default)([(0,BK.jsx)("path",{d:"M6.41 6 5 7.41 9.58 12 5 16.59 6.41 18l6-6z"},"0"),(0,BK.jsx)("path",{d:"m13 6-1.41 1.41L16.17 12l-4.58 4.59L13 18l6-6z"},"1")],"KeyboardDoubleArrowRight");var FB={},fZe=Ii;Object.defineProperty(FB,"__esModule",{value:!0});var _he=FB.default=void 0,hZe=fZe(ta()),UK=I;_he=FB.default=(0,hZe.default)([(0,UK.jsx)("path",{d:"M17.59 18 19 16.59 14.42 12 19 7.41 17.59 6l-6 6z"},"0"),(0,UK.jsx)("path",{d:"m11 18 1.41-1.41L7.83 12l4.58-4.59L11 6l-6 6z"},"1")],"KeyboardDoubleArrowLeft");function pZe(e){const{open:t}=e,n=Sm(),r=Em(),i=Mc(),a=Du(),[s,o]=M.useState(!1),l=M.useMemo(()=>n.pathname.split("/")[2]??"main",[n.pathname]),u=M.useMemo(()=>[{title:"Workspace",IconComponent:xhe,selected:l==="main",moveTo:`/${r.workspaceSlug}`},{title:"Members",IconComponent:khe,selected:l==="member",moveTo:`/${r.workspaceSlug}/member`}],[l,r.workspaceSlug]),d=()=>{a(K8e(!t)),o(!1)},f=()=>{o(!0)},p=()=>{o(!1)};return I.jsxs(ea,{children:[I.jsx(ea,{sx:{width:t?uC:FK}}),I.jsx(Gs,{sx:{position:"fixed",top:0,left:0,height:"100vh",zIndex:10},children:I.jsx(f$,{orientation:"horizontal",in:s||t,collapsedSize:FK,children:I.jsxs(ea,{sx:{width:uC,overflow:"hidden"},children:[I.jsx(Che,{}),I.jsx(Gs,{square:!0,elevation:0,onMouseEnter:f,onMouseLeave:p,sx:{backgroundColor:"transparent"},children:I.jsxs(noe,{children:[I.jsx(nY,{onClick:d,children:I.jsx(s1,{children:t?I.jsx(_he,{}):I.jsx(Ahe,{})})}),u.map((g,O)=>I.jsxs(nY,{onClick:()=>i(g.moveTo),selected:g.selected,children:[I.jsx(s1,{children:I.jsx(g.IconComponent,{color:g.selected?"primary":"inherit"})}),I.jsx(Vh,{primary:g.title})]},O))]})})]})})})]})}const Che=lt("div")(({theme:e})=>({display:"flex",alignItems:"center",padding:e.spacing(0,1),...e.mixins.toolbar,justifyContent:"flex-end"}));function mZe(){const{drawerOpen:e}=Pr(V$);return I.jsxs(ea,{sx:{display:"flex"},children:[I.jsx(rZe,{}),I.jsxs(Bn,{direction:"row",sx:{width:"100%"},children:[I.jsx(pZe,{open:e}),I.jsxs(ea,{flexGrow:1,padding:3,children:[I.jsx(Che,{}),I.jsx(nR,{})]})]})]})}var gZe=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(r,i,a){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:a})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,i){if(1&i&&(r=n(r)),8&i||4&i&&typeof r=="object"&&r&&r.__esModule)return r;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var s in r)n.d(a,s,(function(o){return r[o]}).bind(null,s));return a},n.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(i,"a",i),i},n.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},n.p="",n(n.s=4)}([function(e,t,n){e.exports=n(2)()},function(e,t){e.exports=M},function(e,t,n){var r=n(3);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function s(u,d,f,p,g,O){if(O!==r){var S=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw S.name="Invariant Violation",S}}function o(){return s}s.isRequired=s;var l={array:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:o,element:s,elementType:s,instanceOf:o,node:s,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:a,resetWarningCache:i};return l.PropTypes=l,l}},function(e,t,n){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){n.r(t),n.d(t,"FacebookLoginButton",function(){return K}),n.d(t,"GoogleLoginButton",function(){return H}),n.d(t,"GithubLoginButton",function(){return Z}),n.d(t,"TwitterLoginButton",function(){return ae}),n.d(t,"AmazonLoginButton",function(){return Ye}),n.d(t,"InstagramLoginButton",function(){return Pt}),n.d(t,"LinkedInLoginButton",function(){return Ot}),n.d(t,"MicrosoftLoginButton",function(){return de}),n.d(t,"BufferLoginButton",function(){return Ke}),n.d(t,"TelegramLoginButton",function(){return gt}),n.d(t,"AppleLoginButton",function(){return we}),n.d(t,"DiscordLoginButton",function(){return Ue}),n.d(t,"OktaLoginButton",function(){return tt}),n.d(t,"SlackLoginButton",function(){return zt}),n.d(t,"YahooLoginButton",function(){return Mr}),n.d(t,"createButton",function(){return re}),n.d(t,"createSvgIcon",function(){return q}),n.d(t,"ZaloLoginButton",function(){return Ni}),n.d(t,"TikTokLoginButton",function(){return pi}),n.d(t,"MetamaskLoginButton",function(){return Qi});var r={};n.r(r),n.d(r,"FacebookLoginButton",function(){return K}),n.d(r,"GoogleLoginButton",function(){return H}),n.d(r,"GithubLoginButton",function(){return Z}),n.d(r,"TwitterLoginButton",function(){return ae}),n.d(r,"AmazonLoginButton",function(){return Ye}),n.d(r,"InstagramLoginButton",function(){return Pt}),n.d(r,"LinkedInLoginButton",function(){return Ot}),n.d(r,"MicrosoftLoginButton",function(){return de}),n.d(r,"BufferLoginButton",function(){return Ke}),n.d(r,"TelegramLoginButton",function(){return gt}),n.d(r,"AppleLoginButton",function(){return we}),n.d(r,"DiscordLoginButton",function(){return Ue}),n.d(r,"OktaLoginButton",function(){return tt}),n.d(r,"SlackLoginButton",function(){return zt}),n.d(r,"YahooLoginButton",function(){return Mr}),n.d(r,"createButton",function(){return re}),n.d(r,"createSvgIcon",function(){return q}),n.d(r,"ZaloLoginButton",function(){return Ni}),n.d(r,"TikTokLoginButton",function(){return pi}),n.d(r,"MetamaskLoginButton",function(){return Qi});var i=n(1),a=n.n(i),s=n(0),o=n.n(s),l=function(ze){var nt=ze.name,le=ze.size,he=ze.format;return a.a.createElement("i",{className:he(nt),style:{fontSize:le}})};l.propTypes={format:o.a.func,name:o.a.string.isRequired,size:o.a.oneOfType([o.a.string,o.a.number]).isRequired},l.defaultProps={format:function(ze){return"demo-icon icon-".concat(ze)},size:26};var u=l,d=function(ze){var nt=ze.type,le=ze.size,he=ze.format,Le=ze.color,Ve=Le===void 0?"#FFFFFF":Le;return typeof nt=="string"?a.a.createElement(u,{format:he,name:nt,size:le}):a.a.createElement(nt,{size:le,color:Ve})};d.propTypes={format:o.a.func,size:o.a.oneOfType([o.a.number,o.a.string]),type:o.a.oneOfType([o.a.string,o.a.node,o.a.func]),color:o.a.string};var f=d;function p(ze,nt){var le=Object.keys(ze);if(Object.getOwnPropertySymbols){var he=Object.getOwnPropertySymbols(ze);nt&&(he=he.filter(function(Le){return Object.getOwnPropertyDescriptor(ze,Le).enumerable})),le.push.apply(le,he)}return le}function g(ze){for(var nt=1;nt"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var le,he=R(ze);if(nt){var Le=R(this).constructor;le=Reflect.construct(he,arguments,Le)}else le=he.apply(this,arguments);return _(this,le)}}function _(ze,nt){return!nt||S(nt)!=="object"&&typeof nt!="function"?function(le){if(le===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return le}(ze):nt}function R(ze){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(nt){return nt.__proto__||Object.getPrototypeOf(nt)})(ze)}var N=function(ze){(function(Ve,pt){if(typeof pt!="function"&&pt!==null)throw new TypeError("Super expression must either be null or a function");Ve.prototype=Object.create(pt&&pt.prototype,{constructor:{value:Ve,writable:!0,configurable:!0}}),pt&&x(Ve,pt)})(Le,ze);var nt,le,he=k(Le);function Le(Ve){var pt;return function(Vt,Ie){if(!(Vt instanceof Ie))throw new TypeError("Cannot call a class as a function")}(this,Le),(pt=he.call(this,Ve)).state={focused:!1,hovered:!1},pt.handleMouseEnter=function(){pt.setState({hovered:!0}),typeof pt.props.onMouseEnter=="function"&&pt.props.onMouseEnter()},pt.handleMouseLeave=function(){pt.setState({hovered:!1}),typeof pt.props.onMouseLeave=="function"&&pt.props.onMouseLeave()},pt.handleFocus=function(){pt.setState({focused:!0})},pt.handleBlur=function(){pt.setState({focused:!1})},pt.handleClick=function(Vt){typeof pt.props.onClick=="function"&&pt.props.onClick(Vt)},pt}return nt=Le,(le=[{key:"render",value:function(){var Ve=this.props,pt=Ve.activeStyle,Vt=Ve.align,Ie=Ve.text,Te=Ve.children,at=Te===void 0?Ie:Te,qe=Ve.className,St=Ve.icon,_t=Ve.iconFormat,Gt=Ve.iconSize,jn=Ve.iconColor,qn=jn===void 0?"#FFFFFF":jn,Wi=Ve.preventActiveStyles,ti=Ve.size,$u=Ve.style,xo=Ve.disabled,Ml=this.state,$l=Ml.focused,Fl=Ml.hovered,As=L(j.button,{activeStyle:Wi?$u:pt,customStyle:$u,active:Fl||$l,size:ti});return a.a.createElement("button",T({type:"button",style:As,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur},{className:qe},{disabled:xo}),a.a.createElement("div",{style:j.flex},!P(Gt)&&a.a.createElement("div",{style:{display:"flex",justifyContent:"center",minWidth:Gt}},a.a.createElement(f,{type:St,size:Gt,format:_t,color:qn})),!P(Gt)&&a.a.createElement("div",{style:j.divider}),a.a.createElement("div",{style:{textAlign:Vt,width:"100%"}},at)))}}])&&w(nt.prototype,le),Le}(i.Component),P=function(ze){return ze==="0"||ze==="0px"||ze===0},L=function(ze,nt){var le=nt.size,he=nt.customStyle,Le=nt.active,Ve=nt.activeStyle;return g(g(g({},ze),{},{height:le},he),Le&&Ve)};N.propTypes={activeStyle:o.a.object,align:o.a.oneOf(["left","right","center"]),children:o.a.node,className:o.a.string,icon:o.a.oneOfType([o.a.string,o.a.node,o.a.func]),iconFormat:o.a.func,iconSize:o.a.string,iconColor:o.a.string,onClick:o.a.func,onMouseEnter:o.a.func,onMouseLeave:o.a.func,preventActiveStyles:o.a.bool,size:o.a.string,style:o.a.object,text:o.a.string,disabled:o.a.bool},N.defaultProps={align:"left",iconSize:"26px",preventActiveStyles:!1,size:"50px"};var j={button:{display:"block",border:0,borderRadius:3,boxShadow:"rgba(0, 0, 0, 0.5) 0 1px 2px",color:"#ffffff",cursor:"pointer",fontSize:"19px",margin:"5px",width:"calc(100% - 10px)",overflow:"hidden",padding:"0 10px",userSelect:"none"},divider:{width:"10px"},flex:{alignItems:"center",display:"flex",height:"100%"}};function B(ze,nt){var le=Object.keys(ze);if(Object.getOwnPropertySymbols){var he=Object.getOwnPropertySymbols(ze);nt&&(he=he.filter(function(Le){return Object.getOwnPropertyDescriptor(ze,Le).enumerable})),le.push.apply(le,he)}return le}function V(ze){for(var nt=1;nt{window.location.href=`https://codepair-api.yorkie.dev/auth/login/${t}`};return I.jsx(T$,{sx:{height:1},children:I.jsx(Bn,{alignItems:"center",justifyContent:"center",sx:{height:1},children:I.jsx(Gs,{sx:{p:5,width:"small",boxShadow:2,maxWidth:"80%"},children:I.jsxs(Bn,{gap:4,children:[I.jsxs(ea,{children:[I.jsxs(Bn,{direction:"row",gap:1,children:[I.jsx(vhe,{}),I.jsx(wr,{variant:"h6",children:"Login"})]}),I.jsx(wr,{variant:"body2",color:"text.secondary",maxWidth:320,children:"Real-time markdown editor for interviews, meetings and more..."})]}),I.jsxs(Bn,{gap:2,children:[I.jsxs(fy,{container:!0,spacing:1,alignItems:"center",children:[I.jsx(fy,{item:!0,xs:!0,children:I.jsx(wv,{sx:{width:1}})}),I.jsx(fy,{item:!0,xs:"auto",children:I.jsx(wr,{variant:"body2",color:"text.secondary",children:"Login with"})}),I.jsx(fy,{item:!0,xs:!0,children:I.jsx(wv,{sx:{width:1}})})]}),bZe.map(({SocailLoginComponent:t,provider:n})=>I.jsx(t,{size:"48px",onClick:()=>e(n)},n))]})]})})})})}function vZe(){const e=Du(),t=Mc(),[n]=z$();return M.useEffect(()=>{const r=n.get("token");if(!r){t("/");return}e(_B(r))},[e,t,n]),I.jsx(ea,{})}const OZe=()=>{const e=Mc(),t=()=>{e("/")};return I.jsxs(ea,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100vh",width:"100vw",textAlign:"center",bgcolor:"background.default",color:"text.primary",p:3},children:[I.jsx(wr,{variant:"h1",component:"h1",gutterBottom:!0,children:"404"}),I.jsx(wr,{variant:"h5",component:"p",gutterBottom:!0,children:"Page Not Found"}),I.jsx(wr,{variant:"body1",component:"p",gutterBottom:!0,children:"The page you are looking for does not exist."}),I.jsx(po,{variant:"contained",color:"primary",onClick:t,sx:{mt:2},children:"Go to Home"})]})},Rhe=e=>["users",e],SZe=()=>{const e=Du(),t=Pr(ZT),n=cO({queryKey:Rhe(t.accessToken||""),enabled:!!t.accessToken,queryFn:async()=>(tr.defaults.headers.common.Authorization=`Bearer ${t.accessToken}`,(await tr.get("/users")).data)});return M.useEffect(()=>{n.isSuccess?e(a8(n.data)):n.isError&&(e(_B(null)),e(a8(null)),tr.defaults.headers.common.Authorization="")},[e,n.data,n.isError,n.isSuccess]),n},Ihe=()=>{const e=Pr(ZT),t=NT();return Op({mutationFn:async n=>(await tr.put("/users",n)).data,onSuccess:()=>{t.invalidateQueries({queryKey:Rhe(e.accessToken||"")})}})},kD=117;function EZe(){var f,p,g,O,S,T,w,x;const e=Pr(RT),[t,n]=M.useState(((f=e.data)==null?void 0:f.nickname)||""),[r,i]=M.useState(""),{data:a}=NB(r),{mutateAsync:s}=Ihe(),o=M.useMemo(()=>{var k;return r!=((k=e.data)==null?void 0:k.nickname)&&(a!=null&&a.conflict)?"Already Exists":null},[a==null?void 0:a.conflict,r,(p=e.data)==null?void 0:p.nickname]),l=M.useMemo(()=>{var k;return!!o||t===((k=e.data)==null?void 0:k.nickname)||t.length===0},[o,t,(g=e.data)==null?void 0:g.nickname]);zR(()=>{i(t)},500,[t]),M.useEffect(()=>{var k,_;(k=e.data)!=null&&k.nickname&&n(((_=e.data)==null?void 0:_.nickname)||"")},[(O=e.data)==null?void 0:O.nickname]);const u=k=>{n(k.target.value)},d=async k=>{await s(k)};return I.jsx(T$,{sx:{height:"calc(100vh - 88px)",width:"100%"},children:I.jsxs(Bn,{alignItems:"center",justifyContent:"center",gap:6,sx:{height:1},children:[I.jsx(a1,{sx:{width:kD,height:kD,fontSize:kD/2},children:(T=(S=e.data)==null?void 0:S.nickname)==null?void 0:T.charAt(0).toUpperCase()}),I.jsx(Bn,{width:310,children:I.jsxs(Lc,{children:[I.jsx(wr,{variant:"body1",children:"User name"}),((w=e.data)==null?void 0:w.nickname)&&I.jsx(dO,{defaultValues:{nickname:(x=e.data)==null?void 0:x.nickname},onSuccess:d,children:I.jsxs(Bn,{gap:3,children:[I.jsx(PT,{variant:"standard",name:"nickname",required:!0,fullWidth:!0,inputProps:{maxLength:255},onChange:u,error:!!o,helperText:o}),I.jsx(po,{type:"submit",variant:"contained",size:"large",disabled:l,children:"Save"})]})})]})})]})})}var BB={},wZe=Ii;Object.defineProperty(BB,"__esModule",{value:!0});var Nhe=BB.default=void 0,TZe=wZe(ta()),zK=I;Nhe=BB.default=(0,TZe.default)([(0,zK.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,zK.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function xZe(e){const{document:t}=e,n=Mc(),r=Em(),i=()=>{n(`/${r.workspaceSlug}/${t.id}`)};return I.jsx(Kse,{sx:{width:"100%"},children:I.jsx(L5e,{onClick:i,children:I.jsxs(U5e,{children:[I.jsx(wr,{variant:"h5",component:"div",noWrap:!0,children:t.title}),I.jsxs(Bn,{direction:"row",alignItems:"center",gap:1,children:[I.jsx(Nhe,{fontSize:"small",sx:{color:"text.secondary"}}),I.jsxs(wr,{variant:"body2",color:"text.secondary",noWrap:!0,children:["Changed ",tn(t.updatedAt).fromNow()]})]})]})})})}function kZe(){const e=Em(),t=Mc(),{data:n,isLoading:r}=CB(e.workspaceSlug),{data:i,fetchNextPage:a,hasNextPage:s}=cje(n==null?void 0:n.id),{mutateAsync:o}=fje((n==null?void 0:n.id)||""),[l,u]=M.useState(!1),d=M.useMemo(()=>(i==null?void 0:i.pages.reduce((g,O)=>g.concat(O.documents),[]))??[],[i==null?void 0:i.pages]);if(r)return I.jsx(rO,{open:!0,children:I.jsx(kd,{color:"inherit"})});const f=()=>{u(g=>!g)},p=async g=>{const O=await o(g);t(O.id)};return I.jsxs(Bn,{gap:2,children:[I.jsxs(Bn,{direction:"row",justifyContent:"space-between",alignItems:"center",px:2,children:[I.jsxs(wr,{variant:"h5",fontWeight:"bold",children:[n==null?void 0:n.title," ",I.jsx(wr,{component:"span",variant:"inherit",color:"primary",children:i==null?void 0:i.pages[0].totalLength})]}),I.jsx(po,{variant:"contained",startIcon:I.jsx(UR,{}),onClick:f,children:"New Note"})]}),I.jsx(Bn,{style:{maxHeight:"calc(100vh - 144px)",overflow:"auto"},children:I.jsx(Hw,{pageStart:0,loadMore:()=>a(),hasMore:s,loader:I.jsx(Bn,{className:"loader",alignItems:"center",children:I.jsx(kd,{size:20})},0),useWindow:!1,children:I.jsx(ea,{p:2,width:1,children:I.jsx(fy,{container:!0,spacing:{xs:2,md:3},columns:{xs:4,sm:8,md:12,lg:12},children:d.map(g=>I.jsx(fy,{item:!0,xs:4,sm:4,md:4,lg:3,children:I.jsx(xZe,{document:g})},g.id))})})})}),I.jsx(Ehe,{open:l,title:"Note",onSuccess:p,onClose:f})]})}function cC(){return cC=Object.assign?Object.assign.bind():function(e){for(var t=1;tu?(j(u),B.current=u):(j(ke),B.current=ke),T&&T({position:B.current})}}},[r,t,S,O,p,d,L,o,u,T,a]),ie=M.useCallback(function(){r||(j(a),B.current=a)},[r,a]);return{position:L,endPosition:W,isDragging:R,separatorProps:cC({},ee,{onPointerDown:K,onKeyDown:G,onDoubleClick:ie}),setPosition:j,splitterProps:cC({},ee,{onPointerDown:K,onKeyDown:G,onDoubleClick:ie})}},IZe=function(e){var t=e.disabled,n=e.initial,r=e.min,i=e.max;return(0,e.children)(RZe({axis:e.axis,disabled:t!==void 0&&t,initial:n===void 0?0:n,min:r===void 0?0:r,max:i===void 0?1/0:i,reverse:e.reverse,onResizeStart:e.onResizeStart,onResizeEnd:e.onResizeEnd,containerRef:e.containerRef}))};const NZe=e=>{const t=M.useRef(e);return M.useEffect(()=>{t.current=e}),t},DZe=(e,t=100,n=!1)=>{const r=NZe(e),i=M.useRef(),a=[t,n,r];function s(){i.current&&clearTimeout(i.current),i.current=void 0}M.useEffect(()=>s,a);function o(){i.current=void 0}return M.useCallback(function(){const l=arguments,{current:u}=i;if(u===void 0&&n)return i.current=setTimeout(o,t),r.current.apply(null,l);u&&clearTimeout(u),i.current=setTimeout(()=>{i.current=void 0,r.current.apply(null,l)},t)},a)},PZe=(e,t,n)=>{const r=M.useState(e);return[r[0],DZe(r[1],t,n)]};function AD(e,t,n,r){const i=M.useRef(n),a=M.useRef(r);M.useEffect(()=>{i.current=n,a.current=r}),M.useEffect(()=>{const s=e&&"current"in e?e.current:e;if(!s)return;let o=0;function l(...d){o||i.current.apply(this,d)}s.addEventListener(t,l);const u=a.current;return()=>{o=1,s.removeEventListener(t,l),u&&u()}},[e,t])}const LZe={},O2=typeof window>"u"?null:window,MZe=O2&&typeof O2.visualViewport<"u"?O2.visualViewport:null,jK=()=>[document.documentElement.clientWidth,document.documentElement.clientHeight],$Ze=function(e){e===void 0&&(e=LZe);const{wait:t,leading:n,initialWidth:r=0,initialHeight:i=0}=e,[a,s]=PZe(typeof document>"u"?[r,i]:jK,t,n),o=()=>s(jK);return AD(O2,"resize",o),AD(MZe,"resize",o),AD(O2,"orientationchange",o),a},FZe=e=>$Ze(e)[0];class dC{static create(t,n,r,i,a){let s=i+(i<<8)+t+(n<<4)|0;return new dC(t,n,r,s,a,[],[])}constructor(t,n,r,i,a,s,o){this.type=t,this.value=n,this.from=r,this.hash=i,this.end=a,this.children=s,this.positions=o,this.hashProp=[[Wn.contextHash,i]]}addChild(t,n){t.prop(Wn.contextHash)!=this.hash&&(t=new Jr(t.type,t.children,t.positions,t.length,this.hashProp)),this.children.push(t),this.positions.push(n)}toTree(t,n=this.end){let r=this.children.length-1;return r>=0&&(n=Math.max(n,this.positions[r]+this.children[r].length+this.from)),new Jr(t.types[this.type],this.children,this.positions,n-this.from).balance({makeTree:(i,a,s)=>new Jr(ls.none,i,a,s,this.hashProp)})}}var Bt;(function(e){e[e.Document=1]="Document",e[e.CodeBlock=2]="CodeBlock",e[e.FencedCode=3]="FencedCode",e[e.Blockquote=4]="Blockquote",e[e.HorizontalRule=5]="HorizontalRule",e[e.BulletList=6]="BulletList",e[e.OrderedList=7]="OrderedList",e[e.ListItem=8]="ListItem",e[e.ATXHeading1=9]="ATXHeading1",e[e.ATXHeading2=10]="ATXHeading2",e[e.ATXHeading3=11]="ATXHeading3",e[e.ATXHeading4=12]="ATXHeading4",e[e.ATXHeading5=13]="ATXHeading5",e[e.ATXHeading6=14]="ATXHeading6",e[e.SetextHeading1=15]="SetextHeading1",e[e.SetextHeading2=16]="SetextHeading2",e[e.HTMLBlock=17]="HTMLBlock",e[e.LinkReference=18]="LinkReference",e[e.Paragraph=19]="Paragraph",e[e.CommentBlock=20]="CommentBlock",e[e.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",e[e.Escape=22]="Escape",e[e.Entity=23]="Entity",e[e.HardBreak=24]="HardBreak",e[e.Emphasis=25]="Emphasis",e[e.StrongEmphasis=26]="StrongEmphasis",e[e.Link=27]="Link",e[e.Image=28]="Image",e[e.InlineCode=29]="InlineCode",e[e.HTMLTag=30]="HTMLTag",e[e.Comment=31]="Comment",e[e.ProcessingInstruction=32]="ProcessingInstruction",e[e.Autolink=33]="Autolink",e[e.HeaderMark=34]="HeaderMark",e[e.QuoteMark=35]="QuoteMark",e[e.ListMark=36]="ListMark",e[e.LinkMark=37]="LinkMark",e[e.EmphasisMark=38]="EmphasisMark",e[e.CodeMark=39]="CodeMark",e[e.CodeText=40]="CodeText",e[e.CodeInfo=41]="CodeInfo",e[e.LinkTitle=42]="LinkTitle",e[e.LinkLabel=43]="LinkLabel",e[e.URL=44]="URL"})(Bt||(Bt={}));class BZe{constructor(t,n){this.start=t,this.content=n,this.marks=[],this.parsers=[]}}class UZe{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let t=this.skipSpace(this.basePos);this.indent=this.countIndent(t,this.pos,this.indent),this.pos=t,this.next=t==this.text.length?-1:this.text.charCodeAt(t)}skipSpace(t){return S2(this.text,t)}reset(t){for(this.text=t,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(t){this.basePos=t,this.baseIndent=this.countIndent(t,this.pos,this.indent)}moveBaseColumn(t){this.baseIndent=t,this.basePos=this.findColumn(t)}addMarker(t){this.markers.push(t)}countIndent(t,n=0,r=0){for(let i=n;i=t.stack[n.depth+1].value+n.baseIndent)return!0;if(n.indent>=n.baseIndent+4)return!1;let r=(e.type==Bt.OrderedList?jB:zB)(n,t,!1);return r>0&&(e.type!=Bt.BulletList||UB(n,t,!1)<0)&&n.text.charCodeAt(n.pos+r-1)==e.value}const Lhe={[Bt.Blockquote](e,t,n){return n.next!=62?!1:(n.markers.push(Nr(Bt.QuoteMark,t.lineStart+n.pos,t.lineStart+n.pos+1)),n.moveBase(n.pos+(Uc(n.text.charCodeAt(n.pos+1))?2:1)),e.end=t.lineStart+n.text.length,!0)},[Bt.ListItem](e,t,n){return n.indent-1?!1:(n.moveBaseColumn(n.baseIndent+e.value),!0)},[Bt.OrderedList]:HK,[Bt.BulletList]:HK,[Bt.Document](){return!0}};function Uc(e){return e==32||e==9||e==10||e==13}function S2(e,t=0){for(;tn&&Uc(e.charCodeAt(t-1));)t--;return t}function Mhe(e){if(e.next!=96&&e.next!=126)return-1;let t=e.pos+1;for(;t-1&&e.depth==t.stack.length||r<3?-1:1}function Fhe(e,t){for(let n=e.stack.length-1;n>=0;n--)if(e.stack[n].type==t)return!0;return!1}function zB(e,t,n){return(e.next==45||e.next==43||e.next==42)&&(e.pos==e.text.length-1||Uc(e.text.charCodeAt(e.pos+1)))&&(!n||Fhe(t,Bt.BulletList)||e.skipSpace(e.pos+2)=48&&i<=57;){r++;if(r==e.text.length)return-1;i=e.text.charCodeAt(r)}return r==e.pos||r>e.pos+9||i!=46&&i!=41||re.pos+1||e.next!=49)?-1:r+1-e.pos}function Bhe(e){if(e.next!=35)return-1;let t=e.pos+1;for(;t6?-1:n}function Uhe(e){if(e.next!=45&&e.next!=61||e.indent>=e.baseIndent+4)return-1;let t=e.pos+1;for(;t/,jhe=/\?>/,kL=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/i.exec(r);if(a)return e.append(Nr(Bt.Comment,n,n+1+a[0].length));let s=/^\?[^]*?\?>/.exec(r);if(s)return e.append(Nr(Bt.ProcessingInstruction,n,n+1+s[0].length));let o=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(r);return o?e.append(Nr(Bt.HTMLTag,n,n+1+o[0].length)):-1},Emphasis(e,t,n){if(t!=95&&t!=42)return-1;let r=n+1;for(;e.char(r)==t;)r++;let i=e.slice(n-1,n),a=e.slice(r,r+1),s=Ww.test(i),o=Ww.test(a),l=/\s|^$/.test(i),u=/\s|^$/.test(a),d=!u&&(!o||l||s),f=!l&&(!s||u||o),p=d&&(t==42||!f||s),g=f&&(t==42||!d||o);return e.append(new rc(t==95?Ghe:Yhe,n,r,(p?1:0)|(g?2:0)))},HardBreak(e,t,n){if(t==92&&e.char(n+1)==10)return e.append(Nr(Bt.HardBreak,n,n+2));if(t==32){let r=n+1;for(;e.char(r)==32;)r++;if(e.char(r)==10&&r>=n+2)return e.append(Nr(Bt.HardBreak,n,r+1))}return-1},Link(e,t,n){return t==91?e.append(new rc(qb,n,n+1,1)):-1},Image(e,t,n){return t==33&&e.char(n+1)==91?e.append(new rc(_L,n,n+2,1)):-1},LinkEnd(e,t,n){if(t!=93)return-1;for(let r=e.parts.length-1;r>=0;r--){let i=e.parts[r];if(i instanceof rc&&(i.type==qb||i.type==_L)){if(!i.side||e.skipSpace(i.to)==n&&!/[(\[]/.test(e.slice(n+1,n+2)))return e.parts[r]=null,-1;let a=e.takeContent(r),s=e.parts[r]=qZe(e,a,i.type==qb?Bt.Link:Bt.Image,i.from,n+1);if(i.type==qb)for(let o=0;ot?Nr(Bt.URL,t+n,a+n):a==e.length?null:!1}}function Xhe(e,t,n){let r=e.charCodeAt(t);if(r!=39&&r!=34&&r!=40)return!1;let i=r==40?41:r;for(let a=t+1,s=!1;a=this.end?-1:this.text.charCodeAt(t-this.offset)}get end(){return this.offset+this.text.length}slice(t,n){return this.text.slice(t-this.offset,n-this.offset)}append(t){return this.parts.push(t),t.to}addDelimiter(t,n,r,i,a){return this.append(new rc(t,n,r,(i?1:0)|(a?2:0)))}get hasOpenLink(){for(let t=this.parts.length-1;t>=0;t--){let n=this.parts[t];if(n instanceof rc&&(n.type==qb||n.type==_L))return!0}return!1}addElement(t){return this.append(t)}resolveMarkers(t){for(let r=t;r=t;l--){let S=this.parts[l];if(S instanceof rc&&S.side&1&&S.type==i.type&&!(a&&(i.side&1||S.side&2)&&(S.to-S.from+s)%3==0&&((S.to-S.from)%3||s%3))){o=S;break}}if(!o)continue;let u=i.type.resolve,d=[],f=o.from,p=i.to;if(a){let S=Math.min(2,o.to-o.from,s);f=o.to-S,p=i.from+S,u=S==1?"Emphasis":"StrongEmphasis"}o.type.mark&&d.push(this.elt(o.type.mark,f,o.to));for(let S=l+1;S=0;n--){let r=this.parts[n];if(r instanceof rc&&r.type==t)return n}return null}takeContent(t){let n=this.resolveMarkers(t);return this.parts.length=t,n}skipSpace(t){return S2(this.text,t-this.offset)+this.offset}elt(t,n,r,i){return typeof t=="string"?Nr(this.parser.getNodeType(t),n,r,i):new qhe(t,n)}}function CL(e,t){if(!t.length)return e;if(!e.length)return t;let n=e.slice(),r=0;for(let i of t){for(;r(t?t-1:0))return!1;if(this.fragmentEnd<0){let a=this.fragment.to;for(;a>0&&this.input.read(a-1,a)!=` -`;)a--;this.fragmentEnd=a?a-1:0}let r=this.cursor;r||(r=this.cursor=this.fragment.tree.cursor(),r.firstChild());let i=t+this.fragment.offset;for(;r.to<=i;)if(!r.parent())return!1;for(;;){if(r.from>=i)return this.fragment.from<=n;if(!r.childAfter(i))return!1}}matches(t){let n=this.cursor.tree;return n&&n.prop(Wn.contextHash)==t}takeNodes(t){let n=this.cursor,r=this.fragment.offset,i=this.fragmentEnd-(this.fragment.openEnd?1:0),a=t.absoluteLineStart,s=a,o=t.block.children.length,l=s,u=o;for(;;){if(n.to-r>i){if(n.type.isAnonymous&&n.firstChild())continue;break}let d=Jhe(n.from-r,t.ranges);if(n.to-r<=t.ranges[t.rangeI].to)t.addNode(n.tree,d);else{let f=new Jr(t.parser.nodeSet.types[Bt.Paragraph],[],[],0,t.block.hashProp);t.reusePlaceholders.set(f,n.tree),t.addNode(f,d)}if(n.type.is("Block")&&(YZe.indexOf(n.type.id)<0?(s=n.to-r,o=t.block.children.length):(s=l,o=u,l=n.to-r,u=t.block.children.length)),!n.nextSibling())break}for(;t.block.children.length>o;)t.block.children.pop(),t.block.positions.pop();return s-a}};function Jhe(e,t){let n=e;for(let r=1;rYA[e]),Object.keys(YA).map(e=>HZe[e]),Object.keys(YA),QZe,Lhe,Object.keys(CD).map(e=>CD[e]),Object.keys(CD),[]);function JZe(e,t,n){let r=[];for(let i=e.firstChild,a=t;;i=i.nextSibling){let s=i?i.from:n;if(s>a&&r.push({from:a,to:s}),!i)break;a=i.to}return r}function eXe(e){let{codeParser:t,htmlParser:n}=e;return{wrap:Hde((i,a)=>{let s=i.type.id;if(t&&(s==Bt.CodeBlock||s==Bt.FencedCode)){let o="";if(s==Bt.FencedCode){let u=i.node.getChild(Bt.CodeInfo);u&&(o=a.read(u.from,u.to))}let l=t(o);if(l)return{parser:l,overlay:u=>u.type.id==Bt.CodeText}}else if(n&&(s==Bt.HTMLBlock||s==Bt.HTMLTag))return{parser:n,overlay:JZe(i.node,i.from,i.to)};return null})}}const tXe={resolve:"Strikethrough",mark:"StrikethroughMark"},nXe={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":ge.strikethrough}},{name:"StrikethroughMark",style:ge.processingInstruction}],parseInline:[{name:"Strikethrough",parse(e,t,n){if(t!=126||e.char(n+1)!=126||e.char(n+2)==126)return-1;let r=e.slice(n-1,n),i=e.slice(n+2,n+3),a=/\s|^$/.test(r),s=/\s|^$/.test(i),o=Ww.test(r),l=Ww.test(i);return e.addDelimiter(tXe,n,n+2,!s&&(!l||a||o),!a&&(!o||s||l))},after:"Emphasis"}]};function E2(e,t,n=0,r,i=0){let a=0,s=!0,o=-1,l=-1,u=!1,d=()=>{r.push(e.elt("TableCell",i+o,i+l,e.parser.parseInline(t.slice(o,l),i+o)))};for(let f=n;f-1)&&a++,s=!1,r&&(o>-1&&d(),r.push(e.elt("TableDelimiter",f+i,f+i+1))),o=l=-1):(u||p!=32&&p!=9)&&(o<0&&(o=f),l=f+1),u=!u&&p==92}return o>-1&&(a++,r&&d()),a}function qK(e,t){for(let n=t;ni instanceof GK)||!qK(t.text,t.basePos))return!1;let r=e.scanLine(e.absoluteLineEnd+1).text;return epe.test(r)&&E2(e,t.text,t.basePos)==E2(e,r,t.basePos)},before:"SetextHeading"}]};class iXe{nextLine(){return!1}finish(t,n){return t.addLeafElement(n,t.elt("Task",n.start,n.start+n.content.length,[t.elt("TaskMarker",n.start,n.start+3),...t.parser.parseInline(n.content.slice(3),n.start+3)])),!0}}const aXe={defineNodes:[{name:"Task",block:!0,style:ge.list},{name:"TaskMarker",style:ge.atom}],parseBlock:[{name:"TaskList",leaf(e,t){return/^\[[ xX]\][ \t]/.test(t.content)&&e.parentType().name=="ListItem"?new iXe:null},after:"SetextHeading"}]},YK=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,ZK=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,sXe=/[\w-]+\.[\w-]+($|\/)/,XK=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,KK=/\/[a-zA-Z\d@.]+/gy;function JK(e,t,n,r){let i=0;for(let a=t;a-1)return-1;let r=t+n[0].length;for(;;){let i=e[r-1],a;if(/[?!.,:*_~]/.test(i)||i==")"&&JK(e,t,r,")")>JK(e,t,r,"("))r--;else if(i==";"&&(a=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t,r))))r=t+a.index;else break}return r}function eJ(e,t){XK.lastIndex=t;let n=XK.exec(e);if(!n)return-1;let r=n[0][n[0].length-1];return r=="_"||r=="-"?-1:t+n[0].length-(r=="."?1:0)}const lXe={parseInline:[{name:"Autolink",parse(e,t,n){let r=n-e.offset;YK.lastIndex=r;let i=YK.exec(e.text),a=-1;if(!i)return-1;if(i[1]||i[2]){if(a=oXe(e.text,r+i[0].length),a>-1&&e.hasOpenLink){let s=/([^\[\]]|\[[^\]]*\])*/.exec(e.text.slice(r,a));a=r+s[0].length}}else i[3]?a=eJ(e.text,r):(a=eJ(e.text,r+i[0].length),a>-1&&i[0]=="xmpp:"&&(KK.lastIndex=a,i=KK.exec(e.text),i&&(a=i.index+i[0].length)));return a<0?-1:(e.addElement(e.elt("URL",n,a+e.offset)),a+e.offset)}}]},uXe=[rXe,aXe,nXe,lXe];function tpe(e,t,n){return(r,i,a)=>{if(i!=e||r.char(a+1)==e)return-1;let s=[r.elt(n,a,a+1)];for(let o=a+1;on%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,n,r=0){let i=t.parser.context;return new fC(t,[],n,r,r,0,[],0,i?new nJ(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var n;let r=t>>19,i=t&65535,{parser:a}=this.p,s=this.reducePos=2e3&&!(!((n=this.p.parser.nodeSet.types[i])===null||n===void 0)&&n.isAnonymous)&&(u==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=d):this.p.lastBigReductionSizel;)this.stack.pop();this.reduceContext(i,u)}storeNode(t,n,r,i=4,a=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&s.buffer[o-4]==0&&s.buffer[o-1]>-1){if(n==r)return;if(s.buffer[o-2]>=n){s.buffer[o-2]=r;return}}}if(!a||this.pos==r)this.buffer.push(t,n,r,i);else{let s=this.buffer.length;if(s>0&&this.buffer[s-4]!=0){let o=!1;for(let l=s;l>0&&this.buffer[l-2]>r;l-=4)if(this.buffer[l-1]>=0){o=!0;break}if(o)for(;s>0&&this.buffer[s-2]>r;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,i>4&&(i-=4)}this.buffer[s]=t,this.buffer[s+1]=n,this.buffer[s+2]=r,this.buffer[s+3]=i}}shift(t,n,r,i){if(t&131072)this.pushState(t&65535,this.pos);else if(t&262144)this.pos=i,this.shiftContext(n,r),n<=this.p.parser.maxNode&&this.buffer.push(n,r,i,4);else{let a=t,{parser:s}=this.p;(i>this.pos||n<=s.maxNode)&&(this.pos=i,s.stateFlag(a,1)||(this.reducePos=i)),this.pushState(a,r),this.shiftContext(n,r),n<=s.maxNode&&this.buffer.push(n,r,i,4)}}apply(t,n,r,i){t&65536?this.reduce(t):this.shift(t,n,r,i)}useNode(t,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=t)&&(this.p.reused.push(t),r++);let i=this.pos;this.reducePos=this.pos=i+t.length,this.pushState(n,i),this.buffer.push(r,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,n=t.buffer.length;for(;n>0&&t.buffer[n-2]>t.reducePos;)n-=4;let r=t.buffer.slice(n),i=t.bufferBase+n;for(;t&&i==t.bufferBase;)t=t.parent;return new fC(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,i,this.curContext,this.lookAhead,t)}recoverByDelete(t,n){let r=t<=this.p.parser.maxNode;r&&this.storeNode(t,this.pos,n,4),this.storeNode(0,this.pos,n,r?8:4),this.pos=this.reducePos=n,this.score-=190}canShift(t){for(let n=new hXe(this);;){let r=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,t);if(r==0)return!1;if(!(r&65536))return!0;n.reduce(r)}}recoverByInsert(t){if(this.stack.length>=300)return[];let n=this.p.parser.nextStates(this.state);if(n.length>8||this.stack.length>=120){let i=[];for(let a=0,s;al&1&&o==s)||i.push(n[a],s)}n=i}let r=[];for(let i=0;i>19,i=n&65535,a=this.stack.length-r*3;if(a<0||t.getGoto(this.stack[a],i,!1)<0){let s=this.findForcedReduction();if(s==null)return!1;n=s}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}findForcedReduction(){let{parser:t}=this.p,n=[],r=(i,a)=>{if(!n.includes(i))return n.push(i),t.allActions(i,s=>{if(!(s&393216))if(s&65536){let o=(s>>19)-a;if(o>1){let l=s&65535,u=this.stack.length-o*3;if(u>=0&&t.getGoto(this.stack[u],l,!1)>=0)return o<<19|65536|l}}else{let o=r(s,a+1);if(o!=null)return o}})};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let n=0;nthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class nJ{constructor(t,n){this.tracker=t,this.context=n,this.hash=t.strict?t.hash(n):0}}class hXe{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let n=t&65535,r=t>>19;r==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(r-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],n,!0);this.state=i}}class hC{constructor(t,n,r){this.stack=t,this.pos=n,this.index=r,this.buffer=t.buffer,this.index==0&&this.maybeNext()}static create(t,n=t.bufferBase+t.buffer.length){return new hC(t,n,n-t.bufferBase)}maybeNext(){let t=this.stack.parent;t!=null&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new hC(this.stack,this.pos,this.index)}}function HE(e,t=Uint16Array){if(typeof e!="string")return e;let n=null;for(let r=0,i=0;r=92&&s--,s>=34&&s--;let l=s-32;if(l>=46&&(l-=46,o=!0),a+=l,o)break;a*=46}n?n[i++]=a:n=new t(a)}return n}class h_{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const rJ=new h_;class pXe{constructor(t,n){this.input=t,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=rJ,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(t,n){let r=this.range,i=this.rangeIndex,a=this.pos+t;for(;ar.to:a>=r.to;){if(i==this.ranges.length-1)return null;let s=this.ranges[++i];a+=s.from-r.to,r=s}return a}clipPos(t){if(t>=this.range.from&&tt)return Math.max(t,n.from);return this.end}peek(t){let n=this.chunkOff+t,r,i;if(n>=0&&n=this.chunk2Pos&&ro.to&&(this.chunk2=this.chunk2.slice(0,o.to-r)),i=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),i}acceptToken(t,n=0){let r=n?this.resolveOffset(n,-1):this.pos;if(r==null||r=this.chunk2Pos&&this.posthis.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,n){if(n?(this.token=n,n.start=t,n.lookAhead=t+1,n.value=n.extended=-1):this.token=rJ,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t=this.chunkPos&&n<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,n-this.chunkPos);if(t>=this.chunk2Pos&&n<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,n-this.chunk2Pos);if(t>=this.range.from&&n<=this.range.to)return this.input.read(t,n);let r="";for(let i of this.ranges){if(i.from>=n)break;i.to>t&&(r+=this.input.read(Math.max(i.from,t),Math.min(i.to,n)))}return r}}class Hy{constructor(t,n){this.data=t,this.id=n}token(t,n){let{parser:r}=n.p;npe(this.data,t,n,this.id,r.data,r.tokenPrecTable)}}Hy.prototype.contextual=Hy.prototype.fallback=Hy.prototype.extend=!1;class pC{constructor(t,n,r){this.precTable=n,this.elseToken=r,this.data=typeof t=="string"?HE(t):t}token(t,n){let r=t.pos,i=0;for(;;){let a=t.next<0,s=t.resolveOffset(1,1);if(npe(this.data,t,n,0,this.data,this.precTable),t.token.value>-1)break;if(this.elseToken==null)return;if(a||i++,s==null)break;t.reset(s,t.token)}i&&(t.reset(r,t.token),t.acceptToken(this.elseToken,i))}}pC.prototype.contextual=Hy.prototype.fallback=Hy.prototype.extend=!1;class $d{constructor(t,n={}){this.token=t,this.contextual=!!n.contextual,this.fallback=!!n.fallback,this.extend=!!n.extend}}function npe(e,t,n,r,i,a){let s=0,o=1<0){let O=e[g];if(l.allows(O)&&(t.token.value==-1||t.token.value==O||mXe(O,t.token.value,i,a))){t.acceptToken(O);break}}let d=t.next,f=0,p=e[s+2];if(t.next<0&&p>f&&e[u+p*3-3]==65535){s=e[u+p*3-1];continue e}for(;f>1,O=u+g+(g<<1),S=e[O],T=e[O+1]||65536;if(d=T)f=g+1;else{s=e[O+2],t.advance();continue e}}break}}function iJ(e,t,n){for(let r=t,i;(i=e[r])!=65535;r++)if(i==n)return r-t;return-1}function mXe(e,t,n,r){let i=iJ(n,r,t);return i<0||iJ(n,r,e)t)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,t-25)):Math.min(e.length,Math.max(r.from+1,t+25));if(n<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return n<0?0:e.length}}class gXe{constructor(t,n){this.fragments=t,this.nodeSet=n,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?aJ(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?aJ(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(tt)return this.nextStart=s,null;if(a instanceof Jr){if(s==t){if(s=Math.max(this.safeFrom,t)&&(this.trees.push(a),this.start.push(s),this.index.push(0))}else this.index[n]++,this.nextStart=s+a.length}}}class bXe{constructor(t,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(r=>new h_)}getActions(t){let n=0,r=null,{parser:i}=t.p,{tokenizers:a}=i,s=i.stateSlot(t.state,3),o=t.curContext?t.curContext.hash:0,l=0;for(let u=0;uf.end+25&&(l=Math.max(f.lookAhead,l)),f.value!=0)){let p=n;if(f.extended>-1&&(n=this.addActions(t,f.extended,f.end,n)),n=this.addActions(t,f.value,f.end,n),!d.extend&&(r=f,n>p))break}}for(;this.actions.length>n;)this.actions.pop();return l&&t.setLookAhead(l),!r&&t.pos==this.stream.end&&(r=new h_,r.value=t.p.parser.eofTerm,r.start=r.end=t.pos,n=this.addActions(t,r.value,r.end,n)),this.mainToken=r,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let n=new h_,{pos:r,p:i}=t;return n.start=r,n.end=Math.min(r+1,i.stream.end),n.value=r==i.stream.end?i.parser.eofTerm:0,n}updateCachedToken(t,n,r){let i=this.stream.clipPos(r.pos);if(n.token(this.stream.reset(i,t),r),t.value>-1){let{parser:a}=r.p;for(let s=0;s=0&&r.p.parser.dialect.allows(o>>1)){o&1?t.extended=o>>1:t.value=o>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,n,r,i){for(let a=0;at.bufferLength*4?new gXe(r,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,n=this.minStackPos,r=this.stacks=[],i,a;if(this.bigReductionCount>300&&t.length==1){let[s]=t;for(;s.forceReduce()&&s.stack.length&&s.stack[s.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;sn)r.push(o);else{if(this.advanceStack(o,r,t))continue;{i||(i=[],a=[]),i.push(o);let l=this.tokens.getMainToken(o);a.push(l.value,l.end)}}break}}if(!r.length){let s=i&&OXe(i);if(s)return Jl&&console.log("Finish with "+this.stackID(s)),this.stackToTree(s);if(this.parser.strict)throw Jl&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&i){let s=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,a,r);if(s)return Jl&&console.log("Force-finish "+this.stackID(s)),this.stackToTree(s.forceAll())}if(this.recovering){let s=this.recovering==1?1:this.recovering*3;if(r.length>s)for(r.sort((o,l)=>l.score-o.score);r.length>s;)r.pop();r.some(o=>o.reducePos>n)&&this.recovering--}else if(r.length>1){e:for(let s=0;s500&&u.buffer.length>500)if((o.score-u.score||o.buffer.length-u.buffer.length)>0)r.splice(l--,1);else{r.splice(s--,1);continue e}}}r.length>12&&r.splice(12,r.length-12)}this.minStackPos=r[0].pos;for(let s=1;s ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let u=t.curContext&&t.curContext.tracker.strict,d=u?t.curContext.hash:0;for(let f=this.fragments.nodeAt(i);f;){let p=this.parser.nodeSet.types[f.type.id]==f.type?a.getGoto(t.state,f.type.id):-1;if(p>-1&&f.length&&(!u||(f.prop(Wn.contextHash)||0)==d))return t.useNode(f,p),Jl&&console.log(s+this.stackID(t)+` (via reuse of ${a.getName(f.type.id)})`),!0;if(!(f instanceof Jr)||f.children.length==0||f.positions[0]>0)break;let g=f.children[0];if(g instanceof Jr&&f.positions[0]==0)f=g;else break}}let o=a.stateSlot(t.state,4);if(o>0)return t.reduce(o),Jl&&console.log(s+this.stackID(t)+` (via always-reduce ${a.getName(o&65535)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let l=this.tokens.getActions(t);for(let u=0;ui?n.push(O):r.push(O)}return!1}advanceFully(t,n){let r=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>r)return sJ(t,n),!0}}runRecovery(t,n,r){let i=null,a=!1;for(let s=0;s ":"";if(o.deadEnd&&(a||(a=!0,o.restart(),Jl&&console.log(d+this.stackID(o)+" (restarted)"),this.advanceFully(o,r))))continue;let f=o.split(),p=d;for(let g=0;f.forceReduce()&&g<10&&(Jl&&console.log(p+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,r));g++)Jl&&(p=this.stackID(f)+" -> ");for(let g of o.recoverByInsert(l))Jl&&console.log(d+this.stackID(g)+" (via recover-insert)"),this.advanceFully(g,r);this.stream.end>o.pos?(u==o.pos&&(u++,l=0),o.recoverByDelete(l,u),Jl&&console.log(d+this.stackID(o)+` (via recover-delete ${this.parser.getName(l)})`),sJ(o,r)):(!i||i.scoree;class rpe{constructor(t){this.start=t.start,this.shift=t.shift||ID,this.reduce=t.reduce||ID,this.reuse=t.reuse||ID,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class Pv extends sB{constructor(t){if(super(),this.wrappers=[],t.version!=14)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let n=t.nodeNames.split(" ");this.minRepeatTerm=n.length;for(let o=0;ot.topRules[o][1]),i=[];for(let o=0;o=0)a(d,l,o[u++]);else{let f=o[u+-d];for(let p=-d;p>0;p--)a(o[u++],l,f);u++}}}this.nodeSet=new HT(n.map((o,l)=>ls.define({name:l>=this.minRepeatTerm?void 0:o,id:l,props:i[l],top:r.indexOf(l)>-1,error:l==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(l)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=Fde;let s=HE(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let o=0;otypeof o=="number"?new Hy(s,o):o),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,n,r){let i=new yXe(this,t,n,r);for(let a of this.wrappers)i=a(i,t,n,r);return i}getGoto(t,n,r=!1){let i=this.goto;if(n>=i[0])return-1;for(let a=i[n+1];;){let s=i[a++],o=s&1,l=i[a++];if(o&&r)return l;for(let u=a+(s>>1);a0}validAction(t,n){return!!this.allActions(t,r=>r==n?!0:null)}allActions(t,n){let r=this.stateSlot(t,4),i=r?n(r):void 0;for(let a=this.stateSlot(t,1);i==null;a+=3){if(this.data[a]==65535)if(this.data[a+1]==1)a=Dh(this.data,a+2);else break;i=n(Dh(this.data,a+1))}return i}nextStates(t){let n=[];for(let r=this.stateSlot(t,1);;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=Dh(this.data,r+2);else break;if(!(this.data[r+2]&1)){let i=this.data[r+1];n.some((a,s)=>s&1&&a==i)||n.push(this.data[r],i)}}return n}configure(t){let n=Object.assign(Object.create(Pv.prototype),this);if(t.props&&(n.nodeSet=this.nodeSet.extend(...t.props)),t.top){let r=this.topRules[t.top];if(!r)throw new RangeError(`Invalid top rule name ${t.top}`);n.top=r}return t.tokenizers&&(n.tokenizers=this.tokenizers.map(r=>{let i=t.tokenizers.find(a=>a.from==r);return i?i.to:r})),t.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((r,i)=>{let a=t.specializers.find(o=>o.from==r.external);if(!a)return r;let s=Object.assign(Object.assign({},r),{external:a.to});return n.specializers[i]=oJ(s),s})),t.contextTracker&&(n.context=t.contextTracker),t.dialect&&(n.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(n.strict=t.strict),t.wrap&&(n.wrappers=n.wrappers.concat(t.wrap)),t.bufferLength!=null&&(n.bufferLength=t.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let n=this.dynamicPrecedences;return n==null?0:n[t]||0}parseDialect(t){let n=Object.keys(this.dialects),r=n.map(()=>!1);if(t)for(let a of t.split(" ")){let s=n.indexOf(a);s>=0&&(r[s]=!0)}let i=null;for(let a=0;ar)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.scoree.external(n,r)<<1|t}return e.get}const SXe=54,EXe=1,wXe=55,TXe=2,xXe=56,kXe=3,lJ=4,AXe=5,mC=6,ipe=7,ape=8,spe=9,ope=10,_Xe=11,CXe=12,RXe=13,ND=57,IXe=14,uJ=58,lpe=20,NXe=22,upe=23,DXe=24,RL=26,cpe=27,PXe=28,LXe=31,MXe=34,$Xe=36,FXe=37,BXe=0,UXe=1,zXe={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},jXe={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},cJ={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function HXe(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function dpe(e){return e==9||e==10||e==13||e==32}let dJ=null,fJ=null,hJ=0;function IL(e,t){let n=e.pos+t;if(hJ==n&&fJ==e)return dJ;let r=e.peek(t);for(;dpe(r);)r=e.peek(++t);let i="";for(;HXe(r);)i+=String.fromCharCode(r),r=e.peek(++t);return fJ=e,hJ=n,dJ=i?i.toLowerCase():r==QXe||r==WXe?void 0:null}const fpe=60,gC=62,HB=47,QXe=63,WXe=33,VXe=45;function pJ(e,t){this.name=e,this.parent=t}const qXe=[mC,ope,ipe,ape,spe],GXe=new rpe({start:null,shift(e,t,n,r){return qXe.indexOf(t)>-1?new pJ(IL(r,1)||"",e):e},reduce(e,t){return t==lpe&&e?e.parent:e},reuse(e,t,n,r){let i=t.type.id;return i==mC||i==$Xe?new pJ(IL(r,1)||"",e):e},strict:!1}),YXe=new $d((e,t)=>{if(e.next!=fpe){e.next<0&&t.context&&e.acceptToken(ND);return}e.advance();let n=e.next==HB;n&&e.advance();let r=IL(e,0);if(r===void 0)return;if(!r)return e.acceptToken(n?IXe:mC);let i=t.context?t.context.name:null;if(n){if(r==i)return e.acceptToken(_Xe);if(i&&jXe[i])return e.acceptToken(ND,-2);if(t.dialectEnabled(BXe))return e.acceptToken(CXe);for(let a=t.context;a;a=a.parent)if(a.name==r)return;e.acceptToken(RXe)}else{if(r=="script")return e.acceptToken(ipe);if(r=="style")return e.acceptToken(ape);if(r=="textarea")return e.acceptToken(spe);if(zXe.hasOwnProperty(r))return e.acceptToken(ope);i&&cJ[i]&&cJ[i][r]?e.acceptToken(ND,-1):e.acceptToken(mC)}},{contextual:!0}),ZXe=new $d(e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(uJ);break}if(e.next==VXe)t++;else if(e.next==gC&&t>=2){n>=3&&e.acceptToken(uJ,-2);break}else t=0;e.advance()}});function XXe(e){for(;e;e=e.parent)if(e.name=="svg"||e.name=="math")return!0;return!1}const KXe=new $d((e,t)=>{if(e.next==HB&&e.peek(1)==gC){let n=t.dialectEnabled(UXe)||XXe(t.context);e.acceptToken(n?AXe:lJ,2)}else e.next==gC&&e.acceptToken(lJ,1)});function QB(e,t,n){let r=2+e.length;return new $d(i=>{for(let a=0,s=0,o=0;;o++){if(i.next<0){o&&i.acceptToken(t);break}if(a==0&&i.next==fpe||a==1&&i.next==HB||a>=2&&as?i.acceptToken(t,-s):i.acceptToken(n,-(s-2));break}else if((i.next==10||i.next==13)&&o){i.acceptToken(t,1);break}else a=s=0;i.advance()}})}const JXe=QB("script",SXe,EXe),eKe=QB("style",wXe,TXe),tKe=QB("textarea",xXe,kXe),nKe=gO({"Text RawText":ge.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":ge.angleBracket,TagName:ge.tagName,"MismatchedCloseTag/TagName":[ge.tagName,ge.invalid],AttributeName:ge.attributeName,"AttributeValue UnquotedAttributeValue":ge.attributeValue,Is:ge.definitionOperator,"EntityReference CharacterReference":ge.character,Comment:ge.blockComment,ProcessingInst:ge.processingInstruction,DoctypeDecl:ge.documentMeta}),rKe=Pv.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%ZQ&rO,59fO%fQ&rO,59iO%qQ&rO,59lO%|Q&rO,59nOOOa'#D^'#D^O&XOaO'#CxO&dOaO,59[OOOb'#D_'#D_O&lObO'#C{O&wObO,59[OOOd'#D`'#D`O'POdO'#DOO'[OdO,59[OOO`'#Da'#DaO'dO!rO,59[O'kQ#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'pO$fO,59oOOO`,59o,59oO'xQ#|O,59qO'}Q#|O,59rOOO`-E7W-E7WO(SQ&rO'#CsOOQW'#DZ'#DZO(bQ&rO1G.wOOOa1G.w1G.wOOO`1G/Y1G/YO(mQ&rO1G/QOOOb1G/Q1G/QO(xQ&rO1G/TOOOd1G/T1G/TO)TQ&rO1G/WOOO`1G/W1G/WO)`Q&rO1G/YOOOa-E7[-E7[O)kQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)pQ#tO'#C|OOOd-E7^-E7^O)uQ#tO'#DPOOO`-E7_-E7_O)zQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O*PQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOO`7+$t7+$tOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rO*[Q#|O,59eO*aQ#|O,59hO*fQ#|O,59kOOO`1G/X1G/XO*kO7[O'#CvO*|OMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O+_O7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+pOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:",]~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OT}OhyO~OS!POT}OhyO~OS!ROT}OhyO~OS!TOT}OhyO~OS}OT}OhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXTgXhgX~OS!fOT!gOhyO~OS!hOT!gOhyO~OS!iOT!gOhyO~OS!jOT!gOhyO~OS!gOT!gOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:GXe,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"],["isolate",-11,21,29,30,32,33,35,36,37,38,41,42,"ltr",-3,26,27,39,""]],propSources:[nKe],skippedNodes:[0],repeatNodeCount:9,tokenData:"!]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VP<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TakWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOb!R!RAwP;=`<%lAY!ZBRYkWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbhSkWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbhSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXhSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!bx`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYlhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_khS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_X`P!a`!cp!eQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZhSfQ`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!a`!cpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!a`!cp!dPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!a`!cpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!a`!cpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!a`!cpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!a`!cpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!a`!cpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!a`!cpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!a`!cpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!cpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO{PP!-nP;=`<%l!-Sq!-xS!cp{POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!a`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!a`{POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!a`!cp{POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!a`!cpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!a`!cpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!a`!cpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!a`!cpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!a`!cpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!a`!cpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!{let u=o.type.id;if(u==PXe)return DD(o,l,n);if(u==LXe)return DD(o,l,r);if(u==MXe)return DD(o,l,i);if(u==lpe&&a.length){let d=o.node,f=d.firstChild,p=f&&mJ(f,l),g;if(p){for(let O of a)if(O.tag==p&&(!O.attrs||O.attrs(g||(g=hpe(f,l))))){let S=d.lastChild,T=S.type.id==FXe?S.from:d.to;if(T>f.to)return{parser:O.parser,overlay:[{from:f.to,to:T}]}}}}if(s&&u==upe){let d=o.node,f;if(f=d.firstChild){let p=s[l.read(f.from,f.to)];if(p)for(let g of p){if(g.tagName&&g.tagName!=mJ(d.parent,l))continue;let O=d.lastChild;if(O.type.id==RL){let S=O.from+1,T=O.lastChild,w=O.to-(T&&T.isError?0:1);if(w>S)return{parser:g.parser,overlay:[{from:S,to:w}]}}else if(O.type.id==cpe)return{parser:g.parser,overlay:[{from:O.from,to:O.to}]}}}}return null})}const iKe=99,gJ=1,aKe=100,sKe=101,bJ=2,mpe=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],oKe=58,lKe=40,gpe=95,uKe=91,p_=45,cKe=46,dKe=35,fKe=37,hKe=38,pKe=92,mKe=10;function Vw(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function bpe(e){return e>=48&&e<=57}const gKe=new $d((e,t)=>{for(let n=!1,r=0,i=0;;i++){let{next:a}=e;if(Vw(a)||a==p_||a==gpe||n&&bpe(a))!n&&(a!=p_||i>0)&&(n=!0),r===i&&a==p_&&r++,e.advance();else if(a==pKe&&e.peek(1)!=mKe)e.advance(),e.next>-1&&e.advance(),n=!0;else{n&&e.acceptToken(a==lKe?aKe:r==2&&t.canShift(bJ)?bJ:sKe);break}}}),bKe=new $d(e=>{if(mpe.includes(e.peek(-1))){let{next:t}=e;(Vw(t)||t==gpe||t==dKe||t==cKe||t==uKe||t==oKe&&Vw(e.peek(1))||t==p_||t==hKe)&&e.acceptToken(iKe)}}),yKe=new $d(e=>{if(!mpe.includes(e.peek(-1))){let{next:t}=e;if(t==fKe&&(e.advance(),e.acceptToken(gJ)),Vw(t)){do e.advance();while(Vw(e.next)||bpe(e.next));e.acceptToken(gJ)}}}),vKe=gO({"AtKeyword import charset namespace keyframes media supports":ge.definitionKeyword,"from to selector":ge.keyword,NamespaceName:ge.namespace,KeyframeName:ge.labelName,KeyframeRangeName:ge.operatorKeyword,TagName:ge.tagName,ClassName:ge.className,PseudoClassName:ge.constant(ge.className),IdName:ge.labelName,"FeatureName PropertyName":ge.propertyName,AttributeName:ge.attributeName,NumberLiteral:ge.number,KeywordQuery:ge.keyword,UnaryQueryOp:ge.operatorKeyword,"CallTag ValueName":ge.atom,VariableName:ge.variableName,Callee:ge.operatorKeyword,Unit:ge.unit,"UniversalSelector NestingSelector":ge.definitionOperator,MatchOp:ge.compareOperator,"ChildOp SiblingOp, LogicOp":ge.logicOperator,BinOp:ge.arithmeticOperator,Important:ge.modifier,Comment:ge.blockComment,ColorLiteral:ge.color,"ParenthesizedContent StringLiteral":ge.string,":":ge.punctuation,"PseudoOp #":ge.derefOperator,"; ,":ge.separator,"( )":ge.paren,"[ ]":ge.squareBracket,"{ }":ge.brace}),OKe={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:138},SKe={__proto__:null,"@import":118,"@media":142,"@charset":146,"@namespace":150,"@keyframes":156,"@supports":168},EKe={__proto__:null,not:132,only:132},wKe=Pv.deserialize({version:14,states:":^QYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO$qQ[O'#DTO$vQ[O'#DWOOQP'#Em'#EmO${QdO'#DgO%jQ[O'#DtO${QdO'#DvO%{Q[O'#DxO&WQ[O'#D{O&`Q[O'#ERO&nQ[O'#ETOOQS'#El'#ElOOQS'#EW'#EWQYQ[OOO&uQXO'#CdO'jQWO'#DcO'oQWO'#EsO'zQ[O'#EsQOQWOOP(UO#tO'#C_POOO)C@[)C@[OOQP'#Cg'#CgOOQP,59Q,59QO#kQ[O,59QO(aQ[O'#E[O({QWO,58{O)TQ[O,59SO$qQ[O,59oO$vQ[O,59rO(aQ[O,59uO(aQ[O,59wO(aQ[O,59xO)`Q[O'#DbOOQS,58{,58{OOQP'#Ck'#CkOOQO'#DR'#DROOQP,59S,59SO)gQWO,59SO)lQWO,59SOOQP'#DV'#DVOOQP,59o,59oOOQO'#DX'#DXO)qQ`O,59rOOQS'#Cp'#CpO${QdO'#CqO)yQvO'#CsO+ZQtO,5:ROOQO'#Cx'#CxO)lQWO'#CwO+oQWO'#CyO+tQ[O'#DOOOQS'#Ep'#EpOOQO'#Dj'#DjO+|Q[O'#DqO,[QWO'#EtO&`Q[O'#DoO,jQWO'#DrOOQO'#Eu'#EuO)OQWO,5:`O,oQpO,5:bOOQS'#Dz'#DzO,wQWO,5:dO,|Q[O,5:dOOQO'#D}'#D}O-UQWO,5:gO-ZQWO,5:mO-cQWO,5:oOOQS-E8U-E8UO${QdO,59}O-kQ[O'#E^O-xQWO,5;_O-xQWO,5;_POOO'#EV'#EVP.TO#tO,58yPOOO,58y,58yOOQP1G.l1G.lO.zQXO,5:vOOQO-E8Y-E8YOOQS1G.g1G.gOOQP1G.n1G.nO)gQWO1G.nO)lQWO1G.nOOQP1G/Z1G/ZO/XQ`O1G/^O/rQXO1G/aO0YQXO1G/cO0pQXO1G/dO1WQWO,59|O1]Q[O'#DSO1dQdO'#CoOOQP1G/^1G/^O${QdO1G/^O1kQpO,59]OOQS,59_,59_O${QdO,59aO1sQWO1G/mOOQS,59c,59cO1xQ!bO,59eOOQS'#DP'#DPOOQS'#EY'#EYO2QQ[O,59jOOQS,59j,59jO2YQWO'#DjO2eQWO,5:VO2jQWO,5:]O&`Q[O,5:XO&`Q[O'#E_O2rQWO,5;`O2}QWO,5:ZO(aQ[O,5:^OOQS1G/z1G/zOOQS1G/|1G/|OOQS1G0O1G0OO3`QWO1G0OO3eQdO'#EOOOQS1G0R1G0ROOQS1G0X1G0XOOQS1G0Z1G0ZO3pQtO1G/iOOQO,5:x,5:xO4WQ[O,5:xOOQO-E8[-E8[O4eQWO1G0yPOOO-E8T-E8TPOOO1G.e1G.eOOQP7+$Y7+$YOOQP7+$x7+$xO${QdO7+$xOOQS1G/h1G/hO4pQXO'#ErO4wQWO,59nO4|QtO'#EXO5tQdO'#EoO6OQWO,59ZO6TQpO7+$xOOQS1G.w1G.wOOQS1G.{1G.{OOQS7+%X7+%XO6]QWO1G/POOQS-E8W-E8WOOQS1G/U1G/UO${QdO1G/qOOQO1G/w1G/wOOQO1G/s1G/sO6bQWO,5:yOOQO-E8]-E8]O6pQXO1G/xOOQS7+%j7+%jO6wQYO'#CsOOQO'#EQ'#EQO7SQ`O'#EPOOQO'#EP'#EPO7_QWO'#E`O7gQdO,5:jOOQS,5:j,5:jO7rQtO'#E]O${QdO'#E]O8sQdO7+%TOOQO7+%T7+%TOOQO1G0d1G0dO9WQpO<OAN>OO:xQdO,5:uOOQO-E8X-E8XOOQO<T![;'S%^;'S;=`%o<%lO%^l;TUo`Oy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^l;nYo`#e[Oy%^z!Q%^!Q![;g![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^l[[o`#e[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^n?VSt^Oy%^z;'S%^;'S;=`%o<%lO%^l?hWjWOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^n@VU#bQOy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^~@nTjWOy%^z{@}{;'S%^;'S;=`%o<%lO%^~AUSo`#[~Oy%^z;'S%^;'S;=`%o<%lO%^lAg[#e[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^bBbU]QOy%^z![%^![!]Bt!];'S%^;'S;=`%o<%lO%^bB{S^Qo`Oy%^z;'S%^;'S;=`%o<%lO%^nC^S!Y^Oy%^z;'S%^;'S;=`%o<%lO%^dCoS|SOy%^z;'S%^;'S;=`%o<%lO%^bDQU!OQOy%^z!`%^!`!aDd!a;'S%^;'S;=`%o<%lO%^bDkS!OQo`Oy%^z;'S%^;'S;=`%o<%lO%^bDzWOy%^z!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bEk[![Qo`Oy%^z}%^}!OEd!O!Q%^!Q![Ed![!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^nFfSq^Oy%^z;'S%^;'S;=`%o<%lO%^nFwSp^Oy%^z;'S%^;'S;=`%o<%lO%^bGWUOy%^z#b%^#b#cGj#c;'S%^;'S;=`%o<%lO%^bGoUo`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!bQo`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!TUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!S^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!RQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",tokenizers:[bKe,yKe,gKe,1,2,3,4,new pC("m~RRYZ[z{a~~g~aO#^~~dP!P!Qg~lO#_~~",28,105)],topRules:{StyleSheet:[0,4],Styles:[1,86]},specialized:[{term:100,get:e=>OKe[e]||-1},{term:58,get:e=>SKe[e]||-1},{term:101,get:e=>EKe[e]||-1}],tokenPrec:1200});let PD=null;function LD(){if(!PD&&typeof document=="object"&&document.body){let{style:e}=document.body,t=[],n=new Set;for(let r in e)r!="cssText"&&r!="cssFloat"&&typeof e[r]=="string"&&(/[A-Z]/.test(r)&&(r=r.replace(/[A-Z]/g,i=>"-"+i.toLowerCase())),n.has(r)||(t.push(r),n.add(r)));PD=t.sort().map(r=>({type:"property",label:r}))}return PD||[]}const yJ=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(e=>({type:"class",label:e})),vJ=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(e=>({type:"keyword",label:e})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(e=>({type:"constant",label:e}))),TKe=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(e=>({type:"type",label:e})),Jp=/^(\w[\w-]*|-\w[\w-]*|)$/,xKe=/^-(-[\w-]*)?$/;function kKe(e,t){var n;if((e.name=="("||e.type.isError)&&(e=e.parent||e),e.name!="ArgList")return!1;let r=(n=e.parent)===null||n===void 0?void 0:n.firstChild;return(r==null?void 0:r.name)!="Callee"?!1:t.sliceString(r.from,r.to)=="var"}const OJ=new jde,AKe=["Declaration"];function _Ke(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function ype(e,t,n){if(t.to-t.from>4096){let r=OJ.get(t);if(r)return r;let i=[],a=new Set,s=t.cursor(Ai.IncludeAnonymous);if(s.firstChild())do for(let o of ype(e,s.node,n))a.has(o.label)||(a.add(o.label),i.push(o));while(s.nextSibling());return OJ.set(t,i),i}else{let r=[],i=new Set;return t.cursor().iterate(a=>{var s;if(n(a)&&a.matchContext(AKe)&&((s=a.node.nextSibling)===null||s===void 0?void 0:s.name)==":"){let o=e.sliceString(a.from,a.to);i.has(o)||(i.add(o),r.push({label:o,type:"variable"}))}}),r}}const CKe=e=>t=>{let{state:n,pos:r}=t,i=Ri(n).resolveInner(r,-1),a=i.type.isError&&i.from==i.to-1&&n.doc.sliceString(i.from,i.to)=="-";if(i.name=="PropertyName"||(a||i.name=="TagName")&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:LD(),validFor:Jp};if(i.name=="ValueName")return{from:i.from,options:vJ,validFor:Jp};if(i.name=="PseudoClassName")return{from:i.from,options:yJ,validFor:Jp};if(e(i)||(t.explicit||a)&&kKe(i,n.doc))return{from:e(i)||a?i.from:r,options:ype(n.doc,_Ke(i),e),validFor:xKe};if(i.name=="TagName"){for(let{parent:l}=i;l;l=l.parent)if(l.name=="Block")return{from:i.from,options:LD(),validFor:Jp};return{from:i.from,options:TKe,validFor:Jp}}if(!t.explicit)return null;let s=i.resolve(r),o=s.childBefore(r);return o&&o.name==":"&&s.name=="PseudoClassSelector"?{from:r,options:yJ,validFor:Jp}:o&&o.name==":"&&s.name=="Declaration"||s.name=="ArgList"?{from:r,options:vJ,validFor:Jp}:s.name=="Block"||s.name=="Styles"?{from:r,options:LD(),validFor:Jp}:null},RKe=CKe(e=>e.name=="VariableName"),bC=Cv.define({name:"css",parser:wKe.configure({props:[WT.add({Declaration:f_()}),bO.add({"Block KeyframeList":Zde})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function IKe(){return new Lw(bC,bC.data.of({autocomplete:RKe}))}const NKe=312,SJ=1,DKe=2,PKe=3,LKe=4,MKe=313,$Ke=315,FKe=316,BKe=5,UKe=6,zKe=0,NL=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],vpe=125,jKe=59,DL=47,HKe=42,QKe=43,WKe=45,VKe=60,qKe=44,GKe=63,YKe=46,ZKe=new rpe({start:!1,shift(e,t){return t==BKe||t==UKe||t==$Ke?e:t==FKe},strict:!1}),XKe=new $d((e,t)=>{let{next:n}=e;(n==vpe||n==-1||t.context)&&e.acceptToken(MKe)},{contextual:!0,fallback:!0}),KKe=new $d((e,t)=>{let{next:n}=e,r;NL.indexOf(n)>-1||n==DL&&((r=e.peek(1))==DL||r==HKe)||n!=vpe&&n!=jKe&&n!=-1&&!t.context&&e.acceptToken(NKe)},{contextual:!0}),JKe=new $d((e,t)=>{let{next:n}=e;if(n==QKe||n==WKe){if(e.advance(),n==e.next){e.advance();let r=!t.context&&t.canShift(SJ);e.acceptToken(r?SJ:DKe)}}else n==GKe&&e.peek(1)==YKe&&(e.advance(),e.advance(),(e.next<48||e.next>57)&&e.acceptToken(PKe))},{contextual:!0});function MD(e,t){return e>=65&&e<=90||e>=97&&e<=122||e==95||e>=192||!t&&e>=48&&e<=57}const eJe=new $d((e,t)=>{if(e.next!=VKe||!t.dialectEnabled(zKe)||(e.advance(),e.next==DL))return;let n=0;for(;NL.indexOf(e.next)>-1;)e.advance(),n++;if(MD(e.next,!0)){for(e.advance(),n++;MD(e.next,!1);)e.advance(),n++;for(;NL.indexOf(e.next)>-1;)e.advance(),n++;if(e.next==qKe)return;for(let r=0;;r++){if(r==7){if(!MD(e.next,!0))return;break}if(e.next!="extends".charCodeAt(r))break;e.advance(),n++}}e.acceptToken(LKe,-n)}),tJe=gO({"get set async static":ge.modifier,"for while do if else switch try catch finally return throw break continue default case":ge.controlKeyword,"in of await yield void typeof delete instanceof":ge.operatorKeyword,"let var const using function class extends":ge.definitionKeyword,"import export from":ge.moduleKeyword,"with debugger as new":ge.keyword,TemplateString:ge.special(ge.string),super:ge.atom,BooleanLiteral:ge.bool,this:ge.self,null:ge.null,Star:ge.modifier,VariableName:ge.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":ge.function(ge.variableName),VariableDefinition:ge.definition(ge.variableName),Label:ge.labelName,PropertyName:ge.propertyName,PrivatePropertyName:ge.special(ge.propertyName),"CallExpression/MemberExpression/PropertyName":ge.function(ge.propertyName),"FunctionDeclaration/VariableDefinition":ge.function(ge.definition(ge.variableName)),"ClassDeclaration/VariableDefinition":ge.definition(ge.className),PropertyDefinition:ge.definition(ge.propertyName),PrivatePropertyDefinition:ge.definition(ge.special(ge.propertyName)),UpdateOp:ge.updateOperator,"LineComment Hashbang":ge.lineComment,BlockComment:ge.blockComment,Number:ge.number,String:ge.string,Escape:ge.escape,ArithOp:ge.arithmeticOperator,LogicOp:ge.logicOperator,BitOp:ge.bitwiseOperator,CompareOp:ge.compareOperator,RegExp:ge.regexp,Equals:ge.definitionOperator,Arrow:ge.function(ge.punctuation),": Spread":ge.punctuation,"( )":ge.paren,"[ ]":ge.squareBracket,"{ }":ge.brace,"InterpolationStart InterpolationEnd":ge.special(ge.brace),".":ge.derefOperator,", ;":ge.separator,"@":ge.meta,TypeName:ge.typeName,TypeDefinition:ge.definition(ge.typeName),"type enum interface implements namespace module declare":ge.definitionKeyword,"abstract global Privacy readonly override":ge.modifier,"is keyof unique infer":ge.operatorKeyword,JSXAttributeValue:ge.attributeValue,JSXText:ge.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":ge.angleBracket,"JSXIdentifier JSXNameSpacedName":ge.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":ge.attributeName,"JSXBuiltin/JSXIdentifier":ge.standard(ge.tagName)}),nJe={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,extends:54,this:58,true:66,false:66,null:78,void:82,typeof:86,super:102,new:136,delete:148,yield:157,await:161,class:166,public:229,private:229,protected:229,readonly:231,instanceof:250,satisfies:253,in:254,const:256,import:290,keyof:345,unique:349,infer:355,is:391,abstract:411,implements:413,type:415,let:418,var:420,using:423,interface:429,enum:433,namespace:439,module:441,declare:445,global:449,for:468,of:477,while:480,with:484,do:488,if:492,else:494,switch:498,case:504,try:510,catch:514,finally:518,return:522,throw:526,break:530,continue:534,debugger:538},rJe={__proto__:null,async:123,get:125,set:127,declare:189,public:191,private:191,protected:191,static:193,abstract:195,override:197,readonly:203,accessor:205,new:395},iJe={__proto__:null,"<":187},aJe=Pv.deserialize({version:14,states:"$@QO%TQ^OOO%[Q^OOO'_Q`OOP(lOWOOO*zQ?NdO'#CiO+RO!bO'#CjO+aO#tO'#CjO+oO!0LbO'#D^O.QQ^O'#DdO.bQ^O'#DoO%[Q^O'#DwO0fQ^O'#EPOOQ?Mr'#EX'#EXO1PQWO'#EUOOQO'#Em'#EmOOQO'#Ih'#IhO1XQWO'#GpO1dQWO'#ElO1iQWO'#ElO3hQ?NdO'#JmO6[Q?NdO'#JnO6uQWO'#F[O6zQ&jO'#FsOOQ?Mr'#Fe'#FeO7VO,YO'#FeO7eQ7[O'#FzO9RQWO'#FyOOQ?Mr'#Jn'#JnOOQ?Mp'#Jm'#JmO9WQWO'#GtOOQU'#KZ'#KZO9cQWO'#IUO9hQ?MxO'#IVOOQU'#JZ'#JZOOQU'#IZ'#IZQ`Q^OOO`Q^OOO9pQMnO'#DsO9wQ^O'#D{O:OQ^O'#D}O9^QWO'#GpO:VQ7[O'#CoO:eQWO'#EkO:pQWO'#EvO:uQ7[O'#FdO;dQWO'#GpOOQO'#K['#K[O;iQWO'#K[O;wQWO'#GxO;wQWO'#GyO;wQWO'#G{O9^QWO'#HOOVQWO'#CeO>gQWO'#H_O>oQWO'#HeO>oQWO'#HgO`Q^O'#HiO>oQWO'#HkO>oQWO'#HnO>tQWO'#HtO>yQ?MyO'#HzO%[Q^O'#H|O?UQ?MyO'#IOO?aQ?MyO'#IQO9hQ?MxO'#ISO?lQ?NdO'#CiO@nQ`O'#DiQOQWOOO%[Q^O'#D}OAUQWO'#EQO:VQ7[O'#EkOAaQWO'#EkOAlQpO'#FdOOQU'#Cg'#CgOOQ?Mp'#Dn'#DnOOQ?Mp'#Jq'#JqO%[Q^O'#JqOOQO'#Jt'#JtOOQO'#Id'#IdOBlQ`O'#EdOOQ?Mp'#Ec'#EcOOQ?Mp'#Jx'#JxOChQ?NQO'#EdOCrQ`O'#ETOOQO'#Js'#JsODWQ`O'#JtOEeQ`O'#ETOCrQ`O'#EdPErO#@ItO'#CbPOOO)CDx)CDxOOOO'#I['#I[OE}O!bO,59UOOQ?Mr,59U,59UOOOO'#I]'#I]OF]O#tO,59UO%[Q^O'#D`OOOO'#I_'#I_OFkO!0LbO,59xOOQ?Mr,59x,59xOFyQ^O'#I`OG^QWO'#JoOI]QrO'#JoO+}Q^O'#JoOIdQWO,5:OOIzQWO'#EmOJXQWO'#KOOJdQWO'#J}OJdQWO'#J}OJlQWO,5;ZOJqQWO'#J|OOQ?Mv,5:Z,5:ZOJxQ^O,5:ZOLvQ?NdO,5:cOMgQWO,5:kONQQ?MxO'#J{ONXQWO'#JzO9WQWO'#JzONmQWO'#JzONuQWO,5;YONzQWO'#JzO!#PQrO'#JnOOQ?Mr'#Ci'#CiO%[Q^O'#EPO!#oQrO,5:pOOQQ'#Ju'#JuOOQO-EpOOQU'#Jc'#JcOOQU,5>q,5>qOOQU-EtQWO'#HTO9^QWO'#HVO!DgQWO'#HVO:VQ7[O'#HXO!DlQWO'#HXOOQU,5=m,5=mO!DqQWO'#HYO!ESQWO'#CoO!EXQWO,59PO!EcQWO,59PO!GhQ^O,59POOQU,59P,59PO!GxQ?MxO,59PO%[Q^O,59PO!JTQ^O'#HaOOQU'#Hb'#HbOOQU'#Hc'#HcO`Q^O,5=yO!JkQWO,5=yO`Q^O,5>PO`Q^O,5>RO!JpQWO,5>TO`Q^O,5>VO!JuQWO,5>YO!JzQ^O,5>`OOQU,5>f,5>fO%[Q^O,5>fO9hQ?MxO,5>hOOQU,5>j,5>jO# UQWO,5>jOOQU,5>l,5>lO# UQWO,5>lOOQU,5>n,5>nO# rQ`O'#D[O%[Q^O'#JqO# |Q`O'#JqO#!kQ`O'#DjO#!|Q`O'#DjO#%_Q^O'#DjO#%fQWO'#JpO#%nQWO,5:TO#%sQWO'#EqO#&RQWO'#KPO#&ZQWO,5;[O#&`Q`O'#DjO#&mQ`O'#ESOOQ?Mr,5:l,5:lO%[Q^O,5:lO#&tQWO,5:lO>tQWO,5;VO!A}Q`O,5;VO!BVQ7[O,5;VO:VQ7[O,5;VO#&|QWO,5@]O#'RQ(CYO,5:pOOQO-EzO+}Q^O,5>zOOQO,5?Q,5?QO#*ZQ^O'#I`OOQO-E<^-E<^O#*hQWO,5@ZO#*pQrO,5@ZO#*wQWO,5@iOOQ?Mr1G/j1G/jO%[Q^O,5@jO#+PQWO'#IfOOQO-EuQ?NdO1G0|O#>|Q?NdO1G0|O#AZQ07bO'#CiO#CUQ07bO1G1_O#C]Q07bO'#JnO#CpQ?NdO,5?WOOQ?Mp-EoQWO1G3oO$3VQ^O1G3qO$7ZQ^O'#HpOOQU1G3t1G3tO$7hQWO'#HvO>tQWO'#HxOOQU1G3z1G3zO$7pQ^O1G3zO9hQ?MxO1G4QOOQU1G4S1G4SOOQ?Mp'#G]'#G]O9hQ?MxO1G4UO9hQ?MxO1G4WO$;wQWO,5@]O!(oQ^O,5;]O9WQWO,5;]O>tQWO,5:UO!(oQ^O,5:UO!A}Q`O,5:UO$;|Q07bO,5:UOOQO,5;],5;]O$tQWO1G0qO!A}Q`O1G0qO!BVQ7[O1G0qOOQ?Mp1G5w1G5wO!ArQ?MxO1G0ZOOQO1G0j1G0jO%[Q^O1G0jO$=aQ?MxO1G0jO$=lQ?MxO1G0jO!A}Q`O1G0ZOCrQ`O1G0ZO$=zQ?MxO1G0jOOQO1G0Z1G0ZO$>`Q?NdO1G0jPOOO-EjQpO,5rQrO1G4fOOQO1G4l1G4lO%[Q^O,5>zO$>|QWO1G5uO$?UQWO1G6TO$?^QrO1G6UO9WQWO,5?QO$?hQ?NdO1G6RO%[Q^O1G6RO$?xQ?MxO1G6RO$@ZQWO1G6QO$@ZQWO1G6QO9WQWO1G6QO$@cQWO,5?TO9WQWO,5?TOOQO,5?T,5?TO$@wQWO,5?TO$(PQWO,5?TOOQO-E[OOQU,5>[,5>[O%[Q^O'#HqO%8mQWO'#HsOOQU,5>b,5>bO9WQWO,5>bOOQU,5>d,5>dOOQU7+)f7+)fOOQU7+)l7+)lOOQU7+)p7+)pOOQU7+)r7+)rO%8rQ`O1G5wO%9WQ07bO1G0wO%9bQWO1G0wOOQO1G/p1G/pO%9mQ07bO1G/pO>tQWO1G/pO!(oQ^O'#DjOOQO,5>{,5>{OOQO-E<_-E<_OOQO,5?R,5?ROOQO-EtQWO7+&]O!A}Q`O7+&]OOQO7+%u7+%uO$>`Q?NdO7+&UOOQO7+&U7+&UO%[Q^O7+&UO%9wQ?MxO7+&UO!ArQ?MxO7+%uO!A}Q`O7+%uO%:SQ?MxO7+&UO%:bQ?NdO7++mO%[Q^O7++mO%:rQWO7++lO%:rQWO7++lOOQO1G4o1G4oO9WQWO1G4oO%:zQWO1G4oOOQQ7+%z7+%zO#&wQWO<|O%[Q^O,5>|OOQO-E<`-E<`O%FwQWO1G5xOOQ?Mr<]OOQU,5>_,5>_O&8uQWO1G3|O9WQWO7+&cO!(oQ^O7+&cOOQO7+%[7+%[O&8zQ07bO1G6UO>tQWO7+%[OOQ?Mr<tQWO<`Q?NdO<pQ?NdO,5?_O&@xQ?NdO7+'zO&CWQrO1G4hO&CbQ07bO7+&^O&EcQ07bO,5=UO&GgQ07bO,5=WO&GwQ07bO,5=UO&HXQ07bO,5=WO&HiQ07bO,59rO&JlQ07bO,5tQWO7+)hO'(OQWO<`Q?NdOAN?[OOQOAN>{AN>{O%[Q^OAN?[OOQO<`Q?NdOG24vO#&wQWOLD,nOOQULD,nLD,nO!&_Q7[OLD,nO'5TQrOLD,nO'5[Q07bO7+'xO'6}Q07bO,5?]O'8}Q07bO,5?_O':}Q07bO7+'zO'kOh%VOk+aO![']O%f+`O~O!d+cOa(WX![(WX'u(WX!Y(WX~Oa%lO![XO'u%lO~Oh%VO!i%cO~Oh%VO!i%cO(O%eO~O!d#vO#h(tO~Ob+nO%g+oO(O+kO(QTO(TUO!Z)TP~O!Y+pO`)SX~O[+tO~O`+uO~O![%}O(O%eO(P!lO`)SP~Oh%VO#]+zO~Oh%VOk+}O![$|O~O![,PO~O},RO![XO~O%k%tO~O!u,WO~Oe,]O~Ob,^O(O#nO(QTO(TUO!Z)RP~Oe%{O~O%g!QO(O&WO~P=RO[,cO`,bO~OPYOQYOSfOdzOeyOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO!fuO!iZO!lYO!mYO!nYO!pvO!uxO!y]O%e}O(QTO(TUO([VO(j[O(yiO~O![!eO!r!gO$V!kO(O!dO~P!EkO`,bOa%lO'u%lO~OPYOQYOSfOd!jOe!iOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!u!hO$V!kO(O!dO(QTO(TUO([VO(j[O(yiO~Oa,hO!rwO#t!OO%i!OO%j!OO%k!OO~P!HTO!i&lO~O&Y,nO~O![,pO~O&k,rO&m,sOP&haQ&haS&haY&haa&had&hae&ham&hao&hap&haq&haw&hay&ha{&ha!P&ha!T&ha!U&ha![&ha!f&ha!i&ha!l&ha!m&ha!n&ha!p&ha!r&ha!u&ha!y&ha#t&ha$V&ha%e&ha%g&ha%i&ha%j&ha%k&ha%n&ha%p&ha%s&ha%t&ha%v&ha&S&ha&Y&ha&[&ha&^&ha&`&ha&c&ha&i&ha&o&ha&q&ha&s&ha&u&ha&w&ha's&ha(O&ha(Q&ha(T&ha([&ha(j&ha(y&ha!Z&ha&a&hab&ha&f&ha~O(O,xO~Oh!bX!Y!OX!Z!OX!d!OX!d!bX!i!bX#]!OX~O!Y!bX!Z!bX~P# ZO!d,}O#],|Oh(eX!Y#eX!Y(eX!Z#eX!Z(eX!d(eX!i(eX~Oh%VO!d-PO!i%cO!Y!^X!Z!^X~Op!nO!P!oO(QTO(TUO(`!mO~OP;POQ;POSfOdkOg'XX!Y'XX~P!+hO!Y.wOg(ka~OSfO![3uO$c3vO~O!Z3zO~Os3{O~P#.aOa$lq!Y$lq'u$lq's$lq!V$lq!h$lqs$lq![$lq%f$lq!d$lq~P!9mO!V3|O~P#.aO})zO!P){O(u%POk'ea(t'ea!Y'ea#]'ea~Og'ea#}'ea~P%)nO})zO!P){Ok'ga(t'ga(u'ga!Y'ga#]'ga~Og'ga#}'ga~P%*aO(m$YO~P#.aO!VfX!V$xX!YfX!Y$xX!d%PX#]fX~P!/gO(OQ#>g#@V#@e#@l#BR#Ba#C|#D[#Db#Dh#Dn#Dx#EO#EU#E`#Er#ExPPPPPPPPPP#FOPPPPPPP#Fs#Iz#KZ#Kb#KjPPP$!sP$!|$%t$,^$,a$,d$-P$-S$-Z$-cP$-i$-lP$.Y$.^$/U$0d$0i$1PPP$1U$1[$1`P$1c$1g$1k$2a$2x$3a$3e$3h$3k$3q$3t$3x$3|R!|RoqOXst!Z#d%k&o&q&r&t,k,p1|2PY!vQ']-]1a5eQ%rvQ%zyQ&R|Q&g!VS'T!e-TQ'c!iS'i!r!yU*e$|*V*jQ+i%{Q+v&TQ,[&aQ-Z'[Q-e'dQ-m'jQ0R*lQ1k,]R;v;T%QdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V,h,k,p-a-i-w-}.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3^5b5m5}6O6R6f8R8X8h8rS#q];Q!r)Z$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{ < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:376,context:ZKe,nodeProps:[["isolate",-8,5,6,14,34,36,48,50,52,""],["group",-26,9,17,19,65,204,208,212,213,215,218,221,231,233,239,241,243,245,248,254,260,262,264,266,268,270,271,"Statement",-34,13,14,29,32,33,39,48,51,52,54,59,67,69,73,77,79,81,82,107,108,117,118,135,138,140,141,142,143,144,146,147,166,167,169,"Expression",-23,28,30,34,38,40,42,171,173,175,176,178,179,180,182,183,184,186,187,188,198,200,202,203,"Type",-3,85,100,106,"ClassItem"],["openedBy",23,"<",35,"InterpolationStart",53,"[",57,"{",70,"(",159,"JSXStartCloseTag"],["closedBy",24,">",37,"InterpolationEnd",47,"]",58,"}",71,")",164,"JSXEndTag"]],propSources:[tJe],skippedNodes:[0,5,6,274],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$h&j(U!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(U!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$h&j(RpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(RpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z07[+rq$h&j(Rp(U!b'w0/lOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z07[.ST(S#S$h&j'x0/lO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c07[.n_$h&j(Rp(U!b'x0/lOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)3p/x`$h&j!m),Q(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW1V`#u(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW2d_#u(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At3l_(Q':f$h&j(U!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$h&j(U!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$h&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$c`$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$c``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$c`$h&j(U!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(U!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$c`(U!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k%9[:hh$h&j(Rp(U!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXWS$h&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSWSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWWS(U!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]WS$h&j(RpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWWS(RpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYWS(Rp(U!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l^!Q^$h&j!U7`OY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@c!_!}!=y!}#O!CW#O#P!Dy#P#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y|#X#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#k!>|#k#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&c7`!@hX!U7`OY!@cZ!P!@c!P!Q!AT!Q!}!@c!}#O!Ar#O#P!Bq#P;'S!@c;'S;=`!CQ<%lO!@c7`!AYW!U7`#W#X!AT#Z#[!AT#]#^!AT#a#b!AT#g#h!AT#i#j!AT#j#k!AT#m#n!AT7`!AuVOY!ArZ#O!Ar#O#P!B[#P#Q!@c#Q;'S!Ar;'S;=`!Bk<%lO!Ar7`!B_SOY!ArZ;'S!Ar;'S;=`!Bk<%lO!Ar7`!BnP;=`<%l!Ar7`!BtSOY!@cZ;'S!@c;'S;=`!CQ<%lO!@c7`!CTP;=`<%l!@c^!Ezl$h&j(U!b!U7`OY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#W&}#W#X!Eq#X#Z&}#Z#[!Eq#[#]&}#]#^!Eq#^#a&}#a#b!Eq#b#g&}#g#h!Eq#h#i&}#i#j!Eq#j#k!Eq#k#m&}#m#n!Eq#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}8r!GyZ(U!b!U7`OY!GrZw!Grwx!@cx!P!Gr!P!Q!Hl!Q!}!Gr!}#O!JU#O#P!Bq#P;'S!Gr;'S;=`!J|<%lO!Gr8r!Hse(U!b!U7`OY'}Zw'}x#O'}#P#W'}#W#X!Hl#X#Z'}#Z#[!Hl#[#]'}#]#^!Hl#^#a'}#a#b!Hl#b#g'}#g#h!Hl#h#i'}#i#j!Hl#j#k!Hl#k#m'}#m#n!Hl#n;'S'};'S;=`(f<%lO'}8r!JZX(U!bOY!JUZw!JUwx!Arx#O!JU#O#P!B[#P#Q!Gr#Q;'S!JU;'S;=`!Jv<%lO!JU8r!JyP;=`<%l!JU8r!KPP;=`<%l!Gr>^!KZ^$h&j(U!bOY!KSYZ&cZw!KSwx!CWx!^!KS!^!_!JU!_#O!KS#O#P!DR#P#Q!^!LYP;=`<%l!KS>^!L`P;=`<%l!_#c#d#Bq#d#l%Z#l#m#Es#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#>j_$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#?rd$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#A]f$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Bzc$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Dbe$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#E|g$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Gpi$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x#Il_!d$b$h&j#})Lv(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)[#Jv_al$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f#LS^h#)`#O-nJe[e]||-1},{term:338,get:e=>rJe[e]||-1},{term:92,get:e=>iJe[e]||-1}],tokenPrec:14749}),Ope=[gl("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),gl("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),gl("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),gl("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),gl("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),gl(`try { - \${} -} catch (\${error}) { - \${} -}`,{label:"try",detail:"/ catch block",type:"keyword"}),gl("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),gl(`if (\${}) { - \${} -} else { - \${} -}`,{label:"if",detail:"/ else block",type:"keyword"}),gl(`class \${name} { - constructor(\${params}) { - \${} - } -}`,{label:"class",detail:"definition",type:"keyword"}),gl('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),gl('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],sJe=Ope.concat([gl("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),gl("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),gl("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),EJ=new jde,Spe=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function gE(e){return(t,n)=>{let r=t.node.getChild("VariableDefinition");return r&&n(r,e),!0}}const oJe=["FunctionDeclaration"],lJe={FunctionDeclaration:gE("function"),ClassDeclaration:gE("class"),ClassExpression:()=>!0,EnumDeclaration:gE("constant"),TypeAliasDeclaration:gE("type"),NamespaceDeclaration:gE("namespace"),VariableDefinition(e,t){e.matchContext(oJe)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function Epe(e,t){let n=EJ.get(t);if(n)return n;let r=[],i=!0;function a(s,o){let l=e.sliceString(s.from,s.to);r.push({label:l,type:o})}return t.cursor(Ai.IncludeAnonymous).iterate(s=>{if(i)i=!1;else if(s.name){let o=lJe[s.name];if(o&&o(s,a)||Spe.has(s.name))return!1}else if(s.to-s.from>8192){for(let o of Epe(e,s.node))r.push(o);return!1}}),EJ.set(t,r),r}const wJ=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,wpe=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function uJe(e){let t=Ri(e.state).resolveInner(e.pos,-1);if(wpe.indexOf(t.name)>-1)return null;let n=t.name=="VariableName"||t.to-t.from<20&&wJ.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let i=t;i;i=i.parent)Spe.has(i.name)&&(r=r.concat(Epe(e.state.doc,i)));return{options:r,from:n?t.from:e.pos,validFor:wJ}}const Df=Cv.define({name:"javascript",parser:aJe.configure({props:[WT.add({IfStatement:f_({except:/^\s*({|else\b)/}),TryStatement:f_({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:KWe,SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:XWe({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":f_({except:/^{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag"(e){return e.column(e.node.from)+e.unit}}),bO.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":Zde,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),Tpe={test:e=>/^JSX/.test(e.name),facet:oB({commentTokens:{block:{open:"{/*",close:"*/}"}}})},xpe=Df.configure({dialect:"ts"},"typescript"),kpe=Df.configure({dialect:"jsx",props:[lB.add(e=>e.isTop?[Tpe]:void 0)]}),Ape=Df.configure({dialect:"jsx ts",props:[lB.add(e=>e.isTop?[Tpe]:void 0)]},"typescript");let _pe=e=>({label:e,type:"keyword"});const Cpe="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(_pe),cJe=Cpe.concat(["declare","implements","private","protected","public"].map(_pe));function dJe(e={}){let t=e.jsx?e.typescript?Ape:kpe:e.typescript?xpe:Df,n=e.typescript?sJe.concat(cJe):Ope.concat(Cpe);return new Lw(t,[Df.data.of({autocomplete:pGe(wpe,Jfe(n))}),Df.data.of({autocomplete:uJe}),e.jsx?pJe:[]])}function fJe(e){for(;;){if(e.name=="JSXOpenTag"||e.name=="JSXSelfClosingTag"||e.name=="JSXFragmentTag")return e;if(e.name=="JSXEscape"||!e.parent)return null;e=e.parent}}function TJ(e,t,n=e.length){for(let r=t==null?void 0:t.firstChild;r;r=r.nextSibling)if(r.name=="JSXIdentifier"||r.name=="JSXBuiltin"||r.name=="JSXNamespacedName"||r.name=="JSXMemberExpression")return e.sliceString(r.from,Math.min(r.to,n));return""}const hJe=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),pJe=en.inputHandler.of((e,t,n,r,i)=>{if((hJe?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||r!=">"&&r!="/"||!Df.isActiveAt(e.state,t,-1))return!1;let a=i(),{state:s}=a,o=s.changeByRange(l=>{var u;let{head:d}=l,f=Ri(s).resolveInner(d-1,-1),p;if(f.name=="JSXStartTag"&&(f=f.parent),!(s.doc.sliceString(d-1,d)!=r||f.name=="JSXAttributeValue"&&f.to>d)){if(r==">"&&f.name=="JSXFragmentTag")return{range:l,changes:{from:d,insert:""}};if(r=="/"&&f.name=="JSXStartCloseTag"){let g=f.parent,O=g.parent;if(O&&g.from==d-2&&((p=TJ(s.doc,O.firstChild,d))||((u=O.firstChild)===null||u===void 0?void 0:u.name)=="JSXFragmentTag")){let S=`${p}>`;return{range:dt.cursor(d+S.length,-1),changes:{from:d,insert:S}}}}else if(r==">"){let g=fJe(f);if(g&&g.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(s.doc.sliceString(d,d+2))&&(p=TJ(s.doc,g,d)))return{range:l,changes:{from:d,insert:``}}}}return{range:l}});return o.changes.empty?!1:(e.dispatch([a,s.update(o,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),bE=["_blank","_self","_top","_parent"],$D=["ascii","utf-8","utf-16","latin1","latin1"],FD=["get","post","put","delete"],BD=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],eu=["true","false"],Tn={},mJe={a:{attrs:{href:null,ping:null,type:null,media:null,target:bE,hreflang:null}},abbr:Tn,address:Tn,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:Tn,aside:Tn,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:Tn,base:{attrs:{href:null,target:bE}},bdi:Tn,bdo:Tn,blockquote:{attrs:{cite:null}},body:Tn,br:Tn,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:BD,formmethod:FD,formnovalidate:["novalidate"],formtarget:bE,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:Tn,center:Tn,cite:Tn,code:Tn,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:Tn,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:Tn,div:Tn,dl:Tn,dt:Tn,em:Tn,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Tn,figure:Tn,footer:Tn,form:{attrs:{action:null,name:null,"accept-charset":$D,autocomplete:["on","off"],enctype:BD,method:FD,novalidate:["novalidate"],target:bE}},h1:Tn,h2:Tn,h3:Tn,h4:Tn,h5:Tn,h6:Tn,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:Tn,hgroup:Tn,hr:Tn,html:{attrs:{manifest:null}},i:Tn,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:BD,formmethod:FD,formnovalidate:["novalidate"],formtarget:bE,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:Tn,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Tn,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:Tn,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:$D,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:Tn,noscript:Tn,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:Tn,param:{attrs:{name:null,value:null}},pre:Tn,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Tn,rt:Tn,ruby:Tn,samp:Tn,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:$D}},section:Tn,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:Tn,source:{attrs:{src:null,type:null,media:null}},span:Tn,strong:Tn,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:Tn,summary:Tn,sup:Tn,table:Tn,tbody:Tn,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:Tn,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:Tn,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Tn,time:{attrs:{datetime:null}},title:Tn,tr:Tn,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:Tn,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:Tn},Rpe={accesskey:null,class:null,contenteditable:eu,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:eu,autocorrect:eu,autocapitalize:eu,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":eu,"aria-autocomplete":["inline","list","both","none"],"aria-busy":eu,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":eu,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":eu,"aria-hidden":eu,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":eu,"aria-multiselectable":eu,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":eu,"aria-relevant":null,"aria-required":eu,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},Ipe="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(e=>"on"+e);for(let e of Ipe)Rpe[e]=null;let qw=class{constructor(t,n){this.tags=Object.assign(Object.assign({},mJe),t),this.globalAttrs=Object.assign(Object.assign({},Rpe),n),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};qw.default=new qw;function Lv(e,t,n=e.length){if(!t)return"";let r=t.firstChild,i=r&&r.getChild("TagName");return i?e.sliceString(i.from,Math.min(i.to,n)):""}function Mv(e,t=!1){for(;e;e=e.parent)if(e.name=="Element")if(t)t=!1;else return e;return null}function Npe(e,t,n){let r=n.tags[Lv(e,Mv(t))];return(r==null?void 0:r.children)||n.allTags}function WB(e,t){let n=[];for(let r=Mv(t);r&&!r.type.isTop;r=Mv(r.parent)){let i=Lv(e,r);if(i&&r.lastChild.name=="CloseTag")break;i&&n.indexOf(i)<0&&(t.name=="EndTag"||t.from>=r.firstChild.to)&&n.push(i)}return n}const Dpe=/^[:\-\.\w\u00b7-\uffff]*$/;function xJ(e,t,n,r,i){let a=/\s*>/.test(e.sliceDoc(i,i+5))?"":">",s=Mv(n,!0);return{from:r,to:i,options:Npe(e.doc,s,t).map(o=>({label:o,type:"type"})).concat(WB(e.doc,n).map((o,l)=>({label:"/"+o,apply:"/"+o+a,type:"type",boost:99-l}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function kJ(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:n,to:r,options:WB(e.doc,t).map((a,s)=>({label:a,apply:a+i,type:"type",boost:99-s})),validFor:Dpe}}function gJe(e,t,n,r){let i=[],a=0;for(let s of Npe(e.doc,n,t))i.push({label:"<"+s,type:"type"});for(let s of WB(e.doc,n))i.push({label:"",type:"type",boost:99-a++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function bJe(e,t,n,r,i){let a=Mv(n),s=a?t.tags[Lv(e.doc,a)]:null,o=s&&s.attrs?Object.keys(s.attrs):[],l=s&&s.globalAttrs===!1?o:o.length?o.concat(t.globalAttrNames):t.globalAttrNames;return{from:r,to:i,options:l.map(u=>({label:u,type:"property"})),validFor:Dpe}}function yJe(e,t,n,r,i){var a;let s=(a=n.parent)===null||a===void 0?void 0:a.getChild("AttributeName"),o=[],l;if(s){let u=e.sliceDoc(s.from,s.to),d=t.globalAttrs[u];if(!d){let f=Mv(n),p=f?t.tags[Lv(e.doc,f)]:null;d=(p==null?void 0:p.attrs)&&p.attrs[u]}if(d){let f=e.sliceDoc(r,i).toLowerCase(),p='"',g='"';/^['"]/.test(f)?(l=f[0]=='"'?/^[^"]*$/:/^[^']*$/,p="",g=e.sliceDoc(i,i+1)==f[0]?"":f[0],f=f.slice(1),r++):l=/^[^\s<>='"]*$/;for(let O of d)o.push({label:O,apply:p+O+g,type:"constant"})}}return{from:r,to:i,options:o,validFor:l}}function Ppe(e,t){let{state:n,pos:r}=t,i=Ri(n).resolveInner(r,-1),a=i.resolve(r);for(let s=r,o;a==i&&(o=i.childBefore(s));){let l=o.lastChild;if(!l||!l.type.isError||l.fromPpe(r,i)}const SJe=Df.parser.configure({top:"SingleExpression"}),Lpe=[{tag:"script",attrs:e=>e.type=="text/typescript"||e.lang=="ts",parser:xpe.parser},{tag:"script",attrs:e=>e.type=="text/babel"||e.type=="text/jsx",parser:kpe.parser},{tag:"script",attrs:e=>e.type=="text/typescript-jsx",parser:Ape.parser},{tag:"script",attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:SJe},{tag:"script",attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:Df.parser},{tag:"style",attrs(e){return(!e.lang||e.lang=="css")&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:bC.parser}],Mpe=[{name:"style",parser:bC.parser.configure({top:"Styles"})}].concat(Ipe.map(e=>({name:e,parser:Df.parser}))),$pe=Cv.define({name:"html",parser:rKe.configure({props:[WT.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit},Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].lengthe.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:""}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),m_=$pe.configure({wrap:ppe(Lpe,Mpe)});function EJe(e={}){let t="",n;e.matchClosingTags===!1&&(t="noMatch"),e.selfClosingTags===!0&&(t=(t?t+" ":"")+"selfClosing"),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(n=ppe((e.nestedLanguages||[]).concat(Lpe),(e.nestedAttributes||[]).concat(Mpe)));let r=n?$pe.configure({wrap:n,dialect:t}):t?m_.configure({dialect:t}):m_;return new Lw(r,[m_.data.of({autocomplete:OJe(e)}),e.autoCloseTags!==!1?wJe:[],dJe().support,IKe().support])}const AJ=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),wJe=en.inputHandler.of((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||r!=">"&&r!="/"||!m_.isActiveAt(e.state,t,-1))return!1;let a=i(),{state:s}=a,o=s.changeByRange(l=>{var u,d,f;let p=s.doc.sliceString(l.from-1,l.to)==r,{head:g}=l,O=Ri(s).resolveInner(g,-1),S;if(p&&r==">"&&O.name=="EndTag"){let T=O.parent;if(((d=(u=T.parent)===null||u===void 0?void 0:u.lastChild)===null||d===void 0?void 0:d.name)!="CloseTag"&&(S=Lv(s.doc,T.parent,g))&&!AJ.has(S)){let w=g+(s.doc.sliceString(g,g+1)===">"?1:0),x=``;return{range:l,changes:{from:g,to:w,insert:x}}}}else if(p&&r=="/"&&O.name=="IncompleteCloseTag"){let T=O.parent;if(O.from==g-2&&((f=T.lastChild)===null||f===void 0?void 0:f.name)!="CloseTag"&&(S=Lv(s.doc,T,g))&&!AJ.has(S)){let w=g+(s.doc.sliceString(g,g+1)===">"?1:0),x=`${S}>`;return{range:dt.cursor(g+x.length,-1),changes:{from:g,to:w,insert:x}}}}return{range:l}});return o.changes.empty?!1:(e.dispatch([a,s.update(o,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),Fpe=oB({commentTokens:{block:{open:""}}}),Bpe=new Wn,Upe=KZe.configure({props:[bO.add(e=>!e.is("Block")||e.is("Document")||PL(e)!=null||TJe(e)?void 0:(t,n)=>({from:n.doc.lineAt(t.from).to,to:t.to})),Bpe.add(PL),WT.add({Document:()=>null}),Qg.add({Document:Fpe})]});function PL(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function TJe(e){return e.name=="OrderedList"||e.name=="BulletList"}function xJe(e,t){let n=e;for(;;){let r=n.nextSibling,i;if(!r||(i=PL(r.type))!=null&&i<=t)break;n=r}return n.to}const kJe=Yde.of((e,t,n)=>{for(let r=Ri(e).resolveInner(n,-1);r&&!(r.fromn)return{from:n,to:a}}return null});function VB(e){return new pc(Fpe,e,[kJe],"markdown")}const AJe=VB(Upe),_Je=Upe.configure([uXe,dXe,cXe,fXe,{props:[bO.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]),zpe=VB(_Je);function CJe(e,t){return n=>{if(n&&e){let r=null;if(n=/\S*/.exec(n)[0],typeof e=="function"?r=e(n):r=Z3.matchLanguageName(e,n,!0),r instanceof Z3)return r.support?r.support.language.parser:Pw.getSkippingParser(r.load());if(r)return r.parser}return t?t.parser:null}}class XA{constructor(t,n,r,i,a,s,o){this.node=t,this.from=n,this.to=r,this.spaceBefore=i,this.spaceAfter=a,this.type=s,this.item=o}blank(t,n=!0){let r=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(t!=null){for(;r.length0;i--)r+=" ";return r+(n?this.spaceAfter:"")}}marker(t,n){let r=this.node.name=="OrderedList"?String(+Hpe(this.item,t)[2]+n):"";return this.spaceBefore+r+this.type+this.spaceAfter}}function jpe(e,t){let n=[];for(let i=e;i&&i.name!="Document";i=i.parent)(i.name=="ListItem"||i.name=="Blockquote"||i.name=="FencedCode")&&n.push(i);let r=[];for(let i=n.length-1;i>=0;i--){let a=n[i],s,o=t.lineAt(a.from),l=a.from-o.from;if(a.name=="FencedCode")r.push(new XA(a,l,l,"","","",null));else if(a.name=="Blockquote"&&(s=/^ *>( ?)/.exec(o.text.slice(l))))r.push(new XA(a,l,l+s[0].length,"",s[1],">",null));else if(a.name=="ListItem"&&a.parent.name=="OrderedList"&&(s=/^( *)\d+([.)])( *)/.exec(o.text.slice(l)))){let u=s[3],d=s[0].length;u.length>=4&&(u=u.slice(0,u.length-4),d-=4),r.push(new XA(a.parent,l,l+d,s[1],u,s[2],a))}else if(a.name=="ListItem"&&a.parent.name=="BulletList"&&(s=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(o.text.slice(l)))){let u=s[4],d=s[0].length;u.length>4&&(u=u.slice(0,u.length-4),d-=4);let f=s[2];s[3]&&(f+=s[3].replace(/[xX]/," ")),r.push(new XA(a.parent,l,l+d,s[1],u,f,a))}}return r}function Hpe(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function UD(e,t,n,r=0){for(let i=-1,a=e;;){if(a.name=="ListItem"){let o=Hpe(a,t),l=+o[2];if(i>=0){if(l!=i+1)return;n.push({from:a.from+o[1].length,to:a.from+o[0].length,insert:String(i+2+r)})}i=l}let s=a.nextSibling;if(!s)break;a=s}}function qB(e,t){let n=/^[ \t]*/.exec(e)[0].length;if(!n||t.facet(QT)!=" ")return e;let r=Bf(e,4,n),i="";for(let a=r;a>0;)a>=4?(i+=" ",a-=4):(i+=" ",a--);return i+e.slice(n)}const RJe=({state:e,dispatch:t})=>{let n=Ri(e),{doc:r}=e,i=null,a=e.changeByRange(s=>{if(!s.empty||!zpe.isActiveAt(e,s.from))return i={range:s};let o=s.from,l=r.lineAt(o),u=jpe(n.resolveInner(o,-1),r);for(;u.length&&u[u.length-1].from>o-l.from;)u.pop();if(!u.length)return i={range:s};let d=u[u.length-1];if(d.to-d.spaceAfter.length>o-l.from)return i={range:s};let f=o>=d.to-d.spaceAfter.length&&!/\S/.test(l.text.slice(d.to));if(d.item&&f){let T=d.node.firstChild,w=d.node.getChild("ListItem","ListItem");if(T.to>=o||w&&w.to0&&!/[^\s>]/.test(r.lineAt(l.from-1).text)){let x=u.length>1?u[u.length-2]:null,k,_="";x&&x.item?(k=l.from+x.from,_=x.marker(r,1)):k=l.from+(x?x.to:0);let R=[{from:k,to:o,insert:_}];return d.node.name=="OrderedList"&&UD(d.item,r,R,-2),x&&x.node.name=="OrderedList"&&UD(x.item,r,R),{range:dt.cursor(k+_.length),changes:R}}else{let x=CJ(u,e,l);return{range:dt.cursor(o+x.length+1),changes:{from:l.from,insert:x+e.lineBreak}}}}if(d.node.name=="Blockquote"&&f&&l.from){let T=r.lineAt(l.from-1),w=/>\s*$/.exec(T.text);if(w&&w.index==d.from){let x=e.changes([{from:T.from+w.index,to:T.to},{from:l.from+d.from,to:l.to}]);return{range:s.map(x),changes:x}}}let p=[];d.node.name=="OrderedList"&&UD(d.item,r,p);let g=d.item&&d.item.from]*/.exec(l.text)[0].length>=d.to)for(let T=0,w=u.length-1;T<=w;T++)O+=T==w&&!g?u[T].marker(r,1):u[T].blank(Tl.from&&/\s/.test(l.text.charAt(S-l.from-1));)S--;return O=qB(O,e),IJe(d.node,e.doc)&&(O=CJ(u,e,l)+e.lineBreak+O),p.push({from:S,to:o,insert:e.lineBreak+O}),{range:dt.cursor(S+O.length+1),changes:p}});return i?!1:(t(e.update(a,{scrollIntoView:!0,userEvent:"input"})),!0)};function _J(e){return e.name=="QuoteMark"||e.name=="ListMark"}function IJe(e,t){if(e.name!="OrderedList"&&e.name!="BulletList")return!1;let n=e.firstChild,r=e.getChild("ListItem","ListItem");if(!r)return!1;let i=t.lineAt(n.to),a=t.lineAt(r.from),s=/^[\s>]*$/.test(i.text);return i.number+(s?0:1){let n=Ri(e),r=null,i=e.changeByRange(a=>{let s=a.from,{doc:o}=e;if(a.empty&&zpe.isActiveAt(e,a.from)){let l=o.lineAt(s),u=jpe(NJe(n,s),o);if(u.length){let d=u[u.length-1],f=d.to-d.spaceAfter.length+(d.spaceAfter?1:0);if(s-l.from>f&&!/\S/.test(l.text.slice(f,s-l.from)))return{range:dt.cursor(l.from+f),changes:{from:l.from+f,to:s}};if(s-l.from==f&&(!d.item||l.from<=d.item.from||!/\S/.test(l.text.slice(0,d.to)))){let p=l.from+d.from;if(d.item&&d.node.from{var{theme:t,settings:n={},styles:r=[]}=e,i={".cm-gutters":{}},a={};n.background&&(a.backgroundColor=n.background),n.backgroundImage&&(a.backgroundImage=n.backgroundImage),n.foreground&&(a.color=n.foreground),n.fontSize&&(a.fontSize=n.fontSize),(n.background||n.foreground)&&(i["&"]=a),n.fontFamily&&(i["&.cm-editor .cm-scroller"]={fontFamily:n.fontFamily}),n.gutterBackground&&(i[".cm-gutters"].backgroundColor=n.gutterBackground),n.gutterForeground&&(i[".cm-gutters"].color=n.gutterForeground),n.gutterBorder&&(i[".cm-gutters"].borderRightColor=n.gutterBorder),n.caret&&(i[".cm-content"]={caretColor:n.caret},i[".cm-cursor, .cm-dropCursor"]={borderLeftColor:n.caret});var s={};n.gutterActiveForeground&&(s.color=n.gutterActiveForeground),n.lineHighlight&&(i[".cm-activeLine"]={backgroundColor:n.lineHighlight},s.backgroundColor=n.lineHighlight),i[".cm-activeLineGutter"]=s,n.selection&&(i["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:n.selection+" !important"}),n.selectionMatch&&(i["& .cm-selectionMatch"]={backgroundColor:n.selectionMatch});var o=en.theme(i,{dark:t==="dark"}),l=qT.define(r),u=[o,afe(l)];return u},FJe={background:"#fff",foreground:"#3D3D3D",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#AFAFAF",lineHighlight:"#d5e6ff69"},BJe=[{tag:[ge.comment,ge.quote],color:"#707F8D"},{tag:[ge.typeName,ge.typeOperator],color:"#aa0d91"},{tag:[ge.keyword],color:"#aa0d91",fontWeight:"bold"},{tag:[ge.string,ge.meta],color:"#D23423"},{tag:[ge.name],color:"#032f62"},{tag:[ge.typeName],color:"#522BB2"},{tag:[ge.variableName],color:"#23575C"},{tag:[ge.definition(ge.variableName)],color:"#327A9E"},{tag:[ge.regexp,ge.link],color:"#0e0eff"}];function UJe(e){var{theme:t="light",settings:n={},styles:r=[]}={};return Qpe({theme:t,settings:Uh({},FJe,n),styles:[...BJe,...r]})}var zJe=UJe(),jJe={background:"#292A30",foreground:"#CECFD0",caret:"#fff",selection:"#727377",selectionMatch:"#727377",lineHighlight:"#ffffff0f"},HJe=[{tag:[ge.comment,ge.quote],color:"#7F8C98"},{tag:[ge.keyword],color:"#FF7AB2",fontWeight:"bold"},{tag:[ge.string,ge.meta],color:"#FF8170"},{tag:[ge.typeName],color:"#DABAFF"},{tag:[ge.definition(ge.variableName)],color:"#6BDFFF"},{tag:[ge.name],color:"#6BAA9F"},{tag:[ge.variableName],color:"#ACF2E4"},{tag:[ge.regexp,ge.link],color:"#FF8170"}],QJe=e=>{var{theme:t="dark",settings:n={},styles:r=[]}={};return Qpe({theme:t,settings:Uh({},jJe,n),styles:[...HJe,...r]})},WJe=QJe(),Wpe={exports:{}};(function(e,t){(function(r,i){e.exports=i(M)})(pf,function(n){return function(r){var i={};function a(s){if(i[s])return i[s].exports;var o=i[s]={i:s,l:!1,exports:{}};return r[s].call(o.exports,o,o.exports,a),o.l=!0,o.exports}return a.m=r,a.c=i,a.i=function(s){return s},a.d=function(s,o,l){a.o(s,o)||Object.defineProperty(s,o,{configurable:!1,enumerable:!0,get:l})},a.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return a.d(o,"a",o),o},a.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},a.p="",a(a.s=10)}([function(r,i){var a=r.exports={},s,o;function l(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?s=setTimeout:s=l}catch{s=l}try{typeof clearTimeout=="function"?o=clearTimeout:o=u}catch{o=u}})();function d(_){if(s===setTimeout)return setTimeout(_,0);if((s===l||!s)&&setTimeout)return s=setTimeout,setTimeout(_,0);try{return s(_,0)}catch{try{return s.call(null,_,0)}catch{return s.call(this,_,0)}}}function f(_){if(o===clearTimeout)return clearTimeout(_);if((o===u||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(_);try{return o(_)}catch{try{return o.call(null,_)}catch{return o.call(this,_)}}}var p=[],g=!1,O,S=-1;function T(){!g||!O||(g=!1,O.length?p=O.concat(p):S=-1,p.length&&w())}function w(){if(!g){var _=d(T);g=!0;for(var R=p.length;R;){for(O=p,p=[];++S1)for(var N=1;N1?p-1:0),O=1;O2?g-2:0),S=2;S0&&N.syncScrollPosition(N.panes[re][0],V),N.panes[re].push(V))}),N.addEvents(V,W)},N.unregisterPane=function(V,W){W.forEach(function(re){N.findPane(V,re)&&(N.removeEvents(V),N.panes[re].splice(N.panes[re].indexOf(V),1))})},N.addEvents=function(V,W){V.onscroll=N.handlePaneScroll.bind(N,V,W)},N.removeEvents=function(V){V.onscroll=null},N.findPane=function(V,W){return N.panes[W]?N.panes[W].find(function(re){return re===V}):!1},N.handlePaneScroll=function(V,W){N.props.enabled&&window.requestAnimationFrame(function(){N.syncScrollPositions(V,W)})},N.syncScrollPositions=function(V,W){W.forEach(function(re){N.panes[re].forEach(function(ee){V!==ee&&(N.removeEvents(ee,re),N.syncScrollPosition(V,ee),window.requestAnimationFrame(function(){N.addEvents(ee,W)}))})}),N.props.onSync&&N.props.onSync(V)},R),S(N,P)}return s(k,[{key:"getContextValue",value:function(){return{registerPane:this.registerPane,unregisterPane:this.unregisterPane}}},{key:"syncScrollPosition",value:function(R,N){var P=R.scrollTop,L=R.scrollHeight,j=R.clientHeight,B=R.scrollLeft,V=R.scrollWidth,W=R.clientWidth,re=L-j,ee=V-W,q=this.props,ne=q.proportional,K=q.vertical,G=q.horizontal,ie=N.scrollHeight-j,H=N.scrollWidth-W;K&&re>0&&(N.scrollTop=ne?ie*P/re:P),G&&ee>0&&(N.scrollLeft=ne?H*B/ee:B)}},{key:"render",value:function(){return l.default.createElement(p.default.Provider,{value:this.getContextValue()},l.default.Children.only(this.props.children))}}]),k}(o.Component);w.propTypes={onSync:d.default.func,children:d.default.element.isRequired,proportional:d.default.bool,vertical:d.default.bool,horizontal:d.default.bool,enabled:d.default.bool},w.defaultProps={proportional:!0,vertical:!0,horizontal:!0,enabled:!0},i.default=w,r.exports=i.default},function(r,i,a){Object.defineProperty(i,"__esModule",{value:!0});var s=function(){function w(x,k){for(var _=0;_"u"||Se===null)return""+Se;var Z=G(Se);if(Z==="object"){if(Se instanceof Date)return"date";if(Se instanceof RegExp)return"regexp"}return Z}function H(Se){var Z=ie(Se);switch(Z){case"array":case"object":return"an "+Z;case"boolean":case"date":case"regexp":return"a "+Z;default:return Z}}function Re(Se){return!Se.constructor||!Se.constructor.name?w:Se.constructor.name}return x.checkPropTypes=f,x.PropTypes=x,x}}).call(i,a(0))}])})})(Wpe);var ML=Wpe.exports,au=(e=>(e.BOLD="bold",e.ITALIC="italic",e.CODE="code",e.STRIKETHROUGH="strikeThrough",e))(au||{});const Vpe=()=>{const{cmView:e}=Pr(vp),t=M.useCallback(s=>{switch(s){case"bold":return"**";case"italic":return"_";case"code":return"`";case"strikeThrough":return"~~"}},[]),n=M.useCallback((s,o)=>{const u=new Set(["*","_","`","~"]);return[...s.sliceDoc(Math.max(0,o-10),o)].reduce((f,p)=>u.has(p)?f+1:f,0)},[]),r=M.useCallback(s=>{const o=t(s),l=o.length;return({state:u,dispatch:d})=>{const f=u.changeByRange(p=>{const g=n(u,p.from),O=u.sliceDoc(p.from-g<0?0:p.from-g,p.from).indexOf(o),S=u.sliceDoc(p.to,p.to+g).indexOf(o),T=[O===-1?{from:p.from,insert:Er.of([o])}:{from:p.from-g+O,to:p.from-g+O+l,insert:Er.of([""])},S===-1?{from:p.to,insert:Er.of([o])}:{from:p.to+S,to:p.to+S+l,insert:Er.of([""])}],w=O===-1?l:-l,x=S===-1?l:-l;return{changes:T,range:dt.range(p.from+w,p.to+x)}});return d(u.update(f,{scrollIntoView:!0,annotations:os.userEvent.of("input")})),!0}},[t,n]),i=M.useCallback(()=>[Fqe,{key:"Mod-b",run:r("bold")},{key:"Mod-i",run:r("italic")},{key:"Mod-e",run:r("code")},{key:"Mod-Shift-x",run:r("strikeThrough")}],[r]),a=M.useCallback((s,o)=>(l,u)=>{if(!e)return;const d=new Set(s);d.has(u)?d.delete(u):d.add(u),o(f=>({...f,selectedFormats:d})),r(u)(e)},[e,r]);return{getFormatMarkerLength:n,applyFormat:r,setKeymapConfig:i,toggleButtonChangeHandler:a}},VJe={yorkieIntelligence:null,fileUpload:null},qpe=M1({name:"setting",initialState:VJe,reducers:{setYorkieIntelligence:(e,t)=>{e.yorkieIntelligence=t.payload},setFileUpload:(e,t)=>{e.fileUpload=t.payload}}}),{setYorkieIntelligence:qJe,setFileUpload:GJe}=qpe.actions,HR=e=>e.setting,YJe=qpe.reducer,RJ=async(e,t)=>await Promise.all(Array.from(e).map(n=>{if(n.type.startsWith("image/"))return new Promise((r,i)=>{const a=new FileReader;a.readAsDataURL(n),a.onload=function(){r(t(n))},a.onerror=function(s){i(s)}})})),IJ=(e,t,n)=>{if(!e)return;const i=t.state.selection.main.to,a=i,s=` -![image](${e}) -`,o=a+s.length;n.update((l,u)=>{l.content.edit(i,a,s),u.set({selection:l.content.indexRangeToPosRange([o,o])})}),t.dispatch({changes:{from:i,to:a,insert:s},selection:{anchor:o}})},ZJe=(e,t)=>en.domEventHandlers({paste(n,r){var i,a;!((i=n.clipboardData)!=null&&i.files)||((a=n.clipboardData)==null?void 0:a.files.length)==0||RJ(n.clipboardData.files,e).then(s=>s.forEach(o=>IJ(o,r,t)))},drop(n,r){var i,a;!((i=n.dataTransfer)!=null&&i.files)||((a=n.dataTransfer)==null?void 0:a.files.length)==0||RJ(n.dataTransfer.files,e).then(s=>s.forEach(o=>IJ(o,r,t)))}});class XJe{constructor(t,n){this.left=t,this.right=n}}const Vg=(e,t)=>new XJe(e,t),KJe=(e,t)=>e.forEach(n=>t(n.left,n.right)),Gf=typeof document<"u"?document:{},JJe=e=>Gf.createElement(e),eet=()=>Gf.createDocumentFragment(),tet=e=>Gf.createTextNode(e);typeof DOMParser<"u"&&new DOMParser;const net=(e,t)=>(KJe(t,(n,r)=>{r===!1?e.removeAttribute(n):r===!0?e.setAttribute(n,""):e.setAttribute(n,r)}),e),ret=e=>{const t=eet();for(let n=0;n(Gpe(e,ret(t)),e),g_=(e,t=[],n=[])=>iet(net(JJe(e),t),n),KA=tet,Gpe=(e,t)=>e.appendChild(t);Gf.ELEMENT_NODE;Gf.TEXT_NODE;Gf.CDATA_SECTION_NODE;Gf.COMMENT_NODE;Gf.DOCUMENT_NODE;Gf.DOCUMENT_TYPE_NODE;Gf.DOCUMENT_FRAGMENT_NODE;const aet="yorkie-intelligence-header",yC="yorkie-intelligence-footer";class NJ extends Ld{constructor(n,r,i){super();Ls(this,"id");Ls(this,"content");Ls(this,"selectionRange");this.id=n,this.content=r,this.selectionRange=i}toDOM(){return g_("span",[Vg("id",this.id),Vg("content",this.content),Vg("style","position: relaitve;")])}eq(n){return n.selectionRange===this.selectionRange}compare(n){return n.selectionRange===this.selectionRange}updateDOM(){return!1}get estimatedHeight(){return-1}ignoreEvent(){return!0}}class set{constructor(){Ls(this,"decorations");this.decorations=Cr.of([])}update(t){const n=[],r=t.state.selection.main;if((r==null?void 0:r.from)!==(r==null?void 0:r.to)&&r){const a=t.state.sliceDoc(r.from,r.to);n.push({from:r.from,to:r.from,value:vn.widget({side:1,block:!1,widget:new NJ(aet,a,r)})}),n.push({from:r.to,to:r.to,value:vn.widget({side:1,block:!1,widget:new NJ(yC,a,r)})})}this.decorations=vn.set(n,!0)}}const oet=fa.fromClass(set,{decorations:e=>e.decorations});var $L={exports:{}};(function(e,t){var n={};(function(r,i){i(t)})(pf,function(r){var i=Object.defineProperty,a=(v,c,h)=>c in v?i(v,c,{enumerable:!0,configurable:!0,writable:!0,value:h}):v[c]=h,s=(v,c,h)=>(a(v,typeof c!="symbol"?c+"":c,h),h),o;(function(v){v[v.Canceled=1]="Canceled",v[v.Unknown=2]="Unknown",v[v.InvalidArgument=3]="InvalidArgument",v[v.DeadlineExceeded=4]="DeadlineExceeded",v[v.NotFound=5]="NotFound",v[v.AlreadyExists=6]="AlreadyExists",v[v.PermissionDenied=7]="PermissionDenied",v[v.ResourceExhausted=8]="ResourceExhausted",v[v.FailedPrecondition=9]="FailedPrecondition",v[v.Aborted=10]="Aborted",v[v.OutOfRange=11]="OutOfRange",v[v.Unimplemented=12]="Unimplemented",v[v.Internal=13]="Internal",v[v.Unavailable=14]="Unavailable",v[v.DataLoss=15]="DataLoss",v[v.Unauthenticated=16]="Unauthenticated"})(o||(o={}));function l(v){const c=o[v];return typeof c!="string"?v.toString():c[0].toLowerCase()+c.substring(1).replace(/[A-Z]/g,h=>"_"+h.toLowerCase())}class u extends Error{constructor(c,h=o.Unknown,b,E,D){super(d(c,h)),this.name="ConnectError",Object.setPrototypeOf(this,new.target.prototype),this.rawMessage=c,this.code=h,this.metadata=new Headers(b??{}),this.details=E??[],this.cause=D}static from(c,h=o.Unknown){return c instanceof u?c:c instanceof Error?c.name=="AbortError"?new u(c.message,o.Canceled):new u(c.message,h,void 0,void 0,c):new u(String(c),h,void 0,void 0,c)}static[Symbol.hasInstance](c){return c instanceof Error?Object.getPrototypeOf(c)===u.prototype?!0:c.name==="ConnectError"&&"code"in c&&typeof c.code=="number"&&"metadata"in c&&"details"in c&&Array.isArray(c.details)&&"rawMessage"in c&&typeof c.rawMessage=="string"&&"cause"in c:!1}findDetails(c){const h="typeName"in c?{findMessage:E=>E===c.typeName?c:void 0}:c,b=[];for(const E of this.details){if("getType"in E){h.findMessage(E.getType().typeName)&&b.push(E);continue}const D=h.findMessage(E.type);if(D)try{b.push(D.fromBinary(E.value))}catch{}}return b}}function d(v,c){return v.length?`[${l(c)}] ${v}`:`[${l(c)}]`}function f(v,c){if(!v)throw new Error(c)}const p=34028234663852886e22,g=-34028234663852886e22,O=4294967295,S=2147483647,T=-2147483648;function w(v){if(typeof v!="number")throw new Error("invalid int 32: "+typeof v);if(!Number.isInteger(v)||v>S||vO||v<0)throw new Error("invalid uint 32: "+v)}function k(v){if(typeof v!="number")throw new Error("invalid float 32: "+typeof v);if(Number.isFinite(v)&&(v>p||v({no:E.no,name:E.name,localName:v[E.no]})))}function P(v,c,h){const b=Object.create(null),E=Object.create(null),D=[];for(const U of c){const Y=j(U);D.push(Y),b[U.name]=Y,E[U.no]=Y}return{typeName:v,values:D,findName(U){return b[U]},findNumber(U){return E[U]}}}function L(v,c,h){const b={};for(const E of c){const D=j(E);b[D.localName]=D.no,b[D.no]=D.localName}return N(b,v,c),b}function j(v){return"localName"in v?v:Object.assign(Object.assign({},v),{localName:v.name})}class B{equals(c){return this.getType().runtime.util.equals(this.getType(),this,c)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(c,h){const b=this.getType(),E=b.runtime.bin,D=E.makeReadOptions(h);return E.readMessage(this,D.readerFactory(c),c.byteLength,D),this}fromJson(c,h){const b=this.getType(),E=b.runtime.json,D=E.makeReadOptions(h);return E.readMessage(b,c,D,this),this}fromJsonString(c,h){let b;try{b=JSON.parse(c)}catch(E){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${E instanceof Error?E.message:String(E)}`)}return this.fromJson(b,h)}toBinary(c){const h=this.getType(),b=h.runtime.bin,E=b.makeWriteOptions(c),D=E.writerFactory();return b.writeMessage(this,D,E),D.finish()}toJson(c){const h=this.getType(),b=h.runtime.json,E=b.makeWriteOptions(c);return b.writeMessage(this,E)}toJsonString(c){var h;const b=this.toJson(c);return JSON.stringify(b,null,(h=c==null?void 0:c.prettySpaces)!==null&&h!==void 0?h:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}}function V(v,c,h,b){var E;const D=(E=b==null?void 0:b.localName)!==null&&E!==void 0?E:c.substring(c.lastIndexOf(".")+1),U={[D]:function(Y){v.util.initFields(this),v.util.initPartial(Y,this)}}[D];return Object.setPrototypeOf(U.prototype,new B),Object.assign(U,{runtime:v,typeName:c,fields:v.util.newFieldList(h),fromBinary(Y,fe){return new U().fromBinary(Y,fe)},fromJson(Y,fe){return new U().fromJson(Y,fe)},fromJsonString(Y,fe){return new U().fromJsonString(Y,fe)},equals(Y,fe){return v.util.equals(U,Y,fe)}}),U}function W(){let v=0,c=0;for(let b=0;b<28;b+=7){let E=this.buf[this.pos++];if(v|=(E&127)<>4,!(h&128))return this.assertBounds(),[v,c];for(let b=3;b<=31;b+=7){let E=this.buf[this.pos++];if(c|=(E&127)<>>D,Y=!(!(U>>>7)&&c==0),fe=(Y?U|128:U)&255;if(h.push(fe),!Y)return}const b=v>>>28&15|(c&7)<<4,E=!!(c>>3);if(h.push((E?b|128:b)&255),!!E){for(let D=3;D<31;D=D+7){const U=c>>>D,Y=!!(U>>>7),fe=(Y?U|128:U)&255;if(h.push(fe),!Y)return}h.push(c>>>31&1)}}const ee=4294967296;function q(v){const c=v[0]==="-";c&&(v=v.slice(1));const h=1e6;let b=0,E=0;function D(U,Y){const fe=Number(v.slice(U,Y));E*=h,b=b*h+fe,b>=ee&&(E=E+(b/ee|0),b=b%ee)}return D(-24,-18),D(-18,-12),D(-12,-6),D(-6),c?H(b,E):ie(b,E)}function ne(v,c){let h=ie(v,c);const b=h.hi&2147483648;b&&(h=H(h.lo,h.hi));const E=K(h.lo,h.hi);return b?"-"+E:E}function K(v,c){if({lo:v,hi:c}=G(v,c),c<=2097151)return String(ee*c+v);const h=v&16777215,b=(v>>>24|c<<8)&16777215,E=c>>16&65535;let D=h+b*6777216+E*6710656,U=b+E*8147497,Y=E*2;const fe=1e7;return D>=fe&&(U+=Math.floor(D/fe),D%=fe),U>=fe&&(Y+=Math.floor(U/fe),U%=fe),Y.toString()+Re(U)+Re(D)}function G(v,c){return{lo:v>>>0,hi:c>>>0}}function ie(v,c){return{lo:v|0,hi:c|0}}function H(v,c){return c=~c,v?v=~v+1:c+=1,ie(v,c)}const Re=v=>{const c=String(v);return"0000000".slice(c.length)+c};function Se(v,c){if(v>=0){for(;v>127;)c.push(v&127|128),v=v>>>7;c.push(v)}else{for(let h=0;h<9;h++)c.push(v&127|128),v=v>>7;c.push(1)}}function Z(){let v=this.buf[this.pos++],c=v&127;if(!(v&128))return this.assertBounds(),c;if(v=this.buf[this.pos++],c|=(v&127)<<7,!(v&128))return this.assertBounds(),c;if(v=this.buf[this.pos++],c|=(v&127)<<14,!(v&128))return this.assertBounds(),c;if(v=this.buf[this.pos++],c|=(v&127)<<21,!(v&128))return this.assertBounds(),c;v=this.buf[this.pos++],c|=(v&15)<<28;for(let h=5;v&128&&h<10;h++)v=this.buf[this.pos++];if(v&128)throw new Error("invalid varint");return this.assertBounds(),c>>>0}function ke(){const v=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof v.getBigInt64=="function"&&typeof v.getBigUint64=="function"&&typeof v.setBigInt64=="function"&&typeof v.setBigUint64=="function"&&(typeof process!="object"||typeof n!="object"||n.BUF_BIGINT_DISABLE!=="1")){const E=BigInt("-9223372036854775808"),D=BigInt("9223372036854775807"),U=BigInt("0"),Y=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(fe){const me=typeof fe=="bigint"?fe:BigInt(fe);if(me>D||meY||mef(/^-?[0-9]+$/.test(E),`int64 invalid: ${E}`),b=E=>f(/^[0-9]+$/.test(E),`uint64 invalid: ${E}`);return{zero:"0",supported:!1,parse(E){return typeof E!="string"&&(E=E.toString()),h(E),E},uParse(E){return typeof E!="string"&&(E=E.toString()),b(E),E},enc(E){return typeof E!="string"&&(E=E.toString()),h(E),q(E)},uEnc(E){return typeof E!="string"&&(E=E.toString()),b(E),q(E)},dec(E,D){return ne(E,D)},uDec(E,D){return K(E,D)}}}const $e=ke();var ae;(function(v){v[v.DOUBLE=1]="DOUBLE",v[v.FLOAT=2]="FLOAT",v[v.INT64=3]="INT64",v[v.UINT64=4]="UINT64",v[v.INT32=5]="INT32",v[v.FIXED64=6]="FIXED64",v[v.FIXED32=7]="FIXED32",v[v.BOOL=8]="BOOL",v[v.STRING=9]="STRING",v[v.BYTES=12]="BYTES",v[v.UINT32=13]="UINT32",v[v.SFIXED32=15]="SFIXED32",v[v.SFIXED64=16]="SFIXED64",v[v.SINT32=17]="SINT32",v[v.SINT64=18]="SINT64"})(ae||(ae={}));var Xe;(function(v){v[v.BIGINT=0]="BIGINT",v[v.STRING=1]="STRING"})(Xe||(Xe={}));function We(v,c,h){if(c===h)return!0;if(v==ae.BYTES){if(!(c instanceof Uint8Array)||!(h instanceof Uint8Array)||c.length!==h.length)return!1;for(let b=0;b>>0)}raw(c){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(c),this}uint32(c){for(x(c);c>127;)this.buf.push(c&127|128),c=c>>>7;return this.buf.push(c),this}int32(c){return w(c),Se(c,this.buf),this}bool(c){return this.buf.push(c?1:0),this}bytes(c){return this.uint32(c.byteLength),this.raw(c)}string(c){let h=this.textEncoder.encode(c);return this.uint32(h.byteLength),this.raw(h)}float(c){k(c);let h=new Uint8Array(4);return new DataView(h.buffer).setFloat32(0,c,!0),this.raw(h)}double(c){let h=new Uint8Array(8);return new DataView(h.buffer).setFloat64(0,c,!0),this.raw(h)}fixed32(c){x(c);let h=new Uint8Array(4);return new DataView(h.buffer).setUint32(0,c,!0),this.raw(h)}sfixed32(c){w(c);let h=new Uint8Array(4);return new DataView(h.buffer).setInt32(0,c,!0),this.raw(h)}sint32(c){return w(c),c=(c<<1^c>>31)>>>0,Se(c,this.buf),this}sfixed64(c){let h=new Uint8Array(8),b=new DataView(h.buffer),E=$e.enc(c);return b.setInt32(0,E.lo,!0),b.setInt32(4,E.hi,!0),this.raw(h)}fixed64(c){let h=new Uint8Array(8),b=new DataView(h.buffer),E=$e.uEnc(c);return b.setInt32(0,E.lo,!0),b.setInt32(4,E.hi,!0),this.raw(h)}int64(c){let h=$e.enc(c);return re(h.lo,h.hi,this.buf),this}sint64(c){let h=$e.enc(c),b=h.hi>>31,E=h.lo<<1^b,D=(h.hi<<1|h.lo>>>31)^b;return re(E,D,this.buf),this}uint64(c){let h=$e.uEnc(c);return re(h.lo,h.hi,this.buf),this}}class jt{constructor(c,h){this.varint64=W,this.uint32=Z,this.buf=c,this.len=c.length,this.pos=0,this.view=new DataView(c.buffer,c.byteOffset,c.byteLength),this.textDecoder=h??new TextDecoder}tag(){let c=this.uint32(),h=c>>>3,b=c&7;if(h<=0||b<0||b>5)throw new Error("illegal tag: field no "+h+" wire type "+b);return[h,b]}skip(c,h){let b=this.pos;switch(c){case it.Varint:for(;this.buf[this.pos++]&128;);break;case it.Bit64:this.pos+=4;case it.Bit32:this.pos+=4;break;case it.LengthDelimited:let E=this.uint32();this.pos+=E;break;case it.StartGroup:for(;;){const[D,U]=this.tag();if(U===it.EndGroup){if(h!==void 0&&D!==h)throw new Error("invalid end group tag");break}this.skip(U,D)}break;default:throw new Error("cant skip wire type "+c)}return this.assertBounds(),this.buf.subarray(b,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let c=this.uint32();return c>>>1^-(c&1)}int64(){return $e.dec(...this.varint64())}uint64(){return $e.uDec(...this.varint64())}sint64(){let[c,h]=this.varint64(),b=-(c&1);return c=(c>>>1|(h&1)<<31)^b,h=h>>>1^b,$e.dec(c,h)}bool(){let[c,h]=this.varint64();return c!==0||h!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return $e.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return $e.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let c=this.uint32(),h=this.pos;return this.pos+=c,this.assertBounds(),this.buf.subarray(h,h+c)}string(){return this.textDecoder.decode(this.bytes())}}function ct(v,c,h,b){let E;return{typeName:c,extendee:h,get field(){if(!E){const D=typeof b=="function"?b():b;D.name=c.split(".").pop(),D.jsonName=`[${c}]`,E=v.util.newFieldList([D]).list()[0]}return E},runtime:v}}function Ot(v){const c=v.field.localName,h=Object.create(null);return h[c]=yt(v),[h,()=>h[c]]}function yt(v){const c=v.field;if(c.repeated)return[];if(c.default!==void 0)return c.default;switch(c.kind){case"enum":return c.T.values[0].no;case"scalar":return Ye(c.T,c.L);case"message":const h=c.T,b=new h;return h.fieldWrapper?h.fieldWrapper.unwrapField(b):b;case"map":throw"map fields are not allowed to be extensions"}}function Ut(v,c){if(!c.repeated&&(c.kind=="enum"||c.kind=="scalar")){for(let h=v.length-1;h>=0;--h)if(v[h].no==c.no)return[v[h]];return[]}return v.filter(h=>h.no===c.no)}let de="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),_e=[];for(let v=0;v>4,U=D,E=2;break;case 2:h[b++]=(U&15)<<4|(D&60)>>2,U=D,E=3;break;case 3:h[b++]=(U&3)<<6|D,E=0;break}}if(E==1)throw Error("invalid base64 string.");return h.subarray(0,b)},enc(v){let c="",h=0,b,E=0;for(let D=0;D>2],E=(b&3)<<4,h=1;break;case 1:c+=de[E|b>>4],E=(b&15)<<2,h=2;break;case 2:c+=de[E|b>>6],c+=de[b&63],h=0;break}return h&&(c+=de[E],c+="=",h==1&&(c+="=")),c}};function Ke(v,c,h){gt(c,v);const b=c.runtime.bin.makeReadOptions(h),E=Ut(v.getType().runtime.bin.listUnknownFields(v),c.field),[D,U]=Ot(c);for(const Y of E)c.runtime.bin.readField(D,b.readerFactory(Y.data),c.field,Y.wireType,b);return U()}function ut(v,c,h,b){gt(c,v);const E=c.runtime.bin.makeReadOptions(b),D=c.runtime.bin.makeWriteOptions(b);if(Je(v,c)){const me=v.getType().runtime.bin.listUnknownFields(v).filter(Pe=>Pe.no!=c.field.no);v.getType().runtime.bin.discardUnknownFields(v);for(const Pe of me)v.getType().runtime.bin.onUnknownField(v,Pe.no,Pe.wireType,Pe.data)}const U=D.writerFactory();let Y=c.field;!Y.opt&&!Y.repeated&&(Y.kind=="enum"||Y.kind=="scalar")&&(Y=Object.assign(Object.assign({},c.field),{opt:!0})),c.runtime.bin.writeField(Y,h,U,D);const fe=E.readerFactory(U.finish());for(;fe.posb.no==c.field.no)}function gt(v,c){f(v.extendee.typeName==c.getType().typeName,`extension ${v.typeName} can only be applied to message ${v.extendee.typeName}`)}function Jt(v,c){const h=v.localName;if(v.repeated)return c[h].length>0;if(v.oneof)return c[v.oneof.localName].case===h;switch(v.kind){case"enum":case"scalar":return v.opt||v.req?c[h]!==void 0:v.kind=="enum"?c[h]!==v.T.values[0].no:!xt(v.T,c[h]);case"message":return c[h]!==void 0;case"map":return Object.keys(c[h]).length>0}}function Fe(v,c){const h=v.localName,b=!v.opt&&!v.req;if(v.repeated)c[h]=[];else if(v.oneof)c[v.oneof.localName]={case:void 0};else switch(v.kind){case"map":c[h]={};break;case"enum":c[h]=b?v.T.values[0].no:void 0;break;case"scalar":c[h]=b?Ye(v.T,v.L):void 0;break;case"message":c[h]=void 0;break}}function we(v,c){if(v===null||typeof v!="object"||!Object.getOwnPropertyNames(B.prototype).every(b=>b in v&&typeof v[b]=="function"))return!1;const h=v.getType();return h===null||typeof h!="function"||!("typeName"in h)||typeof h.typeName!="string"?!1:c===void 0?!0:h.typeName==c.typeName}function be(v,c){return we(c)||!v.fieldWrapper?c:v.fieldWrapper.wrapField(c)}ae.DOUBLE,ae.FLOAT,ae.INT64,ae.UINT64,ae.INT32,ae.UINT32,ae.BOOL,ae.STRING,ae.BYTES;const xe={ignoreUnknownFields:!1},Ue={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function Ct(v){return v?Object.assign(Object.assign({},xe),v):xe}function qt(v){return v?Object.assign(Object.assign({},Ue),v):Ue}const tt=Symbol(),Wt=Symbol();function Ht(){return{makeReadOptions:Ct,makeWriteOptions:qt,readMessage(v,c,h,b){if(c==null||Array.isArray(c)||typeof c!="object")throw new Error(`cannot decode message ${v.typeName} from JSON: ${zt(c)}`);b=b??new v;const E=new Map,D=h.typeRegistry;for(const[U,Y]of Object.entries(c)){const fe=v.fields.findJsonName(U);if(fe){if(fe.oneof){if(Y===null&&fe.kind=="scalar")continue;const me=E.get(fe.oneof);if(me!==void 0)throw new Error(`cannot decode message ${v.typeName} from JSON: multiple keys for oneof "${fe.oneof.name}" present: "${me}", "${U}"`);E.set(fe.oneof,U)}Sn(b,Y,fe,h,v)}else{let me=!1;if(D!=null&&D.findExtension&&U.startsWith("[")&&U.endsWith("]")){const Pe=D.findExtension(U.substring(1,U.length-1));if(Pe&&Pe.extendee.typeName==v.typeName){me=!0;const[vt,ft]=Ot(Pe);Sn(vt,Y,Pe.field,h,Pe),ut(b,Pe,ft(),h)}}if(!me&&!h.ignoreUnknownFields)throw new Error(`cannot decode message ${v.typeName} from JSON: key "${U}" is unknown`)}}return b},writeMessage(v,c){const h=v.getType(),b={};let E;try{for(E of h.fields.byNumber()){if(!Jt(E,v)){if(E.req)throw"required field not set";if(!c.emitDefaultValues||!Yr(E))continue}const U=E.oneof?v[E.oneof.localName].value:v[E.localName],Y=Ni(E,U,c);Y!==void 0&&(b[c.useProtoFieldName?E.name:E.jsonName]=Y)}const D=c.typeRegistry;if(D!=null&&D.findExtensionFor)for(const U of h.runtime.bin.listUnknownFields(v)){const Y=D.findExtensionFor(h.typeName,U.no);if(Y&&Je(v,Y)){const fe=Ke(v,Y,c),me=Ni(Y.field,fe,c);me!==void 0&&(b[Y.field.jsonName]=me)}}}catch(D){const U=E?`cannot encode field ${h.typeName}.${E.name} to JSON`:`cannot encode message ${h.typeName} to JSON`,Y=D instanceof Error?D.message:String(D);throw new Error(U+(Y.length>0?`: ${Y}`:""))}return b},readScalar(v,c,h){return Mr(v,c,h??Xe.BIGINT,!0)},writeScalar(v,c,h){if(c!==void 0&&(h||xt(v,c)))return ji(v,c)},debug:zt}}function zt(v){if(v===null)return"null";switch(typeof v){case"object":return Array.isArray(v)?"array":"object";case"string":return v.length>100?"string":`"${v.split('"').join('\\"')}"`;default:return String(v)}}function Sn(v,c,h,b,E){let D=h.localName;if(h.repeated){if(f(h.kind!="map"),c===null)return;if(!Array.isArray(c))throw new Error(`cannot decode field ${E.typeName}.${h.name} from JSON: ${zt(c)}`);const U=v[D];for(const Y of c){if(Y===null)throw new Error(`cannot decode field ${E.typeName}.${h.name} from JSON: ${zt(Y)}`);switch(h.kind){case"message":U.push(h.T.fromJson(Y,b));break;case"enum":const fe=Rr(h.T,Y,b.ignoreUnknownFields,!0);fe!==Wt&&U.push(fe);break;case"scalar":try{U.push(Mr(h.T,Y,h.L,!0))}catch(me){let Pe=`cannot decode field ${E.typeName}.${h.name} from JSON: ${zt(Y)}`;throw me instanceof Error&&me.message.length>0&&(Pe+=`: ${me.message}`),new Error(Pe)}break}}}else if(h.kind=="map"){if(c===null)return;if(typeof c!="object"||Array.isArray(c))throw new Error(`cannot decode field ${E.typeName}.${h.name} from JSON: ${zt(c)}`);const U=v[D];for(const[Y,fe]of Object.entries(c)){if(fe===null)throw new Error(`cannot decode field ${E.typeName}.${h.name} from JSON: map value null`);let me;try{me=pr(h.K,Y)}catch(Pe){let vt=`cannot decode map key for field ${E.typeName}.${h.name} from JSON: ${zt(c)}`;throw Pe instanceof Error&&Pe.message.length>0&&(vt+=`: ${Pe.message}`),new Error(vt)}switch(h.V.kind){case"message":U[me]=h.V.T.fromJson(fe,b);break;case"enum":const Pe=Rr(h.V.T,fe,b.ignoreUnknownFields,!0);Pe!==Wt&&(U[me]=Pe);break;case"scalar":try{U[me]=Mr(h.V.T,fe,Xe.BIGINT,!0)}catch(vt){let ft=`cannot decode map value for field ${E.typeName}.${h.name} from JSON: ${zt(c)}`;throw vt instanceof Error&&vt.message.length>0&&(ft+=`: ${vt.message}`),new Error(ft)}break}}}else switch(h.oneof&&(v=v[h.oneof.localName]={case:D},D="value"),h.kind){case"message":const U=h.T;if(c===null&&U.typeName!="google.protobuf.Value")return;let Y=v[D];we(Y)?Y.fromJson(c,b):(v[D]=Y=U.fromJson(c,b),U.fieldWrapper&&!h.oneof&&(v[D]=U.fieldWrapper.unwrapField(Y)));break;case"enum":const fe=Rr(h.T,c,b.ignoreUnknownFields,!1);switch(fe){case tt:Fe(h,v);break;case Wt:break;default:v[D]=fe;break}break;case"scalar":try{const me=Mr(h.T,c,h.L,!1);switch(me){case tt:Fe(h,v);break;default:v[D]=me;break}}catch(me){let Pe=`cannot decode field ${E.typeName}.${h.name} from JSON: ${zt(c)}`;throw me instanceof Error&&me.message.length>0&&(Pe+=`: ${me.message}`),new Error(Pe)}break}}function pr(v,c){if(v===ae.BOOL)switch(c){case"true":c=!0;break;case"false":c=!1;break}return Mr(v,c,Xe.BIGINT,!0).toString()}function Mr(v,c,h,b){if(c===null)return b?Ye(v,h):tt;switch(v){case ae.DOUBLE:case ae.FLOAT:if(c==="NaN")return Number.NaN;if(c==="Infinity")return Number.POSITIVE_INFINITY;if(c==="-Infinity")return Number.NEGATIVE_INFINITY;if(c===""||typeof c=="string"&&c.trim().length!==c.length||typeof c!="string"&&typeof c!="number")break;const E=Number(c);if(Number.isNaN(E)||!Number.isFinite(E))break;return v==ae.FLOAT&&k(E),E;case ae.INT32:case ae.FIXED32:case ae.SFIXED32:case ae.SINT32:case ae.UINT32:let D;if(typeof c=="number"?D=c:typeof c=="string"&&c.length>0&&c.trim().length===c.length&&(D=Number(c)),D===void 0)break;return v==ae.UINT32||v==ae.FIXED32?x(D):w(D),D;case ae.INT64:case ae.SFIXED64:case ae.SINT64:if(typeof c!="number"&&typeof c!="string")break;const U=$e.parse(c);return h?U.toString():U;case ae.FIXED64:case ae.UINT64:if(typeof c!="number"&&typeof c!="string")break;const Y=$e.uParse(c);return h?Y.toString():Y;case ae.BOOL:if(typeof c!="boolean")break;return c;case ae.STRING:if(typeof c!="string")break;try{encodeURIComponent(c)}catch{throw new Error("invalid UTF8")}return c;case ae.BYTES:if(c==="")return new Uint8Array(0);if(typeof c!="string")break;return Ne.dec(c)}throw new Error}function Rr(v,c,h,b){if(c===null)return v.typeName=="google.protobuf.NullValue"?0:b?v.values[0].no:tt;switch(typeof c){case"number":if(Number.isInteger(c))return c;break;case"string":const E=v.findName(c);if(E!==void 0)return E.no;if(h)return Wt;break}throw new Error(`cannot decode enum ${v.typeName} from JSON: ${zt(c)}`)}function Yr(v){return v.repeated||v.kind=="map"?!0:!(v.oneof||v.kind=="message"||v.opt||v.req)}function Ni(v,c,h){if(v.kind=="map"){f(typeof c=="object"&&c!=null);const b={},E=Object.entries(c);switch(v.V.kind){case"scalar":for(const[U,Y]of E)b[U.toString()]=ji(v.V.T,Y);break;case"message":for(const[U,Y]of E)b[U.toString()]=Y.toJson(h);break;case"enum":const D=v.V.T;for(const[U,Y]of E)b[U.toString()]=hi(D,Y,h.enumAsInteger);break}return h.emitDefaultValues||E.length>0?b:void 0}if(v.repeated){f(Array.isArray(c));const b=[];switch(v.kind){case"scalar":for(let E=0;E0?b:void 0}switch(v.kind){case"scalar":return ji(v.T,c);case"enum":return hi(v.T,c,h.enumAsInteger);case"message":return be(v.T,c).toJson(h)}}function hi(v,c,h){var b;if(f(typeof c=="number"),v.typeName=="google.protobuf.NullValue")return null;if(h)return c;const E=v.findNumber(c);return(b=E==null?void 0:E.name)!==null&&b!==void 0?b:c}function ji(v,c){switch(v){case ae.INT32:case ae.SFIXED32:case ae.SINT32:case ae.FIXED32:case ae.UINT32:return f(typeof c=="number"),c;case ae.FLOAT:case ae.DOUBLE:return f(typeof c=="number"),Number.isNaN(c)?"NaN":c===Number.POSITIVE_INFINITY?"Infinity":c===Number.NEGATIVE_INFINITY?"-Infinity":c;case ae.STRING:return f(typeof c=="string"),c;case ae.BOOL:return f(typeof c=="boolean"),c;case ae.UINT64:case ae.FIXED64:case ae.INT64:case ae.SFIXED64:case ae.SINT64:return f(typeof c=="bigint"||typeof c=="string"||typeof c=="number"),c.toString();case ae.BYTES:return f(c instanceof Uint8Array),Ne.enc(c)}}const pi=Symbol("@bufbuild/protobuf/unknown-fields"),ds={readUnknownFields:!0,readerFactory:v=>new jt(v)},Hi={writeUnknownFields:!0,writerFactory:()=>new Pt};function Ks(v){return v?Object.assign(Object.assign({},ds),v):ds}function Qi(v){return v?Object.assign(Object.assign({},Hi),v):Hi}function Ur(){return{makeReadOptions:Ks,makeWriteOptions:Qi,listUnknownFields(v){var c;return(c=v[pi])!==null&&c!==void 0?c:[]},discardUnknownFields(v){delete v[pi]},writeUnknownFields(v,c){const b=v[pi];if(b)for(const E of b)c.tag(E.no,E.wireType).raw(E.data)},onUnknownField(v,c,h,b){const E=v;Array.isArray(E[pi])||(E[pi]=[]),E[pi].push({no:c,wireType:h,data:b})},readMessage(v,c,h,b,E){const D=v.getType(),U=E?c.len:c.pos+h;let Y,fe;for(;c.pos0&&(fe=nt),D){let ft=v[U];if(b==it.LengthDelimited&&Y!=ae.STRING&&Y!=ae.BYTES){let Xt=c.uint32()+c.pos;for(;c.poswe(ft,vt)?ft:new vt(ft));else{const ft=U[E];vt.fieldWrapper?vt.typeName==="google.protobuf.BytesValue"?D[E]=qe(ft):D[E]=ft:D[E]=we(ft,vt)?ft:new vt(ft)}break}}},equals(v,c,h){return c===h?!0:!c||!h?!1:v.fields.byMember().every(b=>{const E=c[b.localName],D=h[b.localName];if(b.repeated){if(E.length!==D.length)return!1;switch(b.kind){case"message":return E.every((U,Y)=>b.T.equals(U,D[Y]));case"scalar":return E.every((U,Y)=>We(b.T,U,D[Y]));case"enum":return E.every((U,Y)=>We(ae.INT32,U,D[Y]))}throw new Error(`repeated cannot contain ${b.kind}`)}switch(b.kind){case"message":return b.T.equals(E,D);case"enum":return We(ae.INT32,E,D);case"scalar":return We(b.T,E,D);case"oneof":if(E.case!==D.case)return!1;const U=b.findField(E.case);if(U===void 0)return!0;switch(U.kind){case"message":return U.T.equals(E.value,D.value);case"enum":return We(ae.INT32,E.value,D.value);case"scalar":return We(U.T,E.value,D.value)}throw new Error(`oneof cannot contain ${U.kind}`);case"map":const Y=Object.keys(E).concat(Object.keys(D));switch(b.V.kind){case"message":const fe=b.V.T;return Y.every(Pe=>fe.equals(E[Pe],D[Pe]));case"enum":return Y.every(Pe=>We(ae.INT32,E[Pe],D[Pe]));case"scalar":const me=b.V.T;return Y.every(Pe=>We(me,E[Pe],D[Pe]))}break}})},clone(v){const c=v.getType(),h=new c,b=h;for(const E of c.fields.byMember()){const D=v[E.localName];let U;if(E.repeated)U=D.map(at);else if(E.kind=="map"){U=b[E.localName];for(const[Y,fe]of Object.entries(D))U[Y]=at(fe)}else E.kind=="oneof"?U=E.findField(D.case)?{case:D.case,value:at(D.value)}:{case:void 0}:U=at(D);b[E.localName]=U}for(const E of c.runtime.bin.listUnknownFields(v))c.runtime.bin.onUnknownField(b,E.no,E.wireType,E.data);return h}}}function at(v){if(v===void 0)return v;if(we(v))return v.clone();if(v instanceof Uint8Array){const c=new Uint8Array(v.byteLength);return c.set(v),c}return v}function qe(v){return v instanceof Uint8Array?v:new Uint8Array(v)}function St(v,c,h){return{syntax:v,json:Ht(),bin:Ur(),util:Object.assign(Object.assign({},Te()),{newFieldList:c,initFields:h}),makeMessageType(b,E,D){return V(this,b,E,D)},makeEnum:L,makeEnumType:P,getEnumType:R,makeExtension(b,E,D){return ct(this,b,E,D)}}}class _t{constructor(c,h){this._fields=c,this._normalizer=h}findJsonName(c){if(!this.jsonNames){const h={};for(const b of this.list())h[b.jsonName]=h[b.name]=b;this.jsonNames=h}return this.jsonNames[c]}find(c){if(!this.numbers){const h={};for(const b of this.list())h[b.no]=b;this.numbers=h}return this.numbers[c]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((c,h)=>c.no-h.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];const c=this.members;let h;for(const b of this.list())b.oneof?b.oneof!==h&&(h=b.oneof,c.push(h)):c.push(b)}return this.members}}function Gt(v,c){const h=Wi(v);return c?h:$l(Ml(h))}function jn(v){return Gt(v,!1)}const qn=Wi;function Wi(v){let c=!1;const h=[];for(let b=0;b`${v}$`,Ml=v=>$u.has(v)?xo(v):v,$l=v=>ti.has(v)?xo(v):v;class Fl{constructor(c){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.req=!1,this.default=void 0,this.fields=[],this.name=c,this.localName=jn(c)}addField(c){f(c.oneof===this,`field ${c.name} not one of ${this.name}`),this.fields.push(c)}findField(c){if(!this._lookup){this._lookup=Object.create(null);for(let h=0;hnew _t(v,c=>As(c)),v=>{for(const c of v.getType().fields.byMember()){if(c.opt)continue;const h=c.localName,b=v;if(c.repeated){b[h]=[];continue}switch(c.kind){case"oneof":b[h]={case:void 0};break;case"enum":b[h]=0;break;case"map":b[h]={};break;case"scalar":b[h]=Ye(c.T,c.L);break}}});var ha;(function(v){v[v.Unary=0]="Unary",v[v.ServerStreaming=1]="ServerStreaming",v[v.ClientStreaming=2]="ClientStreaming",v[v.BiDiStreaming=3]="BiDiStreaming"})(ha||(ha={}));var nh;(function(v){v[v.NoSideEffects=1]="NoSideEffects",v[v.Idempotent=2]="Idempotent"})(nh||(nh={}));class En extends B{constructor(c){super(),this.seconds=$e.zero,this.nanos=0,je.util.initPartial(c,this)}fromJson(c,h){if(typeof c!="string")throw new Error(`cannot decode google.protobuf.Timestamp from JSON: ${je.json.debug(c)}`);const b=c.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!b)throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");const E=Date.parse(b[1]+"-"+b[2]+"-"+b[3]+"T"+b[4]+":"+b[5]+":"+b[6]+(b[8]?b[8]:"Z"));if(Number.isNaN(E))throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");if(EDate.parse("9999-12-31T23:59:59Z"))throw new Error("cannot decode message google.protobuf.Timestamp from JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");return this.seconds=$e.parse(E/1e3),this.nanos=0,b[7]&&(this.nanos=parseInt("1"+b[7]+"0".repeat(9-b[7].length))-1e9),this}toJson(c){const h=Number(this.seconds)*1e3;if(hDate.parse("9999-12-31T23:59:59Z"))throw new Error("cannot encode google.protobuf.Timestamp to JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");if(this.nanos<0)throw new Error("cannot encode google.protobuf.Timestamp to JSON: nanos must not be negative");let b="Z";if(this.nanos>0){const E=(this.nanos+1e9).toString().substring(1);E.substring(3)==="000000"?b="."+E.substring(0,3)+"Z":E.substring(6)==="000"?b="."+E.substring(0,6)+"Z":b="."+E+"Z"}return new Date(h).toISOString().replace(".000Z",b)}toDate(){return new Date(Number(this.seconds)*1e3+Math.ceil(this.nanos/1e6))}static now(){return En.fromDate(new Date)}static fromDate(c){const h=c.getTime();return new En({seconds:$e.parse(Math.floor(h/1e3)),nanos:h%1e3*1e6})}static fromBinary(c,h){return new En().fromBinary(c,h)}static fromJson(c,h){return new En().fromJson(c,h)}static fromJsonString(c,h){return new En().fromJsonString(c,h)}static equals(c,h){return je.util.equals(En,c,h)}}En.runtime=je,En.typeName="google.protobuf.Timestamp",En.fields=je.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);class xr extends B{constructor(c){super(),this.seconds=$e.zero,this.nanos=0,je.util.initPartial(c,this)}fromJson(c,h){if(typeof c!="string")throw new Error(`cannot decode google.protobuf.Duration from JSON: ${je.json.debug(c)}`);const b=c.match(/^(-?[0-9]+)(?:\.([0-9]+))?s/);if(b===null)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${je.json.debug(c)}`);const E=Number(b[1]);if(E>315576e6||E<-315576e6)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${je.json.debug(c)}`);if(this.seconds=$e.parse(E),typeof b[2]=="string"){const D=b[2]+"0".repeat(9-b[2].length);this.nanos=parseInt(D),(E<0||Object.is(E,-0))&&(this.nanos=-this.nanos)}return this}toJson(c){if(Number(this.seconds)>315576e6||Number(this.seconds)<-315576e6)throw new Error("cannot encode google.protobuf.Duration to JSON: value out of range");let h=this.seconds.toString();if(this.nanos!==0){let b=Math.abs(this.nanos).toString();b="0".repeat(9-b.length)+b,b.substring(3)==="000000"?b=b.substring(0,3):b.substring(6)==="000"&&(b=b.substring(0,6)),h+="."+b,this.nanos<0&&Number(this.seconds)==0&&(h="-"+h)}return h+"s"}static fromBinary(c,h){return new xr().fromBinary(c,h)}static fromJson(c,h){return new xr().fromJson(c,h)}static fromJsonString(c,h){return new xr().fromJsonString(c,h)}static equals(c,h){return je.util.equals(xr,c,h)}}xr.runtime=je,xr.typeName="google.protobuf.Duration",xr.fields=je.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);class mi extends B{constructor(c){super(),this.typeUrl="",this.value=new Uint8Array(0),je.util.initPartial(c,this)}toJson(c){var h;if(this.typeUrl==="")return{};const b=this.typeUrlToName(this.typeUrl),E=(h=c==null?void 0:c.typeRegistry)===null||h===void 0?void 0:h.findMessage(b);if(!E)throw new Error(`cannot encode message google.protobuf.Any to JSON: "${this.typeUrl}" is not in the type registry`);let U=E.fromBinary(this.value).toJson(c);return(b.startsWith("google.protobuf.")||U===null||Array.isArray(U)||typeof U!="object")&&(U={value:U}),U["@type"]=this.typeUrl,U}fromJson(c,h){var b;if(c===null||Array.isArray(c)||typeof c!="object")throw new Error(`cannot decode message google.protobuf.Any from JSON: expected object but got ${c===null?"null":Array.isArray(c)?"array":typeof c}`);if(Object.keys(c).length==0)return this;const E=c["@type"];if(typeof E!="string"||E=="")throw new Error('cannot decode message google.protobuf.Any from JSON: "@type" is empty');const D=this.typeUrlToName(E),U=(b=h==null?void 0:h.typeRegistry)===null||b===void 0?void 0:b.findMessage(D);if(!U)throw new Error(`cannot decode message google.protobuf.Any from JSON: ${E} is not in the type registry`);let Y;if(D.startsWith("google.protobuf.")&&Object.prototype.hasOwnProperty.call(c,"value"))Y=U.fromJson(c.value,h);else{const fe=Object.assign({},c);delete fe["@type"],Y=U.fromJson(fe,h)}return this.packFrom(Y),this}packFrom(c){this.value=c.toBinary(),this.typeUrl=this.typeNameToUrl(c.getType().typeName)}unpackTo(c){return this.is(c.getType())?(c.fromBinary(this.value),!0):!1}unpack(c){if(this.typeUrl==="")return;const h=c.findMessage(this.typeUrlToName(this.typeUrl));if(h)return h.fromBinary(this.value)}is(c){if(this.typeUrl==="")return!1;const h=this.typeUrlToName(this.typeUrl);let b="";return typeof c=="string"?b=c:b=c.typeName,h===b}typeNameToUrl(c){return`type.googleapis.com/${c}`}typeUrlToName(c){if(!c.length)throw new Error(`invalid type url: ${c}`);const h=c.lastIndexOf("/"),b=h>=0?c.substring(h+1):c;if(!b.length)throw new Error(`invalid type url: ${c}`);return b}static pack(c){const h=new mi;return h.packFrom(c),h}static fromBinary(c,h){return new mi().fromBinary(c,h)}static fromJson(c,h){return new mi().fromJson(c,h)}static fromJsonString(c,h){return new mi().fromJsonString(c,h)}static equals(c,h){return je.util.equals(mi,c,h)}}mi.runtime=je,mi.typeName="google.protobuf.Any",mi.fields=je.util.newFieldList(()=>[{no:1,name:"type_url",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:12}]);class dr extends B{constructor(c){super(),this.value=0,je.util.initPartial(c,this)}toJson(c){return je.json.writeScalar(ae.DOUBLE,this.value,!0)}fromJson(c,h){try{this.value=je.json.readScalar(ae.DOUBLE,c)}catch(b){let E='cannot decode message google.protobuf.DoubleValue from JSON"';throw b instanceof Error&&b.message.length>0&&(E+=`: ${b.message}`),new Error(E)}return this}static fromBinary(c,h){return new dr().fromBinary(c,h)}static fromJson(c,h){return new dr().fromJson(c,h)}static fromJsonString(c,h){return new dr().fromJsonString(c,h)}static equals(c,h){return je.util.equals(dr,c,h)}}dr.runtime=je,dr.typeName="google.protobuf.DoubleValue",dr.fields=je.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:1}]),dr.fieldWrapper={wrapField(v){return new dr({value:v})},unwrapField(v){return v.value}};class Vi extends B{constructor(c){super(),this.value=0,je.util.initPartial(c,this)}toJson(c){return je.json.writeScalar(ae.FLOAT,this.value,!0)}fromJson(c,h){try{this.value=je.json.readScalar(ae.FLOAT,c)}catch(b){let E='cannot decode message google.protobuf.FloatValue from JSON"';throw b instanceof Error&&b.message.length>0&&(E+=`: ${b.message}`),new Error(E)}return this}static fromBinary(c,h){return new Vi().fromBinary(c,h)}static fromJson(c,h){return new Vi().fromJson(c,h)}static fromJsonString(c,h){return new Vi().fromJsonString(c,h)}static equals(c,h){return je.util.equals(Vi,c,h)}}Vi.runtime=je,Vi.typeName="google.protobuf.FloatValue",Vi.fields=je.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:2}]),Vi.fieldWrapper={wrapField(v){return new Vi({value:v})},unwrapField(v){return v.value}};class ko extends B{constructor(c){super(),this.value=$e.zero,je.util.initPartial(c,this)}toJson(c){return je.json.writeScalar(ae.INT64,this.value,!0)}fromJson(c,h){try{this.value=je.json.readScalar(ae.INT64,c)}catch(b){let E='cannot decode message google.protobuf.Int64Value from JSON"';throw b instanceof Error&&b.message.length>0&&(E+=`: ${b.message}`),new Error(E)}return this}static fromBinary(c,h){return new ko().fromBinary(c,h)}static fromJson(c,h){return new ko().fromJson(c,h)}static fromJsonString(c,h){return new ko().fromJsonString(c,h)}static equals(c,h){return je.util.equals(ko,c,h)}}ko.runtime=je,ko.typeName="google.protobuf.Int64Value",ko.fields=je.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:3}]),ko.fieldWrapper={wrapField(v){return new ko({value:v})},unwrapField(v){return v.value}};class Ao extends B{constructor(c){super(),this.value=$e.zero,je.util.initPartial(c,this)}toJson(c){return je.json.writeScalar(ae.UINT64,this.value,!0)}fromJson(c,h){try{this.value=je.json.readScalar(ae.UINT64,c)}catch(b){let E='cannot decode message google.protobuf.UInt64Value from JSON"';throw b instanceof Error&&b.message.length>0&&(E+=`: ${b.message}`),new Error(E)}return this}static fromBinary(c,h){return new Ao().fromBinary(c,h)}static fromJson(c,h){return new Ao().fromJson(c,h)}static fromJsonString(c,h){return new Ao().fromJsonString(c,h)}static equals(c,h){return je.util.equals(Ao,c,h)}}Ao.runtime=je,Ao.typeName="google.protobuf.UInt64Value",Ao.fields=je.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:4}]),Ao.fieldWrapper={wrapField(v){return new Ao({value:v})},unwrapField(v){return v.value}};class _o extends B{constructor(c){super(),this.value=0,je.util.initPartial(c,this)}toJson(c){return je.json.writeScalar(ae.INT32,this.value,!0)}fromJson(c,h){try{this.value=je.json.readScalar(ae.INT32,c)}catch(b){let E='cannot decode message google.protobuf.Int32Value from JSON"';throw b instanceof Error&&b.message.length>0&&(E+=`: ${b.message}`),new Error(E)}return this}static fromBinary(c,h){return new _o().fromBinary(c,h)}static fromJson(c,h){return new _o().fromJson(c,h)}static fromJsonString(c,h){return new _o().fromJsonString(c,h)}static equals(c,h){return je.util.equals(_o,c,h)}}_o.runtime=je,_o.typeName="google.protobuf.Int32Value",_o.fields=je.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:5}]),_o.fieldWrapper={wrapField(v){return new _o({value:v})},unwrapField(v){return v.value}};class Bl extends B{constructor(c){super(),this.value=0,je.util.initPartial(c,this)}toJson(c){return je.json.writeScalar(ae.UINT32,this.value,!0)}fromJson(c,h){try{this.value=je.json.readScalar(ae.UINT32,c)}catch(b){let E='cannot decode message google.protobuf.UInt32Value from JSON"';throw b instanceof Error&&b.message.length>0&&(E+=`: ${b.message}`),new Error(E)}return this}static fromBinary(c,h){return new Bl().fromBinary(c,h)}static fromJson(c,h){return new Bl().fromJson(c,h)}static fromJsonString(c,h){return new Bl().fromJsonString(c,h)}static equals(c,h){return je.util.equals(Bl,c,h)}}Bl.runtime=je,Bl.typeName="google.protobuf.UInt32Value",Bl.fields=je.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:13}]),Bl.fieldWrapper={wrapField(v){return new Bl({value:v})},unwrapField(v){return v.value}};class Fu extends B{constructor(c){super(),this.value=!1,je.util.initPartial(c,this)}toJson(c){return je.json.writeScalar(ae.BOOL,this.value,!0)}fromJson(c,h){try{this.value=je.json.readScalar(ae.BOOL,c)}catch(b){let E='cannot decode message google.protobuf.BoolValue from JSON"';throw b instanceof Error&&b.message.length>0&&(E+=`: ${b.message}`),new Error(E)}return this}static fromBinary(c,h){return new Fu().fromBinary(c,h)}static fromJson(c,h){return new Fu().fromJson(c,h)}static fromJsonString(c,h){return new Fu().fromJsonString(c,h)}static equals(c,h){return je.util.equals(Fu,c,h)}}Fu.runtime=je,Fu.typeName="google.protobuf.BoolValue",Fu.fields=je.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:8}]),Fu.fieldWrapper={wrapField(v){return new Fu({value:v})},unwrapField(v){return v.value}};class Js extends B{constructor(c){super(),this.value="",je.util.initPartial(c,this)}toJson(c){return je.json.writeScalar(ae.STRING,this.value,!0)}fromJson(c,h){try{this.value=je.json.readScalar(ae.STRING,c)}catch(b){let E='cannot decode message google.protobuf.StringValue from JSON"';throw b instanceof Error&&b.message.length>0&&(E+=`: ${b.message}`),new Error(E)}return this}static fromBinary(c,h){return new Js().fromBinary(c,h)}static fromJson(c,h){return new Js().fromJson(c,h)}static fromJsonString(c,h){return new Js().fromJsonString(c,h)}static equals(c,h){return je.util.equals(Js,c,h)}}Js.runtime=je,Js.typeName="google.protobuf.StringValue",Js.fields=je.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:9}]),Js.fieldWrapper={wrapField(v){return new Js({value:v})},unwrapField(v){return v.value}};class Ul extends B{constructor(c){super(),this.value=new Uint8Array(0),je.util.initPartial(c,this)}toJson(c){return je.json.writeScalar(ae.BYTES,this.value,!0)}fromJson(c,h){try{this.value=je.json.readScalar(ae.BYTES,c)}catch(b){let E='cannot decode message google.protobuf.BytesValue from JSON"';throw b instanceof Error&&b.message.length>0&&(E+=`: ${b.message}`),new Error(E)}return this}static fromBinary(c,h){return new Ul().fromBinary(c,h)}static fromJson(c,h){return new Ul().fromJson(c,h)}static fromJsonString(c,h){return new Ul().fromJsonString(c,h)}static equals(c,h){return je.util.equals(Ul,c,h)}}Ul.runtime=je,Ul.typeName="google.protobuf.BytesValue",Ul.fields=je.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:12}]),Ul.fieldWrapper={wrapField(v){return new Ul({value:v})},unwrapField(v){return v.value}};function zO(v,c,h){try{const b=Ne.dec(v);return c?c.fromBinary(b,h):b}catch(b){throw u.from(b,o.DataLoss)}}function $I(v,c){const h={};for(const[b,E]of Object.entries(v.methods)){const D=c(Object.assign(Object.assign({},E),{localName:b,service:v}));D!=null&&(h[b]=D)}return h}function jO(v){let c,h=new Uint8Array(0);function b(E){const D=new Uint8Array(h.length+E.length);D.set(h),D.set(E,h.length),h=D}return new ReadableStream({start(){c=v.getReader()},async pull(E){let D;for(;;){if(D===void 0&&h.byteLength>=5){let fe=0;for(let me=1;me<5;me++)fe=(fe<<8)+h[me];D={flags:h[0],length:fe}}if(D!==void 0&&h.byteLength>=D.length+5)break;const Y=await c.read();if(Y.done)break;b(Y.value)}if(D===void 0){if(h.byteLength==0){E.close();return}E.error(new u("premature end of stream",o.DataLoss));return}const U=h.subarray(5,5+D.length);h=h.subarray(5+D.length),E.enqueue({flags:D.flags,data:U})}})}function K1(v,c){const h=new Uint8Array(c.length+5);h.set(c,5);const b=new DataView(h.buffer,h.byteOffset,h.byteLength);return b.setUint8(0,v),b.setUint32(1,c.length),h}var HO=globalThis&&globalThis.__asyncValues||function(v){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var c=v[Symbol.asyncIterator],h;return c?c.call(v):(v=typeof __values=="function"?__values(v):v[Symbol.iterator](),h={},b("next"),b("throw"),b("return"),h[Symbol.asyncIterator]=function(){return this},h);function b(D){h[D]=v[D]&&function(U){return new Promise(function(Y,fe){U=v[D](U),E(Y,fe,U.done,U.value)})}}function E(D,U,Y,fe){Promise.resolve(fe).then(function(me){D({value:me,done:Y})},U)}},Bu=globalThis&&globalThis.__await||function(v){return this instanceof Bu?(this.v=v,this):new Bu(v)},xx=globalThis&&globalThis.__asyncGenerator||function(v,c,h){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var b=h.apply(v,c||[]),E,D=[];return E={},Y("next"),Y("throw"),Y("return",U),E[Symbol.asyncIterator]=function(){return this},E;function U(et){return function(Xt){return Promise.resolve(Xt).then(et,vt)}}function Y(et,Xt){b[et]&&(E[et]=function(_n){return new Promise(function(An,Gn){D.push([et,_n,An,Gn])>1||fe(et,_n)})},Xt&&(E[et]=Xt(E[et])))}function fe(et,Xt){try{me(b[et](Xt))}catch(_n){ft(D[0][3],_n)}}function me(et){et.value instanceof Bu?Promise.resolve(et.value.v).then(Pe,vt):ft(D[0][2],et)}function Pe(et){fe("next",et)}function vt(et){fe("throw",et)}function ft(et,Xt){et(Xt),D.shift(),D.length&&fe(D[0][0],D[0][1])}},kx=globalThis&&globalThis.__asyncDelegator||function(v){var c,h;return c={},b("next"),b("throw",function(E){throw E}),b("return"),c[Symbol.iterator]=function(){return this},c;function b(E,D){c[E]=v[E]?function(U){return(h=!h)?{value:Bu(v[E](U)),done:!1}:D?D(U):U}:D}};function FI(v){return xx(this,arguments,function*(){yield Bu(yield*kx(HO(v)))})}var QO=globalThis&&globalThis.__asyncValues||function(v){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var c=v[Symbol.asyncIterator],h;return c?c.call(v):(v=typeof __values=="function"?__values(v):v[Symbol.iterator](),h={},b("next"),b("throw"),b("return"),h[Symbol.asyncIterator]=function(){return this},h);function b(D){h[D]=v[D]&&function(U){return new Promise(function(Y,fe){U=v[D](U),E(Y,fe,U.done,U.value)})}}function E(D,U,Y,fe){Promise.resolve(fe).then(function(me){D({value:me,done:Y})},U)}},rh=globalThis&&globalThis.__await||function(v){return this instanceof rh?(this.v=v,this):new rh(v)},Ax=globalThis&&globalThis.__asyncDelegator||function(v){var c,h;return c={},b("next"),b("throw",function(E){throw E}),b("return"),c[Symbol.iterator]=function(){return this},c;function b(E,D){c[E]=v[E]?function(U){return(h=!h)?{value:rh(v[E](U)),done:!1}:D?D(U):U}:D}},_x=globalThis&&globalThis.__asyncGenerator||function(v,c,h){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var b=h.apply(v,c||[]),E,D=[];return E={},Y("next"),Y("throw"),Y("return",U),E[Symbol.asyncIterator]=function(){return this},E;function U(et){return function(Xt){return Promise.resolve(Xt).then(et,vt)}}function Y(et,Xt){b[et]&&(E[et]=function(_n){return new Promise(function(An,Gn){D.push([et,_n,An,Gn])>1||fe(et,_n)})},Xt&&(E[et]=Xt(E[et])))}function fe(et,Xt){try{me(b[et](Xt))}catch(_n){ft(D[0][3],_n)}}function me(et){et.value instanceof rh?Promise.resolve(et.value.v).then(Pe,vt):ft(D[0][2],et)}function Pe(et){fe("next",et)}function vt(et){fe("throw",et)}function ft(et,Xt){et(Xt),D.shift(),D.length&&fe(D[0][0],D[0][1])}};function BI(v,c){return $I(v,h=>{switch(h.kind){case ha.Unary:return UI(c,v,h);case ha.ServerStreaming:return zI(c,v,h);case ha.ClientStreaming:return Cx(c,v,h);case ha.BiDiStreaming:return jI(c,v,h);default:return null}})}function UI(v,c,h){return async function(b,E){var D,U;const Y=await v.unary(c,h,E==null?void 0:E.signal,E==null?void 0:E.timeoutMs,E==null?void 0:E.headers,b,E==null?void 0:E.contextValues);return(D=E==null?void 0:E.onHeader)===null||D===void 0||D.call(E,Y.header),(U=E==null?void 0:E.onTrailer)===null||U===void 0||U.call(E,Y.trailer),Y.message}}function zI(v,c,h){return function(b,E){return Rx(v.stream(c,h,E==null?void 0:E.signal,E==null?void 0:E.timeoutMs,E==null?void 0:E.headers,FI([b]),E==null?void 0:E.contextValues),E)}}function Cx(v,c,h){return async function(b,E){var D,U,Y,fe,me,Pe;const vt=await v.stream(c,h,E==null?void 0:E.signal,E==null?void 0:E.timeoutMs,E==null?void 0:E.headers,b,E==null?void 0:E.contextValues);(me=E==null?void 0:E.onHeader)===null||me===void 0||me.call(E,vt.header);let ft;try{for(var et=!0,Xt=QO(vt.message),_n;_n=await Xt.next(),D=_n.done,!D;et=!0)fe=_n.value,et=!1,ft=fe}catch(An){U={error:An}}finally{try{!et&&!D&&(Y=Xt.return)&&await Y.call(Xt)}finally{if(U)throw U.error}}if(!ft)throw new u("protocol error: missing response message",o.Internal);return(Pe=E==null?void 0:E.onTrailer)===null||Pe===void 0||Pe.call(E,vt.trailer),ft}}function jI(v,c,h){return function(b,E){return Rx(v.stream(c,h,E==null?void 0:E.signal,E==null?void 0:E.timeoutMs,E==null?void 0:E.headers,b,E==null?void 0:E.contextValues),E)}}function Rx(v,c){const h=function(){var b,E;return _x(this,arguments,function*(){const D=yield rh(v);(b=c==null?void 0:c.onHeader)===null||b===void 0||b.call(c,D.header),yield rh(yield*Ax(QO(D.message))),(E=c==null?void 0:c.onTrailer)===null||E===void 0||E.call(c,D.trailer)})}()[Symbol.asyncIterator]();return{[Symbol.asyncIterator]:()=>({next:()=>h.next()})}}function HI(...v){const c=new AbortController,h=v.filter(E=>E!==void 0).concat(c.signal);for(const E of h){if(E.aborted){b.apply(E);break}E.addEventListener("abort",b)}function b(){c.signal.aborted||c.abort(J1(this));for(const E of h)E.removeEventListener("abort",b)}return c}function QI(v){const c=new AbortController,h=()=>{c.abort(new u("the operation timed out",o.DeadlineExceeded))};let b;return v!==void 0&&(v<=0?h():b=setTimeout(h,v)),{signal:c.signal,cleanup:()=>clearTimeout(b)}}function J1(v){if(!v.aborted)return;if(v.reason!==void 0)return v.reason;const c=new Error("This operation was aborted");return c.name="AbortError",c}function Ix(){return{get(v){return v.id in this?this[v.id]:v.defaultValue},set(v,c){return this[v.id]=c,this},delete(v){return delete this[v.id],this}}}const WO=128;function Nx(v){const c=new Headers,h=new TextDecoder().decode(v).split(`\r -`);for(const b of h){if(b==="")continue;const E=b.indexOf(":");if(E>0){const D=b.substring(0,E).trim(),U=b.substring(E+1).trim();c.append(D,U)}}return c}const WI="Content-Type",VI="Grpc-Timeout",ui="Grpc-Status",ni="Grpc-Message",qI="Grpc-Status-Details-Bin",GI="X-User-Agent",YI="X-Grpc-Web",ZI="application/grpc-web+proto",XI="application/grpc-web+json";class Hc extends B{constructor(c){super(),this.code=0,this.message="",this.details=[],je.util.initPartial(c,this)}static fromBinary(c,h){return new Hc().fromBinary(c,h)}static fromJson(c,h){return new Hc().fromJson(c,h)}static fromJsonString(c,h){return new Hc().fromJsonString(c,h)}static equals(c,h){return je.util.equals(Hc,c,h)}}Hc.runtime=je,Hc.typeName="google.rpc.Status",Hc.fields=je.util.newFieldList(()=>[{no:1,name:"code",kind:"scalar",T:5},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"details",kind:"message",T:mi,repeated:!0}]);const Dx="0";function Px(v){var c;const h=v.get(qI);if(h!=null){const E=zO(h,Hc);if(E.code==0)return;const D=new u(E.message,E.code,v);return D.details=E.details.map(U=>({type:U.typeUrl.substring(U.typeUrl.lastIndexOf("/")+1),value:U.value})),D}const b=v.get(ui);if(b!=null){if(b===Dx)return;const E=parseInt(b,10);return E in o?new u(decodeURIComponent((c=v.get(ni))!==null&&c!==void 0?c:""),E,v):new u(`invalid grpc-status: ${b}`,o.Internal,v)}}function Ba(v,c,h){const b=typeof c=="string"?c:c.typeName,E=typeof h=="string"?h:h.name;return v.toString().replace(/\/?$/,`/${b}/${E}`)}function eb(v,c){return c instanceof v?c:new v(c)}function ih(v,c){function h(b){return b.done===!0?b:{done:b.done,value:eb(v,b.value)}}return{[Symbol.asyncIterator](){const b=c[Symbol.asyncIterator](),E={next:()=>b.next().then(h)};return b.throw!==void 0&&(E.throw=D=>b.throw(D).then(h)),b.return!==void 0&&(E.return=D=>b.return(D).then(h)),E}}}function VO(v,c){var h;return(h=c==null?void 0:c.concat().reverse().reduce((b,E)=>E(b),v))!==null&&h!==void 0?h:v}function qO(v){var c;const h=Object.assign({},v);return(c=h.ignoreUnknownFields)!==null&&c!==void 0||(h.ignoreUnknownFields=!0),h}function Co(v,c,h,b){const E=c?GO(v.I,b):YO(v.I,h);return{parse:(c?GO(v.O,b):YO(v.O,h)).parse,serialize:E.serialize}}function GO(v,c){return{parse(h){try{return v.fromBinary(h,c)}catch(b){const E=b instanceof Error?b.message:String(b);throw new u(`parse binary: ${E}`,o.InvalidArgument)}},serialize(h){try{return h.toBinary(c)}catch(b){const E=b instanceof Error?b.message:String(b);throw new u(`serialize binary: ${E}`,o.Internal)}}}}function YO(v,c){var h,b;const E=(h=c==null?void 0:c.textEncoder)!==null&&h!==void 0?h:new TextEncoder,D=(b=c==null?void 0:c.textDecoder)!==null&&b!==void 0?b:new TextDecoder,U=qO(c);return{parse(Y){try{const fe=D.decode(Y);return v.fromJsonString(fe,U)}catch(fe){throw u.from(fe,o.InvalidArgument)}},serialize(Y){try{const fe=Y.toJsonString(U);return E.encode(fe)}catch(fe){throw u.from(fe,o.Internal)}}}}function Lx(v){const c=VO(v.next,v.interceptors),[h,b,E]=ZO(v),D=Object.assign(Object.assign({},v.req),{message:eb(v.req.method.I,v.req.message),signal:h});return c(D).then(U=>(E(),U),b)}function Mx(v){const c=VO(v.next,v.interceptors),[h,b,E]=ZO(v),D=Object.assign(Object.assign({},v.req),{message:ih(v.req.method.I,v.req.message),signal:h});let U=!1;return h.addEventListener("abort",function(){var Y,fe;const me=v.req.message[Symbol.asyncIterator]();U||(Y=me.throw)===null||Y===void 0||Y.call(me,this.reason).catch(()=>{}),(fe=me.return)===null||fe===void 0||fe.call(me).catch(()=>{})}),c(D).then(Y=>Object.assign(Object.assign({},Y),{message:{[Symbol.asyncIterator](){const fe=Y.message[Symbol.asyncIterator]();return{next(){return fe.next().then(me=>(me.done==!0&&(U=!0,E()),me),b)}}}}}),b)}function ZO(v){const{signal:c,cleanup:h}=QI(v.timeoutMs),b=HI(v.signal,c);return[b.signal,function(D){const U=u.from(c.aborted?J1(c):D);return b.abort(U),h(),Promise.reject(U)},function(){h(),b.abort()}]}function $x(){try{new Headers}catch{throw new Error("connect-web requires the fetch API. Are you running on an old version of Node.js? Node.js is not supported in Connect for Web - please stay tuned for Connect for Node.")}}function eo(v,c){const h=Px(v);if(h)throw c.forEach((b,E)=>{h.metadata.append(E,b)}),h}function Fx(v,c,h,b){const E=new Headers(h??{});return E.set(WI,v?ZI:XI),E.set(YI,"1"),E.set(GI,"connect-es/1.4.0"),c!==void 0&&E.set(VI,`${c}m`),E}function rl(v){switch(v){case 400:return o.Internal;case 401:return o.Unauthenticated;case 403:return o.PermissionDenied;case 404:return o.Unimplemented;case 429:return o.Unavailable;case 502:return o.Unavailable;case 503:return o.Unavailable;case 504:return o.Unavailable;default:return o.Unknown}}function Bx(v,c){var h;if(v>=200&&v<300){const b=Px(c);if(b)throw b;return{foundStatus:c.has(ui)}}throw new u(decodeURIComponent((h=c.get(ni))!==null&&h!==void 0?h:`HTTP ${v}`),rl(v),c)}var Ud=globalThis&&globalThis.__await||function(v){return this instanceof Ud?(this.v=v,this):new Ud(v)},zd=globalThis&&globalThis.__asyncGenerator||function(v,c,h){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var b=h.apply(v,c||[]),E,D=[];return E={},Y("next"),Y("throw"),Y("return",U),E[Symbol.asyncIterator]=function(){return this},E;function U(et){return function(Xt){return Promise.resolve(Xt).then(et,vt)}}function Y(et,Xt){b[et]&&(E[et]=function(_n){return new Promise(function(An,Gn){D.push([et,_n,An,Gn])>1||fe(et,_n)})},Xt&&(E[et]=Xt(E[et])))}function fe(et,Xt){try{me(b[et](Xt))}catch(_n){ft(D[0][3],_n)}}function me(et){et.value instanceof Ud?Promise.resolve(et.value.v).then(Pe,vt):ft(D[0][2],et)}function Pe(et){fe("next",et)}function vt(et){fe("throw",et)}function ft(et,Xt){et(Xt),D.shift(),D.length&&fe(D[0][0],D[0][1])}};function tb(v){var c;$x();const h=(c=v.useBinaryFormat)!==null&&c!==void 0?c:!0;return{async unary(b,E,D,U,Y,fe,me){var Pe;const{serialize:vt,parse:ft}=Co(E,h,v.jsonOptions,v.binaryOptions);return U=U===void 0?v.defaultTimeoutMs:U<=0?void 0:U,await Lx({interceptors:v.interceptors,signal:D,timeoutMs:U,req:{stream:!1,service:b,method:E,url:Ba(v.baseUrl,b,E),init:{method:"POST",credentials:(Pe=v.credentials)!==null&&Pe!==void 0?Pe:"same-origin",redirect:"error",mode:"cors"},header:Fx(h,U,Y),contextValues:me??Ix(),message:fe},next:async et=>{var Xt;const An=await((Xt=v.fetch)!==null&&Xt!==void 0?Xt:globalThis.fetch)(et.url,Object.assign(Object.assign({},et.init),{headers:et.header,signal:et.signal,body:K1(0,vt(et.message))}));if(Bx(An.status,An.headers),!An.body)throw"missing response body";const Gn=jO(An.body).getReader();let ci,gr;for(;;){const Wr=await Gn.read();if(Wr.done)break;const{flags:zr,data:gi}=Wr.value;if(zr===WO){if(ci!==void 0)throw"extra trailer";ci=Nx(gi);continue}if(gr!==void 0)throw"extra message";gr=ft(gi)}if(ci===void 0)throw"missing trailer";if(eo(ci,An.headers),gr===void 0)throw"missing message";return{stream:!1,service:b,method:E,header:An.headers,message:gr,trailer:ci}}})},async stream(b,E,D,U,Y,fe,me){var Pe;const{serialize:vt,parse:ft}=Co(E,h,v.jsonOptions,v.binaryOptions);function et(_n,An,Gn,ci){return zd(this,arguments,function*(){const Wr=jO(_n).getReader();if(An){if(!(yield Ud(Wr.read())).done)throw"extra data for trailers-only";return yield Ud(void 0)}let zr=!1;for(;;){const gi=yield Ud(Wr.read());if(gi.done)break;const{flags:gs,data:Po}=gi.value;if((gs&WO)===WO){if(zr)throw"extra trailer";zr=!0;const fg=Nx(Po);eo(fg,ci),fg.forEach((Ik,P6)=>Gn.set(P6,Ik));continue}if(zr)throw"extra message";yield yield Ud(ft(Po))}if(!zr)throw"missing trailer"})}async function Xt(_n){if(E.kind!=ha.ServerStreaming)throw"The fetch API does not support streaming request bodies";const An=await _n[Symbol.asyncIterator]().next();if(An.done==!0)throw"missing request message";return K1(0,vt(An.value))}return U=U===void 0?v.defaultTimeoutMs:U<=0?void 0:U,Mx({interceptors:v.interceptors,signal:D,timeoutMs:U,req:{stream:!0,service:b,method:E,url:Ba(v.baseUrl,b,E),init:{method:"POST",credentials:(Pe=v.credentials)!==null&&Pe!==void 0?Pe:"same-origin",redirect:"error",mode:"cors"},header:Fx(h,U,Y),contextValues:me??Ix(),message:fe},next:async _n=>{var An;const ci=await((An=v.fetch)!==null&&An!==void 0?An:globalThis.fetch)(_n.url,Object.assign(Object.assign({},_n.init),{headers:_n.header,signal:_n.signal,body:await Xt(_n.message)})),{foundStatus:gr}=Bx(ci.status,ci.headers);if(!ci.body)throw"missing response body";const Wr=new Headers;return Object.assign(Object.assign({},_n),{header:ci.headers,trailer:Wr,message:et(ci.body,gr,Wr,ci.headers)})}})}}}const Vn=je.makeEnum("yorkie.v1.ValueType",[{no:0,name:"VALUE_TYPE_NULL",localName:"NULL"},{no:1,name:"VALUE_TYPE_BOOLEAN",localName:"BOOLEAN"},{no:2,name:"VALUE_TYPE_INTEGER",localName:"INTEGER"},{no:3,name:"VALUE_TYPE_LONG",localName:"LONG"},{no:4,name:"VALUE_TYPE_DOUBLE",localName:"DOUBLE"},{no:5,name:"VALUE_TYPE_STRING",localName:"STRING"},{no:6,name:"VALUE_TYPE_BYTES",localName:"BYTES"},{no:7,name:"VALUE_TYPE_DATE",localName:"DATE"},{no:8,name:"VALUE_TYPE_JSON_OBJECT",localName:"JSON_OBJECT"},{no:9,name:"VALUE_TYPE_JSON_ARRAY",localName:"JSON_ARRAY"},{no:10,name:"VALUE_TYPE_TEXT",localName:"TEXT"},{no:11,name:"VALUE_TYPE_INTEGER_CNT",localName:"INTEGER_CNT"},{no:12,name:"VALUE_TYPE_LONG_CNT",localName:"LONG_CNT"},{no:13,name:"VALUE_TYPE_TREE",localName:"TREE"}]),ri=je.makeEnum("yorkie.v1.DocEventType",[{no:0,name:"DOC_EVENT_TYPE_DOCUMENT_CHANGED",localName:"DOCUMENT_CHANGED"},{no:1,name:"DOC_EVENT_TYPE_DOCUMENT_WATCHED",localName:"DOCUMENT_WATCHED"},{no:2,name:"DOC_EVENT_TYPE_DOCUMENT_UNWATCHED",localName:"DOCUMENT_UNWATCHED"},{no:3,name:"DOC_EVENT_TYPE_DOCUMENT_BROADCAST",localName:"DOCUMENT_BROADCAST"}]),jd=je.makeMessageType("yorkie.v1.Snapshot",()=>[{no:1,name:"root",kind:"message",T:il},{no:2,name:"presences",kind:"map",K:9,V:{kind:"message",T:lb}}]),zl=je.makeMessageType("yorkie.v1.ChangePack",()=>[{no:1,name:"document_key",kind:"scalar",T:9},{no:2,name:"checkpoint",kind:"message",T:Qc},{no:3,name:"snapshot",kind:"scalar",T:12},{no:4,name:"changes",kind:"message",T:Ux,repeated:!0},{no:5,name:"min_synced_ticket",kind:"message",T:wn},{no:6,name:"is_removed",kind:"scalar",T:8}]),Ux=je.makeMessageType("yorkie.v1.Change",()=>[{no:1,name:"id",kind:"message",T:Cp},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"operations",kind:"message",T:XO,repeated:!0},{no:4,name:"presence_change",kind:"message",T:iS}]),Cp=je.makeMessageType("yorkie.v1.ChangeID",()=>[{no:1,name:"client_seq",kind:"scalar",T:13},{no:2,name:"server_seq",kind:"scalar",T:3,L:1},{no:3,name:"lamport",kind:"scalar",T:3,L:1},{no:4,name:"actor_id",kind:"scalar",T:12}]),XO=je.makeMessageType("yorkie.v1.Operation",()=>[{no:1,name:"set",kind:"message",T:zx,oneof:"body"},{no:2,name:"add",kind:"message",T:jx,oneof:"body"},{no:3,name:"move",kind:"message",T:KO,oneof:"body"},{no:4,name:"remove",kind:"message",T:_m,oneof:"body"},{no:5,name:"edit",kind:"message",T:ah,oneof:"body"},{no:6,name:"select",kind:"message",T:KI,oneof:"body"},{no:7,name:"style",kind:"message",T:JO,oneof:"body"},{no:8,name:"increase",kind:"message",T:eS,oneof:"body"},{no:9,name:"tree_edit",kind:"message",T:nb,oneof:"body"},{no:10,name:"tree_style",kind:"message",T:rb,oneof:"body"}]),zx=je.makeMessageType("yorkie.v1.Operation.Set",()=>[{no:1,name:"parent_created_at",kind:"message",T:wn},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"value",kind:"message",T:Uu},{no:4,name:"executed_at",kind:"message",T:wn}],{localName:"Operation_Set"}),jx=je.makeMessageType("yorkie.v1.Operation.Add",()=>[{no:1,name:"parent_created_at",kind:"message",T:wn},{no:2,name:"prev_created_at",kind:"message",T:wn},{no:3,name:"value",kind:"message",T:Uu},{no:4,name:"executed_at",kind:"message",T:wn}],{localName:"Operation_Add"}),KO=je.makeMessageType("yorkie.v1.Operation.Move",()=>[{no:1,name:"parent_created_at",kind:"message",T:wn},{no:2,name:"prev_created_at",kind:"message",T:wn},{no:3,name:"created_at",kind:"message",T:wn},{no:4,name:"executed_at",kind:"message",T:wn}],{localName:"Operation_Move"}),_m=je.makeMessageType("yorkie.v1.Operation.Remove",()=>[{no:1,name:"parent_created_at",kind:"message",T:wn},{no:2,name:"created_at",kind:"message",T:wn},{no:3,name:"executed_at",kind:"message",T:wn}],{localName:"Operation_Remove"}),ah=je.makeMessageType("yorkie.v1.Operation.Edit",()=>[{no:1,name:"parent_created_at",kind:"message",T:wn},{no:2,name:"from",kind:"message",T:ju},{no:3,name:"to",kind:"message",T:ju},{no:4,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:wn}},{no:5,name:"content",kind:"scalar",T:9},{no:6,name:"executed_at",kind:"message",T:wn},{no:7,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}}],{localName:"Operation_Edit"}),KI=je.makeMessageType("yorkie.v1.Operation.Select",()=>[{no:1,name:"parent_created_at",kind:"message",T:wn},{no:2,name:"from",kind:"message",T:ju},{no:3,name:"to",kind:"message",T:ju},{no:4,name:"executed_at",kind:"message",T:wn}],{localName:"Operation_Select"}),JO=je.makeMessageType("yorkie.v1.Operation.Style",()=>[{no:1,name:"parent_created_at",kind:"message",T:wn},{no:2,name:"from",kind:"message",T:ju},{no:3,name:"to",kind:"message",T:ju},{no:4,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:5,name:"executed_at",kind:"message",T:wn},{no:6,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:wn}}],{localName:"Operation_Style"}),eS=je.makeMessageType("yorkie.v1.Operation.Increase",()=>[{no:1,name:"parent_created_at",kind:"message",T:wn},{no:2,name:"value",kind:"message",T:Uu},{no:3,name:"executed_at",kind:"message",T:wn}],{localName:"Operation_Increase"}),nb=je.makeMessageType("yorkie.v1.Operation.TreeEdit",()=>[{no:1,name:"parent_created_at",kind:"message",T:wn},{no:2,name:"from",kind:"message",T:zu},{no:3,name:"to",kind:"message",T:zu},{no:4,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:wn}},{no:5,name:"contents",kind:"message",T:Wx,repeated:!0},{no:7,name:"split_level",kind:"scalar",T:5},{no:6,name:"executed_at",kind:"message",T:wn}],{localName:"Operation_TreeEdit"}),rb=je.makeMessageType("yorkie.v1.Operation.TreeStyle",()=>[{no:1,name:"parent_created_at",kind:"message",T:wn},{no:2,name:"from",kind:"message",T:zu},{no:3,name:"to",kind:"message",T:zu},{no:4,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:5,name:"executed_at",kind:"message",T:wn},{no:6,name:"attributes_to_remove",kind:"scalar",T:9,repeated:!0},{no:7,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:wn}}],{localName:"Operation_TreeStyle"}),Uu=je.makeMessageType("yorkie.v1.JSONElementSimple",()=>[{no:1,name:"created_at",kind:"message",T:wn},{no:2,name:"moved_at",kind:"message",T:wn},{no:3,name:"removed_at",kind:"message",T:wn},{no:4,name:"type",kind:"enum",T:je.getEnumType(Vn)},{no:5,name:"value",kind:"scalar",T:12}]),il=je.makeMessageType("yorkie.v1.JSONElement",()=>[{no:1,name:"json_object",kind:"message",T:ib,oneof:"body"},{no:2,name:"json_array",kind:"message",T:ab,oneof:"body"},{no:3,name:"primitive",kind:"message",T:Hx,oneof:"body"},{no:5,name:"text",kind:"message",T:tS,oneof:"body"},{no:6,name:"counter",kind:"message",T:to,oneof:"body"},{no:7,name:"tree",kind:"message",T:sb,oneof:"body"}]),ib=je.makeMessageType("yorkie.v1.JSONElement.JSONObject",()=>[{no:1,name:"nodes",kind:"message",T:Rp,repeated:!0},{no:2,name:"created_at",kind:"message",T:wn},{no:3,name:"moved_at",kind:"message",T:wn},{no:4,name:"removed_at",kind:"message",T:wn}],{localName:"JSONElement_JSONObject"}),ab=je.makeMessageType("yorkie.v1.JSONElement.JSONArray",()=>[{no:1,name:"nodes",kind:"message",T:ob,repeated:!0},{no:2,name:"created_at",kind:"message",T:wn},{no:3,name:"moved_at",kind:"message",T:wn},{no:4,name:"removed_at",kind:"message",T:wn}],{localName:"JSONElement_JSONArray"}),Hx=je.makeMessageType("yorkie.v1.JSONElement.Primitive",()=>[{no:1,name:"type",kind:"enum",T:je.getEnumType(Vn)},{no:2,name:"value",kind:"scalar",T:12},{no:3,name:"created_at",kind:"message",T:wn},{no:4,name:"moved_at",kind:"message",T:wn},{no:5,name:"removed_at",kind:"message",T:wn}],{localName:"JSONElement_Primitive"}),tS=je.makeMessageType("yorkie.v1.JSONElement.Text",()=>[{no:1,name:"nodes",kind:"message",T:Qx,repeated:!0},{no:2,name:"created_at",kind:"message",T:wn},{no:3,name:"moved_at",kind:"message",T:wn},{no:4,name:"removed_at",kind:"message",T:wn}],{localName:"JSONElement_Text"}),to=je.makeMessageType("yorkie.v1.JSONElement.Counter",()=>[{no:1,name:"type",kind:"enum",T:je.getEnumType(Vn)},{no:2,name:"value",kind:"scalar",T:12},{no:3,name:"created_at",kind:"message",T:wn},{no:4,name:"moved_at",kind:"message",T:wn},{no:5,name:"removed_at",kind:"message",T:wn}],{localName:"JSONElement_Counter"}),sb=je.makeMessageType("yorkie.v1.JSONElement.Tree",()=>[{no:1,name:"nodes",kind:"message",T:rS,repeated:!0},{no:2,name:"created_at",kind:"message",T:wn},{no:3,name:"moved_at",kind:"message",T:wn},{no:4,name:"removed_at",kind:"message",T:wn}],{localName:"JSONElement_Tree"}),Rp=je.makeMessageType("yorkie.v1.RHTNode",()=>[{no:1,name:"key",kind:"scalar",T:9},{no:2,name:"element",kind:"message",T:il}]),ob=je.makeMessageType("yorkie.v1.RGANode",()=>[{no:1,name:"next",kind:"message",T:ob},{no:2,name:"element",kind:"message",T:il}]),Cm=je.makeMessageType("yorkie.v1.NodeAttr",()=>[{no:1,name:"value",kind:"scalar",T:9},{no:2,name:"updated_at",kind:"message",T:wn},{no:3,name:"is_removed",kind:"scalar",T:8}]),Qx=je.makeMessageType("yorkie.v1.TextNode",()=>[{no:1,name:"id",kind:"message",T:nS},{no:2,name:"value",kind:"scalar",T:9},{no:3,name:"removed_at",kind:"message",T:wn},{no:4,name:"ins_prev_id",kind:"message",T:nS},{no:5,name:"attributes",kind:"map",K:9,V:{kind:"message",T:Cm}}]),nS=je.makeMessageType("yorkie.v1.TextNodeID",()=>[{no:1,name:"created_at",kind:"message",T:wn},{no:2,name:"offset",kind:"scalar",T:5}]),rS=je.makeMessageType("yorkie.v1.TreeNode",()=>[{no:1,name:"id",kind:"message",T:Ip},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"value",kind:"scalar",T:9},{no:4,name:"removed_at",kind:"message",T:wn},{no:5,name:"ins_prev_id",kind:"message",T:Ip},{no:6,name:"ins_next_id",kind:"message",T:Ip},{no:7,name:"depth",kind:"scalar",T:5},{no:8,name:"attributes",kind:"map",K:9,V:{kind:"message",T:Cm}}]),Wx=je.makeMessageType("yorkie.v1.TreeNodes",()=>[{no:1,name:"content",kind:"message",T:rS,repeated:!0}]),Ip=je.makeMessageType("yorkie.v1.TreeNodeID",()=>[{no:1,name:"created_at",kind:"message",T:wn},{no:2,name:"offset",kind:"scalar",T:5}]),zu=je.makeMessageType("yorkie.v1.TreePos",()=>[{no:1,name:"parent_id",kind:"message",T:Ip},{no:2,name:"left_sibling_id",kind:"message",T:Ip}]);je.makeMessageType("yorkie.v1.User",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"username",kind:"scalar",T:9},{no:3,name:"created_at",kind:"message",T:En}]),je.makeMessageType("yorkie.v1.Project",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"public_key",kind:"scalar",T:9},{no:4,name:"secret_key",kind:"scalar",T:9},{no:5,name:"auth_webhook_url",kind:"scalar",T:9},{no:6,name:"auth_webhook_methods",kind:"scalar",T:9,repeated:!0},{no:7,name:"client_deactivate_threshold",kind:"scalar",T:9},{no:8,name:"created_at",kind:"message",T:En},{no:9,name:"updated_at",kind:"message",T:En}]),je.makeMessageType("yorkie.v1.UpdatableProjectFields",()=>[{no:1,name:"name",kind:"message",T:Js},{no:2,name:"auth_webhook_url",kind:"message",T:Js},{no:3,name:"auth_webhook_methods",kind:"message",T:JI},{no:4,name:"client_deactivate_threshold",kind:"message",T:Js}]);const JI=je.makeMessageType("yorkie.v1.UpdatableProjectFields.AuthWebhookMethods",()=>[{no:1,name:"methods",kind:"scalar",T:9,repeated:!0}],{localName:"UpdatableProjectFields_AuthWebhookMethods"});je.makeMessageType("yorkie.v1.DocumentSummary",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"snapshot",kind:"scalar",T:9},{no:4,name:"created_at",kind:"message",T:En},{no:5,name:"accessed_at",kind:"message",T:En},{no:6,name:"updated_at",kind:"message",T:En}]);const iS=je.makeMessageType("yorkie.v1.PresenceChange",()=>[{no:1,name:"type",kind:"enum",T:je.getEnumType(sh)},{no:2,name:"presence",kind:"message",T:lb}]),sh=je.makeEnum("yorkie.v1.PresenceChange.ChangeType",[{no:0,name:"CHANGE_TYPE_UNSPECIFIED",localName:"UNSPECIFIED"},{no:1,name:"CHANGE_TYPE_PUT",localName:"PUT"},{no:2,name:"CHANGE_TYPE_DELETE",localName:"DELETE"},{no:3,name:"CHANGE_TYPE_CLEAR",localName:"CLEAR"}]),lb=je.makeMessageType("yorkie.v1.Presence",()=>[{no:1,name:"data",kind:"map",K:9,V:{kind:"scalar",T:9}}]),Qc=je.makeMessageType("yorkie.v1.Checkpoint",()=>[{no:1,name:"server_seq",kind:"scalar",T:3,L:1},{no:2,name:"client_seq",kind:"scalar",T:13}]),ju=je.makeMessageType("yorkie.v1.TextNodePos",()=>[{no:1,name:"created_at",kind:"message",T:wn},{no:2,name:"offset",kind:"scalar",T:5},{no:3,name:"relative_offset",kind:"scalar",T:5}]),wn=je.makeMessageType("yorkie.v1.TimeTicket",()=>[{no:1,name:"lamport",kind:"scalar",T:3,L:1},{no:2,name:"delimiter",kind:"scalar",T:13},{no:3,name:"actor_id",kind:"scalar",T:12}]),e6=je.makeMessageType("yorkie.v1.DocEventBody",()=>[{no:1,name:"topic",kind:"scalar",T:9},{no:2,name:"payload",kind:"scalar",T:12}]),t6=je.makeMessageType("yorkie.v1.DocEvent",()=>[{no:1,name:"type",kind:"enum",T:je.getEnumType(ri)},{no:2,name:"publisher",kind:"scalar",T:9},{no:3,name:"body",kind:"message",T:e6}]),Np=je.makeMessageType("yorkie.v1.ActivateClientRequest",()=>[{no:1,name:"client_key",kind:"scalar",T:9}]),jl=je.makeMessageType("yorkie.v1.ActivateClientResponse",()=>[{no:1,name:"client_id",kind:"scalar",T:9}]),Vx=je.makeMessageType("yorkie.v1.DeactivateClientRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9}]),n6=je.makeMessageType("yorkie.v1.DeactivateClientResponse",[]),r6=je.makeMessageType("yorkie.v1.AttachDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"change_pack",kind:"message",T:zl}]),i6=je.makeMessageType("yorkie.v1.AttachDocumentResponse",()=>[{no:1,name:"document_id",kind:"scalar",T:9},{no:2,name:"change_pack",kind:"message",T:zl}]),a6=je.makeMessageType("yorkie.v1.DetachDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"change_pack",kind:"message",T:zl},{no:4,name:"remove_if_not_attached",kind:"scalar",T:8}]),s6=je.makeMessageType("yorkie.v1.DetachDocumentResponse",()=>[{no:2,name:"change_pack",kind:"message",T:zl}]),Dp=je.makeMessageType("yorkie.v1.WatchDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9}]),Me=je.makeMessageType("yorkie.v1.WatchDocumentResponse",()=>[{no:1,name:"initialization",kind:"message",T:ot,oneof:"body"},{no:2,name:"event",kind:"message",T:t6,oneof:"body"}]),ot=je.makeMessageType("yorkie.v1.WatchDocumentResponse.Initialization",()=>[{no:1,name:"client_ids",kind:"scalar",T:9,repeated:!0}],{localName:"WatchDocumentResponse_Initialization"}),Ge=je.makeMessageType("yorkie.v1.RemoveDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"change_pack",kind:"message",T:zl}]),an=je.makeMessageType("yorkie.v1.RemoveDocumentResponse",()=>[{no:1,name:"change_pack",kind:"message",T:zl}]),Hn=je.makeMessageType("yorkie.v1.PushPullChangesRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"change_pack",kind:"message",T:zl},{no:4,name:"push_only",kind:"scalar",T:8}]),$r=je.makeMessageType("yorkie.v1.PushPullChangesResponse",()=>[{no:1,name:"change_pack",kind:"message",T:zl}]),xa=je.makeMessageType("yorkie.v1.BroadcastRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"topic",kind:"scalar",T:9},{no:4,name:"payload",kind:"scalar",T:12}]),ii=je.makeMessageType("yorkie.v1.BroadcastResponse",[]),aS={typeName:"yorkie.v1.YorkieService",methods:{activateClient:{name:"ActivateClient",I:Np,O:jl,kind:ha.Unary},deactivateClient:{name:"DeactivateClient",I:Vx,O:n6,kind:ha.Unary},attachDocument:{name:"AttachDocument",I:r6,O:i6,kind:ha.Unary},detachDocument:{name:"DetachDocument",I:a6,O:s6,kind:ha.Unary},removeDocument:{name:"RemoveDocument",I:Ge,O:an,kind:ha.Unary},pushPullChanges:{name:"PushPullChanges",I:Hn,O:$r,kind:ha.Unary},watchDocument:{name:"WatchDocument",I:Dp,O:Me,kind:ha.ServerStreaming},broadcast:{name:"Broadcast",I:xa,O:ii,kind:ha.Unary}}};/** - * @license - * Copyright 2009 The Closure Library Authors - * Copyright 2020 Daniel Wirtz / The long.js Authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */var al=null;try{al=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function kn(v,c,h){this.low=v|0,this.high=c|0,this.unsigned=!!h}kn.prototype.__isLong__,Object.defineProperty(kn.prototype,"__isLong__",{value:!0});function ka(v){return(v&&v.__isLong__)===!0}function qx(v){var c=Math.clz32(v&-v);return v?31-c:c}kn.isLong=ka;var oh={},Rm={};function Hu(v,c){var h,b,E;return c?(v>>>=0,(E=0<=v&&v<256)&&(b=Rm[v],b)?b:(h=Ir(v,0,!0),E&&(Rm[v]=h),h)):(v|=0,(E=-128<=v&&v<128)&&(b=oh[v],b)?b:(h=Ir(v,v<0?-1:0,!1),E&&(oh[v]=h),h))}kn.fromInt=Hu;function Zn(v,c){if(isNaN(v))return c?Qu:no;if(c){if(v<0)return Qu;if(v>=Vc)return Hd}else{if(v<=-Nm)return qa;if(v+1>=Nm)return Lp}return v<0?Zn(-v,c).neg():Ir(v%Wc|0,v/Wc|0,c)}kn.fromNumber=Zn;function Ir(v,c,h){return new kn(v,c,h)}kn.fromBits=Ir;var Im=Math.pow;function Pp(v,c,h){if(v.length===0)throw Error("empty string");if(typeof c=="number"?(h=c,c=!1):c=!!c,v==="NaN"||v==="Infinity"||v==="+Infinity"||v==="-Infinity")return c?Qu:no;if(h=h||10,h<2||360)throw Error("interior hyphen");if(b===0)return Pp(v.substring(1),c,h).neg();for(var E=Zn(Im(h,8)),D=no,U=0;U>>0:this.low},Dt.toNumber=function(){return this.unsigned?(this.high>>>0)*Wc+(this.low>>>0):this.high*Wc+(this.low>>>0)},Dt.toString=function(c){if(c=c||10,c<2||36>>0,Pe=me.toString(c);if(U=fe,U.isZero())return Pe+Y;for(;Pe.length<6;)Pe="0"+Pe;Y=""+Pe+Y}},Dt.getHighBits=function(){return this.high},Dt.getHighBitsUnsigned=function(){return this.high>>>0},Dt.getLowBits=function(){return this.low},Dt.getLowBitsUnsigned=function(){return this.low>>>0},Dt.getNumBitsAbs=function(){if(this.isNegative())return this.eq(qa)?64:this.neg().getNumBitsAbs();for(var c=this.high!=0?this.high:this.low,h=31;h>0&&!(c&1<=0},Dt.isOdd=function(){return(this.low&1)===1},Dt.isEven=function(){return(this.low&1)===0},Dt.equals=function(c){return ka(c)||(c=Hl(c)),this.unsigned!==c.unsigned&&this.high>>>31===1&&c.high>>>31===1?!1:this.high===c.high&&this.low===c.low},Dt.eq=Dt.equals,Dt.notEquals=function(c){return!this.eq(c)},Dt.neq=Dt.notEquals,Dt.ne=Dt.notEquals,Dt.lessThan=function(c){return this.comp(c)<0},Dt.lt=Dt.lessThan,Dt.lessThanOrEqual=function(c){return this.comp(c)<=0},Dt.lte=Dt.lessThanOrEqual,Dt.le=Dt.lessThanOrEqual,Dt.greaterThan=function(c){return this.comp(c)>0},Dt.gt=Dt.greaterThan,Dt.greaterThanOrEqual=function(c){return this.comp(c)>=0},Dt.gte=Dt.greaterThanOrEqual,Dt.ge=Dt.greaterThanOrEqual,Dt.compare=function(c){if(ka(c)||(c=Hl(c)),this.eq(c))return 0;var h=this.isNegative(),b=c.isNegative();return h&&!b?-1:!h&&b?1:this.unsigned?c.high>>>0>this.high>>>0||c.high===this.high&&c.low>>>0>this.low>>>0?-1:1:this.sub(c).isNegative()?-1:1},Dt.comp=Dt.compare,Dt.negate=function(){return!this.unsigned&&this.eq(qa)?qa:this.not().add(lh)},Dt.neg=Dt.negate,Dt.add=function(c){ka(c)||(c=Hl(c));var h=this.high>>>16,b=this.high&65535,E=this.low>>>16,D=this.low&65535,U=c.high>>>16,Y=c.high&65535,fe=c.low>>>16,me=c.low&65535,Pe=0,vt=0,ft=0,et=0;return et+=D+me,ft+=et>>>16,et&=65535,ft+=E+fe,vt+=ft>>>16,ft&=65535,vt+=b+Y,Pe+=vt>>>16,vt&=65535,Pe+=h+U,Pe&=65535,Ir(ft<<16|et,Pe<<16|vt,this.unsigned)},Dt.subtract=function(c){return ka(c)||(c=Hl(c)),this.add(c.neg())},Dt.sub=Dt.subtract,Dt.multiply=function(c){if(this.isZero())return this;if(ka(c)||(c=Hl(c)),al){var h=al.mul(this.low,this.high,c.low,c.high);return Ir(h,al.get_high(),this.unsigned)}if(c.isZero())return this.unsigned?Qu:no;if(this.eq(qa))return c.isOdd()?qa:no;if(c.eq(qa))return this.isOdd()?qa:no;if(this.isNegative())return c.isNegative()?this.neg().mul(c.neg()):this.neg().mul(c).neg();if(c.isNegative())return this.mul(c.neg()).neg();if(this.lt(sS)&&c.lt(sS))return Zn(this.toNumber()*c.toNumber(),this.unsigned);var b=this.high>>>16,E=this.high&65535,D=this.low>>>16,U=this.low&65535,Y=c.high>>>16,fe=c.high&65535,me=c.low>>>16,Pe=c.low&65535,vt=0,ft=0,et=0,Xt=0;return Xt+=U*Pe,et+=Xt>>>16,Xt&=65535,et+=D*Pe,ft+=et>>>16,et&=65535,et+=U*me,ft+=et>>>16,et&=65535,ft+=E*Pe,vt+=ft>>>16,ft&=65535,ft+=D*me,vt+=ft>>>16,ft&=65535,ft+=U*fe,vt+=ft>>>16,ft&=65535,vt+=b*Pe+E*me+D*fe+U*Y,vt&=65535,Ir(et<<16|Xt,vt<<16|ft,this.unsigned)},Dt.mul=Dt.multiply,Dt.divide=function(c){if(ka(c)||(c=Hl(c)),c.isZero())throw Error("division by zero");if(al){if(!this.unsigned&&this.high===-2147483648&&c.low===-1&&c.high===-1)return this;var h=(this.unsigned?al.div_u:al.div_s)(this.low,this.high,c.low,c.high);return Ir(h,al.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?Qu:no;var b,E,D;if(this.unsigned){if(c.unsigned||(c=c.toUnsigned()),c.gt(this))return Qu;if(c.gt(this.shru(1)))return Dm;D=Qu}else{if(this.eq(qa)){if(c.eq(lh)||c.eq(ub))return qa;if(c.eq(qa))return lh;var U=this.shr(1);return b=U.div(c).shl(1),b.eq(no)?c.isNegative()?lh:ub:(E=this.sub(c.mul(b)),D=b.add(E.div(c)),D)}else if(c.eq(qa))return this.unsigned?Qu:no;if(this.isNegative())return c.isNegative()?this.neg().div(c.neg()):this.neg().div(c).neg();if(c.isNegative())return this.div(c.neg()).neg();D=no}for(E=this;E.gte(c);){b=Math.max(1,Math.floor(E.toNumber()/c.toNumber()));for(var Y=Math.ceil(Math.log(b)/Math.LN2),fe=Y<=48?1:Im(2,Y-48),me=Zn(b),Pe=me.mul(c);Pe.isNegative()||Pe.gt(E);)b-=fe,me=Zn(b,this.unsigned),Pe=me.mul(c);me.isZero()&&(me=lh),D=D.add(me),E=E.sub(Pe)}return D},Dt.div=Dt.divide,Dt.modulo=function(c){if(ka(c)||(c=Hl(c)),al){var h=(this.unsigned?al.rem_u:al.rem_s)(this.low,this.high,c.low,c.high);return Ir(h,al.get_high(),this.unsigned)}return this.sub(this.div(c).mul(c))},Dt.mod=Dt.modulo,Dt.rem=Dt.modulo,Dt.not=function(){return Ir(~this.low,~this.high,this.unsigned)},Dt.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},Dt.clz=Dt.countLeadingZeros,Dt.countTrailingZeros=function(){return this.low?qx(this.low):qx(this.high)+32},Dt.ctz=Dt.countTrailingZeros,Dt.and=function(c){return ka(c)||(c=Hl(c)),Ir(this.low&c.low,this.high&c.high,this.unsigned)},Dt.or=function(c){return ka(c)||(c=Hl(c)),Ir(this.low|c.low,this.high|c.high,this.unsigned)},Dt.xor=function(c){return ka(c)||(c=Hl(c)),Ir(this.low^c.low,this.high^c.high,this.unsigned)},Dt.shiftLeft=function(c){return ka(c)&&(c=c.toInt()),(c&=63)===0?this:c<32?Ir(this.low<>>32-c,this.unsigned):Ir(0,this.low<>>c|this.high<<32-c,this.high>>c,this.unsigned):Ir(this.high>>c-32,this.high>=0?0:-1,this.unsigned)},Dt.shr=Dt.shiftRight,Dt.shiftRightUnsigned=function(c){return ka(c)&&(c=c.toInt()),(c&=63)===0?this:c<32?Ir(this.low>>>c|this.high<<32-c,this.high>>>c,this.unsigned):c===32?Ir(this.high,0,this.unsigned):Ir(this.high>>>c-32,0,this.unsigned)},Dt.shru=Dt.shiftRightUnsigned,Dt.shr_u=Dt.shiftRightUnsigned,Dt.rotateLeft=function(c){var h;return ka(c)&&(c=c.toInt()),(c&=63)===0?this:c===32?Ir(this.high,this.low,this.unsigned):c<32?(h=32-c,Ir(this.low<>>h,this.high<>>h,this.unsigned)):(c-=32,h=32-c,Ir(this.high<>>h,this.low<>>h,this.unsigned))},Dt.rotl=Dt.rotateLeft,Dt.rotateRight=function(c){var h;return ka(c)&&(c=c.toInt()),(c&=63)===0?this:c===32?Ir(this.high,this.low,this.unsigned):c<32?(h=32-c,Ir(this.high<>>c,this.low<>>c,this.unsigned)):(c-=32,h=32-c,Ir(this.low<>>c,this.high<>>c,this.unsigned))},Dt.rotr=Dt.rotateRight,Dt.toSigned=function(){return this.unsigned?Ir(this.low,this.high,!1):this},Dt.toUnsigned=function(){return this.unsigned?this:Ir(this.low,this.high,!0)},Dt.toBytes=function(c){return c?this.toBytesLE():this.toBytesBE()},Dt.toBytesLE=function(){var c=this.high,h=this.low;return[h&255,h>>>8&255,h>>>16&255,h>>>24,c&255,c>>>8&255,c>>>16&255,c>>>24]},Dt.toBytesBE=function(){var c=this.high,h=this.low;return[c>>>24,c>>>16&255,c>>>8&255,c&255,h>>>24,h>>>16&255,h>>>8&255,h&255]},kn.fromBytes=function(c,h,b){return b?kn.fromBytesLE(c,h):kn.fromBytesBE(c,h)},kn.fromBytesLE=function(c,h){return new kn(c[0]|c[1]<<8|c[2]<<16|c[3]<<24,c[4]|c[5]<<8|c[6]<<16|c[7]<<24,h)},kn.fromBytesBE=function(c,h){return new kn(c[4]<<24|c[5]<<16|c[6]<<8|c[7],c[0]<<24|c[1]<<16|c[2]<<8|c[3],h)};const l6=je.makeMessageType("google.rpc.ErrorInfo",()=>[{no:1,name:"reason",kind:"scalar",T:9},{no:2,name:"domain",kind:"scalar",T:9},{no:3,name:"metadata",kind:"map",K:9,V:{kind:"scalar",T:9}}]);je.makeMessageType("google.rpc.RetryInfo",()=>[{no:1,name:"retry_delay",kind:"message",T:xr}]),je.makeMessageType("google.rpc.DebugInfo",()=>[{no:1,name:"stack_entries",kind:"scalar",T:9,repeated:!0},{no:2,name:"detail",kind:"scalar",T:9}]),je.makeMessageType("google.rpc.QuotaFailure",()=>[{no:1,name:"violations",kind:"message",T:u6,repeated:!0}]);const u6=je.makeMessageType("google.rpc.QuotaFailure.Violation",()=>[{no:1,name:"subject",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9}],{localName:"QuotaFailure_Violation"});je.makeMessageType("google.rpc.PreconditionFailure",()=>[{no:1,name:"violations",kind:"message",T:cb,repeated:!0}]);const cb=je.makeMessageType("google.rpc.PreconditionFailure.Violation",()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"subject",kind:"scalar",T:9},{no:3,name:"description",kind:"scalar",T:9}],{localName:"PreconditionFailure_Violation"});je.makeMessageType("google.rpc.BadRequest",()=>[{no:1,name:"field_violations",kind:"message",T:db,repeated:!0}]);const db=je.makeMessageType("google.rpc.BadRequest.FieldViolation",()=>[{no:1,name:"field",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9}],{localName:"BadRequest_FieldViolation"});je.makeMessageType("google.rpc.RequestInfo",()=>[{no:1,name:"request_id",kind:"scalar",T:9},{no:2,name:"serving_data",kind:"scalar",T:9}]),je.makeMessageType("google.rpc.ResourceInfo",()=>[{no:1,name:"resource_type",kind:"scalar",T:9},{no:2,name:"resource_name",kind:"scalar",T:9},{no:3,name:"owner",kind:"scalar",T:9},{no:4,name:"description",kind:"scalar",T:9}]),je.makeMessageType("google.rpc.Help",()=>[{no:1,name:"links",kind:"message",T:oS,repeated:!0}]);const oS=je.makeMessageType("google.rpc.Help.Link",()=>[{no:1,name:"description",kind:"scalar",T:9},{no:2,name:"url",kind:"scalar",T:9}],{localName:"Help_Link"});je.makeMessageType("google.rpc.LocalizedMessage",()=>[{no:1,name:"locale",kind:"scalar",T:9},{no:2,name:"message",kind:"scalar",T:9}]);var mr=(v=>(v.Ok="ok",v.ErrClientNotActivated="ErrClientNotActivated",v.ErrClientNotFound="ErrClientNotFound",v.ErrUnimplemented="ErrUnimplemented",v.Unsupported="unsupported",v.ErrDocumentNotAttached="ErrDocumentNotAttached",v.ErrDocumentNotDetached="ErrDocumentNotDetached",v.ErrDocumentRemoved="ErrDocumentRemoved",v.ErrInvalidObjectKey="ErrInvalidObjectKey",v.ErrInvalidArgument="ErrInvalidArgument",v))(mr||{});class kr extends Error{constructor(c,h){super(h),s(this,"name","YorkieError"),s(this,"stack"),this.code=c,this.message=h,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}function Ql(v){if(v instanceof Map){const c=Array.from(v);return new Map(JSON.parse(JSON.stringify(c)))}return JSON.parse(JSON.stringify(v))}const Yx=v=>v?Object.entries(v).length===0:!0,Ei=v=>{const c={};for(const[h,b]of Object.entries(v))c[h]=JSON.stringify(b);return c},ra=v=>{const c={};for(const[h,b]of Object.entries(v))c[h]=JSON.parse(b);return c};var Qd=(v=>(v.Put="put",v.Clear="clear",v))(Qd||{});class lS{constructor(c,h){s(this,"context"),s(this,"presence"),this.context=c,this.presence=h}set(c,h){for(const b of Object.keys(c))this.presence[b]=c[b];this.context.setPresenceChange({type:"put",presence:Ql(this.presence)}),this.context.setReversePresence(c,h)}get(c){return this.presence[c]}clear(){this.presence={},this.context.setPresenceChange({type:"clear"})}}const Pm="000000000000000000000000",c6="FFFFFFFFFFFFFFFFFFFFFFFF";class Ga{constructor(c,h,b){s(this,"lamport"),s(this,"delimiter"),s(this,"actorID"),this.lamport=c,this.delimiter=h,this.actorID=b}static of(c,h,b){return new Ga(c,h,b)}static fromStruct(c){return Ga.of(kn.fromString(c.lamport,!0),c.delimiter,c.actorID)}toIDString(){return`${this.lamport.toString()}:${this.actorID}:${this.delimiter}`}toStruct(){return{lamport:this.getLamportAsString(),delimiter:this.getDelimiter(),actorID:this.getActorID()}}toTestString(){return`${this.lamport.toString()}:${this.actorID.slice(-2)}:${this.delimiter}`}setActor(c){return new Ga(this.lamport,this.delimiter,c)}getLamportAsString(){return this.lamport.toString()}getLamport(){return this.lamport}getDelimiter(){return this.delimiter}getActorID(){return this.actorID}after(c){return this.compare(c)>0}equals(c){return this.compare(c)===0}compare(c){if(this.lamport.greaterThan(c.lamport))return 1;if(c.lamport.greaterThan(this.lamport))return-1;const h=this.actorID.localeCompare(c.actorID);return h!==0?h:this.delimiter>c.delimiter?1:c.delimiter>this.delimiter?-1:0}}const uh=0,uS=4294967295,Mp=kn.MAX_VALUE,_s=new Ga(kn.fromNumber(0),uh,Pm);new Ga(kn.fromNumber(1),uh+1,Pm);const qc=new Ga(Mp,uS,c6);var Aa=(v=>(v[v.Trivial=0]="Trivial",v[v.Debug=1]="Debug",v[v.Info=2]="Info",v[v.Warn=3]="Warn",v[v.Error=4]="Error",v[v.Fatal=5]="Fatal",v))(Aa||{});let sl=2;function cS(v){sl=v}const Rt={trivial:(...v)=>{sl>0||typeof console<"u"&&console.log("YORKIE T:",...v)},debug:(...v)=>{sl>1||typeof console<"u"&&console.log("YORKIE D:",...v)},info:(...v)=>{sl>2||typeof console<"u"&&console.log("YORKIE I:",...v)},warn:(...v)=>{sl>3||typeof console<"u"&&(typeof console.warn<"u"?console.warn("YORKIE W:",...v):console.log("YORKIE W:",...v))},error:(...v)=>{sl>4||typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE E:",...v):console.log("YORKIE E:",...v))},fatal:(v,...c)=>{throw typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE F:",...c):console.log("YORKIE F:",...c)),new Error(`YORKIE F: ${v}`)},isEnabled:v=>sl<=v};function Wu(v){return v.replace(/["'\\\n\r\f\b\t\u2028\u2029]/g,function(c){switch(c){case'"':case"\\":return"\\"+c;case` -`:return"\\n";case"\r":return"\\r";case"\f":return"\\f";case"\b":return"\\b";case" ":return"\\t";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return c}})}class Lm{constructor(c){s(this,"createdAt"),s(this,"movedAt"),s(this,"removedAt"),this.createdAt=c}getCreatedAt(){return this.createdAt}getID(){return this.createdAt}getMovedAt(){return this.movedAt}getRemovedAt(){return this.removedAt}getPositionedAt(){return this.movedAt?this.movedAt:this.createdAt}setMovedAt(c){return!this.movedAt||c&&c.after(this.movedAt)?(this.movedAt=c,!0):!1}setRemovedAt(c){this.removedAt=c}remove(c){return c&&c.after(this.getPositionedAt())&&(!this.removedAt||c.after(this.removedAt))?(this.removedAt=c,!0):!1}isRemoved(){return!!this.removedAt}}class Wd extends Lm{constructor(c){super(c)}}class $p{constructor(c,h){s(this,"strKey"),s(this,"value"),this.strKey=c,this.value=h}static of(c,h){return new $p(c,h)}isRemoved(){return this.value.isRemoved()}getStrKey(){return this.strKey}getValue(){return this.value}remove(c){return this.value.remove(c)}}class Gc{constructor(){s(this,"nodeMapByKey"),s(this,"nodeMapByCreatedAt"),this.nodeMapByKey=new Map,this.nodeMapByCreatedAt=new Map}static create(){return new Gc}set(c,h,b){let E;const D=this.nodeMapByKey.get(c);D!=null&&!D.isRemoved()&&D.remove(b)&&(E=D.getValue());const U=$p.of(c,h);return this.nodeMapByCreatedAt.set(h.getCreatedAt().toIDString(),U),(D==null||b.after(D.getValue().getPositionedAt()))&&(this.nodeMapByKey.set(c,U),h.setMovedAt(b)),E}delete(c,h){this.nodeMapByCreatedAt.has(c.toIDString())||Rt.fatal(`fail to find ${c.toIDString()}`);const b=this.nodeMapByCreatedAt.get(c.toIDString());return b.remove(h),b.getValue()}subPathOf(c){const h=this.nodeMapByCreatedAt.get(c.toIDString());if(h)return h.getStrKey()}purge(c){const h=this.nodeMapByCreatedAt.get(c.getCreatedAt().toIDString());if(!h){Rt.fatal(`fail to find ${c.getCreatedAt().toIDString()}`);return}const b=this.nodeMapByKey.get(h.getStrKey());h===b&&this.nodeMapByKey.delete(b.getStrKey()),this.nodeMapByCreatedAt.delete(h.getValue().getCreatedAt().toIDString())}deleteByKey(c,h){const b=this.nodeMapByKey.get(c);if(b!=null&&b.remove(h))return b.getValue()}has(c){const h=this.nodeMapByKey.get(c);return h==null?!1:!h.isRemoved()}getByID(c){return this.nodeMapByCreatedAt.get(c.toIDString())}get(c){const h=this.nodeMapByKey.get(c);if(!(!h||h.isRemoved()))return h}*[Symbol.iterator](){for(const[,c]of this.nodeMapByKey)yield c}}class Cs extends Wd{constructor(c,h){super(c),s(this,"memberNodes"),this.memberNodes=h}static create(c,h){if(!h)return new Cs(c,Gc.create());const b=Gc.create();for(const[E,D]of Object.entries(h))b.set(E,D.deepcopy(),D.getCreatedAt());return new Cs(c,b)}subPathOf(c){return this.memberNodes.subPathOf(c)}purge(c){this.memberNodes.purge(c)}set(c,h,b){return this.memberNodes.set(c,h,b)}delete(c,h){return this.memberNodes.delete(c,h)}deleteByKey(c,h){return this.memberNodes.deleteByKey(c,h)}get(c){const h=this.memberNodes.get(c);return h==null?void 0:h.getValue()}getByID(c){const h=this.memberNodes.getByID(c);return h==null?void 0:h.getValue()}has(c){return this.memberNodes.has(c)}toJSON(){const c=[];for(const[h,b]of this)c.push(`"${Wu(h)}":${b.toJSON()}`);return`{${c.join(",")}}`}toJS(){return JSON.parse(this.toJSON())}toJSForTest(){const c={};for(const[h,b]of this){const{createdAt:E,value:D,type:U}=b.toJSForTest();c[h]={key:h,createdAt:E,value:D,type:U}}return{createdAt:this.getCreatedAt().toTestString(),value:c,type:"YORKIE_OBJECT"}}getKeys(){const c=Array();for(const[h]of this)c.push(h);return c}toSortedJSON(){var c;const h=Array();for(const[E]of this)h.push(E);const b=[];for(const E of h.sort()){const D=(c=this.memberNodes.get(E))==null?void 0:c.getValue();b.push(`"${Wu(E)}":${D.toSortedJSON()}`)}return`{${b.join(",")}}`}getRHT(){return this.memberNodes}deepcopy(){const c=Cs.create(this.getCreatedAt());for(const h of this.memberNodes)c.memberNodes.set(h.getStrKey(),h.getValue().deepcopy(),this.getPositionedAt());return c.remove(this.getRemovedAt()),c}getDescendants(c){for(const h of this.memberNodes){const b=h.getValue();if(c(b,this))return;b instanceof Wd&&b.getDescendants(c)}}*[Symbol.iterator](){const c=new Set;for(const h of this.memberNodes)c.has(h.getStrKey())||(c.add(h.getStrKey()),h.isRemoved()||(yield[h.getStrKey(),h.getValue()]))}}var te=(v=>(v.Local="local",v.Remote="remote",v.UndoRedo="undoredo",v))(te||{});class fs{constructor(c,h){s(this,"parentCreatedAt"),s(this,"executedAt"),this.parentCreatedAt=c,this.executedAt=h}getParentCreatedAt(){return this.parentCreatedAt}getExecutedAt(){if(!this.executedAt)throw new Error("executedAt has not been set yet");return this.executedAt}setActor(c){this.executedAt&&(this.executedAt=this.executedAt.setActor(c))}setExecutedAt(c){this.executedAt=c}}class Mm{constructor(c){s(this,"value"),s(this,"left"),s(this,"right"),s(this,"parent"),s(this,"weight"),this.value=c,this.initWeight()}getNodeString(){return`${this.weight}${this.value}`}getValue(){return this.value}getLeftWeight(){return this.hasLeft()?this.left.getWeight():0}getRightWeight(){return this.hasRight()?this.right.getWeight():0}getWeight(){return this.weight}getLeft(){return this.left}getRight(){return this.right}getParent(){return this.parent}hasLeft(){return!!this.left}hasRight(){return!!this.right}hasParent(){return!!this.parent}setLeft(c){this.left=c}setRight(c){this.right=c}setParent(c){this.parent=c}unlink(){this.parent=void 0,this.right=void 0,this.left=void 0}hasLinks(){return this.hasParent()||this.hasLeft()||this.hasRight()}increaseWeight(c){this.weight+=c}initWeight(){this.weight=this.getLength()}}class hs{constructor(c){s(this,"root"),this.root=c}get length(){return this.root?this.root.getWeight():0}find(c){if(!this.root||c<0)return[void 0,0];let h=this.root;for(;;)if(h.hasLeft()&&c<=h.getLeftWeight())h=h.getLeft();else if(h.hasRight()&&h.getLeftWeight()+h.getLength()h.getLength()&&Rt.fatal(`out of index range: pos: ${c} > node.length: ${h.getLength()}`),[h,c]}indexOf(c){if(!c||c!==this.root&&!c.hasLinks())return-1;let h=0,b=c,E;for(;b;)(!E||E===b.getRight())&&(h+=b.getLength()+(b.hasLeft()?b.getLeftWeight():0)),E=b,b=b.getParent();return h-c.getLength()}getRoot(){return this.root}insert(c){return this.insertAfter(this.root,c)}insertAfter(c,h){return c?(this.splayNode(c),this.root=h,h.setRight(c.getRight()),c.hasRight()&&c.getRight().setParent(h),h.setLeft(c),c.setParent(h),c.setRight(),this.updateWeight(c),this.updateWeight(h),h):(this.root=h,h)}updateWeight(c){c.initWeight(),c.hasLeft()&&c.increaseWeight(c.getLeftWeight()),c.hasRight()&&c.increaseWeight(c.getRightWeight())}updateTreeWeight(c){for(;c;)this.updateWeight(c),c=c.getParent()}splayNode(c){if(c)for(;;)if(this.isLeftChild(c.getParent())&&this.isRightChild(c))this.rotateLeft(c),this.rotateRight(c);else if(this.isRightChild(c.getParent())&&this.isLeftChild(c))this.rotateRight(c),this.rotateLeft(c);else if(this.isLeftChild(c.getParent())&&this.isLeftChild(c))this.rotateRight(c.getParent()),this.rotateRight(c);else if(this.isRightChild(c.getParent())&&this.isRightChild(c))this.rotateLeft(c.getParent()),this.rotateLeft(c);else{this.isLeftChild(c)?this.rotateRight(c):this.isRightChild(c)&&this.rotateLeft(c),this.updateWeight(c);return}}delete(c){this.splayNode(c);const h=new hs(c.getLeft());h.root&&h.root.setParent();const b=new hs(c.getRight());if(b.root&&b.root.setParent(),h.root){const E=h.getRightmost();h.splayNode(E),h.root.setRight(b.root),b.root&&b.root.setParent(h.root),this.root=h.root}else this.root=b.root;c.unlink(),this.root&&this.updateWeight(this.root)}deleteRange(c,h){if(!h){this.splayNode(c),this.cutOffRight(c);return}this.splayNode(c),this.splayNode(h),h.getLeft()!=c&&this.rotateRight(c),this.cutOffRight(c)}cutOffRight(c){const h=[];this.traversePostorder(c.getRight(),h);for(const b of h)b.initWeight();this.updateTreeWeight(c)}toTestString(){const c=[];return this.traverseInorder(this.root,c),c.map(h=>`[${h.getWeight()},${h.getLength()}]${h.getValue()||""}`).join("")}checkWeight(){const c=[];this.traverseInorder(this.root,c);for(const h of c)if(h.getWeight()!=h.getLength()+h.getLeftWeight()+h.getRightWeight())return!1;return!0}getRightmost(){let c=this.root;for(;c.hasRight();)c=c.getRight();return c}traverseInorder(c,h){c&&(this.traverseInorder(c.getLeft(),h),h.push(c),this.traverseInorder(c.getRight(),h))}traversePostorder(c,h){c&&(this.traversePostorder(c.getLeft(),h),this.traversePostorder(c.getRight(),h),h.push(c))}rotateLeft(c){const h=c.getParent();h.hasParent()?h===h.getParent().getLeft()?h.getParent().setLeft(c):h.getParent().setRight(c):this.root=c,c.setParent(h.getParent()),h.setRight(c.getLeft()),h.hasRight()&&h.getRight().setParent(h),c.setLeft(h),c.getLeft().setParent(c),this.updateWeight(h),this.updateWeight(c)}rotateRight(c){const h=c.getParent();h.hasParent()?h===h.getParent().getLeft()?h.getParent().setLeft(c):h.getParent().setRight(c):this.root=c,c.setParent(h.getParent()),h.setLeft(c.getRight()),h.hasLeft()&&h.getLeft().setParent(h),c.setRight(h),c.getRight().setParent(c),this.updateWeight(h),this.updateWeight(c)}isLeftChild(c){return c&&c.hasParent()?c.getParent().getLeft()===c:!1}isRightChild(c){return c&&c.hasParent()?c.getParent().getRight()===c:!1}}var Cn=(v=>(v[v.Null=0]="Null",v[v.Boolean=1]="Boolean",v[v.Integer=2]="Integer",v[v.Long=3]="Long",v[v.Double=4]="Double",v[v.String=5]="String",v[v.Bytes=6]="Bytes",v[v.Date=7]="Date",v))(Cn||{});class wi extends Lm{constructor(c,h){super(h),s(this,"valueType"),s(this,"value"),this.valueType=wi.getPrimitiveType(c),this.value=c===void 0?null:c}static of(c,h){return new wi(c,h)}static valueFromBytes(c,h){switch(c){case 0:return null;case 1:return!!h[0];case 2:return h[0]|h[1]<<8|h[2]<<16|h[3]<<24;case 4:{const b=new DataView(h.buffer);return h.forEach(function(E,D){b.setUint8(D,E)}),b.getFloat64(0,!0)}case 5:return new TextDecoder("utf-8").decode(h);case 3:return kn.fromBytesLE(Array.from(h));case 6:return h;case 7:return new Date(kn.fromBytesLE(Array.from(h),!0).toNumber());default:throw new kr(mr.ErrUnimplemented,`unimplemented type: ${c}`)}}toJSON(){return this.valueType===5?`"${Wu(this.value)}"`:`${this.value}`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:this.value,type:"YORKIE_PRIMITIVE"}}deepcopy(){const c=wi.of(this.value,this.getCreatedAt());return c.setMovedAt(this.getMovedAt()),c.setRemovedAt(this.getRemovedAt()),c}getType(){return this.valueType}static getPrimitiveType(c){switch(typeof c){case"undefined":return 0;case"boolean":return 1;case"number":return this.isInteger(c)?2:4;case"string":return 5;case"object":if(c===null)return 0;if(c instanceof kn)return 3;if(c instanceof Uint8Array)return 6;if(c instanceof Date)return 7}}static isSupport(c){return wi.getPrimitiveType(c)!==void 0}static isInteger(c){return c%1===0}isNumericType(){const c=this.valueType;return c===2||c===3||c===4}getValue(){return this.value}toBytes(){switch(this.valueType){case 0:return new Uint8Array;case 1:return this.value?new Uint8Array([1]):new Uint8Array([0]);case 2:{const c=this.value;return new Uint8Array([c&255,c>>8&255,c>>16&255,c>>24&255])}case 4:{const c=this.value,h=new Uint8Array(8);return new DataView(h.buffer).setFloat64(0,c,!0),h}case 5:return new TextEncoder().encode(this.value);case 3:{const h=this.value.toBytesLE();return Uint8Array.from(h)}case 6:return this.value;case 7:{const c=this.value,h=kn.fromNumber(c.getTime(),!0).toBytesLE();return Uint8Array.from(h)}default:throw new kr(mr.ErrUnimplemented,`unimplemented type: ${this.valueType}`)}}}class fb extends Mm{constructor(c){super(c),s(this,"prev"),s(this,"next"),this.value=c}static createAfter(c,h){const b=new fb(h),E=c.next;return c.next=b,b.prev=c,b.next=E,E&&(E.prev=b),b}remove(c){return this.value.remove(c)}getCreatedAt(){return this.value.getCreatedAt()}getPositionedAt(){return this.value.getPositionedAt()}release(){this.prev&&(this.prev.next=this.next),this.next&&(this.next.prev=this.prev),this.prev=void 0,this.next=void 0}getLength(){return this.value.isRemoved()?0:1}getPrev(){return this.prev}getNext(){return this.next}getValue(){return this.value}isRemoved(){return this.value.isRemoved()}}class $m{constructor(){s(this,"dummyHead"),s(this,"last"),s(this,"nodeMapByIndex"),s(this,"nodeMapByCreatedAt");const c=wi.of(0,_s);c.setRemovedAt(_s),this.dummyHead=new fb(c),this.last=this.dummyHead,this.nodeMapByIndex=new hs,this.nodeMapByCreatedAt=new Map,this.nodeMapByIndex.insert(this.dummyHead),this.nodeMapByCreatedAt.set(this.dummyHead.getCreatedAt().toIDString(),this.dummyHead)}static create(){return new $m}get length(){return this.nodeMapByIndex.length}findNextBeforeExecutedAt(c,h){let b=this.nodeMapByCreatedAt.get(c.toIDString());for(b||Rt.fatal(`cant find the given node: ${c.toIDString()}`);b.getNext()&&b.getNext().getPositionedAt().after(h);)b=b.getNext();return b}release(c){this.last===c&&(this.last=c.getPrev()),c.release(),this.nodeMapByIndex.delete(c),this.nodeMapByCreatedAt.delete(c.getValue().getCreatedAt().toIDString())}insertAfter(c,h,b=h.getCreatedAt()){const E=this.findNextBeforeExecutedAt(c,b),D=fb.createAfter(E,h);E===this.last&&(this.last=D),this.nodeMapByIndex.insertAfter(E,D),this.nodeMapByCreatedAt.set(D.getCreatedAt().toIDString(),D)}moveAfter(c,h,b){const E=this.nodeMapByCreatedAt.get(c.toIDString());E||Rt.fatal(`cant find the given node: ${c.toIDString()}`);const D=this.nodeMapByCreatedAt.get(h.toIDString());D||Rt.fatal(`cant find the given node: ${h.toIDString()}`),E!==D&&(!D.getValue().getMovedAt()||b.after(D.getValue().getMovedAt()))&&(this.release(D),this.insertAfter(E.getCreatedAt(),D.getValue(),b),D.getValue().setMovedAt(b))}insert(c){this.insertAfter(this.last.getCreatedAt(),c)}getByID(c){return this.nodeMapByCreatedAt.get(c.toIDString())}subPathOf(c){const h=this.nodeMapByCreatedAt.get(c.toIDString());if(h)return String(this.nodeMapByIndex.indexOf(h))}purge(c){const h=this.nodeMapByCreatedAt.get(c.getCreatedAt().toIDString());h||Rt.fatal(`fail to find the given createdAt: ${c.getCreatedAt().toIDString()}`),this.release(h)}getByIndex(c){if(c>=this.length)return;const[h,b]=this.nodeMapByIndex.find(c);let E=h;if(c===0&&h===this.dummyHead||b>0)do E&&(E=E.getNext());while(E&&E.isRemoved());return E}getPrevCreatedAt(c){let h=this.nodeMapByCreatedAt.get(c.toIDString());do h=h.getPrev();while(this.dummyHead!==h&&h.isRemoved());return h.getValue().getCreatedAt()}delete(c,h){const b=this.nodeMapByCreatedAt.get(c.toIDString()),E=b.isRemoved();return b.remove(h)&&!E&&this.nodeMapByIndex.splayNode(b),b.getValue()}deleteByIndex(c,h){const b=this.getByIndex(c);if(b)return b.remove(h)&&this.nodeMapByIndex.splayNode(b),b.getValue()}getHead(){return this.dummyHead.getValue()}getLast(){return this.last.getValue()}getLastCreatedAt(){return this.last.getCreatedAt()}toTestString(){const c=[];for(const h of this){const b=`${h.getCreatedAt().toIDString()}:${h.getValue().toJSON()}`;h.isRemoved()?c.push(`{${b}}`):c.push(`[${b}]`)}return c.join("")}*[Symbol.iterator](){let c=this.dummyHead.getNext();for(;c;)yield c,c=c.getNext()}}class _a extends Wd{constructor(c,h){super(c),s(this,"elements"),this.elements=h}static create(c,h){if(!h)return new _a(c,$m.create());const b=$m.create();for(const E of h)b.insertAfter(b.getLastCreatedAt(),E.deepcopy());return new _a(c,b)}subPathOf(c){return this.elements.subPathOf(c)}purge(c){this.elements.purge(c)}insertAfter(c,h){this.elements.insertAfter(c,h)}moveAfter(c,h,b){this.elements.moveAfter(c,h,b)}get(c){const h=this.elements.getByIndex(c);return h==null?void 0:h.getValue()}getByID(c){const h=this.elements.getByID(c);return h==null?void 0:h.getValue()}getHead(){return this.elements.getHead()}getLast(){return this.elements.getLast()}getPrevCreatedAt(c){return this.elements.getPrevCreatedAt(c)}delete(c,h){return this.elements.delete(c,h)}deleteByIndex(c,h){return this.elements.deleteByIndex(c,h)}getLastCreatedAt(){return this.elements.getLastCreatedAt()}get length(){return this.elements.length}*[Symbol.iterator](){for(const c of this.elements)c.isRemoved()||(yield c.getValue())}toTestString(){return this.elements.toTestString()}getDescendants(c){for(const h of this.elements){const b=h.getValue();if(c(b,this))return;b instanceof Wd&&b.getDescendants(c)}}toJSON(){const c=[];for(const h of this)c.push(h.toJSON());return`[${c.join(",")}]`}toJS(){return JSON.parse(this.toJSON())}toJSForTest(){const c={};for(let h=0;h({...ft,value:ft.value?{attributes:ra(ft.value.getAttributes()),content:ft.value.getContent()}:{attributes:void 0,content:""},type:"content"}));return[fe,vt,me,[Y,Y]]}setStyle(c,h,b,E){const[,D]=this.rgaTreeSplit.findNodeWithSplit(c[1],b),[,U]=this.rgaTreeSplit.findNodeWithSplit(c[0],b),Y=[],fe=this.rgaTreeSplit.findBetween(U,D),me=new Map,Pe=[];for(const ft of fe){const et=ft.getCreatedAt().getActorID(),Xt=E!=null&&E.size?E.has(et)?E.get(et):_s:qc;if(ft.canStyle(b,Xt)){const _n=me.get(et),An=ft.getCreatedAt();(!_n||An.after(_n))&&me.set(et,An),Pe.push(ft)}}const vt=[];for(const ft of Pe){if(ft.isRemoved())continue;const[et,Xt]=this.rgaTreeSplit.findIndexesFromRange(ft.createPosRange());Y.push({type:"style",actor:b.getActorID(),from:et,to:Xt,value:{attributes:ra(h)}});for(const[_n,An]of Object.entries(h)){const[Gn]=ft.getValue().setAttr(_n,An,b);Gn!==void 0&&vt.push({parent:ft.getValue(),child:Gn})}}return[me,vt,Y]}indexRangeToPosRange(c,h){const b=this.rgaTreeSplit.indexToPos(c);return c===h?[b,b]:[b,this.rgaTreeSplit.indexToPos(h)]}get length(){return this.rgaTreeSplit.length}getTreeByIndex(){return this.rgaTreeSplit.getTreeByIndex()}getTreeByID(){return this.rgaTreeSplit.getTreeByID()}toJSON(){const c=[];for(const h of this.rgaTreeSplit)h.isRemoved()||c.push(h.getValue().toJSON());return`[${c.join(",")}]`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:JSON.parse(this.toJSON()),type:"YORKIE_TEXT"}}toString(){return this.rgaTreeSplit.toString()}values(){const c=[];for(const h of this.rgaTreeSplit)if(!h.isRemoved()){const b=h.getValue();c.push({attributes:ra(b.getAttributes()),content:b.getContent()})}return c}getRGATreeSplit(){return this.rgaTreeSplit}toTestString(){return this.rgaTreeSplit.toTestString()}deepcopy(){const c=new ol(this.rgaTreeSplit.deepcopy(),this.getCreatedAt());return c.remove(this.getRemovedAt()),c}findIndexesFromRange(c){return this.rgaTreeSplit.findIndexesFromRange(c)}getGCPairs(){const c=[];for(const h of this.rgaTreeSplit){h.getRemovedAt()&&c.push({parent:this.rgaTreeSplit,child:h});for(const b of h.getValue().getGCPairs())c.push(b)}return c}}class Um extends fs{constructor(c,h,b,E,D,U,Y){super(c,Y),s(this,"fromPos"),s(this,"toPos"),s(this,"maxCreatedAtMapByActor"),s(this,"content"),s(this,"attributes"),this.fromPos=h,this.toPos=b,this.maxCreatedAtMapByActor=E,this.content=D,this.attributes=U}static create(c,h,b,E,D,U,Y){return new Um(c,h,b,E,D,U,Y)}execute(c){const h=c.findByCreatedAt(this.getParentCreatedAt());h||Rt.fatal(`fail to find ${this.getParentCreatedAt()}`),h instanceof ol||Rt.fatal("fail to execute, only Text can execute edit");const b=h,[,E,D]=b.edit([this.fromPos,this.toPos],this.content,this.getExecutedAt(),Object.fromEntries(this.attributes),this.maxCreatedAtMapByActor);for(const U of D)c.registerGCPair(U);return{opInfos:E.map(({from:U,to:Y,value:fe})=>({type:"edit",from:U,to:Y,value:fe,path:c.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const c=this.getParentCreatedAt().toTestString(),h=this.fromPos.toTestString(),b=this.toPos.toTestString(),E=this.content;return`${c}.EDIT(${h},${b},${E})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getContent(){return this.content}getAttributes(){return this.attributes||new Map}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}class zm extends fs{constructor(c,h,b,E,D,U){super(c,U),s(this,"fromPos"),s(this,"toPos"),s(this,"maxCreatedAtMapByActor"),s(this,"attributes"),this.fromPos=h,this.toPos=b,this.maxCreatedAtMapByActor=E,this.attributes=D}static create(c,h,b,E,D,U){return new zm(c,h,b,E,D,U)}execute(c){const h=c.findByCreatedAt(this.getParentCreatedAt());h||Rt.fatal(`fail to find ${this.getParentCreatedAt()}`),h instanceof ol||Rt.fatal("fail to execute, only Text can execute edit");const b=h,[,E,D]=b.setStyle([this.fromPos,this.toPos],this.attributes?Object.fromEntries(this.attributes):{},this.getExecutedAt(),this.maxCreatedAtMapByActor);for(const U of E)c.registerGCPair(U);return{opInfos:D.map(({from:U,to:Y,value:fe})=>({type:"style",from:U,to:Y,value:fe,path:c.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const c=this.getParentCreatedAt().toTestString(),h=this.fromPos.toTestString(),b=this.toPos.toTestString(),E=this.attributes;return`${c}.STYL(${h},${b},${JSON.stringify(E)})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getAttributes(){return this.attributes}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}const d6=2,Yc="root",Zc="text";function jm(v,c){let h=0;const b=v.children;for(let E=0;E0)throw new Error(`Text node cannot have children: ${this.type}`)}updateAncestorsSize(){let c=this.parent;const h=this.isRemoved?-1:1;for(;c&&(c.size+=this.paddedSize*h,!c.isRemoved);)c=c.parent}updateDescendantsSize(){let c=0;for(const h of this._children){const b=h.updateDescendantsSize();h.isRemoved||(c+=b)}return this.size+=c,this.paddedSize}get isText(){return this.type===Zc}get paddedSize(){return this.size+(this.isText?0:d6)}isAncestorOf(c){return h6(this,c)}get nextSibling(){const c=this.parent.findOffset(this),h=this.parent.children[c+1];if(h)return h}get prevSibling(){const c=this.parent.findOffset(this),h=this.parent.children[c-1];if(h)return h}splitText(c,h){if(c===0||c===this.size)return;const b=this.value.slice(0,c),E=this.value.slice(c);if(!E.length)return;this.value=b;const D=this.cloneText(c+h);return D.value=E,this.parent.insertAfterInternal(D,this),D}get children(){return this._children.filter(c=>!c.isRemoved)}get allChildren(){return[...this._children]}hasTextChild(){return this.children.length>0&&this.children.every(c=>c.isText)}append(...c){if(this.isText)throw new Error("Text node cannot have children");this._children.push(...c);for(const h of c)h.parent=this,h.updateAncestorsSize()}prepend(...c){if(this.isText)throw new Error("Text node cannot have children");this._children.unshift(...c);for(const h of c)h.parent=this}insertBefore(c,h){if(this.isText)throw new Error("Text node cannot have children");const b=this._children.indexOf(h);if(b===-1)throw new Error("child not found");this.insertAtInternal(c,b),c.updateAncestorsSize()}insertAfter(c,h){if(this.isText)throw new Error("Text node cannot have children");const b=this._children.indexOf(h);if(b===-1)throw new Error("child not found");this.insertAtInternal(c,b+1),c.updateAncestorsSize()}insertAt(c,h){if(this.isText)throw new Error("Text node cannot have children");this.insertAtInternal(c,h),c.updateAncestorsSize()}removeChild(c){if(this.isText)throw new Error("Text node cannot have children");const h=this._children.indexOf(c);if(h===-1)throw new Error("child not found");this._children.splice(h,1),c.parent=void 0}splitElement(c,h){const b=this.cloneElement(h);this.parent.insertAfterInternal(b,this),b.updateAncestorsSize();const E=this.children.slice(0,c),D=this.children.slice(c);this._children=E,b._children=D,this.size=this._children.reduce((U,Y)=>U+Y.paddedSize,0),b.size=b._children.reduce((U,Y)=>U+Y.paddedSize,0);for(const U of b._children)U.parent=b;return b}insertAfterInternal(c,h){if(this.isText)throw new Error("Text node cannot have children");const b=this._children.indexOf(h);if(b===-1)throw new Error("child not found");this.insertAtInternal(c,b+1)}insertAtInternal(c,h){if(this.isText)throw new Error("Text node cannot have children");this._children.splice(h,0,c),c.parent=this}findOffset(c){if(this.isText)throw new Error("Text node cannot have children");if(c.isRemoved){const h=this._children.indexOf(c);return this.allChildren.splice(0,h).filter(E=>!E.isRemoved).length}return this.children.indexOf(c)}findBranchOffset(c){if(this.isText)throw new Error("Text node cannot have children");let h=c;for(;h;){const b=this._children.indexOf(h);if(b!==-1)return b;h=h.parent}return-1}}function h6(v,c){if(v===c)return!1;for(;c.parent;){if(c.parent===v)return!0;c=c.parent}return!1}var pa=(v=>(v.Start="Start",v.End="End",v.Text="Text",v))(pa||{});function Gd(v,c,h,b){if(c>h)throw new Error(`from is greater than to: ${c} > ${h}`);if(c>v.size)throw new Error(`from is out of range: ${c} > ${v.size}`);if(h>v.size)throw new Error(`to is out of range: ${h} > ${v.size}`);if(c===h)return;let E=0;for(const D of v.children){if(c-D.paddedSizeD.size;(D.isText||fe)&&b([D,D.isText?"Text":"Start"],me),Gd(D,Math.max(0,U),Math.min(Y,D.size),b),me&&b([D,"End"],me)}E+=D.paddedSize}}function Zx(v,c,h=0){for(const b of v.children)Zx(b,c,h+1);c(v,h)}function hb(v,c,h=0){for(const b of v._children)hb(b,c,h+1);c(v,h)}function Ro(v,c,h=!0){if(c>v.size)throw new Error(`index is out of range: ${c} > ${v.size}`);if(v.isText)return{node:v,offset:c};let b=0,E=0;for(const D of v.children){if(h&&D.isText&&D.size>=c-E)return Ro(D,c-E,h);if(c===E)return{node:v,offset:b};if(!h&&D.paddedSize===c-E)return{node:v,offset:b+1};if(D.paddedSize>c-E)return Ro(D,c-E-1,h);E+=D.paddedSize,b+=1}return{node:v,offset:b}}function Xx(v){return v.isText||v.children.length===0?v:Xx(v.children[0])}function p6(v,c){if(v.sizev===c?0:v0)if(h.right)h.right.parent=h,h=h.right;else return h;else if(b<0)if(h.left)h.left.parent=h,h=h.left;else{let E=h.parent,D=h;for(;E&&D===E.left;)D=E,E=E.parent;return E}else return h}}lastEntry(){if(!this.root)return this.root;let c=this.root;for(;c.right;)c=c.right;return c}size(){return this.counter}isEmpty(){return this.counter===0}getInternal(c,h){for(;h;){const b=this.comparator(c,h.key);if(b===0)return h;b<0?h=h.left:b>0&&(h=h.right)}}putInternal(c,h,b){if(!b)return this.counter+=1,new b6(c,h,!0);const E=this.comparator(c,b.key);return E<0?b.left=this.putInternal(c,h,b.left):E>0?b.right=this.putInternal(c,h,b.right):b.value=h,this.isRed(b.right)&&!this.isRed(b.left)&&(b=this.rotateLeft(b)),this.isRed(b.left)&&this.isRed(b.left.left)&&(b=this.rotateRight(b)),this.isRed(b.left)&&this.isRed(b.right)&&this.flipColors(b),b}removeInternal(c,h){if(this.comparator(h,c.key)<0)!this.isRed(c.left)&&!this.isRed(c.left.left)&&(c=this.moveRedLeft(c)),c.left=this.removeInternal(c.left,h);else{if(this.isRed(c.left)&&(c=this.rotateRight(c)),this.comparator(h,c.key)===0&&!c.right){this.counter-=1;return}if(!this.isRed(c.right)&&!this.isRed(c.right.left)&&(c=this.moveRedRight(c)),this.comparator(h,c.key)===0){this.counter-=1;const b=this.min(c.right);c.value=b.value,c.key=b.key,c.right=this.removeMin(c.right)}else c.right=this.removeInternal(c.right,h)}return this.fixUp(c)}min(c){return c.left?this.min(c.left):c}removeMin(c){if(c.left)return!this.isRed(c.left)&&!this.isRed(c.left.left)&&(c=this.moveRedLeft(c)),c.left=this.removeMin(c.left),this.fixUp(c)}fixUp(c){return this.isRed(c.right)&&(c=this.rotateLeft(c)),this.isRed(c.left)&&this.isRed(c.left.left)&&(c=this.rotateRight(c)),this.isRed(c.left)&&this.isRed(c.right)&&this.flipColors(c),c}moveRedLeft(c){return this.flipColors(c),this.isRed(c.right.left)&&(c.right=this.rotateRight(c.right),c=this.rotateLeft(c),this.flipColors(c)),c}moveRedRight(c){return this.flipColors(c),this.isRed(c.left.left)&&(c=this.rotateRight(c),this.flipColors(c)),c}isRed(c){return c&&c.isRed}rotateLeft(c){const h=c.right;return c.right=h.left,h.left=c,h.isRed=h.left.isRed,h.left.isRed=!0,h}rotateRight(c){const h=c.left;return c.left=h.right,h.right=c,h.isRed=h.right.isRed,h.right.isRed=!0,h}flipColors(c){c.isRed=!c.isRed,c.left.isRed=!c.left.isRed,c.right.isRed=!c.right.isRed}}class Wl{constructor(c,h){s(this,"parentID"),s(this,"leftSiblingID"),this.parentID=c,this.leftSiblingID=h}static of(c,h){return new Wl(c,h)}static fromTreePos(c){const{offset:h}=c;let{node:b}=c,E;return b.isText?(b.parent.children[0]===b&&h===0?E=b.parent:E=b,b=b.parent):h===0?E=b:E=b.children[h-1],Wl.of(b.id,Za.of(E.getCreatedAt(),E.getOffset()+h))}getParentID(){return this.parentID}static fromStruct(c){return Wl.of(Za.of(Ga.fromStruct(c.parentID.createdAt),c.parentID.offset),Za.of(Ga.fromStruct(c.leftSiblingID.createdAt),c.leftSiblingID.offset))}toStruct(){return{parentID:{createdAt:this.getParentID().getCreatedAt().toStruct(),offset:this.getParentID().getOffset()},leftSiblingID:{createdAt:this.getLeftSiblingID().getCreatedAt().toStruct(),offset:this.getLeftSiblingID().getOffset()}}}toTreeNodePair(c){const h=this.getParentID(),b=this.getLeftSiblingID(),E=c.findFloorNode(h);let D=c.findFloorNode(b);if(!E||!D)throw new Error(`cannot find node of CRDTTreePos(${h.toTestString()}, ${b.toTestString()})`);return!b.equals(h)&&b.getOffset()>0&&b.getOffset()===D.id.getOffset()&&D.insPrevID&&(D=c.findFloorNode(D.insPrevID)),[E,D]}getLeftSiblingID(){return this.leftSiblingID}equals(c){return this.getParentID().getCreatedAt().equals(c.getParentID().getCreatedAt())&&this.getParentID().getOffset()===c.getParentID().getOffset()&&this.getLeftSiblingID().getCreatedAt().equals(c.getLeftSiblingID().getCreatedAt())&&this.getLeftSiblingID().getOffset()===c.getLeftSiblingID().getOffset()}}class Za{constructor(c,h){s(this,"createdAt"),s(this,"offset"),this.createdAt=c,this.offset=h}static of(c,h){return new Za(c,h)}static fromStruct(c){return Za.of(Ga.fromStruct(c.createdAt),c.offset)}static createComparator(){return(c,h)=>{const b=c.getCreatedAt().compare(h.getCreatedAt());return b!==0?b:c.getOffset()>h.getOffset()?1:c.getOffset(){const E=b.deepcopy();return E.parent=h,E}),h.insPrevID=this.insPrevID,h.insNextID=this.insNextID,h}get value(){if(!this.isText)throw new Error(`cannot get value of element node: ${this.type}`);return this._value}set value(c){if(!this.isText)throw new Error(`cannot set value of element node: ${this.type}`);this._value=c,this.size=c.length}get isRemoved(){return!!this.removedAt}remove(c){const h=!this.removedAt;(!this.removedAt||this.removedAt.compare(c)>0)&&(this.removedAt=c),h&&this.updateAncestorsSize()}cloneText(c){return new Rs(Za.of(this.id.getCreatedAt(),c),this.type,void 0,void 0,this.removedAt)}cloneElement(c){return new Rs(Za.of(c(),0),this.type,void 0,void 0,this.removedAt)}split(c,h,b){const E=this.isText?this.splitText(h,this.id.getOffset()):this.splitElement(h,b);if(E){if(E.insPrevID=this.id,this.insNextID){const D=c.findFloorNode(this.insNextID);D.insPrevID=E.id,E.insNextID=this.insNextID}this.insNextID=E.id,c.registerNode(E)}return E}getCreatedAt(){return this.id.getCreatedAt()}getOffset(){return this.id.getOffset()}canDelete(c,h){return!this.getCreatedAt().after(h)&&(!this.removedAt||c.after(this.removedAt))}canStyle(c,h){return this.isText?!1:!this.getCreatedAt().after(h)&&(!this.removedAt||c.after(this.removedAt))}setAttrs(c,h){this.attrs||(this.attrs=new Ya);const b=new Array;for(const[E,D]of Object.entries(c))b.push(this.attrs.set(E,D,h));return b}purge(c){this.attrs&&this.attrs.purge(c)}getGCPairs(){const c=[];if(!this.attrs)return c;for(const h of this.attrs)h.getRemovedAt()&&c.push({parent:this,child:h});return c}}function fh(v){var c;if(v.isText){const b=v;return{type:b.type,value:b.value}}const h={type:v.type,children:v.children.map(fh)};return v.attrs&&(h.attributes=ra((c=v.attrs)==null?void 0:c.toObject())),h}function Fp(v){if(v.isText)return v.value;let c="";return v.attrs&&v.attrs.size()&&(c=" "+Array.from(v.attrs).filter(h=>!h.isRemoved()).sort((h,b)=>h.getKey().localeCompare(b.getKey())).map(h=>{const b=JSON.parse(h.getValue());return typeof b=="string"?`${h.getKey()}="${b}"`:`${h.getKey()}="${Wu(h.getValue())}"`}).join(" ")),`<${v.type}${c}>${v.children.map(h=>Fp(h)).join("")}`}function Jx(v){if(v.isText){const c=v;return{type:c.type,value:c.value,size:c.size,isRemoved:c.isRemoved}}return{type:v.type,children:v.children.map(Jx),size:v.size,isRemoved:v.isRemoved}}class Io extends Lm{constructor(c,h){super(h),s(this,"indexTree"),s(this,"nodeMapByID"),this.indexTree=new m6(c),this.nodeMapByID=new dS(Za.createComparator()),this.indexTree.traverseAll(b=>{this.nodeMapByID.put(b.id,b)})}static create(c,h){return new Io(c,h)}findFloorNode(c){const h=this.nodeMapByID.floorEntry(c);if(!(!h||!h.key.getCreatedAt().equals(c.getCreatedAt())))return h.value}registerNode(c){this.nodeMapByID.put(c.id,c)}findNodesAndSplitText(c,h){const[b,E]=c.toTreeNodePair(this);let D=E;const U=b===D,Y=D.parent&&!U?D.parent:b;if(D.isText&&D.split(this,c.getLeftSiblingID().getOffset()-D.id.getOffset()),h){const fe=Y.allChildren,me=U?0:fe.indexOf(D)+1;for(let Pe=me;Pe{const Xt=et.getCreatedAt().getActorID(),_n=E?E.has(Xt)?E.get(Xt):_s:qc;if(et.canStyle(b,_n)&&h){const An=vt.get(Xt),Gn=et.getCreatedAt();(!An||Gn.after(An))&&vt.set(Xt,Gn);const ci=et.setAttrs(h,b),gr=ci.reduce((gi,[,gs])=>(gs&&(gi[gs.getKey()]=Pe[gs.getKey()]),gi),{}),Wr=et.parent,zr=et.prevSibling||et.parent;Object.keys(gr).length>0&&me.push({type:"style",from:this.toIndex(Wr,zr),to:this.toIndex(et,et),fromPath:this.toPath(Wr,zr),toPath:this.toPath(et,et),actor:b.getActorID(),value:gr});for(const[gi]of ci)gi&&ft.push({parent:et,child:gi})}}),[vt,ft,me]}removeStyle(c,h,b,E){const[D,U]=this.findNodesAndSplitText(c[0],b),[Y,fe]=this.findNodesAndSplitText(c[1],b),me=[],Pe=new Map,vt=[];return this.traverseInPosRange(D,U,Y,fe,([ft])=>{const et=ft.getCreatedAt().getActorID(),Xt=E?E.has(et)?E.get(et):_s:qc;if(ft.canStyle(b,Xt)&&h){const _n=Pe.get(et),An=ft.getCreatedAt();(!_n||An.after(_n))&&Pe.set(et,An),ft.attrs||(ft.attrs=new Ya);for(const gr of h){const Wr=ft.attrs.remove(gr,b);for(const zr of Wr)vt.push({parent:ft,child:zr})}const Gn=ft.parent,ci=ft.prevSibling||ft.parent;me.push({actor:b.getActorID(),type:"removeStyle",from:this.toIndex(Gn,ci),to:this.toIndex(ft,ft),fromPath:this.toPath(Gn,ci),toPath:this.toPath(ft,ft),value:h})}}),[Pe,vt,me]}edit(c,h,b,E,D,U){const[Y,fe]=this.findNodesAndSplitText(c[0],E),[me,Pe]=this.findNodesAndSplitText(c[1],E),vt=this.toIndex(Y,fe),ft=this.toPath(Y,fe),et=[],Xt=[],_n=[],An=new Map;this.traverseInPosRange(Y,fe,me,Pe,([gr,Wr],zr)=>{if(Wr===pa.Start&&!zr)for(const Po of gr.children)_n.push(Po);const gi=gr.getCreatedAt().getActorID(),gs=U?U.has(gi)?U.get(gi):_s:qc;if(gr.canDelete(E,gs)||et.includes(gr.parent)){const Po=An.get(gi),fg=gr.getCreatedAt();(!Po||fg.after(Po))&&An.set(gi,fg),(Wr===pa.Text||Wr===pa.Start)&&et.push(gr),Xt.push([gr,Wr])}});const Gn=this.makeDeletionChanges(Xt,E),ci=[];for(const gr of et)gr.remove(E),gr.isRemoved&&ci.push({parent:this,child:gr});for(const gr of _n)gr.removedAt||Y.append(gr);if(b>0){let gr=0,Wr=Y,zr=fe;for(;gr{Y.isRemoved&&(gi.remove(E),ci.push({parent:this,child:gi})),this.nodeMapByID.put(gi.id,gi)}),zr.isRemoved||gr.push(zr);if(gr.length){const zr=gr.map(gi=>fh(gi));Gn.length&&Gn[Gn.length-1].from===vt?Gn[Gn.length-1].value=zr:Gn.push({type:"content",from:vt,to:vt,fromPath:ft,toPath:ft,actor:E.getActorID(),value:zr})}}return[Gn,ci,An]}editT(c,h,b,E,D){const U=this.findPos(c[0]),Y=this.findPos(c[1]);this.edit([U,Y],h,b,E,D)}move(c,h,b){throw new Error(`not implemented: ${c}, ${h}, ${b}`)}purge(c){var h;(h=c.parent)==null||h.removeChild(c),this.nodeMapByID.remove(c.id);const b=c.insPrevID,E=c.insNextID;if(b){const D=this.findFloorNode(b);D.insNextID=E}if(E){const D=this.findFloorNode(E);D.insPrevID=b}c.insPrevID=void 0,c.insNextID=void 0}getGCPairs(){const c=[];return this.indexTree.traverse(h=>{h.getRemovedAt()&&c.push({parent:this,child:h});for(const b of h.getGCPairs())c.push(b)}),c}findPos(c,h=!0){const b=this.indexTree.findTreePos(c,h);return Wl.fromTreePos(b)}pathToPosRange(c){const h=this.pathToIndex(c);return[this.findPos(h),this.findPos(h+1)]}pathToPos(c){const h=this.indexTree.pathToIndex(c);return this.findPos(h)}getRoot(){return this.indexTree.getRoot()}getSize(){return this.indexTree.size}getNodeSize(){return this.nodeMapByID.size()}getIndexTree(){return this.indexTree}toXML(){return Fp(this.indexTree.getRoot())}toJSON(){return JSON.stringify(this.getRootTreeNode())}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:JSON.parse(this.toJSON()),type:"YORKIE_TREE"}}toJSInfoForTest(){const c=this.indexTree.getRoot(),h=(b,E=void 0,D=void 0,U=0)=>{var Y,fe,me,Pe;let vt,ft,et;const Xt=b.isText?{node:b,offset:0}:E&&D?this.toTreePos(E,D):null;Xt&&(vt=this.indexTree.indexOf(Xt),ft=this.indexTree.treePosToPath(Xt),et=Wl.fromTreePos(Xt).toStruct());const _n={type:b.type,parent:E==null?void 0:E.id.toTestString(),size:b.size,id:b.id.toTestString(),removedAt:(Y=b.removedAt)==null?void 0:Y.toTestString(),insPrev:(fe=b.insPrevID)==null?void 0:fe.toTestString(),insNext:(me=b.insNextID)==null?void 0:me.toTestString(),value:b.isText?b.value:void 0,isRemoved:b.isRemoved,children:[],depth:U,attributes:b.attrs?ra((Pe=b.attrs)==null?void 0:Pe.toObject()):void 0,index:vt,path:ft,pos:et};for(let An=0;An0&&An===b[b.length-1].to?(b[b.length-1].to=Gn,b[b.length-1].toPath=this.toPath(_n,ft)):b.push({type:"content",from:An,to:Gn,fromPath:this.toPath(Xt,Pe),toPath:this.toPath(_n,ft),actor:h.getActorID()}))}return b.reverse()}findRightToken([c,h]){if(h===pa.Start){const Y=c.allChildren;return Y.length>0?[Y[0],Y[0].isText?pa.Text:pa.Start]:[c,pa.End]}const b=c.parent,E=b.allChildren,D=E.indexOf(c);if(b&&D===E.length-1)return[b,pa.End];const U=E[D+1];return[U,U.isText?pa.Text:pa.Start]}findLeftToken([c,h]){if(h===pa.End){const Y=c.allChildren;if(Y.length>0){const fe=Y[Y.length-1];return[fe,fe.isText?pa.Text:pa.End]}return[c,pa.Start]}const b=c.parent,E=b.allChildren,D=E.indexOf(c);if(b&&D===0)return[b,pa.Start];const U=E[D-1];return[U,U.isText?pa.Text:pa.End]}}class Hm extends fs{constructor(c,h,b,E,D,U,Y){super(c,Y),s(this,"fromPos"),s(this,"toPos"),s(this,"contents"),s(this,"splitLevel"),s(this,"maxCreatedAtMapByActor"),this.fromPos=h,this.toPos=b,this.contents=E,this.splitLevel=D,this.maxCreatedAtMapByActor=U}static create(c,h,b,E,D,U,Y){return new Hm(c,h,b,E,D,U,Y)}execute(c){var h;const b=c.findByCreatedAt(this.getParentCreatedAt());b||Rt.fatal(`fail to find ${this.getParentCreatedAt()}`),b instanceof Io||Rt.fatal("fail to execute, only Tree can execute edit");const E=this.getExecutedAt(),D=b,[U,Y]=D.edit([this.fromPos,this.toPos],(h=this.contents)==null?void 0:h.map(fe=>fe.deepcopy()),this.splitLevel,E,(()=>{let fe=E.getDelimiter();return this.contents!==void 0&&(fe+=this.contents.length),()=>Ga.of(E.getLamport(),++fe,E.getActorID())})(),this.maxCreatedAtMapByActor);for(const fe of Y)c.registerGCPair(fe);return{opInfos:U.map(({from:fe,to:me,value:Pe,splitLevel:vt,fromPath:ft,toPath:et})=>({type:"tree-edit",path:c.createPath(this.getParentCreatedAt()),from:fe,to:me,value:Pe,splitLevel:vt,fromPath:ft,toPath:et}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const c=this.getParentCreatedAt().toTestString(),h=`${this.fromPos.getLeftSiblingID().getCreatedAt().toTestString()}/${this.fromPos.getLeftSiblingID().getOffset()}`,b=`${this.toPos.getLeftSiblingID().getCreatedAt().toTestString()}/${this.toPos.getLeftSiblingID().getOffset()}`,E=this.contents||[];return`${c}.EDIT(${h},${b},${E.map(D=>Fp(D)).join("")})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getContents(){return this.contents}getSplitLevel(){return this.splitLevel}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}class ps{constructor(c,h,b,E){s(this,"clientSeq"),s(this,"serverSeq"),s(this,"lamport"),s(this,"actor"),this.clientSeq=c,this.serverSeq=E,this.lamport=h,this.actor=b}static of(c,h,b,E){return new ps(c,h,b,E)}next(){return new ps(this.clientSeq+1,this.lamport.add(1),this.actor)}syncLamport(c){return c.greaterThan(this.lamport)?new ps(this.clientSeq,c,this.actor):new ps(this.clientSeq,this.lamport.add(1),this.actor)}createTimeTicket(c){return Ga.of(this.lamport,c,this.actor)}setActor(c){return new ps(this.clientSeq,this.lamport,c,this.serverSeq)}getClientSeq(){return this.clientSeq}getServerSeq(){return this.serverSeq?this.serverSeq.toString():""}getLamport(){return this.lamport}getLamportAsString(){return this.lamport.toString()}getActorID(){return this.actor}toTestString(){return`${this.lamport.toString()}:${this.actor.slice(-2)}:${this.clientSeq}`}}const fS=new ps(0,kn.fromInt(0,!0),Pm);class No{constructor({id:c,operations:h,presenceChange:b,message:E}){s(this,"id"),s(this,"operations"),s(this,"presenceChange"),s(this,"message"),this.id=c,this.operations=h||[],this.presenceChange=b,this.message=E}static create({id:c,operations:h,presenceChange:b,message:E}){return new No({id:c,operations:h,presenceChange:b,message:E})}getID(){return this.id}getMessage(){return this.message}hasOperations(){return this.operations.length>0}getOperations(){return this.operations}setActor(c){for(const h of this.operations)h.setActor(c);this.id=this.id.setActor(c)}hasPresenceChange(){return this.presenceChange!==void 0}getPresenceChange(){return this.presenceChange}execute(c,h,b){const E=[],D=[];for(const U of this.operations){const Y=U.execute(c,b);if(!Y)continue;const{opInfos:fe,reverseOp:me}=Y;E.push(...fe),me&&D.unshift(me)}return this.presenceChange&&(this.presenceChange.type===Qd.Put?h.set(this.id.getActorID(),Ql(this.presenceChange.presence)):h.delete(this.id.getActorID())),{opInfos:E,reverseOps:D}}toTestString(){return`${this.operations.map(c=>c.toTestString()).join(",")}`}toStruct(){return{changeID:ma.bytesToHex(ma.toChangeID(this.getID()).toBinary()),message:this.getMessage(),operations:this.getOperations().map(c=>ma.bytesToHex(ma.toOperation(c).toBinary())),presenceChange:this.getPresenceChange()}}static fromStruct(c){const{changeID:h,operations:b,presenceChange:E,message:D}=c;return No.create({id:ma.bytesToChangeID(ma.hexToBytes(h)),operations:b==null?void 0:b.map(U=>ma.bytesToOperation(ma.hexToBytes(U))),presenceChange:E,message:D})}}class Is{constructor(c,h,b,E,D,U){s(this,"documentKey"),s(this,"checkpoint"),s(this,"isRemoved"),s(this,"changes"),s(this,"snapshot"),s(this,"minSyncedTicket"),this.documentKey=c,this.checkpoint=h,this.isRemoved=b,this.changes=E,this.snapshot=D,this.minSyncedTicket=U}static create(c,h,b,E,D,U){return new Is(c,h,b,E,D,U)}getDocumentKey(){return this.documentKey}getCheckpoint(){return this.checkpoint}getIsRemoved(){return this.isRemoved}getChanges(){return this.changes}hasChanges(){return this.changes.length>0}getChangeSize(){return this.changes.length}hasSnapshot(){return!!this.snapshot&&!!this.snapshot.length}getSnapshot(){return this.snapshot}getMinSyncedTicket(){return this.minSyncedTicket}}class Bp{constructor(c,h){s(this,"serverSeq"),s(this,"clientSeq"),this.serverSeq=c,this.clientSeq=h}static of(c,h){return new Bp(c,h)}increaseClientSeq(c){return c===0?this:new Bp(this.serverSeq,this.clientSeq+c)}forward(c){if(this.equals(c))return this;const h=this.serverSeq.greaterThan(c.serverSeq)?this.serverSeq:c.serverSeq,b=Math.max(this.clientSeq,c.clientSeq);return Bp.of(h,b)}getServerSeqAsString(){return this.serverSeq.toString()}getClientSeq(){return this.clientSeq}getServerSeq(){return this.serverSeq}equals(c){return this.clientSeq===c.clientSeq&&this.serverSeq.equals(c.serverSeq)}toTestString(){return`serverSeq=${this.serverSeq}, clientSeq=${this.clientSeq}`}}const ek=new Bp(kn.fromInt(0,!0),0);class Vl{constructor(c,h){s(this,"createdAt"),s(this,"offset"),this.createdAt=c,this.offset=h}static of(c,h){return new Vl(c,h)}static fromStruct(c){return Vl.of(Ga.fromStruct(c.createdAt),c.offset)}getCreatedAt(){return this.createdAt}getOffset(){return this.offset}equals(c){return this.createdAt.compare(c.createdAt)===0&&this.offset===c.offset}hasSameCreatedAt(c){return this.createdAt.compare(c.createdAt)===0}split(c){return new Vl(this.createdAt,this.offset+c)}toStruct(){return{createdAt:this.createdAt.toStruct(),offset:this.offset}}toTestString(){return`${this.createdAt.toTestString()}:${this.offset}`}toIDString(){return`${this.createdAt.toIDString()}:${this.offset}`}}const Qm=Vl.of(_s,0);class Ua{constructor(c,h){s(this,"id"),s(this,"relativeOffset"),this.id=c,this.relativeOffset=h}static of(c,h){return new Ua(c,h)}static fromStruct(c){const h=Vl.fromStruct(c.id);return Ua.of(h,c.relativeOffset)}getID(){return this.id}getRelativeOffset(){return this.relativeOffset}getAbsoluteID(){return Vl.of(this.id.getCreatedAt(),this.id.getOffset()+this.relativeOffset)}toTestString(){return`${this.id.toTestString()}:${this.relativeOffset}`}toStruct(){return{id:this.id.toStruct(),relativeOffset:this.relativeOffset}}equals(c){return this.id.equals(c.id)?this.relativeOffset===c.relativeOffset:!1}}class Xc extends Mm{constructor(c,h,b){super(h),s(this,"id"),s(this,"removedAt"),s(this,"prev"),s(this,"next"),s(this,"insPrev"),s(this,"insNext"),this.id=c,this.removedAt=b}static create(c,h){return new Xc(c,h)}static createComparator(){return(c,h)=>{const b=c.getCreatedAt().compare(h.getCreatedAt());return b!==0?b:c.getOffset()>h.getOffset()?1:c.getOffset()0&&h.getID().getOffset()==c.getOffset()){if(!h.hasInsPrev())return h;h=h.getInsPrev()}return h}findFloorNode(c){const h=this.treeByID.floorEntry(c);if(h&&!(!h.key.equals(c)&&!h.key.hasSameCreatedAt(c)))return h.value}findBetween(c,h){const b=[];let E=c;for(;E&&E!==h;)b.push(E),E=E.getNext();return b}splitNode(c,h){if(h>c.getContentLength()&&Rt.fatal("offset should be less than or equal to length"),h===0)return c;if(h===c.getContentLength())return c.getNext();const b=c.split(h);this.treeByIndex.updateWeight(b),this.insertAfter(c,b);const E=c.getInsNext();return E&&E.setInsPrev(b),b.setInsPrev(c),b}deleteNodes(c,h,b){if(!c.length)return[[],new Map,new Map];const[E,D]=this.filterNodes(c,h,b),U=new Map,Y=new Map,fe=this.makeChanges(D,h);for(const me of E){const Pe=me.getCreatedAt().getActorID();(!U.has(Pe)||me.getID().getCreatedAt().after(U.get(Pe)))&&U.set(Pe,me.getID().getCreatedAt()),Y.set(me.getID().toIDString(),me),me.remove(h)}return this.deleteIndexNodes(D),[fe,U,Y]}filterNodes(c,h,b){const E=!!b,D=[],U=[],[Y,fe]=this.findEdgesOfCandidates(c);U.push(Y);for(const me of c){const Pe=me.getCreatedAt().getActorID(),vt=E?b.has(Pe)?b.get(Pe):_s:qc;me.canDelete(h,vt)?D.push(me):U.push(me)}return U.push(fe),[D,U]}findEdgesOfCandidates(c){return[c[0].getPrev(),c[c.length-1].getNext()]}makeChanges(c,h){const b=[];let E,D;for(let U=0;Uv<0?Math.ceil(v):Math.floor(v);var Vu=(v=>(v[v.IntegerCnt=0]="IntegerCnt",v[v.LongCnt=1]="LongCnt",v))(Vu||{});class ro extends Lm{constructor(c,h,b){switch(super(b),s(this,"valueType"),s(this,"value"),this.valueType=c,c){case 0:typeof h=="number"?h>Math.pow(2,31)-1||h<-Math.pow(2,31)?this.value=kn.fromNumber(h).toInt():this.value=Wm(h):this.value=h.toInt();break;case 1:typeof h=="number"?this.value=kn.fromNumber(h):this.value=h;break;default:throw new kr(mr.ErrUnimplemented,`unimplemented type: ${c}`)}}static create(c,h,b){return new ro(c,h,b)}static valueFromBytes(c,h){switch(c){case 0:return h[0]|h[1]<<8|h[2]<<16|h[3]<<24;case 1:return kn.fromBytesLE(Array.from(h));default:throw new kr(mr.ErrUnimplemented,`unimplemented type: ${c}`)}}toJSON(){return`${this.value}`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:this.value,type:"YORKIE_COUNTER"}}deepcopy(){const c=ro.create(this.valueType,this.value,this.getCreatedAt());return c.setMovedAt(this.getMovedAt()),c}getType(){return this.valueType}static getCounterType(c){switch(typeof c){case"object":return c instanceof kn?1:void 0;case"number":return c>Math.pow(2,31)-1||c<-Math.pow(2,31)?1:0;default:return}}static isSupport(c){return!!ro.getCounterType(c)}static isInteger(c){return c%1===0}isNumericType(){const c=this.valueType;return c===0||c===1}getValueType(){return this.valueType}getValue(){return this.value}toBytes(){switch(this.valueType){case 0:{const c=this.value;return new Uint8Array([c&255,c>>8&255,c>>16&255,c>>24&255])}case 1:{const h=this.value.toBytesLE();return Uint8Array.from(h)}default:throw new kr(mr.ErrUnimplemented,`unimplemented type: ${this.valueType}`)}}increase(c){function h(b){if(!b.isNumericType())throw new TypeError(`Unsupported type of value: ${typeof b.getValue()}`)}return h(this),h(c),this.valueType===1?this.value=this.value.add(c.getValue()):c.getType()===Cn.Long?this.value=this.value+c.getValue().toInt():this.value=kn.fromNumber(this.value+Wm(c.getValue())).toInt(),this}}class qi extends fs{constructor(c,h,b){super(c,b),s(this,"value"),this.value=h}static create(c,h,b){return new qi(c,h,b)}execute(c){const h=c.findByCreatedAt(this.getParentCreatedAt());h||Rt.fatal(`fail to find ${this.getParentCreatedAt()}`),h instanceof ro||Rt.fatal("fail to execute, only Counter can execute increase");const b=h,E=this.value.deepcopy();return b.increase(E),{opInfos:[{type:"increase",path:c.createPath(this.getParentCreatedAt()),value:E.getValue()}],reverseOp:this.toReverseOperation()}}toReverseOperation(){const c=this.value.deepcopy(),b=c.getType()===Cn.Long?c.getValue().multiply(-1):c.getValue()*-1;return qi.create(this.getParentCreatedAt(),wi.of(b,c.getCreatedAt()))}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){return`${this.getParentCreatedAt().toTestString()}.INCREASE.${this.value.toJSON()}`}getValue(){return this.value}}class ql extends fs{constructor(c,h,b,E,D,U,Y){super(c,Y),s(this,"fromPos"),s(this,"toPos"),s(this,"maxCreatedAtMapByActor"),s(this,"attributes"),s(this,"attributesToRemove"),this.fromPos=h,this.toPos=b,this.maxCreatedAtMapByActor=E,this.attributes=D,this.attributesToRemove=U}static create(c,h,b,E,D,U){return new ql(c,h,b,E,D,new Array,U)}static createTreeRemoveStyleOperation(c,h,b,E,D,U){return new ql(c,h,b,E,new Map,D,U)}execute(c){const h=c.findByCreatedAt(this.getParentCreatedAt());h||Rt.fatal(`fail to find ${this.getParentCreatedAt()}`),h instanceof Io||Rt.fatal("fail to execute, only Tree can execute edit");const b=h;let E,D;if(this.attributes.size){const U={};[...this.attributes].forEach(([Y,fe])=>U[Y]=fe),[,D,E]=b.style([this.fromPos,this.toPos],U,this.getExecutedAt(),this.maxCreatedAtMapByActor)}else{const U=this.attributesToRemove;[,D,E]=b.removeStyle([this.fromPos,this.toPos],U,this.getExecutedAt(),this.maxCreatedAtMapByActor)}for(const U of D)c.registerGCPair(U);return{opInfos:E.map(({from:U,to:Y,value:fe,fromPath:me,toPath:Pe})=>({type:"tree-style",from:U,to:Y,value:this.attributes.size?{attributes:fe}:{attributesToRemove:fe},fromPath:me,toPath:Pe,path:c.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const c=this.getParentCreatedAt().toTestString(),h=`${this.fromPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.fromPos.getLeftSiblingID().getOffset()}`,b=`${this.toPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.toPos.getLeftSiblingID().getOffset()}`;return`${c}.STYLE(${h},${b},${Object.entries(this.attributes||{}).map(([E,D])=>`${E}:"${D}"`).join(" ")})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getAttributes(){return this.attributes}getAttributesToRemove(){return this.attributesToRemove}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}function tk(v){const c=new lb,h=c.data;for(const[b,E]of Object.entries(v))h[b]=JSON.stringify(E);return c}function qu(v){if(v.type===Qd.Put)return new iS({type:sh.PUT,presence:tk(v.presence)});if(v.type===Qd.Clear)return new iS({type:sh.CLEAR});throw new kr(mr.ErrUnimplemented,"unimplemented type")}function hS(v){return new Qc({serverSeq:v.getServerSeqAsString(),clientSeq:v.getClientSeq()})}function Vm(v){return new Cp({clientSeq:v.getClientSeq(),lamport:v.getLamportAsString(),actorId:bb(v.getActorID())})}function un(v){if(v)return new wn({lamport:v.getLamportAsString(),delimiter:v.getDelimiter(),actorId:bb(v.getActorID())})}function pS(v){switch(v){case Cn.Null:return Vn.NULL;case Cn.Boolean:return Vn.BOOLEAN;case Cn.Integer:return Vn.INTEGER;case Cn.Long:return Vn.LONG;case Cn.Double:return Vn.DOUBLE;case Cn.String:return Vn.STRING;case Cn.Bytes:return Vn.BYTES;case Cn.Date:return Vn.DATE;default:throw new kr(mr.Unsupported,`unsupported type: ${v}`)}}function ms(v){switch(v){case Vu.IntegerCnt:return Vn.INTEGER_CNT;case Vu.LongCnt:return Vn.LONG_CNT;default:throw new kr(mr.Unsupported,`unsupported type: ${v}`)}}function qm(v){if(v instanceof Cs)return new Uu({type:Vn.JSON_OBJECT,createdAt:un(v.getCreatedAt()),value:xS(v)});if(v instanceof _a)return new Uu({type:Vn.JSON_ARRAY,createdAt:un(v.getCreatedAt()),value:gk(v)});if(v instanceof ol)return new Uu({type:Vn.TEXT,createdAt:un(v.getCreatedAt())});if(v instanceof wi)return new Uu({type:pS(v.getType()),createdAt:un(v.getCreatedAt()),value:v.toBytes()});if(v instanceof ro)return new Uu({type:ms(v.getType()),createdAt:un(v.getCreatedAt()),value:v.toBytes()});if(v instanceof Io)return new Uu({type:Vn.TREE,createdAt:un(v.getCreatedAt()),value:_S(v)});throw new kr(mr.ErrUnimplemented,"unimplemented element")}function y6(v){return new nS({createdAt:un(v.getCreatedAt()),offset:v.getOffset()})}function pb(v){return new ju({createdAt:un(v.getID().getCreatedAt()),offset:v.getID().getOffset(),relativeOffset:v.getRelativeOffset()})}function mb(v){return new zu({parentId:hh(v.getParentID()),leftSiblingId:hh(v.getLeftSiblingID())})}function hh(v){return new Ip({createdAt:un(v.getCreatedAt()),offset:v.getOffset()})}function nk(v){const c=new XO;if(v instanceof ch){const h=v,b=new zx;b.parentCreatedAt=un(h.getParentCreatedAt()),b.key=h.getKey(),b.value=qm(h.getValue()),b.executedAt=un(h.getExecutedAt()),c.body.case="set",c.body.value=b}else if(v instanceof Fm){const h=v,b=new jx;b.parentCreatedAt=un(h.getParentCreatedAt()),b.prevCreatedAt=un(h.getPrevCreatedAt()),b.value=qm(h.getValue()),b.executedAt=un(h.getExecutedAt()),c.body.case="add",c.body.value=b}else if(v instanceof qd){const h=v,b=new KO;b.parentCreatedAt=un(h.getParentCreatedAt()),b.prevCreatedAt=un(h.getPrevCreatedAt()),b.createdAt=un(h.getCreatedAt()),b.executedAt=un(h.getExecutedAt()),c.body.case="move",c.body.value=b}else if(v instanceof Vd){const h=v,b=new _m;b.parentCreatedAt=un(h.getParentCreatedAt()),b.createdAt=un(h.getCreatedAt()),b.executedAt=un(h.getExecutedAt()),c.body.case="remove",c.body.value=b}else if(v instanceof Um){const h=v,b=new ah;b.parentCreatedAt=un(h.getParentCreatedAt()),b.from=pb(h.getFromPos()),b.to=pb(h.getToPos());const E=b.createdAtMapByActor;for(const[U,Y]of h.getMaxCreatedAtMapByActor())E[U]=un(Y);b.content=h.getContent();const D=b.attributes;for(const[U,Y]of h.getAttributes())D[U]=Y;b.executedAt=un(h.getExecutedAt()),c.body.case="edit",c.body.value=b}else if(v instanceof zm){const h=v,b=new JO;b.parentCreatedAt=un(h.getParentCreatedAt()),b.from=pb(h.getFromPos()),b.to=pb(h.getToPos());const E=b.createdAtMapByActor;for(const[U,Y]of h.getMaxCreatedAtMapByActor())E[U]=un(Y);const D=b.attributes;for(const[U,Y]of h.getAttributes())D[U]=Y;b.executedAt=un(h.getExecutedAt()),c.body.case="style",c.body.value=b}else if(v instanceof qi){const h=v,b=new eS;b.parentCreatedAt=un(h.getParentCreatedAt()),b.value=qm(h.getValue()),b.executedAt=un(h.getExecutedAt()),c.body.case="increase",c.body.value=b}else if(v instanceof Hm){const h=v,b=new nb,E=b.createdAtMapByActor;for(const[D,U]of h.getMaxCreatedAtMapByActor())E[D]=un(U);b.parentCreatedAt=un(h.getParentCreatedAt()),b.from=mb(h.getFromPos()),b.to=mb(h.getToPos()),b.contents=E6(h.getContents()),b.splitLevel=h.getSplitLevel(),b.executedAt=un(h.getExecutedAt()),c.body.case="treeEdit",c.body.value=b}else if(v instanceof ql){const h=v,b=new rb;b.parentCreatedAt=un(h.getParentCreatedAt()),b.from=mb(h.getFromPos()),b.to=mb(h.getToPos());const E=b.createdAtMapByActor;for(const[U,Y]of h.getMaxCreatedAtMapByActor())E[U]=un(Y);const D=h.getAttributesToRemove();if(D.length>0)b.attributesToRemove=D;else{const U=b.attributes;for(const[Y,fe]of h.getAttributes())U[Y]=fe}b.executedAt=un(h.getExecutedAt()),c.body.case="treeStyle",c.body.value=b}else throw new kr(mr.ErrUnimplemented,"unimplemented operation");return c}function Gm(v){const c=[];for(const h of v)c.push(nk(h));return c}function rk(v){const c=new Ux({id:Vm(v.getID()),message:v.getMessage()});return v.hasOperations()&&(c.operations=Gm(v.getOperations())),v.hasPresenceChange()&&(c.presenceChange=qu(v.getPresenceChange())),c}function v6(v){const c=[];for(const h of v)c.push(rk(h));return c}function O6(v){const c=[];for(const h of v)c.push(new Rp({key:h.getStrKey(),element:Zm(h.getValue())}));return c}function Ym(v){const c=[];for(const h of v)c.push(new ob({element:Zm(h.getValue())}));return c}function S6(v){const c=[];for(const h of v){const b=new Qx;b.id=y6(h.getID()),b.value=h.getValue().getContent(),b.removedAt=un(h.getRemovedAt());const E=b.attributes,D=h.getValue().getAttrs();for(const U of D){const Y=new Cm;Y.value=U.getValue(),Y.updatedAt=un(U.getUpdatedAt()),E[U.getKey()]=Y}c.push(b)}return c}function E6(v){const c=[];if(!v||!v.length)return c;for(const h of v)c.push(new Wx({content:gS(h)}));return c}function mS(v){const c={};for(const h of v)c[h.getKey()]=new Cm({value:h.getValue(),updatedAt:un(h.getUpdatedAt()),isRemoved:h.isRemoved()});return c}function gS(v){if(!v)return[];const c=[];return hb(v,(h,b)=>{const E=new rS({id:hh(h.id),type:h.type,removedAt:un(h.removedAt),depth:b});h.isText&&(E.value=h.value),h.insPrevID&&(E.insPrevId=hh(h.insPrevID)),h.insNextID&&(E.insNextId=hh(h.insNextID)),h.attrs&&(E.attributes=mS(h.attrs)),c.push(E)}),c}function w6(v){const c=new il;return c.body.case="jsonObject",c.body.value=new ib({nodes:O6(v.getRHT()),createdAt:un(v.getCreatedAt()),movedAt:un(v.getMovedAt()),removedAt:un(v.getRemovedAt())}),c}function ik(v){const c=new il;return c.body.case="jsonArray",c.body.value=new ab({nodes:Ym(v.getElements()),createdAt:un(v.getCreatedAt()),movedAt:un(v.getMovedAt()),removedAt:un(v.getRemovedAt())}),c}function T6(v){const c=new il;return c.body.case="primitive",c.body.value=new Hx({type:pS(v.getType()),value:v.toBytes(),createdAt:un(v.getCreatedAt()),movedAt:un(v.getMovedAt()),removedAt:un(v.getRemovedAt())}),c}function ak(v){const c=new il;return c.body.case="text",c.body.value=new tS({nodes:S6(v.getRGATreeSplit()),createdAt:un(v.getCreatedAt()),movedAt:un(v.getMovedAt()),removedAt:un(v.getRemovedAt())}),c}function bS(v){const c=new il;return c.body.case="counter",c.body.value=new to({type:ms(v.getType()),value:v.toBytes(),createdAt:un(v.getCreatedAt()),movedAt:un(v.getMovedAt()),removedAt:un(v.getRemovedAt())}),c}function sk(v){const c=new il;return c.body.case="tree",c.body.value=new sb({nodes:gS(v.getRoot()),createdAt:un(v.getCreatedAt()),movedAt:un(v.getMovedAt()),removedAt:un(v.getRemovedAt())}),c}function Zm(v){if(v instanceof Cs)return w6(v);if(v instanceof _a)return ik(v);if(v instanceof wi)return T6(v);if(v instanceof ol)return ak(v);if(v instanceof ro)return bS(v);if(v instanceof Io)return sk(v);throw new kr(mr.ErrUnimplemented,"unimplemented element")}function ok(v){return new zl({documentKey:v.getDocumentKey(),checkpoint:hS(v.getCheckpoint()),isRemoved:v.getIsRemoved(),changes:v6(v.getChanges()),snapshot:v.getSnapshot(),minSyncedTicket:un(v.getMinSyncedTicket())})}function yS(v){const c=v.findDetails(l6);for(const h of c)if(h.metadata.code)return h.metadata.code;return""}function vS(v){let c;return v.serverSeq&&(c=kn.fromString(v.serverSeq,!0)),ps.of(v.clientSeq,kn.fromString(v.lamport,!0),CS(v.actorId),c)}function gn(v){if(v)return Ga.of(kn.fromString(v.lamport,!0),v.delimiter,CS(v.actorId))}function OS(v){const c={};return Object.entries(v.data).forEach(([h,b])=>{c[h]=JSON.parse(b)}),c}function lk(v){const c=v.type;if(c===sh.PUT){const h=OS(v.presence);return{type:Qd.Put,presence:h}}if(c===sh.CLEAR)return{type:Qd.Clear};throw new kr(mr.Unsupported,`unsupported type: ${c}`)}function uk(v){const c=new Map;return Object.entries(v).forEach(([h,b])=>{c.set(h,OS(b))}),c}function ck(v){switch(v){case Vn.NULL:return Cn.Null;case Vn.BOOLEAN:return Cn.Boolean;case Vn.INTEGER:return Cn.Integer;case Vn.LONG:return Cn.Long;case Vn.DOUBLE:return Cn.Double;case Vn.STRING:return Cn.String;case Vn.BYTES:return Cn.Bytes;case Vn.DATE:return Cn.Date}throw new kr(mr.ErrUnimplemented,`unimplemented value type: ${v}`)}function Xm(v){switch(v){case Vn.INTEGER_CNT:return Vu.IntegerCnt;case Vn.LONG_CNT:return Vu.LongCnt}throw new kr(mr.ErrUnimplemented,`unimplemented value type: ${v}`)}function SS(v){switch(v.type){case Vn.JSON_OBJECT:return v.value?tg(v.value):Cs.create(gn(v.createdAt));case Vn.JSON_ARRAY:return v.value?kS(v.value):_a.create(gn(v.createdAt));case Vn.TEXT:return ol.create(Up.create(),gn(v.createdAt));case Vn.TREE:return AS(v.value);case Vn.NULL:case Vn.BOOLEAN:case Vn.INTEGER:case Vn.LONG:case Vn.DOUBLE:case Vn.STRING:case Vn.BYTES:case Vn.DATE:return wi.of(wi.valueFromBytes(ck(v.type),v.value),gn(v.createdAt));case Vn.INTEGER_CNT:case Vn.LONG_CNT:return ro.create(Xm(v.type),ro.valueFromBytes(Xm(v.type),v.value),gn(v.createdAt))}}function zp(v){return Ua.of(Vl.of(gn(v.createdAt),v.offset),v.relativeOffset)}function ES(v){return Vl.of(gn(v.createdAt),v.offset)}function wS(v){const c=Bm.create(v.value);Object.entries(v.attributes).forEach(([b,E])=>{c.setAttr(b,E.value,gn(E.updatedAt))});const h=Xc.create(ES(v.id),c);return h.remove(gn(v.removedAt)),h}function jp(v){return Wl.of(ph(v.parentId),ph(v.leftSiblingId))}function ph(v){return Za.of(gn(v.createdAt),v.offset)}function rr(v){if(!v.length)return;const c=[];return v.forEach(h=>{const b=dk(h.content);c.push(b)}),c}function dk(v){if(v.length===0)return;const c=[];for(const b of v)c.push(Km(b));const h=c[c.length-1];for(let b=c.length-2;b>=0;b--){let E;for(let D=b+1;D{h.set(E,gn(D))});const b=new Map;return Object.entries(c.attributes).forEach(([E,D])=>{b.set(E,D)}),Um.create(gn(c.parentCreatedAt),zp(c.from),zp(c.to),h,c.content,b,gn(c.executedAt))}else if(v.body.case==="style"){const c=v.body.value,h=new Map;Object.entries(c.createdAtMapByActor).forEach(([E,D])=>{h.set(E,gn(D))});const b=new Map;return Object.entries(c.attributes).forEach(([E,D])=>{b.set(E,D)}),zm.create(gn(c.parentCreatedAt),zp(c.from),zp(c.to),h,b,gn(c.executedAt))}else{if(v.body.case==="select")return;if(v.body.case==="increase"){const c=v.body.value;return qi.create(gn(c.parentCreatedAt),SS(c.value),gn(c.executedAt))}else if(v.body.case==="treeEdit"){const c=v.body.value,h=new Map;return Object.entries(c.createdAtMapByActor).forEach(([b,E])=>{h.set(b,gn(E))}),Hm.create(gn(c.parentCreatedAt),jp(c.from),jp(c.to),rr(c.contents),c.splitLevel,h,gn(c.executedAt))}else if(v.body.case==="treeStyle"){const c=v.body.value,h=new Map,b=c.attributesToRemove,E=new Map;return c!=null&&c.createdAtMapByActor&&Object.entries(c.createdAtMapByActor).forEach(([D,U])=>{E.set(D,gn(U))}),(b==null?void 0:b.length)>0?ql.createTreeRemoveStyleOperation(gn(c.parentCreatedAt),jp(c.from),jp(c.to),E,b,gn(c.executedAt)):(Object.entries(c.attributes).forEach(([D,U])=>{h.set(D,U)}),ql.create(gn(c.parentCreatedAt),jp(c.from),jp(c.to),E,h,gn(c.executedAt)))}else throw new kr(mr.ErrUnimplemented,"unimplemented operation")}}function k6(v){const c=[];for(const h of v){const b=TS(h);b&&c.push(b)}return c}function fk(v){const c=[];for(const h of v)c.push(No.create({id:vS(h.id),operations:k6(h.operations),presenceChange:h.presenceChange?lk(h.presenceChange):void 0,message:h.message}));return c}function ll(v){return Bp.of(kn.fromString(v.serverSeq,!0),v.clientSeq)}function A6(v){return Is.create(v.documentKey,ll(v.checkpoint),v.isRemoved,fk(v.changes),v.snapshot,gn(v.minSyncedTicket))}function Jm(v){const c=new Gc;for(const b of v.nodes){const E=eg(b.element);c.set(b.key,E,E.getPositionedAt())}const h=new Cs(gn(v.createdAt),c);return h.setMovedAt(gn(v.movedAt)),h.setRemovedAt(gn(v.removedAt)),h}function gb(v){const c=new $m;for(const b of v.nodes)c.insert(eg(b.element));const h=new _a(gn(v.createdAt),c);return h.setMovedAt(gn(v.movedAt)),h.setRemovedAt(gn(v.removedAt)),h}function hk(v){const c=wi.of(wi.valueFromBytes(ck(v.type),v.value),gn(v.createdAt));return c.setMovedAt(gn(v.movedAt)),c.setRemovedAt(gn(v.removedAt)),c}function pk(v){const c=new Up;let h=c.getHead();for(const E of v.nodes){const D=c.insertAfter(h,wS(E));E.insPrevId&&D.setInsPrev(c.findNode(ES(E.insPrevId))),h=D}const b=new ol(c,gn(v.createdAt));return b.setMovedAt(gn(v.movedAt)),b.setRemovedAt(gn(v.removedAt)),b}function Do(v){const c=ro.create(Xm(v.type),ro.valueFromBytes(Xm(v.type),v.value),gn(v.createdAt));return c.setMovedAt(gn(v.movedAt)),c.setRemovedAt(gn(v.removedAt)),c}function Kc(v){const c=dk(v.nodes);return Io.create(c,gn(v.createdAt))}function eg(v){if(v.body.case==="jsonObject")return Jm(v.body.value);if(v.body.case==="jsonArray")return gb(v.body.value);if(v.body.case==="primitive")return hk(v.body.value);if(v.body.case==="text")return pk(v.body.value);if(v.body.case==="counter")return Do(v.body.value);if(v.body.case==="tree")return Kc(v.body.value);throw new kr(mr.ErrUnimplemented,"unimplemented element")}function mk(v){if(!v)return{root:Cs.create(_s),presences:new Map};const c=jd.fromBinary(v);return{root:eg(c.root),presences:uk(c.presences)}}function tg(v){if(!v)throw new Error("bytes is empty");const c=il.fromBinary(v);return Jm(c.body.value)}function xS(v){return Zm(v).toBinary()}function kS(v){if(!v)throw new Error("bytes is empty");const c=il.fromBinary(v);return gb(c.body.value)}function gk(v){return ik(v).toBinary()}function AS(v){if(!v)throw new Error("bytes is empty");const c=il.fromBinary(v);return Kc(c.body.value)}function _S(v){return sk(v).toBinary()}function Jc(v){return v?Array.from(v).map(c=>c.toString(16).padStart(2,"0")).join(""):""}function CS(v){return Jc(v)}function ed(v){return new Uint8Array(v.match(/.{1,2}/g).map(c=>parseInt(c,16)))}function bb(v){return ed(v)}function bk(v){const c=Cp.fromBinary(v);return vS(c)}function RS(v){const c=XO.fromBinary(v);return TS(c)}const ma={fromPresence:OS,toChangePack:ok,fromChangePack:A6,fromChanges:fk,objectToBytes:xS,bytesToObject:tg,bytesToSnapshot:mk,bytesToHex:Jc,hexToBytes:ed,toHexString:CS,toUint8Array:bb,toOperation:nk,toChangeID:Vm,PbChangeID:Cp,bytesToChangeID:bk,bytesToOperation:RS};function yk(){return"xxxxxxxx-xxxx-4xxxy-xxxx-xxxxxxxxxxx".replace(/[xy]/g,v=>{const c=Math.random()*16|0;return(v==="x"?c:c&3|8).toString(16)})}class _6{constructor(c,h,b,E){s(this,"reconnectStreamDelay"),s(this,"doc"),s(this,"docID"),s(this,"syncMode"),s(this,"remoteChangeEventReceived"),s(this,"watchStream"),s(this,"watchLoopTimerID"),s(this,"watchAbortController"),this.reconnectStreamDelay=c,this.doc=h,this.docID=b,this.syncMode=E,this.remoteChangeEventReceived=!1}changeSyncMode(c){this.syncMode=c}needRealtimeSync(){return this.syncMode===dg.RealtimeSyncOff?!1:this.syncMode===dg.RealtimePushOnly?this.doc.hasLocalChanges():this.syncMode!==dg.Manual&&(this.doc.hasLocalChanges()||this.remoteChangeEventReceived)}async runWatchLoop(c){const h=async()=>{if(this.watchStream)return Promise.resolve();this.watchLoopTimerID&&(clearTimeout(this.watchLoopTimerID),this.watchLoopTimerID=void 0);try{[this.watchStream,this.watchAbortController]=await c(()=>{this.watchStream=void 0,this.watchAbortController=void 0,this.watchLoopTimerID=setTimeout(h,this.reconnectStreamDelay)})}catch{}};await h()}cancelWatchStream(){this.watchStream&&this.watchAbortController&&(this.watchAbortController.abort(),this.watchStream=void 0,this.watchAbortController=void 0),clearTimeout(this.watchLoopTimerID),this.watchLoopTimerID=void 0}}const yb=()=>{};class vk{constructor(c){s(this,"finalized",!1),s(this,"observers",[]),s(this,"finalError");try{c(this)}catch(h){this.error(h)}}next(c){this.forEachObserver(h=>{h.next(c)})}error(c){this.forEachObserver(h=>{h.error(c)}),this.close(c)}complete(){this.forEachObserver(c=>{c.complete()}),this.close()}subscribe(c,h,b){let E;c||Rt.fatal("missing observer"),this.finalized&&Rt.fatal("observable is finalized due to previous error"),typeof c=="object"?E=c:E={next:c,error:h,complete:b},E.next===void 0&&(E.next=yb),E.error===void 0&&(E.error=yb),E.complete===void 0&&(E.complete=yb);const D=yk(),U=this.unsubscribeOne.bind(this,D);if(this.observers.push({subscriptionID:D,observer:E}),this.finalized)try{this.finalError?E.error(this.finalError):E.complete()}catch(Y){Rt.warn(Y)}return U}unsubscribeOne(c){var h;this.observers=(h=this.observers)==null?void 0:h.filter(b=>b.subscriptionID!==c)}forEachObserver(c){if(!this.finalized)for(let h=0;hc}}class mh{constructor(c,h,b,E){s(this,"id"),s(this,"delimiter"),s(this,"message"),s(this,"root"),s(this,"operations"),s(this,"presenceChange"),s(this,"previousPresence"),s(this,"reversePresenceKeys"),this.id=c,this.delimiter=uh,this.root=h,this.operations=[],this.previousPresence=Ql(b),this.presenceChange=void 0,this.reversePresenceKeys=new Set,this.message=E}static create(c,h,b,E){return new mh(c,h,b,E)}push(c){this.operations.push(c)}registerElement(c,h){this.root.registerElement(c,h)}registerRemovedElement(c){this.root.registerRemovedElement(c)}registerGCPair(c){this.root.registerGCPair(c)}getChange(){return No.create({id:this.id,operations:this.operations,presenceChange:this.presenceChange,message:this.message})}hasChange(){return this.operations.length>0||this.presenceChange!==void 0}setPresenceChange(c){this.presenceChange=c}setReversePresence(c,h){for(const b of Object.keys(c))h!=null&&h.addToHistory?this.reversePresenceKeys.add(b):this.reversePresenceKeys.delete(b)}getReversePresence(){if(this.reversePresenceKeys.size===0)return;const c={};for(const h of this.reversePresenceKeys)c[h]=this.previousPresence[h];return c}issueTimeTicket(){return this.delimiter+=1,this.id.createTimeTicket(this.delimiter)}getLastTimeTicket(){return this.id.createTimeTicket(this.delimiter)}}class Hp{constructor(c){s(this,"rootObject"),s(this,"elementPairMapByCreatedAt"),s(this,"gcElementSetByCreatedAt"),s(this,"gcPairMap"),this.rootObject=c,this.elementPairMapByCreatedAt=new Map,this.gcElementSetByCreatedAt=new Set,this.gcPairMap=new Map,this.registerElement(c,void 0),c.getDescendants(h=>{if(h.getRemovedAt()&&this.registerRemovedElement(h),h instanceof ol||h instanceof Io)for(const b of h.getGCPairs())this.registerGCPair(b);return!1})}static create(){return new Hp(Cs.create(_s))}findByCreatedAt(c){const h=this.elementPairMapByCreatedAt.get(c.toIDString());if(h)return h.element}findElementPairByCreatedAt(c){return this.elementPairMapByCreatedAt.get(c.toIDString())}createSubPaths(c){let h=this.elementPairMapByCreatedAt.get(c.toIDString());if(!h)return[];const b=[];for(;h.parent;){const E=h.element.getCreatedAt(),D=h.parent.subPathOf(E);D===void 0&&Rt.fatal(`cant find the given element: ${E.toIDString()}`),b.unshift(D),h=this.elementPairMapByCreatedAt.get(h.parent.getCreatedAt().toIDString())}return b.unshift("$"),b}createPath(c){return this.createSubPaths(c).join(".")}registerElement(c,h){this.elementPairMapByCreatedAt.set(c.getCreatedAt().toIDString(),{parent:h,element:c}),c instanceof Wd&&c.getDescendants((b,E)=>(this.registerElement(b,E),!1))}deregisterElement(c){let h=0;const b=E=>{const D=E.getCreatedAt().toIDString();this.elementPairMapByCreatedAt.delete(D),this.gcElementSetByCreatedAt.delete(D),h++};return b(c),c instanceof Wd&&c.getDescendants(E=>(b(E),!1)),h}registerRemovedElement(c){this.gcElementSetByCreatedAt.add(c.getCreatedAt().toIDString())}registerGCPair(c){if(this.gcPairMap.get(c.child.toIDString())){this.gcPairMap.delete(c.child.toIDString());return}this.gcPairMap.set(c.child.toIDString(),c)}getElementMapSize(){return this.elementPairMapByCreatedAt.size}getGarbageElementSetSize(){const c=new Set;for(const h of this.gcElementSetByCreatedAt){c.add(h);const b=this.elementPairMapByCreatedAt.get(h);b.element instanceof Wd&&b.element.getDescendants(E=>(c.add(E.getCreatedAt().toIDString()),!1))}return c.size}getObject(){return this.rootObject}getGarbageLen(){return this.getGarbageElementSetSize()+this.gcPairMap.size}deepcopy(){return new Hp(this.rootObject.deepcopy())}garbageCollect(c){let h=0;for(const b of this.gcElementSetByCreatedAt){const E=this.elementPairMapByCreatedAt.get(b);E.element.getRemovedAt()&&c.compare(E.element.getRemovedAt())>=0&&(E.parent.purge(E.element),h+=this.deregisterElement(E.element))}for(const[,b]of this.gcPairMap){const E=b.child.getRemovedAt();E!==void 0&&c.compare(E)>=0&&(b.parent.purge(b.child),this.gcPairMap.delete(b.child.toIDString()),h+=1)}return h}toJSON(){return this.rootObject.toJSON()}toSortedJSON(){return this.rootObject.toSortedJSON()}}function Ns(v,c){const h=new io(v);return new Proxy(c,h.getHandlers())}class io{constructor(c){s(this,"context"),s(this,"handlers"),this.context=c,this.handlers={set:(h,b,E)=>(Rt.isEnabled(Aa.Trivial)&&Rt.trivial(`obj[${b}]=${JSON.stringify(E)}`),io.setInternal(c,h,b,E),!0),get:(h,b)=>(Rt.isEnabled(Aa.Trivial)&&Rt.trivial(`obj[${b}]`),b==="getID"?()=>h.getCreatedAt():b==="toJSON"||b==="toString"?()=>h.toJSON():b==="toJS"?()=>h.toJS():b==="toJSForTest"?()=>h.toJSForTest():Gu(c,h.get(b))),ownKeys:h=>h.getKeys(),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),deleteProperty:(h,b)=>(Rt.isEnabled(Aa.Trivial)&&Rt.trivial(`obj[${b}]`),io.deleteInternal(c,h,b),!0)}}static setInternal(c,h,b,E){if(b.includes("."))throw new kr(mr.ErrInvalidObjectKey,"key must not contain the '.'.");const D=c.issueTimeTicket(),U=rg(c,E,D),Y=h.set(b,U,D);c.registerElement(U,h),Y&&c.registerRemovedElement(Y),c.push(ch.create(b,U.deepcopy(),h.getCreatedAt(),D))}static buildObjectMembers(c,h){const b={};for(const[E,D]of Object.entries(h)){if(E.includes("."))throw new kr(mr.ErrInvalidObjectKey,"key must not contain the '.'.");const U=c.issueTimeTicket(),Y=rg(c,D,U);b[E]=Y}return b}static deleteInternal(c,h,b){const E=c.issueTimeTicket(),D=h.deleteByKey(b,E);D&&(c.push(Vd.create(h.getCreatedAt(),D.getCreatedAt(),E)),c.registerRemovedElement(D))}getHandlers(){return this.handlers}}function R6(v,c){const h=new ai(v,c);return new Proxy(c,h.getHandlers())}function I6(v){return typeof v=="string"||v instanceof String?!isNaN(v):!1}function vb(v){return["concat","entries","every","filter","find","findIndex","forEach","join","keys","map","reduce","reduceRight","slice","some","toLocaleString","toString","values"].includes(v)}class ai{constructor(c,h){s(this,"context"),s(this,"handlers"),s(this,"array"),this.context=c,this.array=h,this.handlers={get:(b,E,D)=>E==="getID"?()=>b.getCreatedAt():E==="getElementByID"?U=>{const Y=b.getByID(U);if(!(!Y||Y.isRemoved()))return td(c,Y)}:E==="getElementByIndex"?U=>{const Y=b.get(U);return td(c,Y)}:E==="getLast"?()=>td(c,b.getLast()):E==="deleteByID"?U=>{const Y=ai.deleteInternalByID(c,b,U);return td(c,Y)}:E==="insertAfter"?(U,Y)=>{const fe=ai.insertAfterInternal(c,b,U,Y);return td(c,fe)}:E==="insertBefore"?(U,Y)=>{const fe=ai.insertBeforeInternal(c,b,U,Y);return td(c,fe)}:E==="moveBefore"?(U,Y)=>{ai.moveBeforeInternal(c,b,U,Y)}:E==="moveAfter"?(U,Y)=>{ai.moveAfterInternal(c,b,U,Y)}:E==="moveFront"?U=>{ai.moveFrontInternal(c,b,U)}:E==="moveLast"?U=>{ai.moveLastInternal(c,b,U)}:I6(E)?Gu(c,b.get(Number(E))):E==="push"?U=>ai.pushInternal(c,b,U):E==="splice"?(U,Y,...fe)=>ai.splice(c,b,U,Y,...fe):E==="length"?b.length:typeof E=="symbol"&&E===Symbol.iterator?ai.iteratorInternal.bind(this,c,b):E==="includes"?(U,Y)=>ai.includes(c,b,U,Y):E==="indexOf"?(U,Y)=>ai.indexOf(c,b,U,Y):E==="lastIndexOf"?(U,Y)=>ai.lastIndexOf(c,b,U,Y):E==="toJSForTest"?()=>b.toJSForTest():E==="toTestString"?()=>ai.toTestString(b):typeof E=="string"&&vb(E)?(...U)=>{const Y=Array.from(b).map(fe=>Gu(c,fe));return Array.prototype[E].apply(Y,U)}:Reflect.get(b,E,D),deleteProperty:(b,E)=>(Rt.isEnabled(Aa.Trivial)&&Rt.trivial(`array[${E}]`),ai.deleteInternalByIndex(c,b,Number.parseInt(E)),!0)}}static*iteratorInternal(c,h){for(const b of h)yield td(c,b)}static buildArrayElements(c,h){const b=[];for(const E of h){const D=c.issueTimeTicket(),U=rg(c,E,D);b.push(U)}return b}static pushInternal(c,h,b){return ai.insertAfterInternal(c,h,h.getLastCreatedAt(),b),h.length}static moveBeforeInternal(c,h,b,E){const D=c.issueTimeTicket(),U=h.getPrevCreatedAt(b);h.moveAfter(U,E,D),c.push(qd.create(h.getCreatedAt(),U,E,D))}static moveAfterInternal(c,h,b,E){const D=c.issueTimeTicket();h.moveAfter(b,E,D),c.push(qd.create(h.getCreatedAt(),b,E,D))}static moveFrontInternal(c,h,b){const E=c.issueTimeTicket(),D=h.getHead();h.moveAfter(D.getCreatedAt(),b,E),c.push(qd.create(h.getCreatedAt(),D.getCreatedAt(),b,E))}static moveLastInternal(c,h,b){const E=c.issueTimeTicket(),D=h.getLastCreatedAt();h.moveAfter(D,b,E),c.push(qd.create(h.getCreatedAt(),D,b,E))}static insertAfterInternal(c,h,b,E){const D=c.issueTimeTicket(),U=rg(c,E,D);return h.insertAfter(b,U),c.registerElement(U,h),c.push(Fm.create(h.getCreatedAt(),b,U.deepcopy(),D)),U}static insertBeforeInternal(c,h,b,E){return ai.insertAfterInternal(c,h,h.getPrevCreatedAt(b),E)}static deleteInternalByIndex(c,h,b){const E=c.issueTimeTicket(),D=h.deleteByIndex(b,E);if(D)return c.push(Vd.create(h.getCreatedAt(),D.getCreatedAt(),E)),c.registerRemovedElement(D),D}static deleteInternalByID(c,h,b){const E=c.issueTimeTicket(),D=h.delete(b,E);return c.push(Vd.create(h.getCreatedAt(),D.getCreatedAt(),E)),c.registerRemovedElement(D),D}static splice(c,h,b,E,...D){const U=h.length,Y=b>=0?Math.min(b,U):Math.max(U+b,0),fe=E===void 0?U:E<0?Y:Math.min(Y+E,U),me=[];for(let Pe=Y;Pe=U)return!1;if(wi.isSupport(b))return Array.from(h).map(me=>Gu(c,me)).includes(b,Y);for(let fe=Y;fe=U)return-1;if(wi.isSupport(b))return Array.from(h).map(me=>Gu(c,me)).indexOf(b,Y);for(let fe=Y;fe=U?U-1:E<0?E+U:E;if(Y<0)return-1;if(wi.isSupport(b))return Array.from(h).map(me=>Gu(c,me)).lastIndexOf(b,Y);for(let fe=Y;fe>0;fe--)if(((D=h.get(fe))==null?void 0:D.getID())===b.getID())return fe;return-1}static toTestString(c){return c.toTestString()}getHandlers(){return this.handlers}}class Qp{constructor(c,h){s(this,"context"),s(this,"text"),this.context=c,this.text=h}initialize(c,h){this.context=c,this.text=h}getID(){return this.text.getID()}edit(c,h,b,E){if(!this.context||!this.text){Rt.fatal("it is not initialized yet");return}if(c>h){Rt.fatal("from should be less than or equal to to");return}const D=this.text.indexRangeToPosRange(c,h);Rt.isEnabled(Aa.Debug)&&Rt.debug(`EDIT: f:${c}->${D[0].toTestString()}, t:${h}->${D[1].toTestString()} c:${b}`);const U=E?Ei(E):void 0,Y=this.context.issueTimeTicket(),[fe,,me,Pe]=this.text.edit(D,b,Y,U);for(const vt of me)this.context.registerGCPair(vt);return this.context.push(new Um(this.text.getCreatedAt(),D[0],D[1],fe,b,U?new Map(Object.entries(U)):new Map,Y)),this.text.findIndexesFromRange(Pe)}delete(c,h){return this.edit(c,h,"")}empty(){return this.edit(0,this.length,"")}setStyle(c,h,b){if(!this.context||!this.text)return Rt.fatal("it is not initialized yet"),!1;if(c>h)return Rt.fatal("from should be less than or equal to to"),!1;const E=this.text.indexRangeToPosRange(c,h);Rt.isEnabled(Aa.Debug)&&Rt.debug(`STYL: f:${c}->${E[0].toTestString()}, t:${h}->${E[1].toTestString()} a:${JSON.stringify(b)}`);const D=Ei(b),U=this.context.issueTimeTicket(),[Y,fe]=this.text.setStyle(E,D,U);for(const me of fe)this.context.registerGCPair(me);return this.context.push(new zm(this.text.getCreatedAt(),E[0],E[1],Y,new Map(Object.entries(D)),U)),!0}indexRangeToPosRange(c){if(!this.context||!this.text){Rt.fatal("it is not initialized yet");return}const h=this.text.indexRangeToPosRange(c[0],c[1]);return[h[0].toStruct(),h[1].toStruct()]}posRangeToIndexRange(c){if(!this.context||!this.text){Rt.fatal("it is not initialized yet");return}const h=this.text.findIndexesFromRange([Ua.fromStruct(c[0]),Ua.fromStruct(c[1])]);return[h[0],h[1]]}toTestString(){if(!this.context||!this.text){Rt.fatal("it is not initialized yet");return}return this.text.toTestString()}values(){if(!this.context||!this.text){Rt.fatal("it is not initialized yet");return}return this.text.values()}get length(){return this.text.length}getTreeByIndex(){return this.text.getTreeByIndex()}getTreeByID(){return this.text.getTreeByID()}toString(){return!this.context||!this.text?(Rt.fatal("it is not initialized yet"),""):this.text.toString()}toJSON(){if(!this.context||!this.text)throw new Error("it is not initialized yet");return this.text.toJSON()}toJSForTest(){if(!this.context||!this.text)throw new Error("it is not initialized yet");return this.text.toJSForTest()}createRangeForTest(c,h){if(!this.context||!this.text){Rt.fatal("it is not initialized yet");return}return this.text.indexRangeToPosRange(c,h)}}class Wp{constructor(c,h){s(this,"valueType"),s(this,"value"),s(this,"context"),s(this,"counter"),this.valueType=c,this.value=h}initialize(c,h){this.valueType=h.getValueType(),this.context=c,this.counter=h,this.value=h.getValue()}getID(){return this.counter.getID()}getValue(){return this.value}getValueType(){return this.valueType}increase(c){if(!this.context||!this.counter){Rt.fatal("it is not initialized yet");return}const h=this.context.issueTimeTicket(),b=wi.of(c,h);if(!b.isNumericType())throw new TypeError(`Unsupported type of value: ${typeof b.getValue()}`);return this.counter.increase(b),this.context.push(qi.create(this.counter.getCreatedAt(),b,h)),this}toJSForTest(){if(!this.context||!this.counter)throw new Error("it is not initialized yet");return this.counter.toJSForTest()}}function IS(v,c,h){const{type:b}=v,E=h.issueTimeTicket();if(b===Zc){gh(v);const{value:D}=v,U=Rs.create(Za.of(E,0),b,D);c.append(U)}else{const{children:D=[]}=v;let{attributes:U}=v,Y;if(typeof U=="object"&&!Yx(U)){U=Ei(U),Y=new Ya;for(const[me,Pe]of Object.entries(U))Y.set(me,Pe,E)}const fe=Rs.create(Za.of(E,0),b,void 0,Y);c.append(fe);for(const me of D)IS(me,fe,h)}}function Ok(v,c){const{type:h}=c,b=v.issueTimeTicket();let E;if(c.type===Zc){const{value:D}=c;E=Rs.create(Za.of(b,0),h,D)}else if(c){const{children:D=[]}=c;let{attributes:U}=c,Y;if(typeof U=="object"&&!Yx(U)){U=Ei(U),Y=new Ya;for(const[fe,me]of Object.entries(U))Y.set(fe,me,b)}E=Rs.create(Za.of(v.issueTimeTicket(),0),h,void 0,Y);for(const fe of D)IS(fe,E,v)}return E}function gh(v){if(!v.value.length)throw new Error("text node cannot have empty value");return!0}function Vp(v){if(!v.length)return!0;if(v[0].type===Zc)for(const h of v){const{type:b}=h;if(b!==Zc)throw new Error("element node and text node cannot be passed together");gh(h)}else for(const h of v){const{type:b}=h;if(b===Zc)throw new Error("element node and text node cannot be passed together")}return!0}class ng{constructor(c){s(this,"initialRoot"),s(this,"context"),s(this,"tree"),this.initialRoot=c}initialize(c,h){this.context=c,this.tree=h}getID(){return this.tree.getID()}buildRoot(c){if(!this.initialRoot)return Rs.create(Za.of(c.issueTimeTicket(),0),Yc);const h=Rs.create(Za.of(c.issueTimeTicket(),0),this.initialRoot.type);for(const b of this.initialRoot.children)IS(b,h,c);return h}getSize(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getSize()}getNodeSize(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getNodeSize()}getIndexTree(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getIndexTree()}styleByPath(c,h){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(!c.length)throw new Error("path should not be empty");const[b,E]=this.tree.pathToPosRange(c),D=this.context.issueTimeTicket(),U=h?Ei(h):void 0,[Y]=this.tree.style([b,E],U,D);this.context.push(ql.create(this.tree.getCreatedAt(),b,E,Y,U?new Map(Object.entries(U)):new Map,D))}style(c,h,b){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(c>h)throw new Error("from should be less than or equal to to");const E=this.tree.findPos(c),D=this.tree.findPos(h),U=this.context.issueTimeTicket(),Y=b?Ei(b):void 0,[fe,me]=this.tree.style([E,D],Y,U);for(const Pe of me)this.context.registerGCPair(Pe);this.context.push(ql.create(this.tree.getCreatedAt(),E,D,fe,Y?new Map(Object.entries(Y)):new Map,U))}removeStyle(c,h,b){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(c>h)throw new Error("from should be less than or equal to to");const E=this.tree.findPos(c),D=this.tree.findPos(h),U=this.context.issueTimeTicket(),[Y,fe]=this.tree.removeStyle([E,D],b,U);for(const me of fe)this.context.registerGCPair(me);this.context.push(ql.createTreeRemoveStyleOperation(this.tree.getCreatedAt(),E,D,Y,b,U))}editInternal(c,h,b,E=0){var D;if(b.length!==0&&b[0]&&(Vp(b),b[0].type!==Zc))for(const Pe of b){const{children:vt=[]}=Pe;Vp(vt)}const U=this.context.getLastTimeTicket();let Y=new Array;if(((D=b[0])==null?void 0:D.type)===Zc){let Pe="";for(const vt of b){const{value:ft}=vt;Pe+=ft}Y.push(Rs.create(Za.of(this.context.issueTimeTicket(),0),Zc,Pe))}else Y=b.map(Pe=>Pe&&Ok(this.context,Pe)).filter(Pe=>Pe);const[,fe,me]=this.tree.edit([c,h],Y.length?Y.map(Pe=>Pe==null?void 0:Pe.deepcopy()):void 0,E,U,()=>this.context.issueTimeTicket());for(const Pe of fe)this.context.registerGCPair(Pe);return this.context.push(Hm.create(this.tree.getCreatedAt(),c,h,Y.length?Y:void 0,E,me,U)),!0}editByPath(c,h,b,E=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(c.length!==h.length)throw new Error("path length should be equal");if(!c.length||!h.length)throw new Error("path should not be empty");const D=this.tree.pathToPos(c),U=this.tree.pathToPos(h);return this.editInternal(D,U,b?[b]:[],E)}editBulkByPath(c,h,b,E=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(c.length!==h.length)throw new Error("path length should be equal");if(!c.length||!h.length)throw new Error("path should not be empty");const D=this.tree.pathToPos(c),U=this.tree.pathToPos(h);return this.editInternal(D,U,b,E)}edit(c,h,b,E=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(c>h)throw new Error("from should be less than or equal to to");const D=this.tree.findPos(c),U=this.tree.findPos(h);return this.editInternal(D,U,b?[b]:[],E)}editBulk(c,h,b,E=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(c>h)throw new Error("from should be less than or equal to to");const D=this.tree.findPos(c),U=this.tree.findPos(h);return this.editInternal(D,U,b,E)}toXML(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.toXML()}toJSON(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.toJSON()}toJSForTest(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.toJSForTest()}toJSInfoForTest(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.toJSInfoForTest()}getRootTreeNode(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getRootTreeNode()}indexToPath(c){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.indexToPath(c)}pathToIndex(c){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.pathToIndex(c)}pathRangeToPosRange(c){if(!this.context||!this.tree){Rt.fatal("it is not initialized yet");return}const h=[this.tree.pathToIndex(c[0]),this.tree.pathToIndex(c[1])],b=this.tree.indexRangeToPosRange(h);return[b[0].toStruct(),b[1].toStruct()]}indexRangeToPosRange(c){if(!this.context||!this.tree){Rt.fatal("it is not initialized yet");return}return this.tree.indexRangeToPosStructRange(c)}posRangeToIndexRange(c){if(!this.context||!this.tree){Rt.fatal("it is not initialized yet");return}const h=[Wl.fromStruct(c[0]),Wl.fromStruct(c[1])];return this.tree.posRangeToIndexRange(h)}posRangeToPathRange(c){if(!this.context||!this.tree){Rt.fatal("it is not initialized yet");return}const h=[Wl.fromStruct(c[0]),Wl.fromStruct(c[1])];return this.tree.posRangeToPathRange(h)}}function NS(v,c){return Ns(v,c)}function td(v,c){if(c){if(c instanceof wi)return c;if(c instanceof Cs)return Ns(v,c);if(c instanceof _a)return R6(v,c);if(c instanceof ol)return new Qp(v,c);if(c instanceof ro){const h=new Wp(Vu.IntegerCnt,0);return h.initialize(v,c),h}else if(c instanceof Io){const h=new ng;return h.initialize(v,c),h}}else return;throw new TypeError(`Unsupported type of element: ${typeof c}`)}function Gu(v,c){const h=td(v,c);return h instanceof wi?h.getValue():h}function rg(v,c,h){let b;if(wi.isSupport(c))b=wi.of(c,h);else if(Array.isArray(c))b=_a.create(h,ai.buildArrayElements(v,c));else if(typeof c=="object")c instanceof Qp?(b=ol.create(Up.create(),h),c.initialize(v,b)):c instanceof Wp?(b=ro.create(c.getValueType(),c.getValue(),h),c.initialize(v,b)):c instanceof ng?(b=Io.create(c.buildRoot(v),h),c.initialize(v,b)):b=Cs.create(h,io.buildObjectMembers(v,c));else throw new TypeError(`Unsupported type of value: ${typeof c}`);return b}const ig=50;class DS{constructor(){s(this,"undoStack",[]),s(this,"redoStack",[])}hasUndo(){return this.undoStack.length>0}hasRedo(){return this.redoStack.length>0}pushUndo(c){this.undoStack.length>=ig&&this.undoStack.shift(),this.undoStack.push(c)}popUndo(){return this.undoStack.pop()}pushRedo(c){this.redoStack.length>=ig&&this.redoStack.shift(),this.redoStack.push(c)}popRedo(){return this.redoStack.pop()}clearRedo(){this.redoStack=[]}getUndoStackForTest(){return this.undoStack}getRedoStackForTest(){return this.redoStack}}const ag="yorkie-devtools-panel",Sk="yorkie-devtools-sdk";let bh="disconnected";const sg=new Map,og=new Map;typeof window<"u"&&(window.transactionEventsByDocKey=og);function qp(v,c){(c!=null&&c.force||bh!=="disconnected")&&window.postMessage({source:Sk,...v},"*")}function N6(v){if(!v.isEnableDevtools()||typeof window>"u"||sg.has(v.getKey()))return;og.set(v.getKey(),[]);const c=v.subscribe("all",h=>{h.some(b=>b.type!==Di.StatusChanged&&b.type!==Di.Snapshot&&b.type!==Di.LocalChange&&b.type!==Di.RemoteChange&&b.type!==Di.Initialized&&b.type!==Di.Watched&&b.type!==Di.Unwatched&&b.type!==Di.PresenceChanged)||(og.get(v.getKey()).push(h),bh==="synced"&&qp({msg:"doc::sync::partial",docKey:v.getKey(),event:h}))});sg.set(v.getKey(),[c]),qp({msg:"refresh-devtools"},{force:!0}),window.addEventListener("message",h=>{var b;if(((b=h.data)==null?void 0:b.source)!==ag)return;switch(h.data.msg){case"devtools::connect":if(bh!=="disconnected")break;bh="connected",qp({msg:"doc::available",docKey:v.getKey()}),Rt.info(`[YD] Devtools connected. Doc: ${v.getKey()}`);break;case"devtools::disconnect":bh="disconnected",Rt.info(`[YD] Devtools disconnected. Doc: ${v.getKey()}`);break;case"devtools::subscribe":bh="synced",qp({msg:"doc::sync::full",docKey:v.getKey(),events:og.get(v.getKey())}),Rt.info(`[YD] Devtools subscribed. Doc: ${v.getKey()}`);break}})}var Yu=(v=>(v.Detached="detached",v.Attached="attached",v.Removed="removed",v))(Yu||{}),Di=(v=>(v.StatusChanged="status-changed",v.ConnectionChanged="connection-changed",v.SyncStatusChanged="sync-status-changed",v.Snapshot="snapshot",v.LocalChange="local-change",v.RemoteChange="remote-change",v.Initialized="initialized",v.Watched="watched",v.Unwatched="unwatched",v.PresenceChanged="presence-changed",v))(Di||{}),lg=(v=>(v.Connected="connected",v.Disconnected="disconnected",v))(lg||{}),ug=(v=>(v.Synced="synced",v.SyncFailed="sync-failed",v))(ug||{});class PS{constructor(c,h){s(this,"key"),s(this,"status"),s(this,"opts"),s(this,"changeID"),s(this,"checkpoint"),s(this,"localChanges"),s(this,"root"),s(this,"clone"),s(this,"eventStream"),s(this,"eventStreamObserver"),s(this,"onlineClients"),s(this,"presences"),s(this,"history"),s(this,"internalHistory"),s(this,"isUpdating"),this.opts=h||{},this.key=c,this.status="detached",this.root=Hp.create(),this.changeID=fS,this.checkpoint=ek,this.localChanges=[],this.eventStream=C6(b=>{this.eventStreamObserver=b}),this.onlineClients=new Set,this.presences=new Map,this.isUpdating=!1,this.internalHistory=new DS,this.history={canUndo:this.canUndo.bind(this),canRedo:this.canRedo.bind(this),undo:this.undo.bind(this),redo:this.redo.bind(this)},N6(this)}update(c,h){if(this.getStatus()==="removed")throw new kr(mr.ErrDocumentRemoved,`${this.key} is removed`);this.ensureClone();const b=this.changeID.getActorID(),E=mh.create(this.changeID.next(),this.clone.root,this.clone.presences.get(b)||{},h);try{const D=NS(E,this.clone.root.getObject());this.presences.has(b)||this.clone.presences.set(b,{}),this.isUpdating=!0,c(D,new lS(E,this.clone.presences.get(b)))}catch(D){throw this.clone=void 0,Rt.error(D),D}finally{this.isUpdating=!1}if(E.hasChange()){Rt.isEnabled(Aa.Trivial)&&Rt.trivial(`trying to update a local change: ${this.toJSON()}`);const D=E.getChange(),{opInfos:U,reverseOps:Y}=D.execute(this.root,this.presences,te.Local),fe=E.getReversePresence();fe&&Y.push({type:"presence",value:fe}),this.localChanges.push(D),Y.length>0&&this.internalHistory.pushUndo(Y),U.length>0&&this.internalHistory.clearRedo(),this.changeID=D.getID();const me=[];U.length>0&&me.push({type:"local-change",source:te.Local,value:{message:D.getMessage()||"",operations:U,actor:b,clientSeq:D.getID().getClientSeq(),serverSeq:D.getID().getServerSeq()},rawChange:this.isEnableDevtools()?D.toStruct():void 0}),D.hasPresenceChange()&&me.push({type:"presence-changed",source:te.Local,value:{clientID:b,presence:this.getPresence(b)}}),this.publish(me),Rt.isEnabled(Aa.Trivial)&&Rt.trivial(`after update a local change: ${this.toJSON()}`)}}subscribe(c,h,b,E){if(typeof c=="string"){if(typeof h!="function")throw new Error("Second argument must be a callback function");if(c==="presence"){const Y=h;return this.eventStream.subscribe(fe=>{for(const me of fe)me.type!=="initialized"&&me.type!=="watched"&&me.type!=="unwatched"&&me.type!=="presence-changed"||Y(me)},b,E)}if(c==="my-presence"){const Y=h;return this.eventStream.subscribe(fe=>{for(const me of fe)me.type!=="initialized"&&me.type!=="presence-changed"||me.type==="presence-changed"&&me.value.clientID!==this.changeID.getActorID()||Y(me)},b,E)}if(c==="others"){const Y=h;return this.eventStream.subscribe(fe=>{for(const me of fe)me.type!=="watched"&&me.type!=="unwatched"&&me.type!=="presence-changed"||me.value.clientID!==this.changeID.getActorID()&&Y(me)},b,E)}if(c==="connection"){const Y=h;return this.eventStream.subscribe(fe=>{for(const me of fe)me.type==="connection-changed"&&Y(me)},b,E)}if(c==="status"){const Y=h;return this.eventStream.subscribe(fe=>{for(const me of fe)me.type==="status-changed"&&Y(me)},b,E)}if(c==="sync"){const Y=h;return this.eventStream.subscribe(fe=>{for(const me of fe)me.type==="sync-status-changed"&&Y(me)},b,E)}if(c==="all"){const Y=h;return this.eventStream.subscribe(Y,b,E)}const D=c,U=h;return this.eventStream.subscribe(Y=>{for(const fe of Y){if(fe.type!=="local-change"&&fe.type!=="remote-change")continue;const me=[];for(const Pe of fe.value.operations)this.isSameElementOrChildOf(Pe.path,D)&&me.push(Pe);me.length&&U({...fe,value:{...fe.value,operations:me}})}},b,E)}if(typeof c=="function"){const D=c,U=h,Y=b;return this.eventStream.subscribe(fe=>{for(const me of fe)me.type!=="snapshot"&&me.type!=="local-change"&&me.type!=="remote-change"||D(me)},U,Y)}throw new Error(`"${c}" is not a valid`)}publish(c){this.eventStreamObserver&&this.eventStreamObserver.next(c)}isSameElementOrChildOf(c,h){if(h===c)return!0;const b=c.split(".");return h.split(".").every((D,U)=>D===b[U])}applyChangePack(c){for(c.hasSnapshot()?this.applySnapshot(c.getCheckpoint().getServerSeq(),c.getSnapshot()):c.hasChanges()&&this.applyChanges(c.getChanges(),te.Remote);this.localChanges.length&&!(this.localChanges[0].getID().getClientSeq()>c.getCheckpoint().getClientSeq());)this.localChanges.shift();c.hasSnapshot()&&this.applyChanges(this.localChanges,te.Remote),this.checkpoint=this.checkpoint.forward(c.getCheckpoint()),this.garbageCollect(c.getMinSyncedTicket()),c.getIsRemoved()&&this.applyStatus("removed"),Rt.isEnabled(Aa.Trivial)&&Rt.trivial(`${this.root.toJSON()}`)}getCheckpoint(){return this.checkpoint}getChangeID(){return this.changeID}hasLocalChanges(){return this.localChanges.length>0}ensureClone(){this.clone||(this.clone={root:this.root.deepcopy(),presences:Ql(this.presences)})}createChangePack(){const c=Array.from(this.localChanges),h=this.checkpoint.increaseClientSeq(c.length);return Is.create(this.key,h,!1,c)}setActor(c){for(const h of this.localChanges)h.setActor(c);this.changeID=this.changeID.setActor(c)}isEnableDevtools(){return!!this.opts.enableDevtools}getKey(){return this.key}getStatus(){return this.status}getCloneRoot(){if(this.clone)return this.clone.root.getObject()}getRoot(){this.ensureClone();const c=mh.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});return NS(c,this.clone.root.getObject())}garbageCollect(c){return this.opts.disableGC?0:(this.clone&&this.clone.root.garbageCollect(c),this.root.garbageCollect(c))}getRootObject(){return this.root.getObject()}getGarbageLen(){return this.root.getGarbageLen()}getGarbageLenFromClone(){return this.clone.root.getGarbageLen()}toJSON(){return this.root.toJSON()}toSortedJSON(){return this.root.toSortedJSON()}toJSForTest(){return{...this.getRoot().toJSForTest(),key:"root"}}applySnapshot(c,h){const{root:b,presences:E}=ma.bytesToSnapshot(h);this.root=new Hp(b),this.presences=E,this.changeID=this.changeID.syncLamport(c),this.clone=void 0,this.publish([{type:"snapshot",source:te.Remote,value:{snapshot:this.isEnableDevtools()?ma.bytesToHex(h):void 0,serverSeq:c.toString()}}])}applyChanges(c,h){Rt.isEnabled(Aa.Debug)&&Rt.debug(`trying to apply ${c.length} remote changes.elements:${this.root.getElementMapSize()}, removeds:${this.root.getGarbageElementSetSize()}`),Rt.isEnabled(Aa.Trivial)&&Rt.trivial(c.map(b=>`${b.getID().toTestString()} ${b.toTestString()}`).join(` -`));for(const b of c)this.applyChange(b,h);Rt.isEnabled(Aa.Debug)&&Rt.debug(`after appling ${c.length} remote changes.elements:${this.root.getElementMapSize()}, removeds:${this.root.getGarbageElementSetSize()}`)}applyChange(c,h){this.ensureClone(),c.execute(this.clone.root,this.clone.presences,h);const b=[],E=c.getID().getActorID();if(c.hasPresenceChange()&&this.onlineClients.has(E)){const U=c.getPresenceChange();switch(U.type){case Qd.Put:b.push(this.presences.has(E)?{type:"presence-changed",source:h,value:{clientID:E,presence:U.presence}}:{type:"watched",source:te.Remote,value:{clientID:E,presence:U.presence}});break;case Qd.Clear:b.push({type:"unwatched",source:te.Remote,value:{clientID:E,presence:this.getPresence(E)}}),this.removeOnlineClient(E);break}}const{opInfos:D}=c.execute(this.root,this.presences,h);if(this.changeID=this.changeID.syncLamport(c.getID().getLamport()),D.length>0){const U=this.isEnableDevtools()?c.toStruct():void 0;b.push(h===te.Remote?{type:"remote-change",source:h,value:{actor:E,clientSeq:c.getID().getClientSeq(),serverSeq:c.getID().getServerSeq(),message:c.getMessage()||"",operations:D},rawChange:U}:{type:"local-change",source:h,value:{actor:E,clientSeq:c.getID().getClientSeq(),serverSeq:c.getID().getServerSeq(),message:c.getMessage()||"",operations:D},rawChange:U})}b.length>0&&this.publish(b)}applyWatchStream(c){if(c.body.case==="initialization"){const h=c.body.value.clientIds,b=new Set;for(const E of h)E!==this.changeID.getActorID()&&b.add(E);this.setOnlineClients(b),this.publish([{type:"initialized",source:te.Local,value:this.getPresences()}]);return}if(c.body.case==="event"){const{type:h,publisher:b}=c.body.value,E=[];if(h===ri.DOCUMENT_WATCHED)this.addOnlineClient(b),this.hasPresence(b)&&E.push({type:"watched",source:te.Remote,value:{clientID:b,presence:this.getPresence(b)}});else if(h===ri.DOCUMENT_UNWATCHED){const D=this.getPresence(b);this.removeOnlineClient(b),D&&E.push({type:"unwatched",source:te.Remote,value:{clientID:b,presence:D}})}E.length>0&&this.publish(E)}}applyStatus(c){this.status=c,c==="detached"&&this.setActor(Pm),this.publish([{source:c==="removed"?te.Remote:te.Local,type:"status-changed",value:c==="attached"?{status:c,actorID:this.changeID.getActorID()}:{status:c}}])}applyDocEvent(c){if(c.type==="status-changed"){this.applyStatus(c.value.status),c.value.status==="attached"&&this.setActor(c.value.actorID);return}if(c.type==="snapshot"){const{snapshot:h,serverSeq:b}=c.value;if(!h)return;this.applySnapshot(kn.fromString(b),ma.hexToBytes(h));return}if(c.type==="local-change"||c.type==="remote-change"){if(!c.rawChange)return;const h=No.fromStruct(c.rawChange);this.applyChange(h,c.source)}if(c.type==="initialized"){const h=new Set;for(const{clientID:b,presence:E}of c.value)h.add(b),this.presences.set(b,E);this.setOnlineClients(h);return}if(c.type==="watched"){const{clientID:h,presence:b}=c.value;this.addOnlineClient(h),this.presences.set(h,b);return}if(c.type==="unwatched"){const{clientID:h}=c.value;this.removeOnlineClient(h),this.presences.delete(h)}if(c.type==="presence-changed"){const{clientID:h,presence:b}=c.value;this.presences.set(h,b)}}applyTransactionEvent(c){for(const h of c)this.applyDocEvent(h)}getValueByPath(c){if(!c.startsWith("$"))throw new kr(mr.ErrInvalidArgument,'path must start with "$"');const h=c.split(".");h.shift();let b=this.getRoot();for(const E of h)if(b=b[E],b===void 0)return;return b}setOnlineClients(c){this.onlineClients=c}resetOnlineClients(){this.onlineClients=new Set}addOnlineClient(c){this.onlineClients.add(c)}removeOnlineClient(c){this.onlineClients.delete(c)}hasPresence(c){return this.presences.has(c)}getMyPresence(){if(this.status!=="attached")return{};const c=this.presences.get(this.changeID.getActorID());return c?Ql(c):{}}getPresence(c){if(c===this.changeID.getActorID())return this.getMyPresence();if(!this.onlineClients.has(c))return;const h=this.presences.get(c);return h?Ql(h):void 0}getPresenceForTest(c){const h=this.presences.get(c);return h?Ql(h):void 0}getPresences(){const c=[];c.push({clientID:this.changeID.getActorID(),presence:Ql(this.getMyPresence())});for(const h of this.onlineClients)this.presences.has(h)&&c.push({clientID:h,presence:Ql(this.presences.get(h))});return c}getSelfForTest(){return{clientID:this.getChangeID().getActorID(),presence:this.getMyPresence()}}getOthersForTest(){const c=this.getChangeID().getActorID();return this.getPresences().filter(h=>h.clientID!==c).sort((h,b)=>h.clientID>b.clientID?1:-1)}canUndo(){return this.internalHistory.hasUndo()&&!this.isUpdating}canRedo(){return this.internalHistory.hasRedo()&&!this.isUpdating}undo(){if(this.isUpdating)throw new Error("Undo is not allowed during an update");const c=this.internalHistory.popUndo();if(c===void 0)throw new Error("There is no operation to be undone");this.ensureClone();const h=mh.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const me of c){if(!(me instanceof fs)){new lS(h,Ql(this.clone.presences.get(this.changeID.getActorID()))).set(me.value,{addToHistory:!0});continue}const Pe=h.issueTimeTicket();me.setExecutedAt(Pe),h.push(me)}const b=h.getChange();b.execute(this.clone.root,this.clone.presences,te.UndoRedo);const{opInfos:E,reverseOps:D}=b.execute(this.root,this.presences,te.UndoRedo),U=h.getReversePresence();if(U&&D.push({type:"presence",value:U}),D.length>0&&this.internalHistory.pushRedo(D),!b.hasPresenceChange()&&E.length===0)return;this.localChanges.push(b),this.changeID=b.getID();const Y=this.changeID.getActorID(),fe=[];E.length>0&&fe.push({type:"local-change",source:te.UndoRedo,value:{message:b.getMessage()||"",operations:E,actor:Y,clientSeq:b.getID().getClientSeq(),serverSeq:b.getID().getServerSeq()},rawChange:this.isEnableDevtools()?b.toStruct():void 0}),b.hasPresenceChange()&&fe.push({type:"presence-changed",source:te.UndoRedo,value:{clientID:Y,presence:this.getPresence(Y)}}),this.publish(fe)}redo(){if(this.isUpdating)throw new Error("Redo is not allowed during an update");const c=this.internalHistory.popRedo();if(c===void 0)throw new Error("There is no operation to be redone");this.ensureClone();const h=mh.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const me of c){if(!(me instanceof fs)){new lS(h,Ql(this.clone.presences.get(this.changeID.getActorID()))).set(me.value,{addToHistory:!0});continue}const Pe=h.issueTimeTicket();me.setExecutedAt(Pe),h.push(me)}const b=h.getChange();b.execute(this.clone.root,this.clone.presences,te.UndoRedo);const{opInfos:E,reverseOps:D}=b.execute(this.root,this.presences,te.UndoRedo),U=h.getReversePresence();if(U&&D.push({type:"presence",value:U}),D.length>0&&this.internalHistory.pushUndo(D),!b.hasPresenceChange()&&E.length===0)return;this.localChanges.push(b),this.changeID=b.getID();const Y=this.changeID.getActorID(),fe=[];E.length>0&&fe.push({type:"local-change",source:te.UndoRedo,value:{message:b.getMessage()||"",operations:E,actor:Y,clientSeq:b.getID().getClientSeq(),serverSeq:b.getID().getServerSeq()},rawChange:this.isEnableDevtools()?b.toStruct():void 0}),b.hasPresenceChange()&&fe.push({type:"presence-changed",source:te.UndoRedo,value:{clientID:Y,presence:this.getPresence(Y)}}),this.publish(fe)}getUndoStackForTest(){return this.internalHistory.getUndoStackForTest()}getRedoStackForTest(){return this.internalHistory.getRedoStackForTest()}}function Ek(v,c){return h=>async b=>(v&&b.header.set("x-api-key",v),c&&b.header.set("authorization",c),await h(b))}const _k={name:"yorkie-js-sdk",version:"0.4.27",description:"Yorkie JS SDK",main:"./dist/yorkie-js-sdk.js",typings:"./dist/yorkie-js-sdk.d.ts",files:["dist"],scripts:{build:"tsc && vite build","build:proto":"npx buf generate","build:docs":"typedoc","build:examples":"npm run build --workspace examples","build:ghpages":"mkdir -p ghpages/examples && cp -r docs ghpages/api-reference && find examples -name 'dist' -type d -exec sh -c 'cp -r {} ghpages/examples/$(basename $(dirname {}))' \\;",dev:"vite build -c vite.preview.ts && vite preview",test:"vitest run","test:watch":"vitest","test:bench":"vitest bench","test:ci":"vitest run --coverage","test:yorkie.dev":"TEST_RPC_ADDR=https://api.yorkie.dev vitest run --coverage",lint:"eslint . --fix --max-warnings=0 --ext .ts",prepare:"npm run build"},engines:{node:">=18.0.0",npm:">=7.1.0"},repository:{type:"git",url:"git+https://github.com/yorkie-team/yorkie-js-sdk.git"},author:{name:"hackerwins",email:"susukang98@gmail.com"},license:"Apache-2.0",bugs:{url:"https://github.com/yorkie-team/yorkie-js-sdk/issues"},homepage:"https://github.com/yorkie-team/yorkie-js-sdk#readme",devDependencies:{"@buf/googleapis_googleapis.connectrpc_es":"^1.4.0-20240524201209-f0e53af8f2fc.3","@bufbuild/buf":"^1.28.1","@bufbuild/protoc-gen-es":"^1.6.0","@connectrpc/protoc-gen-connect-es":"^1.4.0","@types/google-protobuf":"^3.15.5","@types/long":"^4.0.1","@typescript-eslint/eslint-plugin":"^5.30.6","@typescript-eslint/parser":"^5.30.6","@vitest/coverage-istanbul":"^0.34.5","@vitest/coverage-v8":"^0.34.5",eslint:"^8.19.0","eslint-plugin-jsdoc":"^39.3.3","eslint-plugin-prettier":"^4.2.1","eslint-plugin-tsdoc":"^0.2.16",husky:"^8.0.3",prettier:"^2.7.1","ts-node":"^10.9.1",typedoc:"^0.25.13",typescript:"^4.7.4","typescript-transform-paths":"^3.3.1",vite:"^4.4.9","vite-plugin-commonjs":"^0.10.1","vite-plugin-dts":"^3.9.1","vite-tsconfig-paths":"^4.2.1",vitest:"^0.34.5"},dependencies:{"@bufbuild/protobuf":"^1.6.0","@connectrpc/connect":"^1.4.0","@connectrpc/connect-web":"^1.4.0",long:"^5.2.0"},husky:{hooks:{"pre-commit":"npm run lint"}},workspaces:["examples/*"]};function Ck(){return v=>async c=>(c.header.set("x-yorkie-user-agent",_k.name+"/"+_k.version),await v(c))}var dg=(v=>(v.Manual="manual",v.Realtime="realtime",v.RealtimePushOnly="realtime-pushonly",v.RealtimeSyncOff="realtime-syncoff",v))(dg||{}),$S=(v=>(v.Deactivated="deactivated",v.Activated="activated",v))($S||{}),Rk=(v=>(v.SyncLoop="SyncLoop",v.WatchLoop="WatchLoop",v))(Rk||{});const Ob={syncLoopDuration:50,retrySyncLoopDelay:1e3,reconnectStreamDelay:1e3};class FS{constructor(c,h){s(this,"id"),s(this,"key"),s(this,"status"),s(this,"attachmentMap"),s(this,"apiKey"),s(this,"conditions"),s(this,"syncLoopDuration"),s(this,"reconnectStreamDelay"),s(this,"retrySyncLoopDelay"),s(this,"rpcClient"),s(this,"taskQueue"),s(this,"processing",!1),h=h||Ob,this.key=h.key?h.key:yk(),this.status="deactivated",this.attachmentMap=new Map,this.apiKey=h.apiKey||"",this.conditions={SyncLoop:!1,WatchLoop:!1},this.syncLoopDuration=h.syncLoopDuration||Ob.syncLoopDuration,this.reconnectStreamDelay=h.reconnectStreamDelay||Ob.reconnectStreamDelay,this.retrySyncLoopDelay=h.retrySyncLoopDelay||Ob.retrySyncLoopDelay,this.rpcClient=BI(aS,tb({baseUrl:c,interceptors:[Ek(h.apiKey,h.token),Ck()]})),this.taskQueue=[]}activate(){return this.isActive()?Promise.resolve():this.enqueueTask(async()=>this.rpcClient.activateClient({clientKey:this.key},{headers:{"x-shard-key":this.apiKey}}).then(c=>{this.id=c.clientId,this.status="activated",this.runSyncLoop(),Rt.info(`[AC] c:"${this.getKey()}" activated, id:"${this.id}"`)}).catch(c=>{throw Rt.error(`[AC] c:"${this.getKey()}" err :`,c),this.handleConnectError(c),c}))}deactivate(){return this.status==="deactivated"?Promise.resolve():this.enqueueTask(async()=>this.rpcClient.deactivateClient({clientId:this.id},{headers:{"x-shard-key":this.apiKey}}).then(()=>{this.deactivateInternal(),Rt.info(`[DC] c"${this.getKey()}" deactivated`)}).catch(c=>{throw Rt.error(`[DC] c:"${this.getKey()}" err :`,c),this.handleConnectError(c),c}))}attach(c,h={}){if(!this.isActive())throw new kr(mr.ErrClientNotActivated,`${this.key} is not active`);if(c.getStatus()!==Yu.Detached)throw new kr(mr.ErrDocumentNotDetached,`${c.getKey()} is not detached`);c.setActor(this.id),c.update((E,D)=>D.set(h.initialPresence||{}));const b=h.syncMode??"realtime";return this.enqueueTask(async()=>this.rpcClient.attachDocument({clientId:this.id,changePack:ma.toChangePack(c.createChangePack())},{headers:{"x-shard-key":`${this.apiKey}/${c.getKey()}`}}).then(async E=>{const D=ma.fromChangePack(E.changePack);return c.applyChangePack(D),c.getStatus()===Yu.Removed||(c.applyStatus(Yu.Attached),this.attachmentMap.set(c.getKey(),new _6(this.reconnectStreamDelay,c,E.documentId,b)),b!=="manual"&&await this.runWatchLoop(c.getKey()),Rt.info(`[AD] c:"${this.getKey()}" attaches d:"${c.getKey()}"`)),c}).catch(E=>{throw Rt.error(`[AD] c:"${this.getKey()}" err :`,E),this.handleConnectError(E),E}))}detach(c,h={}){if(!this.isActive())throw new kr(mr.ErrClientNotActivated,`${this.key} is not active`);const b=this.attachmentMap.get(c.getKey());if(!b)throw new kr(mr.ErrDocumentNotAttached,`${c.getKey()} is not attached`);return c.update((E,D)=>D.clear()),this.enqueueTask(async()=>this.rpcClient.detachDocument({clientId:this.id,documentId:b.docID,changePack:ma.toChangePack(c.createChangePack()),removeIfNotAttached:h.removeIfNotAttached??!1},{headers:{"x-shard-key":`${this.apiKey}/${c.getKey()}`}}).then(E=>{const D=ma.fromChangePack(E.changePack);return c.applyChangePack(D),c.getStatus()!==Yu.Removed&&c.applyStatus(Yu.Detached),this.detachInternal(c.getKey()),Rt.info(`[DD] c:"${this.getKey()}" detaches d:"${c.getKey()}"`),c}).catch(E=>{throw Rt.error(`[DD] c:"${this.getKey()}" err :`,E),this.handleConnectError(E),E}))}async changeSyncMode(c,h){if(!this.isActive())throw new kr(mr.ErrClientNotActivated,`${this.key} is not active`);const b=this.attachmentMap.get(c.getKey());if(!b)throw new kr(mr.ErrDocumentNotAttached,`${c.getKey()} is not attached`);const E=b.syncMode;return E===h?c:(b.changeSyncMode(h),h==="manual"?(b.cancelWatchStream(),c):(h==="realtime"&&(b.remoteChangeEventReceived=!0),E==="manual"&&await this.runWatchLoop(c.getKey()),c))}sync(c){if(!this.isActive())throw new kr(mr.ErrClientNotActivated,`${this.key} is not active`);if(c){const h=this.attachmentMap.get(c.getKey());if(!h)throw new kr(mr.ErrDocumentNotAttached,`${c.getKey()} is not attached`);return this.enqueueTask(async()=>this.syncInternal(h,"realtime").catch(b=>{throw Rt.error(`[SY] c:"${this.getKey()}" err :`,b),this.handleConnectError(b),b}))}return this.enqueueTask(async()=>{const h=[];for(const[,b]of this.attachmentMap)h.push(this.syncInternal(b,b.syncMode));return Promise.all(h).catch(b=>{throw Rt.error(`[SY] c:"${this.getKey()}" err :`,b),this.handleConnectError(b),b})})}remove(c){if(!this.isActive())throw new kr(mr.ErrClientNotActivated,`${this.key} is not active`);const h=this.attachmentMap.get(c.getKey());if(!h)throw new kr(mr.ErrDocumentNotAttached,`${c.getKey()} is not attached`);c.setActor(this.id);const b=ma.toChangePack(c.createChangePack());return b.isRemoved=!0,this.enqueueTask(async()=>this.rpcClient.removeDocument({clientId:this.id,documentId:h.docID,changePack:b},{headers:{"x-shard-key":`${this.apiKey}/${c.getKey()}`}}).then(E=>{const D=ma.fromChangePack(E.changePack);c.applyChangePack(D),this.detachInternal(c.getKey()),Rt.info(`[RD] c:"${this.getKey()}" removes d:"${c.getKey()}"`)}).catch(E=>{throw Rt.error(`[RD] c:"${this.getKey()}" err :`,E),this.handleConnectError(E),E}))}getID(){return this.id}getKey(){return this.key}isActive(){return this.status==="activated"}getStatus(){return this.status}getCondition(c){return this.conditions[c]}runSyncLoop(){const c=()=>{if(!this.isActive()){Rt.debug(`[SL] c:"${this.getKey()}" exit sync loop`),this.conditions.SyncLoop=!1;return}const h=[];for(const[,b]of this.attachmentMap)b.needRealtimeSync()&&(b.remoteChangeEventReceived=!1,h.push(this.syncInternal(b,b.syncMode)));Promise.all(h).then(()=>setTimeout(c,this.syncLoopDuration)).catch(b=>{Rt.error(`[SL] c:"${this.getKey()}" sync failed:`,b),this.handleConnectError(b)?setTimeout(c,this.retrySyncLoopDelay):this.conditions.SyncLoop=!1})};Rt.debug(`[SL] c:"${this.getKey()}" run sync loop`),this.conditions.SyncLoop=!0,c()}async runWatchLoop(c){const h=this.attachmentMap.get(c);if(!h)throw new kr(mr.ErrDocumentNotAttached,`${c} is not attached`);return this.conditions.WatchLoop=!0,h.runWatchLoop(b=>{if(!this.isActive())return this.conditions.WatchLoop=!1,Promise.reject(new kr(mr.ErrClientNotActivated,`${this.key} is not active`));const E=new AbortController,D=this.rpcClient.watchDocument({clientId:this.id,documentId:h.docID},{headers:{"x-shard-key":`${this.apiKey}/${c}`},signal:E.signal});return h.doc.publish([{type:Di.ConnectionChanged,value:lg.Connected}]),Rt.info(`[WD] c:"${this.getKey()}" watches d:"${c}"`),new Promise((U,Y)=>{(async()=>{try{for await(const me of D)this.handleWatchDocumentsResponse(h,me),me.body.case==="initialization"&&U([D,E])}catch(me){h.doc.resetOnlineClients(),h.doc.publish([{type:Di.Initialized,source:te.Local,value:h.doc.getPresences()}]),h.doc.publish([{type:Di.ConnectionChanged,value:lg.Disconnected}]),Rt.debug(`[WD] c:"${this.getKey()}" unwatches`),this.handleConnectError(me)?b():this.conditions.WatchLoop=!1,Y(me)}})()})})}handleWatchDocumentsResponse(c,h){if(h.body.case==="event"&&h.body.value.type===ri.DOCUMENT_CHANGED){c.remoteChangeEventReceived=!0;return}c.doc.applyWatchStream(h)}deactivateInternal(){this.status="deactivated";for(const[c,h]of this.attachmentMap)this.detachInternal(c),h.doc.applyStatus(Yu.Detached)}detachInternal(c){const h=this.attachmentMap.get(c);h&&(h.cancelWatchStream(),this.attachmentMap.delete(c))}syncInternal(c,h){const{doc:b,docID:E}=c,D=b.createChangePack();return this.rpcClient.pushPullChanges({clientId:this.id,documentId:E,changePack:ma.toChangePack(D),pushOnly:h==="realtime-pushonly"},{headers:{"x-shard-key":`${this.apiKey}/${b.getKey()}`}}).then(U=>{const Y=ma.fromChangePack(U.changePack);if(Y.hasChanges()&&(c.syncMode==="realtime-pushonly"||c.syncMode==="realtime-syncoff"))return b;b.applyChangePack(Y),c.doc.publish([{type:Di.SyncStatusChanged,value:ug.Synced}]),b.getStatus()===Yu.Removed&&this.detachInternal(b.getKey());const fe=b.getKey(),me=Y.getChangeSize();return Rt.info(`[PP] c:"${this.getKey()}" sync d:"${fe}", push:${D.getChangeSize()} pull:${me} cp:${Y.getCheckpoint().toTestString()}`),b}).catch(U=>{throw b.publish([{type:Di.SyncStatusChanged,value:ug.SyncFailed}]),Rt.error(`[PP] c:"${this.getKey()}" err :`,U),U})}handleConnectError(c){return c instanceof u?c.code===o.Canceled||c.code===o.Unknown||c.code===o.ResourceExhausted||c.code===o.Unavailable?!0:((yS(c)===mr.ErrClientNotActivated||yS(c)===mr.ErrClientNotFound)&&this.deactivateInternal(),!1):!1}enqueueTask(c){return new Promise((h,b)=>{this.taskQueue.push(()=>c().then(h).catch(b)),this.processing||this.processNext()})}async processNext(){if(this.taskQueue.length===0){this.processing=!1;return}try{this.processing=!0,await this.taskQueue.shift()()}catch{Rt.error(`[TQ] c:"${this.getKey()}" process failed, id:"${this.id}"`)}this.processNext()}}const nd=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Ps={Client:FS,Document:PS,Primitive:wi,Text:Qp,Counter:Wp,Tree:ng,LogLevel:Aa,setLogLevel:cS,IntType:Vu.IntegerCnt,LongType:Vu.LongCnt};typeof globalThis<"u"&&(globalThis.yorkie={Client:FS,Document:PS,Primitive:wi,Text:Qp,Counter:Wp,Tree:ng,LogLevel:Aa,setLogLevel:cS,IntType:Vu.IntegerCnt,LongType:Vu.LongCnt}),r.Change=No,r.Client=FS,r.ClientCondition=Rk,r.ClientStatus=$S,r.Counter=Wp,r.Devtools=nd,r.DocEventType=Di,r.Document=PS,r.DocumentStatus=Yu,r.DocumentSyncStatus=ug,r.EventSourceDevPanel=ag,r.EventSourceSDK=Sk,r.LogLevel=Aa,r.OpSource=te,r.Primitive=wi,r.StreamConnectionStatus=lg,r.SyncMode=dg,r.Text=Qp,r.TimeTicket=Ga,r.Tree=ng,r.converter=ma,r.default=Ps,r.setLogLevel=cS,Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})})($L,$L.exports);var vC=$L.exports;class uet{constructor(t,n){Ls(this,"doc");Ls(this,"client");this.doc=t,this.client=n}}const GB=fn.define({combine(e){return e[e.length-1]}});Pd.define();class cet{constructor(t){Ls(this,"view");Ls(this,"conf");Ls(this,"_doc");this.view=t,this.conf=t.state.facet(GB),this._doc=this.conf.doc,this._doc.subscribe(n=>{if(n.type!=="snapshot")return;const r=this._doc.getRoot().content;t.dispatch({changes:{from:0,to:t.state.doc.length,insert:r.toString()},annotations:[os.remote.of(!0)]})}),this._doc.update(n=>{n.content||(n.content=new vC.Text)}),this._doc.subscribe("$.content",n=>{if(n.type!=="remote-change")return;const{operations:r}=n.value;r.forEach(i=>{if(i.type==="edit"){const a=[{from:Math.max(0,i.from),to:Math.max(0,i.to),insert:i.value.content}];t.dispatch({changes:a,annotations:[os.remote.of(!0)]})}})})}update(t){if(t.docChanged)for(const n of t.transactions){if(!["select","input","delete","move","undo","redo"].some(a=>n.isUserEvent(a))||n.annotation(os.remote))continue;let i=0;this._doc.update(a=>{n.changes.iterChanges((s,o,l,u,d)=>{const f=d.toJSON().join(` -`);a.content.edit(s+i,o+i,f),i+=f.length-(o-s)})})}}}const det=fa.fromClass(cet);var OC={exports:{}};/** - * @license - * Lodash - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */OC.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",o="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,d="__lodash_placeholder__",f=1,p=2,g=4,O=1,S=2,T=1,w=2,x=4,k=8,_=16,R=32,N=64,P=128,L=256,j=512,B=30,V="...",W=800,re=16,ee=1,q=2,ne=3,K=1/0,G=9007199254740991,ie=17976931348623157e292,H=NaN,Re=4294967295,Se=Re-1,Z=Re>>>1,ke=[["ary",P],["bind",T],["bindKey",w],["curry",k],["curryRight",_],["flip",j],["partial",R],["partialRight",N],["rearg",L]],$e="[object Arguments]",ae="[object Array]",Xe="[object AsyncFunction]",We="[object Boolean]",Ye="[object Date]",xt="[object DOMException]",it="[object Error]",Pt="[object Function]",jt="[object GeneratorFunction]",ct="[object Map]",Ot="[object Number]",yt="[object Null]",Ut="[object Object]",de="[object Promise]",_e="[object Proxy]",Ne="[object RegExp]",Ke="[object Set]",ut="[object String]",Je="[object Symbol]",gt="[object Undefined]",Jt="[object WeakMap]",Fe="[object WeakSet]",we="[object ArrayBuffer]",be="[object DataView]",xe="[object Float32Array]",Ue="[object Float64Array]",Ct="[object Int8Array]",qt="[object Int16Array]",tt="[object Int32Array]",Wt="[object Uint8Array]",Ht="[object Uint8ClampedArray]",zt="[object Uint16Array]",Sn="[object Uint32Array]",pr=/\b__p \+= '';/g,Mr=/\b(__p \+=) '' \+/g,Rr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Yr=/&(?:amp|lt|gt|quot|#39);/g,Ni=/[&<>"']/g,hi=RegExp(Yr.source),ji=RegExp(Ni.source),pi=/<%-([\s\S]+?)%>/g,ds=/<%([\s\S]+?)%>/g,Hi=/<%=([\s\S]+?)%>/g,Ks=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qi=/^\w*$/,Ur=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nr=/[\\^$.*+?()[\]{}|]/g,Zr=RegExp(nr.source),ze=/^\s+/,nt=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,he=/\{\n\/\* \[wrapped with (.+)\] \*/,Le=/,? & /,Ve=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pt=/[()=,{}\[\]\/\s]/,Vt=/\\(\\)?/g,Ie=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Te=/\w*$/,at=/^[-+]0x[0-9a-f]+$/i,qe=/^0b[01]+$/i,St=/^\[object .+?Constructor\]$/,_t=/^0o[0-7]+$/i,Gt=/^(?:0|[1-9]\d*)$/,jn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,qn=/($^)/,Wi=/['\n\r\u2028\u2029\\]/g,ti="\\ud800-\\udfff",$u="\\u0300-\\u036f",xo="\\ufe20-\\ufe2f",Ml="\\u20d0-\\u20ff",$l=$u+xo+Ml,Fl="\\u2700-\\u27bf",As="a-z\\xdf-\\xf6\\xf8-\\xff",je="\\xac\\xb1\\xd7\\xf7",ha="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",nh="\\u2000-\\u206f",En=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",xr="A-Z\\xc0-\\xd6\\xd8-\\xde",mi="\\ufe0e\\ufe0f",dr=je+ha+nh+En,Vi="['’]",ko="["+ti+"]",Ao="["+dr+"]",_o="["+$l+"]",Bl="\\d+",Fu="["+Fl+"]",Js="["+As+"]",Ul="[^"+ti+dr+Bl+Fl+As+xr+"]",zO="\\ud83c[\\udffb-\\udfff]",$I="(?:"+_o+"|"+zO+")",jO="[^"+ti+"]",K1="(?:\\ud83c[\\udde6-\\uddff]){2}",HO="[\\ud800-\\udbff][\\udc00-\\udfff]",Bu="["+xr+"]",xx="\\u200d",kx="(?:"+Js+"|"+Ul+")",FI="(?:"+Bu+"|"+Ul+")",QO="(?:"+Vi+"(?:d|ll|m|re|s|t|ve))?",rh="(?:"+Vi+"(?:D|LL|M|RE|S|T|VE))?",Ax=$I+"?",_x="["+mi+"]?",BI="(?:"+xx+"(?:"+[jO,K1,HO].join("|")+")"+_x+Ax+")*",UI="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",zI="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Cx=_x+Ax+BI,jI="(?:"+[Fu,K1,HO].join("|")+")"+Cx,Rx="(?:"+[jO+_o+"?",_o,K1,HO,ko].join("|")+")",HI=RegExp(Vi,"g"),QI=RegExp(_o,"g"),J1=RegExp(zO+"(?="+zO+")|"+Rx+Cx,"g"),Ix=RegExp([Bu+"?"+Js+"+"+QO+"(?="+[Ao,Bu,"$"].join("|")+")",FI+"+"+rh+"(?="+[Ao,Bu+kx,"$"].join("|")+")",Bu+"?"+kx+"+"+QO,Bu+"+"+rh,zI,UI,Bl,jI].join("|"),"g"),WO=RegExp("["+xx+ti+$l+mi+"]"),Nx=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,WI=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],VI=-1,ui={};ui[xe]=ui[Ue]=ui[Ct]=ui[qt]=ui[tt]=ui[Wt]=ui[Ht]=ui[zt]=ui[Sn]=!0,ui[$e]=ui[ae]=ui[we]=ui[We]=ui[be]=ui[Ye]=ui[it]=ui[Pt]=ui[ct]=ui[Ot]=ui[Ut]=ui[Ne]=ui[Ke]=ui[ut]=ui[Jt]=!1;var ni={};ni[$e]=ni[ae]=ni[we]=ni[be]=ni[We]=ni[Ye]=ni[xe]=ni[Ue]=ni[Ct]=ni[qt]=ni[tt]=ni[ct]=ni[Ot]=ni[Ut]=ni[Ne]=ni[Ke]=ni[ut]=ni[Je]=ni[Wt]=ni[Ht]=ni[zt]=ni[Sn]=!0,ni[it]=ni[Pt]=ni[Jt]=!1;var qI={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},GI={"&":"&","<":"<",">":">",'"':""","'":"'"},YI={"&":"&","<":"<",">":">",""":'"',"'":"'"},ZI={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},XI=parseFloat,Hc=parseInt,Dx=typeof pf=="object"&&pf&&pf.Object===Object&&pf,Px=typeof self=="object"&&self&&self.Object===Object&&self,Ba=Dx||Px||Function("return this")(),eb=t&&!t.nodeType&&t,ih=eb&&!0&&e&&!e.nodeType&&e,VO=ih&&ih.exports===eb,qO=VO&&Dx.process,Co=function(){try{var Me=ih&&ih.require&&ih.require("util").types;return Me||qO&&qO.binding&&qO.binding("util")}catch{}}(),GO=Co&&Co.isArrayBuffer,YO=Co&&Co.isDate,Lx=Co&&Co.isMap,Mx=Co&&Co.isRegExp,ZO=Co&&Co.isSet,$x=Co&&Co.isTypedArray;function eo(Me,ot,Ge){switch(Ge.length){case 0:return Me.call(ot);case 1:return Me.call(ot,Ge[0]);case 2:return Me.call(ot,Ge[0],Ge[1]);case 3:return Me.call(ot,Ge[0],Ge[1],Ge[2])}return Me.apply(ot,Ge)}function Fx(Me,ot,Ge,an){for(var Hn=-1,$r=Me==null?0:Me.length;++Hn<$r;){var xa=Me[Hn];ot(an,xa,Ge(xa),Me)}return an}function rl(Me,ot){for(var Ge=-1,an=Me==null?0:Me.length;++Ge-1}function Vn(Me,ot,Ge){for(var an=-1,Hn=Me==null?0:Me.length;++an-1;);return Ge}function Cm(Me,ot){for(var Ge=Me.length;Ge--&&ah(ot,Me[Ge],0)>-1;);return Ge}function Qx(Me,ot){for(var Ge=Me.length,an=0;Ge--;)Me[Ge]===ot&&++an;return an}var nS=rb(qI),rS=rb(GI);function Wx(Me){return"\\"+ZI[Me]}function Ip(Me,ot){return Me==null?n:Me[ot]}function zu(Me){return WO.test(Me)}function JI(Me){return Nx.test(Me)}function iS(Me){for(var ot,Ge=[];!(ot=Me.next()).done;)Ge.push(ot.value);return Ge}function sh(Me){var ot=-1,Ge=Array(Me.size);return Me.forEach(function(an,Hn){Ge[++ot]=[Hn,an]}),Ge}function lb(Me,ot){return function(Ge){return Me(ot(Ge))}}function Qc(Me,ot){for(var Ge=-1,an=Me.length,Hn=0,$r=[];++Ge-1}function d6(m,y){var A=this.__data__,F=Fp(A,m);return F<0?(++this.size,A.push([m,y])):A[F][1]=y,this}Ya.prototype.clear=Bm,Ya.prototype.delete=ol,Ya.prototype.get=Um,Ya.prototype.has=zm,Ya.prototype.set=d6;function Yc(m){var y=-1,A=m==null?0:m.length;for(this.clear();++y=y?m:y)),m}function Is(m,y,A,F,X,ue){var ve,Ae=y&f,Be=y&p,mt=y&g;if(A&&(ve=X?A(m,F,X,ue):A(m)),ve!==n)return ve;if(!ia(m))return m;var bt=Yn(m);if(bt){if(ve=dg(m),!Ae)return Ns(m,ve)}else{var Et=Ds(m),Kt=Et==Pt||Et==jt;if(Yp(m))return bk(m,Ae);if(Et==Ut||Et==$e||Kt&&!X){if(ve=Be||Kt?{}:$S(m),!Ae)return Be?I6(m,Hm(ve,m)):R6(m,Io(ve,m))}else{if(!ni[Et])return X?m:{};ve=Rk(m,Et,Ae)}}ue||(ue=new Ro);var On=ue.get(m);if(On)return On;ue.set(m,ve),OV(m)?m.forEach(function($n){ve.add(Is($n,y,A,$n,m,ue))}):yV(m)&&m.forEach(function($n,br){ve.set(br,Is($n,y,A,br,m,ue))});var Mn=mt?Be?Tk:wk:Be?cl:bs,or=bt?n:Mn(m);return rl(or||m,function($n,br){or&&(br=$n,$n=m[br]),fh(ve,br,Is($n,y,A,br,m,ue))}),ve}function Bp(m){var y=bs(m);return function(A){return ek(A,m,y)}}function ek(m,y,A){var F=A.length;if(m==null)return!F;for(m=ii(m);F--;){var X=A[F],ue=y[X],ve=m[X];if(ve===n&&!(X in m)||!ue(ve))return!1}return!0}function Vl(m,y,A){if(typeof m!="function")throw new kn(s);return Gn(function(){m.apply(n,A)},y)}function Qm(m,y,A,F){var X=-1,ue=tb,ve=!0,Ae=m.length,Be=[],mt=y.length;if(!Ae)return Be;A&&(y=ri(y,to(A))),F?(ue=Vn,ve=!1):y.length>=i&&(ue=Rp,ve=!1,y=new Gd(y));e:for(;++XX?0:X+A),F=F===n||F>X?X:ir(F),F<0&&(F+=X),F=A>F?0:EV(F);A0&&A(Ae)?y>1?qi(Ae,y-1,A,F,X):jd(X,Ae):F||(X[X.length]=Ae)}return X}var ql=Wp(),tk=Wp(!0);function qu(m,y){return m&&ql(m,y,bs)}function hS(m,y){return m&&tk(m,y,bs)}function Vm(m,y){return zd(y,function(A){return yh(m[A])})}function un(m,y){y=Jc(y,m);for(var A=0,F=y.length;m!=null&&Ay}function y6(m,y){return m!=null&&Zn.call(m,y)}function pb(m,y){return m!=null&&y in ii(m)}function mb(m,y,A){return m>=ra(y,A)&&m=120&&bt.length>=120)?new Gd(ve&&bt):n}bt=m[0];var Et=-1,Kt=Ae[0];e:for(;++Et-1;)Ae!==m&&Dm.call(Ae,Be,1),Dm.call(m,Be,1);return m}function ES(m,y){for(var A=m?y.length:0,F=A-1;A--;){var X=y[A];if(A==F||X!==ue){var ue=X;nd(X)?Dm.call(m,X,1):eg(m,X)}}return m}function wS(m,y){return m+db(Pm()*(y-m+1))}function jp(m,y,A,F){for(var X=-1,ue=Ei(cb((y-m)/(A||1)),0),ve=Ge(ue);ue--;)ve[F?ue:++X]=m,m+=A;return ve}function ph(m,y){var A="";if(!m||y<1||y>G)return A;do y%2&&(A+=m),y=db(y/2),y&&(m+=m);while(y);return A}function rr(m,y){return ci(ft(m,y,dl),m+"")}function dk(m){return dS(Eb(m))}function x6(m,y){var A=Eb(m);return zr(A,No(y,0,A.length))}function Km(m,y,A,F){if(!ia(m))return m;y=Jc(y,m);for(var X=-1,ue=y.length,ve=ue-1,Ae=m;Ae!=null&&++XX?0:X+y),A=A>X?X:A,A<0&&(A+=X),X=y>A?0:A-y>>>0,y>>>=0;for(var ue=Ge(X);++F>>1,ve=m[ue];ve!==null&&!Gl(ve)&&(A?ve<=y:ve=i){var mt=y?null:N6(m);if(mt)return ju(mt);ve=!1,X=Rp,Be=new Gd}else Be=y?[]:Ae;e:for(;++F=F?m:ll(m,y,A)}var bb=Dt||function(m){return Ba.clearTimeout(m)};function bk(m,y){if(y)return m.slice();var A=m.length,F=sS?sS(A):new m.constructor(A);return m.copy(F),F}function RS(m){var y=new m.constructor(m.byteLength);return new Nm(y).set(new Nm(m)),y}function ma(m,y){var A=y?RS(m.buffer):m.buffer;return new m.constructor(A,m.byteOffset,m.byteLength)}function yk(m){var y=new m.constructor(m.source,Te.exec(m));return y.lastIndex=m.lastIndex,y}function _6(m){return Gc?ii(Gc.call(m)):{}}function yb(m,y){var A=y?RS(m.buffer):m.buffer;return new m.constructor(A,m.byteOffset,m.length)}function vk(m,y){if(m!==y){var A=m!==n,F=m===null,X=m===m,ue=Gl(m),ve=y!==n,Ae=y===null,Be=y===y,mt=Gl(y);if(!Ae&&!mt&&!ue&&m>y||ue&&ve&&Be&&!Ae&&!mt||F&&ve&&Be||!A&&Be||!X)return 1;if(!F&&!ue&&!mt&&m=Ae)return Be;var mt=A[F];return Be*(mt=="desc"?-1:1)}}return m.index-y.index}function mh(m,y,A,F){for(var X=-1,ue=m.length,ve=A.length,Ae=-1,Be=y.length,mt=Ei(ue-ve,0),bt=Ge(Be+mt),Et=!F;++Ae1?A[X-1]:n,ve=X>2?A[2]:n;for(ue=m.length>3&&typeof ue=="function"?(X--,ue):n,ve&&Ps(A[0],A[1],ve)&&(ue=X<3?n:ue,X=1),y=ii(y);++F-1?X[ue?y[ve]:ve]:n}}function td(m){return Yd(function(y){var A=y.length,F=A,X=hs.prototype.thru;for(m&&y.reverse();F--;){var ue=y[F];if(typeof ue!="function")throw new kn(s);if(X&&!ve&&LS(ue)=="wrapper")var ve=new hs([],!0)}for(F=ve?F:A;++F1&&Ar.reverse(),bt&&BeAe))return!1;var mt=ue.get(m),bt=ue.get(y);if(mt&&bt)return mt==y&&bt==m;var Et=-1,Kt=!0,On=A&S?new Gd:n;for(ue.set(m,y),ue.set(y,m);++Et1?"& ":"")+y[F],y=y.join(A>2?", ":" "),m.replace(le,`{ -/* [wrapped with `+y+`] */ -`)}function FS(m){return Yn(m)||hg(m)||!!(ub&&m&&m[ub])}function nd(m,y){var A=typeof m;return y=y??G,!!y&&(A=="number"||A!="symbol"&&Gt.test(m))&&m>-1&&m%1==0&&m0){if(++y>=W)return arguments[0]}else y=0;return m.apply(n,arguments)}}function zr(m,y){var A=-1,F=m.length,X=F-1;for(y=y===n?F:y;++A1?m[y-1]:n;return A=typeof A=="function"?(m.pop(),A):n,sV(m,A)});function oV(m){var y=te(m);return y.__chain__=!0,y}function pve(m,y){return y(m),m}function Nk(m,y){return y(m)}var mve=Yd(function(m){var y=m.length,A=y?m[0]:0,F=this.__wrapped__,X=function(ue){return fS(ue,m)};return y>1||this.__actions__.length||!(F instanceof Cn)||!nd(A)?this.thru(X):(F=F.slice(A,+A+(y?1:0)),F.__actions__.push({func:Nk,args:[X],thisArg:n}),new hs(F,this.__chain__).thru(function(ue){return y&&!ue.length&&ue.push(n),ue}))});function gve(){return oV(this)}function bve(){return new hs(this.value(),this.__chain__)}function yve(){this.__values__===n&&(this.__values__=SV(this.value()));var m=this.__index__>=this.__values__.length,y=m?n:this.__values__[this.__index__++];return{done:m,value:y}}function vve(){return this}function Ove(m){for(var y,A=this;A instanceof Mm;){var F=Ik(A);F.__index__=0,F.__values__=n,y?X.__wrapped__=F:y=F;var X=F;A=A.__wrapped__}return X.__wrapped__=m,y}function Sve(){var m=this.__wrapped__;if(m instanceof Cn){var y=m;return this.__actions__.length&&(y=new Cn(this)),y=y.reverse(),y.__actions__.push({func:Nk,args:[L6],thisArg:n}),new hs(y,this.__chain__)}return this.thru(L6)}function Eve(){return xS(this.__wrapped__,this.__actions__)}var wve=vb(function(m,y,A){Zn.call(m,A)?++m[A]:ps(m,A,1)});function Tve(m,y,A){var F=Yn(m)?Ud:Up;return A&&Ps(m,y,A)&&(y=n),F(m,Dn(y,3))}function xve(m,y){var A=Yn(m)?zd:ro;return A(m,Dn(y,3))}var kve=NS(tV),Ave=NS(nV);function _ve(m,y){return qi(Dk(m,y),1)}function Cve(m,y){return qi(Dk(m,y),K)}function Rve(m,y,A){return A=A===n?1:ir(A),qi(Dk(m,y),A)}function lV(m,y){var A=Yn(m)?rl:Ua;return A(m,Dn(y,3))}function uV(m,y){var A=Yn(m)?Bx:Xc;return A(m,Dn(y,3))}var Ive=vb(function(m,y,A){Zn.call(m,A)?m[A].push(y):ps(m,A,[y])});function Nve(m,y,A,F){m=ul(m)?m:Eb(m),A=A&&!F?ir(A):0;var X=m.length;return A<0&&(A=Ei(X+A,0)),Fk(m)?A<=X&&m.indexOf(y,A)>-1:!!X&&ah(m,y,A)>-1}var Dve=rr(function(m,y,A){var F=-1,X=typeof y=="function",ue=ul(m)?Ge(m.length):[];return Ua(m,function(ve){ue[++F]=X?eo(y,ve,A):Gm(ve,y,A)}),ue}),Pve=vb(function(m,y,A){ps(m,A,y)});function Dk(m,y){var A=Yn(m)?ri:ok;return A(m,Dn(y,3))}function Lve(m,y,A,F){return m==null?[]:(Yn(y)||(y=y==null?[]:[y]),A=F?n:A,Yn(A)||(A=A==null?[]:[A]),uk(m,y,A))}var Mve=vb(function(m,y,A){m[A?0:1].push(y)},function(){return[[],[]]});function $ve(m,y,A){var F=Yn(m)?zl:Uu,X=arguments.length<3;return F(m,Dn(y,4),A,X,Ua)}function Fve(m,y,A){var F=Yn(m)?Ux:Uu,X=arguments.length<3;return F(m,Dn(y,4),A,X,Xc)}function Bve(m,y){var A=Yn(m)?zd:ro;return A(m,Mk(Dn(y,3)))}function Uve(m){var y=Yn(m)?dS:dk;return y(m)}function zve(m,y,A){(A?Ps(m,y,A):y===n)?y=1:y=ir(y);var F=Yn(m)?Wl:x6;return F(m,y)}function jve(m){var y=Yn(m)?Za:fk;return y(m)}function Hve(m){if(m==null)return 0;if(ul(m))return Fk(m)?Np(m):m.length;var y=Ds(m);return y==ct||y==Ke?m.size:bS(m).length}function Qve(m,y,A){var F=Yn(m)?Cp:A6;return A&&Ps(m,y,A)&&(y=n),F(m,Dn(y,3))}var Wve=rr(function(m,y){if(m==null)return[];var A=y.length;return A>1&&Ps(m,y[0],y[1])?y=[]:A>2&&Ps(y[0],y[1],y[2])&&(y=[y[0]]),uk(m,qi(y,1),[])}),Pk=l6||function(){return Ba.Date.now()};function Vve(m,y){if(typeof y!="function")throw new kn(s);return m=ir(m),function(){if(--m<1)return y.apply(this,arguments)}}function cV(m,y,A){return y=A?n:y,y=m&&y==null?m.length:y,Di(m,P,n,n,n,n,y)}function dV(m,y){var A;if(typeof y!="function")throw new kn(s);return m=ir(m),function(){return--m>0&&(A=y.apply(this,arguments)),m<=1&&(y=n),A}}var $6=rr(function(m,y,A){var F=T;if(A.length){var X=Qc(A,cg($6));F|=R}return Di(m,F,y,A,X)}),fV=rr(function(m,y,A){var F=T|w;if(A.length){var X=Qc(A,cg(fV));F|=R}return Di(y,F,m,A,X)});function hV(m,y,A){y=A?n:y;var F=Di(m,k,n,n,n,n,n,y);return F.placeholder=hV.placeholder,F}function pV(m,y,A){y=A?n:y;var F=Di(m,_,n,n,n,n,n,y);return F.placeholder=pV.placeholder,F}function mV(m,y,A){var F,X,ue,ve,Ae,Be,mt=0,bt=!1,Et=!1,Kt=!0;if(typeof m!="function")throw new kn(s);y=Xu(y)||0,ia(A)&&(bt=!!A.leading,Et="maxWait"in A,ue=Et?Ei(Xu(A.maxWait)||0,y):ue,Kt="trailing"in A?!!A.trailing:Kt);function On(Ra){var id=F,Oh=X;return F=X=n,mt=Ra,ve=m.apply(Oh,id),ve}function Mn(Ra){return mt=Ra,Ae=Gn(br,y),bt?On(Ra):ve}function or(Ra){var id=Ra-Be,Oh=Ra-mt,PV=y-id;return Et?ra(PV,ue-Oh):PV}function $n(Ra){var id=Ra-Be,Oh=Ra-mt;return Be===n||id>=y||id<0||Et&&Oh>=ue}function br(){var Ra=Pk();if($n(Ra))return Ar(Ra);Ae=Gn(br,or(Ra))}function Ar(Ra){return Ae=n,Kt&&F?On(Ra):(F=X=n,ve)}function Yl(){Ae!==n&&bb(Ae),mt=0,F=Be=X=Ae=n}function Lo(){return Ae===n?ve:Ar(Pk())}function Zl(){var Ra=Pk(),id=$n(Ra);if(F=arguments,X=this,Be=Ra,id){if(Ae===n)return Mn(Be);if(Et)return bb(Ae),Ae=Gn(br,y),On(Be)}return Ae===n&&(Ae=Gn(br,y)),ve}return Zl.cancel=Yl,Zl.flush=Lo,Zl}var qve=rr(function(m,y){return Vl(m,1,y)}),Gve=rr(function(m,y,A){return Vl(m,Xu(y)||0,A)});function Yve(m){return Di(m,j)}function Lk(m,y){if(typeof m!="function"||y!=null&&typeof y!="function")throw new kn(s);var A=function(){var F=arguments,X=y?y.apply(this,F):F[0],ue=A.cache;if(ue.has(X))return ue.get(X);var ve=m.apply(this,F);return A.cache=ue.set(X,ve)||ue,ve};return A.cache=new(Lk.Cache||Yc),A}Lk.Cache=Yc;function Mk(m){if(typeof m!="function")throw new kn(s);return function(){var y=arguments;switch(y.length){case 0:return!m.call(this);case 1:return!m.call(this,y[0]);case 2:return!m.call(this,y[0],y[1]);case 3:return!m.call(this,y[0],y[1],y[2])}return!m.apply(this,y)}}function Zve(m){return dV(2,m)}var Xve=CS(function(m,y){y=y.length==1&&Yn(y[0])?ri(y[0],to(Dn())):ri(qi(y,1),to(Dn()));var A=y.length;return rr(function(F){for(var X=-1,ue=ra(F.length,A);++X=y}),hg=rk(function(){return arguments}())?rk:function(m){return ga(m)&&Zn.call(m,"callee")&&!lh.call(m,"callee")},Yn=Ge.isArray,fOe=GO?to(GO):v6;function ul(m){return m!=null&&$k(m.length)&&!yh(m)}function Ca(m){return ga(m)&&ul(m)}function hOe(m){return m===!0||m===!1||ga(m)&&ms(m)==We}var Yp=mr||Y6,pOe=YO?to(YO):O6;function mOe(m){return ga(m)&&m.nodeType===1&&!BS(m)}function gOe(m){if(m==null)return!0;if(ul(m)&&(Yn(m)||typeof m=="string"||typeof m.splice=="function"||Yp(m)||Sb(m)||hg(m)))return!m.length;var y=Ds(m);if(y==ct||y==Ke)return!m.size;if(D(m))return!bS(m).length;for(var A in m)if(Zn.call(m,A))return!1;return!0}function bOe(m,y){return Ym(m,y)}function yOe(m,y,A){A=typeof A=="function"?A:n;var F=A?A(m,y):n;return F===n?Ym(m,y,n,A):!!F}function B6(m){if(!ga(m))return!1;var y=ms(m);return y==it||y==xt||typeof m.message=="string"&&typeof m.name=="string"&&!BS(m)}function vOe(m){return typeof m=="number"&&kr(m)}function yh(m){if(!ia(m))return!1;var y=ms(m);return y==Pt||y==jt||y==Xe||y==_e}function bV(m){return typeof m=="number"&&m==ir(m)}function $k(m){return typeof m=="number"&&m>-1&&m%1==0&&m<=G}function ia(m){var y=typeof m;return m!=null&&(y=="object"||y=="function")}function ga(m){return m!=null&&typeof m=="object"}var yV=Lx?to(Lx):E6;function OOe(m,y){return m===y||mS(m,y,kk(y))}function SOe(m,y,A){return A=typeof A=="function"?A:n,mS(m,y,kk(y),A)}function EOe(m){return vV(m)&&m!=+m}function wOe(m){if(E(m))throw new Hn(a);return gS(m)}function TOe(m){return m===null}function xOe(m){return m==null}function vV(m){return typeof m=="number"||ga(m)&&ms(m)==Ot}function BS(m){if(!ga(m)||ms(m)!=Ut)return!1;var y=no(m);if(y===null)return!0;var A=Zn.call(y,"constructor")&&y.constructor;return typeof A=="function"&&A instanceof A&&Hu.call(A)==Hl}var U6=Mx?to(Mx):w6;function kOe(m){return bV(m)&&m>=-G&&m<=G}var OV=ZO?to(ZO):ik;function Fk(m){return typeof m=="string"||!Yn(m)&&ga(m)&&ms(m)==ut}function Gl(m){return typeof m=="symbol"||ga(m)&&ms(m)==Je}var Sb=$x?to($x):T6;function AOe(m){return m===n}function _Oe(m){return ga(m)&&Ds(m)==Jt}function COe(m){return ga(m)&&ms(m)==Fe}var ROe=sg(Zm),IOe=sg(function(m,y){return m<=y});function SV(m){if(!m)return[];if(ul(m))return Fk(m)?jl(m):Ns(m);if(Lp&&m[Lp])return iS(m[Lp]());var y=Ds(m),A=y==ct?sh:y==Ke?ju:Eb;return A(m)}function vh(m){if(!m)return m===0?m:0;if(m=Xu(m),m===K||m===-K){var y=m<0?-1:1;return y*ie}return m===m?m:0}function ir(m){var y=vh(m),A=y%1;return y===y?A?y-A:y:0}function EV(m){return m?No(ir(m),0,Re):0}function Xu(m){if(typeof m=="number")return m;if(Gl(m))return H;if(ia(m)){var y=typeof m.valueOf=="function"?m.valueOf():m;m=ia(y)?y+"":y}if(typeof m!="string")return m===0?m:+m;m=tS(m);var A=qe.test(m);return A||_t.test(m)?Hc(m.slice(2),A?2:8):at.test(m)?H:+m}function wV(m){return io(m,cl(m))}function NOe(m){return m?No(ir(m),-G,G):m===0?m:0}function Xr(m){return m==null?"":Do(m)}var DOe=ai(function(m,y){if(D(y)||ul(y)){io(y,bs(y),m);return}for(var A in y)Zn.call(y,A)&&fh(m,A,y[A])}),TV=ai(function(m,y){io(y,cl(y),m)}),Bk=ai(function(m,y,A,F){io(y,cl(y),m,F)}),POe=ai(function(m,y,A,F){io(y,bs(y),m,F)}),LOe=Yd(fS);function MOe(m,y){var A=fs(m);return y==null?A:Io(A,y)}var $Oe=rr(function(m,y){m=ii(m);var A=-1,F=y.length,X=F>2?y[2]:n;for(X&&Ps(y[0],y[1],X)&&(F=1);++A1),ue}),io(m,Tk(m),A),F&&(A=Is(A,f|p|g,PS));for(var X=y.length;X--;)eg(A,y[X]);return A});function tSe(m,y){return kV(m,Mk(Dn(y)))}var nSe=Yd(function(m,y){return m==null?{}:ck(m,y)});function kV(m,y){if(m==null)return{};var A=ri(Tk(m),function(F){return[F]});return y=Dn(y),Xm(m,A,function(F,X){return y(F,X[0])})}function rSe(m,y,A){y=Jc(y,m);var F=-1,X=y.length;for(X||(X=1,m=n);++Fy){var F=m;m=y,y=F}if(A||m%1||y%1){var X=Pm();return ra(m+X*(y-m+XI("1e-"+((X+"").length-1))),y)}return wS(m,y)}var pSe=gh(function(m,y,A){return y=y.toLowerCase(),m+(A?CV(y):y)});function CV(m){return H6(Xr(m).toLowerCase())}function RV(m){return m=Xr(m),m&&m.replace(jn,nS).replace(QI,"")}function mSe(m,y,A){m=Xr(m),y=Do(y);var F=m.length;A=A===n?F:No(ir(A),0,F);var X=A;return A-=y.length,A>=0&&m.slice(A,X)==y}function gSe(m){return m=Xr(m),m&&ji.test(m)?m.replace(Ni,rS):m}function bSe(m){return m=Xr(m),m&&Zr.test(m)?m.replace(nr,"\\$&"):m}var ySe=gh(function(m,y,A){return m+(A?"-":"")+y.toLowerCase()}),vSe=gh(function(m,y,A){return m+(A?" ":"")+y.toLowerCase()}),OSe=Ok("toLowerCase");function SSe(m,y,A){m=Xr(m),y=ir(y);var F=y?Np(m):0;if(!y||F>=y)return m;var X=(y-F)/2;return ag(db(X),A)+m+ag(cb(X),A)}function ESe(m,y,A){m=Xr(m),y=ir(y);var F=y?Np(m):0;return y&&F>>0,A?(m=Xr(m),m&&(typeof y=="string"||y!=null&&!U6(y))&&(y=Do(y),!y&&zu(m))?ed(jl(m),0,A):m.split(y,A)):[]}var CSe=gh(function(m,y,A){return m+(A?" ":"")+H6(y)});function RSe(m,y,A){return m=Xr(m),A=A==null?0:No(ir(A),0,m.length),y=Do(y),m.slice(A,A+y.length)==y}function ISe(m,y,A){var F=te.templateSettings;A&&Ps(m,y,A)&&(y=n),m=Xr(m),y=Bk({},y,F,lg);var X=Bk({},y.imports,F.imports,lg),ue=bs(X),ve=sb(X,ue),Ae,Be,mt=0,bt=y.interpolate||qn,Et="__p += '",Kt=aS((y.escape||qn).source+"|"+bt.source+"|"+(bt===Hi?Ie:qn).source+"|"+(y.evaluate||qn).source+"|$","g"),On="//# sourceURL="+(Zn.call(y,"sourceURL")?(y.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++VI+"]")+` -`;m.replace(Kt,function($n,br,Ar,Yl,Lo,Zl){return Ar||(Ar=Yl),Et+=m.slice(mt,Zl).replace(Wi,Wx),br&&(Ae=!0,Et+=`' + -__e(`+br+`) + -'`),Lo&&(Be=!0,Et+=`'; -`+Lo+`; -__p += '`),Ar&&(Et+=`' + -((__t = (`+Ar+`)) == null ? '' : __t) + -'`),mt=Zl+$n.length,$n}),Et+=`'; -`;var Mn=Zn.call(y,"variable")&&y.variable;if(!Mn)Et=`with (obj) { -`+Et+` -} -`;else if(pt.test(Mn))throw new Hn(o);Et=(Be?Et.replace(pr,""):Et).replace(Mr,"$1").replace(Rr,"$1;"),Et="function("+(Mn||"obj")+`) { -`+(Mn?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(Ae?", __e = _.escape":"")+(Be?`, __j = Array.prototype.join; -function print() { __p += __j.call(arguments, '') } -`:`; -`)+Et+`return __p -}`;var or=NV(function(){return $r(ue,On+"return "+Et).apply(n,ve)});if(or.source=Et,B6(or))throw or;return or}function NSe(m){return Xr(m).toLowerCase()}function DSe(m){return Xr(m).toUpperCase()}function PSe(m,y,A){if(m=Xr(m),m&&(A||y===n))return tS(m);if(!m||!(y=Do(y)))return m;var F=jl(m),X=jl(y),ue=ob(F,X),ve=Cm(F,X)+1;return ed(F,ue,ve).join("")}function LSe(m,y,A){if(m=Xr(m),m&&(A||y===n))return m.slice(0,Vx(m)+1);if(!m||!(y=Do(y)))return m;var F=jl(m),X=Cm(F,jl(y))+1;return ed(F,0,X).join("")}function MSe(m,y,A){if(m=Xr(m),m&&(A||y===n))return m.replace(ze,"");if(!m||!(y=Do(y)))return m;var F=jl(m),X=ob(F,jl(y));return ed(F,X).join("")}function $Se(m,y){var A=B,F=V;if(ia(y)){var X="separator"in y?y.separator:X;A="length"in y?ir(y.length):A,F="omission"in y?Do(y.omission):F}m=Xr(m);var ue=m.length;if(zu(m)){var ve=jl(m);ue=ve.length}if(A>=ue)return m;var Ae=A-Np(F);if(Ae<1)return F;var Be=ve?ed(ve,0,Ae).join(""):m.slice(0,Ae);if(X===n)return Be+F;if(ve&&(Ae+=Be.length-Ae),U6(X)){if(m.slice(Ae).search(X)){var mt,bt=Be;for(X.global||(X=aS(X.source,Xr(Te.exec(X))+"g")),X.lastIndex=0;mt=X.exec(bt);)var Et=mt.index;Be=Be.slice(0,Et===n?Ae:Et)}}else if(m.indexOf(Do(X),Ae)!=Ae){var Kt=Be.lastIndexOf(X);Kt>-1&&(Be=Be.slice(0,Kt))}return Be+F}function FSe(m){return m=Xr(m),m&&hi.test(m)?m.replace(Yr,n6):m}var BSe=gh(function(m,y,A){return m+(A?" ":"")+y.toUpperCase()}),H6=Ok("toUpperCase");function IV(m,y,A){return m=Xr(m),y=A?n:y,y===n?JI(m)?a6(m):jx(m):m.match(y)||[]}var NV=rr(function(m,y){try{return eo(m,n,y)}catch(A){return B6(A)?A:new Hn(A)}}),USe=Yd(function(m,y){return rl(y,function(A){A=gs(A),ps(m,A,$6(m[A],m))}),m});function zSe(m){var y=m==null?0:m.length,A=Dn();return m=y?ri(m,function(F){if(typeof F[1]!="function")throw new kn(s);return[A(F[0]),F[1]]}):[],rr(function(F){for(var X=-1;++XG)return[];var A=Re,F=ra(m,Re);y=Dn(y),m-=Re;for(var X=ab(F,y);++A0||y<0)?new Cn(A):(m<0?A=A.takeRight(-m):m&&(A=A.drop(m)),y!==n&&(y=ir(y),A=y<0?A.dropRight(-y):A.take(y-m)),A)},Cn.prototype.takeRightWhile=function(m){return this.reverse().takeWhile(m).reverse()},Cn.prototype.toArray=function(){return this.take(Re)},qu(Cn.prototype,function(m,y){var A=/^(?:filter|find|map|reject)|While$/.test(y),F=/^(?:head|last)$/.test(y),X=te[F?"take"+(y=="last"?"Right":""):y],ue=F||/^find/.test(y);X&&(te.prototype[y]=function(){var ve=this.__wrapped__,Ae=F?[1]:arguments,Be=ve instanceof Cn,mt=Ae[0],bt=Be||Yn(ve),Et=function(br){var Ar=X.apply(te,jd([br],Ae));return F&&Kt?Ar[0]:Ar};bt&&A&&typeof mt=="function"&&mt.length!=1&&(Be=bt=!1);var Kt=this.__chain__,On=!!this.__actions__.length,Mn=ue&&!Kt,or=Be&&!On;if(!ue&&bt){ve=or?ve:new Cn(this);var $n=m.apply(ve,Ae);return $n.__actions__.push({func:Nk,args:[Et],thisArg:n}),new hs($n,Kt)}return Mn&&or?m.apply(this,Ae):($n=this.thru(Et),Mn?F?$n.value()[0]:$n.value():$n)})}),rl(["pop","push","shift","sort","splice","unshift"],function(m){var y=ka[m],A=/^(?:push|sort|unshift)$/.test(m)?"tap":"thru",F=/^(?:pop|shift)$/.test(m);te.prototype[m]=function(){var X=arguments;if(F&&!this.__chain__){var ue=this.value();return y.apply(Yn(ue)?ue:[],X)}return this[A](function(ve){return y.apply(Yn(ve)?ve:[],X)})}}),qu(Cn.prototype,function(m,y){var A=te[y];if(A){var F=A.name+"";Zn.call(sl,F)||(sl[F]=[]),sl[F].push({name:y,func:A})}}),sl[Gu(n,w).name]=[{name:"wrapper",func:n}],Cn.prototype.clone=wi,Cn.prototype.reverse=fb,Cn.prototype.value=$m,te.prototype.at=mve,te.prototype.chain=gve,te.prototype.commit=bve,te.prototype.next=yve,te.prototype.plant=Ove,te.prototype.reverse=Sve,te.prototype.toJSON=te.prototype.valueOf=te.prototype.value=Eve,te.prototype.first=te.prototype.head,Lp&&(te.prototype[Lp]=vve),te},Dp=s6();ih?((ih.exports=Dp)._=Dp,eb._=Dp):Ba._=Dp}).call(pf)})(OC,OC.exports);var fet=OC.exports;const het=Cu(fet),pet=en.baseTheme({".cm-ySelection":{},".cm-yLineSelection":{padding:0,margin:"0px 2px 0px 4px"},".cm-ySelectionCaret":{position:"relative",borderLeft:"1px solid black",borderRight:"1px solid black",marginLeft:"-1px",marginRight:"-1px",boxSizing:"border-box",display:"inline"},".cm-ySelectionCaretDot":{borderRadius:"50%",position:"absolute",width:".4em",height:".4em",top:"-.2em",left:"-.2em",backgroundColor:"inherit",transition:"transform .3s ease-in-out",boxSizing:"border-box"},".cm-ySelectionCaret:hover > .cm-ySelectionCaretDot":{transformOrigin:"bottom center",transform:"scale(0)"},".cm-ySelectionInfo":{position:"absolute",top:"-1.05em",left:"-1px",fontSize:".75em",fontFamily:"serif",fontStyle:"normal",fontWeight:"normal",lineHeight:"normal",userSelect:"none",color:"black",paddingLeft:"2px",paddingRight:"2px",zIndex:101,transition:"opacity .3s ease-in-out",backgroundColor:"inherit",transitionDelay:"0s",whiteSpace:"nowrap"}}),met=Pd.define();class get extends Ld{constructor(n,r){super();Ls(this,"color");Ls(this,"name");this.color=n,this.name=r}toDOM(){return g_("span",[Vg("class","cm-ySelectionCaret"),Vg("style",`background-color: ${this.color}; border-color: ${this.color}`)],[KA("⁠"),g_("div",[Vg("class","cm-ySelectionCaretDot")]),KA("⁠"),g_("div",[Vg("class","cm-ySelectionInfo")],[KA(this.name)]),KA("⁠")])}eq(n){return n.color===this.color}compare(n){return n.color===this.color}updateDOM(){return!1}get estimatedHeight(){return-1}ignoreEvent(){return!0}}class bet{constructor(t){Ls(this,"conf");Ls(this,"decorations");Ls(this,"unsubscribe");this.conf=t.state.facet(GB),this.unsubscribe=this.conf.doc.subscribe("others",n=>{["presence-changed","unwatched"].includes(n.type)&&t.dispatch({annotations:[met.of([])]})}),this.decorations=Cr.of([])}destroy(){this.unsubscribe()}update(t){const n=[];this.conf.doc.update((r,i)=>{const s=t.view.hasFocus&&t.view.dom.ownerDocument.hasFocus()?t.state.selection.main:null;if(s&&r.content){const o=r.content.indexRangeToPosRange([s.anchor,s.head]),l=r.content.posRangeToIndexRange(o);het.isEqual(o,i.get("selection"))||i.set({selection:o,cursor:l})}else i.get("selection")&&i.set({selection:null,cursor:null})}),this.conf.doc.getPresences().forEach(r=>{if(r.clientID===this.conf.client.getID()||r.presence.selection==null)return;const i=this.conf.doc.getRoot().content.posRangeToIndexRange(r.presence.selection),a=r.presence.color,s=r.presence.name,o=Math.min(i[0],i[1]),l=Math.max(i[0],i[1]),u=t.view.state.doc.lineAt(o),d=t.view.state.doc.lineAt(l);if(u.number===d.number)n.push({from:o,to:l,value:vn.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})});else{n.push({from:o,to:u.from+u.length,value:vn.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})}),n.push({from:d.from,to:l,value:vn.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})});for(let f=u.number+1;f0?-1:1,block:!1,widget:new get(a,s)})})}),this.decorations=vn.set(n,!0)}}const yet=fa.fromClass(bet,{decorations:e=>e.decorations});function vet(e,t){const n=new uet(e,t),r=[GB.of(n),det];return t&&r.push(pet,yet),r}const Oet={toggleButton:{width:"25px",height:"25px",border:"none",fontWeight:"bold"}};function JA({title:e,children:t,...n}){return I.jsx(I0,{title:e,placement:"top",children:I.jsx(V4,{sx:Oet.toggleButton,...n,children:t})})}var QR={exports:{}},Ype={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},Zpe=Object.keys(Ype).join("|"),Eet=new RegExp(Zpe,"g"),wet=new RegExp(Zpe,"");function Tet(e){return Ype[e]}var Xpe=function(e){return e.replace(Eet,Tet)},xet=function(e){return!!e.match(wet)};QR.exports=Xpe;QR.exports.has=xet;QR.exports.remove=Xpe;var ket=QR.exports;const Aet=Cu(ket);/** - * @name match-sorter - * @license MIT license. - * @copyright (c) 2020 Kent C. Dodds - * @author Kent C. Dodds (https://kentcdodds.com) - */const Wo={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0},_et=(e,t)=>String(e.rankedValue).localeCompare(String(t.rankedValue));function Kpe(e,t,n){n===void 0&&(n={});const{keys:r,threshold:i=Wo.MATCHES,baseSort:a=_et,sorter:s=u=>u.sort((d,f)=>Net(d,f,a))}=n,o=e.reduce(l,[]);return s(o).map(u=>{let{item:d}=u;return d});function l(u,d,f){const p=Cet(d,r,t,n),{rank:g,keyThreshold:O=i}=p;return g>=O&&u.push({...p,item:d,index:f}),u}}Kpe.rankings=Wo;function Cet(e,t,n,r){if(!t){const a=e;return{rankedValue:a,rank:DJ(a,n,r),keyIndex:-1,keyThreshold:r.threshold}}return Let(e,t).reduce((a,s,o)=>{let{rank:l,rankedValue:u,keyIndex:d,keyThreshold:f}=a,{itemValue:p,attributes:g}=s,O=DJ(p,n,r),S=u;const{minRanking:T,maxRanking:w,threshold:x}=g;return O=Wo.MATCHES?O=T:O>w&&(O=w),O>l&&(l=O,d=o,f=x,S=p),{rankedValue:S,rank:l,keyIndex:d,keyThreshold:f}},{rankedValue:e,rank:Wo.NO_MATCH,keyIndex:-1,keyThreshold:r.threshold})}function DJ(e,t,n){return e=PJ(e,n),t=PJ(t,n),t.length>e.length?Wo.NO_MATCH:e===t?Wo.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?Wo.EQUAL:e.startsWith(t)?Wo.STARTS_WITH:e.includes(` ${t}`)?Wo.WORD_STARTS_WITH:e.includes(t)?Wo.CONTAINS:t.length===1?Wo.NO_MATCH:Ret(e).includes(t)?Wo.ACRONYM:Iet(e,t))}function Ret(e){let t="";return e.split(" ").forEach(r=>{r.split("-").forEach(a=>{t+=a.substr(0,1)})}),t}function Iet(e,t){let n=0,r=0;function i(l,u,d){for(let f=d,p=u.length;f-1))return Wo.NO_MATCH}const o=r-s;return a(o)}function Net(e,t,n){const{rank:a,keyIndex:s}=e,{rank:o,keyIndex:l}=t;return a===o?s===l?n(e,t):so?-1:1}function PJ(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=Aet(e)),e}function Det(e,t){typeof t=="object"&&(t=t.key);let n;if(typeof t=="function")n=t(e);else if(e==null)n=null;else if(Object.hasOwnProperty.call(e,t))n=e[t];else{if(t.includes("."))return Pet(t,e);n=null}return n==null?[]:Array.isArray(n)?n:[String(n)]}function Pet(e,t){const n=e.split(".");let r=[t];for(let i=0,a=n.length;i{var l;return Kpe(((l=n.yorkieIntelligence)==null?void 0:l.config.features)??[],r,{keys:["title","feature"]})},[r,(o=n.yorkieIntelligence)==null?void 0:o.config.features]),s=l=>{i(l.target.value)};return I.jsxs(Bn,{children:[I.jsx(ST,{placeholder:"Choose from below",size:"small",sx:{width:1},value:r,onChange:s}),I.jsx(dw,{children:a.map(l=>I.jsxs(Od,{onClick:()=>t(l.feature,l.title),children:[I.jsx(s1,{children:I.jsx(eoe,{children:I.jsx("img",{src:l.icon,alt:l.title})})}),I.jsx(Vh,{children:l.title})]},l.feature))})]})}var YB={},Fet=Ii;Object.defineProperty(YB,"__esModule",{value:!0});var Jpe=YB.default=void 0,Bet=Fet(ta()),Uet=I;Jpe=YB.default=(0,Bet.default)((0,Uet.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh");var ZB={},zet=Ii;Object.defineProperty(ZB,"__esModule",{value:!0});var e0e=ZB.default=void 0,jet=zet(ta()),Het=I;e0e=ZB.default=(0,jet.default)((0,Het.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");const Qet=e=>{var p;const t=Pr(ZT),n=Pr(hR),[r,i]=M.useState(null),[a,s]=M.useState(null),[o,l]=M.useState(!1),[u,d]=M.useState(!1),f=M.useCallback(async g=>{var x,k;l(!0),d(!1),s(null),i(null);const S=(k=(await fetch(`https://codepair-api.yorkie.dev/intelligence/${e}`,{method:"POST",headers:{Authorization:`Bearer ${t.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify({documentId:(x=n.data)==null?void 0:x.id,content:g})})).body)==null?void 0:k.getReader();let T=!0,w="";for(;S;){const{done:_,value:R}=await S.read();if(l(!1),_)break;let N=new TextDecoder().decode(R);if(T){const P=N.split(` -`);s(P[0]),T=!1,N=P.slice(1).join(` -`)}w+=N,i(w)}d(!0)},[t.accessToken,(p=n.data)==null?void 0:p.id,e]);return{data:r,memoryKey:a,isLoading:o,isComplete:u,mutateAsync:f}},Wet=e=>{var d;const t=Pr(ZT),n=Pr(hR),[r,i]=M.useState(null),[a,s]=M.useState(!1),[o,l]=M.useState(!1),u=M.useCallback(async f=>{var S,T;if(!e)return;s(!0),l(!1),i(null);const g=(T=(await fetch("https://codepair-api.yorkie.dev/intelligence",{method:"POST",headers:{Authorization:`Bearer ${t.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify({documentId:(S=n.data)==null?void 0:S.id,memoryKey:e,content:f})})).body)==null?void 0:T.getReader();let O="";for(;g;){const{done:w,value:x}=await g.read();if(s(!1),w)break;const k=new TextDecoder().decode(x);O+=k,i(O)}l(!0)},[t.accessToken,(d=n.data)==null?void 0:d.id,e]);return{data:r,memoryKey:e,isLoading:a,isComplete:o,mutateAsync:u}},SO=function(e){if(e==null)return Yet;if(typeof e=="function")return WR(e);if(typeof e=="object")return Array.isArray(e)?Vet(e):qet(e);if(typeof e=="string")return Get(e);throw new Error("Expected function, string, or object as test")};function Vet(e){const t=[];let n=-1;for(;++n":""))+")"})}return p;function p(){let g=t0e,O,S,T;if((!t||a(l,u,d[d.length-1]||void 0))&&(g=Ket(n(l,d)),g[0]===SC))return g;if("children"in l&&l.children){const w=l;if(w.children&&g[0]!==Qy)for(S=(r?w.children.length:-1)+s,T=d.concat(w);S>-1&&S0&&d.length===0)return}const f={};let p;for(p in o)ett.call(o,p)&&(f[p]=p==="children"?d:o[p]);return f}}function ntt(e){return"children"in e&&e.children!==void 0}var FL={exports:{}};(function(e,t){function n(r){let i=[],a;for(let s of r.split(",").map(o=>o.trim()))if(/^-?\d+$/.test(s))i.push(parseInt(s,10));else if(a=s.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[o,l,u,d]=a;if(l&&d){l=parseInt(l),d=parseInt(d);const f=l]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}Fd.displayName="c";Fd.aliases=[];function Fd(e){e.register(Sr),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}B1.displayName="cpp";B1.aliases=[];function B1(e){e.register(Fd),function(t){var n=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,r=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return n.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return n.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:n,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(e)}VR.displayName="arduino";VR.aliases=["ino"];function VR(e){e.register(B1),e.languages.arduino=e.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),e.languages.ino=e.languages.arduino}XT.displayName="bash";XT.aliases=["sh","shell"];function XT(e){(function(t){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:r,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=t.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],s=i.variable[1].inside,o=0;o>/g,function(Se,Z){return"(?:"+Re[+Z]+")"})}function r(H,Re,Se){return RegExp(n(H,Re),"")}function i(H,Re){for(var Se=0;Se>/g,function(){return"(?:"+H+")"});return H.replace(/<>/g,"[^\\s\\S]")}var a={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function s(H){return"\\b(?:"+H.trim().replace(/ /g,"|")+")\\b"}var o=s(a.typeDeclaration),l=RegExp(s(a.type+" "+a.typeDeclaration+" "+a.contextual+" "+a.other)),u=s(a.typeDeclaration+" "+a.contextual+" "+a.other),d=s(a.type+" "+a.typeDeclaration+" "+a.other),f=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),p=i(/\((?:[^()]|<>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,O=n(/<<0>>(?:\s*<<1>>)?/.source,[g,f]),S=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[u,O]),T=/\[\s*(?:,\s*)*\]/.source,w=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[S,T]),x=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[f,p,T]),k=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[x]),_=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[k,S,T]),R={keyword:l,punctuation:/[<>()?,.:[\]]/},N=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,P=/"(?:\\.|[^\\"\r\n])*"/.source,L=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[L]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[P]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[S]),lookbehind:!0,inside:R},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,_]),lookbehind:!0,inside:R},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[o,O]),lookbehind:!0,inside:R},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[S]),lookbehind:!0,inside:R},{pattern:r(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[w]),lookbehind:!0,inside:R},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[_,d,g]),inside:R}],keyword:l,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[p]),lookbehind:!0,alias:"class-name",inside:R},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[_,S]),inside:R,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[_]),lookbehind:!0,inside:R,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,f]),inside:{function:r(/^<<0>>/.source,[g]),generic:{pattern:RegExp(f),alias:"class-name",inside:R}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[o,O,g,_,l.source,p,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[O,p]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:l,"class-name":{pattern:RegExp(_),greedy:!0,inside:R},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var j=P+"|"+N,B=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[j]),V=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[B]),2),W=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,re=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[S,V]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[W,re]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[W]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[V]),inside:t.languages.csharp},"class-name":{pattern:RegExp(S),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var ee=/:[^}\r\n]+/.source,q=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[B]),2),ne=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[q,ee]),K=i(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[j]),2),G=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[K,ee]);function ie(H,Re){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[H]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[Re,ee]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[ne]),lookbehind:!0,greedy:!0,inside:ie(ne,q)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[G]),lookbehind:!0,greedy:!0,inside:ie(G,K)}],char:{pattern:RegExp(N),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(e)}ks.displayName="markup";ks.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function ks(e){e.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var i={};i["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[r]},i.cdata=/^$/i;var a={"included-cdata":{pattern://i,inside:i}};a["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var s={};s[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:a},e.languages.insertBefore("markup","cdata",s)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}Tm.displayName="css";Tm.aliases=[];function Tm(e){(function(t){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+n.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(e)}qR.displayName="diff";qR.aliases=[];function qR(e){(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var n={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(n).forEach(function(r){var i=n[r],a=[];/^\w+$/.test(r)||a.push(/\w+/.exec(r)[0]),r==="diff"&&a.push("bold"),t.languages.diff[r]={pattern:RegExp("^(?:["+i+`].*(?:\r -?| -|(?![\\s\\S])))+`,"m"),alias:a,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(r)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:n})})(e)}GR.displayName="go";GR.aliases=[];function GR(e){e.register(Sr),e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}YR.displayName="ini";YR.aliases=[];function YR(e){e.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}z1.displayName="java";z1.aliases=[];function z1(e){e.register(Sr),function(t){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[i,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:i.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:i.inside}],keyword:n,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:i.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:i.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return n.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(e)}ZR.displayName="regex";ZR.aliases=[];function ZR(e){(function(t){var n={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},r=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},a={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},s="(?:[^\\\\-]|"+r.source+")",o=RegExp(s+"-"+s),l={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:o,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":a,escape:r}},"special-escape":n,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":l}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:r,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]||&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}EO.displayName="json";EO.aliases=["webmanifest"];function EO(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}XR.displayName="kotlin";XR.aliases=["kt","kts"];function XR(e){e.register(Sr),function(t){t.languages.kotlin=t.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete t.languages.kotlin["class-name"];var n={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.kotlin}};t.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:n},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:n},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete t.languages.kotlin.string,t.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),t.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),t.languages.kt=t.languages.kotlin,t.languages.kts=t.languages.kotlin}(e)}KR.displayName="less";KR.aliases=[];function KR(e){e.register(Tm),e.languages.less=e.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}KT.displayName="lua";KT.aliases=[];function KT(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}JR.displayName="makefile";JR.aliases=[];function JR(e){e.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}JT.displayName="yaml";JT.aliases=["yml"];function JT(e){(function(t){var n=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+r.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+r.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(l,u){u=(u||"").replace(/m/g,"")+"m";var d=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return l});return RegExp(d,u)}t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return"(?:"+a+"|"+s+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(s),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml})(e)}eI.displayName="markdown";eI.aliases=["md"];function eI(e){e.register(ks),function(t){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(o){return o=o.replace(//g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+o+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),s=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+s+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+s+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(o){["url","bold","italic","strike","code-snippet"].forEach(function(l){o!==l&&(t.languages.markdown[o].inside.content.inside[l]=t.languages.markdown[l])})}),t.hooks.add("after-tokenize",function(o){if(o.language!=="markdown"&&o.language!=="md")return;function l(u){if(!(!u||typeof u=="string"))for(var d=0,f=u.length;d]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}nI.displayName="perl";nI.aliases=[];function nI(e){(function(t){var n=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;t.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,n+/\s*/.source+n].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(e)}Xs.displayName="markup-templating";Xs.aliases=[];function Xs(e){e.register(ks),function(t){function n(r,i){return"___"+r.toUpperCase()+i+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,i,a,s){if(r.language===i){var o=r.tokenStack=[];r.code=r.code.replace(a,function(l){if(typeof s=="function"&&!s(l))return l;for(var u=o.length,d;r.code.indexOf(d=n(i,u))!==-1;)++u;return o[u]=l,d}),r.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(r,i){if(r.language!==i||!r.tokenStack)return;r.grammar=t.languages[i];var a=0,s=Object.keys(r.tokenStack);function o(l){for(var u=0;u=s.length);u++){var d=l[u];if(typeof d=="string"||d.content&&typeof d.content=="string"){var f=s[a],p=r.tokenStack[f],g=typeof d=="string"?d:d.content,O=n(i,f),S=g.indexOf(O);if(S>-1){++a;var T=g.substring(0,S),w=new t.Token(i,t.tokenize(p,r.grammar),"language-"+i,p),x=g.substring(S+O.length),k=[];T&&k.push.apply(k,o([T])),k.push(w),x&&k.push.apply(k,o([x])),typeof d=="string"?l.splice.apply(l,[u,1].concat(k)):d.content=k}}else d.content&&o(d.content)}return l}o(r.tokens)}}})}(e)}j1.displayName="php";j1.aliases=[];function j1(e){e.register(Xs),function(t){var n=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,a=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,s=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:n,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:a,punctuation:s};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},l=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:o}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:o}}];t.languages.insertBefore("php","variable",{string:l,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:n,string:l,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,number:i,operator:a,punctuation:s}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(u){if(/<\?/.test(u.code)){var d=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;t.languages["markup-templating"].buildPlaceholders(u,"php",d)}}),t.hooks.add("after-tokenize",function(u){t.languages["markup-templating"].tokenizePlaceholders(u,"php")})}(e)}ex.displayName="python";ex.aliases=["py"];function ex(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}rI.displayName="r";rI.aliases=[];function rI(e){e.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}H1.displayName="ruby";H1.aliases=["rb"];function H1(e){e.register(Sr),function(t){t.languages.ruby=t.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),t.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:t.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete t.languages.ruby.function;var r="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",i=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;t.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+r+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+i),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+i+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),t.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+r),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+r),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete t.languages.ruby.string,t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),t.languages.rb=t.languages.ruby}(e)}iI.displayName="rust";iI.aliases=[];function iI(e){(function(t){for(var n=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+n),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string})(e)}aI.displayName="sass";aI.aliases=[];function aI(e){e.register(Tm),function(t){t.languages.sass=t.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete t.languages.sass.atrule;var n=/\$[-\w]+|#\{\$[-\w]+\}/,r=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];t.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:n,operator:r}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:n,operator:r,important:t.languages.sass.important}}}),delete t.languages.sass.property,delete t.languages.sass.important,t.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(e)}sI.displayName="scss";sI.aliases=[];function sI(e){e.register(Tm),e.languages.scss=e.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),e.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),e.languages.scss.atrule.inside.rest=e.languages.scss}wO.displayName="sql";wO.aliases=[];function wO(e){e.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}oI.displayName="swift";oI.aliases=[];function oI(e){e.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},e.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=e.languages.swift})}TO.displayName="typescript";TO.aliases=["ts"];function TO(e){e.register(Zs),function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var n=t.languages.extend("typescript",{});delete n["class-name"],t.languages.typescript["class-name"].inside=n,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n}}}}),t.languages.ts=t.languages.typescript}(e)}tx.displayName="basic";tx.aliases=[];function tx(e){e.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}nx.displayName="vbnet";nx.aliases=[];function nx(e){e.register(tx),e.languages.vbnet=e.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}class rx{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}rx.prototype.property={};rx.prototype.normal={};rx.prototype.space=null;function r0e(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&utt.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace($J,ftt);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!$J.test(a)){let s=a.replace(ctt,dtt);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=KB}return new i(r,t)}function dtt(e){return"-"+e.toLowerCase()}function ftt(e){return e.charAt(1).toUpperCase()}const htt={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"},W1=r0e([s0e,a0e,u0e,c0e,ott],"html"),xp=r0e([s0e,a0e,u0e,c0e,ltt],"svg"),FJ=/[#.]/g;function ptt(e,t){const n=e||"",r={};let i=0,a,s;for(;i=48&&t<=57}function Ett(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function wtt(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function zJ(e){return wtt(e)||f0e(e)}const jJ=document.createElement("i");function Yw(e){const t="&"+e+";";jJ.innerHTML=t;const n=jJ.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const Lb=String.fromCharCode,Ttt=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function xtt(e,t={}){const n=typeof t.additional=="string"?t.additional.charCodeAt(0):t.additional,r=[];let i=0,a=-1,s="",o,l;t.position&&("start"in t.position||"indent"in t.position?(l=t.position.indent,o=t.position.start):o=t.position);let u=(o?o.line:0)||1,d=(o?o.column:0)||1,f=g(),p;for(i--;++i<=e.length;)if(p===10&&(d=(l?l[a]:0)||1),p=e.charCodeAt(i),p===38){const T=e.charCodeAt(i+1);if(T===9||T===10||T===12||T===32||T===38||T===60||Number.isNaN(T)||n&&T===n){s+=Lb(p),d++;continue}const w=i+1;let x=w,k=w,_;if(T===35){k=++x;const W=e.charCodeAt(k);W===88||W===120?(_="hexadecimal",k=++x):_="decimal"}else _="named";let R="",N="",P="";const L=_==="named"?zJ:_==="decimal"?f0e:Ett;for(k--;++k<=e.length;){const W=e.charCodeAt(k);if(!L(W))break;P+=Lb(W),_==="named"&&Stt.includes(P)&&(R=P,N=Yw(P))}let j=e.charCodeAt(k)===59;if(j){k++;const W=_==="named"?Yw(P):!1;W&&(R=P,N=W)}let B=1+k-w,V="";if(!(!j&&t.nonTerminated===!1))if(!P)_!=="named"&&O(4,B);else if(_==="named"){if(j&&!N)O(5,1);else if(R!==P&&(k=x+R.length,B=1+k-x,j=!1),!j){const W=R?1:3;if(t.attribute){const re=e.charCodeAt(k);re===61?(O(W,B),N=""):zJ(re)?N="":O(W,B)}else O(W,B)}V=N}else{j||O(2,B);let W=Number.parseInt(P,_==="hexadecimal"?16:10);if(ktt(W))O(7,B),V=Lb(65533);else if(W in UJ)O(6,B),V=UJ[W];else{let re="";Att(W)&&O(6,B),W>65535&&(W-=65536,re+=Lb(W>>>10|55296),W=56320|W&1023),V=re+Lb(W)}}if(V){S(),f=g(),i=k-1,d+=k-w+1,r.push(V);const W=g();W.offset++,t.reference&&t.reference.call(t.referenceContext,V,{start:f,end:W},e.slice(w-1,k)),f=W}else P=e.slice(w-1,k),s+=P,d+=P.length,i=k-1}else p===10&&(u++,a++,d=0),Number.isNaN(p)?S():(s+=Lb(p),d++);return r.join("");function g(){return{line:u,column:d,offset:i+((o?o.offset:0)||0)}}function O(T,w){let x;t.warning&&(x=g(),x.column+=w,x.offset+=w,t.warning.call(t.warningContext,Ttt[T],x,T))}function S(){s&&(r.push(s),t.text&&t.text.call(t.textContext,s,{start:f,end:g()}),s="")}}function ktt(e){return e>=55296&&e<=57343||e>1114111}function Att(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var _tt=0,e4={},ys={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++_tt}),e.__id},clone:function e(t,n){n=n||{};var r,i;switch(ys.util.type(t)){case"Object":if(i=ys.util.objId(t),n[i])return n[i];r={},n[i]=r;for(var a in t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=ys.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(s,o){r[o]=e(s,n)}),r);default:return t}}},languages:{plain:e4,plaintext:e4,text:e4,txt:e4,extend:function(e,t){var n=ys.util.clone(ys.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||ys.languages;var i=r[e],a={};for(var s in i)if(i.hasOwnProperty(s)){if(s==t)for(var o in n)n.hasOwnProperty(o)&&(a[o]=n[o]);n.hasOwnProperty(s)||(a[s]=i[s])}var l=r[e];return r[e]=a,ys.languages.DFS(ys.languages,function(u,d){d===l&&u!=e&&(this[u]=a)}),a},DFS:function e(t,n,r,i){i=i||{};var a=ys.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var o=t[s],l=ys.util.type(o);l==="Object"&&!i[a(o)]?(i[a(o)]=!0,e(o,n,null,i)):l==="Array"&&!i[a(o)]&&(i[a(o)]=!0,e(o,n,s,i))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(ys.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=ys.tokenize(r.code,r.grammar),ys.hooks.run("after-tokenize",r),w2.stringify(ys.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new Ctt;return b_(i,i.head,e),h0e(e,i,t,i.head,0),Itt(i)},hooks:{all:{},add:function(e,t){var n=ys.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=ys.hooks.all[e];if(!(!n||!n.length))for(var r=0,i;i=n[r++];)i(t)}},Token:w2};function w2(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function HJ(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function h0e(e,t,n,r,i,a){for(var s in n)if(!(!n.hasOwnProperty(s)||!n[s])){var o=n[s];o=Array.isArray(o)?o:[o];for(var l=0;l=a.reach);w+=T.value.length,T=T.next){var x=T.value;if(t.length>e.length)return;if(!(x instanceof w2)){var k=1,_;if(p){if(_=HJ(S,w,e,f),!_||_.index>=e.length)break;var L=_.index,R=_.index+_[0].length,N=w;for(N+=T.value.length;L>=N;)T=T.next,N+=T.value.length;if(N-=T.value.length,w=N,T.value instanceof w2)continue;for(var P=T;P!==t.tail&&(Na.reach&&(a.reach=W);var re=T.prev;B&&(re=b_(t,re,B),w+=B.length),Rtt(t,re,k);var ee=new w2(s,d?ys.tokenize(j,d):j,g,j);if(T=b_(t,re,ee),V&&b_(t,T,V),k>1){var q={cause:s+","+l,reach:W};h0e(e,t,n,T.prev,w,q),a&&q.reach>a.reach&&(a.reach=q.reach)}}}}}}function Ctt(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function b_(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function Rtt(e,t,n){for(var r=t.next,i=0;i]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}nU.displayName="abnf";nU.aliases=[];function nU(e){(function(t){var n="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";t.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+n+"|<"+n+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(e)}rU.displayName="actionscript";rU.aliases=[];function rU(e){e.register(Zs),e.languages.actionscript=e.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),e.languages.actionscript["class-name"].alias="function",delete e.languages.actionscript.parameter,delete e.languages.actionscript["literal-property"],e.languages.markup&&e.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:e.languages.markup}})}iU.displayName="ada";iU.aliases=[];function iU(e){e.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|or|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}aU.displayName="agda";aU.aliases=[];function aU(e){(function(t){t.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(e)}sU.displayName="al";sU.aliases=[];function sU(e){e.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}oU.displayName="antlr4";oU.aliases=["g4"];function oU(e){e.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},e.languages.g4=e.languages.antlr4}lU.displayName="apacheconf";lU.aliases=[];function lU(e){e.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}uU.displayName="apex";uU.aliases=[];function uU(e){e.register(Sr),e.register(wO),function(t){var n=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,r=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return n.source});function i(s){return RegExp(s.replace(//g,function(){return r}),"i")}var a={keyword:n,punctuation:/[()\[\]{};,:.<>]/};t.languages.apex={comment:t.languages.clike.comment,string:t.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:t.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:i(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:a},{pattern:i(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:a},{pattern:i(/(?=\s*\w+\s*[;=,(){:])/.source),inside:a}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:n,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(e)}cU.displayName="apl";cU.aliases=[];function cU(e){e.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}dU.displayName="applescript";dU.aliases=[];function dU(e){e.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}fU.displayName="aql";fU.aliases=[];function fU(e){e.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}hU.displayName="arff";hU.aliases=[];function hU(e){e.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}pU.displayName="armasm";pU.aliases=["arm-asm"];function pU(e){e.languages.armasm={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"/,greedy:!0,inside:{variable:{pattern:/((?:^|[^$])(?:\${2})*)\$\w+/,lookbehind:!0}}},char:{pattern:/'(?:[^'\r\n]{0,4}|'')'/,greedy:!0},"version-symbol":{pattern:/\|[\w@]+\|/,greedy:!0,alias:"property"},boolean:/\b(?:FALSE|TRUE)\b/,directive:{pattern:/\b(?:ALIAS|ALIGN|AREA|ARM|ASSERT|ATTR|CN|CODE|CODE16|CODE32|COMMON|CP|DATA|DCB|DCD|DCDO|DCDU|DCFD|DCFDU|DCI|DCQ|DCQU|DCW|DCWU|DN|ELIF|ELSE|END|ENDFUNC|ENDIF|ENDP|ENTRY|EQU|EXPORT|EXPORTAS|EXTERN|FIELD|FILL|FN|FUNCTION|GBLA|GBLL|GBLS|GET|GLOBAL|IF|IMPORT|INCBIN|INCLUDE|INFO|KEEP|LCLA|LCLL|LCLS|LTORG|MACRO|MAP|MEND|MEXIT|NOFP|OPT|PRESERVE8|PROC|QN|READONLY|RELOC|REQUIRE|REQUIRE8|RLIST|ROUT|SETA|SETL|SETS|SN|SPACE|SUBT|THUMB|THUMBX|TTL|WEND|WHILE)\b/,alias:"property"},instruction:{pattern:/((?:^|(?:^|[^\\])(?:\r\n?|\n))[ \t]*(?:(?:[A-Z][A-Z0-9_]*[a-z]\w*|[a-z]\w*|\d+)[ \t]+)?)\b[A-Z.]+\b/,lookbehind:!0,alias:"keyword"},variable:/\$\w+/,number:/(?:\b[2-9]_\d+|(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e-?\d+)?|\b0(?:[fd]_|x)[0-9a-f]+|&[0-9a-f]+)\b/i,register:{pattern:/\b(?:r\d|lr)\b/,alias:"symbol"},operator:/<>|<<|>>|&&|\|\||[=!<>/]=?|[+\-*%#?&|^]|:[A-Z]+:/,punctuation:/[()[\],]/},e.languages["arm-asm"]=e.languages.armasm}mU.displayName="arturo";mU.aliases=["art"];function mU(e){(function(t){var n=function(r,i){return{pattern:RegExp(/\{!/.source+"(?:"+(i||r)+")"+/$[\s\S]*\}/.source,"m"),greedy:!0,inside:{embedded:{pattern:/(^\{!\w+\b)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-"+r,inside:t.languages[r]},string:/[\s\S]+/}}};t.languages.arturo={comment:{pattern:/;.*/,greedy:!0},character:{pattern:/`.`/,alias:"char",greedy:!0},number:{pattern:/\b\d+(?:\.\d+(?:\.\d+(?:-[\w+-]+)?)?)?\b/},string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},regex:{pattern:/\{\/.*?\/\}/,greedy:!0},"html-string":n("html"),"css-string":n("css"),"js-string":n("js"),"md-string":n("md"),"sql-string":n("sql"),"sh-string":n("shell","sh"),multistring:{pattern:/».*|\{:[\s\S]*?:\}|\{[\s\S]*?\}|^-{6}$[\s\S]*/m,alias:"string",greedy:!0},label:{pattern:/\w+\b\??:/,alias:"property"},literal:{pattern:/'(?:\w+\b\??:?)/,alias:"constant"},type:{pattern:/:(?:\w+\b\??:?)/,alias:"class-name"},color:/#\w+/,predicate:{pattern:/\b(?:all|and|any|ascii|attr|attribute|attributeLabel|binary|block|char|contains|database|date|dictionary|empty|equal|even|every|exists|false|floating|function|greater|greaterOrEqual|if|in|inline|integer|is|key|label|leap|less|lessOrEqual|literal|logical|lower|nand|negative|nor|not|notEqual|null|numeric|odd|or|path|pathLabel|positive|prefix|prime|regex|same|set|some|sorted|standalone|string|subset|suffix|superset|symbol|symbolLiteral|true|try|type|unless|upper|when|whitespace|word|xnor|xor|zero)\?/,alias:"keyword"},"builtin-function":{pattern:/\b(?:abs|acos|acosh|acsec|acsech|actan|actanh|add|after|alert|alias|and|angle|append|arg|args|arity|array|as|asec|asech|asin|asinh|atan|atan2|atanh|attr|attrs|average|before|benchmark|blend|break|call|capitalize|case|ceil|chop|clear|clip|close|color|combine|conj|continue|copy|cos|cosh|crc|csec|csech|ctan|ctanh|cursor|darken|dec|decode|define|delete|desaturate|deviation|dialog|dictionary|difference|digest|digits|div|do|download|drop|dup|e|else|empty|encode|ensure|env|escape|execute|exit|exp|extend|extract|factors|fdiv|filter|first|flatten|floor|fold|from|function|gamma|gcd|get|goto|hash|hypot|if|inc|indent|index|infinity|info|input|insert|inspect|intersection|invert|jaro|join|keys|kurtosis|last|let|levenshtein|lighten|list|ln|log|loop|lower|mail|map|match|max|median|min|mod|module|mul|nand|neg|new|nor|normalize|not|now|null|open|or|outdent|pad|palette|panic|path|pause|permissions|permutate|pi|pop|popup|pow|powerset|powmod|prefix|print|prints|process|product|query|random|range|read|relative|remove|rename|render|repeat|replace|request|return|reverse|round|sample|saturate|script|sec|sech|select|serve|set|shl|shr|shuffle|sin|sinh|size|skewness|slice|sort|spin|split|sqrt|squeeze|stack|strip|sub|suffix|sum|switch|symbols|symlink|sys|take|tan|tanh|terminal|terminate|to|truncate|try|type|unclip|union|unique|unless|until|unzip|upper|values|var|variance|volume|webview|while|with|wordwrap|write|xnor|xor|zip)\b/,alias:"keyword"},sugar:{pattern:/->|=>|\||::/,alias:"operator"},punctuation:/[()[\],]/,symbol:{pattern:/<:|-:|ø|@|#|\+|\||\*|\$|---|-|%|\/|\.\.|\^|~|=|<|>|\\/},boolean:{pattern:/\b(?:false|maybe|true)\b/}},t.languages.art=t.languages.arturo})(e)}gU.displayName="asciidoc";gU.aliases=["adoc"];function gU(e){(function(t){var n={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},r=t.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})$[\s\S]*?^\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:n,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:n.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:n,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function i(a){a=a.split(" ");for(var s={},o=0,l=a.length;o/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:e.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:e.languages.csharp}}}),e.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.insertBefore("inside","punctuation",{directive:e.languages.aspnet.directive},e.languages.aspnet.tag.inside["attr-value"]),e.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),e.languages.insertBefore("aspnet",e.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:e.languages.csharp||{}}})}yU.displayName="asm6502";yU.aliases=[];function yU(e){e.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}vU.displayName="asmatmel";vU.aliases=[];function vU(e){e.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&[&=]?|\|[\|=]?|[-+*/%^!=<>?]=?/,punctuation:/[(),:]/}}OU.displayName="autohotkey";OU.aliases=[];function OU(e){e.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,command:{pattern:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,alias:"selector"},constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,directive:{pattern:/#[a-z]+\b/i,alias:"important"},keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}SU.displayName="autoit";SU.aliases=[];function SU(e){e.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}EU.displayName="avisynth";EU.aliases=["avs"];function EU(e){(function(t){function n(u,d){return u.replace(/<<(\d+)>>/g,function(f,p){return d[+p]})}function r(u,d,f){return RegExp(n(u,d),f)}var i=/bool|clip|float|int|string|val/.source,a=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),s=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),o=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),l=[a,s,o].join("|");t.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:r(/\b(?:<<0>>)\s+("?)\w+\1/.source,[i],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:r(/\b(?:<<0>>)\b/.source,[l],"i"),alias:"function"},"type-cast":{pattern:r(/\b(?:<<0>>)(?=\s*\()/.source,[i],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},t.languages.avs=t.languages.avisynth})(e)}wU.displayName="avro-idl";wU.aliases=["avdl"];function wU(e){e.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},e.languages.avdl=e.languages["avro-idl"]}TU.displayName="awk";TU.aliases=["gawk"];function TU(e){e.languages.awk={hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\\"\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},regex:{pattern:/((?:^|[^\w\s)])\s*)\/(?:[^\/\\\r\n]|\\.)*\//,lookbehind:!0,greedy:!0},variable:/\$\w+/,keyword:/\b(?:BEGIN|BEGINFILE|END|ENDFILE|break|case|continue|default|delete|do|else|exit|for|function|getline|if|in|next|nextfile|printf?|return|switch|while)\b|@(?:include|load)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[a-fA-F0-9]+)\b/,operator:/--|\+\+|!?~|>&|>>|<<|(?:\*\*|[<>!=+\-*/%^])=?|&&|\|[|&]|[?:]/,punctuation:/[()[\]{},;]/},e.languages.gawk=e.languages.awk}xU.displayName="batch";xU.aliases=[];function xU(e){(function(t){var n=/%%?[~:\w]+%?|!\S+!/,r={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,a=/(?:\b|-)\d+\b/;t.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:i,parameter:r,variable:n,number:a,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:i,parameter:r,variable:n,number:a,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:i,parameter:r,variable:[n,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:a,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:i,parameter:r,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:n,number:a,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(e)}kU.displayName="bbcode";kU.aliases=["shortcode"];function kU(e){e.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},e.languages.shortcode=e.languages.bbcode}AU.displayName="bbj";AU.aliases=[];function AU(e){(function(t){t.languages.bbj={comment:{pattern:/(^|[^\\:])rem\s+.*/i,lookbehind:!0,greedy:!0},string:{pattern:/(['"])(?:(?!\1|\\).|\\.)*\1/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:abstract|all|argc|begin|bye|callback|case|chn|class|classend|ctl|day|declare|delete|dim|dom|dread|dsz|else|end|endif|err|exitto|extends|fi|field|for|from|gosub|goto|if|implements|interface|interfaceend|iol|iolist|let|list|load|method|methodend|methodret|on|opts|pfx|print|private|process_events|protected|psz|public|read|read_resource|release|remove_callback|repeat|restore|return|rev|seterr|setesc|sqlchn|sqlunt|ssn|start|static|swend|switch|sys|then|tim|unt|until|use|void|wend|where|while)\b/i,function:/\b\w+(?=\()/,boolean:/\b(?:BBjAPI\.TRUE|BBjAPI\.FALSE)\b/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:and|not|or|xor)\b/i,punctuation:/[.,;:()]/}})(e)}_U.displayName="bicep";_U.aliases=[];function _U(e){e.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},e.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=e.languages.bicep}CU.displayName="birb";CU.aliases=[];function CU(e){e.register(Sr),e.languages.birb=e.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),e.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}RU.displayName="bison";RU.aliases=[];function RU(e){e.register(Fd),e.languages.bison=e.languages.extend("c",{}),e.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:e.languages.c}},comment:e.languages.c.comment,string:e.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}IU.displayName="bnf";IU.aliases=["rbnf"];function IU(e){e.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},e.languages.rbnf=e.languages.bnf}NU.displayName="bqn";NU.aliases=[];function NU(e){e.languages.bqn={shebang:{pattern:/^#![ \t]*\/.*/,alias:"important",greedy:!0},comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/"(?:[^"]|"")*"/,greedy:!0,alias:"string"},"character-literal":{pattern:/'(?:[\s\S]|[\uD800-\uDBFF][\uDC00-\uDFFF])'/,greedy:!0,alias:"char"},function:/•[\w¯.∞π]+[\w¯.∞π]*/,"dot-notation-on-brackets":{pattern:/\{(?=.*\}\.)|\}\./,alias:"namespace"},"special-name":{pattern:/(?:𝕨|𝕩|𝕗|𝕘|𝕤|𝕣|𝕎|𝕏|𝔽|𝔾|𝕊|_𝕣_|_𝕣)/,alias:"keyword"},"dot-notation-on-name":{pattern:/[A-Za-z_][\w¯∞π]*\./,alias:"namespace"},"word-number-scientific":{pattern:/\d+(?:\.\d+)?[eE]¯?\d+/,alias:"number"},"word-name":{pattern:/[A-Za-z_][\w¯∞π]*/,alias:"symbol"},"word-number":{pattern:/[¯∞π]?(?:\d*\.?\b\d+(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π))?/,alias:"number"},"null-literal":{pattern:/@/,alias:"char"},"primitive-functions":{pattern:/[-+×÷⋆√⌊⌈|¬∧∨<>≠=≤≥≡≢⊣⊢⥊∾≍⋈↑↓↕«»⌽⍉/⍋⍒⊏⊑⊐⊒∊⍷⊔!]/,alias:"operator"},"primitive-1-operators":{pattern:/[`˜˘¨⁼⌜´˝˙]/,alias:"operator"},"primitive-2-operators":{pattern:/[∘⊸⟜○⌾⎉⚇⍟⊘◶⎊]/,alias:"operator"},punctuation:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}DU.displayName="brainfuck";DU.aliases=[];function DU(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}PU.displayName="brightscript";PU.aliases=[];function PU(e){e.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},e.languages.brightscript["directive-statement"].inside.expression.inside=e.languages.brightscript}LU.displayName="bro";LU.aliases=[];function LU(e){e.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}MU.displayName="bsl";MU.aliases=["oscript"];function MU(e){e.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},e.languages.oscript=e.languages.bsl}$U.displayName="cfscript";$U.aliases=["cfc"];function $U(e){e.register(Sr),e.languages.cfscript=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|:/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),e.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete e.languages.cfscript["class-name"],e.languages.cfc=e.languages.cfscript}FU.displayName="chaiscript";FU.aliases=[];function FU(e){e.register(Sr),e.register(B1),e.languages.chaiscript=e.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[e.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),e.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),e.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}BU.displayName="cil";BU.aliases=[];function BU(e){e.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}UU.displayName="cilkc";UU.aliases=["cilk-c"];function UU(e){e.register(Fd),e.languages.cilkc=e.languages.insertBefore("c","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-c"]=e.languages.cilkc}zU.displayName="cilkcpp";zU.aliases=["cilk","cilk-cpp"];function zU(e){e.register(B1),e.languages.cilkcpp=e.languages.insertBefore("cpp","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-cpp"]=e.languages.cilkcpp,e.languages.cilk=e.languages.cilkcpp}jU.displayName="clojure";jU.aliases=[];function jU(e){e.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}HU.displayName="cmake";HU.aliases=[];function HU(e){e.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_NAME|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}QU.displayName="cobol";QU.aliases=[];function QU(e){e.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}WU.displayName="coffeescript";WU.aliases=["coffee"];function WU(e){e.register(Zs),function(t){var n=/#(?!\{).+/,r={pattern:/#\{[^}]+\}/,alias:"variable"};t.languages.coffeescript=t.languages.extend("javascript",{comment:n,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:r}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),t.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:n,interpolation:r}}}),t.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:t.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:r}}]}),t.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete t.languages.coffeescript["template-string"],t.languages.coffee=t.languages.coffeescript}(e)}VU.displayName="concurnas";VU.aliases=["conc"];function VU(e){e.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},e.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},string:/[\s\S]+/}}}),e.languages.conc=e.languages.concurnas}qU.displayName="csp";qU.aliases=[];function qU(e){(function(t){function n(r){return RegExp(/([ \t])/.source+"(?:"+r+")"+/(?=[\s;]|$)/.source,"i")}t.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:n(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:n(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:n(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:n(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:n(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:n(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:n(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(e)}GU.displayName="cooklang";GU.aliases=[];function GU(e){(function(t){var n=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,r=/[^{}@#]+/.source,i=/\{[^}#@]*\}/.source,a=r+i,s=/(?:h|hours|hrs|m|min|minutes)/.source,o={pattern:/\{[^{}]*\}/,inside:{amount:{pattern:/([\{|])[^{}|*%]+/,lookbehind:!0,alias:"number"},unit:{pattern:/(%)[^}]+/,lookbehind:!0,alias:"symbol"},"servings-scaler":{pattern:/\*/,alias:"operator"},"servings-alternative-separator":{pattern:/\|/,alias:"operator"},"unit-separator":{pattern:/(?:%|(\*)%)/,lookbehind:!0,alias:"operator"},punctuation:/[{}]/}};t.languages.cooklang={comment:{pattern:/\[-[\s\S]*?-\]|--.*/,greedy:!0},meta:{pattern:/>>.*:.*/,inside:{property:{pattern:/(>>\s*)[^\s:](?:[^:]*[^\s:])?/,lookbehind:!0}}},"cookware-group":{pattern:new RegExp("#(?:"+a+"|"+n+")"),inside:{cookware:{pattern:new RegExp("(^#)(?:"+r+")"),lookbehind:!0,alias:"variable"},"cookware-keyword":{pattern:/^#/,alias:"keyword"},"quantity-group":{pattern:new RegExp(/\{[^{}@#]*\}/),inside:{quantity:{pattern:new RegExp(/(^\{)/.source+r),lookbehind:!0,alias:"number"},punctuation:/[{}]/}}}},"ingredient-group":{pattern:new RegExp("@(?:"+a+"|"+n+")"),inside:{ingredient:{pattern:new RegExp("(^@)(?:"+r+")"),lookbehind:!0,alias:"variable"},"ingredient-keyword":{pattern:/^@/,alias:"keyword"},"amount-group":o}},"timer-group":{pattern:/~(?!\s)[^@#~{}]*\{[^{}]*\}/,inside:{timer:{pattern:/(^~)[^{]+/,lookbehind:!0,alias:"variable"},"duration-group":{pattern:/\{[^{}]*\}/,inside:{punctuation:/[{}]/,unit:{pattern:new RegExp(/(%\s*)/.source+s+/\b/.source),lookbehind:!0,alias:"symbol"},operator:/%/,duration:{pattern:/\d+/,alias:"number"}}},"timer-keyword":{pattern:/^~/,alias:"keyword"}}}}})(e)}YU.displayName="coq";YU.aliases=[];function YU(e){(function(t){for(var n=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,"[]"),t.languages.coq={comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return n})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(e)}ZU.displayName="crystal";ZU.aliases=[];function ZU(e){e.register(H1),function(t){t.languages.crystal=t.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,t.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),t.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:t.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(e)}XU.displayName="css-extras";XU.aliases=[];function XU(e){e.register(Tm),function(t){var n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r;t.languages.css.selector={pattern:t.languages.css.selector.pattern,lookbehind:!0,inside:r={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},t.languages.css.atrule.inside["selector-function-argument"].inside=r,t.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var i={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};t.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:i,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:a})}(e)}KU.displayName="csv";KU.aliases=[];function KU(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}JU.displayName="cue";JU.aliases=[];function JU(e){(function(t){var n=/\\(?:(?!\2)|\2(?:[^()\r\n]|\([^()]*\)))/.source,r=/"""(?:[^\\"]|"(?!""\2)|)*"""/.source+"|"+/'''(?:[^\\']|'(?!''\2)|)*'''/.source+"|"+/"(?:[^\\\r\n"]|"(?!\2)|)*"/.source+"|"+/'(?:[^\\\r\n']|'(?!\2)|)*'/.source,i="(?:"+r.replace(//g,n)+")";t.languages.cue={comment:{pattern:/\/\/.*/,greedy:!0},"string-literal":{pattern:RegExp(/(^|[^#"'\\])(#*)/.source+i+/(?!["'])\2/.source),lookbehind:!0,greedy:!0,inside:{escape:{pattern:/(?=[\s\S]*["'](#*)$)\\\1(?:U[a-fA-F0-9]{1,8}|u[a-fA-F0-9]{1,4}|x[a-fA-F0-9]{1,2}|\d{2,3}|[^(])/,greedy:!0,alias:"string"},interpolation:{pattern:/(?=[\s\S]*["'](#*)$)\\\1\([^()]*\)/,greedy:!0,inside:{punctuation:/^\\#*\(|\)$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:{pattern:/(^|[^\w$])(?:for|if|import|in|let|null|package)(?![\w$])/,lookbehind:!0},boolean:{pattern:/(^|[^\w$])(?:false|true)(?![\w$])/,lookbehind:!0},builtin:{pattern:/(^|[^\w$])(?:bool|bytes|float|float(?:32|64)|u?int(?:8|16|32|64|128)?|number|rune|string)(?![\w$])/,lookbehind:!0},attribute:{pattern:/@[\w$]+(?=\s*\()/,alias:"function"},function:{pattern:/(^|[^\w$])[a-z_$][\w$]*(?=\s*\()/i,lookbehind:!0},number:{pattern:/(^|[^\w$.])(?:0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|0[xX][0-9A-Fa-f]+(?:_[0-9A-Fa-f]+)*|(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[eE][+-]?\d+(?:_\d+)*)?(?:[KMGTP]i?)?)(?![\w$])/,lookbehind:!0},operator:/\.{3}|_\|_|&&?|\|\|?|[=!]~|[<>=!]=?|[+\-*/?]/,punctuation:/[()[\]{},.:]/},t.languages.cue["string-literal"].inside.interpolation.inside.expression.inside=t.languages.cue})(e)}ez.displayName="cypher";ez.aliases=[];function ez(e){e.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}tz.displayName="d";tz.aliases=[];function tz(e){e.register(Sr),e.languages.d=e.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),e.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),e.languages.insertBefore("d","keyword",{property:/\B@\w*/}),e.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}nz.displayName="dart";nz.aliases=[];function nz(e){e.register(Sr),function(t){var n=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};t.languages.dart=t.languages.extend("clike",{"class-name":[i,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:n,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),t.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.dart}}},string:/[\s\S]+/}},string:void 0}),t.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),t.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(e)}rz.displayName="dataweave";rz.aliases=[];function rz(e){(function(t){t.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(e)}iz.displayName="dax";iz.aliases=[];function iz(e){e.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}az.displayName="dhall";az.aliases=[];function az(e){e.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},e.languages.dhall.string.inside.interpolation.inside.expression.inside=e.languages.dhall}sz.displayName="django";sz.aliases=["jinja2"];function sz(e){e.register(Xs),function(t){t.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var n=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,r=t.languages["markup-templating"];t.hooks.add("before-tokenize",function(i){r.buildPlaceholders(i,"django",n)}),t.hooks.add("after-tokenize",function(i){r.tokenizePlaceholders(i,"django")}),t.languages.jinja2=t.languages.django,t.hooks.add("before-tokenize",function(i){r.buildPlaceholders(i,"jinja2",n)}),t.hooks.add("after-tokenize",function(i){r.tokenizePlaceholders(i,"jinja2")})}(e)}oz.displayName="dns-zone-file";oz.aliases=["dns-zone"];function oz(e){e.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}lz.displayName="docker";lz.aliases=["dockerfile"];function lz(e){(function(t){var n=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,r=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return n}),i=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,a=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return i}),s={pattern:RegExp(i),greedy:!0},o={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function l(u,d){return u=u.replace(//g,function(){return a}).replace(//g,function(){return r}),RegExp(u,d)}t.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:l(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[s,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:l(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:l(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:l(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:o,string:s,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:o},t.languages.dockerfile=t.languages.docker})(e)}uz.displayName="dot";uz.aliases=["gv"];function uz(e){(function(t){var n="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",r={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:t.languages.markup}};function i(a,s){return RegExp(a.replace(//g,function(){return n}),s)}t.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:i(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:r},"attr-value":{pattern:i(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:r},"attr-name":{pattern:i(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:r},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:i(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:r},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},t.languages.gv=t.languages.dot})(e)}cz.displayName="ebnf";cz.aliases=[];function cz(e){e.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}dz.displayName="editorconfig";dz.aliases=[];function dz(e){e.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}fz.displayName="eiffel";fz.aliases=[];function fz(e){e.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}hz.displayName="ejs";hz.aliases=["eta"];function hz(e){e.register(Zs),e.register(Xs),function(t){t.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:t.languages.javascript}},t.hooks.add("before-tokenize",function(n){var r=/<%(?!%)[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"ejs",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"ejs")}),t.languages.eta=t.languages.ejs}(e)}pz.displayName="elixir";pz.aliases=[];function pz(e){e.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},e.languages.elixir.string.forEach(function(t){t.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:e.languages.elixir}}}})}mz.displayName="elm";mz.aliases=[];function mz(e){e.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}gz.displayName="etlua";gz.aliases=[];function gz(e){e.register(KT),e.register(Xs),function(t){t.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:t.languages.lua}},t.hooks.add("before-tokenize",function(n){var r=/<%[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"etlua",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"etlua")})}(e)}bz.displayName="erb";bz.aliases=[];function bz(e){e.register(Xs),e.register(H1),function(t){t.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:t.languages.ruby}},t.hooks.add("before-tokenize",function(n){var r=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"erb",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"erb")})}(e)}yz.displayName="erlang";yz.aliases=[];function yz(e){e.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|begin|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}vz.displayName="excel-formula";vz.aliases=["xls","xlsx"];function vz(e){e.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"builtin"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"selector",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"selector"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},e.languages.xlsx=e.languages.xls=e.languages["excel-formula"]}Oz.displayName="fsharp";Oz.aliases=[];function Oz(e){e.register(Sr),e.languages.fsharp=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:e.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}Sz.displayName="factor";Sz.aliases=[];function Sz(e){(function(t){var n={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},r={number:/\\[^\s']|%\w/},i={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:n},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:n}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:r.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:r}},a=function(u){return(u+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},s=function(u){return new RegExp("(^|\\s)(?:"+u.map(a).join("|")+")(?=\\s|$)")},o={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(o).forEach(function(u){i[u].pattern=s(o[u])});var l=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"];i.combinators.pattern=s(l),t.languages.factor=i})(e)}Ez.displayName="false";Ez.aliases=[];function Ez(e){(function(t){t.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete e.languages["firestore-security-rules"]["class-name"],e.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}Tz.displayName="flow";Tz.aliases=[];function Tz(e){e.register(Zs),function(t){t.languages.flow=t.languages.extend("javascript",{}),t.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),t.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete t.languages.flow.parameter,t.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(t.languages.flow.keyword)||(t.languages.flow.keyword=[t.languages.flow.keyword]),t.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(e)}xz.displayName="fortran";xz.aliases=[];function xz(e){e.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}kz.displayName="ftl";kz.aliases=[];function kz(e){e.register(Xs),function(t){for(var n=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var i={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return n})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return n})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};i.string[1].inside.interpolation.inside.rest=i,t.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}}},t.hooks.add("before-tokenize",function(a){var s=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return n}),"gi");t.languages["markup-templating"].buildPlaceholders(a,"ftl",s)}),t.hooks.add("after-tokenize",function(a){t.languages["markup-templating"].tokenizePlaceholders(a,"ftl")})}(e)}Az.displayName="gml";Az.aliases=["gamemakerlanguage"];function Az(e){e.register(Sr),e.languages.gamemakerlanguage=e.languages.gml=e.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}_z.displayName="gap";_z.aliases=[];function _z(e){e.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},e.languages.gap.shell.inside.gap.inside=e.languages.gap}Cz.displayName="gcode";Cz.aliases=[];function Cz(e){e.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}Rz.displayName="gdscript";Rz.aliases=[];function Rz(e){e.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}Iz.displayName="gedcom";Iz.aliases=[];function Iz(e){e.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},record:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"tag"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}Nz.displayName="gettext";Nz.aliases=["po"];function Nz(e){e.languages.gettext={comment:[{pattern:/# .*/,greedy:!0,alias:"translator-comment"},{pattern:/#\..*/,greedy:!0,alias:"extracted-comment"},{pattern:/#:.*/,greedy:!0,alias:"reference-comment"},{pattern:/#,.*/,greedy:!0,alias:"flag-comment"},{pattern:/#\|.*/,greedy:!0,alias:"previously-untranslated-comment"},{pattern:/#.*/,greedy:!0}],string:{pattern:/(^|[^\\])"(?:[^"\\]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/^msg(?:ctxt|id|id_plural|str)\b/m,number:/\b\d+\b/,punctuation:/[\[\]]/},e.languages.po=e.languages.gettext}Dz.displayName="gherkin";Dz.aliases=[];function Dz(e){(function(t){var n=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;t.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+n+")(?:"+n+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(n),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(e)}Pz.displayName="git";Pz.aliases=[];function Pz(e){e.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}Lz.displayName="glsl";Lz.aliases=[];function Lz(e){e.register(Fd),e.languages.glsl=e.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}Mz.displayName="gn";Mz.aliases=["gni"];function Mz(e){e.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},e.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=e.languages.gn,e.languages.gni=e.languages.gn}$z.displayName="linker-script";$z.aliases=["ld"];function $z(e){e.languages["linker-script"]={comment:{pattern:/(^|\s)\/\*[\s\S]*?(?:$|\*\/)/,lookbehind:!0,greedy:!0},identifier:{pattern:/"[^"\r\n]*"/,greedy:!0},"location-counter":{pattern:/\B\.\B/,alias:"important"},section:{pattern:/(^|[^\w*])\.\w+\b/,lookbehind:!0,alias:"keyword"},function:/\b[A-Z][A-Z_]*(?=\s*\()/,number:/\b(?:0[xX][a-fA-F0-9]+|\d+)[KM]?\b/,operator:/>>=?|<<=?|->|\+\+|--|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?/,punctuation:/[(){},;]/},e.languages.ld=e.languages["linker-script"]}Fz.displayName="go-module";Fz.aliases=["go-mod"];function Fz(e){e.languages["go-mod"]=e.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}Bz.displayName="gradle";Bz.aliases=[];function Bz(e){e.register(Sr),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.gradle=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:apply|def|dependencies|else|if|implementation|import|plugin|plugins|project|repositories|repository|sourceSets|tasks|val)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("gradle","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("gradle","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("gradle","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.gradle}(e)}Uz.displayName="graphql";Uz.aliases=[];function Uz(e){e.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:e.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},e.hooks.add("after-tokenize",function(n){if(n.language!=="graphql")return;var r=n.tokens.filter(function(T){return typeof T!="string"&&T.type!=="comment"&&T.type!=="scalar"}),i=0;function a(T){return r[i+T]}function s(T,w){w=w||0;for(var x=0;x0)){var g=o(/^\{$/,/^\}$/);if(g===-1)continue;for(var O=i;O=0&&l(S,"variable-input")}}}}})}zz.displayName="groovy";zz.aliases=[];function zz(e){e.register(Sr),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.groovy=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.groovy}(e)}jz.displayName="textile";jz.aliases=[];function jz(e){e.register(ks),function(t){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,r=/\)|\((?![^|()\n]+\))/.source;function i(f,p){return RegExp(f.replace(//g,function(){return"(?:"+n+")"}).replace(//g,function(){return"(?:"+r+")"}),p||"")}var a={css:{pattern:/\{[^{}]+\}/,inside:{rest:t.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},s=t.languages.textile=t.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:a},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)+/.source),lookbehind:!0,inside:a},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:a},punctuation:/\||^\./}},inline:{pattern:i(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:i(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:i(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:i(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:i(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:i(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:i(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:i(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:i(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:a},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:i(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:i(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:i(/(^")+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:i(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:i(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:i(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),o=s.phrase.inside,l={inline:o.inline,link:o.link,image:o.image,footnote:o.footnote,acronym:o.acronym,mark:o.mark};s.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var u=o.inline.inside;u.bold.inside=l,u.italic.inside=l,u.inserted.inside=l,u.deleted.inside=l,u.span.inside=l;var d=o.table.inside;d.inline=l.inline,d.link=l.link,d.image=l.image,d.footnote=l.footnote,d.acronym=l.acronym,d.mark=l.mark}(e)}Hz.displayName="haml";Hz.aliases=[];function Hz(e){e.register(H1),function(t){t.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:t.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:t.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:t.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:t.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:t.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:t.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var n="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",r=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],i={},a=0,s=r.length;a@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},t.hooks.add("before-tokenize",function(n){var r=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;t.languages["markup-templating"].buildPlaceholders(n,"handlebars",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"handlebars")}),t.languages.hbs=t.languages.handlebars,t.languages.mustache=t.languages.handlebars}(e)}ix.displayName="haskell";ix.aliases=["hs"];function ix(e){e.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},e.languages.hs=e.languages.haskell}Wz.displayName="haxe";Wz.aliases=[];function Wz(e){e.register(Sr),e.languages.haxe=e.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),e.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.haxe}}},string:/[\s\S]+/}}}),e.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),e.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}Vz.displayName="hcl";Vz.aliases=[];function Vz(e){e.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}qz.displayName="hlsl";qz.aliases=[];function qz(e){e.register(Fd),e.languages.hlsl=e.languages.extend("c",{"class-name":[e.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}Gz.displayName="hoon";Gz.aliases=[];function Gz(e){e.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}Yz.displayName="hpkp";Yz.aliases=[];function Yz(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}Zz.displayName="hsts";Zz.aliases=[];function Zz(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}Xz.displayName="uri";Xz.aliases=["url"];function Xz(e){e.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},e.languages.url=e.languages.uri}Kz.displayName="http";Kz.aliases=[];function Kz(e){(function(t){function n(d){return RegExp("(^(?:"+d+"):[ ]*(?![ ]))[^]+","i")}t.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:t.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:n(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:t.languages.csp},{pattern:n(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:t.languages.hpkp},{pattern:n(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:t.languages.hsts},{pattern:n(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var r=t.languages,i={"application/javascript":r.javascript,"application/json":r.json||r.javascript,"application/xml":r.xml,"text/xml":r.xml,"text/html":r.html,"text/css":r.css,"text/plain":r.plain},a={"application/json":!0,"application/xml":!0};function s(d){var f=d.replace(/^[a-z]+\//,""),p="\\w+/(?:[\\w.-]+\\+)+"+f+"(?![+\\w.-])";return"(?:"+d+"|"+p+")"}var o;for(var l in i)if(i[l]){o=o||{};var u=a[l]?s(l):l;o[l.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+u+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[l]}}o&&t.languages.insertBefore("http","header",o)})(e)}Jz.displayName="ichigojam";Jz.aliases=[];function Jz(e){e.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}ej.displayName="icon";ej.aliases=[];function ej(e){e.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}tj.displayName="icu-message-format";tj.aliases=[];function tj(e){(function(t){function n(l,u){return u<=0?/[]/.source:l.replace(//g,function(){return n(l,u-1)})}var r=/'[{}:=,](?:[^']|'')*'(?!')/,i={pattern:/''/,greedy:!0,alias:"operator"},a={pattern:r,greedy:!0,inside:{escape:i}},s=n(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return r.source}),8),o={pattern:RegExp(s),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};t.languages["icu-message-format"]={argument:{pattern:RegExp(s),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":o,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":o,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+n(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:i,string:a},o.inside.message.inside=t.languages["icu-message-format"],t.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=t.languages["icu-message-format"]})(e)}nj.displayName="idris";nj.aliases=["idr"];function nj(e){e.register(ix),e.languages.idris=e.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),e.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.idr=e.languages.idris}rj.displayName="ignore";rj.aliases=["gitignore","hgignore","npmignore"];function rj(e){(function(t){t.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},t.languages.gitignore=t.languages.ignore,t.languages.hgignore=t.languages.ignore,t.languages.npmignore=t.languages.ignore})(e)}ij.displayName="inform7";ij.aliases=[];function ij(e){e.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},e.languages.inform7.string.inside.substitution.inside.rest=e.languages.inform7,e.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}aj.displayName="io";aj.aliases=[];function aj(e){e.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}_O.displayName="javadoclike";_O.aliases=[];function _O(e){(function(t){var n=t.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function r(a,s){var o="doc-comment",l=t.languages[a];if(l){var u=l[o];if(!u){var d={};d[o]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},l=t.languages.insertBefore(a,"comment",d),u=l[o]}if(u instanceof RegExp&&(u=l[o]={pattern:u}),Array.isArray(u))for(var f=0,p=u.length;f|\b(?:abstract|case|catch|class|def|derives|do|else|enum|extends|extension|final|finally|for|forSome|given|if|implicit|import|infix|inline|lazy|match|new|null|object|opaque|open|override|package|private|protected|return|sealed|self|super|this|throw|trait|transparent|try|type|using|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),e.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.scala}}},string:/[\s\S]+/}}}),delete e.languages.scala["class-name"],delete e.languages.scala.function,delete e.languages.scala.constant}lj.displayName="javadoc";lj.aliases=[];function lj(e){e.register(z1),e.register(_O),e.register(ks),function(t){var n=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,r=/#\s*\w+(?:\s*\([^()]*\))?/.source,i=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*)?|/.source.replace(//g,function(){return r});t.languages.javadoc=t.languages.extend("javadoclike",{}),t.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+i+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:t.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:n,lookbehind:!0,inside:t.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:n,lookbehind:!0,inside:{tag:t.languages.markup.tag,entity:t.languages.markup.entity,code:{pattern:/.+/,inside:t.languages.java,alias:"language-java"}}}}}],tag:t.languages.markup.tag,entity:t.languages.markup.entity}),t.languages.javadoclike.addSupport("java",t.languages.javadoc)}(e)}uj.displayName="javastacktrace";uj.aliases=[];function uj(e){e.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:|[\w$]+)\()/,function:/(?:|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}cj.displayName="jexl";cj.aliases=[];function cj(e){e.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}dj.displayName="jolie";dj.aliases=[];function dj(e){e.register(Sr),e.languages.jolie=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),e.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}fj.displayName="jq";fj.aliases=[];function fj(e){(function(t){var n=/\\\((?:[^()]|\([^()]*\))*\)/.source,r=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return n})),i={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+n),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},a=t.languages.jq={comment:/#.*/,property:{pattern:RegExp(r.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:i},string:{pattern:r,lookbehind:!0,greedy:!0,inside:i},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};i.interpolation.inside.content.inside=a})(e)}hj.displayName="js-templates";hj.aliases=[];function hj(e){e.register(Zs),function(t){var n=t.languages.javascript["template-string"],r=n.pattern.source,i=n.inside.interpolation,a=i.inside["interpolation-punctuation"],s=i.pattern.source;function o(O,S){if(t.languages[O])return{pattern:RegExp("((?:"+S+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:O}}}}t.languages.javascript["template-string"]=[o("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),o("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),o("svg",/\bsvg/.source),o("markdown",/\b(?:markdown|md)/.source),o("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),o("sql",/\bsql/.source),n].filter(Boolean);function l(O,S){return"___"+S.toUpperCase()+"_"+O+"___"}function u(O,S,T){var w={code:O,grammar:S,language:T};return t.hooks.run("before-tokenize",w),w.tokens=t.tokenize(w.code,w.grammar),t.hooks.run("after-tokenize",w),w.tokens}function d(O){var S={};S["interpolation-punctuation"]=a;var T=t.tokenize(O,S);if(T.length===3){var w=[1,1];w.push.apply(w,u(T[1],t.languages.javascript,"javascript")),T.splice.apply(T,w)}return new t.Token("interpolation",T,i.alias,O)}function f(O,S,T){var w=t.tokenize(O,{interpolation:{pattern:RegExp(s),lookbehind:!0}}),x=0,k={},_=w.map(function(L){if(typeof L=="string")return L;for(var j=L.content,B;O.indexOf(B=l(x++,T))!==-1;);return k[B]=j,B}).join(""),R=u(_,S,T),N=Object.keys(k);x=0;function P(L){for(var j=0;j=N.length)return;var B=L[j];if(typeof B=="string"||typeof B.content=="string"){var V=N[x],W=typeof B=="string"?B:B.content,re=W.indexOf(V);if(re!==-1){++x;var ee=W.substring(0,re),q=d(k[V]),ne=W.substring(re+V.length),K=[];if(ee&&K.push(ee),K.push(q),ne){var G=[ne];P(G),K.push.apply(K,G)}typeof B=="string"?(L.splice.apply(L,[j,1].concat(K)),j+=K.length-1):B.content=K}}else{var ie=B.content;Array.isArray(ie)?P(ie):P([ie])}}}return P(R),new t.Token(T,R,"language-"+T,O)}var p={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};t.hooks.add("after-tokenize",function(O){if(!(O.language in p))return;function S(T){for(var w=0,x=T.length;w\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return r})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+r),lookbehind:!0,inside:{string:n.string,number:n.number,boolean:n.boolean,keyword:t.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:n,alias:"language-javascript"}}}}),t.languages.javadoclike.addSupport("javascript",t.languages.jsdoc)}(e)}mj.displayName="n4js";mj.aliases=["n4jsd"];function mj(e){e.register(Zs),e.languages.n4js=e.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),e.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),e.languages.n4jsd=e.languages.n4js}gj.displayName="js-extras";gj.aliases=[];function gj(e){e.register(Zs),function(t){t.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+t.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),t.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+t.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),t.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function n(l,u){return RegExp(l.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),u)}t.languages.insertBefore("javascript","keyword",{imports:{pattern:n(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:t.languages.javascript},exports:{pattern:n(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:t.languages.javascript}}),t.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),t.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),t.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:n(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var r=["function","function-variable","method","method-variable","property-access"],i=0;i|.*(?:node_modules|\(\)|\(|$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}Oj.displayName="julia";Oj.aliases=[];function Oj(e){e.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}Sj.displayName="keepalived";Sj.aliases=[];function Sj(e){e.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}|(?:[\da-f]{1,4}:){0,5}:|::(?:[\da-f]{1,4}:){0,5}|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|(?:\/\d{1,2})?)\b/.source.replace(//g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}Ej.displayName="keyman";Ej.aliases=[];function Ej(e){e.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|newcontext|nomatch|postkeystroke|readonly|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}wj.displayName="kumir";wj.aliases=["kum"];function wj(e){(function(t){var n=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function r(i,a){return RegExp(i.replace(//g,n),a)}t.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:r(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:r(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:r(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:r(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:r(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:r(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:r(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:r(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},t.languages.kum=t.languages.kumir})(e)}Tj.displayName="kusto";Tj.aliases=[];function Tj(e){e.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}xj.displayName="latex";xj.aliases=["context","tex"];function xj(e){(function(t){var n=/\\(?:[^a-z()[\]]|[a-z*]+)/i,r={"equation-command":{pattern:n,alias:"regex"}};t.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:r,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:r,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:n,alias:"selector"},punctuation:/[[\]{}&]/},t.languages.tex=t.languages.latex,t.languages.context=t.languages.latex})(e)}kj.displayName="latte";kj.aliases=[];function kj(e){e.register(Sr),e.register(Xs),e.register(j1),function(t){t.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:t.languages.php}};var n=t.languages.extend("markup",{});t.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.php}}}}}},n.tag),t.hooks.add("before-tokenize",function(r){if(r.language==="latte"){var i=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;t.languages["markup-templating"].buildPlaceholders(r,"latte",i),r.grammar=n}}),t.hooks.add("after-tokenize",function(r){t.languages["markup-templating"].tokenizePlaceholders(r,"latte")})}(e)}ax.displayName="scheme";ax.aliases=[];function ax(e){(function(t){t.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(n({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function n(r){for(var i in r)r[i]=r[i].replace(/<[\w\s]+>/g,function(a){return"(?:"+r[a].trim()+")"});return r[i]}})(e)}Aj.displayName="lilypond";Aj.aliases=["ly"];function Aj(e){e.register(ax),function(t){for(var n=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,r=5,i=0;i/g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var a=t.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return n}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:t.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};a["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=a,t.languages.ly=a}(e)}_j.displayName="liquid";_j.aliases=[];function _j(e){e.register(Xs),e.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},e.hooks.add("before-tokenize",function(t){var n=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,r=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",n,function(i){var a=/^\{%-?\s*(\w+)/.exec(i);if(a){var s=a[1];if(s==="raw"&&!r)return r=!0,!0;if(s==="endraw")return r=!1,!0}return!r})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}Cj.displayName="lisp";Cj.aliases=["elisp","emacs","emacs-lisp"];function Cj(e){(function(t){function n(O){return RegExp(/(\()/.source+"(?:"+O+")"+/(?=[\s\)])/.source)}function r(O){return RegExp(/([\s([])/.source+"(?:"+O+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,a="&"+i,s="(\\()",o="(?=\\))",l="(?=\\s)",u=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,d={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+i+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+i),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+i),alias:"property"},splice:{pattern:RegExp(",@?"+i),alias:["symbol","variable"]},keyword:[{pattern:RegExp(s+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+l),lookbehind:!0},{pattern:RegExp(s+"(?:append|by|collect|concat|do|finally|for|in|return)"+l),lookbehind:!0}],declare:{pattern:n(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:n(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:r(/nil|t/.source),lookbehind:!0},number:{pattern:r(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(s+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(s+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+u+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(s+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(s+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},f={"lisp-marker":RegExp(a),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+u+/\)/.source),inside:d},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:d},p="\\S+(?:\\s+\\S+)*",g={pattern:RegExp(s+u+o),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+p),inside:f},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+p),inside:f},keys:{pattern:RegExp("&key\\s+"+p+"(?:\\s+&allow-other-keys)?"),inside:f},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};d.lambda.inside.arguments=g,d.defun.inside.arguments=t.util.clone(g),d.defun.inside.arguments.inside.sublist=g,t.languages.lisp=d,t.languages.elisp=d,t.languages.emacs=d,t.languages["emacs-lisp"]=d})(e)}Rj.displayName="livescript";Rj.aliases=[];function Rj(e){e.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},e.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=e.languages.livescript}Ij.displayName="llvm";Ij.aliases=[];function Ij(e){(function(t){t.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(e)}Nj.displayName="log";Nj.aliases=[];function Nj(e){e.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:e.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}Dj.displayName="lolcode";Dj.aliases=[];function Dj(e){e.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}Pj.displayName="magma";Pj.aliases=[];function Pj(e){e.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}lI.displayName="mata";lI.aliases=[];function lI(e){(function(t){var n=/\b(?:(?:col|row)?vector|matrix|scalar)\b/.source,r=/\bvoid\b||\b(?:complex|numeric|pointer(?:\s*\([^()]*\))?|real|string|(?:class|struct)\s+\w+|transmorphic)(?:\s*)?/.source.replace(//g,n);t.languages.mata={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|struct)\s+)\w+(?=\s*(?:\{|\bextends\b))/,lookbehind:!0},type:{pattern:RegExp(r),alias:"class-name",inside:{punctuation:/[()]/,keyword:/\b(?:class|function|struct|void)\b/}},keyword:/\b(?:break|class|continue|do|else|end|extends|external|final|for|function|goto|if|pragma|private|protected|public|return|static|struct|unset|unused|version|virtual|while)\b/,constant:/\bNULL\b/,number:{pattern:/(^|[^\w.])(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|\d[a-f0-9]*(?:\.[a-f0-9]+)?x[+-]?\d+)i?(?![\w.])/i,lookbehind:!0},missing:{pattern:/(^|[^\w.])(?:\.[a-z]?)(?![\w.])/,lookbehind:!0,alias:"symbol"},function:/\b[a-z_]\w*(?=\s*\()/i,operator:/\.\.|\+\+|--|&&|\|\||:?(?:[!=<>]=|[+\-*/^<>&|:])|[!?=\\#’`']/,punctuation:/[()[\]{},;.]/}})(e)}Lj.displayName="matlab";Lj.aliases=[];function Lj(e){e.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}Mj.displayName="maxscript";Mj.aliases=[];function Mj(e){(function(t){var n=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;t.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+n.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+n.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:n,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(e)}$j.displayName="mel";$j.aliases=[];function $j(e){e.languages.mel={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},code:{pattern:/`(?:\\.|[^\\`])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},statement:{pattern:/[\s\S]+/,inside:null}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:{pattern:/((?:^|[{;])[ \t]*)[a-z_]\w*\b(?!\s*(?:\.(?!\.)|[[{=]))|\b[a-z_]\w*(?=[ \t]*\()/im,lookbehind:!0,greedy:!0},"tensor-punctuation":{pattern:/<<|>>/,alias:"punctuation"},operator:/\+[+=]?|-[-=]?|&&|\|\||[<>]=?|[*\/!=]=?|[%^]/,punctuation:/[.,:;?\[\](){}]/},e.languages.mel.code.inside.statement.inside=e.languages.mel}Fj.displayName="mermaid";Fj.aliases=[];function Fj(e){e.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}Bj.displayName="metafont";Bj.aliases=[];function Bj(e){e.languages.metafont={comment:{pattern:/%.*/,greedy:!0},string:{pattern:/"[^\r\n"]*"/,greedy:!0},number:/\d*\.?\d+/,boolean:/\b(?:false|true)\b/,punctuation:[/[,;()]/,{pattern:/(^|[^{}])(?:\{|\})(?![{}])/,lookbehind:!0},{pattern:/(^|[^[])\[(?!\[)/,lookbehind:!0},{pattern:/(^|[^\]])\](?!\])/,lookbehind:!0}],constant:[{pattern:/(^|[^!?])\?\?\?(?![!?])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\\|\\\\)(?![/*\\])/,lookbehind:!0},/\b(?:_|blankpicture|bp|cc|cm|dd|ditto|down|eps|epsilon|fullcircle|halfcircle|identity|in|infinity|left|mm|nullpen|nullpicture|origin|pc|penrazor|penspeck|pensquare|penstroke|proof|pt|quartercircle|relax|right|smoke|unitpixel|unitsquare|up)\b/],quantity:{pattern:/\b(?:autorounding|blacker|boundarychar|charcode|chardp|chardx|chardy|charext|charht|charic|charwd|currentwindow|day|designsize|displaying|fillin|fontmaking|granularity|hppp|join_radius|month|o_correction|pausing|pen_(?:bot|lft|rt|top)|pixels_per_inch|proofing|showstopping|smoothing|time|tolerance|tracingcapsules|tracingchoices|tracingcommands|tracingedges|tracingequations|tracingmacros|tracingonline|tracingoutput|tracingpens|tracingrestores|tracingspecs|tracingstats|tracingtitles|turningcheck|vppp|warningcheck|xoffset|year|yoffset)\b/,alias:"keyword"},command:{pattern:/\b(?:addto|batchmode|charlist|cull|display|errhelp|errmessage|errorstopmode|everyjob|extensible|fontdimen|headerbyte|inner|interim|let|ligtable|message|newinternal|nonstopmode|numspecial|openwindow|outer|randomseed|save|scrollmode|shipout|show|showdependencies|showstats|showtoken|showvariable|special)\b/,alias:"builtin"},operator:[{pattern:/(^|[^>=<:|])(?:<|<=|=|=:|\|=:|\|=:>|=:\|>|=:\||\|=:\||\|=:\|>|\|=:\|>>|>|>=|:|:=|<>|::|\|\|:)(?![>=<:|])/,lookbehind:!0},{pattern:/(^|[^+-])(?:\+|\+\+|-{1,3}|\+-\+)(?![+-])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\*|\*\*|\/)(?![/*\\])/,lookbehind:!0},{pattern:/(^|[^.])(?:\.{2,3})(?!\.)/,lookbehind:!0},{pattern:/(^|[^@#&$])&(?![@#&$])/,lookbehind:!0},/\b(?:and|not|or)\b/],macro:{pattern:/\b(?:abs|beginchar|bot|byte|capsule_def|ceiling|change_width|clear_pen_memory|clearit|clearpen|clearxy|counterclockwise|cullit|cutdraw|cutoff|decr|define_blacker_pixels|define_corrected_pixels|define_good_x_pixels|define_good_y_pixels|define_horizontal_corrected_pixels|define_pixels|define_whole_blacker_pixels|define_whole_pixels|define_whole_vertical_blacker_pixels|define_whole_vertical_pixels|dir|direction|directionpoint|div|dotprod|downto|draw|drawdot|endchar|erase|fill|filldraw|fix_units|flex|font_coding_scheme|font_extra_space|font_identifier|font_normal_shrink|font_normal_space|font_normal_stretch|font_quad|font_size|font_slant|font_x_height|gfcorners|gobble|gobbled|good\.(?:bot|lft|rt|top|x|y)|grayfont|hide|hround|imagerules|incr|interact|interpath|intersectionpoint|inverse|italcorr|killtext|labelfont|labels|lft|loggingall|lowres_fix|makegrid|makelabel(?:\.(?:bot|lft|rt|top)(?:\.nodot)?)?|max|min|mod|mode_def|mode_setup|nodisplays|notransforms|numtok|openit|penlabels|penpos|pickup|proofoffset|proofrule|proofrulethickness|range|reflectedabout|rotatedabout|rotatedaround|round|rt|savepen|screenchars|screenrule|screenstrokes|shipit|showit|slantfont|softjoin|solve|stop|superellipse|tensepath|thru|titlefont|top|tracingall|tracingnone|undraw|undrawdot|unfill|unfilldraw|upto|vround)\b/,alias:"function"},builtin:/\b(?:ASCII|angle|char|cosd|decimal|directiontime|floor|hex|intersectiontimes|jobname|known|length|makepath|makepen|mexp|mlog|normaldeviate|oct|odd|pencircle|penoffset|point|postcontrol|precontrol|reverse|rotated|sind|sqrt|str|subpath|substring|totalweight|turningnumber|uniformdeviate|unknown|xpart|xxpart|xypart|ypart|yxpart|yypart)\b/,keyword:/\b(?:also|at|atleast|begingroup|charexists|contour|controls|curl|cycle|def|delimiters|doublepath|dropping|dump|else|elseif|end|enddef|endfor|endgroup|endinput|exitif|exitunless|expandafter|fi|for|forever|forsuffixes|from|if|input|inwindow|keeping|kern|of|primarydef|quote|readstring|scaled|scantokens|secondarydef|shifted|skipto|slanted|step|tension|tertiarydef|to|transformed|until|vardef|withpen|withweight|xscaled|yscaled|zscaled)\b/,type:{pattern:/\b(?:boolean|expr|numeric|pair|path|pen|picture|primary|secondary|string|suffix|tertiary|text|transform)\b/,alias:"property"},variable:{pattern:/(^|[^@#&$])(?:@#|#@|#|@)(?![@#&$])|\b(?:aspect_ratio|currentpen|currentpicture|currenttransform|d|extra_beginchar|extra_endchar|extra_setup|h|localfont|mag|mode|screen_cols|screen_rows|w|whatever|x|y|z)\b/,lookbehind:!0}}}Uj.displayName="mizar";Uj.aliases=[];function Uj(e){e.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}zj.displayName="mongodb";zj.aliases=[];function zj(e){e.register(Zs),function(t){var n=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],r=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];n=n.map(function(a){return a.replace("$","\\$")});var i="(?:"+n.join("|")+")\\b";t.languages.mongodb=t.languages.extend("javascript",{}),t.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+i+"(?:\\1)?$")}}}),t.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},t.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+r.join("|")+")\\b"),alias:"keyword"}})}(e)}jj.displayName="monkey";jj.aliases=[];function jj(e){e.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}Hj.displayName="moonscript";Hj.aliases=["moon"];function Hj(e){e.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},e.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=e.languages.moonscript,e.languages.moon=e.languages.moonscript}Qj.displayName="n1ql";Qj.aliases=[];function Qj(e){e.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}Wj.displayName="nand2tetris-hdl";Wj.aliases=[];function Wj(e){e.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}Vj.displayName="naniscript";Vj.aliases=["nani"];function Vj(e){(function(t){var n=/\{[^\r\n\[\]{}]*\}/,r={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:n,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};t.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:n,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:r}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:n,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:r},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},t.languages.nani=t.languages.naniscript,t.hooks.add("after-tokenize",function(s){var o=s.tokens;o.forEach(function(l){if(typeof l!="string"&&l.type==="generic-text"){var u=a(l);i(u)||(l.type="bad-line",l.content=u)}})});function i(s){for(var o="[]{}",l=[],u=0;u=&|$!]/}}Gj.displayName="neon";Gj.aliases=[];function Gj(e){e.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"property"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}Yj.displayName="nevod";Yj.aliases=[];function Yj(e){e.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}Zj.displayName="nginx";Zj.aliases=[];function Zj(e){(function(t){var n=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;t.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:n}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:n}},punctuation:/[{};]/}})(e)}Xj.displayName="nim";Xj.aliases=[];function Xj(e){e.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}Kj.displayName="nix";Kj.aliases=[];function Kj(e){e.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},e.languages.nix.string.inside.interpolation.inside=e.languages.nix}Jj.displayName="nsis";Jj.aliases=[];function Jj(e){e.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|KnownFolderPath|LabelAddress|TempFileName|WinVer)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|RtlLanguage|ShellVarContextAll|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|Target|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}eH.displayName="ocaml";eH.aliases=[];function eH(e){e.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}tH.displayName="odin";tH.aliases=[];function tH(e){(function(t){var n=/\\(?:["'\\abefnrtv]|0[0-7]{2}|U[\dA-Fa-f]{6}|u[\dA-Fa-f]{4}|x[\dA-Fa-f]{2})/;t.languages.odin={comment:[{pattern:/\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:\*(?!\/)|[^*])*(?:\*\/|$))*(?:\*\/|$)/,greedy:!0},{pattern:/#![^\n\r]*/,greedy:!0},{pattern:/\/\/[^\n\r]*/,greedy:!0}],char:{pattern:/'(?:\\(?:.|[0Uux][0-9A-Fa-f]{1,6})|[^\n\r'\\])'/,greedy:!0,inside:{symbol:n}},string:[{pattern:/`[^`]*`/,greedy:!0},{pattern:/"(?:\\.|[^\n\r"\\])*"/,greedy:!0,inside:{symbol:n}}],directive:{pattern:/#\w+/,alias:"property"},number:/\b0(?:b[01_]+|d[\d_]+|h_*(?:(?:(?:[\dA-Fa-f]_*){8}){1,2}|(?:[\dA-Fa-f]_*){4})|o[0-7_]+|x[\dA-F_a-f]+|z[\dAB_ab]+)\b|(?:\b\d+(?:\.(?!\.)\d*)?|\B\.\d+)(?:[Ee][+-]?\d*)?[ijk]?(?!\w)/,discard:{pattern:/\b_\b/,alias:"keyword"},"procedure-definition":{pattern:/\b\w+(?=[ \t]*(?::\s*){2}proc\b)/,alias:"function"},keyword:/\b(?:asm|auto_cast|bit_set|break|case|cast|context|continue|defer|distinct|do|dynamic|else|enum|fallthrough|for|foreign|if|import|in|map|matrix|not_in|or_else|or_return|package|proc|return|struct|switch|transmute|typeid|union|using|when|where)\b/,"procedure-name":{pattern:/\b\w+(?=[ \t]*\()/,alias:"function"},boolean:/\b(?:false|nil|true)\b/,"constant-parameter-sign":{pattern:/\$/,alias:"important"},undefined:{pattern:/---/,alias:"operator"},arrow:{pattern:/->/,alias:"punctuation"},operator:/\+\+|--|\.\.[<=]?|(?:&~|[-!*+/=~]|[%&<>|]{1,2})=?|[?^]/,punctuation:/[(),.:;@\[\]{}]/}})(e)}nH.displayName="opencl";nH.aliases=[];function nH(e){e.register(Fd),function(t){t.languages.opencl=t.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),t.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var n={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};t.languages.insertBefore("c","keyword",n),t.languages.cpp&&(n["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},t.languages.insertBefore("cpp","keyword",n))}(e)}rH.displayName="openqasm";rH.aliases=["qasm"];function rH(e){e.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},e.languages.qasm=e.languages.openqasm}iH.displayName="oz";iH.aliases=[];function iH(e){e.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}aH.displayName="parigp";aH.aliases=[];function aH(e){e.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var t=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return t=t.map(function(n){return n.split("").join(" *")}).join("|"),RegExp("\\b(?:"+t+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}sH.displayName="parser";sH.aliases=[];function sH(e){e.register(ks),function(t){var n=t.languages.parser=t.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});n=t.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:n.keyword,variable:n.variable,function:n.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:n.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:n.punctuation}}}),t.languages.insertBefore("inside","punctuation",{expression:n.expression,keyword:n.keyword,variable:n.variable,function:n.function,escape:n.escape,"parser-punctuation":{pattern:n.punctuation,alias:"punctuation"}},n.tag.inside["attr-value"])}(e)}oH.displayName="pascal";oH.aliases=["objectpascal"];function oH(e){e.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},e.languages.pascal.asm.inside=e.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),e.languages.objectpascal=e.languages.pascal}lH.displayName="pascaligo";lH.aliases=[];function lH(e){(function(t){var n=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,r=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return n}),i=t.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return r}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return r}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return r})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},a=["comment","keyword","builtin","operator","punctuation"].reduce(function(s,o){return s[o]=i[o],s},{});i["class-name"].forEach(function(s){s.inside=a})})(e)}uH.displayName="psl";uH.aliases=[];function uH(e){e.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}cH.displayName="pcaxis";cH.aliases=["px"];function cH(e){e.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},e.languages.px=e.languages.pcaxis}dH.displayName="peoplecode";dH.aliases=["pcode"];function dH(e){e.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},e.languages.pcode=e.languages.peoplecode}fH.displayName="phpdoc";fH.aliases=[];function fH(e){e.register(_O),e.register(j1),function(t){var n=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;t.languages.phpdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+n+"\\s+)?)\\$\\w+"),lookbehind:!0}}),t.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+n),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),t.languages.javadoclike.addSupport("php",t.languages.phpdoc)}(e)}hH.displayName="php-extras";hH.aliases=[];function hH(e){e.register(j1),e.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}pH.displayName="plant-uml";pH.aliases=["plantuml"];function pH(e){(function(t){var n=/\$\w+|%[a-z]+%/,r=/\[[^[\]]*\]/.source,i=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,a="(?:-+"+i+"-+|\\.+"+i+"\\.+|-+(?:"+r+"-*)?|"+r+"-+|\\.+(?:"+r+"\\.*)?|"+r+"\\.+)",s=/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source,o=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,l=/[[?]?[ox]?/.source,u=/[ox]?[\]?]?/.source,d=l+"(?:"+a+o+"|"+s+a+"(?:"+o+")?)"+u;t.languages["plant-uml"]={comment:{pattern:/(^[ \t]*)(?:'.*|\/'[\s\S]*?'\/)/m,lookbehind:!0,greedy:!0},preprocessor:{pattern:/(^[ \t]*)!.*/m,lookbehind:!0,greedy:!0,alias:"property",inside:{variable:n}},delimiter:{pattern:/(^[ \t]*)@(?:end|start)uml\b/m,lookbehind:!0,greedy:!0,alias:"punctuation"},arrow:{pattern:RegExp(/(^|[^-.<>?|\\[\]ox])/.source+d+/(?![-.<>?|\\\]ox])/.source),lookbehind:!0,greedy:!0,alias:"operator",inside:{expression:{pattern:/(\[)[^[\]]+(?=\])/,lookbehind:!0,inside:null},punctuation:/\[(?=$|\])|^\]/}},string:{pattern:/"[^"]*"/,greedy:!0},text:{pattern:/(\[[ \t]*[\r\n]+(?![\r\n]))[^\]]*(?=\])/,lookbehind:!0,greedy:!0,alias:"string"},keyword:[{pattern:/^([ \t]*)(?:abstract\s+class|end\s+(?:box|fork|group|merge|note|ref|split|title)|(?:fork|split)(?:\s+again)?|activate|actor|agent|alt|annotation|artifact|autoactivate|autonumber|backward|binary|boundary|box|break|caption|card|case|circle|class|clock|cloud|collections|component|concise|control|create|critical|database|deactivate|destroy|detach|diamond|else|elseif|end|end[hr]note|endif|endswitch|endwhile|entity|enum|file|folder|footer|frame|group|[hr]?note|header|hexagon|hide|if|interface|label|legend|loop|map|namespace|network|newpage|node|nwdiag|object|opt|package|page|par|participant|person|queue|rectangle|ref|remove|repeat|restore|return|robust|scale|set|show|skinparam|stack|start|state|stop|storage|switch|title|together|usecase|usecase\/|while)(?=\s|$)/m,lookbehind:!0,greedy:!0},/\b(?:elseif|equals|not|while)(?=\s*\()/,/\b(?:as|is|then)\b/],divider:{pattern:/^==.+==$/m,greedy:!0,alias:"important"},time:{pattern:/@(?:\d+(?:[:/]\d+){2}|[+-]?\d+|:[a-z]\w*(?:[+-]\d+)?)\b/i,greedy:!0,alias:"number"},color:{pattern:/#(?:[a-z_]+|[a-fA-F0-9]+)\b/,alias:"symbol"},variable:n,punctuation:/[:,;()[\]{}]|\.{3}/},t.languages["plant-uml"].arrow.inside.expression.inside=t.languages["plant-uml"],t.languages.plantuml=t.languages["plant-uml"]})(e)}mH.displayName="plsql";mH.aliases=[];function mH(e){e.register(wO),e.languages.plsql=e.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),e.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}gH.displayName="powerquery";gH.aliases=["mscript","pq"];function gH(e){e.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},e.languages.pq=e.languages.powerquery,e.languages.mscript=e.languages.powerquery}bH.displayName="powershell";bH.aliases=[];function bH(e){(function(t){var n=t.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};n.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:n},boolean:n.boolean,variable:n.variable}})(e)}yH.displayName="processing";yH.aliases=[];function yH(e){e.register(Sr),e.languages.processing=e.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),e.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}vH.displayName="prolog";vH.aliases=[];function vH(e){e.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}OH.displayName="promql";OH.aliases=[];function OH(e){(function(t){var n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],r=["on","ignoring","group_right","group_left","by","without"],i=["offset"],a=n.concat(r,i);t.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+r.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+a.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(e)}SH.displayName="properties";SH.aliases=[];function SH(e){e.languages.properties={comment:/^[ \t]*[#!].*$/m,value:{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0,alias:"attr-value"},key:{pattern:/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,alias:"attr-name"},punctuation:/[=:]/}}EH.displayName="protobuf";EH.aliases=[];function EH(e){e.register(Sr),function(t){var n=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;t.languages.protobuf=t.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),t.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:n}},builtin:n,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})}(e)}wH.displayName="stylus";wH.aliases=[];function wH(e){(function(t){var n={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},r={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},i={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:n,number:r,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:n,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:r,punctuation:/[{}()\[\];:,]/};i.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:i}},i.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:i}},t.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:i}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:i}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:i}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:i.interpolation}},rest:i}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:i.interpolation,comment:i.comment,punctuation:/[{},]/}},func:i.func,string:i.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:i.interpolation,punctuation:/[{}()\[\];:.]/}})(e)}TH.displayName="twig";TH.aliases=[];function TH(e){e.register(Xs),e.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},e.hooks.add("before-tokenize",function(t){if(t.language==="twig"){var n=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;e.languages["markup-templating"].buildPlaceholders(t,"twig",n)}}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"twig")})}xH.displayName="pug";xH.aliases=[];function xH(e){e.register(Zs),e.register(ks),function(t){t.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:t.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:t.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:t.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:t.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:t.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:t.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:t.languages.javascript}],punctuation:/[.\-!=|]+/};for(var n=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,r=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],i={},a=0,s=r.length;a",function(){return o.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[o.language,"language-"+o.language],inside:t.languages[o.language]}}})}t.languages.insertBefore("pug","filter",i)}(e)}kH.displayName="puppet";kH.aliases=[];function kH(e){(function(t){t.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var n=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:t.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];t.languages.puppet.heredoc[0].inside.interpolation=n,t.languages.puppet.string.inside["double-quoted"].inside.interpolation=n})(e)}AH.displayName="pure";AH.aliases=[];function AH(e){(function(t){t.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var n=["c",{lang:"c++",alias:"cpp"},"fortran"],r=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;n.forEach(function(i){var a=i;if(typeof i!="string"&&(a=i.alias,i=i.lang),t.languages[a]){var s={};s["inline-lang-"+a]={pattern:RegExp(r.replace("",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:t.util.clone(t.languages.pure["inline-lang"].inside)},s["inline-lang-"+a].inside.rest=t.util.clone(t.languages[a]),t.languages.insertBefore("pure","inline-lang",s)}}),t.languages.c&&(t.languages.pure["inline-lang"].inside.rest=t.util.clone(t.languages.c))})(e)}_H.displayName="purebasic";_H.aliases=["pbfasm"];function _H(e){e.register(Sr),e.languages.purebasic=e.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+\$?|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}CH.displayName="purescript";CH.aliases=["purs"];function CH(e){e.register(ix),e.languages.purescript=e.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[e.languages.haskell.operator[0],e.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),e.languages.purs=e.languages.purescript}RH.displayName="qsharp";RH.aliases=["qs"];function RH(e){e.register(Sr),function(t){function n(g,O){return g.replace(/<<(\d+)>>/g,function(S,T){return"(?:"+O[+T]+")"})}function r(g,O,S){return RegExp(n(g,O),"")}function i(g,O){for(var S=0;S>/g,function(){return"(?:"+g+")"});return g.replace(/<>/g,"[^\\s\\S]")}var a={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function s(g){return"\\b(?:"+g.trim().replace(/ /g,"|")+")\\b"}var o=RegExp(s(a.type+" "+a.other)),l=/\b[A-Za-z_]\w*\b/.source,u=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[l]),d={keyword:o,punctuation:/[<>()?,.:[\]]/},f=/"(?:\\.|[^\\"])*"/.source;t.languages.qsharp=t.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[f]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[u]),lookbehind:!0,inside:d},{pattern:r(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[u]),lookbehind:!0,inside:d}],keyword:o,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),t.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var p=i(n(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[f]),2);t.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:r(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[p]),greedy:!0,inside:{interpolation:{pattern:r(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[p]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:t.languages.qsharp}}},string:/[\s\S]+/}}})}(e),e.languages.qs=e.languages.qsharp}IH.displayName="q";IH.aliases=[];function IH(e){e.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}NH.displayName="qml";NH.aliases=[];function NH(e){e.register(Zs),function(t){for(var n=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,r=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,i=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return n}).replace(//g,function(){return r}),a=0;a<2;a++)i=i.replace(//g,function(){return i});i=i.replace(//g,"[^\\s\\S]"),t.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}}(e)}DH.displayName="qore";DH.aliases=[];function DH(e){e.register(Sr),e.languages.qore=e.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}PH.displayName="racket";PH.aliases=["rkt"];function PH(e){e.register(ax),e.languages.racket=e.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),e.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),e.languages.rkt=e.languages.racket}LH.displayName="cshtml";LH.aliases=["razor"];function LH(e){e.register(U1),e.register(ks),function(t){var n=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,r=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function i(x,k){for(var _=0;_/g,function(){return"(?:"+x+")"});return x.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+r+")").replace(//g,"(?:"+n+")")}var a=i(/\((?:[^()'"@/]|||)*\)/.source,2),s=i(/\[(?:[^\[\]'"@/]|||)*\]/.source,1),o=i(/\{(?:[^{}'"@/]|||)*\}/.source,2),l=i(/<(?:[^<>'"@/]||)*>/.source,1),u=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+a+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+l+")?"+a+"|"+s+")*"+/(?![?!\.(\[]|<(?!\/))/.source,d=/@(?![\w()])/.source+"|"+u,f="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+`|["'][^"'@]*(?:(?:`+d+`)[^"'@]*)+["'])`,p=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*|(?=[\s/>])))+)?/.source.replace(//,f),g=/(?!\d)[^\s>\/=$<%]+/.source+p+/\s*\/?>/.source,O=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|"+i(/<\1/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/*\.{3}(?:[^{}]|)*\})/.source;function s(u,d){return u=u.replace(//g,function(){return r}).replace(//g,function(){return i}).replace(//g,function(){return a}),RegExp(u,d)}a=s(a).source,t.languages.jsx=t.languages.extend("markup",n),t.languages.jsx.tag.pattern=s(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=n.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:s(//.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:s(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var o=function(u){return u?typeof u=="string"?u:typeof u.content=="string"?u.content:u.content.map(o).join(""):""},l=function(u){for(var d=[],f=0;f0&&d[d.length-1].tagName===o(p.content[0].content[1])&&d.pop():p.content[p.content.length-1].content==="/>"||d.push({tagName:o(p.content[0].content[1]),openedBraces:0}):d.length>0&&p.type==="punctuation"&&p.content==="{"?d[d.length-1].openedBraces++:d.length>0&&d[d.length-1].openedBraces>0&&p.type==="punctuation"&&p.content==="}"?d[d.length-1].openedBraces--:g=!0),(g||typeof p=="string")&&d.length>0&&d[d.length-1].openedBraces===0){var O=o(p);f0&&(typeof u[f-1]=="string"||u[f-1].type==="plain-text")&&(O=o(u[f-1])+O,u.splice(f-1,1),f--),u[f]=new t.Token("plain-text",O,null,O)}p.content&&typeof p.content!="string"&&l(p.content)}};t.hooks.add("after-tokenize",function(u){u.language!=="jsx"&&u.language!=="tsx"||l(u.tokens)})}(e)}MH.displayName="tsx";MH.aliases=[];function MH(e){e.register(uI),e.register(TO),function(t){var n=t.util.clone(t.languages.typescript);t.languages.tsx=t.languages.extend("jsx",n),delete t.languages.tsx.parameter,delete t.languages.tsx["literal-property"];var r=t.languages.tsx.tag;r.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+r.pattern.source+")",r.pattern.flags),r.lookbehind=!0}(e)}$H.displayName="reason";$H.aliases=[];function $H(e){e.register(Sr),e.languages.reason=e.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),e.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete e.languages.reason.function}FH.displayName="rego";FH.aliases=[];function FH(e){e.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}BH.displayName="renpy";BH.aliases=["rpy"];function BH(e){e.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},e.languages.rpy=e.languages.renpy}UH.displayName="rescript";UH.aliases=["res"];function UH(e){e.languages.rescript={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},char:{pattern:/'(?:[^\r\n\\]|\\(?:.|\w+))'/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*|@[a-z.]*|#[A-Za-z]\w*|#\d/,function:{pattern:/[a-zA-Z]\w*(?=\()|(\.)[a-z]\w*/,lookbehind:!0},number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,boolean:/\b(?:false|true)\b/,"attr-value":/[A-Za-z]\w*(?==)/,constant:{pattern:/(\btype\s+)[a-z]\w*/,lookbehind:!0},tag:{pattern:/(<)[a-z]\w*|(?:<\/)[a-z]\w*/,lookbehind:!0,inside:{operator:/<|>|\//}},keyword:/\b(?:and|as|assert|begin|bool|class|constraint|do|done|downto|else|end|exception|external|float|for|fun|function|if|in|include|inherit|initializer|int|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|string|switch|then|to|try|type|when|while|with)\b/,operator:/\.{3}|:[:=]?|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/,punctuation:/[(){}[\],;.]/},e.languages.insertBefore("rescript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"tag"},rest:e.languages.rescript}},string:/[\s\S]+/}}}),e.languages.res=e.languages.rescript}zH.displayName="rest";zH.aliases=[];function zH(e){e.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}jH.displayName="rip";jH.aliases=[];function jH(e){e.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}HH.displayName="roboconf";HH.aliases=[];function HH(e){e.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}QH.displayName="robotframework";QH.aliases=["robot"];function QH(e){(function(t){var n={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},r={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function i(l,u){var d={};d["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var f in u)d[f]=u[f];return d.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},d.variable=r,d.comment=n,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return l}),"im"),alias:"section",inside:d}}var a={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},s={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:r}},o={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:r}};t.languages.robotframework={settings:i("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:i("Variables"),"test-cases":i("Test Cases",{"test-name":s,documentation:a,property:o}),keywords:i("Keywords",{"keyword-name":s,documentation:a,property:o}),tasks:i("Tasks",{"task-name":s,documentation:a,property:o}),comment:n},t.languages.robot=t.languages.robotframework})(e)}WH.displayName="sas";WH.aliases=[];function WH(e){(function(t){var n=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,r=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,i={pattern:RegExp(n+"[bx]"),alias:"number"},a={pattern:/&[a-z_]\w*/i},s={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},o={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},l=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],u={pattern:RegExp(n),greedy:!0},d=/[$%@.(){}\[\];,\\]/,f={pattern:/%?\b\w+(?=\()/,alias:"keyword"},p={function:f,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":a,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:r,"numeric-constant":i,punctuation:d,string:u},g={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},O={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},S={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},T={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},w=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,x={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return w}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return w}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:l,function:f,"arg-value":p["arg-value"],operator:p.operator,argument:p.arg,number:r,"numeric-constant":i,punctuation:d,string:u}},k={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};t.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return n}),"im"),alias:"language-sql",inside:t.languages.sql},"global-statements":S,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:r,"numeric-constant":i,punctuation:d,string:u}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:l,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-groovy",inside:t.languages.groovy},keyword:k,"submit-statement":T,"global-statements":S,number:r,"numeric-constant":i,punctuation:d,string:u}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:l,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-lua",inside:t.languages.lua},keyword:k,"submit-statement":T,"global-statements":S,number:r,"numeric-constant":i,punctuation:d,string:u}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:l,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:p}},"cas-actions":x,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:p},step:o,keyword:k,function:f,format:g,altformat:O,"global-statements":S,number:r,"numeric-constant":i,punctuation:d,string:u}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,inside:p},"macro-keyword":s,"macro-variable":a,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":s,"macro-variable":a,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:d}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:l,number:r,"numeric-constant":i}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:p},"cas-actions":x,comment:l,function:f,format:g,altformat:O,"numeric-constant":i,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:u,step:o,keyword:k,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:r,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:d}})(e)}VH.displayName="shell-session";VH.aliases=["sh-session","shellsession"];function VH(e){e.register(XT),function(t){var n=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");t.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,function(){return n}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:t.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},t.languages["sh-session"]=t.languages.shellsession=t.languages["shell-session"]}(e)}qH.displayName="smali";qH.aliases=[];function qH(e){e.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}GH.displayName="smalltalk";GH.aliases=[];function GH(e){e.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}YH.displayName="smarty";YH.aliases=[];function YH(e){e.register(Xs),function(t){t.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:t.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},t.languages.smarty["embedded-php"].inside.smarty.inside=t.languages.smarty,t.languages.smarty.string[0].inside.interpolation.inside.expression.inside=t.languages.smarty;var n=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,r=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return n.source}),"g");t.hooks.add("before-tokenize",function(i){var a="{literal}",s="{/literal}",o=!1;t.languages["markup-templating"].buildPlaceholders(i,"smarty",r,function(l){return l===s&&(o=!1),o?!1:(l===a&&(o=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"smarty")})}(e)}ZH.displayName="sml";ZH.aliases=["smlnj"];function ZH(e){(function(t){var n=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;t.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)(?:\s*(?:(?:\*|->)\s*|,\s*(?:(?=)|(?!)\s+)))*/.source.replace(//g,function(){return/\s*(?:[*,]|->)/.source}).replace(//g,function(){return/(?:'[\w']*||\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+)*/.source}).replace(//g,function(){return/(?!)[a-z\d_][\w'.]*/.source}).replace(//g,function(){return n.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:n,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},t.languages.sml["class-name"][0].inside=t.languages.sml,t.languages.smlnj=t.languages.sml})(e)}XH.displayName="solidity";XH.aliases=["sol"];function XH(e){e.register(Sr),e.languages.solidity=e.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),e.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),e.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),e.languages.sol=e.languages.solidity}KH.displayName="solution-file";KH.aliases=["sln"];function KH(e){(function(t){var n={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};t.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:n}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:n}},guid:n,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},t.languages.sln=t.languages["solution-file"]})(e)}JH.displayName="soy";JH.aliases=[];function JH(e){e.register(Xs),function(t){var n=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;t.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:n,greedy:!0},number:r,punctuation:/[\[\].?]/}},string:{pattern:n,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:r,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},t.hooks.add("before-tokenize",function(i){var a=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,s="{literal}",o="{/literal}",l=!1;t.languages["markup-templating"].buildPlaceholders(i,"soy",a,function(u){return u===o&&(l=!1),l?!1:(u===s&&(l=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"soy")})}(e)}cI.displayName="turtle";cI.aliases=["trig"];function cI(e){e.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},e.languages.trig=e.languages.turtle}eQ.displayName="sparql";eQ.aliases=["rq"];function eQ(e){e.register(cI),e.languages.sparql=e.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),e.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),e.languages.rq=e.languages.sparql}tQ.displayName="splunk-spl";tQ.aliases=[];function tQ(e){e.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}nQ.displayName="sqf";nQ.aliases=[];function nQ(e){e.register(Sr),e.languages.sqf=e.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),e.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:e.languages.sqf.comment}}}),delete e.languages.sqf["class-name"]}rQ.displayName="squirrel";rQ.aliases=[];function rQ(e){e.register(Sr),e.languages.squirrel=e.languages.extend("clike",{comment:[e.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),e.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}iQ.displayName="stan";iQ.aliases=[];function iQ(e){(function(t){var n=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;t.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+n.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,n],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},t.languages.stan.constraint.inside.expression.inside=t.languages.stan})(e)}aQ.displayName="stata";aQ.aliases=[];function aQ(e){e.register(z1),e.register(lI),e.register(ex),e.languages.stata={comment:[{pattern:/(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|\s)\/\/.*|\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0}],"string-literal":{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}|[‘`']\w[^’`'\r\n]*[’`']/,inside:{punctuation:/^\$\{|\}$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},mata:{pattern:/(^[ \t]*mata[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-mata",inside:e.languages.mata},java:{pattern:/(^[ \t]*java[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-java",inside:e.languages.java},python:{pattern:/(^[ \t]*python[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-python",inside:e.languages.python},command:{pattern:/(^[ \t]*(?:\.[ \t]+)?(?:(?:bayes|bootstrap|by|bysort|capture|collect|fmm|fp|frame|jackknife|mfp|mi|nestreg|noisily|permute|quietly|rolling|simulate|statsby|stepwise|svy|version|xi)\b[^:\r\n]*:[ \t]*|(?:capture|noisily|quietly|version)[ \t]+)?)[a-zA-Z]\w*/m,lookbehind:!0,greedy:!0,alias:"keyword"},variable:/\$\w+|[‘`']\w[^’`'\r\n]*[’`']/,keyword:/\b(?:bayes|bootstrap|by|bysort|capture|clear|collect|fmm|fp|frame|if|in|jackknife|mi[ \t]+estimate|mfp|nestreg|noisily|of|permute|quietly|rolling|simulate|sort|statsby|stepwise|svy|varlist|version|xi)\b/,boolean:/\b(?:off|on)\b/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+/,function:/\b[a-z_]\w*(?=\()/i,operator:/\+\+|--|##?|[<>!=~]=?|[+\-*^&|/]/,punctuation:/[(){}[\],:]/},e.languages.stata["string-literal"].inside.interpolation.inside.expression.inside=e.languages.stata}sQ.displayName="iecst";sQ.aliases=[];function sQ(e){e.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}oQ.displayName="supercollider";oQ.aliases=["sclang"];function oQ(e){e.languages.supercollider={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^"\\]|\\[\s\S])*"/,lookbehind:!0,greedy:!0},char:{pattern:/\$(?:[^\\\r\n]|\\.)/,greedy:!0},symbol:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'|\\\w+/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|arg|classvar|const|nil|var|while)\b/,boolean:/\b(?:false|true)\b/,label:{pattern:/\b[a-z_]\w*(?=\s*:)/,alias:"property"},number:/\b(?:inf|pi|0x[0-9a-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(?:pi)?|\d+r[0-9a-zA-Z]+(?:\.[0-9a-zA-Z]+)?|\d+[sb]{1,4}\d*)\b/,"class-name":/\b[A-Z]\w*\b/,operator:/\.{2,3}|#(?![[{])|&&|[!=]==?|\+>>|\+{1,3}|-[->]|=>|>>|\?\?|@\|?@|\|(?:@|[!=]=)?\||!\?|<[!=>]|\*{1,2}|<{2,3}\*?|[-!%&/<>?@|=`]/,punctuation:/[{}()[\].:,;]|#[[{]/},e.languages.sclang=e.languages.supercollider}lQ.displayName="systemd";lQ.aliases=[];function lQ(e){(function(t){var n={pattern:/^[;#].*/m,greedy:!0},r=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;t.languages.systemd={comment:n,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+r+`|(?=[^"\r -]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+r+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:n,quoted:{pattern:RegExp(/(^|\s)/.source+r),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(e)}sx.displayName="t4-templating";sx.aliases=[];function sx(e){(function(t){function n(i,a,s){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:a,alias:s}}}}function r(i){var a=t.languages[i],s="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:n("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:n("=",a,s),"class-feature":n("\\+",a,s),standard:n("",a,s)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:r})})(e)}uQ.displayName="t4-cs";uQ.aliases=["t4"];function uQ(e){e.register(U1),e.register(sx),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}cQ.displayName="t4-vb";cQ.aliases=[];function cQ(e){e.register(sx),e.register(nx),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}dQ.displayName="tap";dQ.aliases=[];function dQ(e){e.register(JT),e.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:e.languages.yaml,alias:"language-yaml"}}}fQ.displayName="tcl";fQ.aliases=[];function fQ(e){e.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}hQ.displayName="tt2";hQ.aliases=[];function hQ(e){e.register(Sr),e.register(Xs),function(t){t.languages.tt2=t.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),t.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),t.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),t.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete t.languages.tt2.string,t.hooks.add("before-tokenize",function(n){var r=/\[%[\s\S]+?%\]/g;t.languages["markup-templating"].buildPlaceholders(n,"tt2",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"tt2")})}(e)}pQ.displayName="toml";pQ.aliases=[];function pQ(e){(function(t){var n=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function r(i){return i.replace(/__/g,function(){return n})}t.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(r(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(r(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(e)}mQ.displayName="tremor";mQ.aliases=["trickle","troy"];function mQ(e){(function(t){t.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var n=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;t.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+n+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+n+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(n),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.tremor}}},string:/[\s\S]+/}},t.languages.troy=t.languages.tremor,t.languages.trickle=t.languages.tremor})(e)}gQ.displayName="typoscript";gQ.aliases=["tsconfig"];function gQ(e){(function(t){var n=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;t.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:n}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:n,number:/^\d+$/,punctuation:/[,|:]/}},keyword:n,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},t.languages.tsconfig=t.languages.typoscript})(e)}bQ.displayName="unrealscript";bQ.aliases=["uc","uscript"];function bQ(e){e.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},e.languages.uc=e.languages.uscript=e.languages.unrealscript}yQ.displayName="uorazor";yQ.aliases=[];function yQ(e){e.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}vQ.displayName="v";vQ.aliases=[];function vQ(e){e.register(Sr),function(t){var n={pattern:/[\s\S]+/,inside:null};t.languages.v=t.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":n}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),n.inside=t.languages.v,t.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),t.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),t.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:t.languages.v.generic.inside}}}})}(e)}OQ.displayName="vala";OQ.aliases=[];function OQ(e){e.register(Sr),e.languages.vala=e.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),e.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:e.languages.vala}},string:/[\s\S]+/}}}),e.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}SQ.displayName="velocity";SQ.aliases=[];function SQ(e){e.register(ks),function(t){t.languages.velocity=t.languages.extend("markup",{});var n={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};n.variable.inside={string:n.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:n.number,boolean:n.boolean,punctuation:n.punctuation},t.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:n}},variable:n.variable}),t.languages.velocity.tag.inside["attr-value"].inside.rest=t.languages.velocity}(e)}EQ.displayName="verilog";EQ.aliases=[];function EQ(e){e.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}wQ.displayName="vhdl";wQ.aliases=[];function wQ(e){e.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|private|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|view|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}TQ.displayName="vim";TQ.aliases=[];function TQ(e){e.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}xQ.displayName="visual-basic";xQ.aliases=["vb","vba"];function xQ(e){e.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},e.languages.vb=e.languages["visual-basic"],e.languages.vba=e.languages["visual-basic"]}kQ.displayName="warpscript";kQ.aliases=[];function kQ(e){e.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}AQ.displayName="wasm";AQ.aliases=[];function AQ(e){e.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\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|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\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/,punctuation:/[()]/}}_Q.displayName="web-idl";_Q.aliases=["webidl"];function _Q(e){(function(t){var n=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,r="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+n+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};t.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+n),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp("("+/\bcallback\s+/.source+n+/\s*=\s*/.source+")"+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\btypedef\b\s*)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+n),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+n),lookbehind:!0},RegExp(n+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+n),lookbehind:!0},{pattern:RegExp(r+"(?="+/\s*(?:\.{3}\s*)?/.source+n+/\s*[(),;=]/.source+")"),inside:i}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var a in t.languages["web-idl"])a!=="class-name"&&(i[a]=t.languages["web-idl"][a]);t.languages.webidl=t.languages["web-idl"]})(e)}CQ.displayName="wgsl";CQ.aliases=[];function CQ(e){e.languages.wgsl={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"builtin-attribute":{pattern:/(@)builtin\(.*?\)/,lookbehind:!0,inside:{attribute:{pattern:/^builtin/,alias:"attr-name"},punctuation:/[(),]/,"built-in-values":{pattern:/\b(?:frag_depth|front_facing|global_invocation_id|instance_index|local_invocation_id|local_invocation_index|num_workgroups|position|sample_index|sample_mask|vertex_index|workgroup_id)\b/,alias:"attr-value"}}},attributes:{pattern:/(@)(?:align|binding|compute|const|fragment|group|id|interpolate|invariant|location|size|vertex|workgroup_size)/i,lookbehind:!0,alias:"attr-name"},functions:{pattern:/\b(fn\s+)[_a-zA-Z]\w*(?=[(<])/,lookbehind:!0,alias:"function"},keyword:/\b(?:bitcast|break|case|const|continue|continuing|default|discard|else|enable|fallthrough|fn|for|function|if|let|loop|private|return|storage|struct|switch|type|uniform|var|while|workgroup)\b/,builtin:/\b(?:abs|acos|acosh|all|any|array|asin|asinh|atan|atan2|atanh|atomic|atomicAdd|atomicAnd|atomicCompareExchangeWeak|atomicExchange|atomicLoad|atomicMax|atomicMin|atomicOr|atomicStore|atomicSub|atomicXor|bool|ceil|clamp|cos|cosh|countLeadingZeros|countOneBits|countTrailingZeros|cross|degrees|determinant|distance|dot|dpdx|dpdxCoarse|dpdxFine|dpdy|dpdyCoarse|dpdyFine|exp|exp2|extractBits|f32|f64|faceForward|firstLeadingBit|floor|fma|fract|frexp|fwidth|fwidthCoarse|fwidthFine|i32|i64|insertBits|inverseSqrt|ldexp|length|log|log2|mat[2-4]x[2-4]|max|min|mix|modf|normalize|override|pack2x16float|pack2x16snorm|pack2x16unorm|pack4x8snorm|pack4x8unorm|pow|ptr|quantizeToF16|radians|reflect|refract|reverseBits|round|sampler|sampler_comparison|select|shiftLeft|shiftRight|sign|sin|sinh|smoothstep|sqrt|staticAssert|step|storageBarrier|tan|tanh|textureDimensions|textureGather|textureGatherCompare|textureLoad|textureNumLayers|textureNumLevels|textureNumSamples|textureSample|textureSampleBias|textureSampleCompare|textureSampleCompareLevel|textureSampleGrad|textureSampleLevel|textureStore|texture_1d|texture_2d|texture_2d_array|texture_3d|texture_cube|texture_cube_array|texture_depth_2d|texture_depth_2d_array|texture_depth_cube|texture_depth_cube_array|texture_depth_multisampled_2d|texture_multisampled_2d|texture_storage_1d|texture_storage_2d|texture_storage_2d_array|texture_storage_3d|transpose|trunc|u32|u64|unpack2x16float|unpack2x16snorm|unpack2x16unorm|unpack4x8snorm|unpack4x8unorm|vec[2-4]|workgroupBarrier)\b/,"function-calls":{pattern:/\b[_a-z]\w*(?=\()/i,alias:"function"},"class-name":/\b(?:[A-Z][A-Za-z0-9]*)\b/,"bool-literal":{pattern:/\b(?:false|true)\b/,alias:"boolean"},"hex-int-literal":{pattern:/\b0[xX][0-9a-fA-F]+[iu]?\b(?![.pP])/,alias:"number"},"hex-float-literal":{pattern:/\b0[xX][0-9a-fA-F]*(?:\.[0-9a-fA-F]*)?(?:[pP][+-]?\d+[fh]?)?/,alias:"number"},"decimal-float-literal":[{pattern:/\d*\.\d+(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+\.\d*(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+[eE](?:\+|-)?\d+[fh]?/,alias:"number"},{pattern:/\b\d+[fh]\b/,alias:"number"}],"int-literal":{pattern:/\b\d+[iu]?\b/,alias:"number"},operator:[{pattern:/(?:\^|~|\|(?!\|)|\|\||&&|<<|>>|!)(?!=)/},{pattern:/&(?![&=])/},{pattern:/(?:\+=|-=|\*=|\/=|%=|\^=|&=|\|=|<<=|>>=)/},{pattern:/(^|[^<>=!])=(?![=>])/,lookbehind:!0},{pattern:/(?:==|!=|<=|\+\+|--|(^|[^=])>=)/,lookbehind:!0},{pattern:/(?:(?:[+%]|(?:\*(?!\w)))(?!=))|(?:-(?!>))|(?:\/(?!\/))/},{pattern:/->/}],punctuation:/[@(){}[\],;<>:.]/}}RQ.displayName="wiki";RQ.aliases=[];function RQ(e){e.register(ks),e.languages.wiki=e.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:e.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),e.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:e.languages.markup.tag.inside}}}})}IQ.displayName="wolfram";IQ.aliases=["mathematica","nb","wl"];function IQ(e){e.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.mathematica=e.languages.wolfram,e.languages.wl=e.languages.wolfram,e.languages.nb=e.languages.wolfram}NQ.displayName="wren";NQ.aliases=[];function NQ(e){e.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},e.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:e.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}DQ.displayName="xeora";DQ.aliases=["xeoracube"];function DQ(e){e.register(ks),function(t){t.languages.xeora=t.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),t.languages.insertBefore("inside","punctuation",{variable:t.languages.xeora["function-inline"].inside.variable},t.languages.xeora["function-block"]),t.languages.xeoracube=t.languages.xeora}(e)}PQ.displayName="xml-doc";PQ.aliases=[];function PQ(e){e.register(ks),function(t){function n(s,o){t.languages[s]&&t.languages.insertBefore(s,"comment",{"doc-comment":o})}var r=t.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:r}},a={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:r}};n("csharp",i),n("fsharp",i),n("vbnet",a)}(e)}LQ.displayName="xojo";LQ.aliases=[];function LQ(e){e.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}MQ.displayName="xquery";MQ.aliases=[];function MQ(e){e.register(ks),function(t){t.languages.xquery=t.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),t.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,t.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,t.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,t.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:t.languages.xquery,alias:"language-xquery"};var n=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(n).join("")},r=function(i){for(var a=[],s=0;s0&&a[a.length-1].tagName===n(o.content[0].content[1])&&a.pop():o.content[o.content.length-1].content==="/>"||a.push({tagName:n(o.content[0].content[1]),openedBraces:0}):a.length>0&&o.type==="punctuation"&&o.content==="{"&&(!i[s+1]||i[s+1].type!=="punctuation"||i[s+1].content!=="{")&&(!i[s-1]||i[s-1].type!=="plain-text"||i[s-1].content!=="{")?a[a.length-1].openedBraces++:a.length>0&&a[a.length-1].openedBraces>0&&o.type==="punctuation"&&o.content==="}"?a[a.length-1].openedBraces--:o.type!=="comment"&&(l=!0)),(l||typeof o=="string")&&a.length>0&&a[a.length-1].openedBraces===0){var u=n(o);s0&&(typeof i[s-1]=="string"||i[s-1].type==="plain-text")&&(u=n(i[s-1])+u,i.splice(s-1,1),s--),/^\s+$/.test(u)?i[s]=u:i[s]=new t.Token("plain-text",u,null,u)}o.content&&typeof o.content!="string"&&r(o.content)}};t.hooks.add("after-tokenize",function(i){i.language==="xquery"&&r(i.tokens)})}(e)}$Q.displayName="yang";$Q.aliases=[];function $Q(e){e.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}FQ.displayName="zig";FQ.aliases=[];function FQ(e){(function(t){function n(u){return function(){return u}}var r=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,i="\\b(?!"+r.source+")(?!\\d)\\w+\\b",a=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,s=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,n(a)),o=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,n(i)),l="(?!\\s)(?:!?\\s*(?:"+s+"\\s*)*"+o+")+";t.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,n(l)).replace(//g,n(a))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,n(l)).replace(//g,n(a))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:r,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},t.languages.zig["class-name"].forEach(function(u){u.inside===null&&(u.inside=t.languages.zig)})})(e)}se.register(ks);se.register(Tm);se.register(Sr);se.register(ZR);se.register(Zs);se.register(tU);se.register(nU);se.register(rU);se.register(iU);se.register(aU);se.register(sU);se.register(oU);se.register(lU);se.register(wO);se.register(uU);se.register(cU);se.register(dU);se.register(fU);se.register(Fd);se.register(B1);se.register(VR);se.register(hU);se.register(pU);se.register(XT);se.register(JT);se.register(eI);se.register(mU);se.register(gU);se.register(U1);se.register(bU);se.register(yU);se.register(vU);se.register(OU);se.register(SU);se.register(EU);se.register(wU);se.register(TU);se.register(tx);se.register(xU);se.register(kU);se.register(AU);se.register(_U);se.register(CU);se.register(RU);se.register(IU);se.register(NU);se.register(DU);se.register(PU);se.register(LU);se.register(MU);se.register($U);se.register(FU);se.register(BU);se.register(UU);se.register(zU);se.register(jU);se.register(HU);se.register(QU);se.register(WU);se.register(VU);se.register(qU);se.register(GU);se.register(YU);se.register(H1);se.register(ZU);se.register(XU);se.register(KU);se.register(JU);se.register(ez);se.register(tz);se.register(nz);se.register(rz);se.register(iz);se.register(az);se.register(qR);se.register(Xs);se.register(sz);se.register(oz);se.register(lz);se.register(uz);se.register(cz);se.register(dz);se.register(fz);se.register(hz);se.register(pz);se.register(mz);se.register(KT);se.register(gz);se.register(bz);se.register(yz);se.register(vz);se.register(Oz);se.register(Sz);se.register(Ez);se.register(wz);se.register(Tz);se.register(xz);se.register(kz);se.register(Az);se.register(_z);se.register(Cz);se.register(Rz);se.register(Iz);se.register(Nz);se.register(Dz);se.register(Pz);se.register(Lz);se.register(Mz);se.register($z);se.register(GR);se.register(Fz);se.register(Bz);se.register(Uz);se.register(zz);se.register(KR);se.register(sI);se.register(jz);se.register(Hz);se.register(Qz);se.register(ix);se.register(Wz);se.register(Vz);se.register(qz);se.register(Gz);se.register(Yz);se.register(Zz);se.register(EO);se.register(Xz);se.register(Kz);se.register(Jz);se.register(ej);se.register(tj);se.register(nj);se.register(rj);se.register(ij);se.register(YR);se.register(aj);se.register(sj);se.register(z1);se.register(j1);se.register(_O);se.register(oj);se.register(lj);se.register(uj);se.register(cj);se.register(dj);se.register(fj);se.register(hj);se.register(TO);se.register(pj);se.register(mj);se.register(gj);se.register(bj);se.register(yj);se.register(vj);se.register(Oj);se.register(Sj);se.register(Ej);se.register(XR);se.register(wj);se.register(Tj);se.register(xj);se.register(kj);se.register(ax);se.register(Aj);se.register(_j);se.register(Cj);se.register(Rj);se.register(Ij);se.register(Nj);se.register(Dj);se.register(Pj);se.register(JR);se.register(lI);se.register(Lj);se.register(Mj);se.register($j);se.register(Fj);se.register(Bj);se.register(Uj);se.register(zj);se.register(jj);se.register(Hj);se.register(Qj);se.register(Wj);se.register(Vj);se.register(qj);se.register(Gj);se.register(Yj);se.register(Zj);se.register(Xj);se.register(Kj);se.register(Jj);se.register(tI);se.register(eH);se.register(tH);se.register(nH);se.register(rH);se.register(iH);se.register(aH);se.register(sH);se.register(oH);se.register(lH);se.register(uH);se.register(cH);se.register(dH);se.register(nI);se.register(fH);se.register(hH);se.register(pH);se.register(mH);se.register(gH);se.register(bH);se.register(yH);se.register(vH);se.register(OH);se.register(SH);se.register(EH);se.register(wH);se.register(TH);se.register(xH);se.register(kH);se.register(AH);se.register(_H);se.register(CH);se.register(ex);se.register(RH);se.register(IH);se.register(NH);se.register(DH);se.register(rI);se.register(PH);se.register(LH);se.register(uI);se.register(MH);se.register($H);se.register(FH);se.register(BH);se.register(UH);se.register(zH);se.register(jH);se.register(HH);se.register(QH);se.register(iI);se.register(WH);se.register(aI);se.register(VH);se.register(qH);se.register(GH);se.register(YH);se.register(ZH);se.register(XH);se.register(KH);se.register(JH);se.register(cI);se.register(eQ);se.register(tQ);se.register(nQ);se.register(rQ);se.register(iQ);se.register(aQ);se.register(sQ);se.register(oQ);se.register(oI);se.register(lQ);se.register(sx);se.register(uQ);se.register(nx);se.register(cQ);se.register(dQ);se.register(fQ);se.register(hQ);se.register(pQ);se.register(mQ);se.register(gQ);se.register(bQ);se.register(yQ);se.register(vQ);se.register(OQ);se.register(SQ);se.register(EQ);se.register(wQ);se.register(TQ);se.register(xQ);se.register(kQ);se.register(AQ);se.register(_Q);se.register(CQ);se.register(RQ);se.register(IQ);se.register(NQ);se.register(DQ);se.register(PQ);se.register(LQ);se.register(MQ);se.register($Q);se.register(FQ);function jL(){jL=function(i,a){return new n(i,void 0,a)};var e=RegExp.prototype,t=new WeakMap;function n(i,a,s){var o=new RegExp(i,a);return t.set(o,s||t.get(i)),EC(o,n.prototype)}function r(i,a){var s=t.get(a);return Object.keys(s).reduce(function(o,l){var u=s[l];if(typeof u=="number")o[l]=i[u];else{for(var d=0;i[u[d]]===void 0&&d+1]+)>/g,function(l,u){var d=s[u];return"$"+(Array.isArray(d)?d.join("$"):d)}))}if(typeof a=="function"){var o=this;return e[Symbol.replace].call(this,i,function(){var l=arguments;return typeof l[l.length-1]!="object"&&(l=[].slice.call(l)).push(r(l,o)),a.apply(this,l)})}return e[Symbol.replace].call(this,i,a)},jL.apply(this,arguments)}function EC(e,t){return EC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},EC(e,t)}function QJ(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Btt=function(e){return function(t){return t===void 0&&(t={}),function(r,i){if(i&&!r.registered(i))throw new Error('The default language "'+i+'" is not registered with refractor.')}(e,t.defaultLanguage),function(r){So(r,"element",n)};function n(r,i,a){var s,o;if(a&&a.tagName==="pre"&&r.tagName==="code"){var l=(r==null||(s=r.data)==null?void 0:s.meta)||(r==null||(o=r.properties)==null?void 0:o.metastring)||"";r.properties.className?typeof r.properties.className=="boolean"?r.properties.className=[]:Array.isArray(r.properties.className)||(r.properties.className=[r.properties.className]):r.properties.className=[];var u,d,f=function(R){for(var N,P=HD(R.properties.className);!(N=P()).done;){var L=N.value;if(L.slice(0,9)==="language-")return L.slice(9).toLowerCase()}return null}(r);if(!f&&t.defaultLanguage&&r.properties.className.push("language-"+(f=t.defaultLanguage)),r.properties.className.push("code-highlight"),f)try{var p,g;g=(p=f)!=null&&p.includes("diff-")?f.split("-")[1]:f,u=e.highlight(vy(r),g),a.properties.className=(a.properties.className||[]).concat("language-"+g)}catch(R){if(!t.ignoreMissing||!/Unknown language/.test(R.message))throw R;u=r}else u=r;u.children=(d=1,function R(N){return N.reduce(function(P,L){if(L.type==="text"){var j=L.value,B=(j.match(/\n/g)||"").length;if(B===0)L.position={start:{line:d,column:1},end:{line:d,column:1}},P.push(L);else for(var V,W=j.split(` -`),re=HD(W.entries());!(V=re()).done;){var ee=V.value,q=ee[0],ne=ee[1];P.push({type:"text",value:q===W.length-1?ne:ne+` -`,position:{start:{line:d+q,column:1},end:{line:d+q,column:1}}})}return d+=B,P}if(Object.prototype.hasOwnProperty.call(L,"children")){var K=d;return L.children=R(L.children),P.push(L),L.position={start:{line:K,column:1},end:{line:d,column:1}},P}return P.push(L),P},[])})(u.children),u.position=u.children.length>0?{start:{line:u.children[0].position.start.line,column:0},end:{line:u.children[u.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var O,S=function(R){var N=/{([\d,-]+)}/,P=R.split(",").map(function(B){return B.trim()}).join();if(N.test(P)){var L=N.exec(P)[1],j=itt(L);return function(B){return j.includes(B+1)}}return function(){return!1}}(l),T=function(R){var N=jL(/showLineNumbers=(\d+)/i,{lines:1});if(N.test(R)){var P=N.exec(R);return Number(P.groups.lines)}return 1}(l),w=function(R){for(var N=new Array(R),P=0;P=L+1});j.children=B.children,!l.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||x.some(function(V){return l.toLowerCase().includes(V)})||(j.properties.line=[(L+T).toString()],j.properties.className.push("line-number")),S(L)&&j.properties.className.push("highlight-line"),(f==="diff"||(R=f)!=null&&R.includes("diff-"))&&vy(j).substring(0,1)==="-"?j.properties.className.push("deleted"):(f==="diff"||(N=f)!=null&&N.includes("diff-"))&&vy(j).substring(0,1)==="+"&&j.properties.className.push("inserted")},_=HD(w.entries());!(O=_()).done;)k();w.length>0&&vy(w[w.length-1]).trim()===""&&w.pop(),r.children=w}}}},Utt=Btt(se),y_={},HL={};function ztt(e,t){for(var n=t,r=0;r","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),WL=ox(b0e,{namespace:{wildcard:!0},combinators:["~"],attributes:{operators:["^=","$=","*="]},pseudoElements:{notation:"both"},pseudoClasses:{definitions:{NoArgument:["root","last-child","first-of-type","last-of-type","only-child","only-of-type","empty","target","enabled","disabled","checked","indeterminate"],Formula:["nth-child","nth-last-child","nth-of-type","nth-last-of-type"],Selector:["not"]}}}),VL=ox(WL,{combinators:["||"],attributes:{caseSensitivityModifiers:["i","I","s","S"]},pseudoClasses:{definitions:{NoArgument:["any-link","local-link","target-within","scope","current","past","future","focus-within","focus-visible","read-write","read-only","placeholder-shown","default","valid","invalid","in-range","out-of-range","required","optional","blank","user-invalid"],Formula:["nth-col","nth-last-col"],String:["dir"],FormulaOfSelector:["nth-child","nth-last-child"],Selector:["current","is","where","has"]}}}),Ytt=ox(VL,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),ZJ={css1:g0e,css2:b0e,css3:WL,"selectors-3":WL,"selectors-4":VL,latest:VL,progressive:Ytt};function yE(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function XJ(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function vE(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var Ztt={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},Xtt={'"':!0,"'":!0},WD={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},Ktt=6,VD="css-selector-parser parse error: ";function Jtt(e){e===void 0&&(e={});var t=e.syntax,n=t===void 0?"latest":t,r=e.substitutes,i=e.strict,a=i===void 0?!0:i,s=typeof n=="object"?n:ZJ[n];s.baseSyntax&&(s=ox(ZJ[s.baseSyntax],s));var o=s.tag?[!0,!!Vtt(s.tag).wildcard]:[!1,!1],l=o[0],u=o[1],d=!!s.ids,f=!!s.classNames,p=!!s.namespace,g=s.namespace&&(s.namespace===!0||s.namespace.wildcard===!0);if(p&&!l)throw new Error("".concat(VD,"Namespaces cannot be enabled while tags are disabled."));var O=!!r,S=s.combinators?WJ(s.combinators):y_,T=s.attributes?[!0,s.attributes.operators?WJ(s.attributes.operators):y_,s.attributes.caseSensitivityModifiers?jtt(s.attributes.caseSensitivityModifiers):HL,s.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,y_,HL,!1],w=T[0],x=T[1],k=T[2],_=T[3],R=_||Object.keys(k).length>0,N=s.pseudoClasses?[!0,s.pseudoClasses.definitions?qJ(s.pseudoClasses.definitions):t4,s.pseudoClasses.unknown==="accept"]:[!1,t4,!1],P=N[0],L=N[1],j=N[2],B=s.pseudoElements?[!0,s.pseudoElements.notation==="singleColon"||s.pseudoElements.notation==="both",!s.pseudoElements.notation||s.pseudoElements.notation==="doubleColon"||s.pseudoElements.notation==="both",s.pseudoElements.definitions?qJ(Array.isArray(s.pseudoElements.definitions)?{NoArgument:s.pseudoElements.definitions}:s.pseudoElements.definitions):t4,s.pseudoElements.unknown==="accept"]:[!1,!1,!1,t4,!1],V=B[0],W=B[1],re=B[2],ee=B[3],q=B[4],ne="",K=ne.length,G=0,ie="",H=function(we){return ie===we},Re=function(){return H("*")||yE(ie)},Se=function(we){G=we,ie=ne.charAt(G)},Z=function(){G++,ie=ne.charAt(G)},ke=function(){var we=ie;return G++,ie=ne.charAt(G),we};function $e(we){var be=Math.min(K-1,G),xe=new Error("".concat(VD).concat(we," Pos: ").concat(be,"."));throw xe.position=be,xe.name="ParserError",xe}function ae(we,be){if(!we)return $e(be)}var Xe=function(){ae(G=K},Ye=function(we){ae(G=2&&$e("Identifiers cannot start with two hyphens with strict mode on."),WD[ie]&&$e("Identifiers cannot start with hyphens followed by digits.");G0)return(t.commaSeparated?eU:JB)(e)}else return String(e)}const lnt=[];function unt(e,t){return(t.properties.className||lnt).includes(e.name)}function cnt(e,t){return t.properties.id===e.name}function dnt(e,t){return e.name===t.tagName}function fnt(e,t){return function(n,r){let i=JJ(n,"tag");const a=JJ(r??"*","range"),s=[];let o=-1;for(;++o=tee&&e.charCodeAt(t)<=bnt;)u=u*10+(e.charCodeAt(t)-tee),t++;return t===l?null:u}function o(){for(;ta<=n;if(t===0)return a=>a===n;if(t===1)return n<0?nee.trueFunc:a=>a>=n;const r=Math.abs(t),i=(n%r+r)%r;return t>1?a=>a>=n&&a%r===i:a=>a<=n&&a%r===i}function ree(e){return Ont(ynt(e))}const iee={}.hasOwnProperty;function BQ(e,t){const n=t||{};function r(i,...a){let s=r.invalid;const o=r.handlers;if(i&&iee.call(i,e)){const l=String(i[e]);s=iee.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}const Snt=ree.default||ree,Ent=BQ("name",{handlers:{"any-link":wnt,blank:Tnt,checked:xnt,dir:knt,disabled:S0e,empty:Ant,enabled:_nt,"first-child":Cnt,"first-of-type":Rnt,has:Int,is:E0e,lang:Dnt,"last-child":Pnt,"last-of-type":Lnt,not:Mnt,"nth-child":$nt,"nth-last-child":Fnt,"nth-last-of-type":Bnt,"nth-of-type":Unt,"only-child":znt,"only-of-type":jnt,optional:Hnt,"read-only":Qnt,"read-write":w0e,required:T0e,root:Wnt,scope:Vnt},invalid:Nnt,unknown:qnt});function wnt(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&_1(t,"href")}function Yf(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function Tnt(e,t){return!x0e(t,n);function n(r){return r.type==="element"||r.type==="text"&&!O0e(r)}}function xnt(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&_1(t,"checked")):t.tagName==="option"?_1(t,"selected"):!1}function knt(e,t,n,r,i){return e.argument,e.argument.type,i.direction===e.argument.value}function S0e(e,t){return(t.tagName==="button"||t.tagName==="input"||t.tagName==="select"||t.tagName==="textarea"||t.tagName==="optgroup"||t.tagName==="option"||t.tagName==="menuitem"||t.tagName==="fieldset")&&_1(t,"disabled")}function Ant(e,t){return!x0e(t,n);function n(r){return r.type==="element"||r.type==="text"}}function _nt(e,t){return!S0e(e,t)}function Cnt(e,t,n,r,i){return Yf(i,e),i.elementIndex===0}function Rnt(e,t,n,r,i){return Yf(i,e),i.typeIndex===0}function dI(e){let t=e._cachedFn;if(!t){const n=e.argument;if(n.type!=="Formula")throw new Error("Expected `nth` formula, such as `even` or `2n+1` (`of` is not yet supported)");t=Snt(n.a+"n+"+n.b),e._cachedFn=t}return t}function Int(e,t,n,r,i){e.argument,e.argument.type;const a={...i,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return UQ(a,{type:"root",children:t.children}),a.results.length>0}function Nnt(){}function E0e(e,t,n,r,i){e.argument,e.argument.type;const a={...i,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return UQ(a,t),a.results[0]===t}function Dnt(e,t,n,r,i){return e.argument,e.argument.type,i.language!==""&&i.language!==void 0&&hnt(i.language,Gw(e.argument.value)).length>0}function Pnt(e,t,n,r,i){return Yf(i,e),!!(i.elementCount&&i.elementIndex===i.elementCount-1)}function Lnt(e,t,n,r,i){return Yf(i,e),typeof i.typeIndex=="number"&&typeof i.typeCount=="number"&&i.typeIndex===i.typeCount-1}function Mnt(e,t,n,r,i){return!E0e(e,t,n,r,i)}function $nt(e,t,n,r,i){const a=dI(e);return Yf(i,e),typeof i.elementIndex=="number"&&a(i.elementIndex)}function Fnt(e,t,n,r,i){const a=dI(e);return Yf(i,e),!!(typeof i.elementCount=="number"&&typeof i.elementIndex=="number"&&a(i.elementCount-i.elementIndex-1))}function Bnt(e,t,n,r,i){const a=dI(e);return Yf(i,e),typeof i.typeCount=="number"&&typeof i.typeIndex=="number"&&a(i.typeCount-1-i.typeIndex)}function Unt(e,t,n,r,i){const a=dI(e);return Yf(i,e),typeof i.typeIndex=="number"&&a(i.typeIndex)}function znt(e,t,n,r,i){return Yf(i,e),i.elementCount===1}function jnt(e,t,n,r,i){return Yf(i,e),i.typeCount===1}function Hnt(e,t){return!T0e(e,t)}function Qnt(e,t,n,r,i){return!w0e(e,t,n,r,i)}function w0e(e,t,n,r,i){return t.tagName==="input"||t.tagName==="textarea"?!_1(t,"readOnly")&&!_1(t,"disabled"):!!i.editableOrEditingHost}function T0e(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&_1(t,"required")}function Wnt(e,t,n,r,i){return!!((!r||r.type==="root")&&i.schema&&(i.schema.space==="html"||i.schema.space==="svg")&&(t.tagName==="html"||t.tagName==="svg"))}function Vnt(e,t,n,r,i){return i.scopeElements.includes(t)}function x0e(e,t){const n=e.children;let r=-1;for(;++r"?"directChild":"descendant";GD(a,u,l)}else e.found=!0,e.results.includes(n)||e.results.push(n)}o.combinator===void 0?GD(a,"descendant",o):o.combinator==="~"&&GD(a,"generalSibling",o)}return a}function v_(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:Ynt}function aee(e,t){if(t.type==="element"){const n=t.tagName.toUpperCase(),r=(e.types.get(n)||0)+1;e.count++,e.types.set(n,r)}}function k0e(e,t,n,r,i,a){let s={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const o=ant(e,n);if(n.type==="element"){let l=e.rootQuery.rules;i&&i!==a&&(l=e.rootQuery.rules.filter(u=>u.combinator===void 0||u.combinator===">"&&i===a)),s=Xnt(e,v_(t,l),n,r,i)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&Znt(e,s,n,a),o(),s}function Knt(e,t,n){const r=Jnt(e,t);return UQ(r,t||void 0),r.results}function Jnt(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:tnt(e),schema:W1,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const zQ=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=zQ(n.children))}),t),ert=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const i=Knt(t,r);i&&i.length>0&&So(r,i,(a,s,o)=>{n(a,s,o)});return}So(r,(i,a,s)=>{n(i,a,s)})}}},trt=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),nrt=(e=[],t)=>{let n=t;for(;n>-1;){if(n--,!e[n])return;if(e[n]&&e[n].value&&e[n].value.replace(/(\n|\s)/g,"")!==""||e[n].type!=="text")return!/^rehype:/.test(e[n].value)||e[n].type!=="comment"?void 0:e[n]}},A0e=(e=[],t,n,r)=>{let i=t;for(;i/,"$2")||"")?void 0:r?A0e(e,i,"pre",r)?void 0:(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a):(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a)}},see=({value:e=""})=>{const t=trt(e.replace(/^/,"$1").replace(/^rehype:/,""));return Object.keys(t).forEach(n=>{t[n]==="true"&&(t[n]=!0),t[n]==="false"&&(t[n]=!1),typeof t[n]=="string"&&!/^0/.test(t[n])&&!isNaN(+t[n])&&(t[n]=+t[n])}),t},oee=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},rrt=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{So(r,"element",(i,a,s)=>{if(n&&i.tagName==="pre"&&i&&Array.isArray(i.children)&&s&&Array.isArray(s.children)&&s.children.length>1){const o=i.children[0];if(o&&o.tagName==="code"&&typeof a=="number"){const l=nrt(s.children,a);if(l){const u=see(l);Object.keys(u).length>0&&(i.properties={...i.properties,"data-type":"rehyp"},o.properties=oee(o.properties,u,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(i.tagName)&&s&&Array.isArray(s.children)&&typeof a=="number"){const o=A0e(s.children,a,"",n);if(o){const l=see(o);Object.keys(l).length>0&&(i.properties=oee(i.properties,l,t))}}})}},_0e=-1,fI=0,TC=1,xC=2,jQ=3,HQ=4,QQ=5,WQ=6,C0e=7,R0e=8,lee=typeof self=="object"?self:globalThis,irt=(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 fI:case _0e:return n(s,i);case TC:{const o=n([],i);for(const l of s)o.push(r(l));return o}case xC:{const o=n({},i);for(const[l,u]of s)o[r(l)]=r(u);return o}case jQ:return n(new Date(s),i);case HQ:{const{source:o,flags:l}=s;return n(new RegExp(o,l),i)}case QQ:{const o=n(new Map,i);for(const[l,u]of s)o.set(r(l),r(u));return o}case WQ:{const o=n(new Set,i);for(const l of s)o.add(r(l));return o}case C0e:{const{name:o,message:l}=s;return n(new lee[o](l),i)}case R0e:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i)}return n(new lee[a](s),i)};return r},uee=e=>irt(new Map,e)(0),$b="",{toString:art}={},{keys:srt}=Object,OE=e=>{const t=typeof e;if(t!=="object"||!e)return[fI,t];const n=art.call(e).slice(8,-1);switch(n){case"Array":return[TC,$b];case"Object":return[xC,$b];case"Date":return[jQ,$b];case"RegExp":return[HQ,$b];case"Map":return[QQ,$b];case"Set":return[WQ,$b]}return n.includes("Array")?[TC,n]:n.includes("Error")?[C0e,n]:[xC,n]},n4=([e,t])=>e===fI&&(t==="function"||t==="symbol"),ort=(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]=OE(s);switch(o){case fI:{let d=s;switch(l){case"bigint":o=R0e,d=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);d=null;break;case"undefined":return i([_0e],s)}return i([o,d],s)}case TC:{if(l)return i([l,[...s]],s);const d=[],f=i([o,d],s);for(const p of s)d.push(a(p));return f}case xC:{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 d=[],f=i([o,d],s);for(const p of srt(s))(e||!n4(OE(s[p])))&&d.push([a(p),a(s[p])]);return f}case jQ:return i([o,s.toISOString()],s);case HQ:{const{source:d,flags:f}=s;return i([o,{source:d,flags:f}],s)}case QQ:{const d=[],f=i([o,d],s);for(const[p,g]of s)(e||!(n4(OE(p))||n4(OE(g))))&&d.push([a(p),a(g)]);return f}case WQ:{const d=[],f=i([o,d],s);for(const p of s)(e||!n4(OE(p)))&&d.push(a(p));return f}}const{message:u}=s;return i([o,{name:l,message:u}],s)};return a},cee=(e,{json:t,lossy:n}={})=>{const r=[];return ort(!(t||n),!!t,new Map,r)(e),r},Ed=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?uee(cee(e,t)):structuredClone(e):(e,t)=>uee(cee(e,t)),dee=/[#.]/g;function lrt(e,t){const n=e||"",r={};let i=0,a,s;for(;i-1&&a<=t.length){let s=0;for(;;){let o=n[s];if(o===void 0){const l=hee(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.length1?n[a.line-2]:0)+a.column-1;if(s=55296&&e<=57343}function Nrt(e){return e>=56320&&e<=57343}function Drt(e,t){return(e-55296)*1024+9216+t}function F0e(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function B0e(e){return e>=64976&&e<=65007||Irt.has(e)}var Ze;(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"})(Ze=Ze||(Ze={}));const Prt=65536;class Lrt{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=Prt,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){const{line:n,col:r,offset:i}=this;return{code:t,startLine:n,endLine:n,startCol:r,endCol:r,startOffset:i,endOffset:i}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t)))}_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(Nrt(n))return this.pos++,this._addGap(),Drt(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,ce.EOF;return this._err(Ze.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=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,ce.EOF;const r=this.html.charCodeAt(n);return r===ce.CARRIAGE_RETURN?ce.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,ce.EOF;let t=this.html.charCodeAt(this.pos);return t===ce.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,ce.LINE_FEED):t===ce.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,$0e(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===ce.LINE_FEED||t===ce.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){F0e(t)?this._err(Ze.controlCharacterInInputStream):B0e(t)&&this._err(Ze.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const a0=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))),Mrt=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var YD;const $rt=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]]),Frt=(YD=String.fromCodePoint)!==null&&YD!==void 0?YD:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Brt(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=$rt.get(e))!==null&&t!==void 0?t:e}var Es;(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"})(Es||(Es={}));const Urt=32;var Tf;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Tf||(Tf={}));function YL(e){return e>=Es.ZERO&&e<=Es.NINE}function zrt(e){return e>=Es.UPPER_A&&e<=Es.UPPER_F||e>=Es.LOWER_A&&e<=Es.LOWER_F}function jrt(e){return e>=Es.UPPER_A&&e<=Es.UPPER_Z||e>=Es.LOWER_A&&e<=Es.LOWER_Z||YL(e)}function Hrt(e){return e===Es.EQUALS||jrt(e)}var vs;(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"})(vs||(vs={}));var Ig;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Ig||(Ig={}));class Qrt{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=vs.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ig.Strict}startEntity(t){this.decodeMode=t,this.state=vs.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case vs.EntityStart:return t.charCodeAt(n)===Es.NUM?(this.state=vs.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=vs.NamedEntity,this.stateNamedEntity(t,n));case vs.NumericStart:return this.stateNumericStart(t,n);case vs.NumericDecimal:return this.stateNumericDecimal(t,n);case vs.NumericHex:return this.stateNumericHex(t,n);case vs.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Urt)===Es.LOWER_X?(this.state=vs.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=vs.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)+parseInt(t.substr(n,a),i),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n>14;for(;n>14,a!==0){if(s===Es.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Ig.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]&Tf.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]&~Tf.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case vs.NamedEntity:return this.result!==0&&(this.decodeMode!==Ig.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case vs.NumericDecimal:return this.emitNumericEntity(0,2);case vs.NumericHex:return this.emitNumericEntity(0,3);case vs.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case vs.EntityStart:return 0}}}function z0e(e){let t="";const n=new Qrt(e,r=>t+=Frt(r));return function(i,a){let s=0,o=0;for(;(o=i.indexOf("&",o))>=0;){t+=i.slice(s,o),n.startEntity(a);const u=n.write(i,o+1);if(u<0){s=o+n.end();break}s=o+u,o=u===0?s+1:s}const l=t+i.slice(s);return t="",l}}function j0e(e,t,n,r){const i=(t&Tf.BRANCH_LENGTH)>>7,a=t&Tf.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(ur)o=l-1;else return e[l+i]}return-1}z0e(a0);z0e(Mrt);var ht;(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/"})(ht=ht||(ht={}));var K0;(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"})(K0=K0||(K0={}));var du;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(du=du||(du={}));var He;(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.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"})(He=He||(He={}));var C;(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.SECTION=94]="SECTION",e[e.SELECT=95]="SELECT",e[e.SOURCE=96]="SOURCE",e[e.SMALL=97]="SMALL",e[e.SPAN=98]="SPAN",e[e.STRIKE=99]="STRIKE",e[e.STRONG=100]="STRONG",e[e.STYLE=101]="STYLE",e[e.SUB=102]="SUB",e[e.SUMMARY=103]="SUMMARY",e[e.SUP=104]="SUP",e[e.TABLE=105]="TABLE",e[e.TBODY=106]="TBODY",e[e.TEMPLATE=107]="TEMPLATE",e[e.TEXTAREA=108]="TEXTAREA",e[e.TFOOT=109]="TFOOT",e[e.TD=110]="TD",e[e.TH=111]="TH",e[e.THEAD=112]="THEAD",e[e.TITLE=113]="TITLE",e[e.TR=114]="TR",e[e.TRACK=115]="TRACK",e[e.TT=116]="TT",e[e.U=117]="U",e[e.UL=118]="UL",e[e.SVG=119]="SVG",e[e.VAR=120]="VAR",e[e.WBR=121]="WBR",e[e.XMP=122]="XMP"})(C=C||(C={}));const Wrt=new Map([[He.A,C.A],[He.ADDRESS,C.ADDRESS],[He.ANNOTATION_XML,C.ANNOTATION_XML],[He.APPLET,C.APPLET],[He.AREA,C.AREA],[He.ARTICLE,C.ARTICLE],[He.ASIDE,C.ASIDE],[He.B,C.B],[He.BASE,C.BASE],[He.BASEFONT,C.BASEFONT],[He.BGSOUND,C.BGSOUND],[He.BIG,C.BIG],[He.BLOCKQUOTE,C.BLOCKQUOTE],[He.BODY,C.BODY],[He.BR,C.BR],[He.BUTTON,C.BUTTON],[He.CAPTION,C.CAPTION],[He.CENTER,C.CENTER],[He.CODE,C.CODE],[He.COL,C.COL],[He.COLGROUP,C.COLGROUP],[He.DD,C.DD],[He.DESC,C.DESC],[He.DETAILS,C.DETAILS],[He.DIALOG,C.DIALOG],[He.DIR,C.DIR],[He.DIV,C.DIV],[He.DL,C.DL],[He.DT,C.DT],[He.EM,C.EM],[He.EMBED,C.EMBED],[He.FIELDSET,C.FIELDSET],[He.FIGCAPTION,C.FIGCAPTION],[He.FIGURE,C.FIGURE],[He.FONT,C.FONT],[He.FOOTER,C.FOOTER],[He.FOREIGN_OBJECT,C.FOREIGN_OBJECT],[He.FORM,C.FORM],[He.FRAME,C.FRAME],[He.FRAMESET,C.FRAMESET],[He.H1,C.H1],[He.H2,C.H2],[He.H3,C.H3],[He.H4,C.H4],[He.H5,C.H5],[He.H6,C.H6],[He.HEAD,C.HEAD],[He.HEADER,C.HEADER],[He.HGROUP,C.HGROUP],[He.HR,C.HR],[He.HTML,C.HTML],[He.I,C.I],[He.IMG,C.IMG],[He.IMAGE,C.IMAGE],[He.INPUT,C.INPUT],[He.IFRAME,C.IFRAME],[He.KEYGEN,C.KEYGEN],[He.LABEL,C.LABEL],[He.LI,C.LI],[He.LINK,C.LINK],[He.LISTING,C.LISTING],[He.MAIN,C.MAIN],[He.MALIGNMARK,C.MALIGNMARK],[He.MARQUEE,C.MARQUEE],[He.MATH,C.MATH],[He.MENU,C.MENU],[He.META,C.META],[He.MGLYPH,C.MGLYPH],[He.MI,C.MI],[He.MO,C.MO],[He.MN,C.MN],[He.MS,C.MS],[He.MTEXT,C.MTEXT],[He.NAV,C.NAV],[He.NOBR,C.NOBR],[He.NOFRAMES,C.NOFRAMES],[He.NOEMBED,C.NOEMBED],[He.NOSCRIPT,C.NOSCRIPT],[He.OBJECT,C.OBJECT],[He.OL,C.OL],[He.OPTGROUP,C.OPTGROUP],[He.OPTION,C.OPTION],[He.P,C.P],[He.PARAM,C.PARAM],[He.PLAINTEXT,C.PLAINTEXT],[He.PRE,C.PRE],[He.RB,C.RB],[He.RP,C.RP],[He.RT,C.RT],[He.RTC,C.RTC],[He.RUBY,C.RUBY],[He.S,C.S],[He.SCRIPT,C.SCRIPT],[He.SECTION,C.SECTION],[He.SELECT,C.SELECT],[He.SOURCE,C.SOURCE],[He.SMALL,C.SMALL],[He.SPAN,C.SPAN],[He.STRIKE,C.STRIKE],[He.STRONG,C.STRONG],[He.STYLE,C.STYLE],[He.SUB,C.SUB],[He.SUMMARY,C.SUMMARY],[He.SUP,C.SUP],[He.TABLE,C.TABLE],[He.TBODY,C.TBODY],[He.TEMPLATE,C.TEMPLATE],[He.TEXTAREA,C.TEXTAREA],[He.TFOOT,C.TFOOT],[He.TD,C.TD],[He.TH,C.TH],[He.THEAD,C.THEAD],[He.TITLE,C.TITLE],[He.TR,C.TR],[He.TRACK,C.TRACK],[He.TT,C.TT],[He.U,C.U],[He.UL,C.UL],[He.SVG,C.SVG],[He.VAR,C.VAR],[He.WBR,C.WBR],[He.XMP,C.XMP]]);function RO(e){var t;return(t=Wrt.get(e))!==null&&t!==void 0?t:C.UNKNOWN}const It=C,Vrt={[ht.HTML]:new Set([It.ADDRESS,It.APPLET,It.AREA,It.ARTICLE,It.ASIDE,It.BASE,It.BASEFONT,It.BGSOUND,It.BLOCKQUOTE,It.BODY,It.BR,It.BUTTON,It.CAPTION,It.CENTER,It.COL,It.COLGROUP,It.DD,It.DETAILS,It.DIR,It.DIV,It.DL,It.DT,It.EMBED,It.FIELDSET,It.FIGCAPTION,It.FIGURE,It.FOOTER,It.FORM,It.FRAME,It.FRAMESET,It.H1,It.H2,It.H3,It.H4,It.H5,It.H6,It.HEAD,It.HEADER,It.HGROUP,It.HR,It.HTML,It.IFRAME,It.IMG,It.INPUT,It.LI,It.LINK,It.LISTING,It.MAIN,It.MARQUEE,It.MENU,It.META,It.NAV,It.NOEMBED,It.NOFRAMES,It.NOSCRIPT,It.OBJECT,It.OL,It.P,It.PARAM,It.PLAINTEXT,It.PRE,It.SCRIPT,It.SECTION,It.SELECT,It.SOURCE,It.STYLE,It.SUMMARY,It.TABLE,It.TBODY,It.TD,It.TEMPLATE,It.TEXTAREA,It.TFOOT,It.TH,It.THEAD,It.TITLE,It.TR,It.TRACK,It.UL,It.WBR,It.XMP]),[ht.MATHML]:new Set([It.MI,It.MO,It.MN,It.MS,It.MTEXT,It.ANNOTATION_XML]),[ht.SVG]:new Set([It.TITLE,It.FOREIGN_OBJECT,It.DESC]),[ht.XLINK]:new Set,[ht.XML]:new Set,[ht.XMLNS]:new Set};function H0e(e){return e===It.H1||e===It.H2||e===It.H3||e===It.H4||e===It.H5||e===It.H6}He.STYLE,He.SCRIPT,He.XMP,He.IFRAME,He.NOEMBED,He.NOFRAMES,He.PLAINTEXT;const qrt=new Map([[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]]);var pe;(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.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"})(pe||(pe={}));const Pa={DATA:pe.DATA,RCDATA:pe.RCDATA,RAWTEXT:pe.RAWTEXT,SCRIPT_DATA:pe.SCRIPT_DATA,PLAINTEXT:pe.PLAINTEXT,CDATA_SECTION:pe.CDATA_SECTION};function T2(e){return e>=ce.DIGIT_0&&e<=ce.DIGIT_9}function QE(e){return e>=ce.LATIN_CAPITAL_A&&e<=ce.LATIN_CAPITAL_Z}function Grt(e){return e>=ce.LATIN_SMALL_A&&e<=ce.LATIN_SMALL_Z}function s0(e){return Grt(e)||QE(e)}function ZL(e){return s0(e)||T2(e)}function Q0e(e){return e>=ce.LATIN_CAPITAL_A&&e<=ce.LATIN_CAPITAL_F}function W0e(e){return e>=ce.LATIN_SMALL_A&&e<=ce.LATIN_SMALL_F}function Yrt(e){return T2(e)||Q0e(e)||W0e(e)}function r4(e){return e+32}function V0e(e){return e===ce.SPACE||e===ce.LINE_FEED||e===ce.TABULATION||e===ce.FORM_FEED}function Zrt(e){return e===ce.EQUALS_SIGN||ZL(e)}function mee(e){return V0e(e)||e===ce.SOLIDUS||e===ce.GREATER_THAN_SIGN}class Xrt{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=pe.DATA,this.returnState=pe.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Lrt(n),this.currentLocation=this.getCurrentLocation(-1)}_err(t){var n,r;(r=(n=this.handler).onParseError)===null||r===void 0||r.call(n,this.preprocessor.getError(t))}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._unconsume(this.consumedAfterSnapshot),this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(t){this.consumedAfterSnapshot-=t,this.preprocessor.retreat(t)}_reconsumeInState(t,n){this.state=t,this._callState(n)}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n0&&this._err(Ze.endTagWithAttributes),t.selfClosing&&this._err(Ze.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 cr.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case cr.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case cr.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:cr.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type!==t)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=n;return}this._createCharacterToken(t,n)}_emitCodePoint(t){const n=V0e(t)?cr.WHITESPACE_CHARACTER:t===ce.NULL?cr.NULL_CHARACTER:cr.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(cr.CHARACTER,t)}_matchNamedCharacterReference(t){let n=null,r=0,i=!1;for(let a=0,s=a0[0];a>=0&&(a=j0e(a0,s,a+1,t),!(a<0));t=this._consume()){r+=1,s=a0[a];const o=s&Tf.VALUE_LENGTH;if(o){const l=(o>>14)-1;if(t!==ce.SEMICOLON&&this._isCharacterReferenceInAttribute()&&Zrt(this.preprocessor.peek(1))?(n=[ce.AMPERSAND],a+=l):(n=l===0?[a0[a]&~Tf.VALUE_LENGTH]:l===1?[a0[++a]]:[a0[++a],a0[++a]],r=0,i=t!==ce.SEMICOLON),l===0){this._consume();break}}}return this._unconsume(r),i&&!this.preprocessor.endOfChunkHit&&this._err(Ze.missingSemicolonAfterCharacterReference),this._unconsume(1),n}_isCharacterReferenceInAttribute(){return this.returnState===pe.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===pe.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===pe.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case pe.DATA:{this._stateData(t);break}case pe.RCDATA:{this._stateRcdata(t);break}case pe.RAWTEXT:{this._stateRawtext(t);break}case pe.SCRIPT_DATA:{this._stateScriptData(t);break}case pe.PLAINTEXT:{this._statePlaintext(t);break}case pe.TAG_OPEN:{this._stateTagOpen(t);break}case pe.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case pe.TAG_NAME:{this._stateTagName(t);break}case pe.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case pe.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case pe.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case pe.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case pe.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case pe.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case pe.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case pe.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case pe.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case pe.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case pe.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case pe.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case pe.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case pe.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case pe.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case pe.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case pe.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case pe.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case pe.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case pe.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case pe.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case pe.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case pe.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case pe.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case pe.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case pe.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case pe.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case pe.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case pe.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case pe.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case pe.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case pe.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case pe.BOGUS_COMMENT:{this._stateBogusComment(t);break}case pe.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case pe.COMMENT_START:{this._stateCommentStart(t);break}case pe.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case pe.COMMENT:{this._stateComment(t);break}case pe.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case pe.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case pe.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case pe.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case pe.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case pe.COMMENT_END:{this._stateCommentEnd(t);break}case pe.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case pe.DOCTYPE:{this._stateDoctype(t);break}case pe.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case pe.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case pe.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case pe.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case pe.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case pe.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case pe.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case pe.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case pe.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case pe.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case pe.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case pe.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case pe.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case pe.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case pe.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case pe.CDATA_SECTION:{this._stateCdataSection(t);break}case pe.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case pe.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case pe.CHARACTER_REFERENCE:{this._stateCharacterReference(t);break}case pe.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(t);break}case pe.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}case pe.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(t);break}case pe.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(t);break}case pe.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(t);break}case pe.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(t);break}case pe.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case ce.LESS_THAN_SIGN:{this.state=pe.TAG_OPEN;break}case ce.AMPERSAND:{this.returnState=pe.DATA,this.state=pe.CHARACTER_REFERENCE;break}case ce.NULL:{this._err(Ze.unexpectedNullCharacter),this._emitCodePoint(t);break}case ce.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case ce.AMPERSAND:{this.returnState=pe.RCDATA,this.state=pe.CHARACTER_REFERENCE;break}case ce.LESS_THAN_SIGN:{this.state=pe.RCDATA_LESS_THAN_SIGN;break}case ce.NULL:{this._err(Ze.unexpectedNullCharacter),this._emitChars(Zi);break}case ce.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case ce.LESS_THAN_SIGN:{this.state=pe.RAWTEXT_LESS_THAN_SIGN;break}case ce.NULL:{this._err(Ze.unexpectedNullCharacter),this._emitChars(Zi);break}case ce.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case ce.LESS_THAN_SIGN:{this.state=pe.SCRIPT_DATA_LESS_THAN_SIGN;break}case ce.NULL:{this._err(Ze.unexpectedNullCharacter),this._emitChars(Zi);break}case ce.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case ce.NULL:{this._err(Ze.unexpectedNullCharacter),this._emitChars(Zi);break}case ce.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(s0(t))this._createStartTagToken(),this.state=pe.TAG_NAME,this._stateTagName(t);else switch(t){case ce.EXCLAMATION_MARK:{this.state=pe.MARKUP_DECLARATION_OPEN;break}case ce.SOLIDUS:{this.state=pe.END_TAG_OPEN;break}case ce.QUESTION_MARK:{this._err(Ze.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=pe.BOGUS_COMMENT,this._stateBogusComment(t);break}case ce.EOF:{this._err(Ze.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Ze.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=pe.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(s0(t))this._createEndTagToken(),this.state=pe.TAG_NAME,this._stateTagName(t);else switch(t){case ce.GREATER_THAN_SIGN:{this._err(Ze.missingEndTagName),this.state=pe.DATA;break}case ce.EOF:{this._err(Ze.eofBeforeTagName),this._emitChars("");break}case ce.NULL:{this._err(Ze.unexpectedNullCharacter),this.state=pe.SCRIPT_DATA_ESCAPED,this._emitChars(Zi);break}case ce.EOF:{this._err(Ze.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=pe.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===ce.SOLIDUS?this.state=pe.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:s0(t)?(this._emitChars("<"),this.state=pe.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=pe.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){s0(t)?(this.state=pe.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("");break}case ce.NULL:{this._err(Ze.unexpectedNullCharacter),this.state=pe.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Zi);break}case ce.EOF:{this._err(Ze.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=pe.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===ce.SOLIDUS?(this.state=pe.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=pe.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(fl.SCRIPT,!1)&&mee(this.preprocessor.peek(fl.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n1114111)this._err(Ze.characterReferenceOutsideUnicodeRange),this.charRefCode=ce.REPLACEMENT_CHARACTER;else if($0e(this.charRefCode))this._err(Ze.surrogateCharacterReference),this.charRefCode=ce.REPLACEMENT_CHARACTER;else if(B0e(this.charRefCode))this._err(Ze.noncharacterCharacterReference);else if(F0e(this.charRefCode)||this.charRefCode===ce.CARRIAGE_RETURN){this._err(Ze.controlCharacterReference);const n=qrt.get(this.charRefCode);n!==void 0&&(this.charRefCode=n)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,t)}}const q0e=new Set([C.DD,C.DT,C.LI,C.OPTGROUP,C.OPTION,C.P,C.RB,C.RP,C.RT,C.RTC]),gee=new Set([...q0e,C.CAPTION,C.COLGROUP,C.TBODY,C.TD,C.TFOOT,C.TH,C.THEAD,C.TR]),i4=new Map([[C.APPLET,ht.HTML],[C.CAPTION,ht.HTML],[C.HTML,ht.HTML],[C.MARQUEE,ht.HTML],[C.OBJECT,ht.HTML],[C.TABLE,ht.HTML],[C.TD,ht.HTML],[C.TEMPLATE,ht.HTML],[C.TH,ht.HTML],[C.ANNOTATION_XML,ht.MATHML],[C.MI,ht.MATHML],[C.MN,ht.MATHML],[C.MO,ht.MATHML],[C.MS,ht.MATHML],[C.MTEXT,ht.MATHML],[C.DESC,ht.SVG],[C.FOREIGN_OBJECT,ht.SVG],[C.TITLE,ht.SVG]]),Krt=[C.H1,C.H2,C.H3,C.H4,C.H5,C.H6],Jrt=[C.TR,C.TEMPLATE,C.HTML],eit=[C.TBODY,C.TFOOT,C.THEAD,C.TEMPLATE,C.HTML],tit=[C.TABLE,C.TEMPLATE,C.HTML],nit=[C.TD,C.TH];class rit{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=C.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===C.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===ht.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.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])!==ht.HTML);this.shortenToLength(n<0?0:n)}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=0;r--)if(t.includes(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(tit,ht.HTML)}clearBackToTableBodyContext(){this.clearBackTo(eit,ht.HTML)}clearBackToTableRowContext(){this.clearBackTo(Jrt,ht.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]===C.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]===C.HTML}hasInScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===ht.HTML)return!0;if(i4.get(r)===i)return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(H0e(n)&&r===ht.HTML)return!0;if(i4.get(n)===r)return!1}return!0}hasInListItemScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===ht.HTML)return!0;if((r===C.UL||r===C.OL)&&i===ht.HTML||i4.get(r)===i)return!1}return!0}hasInButtonScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===ht.HTML)return!0;if(r===C.BUTTON&&i===ht.HTML||i4.get(r)===i)return!1}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];if(this.treeAdapter.getNamespaceURI(this.items[n])===ht.HTML){if(r===t)return!0;if(r===C.TABLE||r===C.TEMPLATE||r===C.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===ht.HTML){if(n===C.TBODY||n===C.THEAD||n===C.TFOOT)return!0;if(n===C.TABLE||n===C.HTML)return!1}}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];if(this.treeAdapter.getNamespaceURI(this.items[n])===ht.HTML){if(r===t)return!0;if(r!==C.OPTION&&r!==C.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;q0e.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;gee.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&gee.has(this.currentTagId);)this.pop()}}const ZD=3;var pd;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(pd=pd||(pd={}));const bee={type:pd.Marker};class iit{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[s.name,s.value]));let a=0;for(let s=0;si.get(l.name)===l.value)&&(a+=1,a>=ZD&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(bee)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:pd.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:pd.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n>=0&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(bee);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===pd.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===pd.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===pd.Element&&n.element===t)}}function yee(e){return{nodeName:"#text",value:e,parentNode:null}}const Gb={createDocument(){return{nodeName:"#document",mode:du.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}},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};Gb.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(Gb.isTextNode(n)){n.value+=t;return}}Gb.appendChild(e,yee(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Gb.isTextNode(r)?r.value+=t:Gb.insertBefore(e,yee(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;re.startsWith(n))}function cit(e){return e.name===G0e&&e.publicId===null&&(e.systemId===null||e.systemId===ait)}function dit(e){if(e.name!==G0e)return du.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===sit)return du.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),lit.has(n))return du.QUIRKS;let r=t===null?oit:Y0e;if(vee(n,r))return du.QUIRKS;if(r=t===null?Z0e:uit,vee(n,r))return du.LIMITED_QUIRKS}return du.NO_QUIRKS}const Oee={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},fit="definitionurl",hit="definitionURL",pit=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])),mit=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:ht.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:ht.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:ht.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:ht.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:ht.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:ht.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:ht.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:ht.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:ht.XML}],["xml:space",{prefix:"xml",name:"space",namespace:ht.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:ht.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:ht.XMLNS}]]),git=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])),bit=new Set([C.B,C.BIG,C.BLOCKQUOTE,C.BODY,C.BR,C.CENTER,C.CODE,C.DD,C.DIV,C.DL,C.DT,C.EM,C.EMBED,C.H1,C.H2,C.H3,C.H4,C.H5,C.H6,C.HEAD,C.HR,C.I,C.IMG,C.LI,C.LISTING,C.MENU,C.META,C.NOBR,C.OL,C.P,C.PRE,C.RUBY,C.S,C.SMALL,C.SPAN,C.STRONG,C.STRIKE,C.SUB,C.SUP,C.TABLE,C.TT,C.U,C.UL,C.VAR]);function yit(e){const t=e.tagID;return t===C.FONT&&e.attrs.some(({name:r})=>r===K0.COLOR||r===K0.SIZE||r===K0.FACE)||bit.has(t)}function X0e(e){for(let t=0;t0&&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||this.treeAdapter.getNamespaceURI(t)===ht.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,ht.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=Ee.TEXT}switchToPlaintextParsing(){this.insertionMode=Ee.TEXT,this.originalInsertionMode=Ee.IN_BODY,this.tokenizer.state=Pa.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)===He.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==ht.HTML))switch(this.fragmentContextID){case C.TITLE:case C.TEXTAREA:{this.tokenizer.state=Pa.RCDATA;break}case C.STYLE:case C.XMP:case C.IFRAME:case C.NOEMBED:case C.NOFRAMES:case C.NOSCRIPT:{this.tokenizer.state=Pa.RAWTEXT;break}case C.SCRIPT:{this.tokenizer.state=Pa.SCRIPT_DATA;break}case C.PLAINTEXT:{this.tokenizer.state=Pa.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,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,ht.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,ht.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(He.HTML,ht.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,C.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:d}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:l,endCol:u,endOffset:d})}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===cr.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===C.SVG&&this.treeAdapter.getTagName(n)===He.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===ht.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===C.MGLYPH||t.tagID===C.MALIGNMARK)&&!this._isIntegrationPoint(r,n,ht.HTML)}_processToken(t){switch(t.type){case cr.CHARACTER:{this.onCharacter(t);break}case cr.NULL_CHARACTER:{this.onNullCharacter(t);break}case cr.COMMENT:{this.onComment(t);break}case cr.DOCTYPE:{this.onDoctype(t);break}case cr.START_TAG:{this._processStartTag(t);break}case cr.END_TAG:{this.onEndTag(t);break}case cr.EOF:{this.onEof(t);break}case cr.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return Eit(t,i,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===pd.Marker||this.openElements.contains(i.element)),r=n<0?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=Ee.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(C.P),this.openElements.popUntilTagNamePopped(C.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case C.TR:{this.insertionMode=Ee.IN_ROW;return}case C.TBODY:case C.THEAD:case C.TFOOT:{this.insertionMode=Ee.IN_TABLE_BODY;return}case C.CAPTION:{this.insertionMode=Ee.IN_CAPTION;return}case C.COLGROUP:{this.insertionMode=Ee.IN_COLUMN_GROUP;return}case C.TABLE:{this.insertionMode=Ee.IN_TABLE;return}case C.BODY:{this.insertionMode=Ee.IN_BODY;return}case C.FRAMESET:{this.insertionMode=Ee.IN_FRAMESET;return}case C.SELECT:{this._resetInsertionModeForSelect(t);return}case C.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case C.HTML:{this.insertionMode=this.headElement?Ee.AFTER_HEAD:Ee.BEFORE_HEAD;return}case C.TD:case C.TH:{if(t>0){this.insertionMode=Ee.IN_CELL;return}break}case C.HEAD:{if(t>0){this.insertionMode=Ee.IN_HEAD;return}break}}this.insertionMode=Ee.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===C.TEMPLATE)break;if(r===C.TABLE){this.insertionMode=Ee.IN_SELECT_IN_TABLE;return}}this.insertionMode=Ee.IN_SELECT}_isElementCausesFosterParenting(t){return J0e.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&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 C.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===ht.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case C.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 Vrt[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){nst(this,t);return}switch(this.insertionMode){case Ee.INITIAL:{SE(this,t);break}case Ee.BEFORE_HTML:{x2(this,t);break}case Ee.BEFORE_HEAD:{k2(this,t);break}case Ee.IN_HEAD:{A2(this,t);break}case Ee.IN_HEAD_NO_SCRIPT:{_2(this,t);break}case Ee.AFTER_HEAD:{C2(this,t);break}case Ee.IN_BODY:case Ee.IN_CAPTION:case Ee.IN_CELL:case Ee.IN_TEMPLATE:{tme(this,t);break}case Ee.TEXT:case Ee.IN_SELECT:case Ee.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case Ee.IN_TABLE:case Ee.IN_TABLE_BODY:case Ee.IN_ROW:{XD(this,t);break}case Ee.IN_TABLE_TEXT:{ome(this,t);break}case Ee.IN_COLUMN_GROUP:{kC(this,t);break}case Ee.AFTER_BODY:{AC(this,t);break}case Ee.AFTER_AFTER_BODY:{S_(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){tst(this,t);return}switch(this.insertionMode){case Ee.INITIAL:{SE(this,t);break}case Ee.BEFORE_HTML:{x2(this,t);break}case Ee.BEFORE_HEAD:{k2(this,t);break}case Ee.IN_HEAD:{A2(this,t);break}case Ee.IN_HEAD_NO_SCRIPT:{_2(this,t);break}case Ee.AFTER_HEAD:{C2(this,t);break}case Ee.TEXT:{this._insertCharacters(t);break}case Ee.IN_TABLE:case Ee.IN_TABLE_BODY:case Ee.IN_ROW:{XD(this,t);break}case Ee.IN_COLUMN_GROUP:{kC(this,t);break}case Ee.AFTER_BODY:{AC(this,t);break}case Ee.AFTER_AFTER_BODY:{S_(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){XL(this,t);return}switch(this.insertionMode){case Ee.INITIAL:case Ee.BEFORE_HTML:case Ee.BEFORE_HEAD:case Ee.IN_HEAD:case Ee.IN_HEAD_NO_SCRIPT:case Ee.AFTER_HEAD:case Ee.IN_BODY:case Ee.IN_TABLE:case Ee.IN_CAPTION:case Ee.IN_COLUMN_GROUP:case Ee.IN_TABLE_BODY:case Ee.IN_ROW:case Ee.IN_CELL:case Ee.IN_SELECT:case Ee.IN_SELECT_IN_TABLE:case Ee.IN_TEMPLATE:case Ee.IN_FRAMESET:case Ee.AFTER_FRAMESET:{XL(this,t);break}case Ee.IN_TABLE_TEXT:{EE(this,t);break}case Ee.AFTER_BODY:{Dit(this,t);break}case Ee.AFTER_AFTER_BODY:case Ee.AFTER_AFTER_FRAMESET:{Pit(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case Ee.INITIAL:{Lit(this,t);break}case Ee.BEFORE_HEAD:case Ee.IN_HEAD:case Ee.IN_HEAD_NO_SCRIPT:case Ee.AFTER_HEAD:{this._err(t,Ze.misplacedDoctype);break}case Ee.IN_TABLE_TEXT:{EE(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,Ze.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?rst(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case Ee.INITIAL:{SE(this,t);break}case Ee.BEFORE_HTML:{Mit(this,t);break}case Ee.BEFORE_HEAD:{Fit(this,t);break}case Ee.IN_HEAD:{Bd(this,t);break}case Ee.IN_HEAD_NO_SCRIPT:{zit(this,t);break}case Ee.AFTER_HEAD:{Hit(this,t);break}case Ee.IN_BODY:{wo(this,t);break}case Ee.IN_TABLE:{Fv(this,t);break}case Ee.IN_TABLE_TEXT:{EE(this,t);break}case Ee.IN_CAPTION:{Bat(this,t);break}case Ee.IN_COLUMN_GROUP:{XQ(this,t);break}case Ee.IN_TABLE_BODY:{mI(this,t);break}case Ee.IN_ROW:{gI(this,t);break}case Ee.IN_CELL:{jat(this,t);break}case Ee.IN_SELECT:{cme(this,t);break}case Ee.IN_SELECT_IN_TABLE:{Qat(this,t);break}case Ee.IN_TEMPLATE:{Vat(this,t);break}case Ee.AFTER_BODY:{Gat(this,t);break}case Ee.IN_FRAMESET:{Yat(this,t);break}case Ee.AFTER_FRAMESET:{Xat(this,t);break}case Ee.AFTER_AFTER_BODY:{Jat(this,t);break}case Ee.AFTER_AFTER_FRAMESET:{est(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?ist(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case Ee.INITIAL:{SE(this,t);break}case Ee.BEFORE_HTML:{$it(this,t);break}case Ee.BEFORE_HEAD:{Bit(this,t);break}case Ee.IN_HEAD:{Uit(this,t);break}case Ee.IN_HEAD_NO_SCRIPT:{jit(this,t);break}case Ee.AFTER_HEAD:{Qit(this,t);break}case Ee.IN_BODY:{pI(this,t);break}case Ee.TEXT:{Cat(this,t);break}case Ee.IN_TABLE:{Zw(this,t);break}case Ee.IN_TABLE_TEXT:{EE(this,t);break}case Ee.IN_CAPTION:{Uat(this,t);break}case Ee.IN_COLUMN_GROUP:{zat(this,t);break}case Ee.IN_TABLE_BODY:{KL(this,t);break}case Ee.IN_ROW:{ume(this,t);break}case Ee.IN_CELL:{Hat(this,t);break}case Ee.IN_SELECT:{dme(this,t);break}case Ee.IN_SELECT_IN_TABLE:{Wat(this,t);break}case Ee.IN_TEMPLATE:{qat(this,t);break}case Ee.AFTER_BODY:{hme(this,t);break}case Ee.IN_FRAMESET:{Zat(this,t);break}case Ee.AFTER_FRAMESET:{Kat(this,t);break}case Ee.AFTER_AFTER_BODY:{S_(this,t);break}}}onEof(t){switch(this.insertionMode){case Ee.INITIAL:{SE(this,t);break}case Ee.BEFORE_HTML:{x2(this,t);break}case Ee.BEFORE_HEAD:{k2(this,t);break}case Ee.IN_HEAD:{A2(this,t);break}case Ee.IN_HEAD_NO_SCRIPT:{_2(this,t);break}case Ee.AFTER_HEAD:{C2(this,t);break}case Ee.IN_BODY:case Ee.IN_TABLE:case Ee.IN_CAPTION:case Ee.IN_COLUMN_GROUP:case Ee.IN_TABLE_BODY:case Ee.IN_ROW:case Ee.IN_CELL:case Ee.IN_SELECT:case Ee.IN_SELECT_IN_TABLE:{ame(this,t);break}case Ee.TEXT:{Rat(this,t);break}case Ee.IN_TABLE_TEXT:{EE(this,t);break}case Ee.IN_TEMPLATE:{fme(this,t);break}case Ee.AFTER_BODY:case Ee.IN_FRAMESET:case Ee.AFTER_FRAMESET:case Ee.AFTER_AFTER_BODY:case Ee.AFTER_AFTER_FRAMESET:{ZQ(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===ce.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 Ee.IN_HEAD:case Ee.IN_HEAD_NO_SCRIPT:case Ee.AFTER_HEAD:case Ee.TEXT:case Ee.IN_COLUMN_GROUP:case Ee.IN_SELECT:case Ee.IN_SELECT_IN_TABLE:case Ee.IN_FRAMESET:case Ee.AFTER_FRAMESET:{this._insertCharacters(t);break}case Ee.IN_BODY:case Ee.IN_CAPTION:case Ee.IN_CELL:case Ee.IN_TEMPLATE:case Ee.AFTER_BODY:case Ee.AFTER_AFTER_BODY:case Ee.AFTER_AFTER_FRAMESET:{eme(this,t);break}case Ee.IN_TABLE:case Ee.IN_TABLE_BODY:case Ee.IN_ROW:{XD(this,t);break}case Ee.IN_TABLE_TEXT:{sme(this,t);break}}}};function Ait(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):ime(e,t),n}function _it(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(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function Cit(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>=xit;!o||l?(l&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=Rit(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function Rit(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 Iit(e,t,n){const r=e.treeAdapter.getTagName(t),i=RO(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);i===C.TEMPLATE&&a===ht.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Nit(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 YQ(e,t){for(let n=0;n=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 Lit(e,t){e._setDocumentType(t);const n=t.forceQuirks?du.QUIRKS:dit(t);cit(t)||e._err(t,Ze.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Ee.BEFORE_HTML}function SE(e,t){e._err(t,Ze.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,du.QUIRKS),e.insertionMode=Ee.BEFORE_HTML,e._processToken(t)}function Mit(e,t){t.tagID===C.HTML?(e._insertElement(t,ht.HTML),e.insertionMode=Ee.BEFORE_HEAD):x2(e,t)}function $it(e,t){const n=t.tagID;(n===C.HTML||n===C.HEAD||n===C.BODY||n===C.BR)&&x2(e,t)}function x2(e,t){e._insertFakeRootElement(),e.insertionMode=Ee.BEFORE_HEAD,e._processToken(t)}function Fit(e,t){switch(t.tagID){case C.HTML:{wo(e,t);break}case C.HEAD:{e._insertElement(t,ht.HTML),e.headElement=e.openElements.current,e.insertionMode=Ee.IN_HEAD;break}default:k2(e,t)}}function Bit(e,t){const n=t.tagID;n===C.HEAD||n===C.BODY||n===C.HTML||n===C.BR?k2(e,t):e._err(t,Ze.endTagWithoutMatchingOpenElement)}function k2(e,t){e._insertFakeElement(He.HEAD,C.HEAD),e.headElement=e.openElements.current,e.insertionMode=Ee.IN_HEAD,e._processToken(t)}function Bd(e,t){switch(t.tagID){case C.HTML:{wo(e,t);break}case C.BASE:case C.BASEFONT:case C.BGSOUND:case C.LINK:case C.META:{e._appendElement(t,ht.HTML),t.ackSelfClosing=!0;break}case C.TITLE:{e._switchToTextParsing(t,Pa.RCDATA);break}case C.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Pa.RAWTEXT):(e._insertElement(t,ht.HTML),e.insertionMode=Ee.IN_HEAD_NO_SCRIPT);break}case C.NOFRAMES:case C.STYLE:{e._switchToTextParsing(t,Pa.RAWTEXT);break}case C.SCRIPT:{e._switchToTextParsing(t,Pa.SCRIPT_DATA);break}case C.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Ee.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Ee.IN_TEMPLATE);break}case C.HEAD:{e._err(t,Ze.misplacedStartTagForHeadElement);break}default:A2(e,t)}}function Uit(e,t){switch(t.tagID){case C.HEAD:{e.openElements.pop(),e.insertionMode=Ee.AFTER_HEAD;break}case C.BODY:case C.BR:case C.HTML:{A2(e,t);break}case C.TEMPLATE:{V1(e,t);break}default:e._err(t,Ze.endTagWithoutMatchingOpenElement)}}function V1(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==C.TEMPLATE&&e._err(t,Ze.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(C.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Ze.endTagWithoutMatchingOpenElement)}function A2(e,t){e.openElements.pop(),e.insertionMode=Ee.AFTER_HEAD,e._processToken(t)}function zit(e,t){switch(t.tagID){case C.HTML:{wo(e,t);break}case C.BASEFONT:case C.BGSOUND:case C.HEAD:case C.LINK:case C.META:case C.NOFRAMES:case C.STYLE:{Bd(e,t);break}case C.NOSCRIPT:{e._err(t,Ze.nestedNoscriptInHead);break}default:_2(e,t)}}function jit(e,t){switch(t.tagID){case C.NOSCRIPT:{e.openElements.pop(),e.insertionMode=Ee.IN_HEAD;break}case C.BR:{_2(e,t);break}default:e._err(t,Ze.endTagWithoutMatchingOpenElement)}}function _2(e,t){const n=t.type===cr.EOF?Ze.openElementsLeftAfterEof:Ze.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=Ee.IN_HEAD,e._processToken(t)}function Hit(e,t){switch(t.tagID){case C.HTML:{wo(e,t);break}case C.BODY:{e._insertElement(t,ht.HTML),e.framesetOk=!1,e.insertionMode=Ee.IN_BODY;break}case C.FRAMESET:{e._insertElement(t,ht.HTML),e.insertionMode=Ee.IN_FRAMESET;break}case C.BASE:case C.BASEFONT:case C.BGSOUND:case C.LINK:case C.META:case C.NOFRAMES:case C.SCRIPT:case C.STYLE:case C.TEMPLATE:case C.TITLE:{e._err(t,Ze.abandonedHeadElementChild),e.openElements.push(e.headElement,C.HEAD),Bd(e,t),e.openElements.remove(e.headElement);break}case C.HEAD:{e._err(t,Ze.misplacedStartTagForHeadElement);break}default:C2(e,t)}}function Qit(e,t){switch(t.tagID){case C.BODY:case C.HTML:case C.BR:{C2(e,t);break}case C.TEMPLATE:{V1(e,t);break}default:e._err(t,Ze.endTagWithoutMatchingOpenElement)}}function C2(e,t){e._insertFakeElement(He.BODY,C.BODY),e.insertionMode=Ee.IN_BODY,hI(e,t)}function hI(e,t){switch(t.type){case cr.CHARACTER:{tme(e,t);break}case cr.WHITESPACE_CHARACTER:{eme(e,t);break}case cr.COMMENT:{XL(e,t);break}case cr.START_TAG:{wo(e,t);break}case cr.END_TAG:{pI(e,t);break}case cr.EOF:{ame(e,t);break}}}function eme(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function tme(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Wit(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Vit(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function qit(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,ht.HTML),e.insertionMode=Ee.IN_FRAMESET)}function Git(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,ht.HTML)}function Yit(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),H0e(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,ht.HTML)}function Zit(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,ht.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Xit(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,ht.HTML),n||(e.formElement=e.openElements.current))}function Kit(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===C.LI&&i===C.LI||(n===C.DD||n===C.DT)&&(i===C.DD||i===C.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==C.ADDRESS&&i!==C.DIV&&i!==C.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,ht.HTML)}function Jit(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,ht.HTML),e.tokenizer.state=Pa.PLAINTEXT}function eat(e,t){e.openElements.hasInScope(C.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(C.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,ht.HTML),e.framesetOk=!1}function tat(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(He.A);n&&(YQ(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,ht.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function nat(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ht.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function rat(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(C.NOBR)&&(YQ(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,ht.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function iat(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ht.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function aat(e,t){e.treeAdapter.getDocumentMode(e.document)!==du.QUIRKS&&e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,ht.HTML),e.framesetOk=!1,e.insertionMode=Ee.IN_TABLE}function nme(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ht.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function rme(e){const t=U0e(e,K0.TYPE);return t!=null&&t.toLowerCase()===wit}function sat(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ht.HTML),rme(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function oat(e,t){e._appendElement(t,ht.HTML),t.ackSelfClosing=!0}function lat(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._appendElement(t,ht.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function uat(e,t){t.tagName=He.IMG,t.tagID=C.IMG,nme(e,t)}function cat(e,t){e._insertElement(t,ht.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Pa.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Ee.TEXT}function dat(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Pa.RAWTEXT)}function fat(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Pa.RAWTEXT)}function wee(e,t){e._switchToTextParsing(t,Pa.RAWTEXT)}function hat(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ht.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===Ee.IN_TABLE||e.insertionMode===Ee.IN_CAPTION||e.insertionMode===Ee.IN_TABLE_BODY||e.insertionMode===Ee.IN_ROW||e.insertionMode===Ee.IN_CELL?Ee.IN_SELECT_IN_TABLE:Ee.IN_SELECT}function pat(e,t){e.openElements.currentTagId===C.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,ht.HTML)}function mat(e,t){e.openElements.hasInScope(C.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,ht.HTML)}function gat(e,t){e.openElements.hasInScope(C.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(C.RTC),e._insertElement(t,ht.HTML)}function bat(e,t){e._reconstructActiveFormattingElements(),X0e(t),GQ(t),t.selfClosing?e._appendElement(t,ht.MATHML):e._insertElement(t,ht.MATHML),t.ackSelfClosing=!0}function yat(e,t){e._reconstructActiveFormattingElements(),K0e(t),GQ(t),t.selfClosing?e._appendElement(t,ht.SVG):e._insertElement(t,ht.SVG),t.ackSelfClosing=!0}function Tee(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ht.HTML)}function wo(e,t){switch(t.tagID){case C.I:case C.S:case C.B:case C.U:case C.EM:case C.TT:case C.BIG:case C.CODE:case C.FONT:case C.SMALL:case C.STRIKE:case C.STRONG:{nat(e,t);break}case C.A:{tat(e,t);break}case C.H1:case C.H2:case C.H3:case C.H4:case C.H5:case C.H6:{Yit(e,t);break}case C.P:case C.DL:case C.OL:case C.UL:case C.DIV:case C.DIR:case C.NAV:case C.MAIN:case C.MENU:case C.ASIDE:case C.CENTER:case C.FIGURE:case C.FOOTER:case C.HEADER:case C.HGROUP:case C.DIALOG:case C.DETAILS:case C.ADDRESS:case C.ARTICLE:case C.SECTION:case C.SUMMARY:case C.FIELDSET:case C.BLOCKQUOTE:case C.FIGCAPTION:{Git(e,t);break}case C.LI:case C.DD:case C.DT:{Kit(e,t);break}case C.BR:case C.IMG:case C.WBR:case C.AREA:case C.EMBED:case C.KEYGEN:{nme(e,t);break}case C.HR:{lat(e,t);break}case C.RB:case C.RTC:{mat(e,t);break}case C.RT:case C.RP:{gat(e,t);break}case C.PRE:case C.LISTING:{Zit(e,t);break}case C.XMP:{dat(e,t);break}case C.SVG:{yat(e,t);break}case C.HTML:{Wit(e,t);break}case C.BASE:case C.LINK:case C.META:case C.STYLE:case C.TITLE:case C.SCRIPT:case C.BGSOUND:case C.BASEFONT:case C.TEMPLATE:{Bd(e,t);break}case C.BODY:{Vit(e,t);break}case C.FORM:{Xit(e,t);break}case C.NOBR:{rat(e,t);break}case C.MATH:{bat(e,t);break}case C.TABLE:{aat(e,t);break}case C.INPUT:{sat(e,t);break}case C.PARAM:case C.TRACK:case C.SOURCE:{oat(e,t);break}case C.IMAGE:{uat(e,t);break}case C.BUTTON:{eat(e,t);break}case C.APPLET:case C.OBJECT:case C.MARQUEE:{iat(e,t);break}case C.IFRAME:{fat(e,t);break}case C.SELECT:{hat(e,t);break}case C.OPTION:case C.OPTGROUP:{pat(e,t);break}case C.NOEMBED:{wee(e,t);break}case C.FRAMESET:{qit(e,t);break}case C.TEXTAREA:{cat(e,t);break}case C.NOSCRIPT:{e.options.scriptingEnabled?wee(e,t):Tee(e,t);break}case C.PLAINTEXT:{Jit(e,t);break}case C.COL:case C.TH:case C.TD:case C.TR:case C.HEAD:case C.FRAME:case C.TBODY:case C.TFOOT:case C.THEAD:case C.CAPTION:case C.COLGROUP:break;default:Tee(e,t)}}function vat(e,t){if(e.openElements.hasInScope(C.BODY)&&(e.insertionMode=Ee.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function Oat(e,t){e.openElements.hasInScope(C.BODY)&&(e.insertionMode=Ee.AFTER_BODY,hme(e,t))}function Sat(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Eat(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(C.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(C.FORM):n&&e.openElements.remove(n))}function wat(e){e.openElements.hasInButtonScope(C.P)||e._insertFakeElement(He.P,C.P),e._closePElement()}function Tat(e){e.openElements.hasInListItemScope(C.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(C.LI),e.openElements.popUntilTagNamePopped(C.LI))}function xat(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function kat(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Aat(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function _at(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(He.BR,C.BR),e.openElements.pop(),e.framesetOk=!1}function ime(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!==C.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 pI(e,t){switch(t.tagID){case C.A:case C.B:case C.I:case C.S:case C.U:case C.EM:case C.TT:case C.BIG:case C.CODE:case C.FONT:case C.NOBR:case C.SMALL:case C.STRIKE:case C.STRONG:{YQ(e,t);break}case C.P:{wat(e);break}case C.DL:case C.UL:case C.OL:case C.DIR:case C.DIV:case C.NAV:case C.PRE:case C.MAIN:case C.MENU:case C.ASIDE:case C.BUTTON:case C.CENTER:case C.FIGURE:case C.FOOTER:case C.HEADER:case C.HGROUP:case C.DIALOG:case C.ADDRESS:case C.ARTICLE:case C.DETAILS:case C.SECTION:case C.SUMMARY:case C.LISTING:case C.FIELDSET:case C.BLOCKQUOTE:case C.FIGCAPTION:{Sat(e,t);break}case C.LI:{Tat(e);break}case C.DD:case C.DT:{xat(e,t);break}case C.H1:case C.H2:case C.H3:case C.H4:case C.H5:case C.H6:{kat(e);break}case C.BR:{_at(e);break}case C.BODY:{vat(e,t);break}case C.HTML:{Oat(e,t);break}case C.FORM:{Eat(e);break}case C.APPLET:case C.OBJECT:case C.MARQUEE:{Aat(e,t);break}case C.TEMPLATE:{V1(e,t);break}default:ime(e,t)}}function ame(e,t){e.tmplInsertionModeStack.length>0?fme(e,t):ZQ(e,t)}function Cat(e,t){var n;t.tagID===C.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Rat(e,t){e._err(t,Ze.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function XD(e,t){if(J0e.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Ee.IN_TABLE_TEXT,t.type){case cr.CHARACTER:{ome(e,t);break}case cr.WHITESPACE_CHARACTER:{sme(e,t);break}}else lx(e,t)}function Iat(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,ht.HTML),e.insertionMode=Ee.IN_CAPTION}function Nat(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ht.HTML),e.insertionMode=Ee.IN_COLUMN_GROUP}function Dat(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(He.COLGROUP,C.COLGROUP),e.insertionMode=Ee.IN_COLUMN_GROUP,XQ(e,t)}function Pat(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ht.HTML),e.insertionMode=Ee.IN_TABLE_BODY}function Lat(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(He.TBODY,C.TBODY),e.insertionMode=Ee.IN_TABLE_BODY,mI(e,t)}function Mat(e,t){e.openElements.hasInTableScope(C.TABLE)&&(e.openElements.popUntilTagNamePopped(C.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function $at(e,t){rme(t)?e._appendElement(t,ht.HTML):lx(e,t),t.ackSelfClosing=!0}function Fat(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,ht.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Fv(e,t){switch(t.tagID){case C.TD:case C.TH:case C.TR:{Lat(e,t);break}case C.STYLE:case C.SCRIPT:case C.TEMPLATE:{Bd(e,t);break}case C.COL:{Dat(e,t);break}case C.FORM:{Fat(e,t);break}case C.TABLE:{Mat(e,t);break}case C.TBODY:case C.TFOOT:case C.THEAD:{Pat(e,t);break}case C.INPUT:{$at(e,t);break}case C.CAPTION:{Iat(e,t);break}case C.COLGROUP:{Nat(e,t);break}default:lx(e,t)}}function Zw(e,t){switch(t.tagID){case C.TABLE:{e.openElements.hasInTableScope(C.TABLE)&&(e.openElements.popUntilTagNamePopped(C.TABLE),e._resetInsertionMode());break}case C.TEMPLATE:{V1(e,t);break}case C.BODY:case C.CAPTION:case C.COL:case C.COLGROUP:case C.HTML:case C.TBODY:case C.TD:case C.TFOOT:case C.TH:case C.THEAD:case C.TR:break;default:lx(e,t)}}function lx(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,hI(e,t),e.fosterParentingEnabled=n}function sme(e,t){e.pendingCharacterTokens.push(t)}function ome(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function EE(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===C.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===C.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===C.OPTGROUP&&e.openElements.pop();break}case C.OPTION:{e.openElements.currentTagId===C.OPTION&&e.openElements.pop();break}case C.SELECT:{e.openElements.hasInSelectScope(C.SELECT)&&(e.openElements.popUntilTagNamePopped(C.SELECT),e._resetInsertionMode());break}case C.TEMPLATE:{V1(e,t);break}}}function Qat(e,t){const n=t.tagID;n===C.CAPTION||n===C.TABLE||n===C.TBODY||n===C.TFOOT||n===C.THEAD||n===C.TR||n===C.TD||n===C.TH?(e.openElements.popUntilTagNamePopped(C.SELECT),e._resetInsertionMode(),e._processStartTag(t)):cme(e,t)}function Wat(e,t){const n=t.tagID;n===C.CAPTION||n===C.TABLE||n===C.TBODY||n===C.TFOOT||n===C.THEAD||n===C.TR||n===C.TD||n===C.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(C.SELECT),e._resetInsertionMode(),e.onEndTag(t)):dme(e,t)}function Vat(e,t){switch(t.tagID){case C.BASE:case C.BASEFONT:case C.BGSOUND:case C.LINK:case C.META:case C.NOFRAMES:case C.SCRIPT:case C.STYLE:case C.TEMPLATE:case C.TITLE:{Bd(e,t);break}case C.CAPTION:case C.COLGROUP:case C.TBODY:case C.TFOOT:case C.THEAD:{e.tmplInsertionModeStack[0]=Ee.IN_TABLE,e.insertionMode=Ee.IN_TABLE,Fv(e,t);break}case C.COL:{e.tmplInsertionModeStack[0]=Ee.IN_COLUMN_GROUP,e.insertionMode=Ee.IN_COLUMN_GROUP,XQ(e,t);break}case C.TR:{e.tmplInsertionModeStack[0]=Ee.IN_TABLE_BODY,e.insertionMode=Ee.IN_TABLE_BODY,mI(e,t);break}case C.TD:case C.TH:{e.tmplInsertionModeStack[0]=Ee.IN_ROW,e.insertionMode=Ee.IN_ROW,gI(e,t);break}default:e.tmplInsertionModeStack[0]=Ee.IN_BODY,e.insertionMode=Ee.IN_BODY,wo(e,t)}}function qat(e,t){t.tagID===C.TEMPLATE&&V1(e,t)}function fme(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(C.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):ZQ(e,t)}function Gat(e,t){t.tagID===C.HTML?wo(e,t):AC(e,t)}function hme(e,t){var n;if(t.tagID===C.HTML){if(e.fragmentContext||(e.insertionMode=Ee.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===C.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 AC(e,t)}function AC(e,t){e.insertionMode=Ee.IN_BODY,hI(e,t)}function Yat(e,t){switch(t.tagID){case C.HTML:{wo(e,t);break}case C.FRAMESET:{e._insertElement(t,ht.HTML);break}case C.FRAME:{e._appendElement(t,ht.HTML),t.ackSelfClosing=!0;break}case C.NOFRAMES:{Bd(e,t);break}}}function Zat(e,t){t.tagID===C.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==C.FRAMESET&&(e.insertionMode=Ee.AFTER_FRAMESET))}function Xat(e,t){switch(t.tagID){case C.HTML:{wo(e,t);break}case C.NOFRAMES:{Bd(e,t);break}}}function Kat(e,t){t.tagID===C.HTML&&(e.insertionMode=Ee.AFTER_AFTER_FRAMESET)}function Jat(e,t){t.tagID===C.HTML?wo(e,t):S_(e,t)}function S_(e,t){e.insertionMode=Ee.IN_BODY,hI(e,t)}function est(e,t){switch(t.tagID){case C.HTML:{wo(e,t);break}case C.NOFRAMES:{Bd(e,t);break}}}function tst(e,t){t.chars=Zi,e._insertCharacters(t)}function nst(e,t){e._insertCharacters(t),e.framesetOk=!1}function pme(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==ht.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function rst(e,t){if(yit(t))pme(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===ht.MATHML?X0e(t):r===ht.SVG&&(vit(t),K0e(t)),GQ(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function ist(e,t){if(t.tagID===C.P||t.tagID===C.BR){pme(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)===ht.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}He.AREA,He.BASE,He.BASEFONT,He.BGSOUND,He.BR,He.COL,He.EMBED,He.FRAME,He.HR,He.IMG,He.INPUT,He.KEYGEN,He.LINK,He.META,He.PARAM,He.SOURCE,He.TRACK,He.WBR;const bI=mme("end"),Zf=mme("start");function mme(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 gme(e){const t=Zf(e),n=bI(e);if(t&&n)return{start:t,end:n}}const ast=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),xee={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function bme(e,t){const n=mst(e),r=BQ("type",{handlers:{root:sst,element:ost,text:lst,comment:vme,doctype:ust,raw:dst},unknown:fst}),i={parser:n?new Eee(xee):Eee.getFragmentParser(void 0,xee),handle(o){r(o,i)},stitches:!1,options:t||{}};r(e,i),IO(i,Zf());const a=n?i.parser.document:i.parser.getFragment(),s=brt(a,{file:i.options.file});return i.stitches&&So(s,"comment",function(o,l,u){const d=o;if(d.value.stitch&&u&&l!==void 0){const f=u.children;return f[l]=d.value.stitch,l}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function yme(e,t){let n=-1;if(e)for(;++n4&&(t.parser.tokenizer.state=0);const n={type:cr.CHARACTER,chars:e.value,location:ux(e)};IO(t,Zf(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function ust(e,t){const n={type:cr.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:ux(e)};IO(t,Zf(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function cst(e,t){t.stitches=!0;const n=gst(e);if("children"in e&&"children"in n){const r=bme({type:"root",children:e.children},t.options);n.children=r.children}vme({type:"comment",value:{stitch:n}},t)}function vme(e,t){const n=e.value,r={type:cr.COMMENT,data:n,location:ux(e)};IO(t,Zf(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function dst(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,Ome(t,Zf(e)),t.parser.tokenizer.write(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 fst(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))cst(n,t);else{let r="";throw ast.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 IO(e,t){Ome(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=Pa.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 Ome(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 hst(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Pa.PLAINTEXT)return;IO(t,Zf(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:wf.html;i===wf.html&&n==="svg"&&(i=wf.svg);const a=Ert({...e,children:[]},{space:i===wf.svg?"svg":"html"}),s={type:cr.START_TAG,tagName:n,tagID:RO(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:ux(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function pst(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Rrt.includes(n)||t.parser.tokenizer.state===Pa.PLAINTEXT)return;IO(t,bI(e));const r={type:cr.END_TAG,tagName:n,tagID:RO(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:ux(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Pa.RCDATA||t.parser.tokenizer.state===Pa.RAWTEXT||t.parser.tokenizer.state===Pa.SCRIPT_DATA)&&(t.parser.tokenizer.state=Pa.DATA)}function mst(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function ux(e){const t=Zf(e)||{line:void 0,column:void 0,offset:void 0},n=bI(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 gst(e){return"children"in e?Ed({...e,children:[]}):Ed(e)}function Sme(e){return function(t,n){return bme(t,{...e,file:n})}}var bst=Rse();const yst=Cu(bst),vst=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ost=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Sst={};function kee(e,t){return(Sst.jsx?Ost:vst).test(e)}var Eme={},Aee=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Est=/\n/g,wst=/^\s*/,Tst=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,xst=/^:\s*/,kst=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ast=/^[;\s]*/,_st=/^\s+|\s+$/g,Cst=` -`,_ee="/",Cee="*",Ng="",Rst="comment",Ist="declaration",Nst=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(O){var S=O.match(Est);S&&(n+=S.length);var T=O.lastIndexOf(Cst);r=~T?O.length-T:r+O.length}function a(){var O={line:n,column:r};return function(S){return S.position=new s(O),u(),S}}function s(O){this.start=O,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function o(O){var S=new Error(t.source+":"+n+":"+r+": "+O);if(S.reason=O,S.filename=t.source,S.line=n,S.column=r,S.source=e,!t.silent)throw S}function l(O){var S=O.exec(e);if(S){var T=S[0];return i(T),e=e.slice(T.length),S}}function u(){l(wst)}function d(O){var S;for(O=O||[];S=f();)S!==!1&&O.push(S);return O}function f(){var O=a();if(!(_ee!=e.charAt(0)||Cee!=e.charAt(1))){for(var S=2;Ng!=e.charAt(S)&&(Cee!=e.charAt(S)||_ee!=e.charAt(S+1));)++S;if(S+=2,Ng===e.charAt(S-1))return o("End of comment missing");var T=e.slice(2,S-2);return r+=2,i(T),e=e.slice(S),r+=2,O({type:Rst,comment:T})}}function p(){var O=a(),S=l(Tst);if(S){if(f(),!l(xst))return o("property missing ':'");var T=l(kst),w=O({type:Ist,property:Ree(S[0].replace(Aee,Ng)),value:T?Ree(T[0].replace(Aee,Ng)):Ng});return l(Ast),w}}function g(){var O=[];d(O);for(var S;S=p();)S!==!1&&(O.push(S),d(O));return O}return u(),g()};function Ree(e){return e?e.replace(_st,Ng):Ng}var Dst=pf&&pf.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Eme,"__esModule",{value:!0});var Iee=Eme.default=Lst,Pst=Dst(Nst);function Lst(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,Pst.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}const Mst=Iee.default||Iee;function R2(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Nee(e.position):"start"in e||"end"in e?Nee(e):"line"in e||"column"in e?JL(e):""}function JL(e){return Dee(e&&e.line)+":"+Dee(e&&e.column)}function Nee(e){return JL(e&&e.start)+"-"+JL(e&&e.end)}function Dee(e){return e&&typeof e=="number"?e:1}class To 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=R2(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}}To.prototype.file="";To.prototype.name="";To.prototype.reason="";To.prototype.message="";To.prototype.stack="";To.prototype.column=void 0;To.prototype.line=void 0;To.prototype.ancestors=void 0;To.prototype.cause=void 0;To.prototype.fatal=void 0;To.prototype.place=void 0;To.prototype.ruleId=void 0;To.prototype.source=void 0;const KQ={}.hasOwnProperty,$st=new Map,Fst=/[A-Z]/g,Bst=/-([a-z])/g,Ust=new Set(["table","tbody","thead","tfoot","tr"]),zst=new Set(["td","th"]),wme="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function jst(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=Zst(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=Yst(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"?xp:W1,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Tme(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Tme(e,t,n){if(t.type==="element")return Hst(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Qst(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Vst(e,t,n);if(t.type==="mdxjsEsm")return Wst(e,t);if(t.type==="root")return qst(e,t,n);if(t.type==="text")return Gst(e,t)}function Hst(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=xp,e.schema=i),e.ancestors.push(t);const a=kme(e,t.tagName,!1),s=Xst(e,t);let o=eW(e,t);return Ust.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!O0e(l):!0})),xme(e,s,a,t),JQ(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function Qst(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)}Xw(e,t.position)}function Wst(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Xw(e,t.position)}function Vst(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=xp,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:kme(e,t.name,!0),s=Kst(e,t),o=eW(e,t);return xme(e,s,a,t),JQ(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function qst(e,t,n){const r={};return JQ(r,eW(e,t)),e.create(t,e.Fragment,r,n)}function Gst(e,t){return t.value}function xme(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function JQ(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Yst(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 Zst(e,t){return n;function n(r,i,a,s){const o=Array.isArray(a.children),l=Zf(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 Xst(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&KQ.call(t.properties,i)){const a=Jst(e,i,t.properties[i]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&zst.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 Kst(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 Xw(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 Xw(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function eW(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:$st;for(;++ri?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);a0?(Ec(e,e.length,0,t),e):t}const Lee={}.hasOwnProperty;function _me(e){const t={};let n=-1;for(;++n13&&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 wd(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Vo=xm(/[A-Za-z]/),go=xm(/[\dA-Za-z]/),uot=xm(/[#-'*+\--9=?A-Z^-~]/);function _C(e){return e!==null&&(e<32||e===127)}const eM=xm(/\d/),cot=xm(/[\dA-Fa-f]/),dot=xm(/[!-/:-@[-`{-~]/);function xn(e){return e!==null&&e<-2}function Oi(e){return e!==null&&(e<0||e===32)}function yr(e){return e===-2||e===-1||e===32}const yI=xm(new RegExp("\\p{P}|\\p{S}","u")),C1=xm(/\s/);function xm(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function NO(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&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 hr(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(l){return yr(l)?(e.enter(n),o(l)):t(l)}function o(l){return yr(l)&&a++s))return;const P=t.events.length;let L=P,j,B;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){if(j){B=t.events[L][1].end;break}j=!0}for(w(r),N=P;Nk;){const R=n[_];t.containerState=R[1],R[0].exit.call(t,e)}n.length=k}function x(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function got(e,t,n){return hr(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function CC(e){if(e===null||Oi(e)||C1(e))return 1;if(yI(e))return 2}function vI(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),p=Object.assign({},e[n][1].start);$ee(f,-l),$ee(p,l),s={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},o={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:p},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},s.start),end:Object.assign({},o.end)},e[r][1].end=Object.assign({},s.start),e[n][1].start=Object.assign({},o.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=lc(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=lc(u,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),u=lc(u,vI(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=lc(u,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,u=lc(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,Ec(e,r-1,n-r+3,u),n=r+u.length-d-2;break}}for(n=-1;++n0&&yr(N)?hr(e,x,"linePrefix",a+1)(N):x(N)}function x(N){return N===null||xn(N)?e.check(Fee,S,_)(N):(e.enter("codeFlowValue"),k(N))}function k(N){return N===null||xn(N)?(e.exit("codeFlowValue"),x(N)):(e.consume(N),k)}function _(N){return e.exit("codeFenced"),t(N)}function R(N,P,L){let j=0;return B;function B(q){return N.enter("lineEnding"),N.consume(q),N.exit("lineEnding"),V}function V(q){return N.enter("codeFencedFence"),yr(q)?hr(N,W,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(q):W(q)}function W(q){return q===o?(N.enter("codeFencedFenceSequence"),re(q)):L(q)}function re(q){return q===o?(j++,N.consume(q),re):j>=s?(N.exit("codeFencedFenceSequence"),yr(q)?hr(N,ee,"whitespace")(q):ee(q)):L(q)}function ee(q){return q===null||xn(q)?(N.exit("codeFencedFence"),P(q)):L(q)}}}function _ot(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 JD={name:"codeIndented",tokenize:Rot},Cot={tokenize:Iot,partial:!0};function Rot(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),hr(e,a,"linePrefix",5)(u)}function a(u){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?l(u):xn(u)?e.attempt(Cot,s,l)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||xn(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),o)}function l(u){return e.exit("codeIndented"),t(u)}}function Iot(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):xn(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):hr(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):xn(s)?i(s):n(s)}}const Not={name:"codeText",tokenize:Lot,resolve:Dot,previous:Pot};function Dot(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=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 tthis.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&&wE(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),wE(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),wE(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=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function Pme(e,t,n,r,i,a,s,o,l){const u=l||Number.POSITIVE_INFINITY;let d=0;return f;function f(w){return w===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(w),e.exit(a),p):w===null||w===32||w===41||_C(w)?n(w):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),S(w))}function p(w){return w===62?(e.enter(a),e.consume(w),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),g(w))}function g(w){return w===62?(e.exit("chunkString"),e.exit(o),p(w)):w===null||w===60||xn(w)?n(w):(e.consume(w),w===92?O:g)}function O(w){return w===60||w===62||w===92?(e.consume(w),g):g(w)}function S(w){return!d&&(w===null||w===41||Oi(w))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(w)):d999||g===null||g===91||g===93&&!l||g===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(g):g===93?(e.exit(a),e.enter(i),e.consume(g),e.exit(i),e.exit(r),t):xn(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),f(g))}function f(g){return g===null||g===91||g===93||xn(g)||o++>999?(e.exit("chunkString"),d(g)):(e.consume(g),l||(l=!yr(g)),g===92?p:f)}function p(g){return g===91||g===92||g===93?(e.consume(g),o++,f):f(g)}}function Mme(e,t,n,r,i,a){let s;return o;function o(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),s=p===40?41:p,l):n(p)}function l(p){return p===s?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(a),u(p))}function u(p){return p===s?(e.exit(a),l(s)):p===null?n(p):xn(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),hr(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===s||p===null||xn(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?f:d)}function f(p){return p===s||p===92?(e.consume(p),d):d(p)}}function I2(e,t){let n;return r;function r(i){return xn(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):yr(i)?hr(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Hot={name:"definition",tokenize:Wot},Qot={tokenize:Vot,partial:!0};function Wot(e,t,n){const r=this;let i;return a;function a(g){return e.enter("definition"),s(g)}function s(g){return Lme.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function o(g){return i=wd(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),l):n(g)}function l(g){return Oi(g)?I2(e,u)(g):u(g)}function u(g){return Pme(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function d(g){return e.attempt(Qot,f,f)(g)}function f(g){return yr(g)?hr(e,p,"whitespace")(g):p(g)}function p(g){return g===null||xn(g)?(e.exit("definition"),r.parser.defined.push(i),t(g)):n(g)}}function Vot(e,t,n){return r;function r(o){return Oi(o)?I2(e,i)(o):n(o)}function i(o){return Mme(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return yr(o)?hr(e,s,"whitespace")(o):s(o)}function s(o){return o===null||xn(o)?t(o):n(o)}}const qot={name:"hardBreakEscape",tokenize:Got};function Got(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return xn(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const Yot={name:"headingAtx",tokenize:Xot,resolve:Zot};function Zot(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"},Ec(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function Xot(e,t,n){let r=0;return i;function i(d){return e.enter("atxHeading"),a(d)}function a(d){return e.enter("atxHeadingSequence"),s(d)}function s(d){return d===35&&r++<6?(e.consume(d),s):d===null||Oi(d)?(e.exit("atxHeadingSequence"),o(d)):n(d)}function o(d){return d===35?(e.enter("atxHeadingSequence"),l(d)):d===null||xn(d)?(e.exit("atxHeading"),t(d)):yr(d)?hr(e,o,"whitespace")(d):(e.enter("atxHeadingText"),u(d))}function l(d){return d===35?(e.consume(d),l):(e.exit("atxHeadingSequence"),o(d))}function u(d){return d===null||d===35||Oi(d)?(e.exit("atxHeadingText"),o(d)):(e.consume(d),u)}}const Kot=["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"],Uee=["pre","script","style","textarea"],Jot={name:"htmlFlow",tokenize:rlt,resolveTo:nlt,concrete:!0},elt={tokenize:alt,partial:!0},tlt={tokenize:ilt,partial:!0};function nlt(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 rlt(e,t,n){const r=this;let i,a,s,o,l;return u;function u(Z){return d(Z)}function d(Z){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(Z),f}function f(Z){return Z===33?(e.consume(Z),p):Z===47?(e.consume(Z),a=!0,S):Z===63?(e.consume(Z),i=3,r.interrupt?t:H):Vo(Z)?(e.consume(Z),s=String.fromCharCode(Z),T):n(Z)}function p(Z){return Z===45?(e.consume(Z),i=2,g):Z===91?(e.consume(Z),i=5,o=0,O):Vo(Z)?(e.consume(Z),i=4,r.interrupt?t:H):n(Z)}function g(Z){return Z===45?(e.consume(Z),r.interrupt?t:H):n(Z)}function O(Z){const ke="CDATA[";return Z===ke.charCodeAt(o++)?(e.consume(Z),o===ke.length?r.interrupt?t:W:O):n(Z)}function S(Z){return Vo(Z)?(e.consume(Z),s=String.fromCharCode(Z),T):n(Z)}function T(Z){if(Z===null||Z===47||Z===62||Oi(Z)){const ke=Z===47,$e=s.toLowerCase();return!ke&&!a&&Uee.includes($e)?(i=1,r.interrupt?t(Z):W(Z)):Kot.includes(s.toLowerCase())?(i=6,ke?(e.consume(Z),w):r.interrupt?t(Z):W(Z)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(Z):a?x(Z):k(Z))}return Z===45||go(Z)?(e.consume(Z),s+=String.fromCharCode(Z),T):n(Z)}function w(Z){return Z===62?(e.consume(Z),r.interrupt?t:W):n(Z)}function x(Z){return yr(Z)?(e.consume(Z),x):B(Z)}function k(Z){return Z===47?(e.consume(Z),B):Z===58||Z===95||Vo(Z)?(e.consume(Z),_):yr(Z)?(e.consume(Z),k):B(Z)}function _(Z){return Z===45||Z===46||Z===58||Z===95||go(Z)?(e.consume(Z),_):R(Z)}function R(Z){return Z===61?(e.consume(Z),N):yr(Z)?(e.consume(Z),R):k(Z)}function N(Z){return Z===null||Z===60||Z===61||Z===62||Z===96?n(Z):Z===34||Z===39?(e.consume(Z),l=Z,P):yr(Z)?(e.consume(Z),N):L(Z)}function P(Z){return Z===l?(e.consume(Z),l=null,j):Z===null||xn(Z)?n(Z):(e.consume(Z),P)}function L(Z){return Z===null||Z===34||Z===39||Z===47||Z===60||Z===61||Z===62||Z===96||Oi(Z)?R(Z):(e.consume(Z),L)}function j(Z){return Z===47||Z===62||yr(Z)?k(Z):n(Z)}function B(Z){return Z===62?(e.consume(Z),V):n(Z)}function V(Z){return Z===null||xn(Z)?W(Z):yr(Z)?(e.consume(Z),V):n(Z)}function W(Z){return Z===45&&i===2?(e.consume(Z),ne):Z===60&&i===1?(e.consume(Z),K):Z===62&&i===4?(e.consume(Z),Re):Z===63&&i===3?(e.consume(Z),H):Z===93&&i===5?(e.consume(Z),ie):xn(Z)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(elt,Se,re)(Z)):Z===null||xn(Z)?(e.exit("htmlFlowData"),re(Z)):(e.consume(Z),W)}function re(Z){return e.check(tlt,ee,Se)(Z)}function ee(Z){return e.enter("lineEnding"),e.consume(Z),e.exit("lineEnding"),q}function q(Z){return Z===null||xn(Z)?re(Z):(e.enter("htmlFlowData"),W(Z))}function ne(Z){return Z===45?(e.consume(Z),H):W(Z)}function K(Z){return Z===47?(e.consume(Z),s="",G):W(Z)}function G(Z){if(Z===62){const ke=s.toLowerCase();return Uee.includes(ke)?(e.consume(Z),Re):W(Z)}return Vo(Z)&&s.length<8?(e.consume(Z),s+=String.fromCharCode(Z),G):W(Z)}function ie(Z){return Z===93?(e.consume(Z),H):W(Z)}function H(Z){return Z===62?(e.consume(Z),Re):Z===45&&i===2?(e.consume(Z),H):W(Z)}function Re(Z){return Z===null||xn(Z)?(e.exit("htmlFlowData"),Se(Z)):(e.consume(Z),Re)}function Se(Z){return e.exit("htmlFlow"),t(Z)}}function ilt(e,t,n){const r=this;return i;function i(s){return xn(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 alt(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(cx,t,n)}}const slt={name:"htmlText",tokenize:olt};function olt(e,t,n){const r=this;let i,a,s;return o;function o(H){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(H),l}function l(H){return H===33?(e.consume(H),u):H===47?(e.consume(H),R):H===63?(e.consume(H),k):Vo(H)?(e.consume(H),L):n(H)}function u(H){return H===45?(e.consume(H),d):H===91?(e.consume(H),a=0,O):Vo(H)?(e.consume(H),x):n(H)}function d(H){return H===45?(e.consume(H),g):n(H)}function f(H){return H===null?n(H):H===45?(e.consume(H),p):xn(H)?(s=f,K(H)):(e.consume(H),f)}function p(H){return H===45?(e.consume(H),g):f(H)}function g(H){return H===62?ne(H):H===45?p(H):f(H)}function O(H){const Re="CDATA[";return H===Re.charCodeAt(a++)?(e.consume(H),a===Re.length?S:O):n(H)}function S(H){return H===null?n(H):H===93?(e.consume(H),T):xn(H)?(s=S,K(H)):(e.consume(H),S)}function T(H){return H===93?(e.consume(H),w):S(H)}function w(H){return H===62?ne(H):H===93?(e.consume(H),w):S(H)}function x(H){return H===null||H===62?ne(H):xn(H)?(s=x,K(H)):(e.consume(H),x)}function k(H){return H===null?n(H):H===63?(e.consume(H),_):xn(H)?(s=k,K(H)):(e.consume(H),k)}function _(H){return H===62?ne(H):k(H)}function R(H){return Vo(H)?(e.consume(H),N):n(H)}function N(H){return H===45||go(H)?(e.consume(H),N):P(H)}function P(H){return xn(H)?(s=P,K(H)):yr(H)?(e.consume(H),P):ne(H)}function L(H){return H===45||go(H)?(e.consume(H),L):H===47||H===62||Oi(H)?j(H):n(H)}function j(H){return H===47?(e.consume(H),ne):H===58||H===95||Vo(H)?(e.consume(H),B):xn(H)?(s=j,K(H)):yr(H)?(e.consume(H),j):ne(H)}function B(H){return H===45||H===46||H===58||H===95||go(H)?(e.consume(H),B):V(H)}function V(H){return H===61?(e.consume(H),W):xn(H)?(s=V,K(H)):yr(H)?(e.consume(H),V):j(H)}function W(H){return H===null||H===60||H===61||H===62||H===96?n(H):H===34||H===39?(e.consume(H),i=H,re):xn(H)?(s=W,K(H)):yr(H)?(e.consume(H),W):(e.consume(H),ee)}function re(H){return H===i?(e.consume(H),i=void 0,q):H===null?n(H):xn(H)?(s=re,K(H)):(e.consume(H),re)}function ee(H){return H===null||H===34||H===39||H===60||H===61||H===96?n(H):H===47||H===62||Oi(H)?j(H):(e.consume(H),ee)}function q(H){return H===47||H===62||Oi(H)?j(H):n(H)}function ne(H){return H===62?(e.consume(H),e.exit("htmlTextData"),e.exit("htmlText"),t):n(H)}function K(H){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(H),e.exit("lineEnding"),G}function G(H){return yr(H)?hr(e,ie,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):ie(H)}function ie(H){return e.enter("htmlTextData"),s(H)}}const nW={name:"labelEnd",tokenize:hlt,resolveTo:flt,resolveAll:dlt},llt={tokenize:plt},ult={tokenize:mlt},clt={tokenize:glt};function dlt(e){let t=-1;for(;++t=3&&(u===null||xn(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),yr(u)?hr(e,o,"whitespace")(u):o(u))}}const hl={name:"list",tokenize:xlt,continuation:{tokenize:klt},exit:_lt},wlt={tokenize:Clt,partial:!0},Tlt={tokenize:Alt,partial:!0};function xlt(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(g){const O=r.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(O==="listUnordered"?!r.containerState.marker||g===r.containerState.marker:eM(g)){if(r.containerState.type||(r.containerState.type=O,e.enter(O,{_container:!0})),O==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(E_,n,u)(g):u(g);if(!r.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(g)}return n(g)}function l(g){return eM(g)&&++s<10?(e.consume(g),l):(!r.interrupt||s<2)&&(r.containerState.marker?g===r.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),u(g)):n(g)}function u(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||g,e.check(cx,r.interrupt?n:d,e.attempt(wlt,p,f))}function d(g){return r.containerState.initialBlankLine=!0,a++,p(g)}function f(g){return yr(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),p):n(g)}function p(g){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(g)}}function klt(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(cx,i,a);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,hr(e,t,"listItemIndent",r.containerState.size+1)(o)}function a(o){return r.containerState.furtherBlankLines||!yr(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(Tlt,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,hr(e,e.attempt(hl,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function Alt(e,t,n){const r=this;return hr(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 _lt(e){e.exit(this.containerState.type)}function Clt(e,t,n){const r=this;return hr(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!yr(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const zee={name:"setextUnderline",tokenize:Ilt,resolveTo:Rlt};function Rlt(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:Object.assign({},e[i][1].start),end:Object.assign({},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=Object.assign({},e[a][1].end)):e[r][1]=s,e.push(["exit",s,t]),e}function Ilt(e,t,n){const r=this;let i;return a;function a(u){let d=r.events.length,f;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){f=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(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"),yr(u)?hr(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||xn(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const Nlt={tokenize:Dlt};function Dlt(e){const t=this,n=e.attempt(cx,r,e.attempt(this.parser.constructs.flowInitial,i,hr(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Fot,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 Plt={resolveAll:Fme()},Llt=$me("string"),Mlt=$me("text");function $me(e){return{tokenize:t,resolveAll:Fme(e==="text"?$lt:void 0)};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,s,o);return s;function s(d){return u(d)?a(d):o(d)}function o(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),l}function l(d){return u(d)?(n.exit("data"),a(d)):(n.consume(d),l)}function u(d){if(d===null)return!0;const f=i[d];let p=-1;if(f)for(;++p-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 Ult(e,t){let n=-1;const r=[];let i;for(;++n0){const Ct=be.tokenStack[be.tokenStack.length-1];(Ct[1]||Hee).call(be,void 0,Ct[0])}for(we.position={start:e0(Fe.length>0?Fe[0][1].start:{line:1,column:1,offset:0}),end:e0(Fe.length>0?Fe[Fe.length-2][1].end:{line:1,column:1,offset:0})},Ue=-1;++Ue1?"-"+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 hut(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 put(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function zme(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 mut(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return zme(e,t);const i={src:NO(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 gut(e,t){const n={src:NO(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 but(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 yut(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return zme(e,t);const i={href:NO(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 vut(e,t){const n={href:NO(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 Out(e,t,n){const r=e.all(t),i=n?Sut(n):jme(t),a={},s=[];if(typeof t.checked=="boolean"){const d=r[0];let f;d&&d.type==="element"&&d.tagName==="p"?f=d:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o1}function Eut(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=Zf(t.children[1]),l=bI(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 Aut(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(;++l0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(Vee(t.slice(i),i>0,!1)),a.join("")}function Vee(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===Qee||a===Wee;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===Qee||a===Wee;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Rut(e,t){const n={type:"text",value:Cut(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Iut(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Nut={blockquote:out,break:lut,code:uut,delete:cut,emphasis:dut,footnoteReference:fut,heading:hut,html:put,imageReference:mut,image:gut,inlineCode:but,linkReference:yut,link:vut,listItem:Out,list:Eut,paragraph:wut,root:Tut,strong:xut,table:kut,tableCell:_ut,tableRow:Aut,text:Rut,thematicBreak:Iut,toml:a4,yaml:a4,definition:a4,footnoteDefinition:a4};function a4(){}function Dut(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 Put(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Lut(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Dut,r=e.options.footnoteBackLabel||Put,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l0&&O.push({type:"text",value:" "});let x=typeof n=="string"?n:n(l,g);typeof x=="string"&&(x={type:"text",value:x}),O.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(g>1?"-"+g:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,g),className:["data-footnote-backref"]},children:Array.isArray(x)?x:[x]})}const T=d[d.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const x=T.children[T.children.length-1];x&&x.type==="text"?x.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...O)}else d.push(...O);const w={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(d,!0)};e.patch(u,w),o.push(w)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Ed(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 nM={}.hasOwnProperty,Mut={};function $ut(e,t){const n=t||Mut,r=new Map,i=new Map,a=new Map,s={...Nut,...n.handlers},o={all:u,applyData:But,definitionById:r,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:s,one:l,options:n,patch:Fut,wrap:zut};return So(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const f=d.type==="definition"?r:i,p=String(d.identifier).toUpperCase();f.has(p)||f.set(p,d)}}),o;function l(d,f){const p=d.type,g=o.handlers[p];if(nM.call(o.handlers,p)&&g)return g(o,d,f);if(o.options.passThrough&&o.options.passThrough.includes(p)){if("children"in d){const{children:S,...T}=d,w=Ed(T);return w.children=o.all(d),w}return Ed(d)}return(o.options.unknownHandler||Uut)(o,d,f)}function u(d){const f=[];if("children"in d){const p=d.children;let g=-1;for(;++g0&&n.push({type:"text",value:` -`}),n}function qee(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Gee(e,t){const n=$ut(e,t),r=n.one(e,void 0),i=Lut(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` -`},i),a}function jut(e,t){return e&&"run"in e?async function(n,r){const i=Gee(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Gee(n,{file:r,...t||e})}}function Yee(e){if(e)throw e}var w_=Object.prototype.hasOwnProperty,Hme=Object.prototype.toString,Zee=Object.defineProperty,Xee=Object.getOwnPropertyDescriptor,Kee=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Hme.call(t)==="[object Array]"},Jee=function(t){if(!t||Hme.call(t)!=="[object Object]")return!1;var n=w_.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&w_.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||w_.call(t,i)},ete=function(t,n){Zee&&n.name==="__proto__"?Zee(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},tte=function(t,n){if(n==="__proto__")if(w_.call(t,n)){if(Xee)return Xee(t,n).value}else return;return t[n]},Hut=function e(){var t,n,r,i,a,s,o=arguments[0],l=1,u=arguments.length,d=!1;for(typeof o=="boolean"&&(d=o,o=arguments[1]||{},l=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});ls.length;let l;o&&s.push(i);try{l=e.apply(this,s)}catch(u){const d=u;if(o&&n)throw d;return i(d)}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 af={basename:Vut,dirname:qut,extname:Gut,join:Yut,sep:"/"};function Vut(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');dx(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 qut(e){if(dx(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 Gut(e){dx(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 Yut(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Xut(e,t){let n="",r=0,i=-1,a=0,s=-1,o,l;for(;++s<=e.length;){if(s2){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 dx(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Kut={cwd:Jut};function Jut(){return"/"}function iM(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function ect(e){if(typeof e=="string")e=new URL(e);else if(!iM(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 tct(e)}function tct(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(;++n0){let[g,...O]=d;const S=r[p][1];rM(S)&&rM(g)&&(g=t7(!0,S,g)),r[p]=[u,g,...O]}}}}const act=new rW().freeze();function a7(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function s7(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function o7(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 rte(e){if(!rM(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ite(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function s4(e){return sct(e)?e:new Qme(e)}function sct(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function oct(e){return typeof e=="string"||lct(e)}function lct(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const uct="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",ate=[],ste={allowDangerousHtml:!0},cct=/^(https?|ircs?|mailto|xmpp)$/i,dct=[{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 fct(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,a=e.components,s=e.disallowedElements,o=e.rehypePlugins||ate,l=e.remarkPlugins||ate,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...ste}:ste,d=e.skipHtml,f=e.unwrapDisallowed,p=e.urlTransform||hct,g=act().use(sut).use(l).use(jut,u).use(o),O=new Qme;typeof r=="string"&&(O.value=r);for(const x of dct)Object.hasOwn(e,x.from)&&(""+x.from+(x.to?"use `"+x.to+"` instead":"remove it")+uct+x.id,void 0);const S=g.parse(O);let T=g.runSync(S,O);return i&&(T={type:"element",tagName:"div",properties:{className:i},children:T.type==="root"?T.children:[T]}),So(T,w),jst(T,{Fragment:I.Fragment,components:a,ignoreInvalidStyle:!0,jsx:I.jsx,jsxs:I.jsxs,passKeys:!0,passNode:!0});function w(x,k,_){if(x.type==="raw"&&_&&typeof k=="number")return d?_.children.splice(k,1):_.children[k]={type:"text",value:x.value},k;if(x.type==="element"){let R;for(R in KD)if(Object.hasOwn(KD,R)&&Object.hasOwn(x.properties,R)){const N=x.properties[R],P=KD[R];(P===null||P.includes(x.tagName))&&(x.properties[R]=p(String(N||""),R,x))}}if(x.type==="element"){let R=t?!t.includes(x.tagName):s?s.includes(x.tagName):!1;if(!R&&n&&typeof k=="number"&&(R=!n(x,k,_)),R&&_&&typeof k=="number")return f&&x.children?_.children.splice(k,1,...x.children):_.children.splice(k,1),k}}}function hct(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||n>-1&&t>n||r>-1&&t>r||cct.test(e.slice(0,t))?e:""}function ote(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 pct(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function mct(e,t,n){const i=SO((n||{}).ignore||[]),a=gct(t);let s=-1;for(;++s0?{type:"text",value:N}:void 0),N===!1?p.lastIndex=_+1:(O!==_&&x.push({type:"text",value:u.value.slice(O,_)}),Array.isArray(N)?x.push(...N):N&&x.push(N),O=_+k[0].length,w=!0),!p.global)break;k=p.exec(u.value)}return w?(O?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=ote(e,"(");let a=ote(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 Wme(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||C1(n)||yI(n))&&(!t||n!==47)}Vme.peek=zct;function Ict(){return{enter:{gfmFootnoteDefinition:Dct,gfmFootnoteDefinitionLabelString:Pct,gfmFootnoteCall:$ct,gfmFootnoteCallString:Fct},exit:{gfmFootnoteDefinition:Mct,gfmFootnoteDefinitionLabelString:Lct,gfmFootnoteCall:Uct,gfmFootnoteCallString:Bct}}}function Nct(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:jct,footnoteReference:Vme}}}function Dct(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Pct(){this.buffer()}function Lct(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=wd(this.sliceSerialize(e)).toLowerCase()}function Mct(e){this.exit(e)}function $ct(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Fct(){this.buffer()}function Bct(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=wd(this.sliceSerialize(e)).toLowerCase()}function Uct(e){this.exit(e)}function Vme(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),{...i.current(),before:a,after:"]"})),o(),s(),a+=i.move("]"),a}function zct(){return"["}function jct(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteDefinition"),o=n.enter("label");return a+=i.move(n.safe(n.associationId(e),{...i.current(),before:a,after:"]"})),o(),a+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),a+=i.move(n.indentLines(n.containerFlow(e,i.current()),Hct)),s(),a}function Hct(e,t,n){return t===0?e:(n?"":" ")+e}const Qct=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];qme.peek=Yct;function Wct(){return{canContainEols:["delete"],enter:{strikethrough:qct},exit:{strikethrough:Gct}}}function Vct(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Qct}],handlers:{delete:qme}}}function qct(e){this.enter({type:"delete",children:[]},e)}function Gct(e){this.exit(e)}function qme(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 Yct(){return"~"}function Zct(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||Kct,i=[],a=[],s=[],o=[];let l=0,u=-1;for(;++ul&&(l=e[u].length);++To[T])&&(o[T]=x)}O.push(w)}a[u]=O,s[u]=S}let d=-1;if(typeof n=="object"&&"length"in n)for(;++do[d]&&(o[d]=w),p[d]=w),f[d]=x}a.splice(1,0,f),s.splice(1,0,p),u=-1;const g=[];for(;++u "),a.shift(2);const s=n.indentLines(n.containerFlow(e,a.current()),edt);return i(),s}function edt(e,t,n){return">"+(n?"":" ")+e}function tdt(e,t){return ute(e,t.inConstruct,!0)&&!ute(e,t.notInConstruct,!1)}function ute(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++rs&&(s=a):a=1,i=r+t.length,r=n.indexOf(t,i);return s}function ndt(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 rdt(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 idt(e,t,n,r){const i=rdt(n),a=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(ndt(e,n)){const f=n.enter("codeIndented"),p=n.indentLines(a,adt);return f(),p}const o=n.createTracker(r),l=i.repeat(Math.max(Gme(a,i)+1,3)),u=n.enter("codeFenced");let d=o.move(l);if(e.lang){const f=n.enter(`codeFencedLang${s}`);d+=o.move(n.safe(e.lang,{before:d,after:" ",encode:["`"],...o.current()})),f()}if(e.lang&&e.meta){const f=n.enter(`codeFencedMeta${s}`);d+=o.move(" "),d+=o.move(n.safe(e.meta,{before:d,after:` -`,encode:["`"],...o.current()})),f()}return d+=o.move(` -`),a&&(d+=o.move(a+` -`)),d+=o.move(l),u(),d}function adt(e,t,n){return(n?"":" ")+e}function iW(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 sdt(e,t,n,r){const i=iW(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 odt(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}Yme.peek=ldt;function Yme(e,t,n,r){const i=odt(n),a=n.enter("emphasis"),s=n.createTracker(r);let o=s.move(i);return o+=s.move(n.containerPhrasing(e,{before:o,after:i,...s.current()})),o+=s.move(i),a(),o}function ldt(e,t,n){return n.options.emphasis||"*"}function udt(e,t){let n=!1;return So(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,SC}),!!((!e.depth||e.depth<3)&&tW(e)&&(t.options.setext||n))}function cdt(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(udt(e,n)){const d=n.enter("headingSetext"),f=n.enter("phrasing"),p=n.containerPhrasing(e,{...a.current(),before:` -`,after:` -`});return f(),d(),p+` -`+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.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="&#x"+u.charCodeAt(0).toString(16).toUpperCase()+";"+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),l(),o(),u}Zme.peek=ddt;function Zme(e){return e.value||""}function ddt(){return"<"}Xme.peek=fdt;function Xme(e,t,n,r){const i=iW(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 fdt(){return"!"}Kme.peek=hdt;function Kme(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 d=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return s(),n.stack=d,a(),i==="full"||!u||u!==f?l+=o.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function hdt(){return"!"}Jme.peek=pdt;function Jme(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\u007F]/.test(e.url))}tge.peek=mdt;function tge(e,t,n,r){const i=iW(n),a=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let o,l;if(ege(e,n)){const d=n.stack;n.stack=[],o=n.enter("autolink");let f=s.move("<");return f+=s.move(n.containerPhrasing(e,{before:f,after:">",...s.current()})),f+=s.move(">"),o(),n.stack=d,f}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 mdt(e,t,n){return ege(e,n)?"<":"["}nge.peek=gdt;function nge(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 d=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return s(),n.stack=d,a(),i==="full"||!u||u!==f?l+=o.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function gdt(){return"["}function aW(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 bdt(e){const t=aW(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 ydt(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 rge(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 vdt(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let s=e.ordered?ydt(n):aW(n);const o=e.ordered?s==="."?")":".":bdt(n);let l=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&d&&(!d.children||!d.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),rge(n)===s&&d){let f=-1;for(;++f-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()),d);return l(),u;function d(f,p,g){return p?(g?"":" ".repeat(s))+f:(g?a:a+" ".repeat(s-a.length))+f}}function Edt(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),s=n.containerPhrasing(e,r);return a(),i(),s}const wdt=SO(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Tdt(e,t,n,r){return(e.children.some(function(s){return wdt(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function xdt(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}ige.peek=kdt;function ige(e,t,n,r){const i=xdt(n),a=n.enter("strong"),s=n.createTracker(r);let o=s.move(i+i);return o+=s.move(n.containerPhrasing(e,{before:o,after:i,...s.current()})),o+=s.move(i+i),a(),o}function kdt(e,t,n){return n.options.strong||"*"}function Adt(e,t,n,r){return n.safe(e.value,r)}function _dt(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 Cdt(e,t,n){const r=(rge(n)+(n.options.ruleSpaces?" ":"")).repeat(_dt(n));return n.options.ruleSpaces?r.slice(0,-1):r}const age={blockquote:Jct,break:cte,code:idt,definition:sdt,emphasis:Yme,hardBreak:cte,heading:cdt,html:Zme,image:Xme,imageReference:Kme,inlineCode:Jme,link:tge,linkReference:nge,list:vdt,listItem:Sdt,paragraph:Edt,root:Tdt,strong:ige,text:Adt,thematicBreak:Cdt};function Rdt(){return{enter:{table:Idt,tableData:dte,tableHeader:dte,tableRow:Ddt},exit:{codeText:Pdt,table:Ndt,tableData:d7,tableHeader:d7,tableRow:d7}}}function Idt(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 Ndt(e){this.exit(e),this.data.inTable=void 0}function Ddt(e){this.enter({type:"tableRow",children:[]},e)}function d7(e){this.exit(e)}function dte(e){this.enter({type:"tableCell",children:[]},e)}function Pdt(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Ldt));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Ldt(e,t){return t==="|"?t:e}function Mdt(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:p,table:s,tableCell:l,tableRow:o}};function s(g,O,S,T){return u(d(g,S,T),g.align)}function o(g,O,S,T){const w=f(g,S,T),x=u([w]);return x.slice(0,x.indexOf(` -`))}function l(g,O,S,T){const w=S.enter("tableCell"),x=S.enter("phrasing"),k=S.containerPhrasing(g,{...T,before:a,after:a});return x(),w(),k}function u(g,O){return Zct(g,{align:O,alignDelimiters:r,padding:n,stringLength:i})}function d(g,O,S){const T=g.children;let w=-1;const x=[],k=O.enter("table");for(;++w0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const eft={tokenize:lft,partial:!0};function tft(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:aft,continuation:{tokenize:sft},exit:oft}},text:{91:{name:"gfmFootnoteCall",tokenize:ift},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:nft,resolveTo:rft}}}}function nft(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=wd(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 rft(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 ift(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;return o;function o(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),l}function l(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(f){if(a>999||f===93&&!s||f===null||f===91||Oi(f))return n(f);if(f===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(wd(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return Oi(f)||(s=!0),a++,e.consume(f),f===92?d:u}function d(f){return f===91||f===92||f===93?(e.consume(f),a++,u):u(f)}}function aft(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0,o;return l;function l(O){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(O),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(O){return O===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(O),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(O)}function d(O){if(s>999||O===93&&!o||O===null||O===91||Oi(O))return n(O);if(O===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return a=wd(r.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(O),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return Oi(O)||(o=!0),s++,e.consume(O),O===92?f:d}function f(O){return O===91||O===92||O===93?(e.consume(O),s++,d):d(O)}function p(O){return O===58?(e.enter("definitionMarker"),e.consume(O),e.exit("definitionMarker"),i.includes(a)||i.push(a),hr(e,g,"gfmFootnoteDefinitionWhitespace")):n(O)}function g(O){return t(O)}}function sft(e,t,n){return e.check(cx,t,e.attempt(eft,t,n))}function oft(e){e.exit("gfmFootnoteDefinition")}function lft(e,t,n){const r=this;return hr(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 uft(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(;++l1?l(O):(s.consume(O),f++,g);if(f<2&&!n)return l(O);const T=s.exit("strikethroughSequenceTemporary"),w=CC(O);return T._open=!w||w===2&&!!S,T._close=!S||S===2&&!!w,o(O)}}}class cft{constructor(){this.map=[]}add(t,n,r){dft(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]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function dft(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const ee=r.events[V][1].type;if(ee==="lineEnding"||ee==="linePrefix")V--;else break}const W=V>-1?r.events[V][1].type:null,re=W==="tableHead"||W==="tableRow"?N:l;return re===N&&r.parser.lazy[r.now().line]?n(B):re(B)}function l(B){return e.enter("tableHead"),e.enter("tableRow"),u(B)}function u(B){return B===124||(s=!0,a+=1),d(B)}function d(B){return B===null?n(B):xn(B)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),g):n(B):yr(B)?hr(e,d,"whitespace")(B):(a+=1,s&&(s=!1,i+=1),B===124?(e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),s=!0,d):(e.enter("data"),f(B)))}function f(B){return B===null||B===124||Oi(B)?(e.exit("data"),d(B)):(e.consume(B),B===92?p:f)}function p(B){return B===92||B===124?(e.consume(B),f):f(B)}function g(B){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(B):(e.enter("tableDelimiterRow"),s=!1,yr(B)?hr(e,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):O(B))}function O(B){return B===45||B===58?T(B):B===124?(s=!0,e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),S):R(B)}function S(B){return yr(B)?hr(e,T,"whitespace")(B):T(B)}function T(B){return B===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(B),e.exit("tableDelimiterMarker"),w):B===45?(a+=1,w(B)):B===null||xn(B)?_(B):R(B)}function w(B){return B===45?(e.enter("tableDelimiterFiller"),x(B)):R(B)}function x(B){return B===45?(e.consume(B),x):B===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(B),e.exit("tableDelimiterMarker"),k):(e.exit("tableDelimiterFiller"),k(B))}function k(B){return yr(B)?hr(e,_,"whitespace")(B):_(B)}function _(B){return B===124?O(B):B===null||xn(B)?!s||i!==a?R(B):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(B)):R(B)}function R(B){return n(B)}function N(B){return e.enter("tableRow"),P(B)}function P(B){return B===124?(e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),P):B===null||xn(B)?(e.exit("tableRow"),t(B)):yr(B)?hr(e,P,"whitespace")(B):(e.enter("data"),L(B))}function L(B){return B===null||B===124||Oi(B)?(e.exit("data"),P(B)):(e.consume(B),B===92?j:L)}function j(B){return B===92||B===124?(e.consume(B),L):L(B)}}function mft(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,l=0,u,d,f;const p=new cft;for(;++nn[2]+1){const O=n[2]+1,S=n[3]-n[2]-1;e.add(O,S,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return i!==void 0&&(a.end=Object.assign({},Yb(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function hte(e,t,n,r,i){const a=[],s=Yb(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 Yb(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const gft={name:"tasklistCheck",tokenize:yft};function bft(){return{text:{91:gft}}}function yft(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 Oi(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 xn(l)?t(l):yr(l)?e.check({tokenize:vft},t,n)(l):n(l)}}function vft(e,t,n){return hr(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Oft(e){return _me([Wdt(),tft(),uft(e),hft(),bft()])}const Sft={};function Eft(e){const t=this,n=e||Sft,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Oft(n)),a.push(zdt()),s.push(jdt(n))}const wft=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,Tft=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,xft=({legacyTitle:e=!1}={})=>t=>{So(t,"blockquote",(n,r,i)=>{let a="",s="",o=!0,l=n.children.map(u=>{if(o&&u.type==="paragraph"){const d=u.children[0],f=d.type==="text"?d.value:"",p=e?Tft:wft,g=f.match(p);if(g&&(o=!1,a=g[1].toLocaleLowerCase(),s=e&&g[2]||a.toLocaleUpperCase(),f.includes(` -`)&&(u.children[0]={type:"text",value:f.replace(p,"").replace(/^\n+/,"")}),!f.includes(` -`))){const O=[];u.children.forEach((S,T)=>{T!=0&&(T==1&&S.type==="break"||O.push(S))}),u.children=[...O]}}return u});a&&(n.data={hName:"div",hProperties:{class:`markdown-alert markdown-alert-${a}`,dir:"auto"}},l.unshift({type:"paragraph",children:[kft(a),{type:"text",value:s.replace(/^\//,"")}],data:{hProperties:{class:"markdown-alert-title",dir:"auto"}}})),n.children=[...l]})};function kft(e){let t=Aft[e]??"";return{type:"emphasis",data:{hName:"svg",hProperties:{class:"octicon",viewBox:"0 0 16 16",width:"16",height:"16",ariaHidden:"true"}},children:[{type:"emphasis",data:{hName:"path",hProperties:{d:t}},children:[]}]}}const Aft={note:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z",tip:"M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z",important:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",warning:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",caution:"M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"};function _ft(e,t){if(typeof document>"u")return;const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style={position:"absolute",left:"-9999px"},document.body.appendChild(n);const r=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):!1;n.select();let i=!1;try{i=!!document.execCommand("copy")}catch{i=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(i)}function pge(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?pge(t.parentElement):null}function Cft(e){var t=n=>{var r=pge(n.target);r&&(r.classList.add("active"),_ft(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};M.useEffect(()=>{var n,r;return(n=e.current)==null||n.removeEventListener("click",t,!1),(r=e.current)==null||r.addEventListener("click",t,!1),()=>{var i;(i=e.current)==null||i.removeEventListener("click",t,!1)}},[e])}var Rft=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],Ift=e=>e;const Nft=rn.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:i,style:a,disableCopy:s=!1,skipHtml:o=!0,onScroll:l,onMouseOver:u,pluginsFilter:d,wrapperElement:f={},warpperElement:p={},urlTransform:g}=e,O=yst(e,Rft),S=rn.useRef(null);M.useImperativeHandle(t,()=>Uh({},e,{mdp:S}),[S,e]);var T=(n||"")+" "+(r||"");Cft(S);var w=[...O.rehypePlugins||[]],x={allowElement:(R,N,P)=>O.allowElement?O.allowElement(R,N,P):/^[A-Za-z0-9]+$/.test(R.tagName)};o&&w.push(Sme);var k=[xft,...O.remarkPlugins||[],Eft],_=Uh({},p,f);return I.jsx("div",Uh({ref:S,onScroll:l,onMouseOver:u},_,{className:T,style:a,children:I.jsx(fct,Uh({},x,O,{skipHtml:o,urlTransform:g||Ift,rehypePlugins:d?d("rehype",w):w,remarkPlugins:d?d("remark",k):k,children:i||""}))}))});var Dft=function(t){return n=>{So(n,r=>{r.type==="element"&&r.tagName==="code"&&r.data&&r.data.meta&&(r.properties=Uh({},r.properties,{"data-meta":String(r.data.meta)}))})}},Pft=function(t){return n=>{So(n,r=>{if(r.type==="element"&&r.tagName==="code"&&r.properties&&r.properties.dataMeta){r.data||(r.data={});var i=r.properties.dataMeta;typeof i=="string"&&(r.data.meta=i),delete r.properties.dataMeta}})}};const Lft=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,Mft=Object.hasOwnProperty;class $ft{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let i=Fft(t,n===!0);const a=i;for(;Mft.call(r.occurrences,i);)r.occurrences[a]++,i=a+"-"+r.occurrences[a];return r.occurrences[i]=0,i}reset(){this.occurrences=Object.create(null)}}function Fft(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(Lft,"").replace(/ /g,"-"))}function mge(e){const t=e.type==="element"?e.tagName.toLowerCase():"",n=t.length===2&&t.charCodeAt(0)===104?t.charCodeAt(1):0;return n>48&&n<55?n-48:void 0}const Bft={},pte=new $ft;function Uft(e){const n=(e||Bft).prefix||"";return function(r){pte.reset(),So(r,"element",function(i){mge(i)&&!i.properties.id&&(i.properties.id=n+pte.slug(vy(i)))})}}const Ap=function(e){if(e==null)return Hft;if(typeof e=="string")return jft(e);if(typeof e=="object")return zft(e);if(typeof e=="function")return oW(e);throw new Error("Expected function, string, or array as `test`")};function zft(e){const t=[];let n=-1;for(;++n{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{So(r,(i,a,s)=>{if(i.type==="element"||i.type==="root"){let o=!1;i.children=i.children.filter(l=>{if(l.type==="raw"||l.type==="comment"){let u=(l.value||"").trim();if(u=u.replace(/^/,"$1"),u===t)return o=!0,!1;if(u===n)return o=!1,!1}return!o})}})}};var Gft={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};function Yft(e){return e===void 0&&(e=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":e},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}}var Zft=(e,t)=>(n,r,i)=>{if(n.type==="element"&&i&&i.type==="root"&&/h(1|2|3|4|5|6)/.test(n.tagName)){var a=n.children&&n.children[0];a&&a.properties&&a.properties.ariaHidden==="true"&&(a.properties=Uh({class:"anchor"},a.properties),a.children=[Gft])}if(n.type==="element"&&n.tagName==="pre"&&!e){var s=zQ(n.children);n.children.push(Yft(s))}t&&t(n,r===null?void 0:r,i===null?void 0:i)},Xft=[Uft,Vft,qft];const bge=rn.forwardRef((e,t)=>{var n,r=[Dft,Sme,Pft,...Xft,[ert,{rewrite:Zft((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[rrt,{properties:"attr"}],...e.rehypePlugins||[],[Utt,{ignoreMissing:!0}]];return I.jsx(Nft,Uh({},e,{rehypePlugins:r,ref:t}))});function sM(e){return e.split(` -`).map(t=>t+" ").join(` -`)}function Kft(e){const{title:t,feature:n,onClose:r}=e,i=Uf(),a=BT(),s=Pr(vp),{data:o,memoryKey:l,isLoading:u,isComplete:d,mutateAsync:f}=Qet(n),{data:p,isLoading:g,isComplete:O,mutateAsync:S}=Wet(l),[T,w]=M.useState(""),x=document.getElementById(yC),k=M.useMemo(()=>u||g,[u,g]),_=M.useMemo(()=>d||O,[d,O]),R=M.useMemo(()=>p||o,[o,p]),{enqueueSnackbar:N}=IT(),P=M.useRef(null),L=pue(),{reset:j,formState:B}=L;M.useEffect(()=>{B.isSubmitSuccessful&&j({content:""})},[B.isSubmitSuccessful,j]),M.useEffect(()=>{w((x==null?void 0:x.getAttribute("content"))??"")},[x]),M.useEffect(()=>{T&&f(T)},[T,f]),M.useEffect(()=>{R&&P.current&&P.current.scrollTo({behavior:"smooth",top:P.current.scrollHeight})},[R]);const V=async()=>{R&&(await F1.write(R),N("URL Copied!",{variant:"success"}))},W=async()=>{S("Recreate the last statement with a paraphrase or adjust it slightly to better suit the user's input.")},re=q=>{S(q.content)},ee=(q=!1)=>{var Se,Z;if(!s.cmView)return;const ne=s.cmView.state.selection.main;let K=Math.min(ne.to,ne.from);const G=Math.max(ne.to,ne.from);let ie=R;q||(K=G,ie=` -${ie}`);const H=q?K:K+1,Re=K+ie.length;(Se=s.doc)==null||Se.update((ke,$e)=>{ke.content.edit(K,G,ie),$e.set({selection:ke.content.indexRangeToPosRange([H,Re])})}),(Z=s.cmView)==null||Z.dispatch({changes:{from:K,to:G,insert:ie},selection:{anchor:H,head:Re}}),r()};return I.jsxs(Bn,{gap:4,children:[I.jsx(ea,{bgcolor:i.palette.background.paper,p:1,borderRadius:2,border:1,children:I.jsx(wr,{children:t})}),k&&I.jsx(kd,{sx:{marginX:"auto"}}),I.jsx(ea,{ref:P,sx:{height:350,overflow:"auto"},children:!k&&I.jsx(bge,{source:sM(R||""),wrapperElement:{"data-color-mode":a}})}),I.jsxs(Bn,{gap:2,children:[I.jsx(d3,{in:_,children:I.jsxs(Bn,{direction:"row",justifyContent:"flex-end",gap:1,children:[I.jsx(po,{variant:"outlined",onClick:W,children:I.jsx(Jpe,{fontSize:"small"})}),I.jsx(po,{variant:"outlined",onClick:V,children:I.jsx(kR,{fontSize:"small"})}),I.jsx(po,{variant:"outlined",onClick:()=>ee(),children:"Insert below"}),I.jsx(po,{variant:"contained",onClick:()=>ee(!0),children:"Replace"})]})}),I.jsx(Lc,{children:I.jsx(dO,{defaultValues:{content:""},formContext:L,onSuccess:re,children:I.jsx(Bn,{gap:4,alignItems:"flex-end",children:I.jsx(PT,{variant:"outlined",name:"content",placeholder:"Tell Yorkie what to do next",required:!0,fullWidth:!0,disabled:!_,size:"small",InputProps:{startAdornment:I.jsx(jP,{position:"start",children:I.jsx("img",{src:"/yorkie.png",height:20})}),endAdornment:I.jsx(d3,{in:_,children:I.jsx(jP,{position:"end",children:I.jsx(Oo,{type:"submit",edge:"end",children:I.jsx(e0e,{})})})})}})})})})]})]})}function Jft(e){const{onCloseIntelligence:t,...n}=e,r=()=>{var a;(a=n==null?void 0:n.onClose)==null||a.call(n,new Event("Close Modal"),"escapeKeyDown")},i=()=>{t(),r()};return I.jsx(iO,{disableAutoFocus:!0,...n,children:I.jsx(Gs,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4},children:I.jsxs(Bn,{gap:4,children:[I.jsxs(Bn,{alignItems:"center",gap:1,children:[I.jsx("img",{src:"/yorkie.png",alt:"yorkie",width:60}),I.jsxs(wr,{variant:"h6",align:"center",children:["Do you want to discard",I.jsx("br",{}),"the Yorkie response?"]})]}),I.jsxs(Bn,{direction:"row",gap:1,justifyContent:"center",children:[I.jsx(po,{variant:"outlined",onClick:i,children:"Discard"}),I.jsx(po,{variant:"contained",onClick:r,children:"Cancel"})]})]})})})}function eht(e){const{onClose:t}=e,n=Uf(),r=Pr(vp),i=M.useRef(null),[a,s]=M.useState(null),[o,l]=M.useState(null),[u,d]=M.useState(),[f,p]=M.useState(!1),g=M.useRef(null),O=M.useMemo(()=>r.cmView.contentDOM.getBoundingClientRect().width-12,[r.cmView]);M.useEffect(()=>{if(i.current)return d(i.current),()=>{d(void 0)}},[]);const S=(w,x)=>{l(w),s(x)},T=()=>{p(w=>!w)};return I.jsxs(ea,{sx:{position:"absolute",mt:1},children:[I.jsx("span",{ref:i,style:{marginTop:4}}),I.jsx(sO,{open:!!u,anchorEl:u,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:T,children:I.jsx(Kse,{ref:g,sx:{boxShadow:n.shadows[11],borderRadius:2,width:O,padding:2},children:o&&a?I.jsx(Kft,{title:a,feature:o,onClose:t}):I.jsx($et,{onSelectFeature:S})})}),I.jsx(Jft,{open:f,onCloseIntelligence:t,onClose:T})]})}function tht(){const[e,t]=M.useState(!1),[n,r]=M.useState(null),{yorkieIntelligence:i}=Pr(HR);M.useEffect(()=>{const s=document.getElementById(yC);r(s),document.addEventListener("selectionchange",function(){const o=document.getElementById(yC);r(o)})},[]);const a=()=>{t(s=>!s)};if(n)return I.jsxs(I.Fragment,{children:[I.jsxs(po,{onClick:a,sx:{padding:"3px 5px",border:"none","&:hover":{border:"none"}},disabled:!(i!=null&&i.enable),children:[I.jsx("img",{src:"/yorkie.png",height:20,alt:"yorkie_img",style:{filter:i!=null&&i.enable?"none":"grayscale(100%)"}}),I.jsx(wr,{variant:"subtitle1",fontSize:14,children:"Yorkie Intelligence"})]}),e&&Yv.createPortal(I.jsx(eht,{onClose:a}),n)]})}function nht({toolBarState:{show:e,position:t,selectedFormats:n},onChangeToolBarState:r}){const{toggleButtonChangeHandler:i}=Vpe(),[a,s]=M.useState(null);if(zR(()=>{s(e)},500,[e]),!!a)return I.jsx(sO,{open:a,anchorReference:"anchorPosition",anchorPosition:{top:t.top,left:t.left},onClose:()=>r(o=>({...o,show:!1})),anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"},disableAutoFocus:!0,TransitionComponent:d3,TransitionProps:{timeout:300},children:I.jsxs(Bn,{direction:"row",margin:"5px 7px",children:[I.jsx(tht,{}),I.jsx(wv,{orientation:"vertical",flexItem:!0,sx:{height:"20px",alignSelf:"center",margin:"0 5px"}}),I.jsx(poe,{value:Array.from(n),onChange:i(n,r),exclusive:!0,"aria-label":"text formatting",children:I.jsxs(Bn,{direction:"row",gap:"5px",alignItems:"center",children:[I.jsx(JA,{color:n.has(au.ITALIC)?"primary":"secondary",title:"Cmd+I / Ctrl+I",value:au.ITALIC,children:I.jsx("i",{children:"i"})}),I.jsx(JA,{color:n.has(au.BOLD)?"primary":"secondary",title:"Cmd+B / Ctrl+B",value:au.BOLD,children:I.jsx("strong",{children:"B"})}),I.jsx(JA,{color:n.has(au.STRIKETHROUGH)?"primary":"secondary",title:"Cmd+Shift+X / Ctrl+Shfit+X",value:au.STRIKETHROUGH,children:"~"}),I.jsx(JA,{color:n.has(au.CODE)?"primary":"secondary",title:"Cmd+E / Ctrl+E",value:au.CODE,children:""})]})})]})})}function bte(){var T;const e=Du(),t=BT(),[n,r]=M.useState(),i=Pr(vp),a=Pr(HR),s=Pr(fR),{mutateAsync:o}=a$e(),{mutateAsync:l}=s$e(),[u,d]=M.useState({show:!1,position:{top:0,left:0},selectedFormats:new Set}),{getFormatMarkerLength:f,applyFormat:p,setKeymapConfig:g}=Vpe(),O=M.useCallback(w=>{w&&r(w)},[]),S=M.useCallback(w=>{const x=w.state.selection.main;if(x.empty)d(k=>({...k,show:!1,selectedFormats:new Set}));else{const k=w.view.coordsAtPos(x.from);if(k){const _=f(w.view.state,x.from),R=w.state.sliceDoc(x.from-_,x.from),N=w.state.sliceDoc(x.to,x.to+_),P=new Set,L=(j,B)=>{R.includes(j)&&N.includes(j)&&P.add(B)};L("**",au.BOLD),L("_",au.ITALIC),L("`",au.CODE),L("~~",au.STRIKETHROUGH),d(j=>({...j,show:!0,position:{top:k.top-5,left:k.left},selectedFormats:P}))}}},[f]);return M.useEffect(()=>{var _,R;let w;if(!n||!i.doc||!i.client||typeof((_=a.fileUpload)==null?void 0:_.enable)!="boolean")return;const x=async N=>{if(!s.data)return"";const P=await o({workspaceId:s.data.id,contentLength:new Blob([N]).size,contentType:N.type});return await l({...P,file:N}),`https://codepair-api.yorkie.dev/files/${P.fileKey}`},k=Dr.create({doc:((R=i.doc.getRoot().content)==null?void 0:R.toString())??"",extensions:[mO.of(g()),wYe,LJe(),vet(i.doc,i.client),t=="light"?zJe:WJe,en.theme({"&":{width:"100%"}}),en.lineWrapping,oet,...a.fileUpload.enable?[ZJe(x,i.doc)]:[],en.updateListener.of(N=>{N.selectionSet&&S(N)})]});return w=new en({state:k,parent:n}),e(XMe(w)),()=>{w==null||w.destroy()}},[e,i.client,i.doc,n,t,s.data,o,l,(T=a.fileUpload)==null?void 0:T.enable,p,S,g]),I.jsx(ML.ScrollSyncPane,{children:I.jsxs("div",{style:{height:"100%",overflow:"auto"},children:[I.jsx("div",{ref:O,style:{display:"flex",alignItems:"stretch",minHeight:"100%"}}),!!u.show&&I.jsx(nht,{toolBarState:u,onChangeToolBarState:d})]})})}class uu{constructor(t,n,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=n,this.end=r}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new uu(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}}class wc{constructor(t,n){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=n}range(t,n){return new wc(n,uu.range(this,t))}}class Mt{constructor(t,n){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r="KaTeX parse error: "+t,i,a,s=n&&n.loc;if(s&&s.start<=s.end){var o=s.lexer.input;i=s.start,a=s.end,i===o.length?r+=" at end of input: ":r+=" at position "+(i+1)+": ";var l=o.slice(i,a).replace(/[^]/g,"$&̲"),u;i>15?u="…"+o.slice(i-15,i):u=o.slice(0,i);var d;a+15":">","<":"<",'"':""","'":"'"},lht=/[&><"']/g;function uht(e){return String(e).replace(lht,t=>oht[t])}var yge=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},cht=function(t){var n=yge(t);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},dht=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},fht=function(t){var n=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return n?n[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(n[1])?null:n[1].toLowerCase():"_relative"},Nn={contains:rht,deflt:iht,escape:uht,hyphenate:sht,getBaseElem:yge,isCharacterBox:cht,protocolFromUrl:fht},T_={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function hht(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class uW{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var n in T_)if(T_.hasOwnProperty(n)){var r=T_[n];this[n]=t[n]!==void 0?r.processor?r.processor(t[n]):t[n]:hht(r)}}reportNonstrict(t,n,r){var i=this.strict;if(typeof i=="function"&&(i=i(t,n,r)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new Mt("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,r){var i=this.strict;if(typeof i=="function")try{i=i(t,n,r)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var n=Nn.protocolFromUrl(t.url);if(n==null)return!1;t.protocol=n}var r=typeof this.trust=="function"?this.trust(t):this.trust;return!!r}}class t0{constructor(t,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=r}sup(){return hf[pht[this.id]]}sub(){return hf[mht[this.id]]}fracNum(){return hf[ght[this.id]]}fracDen(){return hf[bht[this.id]]}cramp(){return hf[yht[this.id]]}text(){return hf[vht[this.id]]}isTight(){return this.size>=2}}var cW=0,RC=1,Vy=2,Zh=3,Kw=4,gc=5,Bv=6,qo=7,hf=[new t0(cW,0,!1),new t0(RC,0,!0),new t0(Vy,1,!1),new t0(Zh,1,!0),new t0(Kw,2,!1),new t0(gc,2,!0),new t0(Bv,3,!1),new t0(qo,3,!0)],pht=[Kw,gc,Kw,gc,Bv,qo,Bv,qo],mht=[gc,gc,gc,gc,qo,qo,qo,qo],ght=[Vy,Zh,Kw,gc,Bv,qo,Bv,qo],bht=[Zh,Zh,gc,gc,qo,qo,qo,qo],yht=[RC,RC,Zh,Zh,gc,gc,qo,qo],vht=[cW,RC,Vy,Zh,Vy,Zh,Vy,Zh],Ln={DISPLAY:hf[cW],TEXT:hf[Vy],SCRIPT:hf[Kw],SCRIPTSCRIPT:hf[Bv]},oM=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Oht(e){for(var t=0;t=i[0]&&e<=i[1])return n.name}return null}var x_=[];oM.forEach(e=>e.blocks.forEach(t=>x_.push(...t)));function vge(e){for(var t=0;t=x_[t]&&e<=x_[t+1])return!0;return!1}var Fb=80,Sht=function(t,n){return"M95,"+(622+t+n)+` -c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 -c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 -c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 -s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 -c69,-144,104.5,-217.7,106.5,-221 -l`+t/2.075+" -"+t+` -c5.3,-9.3,12,-14,20,-14 -H400000v`+(40+t)+`H845.2724 -s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 -c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z -M`+(834+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Eht=function(t,n){return"M263,"+(601+t+n)+`c0.7,0,18,39.7,52,119 -c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 -c340,-704.7,510.7,-1060.3,512,-1067 -l`+t/2.084+" -"+t+` -c4.7,-7.3,11,-11,19,-11 -H40000v`+(40+t)+`H1012.3 -s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 -c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 -s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 -c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z -M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},wht=function(t,n){return"M983 "+(10+t+n)+` -l`+t/3.13+" -"+t+` -c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+` -H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 -s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 -c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 -c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 -c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 -c53.7,-170.3,84.5,-266.8,92.5,-289.5z -M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Tht=function(t,n){return"M424,"+(2398+t+n)+` -c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 -c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 -s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 -s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 -l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000 -v`+(40+t)+`H1014.6 -s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 -c-2,6,-10,9,-24,9 -c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+n+` -h400000v`+(40+t)+"h-400000z"},xht=function(t,n){return"M473,"+(2713+t+n)+` -c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+` -c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7 -s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 -c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 -c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 -s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, -606zM`+(1001+t)+" "+n+"h400000v"+(40+t)+"H1017.7z"},kht=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},Aht=function(t,n,r){var i=r-54-n-t;return"M702 "+(t+n)+"H400000"+(40+t)+` -H742v`+i+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 -h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 -c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 -219 661 l218 661zM702 `+n+"H400000v"+(40+t)+"H742z"},_ht=function(t,n,r){n=1e3*n;var i="";switch(t){case"sqrtMain":i=Sht(n,Fb);break;case"sqrtSize1":i=Eht(n,Fb);break;case"sqrtSize2":i=wht(n,Fb);break;case"sqrtSize3":i=Tht(n,Fb);break;case"sqrtSize4":i=xht(n,Fb);break;case"sqrtTall":i=Aht(n,Fb,r)}return i},Cht=function(t,n){switch(t){case"⎜":return"M291 0 H417 V"+n+" H291z M291 0 H417 V"+n+" H291z";case"∣":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z";case"∥":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z"+("M367 0 H410 V"+n+" H367z M367 0 H410 V"+n+" H367z");case"⎟":return"M457 0 H583 V"+n+" H457z M457 0 H583 V"+n+" H457z";case"⎢":return"M319 0 H403 V"+n+" H319z M319 0 H403 V"+n+" H319z";case"⎥":return"M263 0 H347 V"+n+" H263z M263 0 H347 V"+n+" H263z";case"⎪":return"M384 0 H504 V"+n+" H384z M384 0 H504 V"+n+" H384z";case"⏐":return"M312 0 H355 V"+n+" H312z M312 0 H355 V"+n+" H312z";case"‖":return"M257 0 H300 V"+n+" H257z M257 0 H300 V"+n+" H257z"+("M478 0 H521 V"+n+" H478z M478 0 H521 V"+n+" H478z");default:return""}},yte={doubleleftarrow:`M262 157 -l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 - 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 - 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 -c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5 - 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87 --86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 --2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z -m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l --10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5 - 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88 --33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68 --17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18 --13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 -c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3 --107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 - 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8 --5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247 -c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208 - 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3 - 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202 - l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 --45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 - 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 - 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 - 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 --331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 -H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0 - 435 0h399565z`,leftgroupunder:`M400000 262 -H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 - 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 --3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5 --18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7 --196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5 - 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3 --4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7 --10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z -m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 - 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 - 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667 --152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12 - 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7 --2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 -v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 --83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 --68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 - 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z -M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z -M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 --.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 -c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 - 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z -M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334 -c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 --53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 - 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 - 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 -c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 - 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 - 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0 --5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6 --320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z -m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8 -60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8 --451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z -m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 -c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6 --480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z -m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 -85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8 --707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z -m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 -c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128 --16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 - 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 - 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85 --40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 --12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 - 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l --6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5 -s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 -c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 - 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 --174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0 - 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18 - 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3 --3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2 --10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 - 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11 --18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7 - 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z -m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 - 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5 --7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95 --27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8 - 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 - 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3 --64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z -m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 - 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 --13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 - 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z -M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 - 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 --52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 --167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 - 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69 --70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 --40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 --37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 - 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167 -c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 - 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42 - 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 --19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 - 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7 --2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0 - 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0 - 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 --68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 --8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9 - 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 -c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751 - 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457 --11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 - 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 - 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 - -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 --11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 - 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 - 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 - -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5 -3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 -10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 --1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1 --7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 -H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 -c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 -c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10 --11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10 --11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10 --11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1, --5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, --11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, --11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, --11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202 -c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 -c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130 -s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47 -121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6 -s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11 -c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z -M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 --27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 -13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39 --84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5 --119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 --12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 -151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 -c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 -c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21 -c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 -c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z -M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 -c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, --231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 -c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z -M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 -c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9, -1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7, --152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z -M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0 -c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, --231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 -c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z -M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Rht=function(t,n){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 h347 v-84 -H403z M403 1759 V0 H319 V1759 v`+n+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v1759 H0 v84 H347z -M347 1759 V0 H263 V1759 v`+n+" v1759 h84z";case"vert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15 -c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15 -c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+" v585 h43z";case"doublevert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15 -c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15 -c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+` v585 h43z -M367 15 v585 v`+n+` v585 c2.667,10,9.667,15,21,15 -c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15 -c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+n+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+n+` v1715 h263 v84 H319z -MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+n+` v1799 H0 v-84 H319z -MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v602 h84z -M403 1759 V0 H319 V1759 v`+n+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v602 h84z -M347 1759 V0 h-84 V1759 v`+n+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1 -c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349, --36,557 l0,`+(n+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, -949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9 -c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, --544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 -l0,-`+(n+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, --210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3, -63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 -c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(n+9)+` -c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664 -c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11 -c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 -c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 -l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, --470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};let fx=class{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return Nn.contains(this.classes,t)}toNode(){for(var t=document.createDocumentFragment(),n=0;nn.toText();return this.children.map(t).join("")}};var xf={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},u4={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},vte={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function Iht(e,t){xf[e]=t}function dW(e,t,n){if(!xf[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),i=xf[t][r];if(!i&&e[0]in vte&&(r=vte[e[0]].charCodeAt(0),i=xf[t][r]),!i&&n==="text"&&vge(r)&&(i=xf[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var h7={};function Nht(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!h7[t]){var n=h7[t]={cssEmPerMu:u4.quad[t]/18};for(var r in u4)u4.hasOwnProperty(r)&&(n[r]=u4[r][t])}return h7[t]}var Dht=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Ote=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Ste=function(t,n){return n.size<2?t:Dht[t-1][n.size-1]};class Ph{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||Ph.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Ote[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new Ph(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:Ste(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:Ote[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=Ste(Ph.BASESIZE,t);return this.size===n&&this.textSize===Ph.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Ph.BASESIZE?["sizing","reset-size"+this.size,"size"+Ph.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Nht(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Ph.BASESIZE=6;var lM={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Pht={ex:!0,em:!0,mu:!0},Oge=function(t){return typeof t!="string"&&(t=t.unit),t in lM||t in Pht||t==="ex"},la=function(t,n){var r;if(t.unit in lM)r=lM[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var i;if(n.style.isTight()?i=n.havingStyle(n.style.text()):i=n,t.unit==="ex")r=i.fontMetrics().xHeight;else if(t.unit==="em")r=i.fontMetrics().quad;else throw new Mt("Invalid unit: '"+t.unit+"'");i!==n&&(r*=i.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},Qt=function(t){return+t.toFixed(4)+"em"},fm=function(t){return t.filter(n=>n).join(" ")},Sge=function(t,n,r){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var i=n.getColor();i&&(this.style.color=i)}},Ege=function(t){var n=document.createElement(t);n.className=fm(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(n.style[r]=this.style[r]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&n.setAttribute(i,this.attributes[i]);for(var a=0;a",n};let hx=class{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Sge.call(this,t,r,i),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return Nn.contains(this.classes,t)}toNode(){return Ege.call(this,"span")}toMarkup(){return wge.call(this,"span")}};class fW{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Sge.call(this,n,i),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return Nn.contains(this.classes,t)}toNode(){return Ege.call(this,"a")}toMarkup(){return wge.call(this,"a")}}class Lht{constructor(t,n,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=t,this.classes=["mord"],this.style=r}hasClass(t){return Nn.contains(this.classes,t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var n in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);return t}toMarkup(){var t=''+Nn.escape(this.alt)+'0&&(n=document.createElement("span"),n.style.marginRight=Qt(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=fm(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(n=n||document.createElement("span"),n.style[r]=this.style[r]);return n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="0&&(r+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=Nn.hyphenate(i)+":"+this.style[i]+";");r&&(t=!0,n+=' style="'+Nn.escape(r)+'"');var a=Nn.escape(this.text);return t?(n+=">",n+=a,n+="",n):a}}class dp{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);for(var i=0;i':''}}class uM{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var t=" but got "+String(e)+".")}var Fht={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Bht={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Ci={math:{},text:{}};function $(e,t,n,r,i,a){Ci[e][i]={font:t,group:n,replace:r},a&&r&&(Ci[e][r]=Ci[e][i])}var z="math",At="text",J="main",ye="ams",na="accent-token",sn="bin",nl="close",DO="inner",Pn="mathord",Va="op-token",Mu="open",OI="punct",Oe="rel",_p="spacing",De="textord";$(z,J,Oe,"≡","\\equiv",!0);$(z,J,Oe,"≺","\\prec",!0);$(z,J,Oe,"≻","\\succ",!0);$(z,J,Oe,"∼","\\sim",!0);$(z,J,Oe,"⊥","\\perp");$(z,J,Oe,"⪯","\\preceq",!0);$(z,J,Oe,"⪰","\\succeq",!0);$(z,J,Oe,"≃","\\simeq",!0);$(z,J,Oe,"∣","\\mid",!0);$(z,J,Oe,"≪","\\ll",!0);$(z,J,Oe,"≫","\\gg",!0);$(z,J,Oe,"≍","\\asymp",!0);$(z,J,Oe,"∥","\\parallel");$(z,J,Oe,"⋈","\\bowtie",!0);$(z,J,Oe,"⌣","\\smile",!0);$(z,J,Oe,"⊑","\\sqsubseteq",!0);$(z,J,Oe,"⊒","\\sqsupseteq",!0);$(z,J,Oe,"≐","\\doteq",!0);$(z,J,Oe,"⌢","\\frown",!0);$(z,J,Oe,"∋","\\ni",!0);$(z,J,Oe,"∝","\\propto",!0);$(z,J,Oe,"⊢","\\vdash",!0);$(z,J,Oe,"⊣","\\dashv",!0);$(z,J,Oe,"∋","\\owns");$(z,J,OI,".","\\ldotp");$(z,J,OI,"⋅","\\cdotp");$(z,J,De,"#","\\#");$(At,J,De,"#","\\#");$(z,J,De,"&","\\&");$(At,J,De,"&","\\&");$(z,J,De,"ℵ","\\aleph",!0);$(z,J,De,"∀","\\forall",!0);$(z,J,De,"ℏ","\\hbar",!0);$(z,J,De,"∃","\\exists",!0);$(z,J,De,"∇","\\nabla",!0);$(z,J,De,"♭","\\flat",!0);$(z,J,De,"ℓ","\\ell",!0);$(z,J,De,"♮","\\natural",!0);$(z,J,De,"♣","\\clubsuit",!0);$(z,J,De,"℘","\\wp",!0);$(z,J,De,"♯","\\sharp",!0);$(z,J,De,"♢","\\diamondsuit",!0);$(z,J,De,"ℜ","\\Re",!0);$(z,J,De,"♡","\\heartsuit",!0);$(z,J,De,"ℑ","\\Im",!0);$(z,J,De,"♠","\\spadesuit",!0);$(z,J,De,"§","\\S",!0);$(At,J,De,"§","\\S");$(z,J,De,"¶","\\P",!0);$(At,J,De,"¶","\\P");$(z,J,De,"†","\\dag");$(At,J,De,"†","\\dag");$(At,J,De,"†","\\textdagger");$(z,J,De,"‡","\\ddag");$(At,J,De,"‡","\\ddag");$(At,J,De,"‡","\\textdaggerdbl");$(z,J,nl,"⎱","\\rmoustache",!0);$(z,J,Mu,"⎰","\\lmoustache",!0);$(z,J,nl,"⟯","\\rgroup",!0);$(z,J,Mu,"⟮","\\lgroup",!0);$(z,J,sn,"∓","\\mp",!0);$(z,J,sn,"⊖","\\ominus",!0);$(z,J,sn,"⊎","\\uplus",!0);$(z,J,sn,"⊓","\\sqcap",!0);$(z,J,sn,"∗","\\ast");$(z,J,sn,"⊔","\\sqcup",!0);$(z,J,sn,"◯","\\bigcirc",!0);$(z,J,sn,"∙","\\bullet",!0);$(z,J,sn,"‡","\\ddagger");$(z,J,sn,"≀","\\wr",!0);$(z,J,sn,"⨿","\\amalg");$(z,J,sn,"&","\\And");$(z,J,Oe,"⟵","\\longleftarrow",!0);$(z,J,Oe,"⇐","\\Leftarrow",!0);$(z,J,Oe,"⟸","\\Longleftarrow",!0);$(z,J,Oe,"⟶","\\longrightarrow",!0);$(z,J,Oe,"⇒","\\Rightarrow",!0);$(z,J,Oe,"⟹","\\Longrightarrow",!0);$(z,J,Oe,"↔","\\leftrightarrow",!0);$(z,J,Oe,"⟷","\\longleftrightarrow",!0);$(z,J,Oe,"⇔","\\Leftrightarrow",!0);$(z,J,Oe,"⟺","\\Longleftrightarrow",!0);$(z,J,Oe,"↦","\\mapsto",!0);$(z,J,Oe,"⟼","\\longmapsto",!0);$(z,J,Oe,"↗","\\nearrow",!0);$(z,J,Oe,"↩","\\hookleftarrow",!0);$(z,J,Oe,"↪","\\hookrightarrow",!0);$(z,J,Oe,"↘","\\searrow",!0);$(z,J,Oe,"↼","\\leftharpoonup",!0);$(z,J,Oe,"⇀","\\rightharpoonup",!0);$(z,J,Oe,"↙","\\swarrow",!0);$(z,J,Oe,"↽","\\leftharpoondown",!0);$(z,J,Oe,"⇁","\\rightharpoondown",!0);$(z,J,Oe,"↖","\\nwarrow",!0);$(z,J,Oe,"⇌","\\rightleftharpoons",!0);$(z,ye,Oe,"≮","\\nless",!0);$(z,ye,Oe,"","\\@nleqslant");$(z,ye,Oe,"","\\@nleqq");$(z,ye,Oe,"⪇","\\lneq",!0);$(z,ye,Oe,"≨","\\lneqq",!0);$(z,ye,Oe,"","\\@lvertneqq");$(z,ye,Oe,"⋦","\\lnsim",!0);$(z,ye,Oe,"⪉","\\lnapprox",!0);$(z,ye,Oe,"⊀","\\nprec",!0);$(z,ye,Oe,"⋠","\\npreceq",!0);$(z,ye,Oe,"⋨","\\precnsim",!0);$(z,ye,Oe,"⪹","\\precnapprox",!0);$(z,ye,Oe,"≁","\\nsim",!0);$(z,ye,Oe,"","\\@nshortmid");$(z,ye,Oe,"∤","\\nmid",!0);$(z,ye,Oe,"⊬","\\nvdash",!0);$(z,ye,Oe,"⊭","\\nvDash",!0);$(z,ye,Oe,"⋪","\\ntriangleleft");$(z,ye,Oe,"⋬","\\ntrianglelefteq",!0);$(z,ye,Oe,"⊊","\\subsetneq",!0);$(z,ye,Oe,"","\\@varsubsetneq");$(z,ye,Oe,"⫋","\\subsetneqq",!0);$(z,ye,Oe,"","\\@varsubsetneqq");$(z,ye,Oe,"≯","\\ngtr",!0);$(z,ye,Oe,"","\\@ngeqslant");$(z,ye,Oe,"","\\@ngeqq");$(z,ye,Oe,"⪈","\\gneq",!0);$(z,ye,Oe,"≩","\\gneqq",!0);$(z,ye,Oe,"","\\@gvertneqq");$(z,ye,Oe,"⋧","\\gnsim",!0);$(z,ye,Oe,"⪊","\\gnapprox",!0);$(z,ye,Oe,"⊁","\\nsucc",!0);$(z,ye,Oe,"⋡","\\nsucceq",!0);$(z,ye,Oe,"⋩","\\succnsim",!0);$(z,ye,Oe,"⪺","\\succnapprox",!0);$(z,ye,Oe,"≆","\\ncong",!0);$(z,ye,Oe,"","\\@nshortparallel");$(z,ye,Oe,"∦","\\nparallel",!0);$(z,ye,Oe,"⊯","\\nVDash",!0);$(z,ye,Oe,"⋫","\\ntriangleright");$(z,ye,Oe,"⋭","\\ntrianglerighteq",!0);$(z,ye,Oe,"","\\@nsupseteqq");$(z,ye,Oe,"⊋","\\supsetneq",!0);$(z,ye,Oe,"","\\@varsupsetneq");$(z,ye,Oe,"⫌","\\supsetneqq",!0);$(z,ye,Oe,"","\\@varsupsetneqq");$(z,ye,Oe,"⊮","\\nVdash",!0);$(z,ye,Oe,"⪵","\\precneqq",!0);$(z,ye,Oe,"⪶","\\succneqq",!0);$(z,ye,Oe,"","\\@nsubseteqq");$(z,ye,sn,"⊴","\\unlhd");$(z,ye,sn,"⊵","\\unrhd");$(z,ye,Oe,"↚","\\nleftarrow",!0);$(z,ye,Oe,"↛","\\nrightarrow",!0);$(z,ye,Oe,"⇍","\\nLeftarrow",!0);$(z,ye,Oe,"⇏","\\nRightarrow",!0);$(z,ye,Oe,"↮","\\nleftrightarrow",!0);$(z,ye,Oe,"⇎","\\nLeftrightarrow",!0);$(z,ye,Oe,"△","\\vartriangle");$(z,ye,De,"ℏ","\\hslash");$(z,ye,De,"▽","\\triangledown");$(z,ye,De,"◊","\\lozenge");$(z,ye,De,"Ⓢ","\\circledS");$(z,ye,De,"®","\\circledR");$(At,ye,De,"®","\\circledR");$(z,ye,De,"∡","\\measuredangle",!0);$(z,ye,De,"∄","\\nexists");$(z,ye,De,"℧","\\mho");$(z,ye,De,"Ⅎ","\\Finv",!0);$(z,ye,De,"⅁","\\Game",!0);$(z,ye,De,"‵","\\backprime");$(z,ye,De,"▲","\\blacktriangle");$(z,ye,De,"▼","\\blacktriangledown");$(z,ye,De,"■","\\blacksquare");$(z,ye,De,"⧫","\\blacklozenge");$(z,ye,De,"★","\\bigstar");$(z,ye,De,"∢","\\sphericalangle",!0);$(z,ye,De,"∁","\\complement",!0);$(z,ye,De,"ð","\\eth",!0);$(At,J,De,"ð","ð");$(z,ye,De,"╱","\\diagup");$(z,ye,De,"╲","\\diagdown");$(z,ye,De,"□","\\square");$(z,ye,De,"□","\\Box");$(z,ye,De,"◊","\\Diamond");$(z,ye,De,"¥","\\yen",!0);$(At,ye,De,"¥","\\yen",!0);$(z,ye,De,"✓","\\checkmark",!0);$(At,ye,De,"✓","\\checkmark");$(z,ye,De,"ℶ","\\beth",!0);$(z,ye,De,"ℸ","\\daleth",!0);$(z,ye,De,"ℷ","\\gimel",!0);$(z,ye,De,"ϝ","\\digamma",!0);$(z,ye,De,"ϰ","\\varkappa");$(z,ye,Mu,"┌","\\@ulcorner",!0);$(z,ye,nl,"┐","\\@urcorner",!0);$(z,ye,Mu,"└","\\@llcorner",!0);$(z,ye,nl,"┘","\\@lrcorner",!0);$(z,ye,Oe,"≦","\\leqq",!0);$(z,ye,Oe,"⩽","\\leqslant",!0);$(z,ye,Oe,"⪕","\\eqslantless",!0);$(z,ye,Oe,"≲","\\lesssim",!0);$(z,ye,Oe,"⪅","\\lessapprox",!0);$(z,ye,Oe,"≊","\\approxeq",!0);$(z,ye,sn,"⋖","\\lessdot");$(z,ye,Oe,"⋘","\\lll",!0);$(z,ye,Oe,"≶","\\lessgtr",!0);$(z,ye,Oe,"⋚","\\lesseqgtr",!0);$(z,ye,Oe,"⪋","\\lesseqqgtr",!0);$(z,ye,Oe,"≑","\\doteqdot");$(z,ye,Oe,"≓","\\risingdotseq",!0);$(z,ye,Oe,"≒","\\fallingdotseq",!0);$(z,ye,Oe,"∽","\\backsim",!0);$(z,ye,Oe,"⋍","\\backsimeq",!0);$(z,ye,Oe,"⫅","\\subseteqq",!0);$(z,ye,Oe,"⋐","\\Subset",!0);$(z,ye,Oe,"⊏","\\sqsubset",!0);$(z,ye,Oe,"≼","\\preccurlyeq",!0);$(z,ye,Oe,"⋞","\\curlyeqprec",!0);$(z,ye,Oe,"≾","\\precsim",!0);$(z,ye,Oe,"⪷","\\precapprox",!0);$(z,ye,Oe,"⊲","\\vartriangleleft");$(z,ye,Oe,"⊴","\\trianglelefteq");$(z,ye,Oe,"⊨","\\vDash",!0);$(z,ye,Oe,"⊪","\\Vvdash",!0);$(z,ye,Oe,"⌣","\\smallsmile");$(z,ye,Oe,"⌢","\\smallfrown");$(z,ye,Oe,"≏","\\bumpeq",!0);$(z,ye,Oe,"≎","\\Bumpeq",!0);$(z,ye,Oe,"≧","\\geqq",!0);$(z,ye,Oe,"⩾","\\geqslant",!0);$(z,ye,Oe,"⪖","\\eqslantgtr",!0);$(z,ye,Oe,"≳","\\gtrsim",!0);$(z,ye,Oe,"⪆","\\gtrapprox",!0);$(z,ye,sn,"⋗","\\gtrdot");$(z,ye,Oe,"⋙","\\ggg",!0);$(z,ye,Oe,"≷","\\gtrless",!0);$(z,ye,Oe,"⋛","\\gtreqless",!0);$(z,ye,Oe,"⪌","\\gtreqqless",!0);$(z,ye,Oe,"≖","\\eqcirc",!0);$(z,ye,Oe,"≗","\\circeq",!0);$(z,ye,Oe,"≜","\\triangleq",!0);$(z,ye,Oe,"∼","\\thicksim");$(z,ye,Oe,"≈","\\thickapprox");$(z,ye,Oe,"⫆","\\supseteqq",!0);$(z,ye,Oe,"⋑","\\Supset",!0);$(z,ye,Oe,"⊐","\\sqsupset",!0);$(z,ye,Oe,"≽","\\succcurlyeq",!0);$(z,ye,Oe,"⋟","\\curlyeqsucc",!0);$(z,ye,Oe,"≿","\\succsim",!0);$(z,ye,Oe,"⪸","\\succapprox",!0);$(z,ye,Oe,"⊳","\\vartriangleright");$(z,ye,Oe,"⊵","\\trianglerighteq");$(z,ye,Oe,"⊩","\\Vdash",!0);$(z,ye,Oe,"∣","\\shortmid");$(z,ye,Oe,"∥","\\shortparallel");$(z,ye,Oe,"≬","\\between",!0);$(z,ye,Oe,"⋔","\\pitchfork",!0);$(z,ye,Oe,"∝","\\varpropto");$(z,ye,Oe,"◀","\\blacktriangleleft");$(z,ye,Oe,"∴","\\therefore",!0);$(z,ye,Oe,"∍","\\backepsilon");$(z,ye,Oe,"▶","\\blacktriangleright");$(z,ye,Oe,"∵","\\because",!0);$(z,ye,Oe,"⋘","\\llless");$(z,ye,Oe,"⋙","\\gggtr");$(z,ye,sn,"⊲","\\lhd");$(z,ye,sn,"⊳","\\rhd");$(z,ye,Oe,"≂","\\eqsim",!0);$(z,J,Oe,"⋈","\\Join");$(z,ye,Oe,"≑","\\Doteq",!0);$(z,ye,sn,"∔","\\dotplus",!0);$(z,ye,sn,"∖","\\smallsetminus");$(z,ye,sn,"⋒","\\Cap",!0);$(z,ye,sn,"⋓","\\Cup",!0);$(z,ye,sn,"⩞","\\doublebarwedge",!0);$(z,ye,sn,"⊟","\\boxminus",!0);$(z,ye,sn,"⊞","\\boxplus",!0);$(z,ye,sn,"⋇","\\divideontimes",!0);$(z,ye,sn,"⋉","\\ltimes",!0);$(z,ye,sn,"⋊","\\rtimes",!0);$(z,ye,sn,"⋋","\\leftthreetimes",!0);$(z,ye,sn,"⋌","\\rightthreetimes",!0);$(z,ye,sn,"⋏","\\curlywedge",!0);$(z,ye,sn,"⋎","\\curlyvee",!0);$(z,ye,sn,"⊝","\\circleddash",!0);$(z,ye,sn,"⊛","\\circledast",!0);$(z,ye,sn,"⋅","\\centerdot");$(z,ye,sn,"⊺","\\intercal",!0);$(z,ye,sn,"⋒","\\doublecap");$(z,ye,sn,"⋓","\\doublecup");$(z,ye,sn,"⊠","\\boxtimes",!0);$(z,ye,Oe,"⇢","\\dashrightarrow",!0);$(z,ye,Oe,"⇠","\\dashleftarrow",!0);$(z,ye,Oe,"⇇","\\leftleftarrows",!0);$(z,ye,Oe,"⇆","\\leftrightarrows",!0);$(z,ye,Oe,"⇚","\\Lleftarrow",!0);$(z,ye,Oe,"↞","\\twoheadleftarrow",!0);$(z,ye,Oe,"↢","\\leftarrowtail",!0);$(z,ye,Oe,"↫","\\looparrowleft",!0);$(z,ye,Oe,"⇋","\\leftrightharpoons",!0);$(z,ye,Oe,"↶","\\curvearrowleft",!0);$(z,ye,Oe,"↺","\\circlearrowleft",!0);$(z,ye,Oe,"↰","\\Lsh",!0);$(z,ye,Oe,"⇈","\\upuparrows",!0);$(z,ye,Oe,"↿","\\upharpoonleft",!0);$(z,ye,Oe,"⇃","\\downharpoonleft",!0);$(z,J,Oe,"⊶","\\origof",!0);$(z,J,Oe,"⊷","\\imageof",!0);$(z,ye,Oe,"⊸","\\multimap",!0);$(z,ye,Oe,"↭","\\leftrightsquigarrow",!0);$(z,ye,Oe,"⇉","\\rightrightarrows",!0);$(z,ye,Oe,"⇄","\\rightleftarrows",!0);$(z,ye,Oe,"↠","\\twoheadrightarrow",!0);$(z,ye,Oe,"↣","\\rightarrowtail",!0);$(z,ye,Oe,"↬","\\looparrowright",!0);$(z,ye,Oe,"↷","\\curvearrowright",!0);$(z,ye,Oe,"↻","\\circlearrowright",!0);$(z,ye,Oe,"↱","\\Rsh",!0);$(z,ye,Oe,"⇊","\\downdownarrows",!0);$(z,ye,Oe,"↾","\\upharpoonright",!0);$(z,ye,Oe,"⇂","\\downharpoonright",!0);$(z,ye,Oe,"⇝","\\rightsquigarrow",!0);$(z,ye,Oe,"⇝","\\leadsto");$(z,ye,Oe,"⇛","\\Rrightarrow",!0);$(z,ye,Oe,"↾","\\restriction");$(z,J,De,"‘","`");$(z,J,De,"$","\\$");$(At,J,De,"$","\\$");$(At,J,De,"$","\\textdollar");$(z,J,De,"%","\\%");$(At,J,De,"%","\\%");$(z,J,De,"_","\\_");$(At,J,De,"_","\\_");$(At,J,De,"_","\\textunderscore");$(z,J,De,"∠","\\angle",!0);$(z,J,De,"∞","\\infty",!0);$(z,J,De,"′","\\prime");$(z,J,De,"△","\\triangle");$(z,J,De,"Γ","\\Gamma",!0);$(z,J,De,"Δ","\\Delta",!0);$(z,J,De,"Θ","\\Theta",!0);$(z,J,De,"Λ","\\Lambda",!0);$(z,J,De,"Ξ","\\Xi",!0);$(z,J,De,"Π","\\Pi",!0);$(z,J,De,"Σ","\\Sigma",!0);$(z,J,De,"Υ","\\Upsilon",!0);$(z,J,De,"Φ","\\Phi",!0);$(z,J,De,"Ψ","\\Psi",!0);$(z,J,De,"Ω","\\Omega",!0);$(z,J,De,"A","Α");$(z,J,De,"B","Β");$(z,J,De,"E","Ε");$(z,J,De,"Z","Ζ");$(z,J,De,"H","Η");$(z,J,De,"I","Ι");$(z,J,De,"K","Κ");$(z,J,De,"M","Μ");$(z,J,De,"N","Ν");$(z,J,De,"O","Ο");$(z,J,De,"P","Ρ");$(z,J,De,"T","Τ");$(z,J,De,"X","Χ");$(z,J,De,"¬","\\neg",!0);$(z,J,De,"¬","\\lnot");$(z,J,De,"⊤","\\top");$(z,J,De,"⊥","\\bot");$(z,J,De,"∅","\\emptyset");$(z,ye,De,"∅","\\varnothing");$(z,J,Pn,"α","\\alpha",!0);$(z,J,Pn,"β","\\beta",!0);$(z,J,Pn,"γ","\\gamma",!0);$(z,J,Pn,"δ","\\delta",!0);$(z,J,Pn,"ϵ","\\epsilon",!0);$(z,J,Pn,"ζ","\\zeta",!0);$(z,J,Pn,"η","\\eta",!0);$(z,J,Pn,"θ","\\theta",!0);$(z,J,Pn,"ι","\\iota",!0);$(z,J,Pn,"κ","\\kappa",!0);$(z,J,Pn,"λ","\\lambda",!0);$(z,J,Pn,"μ","\\mu",!0);$(z,J,Pn,"ν","\\nu",!0);$(z,J,Pn,"ξ","\\xi",!0);$(z,J,Pn,"ο","\\omicron",!0);$(z,J,Pn,"π","\\pi",!0);$(z,J,Pn,"ρ","\\rho",!0);$(z,J,Pn,"σ","\\sigma",!0);$(z,J,Pn,"τ","\\tau",!0);$(z,J,Pn,"υ","\\upsilon",!0);$(z,J,Pn,"ϕ","\\phi",!0);$(z,J,Pn,"χ","\\chi",!0);$(z,J,Pn,"ψ","\\psi",!0);$(z,J,Pn,"ω","\\omega",!0);$(z,J,Pn,"ε","\\varepsilon",!0);$(z,J,Pn,"ϑ","\\vartheta",!0);$(z,J,Pn,"ϖ","\\varpi",!0);$(z,J,Pn,"ϱ","\\varrho",!0);$(z,J,Pn,"ς","\\varsigma",!0);$(z,J,Pn,"φ","\\varphi",!0);$(z,J,sn,"∗","*",!0);$(z,J,sn,"+","+");$(z,J,sn,"−","-",!0);$(z,J,sn,"⋅","\\cdot",!0);$(z,J,sn,"∘","\\circ",!0);$(z,J,sn,"÷","\\div",!0);$(z,J,sn,"±","\\pm",!0);$(z,J,sn,"×","\\times",!0);$(z,J,sn,"∩","\\cap",!0);$(z,J,sn,"∪","\\cup",!0);$(z,J,sn,"∖","\\setminus",!0);$(z,J,sn,"∧","\\land");$(z,J,sn,"∨","\\lor");$(z,J,sn,"∧","\\wedge",!0);$(z,J,sn,"∨","\\vee",!0);$(z,J,De,"√","\\surd");$(z,J,Mu,"⟨","\\langle",!0);$(z,J,Mu,"∣","\\lvert");$(z,J,Mu,"∥","\\lVert");$(z,J,nl,"?","?");$(z,J,nl,"!","!");$(z,J,nl,"⟩","\\rangle",!0);$(z,J,nl,"∣","\\rvert");$(z,J,nl,"∥","\\rVert");$(z,J,Oe,"=","=");$(z,J,Oe,":",":");$(z,J,Oe,"≈","\\approx",!0);$(z,J,Oe,"≅","\\cong",!0);$(z,J,Oe,"≥","\\ge");$(z,J,Oe,"≥","\\geq",!0);$(z,J,Oe,"←","\\gets");$(z,J,Oe,">","\\gt",!0);$(z,J,Oe,"∈","\\in",!0);$(z,J,Oe,"","\\@not");$(z,J,Oe,"⊂","\\subset",!0);$(z,J,Oe,"⊃","\\supset",!0);$(z,J,Oe,"⊆","\\subseteq",!0);$(z,J,Oe,"⊇","\\supseteq",!0);$(z,ye,Oe,"⊈","\\nsubseteq",!0);$(z,ye,Oe,"⊉","\\nsupseteq",!0);$(z,J,Oe,"⊨","\\models");$(z,J,Oe,"←","\\leftarrow",!0);$(z,J,Oe,"≤","\\le");$(z,J,Oe,"≤","\\leq",!0);$(z,J,Oe,"<","\\lt",!0);$(z,J,Oe,"→","\\rightarrow",!0);$(z,J,Oe,"→","\\to");$(z,ye,Oe,"≱","\\ngeq",!0);$(z,ye,Oe,"≰","\\nleq",!0);$(z,J,_p," ","\\ ");$(z,J,_p," ","\\space");$(z,J,_p," ","\\nobreakspace");$(At,J,_p," ","\\ ");$(At,J,_p," "," ");$(At,J,_p," ","\\space");$(At,J,_p," ","\\nobreakspace");$(z,J,_p,null,"\\nobreak");$(z,J,_p,null,"\\allowbreak");$(z,J,OI,",",",");$(z,J,OI,";",";");$(z,ye,sn,"⊼","\\barwedge",!0);$(z,ye,sn,"⊻","\\veebar",!0);$(z,J,sn,"⊙","\\odot",!0);$(z,J,sn,"⊕","\\oplus",!0);$(z,J,sn,"⊗","\\otimes",!0);$(z,J,De,"∂","\\partial",!0);$(z,J,sn,"⊘","\\oslash",!0);$(z,ye,sn,"⊚","\\circledcirc",!0);$(z,ye,sn,"⊡","\\boxdot",!0);$(z,J,sn,"△","\\bigtriangleup");$(z,J,sn,"▽","\\bigtriangledown");$(z,J,sn,"†","\\dagger");$(z,J,sn,"⋄","\\diamond");$(z,J,sn,"⋆","\\star");$(z,J,sn,"◃","\\triangleleft");$(z,J,sn,"▹","\\triangleright");$(z,J,Mu,"{","\\{");$(At,J,De,"{","\\{");$(At,J,De,"{","\\textbraceleft");$(z,J,nl,"}","\\}");$(At,J,De,"}","\\}");$(At,J,De,"}","\\textbraceright");$(z,J,Mu,"{","\\lbrace");$(z,J,nl,"}","\\rbrace");$(z,J,Mu,"[","\\lbrack",!0);$(At,J,De,"[","\\lbrack",!0);$(z,J,nl,"]","\\rbrack",!0);$(At,J,De,"]","\\rbrack",!0);$(z,J,Mu,"(","\\lparen",!0);$(z,J,nl,")","\\rparen",!0);$(At,J,De,"<","\\textless",!0);$(At,J,De,">","\\textgreater",!0);$(z,J,Mu,"⌊","\\lfloor",!0);$(z,J,nl,"⌋","\\rfloor",!0);$(z,J,Mu,"⌈","\\lceil",!0);$(z,J,nl,"⌉","\\rceil",!0);$(z,J,De,"\\","\\backslash");$(z,J,De,"∣","|");$(z,J,De,"∣","\\vert");$(At,J,De,"|","\\textbar",!0);$(z,J,De,"∥","\\|");$(z,J,De,"∥","\\Vert");$(At,J,De,"∥","\\textbardbl");$(At,J,De,"~","\\textasciitilde");$(At,J,De,"\\","\\textbackslash");$(At,J,De,"^","\\textasciicircum");$(z,J,Oe,"↑","\\uparrow",!0);$(z,J,Oe,"⇑","\\Uparrow",!0);$(z,J,Oe,"↓","\\downarrow",!0);$(z,J,Oe,"⇓","\\Downarrow",!0);$(z,J,Oe,"↕","\\updownarrow",!0);$(z,J,Oe,"⇕","\\Updownarrow",!0);$(z,J,Va,"∐","\\coprod");$(z,J,Va,"⋁","\\bigvee");$(z,J,Va,"⋀","\\bigwedge");$(z,J,Va,"⨄","\\biguplus");$(z,J,Va,"⋂","\\bigcap");$(z,J,Va,"⋃","\\bigcup");$(z,J,Va,"∫","\\int");$(z,J,Va,"∫","\\intop");$(z,J,Va,"∬","\\iint");$(z,J,Va,"∭","\\iiint");$(z,J,Va,"∏","\\prod");$(z,J,Va,"∑","\\sum");$(z,J,Va,"⨂","\\bigotimes");$(z,J,Va,"⨁","\\bigoplus");$(z,J,Va,"⨀","\\bigodot");$(z,J,Va,"∮","\\oint");$(z,J,Va,"∯","\\oiint");$(z,J,Va,"∰","\\oiiint");$(z,J,Va,"⨆","\\bigsqcup");$(z,J,Va,"∫","\\smallint");$(At,J,DO,"…","\\textellipsis");$(z,J,DO,"…","\\mathellipsis");$(At,J,DO,"…","\\ldots",!0);$(z,J,DO,"…","\\ldots",!0);$(z,J,DO,"⋯","\\@cdots",!0);$(z,J,DO,"⋱","\\ddots",!0);$(z,J,De,"⋮","\\varvdots");$(z,J,na,"ˊ","\\acute");$(z,J,na,"ˋ","\\grave");$(z,J,na,"¨","\\ddot");$(z,J,na,"~","\\tilde");$(z,J,na,"ˉ","\\bar");$(z,J,na,"˘","\\breve");$(z,J,na,"ˇ","\\check");$(z,J,na,"^","\\hat");$(z,J,na,"⃗","\\vec");$(z,J,na,"˙","\\dot");$(z,J,na,"˚","\\mathring");$(z,J,Pn,"","\\@imath");$(z,J,Pn,"","\\@jmath");$(z,J,De,"ı","ı");$(z,J,De,"ȷ","ȷ");$(At,J,De,"ı","\\i",!0);$(At,J,De,"ȷ","\\j",!0);$(At,J,De,"ß","\\ss",!0);$(At,J,De,"æ","\\ae",!0);$(At,J,De,"œ","\\oe",!0);$(At,J,De,"ø","\\o",!0);$(At,J,De,"Æ","\\AE",!0);$(At,J,De,"Œ","\\OE",!0);$(At,J,De,"Ø","\\O",!0);$(At,J,na,"ˊ","\\'");$(At,J,na,"ˋ","\\`");$(At,J,na,"ˆ","\\^");$(At,J,na,"˜","\\~");$(At,J,na,"ˉ","\\=");$(At,J,na,"˘","\\u");$(At,J,na,"˙","\\.");$(At,J,na,"¸","\\c");$(At,J,na,"˚","\\r");$(At,J,na,"ˇ","\\v");$(At,J,na,"¨",'\\"');$(At,J,na,"˝","\\H");$(At,J,na,"◯","\\textcircled");var Tge={"--":!0,"---":!0,"``":!0,"''":!0};$(At,J,De,"–","--",!0);$(At,J,De,"–","\\textendash");$(At,J,De,"—","---",!0);$(At,J,De,"—","\\textemdash");$(At,J,De,"‘","`",!0);$(At,J,De,"‘","\\textquoteleft");$(At,J,De,"’","'",!0);$(At,J,De,"’","\\textquoteright");$(At,J,De,"“","``",!0);$(At,J,De,"“","\\textquotedblleft");$(At,J,De,"”","''",!0);$(At,J,De,"”","\\textquotedblright");$(z,J,De,"°","\\degree",!0);$(At,J,De,"°","\\degree");$(At,J,De,"°","\\textdegree",!0);$(z,J,De,"£","\\pounds");$(z,J,De,"£","\\mathsterling",!0);$(At,J,De,"£","\\pounds");$(At,J,De,"£","\\textsterling",!0);$(z,ye,De,"✠","\\maltese");$(At,ye,De,"✠","\\maltese");var wte='0123456789/@."';for(var p7=0;p70)return dd(a,u,i,n,s.concat(d));if(l){var f,p;if(l==="boldsymbol"){var g=jht(a,i,n,s,r);f=g.fontName,p=[g.fontClass]}else o?(f=Age[l].fontName,p=[l]):(f=h4(l,n.fontWeight,n.fontShape),p=[l,n.fontWeight,n.fontShape]);if(SI(a,f,i).metrics)return dd(a,f,i,n,s.concat(p));if(Tge.hasOwnProperty(a)&&f.slice(0,10)==="Typewriter"){for(var O=[],S=0;S{if(fm(e.classes)!==fm(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},Wht=e=>{for(var t=0;tn&&(n=s.height),s.depth>r&&(r=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=i},Ol=function(t,n,r,i){var a=new hx(t,n,r,i);return hW(a),a},xge=(e,t,n,r)=>new hx(e,t,n,r),Vht=function(t,n,r){var i=Ol([t],[],n);return i.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),i.style.borderBottomWidth=Qt(i.height),i.maxFontSize=1,i},qht=function(t,n,r,i){var a=new fW(t,n,r,i);return hW(a),a},kge=function(t){var n=new fx(t);return hW(n),n},Ght=function(t,n){return t instanceof fx?Ol([],[t],n):t},Yht=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],i=-n[0].shift-n[0].elem.depth,a=i,s=1;s{var n=Ol(["mspace"],[],t),r=la(e,t);return n.style.marginRight=Qt(r),n},h4=function(t,n,r){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var a;return n==="textbf"&&r==="textit"?a="BoldItalic":n==="textbf"?a="Bold":n==="textit"?a="Italic":a="Regular",i+"-"+a},Age={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},_ge={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Kht=function(t,n){var[r,i,a]=_ge[t],s=new hm(r),o=new dp([s],{width:Qt(i),height:Qt(a),style:"width:"+Qt(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),l=xge(["overlay"],[o],n);return l.height=a,l.style.height=Qt(a),l.style.width=Qt(i),l},Qe={fontMap:Age,makeSymbol:dd,mathsym:zht,makeSpan:Ol,makeSvgSpan:xge,makeLineSpan:Vht,makeAnchor:qht,makeFragment:kge,wrapFragment:Ght,makeVList:Zht,makeOrd:Hht,makeGlue:Xht,staticSvg:Kht,svgData:_ge,tryCombineChars:Wht},aa={number:3,unit:"mu"},Og={number:4,unit:"mu"},kh={number:5,unit:"mu"},Jht={mord:{mop:aa,mbin:Og,mrel:kh,minner:aa},mop:{mord:aa,mop:aa,mrel:kh,minner:aa},mbin:{mord:Og,mop:Og,mopen:Og,minner:Og},mrel:{mord:kh,mop:kh,mopen:kh,minner:kh},mopen:{},mclose:{mop:aa,mbin:Og,mrel:kh,minner:aa},mpunct:{mord:aa,mop:aa,mrel:kh,mopen:aa,mclose:aa,mpunct:aa,minner:aa},minner:{mord:aa,mop:aa,mbin:Og,mrel:kh,mopen:aa,mpunct:aa,minner:aa}},ept={mord:{mop:aa},mop:{mord:aa,mop:aa},mbin:{},mrel:{},mopen:{},mclose:{mop:aa},mpunct:{},minner:{mop:aa}},Cge={},NC={},DC={};function nn(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},l=0;l{var T=S.classes[0],w=O.classes[0];T==="mbin"&&Nn.contains(npt,w)?S.classes[0]="mord":w==="mbin"&&Nn.contains(tpt,T)&&(O.classes[0]="mord")},{node:f},p,g),_te(a,(O,S)=>{var T=dM(S),w=dM(O),x=T&&w?O.hasClass("mtight")?ept[T][w]:Jht[T][w]:null;if(x)return Qe.makeGlue(x,u)},{node:f},p,g),a},_te=function e(t,n,r,i,a){i&&t.push(i);for(var s=0;sp=>{t.splice(f+1,0,p),s++})(s)}i&&t.pop()},Rge=function(t){return t instanceof fx||t instanceof fW||t instanceof hx&&t.hasClass("enclosing")?t:null},apt=function e(t,n){var r=Rge(t);if(r){var i=r.children;if(i.length){if(n==="right")return e(i[i.length-1],"right");if(n==="left")return e(i[0],"left")}}return t},dM=function(t,n){return t?(n&&(t=apt(t,n)),ipt[t.classes[0]]||null):null},Jw=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return fp(n.concat(r))},Br=function(t,n,r){if(!t)return fp();if(NC[t.type]){var i=NC[t.type](t,n);if(r&&n.size!==r.size){i=fp(n.sizingClasses(r),[i],n);var a=n.sizeMultiplier/r.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new Mt("Got group of unknown type: '"+t.type+"'")};function p4(e,t){var n=fp(["base"],e,t),r=fp(["strut"]);return r.style.height=Qt(n.height+n.depth),n.depth&&(r.style.verticalAlign=Qt(-n.depth)),n.children.unshift(r),n}function fM(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=us(e,t,"root"),i;r.length===2&&r[1].hasClass("tag")&&(i=r.pop());for(var a=[],s=[],o=0;o0&&(a.push(p4(s,t)),s=[]),a.push(r[o]));s.length>0&&a.push(p4(s,t));var u;n?(u=p4(us(n,t,!0)),u.classes=["tag"],a.push(u)):i&&a.push(i);var d=fp(["katex-html"],a);if(d.setAttribute("aria-hidden","true"),u){var f=u.children[0];f.style.height=Qt(d.height+d.depth),d.depth&&(f.style.verticalAlign=Qt(-d.depth))}return d}function Ige(e){return new fx(e)}class cc{constructor(t,n,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=fm(this.classes));for(var r=0;r0&&(t+=' class ="'+Nn.escape(fm(this.classes))+'"'),t+=">";for(var r=0;r",t}toText(){return this.children.map(t=>t.toText()).join("")}}class N2{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return Nn.escape(this.toText())}toText(){return this.text}}class spt{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",Qt(this.width)),t}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var Nt={MathNode:cc,TextNode:N2,SpaceNode:spt,newDocumentFragment:Ige},Rc=function(t,n,r){return Ci[n][t]&&Ci[n][t].replace&&t.charCodeAt(0)!==55349&&!(Tge.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=Ci[n][t].replace),new Nt.TextNode(t)},pW=function(t){return t.length===1?t[0]:new Nt.MathNode("mrow",t)},mW=function(t,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var r=n.font;if(!r||r==="mathnormal")return null;var i=t.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var a=t.text;if(Nn.contains(["\\imath","\\jmath"],a))return null;Ci[i][a]&&Ci[i][a].replace&&(a=Ci[i][a].replace);var s=Qe.fontMap[r].fontName;return dW(a,s,i)?Qe.fontMap[r].variant:null},Ll=function(t,n,r){if(t.length===1){var i=Si(t[0],n);return r&&i instanceof cc&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],s,o=0;o0&&(f.text=f.text.slice(0,1)+"̸"+f.text.slice(1),a.pop())}}}a.push(l),s=l}return a},pm=function(t,n,r){return pW(Ll(t,n,r))},Si=function(t,n){if(!t)return new Nt.MathNode("mrow");if(DC[t.type]){var r=DC[t.type](t,n);return r}else throw new Mt("Got group of unknown type: '"+t.type+"'")};function Cte(e,t,n,r,i){var a=Ll(e,n),s;a.length===1&&a[0]instanceof cc&&Nn.contains(["mrow","mtable"],a[0].type)?s=a[0]:s=new Nt.MathNode("mrow",a);var o=new Nt.MathNode("annotation",[new Nt.TextNode(t)]);o.setAttribute("encoding","application/x-tex");var l=new Nt.MathNode("semantics",[s,o]),u=new Nt.MathNode("math",[l]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&u.setAttribute("display","block");var d=i?"katex":"katex-mathml";return Qe.makeSpan([d],[u])}var Nge=function(t){return new Ph({style:t.displayMode?Ln.DISPLAY:Ln.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},Dge=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=Qe.makeSpan(r,[t])}return t},opt=function(t,n,r){var i=Nge(r),a;if(r.output==="mathml")return Cte(t,n,i,r.displayMode,!0);if(r.output==="html"){var s=fM(t,i);a=Qe.makeSpan(["katex"],[s])}else{var o=Cte(t,n,i,r.displayMode,!1),l=fM(t,i);a=Qe.makeSpan(["katex"],[o,l])}return Dge(a,r)},lpt=function(t,n,r){var i=Nge(r),a=fM(t,i),s=Qe.makeSpan(["katex"],[a]);return Dge(s,r)},upt={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},cpt=function(t){var n=new Nt.MathNode("mo",[new Nt.TextNode(upt[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},dpt={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},fpt=function(t){return t.type==="ordgroup"?t.body.length:1},hpt=function(t,n){function r(){var o=4e5,l=t.label.slice(1);if(Nn.contains(["widehat","widecheck","widetilde","utilde"],l)){var u=t,d=fpt(u.base),f,p,g;if(d>5)l==="widehat"||l==="widecheck"?(f=420,o=2364,g=.42,p=l+"4"):(f=312,o=2340,g=.34,p="tilde4");else{var O=[1,1,2,2,3,3][d];l==="widehat"||l==="widecheck"?(o=[0,1062,2364,2364,2364][O],f=[0,239,300,360,420][O],g=[0,.24,.3,.3,.36,.42][O],p=l+O):(o=[0,600,1033,2339,2340][O],f=[0,260,286,306,312][O],g=[0,.26,.286,.3,.306,.34][O],p="tilde"+O)}var S=new hm(p),T=new dp([S],{width:"100%",height:Qt(g),viewBox:"0 0 "+o+" "+f,preserveAspectRatio:"none"});return{span:Qe.makeSvgSpan([],[T],n),minWidth:0,height:g}}else{var w=[],x=dpt[l],[k,_,R]=x,N=R/1e3,P=k.length,L,j;if(P===1){var B=x[3];L=["hide-tail"],j=[B]}else if(P===2)L=["halfarrow-left","halfarrow-right"],j=["xMinYMin","xMaxYMin"];else if(P===3)L=["brace-left","brace-center","brace-right"],j=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support - `+P+" children.");for(var V=0;V0&&(i.style.minWidth=Qt(a)),i},ppt=function(t,n,r,i,a){var s,o=t.height+t.depth+r+i;if(/fbox|color|angl/.test(n)){if(s=Qe.makeSpan(["stretchy",n],[],a),n==="fbox"){var l=a.color&&a.getColor();l&&(s.style.borderColor=l)}}else{var u=[];/^[bx]cancel$/.test(n)&&u.push(new uM({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&u.push(new uM({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var d=new dp(u,{width:"100%",height:Qt(o)});s=Qe.makeSvgSpan([],[d],a)}return s.height=o,s.style.height=Qt(o),s},hp={encloseSpan:ppt,mathMLnode:cpt,svgSpan:hpt};function sr(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function gW(e){var t=EI(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function EI(e){return e&&(e.type==="atom"||Bht.hasOwnProperty(e.type))?e:null}var bW=(e,t)=>{var n,r,i;e&&e.type==="supsub"?(r=sr(e.base,"accent"),n=r.base,e.base=n,i=$ht(Br(e,t)),e.base=r):(r=sr(e,"accent"),n=r.base);var a=Br(n,t.havingCrampedStyle()),s=r.isShifty&&Nn.isCharacterBox(n),o=0;if(s){var l=Nn.getBaseElem(n),u=Br(l,t.havingCrampedStyle());o=Ete(u).skew}var d=r.label==="\\c",f=d?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),p;if(r.isStretchy)p=hp.svgSpan(r,t),p=Qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:p,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+Qt(2*o)+")",marginLeft:Qt(2*o)}:void 0}]},t);else{var g,O;r.label==="\\vec"?(g=Qe.staticSvg("vec",t),O=Qe.svgData.vec[1]):(g=Qe.makeOrd({mode:r.mode,text:r.label},t,"textord"),g=Ete(g),g.italic=0,O=g.width,d&&(f+=g.depth)),p=Qe.makeSpan(["accent-body"],[g]);var S=r.label==="\\textcircled";S&&(p.classes.push("accent-full"),f=a.height);var T=o;S||(T-=O/2),p.style.left=Qt(T),r.label==="\\textcircled"&&(p.style.top=".2em"),p=Qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-f},{type:"elem",elem:p}]},t)}var w=Qe.makeSpan(["mord","accent"],[p],t);return i?(i.children[0]=w,i.height=Math.max(w.height,i.height),i.classes[0]="mord",i):w},Pge=(e,t)=>{var n=e.isStretchy?hp.mathMLnode(e.label):new Nt.MathNode("mo",[Rc(e.label,e.mode)]),r=new Nt.MathNode("mover",[Si(e.base,t),n]);return r.setAttribute("accent","true"),r},mpt=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));nn({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=PC(t[0]),r=!mpt.test(e.funcName),i=!r||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:bW,mathmlBuilder:Pge});nn({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:bW,mathmlBuilder:Pge});nn({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=Br(e.base,t),r=hp.svgSpan(e,t),i=e.label==="\\utilde"?.12:0,a=Qe.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]},t);return Qe.makeSpan(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var n=hp.mathMLnode(e.label),r=new Nt.MathNode("munder",[Si(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var m4=e=>{var t=new Nt.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};nn({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:"xArrow",mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=Qe.wrapFragment(Br(e.body,r,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var s;e.below&&(r=t.havingStyle(n.sub()),s=Qe.wrapFragment(Br(e.below,r,t),t),s.classes.push(a+"-arrow-pad"));var o=hp.svgSpan(e,t),l=-t.fontMetrics().axisHeight+.5*o.height,u=-t.fontMetrics().axisHeight-.5*o.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(u-=i.depth);var d;if(s){var f=-t.fontMetrics().axisHeight+s.height+.5*o.height+.111;d=Qe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:o,shift:l},{type:"elem",elem:s,shift:f}]},t)}else d=Qe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:o,shift:l}]},t);return d.children[0].children[0].children[1].classes.push("svg-align"),Qe.makeSpan(["mrel","x-arrow"],[d],t)},mathmlBuilder(e,t){var n=hp.mathMLnode(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var i=m4(Si(e.body,t));if(e.below){var a=m4(Si(e.below,t));r=new Nt.MathNode("munderover",[n,a,i])}else r=new Nt.MathNode("mover",[n,i])}else if(e.below){var s=m4(Si(e.below,t));r=new Nt.MathNode("munder",[n,s])}else r=m4(),r=new Nt.MathNode("mover",[n,r]);return r}});var gpt=Qe.makeSpan;function Lge(e,t){var n=us(e.body,t,!0);return gpt([e.mclass],n,t)}function Mge(e,t){var n,r=Ll(e.body,t);return e.mclass==="minner"?n=new Nt.MathNode("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new Nt.MathNode("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new Nt.MathNode("mo",r),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}nn({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:Ma(i),isCharacterBox:Nn.isCharacterBox(i)}},htmlBuilder:Lge,mathmlBuilder:Mge});var wI=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};nn({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:wI(t[0]),body:Ma(t[1]),isCharacterBox:Nn.isCharacterBox(t[1])}}});nn({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],s;r!=="\\stackrel"?s=wI(i):s="mrel";var o={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:Ma(i)},l={type:"supsub",mode:a.mode,base:o,sup:r==="\\underset"?null:a,sub:r==="\\underset"?a:null};return{type:"mclass",mode:n.mode,mclass:s,body:[l],isCharacterBox:Nn.isCharacterBox(l)}},htmlBuilder:Lge,mathmlBuilder:Mge});nn({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:wI(t[0]),body:Ma(t[0])}},htmlBuilder(e,t){var n=us(e.body,t,!0),r=Qe.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=Ll(e.body,t),r=new Nt.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var bpt={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Rte=()=>({type:"styling",body:[],mode:"math",style:"display"}),Ite=e=>e.type==="textord"&&e.text==="@",ypt=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function vpt(e,t,n){var r=bpt[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=n.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:r,mode:"math",family:"rel"},s=n.callFunction("\\Big",[a],[]),o=n.callFunction("\\\\cdright",[t[1]],[]),l={type:"ordgroup",mode:"math",body:[i,s,o]};return n.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var u={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[u],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Opt(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new Mt("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],i=[r],a=0;a-1))if("<>AV".indexOf(u)>-1)for(var f=0;f<2;f++){for(var p=!0,g=l+1;gAV=|." after @',s[l]);var O=vpt(u,d,e),S={type:"styling",body:[O],mode:"math",style:"display"};r.push(S),o=Rte()}a%2===0?r.push(o):r.shift(),r=[],i.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var T=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:T,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}nn({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=Qe.wrapFragment(Br(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=Qt(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new Nt.MathNode("mrow",[Si(e.label,t)]);return n=new Nt.MathNode("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new Nt.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});nn({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=Qe.wrapFragment(Br(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new Nt.MathNode("mrow",[Si(e.fragment,t)])}});nn({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=sr(t[0],"ordgroup"),i=r.body,a="",s=0;s=1114111)throw new Mt("\\@char with invalid code point "+a);return l<=65535?u=String.fromCharCode(l):(l-=65536,u=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:n.mode,text:u}}});var $ge=(e,t)=>{var n=us(e.body,t.withColor(e.color),!1);return Qe.makeFragment(n)},Fge=(e,t)=>{var n=Ll(e.body,t.withColor(e.color)),r=new Nt.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};nn({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=sr(t[0],"color-token").color,i=t[1];return{type:"color",mode:n.mode,color:r,body:Ma(i)}},htmlBuilder:$ge,mathmlBuilder:Fge});nn({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=sr(t[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var a=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:a}},htmlBuilder:$ge,mathmlBuilder:Fge});nn({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:a,size:i&&sr(i,"size").value}},htmlBuilder(e,t){var n=Qe.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=Qt(la(e.size,t)))),n},mathmlBuilder(e,t){var n=new Nt.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",Qt(la(e.size,t)))),n}});var hM={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Bge=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Mt("Expected a control sequence",e);return t},Spt=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},Uge=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i==null&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};nn({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(hM[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=hM[r.text]),sr(t.parseFunction(),"internal");throw new Mt("Invalid token after macro prefix",r)}});nn({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new Mt("Expected a control sequence",r);for(var a=0,s,o=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){s=t.gullet.future(),o[a].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new Mt('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==a+1)throw new Mt('Argument number "'+r.text+'" out of order');a++,o.push([])}else{if(r.text==="EOF")throw new Mt("Expected a macro definition");o[a].push(r.text)}var{tokens:l}=t.gullet.consumeArg();return s&&l.unshift(s),(n==="\\edef"||n==="\\xdef")&&(l=t.gullet.expandTokens(l),l.reverse()),t.gullet.macros.set(i,{tokens:l,numArgs:a,delimiters:o},n===hM[n]),{type:"internal",mode:t.mode}}});nn({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=Bge(t.gullet.popToken());t.gullet.consumeSpaces();var i=Spt(t);return Uge(t,r,i,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});nn({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=Bge(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return Uge(t,r,a,n==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var WE=function(t,n,r){var i=Ci.math[t]&&Ci.math[t].replace,a=dW(i||t,n,r);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return a},yW=function(t,n,r,i){var a=r.havingBaseStyle(n),s=Qe.makeSpan(i.concat(a.sizingClasses(r)),[t],r),o=a.sizeMultiplier/r.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=a.sizeMultiplier,s},zge=function(t,n,r){var i=n.havingBaseStyle(r),a=(1-n.sizeMultiplier/i.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Qt(a),t.height-=a,t.depth+=a},Ept=function(t,n,r,i,a,s){var o=Qe.makeSymbol(t,"Main-Regular",a,i),l=yW(o,n,i,s);return r&&zge(l,i,n),l},wpt=function(t,n,r,i){return Qe.makeSymbol(t,"Size"+n+"-Regular",r,i)},jge=function(t,n,r,i,a,s){var o=wpt(t,n,a,i),l=yW(Qe.makeSpan(["delimsizing","size"+n],[o],i),Ln.TEXT,i,s);return r&&zge(l,i,Ln.TEXT),l},y7=function(t,n,r){var i;n==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=Qe.makeSpan(["delimsizinginner",i],[Qe.makeSpan([],[Qe.makeSymbol(t,n,r)])]);return{type:"elem",elem:a}},v7=function(t,n,r){var i=xf["Size4-Regular"][t.charCodeAt(0)]?xf["Size4-Regular"][t.charCodeAt(0)][4]:xf["Size1-Regular"][t.charCodeAt(0)][4],a=new hm("inner",Cht(t,Math.round(1e3*n))),s=new dp([a],{width:Qt(i),height:Qt(n),style:"width:"+Qt(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),o=Qe.makeSvgSpan([],[s],r);return o.height=n,o.style.height=Qt(n),o.style.width=Qt(i),{type:"elem",elem:o}},pM=.008,g4={type:"kern",size:-1*pM},Tpt=["|","\\lvert","\\rvert","\\vert"],xpt=["\\|","\\lVert","\\rVert","\\Vert"],Hge=function(t,n,r,i,a,s){var o,l,u,d,f="",p=0;o=u=d=t,l=null;var g="Size1-Regular";t==="\\uparrow"?u=d="⏐":t==="\\Uparrow"?u=d="‖":t==="\\downarrow"?o=u="⏐":t==="\\Downarrow"?o=u="‖":t==="\\updownarrow"?(o="\\uparrow",u="⏐",d="\\downarrow"):t==="\\Updownarrow"?(o="\\Uparrow",u="‖",d="\\Downarrow"):Nn.contains(Tpt,t)?(u="∣",f="vert",p=333):Nn.contains(xpt,t)?(u="∥",f="doublevert",p=556):t==="["||t==="\\lbrack"?(o="⎡",u="⎢",d="⎣",g="Size4-Regular",f="lbrack",p=667):t==="]"||t==="\\rbrack"?(o="⎤",u="⎥",d="⎦",g="Size4-Regular",f="rbrack",p=667):t==="\\lfloor"||t==="⌊"?(u=o="⎢",d="⎣",g="Size4-Regular",f="lfloor",p=667):t==="\\lceil"||t==="⌈"?(o="⎡",u=d="⎢",g="Size4-Regular",f="lceil",p=667):t==="\\rfloor"||t==="⌋"?(u=o="⎥",d="⎦",g="Size4-Regular",f="rfloor",p=667):t==="\\rceil"||t==="⌉"?(o="⎤",u=d="⎥",g="Size4-Regular",f="rceil",p=667):t==="("||t==="\\lparen"?(o="⎛",u="⎜",d="⎝",g="Size4-Regular",f="lparen",p=875):t===")"||t==="\\rparen"?(o="⎞",u="⎟",d="⎠",g="Size4-Regular",f="rparen",p=875):t==="\\{"||t==="\\lbrace"?(o="⎧",l="⎨",d="⎩",u="⎪",g="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(o="⎫",l="⎬",d="⎭",u="⎪",g="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(o="⎧",d="⎩",u="⎪",g="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(o="⎫",d="⎭",u="⎪",g="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(o="⎧",d="⎭",u="⎪",g="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(o="⎫",d="⎩",u="⎪",g="Size4-Regular");var O=WE(o,g,a),S=O.height+O.depth,T=WE(u,g,a),w=T.height+T.depth,x=WE(d,g,a),k=x.height+x.depth,_=0,R=1;if(l!==null){var N=WE(l,g,a);_=N.height+N.depth,R=2}var P=S+k+_,L=Math.max(0,Math.ceil((n-P)/(R*w))),j=P+L*R*w,B=i.fontMetrics().axisHeight;r&&(B*=i.sizeMultiplier);var V=j/2-B,W=[];if(f.length>0){var re=j-S-k,ee=Math.round(j*1e3),q=Rht(f,Math.round(re*1e3)),ne=new hm(f,q),K=(p/1e3).toFixed(3)+"em",G=(ee/1e3).toFixed(3)+"em",ie=new dp([ne],{width:K,height:G,viewBox:"0 0 "+p+" "+ee}),H=Qe.makeSvgSpan([],[ie],i);H.height=ee/1e3,H.style.width=K,H.style.height=G,W.push({type:"elem",elem:H})}else{if(W.push(y7(d,g,a)),W.push(g4),l===null){var Re=j-S-k+2*pM;W.push(v7(u,Re,i))}else{var Se=(j-S-k-_)/2+2*pM;W.push(v7(u,Se,i)),W.push(g4),W.push(y7(l,g,a)),W.push(g4),W.push(v7(u,Se,i))}W.push(g4),W.push(y7(o,g,a))}var Z=i.havingBaseStyle(Ln.TEXT),ke=Qe.makeVList({positionType:"bottom",positionData:V,children:W},Z);return yW(Qe.makeSpan(["delimsizing","mult"],[ke],Z),Ln.TEXT,i,s)},O7=80,S7=.08,E7=function(t,n,r,i,a){var s=_ht(t,i,r),o=new hm(t,s),l=new dp([o],{width:"400em",height:Qt(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return Qe.makeSvgSpan(["hide-tail"],[l],a)},kpt=function(t,n){var r=n.havingBaseSizing(),i=qge("\\surd",t*r.sizeMultiplier,Vge,r),a=r.sizeMultiplier,s=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),o,l=0,u=0,d=0,f;return i.type==="small"?(d=1e3+1e3*s+O7,t<1?a=1:t<1.4&&(a=.7),l=(1+s+S7)/a,u=(1+s)/a,o=E7("sqrtMain",l,d,s,n),o.style.minWidth="0.853em",f=.833/a):i.type==="large"?(d=(1e3+O7)*D2[i.size],u=(D2[i.size]+s)/a,l=(D2[i.size]+s+S7)/a,o=E7("sqrtSize"+i.size,l,d,s,n),o.style.minWidth="1.02em",f=1/a):(l=t+s+S7,u=t+s,d=Math.floor(1e3*t+s)+O7,o=E7("sqrtTall",l,d,s,n),o.style.minWidth="0.742em",f=1.056),o.height=u,o.style.height=Qt(l),{span:o,advanceWidth:f,ruleWidth:(n.fontMetrics().sqrtRuleThickness+s)*a}},Qge=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],Apt=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],Wge=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],D2=[0,1.2,1.8,2.4,3],_pt=function(t,n,r,i,a){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),Nn.contains(Qge,t)||Nn.contains(Wge,t))return jge(t,n,!1,r,i,a);if(Nn.contains(Apt,t))return Hge(t,D2[n],!1,r,i,a);throw new Mt("Illegal delimiter: '"+t+"'")},Cpt=[{type:"small",style:Ln.SCRIPTSCRIPT},{type:"small",style:Ln.SCRIPT},{type:"small",style:Ln.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Rpt=[{type:"small",style:Ln.SCRIPTSCRIPT},{type:"small",style:Ln.SCRIPT},{type:"small",style:Ln.TEXT},{type:"stack"}],Vge=[{type:"small",style:Ln.SCRIPTSCRIPT},{type:"small",style:Ln.SCRIPT},{type:"small",style:Ln.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Ipt=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},qge=function(t,n,r,i){for(var a=Math.min(2,3-i.style.size),s=a;sn)return r[s]}return r[r.length-1]},Gge=function(t,n,r,i,a,s){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var o;Nn.contains(Wge,t)?o=Cpt:Nn.contains(Qge,t)?o=Vge:o=Rpt;var l=qge(t,n,o,i);return l.type==="small"?Ept(t,l.style,r,i,a,s):l.type==="large"?jge(t,l.size,r,i,a,s):Hge(t,n,r,i,a,s)},Npt=function(t,n,r,i,a,s){var o=i.fontMetrics().axisHeight*i.sizeMultiplier,l=901,u=5/i.fontMetrics().ptPerEm,d=Math.max(n-o,r+o),f=Math.max(d/500*l,2*d-u);return Gge(t,f,!0,i,a,s)},Xh={sqrtImage:kpt,sizedDelim:_pt,sizeToMaxHeight:D2,customSizedDelim:Gge,leftRightDelim:Npt},Nte={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Dpt=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function TI(e,t){var n=EI(e);if(n&&Nn.contains(Dpt,n.text))return n;throw n?new Mt("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new Mt("Invalid delimiter type '"+e.type+"'",e)}nn({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=TI(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Nte[e.funcName].size,mclass:Nte[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?Qe.makeSpan([e.mclass]):Xh.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(Rc(e.delim,e.mode));var n=new Nt.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=Qt(Xh.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function Dte(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}nn({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new Mt("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:TI(t[0],e).text,color:n}}});nn({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=TI(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var a=sr(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{Dte(e);for(var n=us(e.body,t,!0,["mopen","mclose"]),r=0,i=0,a=!1,s=0;s{Dte(e);var n=Ll(e.body,t);if(e.left!=="."){var r=new Nt.MathNode("mo",[Rc(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var i=new Nt.MathNode("mo",[Rc(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),n.push(i)}return pW(n)}});nn({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=TI(t[0],e);if(!e.parser.leftrightDepth)throw new Mt("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=Jw(t,[]);else{n=Xh.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?Rc("|","text"):Rc(e.delim,e.mode),r=new Nt.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var vW=(e,t)=>{var n=Qe.wrapFragment(Br(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,s=0,o=Nn.isCharacterBox(e.body);if(r==="sout")a=Qe.makeSpan(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/i,s=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var l=la({number:.6,unit:"pt"},t),u=la({number:.35,unit:"ex"},t),d=t.havingBaseSizing();i=i/d.sizeMultiplier;var f=n.height+n.depth+l+u;n.style.paddingLeft=Qt(f/2+l);var p=Math.floor(1e3*f*i),g=kht(p),O=new dp([new hm("phase",g)],{width:"400em",height:Qt(p/1e3),viewBox:"0 0 400000 "+p,preserveAspectRatio:"xMinYMin slice"});a=Qe.makeSvgSpan(["hide-tail"],[O],t),a.style.height=Qt(f),s=n.depth+l+u}else{/cancel/.test(r)?o||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var S=0,T=0,w=0;/box/.test(r)?(w=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),S=t.fontMetrics().fboxsep+(r==="colorbox"?0:w),T=S):r==="angl"?(w=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),S=4*w,T=Math.max(0,.25-n.depth)):(S=o?.2:0,T=S),a=hp.encloseSpan(n,r,S,T,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle="solid",a.style.borderWidth=Qt(w)):r==="angl"&&w!==.049&&(a.style.borderTopWidth=Qt(w),a.style.borderRightWidth=Qt(w)),s=n.depth+T,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var x;if(e.backgroundColor)x=Qe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:n,shift:0}]},t);else{var k=/cancel|phase/.test(r)?["svg-align"]:[];x=Qe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:k}]},t)}return/cancel/.test(r)&&(x.height=n.height,x.depth=n.depth),/cancel/.test(r)&&!o?Qe.makeSpan(["mord","cancel-lap"],[x],t):Qe.makeSpan(["mord"],[x],t)},OW=(e,t)=>{var n=0,r=new Nt.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Si(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};nn({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=sr(t[0],"color-token").color,s=t[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:a,body:s}},htmlBuilder:vW,mathmlBuilder:OW});nn({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=sr(t[0],"color-token").color,s=sr(t[1],"color-token").color,o=t[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:s,borderColor:a,body:o}},htmlBuilder:vW,mathmlBuilder:OW});nn({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}});nn({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:vW,mathmlBuilder:OW});nn({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var Yge={};function Kf(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l{var t=e.parser.settings;if(!t.displayMode)throw new Mt("{"+e.envName+"} can be used only in display mode.")};function SW(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function km(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:s,colSeparationType:o,autoTag:l,singleRow:u,emptySingleRow:d,maxNumCols:f,leqno:p}=t;if(e.gullet.beginGroup(),u||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var g=e.gullet.expandMacroAsText("\\arraystretch");if(g==null)s=1;else if(s=parseFloat(g),!s||s<0)throw new Mt("Invalid \\arraystretch: "+g)}e.gullet.beginGroup();var O=[],S=[O],T=[],w=[],x=l!=null?[]:void 0;function k(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function _(){x&&(e.gullet.macros.get("\\df@tag")?(x.push(e.subparse([new wc("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):x.push(!!l&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(k(),w.push(Pte(e));;){var R=e.parseExpression(!1,u?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),R={type:"ordgroup",mode:e.mode,body:R},n&&(R={type:"styling",mode:e.mode,style:n,body:[R]}),O.push(R);var N=e.fetch().text;if(N==="&"){if(f&&O.length===f){if(u||o)throw new Mt("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(N==="\\end"){_(),O.length===1&&R.type==="styling"&&R.body[0].body.length===0&&(S.length>1||!d)&&S.pop(),w.length0&&(k+=.25),u.push({pos:k,isDashed:de[_e]})}for(_(s[0]),r=0;r0&&(V+=x,Pde))for(r=0;r=o)){var Xe=void 0;(i>0||t.hskipBeforeAndAfter)&&(Xe=Nn.deflt(Se.pregap,p),Xe!==0&&(q=Qe.makeSpan(["arraycolsep"],[]),q.style.width=Qt(Xe),ee.push(q)));var We=[];for(r=0;r0){for(var Pt=Qe.makeLineSpan("hline",n,d),jt=Qe.makeLineSpan("hdashline",n,d),ct=[{type:"elem",elem:l,shift:0}];u.length>0;){var Ot=u.pop(),yt=Ot.pos-W;Ot.isDashed?ct.push({type:"elem",elem:jt,shift:yt}):ct.push({type:"elem",elem:Pt,shift:yt})}l=Qe.makeVList({positionType:"individualShift",children:ct},n)}if(K.length===0)return Qe.makeSpan(["mord"],[l],n);var Ut=Qe.makeVList({positionType:"individualShift",children:K},n);return Ut=Qe.makeSpan(["tag"],[Ut],n),Qe.makeFragment([l,Ut])},Ppt={c:"center ",l:"left ",r:"right "},eh=function(t,n){for(var r=[],i=new Nt.MathNode("mtd",[],["mtr-glue"]),a=new Nt.MathNode("mtd",[],["mml-eqn-num"]),s=0;s0){var O=t.cols,S="",T=!1,w=0,x=O.length;O[0].type==="separator"&&(p+="top ",w=1),O[O.length-1].type==="separator"&&(p+="bottom ",x-=1);for(var k=w;k0?"left ":"",p+=L[L.length-1].length>0?"right ":"";for(var j=1;j-1?"alignat":"align",a=t.envName==="split",s=km(t.parser,{cols:r,addJot:!0,autoTag:a?void 0:SW(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),o,l=0,u={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var d="",f=0;f0&&g&&(T=1),r[O]={type:"align",align:S,pregap:T,postgap:0}}return s.colSeparationType=g?"align":"alignat",s};Kf({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=EI(t[0]),r=n?[t[0]]:sr(t[0],"ordgroup").body,i=r.map(function(s){var o=gW(s),l=o.text;if("lcr".indexOf(l)!==-1)return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new Mt("Unknown column alignment: "+l,s)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return km(e.parser,a,EW(e.envName))},htmlBuilder:Jf,mathmlBuilder:eh});Kf({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,"lcr".indexOf(n)===-1)throw new Mt("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),r.cols=[{type:"align",align:n}]}}var a=km(e.parser,r,EW(e.envName)),s=Math.max(0,...a.body.map(o=>o.length));return a.cols=new Array(s).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:Jf,mathmlBuilder:eh});Kf({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=km(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:Jf,mathmlBuilder:eh});Kf({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=EI(t[0]),r=n?[t[0]]:sr(t[0],"ordgroup").body,i=r.map(function(s){var o=gW(s),l=o.text;if("lc".indexOf(l)!==-1)return{type:"align",align:l};throw new Mt("Unknown column alignment: "+l,s)});if(i.length>1)throw new Mt("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=km(e.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new Mt("{subarray} can contain only one column");return a},htmlBuilder:Jf,mathmlBuilder:eh});Kf({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=km(e.parser,t,EW(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Jf,mathmlBuilder:eh});Kf({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Xge,htmlBuilder:Jf,mathmlBuilder:eh});Kf({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){Nn.contains(["gather","gather*"],e.envName)&&xI(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:SW(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return km(e.parser,t,"display")},htmlBuilder:Jf,mathmlBuilder:eh});Kf({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Xge,htmlBuilder:Jf,mathmlBuilder:eh});Kf({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){xI(e);var t={autoTag:SW(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return km(e.parser,t,"display")},htmlBuilder:Jf,mathmlBuilder:eh});Kf({type:"array",names:["CD"],props:{numArgs:0},handler(e){return xI(e),Opt(e.parser)},htmlBuilder:Jf,mathmlBuilder:eh});oe("\\nonumber","\\gdef\\@eqnsw{0}");oe("\\notag","\\nonumber");nn({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Mt(e.funcName+" valid only within array environment")}});var Lte=Yge;nn({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!=="ordgroup")throw new Mt("Invalid environment name",i);for(var a="",s=0;s{var n=e.font,r=t.withFont(n);return Br(e.body,r)},Jge=(e,t)=>{var n=e.font,r=t.withFont(n);return Si(e.body,r)},Mte={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};nn({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=PC(t[0]),a=r;return a in Mte&&(a=Mte[a]),{type:"font",mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:Kge,mathmlBuilder:Jge});nn({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],i=Nn.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:wI(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:i}}});nn({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,s=n.parseExpression(!0,i),o="math"+r.slice(1);return{type:"font",mode:a,font:o,body:{type:"ordgroup",mode:n.mode,body:s}}},htmlBuilder:Kge,mathmlBuilder:Jge});var e1e=(e,t)=>{var n=t;return e==="display"?n=n.id>=Ln.SCRIPT.id?n.text():Ln.DISPLAY:e==="text"&&n.size===Ln.DISPLAY.size?n=Ln.TEXT:e==="script"?n=Ln.SCRIPT:e==="scriptscript"&&(n=Ln.SCRIPTSCRIPT),n},wW=(e,t)=>{var n=e1e(e.size,t.style),r=n.fracNum(),i=n.fracDen(),a;a=t.havingStyle(r);var s=Br(e.numer,a,t);if(e.continued){var o=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;s.height=s.height0?O=3*p:O=7*p,S=t.fontMetrics().denom1):(f>0?(g=t.fontMetrics().num2,O=p):(g=t.fontMetrics().num3,O=3*p),S=t.fontMetrics().denom2);var T;if(d){var x=t.fontMetrics().axisHeight;g-s.depth-(x+.5*f){var n=new Nt.MathNode("mfrac",[Si(e.numer,t),Si(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=la(e.barSize,t);n.setAttribute("linethickness",Qt(r))}var i=e1e(e.size,t.style);if(i.size!==t.style.size){n=new Nt.MathNode("mstyle",[n]);var a=i.size===Ln.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",a),n.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var s=[];if(e.leftDelim!=null){var o=new Nt.MathNode("mo",[new Nt.TextNode(e.leftDelim.replace("\\",""))]);o.setAttribute("fence","true"),s.push(o)}if(s.push(n),e.rightDelim!=null){var l=new Nt.MathNode("mo",[new Nt.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),s.push(l)}return pW(s)}return n};nn({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],s,o=null,l=null,u="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",l=")";break;case"\\\\bracefrac":s=!1,o="\\{",l="\\}";break;case"\\\\brackfrac":s=!1,o="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":u="display";break;case"\\tfrac":case"\\tbinom":u="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:i,denom:a,hasBarLine:s,leftDelim:o,rightDelim:l,size:u,barSize:null}},htmlBuilder:wW,mathmlBuilder:TW});nn({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:i,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});nn({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:r}}});var $te=["display","text","script","scriptscript"],Fte=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};nn({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=PC(t[0]),s=a.type==="atom"&&a.family==="open"?Fte(a.text):null,o=PC(t[1]),l=o.type==="atom"&&o.family==="close"?Fte(o.text):null,u=sr(t[2],"size"),d,f=null;u.isBlank?d=!0:(f=u.value,d=f.number>0);var p="auto",g=t[3];if(g.type==="ordgroup"){if(g.body.length>0){var O=sr(g.body[0],"textord");p=$te[Number(O.text)]}}else g=sr(g,"textord"),p=$te[Number(g.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:d,barSize:f,leftDelim:s,rightDelim:l,size:p}},htmlBuilder:wW,mathmlBuilder:TW});nn({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:sr(t[0],"size").value,token:i}}});nn({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=dht(sr(t[1],"infix").size),s=t[2],o=a.number>0;return{type:"genfrac",mode:n.mode,numer:i,denom:s,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:wW,mathmlBuilder:TW});var t1e=(e,t)=>{var n=t.style,r,i;e.type==="supsub"?(r=e.sup?Br(e.sup,t.havingStyle(n.sup()),t):Br(e.sub,t.havingStyle(n.sub()),t),i=sr(e.base,"horizBrace")):i=sr(e,"horizBrace");var a=Br(i.base,t.havingBaseStyle(Ln.DISPLAY)),s=hp.svgSpan(i,t),o;if(i.isOver?(o=Qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},t),o.children[0].children[0].children[1].classes.push("svg-align")):(o=Qe.makeVList({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},t),o.children[0].children[0].children[0].classes.push("svg-align")),r){var l=Qe.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t);i.isOver?o=Qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},t):o=Qe.makeVList({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return Qe.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t)},Lpt=(e,t)=>{var n=hp.mathMLnode(e.label);return new Nt.MathNode(e.isOver?"mover":"munder",[Si(e.base,t),n])};nn({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:t1e,mathmlBuilder:Lpt});nn({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=sr(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:Ma(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=us(e.body,t,!1);return Qe.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=pm(e.body,t);return n instanceof cc||(n=new cc("mrow",[n])),n.setAttribute("href",e.href),n}});nn({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=sr(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],a=0;a{var{parser:n,funcName:r,token:i}=e,a=sr(t[0],"raw").string,s=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,l={};switch(r){case"\\htmlClass":l.class=a,o={command:"\\htmlClass",class:a};break;case"\\htmlId":l.id=a,o={command:"\\htmlId",id:a};break;case"\\htmlStyle":l.style=a,o={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var u=a.split(","),d=0;d{var n=us(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=Qe.makeSpan(r,n,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>pm(e.body,t)});nn({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:Ma(t[0]),mathml:Ma(t[1])}},htmlBuilder:(e,t)=>{var n=us(e.html,t,!1);return Qe.makeFragment(n)},mathmlBuilder:(e,t)=>pm(e.mathml,t)});var w7=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new Mt("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!Oge(r))throw new Mt("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};nn({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(n[0])for(var l=sr(n[0],"raw").string,u=l.split(","),d=0;d{var n=la(e.height,t),r=0;e.totalheight.number>0&&(r=la(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=la(e.width,t));var a={height:Qt(n+r)};i>0&&(a.width=Qt(i)),r>0&&(a.verticalAlign=Qt(-r));var s=new Lht(e.src,e.alt,a);return s.height=n,s.depth=r,s},mathmlBuilder:(e,t)=>{var n=new Nt.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=la(e.height,t),i=0;if(e.totalheight.number>0&&(i=la(e.totalheight,t)-r,n.setAttribute("valign",Qt(-i))),n.setAttribute("height",Qt(r+i)),e.width.number>0){var a=la(e.width,t);n.setAttribute("width",Qt(a))}return n.setAttribute("src",e.src),n}});nn({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=sr(t[0],"size");if(n.settings.strict){var a=r[1]==="m",s=i.value.unit==="mu";a?(s||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+i.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):s&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return Qe.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=la(e.dimension,t);return new Nt.SpaceNode(n)}});nn({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=Qe.makeSpan([],[Br(e.body,t)]),n=Qe.makeSpan(["inner"],[n],t)):n=Qe.makeSpan(["inner"],[Br(e.body,t)]);var r=Qe.makeSpan(["fix"],[]),i=Qe.makeSpan([e.alignment],[n,r],t),a=Qe.makeSpan(["strut"]);return a.style.height=Qt(i.height+i.depth),i.depth&&(a.style.verticalAlign=Qt(-i.depth)),i.children.unshift(a),i=Qe.makeSpan(["thinbox"],[i],t),Qe.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var n=new Nt.MathNode("mpadded",[Si(e.body,t)]);if(e.alignment!=="rlap"){var r=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}});nn({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode("math");var a=n==="\\("?"\\)":"$",s=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:s}}});nn({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Mt("Mismatched "+e.funcName)}});var Bte=(e,t)=>{switch(t.style.size){case Ln.DISPLAY.size:return e.display;case Ln.TEXT.size:return e.text;case Ln.SCRIPT.size:return e.script;case Ln.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};nn({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:Ma(t[0]),text:Ma(t[1]),script:Ma(t[2]),scriptscript:Ma(t[3])}},htmlBuilder:(e,t)=>{var n=Bte(e,t),r=us(n,t,!1);return Qe.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=Bte(e,t);return pm(n,t)}});var n1e=(e,t,n,r,i,a,s)=>{e=Qe.makeSpan([],[e]);var o=n&&Nn.isCharacterBox(n),l,u;if(t){var d=Br(t,r.havingStyle(i.sup()),r);u={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-d.depth)}}if(n){var f=Br(n,r.havingStyle(i.sub()),r);l={elem:f,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-f.height)}}var p;if(u&&l){var g=r.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+s;p=Qe.makeVList({positionType:"bottom",positionData:g,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Qt(-a)},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:Qt(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(l){var O=e.height-s;p=Qe.makeVList({positionType:"top",positionData:O,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Qt(-a)},{type:"kern",size:l.kern},{type:"elem",elem:e}]},r)}else if(u){var S=e.depth+s;p=Qe.makeVList({positionType:"bottom",positionData:S,children:[{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:Qt(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return e;var T=[p];if(l&&a!==0&&!o){var w=Qe.makeSpan(["mspace"],[],r);w.style.marginRight=Qt(a),T.unshift(w)}return Qe.makeSpan(["mop","op-limits"],T,r)},r1e=["\\smallint"],PO=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=sr(e.base,"op"),i=!0):a=sr(e,"op");var s=t.style,o=!1;s.size===Ln.DISPLAY.size&&a.symbol&&!Nn.contains(r1e,a.name)&&(o=!0);var l;if(a.symbol){var u=o?"Size2-Regular":"Size1-Regular",d="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(d=a.name.slice(1),a.name=d==="oiint"?"\\iint":"\\iiint"),l=Qe.makeSymbol(a.name,u,"math",t,["mop","op-symbol",o?"large-op":"small-op"]),d.length>0){var f=l.italic,p=Qe.staticSvg(d+"Size"+(o?"2":"1"),t);l=Qe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:p,shift:o?.08:0}]},t),a.name="\\"+d,l.classes.unshift("mop"),l.italic=f}}else if(a.body){var g=us(a.body,t,!0);g.length===1&&g[0]instanceof Cc?(l=g[0],l.classes[0]="mop"):l=Qe.makeSpan(["mop"],g,t)}else{for(var O=[],S=1;S{var n;if(e.symbol)n=new cc("mo",[Rc(e.name,e.mode)]),Nn.contains(r1e,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new cc("mo",Ll(e.body,t));else{n=new cc("mi",[new N2(e.name.slice(1))]);var r=new cc("mo",[Rc("⁡","text")]);e.parentIsSupSub?n=new cc("mrow",[n,r]):n=Ige([n,r])}return n},Mpt={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};nn({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=Mpt[i]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:PO,mathmlBuilder:px});nn({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Ma(r)}},htmlBuilder:PO,mathmlBuilder:px});var $pt={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};nn({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:PO,mathmlBuilder:px});nn({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:PO,mathmlBuilder:px});nn({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=$pt[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:PO,mathmlBuilder:px});var i1e=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=sr(e.base,"operatorname"),i=!0):a=sr(e,"operatorname");var s;if(a.body.length>0){for(var o=a.body.map(f=>{var p=f.text;return typeof p=="string"?{type:"textord",mode:f.mode,text:p}:f}),l=us(o,t.withFont("mathrm"),!0),u=0;u{for(var n=Ll(e.body,t.withFont("mathrm")),r=!0,i=0;id.toText()).join("");n=[new Nt.TextNode(o)]}var l=new Nt.MathNode("mi",n);l.setAttribute("mathvariant","normal");var u=new Nt.MathNode("mo",[Rc("⁡","text")]);return e.parentIsSupSub?new Nt.MathNode("mrow",[l,u]):Nt.newDocumentFragment([l,u])};nn({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"operatorname",mode:n.mode,body:Ma(i),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:i1e,mathmlBuilder:Fpt});oe("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");q1({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Qe.makeFragment(us(e.body,t,!1)):Qe.makeSpan(["mord"],us(e.body,t,!0),t)},mathmlBuilder(e,t){return pm(e.body,t,!0)}});nn({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=Br(e.body,t.havingCrampedStyle()),r=Qe.makeLineSpan("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=Qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]},t);return Qe.makeSpan(["mord","overline"],[a],t)},mathmlBuilder(e,t){var n=new Nt.MathNode("mo",[new Nt.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new Nt.MathNode("mover",[Si(e.body,t),n]);return r.setAttribute("accent","true"),r}});nn({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:Ma(r)}},htmlBuilder:(e,t)=>{var n=us(e.body,t.withPhantom(),!1);return Qe.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=Ll(e.body,t);return new Nt.MathNode("mphantom",n)}});nn({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=Qe.makeSpan([],[Br(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r{var n=Ll(Ma(e.body),t),r=new Nt.MathNode("mphantom",n),i=new Nt.MathNode("mpadded",[r]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}});nn({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=Qe.makeSpan(["inner"],[Br(e.body,t.withPhantom())]),r=Qe.makeSpan(["fix"],[]);return Qe.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=Ll(Ma(e.body),t),r=new Nt.MathNode("mphantom",n),i=new Nt.MathNode("mpadded",[r]);return i.setAttribute("width","0px"),i}});nn({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=sr(t[0],"size").value,i=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=Br(e.body,t),r=la(e.dy,t);return Qe.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new Nt.MathNode("mpadded",[Si(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}});nn({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});nn({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,i=n[0],a=sr(t[0],"size"),s=sr(t[1],"size");return{type:"rule",mode:r.mode,shift:i&&sr(i,"size").value,width:a.value,height:s.value}},htmlBuilder(e,t){var n=Qe.makeSpan(["mord","rule"],[],t),r=la(e.width,t),i=la(e.height,t),a=e.shift?la(e.shift,t):0;return n.style.borderRightWidth=Qt(r),n.style.borderTopWidth=Qt(i),n.style.bottom=Qt(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=la(e.width,t),r=la(e.height,t),i=e.shift?la(e.shift,t):0,a=t.color&&t.getColor()||"black",s=new Nt.MathNode("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",Qt(n)),s.setAttribute("height",Qt(r));var o=new Nt.MathNode("mpadded",[s]);return i>=0?o.setAttribute("height",Qt(i)):(o.setAttribute("height",Qt(i)),o.setAttribute("depth",Qt(-i))),o.setAttribute("voffset",Qt(i)),o}});function a1e(e,t,n){for(var r=us(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a{var n=t.havingSize(e.size);return a1e(e.body,n,t)};nn({type:"sizing",names:Ute,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:Ute.indexOf(r)+1,body:a}},htmlBuilder:Bpt,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=Ll(e.body,n),i=new Nt.MathNode("mstyle",r);return i.setAttribute("mathsize",Qt(n.sizeMultiplier)),i}});nn({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,s=n[0]&&sr(n[0],"ordgroup");if(s)for(var o="",l=0;l{var n=Qe.makeSpan([],[Br(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r{var n=new Nt.MathNode("mpadded",[Si(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});nn({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:"sqrt",mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=Br(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=Qe.wrapFragment(n,t);var r=t.fontMetrics(),i=r.defaultRuleThickness,a=i;t.style.idn.height+n.depth+s&&(s=(s+f-n.height-n.depth)/2);var p=l.height-n.height-s-u;n.style.paddingLeft=Qt(d);var g=Qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+p)},{type:"elem",elem:l},{type:"kern",size:u}]},t);if(e.index){var O=t.havingStyle(Ln.SCRIPTSCRIPT),S=Br(e.index,O,t),T=.6*(g.height-g.depth),w=Qe.makeVList({positionType:"shift",positionData:-T,children:[{type:"elem",elem:S}]},t),x=Qe.makeSpan(["root"],[w]);return Qe.makeSpan(["mord","sqrt"],[x,g],t)}else return Qe.makeSpan(["mord","sqrt"],[g],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new Nt.MathNode("mroot",[Si(n,t),Si(r,t)]):new Nt.MathNode("msqrt",[Si(n,t)])}});var zte={display:Ln.DISPLAY,text:Ln.TEXT,script:Ln.SCRIPT,scriptscript:Ln.SCRIPTSCRIPT};nn({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),s=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:s,body:a}},htmlBuilder(e,t){var n=zte[e.style],r=t.havingStyle(n).withFont("");return a1e(e.body,r,t)},mathmlBuilder(e,t){var n=zte[e.style],r=t.havingStyle(n),i=Ll(e.body,r),a=new Nt.MathNode("mstyle",i),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[e.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}});var Upt=function(t,n){var r=t.base;if(r)if(r.type==="op"){var i=r.limits&&(n.style.size===Ln.DISPLAY.size||r.alwaysHandleSupSub);return i?PO:null}else if(r.type==="operatorname"){var a=r.alwaysHandleSupSub&&(n.style.size===Ln.DISPLAY.size||r.limits);return a?i1e:null}else{if(r.type==="accent")return Nn.isCharacterBox(r.base)?bW:null;if(r.type==="horizBrace"){var s=!t.sub;return s===r.isOver?t1e:null}else return null}else return null};q1({type:"supsub",htmlBuilder(e,t){var n=Upt(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,s=Br(r,t),o,l,u=t.fontMetrics(),d=0,f=0,p=r&&Nn.isCharacterBox(r);if(i){var g=t.havingStyle(t.style.sup());o=Br(i,g,t),p||(d=s.height-g.fontMetrics().supDrop*g.sizeMultiplier/t.sizeMultiplier)}if(a){var O=t.havingStyle(t.style.sub());l=Br(a,O,t),p||(f=s.depth+O.fontMetrics().subDrop*O.sizeMultiplier/t.sizeMultiplier)}var S;t.style===Ln.DISPLAY?S=u.sup1:t.style.cramped?S=u.sup3:S=u.sup2;var T=t.sizeMultiplier,w=Qt(.5/u.ptPerEm/T),x=null;if(l){var k=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(s instanceof Cc||k)&&(x=Qt(-s.italic))}var _;if(o&&l){d=Math.max(d,S,o.depth+.25*u.xHeight),f=Math.max(f,u.sub2);var R=u.defaultRuleThickness,N=4*R;if(d-o.depth-(l.height-f)0&&(d+=P,f-=P)}var L=[{type:"elem",elem:l,shift:f,marginRight:w,marginLeft:x},{type:"elem",elem:o,shift:-d,marginRight:w}];_=Qe.makeVList({positionType:"individualShift",children:L},t)}else if(l){f=Math.max(f,u.sub1,l.height-.8*u.xHeight);var j=[{type:"elem",elem:l,marginLeft:x,marginRight:w}];_=Qe.makeVList({positionType:"shift",positionData:f,children:j},t)}else if(o)d=Math.max(d,S,o.depth+.25*u.xHeight),_=Qe.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:o,marginRight:w}]},t);else throw new Error("supsub must have either sup or sub.");var B=dM(s,"right")||"mord";return Qe.makeSpan([B],[s,Qe.makeSpan(["msupsub"],[_])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[Si(e.base,t)];e.sub&&a.push(Si(e.sub,t)),e.sup&&a.push(Si(e.sup,t));var s;if(n)s=r?"mover":"munder";else if(e.sub)if(e.sup){var u=e.base;u&&u.type==="op"&&u.limits&&t.style===Ln.DISPLAY||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(t.style===Ln.DISPLAY||u.limits)?s="munderover":s="msubsup"}else{var l=e.base;l&&l.type==="op"&&l.limits&&(t.style===Ln.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||t.style===Ln.DISPLAY)?s="munder":s="msub"}else{var o=e.base;o&&o.type==="op"&&o.limits&&(t.style===Ln.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||t.style===Ln.DISPLAY)?s="mover":s="msup"}return new Nt.MathNode(s,a)}});q1({type:"atom",htmlBuilder(e,t){return Qe.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new Nt.MathNode("mo",[Rc(e.text,e.mode)]);if(e.family==="bin"){var r=mW(e,t);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var s1e={mi:"italic",mn:"normal",mtext:"normal"};q1({type:"mathord",htmlBuilder(e,t){return Qe.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var n=new Nt.MathNode("mi",[Rc(e.text,e.mode,t)]),r=mW(e,t)||"italic";return r!==s1e[n.type]&&n.setAttribute("mathvariant",r),n}});q1({type:"textord",htmlBuilder(e,t){return Qe.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var n=Rc(e.text,e.mode,t),r=mW(e,t)||"normal",i;return e.mode==="text"?i=new Nt.MathNode("mtext",[n]):/[0-9]/.test(e.text)?i=new Nt.MathNode("mn",[n]):e.text==="\\prime"?i=new Nt.MathNode("mo",[n]):i=new Nt.MathNode("mi",[n]),r!==s1e[i.type]&&i.setAttribute("mathvariant",r),i}});var T7={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},x7={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};q1({type:"spacing",htmlBuilder(e,t){if(x7.hasOwnProperty(e.text)){var n=x7[e.text].className||"";if(e.mode==="text"){var r=Qe.makeOrd(e,t,"textord");return r.classes.push(n),r}else return Qe.makeSpan(["mspace",n],[Qe.mathsym(e.text,e.mode,t)],t)}else{if(T7.hasOwnProperty(e.text))return Qe.makeSpan(["mspace",T7[e.text]],[],t);throw new Mt('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(x7.hasOwnProperty(e.text))n=new Nt.MathNode("mtext",[new Nt.TextNode(" ")]);else{if(T7.hasOwnProperty(e.text))return new Nt.MathNode("mspace");throw new Mt('Unknown type of space "'+e.text+'"')}return n}});var jte=()=>{var e=new Nt.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};q1({type:"tag",mathmlBuilder(e,t){var n=new Nt.MathNode("mtable",[new Nt.MathNode("mtr",[jte(),new Nt.MathNode("mtd",[pm(e.body,t)]),jte(),new Nt.MathNode("mtd",[pm(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var Hte={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Qte={"\\textbf":"textbf","\\textmd":"textmd"},zpt={"\\textit":"textit","\\textup":"textup"},Wte=(e,t)=>{var n=e.font;if(n){if(Hte[n])return t.withTextFontFamily(Hte[n]);if(Qte[n])return t.withTextFontWeight(Qte[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(zpt[n])};nn({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"text",mode:n.mode,body:Ma(i),font:r}},htmlBuilder(e,t){var n=Wte(e,t),r=us(e.body,n,!0);return Qe.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=Wte(e,t);return pm(e.body,n)}});nn({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Br(e.body,t),r=Qe.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=Qe.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]},t);return Qe.makeSpan(["mord","underline"],[a],t)},mathmlBuilder(e,t){var n=new Nt.MathNode("mo",[new Nt.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new Nt.MathNode("munder",[Si(e.body,t),n]);return r.setAttribute("accentunder","true"),r}});nn({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Br(e.body,t),r=t.fontMetrics().axisHeight,i=.5*(n.height-r-(n.depth+r));return Qe.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){return new Nt.MathNode("mpadded",[Si(e.body,t)],["vcenter"])}});nn({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new Mt("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=Vte(e),r=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?"␣":" "),$0=Cge,o1e=`[ \r - ]`,jpt="\\\\[a-zA-Z@]+",Hpt="\\\\[^\uD800-\uDFFF]",Qpt="("+jpt+")"+o1e+"*",Wpt=`\\\\( -|[ \r ]+ -?)[ \r ]*`,mM="[̀-ͯ]",Vpt=new RegExp(mM+"+$"),qpt="("+o1e+"+)|"+(Wpt+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(mM+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(mM+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Qpt)+("|"+Hpt+")");class qte{constructor(t,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=n,this.tokenRegex=new RegExp(qpt,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,n){this.catcodes[t]=n}lex(){var t=this.input,n=this.tokenRegex.lastIndex;if(n===t.length)return new wc("EOF",new uu(this,n,n));var r=this.tokenRegex.exec(t);if(r===null||r.index!==n)throw new Mt("Unexpected character: '"+t[n]+"'",new wc(t[n],new uu(this,n,n+1)));var i=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=t.indexOf(` -`,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new wc(i,new uu(this,n,this.tokenRegex.lastIndex))}}class Gpt{constructor(t,n){t===void 0&&(t={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=n,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Mt("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var n in t)t.hasOwnProperty(n)&&(t[n]==null?delete this.current[n]:this.current[n]=t[n])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,n,r){if(r===void 0&&(r=!1),r){for(var i=0;i0&&(this.undefStack[this.undefStack.length-1][t]=n)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(t)&&(a[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var Ypt=Zge;oe("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});oe("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});oe("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});oe("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});oe("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});oe("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");oe("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Gte={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};oe("\\char",function(e){var t=e.popToken(),n,r="";if(t.text==="'")n=8,t=e.popToken();else if(t.text==='"')n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")r=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new Mt("\\char` missing argument");r=t.text.charCodeAt(0)}else n=10;if(n){if(r=Gte[t.text],r==null||r>=n)throw new Mt("Invalid base-"+n+" digit "+t.text);for(var i;(i=Gte[e.future().text])!=null&&i{var r=e.consumeArg().tokens;if(r.length!==1)throw new Mt("\\newcommand's first argument must be a macro name");var i=r[0].text,a=e.isDefined(i);if(a&&!t)throw new Mt("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!a&&!n)throw new Mt("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var s=0;if(r=e.consumeArg().tokens,r.length===1&&r[0].text==="["){for(var o="",l=e.expandNextToken();l.text!=="]"&&l.text!=="EOF";)o+=l.text,l=e.expandNextToken();if(!o.match(/^\s*[0-9]+\s*$/))throw new Mt("Invalid number of arguments: "+o);s=parseInt(o),r=e.consumeArg().tokens}return e.macros.set(i,{tokens:r,numArgs:s}),""};oe("\\newcommand",e=>xW(e,!1,!0));oe("\\renewcommand",e=>xW(e,!0,!1));oe("\\providecommand",e=>xW(e,!0,!0));oe("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});oe("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});oe("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),$0[n],Ci.math[n],Ci.text[n]),""});oe("\\bgroup","{");oe("\\egroup","}");oe("~","\\nobreakspace");oe("\\lq","`");oe("\\rq","'");oe("\\aa","\\r a");oe("\\AA","\\r A");oe("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");oe("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");oe("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");oe("ℬ","\\mathscr{B}");oe("ℰ","\\mathscr{E}");oe("ℱ","\\mathscr{F}");oe("ℋ","\\mathscr{H}");oe("ℐ","\\mathscr{I}");oe("ℒ","\\mathscr{L}");oe("ℳ","\\mathscr{M}");oe("ℛ","\\mathscr{R}");oe("ℭ","\\mathfrak{C}");oe("ℌ","\\mathfrak{H}");oe("ℨ","\\mathfrak{Z}");oe("\\Bbbk","\\Bbb{k}");oe("·","\\cdotp");oe("\\llap","\\mathllap{\\textrm{#1}}");oe("\\rlap","\\mathrlap{\\textrm{#1}}");oe("\\clap","\\mathclap{\\textrm{#1}}");oe("\\mathstrut","\\vphantom{(}");oe("\\underbar","\\underline{\\text{#1}}");oe("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');oe("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");oe("\\ne","\\neq");oe("≠","\\neq");oe("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");oe("∉","\\notin");oe("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");oe("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");oe("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");oe("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");oe("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");oe("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");oe("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");oe("⟂","\\perp");oe("‼","\\mathclose{!\\mkern-0.8mu!}");oe("∌","\\notni");oe("⌜","\\ulcorner");oe("⌝","\\urcorner");oe("⌞","\\llcorner");oe("⌟","\\lrcorner");oe("©","\\copyright");oe("®","\\textregistered");oe("️","\\textregistered");oe("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');oe("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');oe("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');oe("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');oe("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}");oe("⋮","\\vdots");oe("\\varGamma","\\mathit{\\Gamma}");oe("\\varDelta","\\mathit{\\Delta}");oe("\\varTheta","\\mathit{\\Theta}");oe("\\varLambda","\\mathit{\\Lambda}");oe("\\varXi","\\mathit{\\Xi}");oe("\\varPi","\\mathit{\\Pi}");oe("\\varSigma","\\mathit{\\Sigma}");oe("\\varUpsilon","\\mathit{\\Upsilon}");oe("\\varPhi","\\mathit{\\Phi}");oe("\\varPsi","\\mathit{\\Psi}");oe("\\varOmega","\\mathit{\\Omega}");oe("\\substack","\\begin{subarray}{c}#1\\end{subarray}");oe("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");oe("\\boxed","\\fbox{$\\displaystyle{#1}$}");oe("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");oe("\\implies","\\DOTSB\\;\\Longrightarrow\\;");oe("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Yte={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};oe("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in Yte?t=Yte[n]:(n.slice(0,4)==="\\not"||n in Ci.math&&Nn.contains(["bin","rel"],Ci.math[n].group))&&(t="\\dotsb"),t});var kW={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};oe("\\dotso",function(e){var t=e.future().text;return t in kW?"\\ldots\\,":"\\ldots"});oe("\\dotsc",function(e){var t=e.future().text;return t in kW&&t!==","?"\\ldots\\,":"\\ldots"});oe("\\cdots",function(e){var t=e.future().text;return t in kW?"\\@cdots\\,":"\\@cdots"});oe("\\dotsb","\\cdots");oe("\\dotsm","\\cdots");oe("\\dotsi","\\!\\cdots");oe("\\dotsx","\\ldots\\,");oe("\\DOTSI","\\relax");oe("\\DOTSB","\\relax");oe("\\DOTSX","\\relax");oe("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");oe("\\,","\\tmspace+{3mu}{.1667em}");oe("\\thinspace","\\,");oe("\\>","\\mskip{4mu}");oe("\\:","\\tmspace+{4mu}{.2222em}");oe("\\medspace","\\:");oe("\\;","\\tmspace+{5mu}{.2777em}");oe("\\thickspace","\\;");oe("\\!","\\tmspace-{3mu}{.1667em}");oe("\\negthinspace","\\!");oe("\\negmedspace","\\tmspace-{4mu}{.2222em}");oe("\\negthickspace","\\tmspace-{5mu}{.277em}");oe("\\enspace","\\kern.5em ");oe("\\enskip","\\hskip.5em\\relax");oe("\\quad","\\hskip1em\\relax");oe("\\qquad","\\hskip2em\\relax");oe("\\tag","\\@ifstar\\tag@literal\\tag@paren");oe("\\tag@paren","\\tag@literal{({#1})}");oe("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Mt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});oe("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");oe("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");oe("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");oe("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");oe("\\newline","\\\\\\relax");oe("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var l1e=Qt(xf["Main-Regular"][84][1]-.7*xf["Main-Regular"][65][1]);oe("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+l1e+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");oe("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+l1e+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");oe("\\hspace","\\@ifstar\\@hspacer\\@hspace");oe("\\@hspace","\\hskip #1\\relax");oe("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");oe("\\ordinarycolon",":");oe("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");oe("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');oe("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');oe("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');oe("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');oe("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');oe("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');oe("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');oe("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');oe("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');oe("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');oe("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');oe("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');oe("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');oe("∷","\\dblcolon");oe("∹","\\eqcolon");oe("≔","\\coloneqq");oe("≕","\\eqqcolon");oe("⩴","\\Coloneqq");oe("\\ratio","\\vcentcolon");oe("\\coloncolon","\\dblcolon");oe("\\colonequals","\\coloneqq");oe("\\coloncolonequals","\\Coloneqq");oe("\\equalscolon","\\eqqcolon");oe("\\equalscoloncolon","\\Eqqcolon");oe("\\colonminus","\\coloneq");oe("\\coloncolonminus","\\Coloneq");oe("\\minuscolon","\\eqcolon");oe("\\minuscoloncolon","\\Eqcolon");oe("\\coloncolonapprox","\\Colonapprox");oe("\\coloncolonsim","\\Colonsim");oe("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");oe("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");oe("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");oe("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");oe("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");oe("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");oe("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");oe("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");oe("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");oe("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");oe("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");oe("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");oe("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");oe("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");oe("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");oe("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");oe("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");oe("\\nleqq","\\html@mathml{\\@nleqq}{≰}");oe("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");oe("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");oe("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");oe("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");oe("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");oe("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");oe("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");oe("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");oe("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");oe("\\imath","\\html@mathml{\\@imath}{ı}");oe("\\jmath","\\html@mathml{\\@jmath}{ȷ}");oe("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");oe("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");oe("⟦","\\llbracket");oe("⟧","\\rrbracket");oe("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");oe("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");oe("⦃","\\lBrace");oe("⦄","\\rBrace");oe("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");oe("⦵","\\minuso");oe("\\darr","\\downarrow");oe("\\dArr","\\Downarrow");oe("\\Darr","\\Downarrow");oe("\\lang","\\langle");oe("\\rang","\\rangle");oe("\\uarr","\\uparrow");oe("\\uArr","\\Uparrow");oe("\\Uarr","\\Uparrow");oe("\\N","\\mathbb{N}");oe("\\R","\\mathbb{R}");oe("\\Z","\\mathbb{Z}");oe("\\alef","\\aleph");oe("\\alefsym","\\aleph");oe("\\Alpha","\\mathrm{A}");oe("\\Beta","\\mathrm{B}");oe("\\bull","\\bullet");oe("\\Chi","\\mathrm{X}");oe("\\clubs","\\clubsuit");oe("\\cnums","\\mathbb{C}");oe("\\Complex","\\mathbb{C}");oe("\\Dagger","\\ddagger");oe("\\diamonds","\\diamondsuit");oe("\\empty","\\emptyset");oe("\\Epsilon","\\mathrm{E}");oe("\\Eta","\\mathrm{H}");oe("\\exist","\\exists");oe("\\harr","\\leftrightarrow");oe("\\hArr","\\Leftrightarrow");oe("\\Harr","\\Leftrightarrow");oe("\\hearts","\\heartsuit");oe("\\image","\\Im");oe("\\infin","\\infty");oe("\\Iota","\\mathrm{I}");oe("\\isin","\\in");oe("\\Kappa","\\mathrm{K}");oe("\\larr","\\leftarrow");oe("\\lArr","\\Leftarrow");oe("\\Larr","\\Leftarrow");oe("\\lrarr","\\leftrightarrow");oe("\\lrArr","\\Leftrightarrow");oe("\\Lrarr","\\Leftrightarrow");oe("\\Mu","\\mathrm{M}");oe("\\natnums","\\mathbb{N}");oe("\\Nu","\\mathrm{N}");oe("\\Omicron","\\mathrm{O}");oe("\\plusmn","\\pm");oe("\\rarr","\\rightarrow");oe("\\rArr","\\Rightarrow");oe("\\Rarr","\\Rightarrow");oe("\\real","\\Re");oe("\\reals","\\mathbb{R}");oe("\\Reals","\\mathbb{R}");oe("\\Rho","\\mathrm{P}");oe("\\sdot","\\cdot");oe("\\sect","\\S");oe("\\spades","\\spadesuit");oe("\\sub","\\subset");oe("\\sube","\\subseteq");oe("\\supe","\\supseteq");oe("\\Tau","\\mathrm{T}");oe("\\thetasym","\\vartheta");oe("\\weierp","\\wp");oe("\\Zeta","\\mathrm{Z}");oe("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");oe("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");oe("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");oe("\\bra","\\mathinner{\\langle{#1}|}");oe("\\ket","\\mathinner{|{#1}\\rangle}");oe("\\braket","\\mathinner{\\langle{#1}\\rangle}");oe("\\Bra","\\left\\langle#1\\right|");oe("\\Ket","\\left|#1\\right\\rangle");var u1e=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,s=t.macros.get("|"),o=t.macros.get("\\|");t.macros.beginGroup();var l=f=>p=>{e&&(p.macros.set("|",s),i.length&&p.macros.set("\\|",o));var g=f;if(!f&&i.length){var O=p.future();O.text==="|"&&(p.popToken(),g=!0)}return{tokens:g?i:r,numArgs:0}};t.macros.set("|",l(!1)),i.length&&t.macros.set("\\|",l(!0));var u=t.consumeArg().tokens,d=t.expandTokens([...a,...u,...n]);return t.macros.endGroup(),{tokens:d.reverse(),numArgs:0}};oe("\\bra@ket",u1e(!1));oe("\\bra@set",u1e(!0));oe("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");oe("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");oe("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");oe("\\angln","{\\angl n}");oe("\\blue","\\textcolor{##6495ed}{#1}");oe("\\orange","\\textcolor{##ffa500}{#1}");oe("\\pink","\\textcolor{##ff00af}{#1}");oe("\\red","\\textcolor{##df0030}{#1}");oe("\\green","\\textcolor{##28ae7b}{#1}");oe("\\gray","\\textcolor{gray}{#1}");oe("\\purple","\\textcolor{##9d38bd}{#1}");oe("\\blueA","\\textcolor{##ccfaff}{#1}");oe("\\blueB","\\textcolor{##80f6ff}{#1}");oe("\\blueC","\\textcolor{##63d9ea}{#1}");oe("\\blueD","\\textcolor{##11accd}{#1}");oe("\\blueE","\\textcolor{##0c7f99}{#1}");oe("\\tealA","\\textcolor{##94fff5}{#1}");oe("\\tealB","\\textcolor{##26edd5}{#1}");oe("\\tealC","\\textcolor{##01d1c1}{#1}");oe("\\tealD","\\textcolor{##01a995}{#1}");oe("\\tealE","\\textcolor{##208170}{#1}");oe("\\greenA","\\textcolor{##b6ffb0}{#1}");oe("\\greenB","\\textcolor{##8af281}{#1}");oe("\\greenC","\\textcolor{##74cf70}{#1}");oe("\\greenD","\\textcolor{##1fab54}{#1}");oe("\\greenE","\\textcolor{##0d923f}{#1}");oe("\\goldA","\\textcolor{##ffd0a9}{#1}");oe("\\goldB","\\textcolor{##ffbb71}{#1}");oe("\\goldC","\\textcolor{##ff9c39}{#1}");oe("\\goldD","\\textcolor{##e07d10}{#1}");oe("\\goldE","\\textcolor{##a75a05}{#1}");oe("\\redA","\\textcolor{##fca9a9}{#1}");oe("\\redB","\\textcolor{##ff8482}{#1}");oe("\\redC","\\textcolor{##f9685d}{#1}");oe("\\redD","\\textcolor{##e84d39}{#1}");oe("\\redE","\\textcolor{##bc2612}{#1}");oe("\\maroonA","\\textcolor{##ffbde0}{#1}");oe("\\maroonB","\\textcolor{##ff92c6}{#1}");oe("\\maroonC","\\textcolor{##ed5fa6}{#1}");oe("\\maroonD","\\textcolor{##ca337c}{#1}");oe("\\maroonE","\\textcolor{##9e034e}{#1}");oe("\\purpleA","\\textcolor{##ddd7ff}{#1}");oe("\\purpleB","\\textcolor{##c6b9fc}{#1}");oe("\\purpleC","\\textcolor{##aa87ff}{#1}");oe("\\purpleD","\\textcolor{##7854ab}{#1}");oe("\\purpleE","\\textcolor{##543b78}{#1}");oe("\\mintA","\\textcolor{##f5f9e8}{#1}");oe("\\mintB","\\textcolor{##edf2df}{#1}");oe("\\mintC","\\textcolor{##e0e5cc}{#1}");oe("\\grayA","\\textcolor{##f6f7f7}{#1}");oe("\\grayB","\\textcolor{##f0f1f2}{#1}");oe("\\grayC","\\textcolor{##e3e5e6}{#1}");oe("\\grayD","\\textcolor{##d6d8da}{#1}");oe("\\grayE","\\textcolor{##babec2}{#1}");oe("\\grayF","\\textcolor{##888d93}{#1}");oe("\\grayG","\\textcolor{##626569}{#1}");oe("\\grayH","\\textcolor{##3b3e40}{#1}");oe("\\grayI","\\textcolor{##21242c}{#1}");oe("\\kaBlue","\\textcolor{##314453}{#1}");oe("\\kaGreen","\\textcolor{##71B307}{#1}");var c1e={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Zpt{constructor(t,n,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=n,this.expansionCount=0,this.feed(t),this.macros=new Gpt(Ypt,n.macros),this.mode=r,this.stack=[]}feed(t){this.lexer=new qte(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var n,r,i;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:i,end:r}=this.consumeArg(["]"])}else({tokens:i,start:n,end:r}=this.consumeArg());return this.pushToken(new wc("EOF",r.loc)),this.pushTokens(i),n.range(r,"")}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var n=[],r=t&&t.length>0;r||this.consumeSpaces();var i=this.future(),a,s=0,o=0;do{if(a=this.popToken(),n.push(a),a.text==="{")++s;else if(a.text==="}"){if(--s,s===-1)throw new Mt("Extra }",a)}else if(a.text==="EOF")throw new Mt("Unexpected end of input in a macro argument, expected '"+(t&&r?t[o]:"}")+"'",a);if(t&&r)if((s===0||s===1&&t[o]==="{")&&a.text===t[o]){if(++o,o===t.length){n.splice(-o,o);break}}else o=0}while(s!==0||r);return i.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:i,end:a}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new Mt("The length of delimiters doesn't match the number of args!");for(var r=n[0],i=0;ithis.settings.maxExpand)throw new Mt("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var n=this.popToken(),r=n.text,i=n.noexpand?null:this._getExpansion(r);if(i==null||t&&i.unexpandable){if(t&&i==null&&r[0]==="\\"&&!this.isDefined(r))throw new Mt("Undefined control sequence: "+r);return this.pushToken(n),!1}this.countExpansion(1);var a=i.tokens,s=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var o=a.length-1;o>=0;--o){var l=a[o];if(l.text==="#"){if(o===0)throw new Mt("Incomplete placeholder at end of macro body",l);if(l=a[--o],l.text==="#")a.splice(o+1,1);else if(/^[1-9]$/.test(l.text))a.splice(o,2,...s[+l.text-1]);else throw new Mt("Not a valid argument number",l)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new wc(t)]):void 0}expandTokens(t){var n=[],r=this.stack.length;for(this.pushTokens(t);this.stack.length>r;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),n.push(i)}return this.countExpansion(n.length),n}expandMacroAsText(t){var n=this.expandMacro(t);return n&&n.map(r=>r.text).join("")}_getExpansion(t){var n=this.macros.get(t);if(n==null)return n;if(t.length===1){var r=this.lexer.catcodes[t];if(r!=null&&r!==13)return}var i=typeof n=="function"?n(this):n;if(typeof i=="string"){var a=0;if(i.indexOf("#")!==-1)for(var s=i.replace(/##/g,"");s.indexOf("#"+(a+1))!==-1;)++a;for(var o=new qte(i,this.settings),l=[],u=o.lex();u.text!=="EOF";)l.push(u),u=o.lex();l.reverse();var d={tokens:l,numArgs:a};return d}return i}isDefined(t){return this.macros.has(t)||$0.hasOwnProperty(t)||Ci.math.hasOwnProperty(t)||Ci.text.hasOwnProperty(t)||c1e.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:$0.hasOwnProperty(t)&&!$0[t].primitive}}var Zte=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,b4=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),k7={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},Xte={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class kI{constructor(t,n){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Zpt(t,n,this.mode),this.settings=n,this.leftrightDepth=0}expect(t,n){if(n===void 0&&(n=!0),this.fetch().text!==t)throw new Mt("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());n&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var n=this.nextToken;this.consume(),this.gullet.pushToken(new wc("}")),this.gullet.pushTokens(t);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,r}parseExpression(t,n){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(kI.endOfExpression.indexOf(i.text)!==-1||n&&i.text===n||t&&$0[i.text]&&$0[i.text].infix)break;var a=this.parseAtom(n);if(a){if(a.type==="internal")continue}else break;r.push(a)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(t){for(var n=-1,r,i=0;i=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var o=Ci[this.mode][n].group,l=uu.range(t),u;if(Fht.hasOwnProperty(o)){var d=o;u={type:"atom",mode:this.mode,family:d,loc:l,text:n}}else u={type:o,mode:this.mode,loc:l,text:n};s=u}else if(n.charCodeAt(0)>=128)this.settings.strict&&(vge(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),t)),s={type:"textord",mode:"text",loc:uu.range(t),text:n};else return null;if(this.consume(),a)for(var f=0;f0&&(a.properties.rel=[...p]),g&&(a.properties.target=g),d){const S=TE(t.contentProperties,a)||{};a.children.push({type:"element",tagName:"span",properties:Ed(S),children:Ed(d)})}}}})}}function TE(e,t){return typeof e=="function"?e(t):e}function o0t(e,t){return h1e(e,{})||{type:"root",children:[]}}function h1e(e,t){const n=l0t(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function l0t(e,t){switch(e.nodeType){case 1:return f0t(e,t);case 3:return c0t(e);case 8:return d0t(e);case 9:return Kte(e,t);case 10:return u0t();case 11:return Kte(e,t);default:return}}function Kte(e,t){return{type:"root",children:p1e(e,t)}}function u0t(){return{type:"doctype"}}function c0t(e){return{type:"text",value:e.nodeValue||""}}function d0t(e){return{type:"comment",value:e.nodeValue||""}}function f0t(e,t){const n=e.namespaceURI,r=n===wf.svg?D0e:N0e,i=n===wf.html?e.tagName.toLowerCase():e.tagName,a=n===wf.html&&i==="template"?e.content:e,s=e.getAttributeNames(),o={};let l=-1;for(;++lu&&(u=d):d&&(u!==void 0&&u>-1&&l.push(` -`.repeat(u)||" "),u=-1,l.push(d))}return l.join("")}function g1e(e,t,n){return e.type==="element"?y0t(e,t,n):e.type==="text"?n.whitespace==="normal"?b1e(e,n):v0t(e):[]}function y0t(e,t,n){const r=y1e(e,n),i=e.children||[];let a=-1,s=[];if(g0t(e))return s;let o,l;for(gM(e)||rne(e)&&Jte(t,e,rne)?l=` -`:m0t(e)?(o=2,l=2):m1e(e)&&(o=1,l=1);++a"),a={type:"comment",value:r<0?n:n.slice(0,r)};return mx(a,t),a}}function C0t(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return mx(n,t),n}}function R0t(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const r=O1e(e,t.children),i=D0t(e,t.properties);e.stack.pop();let a=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(a=!0,e.schema.ancestors&&d0.call(e.schema.ancestors,n))){const o=e.schema.ancestors[n];let l=-1;for(a=!1;++l1){let i=!1,a=0;for(;++a-1&&a>l||s>-1&&a>s||o>-1&&a>o)return!0;let u=-1;for(;++u4&&t.slice(0,4).toLowerCase()==="data")return n}function M0t(e){return function(t){return A0t(t,e)}}function $0t(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:o,mathText:s,mathTextData:o}};function e(l){const u={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[u]}},l)}function t(){this.buffer()}function n(){const l=this.resume(),u=this.stack[this.stack.length-1];u.type,u.meta=l}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(l){const u=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),d=this.stack[this.stack.length-1];d.type,this.exit(l),d.value=u;const f=d.data.hChildren[0];f.type,f.tagName,f.children.push({type:"text",value:u}),this.data.mathFlowInside=void 0}function a(l){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},l),this.buffer()}function s(l){const u=this.resume(),d=this.stack[this.stack.length-1];d.type,this.exit(l),d.value=u,d.data.hChildren.push({type:"text",value:u})}function o(l){this.config.enter.data.call(this,l),this.config.exit.data.call(this,l)}}function F0t(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),r.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:` -`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:r}};function n(a,s,o,l){const u=a.value||"",d=o.createTracker(l),f="$".repeat(Math.max(Gme(u,"$")+1,2)),p=o.enter("mathFlow");let g=d.move(f);if(a.meta){const O=o.enter("mathFlowMeta");g+=d.move(o.safe(a.meta,{after:` -`,before:g,encode:["$"],...d.current()})),O()}return g+=d.move(` -`),u&&(g+=d.move(u+` -`)),g+=d.move(f),p(),g}function r(a,s,o){let l=a.value||"",u=1;for(t||u++;new RegExp("(^|[^$])"+"\\$".repeat(u)+"([^$]|$)").test(l);)u++;const d="$".repeat(u);/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^\$|\$$/.test(l))&&(l=" "+l+" ");let f=-1;for(;++f{if(!t.doc)return;const i=()=>{var o,l;const s=((l=(o=t.doc)==null?void 0:o.getRoot().content)==null?void 0:l.toString())||"";r(sM(s))};i();const a=t.doc.subscribe("$.content",()=>{i()});return()=>{a(),r("")}},[t.doc]),t!=null&&t.doc?I.jsx(bge,{source:sM(n),wrapperElement:{"data-color-mode":e,style:{whiteSpace:"wrap !important",WebkitUserModify:"read-only"}},remarkPlugins:[q0t],rehypePlugins:[[M0t,{...MC,attributes:{...MC.attributes,code:[["className",/^language-./,"math-inline","math-display"]]}}],k0t,[s0t,{target:"_blank"}]],components:{code:({children:i=[],className:a,...s})=>{if(typeof i=="string"&&/^\$\$(.*)\$\$/.test(i)){const l=LC.renderToString(i.replace(/^\$\$(.*)\$\$/,"$1"),{throwOnError:!1});return I.jsx("code",{dangerouslySetInnerHTML:{__html:l},style:{background:"transparent"}})}const o=s.node&&s.node.children?zQ(s.node.children):i;if(typeof o=="string"&&typeof a=="string"&&/^language-katex/.test(a.toLocaleLowerCase())){const l=LC.renderToString(o,{throwOnError:!1});return I.jsx("code",{style:{fontSize:"150%"},dangerouslySetInnerHTML:{__html:l}})}return I.jsx("code",{className:String(a),children:i})}}}):I.jsx(Bn,{direction:"row",justifyContent:"center",children:I.jsx(kd,{sx:{mt:2}})})}function E1e(){const e=Pr(vp),t=FZe();return!e.doc||!e.client?I.jsx(rO,{open:!0,children:I.jsx(kd,{color:"inherit"})}):I.jsxs(I.Fragment,{children:[I.jsx("div",{className:"wmde-markdown-var"}),e.mode==="both"&&I.jsx(IZe,{axis:"x",initial:t/2,min:400,children:({position:n,separatorProps:r})=>I.jsx(ML.ScrollSync,{children:I.jsxs("div",{id:"wrapper",style:{display:"flex",height:"100%",overflow:"hidden"},children:[I.jsx("div",{id:"left-block",style:{width:n},children:I.jsx(bte,{})}),I.jsx(Gs,{id:"splitter",...r,sx:{height:"100%",width:8,borderRadius:0,cursor:"col-resize",zIndex:0}}),I.jsx(ML.ScrollSyncPane,{children:I.jsx("div",{className:"right-block",style:{width:`calc(100% - ${n}px)`,overflow:"auto"},children:I.jsx(ea,{sx:{p:4},height:"100%",children:I.jsx(one,{})})})})]})})}),e.mode==="read"&&I.jsx(ea,{sx:{p:4,overflow:"auto"},height:"100%",children:I.jsx(one,{})}),e.mode==="edit"&&I.jsx(bte,{})]})}var w1e={exports:{}},G0t={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},T1e={exports:{}},Y0t=function(t){return!t||typeof t=="string"?!1:t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")},Z0t=Y0t,X0t=Array.prototype.concat,K0t=Array.prototype.slice,lne=T1e.exports=function(t){for(var n=[],r=0,i=t.length;r=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"};Ou.to.keyword=function(e){return k1e[e.slice(0,3)]};function J0(e,t,n){return Math.min(Math.max(t,e),n)}function y4(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var emt=w1e.exports,tmt={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const eT=tmt,A1e={};for(const e of Object.keys(eT))A1e[eT[e]]=e;const yn={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var _1e=yn;for(const e of Object.keys(yn)){if(!("channels"in yn[e]))throw new Error("missing channels property: "+e);if(!("labels"in yn[e]))throw new Error("missing channel labels property: "+e);if(yn[e].labels.length!==yn[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=yn[e];delete yn[e].channels,delete yn[e].labels,Object.defineProperty(yn[e],"channels",{value:t}),Object.defineProperty(yn[e],"labels",{value:n})}yn.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),s=a-i;let o,l;a===i?o=0:t===a?o=(n-r)/s:n===a?o=2+(r-t)/s:r===a&&(o=4+(t-n)/s),o=Math.min(o*60,360),o<0&&(o+=360);const u=(i+a)/2;return a===i?l=0:u<=.5?l=s/(a+i):l=s/(2-a-i),[o,l*100,u*100]};yn.rgb.hsv=function(e){let t,n,r,i,a;const s=e[0]/255,o=e[1]/255,l=e[2]/255,u=Math.max(s,o,l),d=u-Math.min(s,o,l),f=function(p){return(u-p)/6/d+1/2};return d===0?(i=0,a=0):(a=d/u,t=f(s),n=f(o),r=f(l),s===u?i=r-n:o===u?i=1/3+t-r:l===u&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[i*360,a*100,u*100]};yn.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const i=yn.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,a*100,r*100]};yn.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r),a=(1-t-i)/(1-i)||0,s=(1-n-i)/(1-i)||0,o=(1-r-i)/(1-i)||0;return[a*100,s*100,o*100,i*100]};function nmt(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}yn.rgb.keyword=function(e){const t=A1e[e];if(t)return t;let n=1/0,r;for(const i of Object.keys(eT)){const a=eT[i],s=nmt(e,a);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const i=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[i*100,a*100,s*100]};yn.rgb.lab=function(e){const t=yn.rgb.xyz(e);let n=t[0],r=t[1],i=t[2];n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;const a=116*r-16,s=500*(n-r),o=200*(r-i);return[a,s,o]};yn.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let i,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?i=r*(1+n):i=r+n-r*n;const o=2*r-i,l=[0,0,0];for(let u=0;u<3;u++)a=t+1/3*-(u-1),a<0&&a++,a>1&&a--,6*a<1?s=o+(i-o)*6*a:2*a<1?s=i:3*a<2?s=o+(i-o)*(2/3-a)*6:s=o,l[u]=s*255;return l};yn.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,i=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=a<=1?a:2-a;const s=(r+n)/2,o=r===0?2*i/(a+i):2*n/(r+n);return[t,o*100,s*100]};yn.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const i=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),o=255*r*(1-n*a),l=255*r*(1-n*(1-a));switch(r*=255,i){case 0:return[r,l,s];case 1:return[o,r,s];case 2:return[s,r,l];case 3:return[s,o,r];case 4:return[l,s,r];case 5:return[r,s,o]}};yn.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01);let a,s;s=(2-n)*r;const o=(2-n)*i;return a=n*i,a/=o<=1?o:2-o,a=a||0,s/=2,[t,a*100,s*100]};yn.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const i=n+r;let a;i>1&&(n/=i,r/=i);const s=Math.floor(6*t),o=1-r;a=6*t-s,s&1&&(a=1-a);const l=n+a*(o-n);let u,d,f;switch(s){default:case 6:case 0:u=o,d=l,f=n;break;case 1:u=l,d=o,f=n;break;case 2:u=n,d=o,f=l;break;case 3:u=n,d=l,f=o;break;case 4:u=l,d=n,f=o;break;case 5:u=o,d=n,f=l;break}return[u*255,d*255,f*255]};yn.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100,a=1-Math.min(1,t*(1-i)+i),s=1-Math.min(1,n*(1-i)+i),o=1-Math.min(1,r*(1-i)+i);return[a*255,s*255,o*255]};yn.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let i,a,s;return i=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[i*255,a*255,s*255]};yn.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const i=116*n-16,a=500*(t-n),s=200*(n-r);return[i,a,s]};yn.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let i,a,s;a=(t+16)/116,i=n/500+a,s=a-r/200;const o=a**3,l=i**3,u=s**3;return a=o>.008856?o:(a-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,s=u>.008856?u:(s-16/116)/7.787,i*=95.047,a*=100,s*=108.883,[i,a,s]};yn.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let i;i=Math.atan2(r,n)*360/2/Math.PI,i<0&&(i+=360);const s=Math.sqrt(n*n+r*r);return[t,s,i]};yn.lch.lab=function(e){const t=e[0],n=e[1],i=e[2]/360*2*Math.PI,a=n*Math.cos(i),s=n*Math.sin(i);return[t,a,s]};yn.rgb.ansi16=function(e,t=null){const[n,r,i]=e;let a=t===null?yn.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};yn.hsv.ansi16=function(e){return yn.rgb.ansi16(yn.hsv.rgb(e),e[2])};yn.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};yn.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,i=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,i,a]};yn.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[n,r,i]};yn.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};yn.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(o=>o+o).join(""));const r=parseInt(n,16),i=r>>16&255,a=r>>8&255,s=r&255;return[i,a,s]};yn.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=i-a;let o,l;return s<1?o=a/(1-s):o=0,s<=0?l=0:i===t?l=(n-r)/s%6:i===n?l=2+(r-t)/s:l=4+(t-n)/s,l/=6,l%=1,[l*360,s*100,o*100]};yn.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let i=0;return r<1&&(i=(n-.5*r)/(1-r)),[e[0],r*100,i*100]};yn.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],r*100,i*100]};yn.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const i=[0,0,0],a=t%1*6,s=a%1,o=1-s;let l=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=o,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=o,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=o}return l=(1-n)*r,[(n*i[0]+l)*255,(n*i[1]+l)*255,(n*i[2]+l)*255]};yn.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let i=0;return r>0&&(i=t/r),[e[0],i*100,r*100]};yn.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let i=0;return r>0&&r<.5?i=t/(2*r):r>=.5&&r<1&&(i=t/(2*(1-r))),[e[0],i*100,r*100]};yn.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};yn.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,i=r-t;let a=0;return i<1&&(a=(r-i)/(1-i)),[e[0],i*100,a*100]};yn.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};yn.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};yn.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};yn.gray.hsl=function(e){return[0,0,e[0]]};yn.gray.hsv=yn.gray.hsl;yn.gray.hwb=function(e){return[0,100,e[0]]};yn.gray.cmyk=function(e){return[0,0,0,e[0]]};yn.gray.lab=function(e){return[e[0],0,0]};yn.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};yn.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const $C=_1e;function rmt(){const e={},t=Object.keys($C);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function dmt(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const i=e(n);if(typeof i=="object")for(let a=i.length,s=0;s{Zb[e]={},Object.defineProperty(Zb[e],"channels",{value:bM[e].channels}),Object.defineProperty(Zb[e],"labels",{value:bM[e].labels});const t=lmt(e);Object.keys(t).forEach(r=>{const i=t[r];Zb[e][r]=dmt(i),Zb[e][r].raw=cmt(i)})});var fmt=Zb;const Xb=emt,gu=fmt,C1e=["keyword","gray","hex"],yM={};for(const e of Object.keys(gu))yM[[...gu[e].labels].sort().join("")]=e;const FC={};function Ss(e,t){if(!(this instanceof Ss))return new Ss(e,t);if(t&&t in C1e&&(t=null),t&&!(t in gu))throw new Error("Unknown model: "+t);let n,r;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof Ss)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const i=Xb.get(e);if(i===null)throw new Error("Unable to parse color from string: "+e);this.model=i.model,r=gu[this.model].channels,this.color=i.value.slice(0,r),this.valpha=typeof i.value[r]=="number"?i.value[r]:1}else if(e.length>0){this.model=t||"rgb",r=gu[this.model].channels;const i=Array.prototype.slice.call(e,0,r);this.color=vM(i,r),this.valpha=typeof e[r]=="number"?e[r]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const i=Object.keys(e);"alpha"in e&&(i.splice(i.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const a=i.sort().join("");if(!(a in yM))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=yM[a];const{labels:s}=gu[this.model],o=[];for(n=0;n(e%360+360)%360),saturationl:ya("hsl",1,Xa(100)),lightness:ya("hsl",2,Xa(100)),saturationv:ya("hsv",1,Xa(100)),value:ya("hsv",2,Xa(100)),chroma:ya("hcg",1,Xa(100)),gray:ya("hcg",2,Xa(100)),white:ya("hwb",1,Xa(100)),wblack:ya("hwb",2,Xa(100)),cyan:ya("cmyk",0,Xa(100)),magenta:ya("cmyk",1,Xa(100)),yellow:ya("cmyk",2,Xa(100)),black:ya("cmyk",3,Xa(100)),x:ya("xyz",0,Xa(95.047)),y:ya("xyz",1,Xa(100)),z:ya("xyz",2,Xa(108.833)),l:ya("lab",0,Xa(100)),a:ya("lab",1),b:ya("lab",2),keyword(e){return e!==void 0?new Ss(e):gu[this.model].keyword(this.color)},hex(e){return e!==void 0?new Ss(e):Xb.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new Ss(e);const t=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),Xb.to.hex(t)+n},rgbNumber(){const e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){const e=this.rgb().color,t=[];for(const[n,r]of e.entries()){const i=r/255;t[n]=i<=.04045?i/12.92:((i+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return Ss.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),i=t===void 0?.5:t,a=2*i-1,s=n.alpha()-r.alpha(),o=((a*s===-1?a:(a+s)/(1+a*s))+1)/2,l=1-o;return Ss.rgb(o*n.red()+l*r.red(),o*n.green()+l*r.green(),o*n.blue()+l*r.blue(),n.alpha()*i+r.alpha()*(1-i))}};for(const e of Object.keys(gu)){if(C1e.includes(e))continue;const{channels:t}=gu[e];Ss.prototype[e]=function(...n){return this.model===e?new Ss(this):n.length>0?new Ss(n,e):new Ss([...mmt(gu[this.model][e].raw(this.color)),this.valpha],e)},Ss[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=vM(n,t)),new Ss(r,e)}}function hmt(e,t){return Number(e.toFixed(t))}function pmt(e){return function(t){return hmt(t,e)}}function ya(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(FC[r]||(FC[r]=[]))[t]=n;return e=e[0],function(r){let i;return r!==void 0?(n&&(r=n(r)),i=this[e](),i.color[t]=r,i):(i=this[e]().color[t],n&&(i=n(i)),i)}}function Xa(e){return function(t){return Math.max(0,Math.min(e,t))}}function mmt(e){return Array.isArray(e)?e:[e]}function vM(e,t){for(let n=0;nW.length;){var ee=a(P);n!==null&&(P.seed=n),W.push(ee)}return P.count=V,W}return L=s(P),j=o(L,P),B=l(L,j,P),u([L,j,B],P)};function s(P){if(i.length>0){var L=N(P.hue),j=O(L),B=(L[1]-L[0])/i.length,V=parseInt((j-L[0])/B);i[V]===!0?V=(V+2)%i.length:i[V]=!0;var W=(L[0]+V*B)%359,re=(L[0]+(V+1)*B)%359;return L=[W,re],j=O(L),j<0&&(j=360+j),j}else{var L=f(P.hue);return j=O(L),j<0&&(j=360+j),j}}function o(P,L){if(L.hue==="monochrome")return 0;if(L.luminosity==="random")return O([0,100]);var j=p(P),B=j[0],V=j[1];switch(L.luminosity){case"bright":B=55;break;case"dark":B=V-10;break;case"light":V=55;break}return O([B,V])}function l(P,L,j){var B=d(P,L),V=100;switch(j.luminosity){case"dark":V=B+20;break;case"light":B=(V+B)/2;break;case"random":B=0,V=100;break}return O([B,V])}function u(P,L){switch(L.format){case"hsvArray":return P;case"hslArray":return _(P);case"hsl":var j=_(P);return"hsl("+j[0]+", "+j[1]+"%, "+j[2]+"%)";case"hsla":var B=_(P),re=L.alpha||Math.random();return"hsla("+B[0]+", "+B[1]+"%, "+B[2]+"%, "+re+")";case"rgbArray":return x(P);case"rgb":var V=x(P);return"rgb("+V.join(", ")+")";case"rgba":var W=x(P),re=L.alpha||Math.random();return"rgba("+W.join(", ")+", "+re+")";default:return S(P)}}function d(P,L){for(var j=g(P).lowerBounds,B=0;B=V&&L<=re){var q=(ee-W)/(re-V),ne=W-q*V;return q*L+ne}}return 0}function f(P){if(typeof parseInt(P)=="number"){var L=parseInt(P);if(L<360&&L>0)return[L,L]}if(typeof P=="string"){if(r[P]){var j=r[P];if(j.hueRange)return j.hueRange}else if(P.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var B=k(P)[0];return[B,B]}}return[0,360]}function p(P){return g(P).saturationRange}function g(P){P>=334&&P<=360&&(P-=360);for(var L in r){var j=r[L];if(j.hueRange&&P>=j.hueRange[0]&&P<=j.hueRange[1])return r[L]}return"Color not found"}function O(P){if(n===null){var L=.618033988749895,j=Math.random();return j+=L,j%=1,Math.floor(P[0]+j*(P[1]+1-P[0]))}else{var B=P[1]||1,V=P[0]||0;n=(n*9301+49297)%233280;var W=n/233280;return Math.floor(V+W*(B-V))}}function S(P){var L=x(P);function j(V){var W=V.toString(16);return W.length==1?"0"+W:W}var B="#"+j(L[0])+j(L[1])+j(L[2]);return B}function T(P,L,j){var B=j[0][0],V=j[j.length-1][0],W=j[j.length-1][1],re=j[0][1];r[P]={hueRange:L,lowerBounds:j,saturationRange:[B,V],brightnessRange:[W,re]}}function w(){T("monochrome",null,[[0,0],[100,0]]),T("red",[-26,18],[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]),T("orange",[18,46],[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]),T("yellow",[46,62],[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]),T("green",[62,178],[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]),T("blue",[178,257],[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]),T("purple",[257,282],[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]),T("pink",[282,334],[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]])}function x(P){var L=P[0];L===0&&(L=1),L===360&&(L=359),L=L/360;var j=P[1]/100,B=P[2]/100,V=Math.floor(L*6),W=L*6-V,re=B*(1-j),ee=B*(1-W*j),q=B*(1-(1-W)*j),ne=256,K=256,G=256;switch(V){case 0:ne=B,K=q,G=re;break;case 1:ne=ee,K=B,G=re;break;case 2:ne=re,K=B,G=q;break;case 3:ne=re,K=ee,G=B;break;case 4:ne=q,K=re,G=B;break;case 5:ne=B,K=re,G=ee;break}var ie=[Math.floor(ne*255),Math.floor(K*255),Math.floor(G*255)];return ie}function k(P){P=P.replace(/^#/,""),P=P.length===3?P.replace(/(.)/g,"$1$1"):P;var L=parseInt(P.substr(0,2),16)/255,j=parseInt(P.substr(2,2),16)/255,B=parseInt(P.substr(4,2),16)/255,V=Math.max(L,j,B),W=V-Math.min(L,j,B),re=V?W/V:0;switch(V){case L:return[60*((j-B)/W%6)||0,re,V];case j:return[60*((B-L)/W+2)||0,re,V];case B:return[60*((L-j)/W+4)||0,re,V]}}function _(P){var L=P[0],j=P[1]/100,B=P[2]/100,V=(2-j)*B;return[L,Math.round(j*B/(V<1?V:2-V)*1e4)/100,V/2*100]}function R(P){for(var L=0,j=0;j!==P.length&&!(L>=Number.MAX_SAFE_INTEGER);j++)L+=P.charCodeAt(j);return L}function N(P){if(isNaN(P)){if(typeof P=="string"){if(r[P]){var j=r[P];if(j.hueRange)return j.hueRange}else if(P.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var B=k(P)[0];return g(B).hueRange}}}else{var L=parseInt(P);if(L<360&&L>0)return g(P).hueRange}return[0,360]}return a})})(OM,OM.exports);var ymt=OM.exports;const vmt=Cu(ymt),Omt="https://api.yorkie.dev",Smt="cbovg64qfu96agb5i0fg";vC.setLogLevel(4);const R1e=(e,t)=>{const[n]=z$(),r=Pr(ZT),[i,a]=M.useState(null),[s,o]=M.useState(null),l=M.useCallback(()=>{const p=n.get("token");return p?`share:${p}`:`default:${r.accessToken}`},[r.accessToken,n]),u=M.useCallback(async p=>{const g=new vC.Client(Omt,{apiKey:Smt,token:p});return await g.activate(),g},[]),d=M.useCallback((p,g,O)=>{const S=new vC.Document(g,{enableDevtools:!0});return p.attach(S,{initialPresence:{name:O,color:bmt(vmt()).fade(.15).toString(),selection:null,cursor:null}})},[]),f=M.useCallback(async()=>{if(!(!i||!s))try{await i.detach(s),await i.deactivate()}catch(p){console.error("Error during Yorkie cleanup:",p)}},[i,s]);return M.useEffect(()=>{let p=!0;return!e||!t||s||i?void 0:((async()=>{try{const O=l(),S=await u(O),T=await d(S,e,t);if(!p){await S.detach(T),await S.deactivate();return}a(S),o(T)}catch(O){console.error("Error initializing Yorkie: ",O)}})(),()=>{p=!1})},[t,e,s,i,l,u,d]),M.useEffect(()=>()=>{f()},[f]),{client:i,doc:s}};function Emt(){var u;const e=Du(),t=Em(),n=Pr(RT),{data:r,isLoading:i}=CB(t.workspaceSlug),{data:a,isLoading:s}=dje(r==null?void 0:r.id,t.documentId),{doc:o,client:l}=R1e(a==null?void 0:a.yorkieDocumentId,(u=n.data)==null?void 0:u.nickname);return M.useEffect(()=>{if(!(!o||!l))return e(k3(o)),e(A3(l)),()=>{e(k3(null)),e(A3(null))}},[e,l,o]),s||i?I.jsx(rO,{open:!0,children:I.jsx(kd,{color:"inherit"})}):I.jsx(ea,{height:"calc(100% - 64px)",children:I.jsx(E1e,{})})}const wmt=e=>["documents","share",e],Tmt=e=>{const t=Du(),n=cO({queryKey:wmt(e||""),enabled:!!e,queryFn:async()=>(await tr.get("/documents/share",{params:{token:e}})).data,meta:{errorMessage:"This is a non-existent or expired document."}});return M.useEffect(()=>(n.data&&t(_3(n.data)),()=>{t(_3(null))}),[t,n.data]),n};function xmt(){const e=Du(),t=Sm(),[n]=z$(),r=M.useMemo(()=>n.get("token"),[n]),{data:i}=Tmt(r),{doc:a,client:s}=R1e(i==null?void 0:i.yorkieDocumentId,"Anonymous");return M.useEffect(()=>{i!=null&&i.role&&(e(ZMe(i.role)),i.role==="READ"&&e(s8("read")))},[e,i==null?void 0:i.role]),M.useEffect(()=>{if(!(!a||!s))return e(k3(a)),e(A3(s)),()=>{e(k3(null)),e(A3(null))}},[e,s,a]),r?I.jsx(ea,{height:"calc(100% - 64px)",children:I.jsx(E1e,{})}):I.jsx(U$,{to:"/",state:{from:t},replace:!0})}function kmt(){const e=Em(),t=Mc(),{mutateAsync:n}=zYe();return M.useEffect(()=>{e.invitationToken&&n({invitationToken:e.invitationToken}).then(r=>{t(`/${r.slug}`)})},[n,t,e.invitationToken]),I.jsx(rO,{open:!0,children:I.jsx(kd,{color:"inherit"})})}const Amt=e=>["workspaces",e,"users"],_mt=e=>sF({queryKey:Amt(e||""),queryFn:async({pageParam:t})=>(await tr.get(`/workspaces/${e}/users`,{params:{cursor:t}})).data,enabled:!!e,initialPageParam:void 0,getPreviousPageParam:t=>t.cursor??void 0,getNextPageParam:t=>t.cursor??void 0});function Cmt(e){var d;const{open:t,onClose:n}=e,r=Pr(fR),{mutateAsync:i}=UYe(((d=r.data)==null?void 0:d.id)||""),{enqueueSnackbar:a}=IT(),[s,o]=M.useState(null),l=async f=>{let p;if(f.expiredString===Dy[0])p=null;else{const[O,S]=f.expiredString.split(" ");p=tn().add(Number(O),S).toDate()}const{invitationToken:g}=await i({expiredAt:p});o(`${window.location.origin}/join/${g}`)},u=async()=>{s&&(await F1.write(s),a("URL Copied!",{variant:"success"}))};return I.jsx(iO,{open:t,disableAutoFocus:!0,onClose:n,children:I.jsxs(Gs,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:538},children:[I.jsx(Oo,{sx:{position:"absolute",top:28,right:28},onClick:n,children:I.jsx(AR,{})}),I.jsxs(Bn,{gap:4,children:[I.jsxs(Bn,{children:[I.jsx(wr,{variant:"h5",fontWeight:"bold",children:"Add Members"}),I.jsx(wr,{children:"Generate and share the link."})]}),I.jsx(Bn,{gap:1,children:I.jsx(Lc,{children:I.jsx(dO,{defaultValues:{expiredString:Dy[0]},onSuccess:l,children:I.jsxs(Bn,{gap:2,children:[I.jsx(w8,{label:"Expired Date",name:"expiredString",options:Dy.map(f=>({id:f,label:f})),size:"small",sx:{width:1}}),I.jsx(po,{type:"submit",variant:"contained",children:"Generate"})]})})})}),I.jsxs(Bn,{gap:1,children:[I.jsx(wr,{variant:"h6",fontWeight:"bold",children:"Invite Link"}),I.jsx(ea,{height:40,children:s?I.jsxs(Bn,{direction:"row",alignItems:"center",gap:2,children:[I.jsx(wr,{variant:"body1",children:s}),I.jsx(I0,{title:"Copy URL",children:I.jsx(Oo,{onClick:u,children:I.jsx(kR,{})})})]}):I.jsx(wr,{mx:"auto",children:"No link has been generated."})})]})]})]})})}function Rmt(){const e=Em(),{data:t}=CB(e.workspaceSlug),{data:n,fetchNextPage:r,hasNextPage:i}=_mt(t==null?void 0:t.id),[a,s]=M.useState(!1),o=M.useMemo(()=>(n==null?void 0:n.pages.reduce((u,d)=>u.concat(d.workspaceUsers),[]))??[],[n==null?void 0:n.pages]),l=()=>{s(u=>!u)};return I.jsxs(T$,{maxWidth:"lg",children:[I.jsxs(Bn,{gap:4,children:[I.jsxs(Bn,{direction:"row",justifyContent:"space-between",alignItems:"center",px:2,children:[I.jsxs(wr,{variant:"h5",fontWeight:"bold",children:[t==null?void 0:t.title," ",I.jsx(wr,{component:"span",variant:"inherit",color:"primary",children:n==null?void 0:n.pages[0].workspaceUsers.length})]}),I.jsx(po,{variant:"contained",startIcon:I.jsx(UR,{}),onClick:l,children:"Add Members"})]}),I.jsxs(WDe,{component:ea,children:[I.jsx(wv,{}),I.jsx(Hw,{pageStart:0,loadMore:()=>r(),hasMore:i,loader:I.jsx(ea,{className:"loader",children:I.jsx(kd,{size:"sm"})},0),useWindow:!1,style:{width:"100%"},children:I.jsxs(CDe,{children:[I.jsx(XDe,{children:I.jsxs(xY,{children:[I.jsx(Rb,{children:"Name"}),I.jsx(Rb,{children:"Role"}),I.jsx(Rb,{})]})}),I.jsx(LDe,{style:{maxHeight:"100%",overflow:"auto"},children:o.map(u=>I.jsxs(xY,{sx:{width:"100%"},children:[I.jsx(Rb,{component:"th",scope:"row",children:u.nickname}),I.jsx(Rb,{children:"-"}),I.jsx(Rb,{children:"-"})]},u.id))})]})})]})]}),I.jsx(Cmt,{open:a,onClose:l})]})}const Imt=[{path:"",accessType:2,element:I.jsx(AYe,{}),children:[{path:"",element:I.jsx(yZe,{})}]},{path:":workspaceSlug",accessType:1,element:I.jsx(mZe,{}),children:[{path:"",element:I.jsx(kZe,{})},{path:"member",element:I.jsx(Rmt,{})}]},{path:":workspaceSlug",element:I.jsx(kYe,{}),children:[{path:":documentId",accessType:1,element:I.jsx(Emt,{})},{path:":documentId/share",accessType:0,element:I.jsx(xmt,{})}]},{path:"auth/callback",accessType:2,element:I.jsx(vZe,{})},{path:"join/:invitationToken",accessType:1,element:I.jsx(kmt,{})},{path:"/404",accessType:0,element:I.jsx(OZe,{})},{path:"settings/profile",accessType:1,element:I.jsx(MYe,{}),children:[{path:"",element:I.jsx(EZe,{})}]}],Nmt=e=>{const t=n=>(n.accessType===1?n.element=I.jsx(PMe,{children:n.element}):n.accessType===2&&(n.element=I.jsx(DMe,{children:n.element})),n);return e.map(n=>(n=t(n),n!=null&&n.children&&(n.children=n.children.map(r=>t(r))),n.errorElement=I.jsx(RMe,{}),n))},Dmt=Nmt(Imt);function Pmt(e){const[t,n]=M.useState(""),[r,i]=M.useState(""),{data:a}=NB(r),{mutateAsync:s}=Ihe(),o=M.useMemo(()=>a!=null&&a.conflict?"Already Exists":null,[a==null?void 0:a.conflict]);zR(()=>{i(t)},500,[t]);const l=d=>{n(d.target.value)},u=async d=>{await s(d)};return I.jsx(iO,{disableAutoFocus:!0,...e,children:I.jsx(Gs,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:I.jsxs(Bn,{gap:4,children:[I.jsx(wr,{variant:"h5",children:"Create Your Nickname"}),I.jsx(Lc,{children:I.jsx(dO,{defaultValues:{nickname:""},onSuccess:u,children:I.jsxs(Bn,{gap:4,alignItems:"flex-end",children:[I.jsx(PT,{variant:"standard",name:"nickname",label:"Enter your nickname",required:!0,fullWidth:!0,inputProps:{maxLength:255},onChange:l,error:!!o,helperText:o}),I.jsx(po,{type:"submit",variant:"contained",size:"large",disabled:!!o,children:"OK"})]})})})]})})})}function Lmt(e){const{children:t}=e,{data:n,isSuccess:r,isLoading:i}=SZe(),a=M.useMemo(()=>r&&!n.nickname,[r,n==null?void 0:n.nickname]);return I.jsx(X$.Provider,{value:{isLoggedIn:r,isLoading:i},children:a?I.jsx(Pmt,{open:!0}):t})}function Mmt(){const{enqueueSnackbar:e}=IT();return M.useCallback(n=>{var r;e(((r=n.response)==null?void 0:r.data.message)||n.message||"Something went wrong...",{variant:"error"})},[e])}const I1e=Object.prototype.toString;function N1e(e){switch(I1e.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return pp(e,Error)}}function LO(e,t){return I1e.call(e)===`[object ${t}]`}function CW(e){return LO(e,"ErrorEvent")}function une(e){return LO(e,"DOMError")}function $mt(e){return LO(e,"DOMException")}function Pf(e){return LO(e,"String")}function RW(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function IW(e){return e===null||RW(e)||typeof e!="object"&&typeof e!="function"}function Uv(e){return LO(e,"Object")}function AI(e){return typeof Event<"u"&&pp(e,Event)}function Fmt(e){return typeof Element<"u"&&pp(e,Element)}function Bmt(e){return LO(e,"RegExp")}function _I(e){return!!(e&&e.then&&typeof e.then=="function")}function Umt(e){return Uv(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function D1e(e){return typeof e=="number"&&e!==e}function pp(e,t){try{return e instanceof t}catch{return!1}}function P1e(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function qy(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function cne(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;rzmt(e,r,n))}function jmt(e,t,n=250,r,i,a,s){if(!a.exception||!a.exception.values||!s||!pp(s.originalException,Error))return;const o=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;o&&(a.exception.values=Hmt(SM(e,t,i,s.originalException,r,a.exception.values,o,0),n))}function SM(e,t,n,r,i,a,s,o){if(a.length>=n+1)return a;let l=[...a];if(pp(r[i],Error)){dne(s,o);const u=e(t,r[i]),d=l.length;fne(u,i,d,o),l=SM(e,t,n,r[i],i,[u,...l],u,d)}return Array.isArray(r.errors)&&r.errors.forEach((u,d)=>{if(pp(u,Error)){dne(s,o);const f=e(t,u),p=l.length;fne(f,`errors[${d}]`,p,o),l=SM(e,t,n,u,i,[f,...l],f,p)}}),l}function dne(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function fne(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function Hmt(e,t){return e.map(n=>(n.value&&(n.value=qy(n.value,t)),n))}function v4(e){return e&&e.Math==Math?e:void 0}const Gr=typeof globalThis=="object"&&v4(globalThis)||typeof window=="object"&&v4(window)||typeof self=="object"&&v4(self)||typeof global=="object"&&v4(global)||function(){return this}()||{};function NW(){return Gr}function L1e(e,t,n){const r=n||Gr,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const Gy=NW(),Qmt=80;function zv(e,t={}){if(!e)return"";try{let n=e;const r=5,i=[];let a=0,s=0;const o=" > ",l=o.length;let u;const d=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||Qmt;for(;n&&a++1&&s+i.length*l+u.length>=f));)i.push(u),s+=u.length,n=n.parentNode;return i.reverse().join(o)}catch{return""}}function Wmt(e,t){const n=e,r=[];let i,a,s,o,l;if(!n||!n.tagName)return"";if(Gy.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const u=t&&t.length?t.filter(f=>n.getAttribute(f)).map(f=>[f,n.getAttribute(f)]):null;if(u&&u.length)u.forEach(f=>{r.push(`[${f[0]}="${f[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&Pf(i))for(a=i.split(/\s+/),l=0;l"u"||__SENTRY_DEBUG__,Gmt="Sentry Logger ",EM=["debug","info","warn","error","log","assert","trace"],BC={};function CI(e){if(!("console"in Gr))return e();const t=Gr.console,n={},r=Object.keys(BC);r.forEach(i=>{const a=BC[i];n[i]=t[i],t[i]=a});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function Ymt(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return MO?EM.forEach(n=>{t[n]=(...r)=>{e&&CI(()=>{Gr.console[n](`${Gmt}[${n}]:`,...r)})}}):EM.forEach(n=>{t[n]=()=>{}}),t}const kt=Ymt(),Zmt=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Xmt(e){return e==="http"||e==="https"}function $O(e,t=!1){const{host:n,path:r,pass:i,port:a,projectId:s,protocol:o,publicKey:l}=e;return`${o}://${l}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r&&`${r}/`}${s}`}function Kmt(e){const t=Zmt.exec(e);if(!t){CI(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,i="",a,s="",o]=t.slice(1);let l="",u=o;const d=u.split("/");if(d.length>1&&(l=d.slice(0,-1).join("/"),u=d.pop()),u){const f=u.match(/^\d+/);f&&(u=f[0])}return $1e({host:a,pass:i,path:l,projectId:u,port:s,protocol:n,publicKey:r})}function $1e(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Jmt(e){if(!MO)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(kt.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?Xmt(r)?t&&isNaN(parseInt(t,10))?(kt.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(kt.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(kt.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function egt(e){const t=typeof e=="string"?Kmt(e):$1e(e);if(!(!t||!Jmt(t)))return t}class yf extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function Ws(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);typeof i=="function"&&F1e(i,r),e[t]=i}function R1(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{MO&&kt.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function F1e(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,R1(e,"__sentry_original__",t)}catch{}}function DW(e){return e.__sentry_original__}function tgt(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function B1e(e){if(N1e(e))return{message:e.message,name:e.name,stack:e.stack,...pne(e)};if(AI(e)){const t={type:e.type,target:hne(e.target),currentTarget:hne(e.currentTarget),...pne(e)};return typeof CustomEvent<"u"&&pp(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function hne(e){try{return Fmt(e)?zv(e):Object.prototype.toString.call(e)}catch{return""}}function pne(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function ngt(e,t=40){const n=Object.keys(B1e(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return qy(n[0],t);for(let r=n.length;r>0;r--){const i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:qy(i,t)}return""}function Su(e){return wM(e,new Map)}function wM(e,t){if(rgt(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const i of Object.keys(e))typeof e[i]<"u"&&(r[i]=wM(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(i=>{r.push(wM(i,t))}),r}return e}function rgt(e){if(!Uv(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const U1e=50,mne=/\(error: (.*)\)/,gne=/captureMessage|captureException/;function z1e(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const i=[],a=n.split(` -`);for(let s=r;s1024)continue;const l=mne.test(o)?o.replace(mne,"$1"):o;if(!l.match(/\S*Error: /)){for(const u of t){const d=u(l);if(d){i.push(d);break}}if(i.length>=U1e)break}}return agt(i)}}function igt(e){return Array.isArray(e)?z1e(...e):e}function agt(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),gne.test(t[t.length-1].function||"")&&(t.pop(),gne.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,U1e).map(n=>({...n,filename:n.filename||t[t.length-1].filename,function:n.function||"?"}))}const _7="";function mp(e){try{return!e||typeof e!="function"?_7:e.name||_7}catch{return _7}}const k_={},bne={};function G1(e,t){k_[e]=k_[e]||[],k_[e].push(t)}function Y1(e,t){bne[e]||(t(),bne[e]=!0)}function Td(e,t){const n=e&&k_[e];if(n)for(const r of n)try{r(t)}catch(i){MO&&kt.error(`Error while triggering instrumentation handler. -Type: ${e} -Name: ${mp(r)} -Error:`,i)}}function sgt(e){const t="console";G1(t,e),Y1(t,ogt)}function ogt(){"console"in Gr&&EM.forEach(function(e){e in Gr.console&&Ws(Gr.console,e,function(t){return BC[e]=t,function(...n){Td("console",{args:n,level:e});const i=BC[e];i&&i.apply(Gr.console,n)}})})}function La(){const e=Gr,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function j1e(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function v0(e){const{message:t,event_id:n}=e;if(t)return t;const r=j1e(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function TM(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type="Error")}function tT(e,t){const n=j1e(e);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&"data"in t){const a={...i&&i.data,...t.data};n.mechanism.data=a}}function yne(e){if(e&&e.__sentry_captured__)return!0;try{R1(e,"__sentry_captured__",!0)}catch{}return!1}function H1e(e){return Array.isArray(e)?e:[e]}const Kb=Gr,lgt=1e3;let vne,xM,kM;function ugt(e){const t="dom";G1(t,e),Y1(t,cgt)}function cgt(){if(!Kb.document)return;const e=Td.bind(null,"dom"),t=One(e,!0);Kb.document.addEventListener("click",t,!1),Kb.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=Kb[n]&&Kb[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Ws(r,"addEventListener",function(i){return function(a,s,o){if(a==="click"||a=="keypress")try{const l=this,u=l.__sentry_instrumentation_handlers__=l.__sentry_instrumentation_handlers__||{},d=u[a]=u[a]||{refCount:0};if(!d.handler){const f=One(e);d.handler=f,i.call(this,a,f,o)}d.refCount++}catch{}return i.call(this,a,s,o)}}),Ws(r,"removeEventListener",function(i){return function(a,s,o){if(a==="click"||a=="keypress")try{const l=this,u=l.__sentry_instrumentation_handlers__||{},d=u[a];d&&(d.refCount--,d.refCount<=0&&(i.call(this,a,d.handler,o),d.handler=void 0,delete u[a]),Object.keys(u).length===0&&delete l.__sentry_instrumentation_handlers__)}catch{}return i.call(this,a,s,o)}}))})}function dgt(e){if(e.type!==xM)return!1;try{if(!e.target||e.target._sentryId!==kM)return!1}catch{}return!0}function fgt(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function One(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=hgt(n);if(fgt(n.type,r))return;R1(n,"_sentryCaptured",!0),r&&!r._sentryId&&R1(r,"_sentryId",La());const i=n.type==="keypress"?"input":n.type;dgt(n)||(e({event:n,name:i,global:t}),xM=n.type,kM=r?r._sentryId:void 0),clearTimeout(vne),vne=Kb.setTimeout(()=>{kM=void 0,xM=void 0},lgt)}}function hgt(e){try{return e.target}catch{return null}}const AM=NW();function Q1e(){if(!("fetch"in AM))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function _M(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function pgt(){if(typeof EdgeRuntime=="string")return!0;if(!Q1e())return!1;if(_M(AM.fetch))return!0;let e=!1;const t=AM.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=_M(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){MO&&kt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function W1e(e){const t="fetch";G1(t,e),Y1(t,mgt)}function mgt(){pgt()&&Ws(Gr,"fetch",function(e){return function(...t){const{method:n,url:r}=ggt(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return Td("fetch",{...i}),e.apply(Gr,t).then(a=>{const s={...i,endTimestamp:Date.now(),response:a};return Td("fetch",s),a},a=>{const s={...i,endTimestamp:Date.now(),error:a};throw Td("fetch",s),a})}})}function CM(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Sne(e){return typeof e=="string"?e:e?CM(e,"url")?e.url:e.toString?e.toString():"":""}function ggt(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:Sne(n),method:CM(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:Sne(t),method:CM(t,"method")?String(t.method).toUpperCase():"GET"}}let O4=null;function V1e(e){const t="error";G1(t,e),Y1(t,bgt)}function bgt(){O4=Gr.onerror,Gr.onerror=function(e,t,n,r,i){return Td("error",{column:r,error:i,line:n,msg:e,url:t}),O4&&!O4.__SENTRY_LOADER__?O4.apply(this,arguments):!1},Gr.onerror.__SENTRY_INSTRUMENTED__=!0}let S4=null;function q1e(e){const t="unhandledrejection";G1(t,e),Y1(t,ygt)}function ygt(){S4=Gr.onunhandledrejection,Gr.onunhandledrejection=function(e){return Td("unhandledrejection",e),S4&&!S4.__SENTRY_LOADER__?S4.apply(this,arguments):!0},Gr.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const E4=NW();function vgt(){const e=E4.chrome,t=e&&e.app&&e.app.runtime,n="history"in E4&&!!E4.history.pushState&&!!E4.history.replaceState;return!t&&n}const xE=Gr;let w4;function PW(e){const t="history";G1(t,e),Y1(t,Ogt)}function Ogt(){if(!vgt())return;const e=xE.onpopstate;xE.onpopstate=function(...n){const r=xE.location.href,i=w4;if(w4=r,Td("history",{from:i,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const i=r.length>2?r[2]:void 0;if(i){const a=w4,s=String(i);w4=s,Td("history",{from:a,to:s})}return n.apply(this,r)}}Ws(xE.history,"pushState",t),Ws(xE.history,"replaceState",t)}const Sgt=Gr,Sy="__sentry_xhr_v3__";function G1e(e){const t="xhr";G1(t,e),Y1(t,Egt)}function Egt(){if(!Sgt.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;Ws(e,"open",function(t){return function(...n){const r=Date.now(),i=Pf(n[0])?n[0].toUpperCase():void 0,a=wgt(n[1]);if(!i||!a)return t.apply(this,n);this[Sy]={method:i,url:a,request_headers:{}},i==="POST"&&a.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const o=this[Sy];if(o&&this.readyState===4){try{o.status_code=this.status}catch{}const l={args:[i,a],endTimestamp:Date.now(),startTimestamp:r,xhr:this};Td("xhr",l)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?Ws(this,"onreadystatechange",function(o){return function(...l){return s(),o.apply(this,l)}}):this.addEventListener("readystatechange",s),Ws(this,"setRequestHeader",function(o){return function(...l){const[u,d]=l,f=this[Sy];return f&&Pf(u)&&Pf(d)&&(f.request_headers[u.toLowerCase()]=d),o.apply(this,l)}}),t.apply(this,n)}}),Ws(e,"send",function(t){return function(...n){const r=this[Sy];if(!r)return t.apply(this,n);n[0]!==void 0&&(r.body=n[0]);const i={args:[r.method,r.url],startTimestamp:Date.now(),xhr:this};return Td("xhr",i),t.apply(this,n)}})}function wgt(e){if(Pf(e))return e;try{return e.toString()}catch{}}function Tgt(){return"npm"}function xgt(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let a=0;an?Y1e(e,t-1,n):r}function RM(e,t,n=1/0,r=1/0,i=xgt()){const[a,s]=i;if(t==null||["number","boolean","string"].includes(typeof t)&&!D1e(t))return t;const o=kgt(e,t);if(!o.startsWith("[object "))return o;if(t.__sentry_skip_normalization__)return t;const l=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(l===0)return o.replace("object ","");if(a(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const g=u.toJSON();return RM("",g,l-1,r,i)}catch{}const d=Array.isArray(t)?[]:{};let f=0;const p=B1e(t);for(const g in p){if(!Object.prototype.hasOwnProperty.call(p,g))continue;if(f>=r){d[g]="[MaxProperties ~]";break}const O=p[g];d[g]=RM(g,O,l-1,r,i),f++}return s(t),d}function kgt(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(P1e(t))return"[VueViewModel]";if(Umt(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${mp(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=Agt(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Agt(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function _gt(e){return~-encodeURI(e).split(/%..|./).length}function Cgt(e){return _gt(JSON.stringify(e))}var Ih;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(Ih||(Ih={}));function jv(e){return new fu(t=>{t(e)})}function LW(e){return new fu((t,n)=>{n(e)})}class fu{constructor(t){fu.prototype.__init.call(this),fu.prototype.__init2.call(this),fu.prototype.__init3.call(this),fu.prototype.__init4.call(this),this._state=Ih.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new fu((r,i)=>{this._handlers.push([!1,a=>{if(!t)r(a);else try{r(t(a))}catch(s){i(s)}},a=>{if(!n)i(a);else try{r(n(a))}catch(s){i(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new fu((n,r)=>{let i,a;return this.then(s=>{a=!1,i=s,t&&t()},s=>{a=!0,i=s,t&&t()}).then(()=>{if(a){r(i);return}n(i)})})}__init(){this._resolve=t=>{this._setResult(Ih.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(Ih.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===Ih.PENDING){if(_I(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Ih.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Ih.RESOLVED&&n[1](this._value),this._state===Ih.REJECTED&&n[2](this._value),n[0]=!0)})}}}function Rgt(e){const t=[];function n(){return e===void 0||t.lengthr(o)).then(null,()=>r(o).then(null,()=>{})),o}function a(s){return new fu((o,l)=>{let u=t.length;if(!u)return o(!0);const d=setTimeout(()=>{s&&s>0&&o(!1)},s);t.forEach(f=>{jv(f).then(()=>{--u||(clearTimeout(d),o(!0))},l)})})}return{$:t,add:i,drain:a}}function u1(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const Igt=["fatal","error","warning","log","info","debug"];function Ngt(e){return e==="warn"?"warning":Igt.includes(e)?e:"log"}const Z1e=1e3;function yx(){return Date.now()/Z1e}function Dgt(){const{performance:e}=Gr;if(!e||!e.now)return yx;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/Z1e}const vx=Dgt(),Ic=(()=>{const{performance:e}=Gr;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=i{const a=Ene(i);for(const s of Object.keys(a))r[s]=a[s];return r},{});else{if(!e)return;t=Ene(e)}const n=Object.entries(t).reduce((r,[i,a])=>{if(i.match(Pgt)){const s=i.slice(X1e.length);r[s]=a}return r},{});if(Object.keys(n).length>0)return n}function K1e(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,i])=>(i&&(n[`${X1e}${r}`]=i),n),{});return $gt(t)}function Ene(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(t[n]=r,t),{})}function $gt(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],i)=>{const a=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,s=i===0?a:`${t},${a}`;return s.length>Lgt?(MO&&kt.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):s},"")}const Fgt=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Bgt(e){if(!e)return;const t=e.match(Fgt);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function Ugt(e,t){const n=Bgt(e),r=Mgt(t),{traceId:i,parentSpanId:a,parentSampled:s}=n||{};return n?{traceId:i||La(),parentSpanId:a||La().substring(16),spanId:La().substring(16),sampled:s,dsc:r||{}}:{traceId:i||La(),spanId:La().substring(16)}}function MW(e=La(),t=La().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function Z1(e,t=[]){return[e,t]}function zgt(e,t){const[n,r]=e;return[n,[...r,t]]}function wne(e,t){const n=e[1];for(const r of n){const i=r[0].type;if(t(r,i))return!0}return!1}function NM(e,t){return(t||new TextEncoder).encode(e)}function jgt(e,t){const[n,r]=e;let i=JSON.stringify(n);function a(s){typeof i=="string"?i=typeof s=="string"?i+s:[NM(i,t),s]:i.push(typeof s=="string"?NM(s,t):s)}for(const s of r){const[o,l]=s;if(a(` -${JSON.stringify(o)} -`),typeof l=="string"||l instanceof Uint8Array)a(l);else{let u;try{u=JSON.stringify(l)}catch{u=JSON.stringify(f0(l))}a(u)}}return typeof i=="string"?i:Hgt(i)}function Hgt(e){const t=e.reduce((i,a)=>i+a.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function Qgt(e,t){const n=typeof e.data=="string"?NM(e.data,t):e.data;return[Su({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const Wgt={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function Tne(e){return Wgt[e]}function J1e(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Vgt(e,t,n,r){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:$O(r)},...i&&{trace:Su({...i})}}}function qgt(e,t,n){const r=[{type:"client_report"},{timestamp:yx(),discarded_events:e}];return Z1(t?{dsn:t}:{},[r])}const Ggt=60*1e3;function Ygt(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?Ggt:r-t}function Zgt(e,t){return e[t]||e.all||0}function Xgt(e,t,n=Date.now()){return Zgt(e,t)>n}function Kgt(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},a=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(a)for(const o of a.trim().split(",")){const[l,u,,,d]=o.split(":",5),f=parseInt(l,10),p=(isNaN(f)?60:f)*1e3;if(!u)i.all=r+p;else for(const g of u.split(";"))g==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(i[g]=r+p):i[g]=r+p}else s?i.all=r+Ygt(s,r):t===429&&(i.all=r+60*1e3);return i}const In=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,RI="production";function $W(){return L1e("globalEventProcessors",()=>[])}function Jgt(e){$W().push(e)}function UC(e,t,n,r=0){return new fu((i,a)=>{const s=e[r];if(t===null||typeof s!="function")i(t);else{const o=s({...t},n);In&&s.id&&o===null&&kt.log(`Event processor "${s.id}" dropped event`),_I(o)?o.then(l=>UC(e,l,n,r+1).then(i)).then(null,a):UC(e,o,n,r+1).then(i).then(null,a)}})}function ebe(e){const t=vx(),n={sid:La(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>e1t(n)};return e&&I1(n,e),n}function I1(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||vx(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:La()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function tbe(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),I1(e,n)}function e1t(e){return Su({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const t1t=0,nbe=1;function FW(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:s,tags:o,origin:l}=Jo(e);return Su({data:r,op:i,parent_span_id:a,span_id:t,status:s,tags:o,trace_id:n,origin:l})}function II(e){const{traceId:t,spanId:n}=e.spanContext(),r=BW(e);return MW(t,n,r)}function NI(e){return typeof e=="number"?xne(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?xne(e.getTime()):vx()}function xne(e){return e>9999999999?e/1e3:e}function Jo(e){return n1t(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function n1t(e){return typeof e.getSpanJSON=="function"}function BW(e){const{traceFlags:t}=e.spanContext();return!!(t&nbe)}function r1t(e,t,n,r,i,a){const{normalizeDepth:s=3,normalizeMaxBreadth:o=1e3}=e,l={...t,event_id:t.event_id||n.event_id||La(),timestamp:t.timestamp||yx()},u=n.integrations||e.integrations.map(T=>T.name);i1t(l,e),o1t(l,u),t.type===void 0&&a1t(l,e.stackParser);const d=u1t(r,n.captureContext);n.mechanism&&tT(l,n.mechanism);const f=i&&i.getEventProcessors?i.getEventProcessors():[],p=y1t().getScopeData();if(a){const T=a.getScopeData();Cne(p,T)}if(d){const T=d.getScopeData();Cne(p,T)}const g=[...n.attachments||[],...p.attachments];g.length&&(n.attachments=g),sbe(l,p);const O=[...f,...$W(),...p.eventProcessors];return UC(O,l,n).then(T=>(T&&s1t(T),typeof s=="number"&&s>0?l1t(T,s,o):T))}function i1t(e,t){const{environment:n,release:r,dist:i,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:RI),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&(e.message=qy(e.message,a));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=qy(s.value,a));const o=e.request;o&&o.url&&(o.url=qy(o.url,a))}const kne=new WeakMap;function a1t(e,t){const n=Gr._sentryDebugIds;if(!n)return;let r;const i=kne.get(t);i?r=i:(r=new Map,kne.set(t,r));const a=Object.keys(n).reduce((s,o)=>{let l;const u=r.get(o);u?l=u:(l=t(o),r.set(o,l));for(let d=l.length-1;d>=0;d--){const f=l[d];if(f.filename){s[f.filename]=n[o];break}}return s},{});try{e.exception.values.forEach(s=>{s.stacktrace.frames.forEach(o=>{o.filename&&(o.debug_id=a[o.filename])})})}catch{}}function s1t(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:t[r]})})}function o1t(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function l1t(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:f0(i.data,t,n)}}))},...e.user&&{user:f0(e.user,t,n)},...e.contexts&&{contexts:f0(e.contexts,t,n)},...e.extra&&{extra:f0(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=f0(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>{const a=Jo(i).data;return a&&(i.data=f0(a,t,n)),i})),r}function u1t(e,t){if(!t)return e;const n=e?e.clone():new em;return n.update(t),n}function c1t(e,t){return jc().captureException(e,void 0)}function rbe(e,t){return jc().captureEvent(e,t)}function N1(e,t){jc().addBreadcrumb(e,t)}function d1t(...e){const t=jc();if(e.length===2){const[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}return t.withScope(e[0])}function cs(){return jc().getClient()}function th(){return jc().getScope()}function Ane(e){const t=cs(),n=X1(),r=th(),{release:i,environment:a=RI}=t&&t.getOptions()||{},{userAgent:s}=Gr.navigator||{},o=ebe({release:i,environment:a,user:r.getUser()||n.getUser(),...s&&{userAgent:s},...e}),l=n.getSession();return l&&l.status==="ok"&&I1(l,{status:"exited"}),ibe(),n.setSession(o),r.setSession(o),o}function ibe(){const e=X1(),t=th(),n=t.getSession()||e.getSession();n&&tbe(n),abe(),e.setSession(),t.setSession()}function abe(){const e=X1(),t=th(),n=cs(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function _ne(e=!1){if(e){ibe();return}abe()}function zC(e){return e.transaction}function DI(e,t,n){const r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:a}=n&&n.getUser()||{},s=Su({environment:r.environment||RI,release:r.release,user_segment:a,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",s),s}function Hv(e){const t=cs();if(!t)return{};const n=DI(Jo(e).trace_id||"",t,th()),r=zC(e);if(!r)return n;const i=r&&r._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:a,source:s}=r.metadata;a!=null&&(n.sample_rate=`${a}`);const o=Jo(r);return s&&s!=="url"&&(n.transaction=o.description),n.sampled=String(BW(r)),t.emit&&t.emit("createDsc",n),n}function sbe(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;f1t(e,t),r&&m1t(e,r),g1t(e,n),h1t(e,i),p1t(e,a)}function Cne(e,t){const{extra:n,tags:r,user:i,contexts:a,level:s,sdkProcessingMetadata:o,breadcrumbs:l,fingerprint:u,eventProcessors:d,attachments:f,propagationContext:p,transactionName:g,span:O}=t;kE(e,"extra",n),kE(e,"tags",r),kE(e,"user",i),kE(e,"contexts",a),kE(e,"sdkProcessingMetadata",o),s&&(e.level=s),g&&(e.transactionName=g),O&&(e.span=O),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function kE(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function f1t(e,t){const{extra:n,tags:r,user:i,contexts:a,level:s,transactionName:o}=t,l=Su(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});const u=Su(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});const d=Su(i);d&&Object.keys(d).length&&(e.user={...d,...e.user});const f=Su(a);f&&Object.keys(f).length&&(e.contexts={...f,...e.contexts}),s&&(e.level=s),o&&(e.transaction=o)}function h1t(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function p1t(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function m1t(e,t){e.contexts={trace:FW(t),...e.contexts};const n=zC(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:Hv(t),...e.sdkProcessingMetadata};const r=Jo(n).description;r&&(e.tags={transaction:r,...e.tags})}}function g1t(e,t){e.fingerprint=e.fingerprint?H1e(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const b1t=100;let C7;class em{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Rne()}static clone(t){return t?t.clone():new em}clone(){const t=new em;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&I1(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t;if(n instanceof em){const r=n.getScopeData();this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&Object.keys(r.user).length&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint.length&&(this._fingerprint=r.fingerprint),n.getRequestSession()&&(this._requestSession=n.getRequestSession()),r.propagationContext&&(this._propagationContext=r.propagationContext)}else if(Uv(n)){const r=t;this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint&&(this._fingerprint=r.fingerprint),r.requestSession&&(this._requestSession=r.requestSession),r.propagationContext&&(this._propagationContext=r.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=Rne(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:b1t;if(r<=0)return this;const i={timestamp:yx(),...t},a=this._breadcrumbs;return a.push(i),this._breadcrumbs=a.length>r?a.slice(-r):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:n,_contexts:r,_tags:i,_extra:a,_user:s,_level:o,_fingerprint:l,_eventProcessors:u,_propagationContext:d,_sdkProcessingMetadata:f,_transactionName:p,_span:g}=this;return{breadcrumbs:t,attachments:n,contexts:r,tags:i,extra:a,user:s,level:o,fingerprint:l||[],eventProcessors:u,propagationContext:d,sdkProcessingMetadata:f,transactionName:p,span:g}}applyToEvent(t,n={},r=[]){sbe(t,this.getScopeData());const i=[...r,...$W(),...this._eventProcessors];return UC(i,t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:La();if(!this._client)return kt.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureMessage(t,n,r){const i=r&&r.event_id?r.event_id:La();if(!this._client)return kt.warn("No client configured on scope - will not capture message!"),i;const a=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:a,...r,event_id:i},this),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:La();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(kt.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function y1t(){return C7||(C7=new em),C7}function Rne(){return{traceId:La(),spanId:La().substring(16)}}const DM="7.119.0",obe=parseFloat(DM),v1t=100;class lbe{constructor(t,n,r,i=obe){this._version=i;let a;n?a=n:(a=new em,a.setClient(t));let s;r?s=r:(s=new em,s.setClient(t)),this._stack=[{scope:a}],t&&this.bindClient(t),this._isolationScope=s}isOlderThan(t){return this._version(this.popScope(),i),i=>{throw this.popScope(),i}):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:La(),i=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:i,...n,event_id:r}),r}captureMessage(t,n,r){const i=this._lastEventId=r&&r.event_id?r.event_id:La(),a=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:a,...r,event_id:i}),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:La();return t.type||(this._lastEventId=r),this.getScope().captureEvent(t,{...n,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:s=v1t}=i.getOptions&&i.getOptions()||{};if(s<=0)return;const l={timestamp:yx(),...t},u=a?CI(()=>a(l,n)):l;u!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",u,n),r.addBreadcrumb(u,s))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n),this.getIsolationScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n),this.getIsolationScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n),this.getIsolationScope().setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){const n=Ine(this);try{t(this)}finally{Ine(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return In&&kt.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const r=this._callExtensionMethod("startTransaction",t,n);return In&&!r&&(this.getClient()?kt.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': -Sentry.addTracingExtensions(); -Sentry.init({...}); -`):kt.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&tbe(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:i,environment:a=RI}=r&&r.getOptions()||{},{userAgent:s}=Gr.navigator||{},o=ebe({release:i,environment:a,user:n.getUser(),...s&&{userAgent:s},...t}),l=n.getSession&&n.getSession();return l&&l.status==="ok"&&I1(l,{status:"exited"}),this.endSession(),n.setSession(o),o}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_callExtensionMethod(t,...n){const i=Ox().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[t]=="function")return i.extensions[t].apply(this,n);In&&kt.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function Ox(){return Gr.__SENTRY__=Gr.__SENTRY__||{extensions:{},hub:void 0},Gr}function Ine(e){const t=Ox(),n=PM(t);return ube(t,e),n}function jc(){const e=Ox();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return O1t(e)}function X1(){return jc().getIsolationScope()}function O1t(e=Ox()){return(!S1t(e)||PM(e).isOlderThan(obe))&&ube(e,new lbe),PM(e)}function S1t(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function PM(e){return L1e("hub",()=>new lbe,e)}function ube(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function D1(e){return jc().getScope().getTransaction()}let Nne=!1;function E1t(){Nne||(Nne=!0,V1e(LM),q1e(LM))}function LM(){const e=D1();if(e){const t="internal_error";In&&kt.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}LM.tag="sentry_tracingErrorCallback";var Dne;(function(e){const t="ok";e.Ok=t;const n="deadline_exceeded";e.DeadlineExceeded=n;const r="unauthenticated";e.Unauthenticated=r;const i="permission_denied";e.PermissionDenied=i;const a="not_found";e.NotFound=a;const s="resource_exhausted";e.ResourceExhausted=s;const o="invalid_argument";e.InvalidArgument=o;const l="unimplemented";e.Unimplemented=l;const u="unavailable";e.Unavailable=u;const d="internal_error";e.InternalError=d;const f="unknown_error";e.UnknownError=f;const p="cancelled";e.Cancelled=p;const g="already_exists";e.AlreadyExists=g;const O="failed_precondition";e.FailedPrecondition=O;const S="aborted";e.Aborted=S;const T="out_of_range";e.OutOfRange=T;const w="data_loss";e.DataLoss=w})(Dne||(Dne={}));function w1t(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}function UW(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);const n=w1t(t);n!=="unknown_error"&&e.setStatus(n)}function FO(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=cs(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function cbe(e){if(!FO())return;const t=k1t(e),n=jc(),r=e.scope?e.scope.getSpan():T1t();if(e.onlyIfParent&&!r)return;const s=(e.scope||th()).clone();return x1t(n,{parentSpan:r,spanContext:t,forceTransaction:e.forceTransaction,scope:s})}function T1t(){return th().getSpan()}function x1t(e,{parentSpan:t,spanContext:n,forceTransaction:r,scope:i}){if(!FO())return;const a=X1();let s;if(t&&!r)s=t.startChild(n);else if(t){const o=Hv(t),{traceId:l,spanId:u}=t.spanContext(),d=BW(t);s=e.startTransaction({traceId:l,parentSpanId:u,parentSampled:d,...n,metadata:{dynamicSamplingContext:o,...n.metadata}})}else{const{traceId:o,dsc:l,parentSpanId:u,sampled:d}={...a.getPropagationContext(),...i.getPropagationContext()};s=e.startTransaction({traceId:o,parentSpanId:u,parentSampled:d,...n,metadata:{dynamicSamplingContext:l,...n.metadata}})}return i.setSpan(s),A1t(s,i,a),s}function k1t(e){if(e.startTime){const t={...e};return t.startTimestamp=NI(e.startTime),delete t.startTime,t}return e}const dbe="_sentryScope",fbe="_sentryIsolationScope";function A1t(e,t,n){e&&(R1(e,fbe,n),R1(e,dbe,t))}function _1t(e){return{scope:e[dbe],isolationScope:e[fbe]}}const c1="sentry.source",Ey="sentry.sample_rate",VE="sentry.op",qg="sentry.origin",C1t="profile_id";class hbe{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class PI{constructor(t={}){this._traceId=t.traceId||La(),this._spanId=t.spanId||La().substring(16),this._startTime=t.startTimestamp||vx(),this.tags=t.tags?{...t.tags}:{},this.data=t.data?{...t.data}:{},this.instrumenter=t.instrumenter||"sentry",this._attributes={},this.setAttributes({[qg]:t.origin||"manual",[VE]:t.op,...t.attributes}),this._name=t.name||t.description,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.status&&(this._status=t.status),t.endTimestamp&&(this._endTime=t.endTimestamp),t.exclusiveTime!==void 0&&(this._exclusiveTime=t.exclusiveTime),this._measurements=t.measurements?{...t.measurements}:{}}get name(){return this._name||""}set name(t){this.updateName(t)}get description(){return this._name}set description(t){this._name=t}get traceId(){return this._traceId}set traceId(t){this._traceId=t}get spanId(){return this._spanId}set spanId(t){this._spanId=t}set parentSpanId(t){this._parentSpanId=t}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(t){this._sampled=t}get attributes(){return this._attributes}set attributes(t){this._attributes=t}get startTimestamp(){return this._startTime}set startTimestamp(t){this._startTime=t}get endTimestamp(){return this._endTime}set endTimestamp(t){this._endTime=t}get status(){return this._status}set status(t){this._status=t}get op(){return this._attributes[VE]}set op(t){this.setAttribute(VE,t)}get origin(){return this._attributes[qg]}set origin(t){this.setAttribute(qg,t)}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?nbe:t1t}}startChild(t){const n=new PI({...t,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n);const r=zC(this);if(n.transaction=r,In&&r){const i=t&&t.op||"< unknown op >",a=Jo(n).description||"< unknown name >",s=r.spanContext().spanId,o=`[Tracing] Starting '${i}' span on transaction '${a}' (${s}).`;kt.log(o),this._logMessage=o}return n}setTag(t,n){return this.tags={...this.tags,[t]:n},this}setData(t,n){return this.data={...this.data,[t]:n},this}setAttribute(t,n){n===void 0?delete this._attributes[t]:this._attributes[t]=n}setAttributes(t){Object.keys(t).forEach(n=>this.setAttribute(n,t[n]))}setStatus(t){return this._status=t,this}setHttpStatus(t){return UW(this,t),this}setName(t){this.updateName(t)}updateName(t){return this._name=t,this}isSuccess(){return this._status==="ok"}finish(t){return this.end(t)}end(t){if(this._endTime)return;const n=zC(this);if(In&&n&&n.spanContext().spanId!==this._spanId){const r=this._logMessage;r&&kt.log(r.replace("Starting","Finishing"))}this._endTime=NI(t)}toTraceparent(){return II(this)}toContext(){return Su({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(t){return this.data=t.data||{},this._name=t.name||t.description,this._endTime=t.endTimestamp,this.op=t.op,this._parentSpanId=t.parentSpanId,this._sampled=t.sampled,this._spanId=t.spanId||this._spanId,this._startTime=t.startTimestamp||this._startTime,this._status=t.status,this.tags=t.tags||{},this._traceId=t.traceId||this._traceId,this}getTraceContext(){return FW(this)}getSpanJSON(){return Su({data:this._getData(),description:this._name,op:this._attributes[VE],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[qg],_metrics_summary:void 0,profile_id:this._attributes[C1t],exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:t,_attributes:n}=this,r=Object.keys(t).length>0,i=Object.keys(n).length>0;if(!(!r&&!i))return r&&i?{...t,...n}:r?t:n}}class pbe extends PI{constructor(t,n){super(t),this._contexts={},this._hub=n||jc(),this._name=t.name||"",this._metadata={...t.metadata},this._trimEnd=t.trimEnd,this.transaction=this;const r=this._metadata.dynamicSamplingContext;r&&(this._frozenDynamicSamplingContext={...r})}get name(){return this._name}set name(t){this.setName(t)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[c1]&&{source:this._attributes[c1]},...this._attributes[Ey]&&{sampleRate:this._attributes[Ey]}}}set metadata(t){this._metadata=t}setName(t,n="custom"){this._name=t,this.setAttribute(c1,n)}updateName(t){return this._name=t,this}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new hbe(t)),this.spanRecorder.add(this)}setContext(t,n){n===null?delete this._contexts[t]:this._contexts[t]=n}setMeasurement(t,n,r=""){this._measurements[t]={value:n,unit:r}}setMetadata(t){this._metadata={...this._metadata,...t}}end(t){const n=NI(t),r=this._finishTransaction(n);if(r)return this._hub.captureEvent(r)}toContext(){const t=super.toContext();return Su({...t,name:this._name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this._name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){return Hv(this)}setHub(t){this._hub=t}getProfileId(){if(this._contexts!==void 0&&this._contexts.profile!==void 0)return this._contexts.profile.profile_id}_finishTransaction(t){if(this._endTime!==void 0)return;this._name||(In&&kt.warn("Transaction has no name, falling back to ``."),this._name=""),super.end(t);const n=this._hub.getClient();if(n&&n.emit&&n.emit("finishTransaction",this),this._sampled!==!0){In&&kt.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),n&&n.recordDroppedEvent("sample_rate","transaction");return}const r=this.spanRecorder?this.spanRecorder.spans.filter(d=>d!==this&&Jo(d).timestamp):[];if(this._trimEnd&&r.length>0){const d=r.map(f=>Jo(f).timestamp).filter(Boolean);this._endTime=d.reduce((f,p)=>f>p?f:p)}const{scope:i,isolationScope:a}=_1t(this),{metadata:s}=this,{source:o}=s,l={contexts:{...this._contexts,trace:FW(this)},spans:r,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...s,capturedSpanScope:i,capturedSpanIsolationScope:a,...Su({dynamicSamplingContext:Hv(this)})},_metrics_summary:void 0,...o&&{transaction_info:{source:o}}};return Object.keys(this._measurements).length>0&&(In&&kt.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),l.measurements=this._measurements),In&&kt.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),l}}const A_={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},R1t="finishReason",Bb=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class I1t extends hbe{constructor(t,n,r,i){super(i),this._pushActivity=t,this._popActivity=n,this.transactionSpanId=r}add(t){if(t.spanContext().spanId!==this.transactionSpanId){const n=t.end;t.end=(...r)=>(this._popActivity(t.spanContext().spanId),n.apply(t,r)),Jo(t).timestamp===void 0&&this._pushActivity(t.spanContext().spanId)}super.add(t)}}class N1t extends pbe{constructor(t,n,r=A_.idleTimeout,i=A_.finalTimeout,a=A_.heartbeatInterval,s=!1,o=!1){super(t,n),this._idleHub=n,this._idleTimeout=r,this._finalTimeout=i,this._heartbeatInterval=a,this._onScope=s,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=Bb[4],this._autoFinishAllowed=!o,s&&(In&&kt.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),n.getScope().setSpan(this)),o||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=Bb[3],this.end())},this._finalTimeout)}end(t){const n=NI(t);if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setAttribute(R1t,this._finishReason),this.spanRecorder){In&&kt.log("[Tracing] finishing IdleTransaction",new Date(n*1e3).toISOString(),this.op);for(const r of this._beforeFinishCallbacks)r(this,n);this.spanRecorder.spans=this.spanRecorder.spans.filter(r=>{if(r.spanContext().spanId===this.spanContext().spanId)return!0;Jo(r).timestamp||(r.setStatus("cancelled"),r.end(n),In&&kt.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(r,void 0,2)));const{start_timestamp:i,timestamp:a}=Jo(r),s=i&&i{this._finished||this._pushActivity(i)},r=i=>{this._finished||this._popActivity(i)};this.spanRecorder=new I1t(n,r,this.spanContext().spanId,t),In&&kt.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:n}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=n===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=Bb[5],this.end(t)))}setFinishReason(t){this._finishReason=t}sendAutoFinishSignal(){this._autoFinishAllowed||(In&&kt.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=Bb[1],this.end(t))},this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),In&&kt.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,In&&kt.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(In&&kt.log(`[Tracing] popActivity ${t}`),delete this.activities[t],In&&kt.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const n=vx();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=Bb[5],this.end(n)):this._restartIdleTimeout(n+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?this._autoFinishAllowed&&(In&&kt.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=Bb[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){In&&kt.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function mbe(e,t,n){if(!FO(t))return e.sampled=!1,e;if(e.sampled!==void 0)return e.setAttribute(Ey,Number(e.sampled)),e;let r;return typeof t.tracesSampler=="function"?(r=t.tracesSampler(n),e.setAttribute(Ey,Number(r))):n.parentSampled!==void 0?r=n.parentSampled:typeof t.tracesSampleRate<"u"?(r=t.tracesSampleRate,e.setAttribute(Ey,Number(r))):(r=1,e.setAttribute(Ey,r)),gbe(r)?r?(e.sampled=Math.random()1?(In&&kt.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function D1t(){const t=this.getScope().getSpan();return t?{"sentry-trace":II(t)}:{}}function P1t(e,t){const n=this.getClient(),r=n&&n.getOptions()||{},i=r.instrumenter||"sentry",a=e.instrumenter||"sentry";i!==a&&(In&&kt.error(`A transaction was started with instrumenter=\`${a}\`, but the SDK is configured with the \`${i}\` instrumenter. -The transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),e.sampled=!1);let s=new pbe(e,this);return s=mbe(s,r,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...t}),s.isRecording()&&s.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",s),s}function Pne(e,t,n,r,i,a,s,o=!1){const l=e.getClient(),u=l&&l.getOptions()||{};let d=new N1t(t,e,n,r,s,i,o);return d=mbe(d,u,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...a}),d.isRecording()&&d.initSpanRecorder(u._experiments&&u._experiments.maxSpans),l&&l.emit&&l.emit("startTransaction",d),d}function L1t(){const e=Ox();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=P1t),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=D1t),E1t())}function M1t(e,t,n){const r=D1();r&&r.setMeasurement(e,t,n)}function $1t(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function F1t(e,t,n,r){const i=J1e(n),a={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:$O(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Z1(a,[s])}function B1t(e,t,n,r){const i=J1e(n),a=e.type&&e.type!=="replay_event"?e.type:"event";$1t(e,n&&n.sdk);const s=Vgt(e,i,r,t);return delete e.sdkProcessingMetadata,Z1(s,[[{type:a},e]])}const U1t="7";function z1t(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function j1t(e){return`${z1t(e)}${e.projectId}/envelope/`}function H1t(e,t){return tgt({sentry_key:e.publicKey,sentry_version:U1t,...t&&{sentry_client:`${t.name}/${t.version}`}})}function Q1t(e,t={}){const n=typeof t=="string"?t:t.tunnel,r=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return n||`${j1t(e)}?${H1t(e,r)}`}const Lne=[];function W1t(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.keys(t).map(n=>t[n])}function V1t(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=H1e(n(t)):r=t;const i=W1t(r),a=G1t(i,s=>s.name==="Debug");if(a!==-1){const[s]=i.splice(a,1);i.push(s)}return i}function q1t(e,t){const n={};return t.forEach(r=>{r&&bbe(e,r,n)}),n}function Mne(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function bbe(e,t,n){if(n[t.name]){In&&kt.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,Lne.indexOf(t.name)===-1&&(t.setupOnce(Jgt,jc),Lne.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),e.on&&typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,a)=>r(i,a,e))}if(e.addEventProcessor&&typeof t.processEvent=="function"){const r=t.processEvent.bind(t),i=Object.assign((a,s)=>r(a,s,e),{id:t.name});e.addEventProcessor(i)}In&&kt.log(`Integration installed: ${t.name}`)}function G1t(e,t){for(let n=0;n0?`|#${r.map(([a,s])=>`${a}:${s}`).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${i}|T${n.timestamp} -`}return t}function Z1t(e,t,n,r){const i={sent_at:new Date().toISOString()};n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(i.dsn=$O(t));const a=X1t(e);return Z1(i,[a])}function X1t(e){const t=Y1t(e);return[{type:"statsd",length:t.length},t]}const $ne="Not capturing exception because it's already been captured.";class K1t{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=egt(t.dsn):In&&kt.warn("No DSN provided, client will not send events."),this._dsn){const n=Q1t(this._dsn,t);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){if(yne(t)){In&&kt.log($ne);return}let i=n&&n.event_id;return this._process(this.eventFromException(t,n).then(a=>this._captureEvent(a,n,r)).then(a=>{i=a})),i}captureMessage(t,n,r,i){let a=r&&r.event_id;const s=RW(t)?t:String(t),o=IW(t)?this.eventFromMessage(s,n,r):this.eventFromException(t,r);return this._process(o.then(l=>this._captureEvent(l,r,i)).then(l=>{a=l})),a}captureEvent(t,n,r){if(n&&n.originalException&&yne(n.originalException)){In&&kt.log($ne);return}let i=n&&n.event_id;const s=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,n,s||r).then(o=>{i=o})),i}captureSession(t){typeof t.release!="string"?In&&kt.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),I1(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(i=>r&&i))):jv(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch{return In&&kt.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){const n=this._integrations[t.name];bbe(this,t,this._integrations),n||Mne(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=B1t(t,this._dsn,this._options._metadata,this._options.tunnel);for(const a of n.attachments||[])r=zgt(r,Qgt(a,this._options.transportOptions&&this._options.transportOptions.textEncoder));const i=this._sendEnvelope(r);i&&i.then(a=>this.emit("afterSendEvent",t,a),null)}sendSession(t){const n=F1t(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const i=typeof r=="number"?r:1,a=`${t}:${n}`;In&&kt.log(`Recording outcome: "${a}"${i>1?` (${i} times)`:""}`),this._outcomes[a]=(this._outcomes[a]||0)+i}}captureAggregateMetrics(t){In&&kt.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const n=Z1t(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}on(t,n){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(n)}emit(t,...n){this._hooks[t]&&this._hooks[t].forEach(r=>r(...n))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=q1t(this,t),Mne(this,t),this._integrationsInitialized=!0}_updateSessionFromEvent(t,n){let r=!1,i=!1;const a=n.exception&&n.exception.values;if(a){i=!0;for(const l of a){const u=l.mechanism;if(u&&u.handled===!1){r=!0;break}}}const s=t.status==="ok";(s&&t.errors===0||s&&r)&&(I1(t,{...r&&{status:"crashed"},errors:t.errors||Number(i||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new fu(n=>{let r=0;const i=1,a=setInterval(()=>{this._numProcessing==0?(clearInterval(a),n(!0)):(r+=i,t&&r>=t&&(clearInterval(a),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,i=X1()){const a=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s.length>0&&(n.integrations=s),this.emit("preprocessEvent",t,n),r1t(a,t,n,r,this,i).then(o=>{if(o===null)return o;const l={...i.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(o.contexts&&o.contexts.trace)&&l){const{traceId:d,spanId:f,parentSpanId:p,dsc:g}=l;o.contexts={trace:{trace_id:d,span_id:f,parent_span_id:p},...o.contexts};const O=g||DI(d,this,r);o.sdkProcessingMetadata={dynamicSamplingContext:O,...o.sdkProcessingMetadata}}return o})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(i=>i.event_id,i=>{if(In){const a=i;a.logLevel==="log"?kt.log(a.message):kt.warn(a)}})}_processEvent(t,n,r){const i=this.getOptions(),{sampleRate:a}=i,s=vbe(t),o=ybe(t),l=t.type||"error",u=`before send for type \`${l}\``;if(o&&typeof a=="number"&&Math.random()>a)return this.recordDroppedEvent("sample_rate","error",t),LW(new yf(`Discarding event because it's not included in the random sample (sampling rate = ${a})`,"log"));const d=l==="replay_event"?"replay":l,p=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,p).then(g=>{if(g===null)throw this.recordDroppedEvent("event_processor",d,t),new yf("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return g;const S=ebt(i,g,n);return J1t(S,u)}).then(g=>{if(g===null){if(this.recordDroppedEvent("before_send",d,t),s){const w=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",w)}throw new yf(`${u} returned \`null\`, will not send event.`,"log")}const O=r&&r.getSession();if(!s&&O&&this._updateSessionFromEvent(O,g),s){const T=g.sdkProcessingMetadata&&g.sdkProcessingMetadata.spanCountBeforeProcessing||0,w=g.spans?g.spans.length:0,x=T-w;x>0&&this.recordDroppedEvent("before_send","span",x)}const S=g.transaction_info;if(s&&S&&g.transaction!==t.transaction){const T="custom";g.transaction_info={...S,source:T}}return this.sendEvent(g,n),g}).then(null,g=>{throw g instanceof yf?g:(this.captureException(g,{data:{__sentry__:!0},originalException:g}),new yf(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. -Reason: ${g}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,n=>{In&&kt.error("Error while sending event:",n)});In&&kt.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map(n=>{const[r,i]=n.split(":");return{reason:r,category:i,quantity:t[n]}})}}function J1t(e,t){const n=`${t} must return \`null\` or a valid event.`;if(_I(e))return e.then(r=>{if(!Uv(r)&&r!==null)throw new yf(n);return r},r=>{throw new yf(`${t} rejected with ${r}`)});if(!Uv(e)&&e!==null)throw new yf(n);return e}function ebt(e,t,n){const{beforeSend:r,beforeSendTransaction:i}=e;if(ybe(t)&&r)return r(t,n);if(vbe(t)&&i){if(t.spans){const a=t.spans.length;t.sdkProcessingMetadata={...t.sdkProcessingMetadata,spanCountBeforeProcessing:a}}return i(t,n)}return t}function ybe(e){return e.type===void 0}function vbe(e){return e.type==="transaction"}function tbt(e,t){t.debug===!0&&(In?kt.enable():CI(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),th().update(t.initialScope);const r=new e(t);nbt(r),rbt(r)}function nbt(e){const n=jc().getStackTop();n.client=e,n.scope.setClient(e)}function rbt(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}const ibt=30;function Obe(e,t,n=Rgt(e.bufferSize||ibt)){let r={};const i=s=>n.drain(s);function a(s){const o=[];if(wne(s,(f,p)=>{const g=Tne(p);if(Xgt(r,g)){const O=Fne(f,p);e.recordDroppedEvent("ratelimit_backoff",g,O)}else o.push(f)}),o.length===0)return jv();const l=Z1(s[0],o),u=f=>{wne(l,(p,g)=>{const O=Fne(p,g);e.recordDroppedEvent(f,Tne(g),O)})},d=()=>t({body:jgt(l,e.textEncoder)}).then(f=>(f.statusCode!==void 0&&(f.statusCode<200||f.statusCode>=300)&&In&&kt.warn(`Sentry responded with status code ${f.statusCode} to sent event.`),r=Kgt(r,f),f),f=>{throw u("network_error"),f});return n.add(d).then(f=>f,f=>{if(f instanceof yf)return In&&kt.error("Skipped sending event because buffer is full."),u("queue_overflow"),jv();throw f})}return a.__sentry__baseTransport__=!0,{send:a,flush:i}}function Fne(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function abt(e,t){const n={sent_at:new Date().toISOString()};t&&(n.dsn=$O(t));const r=e.map(sbt);return Z1(n,r)}function sbt(e){return[{type:"span"},e]}function Sbe(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(a=>({name:`${r}:@sentry/${a}`,version:DM})),version:DM}),e._metadata=i}const obt=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],lbt=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],Ebe="InboundFilters",ubt=(e={})=>({name:Ebe,setupOnce(){},processEvent(t,n,r){const i=r.getOptions(),a=cbt(e,i);return dbt(t,a)?null:t}}),wbe=ubt;Am(Ebe,wbe);function cbt(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:obt],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:lbt],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function dbt(e,t){return t.ignoreInternal&&bbt(e)?(In&&kt.warn(`Event dropped due to being internal Sentry Error. -Event: ${v0(e)}`),!0):fbt(e,t.ignoreErrors)?(In&&kt.warn(`Event dropped due to being matched by \`ignoreErrors\` option. -Event: ${v0(e)}`),!0):hbt(e,t.ignoreTransactions)?(In&&kt.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. -Event: ${v0(e)}`),!0):pbt(e,t.denyUrls)?(In&&kt.warn(`Event dropped due to being matched by \`denyUrls\` option. -Event: ${v0(e)}. -Url: ${jC(e)}`),!0):mbt(e,t.allowUrls)?!1:(In&&kt.warn(`Event dropped due to not being matched by \`allowUrls\` option. -Event: ${v0(e)}. -Url: ${jC(e)}`),!0)}function fbt(e,t){return e.type||!t||!t.length?!1:gbt(e).some(n=>bx(n,t))}function hbt(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?bx(n,t):!1}function pbt(e,t){if(!t||!t.length)return!1;const n=jC(e);return n?bx(n,t):!1}function mbt(e,t){if(!t||!t.length)return!0;const n=jC(e);return n?bx(n,t):!0}function gbt(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),In&&t.length===0&&kt.error(`Could not extract message for event ${v0(e)}`),t}function bbt(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function ybt(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!==""&&n.filename!=="[native code]")return n.filename||null}return null}function jC(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?ybt(t):null}catch{return In&&kt.error(`Cannot extract url for event ${v0(e)}`),null}}let Bne;const Tbe="FunctionToString",Une=new WeakMap,vbt=()=>({name:Tbe,setupOnce(){Bne=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=DW(this),n=Une.has(cs())&&t!==void 0?t:this;return Bne.apply(n,e)}}catch{}},setup(e){Une.set(e,!0)}}),xbe=vbt;Am(Tbe,xbe);const ki=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Jn=Gr;function Obt(){Jn.document?Jn.document.addEventListener("visibilitychange",()=>{const e=D1();if(Jn.document.hidden&&e){const t="cancelled",{op:n,status:r}=Jo(e);ki&&kt.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),r||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}}):ki&&kt.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const Sx=(e,t,n)=>{let r,i;return a=>{t.value>=0&&(a||n)&&(i=t.value-(r||0),(i||r===void 0)&&(r=t.value,t.delta=i,e(t)))}},Sbt=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,Ebt=()=>{const e=Jn.performance.timing,t=Jn.performance.navigation.type,n={entryType:"navigation",startTime:0,type:t==2?"back_forward":t===1?"reload":"navigate"};for(const r in e)r!=="navigationStart"&&r!=="toJSON"&&(n[r]=Math.max(e[r]-e.navigationStart,0));return n},LI=()=>Jn.__WEB_VITALS_POLYFILL__?Jn.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||Ebt()):Jn.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],zW=()=>{const e=LI();return e&&e.activationStart||0},Ex=(e,t)=>{const n=LI();let r="navigate";return n&&(Jn.document&&Jn.document.prerendering||zW()>0?r="prerender":r=n.type.replace(/_/g,"-")),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:Sbt(),navigationType:r}},BO=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(i=>{t(i.getEntries())});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},wx=(e,t)=>{const n=r=>{(r.type==="pagehide"||Jn.document.visibilityState==="hidden")&&(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};Jn.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))},wbt=(e,t={})=>{const n=Ex("CLS",0);let r,i=0,a=[];const s=l=>{l.forEach(u=>{if(!u.hadRecentInput){const d=a[0],f=a[a.length-1];i&&a.length!==0&&u.startTime-f.startTime<1e3&&u.startTime-d.startTime<5e3?(i+=u.value,a.push(u)):(i=u.value,a=[u]),i>n.value&&(n.value=i,n.entries=a,r&&r())}})},o=BO("layout-shift",s);if(o){r=Sx(e,n,t.reportAllChanges);const l=()=>{s(o.takeRecords()),r(!0)};return wx(l),l}};let HC=-1;const Tbt=()=>{Jn.document&&Jn.document.visibilityState&&(HC=Jn.document.visibilityState==="hidden"&&!Jn.document.prerendering?0:1/0)},xbt=()=>{wx(({timeStamp:e})=>{HC=e},!0)},jW=()=>(HC<0&&(Tbt(),xbt()),{get firstHiddenTime(){return HC}}),kbt=e=>{const t=jW(),n=Ex("FID");let r;const i=o=>{o.startTime{o.forEach(i)},s=BO("first-input",a);r=Sx(e,n),s&&wx(()=>{a(s.takeRecords()),s.disconnect()},!0)};let kbe=0,R7=1/0,T4=0;const Abt=e=>{e.forEach(t=>{t.interactionId&&(R7=Math.min(R7,t.interactionId),T4=Math.max(T4,t.interactionId),kbe=T4?(T4-R7)/7+1:0)})};let MM;const _bt=()=>MM?kbe:performance.interactionCount||0,Cbt=()=>{"interactionCount"in performance||MM||(MM=BO("event",Abt,{type:"event",buffered:!0,durationThreshold:0}))},Abe=()=>_bt(),zne=10,Lh=[],I7={},jne=e=>{const t=Lh[Lh.length-1],n=I7[e.interactionId];if(n||Lh.lengtht.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{const r={id:e.interactionId,latency:e.duration,entries:[e]};I7[r.id]=r,Lh.push(r)}Lh.sort((r,i)=>i.latency-r.latency),Lh.splice(zne).forEach(r=>{delete I7[r.id]})}},Rbt=()=>{const e=Math.min(Lh.length-1,Math.floor(Abe()/50));return Lh[e]},Ibt=(e,t)=>{t=t||{},Cbt();const n=Ex("INP");let r;const i=s=>{s.forEach(l=>{l.interactionId&&jne(l),l.entryType==="first-input"&&!Lh.some(d=>d.entries.some(f=>l.duration===f.duration&&l.startTime===f.startTime))&&jne(l)});const o=Rbt();o&&o.latency!==n.value&&(n.value=o.latency,n.entries=o.entries,r())},a=BO("event",i,{durationThreshold:t.durationThreshold||40});r=Sx(e,n,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),wx(()=>{i(a.takeRecords()),n.value<0&&Abe()>0&&(n.value=0,n.entries=[]),r(!0)}))},Hne={},Nbt=e=>{const t=jW(),n=Ex("LCP");let r;const i=s=>{const o=s[s.length-1];if(o){const l=Math.max(o.startTime-zW(),0);l{Hne[n.id]||(i(a.takeRecords()),a.disconnect(),Hne[n.id]=!0,r(!0))};return["keydown","click"].forEach(o=>{Jn.document&&addEventListener(o,s,{once:!0,capture:!0})}),wx(s,!0),s}},$M=e=>{Jn.document&&(Jn.document.prerendering?addEventListener("prerenderingchange",()=>$M(e),!0):Jn.document.readyState!=="complete"?addEventListener("load",()=>$M(e),!0):setTimeout(e,0))},Dbt=(e,t)=>{t=t||{};const n=Ex("TTFB"),r=Sx(e,n,t.reportAllChanges);$M(()=>{const i=LI();if(i){if(n.value=Math.max(i.responseStart-zW(),0),n.value<0||n.value>performance.now())return;n.entries=[i],r(!0)}})},L2={},QC={};let _be,Cbe,Rbe,Ibe,Nbe;function Pbt(e,t=!1){return Tx("cls",e,Bbt,_be,t)}function Lbt(e,t=!1){return Tx("lcp",e,zbt,Rbe,t)}function Mbt(e){return Tx("ttfb",e,jbt,Ibe)}function $bt(e){return Tx("fid",e,Ubt,Cbe)}function Fbt(e){return Tx("inp",e,Hbt,Nbe)}function nT(e,t){return Dbe(e,t),QC[e]||(Qbt(e),QC[e]=!0),Pbe(e,t)}function UO(e,t){const n=L2[e];if(!(!n||!n.length))for(const r of n)try{r(t)}catch(i){ki&&kt.error(`Error while triggering instrumentation handler. -Type: ${e} -Name: ${mp(r)} -Error:`,i)}}function Bbt(){return wbt(e=>{UO("cls",{metric:e}),_be=e},{reportAllChanges:!0})}function Ubt(){return kbt(e=>{UO("fid",{metric:e}),Cbe=e})}function zbt(){return Nbt(e=>{UO("lcp",{metric:e}),Rbe=e})}function jbt(){return Dbt(e=>{UO("ttfb",{metric:e}),Ibe=e})}function Hbt(){return Ibt(e=>{UO("inp",{metric:e}),Nbe=e})}function Tx(e,t,n,r,i=!1){Dbe(e,t);let a;return QC[e]||(a=n(),QC[e]=!0),r&&t({metric:r}),Pbe(e,t,i?a:void 0)}function Qbt(e){const t={};e==="event"&&(t.durationThreshold=0),BO(e,n=>{UO(e,{entries:n})},t)}function Dbe(e,t){L2[e]=L2[e]||[],L2[e].push(t)}function Pbe(e,t,n){return()=>{n&&n();const r=L2[e];if(!r)return;const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function N7(e){return typeof e=="number"&&isFinite(e)}function Qv(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}const Wbt=2147483647;function is(e){return e/1e3}function HW(){return Jn&&Jn.addEventListener&&Jn.performance}let Qne=0,Ea={},sf,M2;function Vbt(){const e=HW();if(e&&Ic){e.mark&&Jn.performance.mark("sentry-tracing-init");const t=Kbt(),n=Zbt(),r=Xbt(),i=Jbt();return()=>{t(),n(),r(),i()}}return()=>{}}function qbt(){nT("longtask",({entries:e})=>{for(const t of e){const n=D1();if(!n)return;const r=is(Ic+t.startTime),i=is(t.duration);n.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i})}})}function Gbt(){nT("event",({entries:e})=>{for(const t of e){const n=D1();if(!n)return;if(t.name==="click"){const r=is(Ic+t.startTime),i=is(t.duration),a={description:zv(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i},s=M1e(t.target);s&&(a.attributes={"ui.component_name":s}),n.startChild(a)}}})}function Ybt(e,t){if(HW()&&Ic){const r=eyt(e,t);return()=>{r()}}return()=>{}}function Zbt(){return Pbt(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(ki&&kt.log("[Measurements] Adding CLS"),Ea.cls={value:e.value,unit:""},M2=t)},!0)}function Xbt(){return Lbt(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(ki&&kt.log("[Measurements] Adding LCP"),Ea.lcp={value:e.value,unit:"millisecond"},sf=t)},!0)}function Kbt(){return $bt(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=is(Ic),r=is(t.startTime);ki&&kt.log("[Measurements] Adding FID"),Ea.fid={value:e.value,unit:"millisecond"},Ea["mark.fid"]={value:n+r,unit:"second"}})}function Jbt(){return Mbt(({metric:e})=>{e.entries[e.entries.length-1]&&(ki&&kt.log("[Measurements] Adding TTFB"),Ea.ttfb={value:e.value,unit:"millisecond"})})}const Wne={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function eyt(e,t){return Fbt(({metric:n})=>{if(n.value===void 0)return;const r=n.entries.find(k=>k.duration===n.value&&Wne[k.name]!==void 0),i=cs();if(!r||!i)return;const a=Wne[r.name],s=i.getOptions(),o=is(Ic+r.startTime),l=is(n.value),u=r.interactionId!==void 0?e[r.interactionId]:void 0;if(u===void 0)return;const{routeName:d,parentContext:f,activeTransaction:p,user:g,replayId:O}=u,S=g!==void 0?g.email||g.id||g.ip_address:void 0,T=p!==void 0?p.getProfileId():void 0,w=new PI({startTimestamp:o,endTimestamp:o+l,op:`ui.interaction.${a}`,name:zv(r.target),attributes:{release:s.release,environment:s.environment,transaction:d,...S!==void 0&&S!==""?{user:S}:{},...T!==void 0?{profile_id:T}:{},...O!==void 0?{replay_id:O}:{}},exclusiveTime:n.value,measurements:{inp:{value:n.value,unit:"millisecond"}}}),x=uyt(f,s,t);if(x&&Math.random(){ki&&kt.error("Error while sending interaction:",R)});return}})}function tyt(e){const t=HW();if(!t||!Jn.performance.getEntries||!Ic)return;ki&&kt.log("[Tracing] Adding & adjusting spans using Performance API");const n=is(Ic),r=t.getEntries(),{op:i,start_timestamp:a}=Jo(e);if(r.slice(Qne).forEach(s=>{const o=is(s.startTime),l=is(s.duration);if(!(e.op==="navigation"&&a&&n+o{if(!Ea[o]||!a||n>=a)return;const l=Ea[o].value,u=n+is(l),d=Math.abs((u-a)*1e3),f=d-l;ki&&kt.log(`[Measurements] Normalized ${o} from ${l} to ${d} (${f})`),Ea[o].value=d});const s=Ea["mark.fid"];s&&Ea.fid&&(Qv(e,{description:"first input delay",endTimestamp:s.value+is(Ea.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:s.value}),delete Ea["mark.fid"]),"fcp"in Ea||delete Ea.cls,Object.keys(Ea).forEach(o=>{M1t(o,Ea[o].value,Ea[o].unit)}),oyt(e)}sf=void 0,M2=void 0,Ea={}}function nyt(e,t,n,r,i){const a=i+n,s=a+r;return Qv(e,{description:t.name,endTimestamp:s,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:a}),a}function ryt(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{x4(e,t,r,n)}),x4(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),x4(e,t,"fetch",n,"cache","domainLookupStart"),x4(e,t,"domainLookup",n,"DNS"),iyt(e,t,n)}function x4(e,t,n,r,i,a){const s=a?t[a]:t[`${n}End`],o=t[`${n}Start`];!o||!s||Qv(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+is(o),endTimestamp:r+is(s)})}function iyt(e,t,n){t.responseEnd&&(Qv(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+is(t.requestStart),endTimestamp:n+is(t.responseEnd)}),Qv(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+is(t.responseStart),endTimestamp:n+is(t.responseEnd)}))}function ayt(e,t,n,r,i,a){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const s=u1(n),o={};D7(o,t,"transferSize","http.response_transfer_size"),D7(o,t,"encodedBodySize","http.response_content_length"),D7(o,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(o["resource.render_blocking_status"]=t.renderBlockingStatus),s.protocol&&(o["url.scheme"]=s.protocol.split(":").pop()),s.host&&(o["server.address"]=s.host),o["url.same_origin"]=n.includes(Jn.location.origin);const l=a+r,u=l+i;Qv(e,{description:n.replace(Jn.location.origin,""),endTimestamp:u,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:l,data:o})}function syt(e){const t=Jn.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),N7(n.rtt)&&(Ea["connection.rtt"]={value:n.rtt,unit:"millisecond"})),N7(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),N7(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}function oyt(e){sf&&(ki&&kt.log("[Measurements] Adding LCP Data"),sf.element&&e.setTag("lcp.element",zv(sf.element)),sf.id&&e.setTag("lcp.id",sf.id),sf.url&&e.setTag("lcp.url",sf.url.trim().slice(0,200)),e.setTag("lcp.size",sf.size)),M2&&M2.sources&&(ki&&kt.log("[Measurements] Adding CLS Data"),M2.sources.forEach((t,n)=>e.setTag(`cls.source.${n+1}`,zv(t.node))))}function D7(e,t,n,r){const i=t[n];i!=null&&i0?S.join(","):void 0}}else return{"sentry-trace":f,baggage:p}}function fyt(e){try{return new URL(e).href}catch{return}}function hyt(e,t){if(t.response){UW(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus("internal_error");e.end()}const FM=["localhost",/^\/(?!\/)/],BM={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:FM,tracePropagationTargets:FM};function pyt(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:a,enableHTTPTimings:s}={traceFetch:BM.traceFetch,traceXHR:BM.traceXHR,...e},o=typeof a=="function"?a:d=>!0,l=d=>yyt(d,r||i),u={};t&&W1e(d=>{const f=cyt(d,o,l,u);if(f){const p=Lbe(d.fetchData.url),g=p?u1(p).host:void 0;f.setAttributes({"http.url":p,"server.address":g})}s&&f&&Vne(f)}),n&&G1e(d=>{const f=vyt(d,o,l,u);s&&f&&Vne(f)})}function myt(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function Vne(e){const{url:t}=Jo(e).data||{};if(!t||typeof t!="string")return;const n=nT("resource",({entries:r})=>{r.forEach(i=>{myt(i)&&i.name.endsWith(t)&&(byt(i).forEach(s=>e.setAttribute(...s)),setTimeout(n))})})}function gyt(e){let t="unknown",n="unknown",r="";for(const i of e){if(i==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function ef(e=0){return((Ic||performance.timeOrigin)+e)/1e3}function byt(e){const{name:t,version:n}=gyt(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),Ic?[...r,["http.request.redirect_start",ef(e.redirectStart)],["http.request.fetch_start",ef(e.fetchStart)],["http.request.domain_lookup_start",ef(e.domainLookupStart)],["http.request.domain_lookup_end",ef(e.domainLookupEnd)],["http.request.connect_start",ef(e.connectStart)],["http.request.secure_connection_start",ef(e.secureConnectionStart)],["http.request.connection_end",ef(e.connectEnd)],["http.request.request_start",ef(e.requestStart)],["http.request.response_start",ef(e.responseStart)],["http.request.response_end",ef(e.responseEnd)]]:r}function yyt(e,t){return bx(e,t||FM)}function vyt(e,t,n,r){const i=e.xhr,a=i&&i[Sy];if(!FO()||!i||i.__sentry_own_request__||!a)return;const s=t(a.url);if(e.endTimestamp&&s){const g=i.__sentry_xhr_span_id__;if(!g)return;const O=r[g];O&&a.status_code!==void 0&&(UW(O,a.status_code),O.end(),delete r[g]);return}const o=th(),l=X1(),u=Lbe(a.url),d=u?u1(u).host:void 0,f=s?cbe({name:`${a.method} ${a.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":a.method,"http.url":u,url:a.url,"server.address":d,[qg]:"auto.http.browser"},op:"http.client"}):void 0;f&&(i.__sentry_xhr_span_id__=f.spanContext().spanId,r[i.__sentry_xhr_span_id__]=f);const p=cs();if(i.setRequestHeader&&n(a.url)&&p){const{traceId:g,spanId:O,sampled:S,dsc:T}={...l.getPropagationContext(),...o.getPropagationContext()},w=f?II(f):MW(g,O,S),x=K1e(T||(f?Hv(f):DI(g,p,o)));Oyt(i,w,x)}return f}function Oyt(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(IM,n)}catch{}}function Lbe(e){try{return new URL(e,Jn.location.origin).href}catch{return}}function Syt(e,t=!0,n=!0){if(!Jn||!Jn.location){ki&&kt.warn("Could not initialize routing instrumentation due to invalid location");return}let r=Jn.location.href,i;t&&(i=e({name:Jn.location.pathname,startTimestamp:Ic?Ic/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&PW(({to:a,from:s})=>{if(s===void 0&&r&&r.indexOf(a)!==-1){r=void 0;return}s!==a&&(r=void 0,i&&(ki&&kt.log(`[Tracing] Finishing current transaction with op: ${i.op}`),i.end()),i=e({name:Jn.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})}const Eyt="BrowserTracing",wyt={...A_,markBackgroundTransactions:!0,routingInstrumentation:Syt,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...BM},qne=10;class Tyt{constructor(t){this.name=Eyt,this._hasSetTracePropagationTargets=!1,L1t(),ki&&(this._hasSetTracePropagationTargets=!!(t&&(t.tracePropagationTargets||t.tracingOrigins))),this.options={...wyt,...t},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=Vbt(),this._interactionIdToRouteNameMapping={},this.options.enableInp&&Ybt(this._interactionIdToRouteNameMapping,this.options.interactionsSampleRate),this.options.enableLongTask&&qbt(),this.options._experiments.enableInteractions&&Gbt(),this._latestRoute={name:void 0,context:void 0}}setupOnce(t,n){this._getCurrentHub=n;const i=n().getClient(),a=i&&i.getOptions(),{routingInstrumentation:s,startTransactionOnLocationChange:o,startTransactionOnPageLoad:l,markBackgroundTransactions:u,traceFetch:d,traceXHR:f,shouldCreateSpanForRequest:p,enableHTTPTimings:g,_experiments:O}=this.options,S=a&&a.tracePropagationTargets,T=S||this.options.tracePropagationTargets;ki&&this._hasSetTracePropagationTargets&&S&&kt.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),s(w=>{const x=this._createRouteTransaction(w);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(x,w,n),x},l,o),u&&Obt(),O.enableInteractions&&this._registerInteractionListener(),this.options.enableInp&&this._registerInpInteractionListener(),pyt({traceFetch:d,traceXHR:f,tracePropagationTargets:T,shouldCreateSpanForRequest:p,enableHTTPTimings:g})}_createRouteTransaction(t){if(!this._getCurrentHub){ki&&kt.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`);return}const n=this._getCurrentHub(),{beforeNavigate:r,idleTimeout:i,finalTimeout:a,heartbeatInterval:s}=this.options,o=t.op==="pageload";let l;if(o){const g=o?Gne("sentry-trace"):"",O=o?Gne("baggage"):void 0,{traceId:S,dsc:T,parentSpanId:w,sampled:x}=Ugt(g,O);l={traceId:S,parentSpanId:w,parentSampled:x,...t,metadata:{...t.metadata,dynamicSamplingContext:T},trimEnd:!0}}else l={trimEnd:!0,...t};const u=typeof r=="function"?r(l):l,d=u===void 0?{...l,sampled:!1}:u;d.metadata=d.name!==l.name?{...d.metadata,source:"custom"}:d.metadata,this._latestRoute.name=d.name,this._latestRoute.context=d,d.sampled===!1&&ki&&kt.log(`[Tracing] Will not send ${d.op} transaction because of beforeNavigate.`),ki&&kt.log(`[Tracing] Starting ${d.op} transaction on scope`);const{location:f}=Jn,p=Pne(n,d,i,a,!0,{location:f},s,o);return o&&Jn.document&&(Jn.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(Jn.document.readyState)&&p.sendAutoFinishSignal()}),["interactive","complete"].includes(Jn.document.readyState)&&p.sendAutoFinishSignal()),p.registerBeforeFinishCallback(g=>{this._collectWebVitals(),tyt(g)}),p}_registerInteractionListener(){let t;const n=()=>{const{idleTimeout:r,finalTimeout:i,heartbeatInterval:a}=this.options,s="ui.action.click",o=D1();if(o&&o.op&&["navigation","pageload"].includes(o.op)){ki&&kt.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`);return}if(t&&(t.setFinishReason("interactionInterrupted"),t.end(),t=void 0),!this._getCurrentHub){ki&&kt.warn(`[Tracing] Did not create ${s} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRoute.name){ki&&kt.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}const l=this._getCurrentHub(),{location:u}=Jn,d={name:this._latestRoute.name,op:s,trimEnd:!0,data:{[c1]:this._latestRoute.context?xyt(this._latestRoute.context):"url"}};t=Pne(l,d,r,i,!0,{location:u},a)};["click"].forEach(r=>{Jn.document&&addEventListener(r,n,{once:!1,capture:!0})})}_registerInpInteractionListener(){const t=({entries:n})=>{const r=cs(),i=r!==void 0&&r.getIntegrationByName!==void 0?r.getIntegrationByName("Replay"):void 0,a=i!==void 0?i.getReplayId():void 0,s=D1(),o=th(),l=o!==void 0?o.getUser():void 0;n.forEach(u=>{if(kyt(u)){const d=u.interactionId;if(d===void 0)return;const f=this._interactionIdToRouteNameMapping[d],p=u.duration,g=u.startTime,O=Object.keys(this._interactionIdToRouteNameMapping),S=O.length>0?O.reduce((T,w)=>this._interactionIdToRouteNameMapping[T].durationthis._interactionIdToRouteNameMapping[w]).some(w=>w.duration===p&&w.startTime===g)||!d)return;if(f)f.duration=Math.max(f.duration,p);else if(O.lengththis._interactionIdToRouteNameMapping[S].duration){const T=this._latestRoute.name,w=this._latestRoute.context;T&&w&&(S&&Object.keys(this._interactionIdToRouteNameMapping).length>=qne&&delete this._interactionIdToRouteNameMapping[S],this._interactionIdToRouteNameMapping[d]={routeName:T,duration:p,parentContext:w,user:l,activeTransaction:s,replayId:a,startTime:g})}}})};nT("event",t),nT("first-input",t)}}function Gne(e){const t=qmt(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function xyt(e){const t=e.attributes&&e.attributes[c1],n=e.data&&e.data[c1],r=e.metadata&&e.metadata.source;return t||n||r}function kyt(e){return"duration"in e}const Kr=Gr;let UM=0;function Mbe(){return UM>0}function Ayt(){UM++,setTimeout(()=>{UM--})}function Wv(e,t={},n){if(typeof e!="function")return e;try{const i=e.__sentry_wrapped__;if(i)return i;if(DW(e))return e}catch{return e}const r=function(){const i=Array.prototype.slice.call(arguments);try{const a=i.map(s=>Wv(s,t));return e.apply(this,a)}catch(a){throw Ayt(),d1t(s=>{s.addEventProcessor(o=>(t.mechanism&&(TM(o,void 0),tT(o,t.mechanism)),o.extra={...o.extra,arguments:i},o)),c1t(a)}),a}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}F1e(r,e),R1(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const Qh=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function $be(e,t){const n=QW(e,t),r={type:t&&t.name,value:Iyt(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function _yt(e,t,n,r){const i=cs(),a=i&&i.getOptions().normalizeDepth,s={exception:{values:[{type:AI(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Pyt(t,{isUnhandledRejection:r})}]},extra:{__serialized__:Y1e(t,a)}};if(n){const o=QW(e,n);o.length&&(s.exception.values[0].stacktrace={frames:o})}return s}function P7(e,t){return{exception:{values:[$be(e,t)]}}}function QW(e,t){const n=t.stacktrace||t.stack||"",r=Ryt(t);try{return e(n,r)}catch{}return[]}const Cyt=/Minified React error #\d+;/i;function Ryt(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(Cyt.test(e.message))return 1}return 0}function Iyt(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function Nyt(e,t,n,r){const i=n&&n.syntheticException||void 0,a=WW(e,t,i,r);return tT(a),a.level="error",n&&n.event_id&&(a.event_id=n.event_id),jv(a)}function Dyt(e,t,n="info",r,i){const a=r&&r.syntheticException||void 0,s=zM(e,t,a,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),jv(s)}function WW(e,t,n,r,i){let a;if(CW(t)&&t.error)return P7(e,t.error);if(une(t)||$mt(t)){const s=t;if("stack"in t)a=P7(e,t);else{const o=s.name||(une(s)?"DOMError":"DOMException"),l=s.message?`${o}: ${s.message}`:o;a=zM(e,l,n,r),TM(a,l)}return"code"in s&&(a.tags={...a.tags,"DOMException.code":`${s.code}`}),a}return N1e(t)?P7(e,t):Uv(t)||AI(t)?(a=_yt(e,t,n,i),tT(a,{synthetic:!0}),a):(a=zM(e,t,n,r),TM(a,`${t}`),tT(a,{synthetic:!0}),a)}function zM(e,t,n,r){const i={};if(r&&n){const a=QW(e,n);a.length&&(i.exception={values:[{value:t,stacktrace:{frames:a}}]})}if(RW(t)){const{__sentry_template_string__:a,__sentry_template_values__:s}=t;return i.logentry={message:a,params:s},i}return i.message=t,i}function Pyt(e,{isUnhandledRejection:t}){const n=ngt(e),r=t?"promise rejection":"exception";return CW(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:AI(e)?`Event \`${Lyt(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Lyt(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Myt(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:$O(r)}},a=$yt(e);return Z1(i,[a])}function $yt(e){return[{type:"user_report"},e]}class Fyt extends K1t{constructor(t){const n=Kr.SENTRY_SDK_SOURCE||Tgt();Sbe(t,"browser",["browser"],n),super(t),t.sendClientReports&&Kr.document&&Kr.document.addEventListener("visibilitychange",()=>{Kr.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return Nyt(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return Dyt(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){Qh&&kt.warn("SDK not enabled, will not capture user feedback.");return}const n=Myt(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){Qh&&kt.log("No outcomes to send");return}if(!this._dsn){Qh&&kt.log("No dsn provided, will not send outcomes");return}Qh&&kt.log("Sending outcomes:",t);const n=qgt(t,this._options.tunnel&&$O(this._dsn));this._sendEnvelope(n)}}let qE;function Byt(){if(qE)return qE;if(_M(Kr.fetch))return qE=Kr.fetch.bind(Kr);const e=Kr.document;let t=Kr.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){Qh&&kt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return qE=t.bind(Kr)}function Uyt(){qE=void 0}function zyt(e,t=Byt()){let n=0,r=0;function i(a){const s=a.body.length;n+=s,r++;const o={body:a.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,o).then(l=>(n-=s,r--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return Uyt(),n-=s,r--,LW(l)}}return Obe(e,i)}const jyt=4;function Hyt(e){function t(n){return new fu((r,i)=>{const a=new XMLHttpRequest;a.onerror=i,a.onreadystatechange=()=>{a.readyState===jyt&&r({statusCode:a.status,headers:{"x-sentry-rate-limits":a.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":a.getResponseHeader("Retry-After")}})},a.open("POST",e.url);for(const s in e.headers)Object.prototype.hasOwnProperty.call(e.headers,s)&&a.setRequestHeader(s,e.headers[s]);a.send(n.body)})}return Obe(e,t)}const MI="?",Qyt=30,Wyt=40,Vyt=50;function VW(e,t,n,r){const i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const qyt=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Gyt=/\((\S*)(?::(\d+))(?::(\d+))\)/,Yyt=e=>{const t=qyt.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const a=Gyt.exec(t[2]);a&&(t[2]=a[1],t[3]=a[2],t[4]=a[3])}const[r,i]=Fbe(t[1]||MI,t[2]);return VW(i,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},Zyt=[Qyt,Yyt],Xyt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Kyt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Jyt=e=>{const t=Xyt.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const a=Kyt.exec(t[3]);a&&(t[1]=t[1]||"eval",t[3]=a[1],t[4]=a[2],t[5]="")}let r=t[3],i=t[1]||MI;return[i,r]=Fbe(i,r),VW(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},evt=[Vyt,Jyt],tvt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,nvt=e=>{const t=tvt.exec(e);return t?VW(t[2],t[1]||MI,+t[3],t[4]?+t[4]:void 0):void 0},rvt=[Wyt,nvt],ivt=[Zyt,evt,rvt],avt=z1e(...ivt),Fbe=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:MI,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},k4=1024,Bbe="Breadcrumbs",svt=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Bbe,setupOnce(){},setup(n){t.console&&sgt(uvt(n)),t.dom&&ugt(lvt(n,t.dom)),t.xhr&&G1e(cvt(n)),t.fetch&&W1e(dvt(n)),t.history&&PW(fvt(n)),t.sentry&&n.on&&n.on("beforeSendEvent",ovt(n))}}},Ube=svt;Am(Bbe,Ube);function ovt(e){return function(n){cs()===e&&N1({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:v0(n)},{event:n})}}function lvt(e,t){return function(r){if(cs()!==e)return;let i,a,s=typeof t=="object"?t.serializeAttribute:void 0,o=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;o&&o>k4&&(Qh&&kt.warn(`\`dom.maxStringLength\` cannot exceed ${k4}, but a value of ${o} was configured. Sentry will use ${k4} instead.`),o=k4),typeof s=="string"&&(s=[s]);try{const u=r.event,d=hvt(u)?u.target:u;i=zv(d,{keyAttrs:s,maxStringLength:o}),a=M1e(d)}catch{i=""}if(i.length===0)return;const l={category:`ui.${r.name}`,message:i};a&&(l.data={"ui.component_name":a}),N1(l,{event:r.event,name:r.name,global:r.global})}}function uvt(e){return function(n){if(cs()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:Ngt(n.level),message:cne(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${cne(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;N1(r,{input:n.args,level:n.level})}}function cvt(e){return function(n){if(cs()!==e)return;const{startTimestamp:r,endTimestamp:i}=n,a=n.xhr[Sy];if(!r||!i||!a)return;const{method:s,url:o,status_code:l,body:u}=a,d={method:s,url:o,status_code:l},f={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:i};N1({category:"xhr",data:d,type:"http"},f)}}function dvt(e){return function(n){if(cs()!==e)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const a=n.fetchData,s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i};N1({category:"fetch",data:a,level:"error",type:"http"},s)}else{const a=n.response,s={...n.fetchData,status_code:a&&a.status},o={input:n.args,response:a,startTimestamp:r,endTimestamp:i};N1({category:"fetch",data:s,type:"http"},o)}}}function fvt(e){return function(n){if(cs()!==e)return;let r=n.from,i=n.to;const a=u1(Kr.location.href);let s=r?u1(r):void 0;const o=u1(i);(!s||!s.path)&&(s=a),a.protocol===o.protocol&&a.host===o.host&&(i=o.relative),a.protocol===s.protocol&&a.host===s.host&&(r=s.relative),N1({category:"navigation",data:{from:r,to:i}})}}function hvt(e){return!!e&&!!e.target}const zbe="Dedupe",pvt=()=>{let e;return{name:zbe,setupOnce(){},processEvent(t){if(t.type)return t;try{if(mvt(t,e))return Qh&&kt.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},jbe=pvt;Am(zbe,jbe);function mvt(e,t){return t?!!(gvt(e,t)||bvt(e,t)):!1}function gvt(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Qbe(e,t)||!Hbe(e,t))}function bvt(e,t){const n=Yne(t),r=Yne(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Qbe(e,t)||!Hbe(e,t))}function Hbe(e,t){let n=Zne(e),r=Zne(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:Wbe,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(vvt(n),Xne("onerror")),t.onunhandledrejection&&(Ovt(n),Xne("onunhandledrejection"))}}},Vbe=yvt;Am(Wbe,Vbe);function vvt(e){V1e(t=>{const{stackParser:n,attachStacktrace:r}=Gbe();if(cs()!==e||Mbe())return;const{msg:i,url:a,line:s,column:o,error:l}=t,u=l===void 0&&Pf(i)?wvt(i,a,s,o):qbe(WW(n,l||i,void 0,r,!1),a,s,o);u.level="error",rbe(u,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}function Ovt(e){q1e(t=>{const{stackParser:n,attachStacktrace:r}=Gbe();if(cs()!==e||Mbe())return;const i=Svt(t),a=IW(i)?Evt(i):WW(n,i,void 0,r,!0);a.level="error",rbe(a,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Svt(e){if(IW(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return e}function Evt(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function wvt(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let a=CW(e)?e.message:e,s="Error";const o=a.match(i);return o&&(s=o[1],a=o[2]),qbe({exception:{values:[{type:s,value:a}]}},t,n,r)}function qbe(e,t,n,r){const i=e.exception=e.exception||{},a=i.values=i.values||[],s=a[0]=a[0]||{},o=s.stacktrace=s.stacktrace||{},l=o.frames=o.frames||[],u=isNaN(parseInt(r,10))?void 0:r,d=isNaN(parseInt(n,10))?void 0:n,f=Pf(t)&&t.length>0?t:Vmt();return l.length===0&&l.push({colno:u,filename:f,function:"?",in_app:!0,lineno:d}),e}function Xne(e){Qh&&kt.log(`Global Handler attached: ${e}`)}function Gbe(){const e=cs();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Ybe="HttpContext",Tvt=()=>({name:Ybe,setupOnce(){},preprocessEvent(e){if(!Kr.navigator&&!Kr.location&&!Kr.document)return;const t=e.request&&e.request.url||Kr.location&&Kr.location.href,{referrer:n}=Kr.document||{},{userAgent:r}=Kr.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},a={...e.request,...t&&{url:t},headers:i};e.request=a}}),Zbe=Tvt;Am(Ybe,Zbe);const xvt="cause",kvt=5,Xbe="LinkedErrors",Avt=(e={})=>{const t=e.limit||kvt,n=e.key||xvt;return{name:Xbe,setupOnce(){},preprocessEvent(r,i,a){const s=a.getOptions();jmt($be,s.stackParser,s.maxValueLength,n,t,r,i)}}},Kbe=Avt;Am(Xbe,Kbe);const _vt=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Jbe="TryCatch",Cvt=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:Jbe,setupOnce(){t.setTimeout&&Ws(Kr,"setTimeout",Kne),t.setInterval&&Ws(Kr,"setInterval",Kne),t.requestAnimationFrame&&Ws(Kr,"requestAnimationFrame",Rvt),t.XMLHttpRequest&&"XMLHttpRequest"in Kr&&Ws(XMLHttpRequest.prototype,"send",Ivt);const n=t.eventTarget;n&&(Array.isArray(n)?n:_vt).forEach(Nvt)}}},eye=Cvt;Am(Jbe,eye);function Kne(e){return function(...t){const n=t[0];return t[0]=Wv(n,{mechanism:{data:{function:mp(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Rvt(e){return function(t){return e.apply(this,[Wv(t,{mechanism:{data:{function:"requestAnimationFrame",handler:mp(e)},handled:!1,type:"instrument"}})])}}function Ivt(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&Ws(n,i,function(a){const s={mechanism:{data:{function:i,handler:mp(a)},handled:!1,type:"instrument"}},o=DW(a);return o&&(s.mechanism.data.handler=mp(o)),Wv(a,s)})}),e.apply(this,t)}}function Nvt(e){const t=Kr,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Ws(n,"addEventListener",function(r){return function(i,a,s){try{typeof a.handleEvent=="function"&&(a.handleEvent=Wv(a.handleEvent,{mechanism:{data:{function:"handleEvent",handler:mp(a),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[i,Wv(a,{mechanism:{data:{function:"addEventListener",handler:mp(a),target:e},handled:!1,type:"instrument"}}),s])}}),Ws(n,"removeEventListener",function(r){return function(i,a,s){const o=a;try{const l=o&&o.__sentry_wrapped__;l&&r.call(this,i,l,s)}catch{}return r.call(this,i,o,s)}}))}const Dvt=[wbe(),xbe(),eye(),Ube(),Vbe(),Kbe(),jbe(),Zbe()];function Pvt(e){return[...Dvt]}function Lvt(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=Pvt()),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),Kr.SENTRY_RELEASE&&Kr.SENTRY_RELEASE.id&&(e.release=Kr.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:igt(e.stackParser||avt),integrations:V1t(e),transport:e.transport||(Q1e()?zyt:Hyt)};tbt(Fyt,t),e.autoSessionTracking&&Mvt()}function Mvt(){if(typeof Kr.document>"u"){Qh&&kt.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}Ane({ignoreDuration:!0}),_ne(),PW(({from:e,to:t})=>{e!==void 0&&e!==t&&(Ane({ignoreDuration:!0}),_ne())})}function $vt(e){const t={...e};Sbe(t,"react"),Lvt(t)}function Fvt(e,t,n,r,i,a){return(s,o=!0,l=!0)=>{const u=Kr&&Kr.location&&Kr.location.pathname;o&&u&&s({name:u,attributes:{[c1]:"url",[VE]:"pageload",[qg]:"auto.pageload.react.reactrouter_v6"}})}}const Bvt=()=>["settings"],Uvt=()=>{const e=Du(),t=Pr(HR),n=cO({queryKey:Bvt(),enabled:t.yorkieIntelligence===null&&t.fileUpload===null,queryFn:async()=>(await tr.get("/settings")).data,staleTime:1e3*60*60*24});return M.useEffect(()=>{if(!n.isSuccess)return;const r=n.data;e(qJe(r.yorkieIntelligence)),e(GJe(r.fileUpload))},[e,n.data,n.isSuccess]),n},zvt=e=>{var t;return e instanceof Sle&&((t=e.response)==null?void 0:t.status)===404},jvt=e=>{var t;return e instanceof Sle&&((t=e.response)==null?void 0:t.status)===500};$vt({dsn:"https://d287d6df8c6f423189266360055e6ca7@o553194.ingest.sentry.io/5680102",release:"codepair@0.1.9",integrations:[new Tyt({routingInstrumentation:Fvt()})],tracesSampleRate:1});const Hvt=r8e(Dmt);tr.defaults.baseURL="https://codepair-api.yorkie.dev";function Qvt(){return Uvt(),null}function Wvt(){const e=Pr(V$),t=pse("(prefers-color-scheme: dark)"),n=M.useMemo(()=>{const a=t?"dark":"light";return o$({typography:{button:{textTransform:"none"}},palette:{mode:e.theme=="default"?a:e.theme}})},[e.theme,t]),r=Mmt(),i=M.useMemo(()=>new j9e({queryCache:new zle({onError:a=>{zvt(a)||jvt(a)?window.location.href="/404":r(a)}}),defaultOptions:{queries:{retry:(a,s)=>{var o;return tr.isAxiosError(s)&&((o=s.response)==null?void 0:o.status)===401?!1:a<3}},mutations:{onError:r}}}),[r]);return I.jsx(q9e,{client:i,children:I.jsx(Lmt,{children:I.jsxs(N4e,{theme:n,children:[I.jsx(mRe,{}),I.jsx(Qvt,{}),I.jsx(ea,{minHeight:"100vh",children:I.jsx(f8e,{router:Hvt})})]})})})}var qW={},GW={};GW.__esModule=!0;GW.default=Gvt;function __(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?__=function(n){return typeof n}:__=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},__(e)}function L7(){}var Vvt={getItem:L7,setItem:L7,removeItem:L7};function qvt(e){if((typeof self>"u"?"undefined":__(self))!=="object"||!(e in self))return!1;try{var t=self[e],n="redux-persist ".concat(e," test");t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch{return!1}return!0}function Gvt(e){var t="".concat(e,"Storage");return qvt(t)?self[t]:Vvt}qW.__esModule=!0;qW.default=Xvt;var Yvt=Zvt(GW);function Zvt(e){return e&&e.__esModule?e:{default:e}}function Xvt(e){var t=(0,Yvt.default)(e);return{getItem:function(r){return new Promise(function(i,a){i(t.getItem(r))})},setItem:function(r,i){return new Promise(function(a,s){a(t.setItem(r,i))})},removeItem:function(r){return new Promise(function(i,a){i(t.removeItem(r))})}}}var tye=void 0,Kvt=Jvt(qW);function Jvt(e){return e&&e.__esModule?e:{default:e}}var eOt=(0,Kvt.default)("local");tye=eOt;var YW="persist:",nye="persist/FLUSH",ZW="persist/REHYDRATE",rye="persist/PAUSE",iye="persist/PERSIST",aye="persist/PURGE",sye="persist/REGISTER",tOt=-1;function C_(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?C_=function(n){return typeof n}:C_=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},C_(e)}function Jne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function nOt(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hOt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var pOt=5e3;function mOt(e,t){var n=e.version!==void 0?e.version:tOt;e.debug;var r=e.stateReconciler===void 0?iOt:e.stateReconciler,i=e.getStoredState||oOt,a=e.timeout!==void 0?e.timeout:pOt,s=null,o=!1,l=!0,u=function(f){return f._persist.rehydrated&&s&&!l&&s.update(f),f};return function(d,f){var p=d||{},g=p._persist,O=fOt(p,["_persist"]),S=O;if(f.type===iye){var T=!1,w=function(L,j){T||(f.rehydrate(e.key,L,j),T=!0)};if(a&&setTimeout(function(){!T&&w(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},a),l=!1,s||(s=aOt(e)),g)return Ah({},t(S,f),{_persist:g});if(typeof f.rehydrate!="function"||typeof f.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return f.register(e.key),i(e).then(function(P){var L=e.migrate||function(j,B){return Promise.resolve(j)};L(P,n).then(function(j){w(j)},function(j){w(void 0,j)})},function(P){w(void 0,P)}),Ah({},t(S,f),{_persist:{version:n,rehydrated:!1}})}else{if(f.type===aye)return o=!0,f.result(uOt(e)),Ah({},t(S,f),{_persist:g});if(f.type===nye)return f.result(s&&s.flush()),Ah({},t(S,f),{_persist:g});if(f.type===rye)l=!0;else if(f.type===ZW){if(o)return Ah({},S,{_persist:Ah({},g,{rehydrated:!0})});if(f.key===e.key){var x=t(S,f),k=f.payload,_=r!==!1&&k!==void 0?r(k,d,x,e):x,R=Ah({},_,{_persist:Ah({},g,{rehydrated:!0})});return u(R)}}}if(!g)return t(d,f);var N=t(S,f);return N===S?d:u(Ah({},N,{_persist:g}))}}function tre(e){return yOt(e)||bOt(e)||gOt()}function gOt(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function bOt(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function yOt(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:oye,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case sye:return jM({},t,{registry:[].concat(tre(t.registry),[n.key])});case ZW:var r=t.registry.indexOf(n.key),i=tre(t.registry);return i.splice(r,1),jM({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function SOt(e,t,n){var r=H$(OOt,oye,void 0),i=function(l){r.dispatch({type:sye,key:l})},a=function(l,u,d){var f={type:ZW,payload:u,err:d,key:l};e.dispatch(f),r.dispatch(f)},s=jM({},r,{purge:function(){var l=[];return e.dispatch({type:aye,result:function(d){l.push(d)}}),Promise.all(l)},flush:function(){var l=[];return e.dispatch({type:nye,result:function(d){l.push(d)}}),Promise.all(l)},pause:function(){e.dispatch({type:rye})},persist:function(){e.dispatch({type:iye,register:i,rehydrate:a})}});return s.persist(),s}const EOt=Moe({auth:PYe,config:J8e,user:NMe,editor:KMe,workspace:e9e,document:A9e,setting:YJe}),wOt={key:"root",storage:tye,whitelist:["auth","config"]},TOt=mOt(wOt,EOt),lye=B8e({reducer:TOt,middleware:e=>e({serializableCheck:{ignoredActions:["persist/PERSIST","editor/setDoc","editor/setClient","editor/setCmView"],ignoredPaths:["editor.doc","editor.client","editor.cmView"]},immutableCheck:{ignoredPaths:["editor.doc","editor.client","editor.cmView"]}})});function R_(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?R_=function(n){return typeof n}:R_=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},R_(e)}function xOt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kOt(e,t){for(var n=0;n"u"&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)}),(o=window).gtag.apply(o,a)}},n=t;e.default=n})(fye);var hye={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var t=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;function n(o){return o.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,function(l,u,d){return u>0&&u+l.length!==d.length&&l.search(t)>-1&&d.charAt(u-2)!==":"&&(d.charAt(u+l.length)!=="-"||d.charAt(u-1)==="-")&&d.charAt(u-1).search(/[^\s-]/)<0?l.toLowerCase():l.substr(1).search(/[A-Z]|\../)>-1?l:l.charAt(0).toUpperCase()+l.substr(1)})}function r(o){return typeof o=="string"&&o.indexOf("@")!==-1}var i="REDACTED (Potential Email Address)";function a(o){return r(o)?(console.warn("This arg looks like an email address, redacting."),i):o}function s(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,d=o||"";return l&&(d=n(o)),u&&(d=a(d)),d}})(hye);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.GA4=void 0;var t=s(fye),n=s(hye),r=["eventCategory","eventAction","eventLabel","eventValue","hitType"],i=["title","location"],a=["page","hitType"];function s(ee){return ee&&ee.__esModule?ee:{default:ee}}function o(ee,q){if(ee==null)return{};var ne=l(ee,q),K,G;if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(ee);for(G=0;G=0)&&Object.prototype.propertyIsEnumerable.call(ee,K)&&(ne[K]=ee[K])}return ne}function l(ee,q){if(ee==null)return{};var ne={},K=Object.keys(ee),G,ie;for(ie=0;ie=0)&&(ne[G]=ee[G]);return ne}function u(ee){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},u(ee)}function d(ee){return g(ee)||p(ee)||x(ee)||f()}function f(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p(ee){if(typeof Symbol<"u"&&ee[Symbol.iterator]!=null||ee["@@iterator"]!=null)return Array.from(ee)}function g(ee){if(Array.isArray(ee))return k(ee)}function O(ee,q){var ne=Object.keys(ee);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(ee);q&&(K=K.filter(function(G){return Object.getOwnPropertyDescriptor(ee,G).enumerable})),ne.push.apply(ne,K)}return ne}function S(ee){for(var q=1;qee.length)&&(q=ee.length);for(var ne=0,K=new Array(q);ne2&&arguments[2]!==void 0?arguments[2]:"https://www.googletagmanager.com/gtag/js";if(!(typeof window>"u"||typeof document>"u")&&!q._hasLoadedGA){var ie=document.createElement("script");ie.async=!0,ie.src="".concat(G,"?id=").concat(ne),K&&ie.setAttribute("nonce",K),document.body.appendChild(ie),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},q._hasLoadedGA=!0}}),j(this,"_toGtagOptions",function(ne){if(ne){var K={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"},G=Object.entries(ne).reduce(function(ie,H){var Re=T(H,2),Se=Re[0],Z=Re[1];return K[Se]?ie[K[Se]]=Z:ie[Se]=Z,ie},{});return G}}),j(this,"initialize",function(ne){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ne)throw new Error("Require GA_MEASUREMENT_ID");var G=typeof ne=="string"?[{trackingId:ne}]:ne;q._currentMeasurementId=G[0].trackingId;var ie=K.gaOptions,H=K.gtagOptions,Re=K.nonce,Se=K.testMode,Z=Se===void 0?!1:Se,ke=K.gtagUrl;if(q._testMode=Z,Z||q._loadGA(q._currentMeasurementId,Re,ke),q.isInitialized||(q._gtag("js",new Date),G.forEach(function(Xe){var We=S(S(S({},q._toGtagOptions(S(S({},ie),Xe.gaOptions))),H),Xe.gtagOptions);Object.keys(We).length?q._gtag("config",Xe.trackingId,We):q._gtag("config",Xe.trackingId)})),q.isInitialized=!0,!Z){var $e=d(q._queueGtag);for(q._queueGtag=[],q._isQueuing=!1;$e.length;){var ae=$e.shift();q._gtag.apply(q,d(ae)),ae[0]==="get"&&(q._isQueuing=!0)}}}),j(this,"set",function(ne){if(!ne){console.warn("`fieldsObject` is required in .set()");return}if(u(ne)!=="object"){console.warn("Expected `fieldsObject` arg to be an Object");return}Object.keys(ne).length===0&&console.warn("empty `fieldsObject` given to .set()"),q._gaCommand("set",ne)}),j(this,"_gaCommandSendEvent",function(ne,K,G,ie,H){q._gtag("event",K,S(S({event_category:ne,event_label:G,value:ie},H&&{non_interaction:H.nonInteraction}),q._toGtagOptions(H)))}),j(this,"_gaCommandSendEventParameters",function(){for(var ne=arguments.length,K=new Array(ne),G=0;G1?K-1:0),ie=1;ie{throw TypeError(e)};var Txe=(e,t,n)=>t in e?xxe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var kxe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Bs=(e,t,n)=>Txe(e,typeof t!="symbol"?t+"":t,n),TN=(e,t,n)=>t.has(e)||uY("Cannot "+n);var Me=(e,t,n)=>(TN(e,t,"read from private field"),n?n.call(e):t.get(e)),jn=(e,t,n)=>t.has(e)?uY("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),cn=(e,t,n,r)=>(TN(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),fr=(e,t,n)=>(TN(e,t,"access private method"),n);var sA=(e,t,n,r)=>({set _(i){cn(e,t,i,n)},get _(){return Me(e,t,r)}});var Jxt=kxe((ITt,n3)=>{(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="be245e6a-5a41-4eab-ad74-43f5e73eb713",e._sentryDebugIdIdentifier="sentry-dbid-be245e6a-5a41-4eab-ad74-43f5e73eb713")}catch{}})();function Xae(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Axe=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};Axe.SENTRY_RELEASE={id:"95edac3400ccfb14555f5dc51352c34c64208e49"};(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 Tf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ql(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Rp(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Kae={exports:{}},m5={},Jae={exports:{}},wr={};/** + * @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 yx=Symbol.for("react.element"),_xe=Symbol.for("react.portal"),Cxe=Symbol.for("react.fragment"),Rxe=Symbol.for("react.strict_mode"),Ixe=Symbol.for("react.profiler"),Nxe=Symbol.for("react.provider"),Dxe=Symbol.for("react.context"),Pxe=Symbol.for("react.forward_ref"),Mxe=Symbol.for("react.suspense"),Lxe=Symbol.for("react.memo"),$xe=Symbol.for("react.lazy"),cY=Symbol.iterator;function Fxe(e){return e===null||typeof e!="object"?null:(e=cY&&e[cY]||e["@@iterator"],typeof e=="function"?e:null)}var ese={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},tse=Object.assign,nse={};function cO(e,t,n){this.props=e,this.context=t,this.refs=nse,this.updater=n||ese}cO.prototype.isReactComponent={};cO.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")};cO.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function rse(){}rse.prototype=cO.prototype;function gF(e,t,n){this.props=e,this.context=t,this.refs=nse,this.updater=n||ese}var bF=gF.prototype=new rse;bF.constructor=gF;tse(bF,cO.prototype);bF.isPureReactComponent=!0;var dY=Array.isArray,ise=Object.prototype.hasOwnProperty,yF={current:null},ase={key:!0,ref:!0,__self:!0,__source:!0};function sse(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)ise.call(t,r)&&!ase.hasOwnProperty(r)&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1>>1,Ee=Z[Pe];if(0>>1;Pei(Ue,W))oei(rt,Ue)?(Z[Pe]=rt,Z[oe]=W,Pe=oe):(Z[Pe]=Ue,Z[Re]=W,Pe=Re);else if(oei(rt,W))Z[Pe]=rt,Z[oe]=W,Pe=oe;else break e}}return se}function i(Z,se){var W=Z.sortIndex-se.sortIndex;return W!==0?W:Z.id-se.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=[],d=1,f=null,p=3,g=!1,b=!1,S=!1,E=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function k(Z){for(var se=n(u);se!==null;){if(se.callback===null)r(u);else if(se.startTime<=Z)r(u),se.sortIndex=se.expirationTime,t(l,se);else break;se=n(u)}}function _(Z){if(S=!1,k(Z),!b)if(n(l)!==null)b=!0,re(C);else{var se=n(u);se!==null&&ee(_,se.startTime-Z)}}function C(Z,se){b=!1,S&&(S=!1,w(M),M=-1),g=!0;var W=p;try{for(k(se),f=n(l);f!==null&&(!(f.expirationTime>se)||Z&&!G());){var Pe=f.callback;if(typeof Pe=="function"){f.callback=null,p=f.priorityLevel;var Ee=Pe(f.expirationTime<=se);se=e.unstable_now(),typeof Ee=="function"?f.callback=Ee:f===n(l)&&r(l),k(se)}else r(l);f=n(l)}if(f!==null)var X=!0;else{var Re=n(u);Re!==null&&ee(_,Re.startTime-se),X=!1}return X}finally{f=null,p=W,g=!1}}var R=!1,N=null,M=-1,U=5,F=-1;function G(){return!(e.unstable_now()-FZ||125Pe?(Z.sortIndex=W,t(u,Z),n(l)===null&&Z===n(u)&&(S?(w(M),M=-1):S=!0,ee(_,W-Pe))):(Z.sortIndex=Ee,t(l,Z),b||g||(b=!0,re(C))),Z},e.unstable_shouldYield=G,e.unstable_wrapCallback=function(Z){var se=p;return function(){var W=p;p=se;try{return Z.apply(this,arguments)}finally{p=W}}}})(dse);cse.exports=dse;var Yxe=cse.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 Zxe=L,Bu=Yxe;function Bt(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),OP=Object.prototype.hasOwnProperty,Xxe=/^[: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]*$/,hY={},pY={};function Kxe(e){return OP.call(pY,e)?!0:OP.call(hY,e)?!1:Xxe.test(e)?pY[e]=!0:(hY[e]=!0,!1)}function Jxe(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 eTe(e,t,n,r){if(t===null||typeof t>"u"||Jxe(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 cl(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 Xs={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Xs[e]=new cl(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Xs[t]=new cl(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Xs[e]=new cl(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Xs[e]=new cl(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){Xs[e]=new cl(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Xs[e]=new cl(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Xs[e]=new cl(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Xs[e]=new cl(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Xs[e]=new cl(e,5,!1,e.toLowerCase(),null,!1,!1)});var OF=/[\-:]([a-z])/g;function SF(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(OF,SF);Xs[t]=new cl(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(OF,SF);Xs[t]=new cl(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(OF,SF);Xs[t]=new cl(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Xs[e]=new cl(e,1,!1,e.toLowerCase(),null,!1,!1)});Xs.xlinkHref=new cl("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Xs[e]=new cl(e,1,!1,e.toLowerCase(),null,!0,!0)});function EF(e,t,n,r){var i=Xs.hasOwnProperty(t)?Xs[t]:null;(i!==null?i.type!==0:r||!(2o||i[s]!==a[o]){var l=` +`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=o);break}}}finally{_N=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F2(e):""}function tTe(e){switch(e.tag){case 5:return F2(e.type);case 16:return F2("Lazy");case 13:return F2("Suspense");case 19:return F2("SuspenseList");case 0:case 2:case 15:return e=CN(e.type,!1),e;case 11:return e=CN(e.type.render,!1),e;case 1:return e=CN(e.type,!0),e;default:return""}}function xP(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 yy:return"Fragment";case by:return"Portal";case SP:return"Profiler";case wF:return"StrictMode";case EP:return"Suspense";case wP:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case pse:return(e.displayName||"Context")+".Consumer";case hse:return(e._context.displayName||"Context")+".Provider";case xF:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case TF:return t=e.displayName||null,t!==null?t:xP(e.type)||"Memo";case S0:t=e._payload,e=e._init;try{return xP(e(t))}catch{}}return null}function nTe(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 xP(t);case 8:return t===wF?"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 mm(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function gse(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function rTe(e){var t=gse(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 uA(e){e._valueTracker||(e._valueTracker=rTe(e))}function bse(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=gse(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function r3(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 TP(e,t){var n=t.checked;return ba({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function gY(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=mm(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 yse(e,t){t=t.checked,t!=null&&EF(e,"checked",t,!1)}function kP(e,t){yse(e,t);var n=mm(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")?AP(e,t.type,n):t.hasOwnProperty("defaultValue")&&AP(e,t.type,mm(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function bY(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 AP(e,t,n){(t!=="number"||r3(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var B2=Array.isArray;function zy(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=cA.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function YE(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var aE={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},iTe=["Webkit","ms","Moz","O"];Object.keys(aE).forEach(function(e){iTe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),aE[t]=aE[e]})});function Ese(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||aE.hasOwnProperty(e)&&aE[e]?(""+t).trim():t+"px"}function wse(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Ese(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var aTe=ba({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 RP(e,t){if(t){if(aTe[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Bt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Bt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Bt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Bt(62))}}function IP(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 NP=null;function kF(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var DP=null,Hy=null,jy=null;function OY(e){if(e=Sx(e)){if(typeof DP!="function")throw Error(Bt(280));var t=e.stateNode;t&&(t=O5(t),DP(e.stateNode,e.type,t))}}function xse(e){Hy?jy?jy.push(e):jy=[e]:Hy=e}function Tse(){if(Hy){var e=Hy,t=jy;if(jy=Hy=null,OY(e),t)for(e=0;e>>=0,e===0?32:31-(gTe(e)/bTe|0)|0}var dA=64,fA=4194304;function U2(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 o3(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=U2(o):(a&=s,a!==0&&(r=U2(a)))}else s=n&~i,s!==0?r=U2(s):a!==0&&(r=U2(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;0n;n++)t.push(e);return t}function vx(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ad(t),e[t]=n}function STe(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=oE),CY=" ",RY=!1;function Qse(e,t){switch(e){case"keyup":return YTe.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gse(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vy=!1;function XTe(e,t){switch(e){case"compositionend":return Gse(t);case"keypress":return t.which!==32?null:(RY=!0,CY);case"textInput":return e=t.data,e===CY&&RY?null:e;default:return null}}function KTe(e,t){if(vy)return e==="compositionend"||!PF&&Qse(e,t)?(e=jse(),J_=IF=H0=null,vy=!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)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=PY(n)}}function Zse(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Zse(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xse(){for(var e=window,t=r3();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=r3(e.document)}return t}function MF(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 oke(e){var t=Xse(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Zse(n.ownerDocument.documentElement,n)){if(r!==null&&MF(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=MY(n,a);var s=MY(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=document.documentMode,Oy=null,BP=null,uE=null,UP=!1;function LY(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;UP||Oy==null||Oy!==r3(r)||(r=Oy,"selectionStart"in r&&MF(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}),uE&&tw(uE,r)||(uE=r,r=c3(BP,"onSelect"),0wy||(e.current=GP[wy],GP[wy]=null,wy--)}function Li(e,t){wy++,GP[wy]=e.current,e.current=t}var gm={},Co=Rm(gm),$l=Rm(!1),b1=gm;function _v(e,t){var n=e.type.contextTypes;if(!n)return gm;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 Fl(e){return e=e.childContextTypes,e!=null}function f3(){Qi($l),Qi(Co)}function jY(e,t,n){if(Co.current!==gm)throw Error(Bt(168));Li(Co,t),Li($l,n)}function soe(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(Bt(108,nTe(e)||"Unknown",i));return ba({},n,r)}function h3(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gm,b1=Co.current,Li(Co,e),Li($l,$l.current),!0}function WY(e,t,n){var r=e.stateNode;if(!r)throw Error(Bt(169));n?(e=soe(e,t,b1),r.__reactInternalMemoizedMergedChildContext=e,Qi($l),Qi(Co),Li(Co,e)):Qi($l),Li($l,n)}var Gh=null,S5=!1,jN=!1;function ooe(e){Gh===null?Gh=[e]:Gh.push(e)}function vke(e){S5=!0,ooe(e)}function Im(){if(!jN&&Gh!==null){jN=!0;var e=0,t=fi;try{var n=Gh;for(fi=1;e>=s,i-=s,Kh=1<<32-Ad(t)+i|n<M?(U=N,N=null):U=N.sibling;var F=p(w,N,k[M],_);if(F===null){N===null&&(N=U);break}e&&N&&F.alternate===null&&t(w,N),x=a(F,x,M),R===null?C=F:R.sibling=F,R=F,N=U}if(M===k.length)return n(w,N),na&&_g(w,M),C;if(N===null){for(;MM?(U=N,N=null):U=N.sibling;var G=p(w,N,F.value,_);if(G===null){N===null&&(N=U);break}e&&N&&G.alternate===null&&t(w,N),x=a(G,x,M),R===null?C=G:R.sibling=G,R=G,N=U}if(F.done)return n(w,N),na&&_g(w,M),C;if(N===null){for(;!F.done;M++,F=k.next())F=f(w,F.value,_),F!==null&&(x=a(F,x,M),R===null?C=F:R.sibling=F,R=F);return na&&_g(w,M),C}for(N=r(w,N);!F.done;M++,F=k.next())F=g(N,w,M,F.value,_),F!==null&&(e&&F.alternate!==null&&N.delete(F.key===null?M:F.key),x=a(F,x,M),R===null?C=F:R.sibling=F,R=F);return e&&N.forEach(function(V){return t(w,V)}),na&&_g(w,M),C}function E(w,x,k,_){if(typeof k=="object"&&k!==null&&k.type===yy&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case lA:e:{for(var C=k.key,R=x;R!==null;){if(R.key===C){if(C=k.type,C===yy){if(R.tag===7){n(w,R.sibling),x=i(R,k.props.children),x.return=w,w=x;break e}}else if(R.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===S0&&VY(C)===R.type){n(w,R.sibling),x=i(R,k.props),x.ref=n2(w,R,k),x.return=w,w=x;break e}n(w,R);break}else t(w,R);R=R.sibling}k.type===yy?(x=l1(k.props.children,w.mode,_,k.key),x.return=w,w=x):(_=o4(k.type,k.key,k.props,null,w.mode,_),_.ref=n2(w,x,k),_.return=w,w=_)}return s(w);case by:e:{for(R=k.key;x!==null;){if(x.key===R)if(x.tag===4&&x.stateNode.containerInfo===k.containerInfo&&x.stateNode.implementation===k.implementation){n(w,x.sibling),x=i(x,k.children||[]),x.return=w,w=x;break e}else{n(w,x);break}else t(w,x);x=x.sibling}x=XN(k,w.mode,_),x.return=w,w=x}return s(w);case S0:return R=k._init,E(w,x,R(k._payload),_)}if(B2(k))return b(w,x,k,_);if(XS(k))return S(w,x,k,_);vA(w,k)}return typeof k=="string"&&k!==""||typeof k=="number"?(k=""+k,x!==null&&x.tag===6?(n(w,x.sibling),x=i(x,k),x.return=w,w=x):(n(w,x),x=ZN(k,w.mode,_),x.return=w,w=x),s(w)):n(w,x)}return E}var Rv=doe(!0),foe=doe(!1),g3=Rm(null),b3=null,ky=null,BF=null;function UF(){BF=ky=b3=null}function zF(e){var t=g3.current;Qi(g3),e._currentValue=t}function YP(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 Qy(e,t){b3=e,BF=ky=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ml=!0),e.firstContext=null)}function Pc(e){var t=e._currentValue;if(BF!==e)if(e={context:e,memoizedValue:t,next:null},ky===null){if(b3===null)throw Error(Bt(308));ky=e,b3.dependencies={lanes:0,firstContext:e}}else ky=ky.next=e;return t}var Ug=null;function HF(e){Ug===null?Ug=[e]:Ug.push(e)}function hoe(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,HF(t)):(n.next=i.next,i.next=n),t.interleaved=n,mp(e,r)}function mp(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 E0=!1;function jF(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function poe(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 ap(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function nm(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,zr&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,mp(e,n)}return i=r.interleaved,i===null?(t.next=t,HF(r)):(t.next=i.next,i.next=t),r.interleaved=t,mp(e,n)}function t4(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,_F(e,n)}}function qY(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 y3(e,t,n,r){var i=e.updateQueue;E0=!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 d=e.alternate;d!==null&&(d=d.updateQueue,o=d.lastBaseUpdate,o!==s&&(o===null?d.firstBaseUpdate=u:o.next=u,d.lastBaseUpdate=l))}if(a!==null){var f=i.baseState;s=0,d=u=l=null,o=a;do{var p=o.lane,g=o.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:g,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var b=e,S=o;switch(p=t,g=n,S.tag){case 1:if(b=S.payload,typeof b=="function"){f=b.call(g,f,p);break e}f=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=S.payload,p=typeof b=="function"?b.call(g,f,p):b,p==null)break e;f=ba({},f,p);break e;case 2:E0=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[o]:p.push(o))}else g={eventTime:g,lane:p,tag:o.tag,payload:o.payload,callback:o.callback,next:null},d===null?(u=d=g,l=f):d=d.next=g,s|=p;if(o=o.next,o===null){if(o=i.shared.pending,o===null)break;p=o,o=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(d===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=d,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);O1|=s,e.lanes=s,e.memoizedState=f}}function YY(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=QN.transition;QN.transition={};try{e(!1),t()}finally{fi=n,QN.transition=r}}function Ioe(){return Mc().memoizedState}function wke(e,t,n){var r=im(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Noe(e))Doe(t,n);else if(n=hoe(e,t,n,r),n!==null){var i=nl();_d(n,e,r,i),Poe(n,t,r)}}function xke(e,t,n){var r=im(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Noe(e))Doe(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,Pd(o,s)){var l=t.interleaved;l===null?(i.next=i,HF(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=hoe(e,t,i,r),n!==null&&(i=nl(),_d(n,e,r,i),Poe(n,t,r))}}function Noe(e){var t=e.alternate;return e===ma||t!==null&&t===ma}function Doe(e,t){cE=O3=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Poe(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,_F(e,n)}}var S3={readContext:Pc,useCallback:go,useContext:go,useEffect:go,useImperativeHandle:go,useInsertionEffect:go,useLayoutEffect:go,useMemo:go,useReducer:go,useRef:go,useState:go,useDebugValue:go,useDeferredValue:go,useTransition:go,useMutableSource:go,useSyncExternalStore:go,useId:go,unstable_isNewReconciler:!1},Tke={readContext:Pc,useCallback:function(e,t){return pf().memoizedState=[e,t===void 0?null:t],e},useContext:Pc,useEffect:XY,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,r4(4194308,4,koe.bind(null,t,e),n)},useLayoutEffect:function(e,t){return r4(4194308,4,e,t)},useInsertionEffect:function(e,t){return r4(4,2,e,t)},useMemo:function(e,t){var n=pf();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=pf();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=wke.bind(null,ma,e),[r.memoizedState,e]},useRef:function(e){var t=pf();return e={current:e},t.memoizedState=e},useState:ZY,useDebugValue:XF,useDeferredValue:function(e){return pf().memoizedState=e},useTransition:function(){var e=ZY(!1),t=e[0];return e=Eke.bind(null,e[1]),pf().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ma,i=pf();if(na){if(n===void 0)throw Error(Bt(407));n=n()}else{if(n=t(),Rs===null)throw Error(Bt(349));v1&30||yoe(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,XY(Ooe.bind(null,r,a,e),[e]),r.flags|=2048,uw(9,voe.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=pf(),t=Rs.identifierPrefix;if(na){var n=Jh,r=Kh;n=(r&~(1<<32-Ad(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ow++,0<\/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[kf]=t,e[iw]=r,Woe(e,t,!1,!1),t.stateNode=e;e:{switch(s=IP(n,r),n){case"dialog":zi("cancel",e),zi("close",e),i=r;break;case"iframe":case"object":case"embed":zi("load",e),i=r;break;case"video":case"audio":for(i=0;iDv&&(t.flags|=128,r=!0,r2(a,!1),t.lanes=4194304)}else{if(!r)if(e=v3(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),r2(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!na)return bo(t),null}else 2*$a()-a.renderingStartTime>Dv&&n!==1073741824&&(t.flags|=128,r=!0,r2(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=$a(),t.sibling=null,n=ha.current,Li(ha,r?n&1|2:n&1),t):(bo(t),null);case 22:case 23:return rB(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?bu&1073741824&&(bo(t),t.subtreeFlags&6&&(t.flags|=8192)):bo(t),null;case 24:return null;case 25:return null}throw Error(Bt(156,t.tag))}function Dke(e,t){switch($F(t),t.tag){case 1:return Fl(t.type)&&f3(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Iv(),Qi($l),Qi(Co),GF(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return QF(t),null;case 13:if(Qi(ha),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Bt(340));Cv()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Qi(ha),null;case 4:return Iv(),null;case 10:return zF(t.type._context),null;case 22:case 23:return rB(),null;case 24:return null;default:return null}}var SA=!1,Eo=!1,Pke=typeof WeakSet=="function"?WeakSet:Set,fn=null;function Ay(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ca(e,t,r)}else n.current=null}function i8(e,t,n){try{n()}catch(r){Ca(e,t,r)}}var lZ=!1;function Mke(e,t){if(zP=l3,e=Xse(),MF(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,d=0,f=e,p=null;t:for(;;){for(var g;f!==n||i!==0&&f.nodeType!==3||(o=s+i),f!==a||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(g=f.firstChild)!==null;)p=f,f=g;for(;;){if(f===e)break t;if(p===n&&++u===i&&(o=s),p===a&&++d===r&&(l=s),(g=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=g}n=o===-1||l===-1?null:{start:o,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(HP={focusedElem:e,selectionRange:n},l3=!1,fn=t;fn!==null;)if(t=fn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,fn=e;else for(;fn!==null;){t=fn;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var S=b.memoizedProps,E=b.memoizedState,w=t.stateNode,x=w.getSnapshotBeforeUpdate(t.elementType===t.type?S:md(t.type,S),E);w.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var k=t.stateNode.containerInfo;k.nodeType===1?k.textContent="":k.nodeType===9&&k.documentElement&&k.removeChild(k.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Bt(163))}}catch(_){Ca(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,fn=e;break}fn=t.return}return b=lZ,lZ=!1,b}function dE(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&&i8(t,n,a)}i=i.next}while(i!==r)}}function x5(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 a8(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 Voe(e){var t=e.alternate;t!==null&&(e.alternate=null,Voe(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[kf],delete t[iw],delete t[QP],delete t[bke],delete t[yke])),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 qoe(e){return e.tag===5||e.tag===3||e.tag===4}function uZ(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||qoe(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 s8(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=d3));else if(r!==4&&(e=e.child,e!==null))for(s8(e,t,n),e=e.sibling;e!==null;)s8(e,t,n),e=e.sibling}function o8(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(o8(e,t,n),e=e.sibling;e!==null;)o8(e,t,n),e=e.sibling}var zs=null,bd=!1;function c0(e,t,n){for(n=n.child;n!==null;)Yoe(e,t,n),n=n.sibling}function Yoe(e,t,n){if($f&&typeof $f.onCommitFiberUnmount=="function")try{$f.onCommitFiberUnmount(g5,n)}catch{}switch(n.tag){case 5:Eo||Ay(n,t);case 6:var r=zs,i=bd;zs=null,c0(e,t,n),zs=r,bd=i,zs!==null&&(bd?(e=zs,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):zs.removeChild(n.stateNode));break;case 18:zs!==null&&(bd?(e=zs,n=n.stateNode,e.nodeType===8?HN(e.parentNode,n):e.nodeType===1&&HN(e,n),JE(e)):HN(zs,n.stateNode));break;case 4:r=zs,i=bd,zs=n.stateNode.containerInfo,bd=!0,c0(e,t,n),zs=r,bd=i;break;case 0:case 11:case 14:case 15:if(!Eo&&(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)&&i8(n,t,s),i=i.next}while(i!==r)}c0(e,t,n);break;case 1:if(!Eo&&(Ay(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){Ca(n,t,o)}c0(e,t,n);break;case 21:c0(e,t,n);break;case 22:n.mode&1?(Eo=(r=Eo)||n.memoizedState!==null,c0(e,t,n),Eo=r):c0(e,t,n);break;default:c0(e,t,n)}}function cZ(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Pke),t.forEach(function(r){var i=Wke.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function pd(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~a}if(r=i,r=$a()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*$ke(r/1960))-r,10e?16:e,j0===null)var r=!1;else{if(e=j0,j0=null,x3=0,zr&6)throw Error(Bt(331));var i=zr;for(zr|=4,fn=e.current;fn!==null;){var a=fn,s=a.child;if(fn.flags&16){var o=a.deletions;if(o!==null){for(var l=0;l$a()-tB?o1(e,0):eB|=n),Bl(e,t)}function rle(e,t){t===0&&(e.mode&1?(t=fA,fA<<=1,!(fA&130023424)&&(fA=4194304)):t=1);var n=nl();e=mp(e,t),e!==null&&(vx(e,t,n),Bl(e,n))}function jke(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),rle(e,n)}function Wke(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(Bt(314))}r!==null&&r.delete(t),rle(e,n)}var ile;ile=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||$l.current)Ml=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ml=!1,Ike(e,t,n);Ml=!!(e.flags&131072)}else Ml=!1,na&&t.flags&1048576&&loe(t,m3,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;i4(e,t),e=t.pendingProps;var i=_v(t,Co.current);Qy(t,n),i=qF(null,t,r,e,i,n);var a=YF();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,Fl(r)?(a=!0,h3(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,jF(t),i.updater=w5,t.stateNode=i,i._reactInternals=t,XP(t,r,e,n),t=e8(null,t,r,!0,a,n)):(t.tag=0,na&&a&&LF(t),Yo(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(i4(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Gke(r),e=md(r,e),i){case 0:t=JP(null,t,r,e,n);break e;case 1:t=aZ(null,t,r,e,n);break e;case 11:t=rZ(null,t,r,e,n);break e;case 14:t=iZ(null,t,r,md(r.type,e),n);break e}throw Error(Bt(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:md(r,i),JP(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:md(r,i),aZ(e,t,r,i,n);case 3:e:{if(zoe(t),e===null)throw Error(Bt(387));r=t.pendingProps,a=t.memoizedState,i=a.element,poe(e,t),y3(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=Nv(Error(Bt(423)),t),t=sZ(e,t,r,n,i);break e}else if(r!==i){i=Nv(Error(Bt(424)),t),t=sZ(e,t,r,n,i);break e}else for(Iu=tm(t.stateNode.containerInfo.firstChild),Lu=t,na=!0,Sd=null,n=foe(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Cv(),r===i){t=gp(e,t,n);break e}Yo(e,t,r,n)}t=t.child}return t;case 5:return moe(t),e===null&&qP(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,s=i.children,jP(r,i)?s=null:a!==null&&jP(r,a)&&(t.flags|=32),Uoe(e,t),Yo(e,t,s,n),t.child;case 6:return e===null&&qP(t),null;case 13:return Hoe(e,t,n);case 4:return WF(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Rv(t,null,r,n):Yo(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:md(r,i),rZ(e,t,r,i,n);case 7:return Yo(e,t,t.pendingProps,n),t.child;case 8:return Yo(e,t,t.pendingProps.children,n),t.child;case 12:return Yo(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,Li(g3,r._currentValue),r._currentValue=s,a!==null)if(Pd(a.value,s)){if(a.children===i.children&&!$l.current){t=gp(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=ap(-1,n&-n),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),YP(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(Bt(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),YP(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}Yo(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Qy(t,n),i=Pc(i),r=r(i),t.flags|=1,Yo(e,t,r,n),t.child;case 14:return r=t.type,i=md(r,t.pendingProps),i=md(r.type,i),iZ(e,t,r,i,n);case 15:return Foe(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:md(r,i),i4(e,t),t.tag=1,Fl(r)?(e=!0,h3(t)):e=!1,Qy(t,n),Moe(t,r,i),XP(t,r,i,n),e8(null,t,r,!0,e,n);case 19:return joe(e,t,n);case 22:return Boe(e,t,n)}throw Error(Bt(156,t.tag))};function ale(e,t){return Nse(e,t)}function Qke(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 Sc(e,t,n,r){return new Qke(e,t,n,r)}function aB(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Gke(e){if(typeof e=="function")return aB(e)?1:0;if(e!=null){if(e=e.$$typeof,e===xF)return 11;if(e===TF)return 14}return 2}function am(e,t){var n=e.alternate;return n===null?(n=Sc(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 o4(e,t,n,r,i,a){var s=2;if(r=e,typeof e=="function")aB(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case yy:return l1(n.children,i,a,t);case wF:s=8,i|=8;break;case SP:return e=Sc(12,n,t,i|2),e.elementType=SP,e.lanes=a,e;case EP:return e=Sc(13,n,t,i),e.elementType=EP,e.lanes=a,e;case wP:return e=Sc(19,n,t,i),e.elementType=wP,e.lanes=a,e;case mse:return k5(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case hse:s=10;break e;case pse:s=9;break e;case xF:s=11;break e;case TF:s=14;break e;case S0:s=16,r=null;break e}throw Error(Bt(130,e==null?e:typeof e,""))}return t=Sc(s,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function l1(e,t,n,r){return e=Sc(7,e,r,t),e.lanes=n,e}function k5(e,t,n,r){return e=Sc(22,e,r,t),e.elementType=mse,e.lanes=n,e.stateNode={isHidden:!1},e}function ZN(e,t,n){return e=Sc(6,e,null,t),e.lanes=n,e}function XN(e,t,n){return t=Sc(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vke(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=IN(0),this.expirationTimes=IN(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=IN(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function sB(e,t,n,r,i,a,s,o,l){return e=new Vke(e,t,n,o,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Sc(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 qke(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ule)}catch(e){console.error(e)}}ule(),use.exports=ju;var hO=use.exports;const H2=ql(hO),Jke=Xae({__proto__:null,default:H2},[hO]);var yZ=hO;vP.createRoot=yZ.createRoot,vP.hydrateRoot=yZ.hydrateRoot;const dw={black:"#000",white:"#fff"},zb={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Hb={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},jb={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Wb={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Qb={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},a2={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},eAe={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function bp(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n0?js(pO,--Wl):0,Mv--,Za===10&&(Mv=1,N5--),Za}function $u(){return Za=Wl2||hw(Za)>3?"":" "}function yAe(e,t){for(;--t&&$u()&&!(Za<48||Za>102||Za>57&&Za<65||Za>70&&Za<97););return wx(e,l4()+(t<6&&Bf()==32&&$u()==32))}function h8(e){for(;$u();)switch(Za){case e:return Wl;case 34:case 39:e!==34&&e!==39&&h8(Za);break;case 40:e===41&&h8(e);break;case 92:$u();break}return Wl}function vAe(e,t){for(;$u()&&e+Za!==57;)if(e+Za===84&&Bf()===47)break;return"/*"+wx(t,Wl-1)+"*"+I5(e===47?e:$u())}function OAe(e){for(;!hw(Bf());)$u();return wx(e,Wl)}function SAe(e){return gle(c4("",null,null,null,[""],e=mle(e),0,[0],e))}function c4(e,t,n,r,i,a,s,o,l){for(var u=0,d=0,f=s,p=0,g=0,b=0,S=1,E=1,w=1,x=0,k="",_=i,C=a,R=r,N=k;E;)switch(b=x,x=$u()){case 40:if(b!=108&&js(N,f-1)==58){f8(N+=Kr(u4(x),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:N+=u4(x);break;case 9:case 10:case 13:case 32:N+=bAe(b);break;case 92:N+=yAe(l4()-1,7);continue;case 47:switch(Bf()){case 42:case 47:xA(EAe(vAe($u(),l4()),t,n),l);break;default:N+="/"}break;case 123*S:o[u++]=Ef(N)*w;case 125*S:case 59:case 0:switch(x){case 0:case 125:E=0;case 59+d:w==-1&&(N=Kr(N,/\f/g,"")),g>0&&Ef(N)-f&&xA(g>32?OZ(N+";",r,n,f-1):OZ(Kr(N," ","")+";",r,n,f-2),l);break;case 59:N+=";";default:if(xA(R=vZ(N,t,n,u,d,i,o,k,_=[],C=[],f),a),x===123)if(d===0)c4(N,t,R,R,_,a,f,o,C);else switch(p===99&&js(N,3)===110?100:p){case 100:case 108:case 109:case 115:c4(e,R,R,r&&xA(vZ(e,R,R,0,0,i,o,k,i,_=[],f),C),i,C,f,o,r?_:C);break;default:c4(N,R,R,R,[""],C,0,o,C)}}u=d=g=0,S=w=1,k=N="",f=s;break;case 58:f=1+Ef(N),g=b;default:if(S<1){if(x==123)--S;else if(x==125&&S++==0&&gAe()==125)continue}switch(N+=I5(x),x*S){case 38:w=d>0?1:(N+="\f",-1);break;case 44:o[u++]=(Ef(N)-1)*w,w=1;break;case 64:Bf()===45&&(N+=u4($u())),p=Bf(),d=f=Ef(k=N+=OAe(l4())),x++;break;case 45:b===45&&Ef(N)==2&&(S=0)}}return a}function vZ(e,t,n,r,i,a,s,o,l,u,d){for(var f=i-1,p=i===0?a:[""],g=fB(p),b=0,S=0,E=0;b0?p[w]+" "+x:Kr(x,/&\f/g,p[w])))&&(l[E++]=k);return D5(e,t,n,i===0?cB:o,l,u,d)}function EAe(e,t,n){return D5(e,t,n,dle,I5(mAe()),fw(e,2,-2),0)}function OZ(e,t,n,r){return D5(e,t,n,dB,fw(e,0,r),fw(e,r+1,-1),r)}function Vy(e,t){for(var n="",r=fB(e),i=0;i6)switch(js(e,t+1)){case 109:if(js(e,t+4)!==45)break;case 102:return Kr(e,/(.+:)(.+)-([^]+)/,"$1"+Xr+"$2-$3$1"+A3+(js(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~f8(e,"stretch")?ble(Kr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(js(e,t+1)!==115)break;case 6444:switch(js(e,Ef(e)-3-(~f8(e,"!important")&&10))){case 107:return Kr(e,":",":"+Xr)+e;case 101:return Kr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Xr+(js(e,14)===45?"inline-":"")+"box$3$1"+Xr+"$2$3$1"+vo+"$2box$3")+e}break;case 5936:switch(js(e,t+11)){case 114:return Xr+e+vo+Kr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Xr+e+vo+Kr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Xr+e+vo+Kr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Xr+e+vo+e+e}return e}var IAe=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case dB:t.return=ble(t.value,t.length);break;case fle:return Vy([s2(t,{value:Kr(t.value,"@","@"+Xr)})],i);case cB:if(t.length)return pAe(t.props,function(a){switch(hAe(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Vy([s2(t,{props:[Kr(a,/:(read-\w+)/,":"+A3+"$1")]})],i);case"::placeholder":return Vy([s2(t,{props:[Kr(a,/:(plac\w+)/,":"+Xr+"input-$1")]}),s2(t,{props:[Kr(a,/:(plac\w+)/,":"+A3+"$1")]}),s2(t,{props:[Kr(a,/:(plac\w+)/,vo+"input-$1")]})],i)}return""})}},NAe=[IAe],yle=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var E=S.getAttribute("data-emotion");E.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var i=t.stylisPlugins||NAe,a={},s,o=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var E=S.getAttribute("data-emotion").split(" "),w=1;w=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var WAe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},QAe=!1,GAe=/[A-Z]|^ms/g,VAe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Tle=function(t){return t.charCodeAt(1)===45},EZ=function(t){return t!=null&&typeof t!="boolean"},KN=cle(function(e){return Tle(e)?e:e.replace(GAe,"-$&").toLowerCase()}),wZ=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(VAe,function(r,i,a){return wf={name:i,styles:a,next:wf},i})}return WAe[t]!==1&&!Tle(t)&&typeof n=="number"&&n!==0?n+"px":n},qAe="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function pw(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return wf={name:i.name,styles:i.styles,next:wf},i.name;var a=n;if(a.styles!==void 0){var s=a.next;if(s!==void 0)for(;s!==void 0;)wf={name:s.name,styles:s.styles,next:wf},s=s.next;var o=a.styles+";";return o}return YAe(e,t,n)}case"function":{if(e!==void 0){var l=wf,u=n(e);return wf=l,pw(e,t,u)}break}}var d=n;if(t==null)return d;var f=t[d];return f!==void 0?f:d}function YAe(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?t_e:n_e},_Z=function(t,n,r){var i;if(n){var a=n.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(s){return t.__emotion_forwardProp(s)&&a(s)}:a}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},r_e=!1,i_e=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return wle(n,r,i),XAe(function(){return xle(n,r,i)}),null},a_e=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,s;n!==void 0&&(a=n.label,s=n.target);var o=_Z(t,n,r),l=o||AZ(i),u=!l("as");return function(){var d=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{f.push(d[0][0]);for(var p=d.length,g=1;gt(h_e(i)?n:i):t;return D.jsx(e_e,{styles:r})}function bB(e,t){return p8(e,t)}const Ple=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},p_e=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Dle,StyledEngineProvider:f_e,ThemeContext:xx,css:W5,default:bB,internal_processStyles:Ple,keyframes:mO},Symbol.toStringTag,{value:"Module"}));function Xh(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 Mle(e){if(!Xh(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Mle(e[n])}),t}function rl(e,t,n={clone:!0}){const r=n.clone?Q({},e):e;return Xh(e)&&Xh(t)&&Object.keys(t).forEach(i=>{Xh(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Xh(e[i])?r[i]=rl(e[i],t[i],n):n.clone?r[i]=Xh(t[i])?Mle(t[i]):t[i]:r[i]=t[i]}),r}const m_e=Object.freeze(Object.defineProperty({__proto__:null,default:rl,isPlainObject:Xh},Symbol.toStringTag,{value:"Module"})),g_e=["values","unit","step"],b_e=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>Q({},n,{[r.key]:r.val}),{})};function Lle(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=It(e,g_e),a=b_e(t),s=Object.keys(a);function o(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function u(p,g){const b=s.indexOf(g);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(b!==-1&&typeof t[s[b]]=="number"?t[s[b]]:g)-r/100}${n})`}function d(p){return s.indexOf(p)+1`@media (min-width:${yB[e]}px)`};function Ql(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||CZ;return t.reduce((s,o,l)=>(s[a.up(a.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const a=r.breakpoints||CZ;return Object.keys(t).reduce((s,o)=>{if(Object.keys(a.values||yB).indexOf(o)!==-1){const l=a.up(o);s[l]=n(t[o],o)}else{const l=o;s[l]=t[l]}return s},{})}return n(t)}function $le(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const a=e.up(i);return r[a]={},r},{}))||{}}function Fle(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function v_e(e,...t){const n=$le(e),r=[n,...t].reduce((i,a)=>rl(i,a),{});return Fle(Object.keys(n),r)}function O_e(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((i,a)=>{a{e[i]!=null&&(n[i]=!0)}),n}function u1({values:e,breakpoints:t,base:n}){const r=n||O_e(e,t),i=Object.keys(r);if(i.length===0)return e;let a;return i.reduce((s,o,l)=>(Array.isArray(e)?(s[o]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(s[o]=e[o]!=null?e[o]:e[a],a=o):s[o]=e,s),{})}function ft(e){if(typeof e!="string")throw new Error(bp(7));return e.charAt(0).toUpperCase()+e.slice(1)}const S_e=Object.freeze(Object.defineProperty({__proto__:null,default:ft},Symbol.toStringTag,{value:"Module"}));function Q5(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function _3(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=Q5(e,n)||r,t&&(i=t(i,r,e)),i}function za(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=s=>{if(s[t]==null)return null;const o=s[t],l=s.theme,u=Q5(l,r)||{};return Ql(s,o,f=>{let p=_3(u,i,f);return f===p&&typeof f=="string"&&(p=_3(u,i,`${t}${f==="default"?"":ft(f)}`,f)),n===!1?p:{[n]:p}})};return a.propTypes={},a.filterProps=[t],a}function E_e(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const w_e={m:"margin",p:"padding"},x_e={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},RZ={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},T_e=E_e(e=>{if(e.length>2)if(RZ[e])e=RZ[e];else return[e];const[t,n]=e.split(""),r=w_e[t],i=x_e[n]||"";return Array.isArray(i)?i.map(a=>r+a):[r+i]}),vB=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],OB=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...vB,...OB];function Tx(e,t,n,r){var i;const a=(i=Q5(e,t,!1))!=null?i:n;return typeof a=="number"?s=>typeof s=="string"?s:a*s:Array.isArray(a)?s=>typeof s=="string"?s:a[s]:typeof a=="function"?a:()=>{}}function SB(e){return Tx(e,"spacing",8)}function E1(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function k_e(e,t){return n=>e.reduce((r,i)=>(r[i]=E1(t,n),r),{})}function A_e(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=T_e(n),a=k_e(i,r),s=e[n];return Ql(e,s,a)}function Ble(e,t){const n=SB(e.theme);return Object.keys(e).map(r=>A_e(e,t,r,n)).reduce(pE,{})}function Ta(e){return Ble(e,vB)}Ta.propTypes={};Ta.filterProps=vB;function ka(e){return Ble(e,OB)}ka.propTypes={};ka.filterProps=OB;function __e(e=8){if(e.mui)return e;const t=SB({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(a=>{const s=t(a);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function G5(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(a=>{r[a]=i}),r),{}),n=r=>Object.keys(r).reduce((i,a)=>t[a]?pE(i,t[a](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function gc(e){return typeof e!="number"?e:`${e}px solid`}function Hc(e,t){return za({prop:e,themeKey:"borders",transform:t})}const C_e=Hc("border",gc),R_e=Hc("borderTop",gc),I_e=Hc("borderRight",gc),N_e=Hc("borderBottom",gc),D_e=Hc("borderLeft",gc),P_e=Hc("borderColor"),M_e=Hc("borderTopColor"),L_e=Hc("borderRightColor"),$_e=Hc("borderBottomColor"),F_e=Hc("borderLeftColor"),B_e=Hc("outline",gc),U_e=Hc("outlineColor"),V5=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Tx(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:E1(t,r)});return Ql(e,e.borderRadius,n)}return null};V5.propTypes={};V5.filterProps=["borderRadius"];G5(C_e,R_e,I_e,N_e,D_e,P_e,M_e,L_e,$_e,F_e,V5,B_e,U_e);const q5=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Tx(e.theme,"spacing",8),n=r=>({gap:E1(t,r)});return Ql(e,e.gap,n)}return null};q5.propTypes={};q5.filterProps=["gap"];const Y5=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Tx(e.theme,"spacing",8),n=r=>({columnGap:E1(t,r)});return Ql(e,e.columnGap,n)}return null};Y5.propTypes={};Y5.filterProps=["columnGap"];const Z5=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Tx(e.theme,"spacing",8),n=r=>({rowGap:E1(t,r)});return Ql(e,e.rowGap,n)}return null};Z5.propTypes={};Z5.filterProps=["rowGap"];const z_e=za({prop:"gridColumn"}),H_e=za({prop:"gridRow"}),j_e=za({prop:"gridAutoFlow"}),W_e=za({prop:"gridAutoColumns"}),Q_e=za({prop:"gridAutoRows"}),G_e=za({prop:"gridTemplateColumns"}),V_e=za({prop:"gridTemplateRows"}),q_e=za({prop:"gridTemplateAreas"}),Y_e=za({prop:"gridArea"});G5(q5,Y5,Z5,z_e,H_e,j_e,W_e,Q_e,G_e,V_e,q_e,Y_e);function qy(e,t){return t==="grey"?t:e}const Z_e=za({prop:"color",themeKey:"palette",transform:qy}),X_e=za({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:qy}),K_e=za({prop:"backgroundColor",themeKey:"palette",transform:qy});G5(Z_e,X_e,K_e);function Au(e){return e<=1&&e!==0?`${e*100}%`:e}const J_e=za({prop:"width",transform:Au}),EB=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const a=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||yB[n];return a?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:Au(n)}};return Ql(e,e.maxWidth,t)}return null};EB.filterProps=["maxWidth"];const e4e=za({prop:"minWidth",transform:Au}),t4e=za({prop:"height",transform:Au}),n4e=za({prop:"maxHeight",transform:Au}),r4e=za({prop:"minHeight",transform:Au});za({prop:"size",cssProperty:"width",transform:Au});za({prop:"size",cssProperty:"height",transform:Au});const i4e=za({prop:"boxSizing"});G5(J_e,EB,e4e,t4e,n4e,r4e,i4e);const kx={border:{themeKey:"borders",transform:gc},borderTop:{themeKey:"borders",transform:gc},borderRight:{themeKey:"borders",transform:gc},borderBottom:{themeKey:"borders",transform:gc},borderLeft:{themeKey:"borders",transform:gc},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:gc},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:V5},color:{themeKey:"palette",transform:qy},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:qy},backgroundColor:{themeKey:"palette",transform:qy},p:{style:ka},pt:{style:ka},pr:{style:ka},pb:{style:ka},pl:{style:ka},px:{style:ka},py:{style:ka},padding:{style:ka},paddingTop:{style:ka},paddingRight:{style:ka},paddingBottom:{style:ka},paddingLeft:{style:ka},paddingX:{style:ka},paddingY:{style:ka},paddingInline:{style:ka},paddingInlineStart:{style:ka},paddingInlineEnd:{style:ka},paddingBlock:{style:ka},paddingBlockStart:{style:ka},paddingBlockEnd:{style:ka},m:{style:Ta},mt:{style:Ta},mr:{style:Ta},mb:{style:Ta},ml:{style:Ta},mx:{style:Ta},my:{style:Ta},margin:{style:Ta},marginTop:{style:Ta},marginRight:{style:Ta},marginBottom:{style:Ta},marginLeft:{style:Ta},marginX:{style:Ta},marginY:{style:Ta},marginInline:{style:Ta},marginInlineStart:{style:Ta},marginInlineEnd:{style:Ta},marginBlock:{style:Ta},marginBlockStart:{style:Ta},marginBlockEnd:{style:Ta},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:q5},rowGap:{style:Z5},columnGap:{style:Y5},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Au},maxWidth:{style:EB},minWidth:{transform:Au},height:{transform:Au},maxHeight:{transform:Au},minHeight:{transform:Au},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function a4e(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function s4e(e,t){return typeof e=="function"?e(t):e}function Ule(){function e(n,r,i,a){const s={[n]:r,theme:i},o=a[n];if(!o)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:d,style:f}=o;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=Q5(i,u)||{};return f?f(s):Ql(s,r,b=>{let S=_3(p,d,b);return b===S&&typeof b=="string"&&(S=_3(p,d,`${n}${b==="default"?"":ft(b)}`,b)),l===!1?S:{[l]:S}})}function t(n){var r;const{sx:i,theme:a={}}=n||{};if(!i)return null;const s=(r=a.unstable_sxConfig)!=null?r:kx;function o(l){let u=l;if(typeof l=="function")u=l(a);else if(typeof l!="object")return l;if(!u)return null;const d=$le(a.breakpoints),f=Object.keys(d);let p=d;return Object.keys(u).forEach(g=>{const b=s4e(u[g],a);if(b!=null)if(typeof b=="object")if(s[g])p=pE(p,e(g,b,a,s));else{const S=Ql({theme:a},b,E=>({[g]:E}));a4e(S,b)?p[g]=t({sx:b,theme:a}):p=pE(p,S)}else p=pE(p,e(g,b,a,s))}),Fle(f,p)}return Array.isArray(i)?i.map(o):o(i)}return t}const gO=Ule();gO.filterProps=["sx"];function zle(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const o4e=["breakpoints","palette","spacing","shape"];function bO(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:a={}}=e,s=It(e,o4e),o=Lle(n),l=__e(i);let u=rl({breakpoints:o,direction:"ltr",components:{},palette:Q({mode:"light"},r),spacing:l,shape:Q({},y_e,a)},s);return u.applyStyles=zle,u=t.reduce((d,f)=>rl(d,f),u),u.unstable_sxConfig=Q({},kx,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(f){return gO({sx:f,theme:this})},u}const l4e=Object.freeze(Object.defineProperty({__proto__:null,default:bO,private_createBreakpoints:Lle,unstable_applyStyles:zle},Symbol.toStringTag,{value:"Module"}));function u4e(e){return Object.keys(e).length===0}function wB(e=null){const t=L.useContext(xx);return!t||u4e(t)?e:t}const c4e=bO();function X5(e=c4e){return wB(e)}function d4e({styles:e,themeId:t,defaultTheme:n={}}){const r=X5(n),i=typeof e=="function"?e(t&&r[t]||r):e;return D.jsx(Dle,{styles:i})}const f4e=["sx"],h4e=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:kx;return Object.keys(e).forEach(a=>{i[a]?r.systemProps[a]=e[a]:r.otherProps[a]=e[a]}),r};function Ax(e){const{sx:t}=e,n=It(e,f4e),{systemProps:r,otherProps:i}=h4e(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...s)=>{const o=t(...s);return Xh(o)?Q({},r,o):r}:a=Q({},r,t),Q({},i,{sx:a})}const p4e=Object.freeze(Object.defineProperty({__proto__:null,default:gO,extendSxProp:Ax,unstable_createStyleFunctionSx:Ule,unstable_defaultSxConfig:kx},Symbol.toStringTag,{value:"Module"})),IZ=e=>e,m4e=()=>{let e=IZ;return{configure(t){e=t},generate(t){return e(t)},reset(){e=IZ}}},xB=m4e();function Hle(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;to!=="theme"&&o!=="sx"&&o!=="as"})(gO);return L.forwardRef(function(l,u){const d=X5(n),f=Ax(l),{className:p,component:g="div"}=f,b=It(f,g4e);return D.jsx(a,Q({as:g,ref:u,className:Rt(p,i?i(r):r),theme:t&&d[t]||d},b))})}const y4e={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function hn(e,t,n="Mui"){const r=y4e[t];return r?`${n}-${r}`:`${xB.generate(e)}-${t}`}function mn(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=hn(e,i,n)}),r}var jle={exports:{}},pi={};/** + * @license React + * react-is.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 TB=Symbol.for("react.element"),kB=Symbol.for("react.portal"),K5=Symbol.for("react.fragment"),J5=Symbol.for("react.strict_mode"),eR=Symbol.for("react.profiler"),tR=Symbol.for("react.provider"),nR=Symbol.for("react.context"),v4e=Symbol.for("react.server_context"),rR=Symbol.for("react.forward_ref"),iR=Symbol.for("react.suspense"),aR=Symbol.for("react.suspense_list"),sR=Symbol.for("react.memo"),oR=Symbol.for("react.lazy"),O4e=Symbol.for("react.offscreen"),Wle;Wle=Symbol.for("react.module.reference");function jc(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case TB:switch(e=e.type,e){case K5:case eR:case J5:case iR:case aR:return e;default:switch(e=e&&e.$$typeof,e){case v4e:case nR:case rR:case oR:case sR:case tR:return e;default:return t}}case kB:return t}}}pi.ContextConsumer=nR;pi.ContextProvider=tR;pi.Element=TB;pi.ForwardRef=rR;pi.Fragment=K5;pi.Lazy=oR;pi.Memo=sR;pi.Portal=kB;pi.Profiler=eR;pi.StrictMode=J5;pi.Suspense=iR;pi.SuspenseList=aR;pi.isAsyncMode=function(){return!1};pi.isConcurrentMode=function(){return!1};pi.isContextConsumer=function(e){return jc(e)===nR};pi.isContextProvider=function(e){return jc(e)===tR};pi.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===TB};pi.isForwardRef=function(e){return jc(e)===rR};pi.isFragment=function(e){return jc(e)===K5};pi.isLazy=function(e){return jc(e)===oR};pi.isMemo=function(e){return jc(e)===sR};pi.isPortal=function(e){return jc(e)===kB};pi.isProfiler=function(e){return jc(e)===eR};pi.isStrictMode=function(e){return jc(e)===J5};pi.isSuspense=function(e){return jc(e)===iR};pi.isSuspenseList=function(e){return jc(e)===aR};pi.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===K5||e===eR||e===J5||e===iR||e===aR||e===O4e||typeof e=="object"&&e!==null&&(e.$$typeof===oR||e.$$typeof===sR||e.$$typeof===tR||e.$$typeof===nR||e.$$typeof===rR||e.$$typeof===Wle||e.getModuleId!==void 0)};pi.typeOf=jc;jle.exports=pi;var NZ=jle.exports;const S4e=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Qle(e){const t=`${e}`.match(S4e);return t&&t[1]||""}function Gle(e,t=""){return e.displayName||e.name||Qle(e)||t}function DZ(e,t,n){const r=Gle(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function E4e(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Gle(e,"Component");if(typeof e=="object")switch(e.$$typeof){case NZ.ForwardRef:return DZ(e,e.render,"ForwardRef");case NZ.Memo:return DZ(e,e.type,"memo");default:return}}}const w4e=Object.freeze(Object.defineProperty({__proto__:null,default:E4e,getFunctionName:Qle},Symbol.toStringTag,{value:"Module"})),x4e=["ownerState"],T4e=["variants"],k4e=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function A4e(e){return Object.keys(e).length===0}function _4e(e){return typeof e=="string"&&e.charCodeAt(0)>96}function eD(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const C4e=bO(),R4e=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function TA({defaultTheme:e,theme:t,themeId:n}){return A4e(t)?e:t[n]||t}function I4e(e){return e?(t,n)=>n[e]:null}function d4(e,t){let{ownerState:n}=t,r=It(t,x4e);const i=typeof e=="function"?e(Q({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(a=>d4(a,Q({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:a=[]}=i;let o=It(i,T4e);return a.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props(Q({ownerState:n},r,n)):Object.keys(l.props).forEach(d=>{(n==null?void 0:n[d])!==l.props[d]&&r[d]!==l.props[d]&&(u=!1)}),u&&(Array.isArray(o)||(o=[o]),o.push(typeof l.style=="function"?l.style(Q({ownerState:n},r,n)):l.style))}),o}return i}function N4e(e={}){const{themeId:t,defaultTheme:n=C4e,rootShouldForwardProp:r=eD,slotShouldForwardProp:i=eD}=e,a=s=>gO(Q({},s,{theme:TA(Q({},s,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(s,o={})=>{Ple(s,C=>C.filter(R=>!(R!=null&&R.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:p=I4e(R4e(u))}=o,g=It(o,k4e),b=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,S=f||!1;let E,w=eD;u==="Root"||u==="root"?w=r:u?w=i:_4e(s)&&(w=void 0);const x=bB(s,Q({shouldForwardProp:w,label:E},g)),k=C=>typeof C=="function"&&C.__emotion_real!==C||Xh(C)?R=>d4(C,Q({},R,{theme:TA({theme:R.theme,defaultTheme:n,themeId:t})})):C,_=(C,...R)=>{let N=k(C);const M=R?R.map(k):[];l&&p&&M.push(G=>{const V=TA(Q({},G,{defaultTheme:n,themeId:t}));if(!V.components||!V.components[l]||!V.components[l].styleOverrides)return null;const ie=V.components[l].styleOverrides,ne={};return Object.entries(ie).forEach(([q,re])=>{ne[q]=d4(re,Q({},G,{theme:V}))}),p(G,ne)}),l&&!b&&M.push(G=>{var V;const ie=TA(Q({},G,{defaultTheme:n,themeId:t})),ne=ie==null||(V=ie.components)==null||(V=V[l])==null?void 0:V.variants;return d4({variants:ne},Q({},G,{theme:ie}))}),S||M.push(a);const U=M.length-R.length;if(Array.isArray(C)&&U>0){const G=new Array(U).fill("");N=[...C,...G],N.raw=[...C.raw,...G]}const F=x(N,...M);return s.muiName&&(F.muiName=s.muiName),F};return x.withConfig&&(_.withConfig=x.withConfig),_}}const Vle=N4e();function Lv(e,t){const n=Q({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Q({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},a=t[r];n[r]={},!a||!Object.keys(a)?n[r]=i:!i||!Object.keys(i)?n[r]=a:(n[r]=Q({},a),Object.keys(i).forEach(s=>{n[r][s]=Lv(i[s],a[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function qle(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Lv(t.components[n].defaultProps,r)}function Yle({props:e,name:t,defaultTheme:n,themeId:r}){let i=X5(n);return r&&(i=i[r]||i),qle({theme:i,name:t,props:e})}const sl=typeof window<"u"?L.useLayoutEffect:L.useEffect;function D4e(e,t,n,r,i){const[a,s]=L.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return sl(()=>{let o=!0;if(!n)return;const l=n(e),u=()=>{o&&s(l.matches)};return u(),l.addListener(u),()=>{o=!1,l.removeListener(u)}},[e,n]),a}const Zle=L.useSyncExternalStore;function P4e(e,t,n,r,i){const a=L.useCallback(()=>t,[t]),s=L.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:d}=r(e);return()=>d}return a},[a,e,r,i,n]),[o,l]=L.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const d=n(e);return[()=>d.matches,f=>(d.addListener(f),()=>{d.removeListener(f)})]},[a,n,e]);return Zle(l,o,s)}function Xle(e,t={}){const n=wB(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:a=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:o=!1}=qle({name:"MuiUseMediaQuery",props:t,theme:n});let l=e;return l=l.replace(/^@media( ?)/m,""),(Zle!==void 0?P4e:D4e)(l,i,a,s,o)}function Dg(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const M4e=Object.freeze(Object.defineProperty({__proto__:null,default:Dg},Symbol.toStringTag,{value:"Module"}));function AB(e,t=0,n=1){return Dg(e,t,n)}function L4e(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function w1(e){if(e.type)return e;if(e.charAt(0)==="#")return w1(L4e(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(bp(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(bp(10,i))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:i}}function lR(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,a)=>a<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function $4e(e){e=w1(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),s=(u,d=(u+n/30)%12)=>i-a*Math.max(Math.min(d-3,9-d,1),-1);let o="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(o+="a",l.push(t[3])),lR({type:o,values:l})}function F4e(e){e=w1(e);let t=e.type==="hsl"||e.type==="hsla"?w1($4e(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function kA(e,t){return e=w1(e),t=AB(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,lR(e)}function B4e(e,t){if(e=w1(e),t=AB(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return lR(e)}function U4e(e,t){if(e=w1(e),t=AB(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return lR(e)}function z4e(e,t=.15){return F4e(e)>.5?B4e(e,t):U4e(e,t)}function C3(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function uR(e,t=166){let n;function r(...i){const a=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function H4e(e,t){return()=>null}function mE(e,t){var n,r;return L.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function ga(e){return e&&e.ownerDocument||document}function Gf(e){return ga(e).defaultView||window}function j4e(e,t){return()=>null}function mw(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let PZ=0;function W4e(e){const[t,n]=L.useState(e),r=e||t;return L.useEffect(()=>{t==null&&(PZ+=1,n(`mui-${PZ}`))},[t]),r}const MZ=kv.useId;function yO(e){if(MZ!==void 0){const t=MZ();return e??t}return W4e(e)}function Q4e(e,t,n,r,i){return null}function Uf({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=L.useRef(e!==void 0),[a,s]=L.useState(t),o=i?e:a,l=L.useCallback(u=>{i||s(u)},[]);return[o,l]}function qs(e){const t=L.useRef(e);return sl(()=>{t.current=e}),L.useRef((...n)=>(0,t.current)(...n)).current}function Er(...e){return L.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{mw(n,t)})},e)}const LZ={};function G4e(e,t){const n=L.useRef(LZ);return n.current===LZ&&(n.current=e(t)),n}const V4e=[];function q4e(e){L.useEffect(e,V4e)}class _x{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new _x}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Hg(){const e=G4e(_x.create).current;return q4e(e.disposeEffect),e}let cR=!0,g8=!1;const Y4e=new _x,Z4e={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function X4e(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Z4e[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function K4e(e){e.metaKey||e.altKey||e.ctrlKey||(cR=!0)}function tD(){cR=!1}function J4e(){this.visibilityState==="hidden"&&g8&&(cR=!0)}function e3e(e){e.addEventListener("keydown",K4e,!0),e.addEventListener("mousedown",tD,!0),e.addEventListener("pointerdown",tD,!0),e.addEventListener("touchstart",tD,!0),e.addEventListener("visibilitychange",J4e,!0)}function t3e(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return cR||X4e(t)}function dR(){const e=L.useCallback(i=>{i!=null&&e3e(i.ownerDocument)},[]),t=L.useRef(!1);function n(){return t.current?(g8=!0,Y4e.start(100,()=>{g8=!1}),t.current=!1,!0):!1}function r(i){return t3e(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function Kle(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const n3e=e=>{const t=L.useRef({});return L.useEffect(()=>{t.current=e}),t.current};function r3e(e){return L.Children.toArray(e).filter(t=>L.isValidElement(t))}const i3e={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function gn(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((a,s)=>{if(s){const o=t(s);o!==""&&a.push(o),n&&n[s]&&a.push(n[s])}return a},[]).join(" ")}),r}function zf(e){return typeof e=="string"}function Cy(e,t,n){return e===void 0||zf(e)?t:Q({},t,{ownerState:Q({},t.ownerState,n)})}function gE(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function $Z(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Jle(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){const g=Rt(n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),b=Q({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),S=Q({},n,i,r);return g.length>0&&(S.className=g),Object.keys(b).length>0&&(S.style=b),{props:S,internalRef:void 0}}const s=gE(Q({},i,r)),o=$Z(r),l=$Z(i),u=t(s),d=Rt(u==null?void 0:u.className,n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),f=Q({},u==null?void 0:u.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),p=Q({},u,n,l,o);return d.length>0&&(p.className=d),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:u.ref}}function eue(e,t,n){return typeof e=="function"?e(t,n):e}const a3e=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Xo(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:a=!1}=e,s=It(e,a3e),o=a?{}:eue(r,i),{props:l,internalRef:u}=Jle(Q({},s,{externalSlotProps:o})),d=Er(u,o==null?void 0:o.ref,(t=e.additionalProps)==null?void 0:t.ref);return Cy(n,Q({},l,{ref:d}),i)}const tue=L.createContext(null);function nue(){return L.useContext(tue)}const s3e=typeof Symbol=="function"&&Symbol.for,o3e=s3e?Symbol.for("mui.nested"):"__THEME_NESTED__";function l3e(e,t){return typeof t=="function"?t(e):Q({},e,t)}function u3e(e){const{children:t,theme:n}=e,r=nue(),i=L.useMemo(()=>{const a=r===null?n:l3e(r,n);return a!=null&&(a[o3e]=r!==null),a},[n,r]);return D.jsx(tue.Provider,{value:i,children:t})}const c3e=["value"],rue=L.createContext();function d3e(e){let{value:t}=e,n=It(e,c3e);return D.jsx(rue.Provider,Q({value:t??!0},n))}const _B=()=>{const e=L.useContext(rue);return e??!1},iue=L.createContext(void 0);function f3e({value:e,children:t}){return D.jsx(iue.Provider,{value:e,children:t})}function h3e(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?Lv(i.defaultProps,r):!i.styleOverrides&&!i.variants?Lv(i,r):r}function p3e({props:e,name:t}){const n=L.useContext(iue);return h3e({props:e,name:t,theme:{components:n}})}const FZ={};function BZ(e,t,n,r=!1){return L.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const a=n(i),s=e?Q({},t,{[e]:a}):a;return r?()=>s:s}return e?Q({},t,{[e]:n}):Q({},t,n)},[e,t,n,r])}function m3e(e){const{children:t,theme:n,themeId:r}=e,i=wB(FZ),a=nue()||FZ,s=BZ(r,i,n),o=BZ(r,a,n,!0),l=s.direction==="rtl";return D.jsx(u3e,{theme:o,children:D.jsx(xx.Provider,{value:s,children:D.jsx(d3e,{value:l,children:D.jsx(f3e,{value:s==null?void 0:s.components,children:t})})})})}const g3e=["className","component","disableGutters","fixed","maxWidth","classes"],b3e=bO(),y3e=Vle("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ft(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),v3e=e=>Yle({props:e,name:"MuiContainer",defaultTheme:b3e}),O3e=(e,t)=>{const n=l=>hn(t,l),{classes:r,fixed:i,disableGutters:a,maxWidth:s}=e,o={root:["root",s&&`maxWidth${ft(String(s))}`,i&&"fixed",a&&"disableGutters"]};return gn(o,n,r)};function S3e(e={}){const{createStyledComponent:t=y3e,useThemeProps:n=v3e,componentName:r="MuiContainer"}=e,i=t(({theme:s,ownerState:o})=>Q({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!o.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}),({theme:s,ownerState:o})=>o.fixed&&Object.keys(s.breakpoints.values).reduce((l,u)=>{const d=u,f=s.breakpoints.values[d];return f!==0&&(l[s.breakpoints.up(d)]={maxWidth:`${f}${s.breakpoints.unit}`}),l},{}),({theme:s,ownerState:o})=>Q({},o.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},o.maxWidth&&o.maxWidth!=="xs"&&{[s.breakpoints.up(o.maxWidth)]:{maxWidth:`${s.breakpoints.values[o.maxWidth]}${s.breakpoints.unit}`}}));return L.forwardRef(function(o,l){const u=n(o),{className:d,component:f="div",disableGutters:p=!1,fixed:g=!1,maxWidth:b="lg"}=u,S=It(u,g3e),E=Q({},u,{component:f,disableGutters:p,fixed:g,maxWidth:b}),w=O3e(E,r);return D.jsx(i,Q({as:f,ownerState:E,className:Rt(w.root,d),ref:l},S))})}const E3e=["component","direction","spacing","divider","children","className","useFlexGap"],w3e=bO(),x3e=Vle("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function T3e(e){return Yle({props:e,name:"MuiStack",defaultTheme:w3e})}function k3e(e,t){const n=L.Children.toArray(e).filter(Boolean);return n.reduce((r,i,a)=>(r.push(i),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],_3e=({ownerState:e,theme:t})=>{let n=Q({display:"flex",flexDirection:"column"},Ql({theme:t},u1({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=SB(t),i=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),a=u1({values:e.direction,base:i}),s=u1({values:e.spacing,base:i});typeof a=="object"&&Object.keys(a).forEach((l,u,d)=>{if(!a[l]){const p=u>0?a[d[u-1]]:"column";a[l]=p}}),n=rl(n,Ql({theme:t},s,(l,u)=>e.useFlexGap?{gap:E1(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${A3e(u?a[u]:e.direction)}`]:E1(r,l)}}))}return n=v_e(t.breakpoints,n),n};function C3e(e={}){const{createStyledComponent:t=x3e,useThemeProps:n=T3e,componentName:r="MuiStack"}=e,i=()=>gn({root:["root"]},l=>hn(r,l),{}),a=t(_3e);return L.forwardRef(function(l,u){const d=n(l),f=Ax(d),{component:p="div",direction:g="column",spacing:b=0,divider:S,children:E,className:w,useFlexGap:x=!1}=f,k=It(f,E3e),_={direction:g,spacing:b,useFlexGap:x},C=i();return D.jsx(a,Q({as:p,ownerState:_,ref:u,className:Rt(C.root,w)},k,{children:S?k3e(E,S):E}))})}function R3e(e,t){return Q({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Ha={},aue={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(aue);var Bi=aue.exports;const I3e=Rp(tAe),N3e=Rp(M4e);var sue=Bi;Object.defineProperty(Ha,"__esModule",{value:!0});var Yn=Ha.alpha=cue;Ha.blend=j3e;Ha.colorChannel=void 0;var gw=Ha.darken=RB;Ha.decomposeColor=Lc;Ha.emphasize=due;var D3e=Ha.getContrastRatio=F3e;Ha.getLuminance=R3;Ha.hexToRgb=oue;Ha.hslToRgb=uue;var bw=Ha.lighten=IB;Ha.private_safeAlpha=B3e;Ha.private_safeColorChannel=void 0;Ha.private_safeDarken=U3e;Ha.private_safeEmphasize=H3e;Ha.private_safeLighten=z3e;Ha.recomposeColor=vO;Ha.rgbToHex=$3e;var UZ=sue(I3e),P3e=sue(N3e);function CB(e,t=0,n=1){return(0,P3e.default)(e,t,n)}function oue(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function M3e(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Lc(e){if(e.type)return e;if(e.charAt(0)==="#")return Lc(oue(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,UZ.default)(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error((0,UZ.default)(10,i))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:i}}const lue=e=>{const t=Lc(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Ha.colorChannel=lue;const L3e=(e,t)=>{try{return lue(e)}catch{return e}};Ha.private_safeColorChannel=L3e;function vO(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,a)=>a<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function $3e(e){if(e.indexOf("#")===0)return e;const{values:t}=Lc(e);return`#${t.map((n,r)=>M3e(r===3?Math.round(255*n):n)).join("")}`}function uue(e){e=Lc(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),s=(u,d=(u+n/30)%12)=>i-a*Math.max(Math.min(d-3,9-d,1),-1);let o="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(o+="a",l.push(t[3])),vO({type:o,values:l})}function R3(e){e=Lc(e);let t=e.type==="hsl"||e.type==="hsla"?Lc(uue(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function F3e(e,t){const n=R3(e),r=R3(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function cue(e,t){return e=Lc(e),t=CB(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,vO(e)}function B3e(e,t,n){try{return cue(e,t)}catch{return e}}function RB(e,t){if(e=Lc(e),t=CB(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return vO(e)}function U3e(e,t,n){try{return RB(e,t)}catch{return e}}function IB(e,t){if(e=Lc(e),t=CB(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return vO(e)}function z3e(e,t,n){try{return IB(e,t)}catch{return e}}function due(e,t=.15){return R3(e)>.5?RB(e,t):IB(e,t)}function H3e(e,t,n){try{return due(e,t)}catch{return e}}function j3e(e,t,n,r=1){const i=(l,u)=>Math.round((l**(1/r)*(1-n)+u**(1/r)*n)**r),a=Lc(e),s=Lc(t),o=[i(a.values[0],s.values[0]),i(a.values[1],s.values[1]),i(a.values[2],s.values[2])];return vO({type:"rgb",values:o})}const W3e=["mode","contrastThreshold","tonalOffset"],zZ={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:dw.white,default:dw.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},nD={text:{primary:dw.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:dw.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function HZ(e,t,n,r){const i=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=bw(e.main,i):t==="dark"&&(e.dark=gw(e.main,a)))}function Q3e(e="light"){return e==="dark"?{main:jb[200],light:jb[50],dark:jb[400]}:{main:jb[700],light:jb[400],dark:jb[800]}}function G3e(e="light"){return e==="dark"?{main:Hb[200],light:Hb[50],dark:Hb[400]}:{main:Hb[500],light:Hb[300],dark:Hb[700]}}function V3e(e="light"){return e==="dark"?{main:zb[500],light:zb[300],dark:zb[700]}:{main:zb[700],light:zb[400],dark:zb[800]}}function q3e(e="light"){return e==="dark"?{main:Wb[400],light:Wb[300],dark:Wb[700]}:{main:Wb[700],light:Wb[500],dark:Wb[900]}}function Y3e(e="light"){return e==="dark"?{main:Qb[400],light:Qb[300],dark:Qb[700]}:{main:Qb[800],light:Qb[500],dark:Qb[900]}}function Z3e(e="light"){return e==="dark"?{main:a2[400],light:a2[300],dark:a2[700]}:{main:"#ed6c02",light:a2[500],dark:a2[900]}}function X3e(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=It(e,W3e),a=e.primary||Q3e(t),s=e.secondary||G3e(t),o=e.error||V3e(t),l=e.info||q3e(t),u=e.success||Y3e(t),d=e.warning||Z3e(t);function f(S){return D3e(S,nD.text.primary)>=n?nD.text.primary:zZ.text.primary}const p=({color:S,name:E,mainShade:w=500,lightShade:x=300,darkShade:k=700})=>{if(S=Q({},S),!S.main&&S[w]&&(S.main=S[w]),!S.hasOwnProperty("main"))throw new Error(bp(11,E?` (${E})`:"",w));if(typeof S.main!="string")throw new Error(bp(12,E?` (${E})`:"",JSON.stringify(S.main)));return HZ(S,"light",x,r),HZ(S,"dark",k,r),S.contrastText||(S.contrastText=f(S.main)),S},g={dark:nD,light:zZ};return rl(Q({common:Q({},dw),mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:o,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:eAe,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r},g[t]),i)}const K3e=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function J3e(e){return Math.round(e*1e5)/1e5}const jZ={textTransform:"uppercase"},WZ='"Roboto", "Helvetica", "Arial", sans-serif';function eCe(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=WZ,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:s=400,fontWeightMedium:o=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:d,pxToRem:f}=n,p=It(n,K3e),g=i/14,b=f||(w=>`${w/u*g}rem`),S=(w,x,k,_,C)=>Q({fontFamily:r,fontWeight:w,fontSize:b(x),lineHeight:k},r===WZ?{letterSpacing:`${J3e(_/x)}em`}:{},C,d),E={h1:S(a,96,1.167,-1.5),h2:S(a,60,1.2,-.5),h3:S(s,48,1.167,0),h4:S(s,34,1.235,.25),h5:S(s,24,1.334,0),h6:S(o,20,1.6,.15),subtitle1:S(s,16,1.75,.15),subtitle2:S(o,14,1.57,.1),body1:S(s,16,1.5,.15),body2:S(s,14,1.43,.15),button:S(o,14,1.75,.4,jZ),caption:S(s,12,1.66,.4),overline:S(s,12,2.66,1,jZ),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return rl(Q({htmlFontSize:u,pxToRem:b,fontFamily:r,fontSize:i,fontWeightLight:a,fontWeightRegular:s,fontWeightMedium:o,fontWeightBold:l},E),p,{clone:!1})}const tCe=.2,nCe=.14,rCe=.12;function Zi(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${tCe})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${nCe})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${rCe})`].join(",")}const iCe=["none",Zi(0,2,1,-1,0,1,1,0,0,1,3,0),Zi(0,3,1,-2,0,2,2,0,0,1,5,0),Zi(0,3,3,-2,0,3,4,0,0,1,8,0),Zi(0,2,4,-1,0,4,5,0,0,1,10,0),Zi(0,3,5,-1,0,5,8,0,0,1,14,0),Zi(0,3,5,-1,0,6,10,0,0,1,18,0),Zi(0,4,5,-2,0,7,10,1,0,2,16,1),Zi(0,5,5,-3,0,8,10,1,0,3,14,2),Zi(0,5,6,-3,0,9,12,1,0,3,16,2),Zi(0,6,6,-3,0,10,14,1,0,4,18,3),Zi(0,6,7,-4,0,11,15,1,0,4,20,3),Zi(0,7,8,-4,0,12,17,2,0,5,22,4),Zi(0,7,8,-4,0,13,19,2,0,5,24,4),Zi(0,7,9,-4,0,14,21,2,0,5,26,4),Zi(0,8,9,-5,0,15,22,2,0,6,28,5),Zi(0,8,10,-5,0,16,24,2,0,6,30,5),Zi(0,8,11,-5,0,17,26,2,0,6,32,5),Zi(0,9,11,-5,0,18,28,2,0,7,34,6),Zi(0,9,12,-6,0,19,29,2,0,7,36,6),Zi(0,10,13,-6,0,20,31,3,0,8,38,7),Zi(0,10,13,-6,0,21,33,3,0,8,40,7),Zi(0,10,14,-6,0,22,35,3,0,8,42,7),Zi(0,11,14,-7,0,23,36,3,0,9,44,8),Zi(0,11,15,-7,0,24,38,3,0,9,46,8)],aCe=["duration","easing","delay"],sCe={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},fue={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function QZ(e){return`${Math.round(e)}ms`}function oCe(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function lCe(e){const t=Q({},sCe,e.easing),n=Q({},fue,e.duration);return Q({getAutoHeightDuration:oCe,create:(i=["all"],a={})=>{const{duration:s=n.standard,easing:o=t.easeInOut,delay:l=0}=a;return It(a,aCe),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof s=="string"?s:QZ(s)} ${o} ${typeof l=="string"?l:QZ(l)}`).join(",")}},e,{easing:t,duration:n})}const uCe={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},cCe=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function NB(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:a={}}=e,s=It(e,cCe);if(e.vars)throw new Error(bp(18));const o=X3e(r),l=bO(e);let u=rl(l,{mixins:R3e(l.breakpoints,n),palette:o,shadows:iCe.slice(),typography:eCe(o,a),transitions:lCe(i),zIndex:Q({},uCe)});return u=rl(u,s),u=t.reduce((d,f)=>rl(d,f),u),u.unstable_sxConfig=Q({},kx,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(f){return gO({sx:f,theme:this})},u}const DB=NB();function Xf(){const e=X5(DB);return e[Pv]||e}var Cx={},rD={exports:{}},GZ;function hue(){return GZ||(GZ=1,function(e){function t(n,r){if(n==null)return{};var i={};for(var a in n)if({}.hasOwnProperty.call(n,a)){if(r.includes(a))continue;i[a]=n[a]}return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(rD)),rD.exports}const pue=Rp(p_e),dCe=Rp(m_e),fCe=Rp(S_e),hCe=Rp(w4e),pCe=Rp(l4e),mCe=Rp(p4e);var OO=Bi;Object.defineProperty(Cx,"__esModule",{value:!0});var gCe=Cx.default=CCe;Cx.shouldForwardProp=f4;Cx.systemDefaultTheme=void 0;var uc=OO(Cle()),b8=OO(hue()),VZ=wCe(pue),bCe=dCe;OO(fCe);OO(hCe);var yCe=OO(pCe),vCe=OO(mCe);const OCe=["ownerState"],SCe=["variants"],ECe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function mue(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(mue=function(r){return r?n:t})(e)}function wCe(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=mue(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function xCe(e){return Object.keys(e).length===0}function TCe(e){return typeof e=="string"&&e.charCodeAt(0)>96}function f4(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const kCe=Cx.systemDefaultTheme=(0,yCe.default)(),ACe=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function AA({defaultTheme:e,theme:t,themeId:n}){return xCe(t)?e:t[n]||t}function _Ce(e){return e?(t,n)=>n[e]:null}function h4(e,t){let{ownerState:n}=t,r=(0,b8.default)(t,OCe);const i=typeof e=="function"?e((0,uc.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(a=>h4(a,(0,uc.default)({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:a=[]}=i;let o=(0,b8.default)(i,SCe);return a.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props((0,uc.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(d=>{(n==null?void 0:n[d])!==l.props[d]&&r[d]!==l.props[d]&&(u=!1)}),u&&(Array.isArray(o)||(o=[o]),o.push(typeof l.style=="function"?l.style((0,uc.default)({ownerState:n},r,n)):l.style))}),o}return i}function CCe(e={}){const{themeId:t,defaultTheme:n=kCe,rootShouldForwardProp:r=f4,slotShouldForwardProp:i=f4}=e,a=s=>(0,vCe.default)((0,uc.default)({},s,{theme:AA((0,uc.default)({},s,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(s,o={})=>{(0,VZ.internal_processStyles)(s,C=>C.filter(R=>!(R!=null&&R.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:p=_Ce(ACe(u))}=o,g=(0,b8.default)(o,ECe),b=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,S=f||!1;let E,w=f4;u==="Root"||u==="root"?w=r:u?w=i:TCe(s)&&(w=void 0);const x=(0,VZ.default)(s,(0,uc.default)({shouldForwardProp:w,label:E},g)),k=C=>typeof C=="function"&&C.__emotion_real!==C||(0,bCe.isPlainObject)(C)?R=>h4(C,(0,uc.default)({},R,{theme:AA({theme:R.theme,defaultTheme:n,themeId:t})})):C,_=(C,...R)=>{let N=k(C);const M=R?R.map(k):[];l&&p&&M.push(G=>{const V=AA((0,uc.default)({},G,{defaultTheme:n,themeId:t}));if(!V.components||!V.components[l]||!V.components[l].styleOverrides)return null;const ie=V.components[l].styleOverrides,ne={};return Object.entries(ie).forEach(([q,re])=>{ne[q]=h4(re,(0,uc.default)({},G,{theme:V}))}),p(G,ne)}),l&&!b&&M.push(G=>{var V;const ie=AA((0,uc.default)({},G,{defaultTheme:n,themeId:t})),ne=ie==null||(V=ie.components)==null||(V=V[l])==null?void 0:V.variants;return h4({variants:ne},(0,uc.default)({},G,{theme:ie}))}),S||M.push(a);const U=M.length-R.length;if(Array.isArray(C)&&U>0){const G=new Array(U).fill("");N=[...C,...G],N.raw=[...C.raw,...G]}const F=x(N,...M);return s.muiName&&(F.muiName=s.muiName),F};return x.withConfig&&(_.withConfig=x.withConfig),_}}function fR(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Js=e=>fR(e)&&e!=="classes",pt=gCe({themeId:Pv,defaultTheme:DB,rootShouldForwardProp:Js}),RCe=["theme"];function ICe(e){let{theme:t}=e,n=It(e,RCe);const r=t[Pv];return D.jsx(m3e,Q({},n,{themeId:r?Pv:void 0,theme:r||t}))}const qZ=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function bn(e){return p3e(e)}function NCe(e){return hn("MuiSvgIcon",e)}mn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const DCe=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],PCe=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${ft(t)}`,`fontSize${ft(n)}`]};return gn(i,NCe,r)},MCe=pt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ft(n.color)}`],t[`fontSize${ft(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,a,s,o,l,u,d,f,p,g,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(s=a.pxToRem)==null?void 0:s.call(a,20))||"1.25rem",medium:((o=e.typography)==null||(l=o.pxToRem)==null?void 0:l.call(o,24))||"1.5rem",large:((u=e.typography)==null||(d=u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.active,disabled:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.disabled,inherit:void 0}[t.color]}}),bm=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:s="inherit",component:o="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:f,viewBox:p="0 0 24 24"}=r,g=It(r,DCe),b=L.isValidElement(i)&&i.type==="svg",S=Q({},r,{color:s,component:o,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:p,hasSvgAsChild:b}),E={};d||(E.viewBox=p);const w=PCe(S);return D.jsxs(MCe,Q({as:o,className:Rt(w.root,a),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},E,g,b&&i.props,{ownerState:S,children:[b?i.props.children:i,f?D.jsx("title",{children:f}):null]}))});bm.muiName="SvgIcon";function Ud(e,t){function n(r,i){return D.jsx(bm,Q({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=bm.muiName,L.memo(L.forwardRef(n))}const LCe={configure:e=>{xB.configure(e)}},$Ce=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ft,createChainedFunction:C3,createSvgIcon:Ud,debounce:uR,deprecatedPropType:H4e,isMuiElement:mE,ownerDocument:ga,ownerWindow:Gf,requirePropFactory:j4e,setRef:mw,unstable_ClassNameGenerator:LCe,unstable_useEnhancedEffect:sl,unstable_useId:yO,unsupportedProp:Q4e,useControlled:Uf,useEventCallback:qs,useForkRef:Er,useIsFocusVisible:dR},Symbol.toStringTag,{value:"Module"}));function y8(e,t){return y8=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},y8(e,t)}function gue(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,y8(e,t)}const YZ={disabled:!1},I3=on.createContext(null);var FCe=function(t){return t.scrollTop},j2="unmounted",Rg="exited",Ig="entering",ry="entered",v8="exiting",Wc=function(e){gue(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var s=i,o=s&&!s.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?o?(l=Rg,a.appearStatus=Ig):l=ry:r.unmountOnExit||r.mountOnEnter?l=j2:l=Rg,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var s=i.in;return s&&a.status===j2?{status:Rg}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==Ig&&s!==ry&&(a=Ig):(s===Ig||s===ry)&&(a=v8)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,s,o;return a=s=o=i,i!=null&&typeof i!="number"&&(a=i.exit,s=i.enter,o=i.appear!==void 0?i.appear:s),{exit:a,enter:s,appear:o}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Ig){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:H2.findDOMNode(this);s&&FCe(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Rg&&this.setState({status:j2})},n.performEnter=function(i){var a=this,s=this.props.enter,o=this.context?this.context.isMounting:i,l=this.props.nodeRef?[o]:[H2.findDOMNode(this),o],u=l[0],d=l[1],f=this.getTimeouts(),p=o?f.appear:f.enter;if(!i&&!s||YZ.disabled){this.safeSetState({status:ry},function(){a.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:Ig},function(){a.props.onEntering(u,d),a.onTransitionEnd(p,function(){a.safeSetState({status:ry},function(){a.props.onEntered(u,d)})})})},n.performExit=function(){var i=this,a=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:H2.findDOMNode(this);if(!a||YZ.disabled){this.safeSetState({status:Rg},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:v8},function(){i.props.onExiting(o),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Rg},function(){i.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,s=!0;return this.nextCallback=function(o){s&&(s=!1,a.nextCallback=null,i(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:H2.findDOMNode(this),o=i==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=l[0],d=l[1];this.props.addEndListener(u,d)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===j2)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var o=It(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return on.createElement(I3.Provider,{value:null},typeof s=="function"?s(i,o):on.cloneElement(on.Children.only(s),o))},t}(on.Component);Wc.contextType=I3;Wc.propTypes={};function Gb(){}Wc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Gb,onEntering:Gb,onEntered:Gb,onExit:Gb,onExiting:Gb,onExited:Gb};Wc.UNMOUNTED=j2;Wc.EXITED=Rg;Wc.ENTERING=Ig;Wc.ENTERED=ry;Wc.EXITING=v8;function BCe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PB(e,t){var n=function(a){return t&&L.isValidElement(a)?t(a):a},r=Object.create(null);return e&&L.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function UCe(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var s,o={};for(var l in t){if(r[l])for(s=0;se.scrollTop;function ym(e,t){var n,r;const{timeout:i,easing:a,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof a=="object"?a[t.mode]:a,delay:s.transitionDelay}}function QCe(e){return hn("MuiCollapse",e)}mn("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const GCe=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],VCe=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return gn(r,QCe,n)},qCe=pt("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>Q({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&Q({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),YCe=pt("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>Q({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),ZCe=pt("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>Q({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),$B=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiCollapse"}),{addEndListener:i,children:a,className:s,collapsedSize:o="0px",component:l,easing:u,in:d,onEnter:f,onEntered:p,onEntering:g,onExit:b,onExited:S,onExiting:E,orientation:w="vertical",style:x,timeout:k=fue.standard,TransitionComponent:_=Wc}=r,C=It(r,GCe),R=Q({},r,{orientation:w,collapsedSize:o}),N=VCe(R),M=Xf(),U=Hg(),F=L.useRef(null),G=L.useRef(),V=typeof o=="number"?`${o}px`:o,ie=w==="horizontal",ne=ie?"width":"height",q=L.useRef(null),re=Er(n,q),ee=oe=>rt=>{if(oe){const qe=q.current;rt===void 0?oe(qe):oe(qe,rt)}},Z=()=>F.current?F.current[ie?"clientWidth":"clientHeight"]:0,se=ee((oe,rt)=>{F.current&&ie&&(F.current.style.position="absolute"),oe.style[ne]=V,f&&f(oe,rt)}),W=ee((oe,rt)=>{const qe=Z();F.current&&ie&&(F.current.style.position="");const{duration:et,easing:Tt}=ym({style:x,timeout:k,easing:u},{mode:"enter"});if(k==="auto"){const ct=M.transitions.getAutoHeightDuration(qe);oe.style.transitionDuration=`${ct}ms`,G.current=ct}else oe.style.transitionDuration=typeof et=="string"?et:`${et}ms`;oe.style[ne]=`${qe}px`,oe.style.transitionTimingFunction=Tt,g&&g(oe,rt)}),Pe=ee((oe,rt)=>{oe.style[ne]="auto",p&&p(oe,rt)}),Ee=ee(oe=>{oe.style[ne]=`${Z()}px`,b&&b(oe)}),X=ee(S),Re=ee(oe=>{const rt=Z(),{duration:qe,easing:et}=ym({style:x,timeout:k,easing:u},{mode:"exit"});if(k==="auto"){const Tt=M.transitions.getAutoHeightDuration(rt);oe.style.transitionDuration=`${Tt}ms`,G.current=Tt}else oe.style.transitionDuration=typeof qe=="string"?qe:`${qe}ms`;oe.style[ne]=V,oe.style.transitionTimingFunction=et,E&&E(oe)}),Ue=oe=>{k==="auto"&&U.start(G.current||0,oe),i&&i(q.current,oe)};return D.jsx(_,Q({in:d,onEnter:se,onEntered:Pe,onEntering:W,onExit:Ee,onExited:X,onExiting:Re,addEndListener:Ue,nodeRef:q,timeout:k==="auto"?null:k},C,{children:(oe,rt)=>D.jsx(qCe,Q({as:l,className:Rt(N.root,s,{entered:N.entered,exited:!d&&V==="0px"&&N.hidden}[oe]),style:Q({[ie?"minWidth":"minHeight"]:V},x),ref:re},rt,{ownerState:Q({},R,{state:oe}),children:D.jsx(YCe,{ownerState:Q({},R,{state:oe}),className:N.wrapper,ref:F,children:D.jsx(ZCe,{ownerState:Q({},R,{state:oe}),className:N.wrapperInner,children:a})})}))}))});$B.muiSupportAuto=!0;function XCe(e){return hn("MuiPaper",e)}mn("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const KCe=["className","component","elevation","square","variant"],JCe=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return gn(a,XCe,i)},e5e=pt("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return Q({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&Q({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Yn("#fff",qZ(t.elevation))}, ${Yn("#fff",qZ(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Ks=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiPaper"}),{className:i,component:a="div",elevation:s=1,square:o=!1,variant:l="elevation"}=r,u=It(r,KCe),d=Q({},r,{component:a,elevation:s,square:o,variant:l}),f=JCe(d);return D.jsx(e5e,Q({as:a,ownerState:d,className:Rt(f.root,i),ref:n},u))}),t5e=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],n5e=["component","slots","slotProps"],r5e=["component"];function i5e(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:a,getSlotOwnerState:s,internalForwardedProps:o}=t,l=It(t,t5e),{component:u,slots:d={[e]:void 0},slotProps:f={[e]:void 0}}=a;It(a,n5e);const p=d[e]||r,g=eue(f[e],i),b=Jle(Q({className:n},l,{externalForwardedProps:void 0,externalSlotProps:g})),{props:{component:S},internalRef:E}=b,w=It(b.props,r5e),x=Er(E,g==null?void 0:g.ref,t.ref),k=s?s(w):{},_=Q({},i,k),C=S,R=Cy(p,Q({},e==="root",!d[e]&&o,w,C&&{as:C},{ref:x}),_);return Object.keys(k).forEach(N=>{delete R[N]}),[p,R]}function a5e(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:s,in:o,onExited:l,timeout:u}=e,[d,f]=L.useState(!1),p=Rt(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:s,height:s,top:-(s/2)+a,left:-(s/2)+i},b=Rt(n.child,d&&n.childLeaving,r&&n.childPulsate);return!o&&!d&&f(!0),L.useEffect(()=>{if(!o&&l!=null){const S=setTimeout(l,u);return()=>{clearTimeout(S)}}},[l,o,u]),D.jsx("span",{className:p,style:g,children:D.jsx("span",{className:b})})}const dc=mn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),s5e=["center","classes","className"];let hR=e=>e,ZZ,XZ,KZ,JZ;const O8=550,o5e=80,l5e=mO(ZZ||(ZZ=hR` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),u5e=mO(XZ||(XZ=hR` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),c5e=mO(KZ||(KZ=hR` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),d5e=pt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),f5e=pt(a5e,{name:"MuiTouchRipple",slot:"Ripple"})(JZ||(JZ=hR` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),dc.rippleVisible,l5e,O8,({theme:e})=>e.transitions.easing.easeInOut,dc.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,dc.child,dc.childLeaving,u5e,O8,({theme:e})=>e.transitions.easing.easeInOut,dc.childPulsate,c5e,({theme:e})=>e.transitions.easing.easeInOut),h5e=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:s}=r,o=It(r,s5e),[l,u]=L.useState([]),d=L.useRef(0),f=L.useRef(null);L.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const p=L.useRef(!1),g=Hg(),b=L.useRef(null),S=L.useRef(null),E=L.useCallback(_=>{const{pulsate:C,rippleX:R,rippleY:N,rippleSize:M,cb:U}=_;u(F=>[...F,D.jsx(f5e,{classes:{ripple:Rt(a.ripple,dc.ripple),rippleVisible:Rt(a.rippleVisible,dc.rippleVisible),ripplePulsate:Rt(a.ripplePulsate,dc.ripplePulsate),child:Rt(a.child,dc.child),childLeaving:Rt(a.childLeaving,dc.childLeaving),childPulsate:Rt(a.childPulsate,dc.childPulsate)},timeout:O8,pulsate:C,rippleX:R,rippleY:N,rippleSize:M},d.current)]),d.current+=1,f.current=U},[a]),w=L.useCallback((_={},C={},R=()=>{})=>{const{pulsate:N=!1,center:M=i||C.pulsate,fakeElement:U=!1}=C;if((_==null?void 0:_.type)==="mousedown"&&p.current){p.current=!1;return}(_==null?void 0:_.type)==="touchstart"&&(p.current=!0);const F=U?null:S.current,G=F?F.getBoundingClientRect():{width:0,height:0,left:0,top:0};let V,ie,ne;if(M||_===void 0||_.clientX===0&&_.clientY===0||!_.clientX&&!_.touches)V=Math.round(G.width/2),ie=Math.round(G.height/2);else{const{clientX:q,clientY:re}=_.touches&&_.touches.length>0?_.touches[0]:_;V=Math.round(q-G.left),ie=Math.round(re-G.top)}if(M)ne=Math.sqrt((2*G.width**2+G.height**2)/3),ne%2===0&&(ne+=1);else{const q=Math.max(Math.abs((F?F.clientWidth:0)-V),V)*2+2,re=Math.max(Math.abs((F?F.clientHeight:0)-ie),ie)*2+2;ne=Math.sqrt(q**2+re**2)}_!=null&&_.touches?b.current===null&&(b.current=()=>{E({pulsate:N,rippleX:V,rippleY:ie,rippleSize:ne,cb:R})},g.start(o5e,()=>{b.current&&(b.current(),b.current=null)})):E({pulsate:N,rippleX:V,rippleY:ie,rippleSize:ne,cb:R})},[i,E,g]),x=L.useCallback(()=>{w({},{pulsate:!0})},[w]),k=L.useCallback((_,C)=>{if(g.clear(),(_==null?void 0:_.type)==="touchend"&&b.current){b.current(),b.current=null,g.start(0,()=>{k(_,C)});return}b.current=null,u(R=>R.length>0?R.slice(1):R),f.current=C},[g]);return L.useImperativeHandle(n,()=>({pulsate:x,start:w,stop:k}),[x,w,k]),D.jsx(d5e,Q({className:Rt(dc.root,a.root,s),ref:S},o,{children:D.jsx(MB,{component:null,exit:!0,children:l})}))});function p5e(e){return hn("MuiButtonBase",e)}const m5e=mn("MuiButtonBase",["root","disabled","focusVisible"]),g5e=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],b5e=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,s=gn({root:["root",t&&"disabled",n&&"focusVisible"]},p5e,i);return n&&r&&(s.root+=` ${r}`),s},y5e=pt("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${m5e.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Vf=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:s,className:o,component:l="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:g="a",onBlur:b,onClick:S,onContextMenu:E,onDragLeave:w,onFocus:x,onFocusVisible:k,onKeyDown:_,onKeyUp:C,onMouseDown:R,onMouseLeave:N,onMouseUp:M,onTouchEnd:U,onTouchMove:F,onTouchStart:G,tabIndex:V=0,TouchRippleProps:ie,touchRippleRef:ne,type:q}=r,re=It(r,g5e),ee=L.useRef(null),Z=L.useRef(null),se=Er(Z,ne),{isFocusVisibleRef:W,onFocus:Pe,onBlur:Ee,ref:X}=dR(),[Re,Ue]=L.useState(!1);u&&Re&&Ue(!1),L.useImperativeHandle(i,()=>({focusVisible:()=>{Ue(!0),ee.current.focus()}}),[]);const[oe,rt]=L.useState(!1);L.useEffect(()=>{rt(!0)},[]);const qe=oe&&!d&&!u;L.useEffect(()=>{Re&&p&&!d&&oe&&Z.current.pulsate()},[d,p,Re,oe]);function et(ke,ze,At=f){return qs(Zt=>(ze&&ze(Zt),!At&&Z.current&&Z.current[ke](Zt),!0))}const Tt=et("start",R),ct=et("stop",E),Pt=et("stop",w),Mt=et("stop",M),ot=et("stop",ke=>{Re&&ke.preventDefault(),N&&N(ke)}),wt=et("start",G),vt=et("stop",U),Wt=et("stop",F),z=et("stop",ke=>{Ee(ke),W.current===!1&&Ue(!1),b&&b(ke)},!1),K=qs(ke=>{ee.current||(ee.current=ke.currentTarget),Pe(ke),W.current===!0&&(Ue(!0),k&&k(ke)),x&&x(ke)}),ue=()=>{const ke=ee.current;return l&&l!=="button"&&!(ke.tagName==="A"&&ke.href)},_e=L.useRef(!1),Ie=qs(ke=>{p&&!_e.current&&Re&&Z.current&&ke.key===" "&&(_e.current=!0,Z.current.stop(ke,()=>{Z.current.start(ke)})),ke.target===ke.currentTarget&&ue()&&ke.key===" "&&ke.preventDefault(),_&&_(ke),ke.target===ke.currentTarget&&ue()&&ke.key==="Enter"&&!u&&(ke.preventDefault(),S&&S(ke))}),Ce=qs(ke=>{p&&ke.key===" "&&Z.current&&Re&&!ke.defaultPrevented&&(_e.current=!1,Z.current.stop(ke,()=>{Z.current.pulsate(ke)})),C&&C(ke),S&&ke.target===ke.currentTarget&&ue()&&ke.key===" "&&!ke.defaultPrevented&&S(ke)});let Qe=l;Qe==="button"&&(re.href||re.to)&&(Qe=g);const Ot={};Qe==="button"?(Ot.type=q===void 0?"button":q,Ot.disabled=u):(!re.href&&!re.to&&(Ot.role="button"),u&&(Ot["aria-disabled"]=u));const Ne=Er(n,X,ee),ye=Q({},r,{centerRipple:a,component:l,disabled:u,disableRipple:d,disableTouchRipple:f,focusRipple:p,tabIndex:V,focusVisible:Re}),ve=b5e(ye);return D.jsxs(y5e,Q({as:Qe,className:Rt(ve.root,o),ownerState:ye,onBlur:z,onClick:S,onContextMenu:ct,onFocus:K,onKeyDown:Ie,onKeyUp:Ce,onMouseDown:Tt,onMouseLeave:ot,onMouseUp:Mt,onDragLeave:Pt,onTouchEnd:vt,onTouchMove:Wt,onTouchStart:wt,ref:Ne,tabIndex:u?-1:V,type:q},Ot,re,{children:[s,qe?D.jsx(h5e,Q({ref:se,center:a},ie)):null]}))});function v5e(e){return hn("MuiIconButton",e)}const O5e=mn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),S5e=["edge","children","className","color","disabled","disableFocusRipple","size"],E5e=e=>{const{classes:t,disabled:n,color:r,edge:i,size:a}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${ft(r)}`,i&&`edge${ft(i)}`,`size${ft(a)}`]};return gn(s,v5e,t)},w5e=pt(Vf,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ft(n.color)}`],n.edge&&t[`edge${ft(n.edge)}`],t[`size${ft(n.size)}`]]}})(({theme:e,ownerState:t})=>Q({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Yn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return Q({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&Q({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":Q({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Yn(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${O5e.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Ro=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiIconButton"}),{edge:i=!1,children:a,className:s,color:o="default",disabled:l=!1,disableFocusRipple:u=!1,size:d="medium"}=r,f=It(r,S5e),p=Q({},r,{edge:i,color:o,disabled:l,disableFocusRipple:u,size:d}),g=E5e(p);return D.jsx(w5e,Q({className:Rt(g.root,s),centerRipple:!0,focusRipple:!u,disabled:l,ref:n},f,{ownerState:p,children:a}))}),x5e=Ud(D.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function T5e(e){return hn("MuiTypography",e)}mn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const k5e=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],A5e=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:a,classes:s}=e,o={root:["root",a,e.align!=="inherit"&&`align${ft(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return gn(o,T5e,s)},_5e=pt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${ft(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>Q({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),eX={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},C5e={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},R5e=e=>C5e[e]||e,Ar=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiTypography"}),i=R5e(r.color),a=Ax(Q({},r,{color:i})),{align:s="inherit",className:o,component:l,gutterBottom:u=!1,noWrap:d=!1,paragraph:f=!1,variant:p="body1",variantMapping:g=eX}=a,b=It(a,k5e),S=Q({},a,{align:s,color:i,className:o,component:l,gutterBottom:u,noWrap:d,paragraph:f,variant:p,variantMapping:g}),E=l||(f?"p":g[p]||eX[p])||"span",w=A5e(S);return D.jsx(_5e,Q({as:E,ref:n,ownerState:S,className:Rt(w.root,o)},b))});function I5e(e){return hn("MuiAppBar",e)}mn("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const N5e=["className","color","enableColorOnDark","position"],D5e=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${ft(t)}`,`position${ft(n)}`]};return gn(i,I5e,r)},_A=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,P5e=pt(Ks,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ft(n.position)}`],t[`color${ft(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return Q({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&Q({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&Q({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&Q({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:_A(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:_A(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:_A(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:_A(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),FB=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiAppBar"}),{className:i,color:a="primary",enableColorOnDark:s=!1,position:o="fixed"}=r,l=It(r,N5e),u=Q({},r,{color:a,position:o,enableColorOnDark:s}),d=D5e(u);return D.jsx(P5e,Q({square:!0,component:"header",ownerState:u,elevation:4,className:Rt(d.root,i,o==="fixed"&&"mui-fixed"),ref:n},l))});function tX(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function M5e(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:i="any",stringify:a,trim:s=!1}=e;return(o,{inputValue:l,getOptionLabel:u})=>{let d=s?l.trim():l;n&&(d=d.toLowerCase()),t&&(d=tX(d));const f=d?o.filter(p=>{let g=(a||u)(p);return n&&(g=g.toLowerCase()),t&&(g=tX(g)),i==="start"?g.indexOf(d)===0:g.indexOf(d)>-1}):o;return typeof r=="number"?f.slice(0,r):f}}function CA(e,t){for(let n=0;n{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function F5e(e){const{unstable_isActiveElementInListbox:t=$5e,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:s=!1,clearOnBlur:o=!e.freeSolo,clearOnEscape:l=!1,componentName:u="useAutocomplete",defaultValue:d=e.multiple?[]:null,disableClearable:f=!1,disableCloseOnSelect:p=!1,disabled:g,disabledItemsFocusable:b=!1,disableListWrap:S=!1,filterOptions:E=L5e,filterSelectedOptions:w=!1,freeSolo:x=!1,getOptionDisabled:k,getOptionKey:_,getOptionLabel:C=Le=>{var Te;return(Te=Le.label)!=null?Te:Le},groupBy:R,handleHomeEndKeys:N=!e.freeSolo,id:M,includeInputInList:U=!1,inputValue:F,isOptionEqualToValue:G=(Le,Te)=>Le===Te,multiple:V=!1,onChange:ie,onClose:ne,onHighlightChange:q,onInputChange:re,onOpen:ee,open:Z,openOnFocus:se=!1,options:W,readOnly:Pe=!1,selectOnFocus:Ee=!e.freeSolo,value:X}=e,Re=yO(M);let Ue=C;Ue=Le=>{const Te=C(Le);return typeof Te!="string"?String(Te):Te};const oe=L.useRef(!1),rt=L.useRef(!0),qe=L.useRef(null),et=L.useRef(null),[Tt,ct]=L.useState(null),[Pt,Mt]=L.useState(-1),ot=i?0:-1,wt=L.useRef(ot),[vt,Wt]=Uf({controlled:X,default:d,name:u}),[z,K]=Uf({controlled:F,default:"",name:u,state:"inputValue"}),[ue,_e]=L.useState(!1),Ie=L.useCallback((Le,Te)=>{if(!(V?vt.length!(w&&(V?vt:[vt]).some(Te=>Te!==null&&G(Le,Te)))),{inputValue:ye&&Ot?"":z,getOptionLabel:Ue}):[],ze=n3e({filteredOptions:ke,value:vt,inputValue:z});L.useEffect(()=>{const Le=vt!==ze.value;ue&&!Le||x&&!Le||Ie(null,vt)},[vt,Ie,ue,ze.value,x]);const At=Ce&&ke.length>0&&!Pe,Zt=qs(Le=>{Le===-1?qe.current.focus():Tt.querySelector(`[data-tag-index="${Le}"]`).focus()});L.useEffect(()=>{V&&Pt>vt.length-1&&(Mt(-1),Zt(-1))},[vt,V,Pt,Zt]);function tt(Le,Te){if(!et.current||Le<0||Le>=ke.length)return-1;let dt=Le;for(;;){const Je=et.current.querySelector(`[data-option-index="${dt}"]`),kt=b?!1:!Je||Je.disabled||Je.getAttribute("aria-disabled")==="true";if(Je&&Je.hasAttribute("tabindex")&&!kt)return dt;if(Te==="next"?dt=(dt+1)%ke.length:dt=(dt-1+ke.length)%ke.length,dt===Le)return-1}}const Qt=qs(({event:Le,index:Te,reason:dt="auto"})=>{if(wt.current=Te,Te===-1?qe.current.removeAttribute("aria-activedescendant"):qe.current.setAttribute("aria-activedescendant",`${Re}-option-${Te}`),q&&q(Le,Te===-1?null:ke[Te],dt),!et.current)return;const Je=et.current.querySelector(`[role="option"].${n}-focused`);Je&&(Je.classList.remove(`${n}-focused`),Je.classList.remove(`${n}-focusVisible`));let kt=et.current;if(et.current.getAttribute("role")!=="listbox"&&(kt=et.current.parentElement.querySelector('[role="listbox"]')),!kt)return;if(Te===-1){kt.scrollTop=0;return}const _t=et.current.querySelector(`[data-option-index="${Te}"]`);if(_t&&(_t.classList.add(`${n}-focused`),dt==="keyboard"&&_t.classList.add(`${n}-focusVisible`),kt.scrollHeight>kt.clientHeight&&dt!=="mouse"&&dt!=="touch")){const qt=_t,it=kt.clientHeight+kt.scrollTop,Vn=qt.offsetTop+qt.offsetHeight;Vn>it?kt.scrollTop=Vn-kt.clientHeight:qt.offsetTop-qt.offsetHeight*(R?1.3:0){if(!ve)return;const _t=tt((()=>{const qt=ke.length-1;if(Te==="reset")return ot;if(Te==="start")return 0;if(Te==="end")return qt;const it=wt.current+Te;return it<0?it===-1&&U?-1:S&&wt.current!==-1||Math.abs(Te)>1?0:qt:it>qt?it===qt+1&&U?-1:S||Math.abs(Te)>1?qt:0:it})(),dt);if(Qt({index:_t,reason:Je,event:Le}),r&&Te!=="reset")if(_t===-1)qe.current.value=z;else{const qt=Ue(ke[_t]);qe.current.value=qt,qt.toLowerCase().indexOf(z.toLowerCase())===0&&z.length>0&&qe.current.setSelectionRange(z.length,qt.length)}}),Gt=()=>{const Le=(Te,dt)=>{const Je=Te?Ue(Te):"",kt=dt?Ue(dt):"";return Je===kt};if(wt.current!==-1&&ze.filteredOptions&&ze.filteredOptions.length!==ke.length&&ze.inputValue===z&&(V?vt.length===ze.value.length&&ze.value.every((Te,dt)=>Ue(vt[dt])===Ue(Te)):Le(ze.value,vt))){const Te=ze.filteredOptions[wt.current];if(Te)return CA(ke,dt=>Ue(dt)===Ue(Te))}return-1},vn=L.useCallback(()=>{if(!ve)return;const Le=Gt();if(Le!==-1){wt.current=Le;return}const Te=V?vt[0]:vt;if(ke.length===0||Te==null){Vt({diff:"reset"});return}if(et.current){if(Te!=null){const dt=ke[wt.current];if(V&&dt&&CA(vt,kt=>G(dt,kt))!==-1)return;const Je=CA(ke,kt=>G(kt,Te));Je===-1?Vt({diff:"reset"}):Qt({index:Je});return}if(wt.current>=ke.length-1){Qt({index:ke.length-1});return}Qt({index:wt.current})}},[ke.length,V?!1:vt,w,Vt,Qt,ve,z,V]),pr=qs(Le=>{mw(et,Le),Le&&vn()});L.useEffect(()=>{vn()},[vn]);const Cr=Le=>{Ce||(Qe(!0),Ne(!0),ee&&ee(Le))},Tr=(Le,Te)=>{Ce&&(Qe(!1),ne&&ne(Le,Te))},jr=(Le,Te,dt,Je)=>{if(V){if(vt.length===Te.length&&vt.every((kt,_t)=>kt===Te[_t]))return}else if(vt===Te)return;ie&&ie(Le,Te,dt,Je),Wt(Te)},vi=L.useRef(!1),si=(Le,Te,dt="selectOption",Je="options")=>{let kt=dt,_t=Te;if(V){_t=Array.isArray(vt)?vt.slice():[];const qt=CA(_t,it=>G(Te,it));qt===-1?_t.push(Te):Je!=="freeSolo"&&(_t.splice(qt,1),kt="removeOption")}Ie(Le,_t),jr(Le,_t,kt,{option:Te}),!p&&(!Le||!Le.ctrlKey&&!Le.metaKey)&&Tr(Le,kt),(s===!0||s==="touch"&&vi.current||s==="mouse"&&!vi.current)&&qe.current.blur()};function Ai(Le,Te){if(Le===-1)return-1;let dt=Le;for(;;){if(Te==="next"&&dt===vt.length||Te==="previous"&&dt===-1)return-1;const Je=Tt.querySelector(`[data-tag-index="${dt}"]`);if(!Je||!Je.hasAttribute("tabindex")||Je.disabled||Je.getAttribute("aria-disabled")==="true")dt+=Te==="next"?1:-1;else return dt}}const oi=(Le,Te)=>{if(!V)return;z===""&&Tr(Le,"toggleInput");let dt=Pt;Pt===-1?z===""&&Te==="previous"&&(dt=vt.length-1):(dt+=Te==="next"?1:-1,dt<0&&(dt=0),dt===vt.length&&(dt=-1)),dt=Ai(dt,Te),Mt(dt),Zt(dt)},ja=Le=>{oe.current=!0,K(""),re&&re(Le,"","clear"),jr(Le,V?[]:null,"clear")},_i=Le=>Te=>{if(Le.onKeyDown&&Le.onKeyDown(Te),!Te.defaultMuiPrevented&&(Pt!==-1&&["ArrowLeft","ArrowRight"].indexOf(Te.key)===-1&&(Mt(-1),Zt(-1)),Te.which!==229))switch(Te.key){case"Home":ve&&N&&(Te.preventDefault(),Vt({diff:"start",direction:"next",reason:"keyboard",event:Te}));break;case"End":ve&&N&&(Te.preventDefault(),Vt({diff:"end",direction:"previous",reason:"keyboard",event:Te}));break;case"PageUp":Te.preventDefault(),Vt({diff:-nX,direction:"previous",reason:"keyboard",event:Te}),Cr(Te);break;case"PageDown":Te.preventDefault(),Vt({diff:nX,direction:"next",reason:"keyboard",event:Te}),Cr(Te);break;case"ArrowDown":Te.preventDefault(),Vt({diff:1,direction:"next",reason:"keyboard",event:Te}),Cr(Te);break;case"ArrowUp":Te.preventDefault(),Vt({diff:-1,direction:"previous",reason:"keyboard",event:Te}),Cr(Te);break;case"ArrowLeft":oi(Te,"previous");break;case"ArrowRight":oi(Te,"next");break;case"Enter":if(wt.current!==-1&&ve){const dt=ke[wt.current],Je=k?k(dt):!1;if(Te.preventDefault(),Je)return;si(Te,dt,"selectOption"),r&&qe.current.setSelectionRange(qe.current.value.length,qe.current.value.length)}else x&&z!==""&&ye===!1&&(V&&Te.preventDefault(),si(Te,z,"createOption","freeSolo"));break;case"Escape":ve?(Te.preventDefault(),Te.stopPropagation(),Tr(Te,"escape")):l&&(z!==""||V&&vt.length>0)&&(Te.preventDefault(),Te.stopPropagation(),ja(Te));break;case"Backspace":if(V&&!Pe&&z===""&&vt.length>0){const dt=Pt===-1?vt.length-1:Pt,Je=vt.slice();Je.splice(dt,1),jr(Te,Je,"removeOption",{option:vt[dt]})}break;case"Delete":if(V&&!Pe&&z===""&&vt.length>0&&Pt!==-1){const dt=Pt,Je=vt.slice();Je.splice(dt,1),jr(Te,Je,"removeOption",{option:vt[dt]})}break}},Os=Le=>{_e(!0),se&&!oe.current&&Cr(Le)},Ci=Le=>{if(t(et)){qe.current.focus();return}_e(!1),rt.current=!0,oe.current=!1,a&&wt.current!==-1&&ve?si(Le,ke[wt.current],"blur"):a&&x&&z!==""?si(Le,z,"blur","freeSolo"):o&&Ie(Le,vt),Tr(Le,"blur")},Mr=Le=>{const Te=Le.target.value;z!==Te&&(K(Te),Ne(!1),re&&re(Le,Te,"input")),Te===""?!f&&!V&&jr(Le,null,"clear"):Cr(Le)},Kn=Le=>{const Te=Number(Le.currentTarget.getAttribute("data-option-index"));wt.current!==Te&&Qt({event:Le,index:Te,reason:"mouse"})},Wr=Le=>{Qt({event:Le,index:Number(Le.currentTarget.getAttribute("data-option-index")),reason:"touch"}),vi.current=!0},We=Le=>{const Te=Number(Le.currentTarget.getAttribute("data-option-index"));si(Le,ke[Te],"selectOption"),vi.current=!1},lt=Le=>Te=>{const dt=vt.slice();dt.splice(Le,1),jr(Te,dt,"removeOption",{option:vt[Le]})},de=Le=>{Ce?Tr(Le,"toggleInput"):Cr(Le)},me=Le=>{Le.currentTarget.contains(Le.target)&&Le.target.getAttribute("id")!==Re&&Le.preventDefault()},Be=Le=>{Le.currentTarget.contains(Le.target)&&(qe.current.focus(),Ee&&rt.current&&qe.current.selectionEnd-qe.current.selectionStart===0&&qe.current.select(),rt.current=!1)},Ke=Le=>{!g&&(z===""||!Ce)&&de(Le)};let yt=x&&z.length>0;yt=yt||(V?vt.length>0:vt!==null);let Xt=ke;return R&&(Xt=ke.reduce((Le,Te,dt)=>{const Je=R(Te);return Le.length>0&&Le[Le.length-1].group===Je?Le[Le.length-1].options.push(Te):Le.push({key:dt,index:dt,group:Je,options:[Te]}),Le},[])),g&&ue&&Ci(),{getRootProps:(Le={})=>Q({"aria-owns":At?`${Re}-listbox`:null},Le,{onKeyDown:_i(Le),onMouseDown:me,onClick:Be}),getInputLabelProps:()=>({id:`${Re}-label`,htmlFor:Re}),getInputProps:()=>({id:Re,value:z,onBlur:Ci,onFocus:Os,onChange:Mr,onMouseDown:Ke,"aria-activedescendant":ve?"":null,"aria-autocomplete":r?"both":"list","aria-controls":At?`${Re}-listbox`:void 0,"aria-expanded":At,autoComplete:"off",ref:qe,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:g}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:ja}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:de}),getTagProps:({index:Le})=>Q({key:Le,"data-tag-index":Le,tabIndex:-1},!Pe&&{onDelete:lt(Le)}),getListboxProps:()=>({role:"listbox",id:`${Re}-listbox`,"aria-labelledby":`${Re}-label`,ref:pr,onMouseDown:Le=>{Le.preventDefault()}}),getOptionProps:({index:Le,option:Te})=>{var dt;const Je=(V?vt:[vt]).some(_t=>_t!=null&&G(Te,_t)),kt=k?k(Te):!1;return{key:(dt=_==null?void 0:_(Te))!=null?dt:Ue(Te),tabIndex:-1,role:"option",id:`${Re}-option-${Le}`,onMouseMove:Kn,onClick:We,onTouchStart:Wr,"data-option-index":Le,"aria-disabled":kt,"aria-selected":Je}},id:Re,inputValue:z,value:vt,dirty:yt,expanded:ve&&Tt,popupOpen:ve,focused:ue||Pt!==-1,anchorEl:Tt,setAnchorEl:ct,focusedTag:Pt,groupedOptions:Xt}}var BB={};Object.defineProperty(BB,"__esModule",{value:!0});var bue=BB.default=void 0,B5e=z5e(L),U5e=pue;function yue(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(yue=function(r){return r?n:t})(e)}function z5e(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=yue(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function H5e(e){return Object.keys(e).length===0}function j5e(e=null){const t=B5e.useContext(U5e.ThemeContext);return!t||H5e(t)?e:t}bue=BB.default=j5e;var Ul="top",$c="bottom",Fc="right",zl="left",UB="auto",Rx=[Ul,$c,Fc,zl],$v="start",yw="end",W5e="clippingParents",vue="viewport",o2="popper",Q5e="reference",rX=Rx.reduce(function(e,t){return e.concat([t+"-"+$v,t+"-"+yw])},[]),Oue=[].concat(Rx,[UB]).reduce(function(e,t){return e.concat([t,t+"-"+$v,t+"-"+yw])},[]),G5e="beforeRead",V5e="read",q5e="afterRead",Y5e="beforeMain",Z5e="main",X5e="afterMain",K5e="beforeWrite",J5e="write",eRe="afterWrite",tRe=[G5e,V5e,q5e,Y5e,Z5e,X5e,K5e,J5e,eRe];function qf(e){return e?(e.nodeName||"").toLowerCase():null}function Uu(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function x1(e){var t=Uu(e).Element;return e instanceof t||e instanceof Element}function _c(e){var t=Uu(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function zB(e){if(typeof ShadowRoot>"u")return!1;var t=Uu(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function nRe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},a=t.elements[n];!_c(a)||!qf(a)||(Object.assign(a.style,r),Object.keys(i).forEach(function(s){var o=i[s];o===!1?a.removeAttribute(s):a.setAttribute(s,o===!0?"":o)}))})}function rRe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],a=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),o=s.reduce(function(l,u){return l[u]="",l},{});!_c(i)||!qf(i)||(Object.assign(i.style,o),Object.keys(a).forEach(function(l){i.removeAttribute(l)}))})}}const iRe={name:"applyStyles",enabled:!0,phase:"write",fn:nRe,effect:rRe,requires:["computeStyles"]};function Hf(e){return e.split("-")[0]}var c1=Math.max,N3=Math.min,Fv=Math.round;function S8(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Sue(){return!/^((?!chrome|android).)*safari/i.test(S8())}function Bv(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&_c(e)&&(i=e.offsetWidth>0&&Fv(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Fv(r.height)/e.offsetHeight||1);var s=x1(e)?Uu(e):window,o=s.visualViewport,l=!Sue()&&n,u=(r.left+(l&&o?o.offsetLeft:0))/i,d=(r.top+(l&&o?o.offsetTop:0))/a,f=r.width/i,p=r.height/a;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function HB(e){var t=Bv(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Eue(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&zB(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function yp(e){return Uu(e).getComputedStyle(e)}function aRe(e){return["table","td","th"].indexOf(qf(e))>=0}function Nm(e){return((x1(e)?e.ownerDocument:e.document)||window.document).documentElement}function pR(e){return qf(e)==="html"?e:e.assignedSlot||e.parentNode||(zB(e)?e.host:null)||Nm(e)}function iX(e){return!_c(e)||yp(e).position==="fixed"?null:e.offsetParent}function sRe(e){var t=/firefox/i.test(S8()),n=/Trident/i.test(S8());if(n&&_c(e)){var r=yp(e);if(r.position==="fixed")return null}var i=pR(e);for(zB(i)&&(i=i.host);_c(i)&&["html","body"].indexOf(qf(i))<0;){var a=yp(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function Ix(e){for(var t=Uu(e),n=iX(e);n&&aRe(n)&&yp(n).position==="static";)n=iX(n);return n&&(qf(n)==="html"||qf(n)==="body"&&yp(n).position==="static")?t:n||sRe(e)||t}function jB(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function bE(e,t,n){return c1(e,N3(t,n))}function oRe(e,t,n){var r=bE(e,t,n);return r>n?n:r}function wue(){return{top:0,right:0,bottom:0,left:0}}function xue(e){return Object.assign({},wue(),e)}function Tue(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var lRe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,xue(typeof t!="number"?t:Tue(t,Rx))};function uRe(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,o=Hf(n.placement),l=jB(o),u=[zl,Fc].indexOf(o)>=0,d=u?"height":"width";if(!(!a||!s)){var f=lRe(i.padding,n),p=HB(a),g=l==="y"?Ul:zl,b=l==="y"?$c:Fc,S=n.rects.reference[d]+n.rects.reference[l]-s[l]-n.rects.popper[d],E=s[l]-n.rects.reference[l],w=Ix(a),x=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,k=S/2-E/2,_=f[g],C=x-p[d]-f[b],R=x/2-p[d]/2+k,N=bE(_,R,C),M=l;n.modifiersData[r]=(t={},t[M]=N,t.centerOffset=N-R,t)}}function cRe(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Eue(t.elements.popper,i)&&(t.elements.arrow=i))}const dRe={name:"arrow",enabled:!0,phase:"main",fn:uRe,effect:cRe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Uv(e){return e.split("-")[1]}var fRe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hRe(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Fv(n*i)/i||0,y:Fv(r*i)/i||0}}function aX(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,o=e.position,l=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=s.x,g=p===void 0?0:p,b=s.y,S=b===void 0?0:b,E=typeof d=="function"?d({x:g,y:S}):{x:g,y:S};g=E.x,S=E.y;var w=s.hasOwnProperty("x"),x=s.hasOwnProperty("y"),k=zl,_=Ul,C=window;if(u){var R=Ix(n),N="clientHeight",M="clientWidth";if(R===Uu(n)&&(R=Nm(n),yp(R).position!=="static"&&o==="absolute"&&(N="scrollHeight",M="scrollWidth")),R=R,i===Ul||(i===zl||i===Fc)&&a===yw){_=$c;var U=f&&R===C&&C.visualViewport?C.visualViewport.height:R[N];S-=U-r.height,S*=l?1:-1}if(i===zl||(i===Ul||i===$c)&&a===yw){k=Fc;var F=f&&R===C&&C.visualViewport?C.visualViewport.width:R[M];g-=F-r.width,g*=l?1:-1}}var G=Object.assign({position:o},u&&fRe),V=d===!0?hRe({x:g,y:S},Uu(n)):{x:g,y:S};if(g=V.x,S=V.y,l){var ie;return Object.assign({},G,(ie={},ie[_]=x?"0":"",ie[k]=w?"0":"",ie.transform=(C.devicePixelRatio||1)<=1?"translate("+g+"px, "+S+"px)":"translate3d("+g+"px, "+S+"px, 0)",ie))}return Object.assign({},G,(t={},t[_]=x?S+"px":"",t[k]=w?g+"px":"",t.transform="",t))}function pRe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,o=n.roundOffsets,l=o===void 0?!0:o,u={placement:Hf(t.placement),variation:Uv(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,aX(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,aX(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const mRe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:pRe,data:{}};var RA={passive:!0};function gRe(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,s=r.resize,o=s===void 0?!0:s,l=Uu(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(d){d.addEventListener("scroll",n.update,RA)}),o&&l.addEventListener("resize",n.update,RA),function(){a&&u.forEach(function(d){d.removeEventListener("scroll",n.update,RA)}),o&&l.removeEventListener("resize",n.update,RA)}}const bRe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:gRe,data:{}};var yRe={left:"right",right:"left",bottom:"top",top:"bottom"};function p4(e){return e.replace(/left|right|bottom|top/g,function(t){return yRe[t]})}var vRe={start:"end",end:"start"};function sX(e){return e.replace(/start|end/g,function(t){return vRe[t]})}function WB(e){var t=Uu(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function QB(e){return Bv(Nm(e)).left+WB(e).scrollLeft}function ORe(e,t){var n=Uu(e),r=Nm(e),i=n.visualViewport,a=r.clientWidth,s=r.clientHeight,o=0,l=0;if(i){a=i.width,s=i.height;var u=Sue();(u||!u&&t==="fixed")&&(o=i.offsetLeft,l=i.offsetTop)}return{width:a,height:s,x:o+QB(e),y:l}}function SRe(e){var t,n=Nm(e),r=WB(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=c1(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=c1(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),o=-r.scrollLeft+QB(e),l=-r.scrollTop;return yp(i||n).direction==="rtl"&&(o+=c1(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:s,x:o,y:l}}function GB(e){var t=yp(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function kue(e){return["html","body","#document"].indexOf(qf(e))>=0?e.ownerDocument.body:_c(e)&&GB(e)?e:kue(pR(e))}function yE(e,t){var n;t===void 0&&(t=[]);var r=kue(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=Uu(r),s=i?[a].concat(a.visualViewport||[],GB(r)?r:[]):r,o=t.concat(s);return i?o:o.concat(yE(pR(s)))}function E8(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ERe(e,t){var n=Bv(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function oX(e,t,n){return t===vue?E8(ORe(e,n)):x1(t)?ERe(t,n):E8(SRe(Nm(e)))}function wRe(e){var t=yE(pR(e)),n=["absolute","fixed"].indexOf(yp(e).position)>=0,r=n&&_c(e)?Ix(e):e;return x1(r)?t.filter(function(i){return x1(i)&&Eue(i,r)&&qf(i)!=="body"}):[]}function xRe(e,t,n,r){var i=t==="clippingParents"?wRe(e):[].concat(t),a=[].concat(i,[n]),s=a[0],o=a.reduce(function(l,u){var d=oX(e,u,r);return l.top=c1(d.top,l.top),l.right=N3(d.right,l.right),l.bottom=N3(d.bottom,l.bottom),l.left=c1(d.left,l.left),l},oX(e,s,r));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Aue(e){var t=e.reference,n=e.element,r=e.placement,i=r?Hf(r):null,a=r?Uv(r):null,s=t.x+t.width/2-n.width/2,o=t.y+t.height/2-n.height/2,l;switch(i){case Ul:l={x:s,y:t.y-n.height};break;case $c:l={x:s,y:t.y+t.height};break;case Fc:l={x:t.x+t.width,y:o};break;case zl:l={x:t.x-n.width,y:o};break;default:l={x:t.x,y:t.y}}var u=i?jB(i):null;if(u!=null){var d=u==="y"?"height":"width";switch(a){case $v:l[u]=l[u]-(t[d]/2-n[d]/2);break;case yw:l[u]=l[u]+(t[d]/2-n[d]/2);break}}return l}function vw(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,s=a===void 0?e.strategy:a,o=n.boundary,l=o===void 0?W5e:o,u=n.rootBoundary,d=u===void 0?vue:u,f=n.elementContext,p=f===void 0?o2:f,g=n.altBoundary,b=g===void 0?!1:g,S=n.padding,E=S===void 0?0:S,w=xue(typeof E!="number"?E:Tue(E,Rx)),x=p===o2?Q5e:o2,k=e.rects.popper,_=e.elements[b?x:p],C=xRe(x1(_)?_:_.contextElement||Nm(e.elements.popper),l,d,s),R=Bv(e.elements.reference),N=Aue({reference:R,element:k,strategy:"absolute",placement:i}),M=E8(Object.assign({},k,N)),U=p===o2?M:R,F={top:C.top-U.top+w.top,bottom:U.bottom-C.bottom+w.bottom,left:C.left-U.left+w.left,right:U.right-C.right+w.right},G=e.modifiersData.offset;if(p===o2&&G){var V=G[i];Object.keys(F).forEach(function(ie){var ne=[Fc,$c].indexOf(ie)>=0?1:-1,q=[Ul,$c].indexOf(ie)>=0?"y":"x";F[ie]+=V[q]*ne})}return F}function TRe(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,s=n.padding,o=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?Oue:l,d=Uv(r),f=d?o?rX:rX.filter(function(b){return Uv(b)===d}):Rx,p=f.filter(function(b){return u.indexOf(b)>=0});p.length===0&&(p=f);var g=p.reduce(function(b,S){return b[S]=vw(e,{placement:S,boundary:i,rootBoundary:a,padding:s})[Hf(S)],b},{});return Object.keys(g).sort(function(b,S){return g[b]-g[S]})}function kRe(e){if(Hf(e)===UB)return[];var t=p4(e);return[sX(e),t,sX(t)]}function ARe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,s=n.altAxis,o=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,g=n.flipVariations,b=g===void 0?!0:g,S=n.allowedAutoPlacements,E=t.options.placement,w=Hf(E),x=w===E,k=l||(x||!b?[p4(E)]:kRe(E)),_=[E].concat(k).reduce(function(Re,Ue){return Re.concat(Hf(Ue)===UB?TRe(t,{placement:Ue,boundary:d,rootBoundary:f,padding:u,flipVariations:b,allowedAutoPlacements:S}):Ue)},[]),C=t.rects.reference,R=t.rects.popper,N=new Map,M=!0,U=_[0],F=0;F<_.length;F++){var G=_[F],V=Hf(G),ie=Uv(G)===$v,ne=[Ul,$c].indexOf(V)>=0,q=ne?"width":"height",re=vw(t,{placement:G,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),ee=ne?ie?Fc:zl:ie?$c:Ul;C[q]>R[q]&&(ee=p4(ee));var Z=p4(ee),se=[];if(a&&se.push(re[V]<=0),o&&se.push(re[ee]<=0,re[Z]<=0),se.every(function(Re){return Re})){U=G,M=!1;break}N.set(G,se)}if(M)for(var W=b?3:1,Pe=function(Ue){var oe=_.find(function(rt){var qe=N.get(rt);if(qe)return qe.slice(0,Ue).every(function(et){return et})});if(oe)return U=oe,"break"},Ee=W;Ee>0;Ee--){var X=Pe(Ee);if(X==="break")break}t.placement!==U&&(t.modifiersData[r]._skip=!0,t.placement=U,t.reset=!0)}}const _Re={name:"flip",enabled:!0,phase:"main",fn:ARe,requiresIfExists:["offset"],data:{_skip:!1}};function lX(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function uX(e){return[Ul,Fc,$c,zl].some(function(t){return e[t]>=0})}function CRe(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,s=vw(t,{elementContext:"reference"}),o=vw(t,{altBoundary:!0}),l=lX(s,r),u=lX(o,i,a),d=uX(l),f=uX(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const RRe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:CRe};function IRe(e,t,n){var r=Hf(e),i=[zl,Ul].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],o=a[1];return s=s||0,o=(o||0)*i,[zl,Fc].indexOf(r)>=0?{x:o,y:s}:{x:s,y:o}}function NRe(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,s=Oue.reduce(function(d,f){return d[f]=IRe(f,t.rects,a),d},{}),o=s[t.placement],l=o.x,u=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const DRe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:NRe};function PRe(e){var t=e.state,n=e.name;t.modifiersData[n]=Aue({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const MRe={name:"popperOffsets",enabled:!0,phase:"read",fn:PRe,data:{}};function LRe(e){return e==="x"?"y":"x"}function $Re(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,s=n.altAxis,o=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,g=p===void 0?!0:p,b=n.tetherOffset,S=b===void 0?0:b,E=vw(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:d}),w=Hf(t.placement),x=Uv(t.placement),k=!x,_=jB(w),C=LRe(_),R=t.modifiersData.popperOffsets,N=t.rects.reference,M=t.rects.popper,U=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,F=typeof U=="number"?{mainAxis:U,altAxis:U}:Object.assign({mainAxis:0,altAxis:0},U),G=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(R){if(a){var ie,ne=_==="y"?Ul:zl,q=_==="y"?$c:Fc,re=_==="y"?"height":"width",ee=R[_],Z=ee+E[ne],se=ee-E[q],W=g?-M[re]/2:0,Pe=x===$v?N[re]:M[re],Ee=x===$v?-M[re]:-N[re],X=t.elements.arrow,Re=g&&X?HB(X):{width:0,height:0},Ue=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:wue(),oe=Ue[ne],rt=Ue[q],qe=bE(0,N[re],Re[re]),et=k?N[re]/2-W-qe-oe-F.mainAxis:Pe-qe-oe-F.mainAxis,Tt=k?-N[re]/2+W+qe+rt+F.mainAxis:Ee+qe+rt+F.mainAxis,ct=t.elements.arrow&&Ix(t.elements.arrow),Pt=ct?_==="y"?ct.clientTop||0:ct.clientLeft||0:0,Mt=(ie=G==null?void 0:G[_])!=null?ie:0,ot=ee+et-Mt-Pt,wt=ee+Tt-Mt,vt=bE(g?N3(Z,ot):Z,ee,g?c1(se,wt):se);R[_]=vt,V[_]=vt-ee}if(o){var Wt,z=_==="x"?Ul:zl,K=_==="x"?$c:Fc,ue=R[C],_e=C==="y"?"height":"width",Ie=ue+E[z],Ce=ue-E[K],Qe=[Ul,zl].indexOf(w)!==-1,Ot=(Wt=G==null?void 0:G[C])!=null?Wt:0,Ne=Qe?Ie:ue-N[_e]-M[_e]-Ot+F.altAxis,ye=Qe?ue+N[_e]+M[_e]-Ot-F.altAxis:Ce,ve=g&&Qe?oRe(Ne,ue,ye):bE(g?Ne:Ie,ue,g?ye:Ce);R[C]=ve,V[C]=ve-ue}t.modifiersData[r]=V}}const FRe={name:"preventOverflow",enabled:!0,phase:"main",fn:$Re,requiresIfExists:["offset"]};function BRe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function URe(e){return e===Uu(e)||!_c(e)?WB(e):BRe(e)}function zRe(e){var t=e.getBoundingClientRect(),n=Fv(t.width)/e.offsetWidth||1,r=Fv(t.height)/e.offsetHeight||1;return n!==1||r!==1}function HRe(e,t,n){n===void 0&&(n=!1);var r=_c(t),i=_c(t)&&zRe(t),a=Nm(t),s=Bv(e,i,n),o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((qf(t)!=="body"||GB(a))&&(o=URe(t)),_c(t)?(l=Bv(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=QB(a))),{x:s.left+o.scrollLeft-l.x,y:s.top+o.scrollTop-l.y,width:s.width,height:s.height}}function jRe(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function i(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(o){if(!n.has(o)){var l=t.get(o);l&&i(l)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||i(a)}),r}function WRe(e){var t=jRe(e);return tRe.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function QRe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function GRe(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var cX={placement:"bottom",modifiers:[],strategy:"absolute"};function dX(){for(var e=arguments.length,t=new Array(e),n=0;n{a||o(ZRe(i)||document.body)},[i,a]),sl(()=>{if(s&&!a)return mw(n,s),()=>{mw(n,null)}},[n,s,a]),a){if(L.isValidElement(r)){const u={ref:l};return L.cloneElement(r,u)}return D.jsx(L.Fragment,{children:r})}return D.jsx(L.Fragment,{children:s&&hO.createPortal(r,s)})});function XRe(e){return hn("MuiPopper",e)}mn("MuiPopper",["root"]);const KRe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],JRe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function eIe(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function w8(e){return typeof e=="function"?e():e}function tIe(e){return e.nodeType!==void 0}const nIe=e=>{const{classes:t}=e;return gn({root:["root"]},XRe,t)},rIe={},iIe=L.forwardRef(function(t,n){var r;const{anchorEl:i,children:a,direction:s,disablePortal:o,modifiers:l,open:u,placement:d,popperOptions:f,popperRef:p,slotProps:g={},slots:b={},TransitionProps:S}=t,E=It(t,KRe),w=L.useRef(null),x=Er(w,n),k=L.useRef(null),_=Er(k,p),C=L.useRef(_);sl(()=>{C.current=_},[_]),L.useImperativeHandle(p,()=>k.current,[]);const R=eIe(d,s),[N,M]=L.useState(R),[U,F]=L.useState(w8(i));L.useEffect(()=>{k.current&&k.current.forceUpdate()}),L.useEffect(()=>{i&&F(w8(i))},[i]),sl(()=>{if(!U||!u)return;const q=Z=>{M(Z.placement)};let re=[{name:"preventOverflow",options:{altBoundary:o}},{name:"flip",options:{altBoundary:o}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Z})=>{q(Z)}}];l!=null&&(re=re.concat(l)),f&&f.modifiers!=null&&(re=re.concat(f.modifiers));const ee=YRe(U,w.current,Q({placement:R},f,{modifiers:re}));return C.current(ee),()=>{ee.destroy(),C.current(null)}},[U,o,l,u,f,R]);const G={placement:N};S!==null&&(G.TransitionProps=S);const V=nIe(t),ie=(r=b.root)!=null?r:"div",ne=Xo({elementType:ie,externalSlotProps:g.root,externalForwardedProps:E,additionalProps:{role:"tooltip",ref:x},ownerState:t,className:V.root});return D.jsx(ie,Q({},ne,{children:typeof a=="function"?a(G):a}))}),aIe=L.forwardRef(function(t,n){const{anchorEl:r,children:i,container:a,direction:s="ltr",disablePortal:o=!1,keepMounted:l=!1,modifiers:u,open:d,placement:f="bottom",popperOptions:p=rIe,popperRef:g,style:b,transition:S=!1,slotProps:E={},slots:w={}}=t,x=It(t,JRe),[k,_]=L.useState(!0),C=()=>{_(!1)},R=()=>{_(!0)};if(!l&&!d&&(!S||k))return null;let N;if(a)N=a;else if(r){const F=w8(r);N=F&&tIe(F)?ga(F).body:ga(null).body}const M=!d&&l&&(!S||k)?"none":void 0,U=S?{in:d,onEnter:C,onExited:R}:void 0;return D.jsx(_ue,{disablePortal:o,container:N,children:D.jsx(iIe,Q({anchorEl:r,direction:s,disablePortal:o,modifiers:u,ref:n,open:S?!k:d,placement:f,popperOptions:p,popperRef:g,slotProps:E,slots:w},x,{style:Q({position:"fixed",top:0,left:0,display:M},b),TransitionProps:U,children:i}))})}),sIe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],oIe=pt(aIe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),mR=L.forwardRef(function(t,n){var r;const i=bue(),a=bn({props:t,name:"MuiPopper"}),{anchorEl:s,component:o,components:l,componentsProps:u,container:d,disablePortal:f,keepMounted:p,modifiers:g,open:b,placement:S,popperOptions:E,popperRef:w,transition:x,slots:k,slotProps:_}=a,C=It(a,sIe),R=(r=k==null?void 0:k.root)!=null?r:l==null?void 0:l.Root,N=Q({anchorEl:s,container:d,disablePortal:f,keepMounted:p,modifiers:g,open:b,placement:S,popperOptions:E,popperRef:w,transition:x},C);return D.jsx(oIe,Q({as:o,direction:i==null?void 0:i.direction,slots:{root:R},slotProps:_??u},N,{ref:n}))});function lIe(e){return hn("MuiListSubheader",e)}mn("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const uIe=["className","color","component","disableGutters","disableSticky","inset"],cIe=e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:a}=e,s={root:["root",n!=="default"&&`color${ft(n)}`,!r&&"gutters",i&&"inset",!a&&"sticky"]};return gn(s,lIe,t)},dIe=pt("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ft(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>Q({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),Cue=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiListSubheader"}),{className:i,color:a="default",component:s="li",disableGutters:o=!1,disableSticky:l=!1,inset:u=!1}=r,d=It(r,uIe),f=Q({},r,{color:a,component:s,disableGutters:o,disableSticky:l,inset:u}),p=cIe(f);return D.jsx(dIe,Q({as:s,className:Rt(p.root,i),ref:n,ownerState:f},d))});Cue.muiSkipListHighlight=!0;const fIe=Ud(D.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function hIe(e){return hn("MuiChip",e)}const Gr=mn("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),pIe=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],mIe=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:a,onDelete:s,clickable:o,variant:l}=e,u={root:["root",l,n&&"disabled",`size${ft(r)}`,`color${ft(i)}`,o&&"clickable",o&&`clickableColor${ft(i)}`,s&&"deletable",s&&`deletableColor${ft(i)}`,`${l}${ft(i)}`],label:["label",`label${ft(r)}`],avatar:["avatar",`avatar${ft(r)}`,`avatarColor${ft(i)}`],icon:["icon",`icon${ft(r)}`,`iconColor${ft(a)}`],deleteIcon:["deleteIcon",`deleteIcon${ft(r)}`,`deleteIconColor${ft(i)}`,`deleteIcon${ft(l)}Color${ft(i)}`]};return gn(u,hIe,t)},gIe=pt("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:a,onDelete:s,size:o,variant:l}=n;return[{[`& .${Gr.avatar}`]:t.avatar},{[`& .${Gr.avatar}`]:t[`avatar${ft(o)}`]},{[`& .${Gr.avatar}`]:t[`avatarColor${ft(r)}`]},{[`& .${Gr.icon}`]:t.icon},{[`& .${Gr.icon}`]:t[`icon${ft(o)}`]},{[`& .${Gr.icon}`]:t[`iconColor${ft(i)}`]},{[`& .${Gr.deleteIcon}`]:t.deleteIcon},{[`& .${Gr.deleteIcon}`]:t[`deleteIcon${ft(o)}`]},{[`& .${Gr.deleteIcon}`]:t[`deleteIconColor${ft(r)}`]},{[`& .${Gr.deleteIcon}`]:t[`deleteIcon${ft(l)}Color${ft(r)}`]},t.root,t[`size${ft(o)}`],t[`color${ft(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${ft(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${ft(r)}`],t[l],t[`${l}${ft(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return Q({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Gr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Gr.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${Gr.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Gr.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Gr.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Gr.icon}`]:Q({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&Q({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${Gr.deleteIcon}`]:Q({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Yn(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Yn(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Yn(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Gr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Yn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Gr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>Q({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Yn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Gr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Yn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Gr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>Q({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Gr.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Gr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Gr.avatar}`]:{marginLeft:4},[`& .${Gr.avatarSmall}`]:{marginLeft:2},[`& .${Gr.icon}`]:{marginLeft:4},[`& .${Gr.iconSmall}`]:{marginLeft:2},[`& .${Gr.deleteIcon}`]:{marginRight:5},[`& .${Gr.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Yn(e.palette[t.color].main,.7)}`,[`&.${Gr.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Yn(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Gr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Yn(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Gr.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Yn(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),bIe=pt("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ft(r)}`]]}})(({ownerState:e})=>Q({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function fX(e){return e.key==="Backspace"||e.key==="Delete"}const Rue=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiChip"}),{avatar:i,className:a,clickable:s,color:o="default",component:l,deleteIcon:u,disabled:d=!1,icon:f,label:p,onClick:g,onDelete:b,onKeyDown:S,onKeyUp:E,size:w="medium",variant:x="filled",tabIndex:k,skipFocusWhenDisabled:_=!1}=r,C=It(r,pIe),R=L.useRef(null),N=Er(R,n),M=se=>{se.stopPropagation(),b&&b(se)},U=se=>{se.currentTarget===se.target&&fX(se)&&se.preventDefault(),S&&S(se)},F=se=>{se.currentTarget===se.target&&(b&&fX(se)?b(se):se.key==="Escape"&&R.current&&R.current.blur()),E&&E(se)},G=s!==!1&&g?!0:s,V=G||b?Vf:l||"div",ie=Q({},r,{component:V,disabled:d,size:w,color:o,iconColor:L.isValidElement(f)&&f.props.color||o,onDelete:!!b,clickable:G,variant:x}),ne=mIe(ie),q=V===Vf?Q({component:l||"div",focusVisibleClassName:ne.focusVisible},b&&{disableRipple:!0}):{};let re=null;b&&(re=u&&L.isValidElement(u)?L.cloneElement(u,{className:Rt(u.props.className,ne.deleteIcon),onClick:M}):D.jsx(fIe,{className:Rt(ne.deleteIcon),onClick:M}));let ee=null;i&&L.isValidElement(i)&&(ee=L.cloneElement(i,{className:Rt(ne.avatar,i.props.className)}));let Z=null;return f&&L.isValidElement(f)&&(Z=L.cloneElement(f,{className:Rt(ne.icon,f.props.className)})),D.jsxs(gIe,Q({as:V,className:Rt(ne.root,a),disabled:G&&d?!0:void 0,onClick:g,onKeyDown:U,onKeyUp:F,ref:N,tabIndex:_&&d?-1:k,ownerState:ie},q,C,{children:[ee||Z,D.jsx(bIe,{className:Rt(ne.label),ownerState:ie,children:p}),re]}))}),yIe=["onChange","maxRows","minRows","style","value"];function IA(e){return parseInt(e,10)||0}const vIe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function OIe(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const Iue=L.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:a=1,style:s,value:o}=t,l=It(t,yIe),{current:u}=L.useRef(o!=null),d=L.useRef(null),f=Er(n,d),p=L.useRef(null),g=L.useRef(null),b=L.useCallback(()=>{const w=d.current,k=Gf(w).getComputedStyle(w);if(k.width==="0px")return{outerHeightStyle:0,overflowing:!1};const _=g.current;_.style.width=k.width,_.value=w.value||t.placeholder||"x",_.value.slice(-1)===` +`&&(_.value+=" ");const C=k.boxSizing,R=IA(k.paddingBottom)+IA(k.paddingTop),N=IA(k.borderBottomWidth)+IA(k.borderTopWidth),M=_.scrollHeight;_.value="x";const U=_.scrollHeight;let F=M;a&&(F=Math.max(Number(a)*U,F)),i&&(F=Math.min(Number(i)*U,F)),F=Math.max(F,U);const G=F+(C==="border-box"?R+N:0),V=Math.abs(F-M)<=1;return{outerHeightStyle:G,overflowing:V}},[i,a,t.placeholder]),S=L.useCallback(()=>{const w=b();if(OIe(w))return;const x=w.outerHeightStyle,k=d.current;p.current!==x&&(p.current=x,k.style.height=`${x}px`),k.style.overflow=w.overflowing?"hidden":""},[b]);sl(()=>{const w=()=>{S()};let x;const k=uR(w),_=d.current,C=Gf(_);C.addEventListener("resize",k);let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(w),R.observe(_)),()=>{k.clear(),cancelAnimationFrame(x),C.removeEventListener("resize",k),R&&R.disconnect()}},[b,S]),sl(()=>{S()});const E=w=>{u||S(),r&&r(w)};return D.jsxs(L.Fragment,{children:[D.jsx("textarea",Q({value:o,onChange:E,ref:f,rows:a,style:s},l)),D.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:g,tabIndex:-1,style:Q({},vIe.shadow,s,{paddingTop:0,paddingBottom:0})})]})});function Dm({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const gR=L.createContext(void 0);function Kf(){return L.useContext(gR)}function Nue(e){return D.jsx(d4e,Q({},e,{defaultTheme:DB,themeId:Pv}))}function hX(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function D3(e,t=!1){return e&&(hX(e.value)&&e.value!==""||t&&hX(e.defaultValue)&&e.defaultValue!=="")}function SIe(e){return e.startAdornment}function EIe(e){return hn("MuiInputBase",e)}const Ou=mn("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),wIe=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],bR=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ft(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},yR=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},xIe=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:s,formControl:o,fullWidth:l,hiddenLabel:u,multiline:d,readOnly:f,size:p,startAdornment:g,type:b}=e,S={root:["root",`color${ft(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",s&&"focused",o&&"formControl",p&&p!=="medium"&&`size${ft(p)}`,d&&"multiline",g&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",d&&"inputMultiline",p==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",g&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return gn(S,EIe,t)},vR=pt("div",{name:"MuiInputBase",slot:"Root",overridesResolver:bR})(({theme:e,ownerState:t})=>Q({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ou.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Q({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),OR=pt("input",{name:"MuiInputBase",slot:"Input",overridesResolver:yR})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=Q({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return Q({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ou.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Ou.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),TIe=D.jsx(Nue,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),kIe=L.forwardRef(function(t,n){var r;const i=bn({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:s,autoFocus:o,className:l,components:u={},componentsProps:d={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:g,endAdornment:b,fullWidth:S=!1,id:E,inputComponent:w="input",inputProps:x={},inputRef:k,maxRows:_,minRows:C,multiline:R=!1,name:N,onBlur:M,onChange:U,onClick:F,onFocus:G,onKeyDown:V,onKeyUp:ie,placeholder:ne,readOnly:q,renderSuffix:re,rows:ee,slotProps:Z={},slots:se={},startAdornment:W,type:Pe="text",value:Ee}=i,X=It(i,wIe),Re=x.value!=null?x.value:Ee,{current:Ue}=L.useRef(Re!=null),oe=L.useRef(),rt=L.useCallback(ve=>{},[]),qe=Er(oe,k,x.ref,rt),[et,Tt]=L.useState(!1),ct=Kf(),Pt=Dm({props:i,muiFormControl:ct,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Pt.focused=ct?ct.focused:et,L.useEffect(()=>{!ct&&p&&et&&(Tt(!1),M&&M())},[ct,p,et,M]);const Mt=ct&&ct.onFilled,ot=ct&&ct.onEmpty,wt=L.useCallback(ve=>{D3(ve)?Mt&&Mt():ot&&ot()},[Mt,ot]);sl(()=>{Ue&&wt({value:Re})},[Re,wt,Ue]);const vt=ve=>{if(Pt.disabled){ve.stopPropagation();return}G&&G(ve),x.onFocus&&x.onFocus(ve),ct&&ct.onFocus?ct.onFocus(ve):Tt(!0)},Wt=ve=>{M&&M(ve),x.onBlur&&x.onBlur(ve),ct&&ct.onBlur?ct.onBlur(ve):Tt(!1)},z=(ve,...ke)=>{if(!Ue){const ze=ve.target||oe.current;if(ze==null)throw new Error(bp(1));wt({value:ze.value})}x.onChange&&x.onChange(ve,...ke),U&&U(ve,...ke)};L.useEffect(()=>{wt(oe.current)},[]);const K=ve=>{oe.current&&ve.currentTarget===ve.target&&oe.current.focus(),F&&F(ve)};let ue=w,_e=x;R&&ue==="input"&&(ee?_e=Q({type:void 0,minRows:ee,maxRows:ee},_e):_e=Q({type:void 0,maxRows:_,minRows:C},_e),ue=Iue);const Ie=ve=>{wt(ve.animationName==="mui-auto-fill-cancel"?oe.current:{value:"x"})};L.useEffect(()=>{ct&&ct.setAdornedStart(!!W)},[ct,W]);const Ce=Q({},i,{color:Pt.color||"primary",disabled:Pt.disabled,endAdornment:b,error:Pt.error,focused:Pt.focused,formControl:ct,fullWidth:S,hiddenLabel:Pt.hiddenLabel,multiline:R,size:Pt.size,startAdornment:W,type:Pe}),Qe=xIe(Ce),Ot=se.root||u.Root||vR,Ne=Z.root||d.root||{},ye=se.input||u.Input||OR;return _e=Q({},_e,(r=Z.input)!=null?r:d.input),D.jsxs(L.Fragment,{children:[!g&&TIe,D.jsxs(Ot,Q({},Ne,!zf(Ot)&&{ownerState:Q({},Ce,Ne.ownerState)},{ref:n,onClick:K},X,{className:Rt(Qe.root,Ne.className,l,q&&"MuiInputBase-readOnly"),children:[W,D.jsx(gR.Provider,{value:null,children:D.jsx(ye,Q({ownerState:Ce,"aria-invalid":Pt.error,"aria-describedby":a,autoComplete:s,autoFocus:o,defaultValue:f,disabled:Pt.disabled,id:E,onAnimationStart:Ie,name:N,placeholder:ne,readOnly:q,required:Pt.required,rows:ee,value:Re,onKeyDown:V,onKeyUp:ie,type:Pe},_e,!zf(ye)&&{as:ue,ownerState:Q({},Ce,_e.ownerState)},{ref:qe,className:Rt(Qe.input,_e.className,q&&"MuiInputBase-readOnly"),onBlur:Wt,onChange:z,onFocus:vt}))}),b,re?re(Q({},Pt,{startAdornment:W})):null]}))]})}),VB=kIe;function AIe(e){return hn("MuiInput",e)}const C0=Q({},Ou,mn("MuiInput",["root","underline","input"]));function _Ie(e){return hn("MuiOutlinedInput",e)}const mf=Q({},Ou,mn("MuiOutlinedInput",["root","notchedOutline","input"]));function CIe(e){return hn("MuiFilledInput",e)}const Su=Q({},Ou,mn("MuiFilledInput",["root","underline","input"])),Due=Ud(D.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function RIe(e){return hn("MuiAutocomplete",e)}const hr=mn("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var pX,mX;const IIe=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],NIe=["ref"],DIe=["key"],PIe=["key"],MIe=e=>{const{classes:t,disablePortal:n,expanded:r,focused:i,fullWidth:a,hasClearIcon:s,hasPopupIcon:o,inputFocused:l,popupOpen:u,size:d}=e,f={root:["root",r&&"expanded",i&&"focused",a&&"fullWidth",s&&"hasClearIcon",o&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${ft(d)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return gn(f,RIe,t)},LIe=pt("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:a,inputFocused:s,size:o}=n;return[{[`& .${hr.tag}`]:t.tag},{[`& .${hr.tag}`]:t[`tagSize${ft(o)}`]},{[`& .${hr.inputRoot}`]:t.inputRoot},{[`& .${hr.input}`]:t.input},{[`& .${hr.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,i&&t.hasClearIcon]}})({[`&.${hr.focused} .${hr.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${hr.clearIndicator}`]:{visibility:"visible"}},[`& .${hr.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${hr.inputRoot}`]:{[`.${hr.hasPopupIcon}&, .${hr.hasClearIcon}&`]:{paddingRight:30},[`.${hr.hasPopupIcon}.${hr.hasClearIcon}&`]:{paddingRight:56},[`& .${hr.input}`]:{width:0,minWidth:30}},[`& .${C0.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${C0.root}.${Ou.sizeSmall}`]:{[`& .${C0.input}`]:{padding:"2px 4px 3px 0"}},[`& .${mf.root}`]:{padding:9,[`.${hr.hasPopupIcon}&, .${hr.hasClearIcon}&`]:{paddingRight:39},[`.${hr.hasPopupIcon}.${hr.hasClearIcon}&`]:{paddingRight:65},[`& .${hr.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${hr.endAdornment}`]:{right:9}},[`& .${mf.root}.${Ou.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${hr.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Su.root}`]:{paddingTop:19,paddingLeft:8,[`.${hr.hasPopupIcon}&, .${hr.hasClearIcon}&`]:{paddingRight:39},[`.${hr.hasPopupIcon}.${hr.hasClearIcon}&`]:{paddingRight:65},[`& .${Su.input}`]:{padding:"7px 4px"},[`& .${hr.endAdornment}`]:{right:9}},[`& .${Su.root}.${Ou.sizeSmall}`]:{paddingBottom:1,[`& .${Su.input}`]:{padding:"2.5px 4px"}},[`& .${Ou.hiddenLabel}`]:{paddingTop:8},[`& .${Su.root}.${Ou.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${hr.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Su.root}.${Ou.hiddenLabel}.${Ou.sizeSmall}`]:{[`& .${hr.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${hr.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${hr.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${hr.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${hr.inputRoot}`]:{flexWrap:"wrap"}}}]}),$Ie=pt("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),FIe=pt(Ro,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),BIe=pt(Ro,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>Q({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),UIe=pt(mR,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${hr.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),zIe=pt(Ks,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>Q({},e.typography.body1,{overflow:"auto"})),HIe=pt("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),jIe=pt("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),WIe=pt("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${hr.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${hr.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${hr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Yn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${hr.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Yn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${hr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Yn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),QIe=pt(Cue,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),GIe=pt("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${hr.option}`]:{paddingLeft:24}}),VIe=L.forwardRef(function(t,n){var r,i,a,s;const o=bn({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:u=!1,autoSelect:d=!1,blurOnSelect:f=!1,ChipProps:p,className:g,clearIcon:b=pX||(pX=D.jsx(x5e,{fontSize:"small"})),clearOnBlur:S=!o.freeSolo,clearOnEscape:E=!1,clearText:w="Clear",closeText:x="Close",componentsProps:k={},defaultValue:_=o.multiple?[]:null,disableClearable:C=!1,disableCloseOnSelect:R=!1,disabled:N=!1,disabledItemsFocusable:M=!1,disableListWrap:U=!1,disablePortal:F=!1,filterSelectedOptions:G=!1,forcePopupIcon:V="auto",freeSolo:ie=!1,fullWidth:ne=!1,getLimitTagsText:q=Je=>`+${Je}`,getOptionLabel:re,groupBy:ee,handleHomeEndKeys:Z=!o.freeSolo,includeInputInList:se=!1,limitTags:W=-1,ListboxComponent:Pe="ul",ListboxProps:Ee,loading:X=!1,loadingText:Re="Loading…",multiple:Ue=!1,noOptionsText:oe="No options",openOnFocus:rt=!1,openText:qe="Open",PaperComponent:et=Ks,PopperComponent:Tt=mR,popupIcon:ct=mX||(mX=D.jsx(Due,{})),readOnly:Pt=!1,renderGroup:Mt,renderInput:ot,renderOption:wt,renderTags:vt,selectOnFocus:Wt=!o.freeSolo,size:z="medium",slotProps:K={}}=o,ue=It(o,IIe),{getRootProps:_e,getInputProps:Ie,getInputLabelProps:Ce,getPopupIndicatorProps:Qe,getClearProps:Ot,getTagProps:Ne,getListboxProps:ye,getOptionProps:ve,value:ke,dirty:ze,expanded:At,id:Zt,popupOpen:tt,focused:Qt,focusedTag:Vt,anchorEl:Gt,setAnchorEl:vn,inputValue:pr,groupedOptions:Cr}=F5e(Q({},o,{componentName:"Autocomplete"})),Tr=!C&&!N&&ze&&!Pt,jr=(!ie||V===!0)&&V!==!1,{onMouseDown:vi}=Ie(),{ref:si}=Ee??{},Ai=ye(),{ref:oi}=Ai,ja=It(Ai,NIe),_i=Er(oi,si),Ci=re||(Je=>{var kt;return(kt=Je.label)!=null?kt:Je}),Mr=Q({},o,{disablePortal:F,expanded:At,focused:Qt,fullWidth:ne,getOptionLabel:Ci,hasClearIcon:Tr,hasPopupIcon:jr,inputFocused:Vt===-1,popupOpen:tt,size:z}),Kn=MIe(Mr);let Wr;if(Ue&&ke.length>0){const Je=kt=>Q({className:Kn.tag,disabled:N},Ne(kt));vt?Wr=vt(ke,Je,Mr):Wr=ke.map((kt,_t)=>{const qt=Je({index:_t}),{key:it}=qt,Vn=It(qt,DIe);return D.jsx(Rue,Q({label:Ci(kt),size:z},Vn,p),it)})}if(W>-1&&Array.isArray(Wr)){const Je=Wr.length-W;!Qt&&Je>0&&(Wr=Wr.splice(0,W),Wr.push(D.jsx("span",{className:Kn.tag,children:q(Je)},Wr.length)))}const lt=Mt||(Je=>D.jsxs("li",{children:[D.jsx(QIe,{className:Kn.groupLabel,ownerState:Mr,component:"div",children:Je.group}),D.jsx(GIe,{className:Kn.groupUl,ownerState:Mr,children:Je.children})]},Je.key)),me=wt||((Je,kt)=>{const{key:_t}=Je,qt=It(Je,PIe);return D.jsx("li",Q({},qt,{children:Ci(kt)}),_t)}),Be=(Je,kt)=>{const _t=ve({option:Je,index:kt});return me(Q({},_t,{className:Kn.option}),Je,{selected:_t["aria-selected"],index:kt,inputValue:pr},Mr)},Ke=(r=K.clearIndicator)!=null?r:k.clearIndicator,yt=(i=K.paper)!=null?i:k.paper,Xt=(a=K.popper)!=null?a:k.popper,Le=(s=K.popupIndicator)!=null?s:k.popupIndicator,Te=Je=>D.jsx(UIe,Q({as:Tt,disablePortal:F,style:{width:Gt?Gt.clientWidth:null},ownerState:Mr,role:"presentation",anchorEl:Gt,open:tt},Xt,{className:Rt(Kn.popper,Xt==null?void 0:Xt.className),children:D.jsx(zIe,Q({ownerState:Mr,as:et},yt,{className:Rt(Kn.paper,yt==null?void 0:yt.className),children:Je}))}));let dt=null;return Cr.length>0?dt=Te(D.jsx(WIe,Q({as:Pe,className:Kn.listbox,ownerState:Mr},ja,Ee,{ref:_i,children:Cr.map((Je,kt)=>ee?lt({key:Je.key,group:Je.group,children:Je.options.map((_t,qt)=>Be(_t,Je.index+qt))}):Be(Je,kt))}))):X&&Cr.length===0?dt=Te(D.jsx(HIe,{className:Kn.loading,ownerState:Mr,children:Re})):Cr.length===0&&!ie&&!X&&(dt=Te(D.jsx(jIe,{className:Kn.noOptions,ownerState:Mr,role:"presentation",onMouseDown:Je=>{Je.preventDefault()},children:oe}))),D.jsxs(L.Fragment,{children:[D.jsx(LIe,Q({ref:n,className:Rt(Kn.root,g),ownerState:Mr},_e(ue),{children:ot({id:Zt,disabled:N,fullWidth:!0,size:z==="small"?"small":void 0,InputLabelProps:Ce(),InputProps:Q({ref:vn,className:Kn.inputRoot,startAdornment:Wr,onClick:Je=>{Je.target===Je.currentTarget&&vi(Je)}},(Tr||jr)&&{endAdornment:D.jsxs($Ie,{className:Kn.endAdornment,ownerState:Mr,children:[Tr?D.jsx(FIe,Q({},Ot(),{"aria-label":w,title:w,ownerState:Mr},Ke,{className:Rt(Kn.clearIndicator,Ke==null?void 0:Ke.className),children:b})):null,jr?D.jsx(BIe,Q({},Qe(),{disabled:N,"aria-label":tt?x:qe,title:tt?x:qe,ownerState:Mr},Le,{className:Rt(Kn.popupIndicator,Le==null?void 0:Le.className),children:ct})):null]})}),inputProps:Q({className:Kn.input,disabled:N,readOnly:Pt},Ie())})})),Gt?dt:null]})}),qIe=Ud(D.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function YIe(e){return hn("MuiAvatar",e)}const ZIe=mn("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),XIe=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],KIe=e=>{const{classes:t,variant:n,colorDefault:r}=e;return gn({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},YIe,t)},JIe=pt("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:Q({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:Q({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),e6e=pt("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),t6e=pt(qIe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function n6e({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,a]=L.useState(!1);return L.useEffect(()=>{if(!n&&!r)return;a(!1);let s=!0;const o=new Image;return o.onload=()=>{s&&a("loaded")},o.onerror=()=>{s&&a("error")},o.crossOrigin=e,o.referrerPolicy=t,o.src=n,r&&(o.srcset=r),()=>{s=!1}},[e,t,n,r]),i}const d1=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiAvatar"}),{alt:i,children:a,className:s,component:o="div",slots:l={},slotProps:u={},imgProps:d,sizes:f,src:p,srcSet:g,variant:b="circular"}=r,S=It(r,XIe);let E=null;const w=n6e(Q({},d,{src:p,srcSet:g})),x=p||g,k=x&&w!=="error",_=Q({},r,{colorDefault:!k,component:o,variant:b}),C=KIe(_),[R,N]=i5e("img",{className:C.img,elementType:e6e,externalForwardedProps:{slots:l,slotProps:{img:Q({},d,u.img)}},additionalProps:{alt:i,src:p,srcSet:g,sizes:f},ownerState:_});return k?E=D.jsx(R,Q({},N)):a||a===0?E=a:x&&i?E=i[0]:E=D.jsx(t6e,{ownerState:_,className:C.fallback}),D.jsx(JIe,Q({as:o,ownerState:_,className:Rt(C.root,s),ref:n},S,{children:E}))});function r6e(e){return hn("MuiAvatarGroup",e)}const i6e=mn("MuiAvatarGroup",["root","avatar"]),a6e=["children","className","component","componentsProps","max","renderSurplus","slotProps","spacing","total","variant"],gX={small:-16,medium:null},s6e=e=>{const{classes:t}=e;return gn({root:["root"],avatar:["avatar"]},r6e,t)},o6e=pt("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(e,t)=>Q({[`& .${i6e.avatar}`]:t.avatar},t.root)})(({theme:e,ownerState:t})=>{const n=t.spacing&&gX[t.spacing]!==void 0?gX[t.spacing]:-t.spacing;return{[`& .${ZIe.root}`]:{border:`2px solid ${(e.vars||e).palette.background.default}`,boxSizing:"content-box",marginLeft:n??-8,"&:last-child":{marginLeft:0}},display:"flex",flexDirection:"row-reverse"}}),l6e=L.forwardRef(function(t,n){var r;const i=bn({props:t,name:"MuiAvatarGroup"}),{children:a,className:s,component:o="div",componentsProps:l={},max:u=5,renderSurplus:d,slotProps:f={},spacing:p="medium",total:g,variant:b="circular"}=i,S=It(i,a6e);let E=u<2?2:u;const w=Q({},i,{max:u,spacing:p,component:o,variant:b}),x=s6e(w),k=L.Children.toArray(a).filter(U=>L.isValidElement(U)),_=g||k.length;_===E&&(E+=1),E=Math.min(_+1,E);const C=Math.min(k.length,E-1),R=Math.max(_-E,_-C,0),N=d?d(R):`+${R}`,M=(r=f.additionalAvatar)!=null?r:l.additionalAvatar;return D.jsxs(o6e,Q({as:o,ownerState:w,className:Rt(x.root,s),ref:n},S,{children:[R?D.jsx(d1,Q({variant:b},M,{className:Rt(x.avatar,M==null?void 0:M.className),children:N})):null,k.slice(0,C).reverse().map(U=>L.cloneElement(U,{className:Rt(U.props.className,x.avatar),variant:U.props.variant||b}))]}))}),u6e=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],c6e={entering:{opacity:1},entered:{opacity:1}},P3=L.forwardRef(function(t,n){const r=Xf(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:o,easing:l,in:u,onEnter:d,onEntered:f,onEntering:p,onExit:g,onExited:b,onExiting:S,style:E,timeout:w=i,TransitionComponent:x=Wc}=t,k=It(t,u6e),_=L.useRef(null),C=Er(_,o.ref,n),R=ne=>q=>{if(ne){const re=_.current;q===void 0?ne(re):ne(re,q)}},N=R(p),M=R((ne,q)=>{LB(ne);const re=ym({style:E,timeout:w,easing:l},{mode:"enter"});ne.style.webkitTransition=r.transitions.create("opacity",re),ne.style.transition=r.transitions.create("opacity",re),d&&d(ne,q)}),U=R(f),F=R(S),G=R(ne=>{const q=ym({style:E,timeout:w,easing:l},{mode:"exit"});ne.style.webkitTransition=r.transitions.create("opacity",q),ne.style.transition=r.transitions.create("opacity",q),g&&g(ne)}),V=R(b),ie=ne=>{a&&a(_.current,ne)};return D.jsx(x,Q({appear:s,in:u,nodeRef:_,onEnter:M,onEntered:U,onEntering:N,onExit:G,onExited:V,onExiting:F,addEndListener:ie,timeout:w},k,{children:(ne,q)=>L.cloneElement(o,Q({style:Q({opacity:0,visibility:ne==="exited"&&!u?"hidden":void 0},c6e[ne],E,o.props.style),ref:C},q))}))});function d6e(e){return hn("MuiBackdrop",e)}mn("MuiBackdrop",["root","invisible"]);const f6e=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],h6e=e=>{const{classes:t,invisible:n}=e;return gn({root:["root",n&&"invisible"]},d6e,t)},p6e=pt("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>Q({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),SO=L.forwardRef(function(t,n){var r,i,a;const s=bn({props:t,name:"MuiBackdrop"}),{children:o,className:l,component:u="div",components:d={},componentsProps:f={},invisible:p=!1,open:g,slotProps:b={},slots:S={},TransitionComponent:E=P3,transitionDuration:w}=s,x=It(s,f6e),k=Q({},s,{component:u,invisible:p}),_=h6e(k),C=(r=b.root)!=null?r:f.root;return D.jsx(E,Q({in:g,timeout:w},x,{children:D.jsx(p6e,Q({"aria-hidden":!0},C,{as:(i=(a=S.root)!=null?a:d.Root)!=null?i:u,className:Rt(_.root,l,C==null?void 0:C.className),ownerState:Q({},k,C==null?void 0:C.ownerState),classes:_,ref:n,children:o}))}))}),m6e=mn("MuiBox",["root"]),g6e=NB(),ia=b4e({themeId:Pv,defaultTheme:g6e,defaultClassName:m6e.root,generateClassName:xB.generate});function b6e(e){return hn("MuiButton",e)}const NA=mn("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),y6e=L.createContext({}),v6e=L.createContext(void 0),O6e=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],S6e=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,classes:s}=e,o={root:["root",a,`${a}${ft(t)}`,`size${ft(i)}`,`${a}Size${ft(i)}`,`color${ft(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ft(i)}`],endIcon:["icon","endIcon",`iconSize${ft(i)}`]},l=gn(o,b6e,s);return Q({},s,l)},Pue=e=>Q({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),E6e=pt(Vf,{shouldForwardProp:e=>Js(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ft(n.color)}`],t[`size${ft(n.size)}`],t[`${n.variant}Size${ft(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return Q({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Q({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Yn(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Yn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Yn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Q({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${NA.focusVisible}`]:Q({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${NA.disabled}`]:Q({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Yn(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${NA.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${NA.disabled}`]:{boxShadow:"none"}}),w6e=pt("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ft(n.size)}`]]}})(({ownerState:e})=>Q({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Pue(e))),x6e=pt("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ft(n.size)}`]]}})(({ownerState:e})=>Q({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Pue(e))),xo=L.forwardRef(function(t,n){const r=L.useContext(y6e),i=L.useContext(v6e),a=Lv(r,t),s=bn({props:a,name:"MuiButton"}),{children:o,color:l="primary",component:u="button",className:d,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:g=!1,endIcon:b,focusVisibleClassName:S,fullWidth:E=!1,size:w="medium",startIcon:x,type:k,variant:_="text"}=s,C=It(s,O6e),R=Q({},s,{color:l,component:u,disabled:f,disableElevation:p,disableFocusRipple:g,fullWidth:E,size:w,type:k,variant:_}),N=S6e(R),M=x&&D.jsx(w6e,{className:N.startIcon,ownerState:R,children:x}),U=b&&D.jsx(x6e,{className:N.endIcon,ownerState:R,children:b}),F=i||"";return D.jsxs(E6e,Q({ownerState:R,className:Rt(r.className,N.root,d,F),component:u,disabled:f,focusRipple:!g,focusVisibleClassName:Rt(N.focusVisible,S),ref:n,type:k},C,{classes:N,children:[M,o,U]}))});function T6e(e){return hn("MuiCard",e)}mn("MuiCard",["root"]);const k6e=["className","raised"],A6e=e=>{const{classes:t}=e;return gn({root:["root"]},T6e,t)},_6e=pt(Ks,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Mue=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiCard"}),{className:i,raised:a=!1}=r,s=It(r,k6e),o=Q({},r,{raised:a}),l=A6e(o);return D.jsx(_6e,Q({className:Rt(l.root,i),elevation:a?8:void 0,ref:n,ownerState:o},s))});function C6e(e){return hn("MuiCardActionArea",e)}const iD=mn("MuiCardActionArea",["root","focusVisible","focusHighlight"]),R6e=["children","className","focusVisibleClassName"],I6e=e=>{const{classes:t}=e;return gn({root:["root"],focusHighlight:["focusHighlight"]},C6e,t)},N6e=pt(Vf,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${iD.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${iD.focusVisible} .${iD.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}})),D6e=pt("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:(e,t)=>t.focusHighlight})(({theme:e})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})})),P6e=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiCardActionArea"}),{children:i,className:a,focusVisibleClassName:s}=r,o=It(r,R6e),l=r,u=I6e(l);return D.jsxs(N6e,Q({className:Rt(u.root,a),focusVisibleClassName:Rt(s,u.focusVisible),ref:n,ownerState:l},o,{children:[i,D.jsx(D6e,{className:u.focusHighlight,ownerState:l})]}))});function M6e(e){return hn("MuiCardContent",e)}mn("MuiCardContent",["root"]);const L6e=["className","component"],$6e=e=>{const{classes:t}=e;return gn({root:["root"]},M6e,t)},F6e=pt("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),B6e=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiCardContent"}),{className:i,component:a="div"}=r,s=It(r,L6e),o=Q({},r,{component:a}),l=$6e(o);return D.jsx(F6e,Q({as:a,className:Rt(l.root,i),ownerState:o,ref:n},s))});function U6e(e){return hn("PrivateSwitchBase",e)}mn("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const z6e=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],H6e=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,a={root:["root",n&&"checked",r&&"disabled",i&&`edge${ft(i)}`],input:["input"]};return gn(a,U6e,t)},j6e=pt(Vf)(({ownerState:e})=>Q({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),W6e=pt("input",{shouldForwardProp:Js})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),qB=L.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:a,className:s,defaultChecked:o,disabled:l,disableFocusRipple:u=!1,edge:d=!1,icon:f,id:p,inputProps:g,inputRef:b,name:S,onBlur:E,onChange:w,onFocus:x,readOnly:k,required:_=!1,tabIndex:C,type:R,value:N}=t,M=It(t,z6e),[U,F]=Uf({controlled:i,default:!!o,name:"SwitchBase",state:"checked"}),G=Kf(),V=se=>{x&&x(se),G&&G.onFocus&&G.onFocus(se)},ie=se=>{E&&E(se),G&&G.onBlur&&G.onBlur(se)},ne=se=>{if(se.nativeEvent.defaultPrevented)return;const W=se.target.checked;F(W),w&&w(se,W)};let q=l;G&&typeof q>"u"&&(q=G.disabled);const re=R==="checkbox"||R==="radio",ee=Q({},t,{checked:U,disabled:q,disableFocusRipple:u,edge:d}),Z=H6e(ee);return D.jsxs(j6e,Q({component:"span",className:Rt(Z.root,s),centerRipple:!0,focusRipple:!u,disabled:q,tabIndex:null,role:void 0,onFocus:V,onBlur:ie,ownerState:ee,ref:n},M,{children:[D.jsx(W6e,Q({autoFocus:r,checked:i,defaultChecked:o,className:Z.input,disabled:q,id:re?p:void 0,name:S,onChange:ne,readOnly:k,ref:b,required:_,ownerState:ee,tabIndex:C,type:R},R==="checkbox"&&N===void 0?{}:{value:N},g)),U?a:f]}))}),Q6e=Ud(D.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),G6e=Ud(D.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),V6e=Ud(D.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function q6e(e){return hn("MuiCheckbox",e)}const aD=mn("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Y6e=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Z6e=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,a={root:["root",n&&"indeterminate",`color${ft(r)}`,`size${ft(i)}`]},s=gn(a,q6e,t);return Q({},t,s)},X6e=pt(qB,{shouldForwardProp:e=>Js(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${ft(n.size)}`],n.color!=="default"&&t[`color${ft(n.color)}`]]}})(({theme:e,ownerState:t})=>Q({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Yn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${aD.checked}, &.${aD.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${aD.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),K6e=D.jsx(G6e,{}),J6e=D.jsx(Q6e,{}),eNe=D.jsx(V6e,{}),SR=L.forwardRef(function(t,n){var r,i;const a=bn({props:t,name:"MuiCheckbox"}),{checkedIcon:s=K6e,color:o="primary",icon:l=J6e,indeterminate:u=!1,indeterminateIcon:d=eNe,inputProps:f,size:p="medium",className:g}=a,b=It(a,Y6e),S=u?d:l,E=u?d:s,w=Q({},a,{color:o,indeterminate:u,size:p}),x=Z6e(w);return D.jsx(X6e,Q({type:"checkbox",inputProps:Q({"data-indeterminate":u},f),icon:L.cloneElement(S,{fontSize:(r=S.props.fontSize)!=null?r:p}),checkedIcon:L.cloneElement(E,{fontSize:(i=E.props.fontSize)!=null?i:p}),ownerState:w,ref:n,className:Rt(x.root,g)},b,{classes:x}))});function tNe(e){return hn("MuiCircularProgress",e)}mn("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const nNe=["className","color","disableShrink","size","style","thickness","value","variant"];let ER=e=>e,bX,yX,vX,OX;const d0=44,rNe=mO(bX||(bX=ER` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`)),iNe=mO(yX||(yX=ER` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -125px; + } +`)),aNe=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,a={root:["root",n,`color${ft(r)}`],svg:["svg"],circle:["circle",`circle${ft(n)}`,i&&"circleDisableShrink"]};return gn(a,tNe,t)},sNe=pt("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ft(n.color)}`]]}})(({ownerState:e,theme:t})=>Q({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&W5(vX||(vX=ER` + animation: ${0} 1.4s linear infinite; + `),rNe)),oNe=pt("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),lNe=pt("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ft(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>Q({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&W5(OX||(OX=ER` + animation: ${0} 1.4s ease-in-out infinite; + `),iNe)),Md=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiCircularProgress"}),{className:i,color:a="primary",disableShrink:s=!1,size:o=40,style:l,thickness:u=3.6,value:d=0,variant:f="indeterminate"}=r,p=It(r,nNe),g=Q({},r,{color:a,disableShrink:s,size:o,thickness:u,value:d,variant:f}),b=aNe(g),S={},E={},w={};if(f==="determinate"){const x=2*Math.PI*((d0-u)/2);S.strokeDasharray=x.toFixed(3),w["aria-valuenow"]=Math.round(d),S.strokeDashoffset=`${((100-d)/100*x).toFixed(3)}px`,E.transform="rotate(-90deg)"}return D.jsx(sNe,Q({className:Rt(b.root,i),style:Q({width:o,height:o},E,l),ownerState:g,ref:n,role:"progressbar"},w,p,{children:D.jsx(oNe,{className:b.svg,ownerState:g,viewBox:`${d0/2} ${d0/2} ${d0} ${d0}`,children:D.jsx(lNe,{className:b.circle,style:S,ownerState:g,cx:d0,cy:d0,r:(d0-u)/2,fill:"none",strokeWidth:u})})}))});function SX(e){return e.substring(2).toLowerCase()}function uNe(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const d=Er(t.ref,o),f=qs(b=>{const S=u.current;u.current=!1;const E=ga(o.current);if(!l.current||!o.current||"clientX"in b&&uNe(b,E))return;if(s.current){s.current=!1;return}let w;b.composedPath?w=b.composedPath().indexOf(o.current)>-1:w=!E.documentElement.contains(b.target)||o.current.contains(b.target),!w&&(n||!S)&&i(b)}),p=b=>S=>{u.current=!0;const E=t.props[b];E&&E(S)},g={ref:d};return a!==!1&&(g[a]=p(a)),L.useEffect(()=>{if(a!==!1){const b=SX(a),S=ga(o.current),E=()=>{s.current=!0};return S.addEventListener(b,f),S.addEventListener("touchmove",E),()=>{S.removeEventListener(b,f),S.removeEventListener("touchmove",E)}}},[f,a]),r!==!1&&(g[r]=p(r)),L.useEffect(()=>{if(r!==!1){const b=SX(r),S=ga(o.current);return S.addEventListener(b,f),()=>{S.removeEventListener(b,f)}}},[f,r]),D.jsx(L.Fragment,{children:L.cloneElement(t,g)})}const YB=S3e({createStyledComponent:pt("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ft(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>bn({props:e,name:"MuiContainer"})}),dNe=(e,t)=>Q({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),fNe=e=>Q({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),hNe=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,o])=>{var l;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(l=o.palette)==null?void 0:l.mode}});let i=Q({html:dNe(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:Q({margin:0},fNe(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const a=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return a&&(i=[i,a]),i};function pNe(e){const t=bn({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return D.jsxs(L.Fragment,{children:[D.jsx(Nue,{styles:i=>hNe(i,r)}),n]})}function mNe(e){const t=ga(e);return t.body===e?Gf(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function vE(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function EX(e){return parseInt(Gf(e).getComputedStyle(e).paddingRight,10)||0}function gNe(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function wX(e,t,n,r,i){const a=[t,n,...r];[].forEach.call(e.children,s=>{const o=a.indexOf(s)===-1,l=!gNe(s);o&&l&&vE(s,i)})}function sD(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function bNe(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(mNe(r)){const s=Kle(ga(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${EX(r)+s}px`;const o=ga(r).querySelectorAll(".mui-fixed");[].forEach.call(o,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${EX(l)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=ga(r).body;else{const s=r.parentElement,o=Gf(r);a=(s==null?void 0:s.nodeName)==="HTML"&&o.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:s,property:o})=>{a?s.style.setProperty(o,a):s.style.removeProperty(o)})}}function yNe(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class vNe{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&vE(t.modalRef,!1);const i=yNe(n);wX(n,t.mount,t.modalRef,i,!0);const a=sD(this.containers,s=>s.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=sD(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=bNe(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=sD(this.containers,s=>s.modals.indexOf(t)!==-1),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&vE(t.modalRef,n),wX(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&vE(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const ONe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function SNe(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function ENe(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function wNe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||ENe(e))}function xNe(e){const t=[],n=[];return Array.from(e.querySelectorAll(ONe)).forEach((r,i)=>{const a=SNe(r);a===-1||!wNe(r)||(a===0?t.push(r):n.push({documentOrder:i,tabIndex:a,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function TNe(){return!0}function kNe(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=xNe,isEnabled:s=TNe,open:o}=e,l=L.useRef(!1),u=L.useRef(null),d=L.useRef(null),f=L.useRef(null),p=L.useRef(null),g=L.useRef(!1),b=L.useRef(null),S=Er(t.ref,b),E=L.useRef(null);L.useEffect(()=>{!o||!b.current||(g.current=!n)},[n,o]),L.useEffect(()=>{if(!o||!b.current)return;const k=ga(b.current);return b.current.contains(k.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),g.current&&b.current.focus()),()=>{i||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[o]),L.useEffect(()=>{if(!o||!b.current)return;const k=ga(b.current),_=N=>{E.current=N,!(r||!s()||N.key!=="Tab")&&k.activeElement===b.current&&N.shiftKey&&(l.current=!0,d.current&&d.current.focus())},C=()=>{const N=b.current;if(N===null)return;if(!k.hasFocus()||!s()||l.current){l.current=!1;return}if(N.contains(k.activeElement)||r&&k.activeElement!==u.current&&k.activeElement!==d.current)return;if(k.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!g.current)return;let M=[];if((k.activeElement===u.current||k.activeElement===d.current)&&(M=a(b.current)),M.length>0){var U,F;const G=!!((U=E.current)!=null&&U.shiftKey&&((F=E.current)==null?void 0:F.key)==="Tab"),V=M[0],ie=M[M.length-1];typeof V!="string"&&typeof ie!="string"&&(G?ie.focus():V.focus())}else N.focus()};k.addEventListener("focusin",C),k.addEventListener("keydown",_,!0);const R=setInterval(()=>{k.activeElement&&k.activeElement.tagName==="BODY"&&C()},50);return()=>{clearInterval(R),k.removeEventListener("focusin",C),k.removeEventListener("keydown",_,!0)}},[n,r,i,s,o,a]);const w=k=>{f.current===null&&(f.current=k.relatedTarget),g.current=!0,p.current=k.target;const _=t.props.onFocus;_&&_(k)},x=k=>{f.current===null&&(f.current=k.relatedTarget),g.current=!0};return D.jsxs(L.Fragment,{children:[D.jsx("div",{tabIndex:o?0:-1,onFocus:x,ref:u,"data-testid":"sentinelStart"}),L.cloneElement(t,{ref:S,onFocus:w}),D.jsx("div",{tabIndex:o?0:-1,onFocus:x,ref:d,"data-testid":"sentinelEnd"})]})}function ANe(e){return typeof e=="function"?e():e}function _Ne(e){return e?e.props.hasOwnProperty("in"):!1}const CNe=new vNe;function RNe(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=CNe,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:o,children:l,onClose:u,open:d,rootRef:f}=e,p=L.useRef({}),g=L.useRef(null),b=L.useRef(null),S=Er(b,f),[E,w]=L.useState(!d),x=_Ne(l);let k=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(k=!1);const _=()=>ga(g.current),C=()=>(p.current.modalRef=b.current,p.current.mount=g.current,p.current),R=()=>{i.mount(C(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},N=qs(()=>{const re=ANe(t)||_().body;i.add(C(),re),b.current&&R()}),M=L.useCallback(()=>i.isTopModal(C()),[i]),U=qs(re=>{g.current=re,re&&(d&&M()?R():b.current&&vE(b.current,k))}),F=L.useCallback(()=>{i.remove(C(),k)},[k,i]);L.useEffect(()=>()=>{F()},[F]),L.useEffect(()=>{d?N():(!x||!a)&&F()},[d,F,x,a,N]);const G=re=>ee=>{var Z;(Z=re.onKeyDown)==null||Z.call(re,ee),!(ee.key!=="Escape"||ee.which===229||!M())&&(n||(ee.stopPropagation(),u&&u(ee,"escapeKeyDown")))},V=re=>ee=>{var Z;(Z=re.onClick)==null||Z.call(re,ee),ee.target===ee.currentTarget&&u&&u(ee,"backdropClick")};return{getRootProps:(re={})=>{const ee=gE(e);delete ee.onTransitionEnter,delete ee.onTransitionExited;const Z=Q({},ee,re);return Q({role:"presentation"},Z,{onKeyDown:G(Z),ref:S})},getBackdropProps:(re={})=>{const ee=re;return Q({"aria-hidden":!0},ee,{onClick:V(ee),open:d})},getTransitionProps:()=>{const re=()=>{w(!1),s&&s()},ee=()=>{w(!0),o&&o(),a&&F()};return{onEnter:C3(re,l==null?void 0:l.props.onEnter),onExited:C3(ee,l==null?void 0:l.props.onExited)}},rootRef:S,portalRef:U,isTopModal:M,exited:E,hasTransition:x}}function INe(e){return hn("MuiModal",e)}mn("MuiModal",["root","hidden","backdrop"]);const NNe=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],DNe=e=>{const{open:t,exited:n,classes:r}=e;return gn({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},INe,r)},PNe=pt("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>Q({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),MNe=pt(SO,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),EO=L.forwardRef(function(t,n){var r,i,a,s,o,l;const u=bn({name:"MuiModal",props:t}),{BackdropComponent:d=MNe,BackdropProps:f,className:p,closeAfterTransition:g=!1,children:b,container:S,component:E,components:w={},componentsProps:x={},disableAutoFocus:k=!1,disableEnforceFocus:_=!1,disableEscapeKeyDown:C=!1,disablePortal:R=!1,disableRestoreFocus:N=!1,disableScrollLock:M=!1,hideBackdrop:U=!1,keepMounted:F=!1,onBackdropClick:G,open:V,slotProps:ie,slots:ne}=u,q=It(u,NNe),re=Q({},u,{closeAfterTransition:g,disableAutoFocus:k,disableEnforceFocus:_,disableEscapeKeyDown:C,disablePortal:R,disableRestoreFocus:N,disableScrollLock:M,hideBackdrop:U,keepMounted:F}),{getRootProps:ee,getBackdropProps:Z,getTransitionProps:se,portalRef:W,isTopModal:Pe,exited:Ee,hasTransition:X}=RNe(Q({},re,{rootRef:n})),Re=Q({},re,{exited:Ee}),Ue=DNe(Re),oe={};if(b.props.tabIndex===void 0&&(oe.tabIndex="-1"),X){const{onEnter:Mt,onExited:ot}=se();oe.onEnter=Mt,oe.onExited=ot}const rt=(r=(i=ne==null?void 0:ne.root)!=null?i:w.Root)!=null?r:PNe,qe=(a=(s=ne==null?void 0:ne.backdrop)!=null?s:w.Backdrop)!=null?a:d,et=(o=ie==null?void 0:ie.root)!=null?o:x.root,Tt=(l=ie==null?void 0:ie.backdrop)!=null?l:x.backdrop,ct=Xo({elementType:rt,externalSlotProps:et,externalForwardedProps:q,getSlotProps:ee,additionalProps:{ref:n,as:E},ownerState:Re,className:Rt(p,et==null?void 0:et.className,Ue==null?void 0:Ue.root,!Re.open&&Re.exited&&(Ue==null?void 0:Ue.hidden))}),Pt=Xo({elementType:qe,externalSlotProps:Tt,additionalProps:f,getSlotProps:Mt=>Z(Q({},Mt,{onClick:ot=>{G&&G(ot),Mt!=null&&Mt.onClick&&Mt.onClick(ot)}})),className:Rt(Tt==null?void 0:Tt.className,f==null?void 0:f.className,Ue==null?void 0:Ue.backdrop),ownerState:Re});return!F&&!V&&(!X||Ee)?null:D.jsx(_ue,{ref:W,container:S,disablePortal:R,children:D.jsxs(rt,Q({},ct,{children:[!U&&d?D.jsx(qe,Q({},Pt)):null,D.jsx(kNe,{disableEnforceFocus:_,disableAutoFocus:k,disableRestoreFocus:N,isEnabled:Pe,open:V,children:L.cloneElement(b,oe)})]}))})});function LNe(e){return hn("MuiDivider",e)}const xX=mn("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),$Ne=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],FNe=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:a,orientation:s,textAlign:o,variant:l}=e;return gn({root:["root",t&&"absolute",l,a&&"light",s==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",o==="right"&&s!=="vertical"&&"textAlignRight",o==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},LNe,r)},BNe=pt("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>Q({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Yn(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>Q({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>Q({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>Q({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>Q({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),UNe=pt("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>Q({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),zv=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiDivider"}),{absolute:i=!1,children:a,className:s,component:o=a?"div":"hr",flexItem:l=!1,light:u=!1,orientation:d="horizontal",role:f=o!=="hr"?"separator":void 0,textAlign:p="center",variant:g="fullWidth"}=r,b=It(r,$Ne),S=Q({},r,{absolute:i,component:o,flexItem:l,light:u,orientation:d,role:f,textAlign:p,variant:g}),E=FNe(S);return D.jsx(BNe,Q({as:o,className:Rt(E.root,s),role:f,ref:n,ownerState:S},b,{children:a?D.jsx(UNe,{className:E.wrapper,ownerState:S,children:a}):null}))});zv.muiSkipListHighlight=!0;const zNe=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function HNe(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),a=Gf(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const u=a.getComputedStyle(t);s=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let o=0,l=0;if(s&&s!=="none"&&typeof s=="string"){const u=s.split("(")[1].split(")")[0].split(",");o=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?i?`translateX(${i.right+o-r.left}px)`:`translateX(${a.innerWidth+o-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-o}px)`:`translateX(-${r.left+r.width-o}px)`:e==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${a.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function jNe(e){return typeof e=="function"?e():e}function DA(e,t,n){const r=jNe(n),i=HNe(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const WNe=L.forwardRef(function(t,n){const r=Xf(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:o=!0,children:l,container:u,direction:d="down",easing:f=i,in:p,onEnter:g,onEntered:b,onEntering:S,onExit:E,onExited:w,onExiting:x,style:k,timeout:_=a,TransitionComponent:C=Wc}=t,R=It(t,zNe),N=L.useRef(null),M=Er(l.ref,N,n),U=Z=>se=>{Z&&(se===void 0?Z(N.current):Z(N.current,se))},F=U((Z,se)=>{DA(d,Z,u),LB(Z),g&&g(Z,se)}),G=U((Z,se)=>{const W=ym({timeout:_,style:k,easing:f},{mode:"enter"});Z.style.webkitTransition=r.transitions.create("-webkit-transform",Q({},W)),Z.style.transition=r.transitions.create("transform",Q({},W)),Z.style.webkitTransform="none",Z.style.transform="none",S&&S(Z,se)}),V=U(b),ie=U(x),ne=U(Z=>{const se=ym({timeout:_,style:k,easing:f},{mode:"exit"});Z.style.webkitTransition=r.transitions.create("-webkit-transform",se),Z.style.transition=r.transitions.create("transform",se),DA(d,Z,u),E&&E(Z)}),q=U(Z=>{Z.style.webkitTransition="",Z.style.transition="",w&&w(Z)}),re=Z=>{s&&s(N.current,Z)},ee=L.useCallback(()=>{N.current&&DA(d,N.current,u)},[d,u]);return L.useEffect(()=>{if(p||d==="down"||d==="right")return;const Z=uR(()=>{N.current&&DA(d,N.current,u)}),se=Gf(N.current);return se.addEventListener("resize",Z),()=>{Z.clear(),se.removeEventListener("resize",Z)}},[d,p,u]),L.useEffect(()=>{p||ee()},[p,ee]),D.jsx(C,Q({nodeRef:N,onEnter:F,onEntered:V,onEntering:G,onExit:ne,onExited:q,onExiting:ie,addEndListener:re,appear:o,in:p,timeout:_},R,{children:(Z,se)=>L.cloneElement(l,Q({ref:M,style:Q({visibility:Z==="exited"&&!p?"hidden":void 0},k,l.props.style)},se))}))}),QNe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],GNe=e=>{const{classes:t,disableUnderline:n}=e,i=gn({root:["root",!n&&"underline"],input:["input"]},CIe,t);return Q({},t,i)},VNe=pt(vR,{shouldForwardProp:e=>Js(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...bR(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",i=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Q({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${Su.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${Su.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:o}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Su.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Su.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Su.disabled}, .${Su.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Su.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Q({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),qNe=pt(OR,{name:"MuiFilledInput",slot:"Input",overridesResolver:yR})(({theme:e,ownerState:t})=>Q({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),ZB=L.forwardRef(function(t,n){var r,i,a,s;const o=bn({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:d=!1,inputComponent:f="input",multiline:p=!1,slotProps:g,slots:b={},type:S="text"}=o,E=It(o,QNe),w=Q({},o,{fullWidth:d,inputComponent:f,multiline:p,type:S}),x=GNe(o),k={root:{ownerState:w},input:{ownerState:w}},_=g??u?rl(k,g??u):k,C=(r=(i=b.root)!=null?i:l.Root)!=null?r:VNe,R=(a=(s=b.input)!=null?s:l.Input)!=null?a:qNe;return D.jsx(VB,Q({slots:{root:C,input:R},componentsProps:_,fullWidth:d,inputComponent:f,multiline:p,ref:n,type:S},E,{classes:x}))});ZB.muiName="Input";function YNe(e){return hn("MuiFormControl",e)}mn("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const ZNe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],XNe=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${ft(n)}`,r&&"fullWidth"]};return gn(i,YNe,t)},KNe=pt("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>Q({},t.root,t[`margin${ft(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>Q({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Qc=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiFormControl"}),{children:i,className:a,color:s="primary",component:o="div",disabled:l=!1,error:u=!1,focused:d,fullWidth:f=!1,hiddenLabel:p=!1,margin:g="none",required:b=!1,size:S="medium",variant:E="outlined"}=r,w=It(r,ZNe),x=Q({},r,{color:s,component:o,disabled:l,error:u,fullWidth:f,hiddenLabel:p,margin:g,required:b,size:S,variant:E}),k=XNe(x),[_,C]=L.useState(()=>{let ie=!1;return i&&L.Children.forEach(i,ne=>{if(!mE(ne,["Input","Select"]))return;const q=mE(ne,["Select"])?ne.props.input:ne;q&&SIe(q.props)&&(ie=!0)}),ie}),[R,N]=L.useState(()=>{let ie=!1;return i&&L.Children.forEach(i,ne=>{mE(ne,["Input","Select"])&&(D3(ne.props,!0)||D3(ne.props.inputProps,!0))&&(ie=!0)}),ie}),[M,U]=L.useState(!1);l&&M&&U(!1);const F=d!==void 0&&!l?d:M;let G;const V=L.useMemo(()=>({adornedStart:_,setAdornedStart:C,color:s,disabled:l,error:u,filled:R,focused:F,fullWidth:f,hiddenLabel:p,size:S,onBlur:()=>{U(!1)},onEmpty:()=>{N(!1)},onFilled:()=>{N(!0)},onFocus:()=>{U(!0)},registerEffect:G,required:b,variant:E}),[_,s,l,u,R,F,f,p,G,b,S,E]);return D.jsx(gR.Provider,{value:V,children:D.jsx(KNe,Q({as:o,ownerState:x,className:Rt(k.root,a),ref:n},w,{children:i}))})}),Wn=C3e({createStyledComponent:pt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>bn({props:e,name:"MuiStack"})});function JNe(e){return hn("MuiFormControlLabel",e)}const W2=mn("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),eDe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],tDe=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:a}=e,s={root:["root",n&&"disabled",`labelPlacement${ft(r)}`,i&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return gn(s,JNe,t)},nDe=pt("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${W2.label}`]:t.label},t.root,t[`labelPlacement${ft(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>Q({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${W2.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${W2.label}`]:{[`&.${W2.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),rDe=pt("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${W2.error}`]:{color:(e.vars||e).palette.error.main}})),Ow=L.forwardRef(function(t,n){var r,i;const a=bn({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:o={},control:l,disabled:u,disableTypography:d,label:f,labelPlacement:p="end",required:g,slotProps:b={}}=a,S=It(a,eDe),E=Kf(),w=(r=u??l.props.disabled)!=null?r:E==null?void 0:E.disabled,x=g??l.props.required,k={disabled:w,required:x};["checked","name","onChange","value","inputRef"].forEach(U=>{typeof l.props[U]>"u"&&typeof a[U]<"u"&&(k[U]=a[U])});const _=Dm({props:a,muiFormControl:E,states:["error"]}),C=Q({},a,{disabled:w,labelPlacement:p,required:x,error:_.error}),R=tDe(C),N=(i=b.typography)!=null?i:o.typography;let M=f;return M!=null&&M.type!==Ar&&!d&&(M=D.jsx(Ar,Q({component:"span"},N,{className:Rt(R.label,N==null?void 0:N.className),children:M}))),D.jsxs(nDe,Q({className:Rt(R.root,s),ownerState:C,ref:n},S,{children:[L.cloneElement(l,k),x?D.jsxs(Wn,{display:"block",children:[M,D.jsxs(rDe,{ownerState:C,"aria-hidden":!0,className:R.asterisk,children:[" ","*"]})]}):M]}))});function iDe(e){return hn("MuiFormGroup",e)}mn("MuiFormGroup",["root","row","error"]);const aDe=["className","row"],sDe=e=>{const{classes:t,row:n,error:r}=e;return gn({root:["root",n&&"row",r&&"error"]},iDe,t)},oDe=pt("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>Q({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),XB=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiFormGroup"}),{className:i,row:a=!1}=r,s=It(r,aDe),o=Kf(),l=Dm({props:r,muiFormControl:o,states:["error"]}),u=Q({},r,{row:a,error:l.error}),d=sDe(u);return D.jsx(oDe,Q({className:Rt(d.root,i),ownerState:u,ref:n},s))});function lDe(e){return hn("MuiFormHelperText",e)}const TX=mn("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var kX;const uDe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],cDe=e=>{const{classes:t,contained:n,size:r,disabled:i,error:a,filled:s,focused:o,required:l}=e,u={root:["root",i&&"disabled",a&&"error",r&&`size${ft(r)}`,n&&"contained",o&&"focused",s&&"filled",l&&"required"]};return gn(u,lDe,t)},dDe=pt("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ft(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>Q({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${TX.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${TX.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),wO=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:s="p"}=r,o=It(r,uDe),l=Kf(),u=Dm({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),d=Q({},r,{component:s,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=cDe(d);return D.jsx(dDe,Q({as:s,ownerState:d,className:Rt(f.root,a),ref:n},o,{children:i===" "?kX||(kX=D.jsx("span",{className:"notranslate",children:"​"})):i}))});function fDe(e){return hn("MuiFormLabel",e)}const OE=mn("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),hDe=["children","className","color","component","disabled","error","filled","focused","required"],pDe=e=>{const{classes:t,color:n,focused:r,disabled:i,error:a,filled:s,required:o}=e,l={root:["root",`color${ft(n)}`,i&&"disabled",a&&"error",s&&"filled",r&&"focused",o&&"required"],asterisk:["asterisk",a&&"error"]};return gn(l,fDe,t)},mDe=pt("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>Q({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>Q({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${OE.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${OE.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${OE.error}`]:{color:(e.vars||e).palette.error.main}})),gDe=pt("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${OE.error}`]:{color:(e.vars||e).palette.error.main}})),wR=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiFormLabel"}),{children:i,className:a,component:s="label"}=r,o=It(r,hDe),l=Kf(),u=Dm({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),d=Q({},r,{color:u.color||"primary",component:s,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=pDe(d);return D.jsxs(mDe,Q({as:s,ownerState:d,className:Rt(f.root,a),ref:n},o,{children:[i,u.required&&D.jsxs(gDe,{ownerState:d,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),AX=L.createContext();function bDe(e){return hn("MuiGrid",e)}const yDe=[0,1,2,3,4,5,6,7,8,9,10],vDe=["column-reverse","column","row-reverse","row"],ODe=["nowrap","wrap-reverse","wrap"],l2=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Sw=mn("MuiGrid",["root","container","item","zeroMinWidth",...yDe.map(e=>`spacing-xs-${e}`),...vDe.map(e=>`direction-xs-${e}`),...ODe.map(e=>`wrap-xs-${e}`),...l2.map(e=>`grid-xs-${e}`),...l2.map(e=>`grid-sm-${e}`),...l2.map(e=>`grid-md-${e}`),...l2.map(e=>`grid-lg-${e}`),...l2.map(e=>`grid-xl-${e}`)]),SDe=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Yy(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function EDe({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,i)=>{let a={};if(t[i]&&(n=t[i]),!n)return r;if(n===!0)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=u1({values:t.columns,breakpoints:e.breakpoints.values}),o=typeof s=="object"?s[i]:s;if(o==null)return r;const l=`${Math.round(n/o*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const d=e.spacing(t.columnSpacing);if(d!=="0px"){const f=`calc(${l} + ${Yy(d)})`;u={flexBasis:f,maxWidth:f}}}a=Q({flexBasis:l,flexGrow:0,maxWidth:l},u)}return e.breakpoints.values[i]===0?Object.assign(r,a):r[e.breakpoints.up(i)]=a,r},{})}function wDe({theme:e,ownerState:t}){const n=u1({values:t.direction,breakpoints:e.breakpoints.values});return Ql({theme:e},n,r=>{const i={flexDirection:r};return r.indexOf("column")===0&&(i[`& > .${Sw.item}`]={maxWidth:"none"}),i})}function Lue({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(i=>{n===""&&t[i]!==0&&(n=i)});const r=Object.keys(e).sort((i,a)=>e[i]-e[a]);return r.slice(0,r.indexOf(n))}function xDe({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let i={};if(n&&r!==0){const a=u1({values:r,breakpoints:e.breakpoints.values});let s;typeof a=="object"&&(s=Lue({breakpoints:e.breakpoints.values,values:a})),i=Ql({theme:e},a,(o,l)=>{var u;const d=e.spacing(o);return d!=="0px"?{marginTop:`-${Yy(d)}`,[`& > .${Sw.item}`]:{paddingTop:Yy(d)}}:(u=s)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${Sw.item}`]:{paddingTop:0}}})}return i}function TDe({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let i={};if(n&&r!==0){const a=u1({values:r,breakpoints:e.breakpoints.values});let s;typeof a=="object"&&(s=Lue({breakpoints:e.breakpoints.values,values:a})),i=Ql({theme:e},a,(o,l)=>{var u;const d=e.spacing(o);return d!=="0px"?{width:`calc(100% + ${Yy(d)})`,marginLeft:`-${Yy(d)}`,[`& > .${Sw.item}`]:{paddingLeft:Yy(d)}}:(u=s)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${Sw.item}`]:{paddingLeft:0}}})}return i}function kDe(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(i=>{const a=e[i];Number(a)>0&&r.push(n[`spacing-${i}-${String(a)}`])}),r}const ADe=pt("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:i,item:a,spacing:s,wrap:o,zeroMinWidth:l,breakpoints:u}=n;let d=[];r&&(d=kDe(s,u,t));const f=[];return u.forEach(p=>{const g=n[p];g&&f.push(t[`grid-${p}-${String(g)}`])}),[t.root,r&&t.container,a&&t.item,l&&t.zeroMinWidth,...d,i!=="row"&&t[`direction-xs-${String(i)}`],o!=="wrap"&&t[`wrap-xs-${String(o)}`],...f]}})(({ownerState:e})=>Q({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),wDe,xDe,TDe,EDe);function _De(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const i=e[r];if(Number(i)>0){const a=`spacing-${r}-${String(i)}`;n.push(a)}}),n}const CDe=e=>{const{classes:t,container:n,direction:r,item:i,spacing:a,wrap:s,zeroMinWidth:o,breakpoints:l}=e;let u=[];n&&(u=_De(a,l));const d=[];l.forEach(p=>{const g=e[p];g&&d.push(`grid-${p}-${String(g)}`)});const f={root:["root",n&&"container",i&&"item",o&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...d]};return gn(f,bDe,t)},Ry=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiGrid"}),{breakpoints:i}=Xf(),a=Ax(r),{className:s,columns:o,columnSpacing:l,component:u="div",container:d=!1,direction:f="row",item:p=!1,rowSpacing:g,spacing:b=0,wrap:S="wrap",zeroMinWidth:E=!1}=a,w=It(a,SDe),x=g||b,k=l||b,_=L.useContext(AX),C=d?o||12:_,R={},N=Q({},w);i.keys.forEach(F=>{w[F]!=null&&(R[F]=w[F],delete N[F])});const M=Q({},a,{columns:C,container:d,direction:f,item:p,rowSpacing:x,columnSpacing:k,wrap:S,zeroMinWidth:E,spacing:b},R,{breakpoints:i.keys}),U=CDe(M);return D.jsx(AX.Provider,{value:C,children:D.jsx(ADe,Q({ownerState:M,className:Rt(U.root,s),as:u,ref:n},N))})}),RDe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function x8(e){return`scale(${e}, ${e**2})`}const IDe={entering:{opacity:1,transform:x8(1)},entered:{opacity:1,transform:"none"}},oD=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),M3=L.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:a,easing:s,in:o,onEnter:l,onEntered:u,onEntering:d,onExit:f,onExited:p,onExiting:g,style:b,timeout:S="auto",TransitionComponent:E=Wc}=t,w=It(t,RDe),x=Hg(),k=L.useRef(),_=Xf(),C=L.useRef(null),R=Er(C,a.ref,n),N=q=>re=>{if(q){const ee=C.current;re===void 0?q(ee):q(ee,re)}},M=N(d),U=N((q,re)=>{LB(q);const{duration:ee,delay:Z,easing:se}=ym({style:b,timeout:S,easing:s},{mode:"enter"});let W;S==="auto"?(W=_.transitions.getAutoHeightDuration(q.clientHeight),k.current=W):W=ee,q.style.transition=[_.transitions.create("opacity",{duration:W,delay:Z}),_.transitions.create("transform",{duration:oD?W:W*.666,delay:Z,easing:se})].join(","),l&&l(q,re)}),F=N(u),G=N(g),V=N(q=>{const{duration:re,delay:ee,easing:Z}=ym({style:b,timeout:S,easing:s},{mode:"exit"});let se;S==="auto"?(se=_.transitions.getAutoHeightDuration(q.clientHeight),k.current=se):se=re,q.style.transition=[_.transitions.create("opacity",{duration:se,delay:ee}),_.transitions.create("transform",{duration:oD?se:se*.666,delay:oD?ee:ee||se*.333,easing:Z})].join(","),q.style.opacity=0,q.style.transform=x8(.75),f&&f(q)}),ie=N(p),ne=q=>{S==="auto"&&x.start(k.current||0,q),r&&r(C.current,q)};return D.jsx(E,Q({appear:i,in:o,nodeRef:C,onEnter:U,onEntered:F,onEntering:M,onExit:V,onExited:ie,onExiting:G,addEndListener:ne,timeout:S==="auto"?null:S},w,{children:(q,re)=>L.cloneElement(a,Q({style:Q({opacity:0,transform:x8(.75),visibility:q==="exited"&&!o?"hidden":void 0},IDe[q],b,a.props.style),ref:R},re))}))});M3.muiSupportAuto=!0;function NDe(e){return hn("MuiIcon",e)}mn("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const DDe=["baseClassName","className","color","component","fontSize"],PDe=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${ft(t)}`,`fontSize${ft(n)}`]};return gn(i,NDe,r)},MDe=pt("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ft(n.color)}`],t[`fontSize${ft(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[t.color]})),$ue=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiIcon"}),{baseClassName:i="material-icons",className:a,color:s="inherit",component:o="span",fontSize:l="medium"}=r,u=It(r,DDe),d=Q({},r,{baseClassName:i,color:s,component:o,fontSize:l}),f=PDe(d);return D.jsx(MDe,Q({as:o,className:Rt(i,"notranslate",f.root,a),ownerState:d,"aria-hidden":!0,ref:n},u))});$ue.muiName="Icon";const LDe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],$De=e=>{const{classes:t,disableUnderline:n}=e,i=gn({root:["root",!n&&"underline"],input:["input"]},AIe,t);return Q({},t,i)},FDe=pt(vR,{shouldForwardProp:e=>Js(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...bR(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Q({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${C0.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${C0.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${C0.disabled}, .${C0.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${C0.disabled}:before`]:{borderBottomStyle:"dotted"}})}),BDe=pt(OR,{name:"MuiInput",slot:"Input",overridesResolver:yR})({}),KB=L.forwardRef(function(t,n){var r,i,a,s;const o=bn({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:d,fullWidth:f=!1,inputComponent:p="input",multiline:g=!1,slotProps:b,slots:S={},type:E="text"}=o,w=It(o,LDe),x=$De(o),_={root:{ownerState:{disableUnderline:l}}},C=b??d?rl(b??d,_):_,R=(r=(i=S.root)!=null?i:u.Root)!=null?r:FDe,N=(a=(s=S.input)!=null?s:u.Input)!=null?a:BDe;return D.jsx(VB,Q({slots:{root:R,input:N},slotProps:C,fullWidth:f,inputComponent:p,multiline:g,ref:n,type:E},w,{classes:x}))});KB.muiName="Input";function UDe(e){return hn("MuiInputAdornment",e)}const _X=mn("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var CX;const zDe=["children","className","component","disablePointerEvents","disableTypography","position","variant"],HDe=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ft(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},jDe=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:a,variant:s}=e,o={root:["root",n&&"disablePointerEvents",i&&`position${ft(i)}`,s,r&&"hiddenLabel",a&&`size${ft(a)}`]};return gn(o,UDe,t)},WDe=pt("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:HDe})(({theme:e,ownerState:t})=>Q({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${_X.positionStart}&:not(.${_X.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),T8=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiInputAdornment"}),{children:i,className:a,component:s="div",disablePointerEvents:o=!1,disableTypography:l=!1,position:u,variant:d}=r,f=It(r,zDe),p=Kf()||{};let g=d;d&&p.variant,p&&!g&&(g=p.variant);const b=Q({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:o,position:u,variant:g}),S=jDe(b);return D.jsx(gR.Provider,{value:null,children:D.jsx(WDe,Q({as:s,ownerState:b,className:Rt(S.root,a),ref:n},f,{children:typeof i=="string"&&!l?D.jsx(Ar,{color:"text.secondary",children:i}):D.jsxs(L.Fragment,{children:[u==="start"?CX||(CX=D.jsx("span",{className:"notranslate",children:"​"})):null,i]})}))})});function QDe(e){return hn("MuiInputLabel",e)}mn("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const GDe=["disableAnimation","margin","shrink","variant","className"],VDe=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:s,required:o}=e,l={root:["root",n&&"formControl",!a&&"animated",i&&"shrink",r&&r!=="normal"&&`size${ft(r)}`,s],asterisk:[o&&"asterisk"]},u=gn(l,QDe,t);return Q({},t,u)},qDe=pt(wR,{shouldForwardProp:e=>Js(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${OE.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>Q({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&Q({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&Q({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&Q({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Fue=L.forwardRef(function(t,n){const r=bn({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:a,className:s}=r,o=It(r,GDe),l=Kf();let u=a;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const d=Dm({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),f=Q({},r,{disableAnimation:i,formControl:l,shrink:u,size:d.size,variant:d.variant,required:d.required,focused:d.focused}),p=VDe(f);return D.jsx(qDe,Q({"data-shrink":u,ownerState:f,ref:n,className:Rt(p.root,s)},o,{classes:p}))}),Cc=L.createContext({});function YDe(e){return hn("MuiList",e)}mn("MuiList",["root","padding","dense","subheader"]);const ZDe=["children","className","component","dense","disablePadding","subheader"],XDe=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return gn({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},YDe,t)},KDe=pt("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>Q({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Bue=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiList"}),{children:i,className:a,component:s="ul",dense:o=!1,disablePadding:l=!1,subheader:u}=r,d=It(r,ZDe),f=L.useMemo(()=>({dense:o}),[o]),p=Q({},r,{component:s,dense:o,disablePadding:l}),g=XDe(p);return D.jsx(Cc.Provider,{value:f,children:D.jsxs(KDe,Q({as:s,className:Rt(g.root,a),ref:n,ownerState:p},d,{children:[u,i]}))})});function JDe(e){return hn("MuiListItem",e)}const iy=mn("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function e7e(e){return hn("MuiListItemButton",e)}const ay=mn("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),t7e=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],n7e=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},r7e=e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:a,divider:s,selected:o}=e,u=gn({root:["root",r&&"dense",!a&&"gutters",s&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",o&&"selected"]},e7e,n);return Q({},n,u)},i7e=pt(Vf,{shouldForwardProp:e=>Js(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:n7e})(({theme:e,ownerState:t})=>Q({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ay.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Yn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ay.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Yn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ay.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Yn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Yn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ay.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ay.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),RX=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:a=!1,component:s="div",children:o,dense:l=!1,disableGutters:u=!1,divider:d=!1,focusVisibleClassName:f,selected:p=!1,className:g}=r,b=It(r,t7e),S=L.useContext(Cc),E=L.useMemo(()=>({dense:l||S.dense||!1,alignItems:i,disableGutters:u}),[i,S.dense,l,u]),w=L.useRef(null);sl(()=>{a&&w.current&&w.current.focus()},[a]);const x=Q({},r,{alignItems:i,dense:E.dense,disableGutters:u,divider:d,selected:p}),k=r7e(x),_=Er(w,n);return D.jsx(Cc.Provider,{value:E,children:D.jsx(i7e,Q({ref:_,href:b.href||b.to,component:(b.href||b.to)&&s==="div"?"button":s,focusVisibleClassName:Rt(k.focusVisible,f),ownerState:x,className:Rt(k.root,g)},b,{classes:k,children:o}))})});function a7e(e){return hn("MuiListItemSecondaryAction",e)}mn("MuiListItemSecondaryAction",["root","disableGutters"]);const s7e=["className"],o7e=e=>{const{disableGutters:t,classes:n}=e;return gn({root:["root",t&&"disableGutters"]},a7e,n)},l7e=pt("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>Q({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),JB=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=r,a=It(r,s7e),s=L.useContext(Cc),o=Q({},r,{disableGutters:s.disableGutters}),l=o7e(o);return D.jsx(l7e,Q({className:Rt(l.root,i),ownerState:o,ref:n},a))});JB.muiName="ListItemSecondaryAction";const u7e=["className"],c7e=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],d7e=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},f7e=e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:a,disableGutters:s,disablePadding:o,divider:l,hasSecondaryAction:u,selected:d}=e;return gn({root:["root",i&&"dense",!s&&"gutters",!o&&"padding",l&&"divider",a&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",d&&"selected"],container:["container"]},JDe,r)},h7e=pt("div",{name:"MuiListItem",slot:"Root",overridesResolver:d7e})(({theme:e,ownerState:t})=>Q({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&Q({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${ay.root}`]:{paddingRight:48}},{[`&.${iy.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${iy.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Yn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${iy.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Yn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${iy.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${iy.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Yn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Yn(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),p7e=pt("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),m7e=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:a=!1,button:s=!1,children:o,className:l,component:u,components:d={},componentsProps:f={},ContainerComponent:p="li",ContainerProps:{className:g}={},dense:b=!1,disabled:S=!1,disableGutters:E=!1,disablePadding:w=!1,divider:x=!1,focusVisibleClassName:k,secondaryAction:_,selected:C=!1,slotProps:R={},slots:N={}}=r,M=It(r.ContainerProps,u7e),U=It(r,c7e),F=L.useContext(Cc),G=L.useMemo(()=>({dense:b||F.dense||!1,alignItems:i,disableGutters:E}),[i,F.dense,b,E]),V=L.useRef(null);sl(()=>{a&&V.current&&V.current.focus()},[a]);const ie=L.Children.toArray(o),ne=ie.length&&mE(ie[ie.length-1],["ListItemSecondaryAction"]),q=Q({},r,{alignItems:i,autoFocus:a,button:s,dense:G.dense,disabled:S,disableGutters:E,disablePadding:w,divider:x,hasSecondaryAction:ne,selected:C}),re=f7e(q),ee=Er(V,n),Z=N.root||d.Root||h7e,se=R.root||f.root||{},W=Q({className:Rt(re.root,se.className,l),disabled:S},U);let Pe=u||"li";return s&&(W.component=u||"div",W.focusVisibleClassName=Rt(iy.focusVisible,k),Pe=Vf),ne?(Pe=!W.component&&!u?"div":Pe,p==="li"&&(Pe==="li"?Pe="div":W.component==="li"&&(W.component="div")),D.jsx(Cc.Provider,{value:G,children:D.jsxs(p7e,Q({as:p,className:Rt(re.container,g),ref:ee,ownerState:q},M,{children:[D.jsx(Z,Q({},se,!zf(Z)&&{as:Pe,ownerState:Q({},q,se.ownerState)},W,{children:ie})),ie.pop()]}))})):D.jsx(Cc.Provider,{value:G,children:D.jsxs(Z,Q({},se,{as:Pe,ref:ee},!zf(Z)&&{ownerState:Q({},q,se.ownerState)},W,{children:[ie,_&&D.jsx(JB,{children:_})]}))})});function g7e(e){return hn("MuiListItemAvatar",e)}mn("MuiListItemAvatar",["root","alignItemsFlexStart"]);const b7e=["className"],y7e=e=>{const{alignItems:t,classes:n}=e;return gn({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},g7e,n)},v7e=pt("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>Q({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),O7e=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiListItemAvatar"}),{className:i}=r,a=It(r,b7e),s=L.useContext(Cc),o=Q({},r,{alignItems:s.alignItems}),l=y7e(o);return D.jsx(v7e,Q({className:Rt(l.root,i),ownerState:o,ref:n},a))});function S7e(e){return hn("MuiListItemIcon",e)}const IX=mn("MuiListItemIcon",["root","alignItemsFlexStart"]),E7e=["className"],w7e=e=>{const{alignItems:t,classes:n}=e;return gn({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},S7e,n)},x7e=pt("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>Q({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),f1=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiListItemIcon"}),{className:i}=r,a=It(r,E7e),s=L.useContext(Cc),o=Q({},r,{alignItems:s.alignItems}),l=w7e(o);return D.jsx(x7e,Q({className:Rt(l.root,i),ownerState:o,ref:n},a))});function T7e(e){return hn("MuiListItemText",e)}const L3=mn("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),k7e=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],A7e=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:a}=e;return gn({root:["root",n&&"inset",a&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},T7e,t)},_7e=pt("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${L3.primary}`]:t.primary},{[`& .${L3.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>Q({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),sp=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiListItemText"}),{children:i,className:a,disableTypography:s=!1,inset:o=!1,primary:l,primaryTypographyProps:u,secondary:d,secondaryTypographyProps:f}=r,p=It(r,k7e),{dense:g}=L.useContext(Cc);let b=l??i,S=d;const E=Q({},r,{disableTypography:s,inset:o,primary:!!b,secondary:!!S,dense:g}),w=A7e(E);return b!=null&&b.type!==Ar&&!s&&(b=D.jsx(Ar,Q({variant:g?"body2":"body1",className:w.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:b}))),S!=null&&S.type!==Ar&&!s&&(S=D.jsx(Ar,Q({variant:"body2",className:w.secondary,color:"text.secondary",display:"block"},f,{children:S}))),D.jsxs(_7e,Q({className:Rt(w.root,a),ownerState:E,ref:n},p,{children:[b,S]}))}),C7e=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function lD(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function NX(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Uue(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function u2(e,t,n,r,i,a){let s=!1,o=i(e,t,t?n:!1);for(;o;){if(o===e.firstChild){if(s)return!1;s=!0}const l=r?!1:o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||!Uue(o,a)||l)o=i(e,o,n);else return o.focus(),!0}return!1}const Ew=L.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:a=!1,children:s,className:o,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:d,variant:f="selectedMenu"}=t,p=It(t,C7e),g=L.useRef(null),b=L.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});sl(()=>{i&&g.current.focus()},[i]),L.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(k,{direction:_})=>{const C=!g.current.style.width;if(k.clientHeight{const _=g.current,C=k.key,R=ga(_).activeElement;if(C==="ArrowDown")k.preventDefault(),u2(_,R,u,l,lD);else if(C==="ArrowUp")k.preventDefault(),u2(_,R,u,l,NX);else if(C==="Home")k.preventDefault(),u2(_,null,u,l,lD);else if(C==="End")k.preventDefault(),u2(_,null,u,l,NX);else if(C.length===1){const N=b.current,M=C.toLowerCase(),U=performance.now();N.keys.length>0&&(U-N.lastTime>500?(N.keys=[],N.repeating=!0,N.previousKeyMatched=!0):N.repeating&&M!==N.keys[0]&&(N.repeating=!1)),N.lastTime=U,N.keys.push(M);const F=R&&!N.repeating&&Uue(R,N);N.previousKeyMatched&&(F||u2(_,R,!1,l,lD,N))?k.preventDefault():N.previousKeyMatched=!1}d&&d(k)},E=Er(g,n);let w=-1;L.Children.forEach(s,(k,_)=>{if(!L.isValidElement(k)){w===_&&(w+=1,w>=s.length&&(w=-1));return}k.props.disabled||(f==="selectedMenu"&&k.props.selected||w===-1)&&(w=_),w===_&&(k.props.disabled||k.props.muiSkipListHighlight||k.type.muiSkipListHighlight)&&(w+=1,w>=s.length&&(w=-1))});const x=L.Children.map(s,(k,_)=>{if(_===w){const C={};return a&&(C.autoFocus=!0),k.props.tabIndex===void 0&&f==="selectedMenu"&&(C.tabIndex=0),L.cloneElement(k,C)}return k});return D.jsx(Bue,Q({role:"menu",ref:E,className:o,onKeyDown:S,tabIndex:i?0:-1},p,{children:x}))});function R7e(e){return hn("MuiPopover",e)}mn("MuiPopover",["root","paper"]);const I7e=["onEntering"],N7e=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],D7e=["slotProps"];function DX(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function PX(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function MX(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function uD(e){return typeof e=="function"?e():e}const P7e=e=>{const{classes:t}=e;return gn({root:["root"],paper:["paper"]},R7e,t)},M7e=pt(EO,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zue=pt(Ks,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),xO=L.forwardRef(function(t,n){var r,i,a;const s=bn({props:t,name:"MuiPopover"}),{action:o,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:f="anchorEl",children:p,className:g,container:b,elevation:S=8,marginThreshold:E=16,open:w,PaperProps:x={},slots:k,slotProps:_,transformOrigin:C={vertical:"top",horizontal:"left"},TransitionComponent:R=M3,transitionDuration:N="auto",TransitionProps:{onEntering:M}={},disableScrollLock:U=!1}=s,F=It(s.TransitionProps,I7e),G=It(s,N7e),V=(r=_==null?void 0:_.paper)!=null?r:x,ie=L.useRef(),ne=Er(ie,V.ref),q=Q({},s,{anchorOrigin:u,anchorReference:f,elevation:S,marginThreshold:E,externalPaperSlotProps:V,transformOrigin:C,TransitionComponent:R,transitionDuration:N,TransitionProps:F}),re=P7e(q),ee=L.useCallback(()=>{if(f==="anchorPosition")return d;const Mt=uD(l),wt=(Mt&&Mt.nodeType===1?Mt:ga(ie.current).body).getBoundingClientRect();return{top:wt.top+DX(wt,u.vertical),left:wt.left+PX(wt,u.horizontal)}},[l,u.horizontal,u.vertical,d,f]),Z=L.useCallback(Mt=>({vertical:DX(Mt,C.vertical),horizontal:PX(Mt,C.horizontal)}),[C.horizontal,C.vertical]),se=L.useCallback(Mt=>{const ot={width:Mt.offsetWidth,height:Mt.offsetHeight},wt=Z(ot);if(f==="none")return{top:null,left:null,transformOrigin:MX(wt)};const vt=ee();let Wt=vt.top-wt.vertical,z=vt.left-wt.horizontal;const K=Wt+ot.height,ue=z+ot.width,_e=Gf(uD(l)),Ie=_e.innerHeight-E,Ce=_e.innerWidth-E;if(E!==null&&WtIe){const Qe=K-Ie;Wt-=Qe,wt.vertical+=Qe}if(E!==null&&zCe){const Qe=ue-Ce;z-=Qe,wt.horizontal+=Qe}return{top:`${Math.round(Wt)}px`,left:`${Math.round(z)}px`,transformOrigin:MX(wt)}},[l,f,ee,Z,E]),[W,Pe]=L.useState(w),Ee=L.useCallback(()=>{const Mt=ie.current;if(!Mt)return;const ot=se(Mt);ot.top!==null&&(Mt.style.top=ot.top),ot.left!==null&&(Mt.style.left=ot.left),Mt.style.transformOrigin=ot.transformOrigin,Pe(!0)},[se]);L.useEffect(()=>(U&&window.addEventListener("scroll",Ee),()=>window.removeEventListener("scroll",Ee)),[l,U,Ee]);const X=(Mt,ot)=>{M&&M(Mt,ot),Ee()},Re=()=>{Pe(!1)};L.useEffect(()=>{w&&Ee()}),L.useImperativeHandle(o,()=>w?{updatePosition:()=>{Ee()}}:null,[w,Ee]),L.useEffect(()=>{if(!w)return;const Mt=uR(()=>{Ee()}),ot=Gf(l);return ot.addEventListener("resize",Mt),()=>{Mt.clear(),ot.removeEventListener("resize",Mt)}},[l,w,Ee]);let Ue=N;N==="auto"&&!R.muiSupportAuto&&(Ue=void 0);const oe=b||(l?ga(uD(l)).body:void 0),rt=(i=k==null?void 0:k.root)!=null?i:M7e,qe=(a=k==null?void 0:k.paper)!=null?a:zue,et=Xo({elementType:qe,externalSlotProps:Q({},V,{style:W?V.style:Q({},V.style,{opacity:0})}),additionalProps:{elevation:S,ref:ne},ownerState:q,className:Rt(re.paper,V==null?void 0:V.className)}),Tt=Xo({elementType:rt,externalSlotProps:(_==null?void 0:_.root)||{},externalForwardedProps:G,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:oe,open:w},ownerState:q,className:Rt(re.root,g)}),{slotProps:ct}=Tt,Pt=It(Tt,D7e);return D.jsx(rt,Q({},Pt,!zf(rt)&&{slotProps:ct,disableScrollLock:U},{children:D.jsx(R,Q({appear:!0,in:w,onEntering:X,onExited:Re,timeout:Ue},F,{children:D.jsx(qe,Q({},et,{children:p}))}))}))});function L7e(e){return hn("MuiMenu",e)}mn("MuiMenu",["root","paper","list"]);const $7e=["onEntering"],F7e=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],B7e={vertical:"top",horizontal:"right"},U7e={vertical:"top",horizontal:"left"},z7e=e=>{const{classes:t}=e;return gn({root:["root"],paper:["paper"],list:["list"]},L7e,t)},H7e=pt(xO,{shouldForwardProp:e=>Js(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),j7e=pt(zue,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),W7e=pt(Ew,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Hue=L.forwardRef(function(t,n){var r,i;const a=bn({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:o,className:l,disableAutoFocusItem:u=!1,MenuListProps:d={},onClose:f,open:p,PaperProps:g={},PopoverClasses:b,transitionDuration:S="auto",TransitionProps:{onEntering:E}={},variant:w="selectedMenu",slots:x={},slotProps:k={}}=a,_=It(a.TransitionProps,$7e),C=It(a,F7e),R=_B(),N=Q({},a,{autoFocus:s,disableAutoFocusItem:u,MenuListProps:d,onEntering:E,PaperProps:g,transitionDuration:S,TransitionProps:_,variant:w}),M=z7e(N),U=s&&!u&&p,F=L.useRef(null),G=(Z,se)=>{F.current&&F.current.adjustStyleForScrollbar(Z,{direction:R?"rtl":"ltr"}),E&&E(Z,se)},V=Z=>{Z.key==="Tab"&&(Z.preventDefault(),f&&f(Z,"tabKeyDown"))};let ie=-1;L.Children.map(o,(Z,se)=>{L.isValidElement(Z)&&(Z.props.disabled||(w==="selectedMenu"&&Z.props.selected||ie===-1)&&(ie=se))});const ne=(r=x.paper)!=null?r:j7e,q=(i=k.paper)!=null?i:g,re=Xo({elementType:x.root,externalSlotProps:k.root,ownerState:N,className:[M.root,l]}),ee=Xo({elementType:ne,externalSlotProps:q,ownerState:N,className:M.paper});return D.jsx(H7e,Q({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:R?"right":"left"},transformOrigin:R?B7e:U7e,slots:{paper:ne,root:x.root},slotProps:{root:re,paper:ee},open:p,ref:n,transitionDuration:S,TransitionProps:Q({onEntering:G},_),ownerState:N},C,{classes:b,children:D.jsx(W7e,Q({onKeyDown:V,actions:F,autoFocus:s&&(ie===-1||u),autoFocusItem:U,variant:w},d,{className:Rt(M.list,d.className),children:o}))}))});function Q7e(e){return hn("MuiMenuItem",e)}const c2=mn("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),G7e=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],V7e=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},q7e=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:s}=e,l=gn({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",a&&"selected"]},Q7e,s);return Q({},s,l)},Y7e=pt(Vf,{shouldForwardProp:e=>Js(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:V7e})(({theme:e,ownerState:t})=>Q({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${c2.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Yn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${c2.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Yn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${c2.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Yn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Yn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${c2.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${c2.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${xX.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${xX.inset}`]:{marginLeft:52},[`& .${L3.root}`]:{marginTop:0,marginBottom:0},[`& .${L3.inset}`]:{paddingLeft:36},[`& .${IX.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Q({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${IX.root} svg`]:{fontSize:"1.25rem"}}))),Cd=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:s=!1,divider:o=!1,disableGutters:l=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:f,className:p}=r,g=It(r,G7e),b=L.useContext(Cc),S=L.useMemo(()=>({dense:s||b.dense||!1,disableGutters:l}),[b.dense,s,l]),E=L.useRef(null);sl(()=>{i&&E.current&&E.current.focus()},[i]);const w=Q({},r,{dense:S.dense,divider:o,disableGutters:l}),x=q7e(r),k=Er(E,n);let _;return r.disabled||(_=f!==void 0?f:-1),D.jsx(Cc.Provider,{value:S,children:D.jsx(Y7e,Q({ref:k,role:d,tabIndex:_,component:a,focusVisibleClassName:Rt(x.focusVisible,u),className:Rt(x.root,p)},g,{ownerState:w,classes:x}))})});function Z7e(e){return hn("MuiNativeSelect",e)}const eU=mn("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),X7e=["className","disabled","error","IconComponent","inputRef","variant"],K7e=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${ft(n)}`,a&&"iconOpen",r&&"disabled"]};return gn(o,Z7e,t)},jue=({ownerState:e,theme:t})=>Q({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Q({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${eU.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),J7e=pt("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Js,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${eU.multiple}`]:t.multiple}]}})(jue),Wue=({ownerState:e,theme:t})=>Q({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${eU.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),ePe=pt("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ft(n.variant)}`],n.open&&t.iconOpen]}})(Wue),tPe=L.forwardRef(function(t,n){const{className:r,disabled:i,error:a,IconComponent:s,inputRef:o,variant:l="standard"}=t,u=It(t,X7e),d=Q({},t,{disabled:i,variant:l,error:a}),f=K7e(d);return D.jsxs(L.Fragment,{children:[D.jsx(J7e,Q({ownerState:d,className:Rt(f.select,r),disabled:i,ref:o||n},u)),t.multiple?null:D.jsx(ePe,{as:s,ownerState:d,className:f.icon})]})});var LX;const nPe=["children","classes","className","label","notched"],rPe=pt("fieldset",{shouldForwardProp:Js})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),iPe=pt("legend",{shouldForwardProp:Js})(({ownerState:e,theme:t})=>Q({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&Q({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function aPe(e){const{className:t,label:n,notched:r}=e,i=It(e,nPe),a=n!=null&&n!=="",s=Q({},e,{notched:r,withLabel:a});return D.jsx(rPe,Q({"aria-hidden":!0,className:t,ownerState:s},i,{children:D.jsx(iPe,{ownerState:s,children:a?D.jsx("span",{children:n}):LX||(LX=D.jsx("span",{className:"notranslate",children:"​"}))})}))}const sPe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],oPe=e=>{const{classes:t}=e,r=gn({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},_Ie,t);return Q({},t,r)},lPe=pt(vR,{shouldForwardProp:e=>Js(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:bR})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Q({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${mf.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${mf.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${mf.focused} .${mf.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${mf.error} .${mf.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${mf.disabled} .${mf.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Q({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),uPe=pt(aPe,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),cPe=pt(OR,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:yR})(({theme:e,ownerState:t})=>Q({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),tU=L.forwardRef(function(t,n){var r,i,a,s,o;const l=bn({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:d=!1,inputComponent:f="input",label:p,multiline:g=!1,notched:b,slots:S={},type:E="text"}=l,w=It(l,sPe),x=oPe(l),k=Kf(),_=Dm({props:l,muiFormControl:k,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),C=Q({},l,{color:_.color||"primary",disabled:_.disabled,error:_.error,focused:_.focused,formControl:k,fullWidth:d,hiddenLabel:_.hiddenLabel,multiline:g,size:_.size,type:E}),R=(r=(i=S.root)!=null?i:u.Root)!=null?r:lPe,N=(a=(s=S.input)!=null?s:u.Input)!=null?a:cPe;return D.jsx(VB,Q({slots:{root:R,input:N},renderSuffix:M=>D.jsx(uPe,{ownerState:C,className:x.notchedOutline,label:p!=null&&p!==""&&_.required?o||(o=D.jsxs(L.Fragment,{children:[p," ","*"]})):p,notched:typeof b<"u"?b:!!(M.startAdornment||M.filled||M.focused)}),fullWidth:d,inputComponent:f,multiline:g,ref:n,type:E},w,{classes:Q({},x,{notchedOutline:null})}))});tU.muiName="Input";const dPe=Ud(D.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),fPe=Ud(D.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),hPe=pt("span",{shouldForwardProp:Js})({position:"relative",display:"flex"}),pPe=pt(dPe)({transform:"scale(1)"}),mPe=pt(fPe)(({theme:e,ownerState:t})=>Q({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function Que(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i=Q({},e,{checked:t});return D.jsxs(hPe,{className:n.root,ownerState:i,children:[D.jsx(pPe,{fontSize:r,className:n.background,ownerState:i}),D.jsx(mPe,{fontSize:r,className:n.dot,ownerState:i})]})}const Gue=L.createContext(void 0);function gPe(){return L.useContext(Gue)}function bPe(e){return hn("MuiRadio",e)}const $X=mn("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),yPe=["checked","checkedIcon","color","icon","name","onChange","size","className"],vPe=e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${ft(n)}`,r!=="medium"&&`size${ft(r)}`]};return Q({},t,gn(i,bPe,t))},OPe=pt(qB,{shouldForwardProp:e=>Js(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${ft(n.size)}`],t[`color${ft(n.color)}`]]}})(({theme:e,ownerState:t})=>Q({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Yn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${$X.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${$X.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function SPe(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const FX=D.jsx(Que,{checked:!0}),BX=D.jsx(Que,{}),UX=L.forwardRef(function(t,n){var r,i;const a=bn({props:t,name:"MuiRadio"}),{checked:s,checkedIcon:o=FX,color:l="primary",icon:u=BX,name:d,onChange:f,size:p="medium",className:g}=a,b=It(a,yPe),S=Q({},a,{color:l,size:p}),E=vPe(S),w=gPe();let x=s;const k=C3(f,w&&w.onChange);let _=d;return w&&(typeof x>"u"&&(x=SPe(w.value,a.value)),typeof _>"u"&&(_=w.name)),D.jsx(OPe,Q({type:"radio",icon:L.cloneElement(u,{fontSize:(r=BX.props.fontSize)!=null?r:p}),checkedIcon:L.cloneElement(o,{fontSize:(i=FX.props.fontSize)!=null?i:p}),ownerState:S,classes:E,name:_,checked:x,onChange:k,ref:n,className:Rt(E.root,g)},b))});function EPe(e){return hn("MuiRadioGroup",e)}mn("MuiRadioGroup",["root","row","error"]);const wPe=["actions","children","className","defaultValue","name","onChange","value"],xPe=e=>{const{classes:t,row:n,error:r}=e;return gn({root:["root",n&&"row",r&&"error"]},EPe,t)},TPe=L.forwardRef(function(t,n){const{actions:r,children:i,className:a,defaultValue:s,name:o,onChange:l,value:u}=t,d=It(t,wPe),f=L.useRef(null),p=xPe(t),[g,b]=Uf({controlled:u,default:s,name:"RadioGroup"});L.useImperativeHandle(r,()=>({focus:()=>{let x=f.current.querySelector("input:not(:disabled):checked");x||(x=f.current.querySelector("input:not(:disabled)")),x&&x.focus()}}),[]);const S=Er(n,f),E=yO(o),w=L.useMemo(()=>({name:E,onChange(x){b(x.target.value),l&&l(x,x.target.value)},value:g}),[E,l,b,g]);return D.jsx(Gue.Provider,{value:w,children:D.jsx(XB,Q({role:"radiogroup",ref:S,className:Rt(p.root,a)},d,{children:i}))})});function kPe(e){return hn("MuiSelect",e)}const d2=mn("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var zX;const APe=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],_Pe=pt("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${d2.select}`]:t.select},{[`&.${d2.select}`]:t[n.variant]},{[`&.${d2.error}`]:t.error},{[`&.${d2.multiple}`]:t.multiple}]}})(jue,{[`&.${d2.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),CPe=pt("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ft(n.variant)}`],n.open&&t.iconOpen]}})(Wue),RPe=pt("input",{shouldForwardProp:e=>fR(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function HX(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function IPe(e){return e==null||typeof e=="string"&&!e.trim()}const NPe=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${ft(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return gn(o,kPe,t)},DPe=L.forwardRef(function(t,n){var r;const{"aria-describedby":i,"aria-label":a,autoFocus:s,autoWidth:o,children:l,className:u,defaultOpen:d,defaultValue:f,disabled:p,displayEmpty:g,error:b=!1,IconComponent:S,inputRef:E,labelId:w,MenuProps:x={},multiple:k,name:_,onBlur:C,onChange:R,onClose:N,onFocus:M,onOpen:U,open:F,readOnly:G,renderValue:V,SelectDisplayProps:ie={},tabIndex:ne,value:q,variant:re="standard"}=t,ee=It(t,APe),[Z,se]=Uf({controlled:q,default:f,name:"Select"}),[W,Pe]=Uf({controlled:F,default:d,name:"Select"}),Ee=L.useRef(null),X=L.useRef(null),[Re,Ue]=L.useState(null),{current:oe}=L.useRef(F!=null),[rt,qe]=L.useState(),et=Er(n,E),Tt=L.useCallback(tt=>{X.current=tt,tt&&Ue(tt)},[]),ct=Re==null?void 0:Re.parentNode;L.useImperativeHandle(et,()=>({focus:()=>{X.current.focus()},node:Ee.current,value:Z}),[Z]),L.useEffect(()=>{d&&W&&Re&&!oe&&(qe(o?null:ct.clientWidth),X.current.focus())},[Re,o]),L.useEffect(()=>{s&&X.current.focus()},[s]),L.useEffect(()=>{if(!w)return;const tt=ga(X.current).getElementById(w);if(tt){const Qt=()=>{getSelection().isCollapsed&&X.current.focus()};return tt.addEventListener("click",Qt),()=>{tt.removeEventListener("click",Qt)}}},[w]);const Pt=(tt,Qt)=>{tt?U&&U(Qt):N&&N(Qt),oe||(qe(o?null:ct.clientWidth),Pe(tt))},Mt=tt=>{tt.button===0&&(tt.preventDefault(),X.current.focus(),Pt(!0,tt))},ot=tt=>{Pt(!1,tt)},wt=L.Children.toArray(l),vt=tt=>{const Qt=wt.find(Vt=>Vt.props.value===tt.target.value);Qt!==void 0&&(se(Qt.props.value),R&&R(tt,Qt))},Wt=tt=>Qt=>{let Vt;if(Qt.currentTarget.hasAttribute("tabindex")){if(k){Vt=Array.isArray(Z)?Z.slice():[];const Gt=Z.indexOf(tt.props.value);Gt===-1?Vt.push(tt.props.value):Vt.splice(Gt,1)}else Vt=tt.props.value;if(tt.props.onClick&&tt.props.onClick(Qt),Z!==Vt&&(se(Vt),R)){const Gt=Qt.nativeEvent||Qt,vn=new Gt.constructor(Gt.type,Gt);Object.defineProperty(vn,"target",{writable:!0,value:{value:Vt,name:_}}),R(vn,tt)}k||Pt(!1,Qt)}},z=tt=>{G||[" ","ArrowUp","ArrowDown","Enter"].indexOf(tt.key)!==-1&&(tt.preventDefault(),Pt(!0,tt))},K=Re!==null&&W,ue=tt=>{!K&&C&&(Object.defineProperty(tt,"target",{writable:!0,value:{value:Z,name:_}}),C(tt))};delete ee["aria-invalid"];let _e,Ie;const Ce=[];let Qe=!1;(D3({value:Z})||g)&&(V?_e=V(Z):Qe=!0);const Ot=wt.map(tt=>{if(!L.isValidElement(tt))return null;let Qt;if(k){if(!Array.isArray(Z))throw new Error(bp(2));Qt=Z.some(Vt=>HX(Vt,tt.props.value)),Qt&&Qe&&Ce.push(tt.props.children)}else Qt=HX(Z,tt.props.value),Qt&&Qe&&(Ie=tt.props.children);return L.cloneElement(tt,{"aria-selected":Qt?"true":"false",onClick:Wt(tt),onKeyUp:Vt=>{Vt.key===" "&&Vt.preventDefault(),tt.props.onKeyUp&&tt.props.onKeyUp(Vt)},role:"option",selected:Qt,value:void 0,"data-value":tt.props.value})});Qe&&(k?Ce.length===0?_e=null:_e=Ce.reduce((tt,Qt,Vt)=>(tt.push(Qt),Vt{const{classes:t}=e;return t},nU={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Js(e)&&e!=="variant",slot:"Root"},$Pe=pt(KB,nU)(""),FPe=pt(tU,nU)(""),BPe=pt(ZB,nU)(""),rU=L.forwardRef(function(t,n){const r=bn({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:s={},className:o,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:d=Due,id:f,input:p,inputProps:g,label:b,labelId:S,MenuProps:E,multiple:w=!1,native:x=!1,onClose:k,onOpen:_,open:C,renderValue:R,SelectDisplayProps:N,variant:M="outlined"}=r,U=It(r,PPe),F=x?tPe:DPe,G=Kf(),V=Dm({props:r,muiFormControl:G,states:["variant","error"]}),ie=V.variant||M,ne=Q({},r,{variant:ie,classes:s}),q=LPe(ne),re=It(q,MPe),ee=p||{standard:D.jsx($Pe,{ownerState:ne}),outlined:D.jsx(FPe,{label:b,ownerState:ne}),filled:D.jsx(BPe,{ownerState:ne})}[ie],Z=Er(n,ee.ref);return D.jsx(L.Fragment,{children:L.cloneElement(ee,Q({inputComponent:F,inputProps:Q({children:a,error:V.error,IconComponent:d,variant:ie,type:void 0,multiple:w},x?{id:f}:{autoWidth:i,defaultOpen:l,displayEmpty:u,labelId:S,MenuProps:E,onClose:k,onOpen:_,open:C,renderValue:R,SelectDisplayProps:Q({id:f},N)},g,{classes:g?rl(re,g.classes):re},p?p.props.inputProps:{})},(w&&x||u)&&ie==="outlined"?{notched:!0}:{},{ref:Z,className:Rt(ee.props.className,o,q.root)},!p&&{variant:ie},U))})});rU.muiName="Select";function UPe(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const zPe=2;function Vue(e,t){return e-t}function jX(e,t){var n;const{index:r}=(n=e.reduce((i,a,s)=>{const o=Math.abs(t-a);return i===null||o({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},GPe=e=>e;let $A;function QX(){return $A===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?$A=CSS.supports("touch-action","none"):$A=!0),$A}function VPe(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:a=!1,marks:s=!1,max:o=100,min:l=0,name:u,onChange:d,onChangeCommitted:f,orientation:p="horizontal",rootRef:g,scale:b=GPe,step:S=1,shiftStep:E=10,tabIndex:w,value:x}=e,k=L.useRef(),[_,C]=L.useState(-1),[R,N]=L.useState(-1),[M,U]=L.useState(!1),F=L.useRef(0),[G,V]=Uf({controlled:x,default:n??l,name:"Slider"}),ie=d&&((ve,ke,ze)=>{const At=ve.nativeEvent||ve,Zt=new At.constructor(At.type,At);Object.defineProperty(Zt,"target",{writable:!0,value:{value:ke,name:u}}),d(Zt,ke,ze)}),ne=Array.isArray(G);let q=ne?G.slice().sort(Vue):[G];q=q.map(ve=>ve==null?l:Dg(ve,l,o));const re=s===!0&&S!==null?[...Array(Math.floor((o-l)/S)+1)].map((ve,ke)=>({value:l+S*ke})):s||[],ee=re.map(ve=>ve.value),{isFocusVisibleRef:Z,onBlur:se,onFocus:W,ref:Pe}=dR(),[Ee,X]=L.useState(-1),Re=L.useRef(),Ue=Er(Pe,Re),oe=Er(g,Ue),rt=ve=>ke=>{var ze;const At=Number(ke.currentTarget.getAttribute("data-index"));W(ke),Z.current===!0&&X(At),N(At),ve==null||(ze=ve.onFocus)==null||ze.call(ve,ke)},qe=ve=>ke=>{var ze;se(ke),Z.current===!1&&X(-1),N(-1),ve==null||(ze=ve.onBlur)==null||ze.call(ve,ke)},et=(ve,ke)=>{const ze=Number(ve.currentTarget.getAttribute("data-index")),At=q[ze],Zt=ee.indexOf(At);let tt=ke;if(re&&S==null){const Qt=ee[ee.length-1];tt>Qt?tt=Qt:ttke=>{var ze;if(S!==null){const At=Number(ke.currentTarget.getAttribute("data-index")),Zt=q[At];let tt=null;(ke.key==="ArrowLeft"||ke.key==="ArrowDown")&&ke.shiftKey||ke.key==="PageDown"?tt=Math.max(Zt-E,l):((ke.key==="ArrowRight"||ke.key==="ArrowUp")&&ke.shiftKey||ke.key==="PageUp")&&(tt=Math.min(Zt+E,o)),tt!==null&&(et(ke,tt),ke.preventDefault())}ve==null||(ze=ve.onKeyDown)==null||ze.call(ve,ke)};sl(()=>{if(r&&Re.current.contains(document.activeElement)){var ve;(ve=document.activeElement)==null||ve.blur()}},[r]),r&&_!==-1&&C(-1),r&&Ee!==-1&&X(-1);const ct=ve=>ke=>{var ze;(ze=ve.onChange)==null||ze.call(ve,ke),et(ke,ke.target.valueAsNumber)},Pt=L.useRef();let Mt=p;a&&p==="horizontal"&&(Mt+="-reverse");const ot=({finger:ve,move:ke=!1})=>{const{current:ze}=Re,{width:At,height:Zt,bottom:tt,left:Qt}=ze.getBoundingClientRect();let Vt;Mt.indexOf("vertical")===0?Vt=(tt-ve.y)/Zt:Vt=(ve.x-Qt)/At,Mt.indexOf("-reverse")!==-1&&(Vt=1-Vt);let Gt;if(Gt=HPe(Vt,l,o),S)Gt=WPe(Gt,S,l);else{const pr=jX(ee,Gt);Gt=ee[pr]}Gt=Dg(Gt,l,o);let vn=0;if(ne){ke?vn=Pt.current:vn=jX(q,Gt),i&&(Gt=Dg(Gt,q[vn-1]||-1/0,q[vn+1]||1/0));const pr=Gt;Gt=WX({values:q,newValue:Gt,index:vn}),i&&ke||(vn=Gt.indexOf(pr),Pt.current=vn)}return{newValue:Gt,activeIndex:vn}},wt=qs(ve=>{const ke=PA(ve,k);if(!ke)return;if(F.current+=1,ve.type==="mousemove"&&ve.buttons===0){vt(ve);return}const{newValue:ze,activeIndex:At}=ot({finger:ke,move:!0});MA({sliderRef:Re,activeIndex:At,setActive:C}),V(ze),!M&&F.current>zPe&&U(!0),ie&&!LA(ze,G)&&ie(ve,ze,At)}),vt=qs(ve=>{const ke=PA(ve,k);if(U(!1),!ke)return;const{newValue:ze}=ot({finger:ke,move:!0});C(-1),ve.type==="touchend"&&N(-1),f&&f(ve,ze),k.current=void 0,z()}),Wt=qs(ve=>{if(r)return;QX()||ve.preventDefault();const ke=ve.changedTouches[0];ke!=null&&(k.current=ke.identifier);const ze=PA(ve,k);if(ze!==!1){const{newValue:Zt,activeIndex:tt}=ot({finger:ze});MA({sliderRef:Re,activeIndex:tt,setActive:C}),V(Zt),ie&&!LA(Zt,G)&&ie(ve,Zt,tt)}F.current=0;const At=ga(Re.current);At.addEventListener("touchmove",wt,{passive:!0}),At.addEventListener("touchend",vt,{passive:!0})}),z=L.useCallback(()=>{const ve=ga(Re.current);ve.removeEventListener("mousemove",wt),ve.removeEventListener("mouseup",vt),ve.removeEventListener("touchmove",wt),ve.removeEventListener("touchend",vt)},[vt,wt]);L.useEffect(()=>{const{current:ve}=Re;return ve.addEventListener("touchstart",Wt,{passive:QX()}),()=>{ve.removeEventListener("touchstart",Wt),z()}},[z,Wt]),L.useEffect(()=>{r&&z()},[r,z]);const K=ve=>ke=>{var ze;if((ze=ve.onMouseDown)==null||ze.call(ve,ke),r||ke.defaultPrevented||ke.button!==0)return;ke.preventDefault();const At=PA(ke,k);if(At!==!1){const{newValue:tt,activeIndex:Qt}=ot({finger:At});MA({sliderRef:Re,activeIndex:Qt,setActive:C}),V(tt),ie&&!LA(tt,G)&&ie(ke,tt,Qt)}F.current=0;const Zt=ga(Re.current);Zt.addEventListener("mousemove",wt,{passive:!0}),Zt.addEventListener("mouseup",vt)},ue=$3(ne?q[0]:l,l,o),_e=$3(q[q.length-1],l,o)-ue,Ie=(ve={})=>{const ke=gE(ve),ze={onMouseDown:K(ke||{})},At=Q({},ke,ze);return Q({},ve,{ref:oe},At)},Ce=ve=>ke=>{var ze;(ze=ve.onMouseOver)==null||ze.call(ve,ke);const At=Number(ke.currentTarget.getAttribute("data-index"));N(At)},Qe=ve=>ke=>{var ze;(ze=ve.onMouseLeave)==null||ze.call(ve,ke),N(-1)};return{active:_,axis:Mt,axisProps:QPe,dragging:M,focusedThumbIndex:Ee,getHiddenInputProps:(ve={})=>{var ke;const ze=gE(ve),At={onChange:ct(ze||{}),onFocus:rt(ze||{}),onBlur:qe(ze||{}),onKeyDown:Tt(ze||{})},Zt=Q({},ze,At);return Q({tabIndex:w,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":b(o),"aria-valuemin":b(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(ke=e.step)!=null?ke:void 0,disabled:r},ve,Zt,{style:Q({},i3e,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Ie,getThumbProps:(ve={})=>{const ke=gE(ve),ze={onMouseOver:Ce(ke||{}),onMouseLeave:Qe(ke||{})};return Q({},ve,ke,ze)},marks:re,open:R,range:ne,rootRef:oe,trackLeap:_e,trackOffset:ue,values:q,getThumbStyle:ve=>({pointerEvents:_!==-1&&_!==ve?"none":void 0})}}const qPe=e=>!e||!zf(e);function YPe(e){return hn("MuiSlider",e)}const Ec=mn("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),ZPe=e=>{const{open:t}=e;return{offset:Rt(t&&Ec.valueLabelOpen),circle:Ec.valueLabelCircle,label:Ec.valueLabelLabel}};function XPe(e){const{children:t,className:n,value:r}=e,i=ZPe(e);return t?L.cloneElement(t,{className:Rt(t.props.className)},D.jsxs(L.Fragment,{children:[t.props.children,D.jsx("span",{className:Rt(i.offset,n),"aria-hidden":!0,children:D.jsx("span",{className:i.circle,children:D.jsx("span",{className:i.label,children:r})})})]})):null}const KPe=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function GX(e){return e}const JPe=pt("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ft(n.color)}`],n.size!=="medium"&&t[`size${ft(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Ec.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Ec.dragging}`]:{[`& .${Ec.thumb}, & .${Ec.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),e8e=pt("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),t8e=pt("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n,track:"inverted"},style:Q({},e.vars?{backgroundColor:e.vars.palette.Slider[`${n}Track`],borderColor:e.vars.palette.Slider[`${n}Track`]}:Q({backgroundColor:bw(e.palette[n].main,.62),borderColor:bw(e.palette[n].main,.62)},e.applyStyles("dark",{backgroundColor:gw(e.palette[n].main,.5)}),e.applyStyles("dark",{borderColor:gw(e.palette[n].main,.5)})))}))]}}),n8e=pt("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${ft(n.color)}`],n.size!=="medium"&&t[`thumbSize${ft(n.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Ec.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{[`&:hover, &.${Ec.focusVisible}`]:Q({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Yn(e.palette[n].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${Ec.active}`]:Q({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Yn(e.palette[n].main,.16)}`})}}))]}}),r8e=pt(XPe,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>Q({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Ec.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Ec.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),i8e=pt("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>fR(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),a8e=pt("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>fR(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>Q({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),s8e=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:a,classes:s,color:o,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",o&&`color${ft(o)}`,l&&`size${ft(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${ft(l)}`,o&&`thumbColor${ft(o)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return gn(u,YPe,s)},o8e=({children:e})=>e,l8e=L.forwardRef(function(t,n){var r,i,a,s,o,l,u,d,f,p,g,b,S,E,w,x,k,_,C,R,N,M,U,F;const G=bn({props:t,name:"MuiSlider"}),V=_B(),{"aria-label":ie,"aria-valuetext":ne,"aria-labelledby":q,component:re="span",components:ee={},componentsProps:Z={},color:se="primary",classes:W,className:Pe,disableSwap:Ee=!1,disabled:X=!1,getAriaLabel:Re,getAriaValueText:Ue,marks:oe=!1,max:rt=100,min:qe=0,orientation:et="horizontal",shiftStep:Tt=10,size:ct="medium",step:Pt=1,scale:Mt=GX,slotProps:ot,slots:wt,track:vt="normal",valueLabelDisplay:Wt="off",valueLabelFormat:z=GX}=G,K=It(G,KPe),ue=Q({},G,{isRtl:V,max:rt,min:qe,classes:W,disabled:X,disableSwap:Ee,orientation:et,marks:oe,color:se,size:ct,step:Pt,shiftStep:Tt,scale:Mt,track:vt,valueLabelDisplay:Wt,valueLabelFormat:z}),{axisProps:_e,getRootProps:Ie,getHiddenInputProps:Ce,getThumbProps:Qe,open:Ot,active:Ne,axis:ye,focusedThumbIndex:ve,range:ke,dragging:ze,marks:At,values:Zt,trackOffset:tt,trackLeap:Qt,getThumbStyle:Vt}=VPe(Q({},ue,{rootRef:n}));ue.marked=At.length>0&&At.some(Le=>Le.label),ue.dragging=ze,ue.focusedThumbIndex=ve;const Gt=s8e(ue),vn=(r=(i=wt==null?void 0:wt.root)!=null?i:ee.Root)!=null?r:JPe,pr=(a=(s=wt==null?void 0:wt.rail)!=null?s:ee.Rail)!=null?a:e8e,Cr=(o=(l=wt==null?void 0:wt.track)!=null?l:ee.Track)!=null?o:t8e,Tr=(u=(d=wt==null?void 0:wt.thumb)!=null?d:ee.Thumb)!=null?u:n8e,jr=(f=(p=wt==null?void 0:wt.valueLabel)!=null?p:ee.ValueLabel)!=null?f:r8e,vi=(g=(b=wt==null?void 0:wt.mark)!=null?b:ee.Mark)!=null?g:i8e,si=(S=(E=wt==null?void 0:wt.markLabel)!=null?E:ee.MarkLabel)!=null?S:a8e,Ai=(w=(x=wt==null?void 0:wt.input)!=null?x:ee.Input)!=null?w:"input",oi=(k=ot==null?void 0:ot.root)!=null?k:Z.root,ja=(_=ot==null?void 0:ot.rail)!=null?_:Z.rail,_i=(C=ot==null?void 0:ot.track)!=null?C:Z.track,Os=(R=ot==null?void 0:ot.thumb)!=null?R:Z.thumb,Ci=(N=ot==null?void 0:ot.valueLabel)!=null?N:Z.valueLabel,Mr=(M=ot==null?void 0:ot.mark)!=null?M:Z.mark,Kn=(U=ot==null?void 0:ot.markLabel)!=null?U:Z.markLabel,Wr=(F=ot==null?void 0:ot.input)!=null?F:Z.input,We=Xo({elementType:vn,getSlotProps:Ie,externalSlotProps:oi,externalForwardedProps:K,additionalProps:Q({},qPe(vn)&&{as:re}),ownerState:Q({},ue,oi==null?void 0:oi.ownerState),className:[Gt.root,Pe]}),lt=Xo({elementType:pr,externalSlotProps:ja,ownerState:ue,className:Gt.rail}),de=Xo({elementType:Cr,externalSlotProps:_i,additionalProps:{style:Q({},_e[ye].offset(tt),_e[ye].leap(Qt))},ownerState:Q({},ue,_i==null?void 0:_i.ownerState),className:Gt.track}),me=Xo({elementType:Tr,getSlotProps:Qe,externalSlotProps:Os,ownerState:Q({},ue,Os==null?void 0:Os.ownerState),className:Gt.thumb}),Be=Xo({elementType:jr,externalSlotProps:Ci,ownerState:Q({},ue,Ci==null?void 0:Ci.ownerState),className:Gt.valueLabel}),Ke=Xo({elementType:vi,externalSlotProps:Mr,ownerState:ue,className:Gt.mark}),yt=Xo({elementType:si,externalSlotProps:Kn,ownerState:ue,className:Gt.markLabel}),Xt=Xo({elementType:Ai,getSlotProps:Ce,externalSlotProps:Wr,ownerState:ue});return D.jsxs(vn,Q({},We,{children:[D.jsx(pr,Q({},lt)),D.jsx(Cr,Q({},de)),At.filter(Le=>Le.value>=qe&&Le.value<=rt).map((Le,Te)=>{const dt=$3(Le.value,qe,rt),Je=_e[ye].offset(dt);let kt;return vt===!1?kt=Zt.indexOf(Le.value)!==-1:kt=vt==="normal"&&(ke?Le.value>=Zt[0]&&Le.value<=Zt[Zt.length-1]:Le.value<=Zt[0])||vt==="inverted"&&(ke?Le.value<=Zt[0]||Le.value>=Zt[Zt.length-1]:Le.value>=Zt[0]),D.jsxs(L.Fragment,{children:[D.jsx(vi,Q({"data-index":Te},Ke,!zf(vi)&&{markActive:kt},{style:Q({},Je,Ke.style),className:Rt(Ke.className,kt&&Gt.markActive)})),Le.label!=null?D.jsx(si,Q({"aria-hidden":!0,"data-index":Te},yt,!zf(si)&&{markLabelActive:kt},{style:Q({},Je,yt.style),className:Rt(Gt.markLabel,yt.className,kt&&Gt.markLabelActive),children:Le.label})):null]},Te)}),Zt.map((Le,Te)=>{const dt=$3(Le,qe,rt),Je=_e[ye].offset(dt),kt=Wt==="off"?o8e:jr;return D.jsx(kt,Q({},!zf(kt)&&{valueLabelFormat:z,valueLabelDisplay:Wt,value:typeof z=="function"?z(Mt(Le),Te):z,index:Te,open:Ot===Te||Ne===Te||Wt==="on",disabled:X},Be,{children:D.jsx(Tr,Q({"data-index":Te},me,{className:Rt(Gt.thumb,me.className,Ne===Te&&Gt.active,ve===Te&&Gt.focusVisible),style:Q({},Je,Vt(Te),me.style),children:D.jsx(Ai,Q({"data-index":Te,"aria-label":Re?Re(Te):ie,"aria-valuenow":Mt(Le),"aria-labelledby":q,"aria-valuetext":Ue?Ue(Mt(Le),Te):ne,value:Zt[Te]},Xt))}))}),Te)})]}))});function u8e(e){return hn("MuiTooltip",e)}const W0=mn("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),c8e=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function d8e(e){return Math.round(e*1e5)/1e5}const f8e=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:a}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${ft(a.split("-")[0])}`],arrow:["arrow"]};return gn(s,u8e,t)},h8e=pt(mR,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>Q({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${W0.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${W0.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${W0.arrow}`]:Q({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${W0.arrow}`]:Q({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),p8e=pt("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${ft(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>Q({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Yn(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${d8e(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${W0.popper}[data-popper-placement*="left"] &`]:Q({transformOrigin:"right center"},t.isRtl?Q({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):Q({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${W0.popper}[data-popper-placement*="right"] &`]:Q({transformOrigin:"left center"},t.isRtl?Q({marginRight:"14px"},t.touch&&{marginRight:"24px"}):Q({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${W0.popper}[data-popper-placement*="top"] &`]:Q({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${W0.popper}[data-popper-placement*="bottom"] &`]:Q({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),m8e=pt("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Yn(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let FA=!1;const VX=new _x;let f2={x:0,y:0};function BA(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Q0=L.forwardRef(function(t,n){var r,i,a,s,o,l,u,d,f,p,g,b,S,E,w,x,k,_,C;const R=bn({props:t,name:"MuiTooltip"}),{arrow:N=!1,children:M,components:U={},componentsProps:F={},describeChild:G=!1,disableFocusListener:V=!1,disableHoverListener:ie=!1,disableInteractive:ne=!1,disableTouchListener:q=!1,enterDelay:re=100,enterNextDelay:ee=0,enterTouchDelay:Z=700,followCursor:se=!1,id:W,leaveDelay:Pe=0,leaveTouchDelay:Ee=1500,onClose:X,onOpen:Re,open:Ue,placement:oe="bottom",PopperComponent:rt,PopperProps:qe={},slotProps:et={},slots:Tt={},title:ct,TransitionComponent:Pt=M3,TransitionProps:Mt}=R,ot=It(R,c8e),wt=L.isValidElement(M)?M:D.jsx("span",{children:M}),vt=Xf(),Wt=_B(),[z,K]=L.useState(),[ue,_e]=L.useState(null),Ie=L.useRef(!1),Ce=ne||se,Qe=Hg(),Ot=Hg(),Ne=Hg(),ye=Hg(),[ve,ke]=Uf({controlled:Ue,default:!1,name:"Tooltip",state:"open"});let ze=ve;const At=yO(W),Zt=L.useRef(),tt=qs(()=>{Zt.current!==void 0&&(document.body.style.WebkitUserSelect=Zt.current,Zt.current=void 0),ye.clear()});L.useEffect(()=>tt,[tt]);const Qt=_t=>{VX.clear(),FA=!0,ke(!0),Re&&!ze&&Re(_t)},Vt=qs(_t=>{VX.start(800+Pe,()=>{FA=!1}),ke(!1),X&&ze&&X(_t),Qe.start(vt.transitions.duration.shortest,()=>{Ie.current=!1})}),Gt=_t=>{Ie.current&&_t.type!=="touchstart"||(z&&z.removeAttribute("title"),Ot.clear(),Ne.clear(),re||FA&&ee?Ot.start(FA?ee:re,()=>{Qt(_t)}):Qt(_t))},vn=_t=>{Ot.clear(),Ne.start(Pe,()=>{Vt(_t)})},{isFocusVisibleRef:pr,onBlur:Cr,onFocus:Tr,ref:jr}=dR(),[,vi]=L.useState(!1),si=_t=>{Cr(_t),pr.current===!1&&(vi(!1),vn(_t))},Ai=_t=>{z||K(_t.currentTarget),Tr(_t),pr.current===!0&&(vi(!0),Gt(_t))},oi=_t=>{Ie.current=!0;const qt=wt.props;qt.onTouchStart&&qt.onTouchStart(_t)},ja=_t=>{oi(_t),Ne.clear(),Qe.clear(),tt(),Zt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ye.start(Z,()=>{document.body.style.WebkitUserSelect=Zt.current,Gt(_t)})},_i=_t=>{wt.props.onTouchEnd&&wt.props.onTouchEnd(_t),tt(),Ne.start(Ee,()=>{Vt(_t)})};L.useEffect(()=>{if(!ze)return;function _t(qt){(qt.key==="Escape"||qt.key==="Esc")&&Vt(qt)}return document.addEventListener("keydown",_t),()=>{document.removeEventListener("keydown",_t)}},[Vt,ze]);const Os=Er(wt.ref,jr,K,n);!ct&&ct!==0&&(ze=!1);const Ci=L.useRef(),Mr=_t=>{const qt=wt.props;qt.onMouseMove&&qt.onMouseMove(_t),f2={x:_t.clientX,y:_t.clientY},Ci.current&&Ci.current.update()},Kn={},Wr=typeof ct=="string";G?(Kn.title=!ze&&Wr&&!ie?ct:null,Kn["aria-describedby"]=ze?At:null):(Kn["aria-label"]=Wr?ct:null,Kn["aria-labelledby"]=ze&&!Wr?At:null);const We=Q({},Kn,ot,wt.props,{className:Rt(ot.className,wt.props.className),onTouchStart:oi,ref:Os},se?{onMouseMove:Mr}:{}),lt={};q||(We.onTouchStart=ja,We.onTouchEnd=_i),ie||(We.onMouseOver=BA(Gt,We.onMouseOver),We.onMouseLeave=BA(vn,We.onMouseLeave),Ce||(lt.onMouseOver=Gt,lt.onMouseLeave=vn)),V||(We.onFocus=BA(Ai,We.onFocus),We.onBlur=BA(si,We.onBlur),Ce||(lt.onFocus=Ai,lt.onBlur=si));const de=L.useMemo(()=>{var _t;let qt=[{name:"arrow",enabled:!!ue,options:{element:ue,padding:4}}];return(_t=qe.popperOptions)!=null&&_t.modifiers&&(qt=qt.concat(qe.popperOptions.modifiers)),Q({},qe.popperOptions,{modifiers:qt})},[ue,qe]),me=Q({},R,{isRtl:Wt,arrow:N,disableInteractive:Ce,placement:oe,PopperComponentProp:rt,touch:Ie.current}),Be=f8e(me),Ke=(r=(i=Tt.popper)!=null?i:U.Popper)!=null?r:h8e,yt=(a=(s=(o=Tt.transition)!=null?o:U.Transition)!=null?s:Pt)!=null?a:M3,Xt=(l=(u=Tt.tooltip)!=null?u:U.Tooltip)!=null?l:p8e,Le=(d=(f=Tt.arrow)!=null?f:U.Arrow)!=null?d:m8e,Te=Cy(Ke,Q({},qe,(p=et.popper)!=null?p:F.popper,{className:Rt(Be.popper,qe==null?void 0:qe.className,(g=(b=et.popper)!=null?b:F.popper)==null?void 0:g.className)}),me),dt=Cy(yt,Q({},Mt,(S=et.transition)!=null?S:F.transition),me),Je=Cy(Xt,Q({},(E=et.tooltip)!=null?E:F.tooltip,{className:Rt(Be.tooltip,(w=(x=et.tooltip)!=null?x:F.tooltip)==null?void 0:w.className)}),me),kt=Cy(Le,Q({},(k=et.arrow)!=null?k:F.arrow,{className:Rt(Be.arrow,(_=(C=et.arrow)!=null?C:F.arrow)==null?void 0:_.className)}),me);return D.jsxs(L.Fragment,{children:[L.cloneElement(wt,We),D.jsx(Ke,Q({as:rt??mR,placement:oe,anchorEl:se?{getBoundingClientRect:()=>({top:f2.y,left:f2.x,right:f2.x,bottom:f2.y,width:0,height:0})}:z,popperRef:Ci,open:z?ze:!1,id:At,transition:!0},lt,Te,{popperOptions:de,children:({TransitionProps:_t})=>D.jsx(yt,Q({timeout:vt.transitions.duration.shorter},_t,dt,{children:D.jsxs(Xt,Q({},Je,{children:[ct,N?D.jsx(Le,Q({},kt,{ref:_e})):null]}))}))}))]})});function g8e(e){return hn("MuiSwitch",e)}const Qo=mn("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),b8e=["className","color","edge","size","sx"],y8e=e=>{const{classes:t,edge:n,size:r,color:i,checked:a,disabled:s}=e,o={root:["root",n&&`edge${ft(n)}`,`size${ft(r)}`],switchBase:["switchBase",`color${ft(i)}`,a&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=gn(o,g8e,t);return Q({},t,l)},v8e=pt("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${ft(n.edge)}`],t[`size${ft(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Qo.thumb}`]:{width:16,height:16},[`& .${Qo.switchBase}`]:{padding:4,[`&.${Qo.checked}`]:{transform:"translateX(16px)"}}}}]}),O8e=pt(qB,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Qo.input}`]:t.input},n.color!=="default"&&t[`color${ft(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Qo.checked}`]:{transform:"translateX(20px)"},[`&.${Qo.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Qo.checked} + .${Qo.track}`]:{opacity:.5},[`&.${Qo.disabled} + .${Qo.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Qo.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Yn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${Qo.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Yn(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Qo.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?bw(e.palette[t].main,.62):gw(e.palette[t].main,.55)}`}},[`&.${Qo.checked} + .${Qo.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),S8e=pt("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),E8e=pt("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),w8e=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiSwitch"}),{className:i,color:a="primary",edge:s=!1,size:o="medium",sx:l}=r,u=It(r,b8e),d=Q({},r,{color:a,edge:s,size:o}),f=y8e(d),p=D.jsx(E8e,{className:f.thumb,ownerState:d});return D.jsxs(v8e,{className:Rt(f.root,i),sx:l,ownerState:d,children:[D.jsx(O8e,Q({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:d},u,{classes:Q({},f,{root:f.switchBase})})),D.jsx(S8e,{className:f.track,ownerState:d})]})}),que=L.createContext();function x8e(e){return hn("MuiTable",e)}mn("MuiTable",["root","stickyHeader"]);const T8e=["className","component","padding","size","stickyHeader"],k8e=e=>{const{classes:t,stickyHeader:n}=e;return gn({root:["root",n&&"stickyHeader"]},x8e,t)},A8e=pt("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>Q({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Q({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),qX="table",_8e=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiTable"}),{className:i,component:a=qX,padding:s="normal",size:o="medium",stickyHeader:l=!1}=r,u=It(r,T8e),d=Q({},r,{component:a,padding:s,size:o,stickyHeader:l}),f=k8e(d),p=L.useMemo(()=>({padding:s,size:o,stickyHeader:l}),[s,o,l]);return D.jsx(que.Provider,{value:p,children:D.jsx(A8e,Q({as:a,role:a===qX?null:"table",ref:n,className:Rt(f.root,i),ownerState:d},u))})}),xR=L.createContext();function C8e(e){return hn("MuiTableBody",e)}mn("MuiTableBody",["root"]);const R8e=["className","component"],I8e=e=>{const{classes:t}=e;return gn({root:["root"]},C8e,t)},N8e=pt("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),D8e={variant:"body"},YX="tbody",P8e=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiTableBody"}),{className:i,component:a=YX}=r,s=It(r,R8e),o=Q({},r,{component:a}),l=I8e(o);return D.jsx(xR.Provider,{value:D8e,children:D.jsx(N8e,Q({className:Rt(l.root,i),as:a,ref:n,role:a===YX?null:"rowgroup",ownerState:o},s))})});function M8e(e){return hn("MuiTableCell",e)}const L8e=mn("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),$8e=["align","className","component","padding","scope","size","sortDirection","variant"],F8e=e=>{const{classes:t,variant:n,align:r,padding:i,size:a,stickyHeader:s}=e,o={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${ft(r)}`,i!=="normal"&&`padding${ft(i)}`,`size${ft(a)}`]};return gn(o,M8e,t)},B8e=pt("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ft(n.size)}`],n.padding!=="normal"&&t[`padding${ft(n.padding)}`],n.align!=="inherit"&&t[`align${ft(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>Q({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?bw(Yn(e.palette.divider,1),.88):gw(Yn(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${L8e.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Vb=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:s,padding:o,scope:l,size:u,sortDirection:d,variant:f}=r,p=It(r,$8e),g=L.useContext(que),b=L.useContext(xR),S=b&&b.variant==="head";let E;s?E=s:E=S?"th":"td";let w=l;E==="td"?w=void 0:!w&&S&&(w="col");const x=f||b&&b.variant,k=Q({},r,{align:i,component:E,padding:o||(g&&g.padding?g.padding:"normal"),size:u||(g&&g.size?g.size:"medium"),sortDirection:d,stickyHeader:x==="head"&&g&&g.stickyHeader,variant:x}),_=F8e(k);let C=null;return d&&(C=d==="asc"?"ascending":"descending"),D.jsx(B8e,Q({as:E,ref:n,className:Rt(_.root,a),"aria-sort":C,scope:w,ownerState:k},p))});function U8e(e){return hn("MuiTableContainer",e)}mn("MuiTableContainer",["root"]);const z8e=["className","component"],H8e=e=>{const{classes:t}=e;return gn({root:["root"]},U8e,t)},j8e=pt("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),W8e=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiTableContainer"}),{className:i,component:a="div"}=r,s=It(r,z8e),o=Q({},r,{component:a}),l=H8e(o);return D.jsx(j8e,Q({ref:n,as:a,className:Rt(l.root,i),ownerState:o},s))});function Q8e(e){return hn("MuiTableHead",e)}mn("MuiTableHead",["root"]);const G8e=["className","component"],V8e=e=>{const{classes:t}=e;return gn({root:["root"]},Q8e,t)},q8e=pt("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Y8e={variant:"head"},ZX="thead",Z8e=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiTableHead"}),{className:i,component:a=ZX}=r,s=It(r,G8e),o=Q({},r,{component:a}),l=V8e(o);return D.jsx(xR.Provider,{value:Y8e,children:D.jsx(q8e,Q({as:a,className:Rt(l.root,i),ref:n,role:a===ZX?null:"rowgroup",ownerState:o},s))})});function X8e(e){return hn("MuiToolbar",e)}mn("MuiToolbar",["root","gutters","regular","dense"]);const K8e=["className","component","disableGutters","variant"],J8e=e=>{const{classes:t,disableGutters:n,variant:r}=e;return gn({root:["root",!n&&"gutters",r]},X8e,t)},e9e=pt("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>Q({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),iU=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiToolbar"}),{className:i,component:a="div",disableGutters:s=!1,variant:o="regular"}=r,l=It(r,K8e),u=Q({},r,{component:a,disableGutters:s,variant:o}),d=J8e(u);return D.jsx(e9e,Q({as:a,className:Rt(d.root,i),ref:n,ownerState:u},l))});function t9e(e){return hn("MuiTableRow",e)}const XX=mn("MuiTableRow",["root","selected","hover","head","footer"]),n9e=["className","component","hover","selected"],r9e=e=>{const{classes:t,selected:n,hover:r,head:i,footer:a}=e;return gn({root:["root",n&&"selected",r&&"hover",i&&"head",a&&"footer"]},t9e,t)},i9e=pt("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${XX.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${XX.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Yn(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Yn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),KX="tr",JX=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiTableRow"}),{className:i,component:a=KX,hover:s=!1,selected:o=!1}=r,l=It(r,n9e),u=L.useContext(xR),d=Q({},r,{component:a,hover:s,selected:o,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=r9e(d);return D.jsx(i9e,Q({as:a,ref:n,className:Rt(f.root,i),role:a===KX?null:"row",ownerState:d},l))});function a9e(e){return hn("MuiTextField",e)}mn("MuiTextField",["root"]);const s9e=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],o9e={standard:KB,filled:ZB,outlined:tU},l9e=e=>{const{classes:t}=e;return gn({root:["root"]},a9e,t)},u9e=pt(Qc,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Nx=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:a=!1,children:s,className:o,color:l="primary",defaultValue:u,disabled:d=!1,error:f=!1,FormHelperTextProps:p,fullWidth:g=!1,helperText:b,id:S,InputLabelProps:E,inputProps:w,InputProps:x,inputRef:k,label:_,maxRows:C,minRows:R,multiline:N=!1,name:M,onBlur:U,onChange:F,onFocus:G,placeholder:V,required:ie=!1,rows:ne,select:q=!1,SelectProps:re,type:ee,value:Z,variant:se="outlined"}=r,W=It(r,s9e),Pe=Q({},r,{autoFocus:a,color:l,disabled:d,error:f,fullWidth:g,multiline:N,required:ie,select:q,variant:se}),Ee=l9e(Pe),X={};se==="outlined"&&(E&&typeof E.shrink<"u"&&(X.notched=E.shrink),X.label=_),q&&((!re||!re.native)&&(X.id=void 0),X["aria-describedby"]=void 0);const Re=yO(S),Ue=b&&Re?`${Re}-helper-text`:void 0,oe=_&&Re?`${Re}-label`:void 0,rt=o9e[se],qe=D.jsx(rt,Q({"aria-describedby":Ue,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:g,multiline:N,name:M,rows:ne,maxRows:C,minRows:R,type:ee,value:Z,id:Re,inputRef:k,onBlur:U,onChange:F,onFocus:G,placeholder:V,inputProps:w},X,x));return D.jsxs(u9e,Q({className:Rt(Ee.root,o),disabled:d,error:f,fullWidth:g,ref:n,required:ie,color:l,variant:se,ownerState:Pe},W,{children:[_!=null&&_!==""&&D.jsx(Fue,Q({htmlFor:Re,id:oe},E,{children:_})),q?D.jsx(rU,Q({"aria-describedby":Ue,id:Re,labelId:oe,value:Z,input:qe},re,{children:s})):qe,b&&D.jsx(wO,Q({id:Ue},p,{children:b}))]}))});function c9e(e){return hn("MuiToggleButton",e)}const Iy=mn("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),Yue=L.createContext({}),Zue=L.createContext(void 0);function d9e(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.indexOf(e)>=0:e===t}const f9e=["value"],h9e=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],p9e=e=>{const{classes:t,fullWidth:n,selected:r,disabled:i,size:a,color:s}=e,o={root:["root",r&&"selected",i&&"disabled",n&&"fullWidth",`size${ft(a)}`,s]};return gn(o,c9e,t)},m9e=pt(Vf,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${ft(n.size)}`]]}})(({theme:e,ownerState:t})=>{let n=t.color==="standard"?e.palette.text.primary:e.palette[t.color].main,r;return e.vars&&(n=t.color==="standard"?e.vars.palette.text.primary:e.vars.palette[t.color].main,r=t.color==="standard"?e.vars.palette.text.primaryChannel:e.vars.palette[t.color].mainChannel),Q({},e.typography.button,{borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active},t.fullWidth&&{width:"100%"},{[`&.${Iy.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:kA(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Iy.selected}`]:{color:n,backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:kA(n,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${r} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:kA(n,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:kA(n,e.palette.action.selectedOpacity)}}}},t.size==="small"&&{padding:7,fontSize:e.typography.pxToRem(13)},t.size==="large"&&{padding:15,fontSize:e.typography.pxToRem(15)})}),m4=L.forwardRef(function(t,n){const r=L.useContext(Yue),{value:i}=r,a=It(r,f9e),s=L.useContext(Zue),o=Lv(Q({},a,{selected:d9e(t.value,i)}),t),l=bn({props:o,name:"MuiToggleButton"}),{children:u,className:d,color:f="standard",disabled:p=!1,disableFocusRipple:g=!1,fullWidth:b=!1,onChange:S,onClick:E,selected:w,size:x="medium",value:k}=l,_=It(l,h9e),C=Q({},l,{color:f,disabled:p,disableFocusRipple:g,fullWidth:b,size:x}),R=p9e(C),N=U=>{E&&(E(U,k),U.defaultPrevented)||S&&S(U,k)},M=s||"";return D.jsx(m9e,Q({className:Rt(a.className,R.root,d,M),disabled:p,focusRipple:!g,ref:n,onClick:N,onChange:S,value:k,ownerState:C,"aria-pressed":w},_,{children:u}))});function g9e(e){return hn("MuiToggleButtonGroup",e)}const Xi=mn("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),b9e=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],y9e=e=>{const{classes:t,orientation:n,fullWidth:r,disabled:i}=e,a={root:["root",n==="vertical"&&"vertical",r&&"fullWidth"],grouped:["grouped",`grouped${ft(n)}`,i&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return gn(a,g9e,t)},v9e=pt("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Xi.grouped}`]:t.grouped},{[`& .${Xi.grouped}`]:t[`grouped${ft(n.orientation)}`]},{[`& .${Xi.firstButton}`]:t.firstButton},{[`& .${Xi.lastButton}`]:t.lastButton},{[`& .${Xi.middleButton}`]:t.middleButton},t.root,n.orientation==="vertical"&&t.vertical,n.fullWidth&&t.fullWidth]}})(({ownerState:e,theme:t})=>Q({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},e.orientation==="vertical"&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${Xi.grouped}`]:Q({},e.orientation==="horizontal"?{[`&.${Xi.selected} + .${Xi.grouped}.${Xi.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${Xi.selected} + .${Xi.grouped}.${Xi.selected}`]:{borderTop:0,marginTop:0}})},e.orientation==="horizontal"?{[`& .${Xi.firstButton},& .${Xi.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Xi.lastButton},& .${Xi.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${Xi.firstButton},& .${Xi.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${Xi.lastButton},& .${Xi.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},e.orientation==="horizontal"?{[`& .${Xi.lastButton}.${Iy.disabled},& .${Xi.middleButton}.${Iy.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${Xi.lastButton}.${Iy.disabled},& .${Xi.middleButton}.${Iy.disabled}`]:{borderTop:"1px solid transparent"}})),Xue=L.forwardRef(function(t,n){const r=bn({props:t,name:"MuiToggleButtonGroup"}),{children:i,className:a,color:s="standard",disabled:o=!1,exclusive:l=!1,fullWidth:u=!1,onChange:d,orientation:f="horizontal",size:p="medium",value:g}=r,b=It(r,b9e),S=Q({},r,{disabled:o,fullWidth:u,orientation:f,size:p}),E=y9e(S),w=L.useCallback((N,M)=>{if(!d)return;const U=g&&g.indexOf(M);let F;g&&U>=0?(F=g.slice(),F.splice(U,1)):F=g?g.concat(M):[M],d(N,F)},[d,g]),x=L.useCallback((N,M)=>{d&&d(N,g===M?null:M)},[d,g]),k=L.useMemo(()=>({className:E.grouped,onChange:l?x:w,value:g,size:p,fullWidth:u,color:s,disabled:o}),[E.grouped,l,x,w,g,p,u,s,o]),_=r3e(i),C=_.length,R=N=>{const M=N===0,U=N===C-1;return M&&U?"":M?E.firstButton:U?E.lastButton:E.middleButton};return D.jsx(v9e,Q({role:"group",className:Rt(E.root,a),ref:n,ownerState:S},b,{children:D.jsx(Yue.Provider,{value:k,children:_.map((N,M)=>D.jsx(Zue.Provider,{value:R(M),children:N},M))})}))});var Kue={exports:{}},Jue={};/** + * @license React + * use-sync-external-store-with-selector.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 Dx=L;function O9e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var S9e=typeof Object.is=="function"?Object.is:O9e,E9e=Dx.useSyncExternalStore,w9e=Dx.useRef,x9e=Dx.useEffect,T9e=Dx.useMemo,k9e=Dx.useDebugValue;Jue.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=w9e(null);if(a.current===null){var s={hasValue:!1,value:null};a.current=s}else s=a.current;a=T9e(function(){function l(g){if(!u){if(u=!0,d=g,g=r(g),i!==void 0&&s.hasValue){var b=s.value;if(i(b,g))return f=b}return f=g}if(b=f,S9e(d,g))return b;var S=r(g);return i!==void 0&&i(b,S)?b:(d=g,f=S)}var u=!1,d,f,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,i]);var o=E9e(e,a[0],a[1]);return x9e(function(){s.hasValue=!0,s.value=o},[o]),k9e(o),o};Kue.exports=Jue;var A9e=Kue.exports,Nu="default"in kv?on:kv,eK=Symbol.for("react-redux-context"),tK=typeof globalThis<"u"?globalThis:{};function _9e(){if(!Nu.createContext)return{};const e=tK[eK]??(tK[eK]=new Map);let t=e.get(Nu.createContext);return t||(t=Nu.createContext(null),e.set(Nu.createContext,t)),t}var vm=_9e(),C9e=()=>{throw new Error("uSES not initialized!")};function aU(e=vm){return function(){return Nu.useContext(e)}}var ece=aU(),tce=C9e,R9e=e=>{tce=e},I9e=(e,t)=>e===t;function N9e(e=vm){const t=e===vm?ece:aU(e),n=(r,i={})=>{const{equalityFn:a=I9e,devModeChecks:s={}}=typeof i=="function"?{equalityFn:i}:i,{store:o,subscription:l,getServerState:u,stabilityCheck:d,identityFunctionCheck:f}=t();Nu.useRef(!0);const p=Nu.useCallback({[r.name](b){return r(b)}}[r.name],[r,d,s.stabilityCheck]),g=tce(l.addNestedSub,o.getState,u||o.getState,p,a);return Nu.useDebugValue(g),g};return Object.assign(n,{withTypes:()=>n}),n}var Pr=N9e();function D9e(e){e()}function P9e(){let e=null,t=null;return{clear(){e=null,t=null},notify(){D9e(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var nK={notify(){},get:()=>[]};function M9e(e,t){let n,r=nK,i=0,a=!1;function s(S){d();const E=r.subscribe(S);let w=!1;return()=>{w||(w=!0,E(),f())}}function o(){r.notify()}function l(){b.onStateChange&&b.onStateChange()}function u(){return a}function d(){i++,n||(n=e.subscribe(l),r=P9e())}function f(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=nK)}function p(){a||(a=!0,d())}function g(){a&&(a=!1,f())}const b={addNestedSub:s,notifyNestedSubs:o,handleChangeWrapper:l,isSubscribed:u,trySubscribe:p,tryUnsubscribe:g,getListeners:()=>r};return b}var L9e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",$9e=typeof navigator<"u"&&navigator.product==="ReactNative",F9e=L9e||$9e?Nu.useLayoutEffect:Nu.useEffect;function B9e({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:a="once"}){const s=Nu.useMemo(()=>{const u=M9e(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:a}},[e,r,i,a]),o=Nu.useMemo(()=>e.getState(),[e]);F9e(()=>{const{subscription:u}=s;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),o!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[s,o]);const l=t||vm;return Nu.createElement(l.Provider,{value:s},n)}var U9e=B9e;function nce(e=vm){const t=e===vm?ece:aU(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var z9e=nce();function H9e(e=vm){const t=e===vm?z9e:nce(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Gu=H9e();R9e(A9e.useSyncExternalStoreWithSelector);/** + * @remix-run/router v1.19.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function fa(){return fa=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Hv(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function W9e(){return Math.random().toString(36).substr(2,8)}function iK(e,t){return{usr:e.state,key:e.key,idx:t}}function ww(e,t,n,r){return n===void 0&&(n=null),fa({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Pm(t):t,{state:n,key:t&&t.key||r||W9e()})}function Px(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Pm(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Q9e(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,s=i.history,o=Ya.Pop,l=null,u=d();u==null&&(u=0,s.replaceState(fa({},s.state,{idx:u}),""));function d(){return(s.state||{idx:null}).idx}function f(){o=Ya.Pop;let E=d(),w=E==null?null:E-u;u=E,l&&l({action:o,location:S.location,delta:w})}function p(E,w){o=Ya.Push;let x=ww(S.location,E,w);u=d()+1;let k=iK(x,u),_=S.createHref(x);try{s.pushState(k,"",_)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(_)}a&&l&&l({action:o,location:S.location,delta:1})}function g(E,w){o=Ya.Replace;let x=ww(S.location,E,w);u=d();let k=iK(x,u),_=S.createHref(x);s.replaceState(k,"",_),a&&l&&l({action:o,location:S.location,delta:0})}function b(E){let w=i.location.origin!=="null"?i.location.origin:i.location.href,x=typeof E=="string"?E:Px(E);return x=x.replace(/ $/,"%20"),br(w,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,w)}let S={get action(){return o},get location(){return e(i,s)},listen(E){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(rK,f),l=E,()=>{i.removeEventListener(rK,f),l=null}},createHref(E){return t(i,E)},createURL:b,encodeLocation(E){let w=b(E);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:p,replace:g,go(E){return s.go(E)}};return S}var bi;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(bi||(bi={}));const G9e=new Set(["lazy","caseSensitive","path","id","index","children"]);function V9e(e){return e.index===!0}function xw(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,a)=>{let s=[...n,String(a)],o=typeof i.id=="string"?i.id:s.join("-");if(br(i.index!==!0||!i.children,"Cannot specify children on an index route"),br(!r[o],'Found a route id collision on id "'+o+`". Route id's must be globally unique within Data Router usages`),V9e(i)){let l=fa({},i,t(i),{id:o});return r[o]=l,l}else{let l=fa({},i,t(i),{id:o,children:void 0});return r[o]=l,i.children&&(l.children=xw(i.children,t,s,r)),l}})}function Pg(e,t,n){return n===void 0&&(n="/"),g4(e,t,n,!1)}function g4(e,t,n,r){let i=typeof t=="string"?Pm(t):t,a=Mx(i.pathname||"/",n);if(a==null)return null;let s=rce(e);Y9e(s);let o=null;for(let l=0;o==null&&l{let l={relativePath:o===void 0?a.path||"":o,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};l.relativePath.startsWith("/")&&(br(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=sm([r,l.relativePath]),d=n.concat(l);a.children&&a.children.length>0&&(br(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),rce(a.children,t,d,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:nMe(u,a.index),routesMeta:d})};return e.forEach((a,s)=>{var o;if(a.path===""||!((o=a.path)!=null&&o.includes("?")))i(a,s);else for(let l of ice(a.path))i(a,s,l)}),t}function ice(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let s=ice(r.join("/")),o=[];return o.push(...s.map(l=>l===""?a:[a,l].join("/"))),i&&o.push(...s),o.map(l=>e.startsWith("/")&&l===""?"/":l)}function Y9e(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:rMe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Z9e=/^:[\w-]+$/,X9e=3,K9e=2,J9e=1,eMe=10,tMe=-2,aK=e=>e==="*";function nMe(e,t){let n=e.split("/"),r=n.length;return n.some(aK)&&(r+=tMe),t&&(r+=K9e),n.filter(i=>!aK(i)).reduce((i,a)=>i+(Z9e.test(a)?X9e:a===""?J9e:eMe),r)}function rMe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function iMe(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,i={},a="/",s=[];for(let o=0;o{let{paramName:p,isOptional:g}=d;if(p==="*"){let S=o[f]||"";s=a.slice(0,a.length-S.length).replace(/(.)\/+$/,"$1")}const b=o[f];return g&&!b?u[p]=void 0:u[p]=(b||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:s,pattern:e}}function aMe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Hv(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,o,l)=>(r.push({paramName:o,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function sMe(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Hv(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Mx(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function oMe(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Pm(e):e;return{pathname:n?n.startsWith("/")?n:lMe(n,t):t,search:cMe(r),hash:dMe(i)}}function lMe(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function cD(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function ace(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function sU(e,t){let n=ace(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function oU(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Pm(e):(i=fa({},e),br(!i.pathname||!i.pathname.includes("?"),cD("?","pathname","search",i)),br(!i.pathname||!i.pathname.includes("#"),cD("#","pathname","hash",i)),br(!i.search||!i.search.includes("#"),cD("#","search","hash",i)));let a=e===""||i.pathname==="",s=a?"/":i.pathname,o;if(s==null)o=n;else{let f=t.length-1;if(!r&&s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),f-=1;i.pathname=p.join("/")}o=f>=0?t[f]:"/"}let l=oMe(i,o),u=s&&s!=="/"&&s.endsWith("/"),d=(a||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}const sm=e=>e.join("/").replace(/\/\/+/g,"/"),uMe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),cMe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,dMe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class F3{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Lx(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const sce=["post","put","patch","delete"],fMe=new Set(sce),hMe=["get",...sce],pMe=new Set(hMe),mMe=new Set([301,302,303,307,308]),gMe=new Set([307,308]),dD={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},bMe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},h2={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},lU=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,yMe=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),oce="remix-router-transitions";function vMe(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;br(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let de=e.detectErrorBoundary;i=me=>({hasErrorBoundary:de(me)})}else i=yMe;let a={},s=xw(e.routes,i,void 0,a),o,l=e.basename||"/",u=e.unstable_dataStrategy||xMe,d=e.unstable_patchRoutesOnNavigation,f=fa({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),p=null,g=new Set,b=1e3,S=new Set,E=null,w=null,x=null,k=e.hydrationData!=null,_=Pg(s,e.history.location,l),C=null;if(_==null&&!d){let de=qo(404,{pathname:e.history.location.pathname}),{matches:me,route:Be}=gK(s);_=me,C={[Be.id]:de}}_&&!e.hydrationData&&Mr(_,s,e.history.location.pathname).active&&(_=null);let R;if(_)if(_.some(de=>de.route.lazy))R=!1;else if(!_.some(de=>de.route.loader))R=!0;else if(f.v7_partialHydration){let de=e.hydrationData?e.hydrationData.loaderData:null,me=e.hydrationData?e.hydrationData.errors:null,Be=Ke=>Ke.route.loader?typeof Ke.route.loader=="function"&&Ke.route.loader.hydrate===!0?!1:de&&de[Ke.route.id]!==void 0||me&&me[Ke.route.id]!==void 0:!0;if(me){let Ke=_.findIndex(yt=>me[yt.route.id]!==void 0);R=_.slice(0,Ke+1).every(Be)}else R=_.every(Be)}else R=e.hydrationData!=null;else if(R=!1,_=[],f.v7_partialHydration){let de=Mr(null,s,e.history.location.pathname);de.active&&de.matches&&(_=de.matches)}let N,M={historyAction:e.history.action,location:e.history.location,matches:_,initialized:R,navigation:dD,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||C,fetchers:new Map,blockers:new Map},U=Ya.Pop,F=!1,G,V=!1,ie=new Map,ne=null,q=!1,re=!1,ee=[],Z=new Set,se=new Map,W=0,Pe=-1,Ee=new Map,X=new Set,Re=new Map,Ue=new Map,oe=new Set,rt=new Map,qe=new Map,et=new Map,Tt=!1;function ct(){if(p=e.history.listen(de=>{let{action:me,location:Be,delta:Ke}=de;if(Tt){Tt=!1;return}Hv(qe.size===0||Ke!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let yt=vi({currentLocation:M.location,nextLocation:Be,historyAction:me});if(yt&&Ke!=null){Tt=!0,e.history.go(Ke*-1),jr(yt,{state:"blocked",location:Be,proceed(){jr(yt,{state:"proceeding",proceed:void 0,reset:void 0,location:Be}),e.history.go(Ke)},reset(){let Xt=new Map(M.blockers);Xt.set(yt,h2),ot({blockers:Xt})}});return}return z(me,Be)}),n){$Me(t,ie);let de=()=>FMe(t,ie);t.addEventListener("pagehide",de),ne=()=>t.removeEventListener("pagehide",de)}return M.initialized||z(Ya.Pop,M.location,{initialHydration:!0}),N}function Pt(){p&&p(),ne&&ne(),g.clear(),G&&G.abort(),M.fetchers.forEach((de,me)=>tt(me)),M.blockers.forEach((de,me)=>Tr(me))}function Mt(de){return g.add(de),()=>g.delete(de)}function ot(de,me){me===void 0&&(me={}),M=fa({},M,de);let Be=[],Ke=[];f.v7_fetcherPersist&&M.fetchers.forEach((yt,Xt)=>{yt.state==="idle"&&(oe.has(Xt)?Ke.push(Xt):Be.push(Xt))}),[...g].forEach(yt=>yt(M,{deletedFetchers:Ke,unstable_viewTransitionOpts:me.viewTransitionOpts,unstable_flushSync:me.flushSync===!0})),f.v7_fetcherPersist&&(Be.forEach(yt=>M.fetchers.delete(yt)),Ke.forEach(yt=>tt(yt)))}function wt(de,me,Be){var Ke,yt;let{flushSync:Xt}=Be===void 0?{}:Be,Le=M.actionData!=null&&M.navigation.formMethod!=null&&yd(M.navigation.formMethod)&&M.navigation.state==="loading"&&((Ke=de.state)==null?void 0:Ke._isRedirect)!==!0,Te;me.actionData?Object.keys(me.actionData).length>0?Te=me.actionData:Te=null:Le?Te=M.actionData:Te=null;let dt=me.loaderData?pK(M.loaderData,me.loaderData,me.matches||[],me.errors):M.loaderData,Je=M.blockers;Je.size>0&&(Je=new Map(Je),Je.forEach((qt,it)=>Je.set(it,h2)));let kt=F===!0||M.navigation.formMethod!=null&&yd(M.navigation.formMethod)&&((yt=de.state)==null?void 0:yt._isRedirect)!==!0;o&&(s=o,o=void 0),q||U===Ya.Pop||(U===Ya.Push?e.history.push(de,de.state):U===Ya.Replace&&e.history.replace(de,de.state));let _t;if(U===Ya.Pop){let qt=ie.get(M.location.pathname);qt&&qt.has(de.pathname)?_t={currentLocation:M.location,nextLocation:de}:ie.has(de.pathname)&&(_t={currentLocation:de,nextLocation:M.location})}else if(V){let qt=ie.get(M.location.pathname);qt?qt.add(de.pathname):(qt=new Set([de.pathname]),ie.set(M.location.pathname,qt)),_t={currentLocation:M.location,nextLocation:de}}ot(fa({},me,{actionData:Te,loaderData:dt,historyAction:U,location:de,initialized:!0,navigation:dD,revalidation:"idle",restoreScrollPosition:Ci(de,me.matches||M.matches),preventScrollReset:kt,blockers:Je}),{viewTransitionOpts:_t,flushSync:Xt===!0}),U=Ya.Pop,F=!1,V=!1,q=!1,re=!1,ee=[]}async function vt(de,me){if(typeof de=="number"){e.history.go(de);return}let Be=k8(M.location,M.matches,l,f.v7_prependBasename,de,f.v7_relativeSplatPath,me==null?void 0:me.fromRouteId,me==null?void 0:me.relative),{path:Ke,submission:yt,error:Xt}=oK(f.v7_normalizeFormMethod,!1,Be,me),Le=M.location,Te=ww(M.location,Ke,me&&me.state);Te=fa({},Te,e.history.encodeLocation(Te));let dt=me&&me.replace!=null?me.replace:void 0,Je=Ya.Push;dt===!0?Je=Ya.Replace:dt===!1||yt!=null&&yd(yt.formMethod)&&yt.formAction===M.location.pathname+M.location.search&&(Je=Ya.Replace);let kt=me&&"preventScrollReset"in me?me.preventScrollReset===!0:void 0,_t=(me&&me.unstable_flushSync)===!0,qt=vi({currentLocation:Le,nextLocation:Te,historyAction:Je});if(qt){jr(qt,{state:"blocked",location:Te,proceed(){jr(qt,{state:"proceeding",proceed:void 0,reset:void 0,location:Te}),vt(de,me)},reset(){let it=new Map(M.blockers);it.set(qt,h2),ot({blockers:it})}});return}return await z(Je,Te,{submission:yt,pendingError:Xt,preventScrollReset:kt,replace:me&&me.replace,enableViewTransition:me&&me.unstable_viewTransition,flushSync:_t})}function Wt(){if(ke(),ot({revalidation:"loading"}),M.navigation.state!=="submitting"){if(M.navigation.state==="idle"){z(M.historyAction,M.location,{startUninterruptedRevalidation:!0});return}z(U||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation})}}async function z(de,me,Be){G&&G.abort(),G=null,U=de,q=(Be&&Be.startUninterruptedRevalidation)===!0,Os(M.location,M.matches),F=(Be&&Be.preventScrollReset)===!0,V=(Be&&Be.enableViewTransition)===!0;let Ke=o||s,yt=Be&&Be.overrideNavigation,Xt=Pg(Ke,me,l),Le=(Be&&Be.flushSync)===!0,Te=Mr(Xt,Ke,me.pathname);if(Te.active&&Te.matches&&(Xt=Te.matches),!Xt){let{error:Vn,notFoundMatches:Ri,route:Dn}=si(me.pathname);wt(me,{matches:Ri,loaderData:{},errors:{[Dn.id]:Vn}},{flushSync:Le});return}if(M.initialized&&!re&&RMe(M.location,me)&&!(Be&&Be.submission&&yd(Be.submission.formMethod))){wt(me,{matches:Xt},{flushSync:Le});return}G=new AbortController;let dt=qb(e.history,me,G.signal,Be&&Be.submission),Je;if(Be&&Be.pendingError)Je=[Ny(Xt).route.id,{type:bi.error,error:Be.pendingError}];else if(Be&&Be.submission&&yd(Be.submission.formMethod)){let Vn=await K(dt,me,Be.submission,Xt,Te.active,{replace:Be.replace,flushSync:Le});if(Vn.shortCircuited)return;if(Vn.pendingActionResult){let[Ri,Dn]=Vn.pendingActionResult;if(Eu(Dn)&&Lx(Dn.error)&&Dn.error.status===404){G=null,wt(me,{matches:Vn.matches,loaderData:{},errors:{[Ri]:Dn.error}});return}}Xt=Vn.matches||Xt,Je=Vn.pendingActionResult,yt=fD(me,Be.submission),Le=!1,Te.active=!1,dt=qb(e.history,dt.url,dt.signal)}let{shortCircuited:kt,matches:_t,loaderData:qt,errors:it}=await ue(dt,me,Xt,Te.active,yt,Be&&Be.submission,Be&&Be.fetcherSubmission,Be&&Be.replace,Be&&Be.initialHydration===!0,Le,Je);kt||(G=null,wt(me,fa({matches:_t||Xt},mK(Je),{loaderData:qt,errors:it})))}async function K(de,me,Be,Ke,yt,Xt){Xt===void 0&&(Xt={}),ke();let Le=MMe(me,Be);if(ot({navigation:Le},{flushSync:Xt.flushSync===!0}),yt){let Je=await Kn(Ke,me.pathname,de.signal);if(Je.type==="aborted")return{shortCircuited:!0};if(Je.type==="error"){let{boundaryId:kt,error:_t}=Ai(me.pathname,Je);return{matches:Je.partialMatches,pendingActionResult:[kt,{type:bi.error,error:_t}]}}else if(Je.matches)Ke=Je.matches;else{let{notFoundMatches:kt,error:_t,route:qt}=si(me.pathname);return{matches:kt,pendingActionResult:[qt.id,{type:bi.error,error:_t}]}}}let Te,dt=Q2(Ke,me);if(!dt.route.action&&!dt.route.lazy)Te={type:bi.error,error:qo(405,{method:de.method,pathname:me.pathname,routeId:dt.route.id})};else if(Te=(await ye("action",de,[dt],Ke))[0],de.signal.aborted)return{shortCircuited:!0};if(Qg(Te)){let Je;return Xt&&Xt.replace!=null?Je=Xt.replace:Je=dK(Te.response.headers.get("Location"),new URL(de.url),l)===M.location.pathname+M.location.search,await Ne(de,Te,{submission:Be,replace:Je}),{shortCircuited:!0}}if(Wg(Te))throw qo(400,{type:"defer-action"});if(Eu(Te)){let Je=Ny(Ke,dt.route.id);return(Xt&&Xt.replace)!==!0&&(U=Ya.Push),{matches:Ke,pendingActionResult:[Je.route.id,Te]}}return{matches:Ke,pendingActionResult:[dt.route.id,Te]}}async function ue(de,me,Be,Ke,yt,Xt,Le,Te,dt,Je,kt){let _t=yt||fD(me,Xt),qt=Xt||Le||OK(_t),it=!q&&(!f.v7_partialHydration||!dt);if(Ke){if(it){let Rr=_e(kt);ot(fa({navigation:_t},Rr!==void 0?{actionData:Rr}:{}),{flushSync:Je})}let Tn=await Kn(Be,me.pathname,de.signal);if(Tn.type==="aborted")return{shortCircuited:!0};if(Tn.type==="error"){let{boundaryId:Rr,error:Oi}=Ai(me.pathname,Tn);return{matches:Tn.partialMatches,loaderData:{},errors:{[Rr]:Oi}}}else if(Tn.matches)Be=Tn.matches;else{let{error:Rr,notFoundMatches:Oi,route:gr}=si(me.pathname);return{matches:Oi,loaderData:{},errors:{[gr.id]:Rr}}}}let Vn=o||s,[Ri,Dn]=lK(e.history,M,Be,qt,me,f.v7_partialHydration&&dt===!0,f.v7_skipActionErrorRevalidation,re,ee,Z,oe,Re,X,Vn,l,kt);if(oi(Tn=>!(Be&&Be.some(Rr=>Rr.route.id===Tn))||Ri&&Ri.some(Rr=>Rr.route.id===Tn)),Pe=++W,Ri.length===0&&Dn.length===0){let Tn=vn();return wt(me,fa({matches:Be,loaderData:{},errors:kt&&Eu(kt[1])?{[kt[0]]:kt[1].error}:null},mK(kt),Tn?{fetchers:new Map(M.fetchers)}:{}),{flushSync:Je}),{shortCircuited:!0}}if(it){let Tn={};if(!Ke){Tn.navigation=_t;let Rr=_e(kt);Rr!==void 0&&(Tn.actionData=Rr)}Dn.length>0&&(Tn.fetchers=Ie(Dn)),ot(Tn,{flushSync:Je})}Dn.forEach(Tn=>{se.has(Tn.key)&&Vt(Tn.key),Tn.controller&&se.set(Tn.key,Tn.controller)});let oa=()=>Dn.forEach(Tn=>Vt(Tn.key));G&&G.signal.addEventListener("abort",oa);let{loaderResults:la,fetcherResults:Wa}=await ve(M.matches,Be,Ri,Dn,de);if(de.signal.aborted)return{shortCircuited:!0};G&&G.signal.removeEventListener("abort",oa),Dn.forEach(Tn=>se.delete(Tn.key));let Ps=bK([...la,...Wa]);if(Ps){if(Ps.idx>=Ri.length){let Tn=Dn[Ps.idx-Ri.length].key;X.add(Tn)}return await Ne(de,Ps.result,{replace:Te}),{shortCircuited:!0}}let{loaderData:Qa,errors:va}=hK(M,Be,Ri,la,kt,Dn,Wa,rt);rt.forEach((Tn,Rr)=>{Tn.subscribe(Oi=>{(Oi||Tn.done)&&rt.delete(Rr)})}),f.v7_partialHydration&&dt&&M.errors&&Object.entries(M.errors).filter(Tn=>{let[Rr]=Tn;return!Ri.some(Oi=>Oi.route.id===Rr)}).forEach(Tn=>{let[Rr,Oi]=Tn;va=Object.assign(va||{},{[Rr]:Oi})});let Ge=vn(),Oa=pr(Pe),hh=Ge||Oa||Dn.length>0;return fa({matches:Be,loaderData:Qa,errors:va},hh?{fetchers:new Map(M.fetchers)}:{})}function _e(de){if(de&&!Eu(de[1]))return{[de[0]]:de[1].data};if(M.actionData)return Object.keys(M.actionData).length===0?null:M.actionData}function Ie(de){return de.forEach(me=>{let Be=M.fetchers.get(me.key),Ke=p2(void 0,Be?Be.data:void 0);M.fetchers.set(me.key,Ke)}),new Map(M.fetchers)}function Ce(de,me,Be,Ke){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");se.has(de)&&Vt(de);let yt=(Ke&&Ke.unstable_flushSync)===!0,Xt=o||s,Le=k8(M.location,M.matches,l,f.v7_prependBasename,Be,f.v7_relativeSplatPath,me,Ke==null?void 0:Ke.relative),Te=Pg(Xt,Le,l),dt=Mr(Te,Xt,Le);if(dt.active&&dt.matches&&(Te=dt.matches),!Te){At(de,me,qo(404,{pathname:Le}),{flushSync:yt});return}let{path:Je,submission:kt,error:_t}=oK(f.v7_normalizeFormMethod,!0,Le,Ke);if(_t){At(de,me,_t,{flushSync:yt});return}let qt=Q2(Te,Je);if(F=(Ke&&Ke.preventScrollReset)===!0,kt&&yd(kt.formMethod)){Qe(de,me,Je,qt,Te,dt.active,yt,kt);return}Re.set(de,{routeId:me,path:Je}),Ot(de,me,Je,qt,Te,dt.active,yt,kt)}async function Qe(de,me,Be,Ke,yt,Xt,Le,Te){ke(),Re.delete(de);function dt(gr){if(!gr.route.action&&!gr.route.lazy){let Yi=qo(405,{method:Te.formMethod,pathname:Be,routeId:me});return At(de,me,Yi,{flushSync:Le}),!0}return!1}if(!Xt&&dt(Ke))return;let Je=M.fetchers.get(de);ze(de,LMe(Te,Je),{flushSync:Le});let kt=new AbortController,_t=qb(e.history,Be,kt.signal,Te);if(Xt){let gr=await Kn(yt,Be,_t.signal);if(gr.type==="aborted")return;if(gr.type==="error"){let{error:Yi}=Ai(Be,gr);At(de,me,Yi,{flushSync:Le});return}else if(gr.matches){if(yt=gr.matches,Ke=Q2(yt,Be),dt(Ke))return}else{At(de,me,qo(404,{pathname:Be}),{flushSync:Le});return}}se.set(de,kt);let qt=W,Vn=(await ye("action",_t,[Ke],yt))[0];if(_t.signal.aborted){se.get(de)===kt&&se.delete(de);return}if(f.v7_fetcherPersist&&oe.has(de)){if(Qg(Vn)||Eu(Vn)){ze(de,b0(void 0));return}}else{if(Qg(Vn))if(se.delete(de),Pe>qt){ze(de,b0(void 0));return}else return X.add(de),ze(de,p2(Te)),Ne(_t,Vn,{fetcherSubmission:Te});if(Eu(Vn)){At(de,me,Vn.error);return}}if(Wg(Vn))throw qo(400,{type:"defer-action"});let Ri=M.navigation.location||M.location,Dn=qb(e.history,Ri,kt.signal),oa=o||s,la=M.navigation.state!=="idle"?Pg(oa,M.navigation.location,l):M.matches;br(la,"Didn't find any matches after fetcher action");let Wa=++W;Ee.set(de,Wa);let Ps=p2(Te,Vn.data);M.fetchers.set(de,Ps);let[Qa,va]=lK(e.history,M,la,Te,Ri,!1,f.v7_skipActionErrorRevalidation,re,ee,Z,oe,Re,X,oa,l,[Ke.route.id,Vn]);va.filter(gr=>gr.key!==de).forEach(gr=>{let Yi=gr.key,Mo=M.fetchers.get(Yi),Lo=p2(void 0,Mo?Mo.data:void 0);M.fetchers.set(Yi,Lo),se.has(Yi)&&Vt(Yi),gr.controller&&se.set(Yi,gr.controller)}),ot({fetchers:new Map(M.fetchers)});let Ge=()=>va.forEach(gr=>Vt(gr.key));kt.signal.addEventListener("abort",Ge);let{loaderResults:Oa,fetcherResults:hh}=await ve(M.matches,la,Qa,va,Dn);if(kt.signal.aborted)return;kt.signal.removeEventListener("abort",Ge),Ee.delete(de),se.delete(de),va.forEach(gr=>se.delete(gr.key));let Tn=bK([...Oa,...hh]);if(Tn){if(Tn.idx>=Qa.length){let gr=va[Tn.idx-Qa.length].key;X.add(gr)}return Ne(Dn,Tn.result)}let{loaderData:Rr,errors:Oi}=hK(M,M.matches,Qa,Oa,void 0,va,hh,rt);if(M.fetchers.has(de)){let gr=b0(Vn.data);M.fetchers.set(de,gr)}pr(Wa),M.navigation.state==="loading"&&Wa>Pe?(br(U,"Expected pending action"),G&&G.abort(),wt(M.navigation.location,{matches:la,loaderData:Rr,errors:Oi,fetchers:new Map(M.fetchers)})):(ot({errors:Oi,loaderData:pK(M.loaderData,Rr,la,Oi),fetchers:new Map(M.fetchers)}),re=!1)}async function Ot(de,me,Be,Ke,yt,Xt,Le,Te){let dt=M.fetchers.get(de);ze(de,p2(Te,dt?dt.data:void 0),{flushSync:Le});let Je=new AbortController,kt=qb(e.history,Be,Je.signal);if(Xt){let Vn=await Kn(yt,Be,kt.signal);if(Vn.type==="aborted")return;if(Vn.type==="error"){let{error:Ri}=Ai(Be,Vn);At(de,me,Ri,{flushSync:Le});return}else if(Vn.matches)yt=Vn.matches,Ke=Q2(yt,Be);else{At(de,me,qo(404,{pathname:Be}),{flushSync:Le});return}}se.set(de,Je);let _t=W,it=(await ye("loader",kt,[Ke],yt))[0];if(Wg(it)&&(it=await fce(it,kt.signal,!0)||it),se.get(de)===Je&&se.delete(de),!kt.signal.aborted){if(oe.has(de)){ze(de,b0(void 0));return}if(Qg(it))if(Pe>_t){ze(de,b0(void 0));return}else{X.add(de),await Ne(kt,it);return}if(Eu(it)){At(de,me,it.error);return}br(!Wg(it),"Unhandled fetcher deferred data"),ze(de,b0(it.data))}}async function Ne(de,me,Be){let{submission:Ke,fetcherSubmission:yt,replace:Xt}=Be===void 0?{}:Be;me.response.headers.has("X-Remix-Revalidate")&&(re=!0);let Le=me.response.headers.get("Location");br(Le,"Expected a Location header on the redirect Response"),Le=dK(Le,new URL(de.url),l);let Te=ww(M.location,Le,{_isRedirect:!0});if(n){let it=!1;if(me.response.headers.has("X-Remix-Reload-Document"))it=!0;else if(lU.test(Le)){const Vn=e.history.createURL(Le);it=Vn.origin!==t.location.origin||Mx(Vn.pathname,l)==null}if(it){Xt?t.location.replace(Le):t.location.assign(Le);return}}G=null;let dt=Xt===!0||me.response.headers.has("X-Remix-Replace")?Ya.Replace:Ya.Push,{formMethod:Je,formAction:kt,formEncType:_t}=M.navigation;!Ke&&!yt&&Je&&kt&&_t&&(Ke=OK(M.navigation));let qt=Ke||yt;if(gMe.has(me.response.status)&&qt&&yd(qt.formMethod))await z(dt,Te,{submission:fa({},qt,{formAction:Le}),preventScrollReset:F});else{let it=fD(Te,Ke);await z(dt,Te,{overrideNavigation:it,fetcherSubmission:yt,preventScrollReset:F})}}async function ye(de,me,Be,Ke){try{let yt=await TMe(u,de,me,Be,Ke,a,i);return await Promise.all(yt.map((Xt,Le)=>{if(NMe(Xt)){let Te=Xt.result;return{type:bi.redirect,response:_Me(Te,me,Be[Le].route.id,Ke,l,f.v7_relativeSplatPath)}}return AMe(Xt)}))}catch(yt){return Be.map(()=>({type:bi.error,error:yt}))}}async function ve(de,me,Be,Ke,yt){let[Xt,...Le]=await Promise.all([Be.length?ye("loader",yt,Be,me):[],...Ke.map(Te=>{if(Te.matches&&Te.match&&Te.controller){let dt=qb(e.history,Te.path,Te.controller.signal);return ye("loader",dt,[Te.match],Te.matches).then(Je=>Je[0])}else return Promise.resolve({type:bi.error,error:qo(404,{pathname:Te.path})})})]);return await Promise.all([vK(de,Be,Xt,Xt.map(()=>yt.signal),!1,M.loaderData),vK(de,Ke.map(Te=>Te.match),Le,Ke.map(Te=>Te.controller?Te.controller.signal:null),!0)]),{loaderResults:Xt,fetcherResults:Le}}function ke(){re=!0,ee.push(...oi()),Re.forEach((de,me)=>{se.has(me)&&(Z.add(me),Vt(me))})}function ze(de,me,Be){Be===void 0&&(Be={}),M.fetchers.set(de,me),ot({fetchers:new Map(M.fetchers)},{flushSync:(Be&&Be.flushSync)===!0})}function At(de,me,Be,Ke){Ke===void 0&&(Ke={});let yt=Ny(M.matches,me);tt(de),ot({errors:{[yt.route.id]:Be},fetchers:new Map(M.fetchers)},{flushSync:(Ke&&Ke.flushSync)===!0})}function Zt(de){return f.v7_fetcherPersist&&(Ue.set(de,(Ue.get(de)||0)+1),oe.has(de)&&oe.delete(de)),M.fetchers.get(de)||bMe}function tt(de){let me=M.fetchers.get(de);se.has(de)&&!(me&&me.state==="loading"&&Ee.has(de))&&Vt(de),Re.delete(de),Ee.delete(de),X.delete(de),oe.delete(de),Z.delete(de),M.fetchers.delete(de)}function Qt(de){if(f.v7_fetcherPersist){let me=(Ue.get(de)||0)-1;me<=0?(Ue.delete(de),oe.add(de)):Ue.set(de,me)}else tt(de);ot({fetchers:new Map(M.fetchers)})}function Vt(de){let me=se.get(de);br(me,"Expected fetch controller: "+de),me.abort(),se.delete(de)}function Gt(de){for(let me of de){let Be=Zt(me),Ke=b0(Be.data);M.fetchers.set(me,Ke)}}function vn(){let de=[],me=!1;for(let Be of X){let Ke=M.fetchers.get(Be);br(Ke,"Expected fetcher: "+Be),Ke.state==="loading"&&(X.delete(Be),de.push(Be),me=!0)}return Gt(de),me}function pr(de){let me=[];for(let[Be,Ke]of Ee)if(Ke0}function Cr(de,me){let Be=M.blockers.get(de)||h2;return qe.get(de)!==me&&qe.set(de,me),Be}function Tr(de){M.blockers.delete(de),qe.delete(de)}function jr(de,me){let Be=M.blockers.get(de)||h2;br(Be.state==="unblocked"&&me.state==="blocked"||Be.state==="blocked"&&me.state==="blocked"||Be.state==="blocked"&&me.state==="proceeding"||Be.state==="blocked"&&me.state==="unblocked"||Be.state==="proceeding"&&me.state==="unblocked","Invalid blocker state transition: "+Be.state+" -> "+me.state);let Ke=new Map(M.blockers);Ke.set(de,me),ot({blockers:Ke})}function vi(de){let{currentLocation:me,nextLocation:Be,historyAction:Ke}=de;if(qe.size===0)return;qe.size>1&&Hv(!1,"A router only supports one blocker at a time");let yt=Array.from(qe.entries()),[Xt,Le]=yt[yt.length-1],Te=M.blockers.get(Xt);if(!(Te&&Te.state==="proceeding")&&Le({currentLocation:me,nextLocation:Be,historyAction:Ke}))return Xt}function si(de){let me=qo(404,{pathname:de}),Be=o||s,{matches:Ke,route:yt}=gK(Be);return oi(),{notFoundMatches:Ke,route:yt,error:me}}function Ai(de,me){return{boundaryId:Ny(me.partialMatches).route.id,error:qo(400,{type:"route-discovery",pathname:de,message:me.error!=null&&"message"in me.error?me.error:String(me.error)})}}function oi(de){let me=[];return rt.forEach((Be,Ke)=>{(!de||de(Ke))&&(Be.cancel(),me.push(Ke),rt.delete(Ke))}),me}function ja(de,me,Be){if(E=de,x=me,w=Be||null,!k&&M.navigation===dD){k=!0;let Ke=Ci(M.location,M.matches);Ke!=null&&ot({restoreScrollPosition:Ke})}return()=>{E=null,x=null,w=null}}function _i(de,me){return w&&w(de,me.map(Ke=>q9e(Ke,M.loaderData)))||de.key}function Os(de,me){if(E&&x){let Be=_i(de,me);E[Be]=x()}}function Ci(de,me){if(E){let Be=_i(de,me),Ke=E[Be];if(typeof Ke=="number")return Ke}return null}function Mr(de,me,Be){if(d){if(S.has(Be))return{active:!1,matches:de};if(de){if(Object.keys(de[0].params).length>0)return{active:!0,matches:g4(me,Be,l,!0)}}else return{active:!0,matches:g4(me,Be,l,!0)||[]}}return{active:!1,matches:null}}async function Kn(de,me,Be){let Ke=de;for(;;){let yt=o==null,Xt=o||s;try{await wMe(d,me,Ke,Xt,a,i,et,Be)}catch(dt){return{type:"error",error:dt,partialMatches:Ke}}finally{yt&&(s=[...s])}if(Be.aborted)return{type:"aborted"};let Le=Pg(Xt,me,l);if(Le)return Wr(me,S),{type:"success",matches:Le};let Te=g4(Xt,me,l,!0);if(!Te||Ke.length===Te.length&&Ke.every((dt,Je)=>dt.route.id===Te[Je].route.id))return Wr(me,S),{type:"success",matches:null};Ke=Te}}function Wr(de,me){if(me.size>=b){let Be=me.values().next().value;me.delete(Be)}me.add(de)}function We(de){a={},o=xw(de,i,void 0,a)}function lt(de,me){let Be=o==null;uce(de,me,o||s,a,i),Be&&(s=[...s],ot({}))}return N={get basename(){return l},get future(){return f},get state(){return M},get routes(){return s},get window(){return t},initialize:ct,subscribe:Mt,enableScrollRestoration:ja,navigate:vt,fetch:Ce,revalidate:Wt,createHref:de=>e.history.createHref(de),encodeLocation:de=>e.history.encodeLocation(de),getFetcher:Zt,deleteFetcher:Qt,dispose:Pt,getBlocker:Cr,deleteBlocker:Tr,patchRoutes:lt,_internalFetchControllers:se,_internalActiveDeferreds:rt,_internalSetRoutes:We},N}function OMe(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function k8(e,t,n,r,i,a,s,o){let l,u;if(s){l=[];for(let f of t)if(l.push(f),f.route.id===s){u=f;break}}else l=t,u=t[t.length-1];let d=oU(i||".",sU(l,a),Mx(e.pathname,n)||e.pathname,o==="path");return i==null&&(d.search=e.search,d.hash=e.hash),(i==null||i===""||i===".")&&u&&u.route.index&&!uU(d.search)&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(d.pathname=d.pathname==="/"?n:sm([n,d.pathname])),Px(d)}function oK(e,t,n,r){if(!r||!OMe(r))return{path:n};if(r.formMethod&&!PMe(r.formMethod))return{path:n,error:qo(405,{method:r.formMethod})};let i=()=>({path:n,error:qo(400,{type:"invalid-body"})}),a=r.formMethod||"get",s=e?a.toUpperCase():a.toLowerCase(),o=cce(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!yd(s))return i();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((g,b)=>{let[S,E]=b;return""+g+S+"="+E+` +`},""):String(r.body);return{path:n,submission:{formMethod:s,formAction:o,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!yd(s))return i();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:s,formAction:o,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return i()}}}br(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=A8(r.formData),u=r.formData;else if(r.body instanceof FormData)l=A8(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=fK(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=fK(l)}catch{return i()}let d={formMethod:s,formAction:o,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(yd(d.formMethod))return{path:n,submission:d};let f=Pm(n);return t&&f.search&&uU(f.search)&&l.append("index",""),f.search="?"+l,{path:Px(f),submission:d}}function SMe(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function lK(e,t,n,r,i,a,s,o,l,u,d,f,p,g,b,S){let E=S?Eu(S[1])?S[1].error:S[1].data:void 0,w=e.createURL(t.location),x=e.createURL(i),k=S&&Eu(S[1])?S[0]:void 0,_=k?SMe(n,k):n,C=S?S[1].statusCode:void 0,R=s&&C&&C>=400,N=_.filter((U,F)=>{let{route:G}=U;if(G.lazy)return!0;if(G.loader==null)return!1;if(a)return typeof G.loader!="function"||G.loader.hydrate?!0:t.loaderData[G.id]===void 0&&(!t.errors||t.errors[G.id]===void 0);if(EMe(t.loaderData,t.matches[F],U)||l.some(ne=>ne===U.route.id))return!0;let V=t.matches[F],ie=U;return uK(U,fa({currentUrl:w,currentParams:V.params,nextUrl:x,nextParams:ie.params},r,{actionResult:E,actionStatus:C,defaultShouldRevalidate:R?!1:o||w.pathname+w.search===x.pathname+x.search||w.search!==x.search||lce(V,ie)}))}),M=[];return f.forEach((U,F)=>{if(a||!n.some(q=>q.route.id===U.routeId)||d.has(F))return;let G=Pg(g,U.path,b);if(!G){M.push({key:F,routeId:U.routeId,path:U.path,matches:null,match:null,controller:null});return}let V=t.fetchers.get(F),ie=Q2(G,U.path),ne=!1;p.has(F)?ne=!1:u.has(F)?(u.delete(F),ne=!0):V&&V.state!=="idle"&&V.data===void 0?ne=o:ne=uK(ie,fa({currentUrl:w,currentParams:t.matches[t.matches.length-1].params,nextUrl:x,nextParams:n[n.length-1].params},r,{actionResult:E,actionStatus:C,defaultShouldRevalidate:R?!1:o})),ne&&M.push({key:F,routeId:U.routeId,path:U.path,matches:G,match:ie,controller:new AbortController})}),[N,M]}function EMe(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function lce(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function uK(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function wMe(e,t,n,r,i,a,s,o){let l=[t,...n.map(u=>u.route.id)].join("-");try{let u=s.get(l);u||(u=e({path:t,matches:n,patch:(d,f)=>{o.aborted||uce(d,f,r,i,a)}}),s.set(l,u)),u&&IMe(u)&&await u}finally{s.delete(l)}}function uce(e,t,n,r,i){if(e){var a;let s=r[e];br(s,"No route found to patch children into: routeId = "+e);let o=xw(t,i,[e,"patch",String(((a=s.children)==null?void 0:a.length)||"0")],r);s.children?s.children.push(...o):s.children=o}else{let s=xw(t,i,["patch",String(n.length||"0")],r);n.push(...s)}}async function cK(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];br(i,"No route found in manifest");let a={};for(let s in r){let l=i[s]!==void 0&&s!=="hasErrorBoundary";Hv(!l,'Route "'+i.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!l&&!G9e.has(s)&&(a[s]=r[s])}Object.assign(i,a),Object.assign(i,fa({},t(i),{lazy:void 0}))}function xMe(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function TMe(e,t,n,r,i,a,s,o){let l=r.reduce((f,p)=>f.add(p.route.id),new Set),u=new Set,d=await e({matches:i.map(f=>{let p=l.has(f.route.id);return fa({},f,{shouldLoad:p,resolve:b=>(u.add(f.route.id),p?kMe(t,n,f,a,s,b,o):Promise.resolve({type:bi.data,result:void 0}))})}),request:n,params:i[0].params,context:o});return i.forEach(f=>br(u.has(f.route.id),'`match.resolve()` was not called for route id "'+f.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),d.filter((f,p)=>l.has(i[p].route.id))}async function kMe(e,t,n,r,i,a,s){let o,l,u=d=>{let f,p=new Promise((S,E)=>f=E);l=()=>f(),t.signal.addEventListener("abort",l);let g=S=>typeof d!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):d({request:t,params:n.params,context:s},...S!==void 0?[S]:[]),b;return a?b=a(S=>g(S)):b=(async()=>{try{return{type:"data",result:await g()}}catch(S){return{type:"error",result:S}}})(),Promise.race([b,p])};try{let d=n.route[e];if(n.route.lazy)if(d){let f,[p]=await Promise.all([u(d).catch(g=>{f=g}),cK(n.route,i,r)]);if(f!==void 0)throw f;o=p}else if(await cK(n.route,i,r),d=n.route[e],d)o=await u(d);else if(e==="action"){let f=new URL(t.url),p=f.pathname+f.search;throw qo(405,{method:t.method,pathname:p,routeId:n.route.id})}else return{type:bi.data,result:void 0};else if(d)o=await u(d);else{let f=new URL(t.url),p=f.pathname+f.search;throw qo(404,{pathname:p})}br(o.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(d){return{type:bi.error,result:d}}finally{l&&t.signal.removeEventListener("abort",l)}return o}async function AMe(e){let{result:t,type:n}=e;if(dce(t)){let u;try{let d=t.headers.get("Content-Type");d&&/\bapplication\/json\b/.test(d)?t.body==null?u=null:u=await t.json():u=await t.text()}catch(d){return{type:bi.error,error:d}}return n===bi.error?{type:bi.error,error:new F3(t.status,t.statusText,u),statusCode:t.status,headers:t.headers}:{type:bi.data,data:u,statusCode:t.status,headers:t.headers}}if(n===bi.error){if(yK(t)){var r;if(t.data instanceof Error){var i;return{type:bi.error,error:t.data,statusCode:(i=t.init)==null?void 0:i.status}}t=new F3(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:bi.error,error:t,statusCode:Lx(t)?t.status:void 0}}if(DMe(t)){var a,s;return{type:bi.deferred,deferredData:t,statusCode:(a=t.init)==null?void 0:a.status,headers:((s=t.init)==null?void 0:s.headers)&&new Headers(t.init.headers)}}if(yK(t)){var o,l;return{type:bi.data,data:t.data,statusCode:(o=t.init)==null?void 0:o.status,headers:(l=t.init)!=null&&l.headers?new Headers(t.init.headers):void 0}}return{type:bi.data,data:t}}function _Me(e,t,n,r,i,a){let s=e.headers.get("Location");if(br(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!lU.test(s)){let o=r.slice(0,r.findIndex(l=>l.route.id===n)+1);s=k8(new URL(t.url),o,i,!0,s,a),e.headers.set("Location",s)}return e}function dK(e,t,n){if(lU.test(e)){let r=e,i=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=Mx(i.pathname,n)!=null;if(i.origin===t.origin&&a)return i.pathname+i.search+i.hash}return e}function qb(e,t,n,r){let i=e.createURL(cce(t)).toString(),a={signal:n};if(r&&yd(r.formMethod)){let{formMethod:s,formEncType:o}=r;a.method=s.toUpperCase(),o==="application/json"?(a.headers=new Headers({"Content-Type":o}),a.body=JSON.stringify(r.json)):o==="text/plain"?a.body=r.text:o==="application/x-www-form-urlencoded"&&r.formData?a.body=A8(r.formData):a.body=r.formData}return new Request(i,a)}function A8(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function fK(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function CMe(e,t,n,r,i,a){let s={},o=null,l,u=!1,d={},f=r&&Eu(r[1])?r[1].error:void 0;return n.forEach((p,g)=>{let b=t[g].route.id;if(br(!Qg(p),"Cannot handle redirect results in processLoaderData"),Eu(p)){let S=p.error;f!==void 0&&(S=f,f=void 0),o=o||{};{let E=Ny(e,b);o[E.route.id]==null&&(o[E.route.id]=S)}s[b]=void 0,u||(u=!0,l=Lx(p.error)?p.error.status:500),p.headers&&(d[b]=p.headers)}else Wg(p)?(i.set(b,p.deferredData),s[b]=p.deferredData.data,p.statusCode!=null&&p.statusCode!==200&&!u&&(l=p.statusCode),p.headers&&(d[b]=p.headers)):(s[b]=p.data,p.statusCode&&p.statusCode!==200&&!u&&(l=p.statusCode),p.headers&&(d[b]=p.headers))}),f!==void 0&&r&&(o={[r[0]]:f},s[r[0]]=void 0),{loaderData:s,errors:o,statusCode:l||200,loaderHeaders:d}}function hK(e,t,n,r,i,a,s,o){let{loaderData:l,errors:u}=CMe(t,n,r,i,o);for(let d=0;dr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function gK(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function qo(e,t){let{pathname:n,routeId:r,method:i,type:a,message:s}=t===void 0?{}:t,o="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(o="Bad Request",a==="route-discovery"?l='Unable to match URL "'+n+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error: +`+s):i&&n&&r?l="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"?l="defer() is not supported in actions":a==="invalid-body"&&(l="Unable to encode submission body")):e===403?(o="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(o="Not Found",l='No route matches URL "'+n+'"'):e===405&&(o="Method Not Allowed",i&&n&&r?l="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(l='Invalid request method "'+i.toUpperCase()+'"')),new F3(e||500,o,new Error(l),!0)}function bK(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Qg(n))return{result:n,idx:t}}}function cce(e){let t=typeof e=="string"?Pm(e):e;return Px(fa({},t,{hash:""}))}function RMe(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function IMe(e){return typeof e=="object"&&e!=null&&"then"in e}function NMe(e){return dce(e.result)&&mMe.has(e.result.status)}function Wg(e){return e.type===bi.deferred}function Eu(e){return e.type===bi.error}function Qg(e){return(e&&e.type)===bi.redirect}function yK(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function DMe(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function dce(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function PMe(e){return pMe.has(e.toLowerCase())}function yd(e){return fMe.has(e.toLowerCase())}async function vK(e,t,n,r,i,a){for(let s=0;sf.route.id===l.route.id),d=u!=null&&!lce(u,l)&&(a&&a[l.route.id])!==void 0;if(Wg(o)&&(i||d)){let f=r[s];br(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await fce(o,f,i).then(p=>{p&&(n[s]=p||n[s])})}}}async function fce(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:bi.data,data:e.deferredData.unwrappedData}}catch(i){return{type:bi.error,error:i}}return{type:bi.data,data:e.deferredData.data}}}function uU(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Q2(e,t){let n=typeof t=="string"?Pm(t).search:t.search;if(e[e.length-1].route.index&&uU(n||""))return e[e.length-1];let r=ace(e);return r[r.length-1]}function OK(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:s}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function fD(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function MMe(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function p2(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function LMe(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function b0(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function $Me(e,t){try{let n=e.sessionStorage.getItem(oce);if(n){let r=JSON.parse(n);for(let[i,a]of Object.entries(r||{}))a&&Array.isArray(a)&&t.set(i,new Set(a||[]))}}catch{}}function FMe(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(oce,JSON.stringify(n))}catch(r){Hv(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + * React Router v6.26.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function B3(){return B3=Object.assign?Object.assign.bind():function(e){for(var t=1;t{o.current=!0}),L.useCallback(function(u,d){if(d===void 0&&(d={}),!o.current)return;if(typeof u=="number"){r.go(u);return}let f=oU(u,JSON.parse(s),a,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:sm([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,s,a,e])}const UMe=L.createContext(null);function zMe(e){let t=L.useContext(Np).outlet;return t&&L.createElement(UMe.Provider,{value:e},t)}function Lm(){let{matches:e}=L.useContext(Np),t=e[e.length-1];return t?t.params:{}}function HMe(e,t,n,r){Fx()||br(!1);let{navigator:i}=L.useContext($x),{matches:a}=L.useContext(Np),s=a[a.length-1],o=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=Mm(),d;d=u;let f=d.pathname||"/",p=f;if(l!=="/"){let S=l.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(S.length).join("/")}let g=Pg(e,{pathname:p});return VMe(g&&g.map(S=>Object.assign({},S,{params:Object.assign({},o,S.params),pathname:sm([l,i.encodeLocation?i.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?l:sm([l,i.encodeLocation?i.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),a,n,r)}function jMe(){let e=yce(),t=Lx(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return L.createElement(L.Fragment,null,L.createElement("h2",null,"Unexpected Application Error!"),L.createElement("h3",{style:{fontStyle:"italic"}},t),n?L.createElement("pre",{style:i},n):null,null)}const WMe=L.createElement(jMe,null);class QMe extends L.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?L.createElement(Np.Provider,{value:this.props.routeContext},L.createElement(pce.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function GMe(e){let{routeContext:t,match:n,children:r}=e,i=L.useContext(TR);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),L.createElement(Np.Provider,{value:t},r)}function VMe(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if(!n)return null;if(n.errors)e=n.matches;else if((a=r)!=null&&a.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,o=(i=n)==null?void 0:i.errors;if(o!=null){let d=s.findIndex(f=>f.route.id&&(o==null?void 0:o[f.route.id])!==void 0);d>=0||br(!1),s=s.slice(0,Math.min(s.length,d+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((d,f,p)=>{let g,b=!1,S=null,E=null;n&&(g=o&&f.route.id?o[f.route.id]:void 0,S=f.route.errorElement||WMe,l&&(u<0&&p===0?(b=!0,E=null):u===p&&(b=!0,E=f.route.hydrateFallbackElement||null)));let w=t.concat(s.slice(0,p+1)),x=()=>{let k;return g?k=S:b?k=E:f.route.Component?k=L.createElement(f.route.Component,null):f.route.element?k=f.route.element:k=d,L.createElement(GMe,{match:f,routeContext:{outlet:d,matches:w,isDataRoute:n!=null},children:k})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?L.createElement(QMe,{location:n.location,revalidation:n.revalidation,component:S,error:g,children:x(),routeContext:{outlet:null,matches:w,isDataRoute:!0}}):x()},null)}var gce=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(gce||{}),U3=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(U3||{});function qMe(e){let t=L.useContext(TR);return t||br(!1),t}function YMe(e){let t=L.useContext(hce);return t||br(!1),t}function ZMe(e){let t=L.useContext(Np);return t||br(!1),t}function bce(e){let t=ZMe(),n=t.matches[t.matches.length-1];return n.route.id||br(!1),n.route.id}function yce(){var e;let t=L.useContext(pce),n=YMe(U3.UseRouteError),r=bce(U3.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function XMe(){let{router:e}=qMe(gce.UseNavigateStable),t=bce(U3.UseNavigateStable),n=L.useRef(!1);return mce(()=>{n.current=!0}),L.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,B3({fromRouteId:t},a)))},[e,t])}function dU(e){let{to:t,replace:n,state:r,relative:i}=e;Fx()||br(!1);let{future:a,static:s}=L.useContext($x),{matches:o}=L.useContext(Np),{pathname:l}=Mm(),u=Gc(),d=oU(t,sU(o,a.v7_relativeSplatPath),l,i==="path"),f=JSON.stringify(d);return L.useEffect(()=>u(JSON.parse(f),{replace:n,state:r,relative:i}),[u,f,i,n,r]),null}function kR(e){return zMe(e.context)}function KMe(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Ya.Pop,navigator:a,static:s=!1,future:o}=e;Fx()&&br(!1);let l=t.replace(/^\/*/,"/"),u=L.useMemo(()=>({basename:l,navigator:a,static:s,future:B3({v7_relativeSplatPath:!1},o)}),[l,o,a,s]);typeof r=="string"&&(r=Pm(r));let{pathname:d="/",search:f="",hash:p="",state:g=null,key:b="default"}=r,S=L.useMemo(()=>{let E=Mx(d,l);return E==null?null:{location:{pathname:E,search:f,hash:p,state:g,key:b},navigationType:i}},[l,d,f,p,g,b,i]);return S==null?null:L.createElement($x.Provider,{value:u},L.createElement(cU.Provider,{children:n,value:S}))}new Promise(()=>{});function JMe(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:L.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:L.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:L.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.26.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function z3(){return z3=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function eLe(e,t){let n=_8(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(a=>{n.append(i,a)})}),n}const tLe="6";try{window.__reactRouterVersion=tLe}catch{}function nLe(e,t){return vMe({basename:void 0,future:z3({},void 0,{v7_prependBasename:!0}),history:j9e({window:void 0}),hydrationData:rLe(),routes:e,mapRouteProperties:JMe,unstable_dataStrategy:void 0,unstable_patchRoutesOnNavigation:void 0,window:void 0}).initialize()}function rLe(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=z3({},t,{errors:iLe(t.errors)})),t}function iLe(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new F3(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let a=window[i.__subType];if(typeof a=="function")try{let s=new a(i.message);s.stack="",n[r]=s}catch{}}if(n[r]==null){let a=new Error(i.message);a.stack="",n[r]=a}}else n[r]=i;return n}const aLe=L.createContext({isTransitioning:!1}),sLe=L.createContext(new Map),oLe="startTransition",SK=kv[oLe],lLe="flushSync",EK=Jke[lLe];function uLe(e){SK?SK(e):e()}function m2(e){EK?EK(e):e()}class cLe{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function dLe(e){let{fallbackElement:t,router:n,future:r}=e,[i,a]=L.useState(n.state),[s,o]=L.useState(),[l,u]=L.useState({isTransitioning:!1}),[d,f]=L.useState(),[p,g]=L.useState(),[b,S]=L.useState(),E=L.useRef(new Map),{v7_startTransition:w}=r||{},x=L.useCallback(M=>{w?uLe(M):M()},[w]),k=L.useCallback((M,U)=>{let{deletedFetchers:F,unstable_flushSync:G,unstable_viewTransitionOpts:V}=U;F.forEach(ne=>E.current.delete(ne)),M.fetchers.forEach((ne,q)=>{ne.data!==void 0&&E.current.set(q,ne.data)});let ie=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!V||ie){G?m2(()=>a(M)):x(()=>a(M));return}if(G){m2(()=>{p&&(d&&d.resolve(),p.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:V.currentLocation,nextLocation:V.nextLocation})});let ne=n.window.document.startViewTransition(()=>{m2(()=>a(M))});ne.finished.finally(()=>{m2(()=>{f(void 0),g(void 0),o(void 0),u({isTransitioning:!1})})}),m2(()=>g(ne));return}p?(d&&d.resolve(),p.skipTransition(),S({state:M,currentLocation:V.currentLocation,nextLocation:V.nextLocation})):(o(M),u({isTransitioning:!0,flushSync:!1,currentLocation:V.currentLocation,nextLocation:V.nextLocation}))},[n.window,p,d,E,x]);L.useLayoutEffect(()=>n.subscribe(k),[n,k]),L.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new cLe)},[l]),L.useEffect(()=>{if(d&&s&&n.window){let M=s,U=d.promise,F=n.window.document.startViewTransition(async()=>{x(()=>a(M)),await U});F.finished.finally(()=>{f(void 0),g(void 0),o(void 0),u({isTransitioning:!1})}),g(F)}},[x,s,d,n.window]),L.useEffect(()=>{d&&s&&i.location.key===s.location.key&&d.resolve()},[d,p,i.location,s]),L.useEffect(()=>{!l.isTransitioning&&b&&(o(b.state),u({isTransitioning:!0,flushSync:!1,currentLocation:b.currentLocation,nextLocation:b.nextLocation}),S(void 0))},[l.isTransitioning,b]),L.useEffect(()=>{},[]);let _=L.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:M=>n.navigate(M),push:(M,U,F)=>n.navigate(M,{state:U,preventScrollReset:F==null?void 0:F.preventScrollReset}),replace:(M,U,F)=>n.navigate(M,{replace:!0,state:U,preventScrollReset:F==null?void 0:F.preventScrollReset})}),[n]),C=n.basename||"/",R=L.useMemo(()=>({router:n,navigator:_,static:!1,basename:C}),[n,_,C]),N=L.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return L.createElement(L.Fragment,null,L.createElement(TR.Provider,{value:R},L.createElement(hce.Provider,{value:i},L.createElement(sLe.Provider,{value:E.current},L.createElement(aLe.Provider,{value:l},L.createElement(KMe,{basename:C,location:i.location,navigationType:i.historyAction,navigator:_,future:N},i.initialized||n.future.v7_partialHydration?L.createElement(fLe,{routes:n.routes,future:n.future,state:i}):t))))),null)}const fLe=L.memo(hLe);function hLe(e){let{routes:t,future:n,state:r}=e;return HMe(t,void 0,r,n)}var wK;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(wK||(wK={}));var xK;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(xK||(xK={}));function fU(e){let t=L.useRef(_8(e)),n=L.useRef(!1),r=Mm(),i=L.useMemo(()=>eLe(r.search,n.current?null:t.current),[r.search]),a=Gc(),s=L.useCallback((o,l)=>{const u=_8(typeof o=="function"?o(i):o);n.current=!0,a("?"+u,l)},[a,i]);return[i,s]}function Us(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var pLe=typeof Symbol=="function"&&Symbol.observable||"@@observable",TK=pLe,hD=()=>Math.random().toString(36).substring(7).split("").join("."),mLe={INIT:`@@redux/INIT${hD()}`,REPLACE:`@@redux/REPLACE${hD()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${hD()}`},H3=mLe;function hU(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function pU(e,t,n){if(typeof e!="function")throw new Error(Us(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Us(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Us(1));return n(pU)(e,t)}let r=e,i=t,a=new Map,s=a,o=0,l=!1;function u(){s===a&&(s=new Map,a.forEach((E,w)=>{s.set(w,E)}))}function d(){if(l)throw new Error(Us(3));return i}function f(E){if(typeof E!="function")throw new Error(Us(4));if(l)throw new Error(Us(5));let w=!0;u();const x=o++;return s.set(x,E),function(){if(w){if(l)throw new Error(Us(6));w=!1,u(),s.delete(x),a=null}}}function p(E){if(!hU(E))throw new Error(Us(7));if(typeof E.type>"u")throw new Error(Us(8));if(typeof E.type!="string")throw new Error(Us(17));if(l)throw new Error(Us(9));try{l=!0,i=r(i,E)}finally{l=!1}return(a=s).forEach(x=>{x()}),E}function g(E){if(typeof E!="function")throw new Error(Us(10));r=E,p({type:H3.REPLACE})}function b(){const E=f;return{subscribe(w){if(typeof w!="object"||w===null)throw new Error(Us(11));function x(){const _=w;_.next&&_.next(d())}return x(),{unsubscribe:E(x)}},[TK](){return this}}}return p({type:H3.INIT}),{dispatch:p,subscribe:f,getState:d,replaceReducer:g,[TK]:b}}function gLe(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:H3.INIT})>"u")throw new Error(Us(12));if(typeof n(void 0,{type:H3.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Us(13))})}function vce(e){const t=Object.keys(e),n={};for(let a=0;a"u")throw o&&o.type,new Error(Us(14));u[f]=b,l=l||b!==g}return l=l||r.length!==Object.keys(s).length,l?u:s}}function j3(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function bLe(...e){return t=>(n,r)=>{const i=t(n,r);let a=()=>{throw new Error(Us(15))};const s={getState:i.getState,dispatch:(l,...u)=>a(l,...u)},o=e.map(l=>l(s));return a=j3(...o)(i.dispatch),{...i,dispatch:a}}}function yLe(e){return hU(e)&&"type"in e&&typeof e.type=="string"}var Oce=Symbol.for("immer-nothing"),kK=Symbol.for("immer-draftable"),zu=Symbol.for("immer-state");function xd(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var jv=Object.getPrototypeOf;function T1(e){return!!e&&!!e[zu]}function vp(e){var t;return e?Sce(e)||Array.isArray(e)||!!e[kK]||!!((t=e.constructor)!=null&&t[kK])||_R(e)||CR(e):!1}var vLe=Object.prototype.constructor.toString();function Sce(e){if(!e||typeof e!="object")return!1;const t=jv(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===vLe}function W3(e,t){AR(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function AR(e){const t=e[zu];return t?t.type_:Array.isArray(e)?1:_R(e)?2:CR(e)?3:0}function C8(e,t){return AR(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ece(e,t,n){const r=AR(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function OLe(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function _R(e){return e instanceof Map}function CR(e){return e instanceof Set}function Ng(e){return e.copy_||e.base_}function R8(e,t){if(_R(e))return new Map(e);if(CR(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Sce(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[zu];let i=Reflect.ownKeys(r);for(let a=0;a1&&(e.set=e.add=e.clear=e.delete=SLe),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>mU(r,!0))),e}function SLe(){xd(2)}function RR(e){return Object.isFrozen(e)}var ELe={};function k1(e){const t=ELe[e];return t||xd(0,e),t}var Tw;function wce(){return Tw}function wLe(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function AK(e,t){t&&(k1("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function I8(e){N8(e),e.drafts_.forEach(xLe),e.drafts_=null}function N8(e){e===Tw&&(Tw=e.parent_)}function _K(e){return Tw=wLe(Tw,e)}function xLe(e){const t=e[zu];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function CK(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[zu].modified_&&(I8(t),xd(4)),vp(e)&&(e=Q3(t,e),t.parent_||G3(t,e)),t.patches_&&k1("Patches").generateReplacementPatches_(n[zu].base_,e,t.patches_,t.inversePatches_)):e=Q3(t,n,[]),I8(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Oce?e:void 0}function Q3(e,t,n){if(RR(t))return t;const r=t[zu];if(!r)return W3(t,(i,a)=>RK(e,r,t,i,a,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return G3(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let a=i,s=!1;r.type_===3&&(a=new Set(i),i.clear(),s=!0),W3(a,(o,l)=>RK(e,r,i,o,l,n,s)),G3(e,i,!1),n&&e.patches_&&k1("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function RK(e,t,n,r,i,a,s){if(T1(i)){const o=a&&t&&t.type_!==3&&!C8(t.assigned_,r)?a.concat(r):void 0,l=Q3(e,i,o);if(Ece(n,r,l),T1(l))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(vp(i)&&!RR(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Q3(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&G3(e,i)}}function G3(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&mU(t,n)}function TLe(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:wce(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=gU;n&&(i=[r],a=kw);const{revoke:s,proxy:o}=Proxy.revocable(i,a);return r.draft_=o,r.revoke_=s,o}var gU={get(e,t){if(t===zu)return e;const n=Ng(e);if(!C8(n,t))return kLe(e,n,t);const r=n[t];return e.finalized_||!vp(r)?r:r===pD(e.base_,t)?(mD(e),e.copy_[t]=P8(r,e)):r},has(e,t){return t in Ng(e)},ownKeys(e){return Reflect.ownKeys(Ng(e))},set(e,t,n){const r=xce(Ng(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=pD(Ng(e),t),a=i==null?void 0:i[zu];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(OLe(n,i)&&(n!==void 0||C8(e.base_,t)))return!0;mD(e),D8(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return pD(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,mD(e),D8(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Ng(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){xd(11)},getPrototypeOf(e){return jv(e.base_)},setPrototypeOf(){xd(12)}},kw={};W3(gU,(e,t)=>{kw[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});kw.deleteProperty=function(e,t){return kw.set.call(this,e,t,void 0)};kw.set=function(e,t,n){return gU.set.call(this,e[0],t,n,e[0])};function pD(e,t){const n=e[zu];return(n?Ng(n):e)[t]}function kLe(e,t,n){var i;const r=xce(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function xce(e,t){if(!(t in e))return;let n=jv(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=jv(n)}}function D8(e){e.modified_||(e.modified_=!0,e.parent_&&D8(e.parent_))}function mD(e){e.copy_||(e.copy_=R8(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var ALe=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const a=n;n=t;const s=this;return function(l=a,...u){return s.produce(l,d=>n.call(this,d,...u))}}typeof n!="function"&&xd(6),r!==void 0&&typeof r!="function"&&xd(7);let i;if(vp(t)){const a=_K(this),s=P8(t,void 0);let o=!0;try{i=n(s),o=!1}finally{o?I8(a):N8(a)}return AK(a,r),CK(i,a)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===Oce&&(i=void 0),this.autoFreeze_&&mU(i,!0),r){const a=[],s=[];k1("Patches").generateReplacementPatches_(t,i,a,s),r(a,s)}return i}else xd(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...o)=>this.produceWithPatches(s,l=>t(l,...o));let r,i;return[this.produce(t,n,(s,o)=>{r=s,i=o}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){vp(e)||xd(8),T1(e)&&(e=_Le(e));const t=_K(this),n=P8(e,void 0);return n[zu].isManual_=!0,N8(t),n}finishDraft(e,t){const n=e&&e[zu];(!n||!n.isManual_)&&xd(9);const{scope_:r}=n;return AK(r,t),CK(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=k1("Patches").applyPatches_;return T1(e)?r(e,t):this.produce(e,i=>r(i,t))}};function P8(e,t){const n=_R(e)?k1("MapSet").proxyMap_(e,t):CR(e)?k1("MapSet").proxySet_(e,t):TLe(e,t);return(t?t.scope_:wce()).drafts_.push(n),n}function _Le(e){return T1(e)||xd(10,e),Tce(e)}function Tce(e){if(!vp(e)||RR(e))return e;const t=e[zu];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=R8(e,t.scope_.immer_.useStrictShallowCopy_)}else n=R8(e,!0);return W3(n,(r,i)=>{Ece(n,r,Tce(i))}),t&&(t.finalized_=!1),n}var Hu=new ALe,kce=Hu.produce;Hu.produceWithPatches.bind(Hu);Hu.setAutoFreeze.bind(Hu);Hu.setUseStrictShallowCopy.bind(Hu);Hu.applyPatches.bind(Hu);Hu.createDraft.bind(Hu);Hu.finishDraft.bind(Hu);function Ace(e){return({dispatch:n,getState:r})=>i=>a=>typeof a=="function"?a(n,r,e):i(a)}var CLe=Ace(),RLe=Ace,ILe=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?j3:j3.apply(null,arguments)};function IK(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(Rd(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>yLe(r)&&r.type===e,n}var _ce=class G2 extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,G2.prototype)}static get[Symbol.species](){return G2}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new G2(...t[0].concat(this)):new G2(...t.concat(this))}};function NK(e){return vp(e)?kce(e,()=>{}):e}function DK(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error(Rd(10));const r=n.insert(t,e);return e.set(t,r),r}function NLe(e){return typeof e=="boolean"}var DLe=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let s=new _ce;return n&&(NLe(n)?s.push(CLe):s.push(RLe(n.extraArgument))),s},PLe="RTK_autoBatch",Cce=e=>t=>{setTimeout(t,e)},MLe=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Cce(10),LLe=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,a=!1,s=!1;const o=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?MLe:e.type==="callback"?e.queueNotification:Cce(e.timeout),u=()=>{s=!1,a&&(a=!1,o.forEach(d=>d()))};return Object.assign({},r,{subscribe(d){const f=()=>i&&d(),p=r.subscribe(f);return o.add(d),()=>{p(),o.delete(d)}},dispatch(d){var f;try{return i=!((f=d==null?void 0:d.meta)!=null&&f[PLe]),a=!i,a&&(s||(s=!0,l(u))),r.dispatch(d)}finally{i=!0}}})},$Le=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new _ce(e);return r&&i.push(LLe(typeof r=="object"?r:void 0)),i};function FLe(e){const t=DLe(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:a=void 0,enhancers:s=void 0}=e||{};let o;if(typeof n=="function")o=n;else if(hU(n))o=vce(n);else throw new Error(Rd(1));let l;typeof r=="function"?l=r(t):l=t();let u=j3;i&&(u=ILe({trace:!1,...typeof i=="object"&&i}));const d=bLe(...l),f=$Le(d);let p=typeof s=="function"?s(f):f();const g=u(...p);return pU(o,a,g)}function Rce(e){const t={},n=[];let r;const i={addCase(a,s){const o=typeof a=="string"?a:a.type;if(!o)throw new Error(Rd(28));if(o in t)throw new Error(Rd(29));return t[o]=s,i},addMatcher(a,s){return n.push({matcher:a,reducer:s}),i},addDefaultCase(a){return r=a,i}};return e(i),[t,n,r]}function BLe(e){return typeof e=="function"}function ULe(e,t){let[n,r,i]=Rce(t),a;if(BLe(e))a=()=>NK(e());else{const o=NK(e);a=()=>o}function s(o=a(),l){let u=[n[l.type],...r.filter(({matcher:d})=>d(l)).map(({reducer:d})=>d)];return u.filter(d=>!!d).length===0&&(u=[i]),u.reduce((d,f)=>{if(f)if(T1(d)){const g=f(d,l);return g===void 0?d:g}else{if(vp(d))return kce(d,p=>f(p,l));{const p=f(d,l);if(p===void 0){if(d===null)return d;throw new Error(Rd(9))}return p}}return d},o)}return s.getInitialState=a,s}var zLe=Symbol.for("rtk-slice-createasyncthunk");function HLe(e,t){return`${e}/${t}`}function jLe({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[zLe];return function(i){const{name:a,reducerPath:s=a}=i;if(!a)throw new Error(Rd(11));typeof process<"u";const o=(typeof i.reducers=="function"?i.reducers(QLe()):i.reducers)||{},l=Object.keys(o),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(k,_){const C=typeof k=="string"?k:k.type;if(!C)throw new Error(Rd(12));if(C in u.sliceCaseReducersByType)throw new Error(Rd(13));return u.sliceCaseReducersByType[C]=_,d},addMatcher(k,_){return u.sliceMatchers.push({matcher:k,reducer:_}),d},exposeAction(k,_){return u.actionCreators[k]=_,d},exposeCaseReducer(k,_){return u.sliceCaseReducersByName[k]=_,d}};l.forEach(k=>{const _=o[k],C={reducerName:k,type:HLe(a,k),createNotation:typeof i.reducers=="function"};VLe(_)?YLe(C,_,d,t):GLe(C,_,d)});function f(){const[k={},_=[],C=void 0]=typeof i.extraReducers=="function"?Rce(i.extraReducers):[i.extraReducers],R={...k,...u.sliceCaseReducersByType};return ULe(i.initialState,N=>{for(let M in R)N.addCase(M,R[M]);for(let M of u.sliceMatchers)N.addMatcher(M.matcher,M.reducer);for(let M of _)N.addMatcher(M.matcher,M.reducer);C&&N.addDefaultCase(C)})}const p=k=>k,g=new Map;let b;function S(k,_){return b||(b=f()),b(k,_)}function E(){return b||(b=f()),b.getInitialState()}function w(k,_=!1){function C(N){let M=N[k];return typeof M>"u"&&_&&(M=E()),M}function R(N=p){const M=DK(g,_,{insert:()=>new WeakMap});return DK(M,N,{insert:()=>{const U={};for(const[F,G]of Object.entries(i.selectors??{}))U[F]=WLe(G,N,E,_);return U}})}return{reducerPath:k,getSelectors:R,get selectors(){return R(C)},selectSlice:C}}const x={name:a,reducer:S,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:E,...w(s),injectInto(k,{reducerPath:_,...C}={}){const R=_??s;return k.inject({reducerPath:R,reducer:S},C),{...x,...w(R,!0)}}};return x}}function WLe(e,t,n,r){function i(a,...s){let o=t(a);return typeof o>"u"&&r&&(o=n()),e(o,...s)}return i.unwrapped=e,i}var H1=jLe();function QLe(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function GLe({type:e,reducerName:t,createNotation:n},r,i){let a,s;if("reducer"in r){if(n&&!qLe(r))throw new Error(Rd(17));a=r.reducer,s=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,s?IK(e,s):IK(e))}function VLe(e){return e._reducerDefinitionType==="asyncThunk"}function qLe(e){return e._reducerDefinitionType==="reducerWithPrepare"}function YLe({type:e,reducerName:t},n,r,i){if(!i)throw new Error(Rd(18));const{payloadCreator:a,fulfilled:s,pending:o,rejected:l,settled:u,options:d}=n,f=i(e,a,d);r.exposeAction(t,f),s&&r.addCase(f.fulfilled,s),o&&r.addCase(f.pending,o),l&&r.addCase(f.rejected,l),u&&r.addMatcher(f.settled,u),r.exposeCaseReducer(t,{fulfilled:s||UA,pending:o||UA,rejected:l||UA,settled:u||UA})}function UA(){}function Rd(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const ZLe={theme:"default",drawerOpen:!0},Ice=H1({name:"editor",initialState:ZLe,reducers:{setTheme:(e,t)=>{e.theme=t.payload},setDrawerOpen:(e,t)=>{e.drawerOpen=t.payload}}}),{setTheme:Nce,setDrawerOpen:XLe}=Ice.actions,bU=e=>e.config,KLe=Ice.reducer;function Dce(e,t){return function(){return e.apply(t,arguments)}}const{toString:JLe}=Object.prototype,{getPrototypeOf:yU}=Object,IR=(e=>t=>{const n=JLe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),zd=e=>(e=e.toLowerCase(),t=>IR(t)===e),NR=e=>t=>typeof t===e,{isArray:TO}=Array,Aw=NR("undefined");function e$e(e){return e!==null&&!Aw(e)&&e.constructor!==null&&!Aw(e.constructor)&&Fu(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Pce=zd("ArrayBuffer");function t$e(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Pce(e.buffer),t}const n$e=NR("string"),Fu=NR("function"),Mce=NR("number"),DR=e=>e!==null&&typeof e=="object",r$e=e=>e===!0||e===!1,b4=e=>{if(IR(e)!=="object")return!1;const t=yU(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},i$e=zd("Date"),a$e=zd("File"),s$e=zd("Blob"),o$e=zd("FileList"),l$e=e=>DR(e)&&Fu(e.pipe),u$e=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Fu(e.append)&&((t=IR(e))==="formdata"||t==="object"&&Fu(e.toString)&&e.toString()==="[object FormData]"))},c$e=zd("URLSearchParams"),[d$e,f$e,h$e,p$e]=["ReadableStream","Request","Response","Headers"].map(zd),m$e=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Bx(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),TO(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Gg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,$ce=e=>!Aw(e)&&e!==Gg;function M8(){const{caseless:e}=$ce(this)&&this||{},t={},n=(r,i)=>{const a=e&&Lce(t,i)||i;b4(t[a])&&b4(r)?t[a]=M8(t[a],r):b4(r)?t[a]=M8({},r):TO(r)?t[a]=r.slice():t[a]=r};for(let r=0,i=arguments.length;r(Bx(t,(i,a)=>{n&&Fu(i)?e[a]=Dce(i,n):e[a]=i},{allOwnKeys:r}),e),b$e=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),y$e=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},v$e=(e,t,n,r)=>{let i,a,s;const o={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)s=i[a],(!r||r(s,e,t))&&!o[s]&&(t[s]=e[s],o[s]=!0);e=n!==!1&&yU(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},O$e=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},S$e=e=>{if(!e)return null;if(TO(e))return e;let t=e.length;if(!Mce(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},E$e=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&yU(Uint8Array)),w$e=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},x$e=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},T$e=zd("HTMLFormElement"),k$e=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),PK=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),A$e=zd("RegExp"),Fce=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Bx(n,(i,a)=>{let s;(s=t(i,a,e))!==!1&&(r[a]=s||i)}),Object.defineProperties(e,r)},_$e=e=>{Fce(e,(t,n)=>{if(Fu(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Fu(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},C$e=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return TO(e)?r(e):r(String(e).split(t)),n},R$e=()=>{},I$e=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,gD="abcdefghijklmnopqrstuvwxyz",MK="0123456789",Bce={DIGIT:MK,ALPHA:gD,ALPHA_DIGIT:gD+gD.toUpperCase()+MK},N$e=(e=16,t=Bce.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function D$e(e){return!!(e&&Fu(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const P$e=e=>{const t=new Array(10),n=(r,i)=>{if(DR(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const a=TO(r)?[]:{};return Bx(r,(s,o)=>{const l=n(s,i+1);!Aw(l)&&(a[o]=l)}),t[i]=void 0,a}}return r};return n(e,0)},M$e=zd("AsyncFunction"),L$e=e=>e&&(DR(e)||Fu(e))&&Fu(e.then)&&Fu(e.catch),Uce=((e,t)=>e?setImmediate:t?((n,r)=>(Gg.addEventListener("message",({source:i,data:a})=>{i===Gg&&a===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Gg.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Fu(Gg.postMessage)),$$e=typeof queueMicrotask<"u"?queueMicrotask.bind(Gg):typeof process<"u"&&process.nextTick||Uce,ut={isArray:TO,isArrayBuffer:Pce,isBuffer:e$e,isFormData:u$e,isArrayBufferView:t$e,isString:n$e,isNumber:Mce,isBoolean:r$e,isObject:DR,isPlainObject:b4,isReadableStream:d$e,isRequest:f$e,isResponse:h$e,isHeaders:p$e,isUndefined:Aw,isDate:i$e,isFile:a$e,isBlob:s$e,isRegExp:A$e,isFunction:Fu,isStream:l$e,isURLSearchParams:c$e,isTypedArray:E$e,isFileList:o$e,forEach:Bx,merge:M8,extend:g$e,trim:m$e,stripBOM:b$e,inherits:y$e,toFlatObject:v$e,kindOf:IR,kindOfTest:zd,endsWith:O$e,toArray:S$e,forEachEntry:w$e,matchAll:x$e,isHTMLForm:T$e,hasOwnProperty:PK,hasOwnProp:PK,reduceDescriptors:Fce,freezeMethods:_$e,toObjectSet:C$e,toCamelCase:k$e,noop:R$e,toFiniteNumber:I$e,findKey:Lce,global:Gg,isContextDefined:$ce,ALPHABET:Bce,generateString:N$e,isSpecCompliantForm:D$e,toJSONObject:P$e,isAsyncFn:M$e,isThenable:L$e,setImmediate:Uce,asap:$$e};function ir(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}ut.inherits(ir,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ut.toJSONObject(this.config),code:this.code,status:this.status}}});const zce=ir.prototype,Hce={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Hce[e]={value:e}});Object.defineProperties(ir,Hce);Object.defineProperty(zce,"isAxiosError",{value:!0});ir.from=(e,t,n,r,i,a)=>{const s=Object.create(zce);return ut.toFlatObject(e,s,function(l){return l!==Error.prototype},o=>o!=="isAxiosError"),ir.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,a&&Object.assign(s,a),s};const F$e=null;function L8(e){return ut.isPlainObject(e)||ut.isArray(e)}function jce(e){return ut.endsWith(e,"[]")?e.slice(0,-2):e}function LK(e,t,n){return e?e.concat(t).map(function(i,a){return i=jce(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function B$e(e){return ut.isArray(e)&&!e.some(L8)}const U$e=ut.toFlatObject(ut,{},null,function(t){return/^is[A-Z]/.test(t)});function PR(e,t,n){if(!ut.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ut.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,E){return!ut.isUndefined(E[S])});const r=n.metaTokens,i=n.visitor||d,a=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&ut.isSpecCompliantForm(t);if(!ut.isFunction(i))throw new TypeError("visitor must be a function");function u(b){if(b===null)return"";if(ut.isDate(b))return b.toISOString();if(!l&&ut.isBlob(b))throw new ir("Blob is not supported. Use a Buffer instead.");return ut.isArrayBuffer(b)||ut.isTypedArray(b)?l&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function d(b,S,E){let w=b;if(b&&!E&&typeof b=="object"){if(ut.endsWith(S,"{}"))S=r?S:S.slice(0,-2),b=JSON.stringify(b);else if(ut.isArray(b)&&B$e(b)||(ut.isFileList(b)||ut.endsWith(S,"[]"))&&(w=ut.toArray(b)))return S=jce(S),w.forEach(function(k,_){!(ut.isUndefined(k)||k===null)&&t.append(s===!0?LK([S],_,a):s===null?S:S+"[]",u(k))}),!1}return L8(b)?!0:(t.append(LK(E,S,a),u(b)),!1)}const f=[],p=Object.assign(U$e,{defaultVisitor:d,convertValue:u,isVisitable:L8});function g(b,S){if(!ut.isUndefined(b)){if(f.indexOf(b)!==-1)throw Error("Circular reference detected in "+S.join("."));f.push(b),ut.forEach(b,function(w,x){(!(ut.isUndefined(w)||w===null)&&i.call(t,w,ut.isString(x)?x.trim():x,S,p))===!0&&g(w,S?S.concat(x):[x])}),f.pop()}}if(!ut.isObject(e))throw new TypeError("data must be an object");return g(e),t}function $K(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function vU(e,t){this._pairs=[],e&&PR(e,this,t)}const Wce=vU.prototype;Wce.append=function(t,n){this._pairs.push([t,n])};Wce.toString=function(t){const n=t?function(r){return t.call(this,r,$K)}:$K;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function z$e(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Qce(e,t,n){if(!t)return e;const r=n&&n.encode||z$e,i=n&&n.serialize;let a;if(i?a=i(t,n):a=ut.isURLSearchParams(t)?t.toString():new vU(t,n).toString(r),a){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class FK{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ut.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Gce={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},H$e=typeof URLSearchParams<"u"?URLSearchParams:vU,j$e=typeof FormData<"u"?FormData:null,W$e=typeof Blob<"u"?Blob:null,Q$e={isBrowser:!0,classes:{URLSearchParams:H$e,FormData:j$e,Blob:W$e},protocols:["http","https","file","blob","url","data"]},OU=typeof window<"u"&&typeof document<"u",$8=typeof navigator=="object"&&navigator||void 0,G$e=OU&&(!$8||["ReactNative","NativeScript","NS"].indexOf($8.product)<0),V$e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",q$e=OU&&window.location.href||"http://localhost",Y$e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:OU,hasStandardBrowserEnv:G$e,hasStandardBrowserWebWorkerEnv:V$e,navigator:$8,origin:q$e},Symbol.toStringTag,{value:"Module"})),Hl={...Y$e,...Q$e};function Z$e(e,t){return PR(e,new Hl.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,a){return Hl.isNode&&ut.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function X$e(e){return ut.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function K$e(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r=n.length;return s=!s&&ut.isArray(i)?i.length:s,l?(ut.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!o):((!i[s]||!ut.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],a)&&ut.isArray(i[s])&&(i[s]=K$e(i[s])),!o)}if(ut.isFormData(e)&&ut.isFunction(e.entries)){const n={};return ut.forEachEntry(e,(r,i)=>{t(X$e(r),i,n,0)}),n}return null}function J$e(e,t,n){if(ut.isString(e))try{return(t||JSON.parse)(e),ut.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ux={transitional:Gce,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=ut.isObject(t);if(a&&ut.isHTMLForm(t)&&(t=new FormData(t)),ut.isFormData(t))return i?JSON.stringify(Vce(t)):t;if(ut.isArrayBuffer(t)||ut.isBuffer(t)||ut.isStream(t)||ut.isFile(t)||ut.isBlob(t)||ut.isReadableStream(t))return t;if(ut.isArrayBufferView(t))return t.buffer;if(ut.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Z$e(t,this.formSerializer).toString();if((o=ut.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return PR(o?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),J$e(t)):t}],transformResponse:[function(t){const n=this.transitional||Ux.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(ut.isResponse(t)||ut.isReadableStream(t))return t;if(t&&ut.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(o){if(s)throw o.name==="SyntaxError"?ir.from(o,ir.ERR_BAD_RESPONSE,this,null,this.response):o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Hl.classes.FormData,Blob:Hl.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ut.forEach(["delete","get","head","post","put","patch"],e=>{Ux.headers[e]={}});const eFe=ut.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),tFe=e=>{const t={};let n,r,i;return e&&e.split(` +`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&eFe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},BK=Symbol("internals");function g2(e){return e&&String(e).trim().toLowerCase()}function y4(e){return e===!1||e==null?e:ut.isArray(e)?e.map(y4):String(e)}function nFe(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const rFe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function bD(e,t,n,r,i){if(ut.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!ut.isString(t)){if(ut.isString(r))return t.indexOf(r)!==-1;if(ut.isRegExp(r))return r.test(t)}}function iFe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function aFe(e,t){const n=ut.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,a,s){return this[r].call(this,t,i,a,s)},configurable:!0})})}let jl=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function a(o,l,u){const d=g2(l);if(!d)throw new Error("header name must be a non-empty string");const f=ut.findKey(i,d);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=y4(o))}const s=(o,l)=>ut.forEach(o,(u,d)=>a(u,d,l));if(ut.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(ut.isString(t)&&(t=t.trim())&&!rFe(t))s(tFe(t),n);else if(ut.isHeaders(t))for(const[o,l]of t.entries())a(l,o,r);else t!=null&&a(n,t,r);return this}get(t,n){if(t=g2(t),t){const r=ut.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return nFe(i);if(ut.isFunction(n))return n.call(this,i,r);if(ut.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=g2(t),t){const r=ut.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||bD(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function a(s){if(s=g2(s),s){const o=ut.findKey(r,s);o&&(!n||bD(r,r[o],o,n))&&(delete r[o],i=!0)}}return ut.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!t||bD(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,r={};return ut.forEach(this,(i,a)=>{const s=ut.findKey(r,a);if(s){n[s]=y4(i),delete n[a];return}const o=t?iFe(a):String(a).trim();o!==a&&delete n[a],n[o]=y4(i),r[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ut.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&ut.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[BK]=this[BK]={accessors:{}}).accessors,i=this.prototype;function a(s){const o=g2(s);r[o]||(aFe(i,s),r[o]=!0)}return ut.isArray(t)?t.forEach(a):a(t),this}};jl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ut.reduceDescriptors(jl.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ut.freezeMethods(jl);function yD(e,t){const n=this||Ux,r=t||n,i=jl.from(r.headers);let a=r.data;return ut.forEach(e,function(o){a=o.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function qce(e){return!!(e&&e.__CANCEL__)}function kO(e,t,n){ir.call(this,e??"canceled",ir.ERR_CANCELED,t,n),this.name="CanceledError"}ut.inherits(kO,ir,{__CANCEL__:!0});function Yce(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ir("Request failed with status code "+n.status,[ir.ERR_BAD_REQUEST,ir.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function sFe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function oFe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,s;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),d=r[a];s||(s=u),n[i]=l,r[i]=u;let f=a,p=0;for(;f!==i;)p+=n[f++],f=f%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),u-s{n=d,i=null,a&&(clearTimeout(a),a=null),e.apply(null,u)};return[(...u)=>{const d=Date.now(),f=d-n;f>=r?s(u,d):(i=u,a||(a=setTimeout(()=>{a=null,s(i)},r-f)))},()=>i&&s(i)]}const V3=(e,t,n=3)=>{let r=0;const i=oFe(50,250);return lFe(a=>{const s=a.loaded,o=a.lengthComputable?a.total:void 0,l=s-r,u=i(l),d=s<=o;r=s;const f={loaded:s,total:o,progress:o?s/o:void 0,bytes:l,rate:u||void 0,estimated:u&&o&&d?(o-s)/u:void 0,event:a,lengthComputable:o!=null,[t?"download":"upload"]:!0};e(f)},n)},UK=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},zK=e=>(...t)=>ut.asap(()=>e(...t)),uFe=Hl.hasStandardBrowserEnv?function(){const t=Hl.navigator&&/(msie|trident)/i.test(Hl.navigator.userAgent),n=document.createElement("a");let r;function i(a){let s=a;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(s){const o=ut.isString(s)?i(s):s;return o.protocol===r.protocol&&o.host===r.host}}():function(){return function(){return!0}}(),cFe=Hl.hasStandardBrowserEnv?{write(e,t,n,r,i,a){const s=[e+"="+encodeURIComponent(t)];ut.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),ut.isString(r)&&s.push("path="+r),ut.isString(i)&&s.push("domain="+i),a===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function dFe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function fFe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Zce(e,t){return e&&!dFe(t)?fFe(e,t):t}const HK=e=>e instanceof jl?{...e}:e;function A1(e,t){t=t||{};const n={};function r(u,d,f){return ut.isPlainObject(u)&&ut.isPlainObject(d)?ut.merge.call({caseless:f},u,d):ut.isPlainObject(d)?ut.merge({},d):ut.isArray(d)?d.slice():d}function i(u,d,f){if(ut.isUndefined(d)){if(!ut.isUndefined(u))return r(void 0,u,f)}else return r(u,d,f)}function a(u,d){if(!ut.isUndefined(d))return r(void 0,d)}function s(u,d){if(ut.isUndefined(d)){if(!ut.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function o(u,d,f){if(f in t)return r(u,d);if(f in e)return r(void 0,u)}const l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:o,headers:(u,d)=>i(HK(u),HK(d),!0)};return ut.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=l[d]||i,p=f(e[d],t[d],d);ut.isUndefined(p)&&f!==o||(n[d]=p)}),n}const Xce=e=>{const t=A1({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:o}=t;t.headers=s=jl.from(s),t.url=Qce(Zce(t.baseURL,t.url),e.params,e.paramsSerializer),o&&s.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):"")));let l;if(ut.isFormData(n)){if(Hl.hasStandardBrowserEnv||Hl.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((l=s.getContentType())!==!1){const[u,...d]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([u||"multipart/form-data",...d].join("; "))}}if(Hl.hasStandardBrowserEnv&&(r&&ut.isFunction(r)&&(r=r(t)),r||r!==!1&&uFe(t.url))){const u=i&&a&&cFe.read(a);u&&s.set(i,u)}return t},hFe=typeof XMLHttpRequest<"u",pFe=hFe&&function(e){return new Promise(function(n,r){const i=Xce(e);let a=i.data;const s=jl.from(i.headers).normalize();let{responseType:o,onUploadProgress:l,onDownloadProgress:u}=i,d,f,p,g,b;function S(){g&&g(),b&&b(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let E=new XMLHttpRequest;E.open(i.method.toUpperCase(),i.url,!0),E.timeout=i.timeout;function w(){if(!E)return;const k=jl.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),C={data:!o||o==="text"||o==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:k,config:e,request:E};Yce(function(N){n(N),S()},function(N){r(N),S()},C),E=null}"onloadend"in E?E.onloadend=w:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(w)},E.onabort=function(){E&&(r(new ir("Request aborted",ir.ECONNABORTED,e,E)),E=null)},E.onerror=function(){r(new ir("Network Error",ir.ERR_NETWORK,e,E)),E=null},E.ontimeout=function(){let _=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const C=i.transitional||Gce;i.timeoutErrorMessage&&(_=i.timeoutErrorMessage),r(new ir(_,C.clarifyTimeoutError?ir.ETIMEDOUT:ir.ECONNABORTED,e,E)),E=null},a===void 0&&s.setContentType(null),"setRequestHeader"in E&&ut.forEach(s.toJSON(),function(_,C){E.setRequestHeader(C,_)}),ut.isUndefined(i.withCredentials)||(E.withCredentials=!!i.withCredentials),o&&o!=="json"&&(E.responseType=i.responseType),u&&([p,b]=V3(u,!0),E.addEventListener("progress",p)),l&&E.upload&&([f,g]=V3(l),E.upload.addEventListener("progress",f),E.upload.addEventListener("loadend",g)),(i.cancelToken||i.signal)&&(d=k=>{E&&(r(!k||k.type?new kO(null,e,E):k),E.abort(),E=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const x=sFe(i.url);if(x&&Hl.protocols.indexOf(x)===-1){r(new ir("Unsupported protocol "+x+":",ir.ERR_BAD_REQUEST,e));return}E.send(a||null)})},mFe=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const a=function(u){if(!i){i=!0,o();const d=u instanceof Error?u:this.reason;r.abort(d instanceof ir?d:new kO(d instanceof Error?d.message:d))}};let s=t&&setTimeout(()=>{s=null,a(new ir(`timeout ${t} of ms exceeded`,ir.ETIMEDOUT))},t);const o=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),e=null)};e.forEach(u=>u.addEventListener("abort",a));const{signal:l}=r;return l.unsubscribe=()=>ut.asap(o),l}},gFe=function*(e,t){let n=e.byteLength;if(!t||n{const i=bFe(e,t);let a=0,s,o=l=>{s||(s=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:d}=await i.next();if(u){o(),l.close();return}let f=d.byteLength;if(n){let p=a+=f;n(p)}l.enqueue(new Uint8Array(d))}catch(u){throw o(u),u}},cancel(l){return o(l),i.return()}},{highWaterMark:2})},MR=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Kce=MR&&typeof ReadableStream=="function",vFe=MR&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Jce=(e,...t)=>{try{return!!e(...t)}catch{return!1}},OFe=Kce&&Jce(()=>{let e=!1;const t=new Request(Hl.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),WK=64*1024,F8=Kce&&Jce(()=>ut.isReadableStream(new Response("").body)),q3={stream:F8&&(e=>e.body)};MR&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!q3[t]&&(q3[t]=ut.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new ir(`Response type '${t}' is not supported`,ir.ERR_NOT_SUPPORT,r)})})})(new Response);const SFe=async e=>{if(e==null)return 0;if(ut.isBlob(e))return e.size;if(ut.isSpecCompliantForm(e))return(await new Request(Hl.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(ut.isArrayBufferView(e)||ut.isArrayBuffer(e))return e.byteLength;if(ut.isURLSearchParams(e)&&(e=e+""),ut.isString(e))return(await vFe(e)).byteLength},EFe=async(e,t)=>{const n=ut.toFiniteNumber(e.getContentLength());return n??SFe(t)},wFe=MR&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:a,timeout:s,onDownloadProgress:o,onUploadProgress:l,responseType:u,headers:d,withCredentials:f="same-origin",fetchOptions:p}=Xce(e);u=u?(u+"").toLowerCase():"text";let g=mFe([i,a&&a.toAbortSignal()],s),b;const S=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let E;try{if(l&&OFe&&n!=="get"&&n!=="head"&&(E=await EFe(d,r))!==0){let C=new Request(t,{method:"POST",body:r,duplex:"half"}),R;if(ut.isFormData(r)&&(R=C.headers.get("content-type"))&&d.setContentType(R),C.body){const[N,M]=UK(E,V3(zK(l)));r=jK(C.body,WK,N,M)}}ut.isString(f)||(f=f?"include":"omit");const w="credentials"in Request.prototype;b=new Request(t,{...p,signal:g,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:w?f:void 0});let x=await fetch(b);const k=F8&&(u==="stream"||u==="response");if(F8&&(o||k&&S)){const C={};["status","statusText","headers"].forEach(U=>{C[U]=x[U]});const R=ut.toFiniteNumber(x.headers.get("content-length")),[N,M]=o&&UK(R,V3(zK(o),!0))||[];x=new Response(jK(x.body,WK,N,()=>{M&&M(),S&&S()}),C)}u=u||"text";let _=await q3[ut.findKey(q3,u)||"text"](x,e);return!k&&S&&S(),await new Promise((C,R)=>{Yce(C,R,{data:_,headers:jl.from(x.headers),status:x.status,statusText:x.statusText,config:e,request:b})})}catch(w){throw S&&S(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new ir("Network Error",ir.ERR_NETWORK,e,b),{cause:w.cause||w}):ir.from(w,w&&w.code,e,b)}}),B8={http:F$e,xhr:pFe,fetch:wFe};ut.forEach(B8,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const QK=e=>`- ${e}`,xFe=e=>ut.isFunction(e)||e===null||e===!1,ede={getAdapter:e=>{e=ut.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let a=0;a`adapter ${o} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?a.length>1?`since : +`+a.map(QK).join(` +`):" "+QK(a[0]):"as no adapter specified";throw new ir("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:B8};function vD(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new kO(null,e)}function GK(e){return vD(e),e.headers=jl.from(e.headers),e.data=yD.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ede.getAdapter(e.adapter||Ux.adapter)(e).then(function(r){return vD(e),r.data=yD.call(e,e.transformResponse,r),r.headers=jl.from(r.headers),r},function(r){return qce(r)||(vD(e),r&&r.response&&(r.response.data=yD.call(e,e.transformResponse,r.response),r.response.headers=jl.from(r.response.headers))),Promise.reject(r)})}const tde="1.7.7",SU={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{SU[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const VK={};SU.transitional=function(t,n,r){function i(a,s){return"[Axios v"+tde+"] Transitional option '"+a+"'"+s+(r?". "+r:"")}return(a,s,o)=>{if(t===!1)throw new ir(i(s," has been removed"+(n?" in "+n:"")),ir.ERR_DEPRECATED);return n&&!VK[s]&&(VK[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,s,o):!0}};function TFe(e,t,n){if(typeof e!="object")throw new ir("options must be an object",ir.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],s=t[a];if(s){const o=e[a],l=o===void 0||s(o,a,e);if(l!==!0)throw new ir("option "+a+" must be "+l,ir.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ir("Unknown option "+a,ir.ERR_BAD_OPTION)}}const U8={assertOptions:TFe,validators:SU},f0=U8.validators;let h1=class{constructor(t){this.defaults=t,this.interceptors={request:new FK,response:new FK}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=A1(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&U8.assertOptions(r,{silentJSONParsing:f0.transitional(f0.boolean),forcedJSONParsing:f0.transitional(f0.boolean),clarifyTimeoutError:f0.transitional(f0.boolean)},!1),i!=null&&(ut.isFunction(i)?n.paramsSerializer={serialize:i}:U8.assertOptions(i,{encode:f0.function,serialize:f0.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=a&&ut.merge(a.common,a[n.method]);a&&ut.forEach(["delete","get","head","post","put","patch","common"],b=>{delete a[b]}),n.headers=jl.concat(s,a);const o=[];let l=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(l=l&&S.synchronous,o.unshift(S.fulfilled,S.rejected))});const u=[];this.interceptors.response.forEach(function(S){u.push(S.fulfilled,S.rejected)});let d,f=0,p;if(!l){const b=[GK.bind(this),void 0];for(b.unshift.apply(b,o),b.push.apply(b,u),p=b.length,d=Promise.resolve(n);f{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const s=new Promise(o=>{r.subscribe(o),a=o}).then(i);return s.cancel=function(){r.unsubscribe(a)},s},t(function(a,s,o){r.reason||(r.reason=new kO(a,s,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new nde(function(i){t=i}),cancel:t}}};function AFe(e){return function(n){return e.apply(null,n)}}function _Fe(e){return ut.isObject(e)&&e.isAxiosError===!0}const z8={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(z8).forEach(([e,t])=>{z8[t]=e});function rde(e){const t=new h1(e),n=Dce(h1.prototype.request,t);return ut.extend(n,h1.prototype,t,{allOwnKeys:!0}),ut.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return rde(A1(e,i))},n}const or=rde(Ux);or.Axios=h1;or.CanceledError=kO;or.CancelToken=kFe;or.isCancel=qce;or.VERSION=tde;or.toFormData=PR;or.AxiosError=ir;or.Cancel=or.CanceledError;or.all=function(t){return Promise.all(t)};or.spread=AFe;or.isAxiosError=_Fe;or.mergeConfig=A1;or.AxiosHeaders=jl;or.formToJSON=e=>Vce(ut.isHTMLForm(e)?new FormData(e):e);or.getAdapter=ede.getAdapter;or.HttpStatusCode=z8;or.default=or;const{Axios:rTt,AxiosError:ide,CanceledError:iTt,isCancel:aTt,CancelToken:sTt,VERSION:oTt,all:lTt,Cancel:uTt,isAxiosError:cTt,spread:dTt,toFormData:fTt,AxiosHeaders:hTt,HttpStatusCode:pTt,formToJSON:mTt,getAdapter:gTt,mergeConfig:bTt}=or;function CFe(){const e=yce();return D.jsx(Wn,{width:1,height:"100vh",alignItems:"center",justifyContent:"center",children:D.jsxs(Wn,{alignItems:"center",children:[D.jsx(Ar,{variant:"h5",children:"Something went wrong"}),Lx(e)&&D.jsxs(Ar,{variant:"subtitle1",children:["Status Code: ",e.status]})]})})}const EU=on.createContext({isLoading:!0,isLoggedIn:!1}),RFe={data:null},ade=H1({name:"user",initialState:RFe,reducers:{setUserData:(e,t)=>{e.data=t.payload}}}),{setUserData:H8}=ade.actions,AO=e=>e.user,IFe=ade.reducer,NFe=e=>{var a;const{children:t}=e,{isLoggedIn:n}=L.useContext(EU),r=Mm(),i=Pr(AO);return n?D.jsx(dU,{to:`/${(a=i.data)==null?void 0:a.lastWorkspaceSlug}`,state:{from:r},replace:!0}):t},DFe=e=>{const{children:t}=e,{isLoggedIn:n,isLoading:r}=L.useContext(EU),i=Mm();return r?D.jsx(SO,{open:!0,children:D.jsx(Md,{color:"inherit"})}):n?t:D.jsx(dU,{to:"/",state:{from:i},replace:!0})};var wU={},OD={};const PFe=Rp($Ce);var qK;function aa(){return qK||(qK=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=PFe}(OD)),OD}var MFe=Bi;Object.defineProperty(wU,"__esModule",{value:!0});var sde=wU.default=void 0,LFe=MFe(aa()),$Fe=D;sde=wU.default=(0,LFe.default)((0,$Fe.jsx)("path",{d:"M17.77 3.77 16 2 6 12l10 10 1.77-1.77L9.54 12z"}),"ArrowBackIosNew");var xU={},FFe=Bi;Object.defineProperty(xU,"__esModule",{value:!0});var ode=xU.default=void 0,BFe=FFe(aa()),UFe=D;ode=xU.default=(0,BFe.default)((0,UFe.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");var TU={},zFe=Bi;Object.defineProperty(TU,"__esModule",{value:!0});var lde=TU.default=void 0,HFe=zFe(aa()),jFe=D;lde=TU.default=(0,HFe.default)((0,jFe.jsx)("path",{d:"M3 15h8v-2H3zm0 4h8v-2H3zm0-8h8V9H3zm0-6v2h8V5zm10 0h8v14h-8z"}),"VerticalSplit");var kU={},WFe=Bi;Object.defineProperty(kU,"__esModule",{value:!0});var AU=kU.default=void 0,QFe=WFe(aa()),GFe=D;AU=kU.default=(0,QFe.default)((0,GFe.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");const VFe=e=>{const[t,n]=L.useState([]);return L.useEffect(()=>{if(!e)return;const r=()=>n(e.getPresences()??[]);r();const i=e.subscribe("others",a=>{(a.type==="presence-changed"||a.type==="watched")&&r(),a.type==="unwatched"&&n(s=>s.filter(o=>o.clientID!==a.value.clientID))});return()=>{i(),n([])}},[e]),{presenceList:t}},qFe={mode:"both",shareRole:null,doc:null,client:null,cmView:null},ude=H1({name:"editor",initialState:qFe,reducers:{setMode:(e,t)=>{e.mode=t.payload},setShareRole:(e,t)=>{e.shareRole=t.payload},setDoc:(e,t)=>{e.doc=t.payload},setClient:(e,t)=>{e.client=t.payload},setCmView:(e,t)=>{Object.assign(e,{cmView:t.payload})}}}),{setMode:j8,setDoc:Y3,setClient:Z3,setShareRole:YFe,setCmView:ZFe}=ude.actions,Dp=e=>e.editor,XFe=ude.reducer,KFe={data:null},cde=H1({name:"workspace",initialState:KFe,reducers:{setWorkspaceData:(e,t)=>{e.data=t.payload}}}),{setWorkspaceData:YK}=cde.actions,LR=e=>e.workspace,JFe=cde.reducer,eBe=Ud(D.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt");function dde(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t=0)&&(n[i]=e[i]);return n}function ZK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var fde=on.createContext(),iBe={mui:{root:{},anchorOriginTopCenter:{},anchorOriginBottomCenter:{},anchorOriginTopRight:{},anchorOriginBottomRight:{},anchorOriginTopLeft:{},anchorOriginBottomLeft:{}},container:{containerRoot:{},containerAnchorOriginTopCenter:{},containerAnchorOriginBottomCenter:{},containerAnchorOriginTopRight:{},containerAnchorOriginBottomRight:{},containerAnchorOriginTopLeft:{},containerAnchorOriginBottomLeft:{}}},Mh={view:{default:20,dense:4},snackbar:{default:6,dense:2}},Vg={maxSnack:3,dense:!1,hideIconVariant:!1,variant:"default",autoHideDuration:5e3,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:WNe,transitionDuration:{enter:225,exit:195}},SE=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},aBe=function(t){return""+SE(t.vertical)+SE(t.horizontal)},sBe=function(t){return Object.keys(t).filter(function(n){return!iBe.container[n]}).reduce(function(n,r){var i;return Hi({},n,(i={},i[r]=t[r],i))},{})},R0={TIMEOUT:"timeout",CLICKAWAY:"clickaway",MAXSNACK:"maxsnack",INSTRUCTED:"instructed"},v4={toContainerAnchorOrigin:function(t){return"containerAnchorOrigin"+t},toAnchorOrigin:function(t){var n=t.vertical,r=t.horizontal;return"anchorOrigin"+SE(n)+SE(r)},toVariant:function(t){return"variant"+SE(t)}},zA=function(t){return!!t||t===0},XK=function(t){return typeof t=="number"||t===null},oBe=function(t,n,r){return function(i){return i==="autoHideDuration"?XK(t.autoHideDuration)?t.autoHideDuration:XK(n.autoHideDuration)?n.autoHideDuration:Vg.autoHideDuration:t[i]||n[i]||r[i]}};function SD(e,t,n){return e===void 0&&(e={}),t===void 0&&(t={}),n===void 0&&(n={}),Hi({},n,{},t,{},e)}var lBe="SnackbarContent",hde={root:lBe+"-root"},uBe=pt("div")(function(e){var t,n,r=e.theme;return n={},n["&."+hde.root]=(t={display:"flex",flexWrap:"wrap",flexGrow:1},t[r.breakpoints.up("sm")]={flexGrow:"initial",minWidth:288},t),n}),cBe=L.forwardRef(function(e,t){var n=e.className,r=om(e,["className"]);return on.createElement(uBe,Object.assign({ref:t,className:_w(hde.root,n)},r))}),KK={right:"left",left:"right",bottom:"up",top:"down"},dBe=function(t){return t.horizontal!=="center"?KK[t.horizontal]:KK[t.vertical]},fBe=function(t){return on.createElement(bm,Object.assign({},t),on.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 + 10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},hBe=function(t){return on.createElement(bm,Object.assign({},t),on.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},pBe=function(t){return on.createElement(bm,Object.assign({},t),on.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2, + 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12, + 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},mBe=function(t){return on.createElement(bm,Object.assign({},t),on.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, + 0 22,12A10,10 0 0,0 12,2Z`}))},HA={fontSize:20,marginInlineEnd:8},gBe={default:void 0,success:on.createElement(fBe,{style:HA}),warning:on.createElement(hBe,{style:HA}),error:on.createElement(pBe,{style:HA}),info:on.createElement(mBe,{style:HA})};function EE(e,t){return e.reduce(function(n,r){return r==null?n:function(){for(var a=arguments.length,s=new Array(a),o=0;o .MuiCollapse-container, & > .MuiCollapse-root",wrapper:"& > .MuiCollapse-container > .MuiCollapse-wrapper, & > .MuiCollapse-root > .MuiCollapse-wrapper"},wD=16,Og="SnackbarContainer",vd={root:Og+"-root",rootDense:Og+"-rootDense",top:Og+"-top",bottom:Og+"-bottom",left:Og+"-left",right:Og+"-right",center:Og+"-center"},SBe=pt("div")(function(e){var t,n,r,i,a,s,o=e.theme;return s={},s["&."+vd.root]=(t={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:o.zIndex.snackbar,height:"auto",width:"auto",transition:"top 300ms ease 0ms, right 300ms ease 0ms, bottom 300ms ease 0ms, left 300ms ease 0ms, margin 300ms ease 0ms, max-width 300ms ease 0ms",pointerEvents:"none"},t[ED.container]={pointerEvents:"all"},t[ED.wrapper]={padding:Mh.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},t.maxWidth="calc(100% - "+Mh.view.default*2+"px)",t[o.breakpoints.down("sm")]={width:"100%",maxWidth:"calc(100% - "+wD*2+"px)"},t),s["&."+vd.rootDense]=(n={},n[ED.wrapper]={padding:Mh.snackbar.dense+"px 0px"},n),s["&."+vd.top]={top:Mh.view.default-Mh.snackbar.default,flexDirection:"column"},s["&."+vd.bottom]={bottom:Mh.view.default-Mh.snackbar.default,flexDirection:"column-reverse"},s["&."+vd.left]=(r={left:Mh.view.default},r[o.breakpoints.up("sm")]={alignItems:"flex-start"},r[o.breakpoints.down("sm")]={left:wD+"px"},r),s["&."+vd.right]=(i={right:Mh.view.default},i[o.breakpoints.up("sm")]={alignItems:"flex-end"},i[o.breakpoints.down("sm")]={right:wD+"px"},i),s["&."+vd.center]=(a={left:"50%",transform:"translateX(-50%)"},a[o.breakpoints.up("sm")]={alignItems:"center"},a),s}),EBe=function(t){var n=t.className,r=t.anchorOrigin,i=t.dense,a=om(t,["className","anchorOrigin","dense"]),s=_w(vd[r.vertical],vd[r.horizontal],vd.root,n,i&&vd.rootDense);return on.createElement(SBe,Object.assign({className:s},a))},wBe=on.memo(EBe),xBe=function(e){rBe(t,e);function t(r){var i;return i=e.call(this,r)||this,i.enqueueSnackbar=function(a,s){s===void 0&&(s={});var o=s,l=o.key,u=o.preventDuplicate,d=om(o,["key","preventDuplicate"]),f=zA(l),p=f?l:new Date().getTime()+Math.random(),g=oBe(d,i.props,Vg),b=Hi({key:p},d,{message:a,open:!0,entered:!1,requestClose:!1,variant:g("variant"),anchorOrigin:g("anchorOrigin"),autoHideDuration:g("autoHideDuration")});return d.persist&&(b.autoHideDuration=void 0),i.setState(function(S){if(u===void 0&&i.props.preventDuplicate||u){var E=function(_){return f?_.key===l:_.message===a},w=S.queue.findIndex(E)>-1,x=S.snacks.findIndex(E)>-1;if(w||x)return S}return i.handleDisplaySnack(Hi({},S,{queue:[].concat(S.queue,[b])}))}),p},i.handleDisplaySnack=function(a){var s=a.snacks;return s.length>=i.maxSnack?i.handleDismissOldest(a):i.processQueue(a)},i.processQueue=function(a){var s=a.queue,o=a.snacks;return s.length>0?Hi({},a,{snacks:[].concat(o,[s[0]]),queue:s.slice(1,s.length)}):a},i.handleDismissOldest=function(a){if(a.snacks.some(function(d){return!d.open||d.requestClose}))return a;var s=!1,o=!1,l=a.snacks.reduce(function(d,f){return d+(f.open&&f.persist?1:0)},0);l===i.maxSnack&&(o=!0);var u=a.snacks.map(function(d){return!s&&(!d.persist||o)?(s=!0,d.entered?(d.onClose&&d.onClose(null,R0.MAXSNACK,d.key),i.props.onClose&&i.props.onClose(null,R0.MAXSNACK,d.key),Hi({},d,{open:!1})):Hi({},d,{requestClose:!0})):Hi({},d)});return Hi({},a,{snacks:u})},i.handleEnteredSnack=function(a,s,o){if(!zA(o))throw new Error("handleEnteredSnack Cannot be called with undefined key");i.setState(function(l){var u=l.snacks;return{snacks:u.map(function(d){return d.key===o?Hi({},d,{entered:!0}):Hi({},d)})}})},i.handleCloseSnack=function(a,s,o){if(i.props.onClose&&i.props.onClose(a,s,o),s!==R0.CLICKAWAY){var l=o===void 0;i.setState(function(u){var d=u.snacks,f=u.queue;return{snacks:d.map(function(p){return!l&&p.key!==o?Hi({},p):p.entered?Hi({},p,{open:!1}):Hi({},p,{requestClose:!0})}),queue:f.filter(function(p){return p.key!==o})}})}},i.closeSnackbar=function(a){var s=i.state.snacks.find(function(o){return o.key===a});zA(a)&&s&&s.onClose&&s.onClose(null,R0.INSTRUCTED,a),i.handleCloseSnack(null,R0.INSTRUCTED,a)},i.handleExitedSnack=function(a,s,o){var l=s||o;if(!zA(l))throw new Error("handleExitedSnack Cannot be called with undefined key");i.setState(function(u){var d=i.processQueue(Hi({},u,{snacks:u.snacks.filter(function(f){return f.key!==l})}));return d.queue.length===0?d:i.handleDismissOldest(d)})},i.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:i.enqueueSnackbar.bind(ZK(i)),closeSnackbar:i.closeSnackbar.bind(ZK(i))}},i}var n=t.prototype;return n.render=function(){var i=this,a=this.state.contextValue,s=this.props,o=s.iconVariant,l=s.dense,u=l===void 0?Vg.dense:l,d=s.hideIconVariant,f=d===void 0?Vg.hideIconVariant:d,p=s.domRoot,g=s.children,b=s.classes,S=b===void 0?{}:b,E=om(s,["maxSnack","preventDuplicate","variant","anchorOrigin","iconVariant","dense","hideIconVariant","domRoot","children","classes"]),w=this.state.snacks.reduce(function(k,_){var C,R=aBe(_.anchorOrigin),N=k[R]||[];return Hi({},k,(C={},C[R]=[].concat(N,[_]),C))},{}),x=Object.keys(w).map(function(k){var _=w[k];return on.createElement(wBe,{key:k,dense:u,anchorOrigin:_[0].anchorOrigin,className:_w(S.containerRoot,S[v4.toContainerAnchorOrigin(k)])},_.map(function(C){return on.createElement(OBe,Object.assign({},E,{key:C.key,snack:C,dense:u,iconVariant:o,hideIconVariant:f,classes:sBe(S),onClose:i.handleCloseSnack,onExited:EE([i.handleExitedSnack,i.props.onExited]),onEntered:EE([i.handleEnteredSnack,i.props.onEntered])}))}))});return on.createElement(fde.Provider,{value:a},g,p?hO.createPortal(x,p):x)},nBe(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||Vg.maxSnack}}]),t}(L.Component),zx=function(){return L.useContext(fde)};const TBe={data:null},pde=H1({name:"document",initialState:TBe,reducers:{setDocumentData:(e,t)=>{e.data=t.payload}}}),{setDocumentData:X3}=pde.actions,$R=e=>e.document,kBe=pde.reducer;var _O=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Wv=typeof window>"u"||"Deno"in globalThis;function cc(){}function ABe(e,t){return typeof e=="function"?e(t):e}function W8(e){return typeof e=="number"&&e>=0&&e!==1/0}function mde(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Zy(e,t){return typeof e=="function"?e(t):e}function Ed(e,t){return typeof e=="function"?e(t):e}function eJ(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:s,stale:o}=e;if(s){if(r){if(t.queryHash!==_U(s,t.options))return!1}else if(!Cw(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||i&&i!==t.state.fetchStatus||a&&!a(t))}function tJ(e,t){const{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(_1(t.options.mutationKey)!==_1(a))return!1}else if(!Cw(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function _U(e,t){return((t==null?void 0:t.queryKeyHashFn)||_1)(e)}function _1(e){return JSON.stringify(e,(t,n)=>Q8(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Cw(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Cw(e[n],t[n])):!1}function gde(e,t){if(e===t)return e;const n=nJ(e)&&nJ(t);if(n||Q8(e)&&Q8(t)){const r=n?e:Object.keys(e),i=r.length,a=n?t:Object.keys(t),s=a.length,o=n?[]:{};let l=0;for(let u=0;u{setTimeout(t,e)})}function G8(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?gde(e,t):t}function CBe(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function RBe(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var bde=Symbol();function yde(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===bde?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var e1,P0,hv,zae,IBe=(zae=class extends _O{constructor(){super();jn(this,e1);jn(this,P0);jn(this,hv);cn(this,hv,t=>{if(!Wv&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){Me(this,P0)||this.setEventListener(Me(this,hv))}onUnsubscribe(){var t;this.hasListeners()||((t=Me(this,P0))==null||t.call(this),cn(this,P0,void 0))}setEventListener(t){var n;cn(this,hv,t),(n=Me(this,P0))==null||n.call(this),cn(this,P0,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){Me(this,e1)!==t&&(cn(this,e1,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof Me(this,e1)=="boolean"?Me(this,e1):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},e1=new WeakMap,P0=new WeakMap,hv=new WeakMap,zae),CU=new IBe,pv,M0,mv,Hae,NBe=(Hae=class extends _O{constructor(){super();jn(this,pv,!0);jn(this,M0);jn(this,mv);cn(this,mv,t=>{if(!Wv&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){Me(this,M0)||this.setEventListener(Me(this,mv))}onUnsubscribe(){var t;this.hasListeners()||((t=Me(this,M0))==null||t.call(this),cn(this,M0,void 0))}setEventListener(t){var n;cn(this,mv,t),(n=Me(this,M0))==null||n.call(this),cn(this,M0,t(this.setOnline.bind(this)))}setOnline(t){Me(this,pv)!==t&&(cn(this,pv,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return Me(this,pv)}},pv=new WeakMap,M0=new WeakMap,mv=new WeakMap,Hae),J3=new NBe;function DBe(e){return Math.min(1e3*2**e,3e4)}function vde(e){return(e??"online")==="online"?J3.isOnline():!0}var Ode=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function xD(e){return e instanceof Ode}function Sde(e){let t=!1,n=0,r=!1,i,a,s;const o=new Promise((w,x)=>{a=w,s=x}),l=w=>{var x;r||(b(new Ode(w)),(x=e.abort)==null||x.call(e))},u=()=>{t=!0},d=()=>{t=!1},f=()=>CU.isFocused()&&(e.networkMode==="always"||J3.isOnline())&&e.canRun(),p=()=>vde(e.networkMode)&&e.canRun(),g=w=>{var x;r||(r=!0,(x=e.onSuccess)==null||x.call(e,w),i==null||i(),a(w))},b=w=>{var x;r||(r=!0,(x=e.onError)==null||x.call(e,w),i==null||i(),s(w))},S=()=>new Promise(w=>{var x;i=k=>{(r||f())&&w(k)},(x=e.onPause)==null||x.call(e)}).then(()=>{var w;i=void 0,r||(w=e.onContinue)==null||w.call(e)}),E=()=>{if(r)return;let w;const x=n===0?e.initialPromise:void 0;try{w=x??e.fn()}catch(k){w=Promise.reject(k)}Promise.resolve(w).then(g).catch(k=>{var M;if(r)return;const _=e.retry??(Wv?0:3),C=e.retryDelay??DBe,R=typeof C=="function"?C(n,k):C,N=_===!0||typeof _=="number"&&n<_||typeof _=="function"&&_(n,k);if(t||!N){b(k);return}n++,(M=e.onFail)==null||M.call(e,n,k),_Be(R).then(()=>f()?void 0:S()).then(()=>{t?b(k):E()})})};return{promise:o,cancel:l,continue:()=>(i==null||i(),o),cancelRetry:u,continueRetry:d,canStart:p,start:()=>(p()?E():S().then(E),o)}}function PBe(){let e=[],t=0,n=p=>{p()},r=p=>{p()},i=p=>setTimeout(p,0);const a=p=>{i=p},s=p=>{let g;t++;try{g=p()}finally{t--,t||u()}return g},o=p=>{t?e.push(p):i(()=>{n(p)})},l=p=>(...g)=>{o(()=>{p(...g)})},u=()=>{const p=e;e=[],p.length&&i(()=>{r(()=>{p.forEach(g=>{n(g)})})})};return{batch:s,batchCalls:l,schedule:o,setNotifyFunction:p=>{n=p},setBatchNotifyFunction:p=>{r=p},setScheduler:a}}var fs=PBe(),t1,jae,Ede=(jae=class{constructor(){jn(this,t1)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),W8(this.gcTime)&&cn(this,t1,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Wv?1/0:5*60*1e3))}clearGcTimeout(){Me(this,t1)&&(clearTimeout(Me(this,t1)),cn(this,t1,void 0))}},t1=new WeakMap,jae),gv,bv,lc,Oo,px,n1,gd,Hh,Wae,MBe=(Wae=class extends Ede{constructor(t){super();jn(this,gd);jn(this,gv);jn(this,bv);jn(this,lc);jn(this,Oo);jn(this,px);jn(this,n1);cn(this,n1,!1),cn(this,px,t.defaultOptions),this.setOptions(t.options),this.observers=[],cn(this,lc,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,cn(this,gv,LBe(this.options)),this.state=t.state??Me(this,gv),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=Me(this,Oo))==null?void 0:t.promise}setOptions(t){this.options={...Me(this,px),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Me(this,lc).remove(this)}setData(t,n){const r=G8(this.state.data,t,this.options);return fr(this,gd,Hh).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){fr(this,gd,Hh).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=Me(this,Oo))==null?void 0:r.promise;return(i=Me(this,Oo))==null||i.cancel(t),n?n.then(cc).catch(cc):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Me(this,gv))}isActive(){return this.observers.some(t=>Ed(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!mde(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=Me(this,Oo))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=Me(this,Oo))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Me(this,lc).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(Me(this,Oo)&&(Me(this,n1)?Me(this,Oo).cancel({revert:!0}):Me(this,Oo).cancelRetry()),this.scheduleGc()),Me(this,lc).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||fr(this,gd,Hh).call(this,{type:"invalidate"})}fetch(t,n){var l,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(Me(this,Oo))return Me(this,Oo).continueRetry(),Me(this,Oo).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(cn(this,n1,!0),r.signal)})},a=()=>{const f=yde(this.options,n),p={queryKey:this.queryKey,meta:this.meta};return i(p),cn(this,n1,!1),this.options.persister?this.options.persister(f,p,this):f(p)},s={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};i(s),(l=this.options.behavior)==null||l.onFetch(s,this),cn(this,bv,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=s.fetchOptions)==null?void 0:u.meta))&&fr(this,gd,Hh).call(this,{type:"fetch",meta:(d=s.fetchOptions)==null?void 0:d.meta});const o=f=>{var p,g,b,S;xD(f)&&f.silent||fr(this,gd,Hh).call(this,{type:"error",error:f}),xD(f)||((g=(p=Me(this,lc).config).onError)==null||g.call(p,f,this),(S=(b=Me(this,lc).config).onSettled)==null||S.call(b,this.state.data,f,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return cn(this,Oo,Sde({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var p,g,b,S;if(f===void 0){o(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(E){o(E);return}(g=(p=Me(this,lc).config).onSuccess)==null||g.call(p,f,this),(S=(b=Me(this,lc).config).onSettled)==null||S.call(b,f,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:o,onFail:(f,p)=>{fr(this,gd,Hh).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{fr(this,gd,Hh).call(this,{type:"pause"})},onContinue:()=>{fr(this,gd,Hh).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),Me(this,Oo).start()}},gv=new WeakMap,bv=new WeakMap,lc=new WeakMap,Oo=new WeakMap,px=new WeakMap,n1=new WeakMap,gd=new WeakSet,Hh=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...wde(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return xD(i)&&i.revert&&Me(this,bv)?{...Me(this,bv),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),fs.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),Me(this,lc).notify({query:this,type:"updated",action:t})})},Wae);function wde(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:vde(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function LBe(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var yf,Qae,xde=(Qae=class extends _O{constructor(t={}){super();jn(this,yf);this.config=t,cn(this,yf,new Map)}build(t,n,r){const i=n.queryKey,a=n.queryHash??_U(i,n);let s=this.get(a);return s||(s=new MBe({cache:this,queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){Me(this,yf).has(t.queryHash)||(Me(this,yf).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=Me(this,yf).get(t.queryHash);n&&(t.destroy(),n===t&&Me(this,yf).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){fs.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Me(this,yf).get(t)}getAll(){return[...Me(this,yf).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>eJ(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>eJ(t,r)):n}notify(t){fs.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){fs.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){fs.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},yf=new WeakMap,Qae),vf,Go,r1,Of,y0,Gae,$Be=(Gae=class extends Ede{constructor(t){super();jn(this,Of);jn(this,vf);jn(this,Go);jn(this,r1);this.mutationId=t.mutationId,cn(this,Go,t.mutationCache),cn(this,vf,[]),this.state=t.state||Tde(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Me(this,vf).includes(t)||(Me(this,vf).push(t),this.clearGcTimeout(),Me(this,Go).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){cn(this,vf,Me(this,vf).filter(n=>n!==t)),this.scheduleGc(),Me(this,Go).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Me(this,vf).length||(this.state.status==="pending"?this.scheduleGc():Me(this,Go).remove(this))}continue(){var t;return((t=Me(this,r1))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,a,s,o,l,u,d,f,p,g,b,S,E,w,x,k,_,C,R,N;cn(this,r1,Sde({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(M,U)=>{fr(this,Of,y0).call(this,{type:"failed",failureCount:M,error:U})},onPause:()=>{fr(this,Of,y0).call(this,{type:"pause"})},onContinue:()=>{fr(this,Of,y0).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Me(this,Go).canRun(this)}));const n=this.state.status==="pending",r=!Me(this,r1).canStart();try{if(!n){fr(this,Of,y0).call(this,{type:"pending",variables:t,isPaused:r}),await((a=(i=Me(this,Go).config).onMutate)==null?void 0:a.call(i,t,this));const U=await((o=(s=this.options).onMutate)==null?void 0:o.call(s,t));U!==this.state.context&&fr(this,Of,y0).call(this,{type:"pending",context:U,variables:t,isPaused:r})}const M=await Me(this,r1).start();return await((u=(l=Me(this,Go).config).onSuccess)==null?void 0:u.call(l,M,t,this.state.context,this)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,M,t,this.state.context)),await((g=(p=Me(this,Go).config).onSettled)==null?void 0:g.call(p,M,null,this.state.variables,this.state.context,this)),await((S=(b=this.options).onSettled)==null?void 0:S.call(b,M,null,t,this.state.context)),fr(this,Of,y0).call(this,{type:"success",data:M}),M}catch(M){try{throw await((w=(E=Me(this,Go).config).onError)==null?void 0:w.call(E,M,t,this.state.context,this)),await((k=(x=this.options).onError)==null?void 0:k.call(x,M,t,this.state.context)),await((C=(_=Me(this,Go).config).onSettled)==null?void 0:C.call(_,void 0,M,this.state.variables,this.state.context,this)),await((N=(R=this.options).onSettled)==null?void 0:N.call(R,void 0,M,t,this.state.context)),M}finally{fr(this,Of,y0).call(this,{type:"error",error:M})}}finally{Me(this,Go).runNext(this)}}},vf=new WeakMap,Go=new WeakMap,r1=new WeakMap,Of=new WeakSet,y0=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),fs.batch(()=>{Me(this,vf).forEach(r=>{r.onMutationUpdate(t)}),Me(this,Go).notify({mutation:this,type:"updated",action:t})})},Gae);function Tde(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var gu,mx,Vae,FBe=(Vae=class extends _O{constructor(t={}){super();jn(this,gu);jn(this,mx);this.config=t,cn(this,gu,new Map),cn(this,mx,Date.now())}build(t,n,r){const i=new $Be({mutationCache:this,mutationId:++sA(this,mx)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=jA(t),r=Me(this,gu).get(n)??[];r.push(t),Me(this,gu).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=jA(t);if(Me(this,gu).has(n)){const i=(r=Me(this,gu).get(n))==null?void 0:r.filter(a=>a!==t);i&&(i.length===0?Me(this,gu).delete(n):Me(this,gu).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=Me(this,gu).get(jA(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=Me(this,gu).get(jA(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){fs.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...Me(this,gu).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>tJ(n,r))}findAll(t={}){return this.getAll().filter(n=>tJ(t,n))}notify(t){fs.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return fs.batch(()=>Promise.all(t.map(n=>n.continue().catch(cc))))}},gu=new WeakMap,mx=new WeakMap,Vae);function jA(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function V8(e){return{onFetch:(t,n)=>{const r=async()=>{var b,S,E,w,x;const i=t.options,a=(E=(S=(b=t.fetchOptions)==null?void 0:b.meta)==null?void 0:S.fetchMore)==null?void 0:E.direction,s=((w=t.state.data)==null?void 0:w.pages)||[],o=((x=t.state.data)==null?void 0:x.pageParams)||[],l={pages:[],pageParams:[]};let u=!1;const d=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},f=yde(t.options,t.fetchOptions),p=async(k,_,C)=>{if(u)return Promise.reject();if(_==null&&k.pages.length)return Promise.resolve(k);const R={queryKey:t.queryKey,pageParam:_,direction:C?"backward":"forward",meta:t.options.meta};d(R);const N=await f(R),{maxPages:M}=t.options,U=C?RBe:CBe;return{pages:U(k.pages,N,M),pageParams:U(k.pageParams,_,M)}};let g;if(a&&s.length){const k=a==="backward",_=k?kde:q8,C={pages:s,pageParams:o},R=_(i,C);g=await p(C,R,k)}else{g=await p(l,o[0]??i.initialPageParam);const k=e??s.length;for(let _=1;_{var i,a;return(a=(i=t.options).persister)==null?void 0:a.call(i,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function q8(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function kde(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}function BBe(e,t){return t?q8(e,t)!=null:!1}function UBe(e,t){return!t||!e.getPreviousPageParam?!1:kde(e,t)!=null}var Aa,L0,$0,yv,vv,F0,Ov,Sv,qae,zBe=(qae=class{constructor(e={}){jn(this,Aa);jn(this,L0);jn(this,$0);jn(this,yv);jn(this,vv);jn(this,F0);jn(this,Ov);jn(this,Sv);cn(this,Aa,e.queryCache||new xde),cn(this,L0,e.mutationCache||new FBe),cn(this,$0,e.defaultOptions||{}),cn(this,yv,new Map),cn(this,vv,new Map),cn(this,F0,0)}mount(){sA(this,F0)._++,Me(this,F0)===1&&(cn(this,Ov,CU.subscribe(async e=>{e&&(await this.resumePausedMutations(),Me(this,Aa).onFocus())})),cn(this,Sv,J3.subscribe(async e=>{e&&(await this.resumePausedMutations(),Me(this,Aa).onOnline())})))}unmount(){var e,t;sA(this,F0)._--,Me(this,F0)===0&&((e=Me(this,Ov))==null||e.call(this),cn(this,Ov,void 0),(t=Me(this,Sv))==null||t.call(this),cn(this,Sv,void 0))}isFetching(e){return Me(this,Aa).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Me(this,L0).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Me(this,Aa).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=Me(this,Aa).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(Zy(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return Me(this,Aa).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=Me(this,Aa).get(r.queryHash),a=i==null?void 0:i.state.data,s=ABe(t,a);if(s!==void 0)return Me(this,Aa).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return fs.batch(()=>Me(this,Aa).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Me(this,Aa).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=Me(this,Aa);fs.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=Me(this,Aa),r={type:"active",...e};return fs.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=fs.batch(()=>Me(this,Aa).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(cc).catch(cc)}invalidateQueries(e={},t={}){return fs.batch(()=>{if(Me(this,Aa).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=fs.batch(()=>Me(this,Aa).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let a=i.fetch(void 0,n);return n.throwOnError||(a=a.catch(cc)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(cc)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=Me(this,Aa).build(this,t);return n.isStaleByTime(Zy(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(cc).catch(cc)}fetchInfiniteQuery(e){return e.behavior=V8(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(cc).catch(cc)}resumePausedMutations(){return J3.isOnline()?Me(this,L0).resumePausedMutations():Promise.resolve()}getQueryCache(){return Me(this,Aa)}getMutationCache(){return Me(this,L0)}getDefaultOptions(){return Me(this,$0)}setDefaultOptions(e){cn(this,$0,e)}setQueryDefaults(e,t){Me(this,yv).set(_1(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Me(this,yv).values()];let n={};return t.forEach(r=>{Cw(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){Me(this,vv).set(_1(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Me(this,vv).values()];let n={};return t.forEach(r=>{Cw(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Me(this,$0).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=_U(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===bde&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...Me(this,$0).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Me(this,Aa).clear(),Me(this,L0).clear()}},Aa=new WeakMap,L0=new WeakMap,$0=new WeakMap,yv=new WeakMap,vv=new WeakMap,F0=new WeakMap,Ov=new WeakMap,Sv=new WeakMap,qae),_l,Nr,gx,Vo,i1,Ev,Sf,bx,wv,xv,a1,s1,B0,Tv,ai,V2,Y8,Z8,X8,K8,J8,e9,t9,_de,Yae,Ade=(Yae=class extends _O{constructor(t,n){super();jn(this,ai);jn(this,_l);jn(this,Nr);jn(this,gx);jn(this,Vo);jn(this,i1);jn(this,Ev);jn(this,Sf);jn(this,bx);jn(this,wv);jn(this,xv);jn(this,a1);jn(this,s1);jn(this,B0);jn(this,Tv,new Set);this.options=n,cn(this,_l,t),cn(this,Sf,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(Me(this,Nr).addObserver(this),iJ(Me(this,Nr),this.options)?fr(this,ai,V2).call(this):this.updateResult(),fr(this,ai,K8).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return n9(Me(this,Nr),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return n9(Me(this,Nr),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,fr(this,ai,J8).call(this),fr(this,ai,e9).call(this),Me(this,Nr).removeObserver(this)}setOptions(t,n){const r=this.options,i=Me(this,Nr);if(this.options=Me(this,_l).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ed(this.options.enabled,Me(this,Nr))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");fr(this,ai,t9).call(this),Me(this,Nr).setOptions(this.options),r._defaulted&&!K3(this.options,r)&&Me(this,_l).getQueryCache().notify({type:"observerOptionsUpdated",query:Me(this,Nr),observer:this});const a=this.hasListeners();a&&aJ(Me(this,Nr),i,this.options,r)&&fr(this,ai,V2).call(this),this.updateResult(n),a&&(Me(this,Nr)!==i||Ed(this.options.enabled,Me(this,Nr))!==Ed(r.enabled,Me(this,Nr))||Zy(this.options.staleTime,Me(this,Nr))!==Zy(r.staleTime,Me(this,Nr)))&&fr(this,ai,Y8).call(this);const s=fr(this,ai,Z8).call(this);a&&(Me(this,Nr)!==i||Ed(this.options.enabled,Me(this,Nr))!==Ed(r.enabled,Me(this,Nr))||s!==Me(this,B0))&&fr(this,ai,X8).call(this,s)}getOptimisticResult(t){const n=Me(this,_l).getQueryCache().build(Me(this,_l),t),r=this.createResult(n,t);return jBe(this,r)&&(cn(this,Vo,r),cn(this,Ev,this.options),cn(this,i1,Me(this,Nr).state)),r}getCurrentResult(){return Me(this,Vo)}trackResult(t,n){const r={};return Object.keys(t).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),t[i])})}),r}trackProp(t){Me(this,Tv).add(t)}getCurrentQuery(){return Me(this,Nr)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=Me(this,_l).defaultQueryOptions(t),r=Me(this,_l).getQueryCache().build(Me(this,_l),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return fr(this,ai,V2).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),Me(this,Vo)))}createResult(t,n){var N;const r=Me(this,Nr),i=this.options,a=Me(this,Vo),s=Me(this,i1),o=Me(this,Ev),u=t!==r?t.state:Me(this,gx),{state:d}=t;let f={...d},p=!1,g;if(n._optimisticResults){const M=this.hasListeners(),U=!M&&iJ(t,n),F=M&&aJ(t,r,n,i);(U||F)&&(f={...f,...wde(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:b,errorUpdatedAt:S,status:E}=f;if(n.select&&f.data!==void 0)if(a&&f.data===(s==null?void 0:s.data)&&n.select===Me(this,bx))g=Me(this,wv);else try{cn(this,bx,n.select),g=n.select(f.data),g=G8(a==null?void 0:a.data,g,n),cn(this,wv,g),cn(this,Sf,null)}catch(M){cn(this,Sf,M)}else g=f.data;if(n.placeholderData!==void 0&&g===void 0&&E==="pending"){let M;if(a!=null&&a.isPlaceholderData&&n.placeholderData===(o==null?void 0:o.placeholderData))M=a.data;else if(M=typeof n.placeholderData=="function"?n.placeholderData((N=Me(this,xv))==null?void 0:N.state.data,Me(this,xv)):n.placeholderData,n.select&&M!==void 0)try{M=n.select(M),cn(this,Sf,null)}catch(U){cn(this,Sf,U)}M!==void 0&&(E="success",g=G8(a==null?void 0:a.data,M,n),p=!0)}Me(this,Sf)&&(b=Me(this,Sf),g=Me(this,wv),S=Date.now(),E="error");const w=f.fetchStatus==="fetching",x=E==="pending",k=E==="error",_=x&&w,C=g!==void 0;return{status:E,fetchStatus:f.fetchStatus,isPending:x,isSuccess:E==="success",isError:k,isInitialLoading:_,isLoading:_,data:g,dataUpdatedAt:f.dataUpdatedAt,error:b,errorUpdatedAt:S,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:w,isRefetching:w&&!x,isLoadingError:k&&!C,isPaused:f.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:k&&C,isStale:RU(t,n),refetch:this.refetch}}updateResult(t){const n=Me(this,Vo),r=this.createResult(Me(this,Nr),this.options);if(cn(this,i1,Me(this,Nr).state),cn(this,Ev,this.options),Me(this,i1).data!==void 0&&cn(this,xv,Me(this,Nr)),K3(r,n))return;cn(this,Vo,r);const i={},a=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!Me(this,Tv).size)return!0;const l=new Set(o??Me(this,Tv));return this.options.throwOnError&&l.add("error"),Object.keys(Me(this,Vo)).some(u=>{const d=u;return Me(this,Vo)[d]!==n[d]&&l.has(d)})};(t==null?void 0:t.listeners)!==!1&&a()&&(i.listeners=!0),fr(this,ai,_de).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&fr(this,ai,K8).call(this)}},_l=new WeakMap,Nr=new WeakMap,gx=new WeakMap,Vo=new WeakMap,i1=new WeakMap,Ev=new WeakMap,Sf=new WeakMap,bx=new WeakMap,wv=new WeakMap,xv=new WeakMap,a1=new WeakMap,s1=new WeakMap,B0=new WeakMap,Tv=new WeakMap,ai=new WeakSet,V2=function(t){fr(this,ai,t9).call(this);let n=Me(this,Nr).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(cc)),n},Y8=function(){fr(this,ai,J8).call(this);const t=Zy(this.options.staleTime,Me(this,Nr));if(Wv||Me(this,Vo).isStale||!W8(t))return;const r=mde(Me(this,Vo).dataUpdatedAt,t)+1;cn(this,a1,setTimeout(()=>{Me(this,Vo).isStale||this.updateResult()},r))},Z8=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(Me(this,Nr)):this.options.refetchInterval)??!1},X8=function(t){fr(this,ai,e9).call(this),cn(this,B0,t),!(Wv||Ed(this.options.enabled,Me(this,Nr))===!1||!W8(Me(this,B0))||Me(this,B0)===0)&&cn(this,s1,setInterval(()=>{(this.options.refetchIntervalInBackground||CU.isFocused())&&fr(this,ai,V2).call(this)},Me(this,B0)))},K8=function(){fr(this,ai,Y8).call(this),fr(this,ai,X8).call(this,fr(this,ai,Z8).call(this))},J8=function(){Me(this,a1)&&(clearTimeout(Me(this,a1)),cn(this,a1,void 0))},e9=function(){Me(this,s1)&&(clearInterval(Me(this,s1)),cn(this,s1,void 0))},t9=function(){const t=Me(this,_l).getQueryCache().build(Me(this,_l),this.options);if(t===Me(this,Nr))return;const n=Me(this,Nr);cn(this,Nr,t),cn(this,gx,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},_de=function(t){fs.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(Me(this,Vo))}),Me(this,_l).getQueryCache().notify({query:Me(this,Nr),type:"observerResultsUpdated"})})},Yae);function HBe(e,t){return Ed(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function iJ(e,t){return HBe(e,t)||e.state.data!==void 0&&n9(e,t,t.refetchOnMount)}function n9(e,t,n){if(Ed(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&RU(e,t)}return!1}function aJ(e,t,n,r){return(e!==t||Ed(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&RU(e,n)}function RU(e,t){return Ed(t.enabled,e)!==!1&&e.isStaleByTime(Zy(t.staleTime,e))}function jBe(e,t){return!K3(e.getCurrentResult(),t)}var WBe=class extends Ade{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:V8()},t)}getOptimisticResult(e){return e.behavior=V8(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var b,S;const{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:a,isError:s,isRefetchError:o}=r,l=(S=(b=n.fetchMeta)==null?void 0:b.fetchMore)==null?void 0:S.direction,u=s&&l==="forward",d=i&&l==="forward",f=s&&l==="backward",p=i&&l==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:BBe(t,n.data),hasPreviousPage:UBe(t,n.data),isFetchNextPageError:u,isFetchingNextPage:d,isFetchPreviousPageError:f,isFetchingPreviousPage:p,isRefetchError:o&&!u&&!f,isRefetching:a&&!d&&!p}}},U0,z0,Cl,Zh,fp,O4,r9,Zae,QBe=(Zae=class extends _O{constructor(n,r){super();jn(this,fp);jn(this,U0);jn(this,z0);jn(this,Cl);jn(this,Zh);cn(this,U0,n),this.setOptions(r),this.bindMethods(),fr(this,fp,O4).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const r=this.options;this.options=Me(this,U0).defaultMutationOptions(n),K3(this.options,r)||Me(this,U0).getMutationCache().notify({type:"observerOptionsUpdated",mutation:Me(this,Cl),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&_1(r.mutationKey)!==_1(this.options.mutationKey)?this.reset():((i=Me(this,Cl))==null?void 0:i.state.status)==="pending"&&Me(this,Cl).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=Me(this,Cl))==null||n.removeObserver(this)}onMutationUpdate(n){fr(this,fp,O4).call(this),fr(this,fp,r9).call(this,n)}getCurrentResult(){return Me(this,z0)}reset(){var n;(n=Me(this,Cl))==null||n.removeObserver(this),cn(this,Cl,void 0),fr(this,fp,O4).call(this),fr(this,fp,r9).call(this)}mutate(n,r){var i;return cn(this,Zh,r),(i=Me(this,Cl))==null||i.removeObserver(this),cn(this,Cl,Me(this,U0).getMutationCache().build(Me(this,U0),this.options)),Me(this,Cl).addObserver(this),Me(this,Cl).execute(n)}},U0=new WeakMap,z0=new WeakMap,Cl=new WeakMap,Zh=new WeakMap,fp=new WeakSet,O4=function(){var r;const n=((r=Me(this,Cl))==null?void 0:r.state)??Tde();cn(this,z0,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},r9=function(n){fs.batch(()=>{var r,i,a,s,o,l,u,d;if(Me(this,Zh)&&this.hasListeners()){const f=Me(this,z0).variables,p=Me(this,z0).context;(n==null?void 0:n.type)==="success"?((i=(r=Me(this,Zh)).onSuccess)==null||i.call(r,n.data,f,p),(s=(a=Me(this,Zh)).onSettled)==null||s.call(a,n.data,null,f,p)):(n==null?void 0:n.type)==="error"&&((l=(o=Me(this,Zh)).onError)==null||l.call(o,n.error,f,p),(d=(u=Me(this,Zh)).onSettled)==null||d.call(u,void 0,n.error,f,p))}this.listeners.forEach(f=>{f(Me(this,z0))})})},Zae),Cde=L.createContext(void 0),Hx=e=>{const t=L.useContext(Cde);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},GBe=({client:e,children:t})=>(L.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),D.jsx(Cde.Provider,{value:e,children:t})),Rde=L.createContext(!1),VBe=()=>L.useContext(Rde);Rde.Provider;function qBe(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var YBe=L.createContext(qBe()),ZBe=()=>L.useContext(YBe);function Ide(e,t){return typeof e=="function"?e(...t):!!e}function XBe(){}var KBe=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},JBe=e=>{L.useEffect(()=>{e.clearReset()},[e])},eUe=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&Ide(n,[e.error,r]),tUe=e=>{e.suspense&&(typeof e.staleTime!="number"&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},nUe=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,rUe=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Nde(e,t,n){var u,d,f,p;const r=Hx(),i=VBe(),a=ZBe(),s=r.defaultQueryOptions(e);(d=(u=r.getDefaultOptions().queries)==null?void 0:u._experimental_beforeQuery)==null||d.call(u,s),s._optimisticResults=i?"isRestoring":"optimistic",tUe(s),KBe(s,a),JBe(a);const[o]=L.useState(()=>new t(r,s)),l=o.getOptimisticResult(s);if(L.useSyncExternalStore(L.useCallback(g=>{const b=i?()=>{}:o.subscribe(fs.batchCalls(g));return o.updateResult(),b},[o,i]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),L.useEffect(()=>{o.setOptions(s,{listeners:!1})},[s,o]),nUe(s,l))throw rUe(s,o,a);if(eUe({result:l,errorResetBoundary:a,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)}))throw l.error;return(p=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||p.call(f,s,l),s.notifyOnChangeProps?l:o.trackResult(l)}function CO(e,t){return Nde(e,Ade)}function Pp(e,t){const n=Hx(),[r]=L.useState(()=>new QBe(n,e));L.useEffect(()=>{r.setOptions(e)},[r,e]);const i=L.useSyncExternalStore(L.useCallback(s=>r.subscribe(fs.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=L.useCallback((s,o)=>{r.mutate(s,o).catch(XBe)},[r]);if(i.error&&Ide(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function IU(e,t){return Nde(e,WBe)}const iUe=()=>Pp({mutationFn:async e=>(await or.post("/files",e)).data}),aUe=()=>Pp({mutationFn:async e=>or.put(e.url,new Blob([e.file]),{headers:{Authorization:void 0,"Content-Type":e.file.type}})}),sUe=()=>Pp({mutationFn:async e=>{const{exportType:t,content:n,fileName:r}=e;return await or.post("/files/export-markdown",{exportType:t,content:n,fileName:r},{responseType:"blob",headers:{Accept:"application/octet-stream"}})}}),oUe=()=>{const{enqueueSnackbar:e}=zx(),t=Pr(Dp),n=Pr($R),r=sUe(),i=L.useCallback(async l=>{var u,d,f;try{const p=((d=(u=t.doc)==null?void 0:u.getRoot().content)==null?void 0:d.toString())||"",g=((f=n.data)==null?void 0:f.title)||"codepair_document";e(`${l.toUpperCase()} file export started`,{variant:"info"});const b=await r.mutateAsync({exportType:l,content:p,fileName:g}),S=b.headers["content-disposition"],E=S==null?void 0:S.match(/filename="?(.+)"?\s*$/i),w=E?E[1]:`${g}.${l}`,x=new Blob([b.data],{type:b.headers["content-type"]}),k=window.URL.createObjectURL(x),_=document.createElement("a");_.href=k,_.setAttribute("download",w),document.body.appendChild(_),_.click(),document.body.removeChild(_),window.URL.revokeObjectURL(k),e(`${l.toUpperCase()} file exported successfully`,{variant:"success"})}catch(p){console.error("Error:",p),e(`Failed to export ${l.toUpperCase()} file`,{variant:"error"})}},[t,n,e,r]);return{handleExportToPDF:()=>i("pdf"),handleExportToHTML:()=>i("html"),handleExportToMarkdown:()=>i("markdown")}};function lUe(){const[e,t]=L.useState(null),n=o=>{t(o.currentTarget)},r=()=>{t(null)},{handleExportToPDF:i,handleExportToHTML:a,handleExportToMarkdown:s}=oUe();return D.jsxs(Ks,{children:[D.jsx(Ro,{"aria-controls":"download-menu","aria-haspopup":"true",onClick:n,children:D.jsx(eBe,{})}),D.jsxs(Hue,{id:"download-menu",anchorEl:e,keepMounted:!0,open:!!e,onClose:r,children:[D.jsx(Cd,{onClick:i,children:"Download as PDF"}),D.jsx(Cd,{onClick:a,children:"Download as HTML"}),D.jsx(Cd,{onClick:s,children:"Download as Markdown"})]})]})}var NU={},uUe=Bi;Object.defineProperty(NU,"__esModule",{value:!0});var Dde=NU.default=void 0,cUe=uUe(aa()),dUe=D;Dde=NU.default=(0,cUe.default)((0,dUe.jsx)("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92"}),"Share");function i9(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.type==="checkbox",Dy=e=>e instanceof Date,Ko=e=>e==null;const Pde=e=>typeof e=="object";var Ka=e=>!Ko(e)&&!Array.isArray(e)&&Pde(e)&&!Dy(e),Mde=e=>Ka(e)&&e.target?jx(e.target)?e.target.checked:e.target.value:e,bUe=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Lde=(e,t)=>e.has(bUe(t)),yUe=e=>{const t=e.constructor&&e.constructor.prototype;return Ka(t)&&t.hasOwnProperty("isPrototypeOf")},DU=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Tl(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(DU&&(e instanceof Blob||e instanceof FileList))&&(n||Ka(e)))if(t=n?[]:{},!n&&!yUe(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=Tl(e[r]));else return e;return t}var FR=e=>Array.isArray(e)?e.filter(Boolean):[],Ra=e=>e===void 0,en=(e,t,n)=>{if(!t||!Ka(e))return n;const r=FR(t.split(/[,[\].]+?/)).reduce((i,a)=>Ko(i)?i:i[a],e);return Ra(r)||r===e?Ra(e[t])?n:e[t]:r},fc=e=>typeof e=="boolean",PU=e=>/^\w*$/.test(e),$de=e=>FR(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ei=(e,t,n)=>{let r=-1;const i=PU(t)?[t]:$de(t),a=i.length,s=a-1;for(;++ron.useContext(Fde),Bde=e=>{const{children:t,...n}=e;return on.createElement(Fde.Provider,{value:n},t)};var Ude=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const s=a;return t._proxyFormState[s]!==Td.all&&(t._proxyFormState[s]=!r||Td.all),n&&(n[s]=!0),e[s]}});return i},Rl=e=>Ka(e)&&!Object.keys(e).length,zde=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return Rl(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(s=>t[s]===(!r||Td.all))},wE=e=>Array.isArray(e)?e:[e],Hde=(e,t,n)=>!e||!t||e===t||wE(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function LU(e){const t=on.useRef(e);t.current=e,on.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function vUe(e){const t=MU(),{control:n=t.control,disabled:r,name:i,exact:a}=e||{},[s,o]=on.useState(n._formState),l=on.useRef(!0),u=on.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=on.useRef(i);return d.current=i,LU({disabled:r,next:f=>l.current&&Hde(d.current,f.name,a)&&zde(f,u.current,n._updateFormState)&&o({...n._formState,...f}),subject:n._subjects.state}),on.useEffect(()=>(l.current=!0,u.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),Ude(s,n,u.current,!1)}var Rf=e=>typeof e=="string",jde=(e,t,n,r,i)=>Rf(e)?(r&&t.watch.add(e),en(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),en(n,a))):(r&&(t.watchAll=!0),n);function Wde(e){const t=MU(),{control:n=t.control,name:r,defaultValue:i,disabled:a,exact:s}=e||{},o=on.useRef(r);o.current=r,LU({disabled:a,subject:n._subjects.values,next:d=>{Hde(o.current,d.name,s)&&u(Tl(jde(o.current,n._names,d.values||n._formValues,!1,i)))}});const[l,u]=on.useState(n._getWatch(r,i));return on.useEffect(()=>n._removeUnmounted()),l}function eh(e){const t=MU(),{name:n,disabled:r,control:i=t.control,shouldUnregister:a}=e,s=Lde(i._names.array,n),o=Wde({control:i,name:n,defaultValue:en(i._formValues,n,en(i._defaultValues,n,e.defaultValue)),exact:!0}),l=vUe({control:i,name:n,exact:!0}),u=on.useRef(i.register(n,{...e.rules,value:o,...fc(e.disabled)?{disabled:e.disabled}:{}}));return on.useEffect(()=>{const d=i._options.shouldUnregister||a,f=(p,g)=>{const b=en(i._fields,p);b&&b._f&&(b._f.mount=g)};if(f(n,!0),d){const p=Tl(en(i._options.defaultValues,n));Ei(i._defaultValues,n,p),Ra(en(i._formValues,n))&&Ei(i._formValues,n,p)}return()=>{(s?d&&!i._state.action:d)?i.unregister(n):f(n,!1)}},[n,i,s,a]),on.useEffect(()=>{en(i._fields,n)&&i._updateDisabledField({disabled:r,fields:i._fields,name:n,value:en(i._fields,n)._f.value})},[r,n,i]),{field:{name:n,value:o,...fc(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:on.useCallback(d=>u.current.onChange({target:{value:Mde(d),name:n},type:eC.CHANGE}),[n]),onBlur:on.useCallback(()=>u.current.onBlur({target:{value:en(i._formValues,n),name:n},type:eC.BLUR}),[n,i]),ref:on.useCallback(d=>{const f=en(i._fields,n);f&&d&&(f._f.ref={focus:()=>d.focus(),select:()=>d.select(),setCustomValidity:p=>d.setCustomValidity(p),reportValidity:()=>d.reportValidity()})},[i._fields,n])},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!en(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!en(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!en(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!en(l.validatingFields,n)},error:{enumerable:!0,get:()=>en(l.errors,n)}})}}var OUe=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},oJ=e=>({isOnSubmit:!e||e===Td.onSubmit,isOnBlur:e===Td.onBlur,isOnChange:e===Td.onChange,isOnAll:e===Td.all,isOnTouch:e===Td.onTouched}),lJ=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const xE=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const a=en(e,i);if(a){const{_f:s,...o}=a;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],i)&&!r)return!0;if(s.ref&&t(s.ref,s.name)&&!r)return!0;if(xE(o,t))break}else if(Ka(o)&&xE(o,t))break}}};var SUe=(e,t,n)=>{const r=wE(en(e,n));return Ei(r,"root",t[n]),Ei(e,n,r),e},$U=e=>e.type==="file",tp=e=>typeof e=="function",tC=e=>{if(!DU)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},S4=e=>Rf(e),FU=e=>e.type==="radio",nC=e=>e instanceof RegExp;const uJ={value:!1,isValid:!1},cJ={value:!0,isValid:!0};var Qde=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ra(e[0].attributes.value)?Ra(e[0].value)||e[0].value===""?cJ:{value:e[0].value,isValid:!0}:cJ:uJ}return uJ};const dJ={isValid:!1,value:null};var Gde=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,dJ):dJ;function fJ(e,t,n="validate"){if(S4(e)||Array.isArray(e)&&e.every(S4)||fc(e)&&!e)return{type:n,message:S4(e)?e:"",ref:t}}var Yb=e=>Ka(e)&&!nC(e)?e:{value:e,message:""},hJ=async(e,t,n,r,i)=>{const{ref:a,refs:s,required:o,maxLength:l,minLength:u,min:d,max:f,pattern:p,validate:g,name:b,valueAsNumber:S,mount:E,disabled:w}=e._f,x=en(t,b);if(!E||w)return{};const k=s?s[0]:a,_=V=>{r&&k.reportValidity&&(k.setCustomValidity(fc(V)?"":V||""),k.reportValidity())},C={},R=FU(a),N=jx(a),M=R||N,U=(S||$U(a))&&Ra(a.value)&&Ra(x)||tC(a)&&a.value===""||x===""||Array.isArray(x)&&!x.length,F=OUe.bind(null,b,n,C),G=(V,ie,ne,q=$h.maxLength,re=$h.minLength)=>{const ee=V?ie:ne;C[b]={type:V?q:re,message:ee,ref:a,...F(V?q:re,ee)}};if(i?!Array.isArray(x)||!x.length:o&&(!M&&(U||Ko(x))||fc(x)&&!x||N&&!Qde(s).isValid||R&&!Gde(s).isValid)){const{value:V,message:ie}=S4(o)?{value:!!o,message:o}:Yb(o);if(V&&(C[b]={type:$h.required,message:ie,ref:k,...F($h.required,ie)},!n))return _(ie),C}if(!U&&(!Ko(d)||!Ko(f))){let V,ie;const ne=Yb(f),q=Yb(d);if(!Ko(x)&&!isNaN(x)){const re=a.valueAsNumber||x&&+x;Ko(ne.value)||(V=re>ne.value),Ko(q.value)||(ie=renew Date(new Date().toDateString()+" "+W),Z=a.type=="time",se=a.type=="week";Rf(ne.value)&&x&&(V=Z?ee(x)>ee(ne.value):se?x>ne.value:re>new Date(ne.value)),Rf(q.value)&&x&&(ie=Z?ee(x)+V.value,q=!Ko(ie.value)&&x.length<+ie.value;if((ne||q)&&(G(ne,V.message,ie.message),!n))return _(C[b].message),C}if(p&&!U&&Rf(x)){const{value:V,message:ie}=Yb(p);if(nC(V)&&!x.match(V)&&(C[b]={type:$h.pattern,message:ie,ref:a,...F($h.pattern,ie)},!n))return _(ie),C}if(g){if(tp(g)){const V=await g(x,t),ie=fJ(V,k);if(ie&&(C[b]={...ie,...F($h.validate,ie.message)},!n))return _(ie.message),C}else if(Ka(g)){let V={};for(const ie in g){if(!Rl(V)&&!n)break;const ne=fJ(await g[ie](x,t),k,ie);ne&&(V={...ne,...F(ie,ne.message)},_(ne.message),n&&(C[b]=V))}if(!Rl(V)&&(C[b]={ref:k,...V},!n))return C}}return _(!0),C};function EUe(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}},rC=e=>Ko(e)||!Pde(e);function I0(e,t){if(rC(e)||rC(t))return e===t;if(Dy(e)&&Dy(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const s=t[i];if(Dy(a)&&Dy(s)||Ka(a)&&Ka(s)||Array.isArray(a)&&Array.isArray(s)?!I0(a,s):a!==s)return!1}}return!0}var Vde=e=>e.type==="select-multiple",xUe=e=>FU(e)||jx(e),kD=e=>tC(e)&&e.isConnected,qde=e=>{for(const t in e)if(tp(e[t]))return!0;return!1};function iC(e,t={}){const n=Array.isArray(e);if(Ka(e)||n)for(const r in e)Array.isArray(e[r])||Ka(e[r])&&!qde(e[r])?(t[r]=Array.isArray(e[r])?[]:{},iC(e[r],t[r])):Ko(e[r])||(t[r]=!0);return t}function Yde(e,t,n){const r=Array.isArray(e);if(Ka(e)||r)for(const i in e)Array.isArray(e[i])||Ka(e[i])&&!qde(e[i])?Ra(t)||rC(n[i])?n[i]=Array.isArray(e[i])?iC(e[i],[]):{...iC(e[i])}:Yde(e[i],Ko(t)?{}:t[i],n[i]):n[i]=!I0(e[i],t[i]);return n}var WA=(e,t)=>Yde(e,t,iC(t)),Zde=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Ra(e)?e:t?e===""?NaN:e&&+e:n&&Rf(e)?new Date(e):r?r(e):e;function AD(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return $U(t)?t.files:FU(t)?Gde(e.refs).value:Vde(t)?[...t.selectedOptions].map(({value:n})=>n):jx(t)?Qde(e.refs).value:Zde(Ra(t.value)?e.ref.value:t.value,e)}var TUe=(e,t,n,r)=>{const i={};for(const a of e){const s=en(t,a);s&&Ei(i,a,s._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},b2=e=>Ra(e)?e:nC(e)?e.source:Ka(e)?nC(e.value)?e.value.source:e.value:e;const pJ="AsyncFunction";var kUe=e=>(!e||!e.validate)&&!!(tp(e.validate)&&e.validate.constructor.name===pJ||Ka(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===pJ)),AUe=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function mJ(e,t,n){const r=en(e,n);if(r||PU(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),s=en(t,a),o=en(e,a);if(s&&!Array.isArray(s)&&n!==a)return{name:n};if(o&&o.type)return{name:a,error:o};i.pop()}return{name:n}}var _Ue=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,CUe=(e,t)=>!FR(en(e,t)).length&&os(e,t);const RUe={mode:Td.onSubmit,reValidateMode:Td.onChange,shouldFocusError:!0};function IUe(e={}){let t={...RUe,...e},n={submitCount:0,isDirty:!1,isLoading:tp(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=Ka(t.defaultValues)||Ka(t.values)?Tl(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:Tl(i),s={action:!1,mount:!1,watch:!1},o={mount:new Set,unMount:new Set,array:new Set,watch:new Set},l,u=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:TD(),array:TD(),state:TD()},p=oJ(t.mode),g=oJ(t.reValidateMode),b=t.criteriaMode===Td.all,S=z=>K=>{clearTimeout(u),u=setTimeout(z,K)},E=async z=>{if(d.isValid||z){const K=t.resolver?Rl((await M()).errors):await F(r,!0);K!==n.isValid&&f.state.next({isValid:K})}},w=(z,K)=>{(d.isValidating||d.validatingFields)&&((z||Array.from(o.mount)).forEach(ue=>{ue&&(K?Ei(n.validatingFields,ue,K):os(n.validatingFields,ue))}),f.state.next({validatingFields:n.validatingFields,isValidating:!Rl(n.validatingFields)}))},x=(z,K=[],ue,_e,Ie=!0,Ce=!0)=>{if(_e&&ue){if(s.action=!0,Ce&&Array.isArray(en(r,z))){const Qe=ue(en(r,z),_e.argA,_e.argB);Ie&&Ei(r,z,Qe)}if(Ce&&Array.isArray(en(n.errors,z))){const Qe=ue(en(n.errors,z),_e.argA,_e.argB);Ie&&Ei(n.errors,z,Qe),CUe(n.errors,z)}if(d.touchedFields&&Ce&&Array.isArray(en(n.touchedFields,z))){const Qe=ue(en(n.touchedFields,z),_e.argA,_e.argB);Ie&&Ei(n.touchedFields,z,Qe)}d.dirtyFields&&(n.dirtyFields=WA(i,a)),f.state.next({name:z,isDirty:V(z,K),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Ei(a,z,K)},k=(z,K)=>{Ei(n.errors,z,K),f.state.next({errors:n.errors})},_=z=>{n.errors=z,f.state.next({errors:n.errors,isValid:!1})},C=(z,K,ue,_e)=>{const Ie=en(r,z);if(Ie){const Ce=en(a,z,Ra(ue)?en(i,z):ue);Ra(Ce)||_e&&_e.defaultChecked||K?Ei(a,z,K?Ce:AD(Ie._f)):q(z,Ce),s.mount&&E()}},R=(z,K,ue,_e,Ie)=>{let Ce=!1,Qe=!1;const Ot={name:z},Ne=!!(en(r,z)&&en(r,z)._f&&en(r,z)._f.disabled);if(!ue||_e){d.isDirty&&(Qe=n.isDirty,n.isDirty=Ot.isDirty=V(),Ce=Qe!==Ot.isDirty);const ye=Ne||I0(en(i,z),K);Qe=!!(!Ne&&en(n.dirtyFields,z)),ye||Ne?os(n.dirtyFields,z):Ei(n.dirtyFields,z,!0),Ot.dirtyFields=n.dirtyFields,Ce=Ce||d.dirtyFields&&Qe!==!ye}if(ue){const ye=en(n.touchedFields,z);ye||(Ei(n.touchedFields,z,ue),Ot.touchedFields=n.touchedFields,Ce=Ce||d.touchedFields&&ye!==ue)}return Ce&&Ie&&f.state.next(Ot),Ce?Ot:{}},N=(z,K,ue,_e)=>{const Ie=en(n.errors,z),Ce=d.isValid&&fc(K)&&n.isValid!==K;if(e.delayError&&ue?(l=S(()=>k(z,ue)),l(e.delayError)):(clearTimeout(u),l=null,ue?Ei(n.errors,z,ue):os(n.errors,z)),(ue?!I0(Ie,ue):Ie)||!Rl(_e)||Ce){const Qe={..._e,...Ce&&fc(K)?{isValid:K}:{},errors:n.errors,name:z};n={...n,...Qe},f.state.next(Qe)}},M=async z=>{w(z,!0);const K=await t.resolver(a,t.context,TUe(z||o.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return w(z),K},U=async z=>{const{errors:K}=await M(z);if(z)for(const ue of z){const _e=en(K,ue);_e?Ei(n.errors,ue,_e):os(n.errors,ue)}else n.errors=K;return K},F=async(z,K,ue={valid:!0})=>{for(const _e in z){const Ie=z[_e];if(Ie){const{_f:Ce,...Qe}=Ie;if(Ce){const Ot=o.array.has(Ce.name),Ne=Ie._f&&kUe(Ie._f);Ne&&d.validatingFields&&w([_e],!0);const ye=await hJ(Ie,a,b,t.shouldUseNativeValidation&&!K,Ot);if(Ne&&d.validatingFields&&w([_e]),ye[Ce.name]&&(ue.valid=!1,K))break;!K&&(en(ye,Ce.name)?Ot?SUe(n.errors,ye,Ce.name):Ei(n.errors,Ce.name,ye[Ce.name]):os(n.errors,Ce.name))}!Rl(Qe)&&await F(Qe,K,ue)}}return ue.valid},G=()=>{for(const z of o.unMount){const K=en(r,z);K&&(K._f.refs?K._f.refs.every(ue=>!kD(ue)):!kD(K._f.ref))&&oe(z)}o.unMount=new Set},V=(z,K)=>(z&&K&&Ei(a,z,K),!I0(Pe(),i)),ie=(z,K,ue)=>jde(z,o,{...s.mount?a:Ra(K)?i:Rf(z)?{[z]:K}:K},ue,K),ne=z=>FR(en(s.mount?a:i,z,e.shouldUnregister?en(i,z,[]):[])),q=(z,K,ue={})=>{const _e=en(r,z);let Ie=K;if(_e){const Ce=_e._f;Ce&&(!Ce.disabled&&Ei(a,z,Zde(K,Ce)),Ie=tC(Ce.ref)&&Ko(K)?"":K,Vde(Ce.ref)?[...Ce.ref.options].forEach(Qe=>Qe.selected=Ie.includes(Qe.value)):Ce.refs?jx(Ce.ref)?Ce.refs.length>1?Ce.refs.forEach(Qe=>(!Qe.defaultChecked||!Qe.disabled)&&(Qe.checked=Array.isArray(Ie)?!!Ie.find(Ot=>Ot===Qe.value):Ie===Qe.value)):Ce.refs[0]&&(Ce.refs[0].checked=!!Ie):Ce.refs.forEach(Qe=>Qe.checked=Qe.value===Ie):$U(Ce.ref)?Ce.ref.value="":(Ce.ref.value=Ie,Ce.ref.type||f.values.next({name:z,values:{...a}})))}(ue.shouldDirty||ue.shouldTouch)&&R(z,Ie,ue.shouldTouch,ue.shouldDirty,!0),ue.shouldValidate&&W(z)},re=(z,K,ue)=>{for(const _e in K){const Ie=K[_e],Ce=`${z}.${_e}`,Qe=en(r,Ce);(o.array.has(z)||!rC(Ie)||Qe&&!Qe._f)&&!Dy(Ie)?re(Ce,Ie,ue):q(Ce,Ie,ue)}},ee=(z,K,ue={})=>{const _e=en(r,z),Ie=o.array.has(z),Ce=Tl(K);Ei(a,z,Ce),Ie?(f.array.next({name:z,values:{...a}}),(d.isDirty||d.dirtyFields)&&ue.shouldDirty&&f.state.next({name:z,dirtyFields:WA(i,a),isDirty:V(z,Ce)})):_e&&!_e._f&&!Ko(Ce)?re(z,Ce,ue):q(z,Ce,ue),lJ(z,o)&&f.state.next({...n}),f.values.next({name:s.mount?z:void 0,values:{...a}})},Z=async z=>{s.mount=!0;const K=z.target;let ue=K.name,_e=!0;const Ie=en(r,ue),Ce=()=>K.type?AD(Ie._f):Mde(z),Qe=Ot=>{_e=Number.isNaN(Ot)||I0(Ot,en(a,ue,Ot))};if(Ie){let Ot,Ne;const ye=Ce(),ve=z.type===eC.BLUR||z.type===eC.FOCUS_OUT,ke=!AUe(Ie._f)&&!t.resolver&&!en(n.errors,ue)&&!Ie._f.deps||_Ue(ve,en(n.touchedFields,ue),n.isSubmitted,g,p),ze=lJ(ue,o,ve);Ei(a,ue,ye),ve?(Ie._f.onBlur&&Ie._f.onBlur(z),l&&l(0)):Ie._f.onChange&&Ie._f.onChange(z);const At=R(ue,ye,ve,!1),Zt=!Rl(At)||ze;if(!ve&&f.values.next({name:ue,type:z.type,values:{...a}}),ke)return d.isValid&&(e.mode==="onBlur"?ve&&E():E()),Zt&&f.state.next({name:ue,...ze?{}:At});if(!ve&&ze&&f.state.next({...n}),t.resolver){const{errors:tt}=await M([ue]);if(Qe(ye),_e){const Qt=mJ(n.errors,r,ue),Vt=mJ(tt,r,Qt.name||ue);Ot=Vt.error,ue=Vt.name,Ne=Rl(tt)}}else w([ue],!0),Ot=(await hJ(Ie,a,b,t.shouldUseNativeValidation))[ue],w([ue]),Qe(ye),_e&&(Ot?Ne=!1:d.isValid&&(Ne=await F(r,!0)));_e&&(Ie._f.deps&&W(Ie._f.deps),N(ue,Ne,Ot,At))}},se=(z,K)=>{if(en(n.errors,K)&&z.focus)return z.focus(),1},W=async(z,K={})=>{let ue,_e;const Ie=wE(z);if(t.resolver){const Ce=await U(Ra(z)?z:Ie);ue=Rl(Ce),_e=z?!Ie.some(Qe=>en(Ce,Qe)):ue}else z?(_e=(await Promise.all(Ie.map(async Ce=>{const Qe=en(r,Ce);return await F(Qe&&Qe._f?{[Ce]:Qe}:Qe)}))).every(Boolean),!(!_e&&!n.isValid)&&E()):_e=ue=await F(r);return f.state.next({...!Rf(z)||d.isValid&&ue!==n.isValid?{}:{name:z},...t.resolver||!z?{isValid:ue}:{},errors:n.errors}),K.shouldFocus&&!_e&&xE(r,se,z?Ie:o.mount),_e},Pe=z=>{const K={...s.mount?a:i};return Ra(z)?K:Rf(z)?en(K,z):z.map(ue=>en(K,ue))},Ee=(z,K)=>({invalid:!!en((K||n).errors,z),isDirty:!!en((K||n).dirtyFields,z),error:en((K||n).errors,z),isValidating:!!en(n.validatingFields,z),isTouched:!!en((K||n).touchedFields,z)}),X=z=>{z&&wE(z).forEach(K=>os(n.errors,K)),f.state.next({errors:z?n.errors:{}})},Re=(z,K,ue)=>{const _e=(en(r,z,{_f:{}})._f||{}).ref,Ie=en(n.errors,z)||{},{ref:Ce,message:Qe,type:Ot,...Ne}=Ie;Ei(n.errors,z,{...Ne,...K,ref:_e}),f.state.next({name:z,errors:n.errors,isValid:!1}),ue&&ue.shouldFocus&&_e&&_e.focus&&_e.focus()},Ue=(z,K)=>tp(z)?f.values.subscribe({next:ue=>z(ie(void 0,K),ue)}):ie(z,K,!0),oe=(z,K={})=>{for(const ue of z?wE(z):o.mount)o.mount.delete(ue),o.array.delete(ue),K.keepValue||(os(r,ue),os(a,ue)),!K.keepError&&os(n.errors,ue),!K.keepDirty&&os(n.dirtyFields,ue),!K.keepTouched&&os(n.touchedFields,ue),!K.keepIsValidating&&os(n.validatingFields,ue),!t.shouldUnregister&&!K.keepDefaultValue&&os(i,ue);f.values.next({values:{...a}}),f.state.next({...n,...K.keepDirty?{isDirty:V()}:{}}),!K.keepIsValid&&E()},rt=({disabled:z,name:K,field:ue,fields:_e,value:Ie})=>{if(fc(z)&&s.mount||z){const Ce=z?void 0:Ra(Ie)?AD(ue?ue._f:en(_e,K)._f):Ie;Ei(a,K,Ce),R(K,Ce,!1,!1,!0)}},qe=(z,K={})=>{let ue=en(r,z);const _e=fc(K.disabled)||fc(e.disabled);return Ei(r,z,{...ue||{},_f:{...ue&&ue._f?ue._f:{ref:{name:z}},name:z,mount:!0,...K}}),o.mount.add(z),ue?rt({field:ue,disabled:fc(K.disabled)?K.disabled:e.disabled,name:z,value:K.value}):C(z,!0,K.value),{..._e?{disabled:K.disabled||e.disabled}:{},...t.progressive?{required:!!K.required,min:b2(K.min),max:b2(K.max),minLength:b2(K.minLength),maxLength:b2(K.maxLength),pattern:b2(K.pattern)}:{},name:z,onChange:Z,onBlur:Z,ref:Ie=>{if(Ie){qe(z,K),ue=en(r,z);const Ce=Ra(Ie.value)&&Ie.querySelectorAll&&Ie.querySelectorAll("input,select,textarea")[0]||Ie,Qe=xUe(Ce),Ot=ue._f.refs||[];if(Qe?Ot.find(Ne=>Ne===Ce):Ce===ue._f.ref)return;Ei(r,z,{_f:{...ue._f,...Qe?{refs:[...Ot.filter(kD),Ce,...Array.isArray(en(i,z))?[{}]:[]],ref:{type:Ce.type,name:z}}:{ref:Ce}}}),C(z,!1,void 0,Ce)}else ue=en(r,z,{}),ue._f&&(ue._f.mount=!1),(t.shouldUnregister||K.shouldUnregister)&&!(Lde(o.array,z)&&s.action)&&o.unMount.add(z)}}},et=()=>t.shouldFocusError&&xE(r,se,o.mount),Tt=z=>{fc(z)&&(f.state.next({disabled:z}),xE(r,(K,ue)=>{const _e=en(r,ue);_e&&(K.disabled=_e._f.disabled||z,Array.isArray(_e._f.refs)&&_e._f.refs.forEach(Ie=>{Ie.disabled=_e._f.disabled||z}))},0,!1))},ct=(z,K)=>async ue=>{let _e;ue&&(ue.preventDefault&&ue.preventDefault(),ue.persist&&ue.persist());let Ie=Tl(a);if(f.state.next({isSubmitting:!0}),t.resolver){const{errors:Ce,values:Qe}=await M();n.errors=Ce,Ie=Qe}else await F(r);if(os(n.errors,"root"),Rl(n.errors)){f.state.next({errors:{}});try{await z(Ie,ue)}catch(Ce){_e=Ce}}else K&&await K({...n.errors},ue),et(),setTimeout(et);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Rl(n.errors)&&!_e,submitCount:n.submitCount+1,errors:n.errors}),_e)throw _e},Pt=(z,K={})=>{en(r,z)&&(Ra(K.defaultValue)?ee(z,Tl(en(i,z))):(ee(z,K.defaultValue),Ei(i,z,Tl(K.defaultValue))),K.keepTouched||os(n.touchedFields,z),K.keepDirty||(os(n.dirtyFields,z),n.isDirty=K.defaultValue?V(z,Tl(en(i,z))):V()),K.keepError||(os(n.errors,z),d.isValid&&E()),f.state.next({...n}))},Mt=(z,K={})=>{const ue=z?Tl(z):i,_e=Tl(ue),Ie=Rl(z),Ce=Ie?i:_e;if(K.keepDefaultValues||(i=ue),!K.keepValues){if(K.keepDirtyValues)for(const Qe of o.mount)en(n.dirtyFields,Qe)?Ei(Ce,Qe,en(a,Qe)):ee(Qe,en(Ce,Qe));else{if(DU&&Ra(z))for(const Qe of o.mount){const Ot=en(r,Qe);if(Ot&&Ot._f){const Ne=Array.isArray(Ot._f.refs)?Ot._f.refs[0]:Ot._f.ref;if(tC(Ne)){const ye=Ne.closest("form");if(ye){ye.reset();break}}}}r={}}a=e.shouldUnregister?K.keepDefaultValues?Tl(i):{}:Tl(Ce),f.array.next({values:{...Ce}}),f.values.next({values:{...Ce}})}o={mount:K.keepDirtyValues?o.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!d.isValid||!!K.keepIsValid||!!K.keepDirtyValues,s.watch=!!e.shouldUnregister,f.state.next({submitCount:K.keepSubmitCount?n.submitCount:0,isDirty:Ie?!1:K.keepDirty?n.isDirty:!!(K.keepDefaultValues&&!I0(z,i)),isSubmitted:K.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Ie?{}:K.keepDirtyValues?K.keepDefaultValues&&a?WA(i,a):n.dirtyFields:K.keepDefaultValues&&z?WA(i,z):K.keepDirty?n.dirtyFields:{},touchedFields:K.keepTouched?n.touchedFields:{},errors:K.keepErrors?n.errors:{},isSubmitSuccessful:K.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},ot=(z,K)=>Mt(tp(z)?z(a):z,K);return{control:{register:qe,unregister:oe,getFieldState:Ee,handleSubmit:ct,setError:Re,_executeSchema:M,_getWatch:ie,_getDirty:V,_updateValid:E,_removeUnmounted:G,_updateFieldArray:x,_updateDisabledField:rt,_getFieldArray:ne,_reset:Mt,_resetDefaultValues:()=>tp(t.defaultValues)&&t.defaultValues().then(z=>{ot(z,t.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:z=>{n={...n,...z}},_disableForm:Tt,_subjects:f,_proxyFormState:d,_setErrors:_,get _fields(){return r},get _formValues(){return a},get _state(){return s},set _state(z){s=z},get _defaultValues(){return i},get _names(){return o},set _names(z){o=z},get _formState(){return n},set _formState(z){n=z},get _options(){return t},set _options(z){t={...t,...z}}},trigger:W,register:qe,handleSubmit:ct,watch:Ue,setValue:ee,getValues:Pe,reset:ot,resetField:Pt,clearErrors:X,unregister:oe,setError:Re,setFocus:(z,K={})=>{const ue=en(r,z),_e=ue&&ue._f;if(_e){const Ie=_e.refs?_e.refs[0]:_e.ref;Ie.focus&&(Ie.focus(),K.shouldSelect&&Ie.select())}},getFieldState:Ee}}function Xde(e={}){const t=on.useRef(),n=on.useRef(),[r,i]=on.useState({isDirty:!1,isValidating:!1,isLoading:tp(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:tp(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...IUe(e),formState:r});const a=t.current.control;return a._options=e,LU({subject:a._subjects.state,next:s=>{zde(s,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),on.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),on.useEffect(()=>{if(a._proxyFormState.isDirty){const s=a._getDirty();s!==r.isDirty&&a._subjects.state.next({isDirty:s})}},[a,r.isDirty]),on.useEffect(()=>{e.values&&!I0(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values,i(s=>({...s}))):a._resetDefaultValues()},[e.values,a]),on.useEffect(()=>{e.errors&&a._setErrors(e.errors)},[e.errors,a]),on.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),on.useEffect(()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})},[e.shouldUnregister,a]),t.current.formState=Ude(r,a),t.current}var BU={},NUe=Bi;Object.defineProperty(BU,"__esModule",{value:!0});var Kde=BU.default=void 0,DUe=NUe(aa()),PUe=D;Kde=BU.default=(0,DUe.default)((0,PUe.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel");var UU={},MUe=Bi;Object.defineProperty(UU,"__esModule",{value:!0});var Jde=UU.default=void 0,LUe=MUe(aa()),$Ue=D;Jde=UU.default=(0,LUe.default)((0,$Ue.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");function a9(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function GUe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function VUe(e,t){return FUe(e)||HUe(e,t)||tfe(e,t)||jUe()}function efe(e){return BUe(e)||zUe(e)||tfe(e)||WUe()}function qUe(e){"@swc/helpers - typeof";return e&&typeof Symbol<"u"&&e.constructor===Symbol?"symbol":typeof e}function tfe(e,t){if(e){if(typeof e=="string")return a9(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a9(e,t)}}var nfe=L.forwardRef(function(e,t){var n=e.rules,r=n===void 0?{}:n,i=e.parseError,a=e.type,s=e.required,o=e.name,l=e.control,u=e.component,d=u===void 0?Nx:u,f=e.inputRef,p=e.transform,g=Vu(e,["rules","parseError","type","required","name","control","component","inputRef","transform"]),b=Mp(),S=i||b,E=Gn({},r,s&&!r.required&&{required:"This field is required"},a==="email"&&!r.pattern&&{pattern:{value:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:"Please enter a valid email address"}}),w=eh({name:o,control:l,disabled:g.disabled,rules:E}),x=w.field,k=w.fieldState,_=k.error,C=Jf({value:x.value,onChange:x.onChange,transform:{input:typeof(p==null?void 0:p.input)=="function"?p.input:function(U){return U??""},output:typeof(p==null?void 0:p.output)=="function"?p.output:function(U){var F=U.target.value;return a!=="number"?F:F===""?null:F==null?F:Number(F)}}}),R=C.value,N=C.onChange,M=Er(x.ref,f);return D.jsx(d,xi(Gn({},g),{name:x.name,value:R,onChange:function(U){N(U),typeof g.onChange=="function"&&g.onChange(U)},onBlur:x.onBlur,required:s,type:a,error:!!_,helperText:_?typeof S=="function"?S(_):_.message:g.helperText,ref:t,inputRef:M}))});nfe.displayName="TextFieldElement";var Wx=nfe;function RO(e){var t=e.handleSubmit,n=e.children,r=e.FormProps,i=e.formContext,a=e.onSuccess,s=e.onError,o=Vu(e,["handleSubmit","children","FormProps","formContext","onSuccess","onError"]);return i?(typeof a=="function"&&typeof t=="function"&&console.warn("Property `onSuccess` will be ignored because handleSubmit is provided"),D.jsx(Bde,xi(Gn({},i),{children:D.jsx("form",xi(Gn({noValidate:!0},r),{onSubmit:t||(a?i.handleSubmit(a,s):function(){return console.log("submit handler `onSuccess` is missing")}),children:n}))}))):D.jsx(YUe,Gn({onSuccess:a,onError:s,FormProps:r,children:n},o))}function YUe(e){var t=e.onSuccess,n=e.onError,r=e.FormProps,i=e.children,a=Vu(e,["onSuccess","onError","FormProps","children"]),s=Xde(Gn({},a)),o=s.handleSubmit;return D.jsx(Bde,xi(Gn({},s),{children:D.jsx("form",xi(Gn({onSubmit:o(t||function(){return console.log("submit handler `onSuccess` is missing")},n),noValidate:!0},r),{children:i}))}))}var ZUe=L.forwardRef(function(e,t){var n=e.name,r=e.rules,i=r===void 0?{}:r,a=e.required,s=e.parseError,o=e.label,l=e.control,u=e.helperText,d=e.labelProps,f=e.inputRef,p=e.transform,g=Vu(e,["name","rules","required","parseError","label","control","helperText","labelProps","inputRef","transform"]),b=Mp(),S=s||b,E=Gn({},i,a&&!i.required&&{required:"This field is required"}),w=eh({name:n,control:l,disabled:g.disabled,rules:E}),x=w.field,k=w.fieldState,_=k.error,C=Jf({value:x.value,onChange:x.onChange,transform:{input:p==null?void 0:p.input,output:typeof(p==null?void 0:p.output)=="function"?p==null?void 0:p.output:function(F,G){return G}}}),R=C.value,N=C.onChange,M=Er(x.ref,f),U=_?typeof S=="function"?S(_):_.message:u;return D.jsxs(Qc,{required:a,error:!!_,ref:t,children:[D.jsx(XB,{row:!0,children:D.jsx(Ow,xi(Gn({},d),{label:o||"",control:D.jsx(SR,xi(Gn({},g),{color:g.color||"primary",sx:efe(Array.isArray(g.sx)?g.sx:[g.sx]).concat([{color:_?"error.main":void 0}]),value:R,checked:!!R,onChange:function(F,G){N(F,G),typeof g.onChange=="function"&&g.onChange(F,G)},inputRef:M}))}))}),U&&D.jsx(wO,{error:!!_,children:U})]})});ZUe.displayName="CheckboxElement";var rfe=L.forwardRef(function(e,t){var n,r=e.name,i=e.required,a=e.valueKey,s=a===void 0?"id":a,o=e.labelKey,l=o===void 0?"label":o,u=e.options,d=u===void 0?[]:u,f=e.parseError,p=e.type,g=e.objectOnChange,b=e.rules,S=b===void 0?{}:b,E=e.control,w=e.inputRef,x=e.transform,k=Vu(e,["name","required","valueKey","labelKey","options","parseError","type","objectOnChange","rules","control","inputRef","transform"]),_=Mp(),C=f||_,R=!!(!((n=k.SelectProps)===null||n===void 0)&&n.native),N=Gn({},S,i&&!S.required&&{required:"This field is required"}),M=eh({name:r,rules:N,disabled:k.disabled,control:E}),U=M.field,F=M.fieldState,G=F.error,V=Jf({value:U.value,onChange:U.onChange,transform:{input:typeof(x==null?void 0:x.input)=="function"?x.input:function(re){var ee,Z;return(Z=(ee=re==null?void 0:re[s])!==null&&ee!==void 0?ee:re)!==null&&Z!==void 0?Z:""},output:typeof(x==null?void 0:x.output)=="function"?x.output:function(re){var ee=re.target.value;return p==="number"&&ee&&(ee=Number(ee)),ee}}}),ie=V.value,ne=V.onChange,q=Er(U.ref,w);return p==="number"&&(typeof ie>"u"?"undefined":qUe(ie))<"u"&&(k.InputLabelProps=k.InputLabelProps||{},k.InputLabelProps.shrink=!0),D.jsxs(Nx,xi(Gn({},k),{name:r,value:ie,onBlur:U.onBlur,ref:t,onChange:function(re){if(ne(re),typeof k.onChange=="function"){var ee=re.target.value;p==="number"&&ee&&(ee=Number(ee)),g&&(ee=d.find(function(Z){return Z[s]===ee})),k.onChange(ee)}},select:!0,required:i,error:!!G,helperText:G?typeof C=="function"?C(G):G.message:k.helperText,inputRef:q,children:[R&&D.jsx("option",{}),d.map(function(re){var ee,Z="".concat(r,"_").concat(re[s]),se={value:(ee=re==null?void 0:re[s])!==null&&ee!==void 0?ee:re,disabled:Dl(re,"disabled")?!!re.disabled:!1,children:re[l]};return R?D.jsx("option",Gn({},se),Z):D.jsx(Cd,Gn({},se),Z)})]}))});rfe.displayName="SelectElement";var s9=rfe,XUe=L.forwardRef(function(e,t){var n=e.helperText,r=e.options,i=e.label,a=e.name,s=e.parseError,o=e.required,l=e.labelKey,u=l===void 0?"label":l,d=e.valueKey,f=d===void 0?"id":d,p=e.returnObject,g=e.disabled,b=e.row,S=e.control,E=e.checkboxColor,w=e.rules,x=e.labelProps,k=e.transform,_=e.defaultValue,C=_===void 0?[]:_,R=Vu(e,["helperText","options","label","name","parseError","required","labelKey","valueKey","returnObject","disabled","row","control","checkboxColor","rules","labelProps","transform","defaultValue"]),N=Xf(),M=Mp(),U=s||M,F=eh({name:a,rules:o?{required:"This field is required"}:w,disabled:g,control:S,defaultValue:C}),G=F.field,V=F.fieldState,ie=V.error,ne=V.invalid,q=Jf({value:G.value,onChange:G.onChange,transform:{input:typeof(k==null?void 0:k.input)=="function"?k.input:function(W){return Array.isArray(W)?W:[]},output:k==null?void 0:k.output}}),re=q.value,ee=q.onChange,Z=function(W){var Pe=Dl(W,f)?W[f]:W,Ee=re.findIndex(function(Re){var Ue=Dl(Re,f)?Re[f]:Re;return Pe===Ue}),X=(Ee===-1?efe(re).concat([W]):re.filter(function(Re,Ue){return Ee!==Ue})).map(function(Re){return p||!Dl(Re,f)?Re:Re[f]});ee(X),typeof R.onChange=="function"&&R.onChange(X)},se=ie?typeof U=="function"?U(ie):ie.message:n;return D.jsxs(Qc,{error:ne,required:o,ref:t,children:[i?D.jsx(wR,{children:i}):null,D.jsx(XB,{row:b,children:r.map(function(W){var Pe=Dl(W,f)?W[f]:W,Ee=Dl(W,u)?W[u]:W,X=re.some(function(Re){return(Dl(Re,f)?Re[f]:Re)===Pe});return L.createElement(Ow,xi(Gn({},x),{control:D.jsx(SR,{sx:{color:ie?N.palette.error.main:void 0},color:E,value:Pe,checked:X,disabled:g,onChange:function(){return Z(W)}}),label:"".concat(Ee),key:"".concat(Pe)}))})}),se&&D.jsx(wO,{children:se})]})});XUe.displayName="CheckboxButtonGroup";var KUe=48,JUe=8,eze=L.forwardRef(function(e,t){var n,r,i,a,s,o=e.options,l=e.label,u=l===void 0?"":l,d=e.itemKey,f=d===void 0?"id":d,p=e.itemValue,g=p===void 0?"":p,b=e.itemLabel,S=b===void 0?"label":b,E=e.required,w=E===void 0?!1:E,x=e.rules,k=x===void 0?{}:x,_=e.parseError,C=e.name,R=e.menuMaxHeight,N=R===void 0?KUe*4.5+JUe:R,M=e.menuMaxWidth,U=M===void 0?250:M,F=e.minWidth,G=F===void 0?120:F,V=e.helperText,ie=e.showChips,ne=e.preserveOrder,q=e.control,re=e.showCheckbox,ee=e.formControlProps,Z=e.inputRef,se=e.transform,W=e.inputLabelProps,Pe=Vu(e,["options","label","itemKey","itemValue","itemLabel","required","rules","parseError","name","menuMaxHeight","menuMaxWidth","minWidth","helperText","showChips","preserveOrder","control","showCheckbox","formControlProps","inputRef","transform","inputLabelProps"]),Ee=Mp(),X=_||Ee,Re=function(vt){var Wt,z;return(z=(Wt=o.find(function(K){var ue;return((ue=K[g||f])!==null&&ue!==void 0?ue:K)===vt}))===null||Wt===void 0?void 0:Wt[S])!==null&&z!==void 0?z:vt},Ue=Gn({},k,w&&!k.required&&{required:"This field is required"}),oe=eh({name:C,rules:Ue,disabled:Pe.disabled,control:q}),rt=oe.field,qe=oe.fieldState,et=qe.error,Tt=Jf({value:rt.value,onChange:rt.onChange,transform:{input:typeof(se==null?void 0:se.input)=="function"?se.input:function(vt){return Array.isArray(vt)?vt:[]},output:se==null?void 0:se.output}}),ct=Tt.value,Pt=Tt.onChange,Mt=Er(rt.ref,Z),ot=et?typeof X=="function"?X(et):et.message:V,wt;return D.jsxs(Qc,xi(Gn({},ee),{style:Gn({minWidth:G},ee==null?void 0:ee.style),variant:Pe.variant,fullWidth:Pe.fullWidth,error:!!et,size:Pe.size,ref:t,children:[u&&D.jsx(Fue,xi(Gn({},W),{size:Pe.size==="small"?"small":W==null?void 0:W.size,error:!!et,htmlFor:Pe.id||"select-multi-select-".concat(C),required:w,children:u})),D.jsx(rU,xi(Gn({},Pe),{id:Pe.id||"select-multi-select-".concat(C),multiple:!0,label:u||void 0,error:!!et,value:ct,required:w,onChange:Pt,onBlur:rt.onBlur,MenuProps:xi(Gn({},Pe.MenuProps),{slotProps:xi(Gn({},(n=Pe.MenuProps)===null||n===void 0?void 0:n.slotProps),{paper:Gn({},(wt=(i=Pe.MenuProps)===null||i===void 0||(r=i.slotProps)===null||r===void 0?void 0:r.paper)!==null&&wt!==void 0?wt:{style:Gn({maxHeight:N,width:U},Dl((s=Pe.MenuProps)===null||s===void 0||(a=s.slotProps)===null||a===void 0?void 0:a.paper,"style")&&typeof Pe.MenuProps.slotProps.paper.style=="object"&&Gn({},Pe.MenuProps.slotProps.paper.style))})})}),renderValue:typeof Pe.renderValue=="function"?Pe.renderValue:ie?function(vt){return D.jsx("div",{style:{display:"flex",flexWrap:"wrap"},children:(ne?o.filter(function(Wt){return vt.includes(Wt)}):vt||[]).map(function(Wt){return D.jsx(Rue,{label:Re(Wt),style:{display:"flex",flexWrap:"wrap"},onDelete:function(){Pt((Array.isArray(ct)?ct:[]).filter(function(z){return z!==Wt}))},deleteIcon:D.jsx(Kde,{onMouseDown:function(z){z.stopPropagation()}})},Wt)})})}:function(vt){return Array.isArray(vt)?vt.map(Re).join(", "):""},inputRef:Mt,children:o.map(function(vt){var Wt=vt[g||f]||vt,z=Array.isArray(ct)?ct.some(function(K){return K===Wt}):!1;return D.jsxs(Cd,{value:Wt,sx:{fontWeight:function(K){return z?K.typography.fontWeightBold:K.typography.fontWeightRegular}},children:[re&&D.jsx(SR,{checked:z}),D.jsx(sp,{primary:vt[S]||vt})]},Wt)})})),ot&&D.jsx(wO,{error:!!et,children:ot})]}))});eze.displayName="MultiSelectElement";var ife=L.forwardRef(function(e,t){var n=e.iconColor,r=e.renderIcon,i=r===void 0?function(u){return u?D.jsx(AU,{}):D.jsx(Jde,{})}:r,a=Vu(e,["iconColor","renderIcon"]),s=VUe(L.useState(!0),2),o=s[0],l=s[1];return D.jsx(Wx,xi(Gn({},a),{ref:t,InputProps:{endAdornment:D.jsx(T8,{position:"end",children:D.jsx(Ro,{onMouseDown:function(u){return u.preventDefault()},onClick:function(){return l(!o)},tabIndex:-1,color:n??"default",children:i(o)})})},type:o?"password":"text"}))});ife.displayName="PasswordElement";var tze=ife,nze=L.forwardRef(function(e,t){var n=e.helperText,r=e.options,i=e.label,a=e.name,s=e.parseError,o=e.labelKey,l=o===void 0?"label":o,u=e.valueKey,d=u===void 0?"id":u,f=e.disabledKey,p=f===void 0?"disabled":f,g=e.required,b=e.emptyOptionLabel,S=e.returnObject,E=e.row,w=e.control,x=e.type,k=e.labelProps,_=e.disabled,C=e.formLabelProps,R=e.transform,N=e.rules,M=N===void 0?{}:N,U=Vu(e,["helperText","options","label","name","parseError","labelKey","valueKey","disabledKey","required","emptyOptionLabel","returnObject","row","control","type","labelProps","disabled","formLabelProps","transform","rules"]),F=Xf(),G=Mp(),V=s||G,ie=Gn({},M,g&&!M.required&&{required:"This field is required"}),ne=eh({name:a,rules:ie,disabled:_,control:w}),q=ne.field,re=ne.fieldState,ee=re.error,Z=Jf({value:q.value,onChange:q.onChange,transform:{input:typeof(R==null?void 0:R.input)=="function"?R.input:function(X){return X||""},output:typeof(R==null?void 0:R.output)=="function"?R==null?void 0:R.output:function(X,Re){return Re&&x==="number"?Number(Re):Re}}}),se=Z.value,W=Z.onChange,Pe=ee?typeof V=="function"?V(ee):ee.message:n,Ee=function(X,Re){var Ue=S?r.find(function(oe){return oe[d]===Re}):Re;W(X,Ue),typeof U.onChange=="function"&&U.onChange(Ue)};return D.jsxs(Qc,{error:!!ee,ref:t,children:[i&&D.jsx(wR,xi(Gn({},C),{required:g,error:!!ee,children:i})),D.jsxs(TPe,{onChange:Ee,name:a,row:E,value:se,children:[b&&D.jsx(Ow,xi(Gn({},k),{control:D.jsx(UX,{sx:{color:ee?F.palette.error.main:void 0},checked:!se}),label:b,value:""})),r.map(function(X){var Re=X[d],Ue=X[p]||!1;Re===void 0&&console.error("RadioButtonGroup: valueKey ".concat(d," does not exist on option"),X);var oe=S?se==null?void 0:se[d]:se;x==="number"&&(oe=Number(oe));var rt=oe===Re;return L.createElement(Ow,xi(Gn({},k),{control:D.jsx(UX,{sx:{color:ee?F.palette.error.main:void 0},disabled:_||Ue,checked:rt}),value:Re,label:X[l],key:Re}))})]}),Pe&&D.jsx(wO,{children:Pe})]})});nze.displayName="RadioButtonGroup";var rze=L.forwardRef(function(e,t){var n=e.name,r=e.control,i=e.switchProps,a=e.transform,s=Vu(e,["name","control","switchProps","transform"]),o=eh({name:n,control:r,disabled:s.disabled}),l=o.field,u=Jf({value:l.value,onChange:l.onChange,transform:{input:a==null?void 0:a.input,output:typeof(a==null?void 0:a.output)=="function"?a.output:function(g,b){return b}}}),d=u.value,f=u.onChange,p=Er(l.ref,i==null?void 0:i.ref);return D.jsx(Ow,Gn({ref:t,control:D.jsx(w8e,xi(Gn({},i),{name:l.name,value:d,onChange:function(g,b){f(g,b),typeof(i==null?void 0:i.onChange)=="function"&&i.onChange(g,b)},onBlur:function(g){l.onBlur(),typeof(i==null?void 0:i.onBlur)=="function"&&(i==null||i.onBlur(g))},ref:p,checked:!!d}))},s))});rze.displayName="SwitchElement";var ize=L.forwardRef(function(e,t){var n=e.passwordFieldName,r=e.customInvalidFieldMessage,i=e.control,a=Vu(e,["passwordFieldName","customInvalidFieldMessage","control"]),s=Wde({name:n,control:i});return D.jsx(tze,xi(Gn({control:i},a),{ref:t,rules:{validate:function(o){return o===s||(r??"Password should match")}}}))});ize.displayName="PasswordRepeatElement";var aze=L.forwardRef(function(e,t){var n=e.textFieldProps,r=e.autocompleteProps,i=e.name,a=e.control,s=e.options,o=e.loading,l=e.showCheckbox,u=e.rules,d=e.loadingIndicator,f=e.required,p=e.multiple,g=e.label,b=e.parseError,S=e.transform,E=e.matchId,w=Mp(),x=b||w,k=Gn({},u,f&&{required:(u==null?void 0:u.required)||"This field is required"}),_=eh({name:i,control:a,disabled:r==null?void 0:r.disabled,rules:k}),C=_.field,R=_.fieldState,N=R.error,M=function(ee){return typeof(r==null?void 0:r.getOptionLabel)=="function"?r.getOptionLabel(ee):Dl(ee,"label")?"".concat(ee==null?void 0:ee.label):"".concat(ee)},U=function(ee,Z){if(typeof(r==null?void 0:r.isOptionEqualToValue)=="function")return r.isOptionEqualToValue(ee,Z);var se=Dl(ee,"id")?ee.id:ee,W=Dl(Z,"id")?Z.id:Z;return se===W},F=function(ee){return s.find(function(Z){return E&&Dl(Z,"id")?Z.id===ee:U(Z,ee)})},G=Jf({value:C.value,onChange:C.onChange,transform:{input:typeof(S==null?void 0:S.input)=="function"?S.input:function(ee){var Z;return p?(Array.isArray(ee)?ee:[]).map(F):(Z=F(ee))!==null&&Z!==void 0?Z:null},output:typeof(S==null?void 0:S.output)=="function"?S.output:function(ee,Z){if(p){var se=Array.isArray(Z)?Z:[];return E?se.map(function(W){return Dl(W,"id")?W.id:W}):se}return E&&Dl(Z,"id")?Z.id:Z}}}),V=G.value,ie=G.onChange,ne=Er(C.ref,n==null?void 0:n.inputRef),q=d||D.jsx(Md,{color:"inherit",size:20}),re;return D.jsx(VIe,xi(Gn({},r),{value:V,loading:o,multiple:p,options:s,disableCloseOnSelect:typeof(r==null?void 0:r.disableCloseOnSelect)=="boolean"?r.disableCloseOnSelect:!!p,isOptionEqualToValue:U,getOptionLabel:M,onChange:function(ee,Z,se,W){ie(ee,Z,se,W),r!=null&&r.onChange&&r.onChange(ee,Z,se,W)},ref:t,renderOption:(re=r==null?void 0:r.renderOption)!==null&&re!==void 0?re:l?function(ee,Z,se){var W=se.selected;return D.jsxs("li",xi(Gn({},ee),{children:[D.jsx(SR,{sx:{marginRight:1},checked:W}),M(Z)]}))}:void 0,onBlur:function(ee){C.onBlur(),typeof(r==null?void 0:r.onBlur)=="function"&&r.onBlur(ee)},renderInput:function(ee){return D.jsx(Nx,xi(Gn({name:i,required:u!=null&&u.required?!0:f,label:g},n,ee),{error:!!N,InputLabelProps:Gn({},ee.InputLabelProps,n==null?void 0:n.InputLabelProps),InputProps:Gn(xi(Gn({},ee.InputProps),{endAdornment:D.jsxs(D.Fragment,{children:[o?q:null,ee.InputProps.endAdornment]})}),n==null?void 0:n.InputProps),inputProps:Gn({},ee.inputProps,n==null?void 0:n.inputProps),helperText:N?typeof x=="function"?x(N):N.message:n==null?void 0:n.helperText,inputRef:ne}))}}))});aze.displayName="AutocompleteElement";var sze=L.forwardRef(function(e,t){var n=e.name,r=e.control,i=e.label,a=e.rules,s=a===void 0?{}:a,o=e.parseError,l=e.required,u=e.formControlProps,d=e.transform,f=Vu(e,["name","control","label","rules","parseError","required","formControlProps","transform"]),p=Mp(),g=o||p,b=Gn({},s,l&&!s.required&&{required:"This field is required"}),S=eh({name:n,control:r,disabled:f.disabled,rules:b}),E=S.field,w=S.fieldState,x=w.error,k=w.invalid,_=Jf({value:E.value,onChange:E.onChange,transform:d}),C=_.value,R=_.onChange,N=x?typeof g=="function"?g(x):x.message:null;return D.jsxs(Qc,xi(Gn({error:k,required:l,fullWidth:!0},u),{ref:t,children:[i&&D.jsx(wR,{component:"legend",error:k,children:i}),D.jsx(l8e,xi(Gn({},f),{value:C,onChange:R,valueLabelDisplay:f.valueLabelDisplay||"auto"})),N&&D.jsx(wO,{error:k,children:N})]}))});sze.displayName="SliderElement";var oze=L.forwardRef(function(e,t){var n=e.rules,r=n===void 0?{}:n,i=e.parseError,a=e.required,s=e.name,o=e.control,l=e.rows,u=e.resizeStyle,d=e.inputRef,f=e.inputProps,p=e.transform,g=Vu(e,["rules","parseError","required","name","control","rows","resizeStyle","inputRef","inputProps","transform"]),b=Mp(),S=i||b,E=Gn({},r,a&&!r.required&&{required:"This field is required"}),w=eh({name:s,control:o,rules:E,disabled:g.disabled}),x=w.field,k=w.fieldState,_=k.error,C=Jf({value:x.value,onChange:x.onChange,transform:{input:typeof(p==null?void 0:p.input)=="function"?p.input:function(U){return U??""},output:typeof(p==null?void 0:p.output)=="function"?p.output:function(U){return U.target.value}}}),R=C.value,N=C.onChange,M=Er(x.ref,d);return D.jsx(Nx,xi(Gn({},g),{name:s,value:R,onChange:function(U){N(U),typeof g.onChange=="function"&&g.onChange(U)},onBlur:x.onBlur,required:a,error:!!_,helperText:_?typeof S=="function"?S(_):_.message:g.helperText,inputRef:M,multiline:!0,InputProps:{inputComponent:Iue,inputProps:Gn({minRows:l,style:{resize:u||"both"}},f||{})},ref:t}))});oze.displayName="TextareaAutosizeElement";const Xy=["No Limit","30 minutes","1 hour","8 hours","24 hours","7 days"];//! moment.js +//! version : 2.30.1 +//! authors : Tim Wood, Iskren Chernev, Moment.js contributors +//! license : MIT +//! momentjs.com +var afe;function an(){return afe.apply(null,arguments)}function lze(e){afe=e}function Ld(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function p1(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Vr(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function zU(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Vr(e,t))return!1;return!0}function kl(e){return e===void 0}function Op(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Qx(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function sfe(e,t){var n=[],r,i=e.length;for(r=0;r>>0,r;for(r=0;r0)for(n=0;n=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var QU=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,QA=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,CD={},Ky={};function Nn(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(Ky[e]=i),t&&(Ky[t[0]]=function(){return Yf(i.apply(this,arguments),t[1],t[2])}),n&&(Ky[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function hze(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function pze(e){var t=e.match(QU),n,r;for(n=0,r=t.length;n=0&&QA.test(e);)e=e.replace(QA,r),QA.lastIndex=0,n-=1;return e}var mze={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function gze(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(QU).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var bze="Invalid date";function yze(){return this._invalidDate}var vze="%d",Oze=/\d{1,2}/;function Sze(e){return this._ordinal.replace("%d",e)}var Eze={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function wze(e,t,n,r){var i=this._relativeTime[n];return nh(i)?i(e,t,n,r):i.replace(/%d/i,e)}function xze(e,t){var n=this._relativeTime[e>0?"future":"past"];return nh(n)?n(t):n.replace(/%s/i,t)}var yJ={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function qc(e){return typeof e=="string"?yJ[e]||yJ[e.toLowerCase()]:void 0}function GU(e){var t={},n,r;for(r in e)Vr(e,r)&&(n=qc(r),n&&(t[n]=e[r]));return t}var Tze={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function kze(e){var t=[],n;for(n in e)Vr(e,n)&&t.push({unit:n,priority:Tze[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var cfe=/\d/,qu=/\d\d/,dfe=/\d{3}/,VU=/\d{4}/,UR=/[+-]?\d{6}/,qi=/\d\d?/,ffe=/\d\d\d\d?/,hfe=/\d\d\d\d\d\d?/,zR=/\d{1,3}/,qU=/\d{1,4}/,HR=/[+-]?\d{1,6}/,IO=/\d+/,jR=/[+-]?\d+/,Aze=/Z|[+-]\d\d:?\d\d/gi,WR=/Z|[+-]\d\d(?::?\d\d)?/gi,_ze=/[+-]?\d+(\.\d{1,3})?/,Vx=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,NO=/^[1-9]\d?/,YU=/^([1-9]\d|\d)/,aC;aC={};function dn(e,t,n){aC[e]=nh(t)?t:function(r,i){return r&&n?n:t}}function Cze(e,t){return Vr(aC,e)?aC[e](t._strict,t._locale):new RegExp(Rze(e))}function Rze(e){return op(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,a){return n||r||i||a}))}function op(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function bc(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function _r(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=bc(t)),n}var c9={};function yi(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),Op(t)&&(r=function(a,s){s[t]=_r(a)}),i=e.length,n=0;n68?1900:2e3)};var pfe=DO("FullYear",!0);function Pze(){return QR(this.year())}function DO(e,t){return function(n){return n!=null?(mfe(this,e,n),an.updateOffset(this,t),this):Rw(this,e)}}function Rw(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function mfe(e,t,n){var r,i,a,s,o;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,s=e.month(),o=e.date(),o=o===29&&s===1&&!QR(a)?28:o,i?r.setUTCFullYear(a,s,o):r.setFullYear(a,s,o)}}function Mze(e){return e=qc(e),nh(this[e])?this[e]():this}function Lze(e,t){if(typeof e=="object"){e=GU(e);var n=kze(e),r,i=n.length;for(r=0;r=0?(o=new Date(e+400,t,n,r,i,a,s),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,r,i,a,s),o}function Iw(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function sC(e,t,n){var r=7+t-n,i=(7+Iw(e,0,r).getUTCDay()-t)%7;return-i+r-1}function Sfe(e,t,n,r,i){var a=(7+n-r)%7,s=sC(e,r,i),o=1+7*(t-1)+a+s,l,u;return o<=0?(l=e-1,u=TE(l)+o):o>TE(e)?(l=e+1,u=o-TE(e)):(l=e,u=o),{year:l,dayOfYear:u}}function Nw(e,t,n){var r=sC(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,a,s;return i<1?(s=e.year()-1,a=i+lp(s,t,n)):i>lp(e.year(),t,n)?(a=i-lp(e.year(),t,n),s=e.year()+1):(s=e.year(),a=i),{week:a,year:s}}function lp(e,t,n){var r=sC(e,t,n),i=sC(e+1,t,n);return(TE(e)-r+i)/7}Nn("w",["ww",2],"wo","week");Nn("W",["WW",2],"Wo","isoWeek");dn("w",qi,NO);dn("ww",qi,qu);dn("W",qi,NO);dn("WW",qi,qu);qx(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=_r(e)});function Yze(e){return Nw(e,this._week.dow,this._week.doy).week}var Zze={dow:0,doy:6};function Xze(){return this._week.dow}function Kze(){return this._week.doy}function Jze(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function eHe(e){var t=Nw(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Nn("d",0,"do","day");Nn("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Nn("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Nn("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Nn("e",0,0,"weekday");Nn("E",0,0,"isoWeekday");dn("d",qi);dn("e",qi);dn("E",qi);dn("dd",function(e,t){return t.weekdaysMinRegex(e)});dn("ddd",function(e,t){return t.weekdaysShortRegex(e)});dn("dddd",function(e,t){return t.weekdaysRegex(e)});qx(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:ur(n).invalidWeekday=e});qx(["d","e","E"],function(e,t,n,r){t[r]=_r(e)});function tHe(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function nHe(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function XU(e,t){return e.slice(t,7).concat(e.slice(0,t))}var rHe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Efe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),iHe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),aHe=Vx,sHe=Vx,oHe=Vx;function lHe(e,t){var n=Ld(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?XU(n,this._week.dow):e?n[e.day()]:n}function uHe(e){return e===!0?XU(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function cHe(e){return e===!0?XU(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function dHe(e,t,n){var r,i,a,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=th([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?t==="dddd"?(i=Ma.call(this._weekdaysParse,s),i!==-1?i:null):t==="ddd"?(i=Ma.call(this._shortWeekdaysParse,s),i!==-1?i:null):(i=Ma.call(this._minWeekdaysParse,s),i!==-1?i:null):t==="dddd"?(i=Ma.call(this._weekdaysParse,s),i!==-1||(i=Ma.call(this._shortWeekdaysParse,s),i!==-1)?i:(i=Ma.call(this._minWeekdaysParse,s),i!==-1?i:null)):t==="ddd"?(i=Ma.call(this._shortWeekdaysParse,s),i!==-1||(i=Ma.call(this._weekdaysParse,s),i!==-1)?i:(i=Ma.call(this._minWeekdaysParse,s),i!==-1?i:null)):(i=Ma.call(this._minWeekdaysParse,s),i!==-1||(i=Ma.call(this._weekdaysParse,s),i!==-1)?i:(i=Ma.call(this._shortWeekdaysParse,s),i!==-1?i:null))}function fHe(e,t,n){var r,i,a;if(this._weekdaysParseExact)return dHe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=th([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function hHe(e){if(!this.isValid())return e!=null?this:NaN;var t=Rw(this,"Day");return e!=null?(e=tHe(e,this.localeData()),this.add(e-t,"d")):t}function pHe(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function mHe(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=nHe(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function gHe(e){return this._weekdaysParseExact?(Vr(this,"_weekdaysRegex")||KU.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Vr(this,"_weekdaysRegex")||(this._weekdaysRegex=aHe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function bHe(e){return this._weekdaysParseExact?(Vr(this,"_weekdaysRegex")||KU.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Vr(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=sHe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function yHe(e){return this._weekdaysParseExact?(Vr(this,"_weekdaysRegex")||KU.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Vr(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=oHe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function KU(){function e(d,f){return f.length-d.length}var t=[],n=[],r=[],i=[],a,s,o,l,u;for(a=0;a<7;a++)s=th([2e3,1]).day(a),o=op(this.weekdaysMin(s,"")),l=op(this.weekdaysShort(s,"")),u=op(this.weekdays(s,"")),t.push(o),n.push(l),r.push(u),i.push(o),i.push(l),i.push(u);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function JU(){return this.hours()%12||12}function vHe(){return this.hours()||24}Nn("H",["HH",2],0,"hour");Nn("h",["hh",2],0,JU);Nn("k",["kk",2],0,vHe);Nn("hmm",0,0,function(){return""+JU.apply(this)+Yf(this.minutes(),2)});Nn("hmmss",0,0,function(){return""+JU.apply(this)+Yf(this.minutes(),2)+Yf(this.seconds(),2)});Nn("Hmm",0,0,function(){return""+this.hours()+Yf(this.minutes(),2)});Nn("Hmmss",0,0,function(){return""+this.hours()+Yf(this.minutes(),2)+Yf(this.seconds(),2)});function wfe(e,t){Nn(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}wfe("a",!0);wfe("A",!1);function xfe(e,t){return t._meridiemParse}dn("a",xfe);dn("A",xfe);dn("H",qi,YU);dn("h",qi,NO);dn("k",qi,NO);dn("HH",qi,qu);dn("hh",qi,qu);dn("kk",qi,qu);dn("hmm",ffe);dn("hmmss",hfe);dn("Hmm",ffe);dn("Hmmss",hfe);yi(["H","HH"],ms);yi(["k","kk"],function(e,t,n){var r=_r(e);t[ms]=r===24?0:r});yi(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});yi(["h","hh"],function(e,t,n){t[ms]=_r(e),ur(n).bigHour=!0});yi("hmm",function(e,t,n){var r=e.length-2;t[ms]=_r(e.substr(0,r)),t[kd]=_r(e.substr(r)),ur(n).bigHour=!0});yi("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[ms]=_r(e.substr(0,r)),t[kd]=_r(e.substr(r,2)),t[rp]=_r(e.substr(i)),ur(n).bigHour=!0});yi("Hmm",function(e,t,n){var r=e.length-2;t[ms]=_r(e.substr(0,r)),t[kd]=_r(e.substr(r))});yi("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[ms]=_r(e.substr(0,r)),t[kd]=_r(e.substr(r,2)),t[rp]=_r(e.substr(i))});function OHe(e){return(e+"").toLowerCase().charAt(0)==="p"}var SHe=/[ap]\.?m?\.?/i,EHe=DO("Hours",!0);function wHe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Tfe={calendar:dze,longDateFormat:mze,invalidDate:bze,ordinal:vze,dayOfMonthOrdinalParse:Oze,relativeTime:Eze,months:Fze,monthsShort:gfe,week:Zze,weekdays:rHe,weekdaysMin:iHe,weekdaysShort:Efe,meridiemParse:SHe},Ji={},y2={},Dw;function xHe(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(i=GR(a.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&xHe(a,r)>=n-1)break;n--}t++}return Dw}function kHe(e){return!!(e&&e.match("^[^/\\\\]*$"))}function GR(e){var t=null,n;if(Ji[e]===void 0&&typeof n3<"u"&&n3&&n3.exports&&kHe(e))try{t=Dw._abbr,n=require,n("./locale/"+e),lm(t)}catch{Ji[e]=null}return Ji[e]}function lm(e,t){var n;return e&&(kl(t)?n=Lp(e):n=ez(e,t),n?Dw=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Dw._abbr}function ez(e,t){if(t!==null){var n,r=Tfe;if(t.abbr=e,Ji[e]!=null)lfe("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=Ji[e]._config;else if(t.parentLocale!=null)if(Ji[t.parentLocale]!=null)r=Ji[t.parentLocale]._config;else if(n=GR(t.parentLocale),n!=null)r=n._config;else return y2[t.parentLocale]||(y2[t.parentLocale]=[]),y2[t.parentLocale].push({name:e,config:t}),null;return Ji[e]=new WU(l9(r,t)),y2[e]&&y2[e].forEach(function(i){ez(i.name,i.config)}),lm(e),Ji[e]}else return delete Ji[e],null}function AHe(e,t){if(t!=null){var n,r,i=Tfe;Ji[e]!=null&&Ji[e].parentLocale!=null?Ji[e].set(l9(Ji[e]._config,t)):(r=GR(e),r!=null&&(i=r._config),t=l9(i,t),r==null&&(t.abbr=e),n=new WU(t),n.parentLocale=Ji[e],Ji[e]=n),lm(e)}else Ji[e]!=null&&(Ji[e].parentLocale!=null?(Ji[e]=Ji[e].parentLocale,e===lm()&&lm(e)):Ji[e]!=null&&delete Ji[e]);return Ji[e]}function Lp(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Dw;if(!Ld(e)){if(t=GR(e),t)return t;e=[e]}return THe(e)}function _He(){return u9(Ji)}function tz(e){var t,n=e._a;return n&&ur(e).overflow===-2&&(t=n[np]<0||n[np]>11?np:n[Af]<1||n[Af]>ZU(n[Ao],n[np])?Af:n[ms]<0||n[ms]>24||n[ms]===24&&(n[kd]!==0||n[rp]!==0||n[qg]!==0)?ms:n[kd]<0||n[kd]>59?kd:n[rp]<0||n[rp]>59?rp:n[qg]<0||n[qg]>999?qg:-1,ur(e)._overflowDayOfYear&&(tAf)&&(t=Af),ur(e)._overflowWeeks&&t===-1&&(t=Nze),ur(e)._overflowWeekday&&t===-1&&(t=Dze),ur(e).overflow=t),e}var CHe=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,RHe=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,IHe=/Z|[+-]\d\d(?::?\d\d)?/,GA=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],RD=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],NHe=/^\/?Date\((-?\d+)/i,DHe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,PHe={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function kfe(e){var t,n,r=e._i,i=CHe.exec(r)||RHe.exec(r),a,s,o,l,u=GA.length,d=RD.length;if(i){for(ur(e).iso=!0,t=0,n=u;tTE(s)||e._dayOfYear===0)&&(ur(e)._overflowDayOfYear=!0),n=Iw(s,0,e._dayOfYear),e._a[np]=n.getUTCMonth(),e._a[Af]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[ms]===24&&e._a[kd]===0&&e._a[rp]===0&&e._a[qg]===0&&(e._nextDay=!0,e._a[ms]=0),e._d=(e._useUTC?Iw:qze).apply(null,r),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ms]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(ur(e).weekdayMismatch=!0)}}function HHe(e){var t,n,r,i,a,s,o,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,s=4,n=sy(t.GG,e._a[Ao],Nw(Vi(),1,4).year),r=sy(t.W,1),i=sy(t.E,1),(i<1||i>7)&&(l=!0)):(a=e._locale._week.dow,s=e._locale._week.doy,u=Nw(Vi(),a,s),n=sy(t.gg,e._a[Ao],u.year),r=sy(t.w,u.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+a,(t.e<0||t.e>6)&&(l=!0)):i=a),r<1||r>lp(n,a,s)?ur(e)._overflowWeeks=!0:l!=null?ur(e)._overflowWeekday=!0:(o=Sfe(n,r,i,a,s),e._a[Ao]=o.year,e._dayOfYear=o.dayOfYear)}an.ISO_8601=function(){};an.RFC_2822=function(){};function rz(e){if(e._f===an.ISO_8601){kfe(e);return}if(e._f===an.RFC_2822){Afe(e);return}e._a=[],ur(e).empty=!0;var t=""+e._i,n,r,i,a,s,o=t.length,l=0,u,d;for(i=ufe(e._f,e._locale).match(QU)||[],d=i.length,n=0;n0&&ur(e).unusedInput.push(s),t=t.slice(t.indexOf(r)+r.length),l+=r.length),Ky[a]?(r?ur(e).empty=!1:ur(e).unusedTokens.push(a),Ize(a,r,e)):e._strict&&!r&&ur(e).unusedTokens.push(a);ur(e).charsLeftOver=o-l,t.length>0&&ur(e).unusedInput.push(t),e._a[ms]<=12&&ur(e).bigHour===!0&&e._a[ms]>0&&(ur(e).bigHour=void 0),ur(e).parsedDateParts=e._a.slice(0),ur(e).meridiem=e._meridiem,e._a[ms]=jHe(e._locale,e._a[ms],e._meridiem),u=ur(e).era,u!==null&&(e._a[Ao]=e._locale.erasConvertYear(u,e._a[Ao])),nz(e),tz(e)}function jHe(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function WHe(e){var t,n,r,i,a,s,o=!1,l=e._f.length;if(l===0){ur(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:BR()});function Rfe(e,t){var n,r;if(t.length===1&&Ld(t[0])&&(t=t[0]),!t.length)return Vi();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function dje(){if(!kl(this._isDSTShifted))return this._isDSTShifted;var e={},t;return jU(e,this),e=_fe(e),e._a?(t=e._isUTC?th(e._a):Vi(e._a),this._isDSTShifted=this.isValid()&&nje(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function fje(){return this.isValid()?!this._isUTC:!1}function hje(){return this.isValid()?this._isUTC:!1}function Nfe(){return this.isValid()?this._isUTC&&this._offset===0:!1}var pje=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,mje=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Hd(e,t){var n=e,r=null,i,a,s;return w4(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Op(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=pje.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:_r(r[Af])*i,h:_r(r[ms])*i,m:_r(r[kd])*i,s:_r(r[rp])*i,ms:_r(d9(r[qg]*1e3))*i}):(r=mje.exec(e))?(i=r[1]==="-"?-1:1,n={y:Sg(r[2],i),M:Sg(r[3],i),w:Sg(r[4],i),d:Sg(r[5],i),h:Sg(r[6],i),m:Sg(r[7],i),s:Sg(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(s=gje(Vi(n.from),Vi(n.to)),n={},n.ms=s.milliseconds,n.M=s.months),a=new VR(n),w4(e)&&Vr(e,"_locale")&&(a._locale=e._locale),w4(e)&&Vr(e,"_isValid")&&(a._isValid=e._isValid),a}Hd.fn=VR.prototype;Hd.invalid=tje;function Sg(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function OJ(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function gje(e,t){var n;return e.isValid()&&t.isValid()?(t=az(t,e),e.isBefore(t)?n=OJ(e,t):(n=OJ(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Dfe(e,t){return function(n,r){var i,a;return r!==null&&!isNaN(+r)&&(lfe(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),i=Hd(n,r),Pfe(this,i,e),this}}function Pfe(e,t,n,r){var i=t._milliseconds,a=d9(t._days),s=d9(t._months);e.isValid()&&(r=r??!0,s&&yfe(e,Rw(e,"Month")+s*n),a&&mfe(e,"Date",Rw(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&an.updateOffset(e,a||s))}var bje=Dfe(1,"add"),yje=Dfe(-1,"subtract");function Mfe(e){return typeof e=="string"||e instanceof String}function vje(e){return $d(e)||Qx(e)||Mfe(e)||Op(e)||Sje(e)||Oje(e)||e===null||e===void 0}function Oje(e){var t=p1(e)&&!zU(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,a,s=r.length;for(i=0;in.valueOf():n.valueOf()9999?E4(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):nh(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",E4(n,"Z")):E4(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Mje(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(n+r+i+a)}function Lje(e){e||(e=this.isUtc()?an.defaultFormatUtc:an.defaultFormat);var t=E4(this,e);return this.localeData().postformat(t)}function $je(e,t){return this.isValid()&&($d(e)&&e.isValid()||Vi(e).isValid())?Hd({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Fje(e){return this.from(Vi(),e)}function Bje(e,t){return this.isValid()&&($d(e)&&e.isValid()||Vi(e).isValid())?Hd({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Uje(e){return this.to(Vi(),e)}function Lfe(e){var t;return e===void 0?this._locale._abbr:(t=Lp(e),t!=null&&(this._locale=t),this)}var $fe=Vc("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Ffe(){return this._locale}var oC=1e3,Jy=60*oC,lC=60*Jy,Bfe=(365*400+97)*24*lC;function ev(e,t){return(e%t+t)%t}function Ufe(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Bfe:new Date(e,t,n).valueOf()}function zfe(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Bfe:Date.UTC(e,t,n)}function zje(e){var t,n;if(e=qc(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?zfe:Ufe,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ev(t+(this._isUTC?0:this.utcOffset()*Jy),lC);break;case"minute":t=this._d.valueOf(),t-=ev(t,Jy);break;case"second":t=this._d.valueOf(),t-=ev(t,oC);break}return this._d.setTime(t),an.updateOffset(this,!0),this}function Hje(e){var t,n;if(e=qc(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?zfe:Ufe,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=lC-ev(t+(this._isUTC?0:this.utcOffset()*Jy),lC)-1;break;case"minute":t=this._d.valueOf(),t+=Jy-ev(t,Jy)-1;break;case"second":t=this._d.valueOf(),t+=oC-ev(t,oC)-1;break}return this._d.setTime(t),an.updateOffset(this,!0),this}function jje(){return this._d.valueOf()-(this._offset||0)*6e4}function Wje(){return Math.floor(this.valueOf()/1e3)}function Qje(){return new Date(this.valueOf())}function Gje(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Vje(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function qje(){return this.isValid()?this.toISOString():null}function Yje(){return HU(this)}function Zje(){return G0({},ur(this))}function Xje(){return ur(this).overflow}function Kje(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Nn("N",0,0,"eraAbbr");Nn("NN",0,0,"eraAbbr");Nn("NNN",0,0,"eraAbbr");Nn("NNNN",0,0,"eraName");Nn("NNNNN",0,0,"eraNarrow");Nn("y",["y",1],"yo","eraYear");Nn("y",["yy",2],0,"eraYear");Nn("y",["yyy",3],0,"eraYear");Nn("y",["yyyy",4],0,"eraYear");dn("N",sz);dn("NN",sz);dn("NNN",sz);dn("NNNN",uWe);dn("NNNNN",cWe);yi(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?ur(n).era=i:ur(n).invalidEra=e});dn("y",IO);dn("yy",IO);dn("yyy",IO);dn("yyyy",IO);dn("yo",dWe);yi(["y","yy","yyy","yyyy"],Ao);yi(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Ao]=n._locale.eraYearOrdinalParse(e,i):t[Ao]=parseInt(e,10)});function Jje(e,t){var n,r,i,a=this._eras||Lp("en")._eras;for(n=0,r=a.length;n=0)return a[r]}function tWe(e,t){var n=e.since<=e.until?1:-1;return t===void 0?an(e.since).year():an(e.since).year()+(t-e.offset)*n}function nWe(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ea&&(t=a),yWe.call(this,e,t,n,r,i))}function yWe(e,t,n,r,i){var a=Sfe(e,t,n,r,i),s=Iw(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}Nn("Q",0,"Qo","quarter");dn("Q",cfe);yi("Q",function(e,t){t[np]=(_r(e)-1)*3});function vWe(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Nn("D",["DD",2],"Do","date");dn("D",qi,NO);dn("DD",qi,qu);dn("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});yi(["D","DD"],Af);yi("Do",function(e,t){t[Af]=_r(e.match(qi)[0])});var jfe=DO("Date",!0);Nn("DDD",["DDDD",3],"DDDo","dayOfYear");dn("DDD",zR);dn("DDDD",dfe);yi(["DDD","DDDD"],function(e,t,n){n._dayOfYear=_r(e)});function OWe(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Nn("m",["mm",2],0,"minute");dn("m",qi,YU);dn("mm",qi,qu);yi(["m","mm"],kd);var SWe=DO("Minutes",!1);Nn("s",["ss",2],0,"second");dn("s",qi,YU);dn("ss",qi,qu);yi(["s","ss"],rp);var EWe=DO("Seconds",!1);Nn("S",0,0,function(){return~~(this.millisecond()/100)});Nn(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Nn(0,["SSS",3],0,"millisecond");Nn(0,["SSSS",4],0,function(){return this.millisecond()*10});Nn(0,["SSSSS",5],0,function(){return this.millisecond()*100});Nn(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Nn(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Nn(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Nn(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});dn("S",zR,cfe);dn("SS",zR,qu);dn("SSS",zR,dfe);var V0,Wfe;for(V0="SSSS";V0.length<=9;V0+="S")dn(V0,IO);function wWe(e,t){t[qg]=_r(("0."+e)*1e3)}for(V0="S";V0.length<=9;V0+="S")yi(V0,wWe);Wfe=DO("Milliseconds",!1);Nn("z",0,0,"zoneAbbr");Nn("zz",0,0,"zoneName");function xWe(){return this._isUTC?"UTC":""}function TWe(){return this._isUTC?"Coordinated Universal Time":""}var zt=Gx.prototype;zt.add=bje;zt.calendar=xje;zt.clone=Tje;zt.diff=Nje;zt.endOf=Hje;zt.format=Lje;zt.from=$je;zt.fromNow=Fje;zt.to=Bje;zt.toNow=Uje;zt.get=Mze;zt.invalidAt=Xje;zt.isAfter=kje;zt.isBefore=Aje;zt.isBetween=_je;zt.isSame=Cje;zt.isSameOrAfter=Rje;zt.isSameOrBefore=Ije;zt.isValid=Yje;zt.lang=$fe;zt.locale=Lfe;zt.localeData=Ffe;zt.max=YHe;zt.min=qHe;zt.parsingFlags=Zje;zt.set=Lze;zt.startOf=zje;zt.subtract=yje;zt.toArray=Gje;zt.toObject=Vje;zt.toDate=Qje;zt.toISOString=Pje;zt.inspect=Mje;typeof Symbol<"u"&&Symbol.for!=null&&(zt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});zt.toJSON=qje;zt.toString=Dje;zt.unix=Wje;zt.valueOf=jje;zt.creationData=Kje;zt.eraName=nWe;zt.eraNarrow=rWe;zt.eraAbbr=iWe;zt.eraYear=aWe;zt.year=pfe;zt.isLeapYear=Pze;zt.weekYear=fWe;zt.isoWeekYear=hWe;zt.quarter=zt.quarters=vWe;zt.month=vfe;zt.daysInMonth=Qze;zt.week=zt.weeks=Jze;zt.isoWeek=zt.isoWeeks=eHe;zt.weeksInYear=gWe;zt.weeksInWeekYear=bWe;zt.isoWeeksInYear=pWe;zt.isoWeeksInISOWeekYear=mWe;zt.date=jfe;zt.day=zt.days=hHe;zt.weekday=pHe;zt.isoWeekday=mHe;zt.dayOfYear=OWe;zt.hour=zt.hours=EHe;zt.minute=zt.minutes=SWe;zt.second=zt.seconds=EWe;zt.millisecond=zt.milliseconds=Wfe;zt.utcOffset=ije;zt.utc=sje;zt.local=oje;zt.parseZone=lje;zt.hasAlignedHourOffset=uje;zt.isDST=cje;zt.isLocal=fje;zt.isUtcOffset=hje;zt.isUtc=Nfe;zt.isUTC=Nfe;zt.zoneAbbr=xWe;zt.zoneName=TWe;zt.dates=Vc("dates accessor is deprecated. Use date instead.",jfe);zt.months=Vc("months accessor is deprecated. Use month instead",vfe);zt.years=Vc("years accessor is deprecated. Use year instead",pfe);zt.zone=Vc("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",aje);zt.isDSTShifted=Vc("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",dje);function kWe(e){return Vi(e*1e3)}function AWe(){return Vi.apply(null,arguments).parseZone()}function Qfe(e){return e}var qr=WU.prototype;qr.calendar=fze;qr.longDateFormat=gze;qr.invalidDate=yze;qr.ordinal=Sze;qr.preparse=Qfe;qr.postformat=Qfe;qr.relativeTime=wze;qr.pastFuture=xze;qr.set=cze;qr.eras=Jje;qr.erasParse=eWe;qr.erasConvertYear=tWe;qr.erasAbbrRegex=oWe;qr.erasNameRegex=sWe;qr.erasNarrowRegex=lWe;qr.months=zze;qr.monthsShort=Hze;qr.monthsParse=Wze;qr.monthsRegex=Vze;qr.monthsShortRegex=Gze;qr.week=Yze;qr.firstDayOfYear=Kze;qr.firstDayOfWeek=Xze;qr.weekdays=lHe;qr.weekdaysMin=cHe;qr.weekdaysShort=uHe;qr.weekdaysParse=fHe;qr.weekdaysRegex=gHe;qr.weekdaysShortRegex=bHe;qr.weekdaysMinRegex=yHe;qr.isPM=OHe;qr.meridiem=wHe;function uC(e,t,n,r){var i=Lp(),a=th().set(r,t);return i[n](a,e)}function Gfe(e,t,n){if(Op(e)&&(t=e,e=void 0),e=e||"",t!=null)return uC(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=uC(e,r,n,"month");return i}function lz(e,t,n,r){typeof e=="boolean"?(Op(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Op(t)&&(n=t,t=void 0),t=t||"");var i=Lp(),a=e?i._week.dow:0,s,o=[];if(n!=null)return uC(t,(n+a)%7,r,"day");for(s=0;s<7;s++)o[s]=uC(t,(s+a)%7,r,"day");return o}function _We(e,t){return Gfe(e,t,"months")}function CWe(e,t){return Gfe(e,t,"monthsShort")}function RWe(e,t,n){return lz(e,t,n,"weekdays")}function IWe(e,t,n){return lz(e,t,n,"weekdaysShort")}function NWe(e,t,n){return lz(e,t,n,"weekdaysMin")}lm("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=_r(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});an.lang=Vc("moment.lang is deprecated. Use moment.locale instead.",lm);an.langData=Vc("moment.langData is deprecated. Use moment.localeData instead.",Lp);var Fh=Math.abs;function DWe(){var e=this._data;return this._milliseconds=Fh(this._milliseconds),this._days=Fh(this._days),this._months=Fh(this._months),e.milliseconds=Fh(e.milliseconds),e.seconds=Fh(e.seconds),e.minutes=Fh(e.minutes),e.hours=Fh(e.hours),e.months=Fh(e.months),e.years=Fh(e.years),this}function Vfe(e,t,n,r){var i=Hd(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function PWe(e,t){return Vfe(this,e,t,1)}function MWe(e,t){return Vfe(this,e,t,-1)}function SJ(e){return e<0?Math.floor(e):Math.ceil(e)}function LWe(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,a,s,o,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=SJ(h9(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=bc(e/1e3),r.seconds=i%60,a=bc(i/60),r.minutes=a%60,s=bc(a/60),r.hours=s%24,t+=bc(s/24),l=bc(qfe(t)),n+=l,t-=SJ(h9(l)),o=bc(n/12),n%=12,r.days=t,r.months=n,r.years=o,this}function qfe(e){return e*4800/146097}function h9(e){return e*146097/4800}function $We(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=qc(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+qfe(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(h9(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function $p(e){return function(){return this.as(e)}}var Yfe=$p("ms"),FWe=$p("s"),BWe=$p("m"),UWe=$p("h"),zWe=$p("d"),HWe=$p("w"),jWe=$p("M"),WWe=$p("Q"),QWe=$p("y"),GWe=Yfe;function VWe(){return Hd(this)}function qWe(e){return e=qc(e),this.isValid()?this[e+"s"]():NaN}function j1(e){return function(){return this.isValid()?this._data[e]:NaN}}var YWe=j1("milliseconds"),ZWe=j1("seconds"),XWe=j1("minutes"),KWe=j1("hours"),JWe=j1("days"),eQe=j1("months"),tQe=j1("years");function nQe(){return bc(this.days()/7)}var Wh=Math.round,Py={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function rQe(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function iQe(e,t,n,r){var i=Hd(e).abs(),a=Wh(i.as("s")),s=Wh(i.as("m")),o=Wh(i.as("h")),l=Wh(i.as("d")),u=Wh(i.as("M")),d=Wh(i.as("w")),f=Wh(i.as("y")),p=a<=n.ss&&["s",a]||a0,p[4]=r,rQe.apply(null,p)}function aQe(e){return e===void 0?Wh:typeof e=="function"?(Wh=e,!0):!1}function sQe(e,t){return Py[e]===void 0?!1:t===void 0?Py[e]:(Py[e]=t,e==="s"&&(Py.ss=t-1),!0)}function oQe(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Py,i,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},Py,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),a=iQe(this,!n,r,i),n&&(a=i.pastFuture(+this,a)),i.postformat(a)}var ID=Math.abs;function Zb(e){return(e>0)-(e<0)||+e}function YR(){if(!this.isValid())return this.localeData().invalidDate();var e=ID(this._milliseconds)/1e3,t=ID(this._days),n=ID(this._months),r,i,a,s,o=this.asSeconds(),l,u,d,f;return o?(r=bc(e/60),i=bc(r/60),e%=60,r%=60,a=bc(n/12),n%=12,s=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=o<0?"-":"",u=Zb(this._months)!==Zb(o)?"-":"",d=Zb(this._days)!==Zb(o)?"-":"",f=Zb(this._milliseconds)!==Zb(o)?"-":"",l+"P"+(a?u+a+"Y":"")+(n?u+n+"M":"")+(t?d+t+"D":"")+(i||r||e?"T":"")+(i?f+i+"H":"")+(r?f+r+"M":"")+(e?f+s+"S":"")):"P0D"}var Br=VR.prototype;Br.isValid=eje;Br.abs=DWe;Br.add=PWe;Br.subtract=MWe;Br.as=$We;Br.asMilliseconds=Yfe;Br.asSeconds=FWe;Br.asMinutes=BWe;Br.asHours=UWe;Br.asDays=zWe;Br.asWeeks=HWe;Br.asMonths=jWe;Br.asQuarters=WWe;Br.asYears=QWe;Br.valueOf=GWe;Br._bubble=LWe;Br.clone=VWe;Br.get=qWe;Br.milliseconds=YWe;Br.seconds=ZWe;Br.minutes=XWe;Br.hours=KWe;Br.days=JWe;Br.weeks=nQe;Br.months=eQe;Br.years=tQe;Br.humanize=oQe;Br.toISOString=YR;Br.toString=YR;Br.toJSON=YR;Br.locale=Lfe;Br.localeData=Ffe;Br.toIsoString=Vc("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",YR);Br.lang=$fe;Nn("X",0,0,"unix");Nn("x",0,0,"valueOf");dn("x",jR);dn("X",_ze);yi("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});yi("x",function(e,t,n){n._d=new Date(_r(e))});//! moment.js +an.version="2.30.1";lze(Vi);an.fn=zt;an.min=ZHe;an.max=XHe;an.now=KHe;an.utc=th;an.unix=kWe;an.months=_We;an.isDate=Qx;an.locale=lm;an.invalid=BR;an.duration=Hd;an.isMoment=$d;an.weekdays=RWe;an.parseZone=AWe;an.localeData=Lp;an.isDuration=w4;an.monthsShort=CWe;an.weekdaysMin=NWe;an.defineLocale=ez;an.updateLocale=AHe;an.locales=_He;an.weekdaysShort=IWe;an.normalizeUnits=qc;an.relativeTimeRounding=aQe;an.relativeTimeThreshold=sQe;an.calendarFormat=wje;an.prototype=zt;an.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Zfe=e=>["workspaces",e,"documents"],lQe=(e,t)=>["workpsaces",e,"documents",t],uQe=e=>IU({queryKey:Zfe(e||""),queryFn:async({pageParam:n})=>(await or.get(`/workspaces/${e}/documents`,{params:{cursor:n,page_size:30}})).data,enabled:!!e,initialPageParam:void 0,getPreviousPageParam:n=>n.cursor??void 0,getNextPageParam:n=>n.cursor??void 0}),cQe=(e,t)=>{const n=Gu(),r=CO({queryKey:lQe(e||"",t||""),enabled:!!(e&&t),queryFn:async()=>(await or.get(`/workspaces/${e}/documents/${t}`)).data,meta:{errorMessage:"This is a non-existent or unauthorized document."}});return L.useEffect(()=>(r.data&&n(X3(r.data)),()=>{n(X3(null))}),[n,r.data]),r},dQe=e=>{const t=Hx();return Pp({mutationFn:async n=>(await or.post(`/workspaces/${e}/documents`,n)).data,onSuccess:()=>{t.invalidateQueries({queryKey:Zfe(e)})}})},fQe=(e,t)=>Pp({mutationFn:async n=>(await or.post(`/workspaces/${e}/documents/${t}/share-token`,n)).data});var p9=(e=>(e.READ="READ",e.EDIT="EDIT",e))(p9||{});const W1={};W1.write=async e=>{await navigator.clipboard.writeText(e)};W1.read=async()=>navigator.clipboard.readText();W1.readSync=()=>{throw new Error("`.readSync()` is not supported in browsers!")};W1.writeSync=()=>{throw new Error("`.writeSync()` is not supported in browsers!")};var uz={},hQe=Bi;Object.defineProperty(uz,"__esModule",{value:!0});var ZR=uz.default=void 0,pQe=hQe(aa()),mQe=D;ZR=uz.default=(0,pQe.default)((0,mQe.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy");var cz={},gQe=Bi;Object.defineProperty(cz,"__esModule",{value:!0});var XR=cz.default=void 0,bQe=gQe(aa()),yQe=D;XR=cz.default=(0,bQe.default)((0,yQe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function vQe(e){var d,f;const{...t}=e,n=Lm(),[r,i]=L.useState(null),a=Pr($R),{mutateAsync:s}=fQe(((d=a.data)==null?void 0:d.workspaceId)||"",((f=a.data)==null?void 0:f.id)||""),{enqueueSnackbar:o}=zx(),l=async p=>{let g;if(p.expiredString===Xy[0])g=null;else{const[S,E]=p.expiredString.split(" ");g=an().add(Number(S),E).toDate()}const{sharingToken:b}=await s({role:p.role,expiredAt:g});i(`${window.location.origin}/${n.workspaceSlug}/${n.documentId}/share?token=${b}`)},u=async()=>{r&&(await W1.write(r),o("URL Copied!",{variant:"success"}))};return D.jsx(EO,{disableAutoFocus:!0,...t,children:D.jsxs(Ks,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[D.jsx(Ro,{sx:{position:"absolute",top:28,right:28},onClick:p=>{var g;return(g=e.onClose)==null?void 0:g.call(e,p,"backdropClick")},children:D.jsx(XR,{})}),D.jsxs(Wn,{gap:1,children:[D.jsx(Ar,{variant:"subtitle1",children:"Share Link"}),D.jsx(Qc,{children:D.jsx(RO,{defaultValues:{expiredString:Xy[0],role:Object.values(p9)[0]},onSuccess:l,children:D.jsxs(Wn,{gap:2,children:[D.jsx(s9,{label:"Role",name:"role",options:Object.values(p9).map(p=>({id:p,label:p})),size:"small",sx:{width:1},variant:"filled"}),D.jsx(s9,{label:"Expired Date",name:"expiredString",options:Xy.map(p=>({id:p,label:p})),size:"small",sx:{width:1},variant:"filled"}),D.jsx(xo,{type:"submit",variant:"contained",children:"Generate"})]})})}),!!r&&D.jsxs(Wn,{direction:"row",alignItems:"center",gap:2,children:[D.jsx(Ar,{variant:"body1",width:1,noWrap:!0,children:r}),D.jsx(Q0,{title:"Copy URL",children:D.jsx(Ro,{onClick:u,children:D.jsx(ZR,{})})})]})]})]})})}function OQe(){const[e,t]=L.useState(!1),n=()=>{t(r=>!r)};return D.jsxs(D.Fragment,{children:[D.jsx(Ro,{onClick:n,color:"inherit",children:D.jsx(Dde,{})}),D.jsx(vQe,{open:e,onClose:n})]})}var dz={},SQe=Bi;Object.defineProperty(dz,"__esModule",{value:!0});var fz=dz.default=void 0,EQe=SQe(aa()),wQe=D;fz=dz.default=(0,EQe.default)((0,wQe.jsx)("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"}),"DarkMode");var hz={},xQe=Bi;Object.defineProperty(hz,"__esModule",{value:!0});var pz=hz.default=void 0,TQe=xQe(aa()),kQe=D;pz=hz.default=(0,TQe.default)((0,kQe.jsx)("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"}),"LightMode");function Yx(){const e=Xle("(prefers-color-scheme: dark)"),t=Pr(bU);return L.useMemo(()=>{const r=e?"dark":"light";return t.theme==="default"?r:t.theme},[t.theme,e])}function AQe(){const e=Gu(),t=Yx(),n=()=>{e(Nce(t=="light"?"dark":"light"))};return D.jsx(Ro,{onClick:n,color:"inherit",children:t==="light"?D.jsx(pz,{}):D.jsx(fz,{})})}class kr{lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,n,r){[t,n]=Qv(this,t,n);let i=[];return this.decompose(0,t,i,2),r.length&&r.decompose(0,r.length,i,3),this.decompose(n,this.length,i,1),T4.from(i,this.length-(n-t)+r.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,n=this.length){[t,n]=Qv(this,t,n);let r=[];return this.decompose(t,n,r,0),T4.from(r,n-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let n=this.scanIdentical(t,1),r=this.length-this.scanIdentical(t,-1),i=new kE(this),a=new kE(t);for(let s=n,o=n;;){if(i.next(s),a.next(s),s=0,i.lineBreak!=a.lineBreak||i.done!=a.done||i.value!=a.value)return!1;if(o+=i.value.length,i.done||o>=r)return!0}}iter(t=1){return new kE(this,t)}iterRange(t,n=this.length){return new Xfe(this,t,n)}iterLines(t,n){let r;if(t==null)r=this.iter();else{n==null&&(n=this.lines+1);let i=this.line(t).from;r=this.iterRange(i,Math.max(i,n==this.lines+1?this.length:n<=1?0:this.line(n-1).to))}return new Kfe(r)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(t.length==0)throw new RangeError("A document must have at least one line");return t.length==1&&!t[0]?kr.empty:t.length<=32?new La(t):T4.from(La.split(t,[]))}}class La extends kr{constructor(t,n=_Qe(t)){super(),this.text=t,this.length=n}get lines(){return this.text.length}get children(){return null}lineInner(t,n,r,i){for(let a=0;;a++){let s=this.text[a],o=i+s.length;if((n?r:o)>=t)return new CQe(i,o,r,s);i=o+1,r++}}decompose(t,n,r,i){let a=t<=0&&n>=this.length?this:new La(EJ(this.text,t,n),Math.min(n,this.length)-Math.max(0,t));if(i&1){let s=r.pop(),o=k4(a.text,s.text.slice(),0,a.length);if(o.length<=32)r.push(new La(o,s.length+a.length));else{let l=o.length>>1;r.push(new La(o.slice(0,l)),new La(o.slice(l)))}}else r.push(a)}replace(t,n,r){if(!(r instanceof La))return super.replace(t,n,r);[t,n]=Qv(this,t,n);let i=k4(this.text,k4(r.text,EJ(this.text,0,t)),n),a=this.length+r.length-(n-t);return i.length<=32?new La(i,a):T4.from(La.split(i,[]),a)}sliceString(t,n=this.length,r=` +`){[t,n]=Qv(this,t,n);let i="";for(let a=0,s=0;a<=n&&st&&s&&(i+=r),ta&&(i+=o.slice(Math.max(0,t-a),n-a)),a=l+1}return i}flatten(t){for(let n of this.text)t.push(n)}scanIdentical(){return 0}static split(t,n){let r=[],i=-1;for(let a of t)r.push(a),i+=a.length+1,r.length==32&&(n.push(new La(r,i)),r=[],i=-1);return i>-1&&n.push(new La(r,i)),n}}let T4=class oy extends kr{constructor(t,n){super(),this.children=t,this.length=n,this.lines=0;for(let r of t)this.lines+=r.lines}lineInner(t,n,r,i){for(let a=0;;a++){let s=this.children[a],o=i+s.length,l=r+s.lines-1;if((n?l:o)>=t)return s.lineInner(t,n,r,i);i=o+1,r=l+1}}decompose(t,n,r,i){for(let a=0,s=0;s<=n&&a=s){let u=i&((s<=t?1:0)|(l>=n?2:0));s>=t&&l<=n&&!u?r.push(o):o.decompose(t-s,n-s,r,u)}s=l+1}}replace(t,n,r){if([t,n]=Qv(this,t,n),r.lines=a&&n<=o){let l=s.replace(t-a,n-a,r),u=this.lines-s.lines+l.lines;if(l.lines>4&&l.lines>u>>6){let d=this.children.slice();return d[i]=l,new oy(d,this.length-(n-t)+r.length)}return super.replace(a,o,l)}a=o+1}return super.replace(t,n,r)}sliceString(t,n=this.length,r=` +`){[t,n]=Qv(this,t,n);let i="";for(let a=0,s=0;at&&a&&(i+=r),ts&&(i+=o.sliceString(t-s,n-s,r)),s=l+1}return i}flatten(t){for(let n of this.children)n.flatten(t)}scanIdentical(t,n){if(!(t instanceof oy))return 0;let r=0,[i,a,s,o]=n>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;i+=n,a+=n){if(i==s||a==o)return r;let l=this.children[i],u=t.children[a];if(l!=u)return r+l.scanIdentical(u,n);r+=l.length+1}}static from(t,n=t.reduce((r,i)=>r+i.length+1,-1)){let r=0;for(let g of t)r+=g.lines;if(r<32){let g=[];for(let b of t)b.flatten(g);return new La(g,n)}let i=Math.max(32,r>>5),a=i<<1,s=i>>1,o=[],l=0,u=-1,d=[];function f(g){let b;if(g.lines>a&&g instanceof oy)for(let S of g.children)f(S);else g.lines>s&&(l>s||!l)?(p(),o.push(g)):g instanceof La&&l&&(b=d[d.length-1])instanceof La&&g.lines+b.lines<=32?(l+=g.lines,u+=g.length+1,d[d.length-1]=new La(b.text.concat(g.text),b.length+1+g.length)):(l+g.lines>i&&p(),l+=g.lines,u+=g.length+1,d.push(g))}function p(){l!=0&&(o.push(d.length==1?d[0]:oy.from(d,u)),u=-1,l=d.length=0)}for(let g of t)f(g);return p(),o.length==1?o[0]:new oy(o,n)}};kr.empty=new La([""],0);function _Qe(e){let t=-1;for(let n of e)t+=n.length+1;return t}function k4(e,t,n=0,r=1e9){for(let i=0,a=0,s=!0;a=n&&(l>r&&(o=o.slice(0,r-i)),i0?1:(t instanceof La?t.text.length:t.children.length)<<1]}nextInner(t,n){for(this.done=this.lineBreak=!1;;){let r=this.nodes.length-1,i=this.nodes[r],a=this.offsets[r],s=a>>1,o=i instanceof La?i.text.length:i.children.length;if(s==(n>0?o:0)){if(r==0)return this.done=!0,this.value="",this;n>0&&this.offsets[r-1]++,this.nodes.pop(),this.offsets.pop()}else if((a&1)==(n>0?0:1)){if(this.offsets[r]+=n,t==0)return this.lineBreak=!0,this.value=` +`,this;t--}else if(i instanceof La){let l=i.text[s+(n<0?-1:0)];if(this.offsets[r]+=n,l.length>Math.max(0,t))return this.value=t==0?l:n>0?l.slice(t):l.slice(0,l.length-t),this;t-=l.length}else{let l=i.children[s+(n<0?-1:0)];t>l.length?(t-=l.length,this.offsets[r]+=n):(n<0&&this.offsets[r]--,this.nodes.push(l),this.offsets.push(n>0?1:(l instanceof La?l.text.length:l.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class Xfe{constructor(t,n,r){this.value="",this.done=!1,this.cursor=new kE(t,n>r?-1:1),this.pos=n>r?t.length:0,this.from=Math.min(n,r),this.to=Math.max(n,r)}nextInner(t,n){if(n<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,n<0?this.pos-this.to:this.from-this.pos);let r=n<0?this.pos-this.from:this.to-this.pos;t>r&&(t=r),r-=t;let{value:i}=this.cursor.next(t);return this.pos+=(i.length+t)*n,this.value=i.length<=r?i:n<0?i.slice(i.length-r):i.slice(0,r),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class Kfe{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:n,lineBreak:r,value:i}=this.inner.next(t);return n&&this.afterBreak?(this.value="",this.afterBreak=!1):n?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(kr.prototype[Symbol.iterator]=function(){return this.iter()},kE.prototype[Symbol.iterator]=Xfe.prototype[Symbol.iterator]=Kfe.prototype[Symbol.iterator]=function(){return this});let CQe=class{constructor(t,n,r,i){this.from=t,this.to=n,this.number=r,this.text=i}get length(){return this.to-this.from}};function Qv(e,t,n){return t=Math.max(0,Math.min(e.length,t)),[t,Math.max(t,Math.min(e.length,n))]}let tv="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=1;ee)return tv[t-1]<=e;return!1}function wJ(e){return e>=127462&&e<=127487}const xJ=8205;function To(e,t,n=!0,r=!0){return(n?Jfe:IQe)(e,t,r)}function Jfe(e,t,n){if(t==e.length)return t;t&&ehe(e.charCodeAt(t))&&the(e.charCodeAt(t-1))&&t--;let r=Ws(e,t);for(t+=vc(r);t=0&&wJ(Ws(e,s));)a++,s-=2;if(a%2==0)break;t+=2}else break}return t}function IQe(e,t,n){for(;t>0;){let r=Jfe(e,t-2,n);if(r=56320&&e<57344}function the(e){return e>=55296&&e<56320}function Ws(e,t){let n=e.charCodeAt(t);if(!the(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return ehe(r)?(n-55296<<10)+(r-56320)+65536:n}function mz(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}function vc(e){return e<65536?1:2}const m9=/\r\n?|\n/;var Gs=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(Gs||(Gs={}));class jf{constructor(t){this.sections=t}get length(){let t=0;for(let n=0;nt)return a+(t-i);a+=o}else{if(r!=Gs.Simple&&u>=t&&(r==Gs.TrackDel&&it||r==Gs.TrackBefore&&it))return null;if(u>t||u==t&&n<0&&!o)return t==i||n<0?a:a+l;a+=l}i=u}if(t>i)throw new RangeError(`Position ${t} is out of range for changeset of length ${i}`);return a}touchesRange(t,n=t){for(let r=0,i=0;r=0&&i<=n&&o>=t)return in?"cover":!0;i=o}return!1}toString(){let t="";for(let n=0;n=0?":"+i:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(n=>typeof n!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new jf(t)}static create(t){return new jf(t)}}class ds extends jf{constructor(t,n){super(t),this.inserted=n}apply(t){if(this.length!=t.length)throw new RangeError("Applying change set to a document with the wrong length");return g9(this,(n,r,i,a,s)=>t=t.replace(i,i+(r-n),s),!1),t}mapDesc(t,n=!1){return b9(this,t,n,!0)}invert(t){let n=this.sections.slice(),r=[];for(let i=0,a=0;i=0){n[i]=o,n[i+1]=s;let l=i>>1;for(;r.length0&&q0(r,n,a.text),a.forward(d),o+=d}let u=t[s++];for(;o>1].toJSON()))}return t}static of(t,n,r){let i=[],a=[],s=0,o=null;function l(d=!1){if(!d&&!i.length)return;sp||f<0||p>n)throw new RangeError(`Invalid change range ${f} to ${p} (in doc of length ${n})`);let b=g?typeof g=="string"?kr.of(g.split(r||m9)):g:kr.empty,S=b.length;if(f==p&&S==0)return;fs&&So(i,f-s,-1),So(i,p-f,S),q0(a,i,b),s=p}}return u(t),l(!o),o}static empty(t){return new ds(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");let n=[],r=[];for(let i=0;io&&typeof s!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(a.length==1)n.push(a[0],0);else{for(;r.length=0&&n<=0&&n==e[i+1]?e[i]+=t:t==0&&e[i]==0?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}function q0(e,t,n){if(n.length==0)return;let r=t.length-2>>1;if(r>1])),!(n||s==e.sections.length||e.sections[s+1]<0);)o=e.sections[s++],l=e.sections[s++];t(i,u,a,d,f),i=u,a=d}}}function b9(e,t,n,r=!1){let i=[],a=r?[]:null,s=new Pw(e),o=new Pw(t);for(let l=-1;;)if(s.ins==-1&&o.ins==-1){let u=Math.min(s.len,o.len);So(i,u,-1),s.forward(u),o.forward(u)}else if(o.ins>=0&&(s.ins<0||l==s.i||s.off==0&&(o.len=0&&l=0){let u=0,d=s.len;for(;d;)if(o.ins==-1){let f=Math.min(d,o.len);u+=f,d-=f,o.forward(f)}else if(o.ins==0&&o.lenl||s.ins>=0&&s.len>l)&&(o||r.length>u),a.forward2(l),s.forward(l)}}}}class Pw{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i>1;return n>=t.length?kr.empty:t[n]}textBit(t){let{inserted:n}=this.set,r=this.i-2>>1;return r>=n.length&&!t?kr.empty:n[r].slice(this.off,t==null?void 0:this.off+t)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t)}forward2(t){this.ins==-1?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}class Yg{constructor(t,n,r){this.from=t,this.to=n,this.flags=r}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let t=this.flags&7;return t==7?null:t}get goalColumn(){let t=this.flags>>6;return t==16777215?void 0:t}map(t,n=-1){let r,i;return this.empty?r=i=t.mapPos(this.from,n):(r=t.mapPos(this.from,1),i=t.mapPos(this.to,-1)),r==this.from&&i==this.to?this:new Yg(r,i,this.flags)}extend(t,n=t){if(t<=this.anchor&&n>=this.anchor)return mt.range(t,n);let r=Math.abs(t-this.anchor)>Math.abs(n-this.anchor)?t:n;return mt.range(this.anchor,r)}eq(t,n=!1){return this.anchor==t.anchor&&this.head==t.head&&(!n||!this.empty||this.assoc==t.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return mt.range(t.anchor,t.head)}static create(t,n,r){return new Yg(t,n,r)}}class mt{constructor(t,n){this.ranges=t,this.mainIndex=n}map(t,n=-1){return t.empty?this:mt.create(this.ranges.map(r=>r.map(t,n)),this.mainIndex)}eq(t,n=!1){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let r=0;rt.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||typeof t.main!="number"||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new mt(t.ranges.map(n=>Yg.fromJSON(n)),t.main)}static single(t,n=t){return new mt([mt.range(t,n)],0)}static create(t,n=0){if(t.length==0)throw new RangeError("A selection needs at least one range");for(let r=0,i=0;it?8:0)|a)}static normalized(t,n=0){let r=t[n];t.sort((i,a)=>i.from-a.from),n=t.indexOf(r);for(let i=1;ia.head?mt.range(l,o):mt.range(o,l))}}return new mt(t,n)}}function rhe(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let gz=0;class pn{constructor(t,n,r,i,a){this.combine=t,this.compareInput=n,this.compare=r,this.isStatic=i,this.id=gz++,this.default=t([]),this.extensions=typeof a=="function"?a(this):a}get reader(){return this}static define(t={}){return new pn(t.combine||(n=>n),t.compareInput||((n,r)=>n===r),t.compare||(t.combine?(n,r)=>n===r:bz),!!t.static,t.enables)}of(t){return new A4([],this,0,t)}compute(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new A4(t,this,1,n)}computeN(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new A4(t,this,2,n)}from(t,n){return n||(n=r=>r),this.compute([t],r=>n(r.field(t)))}}function bz(e,t){return e==t||e.length==t.length&&e.every((n,r)=>n===t[r])}class A4{constructor(t,n,r,i){this.dependencies=t,this.facet=n,this.type=r,this.value=i,this.id=gz++}dynamicSlot(t){var n;let r=this.value,i=this.facet.compareInput,a=this.id,s=t[a]>>1,o=this.type==2,l=!1,u=!1,d=[];for(let f of this.dependencies)f=="doc"?l=!0:f=="selection"?u=!0:((n=t[f.id])!==null&&n!==void 0?n:1)&1||d.push(t[f.id]);return{create(f){return f.values[s]=r(f),1},update(f,p){if(l&&p.docChanged||u&&(p.docChanged||p.selection)||y9(f,d)){let g=r(f);if(o?!TJ(g,f.values[s],i):!i(g,f.values[s]))return f.values[s]=g,1}return 0},reconfigure:(f,p)=>{let g,b=p.config.address[a];if(b!=null){let S=dC(p,b);if(this.dependencies.every(E=>E instanceof pn?p.facet(E)===f.facet(E):E instanceof Ns?p.field(E,!1)==f.field(E,!1):!0)||(o?TJ(g=r(f),S,i):i(g=r(f),S)))return f.values[s]=S,0}else g=r(f);return f.values[s]=g,1}}}}function TJ(e,t,n){if(e.length!=t.length)return!1;for(let r=0;re[l.id]),i=n.map(l=>l.type),a=r.filter(l=>!(l&1)),s=e[t.id]>>1;function o(l){let u=[];for(let d=0;dr===i),t);return t.provide&&(n.provides=t.provide(n)),n}create(t){let n=t.facet(kJ).find(r=>r.field==this);return((n==null?void 0:n.create)||this.createF)(t)}slot(t){let n=t[this.id]>>1;return{create:r=>(r.values[n]=this.create(r),1),update:(r,i)=>{let a=r.values[n],s=this.updateF(a,i);return this.compareF(a,s)?0:(r.values[n]=s,1)},reconfigure:(r,i)=>i.config.address[this.id]!=null?(r.values[n]=i.field(this),0):(r.values[n]=this.create(r),1)}}init(t){return[this,kJ.of({field:this,create:t})]}get extension(){return this}}const Mg={lowest:4,low:3,default:2,high:1,highest:0};function O2(e){return t=>new ihe(t,e)}const Fp={highest:O2(Mg.highest),high:O2(Mg.high),default:O2(Mg.default),low:O2(Mg.low),lowest:O2(Mg.lowest)};class ihe{constructor(t,n){this.inner=t,this.prec=n}}class KR{of(t){return new v9(this,t)}reconfigure(t){return KR.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class v9{constructor(t,n){this.compartment=t,this.inner=n}}class cC{constructor(t,n,r,i,a,s){for(this.base=t,this.compartments=n,this.dynamicSlots=r,this.address=i,this.staticValues=a,this.facets=s,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(t,n,r){let i=[],a=Object.create(null),s=new Map;for(let p of DQe(t,n,s))p instanceof Ns?i.push(p):(a[p.facet.id]||(a[p.facet.id]=[])).push(p);let o=Object.create(null),l=[],u=[];for(let p of i)o[p.id]=u.length<<1,u.push(g=>p.slot(g));let d=r==null?void 0:r.config.facets;for(let p in a){let g=a[p],b=g[0].facet,S=d&&d[p]||[];if(g.every(E=>E.type==0))if(o[b.id]=l.length<<1|1,bz(S,g))l.push(r.facet(b));else{let E=b.combine(g.map(w=>w.value));l.push(r&&b.compare(E,r.facet(b))?r.facet(b):E)}else{for(let E of g)E.type==0?(o[E.id]=l.length<<1|1,l.push(E.value)):(o[E.id]=u.length<<1,u.push(w=>E.dynamicSlot(w)));o[b.id]=u.length<<1,u.push(E=>NQe(E,b,g))}}let f=u.map(p=>p(o));return new cC(t,s,f,o,l,a)}}function DQe(e,t,n){let r=[[],[],[],[],[]],i=new Map;function a(s,o){let l=i.get(s);if(l!=null){if(l<=o)return;let u=r[l].indexOf(s);u>-1&&r[l].splice(u,1),s instanceof v9&&n.delete(s.compartment)}if(i.set(s,o),Array.isArray(s))for(let u of s)a(u,o);else if(s instanceof v9){if(n.has(s.compartment))throw new RangeError("Duplicate use of compartment in extensions");let u=t.get(s.compartment)||s.inner;n.set(s.compartment,u),a(u,o)}else if(s instanceof ihe)a(s.inner,s.prec);else if(s instanceof Ns)r[o].push(s),s.provides&&a(s.provides,o);else if(s instanceof A4)r[o].push(s),s.facet.extensions&&a(s.facet.extensions,Mg.default);else{let u=s.extension;if(!u)throw new Error(`Unrecognized extension value in extension set (${s}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);a(u,o)}}return a(e,Mg.default),r.reduce((s,o)=>s.concat(o))}function AE(e,t){if(t&1)return 2;let n=t>>1,r=e.status[n];if(r==4)throw new Error("Cyclic dependency between fields and/or facets");if(r&2)return r;e.status[n]=4;let i=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|i}function dC(e,t){return t&1?e.config.staticValues[t>>1]:e.values[t>>1]}const ahe=pn.define(),O9=pn.define({combine:e=>e.some(t=>t),static:!0}),she=pn.define({combine:e=>e.length?e[0]:void 0,static:!0}),ohe=pn.define(),lhe=pn.define(),uhe=pn.define(),che=pn.define({combine:e=>e.length?e[0]:!1});class jd{constructor(t,n){this.type=t,this.value=n}static define(){return new PQe}}class PQe{of(t){return new jd(this,t)}}class MQe{constructor(t){this.map=t}of(t){return new sr(this,t)}}class sr{constructor(t,n){this.type=t,this.value=n}map(t){let n=this.type.map(this.value,t);return n===void 0?void 0:n==this.value?this:new sr(this.type,n)}is(t){return this.type==t}static define(t={}){return new MQe(t.map||(n=>n))}static mapEffects(t,n){if(!t.length)return t;let r=[];for(let i of t){let a=i.map(n);a&&r.push(a)}return r}}sr.reconfigure=sr.define();sr.appendConfig=sr.define();let gs=class q2{constructor(t,n,r,i,a,s){this.startState=t,this.changes=n,this.selection=r,this.effects=i,this.annotations=a,this.scrollIntoView=s,this._doc=null,this._state=null,r&&rhe(r,n.newLength),a.some(o=>o.type==q2.time)||(this.annotations=a.concat(q2.time.of(Date.now())))}static create(t,n,r,i,a,s){return new q2(t,n,r,i,a,s)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(t){for(let n of this.annotations)if(n.type==t)return n.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let n=this.annotation(q2.userEvent);return!!(n&&(n==t||n.length>t.length&&n.slice(0,t.length)==t&&n[t.length]=="."))}};gs.time=jd.define();gs.userEvent=jd.define();gs.addToHistory=jd.define();gs.remote=jd.define();function LQe(e,t){let n=[];for(let r=0,i=0;;){let a,s;if(r=e[r]))a=e[r++],s=e[r++];else if(i=0;i--){let a=r[i](e);a instanceof gs?e=a:Array.isArray(a)&&a.length==1&&a[0]instanceof gs?e=a[0]:e=fhe(t,nv(a),!1)}return e}function FQe(e){let t=e.startState,n=t.facet(uhe),r=e;for(let i=n.length-1;i>=0;i--){let a=n[i](e);a&&Object.keys(a).length&&(r=dhe(r,S9(t,a,e.changes.newLength),!0))}return r==e?e:gs.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}const BQe=[];function nv(e){return e==null?BQe:Array.isArray(e)?e:[e]}var ra=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(ra||(ra={}));const UQe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let E9;try{E9=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function zQe(e){if(E9)return E9.test(e);for(let t=0;t"€"&&(n.toUpperCase()!=n.toLowerCase()||UQe.test(n)))return!0}return!1}function HQe(e){return t=>{if(!/\S/.test(t))return ra.Space;if(zQe(t))return ra.Word;for(let n=0;n-1)return ra.Word;return ra.Other}}class Fr{constructor(t,n,r,i,a,s){this.config=t,this.doc=n,this.selection=r,this.values=i,this.status=t.statusTemplate.slice(),this.computeSlot=a,s&&(s._state=this);for(let o=0;oi.set(u,l)),n=null),i.set(o.value.compartment,o.value.extension)):o.is(sr.reconfigure)?(n=null,r=o.value):o.is(sr.appendConfig)&&(n=null,r=nv(r).concat(o.value));let a;n?a=t.startState.values.slice():(n=cC.resolve(r,i,this),a=new Fr(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(l,u)=>u.reconfigure(l,this),null).values);let s=t.startState.facet(O9)?t.newSelection:t.newSelection.asSingle();new Fr(n,t.newDoc,s,a,(o,l)=>l.update(o,t),t)}replaceSelection(t){return typeof t=="string"&&(t=this.toText(t)),this.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:t},range:mt.cursor(n.from+t.length)}))}changeByRange(t){let n=this.selection,r=t(n.ranges[0]),i=this.changes(r.changes),a=[r.range],s=nv(r.effects);for(let o=1;os.spec.fromJSON(o,l)))}}return Fr.create({doc:t.doc,selection:mt.fromJSON(t.selection),extensions:n.extensions?i.concat([n.extensions]):i})}static create(t={}){let n=cC.resolve(t.extensions||[],new Map),r=t.doc instanceof kr?t.doc:kr.of((t.doc||"").split(n.staticFacet(Fr.lineSeparator)||m9)),i=t.selection?t.selection instanceof mt?t.selection:mt.single(t.selection.anchor,t.selection.head):mt.single(0);return rhe(i,r.length),n.staticFacet(O9)||(i=i.asSingle()),new Fr(n,r,i,n.dynamicSlots.map(()=>null),(a,s)=>s.create(a),null)}get tabSize(){return this.facet(Fr.tabSize)}get lineBreak(){return this.facet(Fr.lineSeparator)||` +`}get readOnly(){return this.facet(che)}phrase(t,...n){for(let r of this.facet(Fr.phrases))if(Object.prototype.hasOwnProperty.call(r,t)){t=r[t];break}return n.length&&(t=t.replace(/\$(\$|\d*)/g,(r,i)=>{if(i=="$")return"$";let a=+(i||1);return!a||a>n.length?r:n[a-1]})),t}languageDataAt(t,n,r=-1){let i=[];for(let a of this.facet(ahe))for(let s of a(this,n,r))Object.prototype.hasOwnProperty.call(s,t)&&i.push(s[t]);return i}charCategorizer(t){return HQe(this.languageDataAt("wordChars",t).join(""))}wordAt(t){let{text:n,from:r,length:i}=this.doc.lineAt(t),a=this.charCategorizer(t),s=t-r,o=t-r;for(;s>0;){let l=To(n,s,!1);if(a(n.slice(l,s))!=ra.Word)break;s=l}for(;oe.length?e[0]:4});Fr.lineSeparator=she;Fr.readOnly=che;Fr.phrases=pn.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every(i=>e[i]==t[i])}});Fr.languageData=ahe;Fr.changeFilter=ohe;Fr.transactionFilter=lhe;Fr.transactionExtender=uhe;KR.reconfigure=sr.define();function rh(e,t,n={}){let r={};for(let i of e)for(let a of Object.keys(i)){let s=i[a],o=r[a];if(o===void 0)r[a]=s;else if(!(o===s||s===void 0))if(Object.hasOwnProperty.call(n,a))r[a]=n[a](o,s);else throw new Error("Config merge conflict for field "+a)}for(let i in t)r[i]===void 0&&(r[i]=t[i]);return r}class C1{eq(t){return this==t}range(t,n=t){return w9.create(t,n,this)}}C1.prototype.startSide=C1.prototype.endSide=0;C1.prototype.point=!1;C1.prototype.mapMode=Gs.TrackDel;let w9=class hhe{constructor(t,n,r){this.from=t,this.to=n,this.value=r}static create(t,n,r){return new hhe(t,n,r)}};function x9(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class yz{constructor(t,n,r,i){this.from=t,this.to=n,this.value=r,this.maxPoint=i}get length(){return this.to[this.to.length-1]}findIndex(t,n,r,i=0){let a=r?this.to:this.from;for(let s=i,o=a.length;;){if(s==o)return s;let l=s+o>>1,u=a[l]-t||(r?this.value[l].endSide:this.value[l].startSide)-n;if(l==s)return u>=0?s:o;u>=0?o=l:s=l+1}}between(t,n,r,i){for(let a=this.findIndex(n,-1e9,!0),s=this.findIndex(r,1e9,!1,a);ag||p==g&&u.startSide>0&&u.endSide<=0)continue;(g-p||u.endSide-u.startSide)<0||(s<0&&(s=p),u.point&&(o=Math.max(o,g-p)),r.push(u),i.push(p-s),a.push(g-s))}return{mapped:r.length?new yz(i,a,r,o):null,pos:s}}}class Dr{constructor(t,n,r,i){this.chunkPos=t,this.chunk=n,this.nextLayer=r,this.maxPoint=i}static create(t,n,r,i){return new Dr(t,n,r,i)}get length(){let t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let t=this.nextLayer.size;for(let n of this.chunk)t+=n.value.length;return t}chunkEnd(t){return this.chunkPos[t]+this.chunk[t].length}update(t){let{add:n=[],sort:r=!1,filterFrom:i=0,filterTo:a=this.length}=t,s=t.filter;if(n.length==0&&!s)return this;if(r&&(n=n.slice().sort(x9)),this.isEmpty)return n.length?Dr.of(n):this;let o=new phe(this,null,-1).goto(0),l=0,u=[],d=new Om;for(;o.value||l=0){let f=n[l++];d.addInner(f.from,f.to,f.value)||u.push(f)}else o.rangeIndex==1&&o.chunkIndexthis.chunkEnd(o.chunkIndex)||ao.to||a=a&&t<=a+s.length&&s.between(a,t-a,n-a,r)===!1)return}this.nextLayer.between(t,n,r)}}iter(t=0){return Mw.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,n=0){return Mw.from(t).goto(n)}static compare(t,n,r,i,a=-1){let s=t.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=a),o=n.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=a),l=AJ(s,o,r),u=new S2(s,l,a),d=new S2(o,l,a);r.iterGaps((f,p,g)=>_J(u,f,d,p,g,i)),r.empty&&r.length==0&&_J(u,0,d,0,0,i)}static eq(t,n,r=0,i){i==null&&(i=999999999);let a=t.filter(d=>!d.isEmpty&&n.indexOf(d)<0),s=n.filter(d=>!d.isEmpty&&t.indexOf(d)<0);if(a.length!=s.length)return!1;if(!a.length)return!0;let o=AJ(a,s),l=new S2(a,o,0).goto(r),u=new S2(s,o,0).goto(r);for(;;){if(l.to!=u.to||!T9(l.active,u.active)||l.point&&(!u.point||!l.point.eq(u.point)))return!1;if(l.to>i)return!0;l.next(),u.next()}}static spans(t,n,r,i,a=-1){let s=new S2(t,null,a).goto(n),o=n,l=s.openStart;for(;;){let u=Math.min(s.to,r);if(s.point){let d=s.activeForPoint(s.to),f=s.pointFromo&&(i.span(o,u,s.active,l),l=s.openEnd(u));if(s.to>r)return l+(s.point&&s.to>r?1:0);o=s.to,s.next()}}static of(t,n=!1){let r=new Om;for(let i of t instanceof w9?[t]:n?jQe(t):t)r.add(i.from,i.to,i.value);return r.finish()}static join(t){if(!t.length)return Dr.empty;let n=t[t.length-1];for(let r=t.length-2;r>=0;r--)for(let i=t[r];i!=Dr.empty;i=i.nextLayer)n=new Dr(i.chunkPos,i.chunk,n,Math.max(i.maxPoint,n.maxPoint));return n}}Dr.empty=new Dr([],[],null,-1);function jQe(e){if(e.length>1)for(let t=e[0],n=1;n0)return e.slice().sort(x9);t=r}return e}Dr.empty.nextLayer=Dr.empty;class Om{finishChunk(t){this.chunks.push(new yz(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,t&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(t,n,r){this.addInner(t,n,r)||(this.nextLayer||(this.nextLayer=new Om)).add(t,n,r)}addInner(t,n,r){let i=t-this.lastTo||r.startSide-this.last.endSide;if(i<=0&&(t-this.lastFrom||r.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return i<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=t),this.from.push(t-this.chunkStart),this.to.push(n-this.chunkStart),this.last=r,this.lastFrom=t,this.lastTo=n,this.value.push(r),r.point&&(this.maxPoint=Math.max(this.maxPoint,n-t)),!0)}addChunk(t,n){if((t-this.lastTo||n.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,n.maxPoint),this.chunks.push(n),this.chunkPos.push(t);let r=n.value.length-1;return this.last=n.value[r],this.lastFrom=n.from[r]+t,this.lastTo=n.to[r]+t,!0}finish(){return this.finishInner(Dr.empty)}finishInner(t){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return t;let n=Dr.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,n}}function AJ(e,t,n){let r=new Map;for(let a of e)for(let s=0;s=this.minPoint)break}}setRangeIndex(t){if(t==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=r&&i.push(new phe(s,n,r,a));return i.length==1?i[0]:new Mw(i)}get startSide(){return this.value?this.value.startSide:0}goto(t,n=-1e9){for(let r of this.heap)r.goto(t,n);for(let r=this.heap.length>>1;r>=0;r--)ND(this.heap,r);return this.next(),this}forward(t,n){for(let r of this.heap)r.forward(t,n);for(let r=this.heap.length>>1;r>=0;r--)ND(this.heap,r);(this.to-t||this.value.endSide-n)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let t=this.heap[0];this.from=t.from,this.to=t.to,this.value=t.value,this.rank=t.rank,t.value&&t.next(),ND(this.heap,0)}}}function ND(e,t){for(let n=e[t];;){let r=(t<<1)+1;if(r>=e.length)break;let i=e[r];if(r+1=0&&(i=e[r+1],r++),n.compare(i)<0)break;e[r]=n,e[t]=i,t=r}}class S2{constructor(t,n,r){this.minPoint=r,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Mw.from(t,n,r)}goto(t,n=-1e9){return this.cursor.goto(t,n),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=t,this.endSide=n,this.openStart=-1,this.next(),this}forward(t,n){for(;this.minActive>-1&&(this.activeTo[this.minActive]-t||this.active[this.minActive].endSide-n)<0;)this.removeActive(this.minActive);this.cursor.forward(t,n)}removeActive(t){VA(this.active,t),VA(this.activeTo,t),VA(this.activeRank,t),this.minActive=CJ(this.active,this.activeTo)}addActive(t){let n=0,{value:r,to:i,rank:a}=this.cursor;for(;n0;)n++;qA(this.active,n,r),qA(this.activeTo,n,i),qA(this.activeRank,n,a),t&&qA(t,n,this.cursor.from),this.minActive=CJ(this.active,this.activeTo)}next(){let t=this.to,n=this.point;this.point=null;let r=this.openStart<0?[]:null;for(;;){let i=this.minActive;if(i>-1&&(this.activeTo[i]-this.cursor.from||this.active[i].endSide-this.cursor.startSide)<0){if(this.activeTo[i]>t){this.to=this.activeTo[i],this.endSide=this.active[i].endSide;break}this.removeActive(i),r&&VA(r,i)}else if(this.cursor.value)if(this.cursor.from>t){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let a=this.cursor.value;if(!a.point)this.addActive(r),this.cursor.next();else if(n&&this.cursor.to==this.to&&this.cursor.from=0&&r[i]=0&&!(this.activeRank[r]t||this.activeTo[r]==t&&this.active[r].endSide>=this.point.endSide)&&n.push(this.active[r]);return n.reverse()}openEnd(t){let n=0;for(let r=this.activeTo.length-1;r>=0&&this.activeTo[r]>t;r--)n++;return n}}function _J(e,t,n,r,i,a){e.goto(t),n.goto(r);let s=r+i,o=r,l=r-t;for(;;){let u=e.to+l-n.to||e.endSide-n.endSide,d=u<0?e.to+l:n.to,f=Math.min(d,s);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&T9(e.activeForPoint(e.to),n.activeForPoint(n.to))||a.comparePoint(o,f,e.point,n.point):f>o&&!T9(e.active,n.active)&&a.compareRange(o,f,e.active,n.active),d>s)break;o=d,u<=0&&e.next(),u>=0&&n.next()}}function T9(e,t){if(e.length!=t.length)return!1;for(let n=0;n=t;r--)e[r+1]=e[r];e[t]=n}function CJ(e,t){let n=-1,r=1e9;for(let i=0;i=t)return i;if(i==e.length)break;a+=e.charCodeAt(i)==9?n-a%n:1,i=To(e,i)}return r===!0?-1:e.length}const A9="ͼ",RJ=typeof Symbol>"u"?"__"+A9:Symbol.for(A9),_9=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),IJ=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class Sm{constructor(t,n){this.rules=[];let{finish:r}=n||{};function i(s){return/^@/.test(s)?[s]:s.split(/,\s*/)}function a(s,o,l,u){let d=[],f=/^@(\w+)\b/.exec(s[0]),p=f&&f[1]=="keyframes";if(f&&o==null)return l.push(s[0]+";");for(let g in o){let b=o[g];if(/&/.test(g))a(g.split(/,\s*/).map(S=>s.map(E=>S.replace(/&/,E))).reduce((S,E)=>S.concat(E)),b,l);else if(b&&typeof b=="object"){if(!f)throw new RangeError("The value of a property ("+g+") should be a primitive value.");a(i(g),b,d,p)}else b!=null&&d.push(g.replace(/_.*/,"").replace(/[A-Z]/g,S=>"-"+S.toLowerCase())+": "+b+";")}(d.length||p)&&l.push((r&&!f&&!u?s.map(r):s).join(", ")+" {"+d.join(" ")+"}")}for(let s in t)a(i(s),t[s],this.rules)}getRules(){return this.rules.join(` +`)}static newName(){let t=IJ[RJ]||1;return IJ[RJ]=t+1,A9+t.toString(36)}static mount(t,n,r){let i=t[_9],a=r&&r.nonce;i?a&&i.setNonce(a):i=new WQe(t,a),i.mount(Array.isArray(n)?n:[n],t)}}let NJ=new Map;class WQe{constructor(t,n){let r=t.ownerDocument||t,i=r.defaultView;if(!t.head&&t.adoptedStyleSheets&&i.CSSStyleSheet){let a=NJ.get(r);if(a)return t[_9]=a;this.sheet=new i.CSSStyleSheet,NJ.set(r,this)}else this.styleTag=r.createElement("style"),n&&this.styleTag.setAttribute("nonce",n);this.modules=[],t[_9]=this}mount(t,n){let r=this.sheet,i=0,a=0;for(let s=0;s-1&&(this.modules.splice(l,1),a--,l=-1),l==-1){if(this.modules.splice(a++,0,o),r)for(let u=0;u",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},QQe=typeof navigator<"u"&&/Mac/.test(navigator.platform),GQe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Qs=0;Qs<10;Qs++)Em[48+Qs]=Em[96+Qs]=String(Qs);for(var Qs=1;Qs<=24;Qs++)Em[Qs+111]="F"+Qs;for(var Qs=65;Qs<=90;Qs++)Em[Qs]=String.fromCharCode(Qs+32),Lw[Qs]=String.fromCharCode(Qs);for(var DD in Em)Lw.hasOwnProperty(DD)||(Lw[DD]=Em[DD]);function VQe(e){var t=QQe&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||GQe&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?Lw:Em)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}function fC(e){let t;return e.nodeType==11?t=e.getSelection?e:e.ownerDocument:t=e,t.getSelection()}function C9(e,t){return t?e==t||e.contains(t.nodeType!=1?t.parentNode:t):!1}function qQe(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function _4(e,t){if(!t.anchorNode)return!1;try{return C9(e,t.anchorNode)}catch{return!1}}function $w(e){return e.nodeType==3?R1(e,0,e.nodeValue.length).getClientRects():e.nodeType==1?e.getClientRects():[]}function _E(e,t,n,r){return n?DJ(e,t,n,r,-1)||DJ(e,t,n,r,1):!1}function Fw(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t}function DJ(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:Sp(e))){if(e.nodeName=="DIV")return!1;let a=e.parentNode;if(!a||a.nodeType!=1)return!1;t=Fw(e)+(i<0?0:1),e=a}else if(e.nodeType==1){if(e=e.childNodes[t+(i<0?-1:0)],e.nodeType==1&&e.contentEditable=="false")return!1;t=i<0?Sp(e):0}else return!1}}function Sp(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function vz(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function YQe(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function mhe(e,t){let n=t.width/e.offsetWidth,r=t.height/e.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(t.width-e.offsetWidth)<1)&&(n=1),(r>.995&&r<1.005||!isFinite(r)||Math.abs(t.height-e.offsetHeight)<1)&&(r=1),{scaleX:n,scaleY:r}}function ZQe(e,t,n,r,i,a,s,o){let l=e.ownerDocument,u=l.defaultView||window;for(let d=e,f=!1;d&&!f;)if(d.nodeType==1){let p,g=d==l.body,b=1,S=1;if(g)p=YQe(u);else{if(/^(fixed|sticky)$/.test(getComputedStyle(d).position)&&(f=!0),d.scrollHeight<=d.clientHeight&&d.scrollWidth<=d.clientWidth){d=d.assignedSlot||d.parentNode;continue}let x=d.getBoundingClientRect();({scaleX:b,scaleY:S}=mhe(d,x)),p={left:x.left,right:x.left+d.clientWidth*b,top:x.top,bottom:x.top+d.clientHeight*S}}let E=0,w=0;if(i=="nearest")t.top0&&t.bottom>p.bottom+w&&(w=t.bottom-p.bottom+w+s)):t.bottom>p.bottom&&(w=t.bottom-p.bottom+s,n<0&&t.top-w0&&t.right>p.right+E&&(E=t.right-p.right+E+a)):t.right>p.right&&(E=t.right-p.right+a,n<0&&t.leftn.clientHeight||n.scrollWidth>n.clientWidth)return n;n=n.assignedSlot||n.parentNode}else if(n.nodeType==11)n=n.host;else break;return null}class KQe{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(t){return this.anchorNode==t.anchorNode&&this.anchorOffset==t.anchorOffset&&this.focusNode==t.focusNode&&this.focusOffset==t.focusOffset}setRange(t){let{anchorNode:n,focusNode:r}=t;this.set(n,Math.min(t.anchorOffset,n?Sp(n):0),r,Math.min(t.focusOffset,r?Sp(r):0))}set(t,n,r,i){this.anchorNode=t,this.anchorOffset=n,this.focusNode=r,this.focusOffset=i}}let Xb=null;function ghe(e){if(e.setActive)return e.setActive();if(Xb)return e.focus(Xb);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(Xb==null?{get preventScroll(){return Xb={preventScroll:!0},!0}}:void 0),!Xb){Xb=!1;for(let n=0;nMath.max(1,e.scrollHeight-e.clientHeight-4)}class wo{constructor(t,n,r=!0){this.node=t,this.offset=n,this.precise=r}static before(t,n){return new wo(t.parentNode,Fw(t),n)}static after(t,n){return new wo(t.parentNode,Fw(t)+1,n)}}const Oz=[];class Wi{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(t){let n=this.posAtStart;for(let r of this.children){if(r==t)return n;n+=r.length+r.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(t){return this.posBefore(t)+t.length}sync(t,n){if(this.flags&2){let r=this.dom,i=null,a;for(let s of this.children){if(s.flags&7){if(!s.dom&&(a=i?i.nextSibling:r.firstChild)){let o=Wi.get(a);(!o||!o.parent&&o.canReuseDOM(s))&&s.reuseDOM(a)}s.sync(t,n),s.flags&=-8}if(a=i?i.nextSibling:r.firstChild,n&&!n.written&&n.node==r&&a!=s.dom&&(n.written=!0),s.dom.parentNode==r)for(;a&&a!=s.dom;)a=MJ(a);else r.insertBefore(s.dom,a);i=s.dom}for(a=i?i.nextSibling:r.firstChild,a&&n&&n.node==r&&(n.written=!0);a;)a=MJ(a)}else if(this.flags&1)for(let r of this.children)r.flags&7&&(r.sync(t,n),r.flags&=-8)}reuseDOM(t){}localPosFromDOM(t,n){let r;if(t==this.dom)r=this.dom.childNodes[n];else{let i=Sp(t)==0?0:n==0?-1:1;for(;;){let a=t.parentNode;if(a==this.dom)break;i==0&&a.firstChild!=a.lastChild&&(t==a.firstChild?i=-1:i=1),t=a}i<0?r=t:r=t.nextSibling}if(r==this.dom.firstChild)return 0;for(;r&&!Wi.get(r);)r=r.nextSibling;if(!r)return this.length;for(let i=0,a=0;;i++){let s=this.children[i];if(s.dom==r)return a;a+=s.length+s.breakAfter}}domBoundsAround(t,n,r=0){let i=-1,a=-1,s=-1,o=-1;for(let l=0,u=r,d=r;ln)return f.domBoundsAround(t,n,u);if(p>=t&&i==-1&&(i=l,a=u),u>n&&f.dom.parentNode==this.dom){s=l,o=d;break}d=p,u=p+f.breakAfter}return{from:a,to:o<0?r+this.length:o,startDOM:(i?this.children[i-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:s=0?this.children[s].dom:null}}markDirty(t=!1){this.flags|=2,this.markParentsDirty(t)}markParentsDirty(t){for(let n=this.parent;n;n=n.parent){if(t&&(n.flags|=2),n.flags&1)return;n.flags|=1,t=!1}}setParent(t){this.parent!=t&&(this.parent=t,this.flags&7&&this.markParentsDirty(!0))}setDOM(t){this.dom!=t&&(this.dom&&(this.dom.cmView=null),this.dom=t,t.cmView=this)}get rootView(){for(let t=this;;){let n=t.parent;if(!n)return t;t=n}}replaceChildren(t,n,r=Oz){this.markDirty();for(let i=t;ithis.pos||t==this.pos&&(n>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=t-this.pos,this;let r=this.children[--this.i];this.pos-=r.length+r.breakAfter}}}function Ohe(e,t,n,r,i,a,s,o,l){let{children:u}=e,d=u.length?u[t]:null,f=a.length?a[a.length-1]:null,p=f?f.breakAfter:s;if(!(t==r&&d&&!s&&!p&&a.length<2&&d.merge(n,i,a.length?f:null,n==0,o,l))){if(r0&&(!s&&a.length&&d.merge(n,d.length,a[0],!1,o,0)?d.breakAfter=a.shift().breakAfter:(n2);var yn={mac:FJ||/Mac/.test(_u.platform),windows:/Win/.test(_u.platform),linux:/Linux|X11/.test(_u.platform),ie:JR,ie_version:Ehe?R9.documentMode||6:N9?+N9[1]:I9?+I9[1]:0,gecko:LJ,gecko_version:LJ?+(/Firefox\/(\d+)/.exec(_u.userAgent)||[0,0])[1]:0,chrome:!!PD,chrome_version:PD?+PD[1]:0,ios:FJ,android:/Android\b/.test(_u.userAgent),webkit:$J,safari:whe,webkit_version:$J?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:R9.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const tGe=256;class Ep extends Wi{constructor(t){super(),this.text=t}get length(){return this.text.length}createDOM(t){this.setDOM(t||document.createTextNode(this.text))}sync(t,n){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(n&&n.node==this.dom&&(n.written=!0),this.dom.nodeValue=this.text)}reuseDOM(t){t.nodeType==3&&this.createDOM(t)}merge(t,n,r){return this.flags&8||r&&(!(r instanceof Ep)||this.length-(n-t)+r.length>tGe||r.flags&8)?!1:(this.text=this.text.slice(0,t)+(r?r.text:"")+this.text.slice(n),this.markDirty(),!0)}split(t){let n=new Ep(this.text.slice(t));return this.text=this.text.slice(0,t),this.markDirty(),n.flags|=this.flags&8,n}localPosFromDOM(t,n){return t==this.dom?n:n?this.text.length:0}domAtPos(t){return new wo(this.dom,t)}domBoundsAround(t,n,r){return{from:r,to:r+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(t,n){return nGe(this.dom,t,n)}}class wp extends Wi{constructor(t,n=[],r=0){super(),this.mark=t,this.children=n,this.length=r;for(let i of n)i.setParent(this)}setAttrs(t){if(bhe(t),this.mark.class&&(t.className=this.mark.class),this.mark.attrs)for(let n in this.mark.attrs)t.setAttribute(n,this.mark.attrs[n]);return t}canReuseDOM(t){return super.canReuseDOM(t)&&!((this.flags|t.flags)&8)}reuseDOM(t){t.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(t),this.flags|=6)}sync(t,n){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(t,n)}merge(t,n,r,i,a,s){return r&&(!(r instanceof wp&&r.mark.eq(this.mark))||t&&a<=0||nt&&n.push(r=t&&(i=a),r=l,a++}let s=this.length-t;return this.length=t,i>-1&&(this.children.length=i,this.markDirty()),new wp(this.mark,n,s)}domAtPos(t){return xhe(this,t)}coordsAt(t,n){return khe(this,t,n)}}function nGe(e,t,n){let r=e.nodeValue.length;t>r&&(t=r);let i=t,a=t,s=0;t==0&&n<0||t==r&&n>=0?yn.chrome||yn.gecko||(t?(i--,s=1):a=0)?0:o.length-1];return yn.safari&&!s&&l.width==0&&(l=Array.prototype.find.call(o,u=>u.width)||l),s?vz(l,s<0):l||null}class Y0 extends Wi{static create(t,n,r){return new Y0(t,n,r)}constructor(t,n,r){super(),this.widget=t,this.length=n,this.side=r,this.prevWidget=null}split(t){let n=Y0.create(this.widget,this.length-t,this.side);return this.length-=t,n}sync(t){(!this.dom||!this.widget.updateDOM(this.dom,t))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(t)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(t,n,r,i,a,s){return r&&(!(r instanceof Y0)||!this.widget.compare(r.widget)||t>0&&a<=0||n0)?wo.before(this.dom):wo.after(this.dom,t==this.length)}domBoundsAround(){return null}coordsAt(t,n){let r=this.widget.coordsAt(this.dom,t,n);if(r)return r;let i=this.dom.getClientRects(),a=null;if(!i.length)return null;let s=this.side?this.side<0:t>0;for(let o=s?i.length-1:0;a=i[o],!(t>0?o==0:o==i.length-1||a.top0?wo.before(this.dom):wo.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(t){return this.dom.getBoundingClientRect()}get overrideDOMText(){return kr.empty}get isHidden(){return!0}}Ep.prototype.children=Y0.prototype.children=Gv.prototype.children=Oz;function xhe(e,t){let n=e.dom,{children:r}=e,i=0;for(let a=0;ia&&t0;a--){let s=r[a-1];if(s.dom.parentNode==n)return s.domAtPos(s.length)}for(let a=i;a0&&t instanceof wp&&i.length&&(r=i[i.length-1])instanceof wp&&r.mark.eq(t.mark)?The(r,t.children[0],n-1):(i.push(t),t.setParent(e)),e.length+=t.length}function khe(e,t,n){let r=null,i=-1,a=null,s=-1;function o(u,d){for(let f=0,p=0;f=d&&(g.children.length?o(g,d-p):(!a||a.isHidden&&n>0)&&(b>d||p==b&&g.getSide()>0)?(a=g,s=d-p):(p-1?1:0)!=i.length-(n&&i.indexOf(n)>-1?1:0))return!1;for(let a of r)if(a!=n&&(i.indexOf(a)==-1||e[a]!==t[a]))return!1;return!0}function P9(e,t,n){let r=!1;if(t)for(let i in t)n&&i in n||(r=!0,i=="style"?e.style.cssText="":e.removeAttribute(i));if(n)for(let i in n)t&&t[i]==n[i]||(r=!0,i=="style"?e.style.cssText=n[i]:e.setAttribute(i,n[i]));return r}function iGe(e){let t=Object.create(null);for(let n=0;n0&&this.children[r-1].length==0;)this.children[--r].destroy();return this.children.length=r,this.markDirty(),this.length=t,n}transferDOM(t){this.dom&&(this.markDirty(),t.setDOM(this.dom),t.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(t){Sz(this.attrs,t)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}append(t,n){The(this,t,n)}addLineDeco(t){let n=t.spec.attributes,r=t.spec.class;n&&(this.attrs=D9(n,this.attrs||{})),r&&(this.attrs=D9({class:r},this.attrs||{}))}domAtPos(t){return xhe(this,t)}reuseDOM(t){t.nodeName=="DIV"&&(this.setDOM(t),this.flags|=6)}sync(t,n){var r;this.dom?this.flags&4&&(bhe(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(P9(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(t,n);let i=this.dom.lastChild;for(;i&&Wi.get(i)instanceof wp;)i=i.lastChild;if(!i||!this.length||i.nodeName!="BR"&&((r=Wi.get(i))===null||r===void 0?void 0:r.isEditable)==!1&&(!yn.ios||!this.children.some(a=>a instanceof Ep))){let a=document.createElement("BR");a.cmIgnore=!0,this.dom.appendChild(a)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let t=0,n;for(let r of this.children){if(!(r instanceof Ep)||/[^ -~]/.test(r.text))return null;let i=$w(r.dom);if(i.length!=1)return null;t+=i[0].width,n=i[0].height}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:n}:null}coordsAt(t,n){let r=khe(this,t,n);if(!this.children.length&&r&&this.parent){let{heightOracle:i}=this.parent.view.viewState,a=r.bottom-r.top;if(Math.abs(a-i.lineHeight)<2&&i.textHeight=n){if(a instanceof us)return a;if(s>n)break}i=s+a.breakAfter}return null}}class um extends Wi{constructor(t,n,r){super(),this.widget=t,this.length=n,this.deco=r,this.breakAfter=0,this.prevWidget=null}merge(t,n,r,i,a,s){return r&&(!(r instanceof um)||!this.widget.compare(r.widget)||t>0&&a<=0||n0}}class Wd{eq(t){return!1}updateDOM(t,n){return!1}compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(t){return!0}coordsAt(t,n,r){return null}get isHidden(){return!1}get editable(){return!1}destroy(t){}}var il=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(il||(il={}));class wn extends C1{constructor(t,n,r,i){super(),this.startSide=t,this.endSide=n,this.widget=r,this.spec=i}get heightRelevant(){return!1}static mark(t){return new Zx(t)}static widget(t){let n=Math.max(-1e4,Math.min(1e4,t.side||0)),r=!!t.block;return n+=r&&!t.inlineOrder?n>0?3e8:-4e8:n>0?1e8:-1e8,new wm(t,n,n,r,t.widget||null,!1)}static replace(t){let n=!!t.block,r,i;if(t.isBlockGap)r=-5e8,i=4e8;else{let{start:a,end:s}=Ahe(t,n);r=(a?n?-3e8:-1:5e8)-1,i=(s?n?2e8:1:-6e8)+1}return new wm(t,r,i,n,t.widget||null,!0)}static line(t){return new Xx(t)}static set(t,n=!1){return Dr.of(t,n)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}wn.none=Dr.empty;class Zx extends wn{constructor(t){let{start:n,end:r}=Ahe(t);super(n?-1:5e8,r?1:-6e8,null,t),this.tagName=t.tagName||"span",this.class=t.class||"",this.attrs=t.attributes||null}eq(t){var n,r;return this==t||t instanceof Zx&&this.tagName==t.tagName&&(this.class||((n=this.attrs)===null||n===void 0?void 0:n.class))==(t.class||((r=t.attrs)===null||r===void 0?void 0:r.class))&&Sz(this.attrs,t.attrs,"class")}range(t,n=t){if(t>=n)throw new RangeError("Mark decorations may not be empty");return super.range(t,n)}}Zx.prototype.point=!1;class Xx extends wn{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof Xx&&this.spec.class==t.spec.class&&Sz(this.spec.attributes,t.spec.attributes)}range(t,n=t){if(n!=t)throw new RangeError("Line decoration ranges must be zero-length");return super.range(t,n)}}Xx.prototype.mapMode=Gs.TrackBefore;Xx.prototype.point=!0;class wm extends wn{constructor(t,n,r,i,a,s){super(n,r,a,t),this.block=i,this.isReplace=s,this.mapMode=i?n<=0?Gs.TrackBefore:Gs.TrackAfter:Gs.TrackDel}get type(){return this.startSide!=this.endSide?il.WidgetRange:this.startSide<=0?il.WidgetBefore:il.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){return t instanceof wm&&aGe(this.widget,t.widget)&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide}range(t,n=t){if(this.isReplace&&(t>n||t==n&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&n!=t)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(t,n)}}wm.prototype.point=!0;function Ahe(e,t=!1){let{inclusiveStart:n,inclusiveEnd:r}=e;return n==null&&(n=e.inclusive),r==null&&(r=e.inclusive),{start:n??t,end:r??t}}function aGe(e,t){return e==t||!!(e&&t&&e.compare(t))}function M9(e,t,n,r=0){let i=n.length-1;i>=0&&n[i]+r>=e?n[i]=Math.max(n[i],t):n.push(e,t)}class CE{constructor(t,n,r,i){this.doc=t,this.pos=n,this.end=r,this.disallowBlockEffectsFor=i,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=t.iter(),this.skip=n}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let t=this.content[this.content.length-1];return!(t.breakAfter||t instanceof um&&t.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new us),this.atCursorPos=!0),this.curLine}flushBuffer(t=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(YA(new Gv(-1),t),t.length),this.pendingBuffer=0)}addBlockWidget(t){this.flushBuffer(),this.curLine=null,this.content.push(t)}finish(t){this.pendingBuffer&&t<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(t&&this.content.length&&this.content[this.content.length-1]instanceof um)&&this.getLine()}buildText(t,n,r){for(;t>0;){if(this.textOff==this.text.length){let{value:a,lineBreak:s,done:o}=this.cursor.next(this.skip);if(this.skip=0,o)throw new Error("Ran out of text content when drawing inline views");if(s){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,t--;continue}else this.text=a,this.textOff=0}let i=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(n.slice(n.length-r)),this.getLine().append(YA(new Ep(this.text.slice(this.textOff,this.textOff+i)),n),r),this.atCursorPos=!0,this.textOff+=i,t-=i,r=0}}span(t,n,r,i){this.buildText(n-t,r,i),this.pos=n,this.openStart<0&&(this.openStart=i)}point(t,n,r,i,a,s){if(this.disallowBlockEffectsFor[s]&&r instanceof wm){if(r.block)throw new RangeError("Block decorations may not be specified via plugins");if(n>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let o=n-t;if(r instanceof wm)if(r.block)r.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new um(r.widget||new UJ("div"),o,r));else{let l=Y0.create(r.widget||new UJ("span"),o,o?0:r.startSide),u=this.atCursorPos&&!l.isEditable&&a<=i.length&&(t0),d=!l.isEditable&&(ti.length||r.startSide<=0),f=this.getLine();this.pendingBuffer==2&&!u&&!l.isEditable&&(this.pendingBuffer=0),this.flushBuffer(i),u&&(f.append(YA(new Gv(1),i),a),a=i.length+Math.max(0,a-i.length)),f.append(YA(l,i),a),this.atCursorPos=d,this.pendingBuffer=d?ti.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=i.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(r);o&&(this.textOff+o<=this.text.length?this.textOff+=o:(this.skip+=o-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=n),this.openStart<0&&(this.openStart=a)}static build(t,n,r,i,a){let s=new CE(t,n,r,a);return s.openEnd=Dr.spans(i,n,r,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}}function YA(e,t){for(let n of t)e=new wp(n,[e],e.length);return e}class UJ extends Wd{constructor(t){super(),this.tag=t}eq(t){return t.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(t){return t.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}var Gi=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(Gi||(Gi={}));const I1=Gi.LTR,Ez=Gi.RTL;function _he(e){let t=[];for(let n=0;n=n){if(o.level==r)return s;(a<0||(i!=0?i<0?o.fromn:t[a].level>o.level))&&(a=s)}}if(a<0)throw new RangeError("Index out of range");return a}}function Rhe(e,t){if(e.length!=t.length)return!1;for(let n=0;n=0;S-=3)if(uf[S+1]==-g){let E=uf[S+2],w=E&2?i:E&4?E&1?a:i:0;w&&(wi[f]=wi[uf[S]]=w),o=S;break}}else{if(uf.length==189)break;uf[o++]=f,uf[o++]=p,uf[o++]=l}else if((b=wi[f])==2||b==1){let S=b==i;l=S?0:1;for(let E=o-3;E>=0;E-=3){let w=uf[E+2];if(w&2)break;if(S)uf[E+2]|=2;else{if(w&4)break;uf[E+2]|=4}}}}}function dGe(e,t,n,r){for(let i=0,a=r;i<=n.length;i++){let s=i?n[i-1].to:e,o=il;)b==E&&(b=n[--S].from,E=S?n[S-1].to:e),wi[--b]=g;l=d}else a=u,l++}}}function $9(e,t,n,r,i,a,s){let o=r%2?2:1;if(r%2==i%2)for(let l=t,u=0;ll&&s.push(new Z0(l,S.from,g));let E=S.direction==I1!=!(g%2);F9(e,E?r+1:r,i,S.inner,S.from,S.to,s),l=S.to}b=S.to}else{if(b==n||(d?wi[b]!=o:wi[b]==o))break;b++}p?$9(e,l,b,r+1,i,p,s):lt;){let d=!0,f=!1;if(!u||l>a[u-1].to){let S=wi[l-1];S!=o&&(d=!1,f=S==16)}let p=!d&&o==1?[]:null,g=d?r:r+1,b=l;e:for(;;)if(u&&b==a[u-1].to){if(f)break e;let S=a[--u];if(!d)for(let E=S.from,w=u;;){if(E==t)break e;if(w&&a[w-1].to==E)E=a[--w].from;else{if(wi[E-1]==o)break e;break}}if(p)p.push(S);else{S.towi.length;)wi[wi.length]=256;let r=[],i=t==I1?0:1;return F9(e,i,i,n,0,e.length,r),r}function Ihe(e){return[new Z0(0,e,0)]}let Nhe="";function hGe(e,t,n,r,i){var a;let s=r.head-e.from,o=Z0.find(t,s,(a=r.bidiLevel)!==null&&a!==void 0?a:-1,r.assoc),l=t[o],u=l.side(i,n);if(s==u){let p=o+=i?1:-1;if(p<0||p>=t.length)return null;l=t[o=p],s=l.side(!i,n),u=l.side(i,n)}let d=To(e.text,s,l.forward(i,n));(dl.to)&&(d=u),Nhe=e.text.slice(Math.min(s,d),Math.max(s,d));let f=o==(i?t.length-1:0)?null:t[o+(i?1:-1)];return f&&d==u&&f.level+(i?0:1)e.some(t=>t)}),Uhe=pn.define({combine:e=>e.some(t=>t)});class iv{constructor(t,n="nearest",r="nearest",i=5,a=5,s=!1){this.range=t,this.y=n,this.x=r,this.yMargin=i,this.xMargin=a,this.isSnapshot=s}map(t){return t.empty?this:new iv(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(t){return this.range.to<=t.doc.length?this:new iv(mt.cursor(t.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const ZA=sr.define({map:(e,t)=>e.map(t)});function Rc(e,t,n){let r=e.facet(Lhe);r.length?r[0](t):window.onerror?window.onerror(String(t),n,void 0,void 0,t):n?console.error(n+":",t):console.error(t)}const eI=pn.define({combine:e=>e.length?e[0]:!0});let mGe=0;const Y2=pn.define();class ya{constructor(t,n,r,i,a){this.id=t,this.create=n,this.domEventHandlers=r,this.domEventObservers=i,this.extension=a(this)}static define(t,n){const{eventHandlers:r,eventObservers:i,provide:a,decorations:s}=n||{};return new ya(mGe++,t,r,i,o=>{let l=[Y2.of(o)];return s&&l.push(Bw.of(u=>{let d=u.plugin(o);return d?s(d):wn.none})),a&&l.push(a(o)),l})}static fromClass(t,n){return ya.define(r=>new t(r),n)}}class MD{constructor(t){this.spec=t,this.mustUpdate=null,this.value=null}update(t){if(this.value){if(this.mustUpdate){let n=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(n)}catch(r){if(Rc(n.state,r,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(t)}catch(n){Rc(t.state,n,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(t){var n;if(!((n=this.value)===null||n===void 0)&&n.destroy)try{this.value.destroy()}catch(r){Rc(t.state,r,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const zhe=pn.define(),wz=pn.define(),Bw=pn.define(),Hhe=pn.define(),xz=pn.define(),jhe=pn.define();function zJ(e,t){let n=e.state.facet(jhe);if(!n.length)return n;let r=n.map(a=>a instanceof Function?a(e):a),i=[];return Dr.spans(r,t.from,t.to,{point(){},span(a,s,o,l){let u=a-t.from,d=s-t.from,f=i;for(let p=o.length-1;p>=0;p--,l--){let g=o[p].spec.bidiIsolate,b;if(g==null&&(g=pGe(t.text,u,d)),l>0&&f.length&&(b=f[f.length-1]).to==u&&b.direction==g)b.to=d,f=b.inner;else{let S={from:u,to:d,direction:g,inner:[]};f.push(S),f=S.inner}}}}),i}const Whe=pn.define();function Qhe(e){let t=0,n=0,r=0,i=0;for(let a of e.state.facet(Whe)){let s=a(e);s&&(s.left!=null&&(t=Math.max(t,s.left)),s.right!=null&&(n=Math.max(n,s.right)),s.top!=null&&(r=Math.max(r,s.top)),s.bottom!=null&&(i=Math.max(i,s.bottom)))}return{left:t,right:n,top:r,bottom:i}}const Z2=pn.define();class Ic{constructor(t,n,r,i){this.fromA=t,this.toA=n,this.fromB=r,this.toB=i}join(t){return new Ic(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let n=t.length,r=this;for(;n>0;n--){let i=t[n-1];if(!(i.fromA>r.toA)){if(i.toAd)break;a+=2}if(!l)return r;new Ic(l.fromA,l.toA,l.fromB,l.toB).addToSet(r),s=l.toA,o=l.toB}}}class hC{constructor(t,n,r){this.view=t,this.state=n,this.transactions=r,this.flags=0,this.startState=t.state,this.changes=ds.empty(this.startState.doc.length);for(let a of r)this.changes=this.changes.compose(a.changes);let i=[];this.changes.iterChangedRanges((a,s,o,l)=>i.push(new Ic(a,s,o,l))),this.changedRanges=i}static create(t,n,r){return new hC(t,n,r)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(t=>t.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class HJ extends Wi{get length(){return this.view.state.doc.length}constructor(t){super(),this.view=t,this.decorations=[],this.dynamicDecorationMap=[],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(t.contentDOM),this.children=[new us],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Ic(0,0,0,t.state.doc.length)],0,null)}update(t){var n;let r=t.changedRanges;this.minWidth>0&&r.length&&(r.every(({fromA:u,toA:d})=>dthis.minWidthTo)?(this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let i=-1;this.view.inputState.composing>=0&&(!((n=this.domChanged)===null||n===void 0)&&n.newSel?i=this.domChanged.newSel.head:!EGe(t.changes,this.hasComposition)&&!t.selectionSet&&(i=t.state.selection.main.head));let a=i>-1?bGe(this.view,t.changes,i):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:u,to:d}=this.hasComposition;r=new Ic(u,d,t.changes.mapPos(u,-1),t.changes.mapPos(d,1)).addToSet(r.slice())}this.hasComposition=a?{from:a.range.fromB,to:a.range.toB}:null,(yn.ie||yn.chrome)&&!a&&t&&t.state.doc.lines!=t.startState.doc.lines&&(this.forceSelection=!0);let s=this.decorations,o=this.updateDeco(),l=OGe(s,o,t.changes);return r=Ic.extendWithRanges(r,l),!(this.flags&7)&&r.length==0?!1:(this.updateInner(r,t.startState.doc.length,a),t.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(t,n,r){this.view.viewState.mustMeasureContent=!0,this.updateChildren(t,n,r);let{observer:i}=this.view;i.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let s=yn.chrome||yn.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,s),this.flags&=-8,s&&(s.written||i.selectionRange.focusNode!=s.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(s=>s.flags&=-9);let a=[];if(this.view.viewport.from||this.view.viewport.to=0?i[s]:null;if(!o)break;let{fromA:l,toA:u,fromB:d,toB:f}=o,p,g,b,S;if(r&&r.range.fromBd){let _=CE.build(this.view.state.doc,d,r.range.fromB,this.decorations,this.dynamicDecorationMap),C=CE.build(this.view.state.doc,r.range.toB,f,this.decorations,this.dynamicDecorationMap);g=_.breakAtStart,b=_.openStart,S=C.openEnd;let R=this.compositionView(r);C.breakAtStart?R.breakAfter=1:C.content.length&&R.merge(R.length,R.length,C.content[0],!1,C.openStart,0)&&(R.breakAfter=C.content[0].breakAfter,C.content.shift()),_.content.length&&R.merge(0,0,_.content[_.content.length-1],!0,0,_.openEnd)&&_.content.pop(),p=_.content.concat(R).concat(C.content)}else({content:p,breakAtStart:g,openStart:b,openEnd:S}=CE.build(this.view.state.doc,d,f,this.decorations,this.dynamicDecorationMap));let{i:E,off:w}=a.findPos(u,1),{i:x,off:k}=a.findPos(l,-1);Ohe(this,x,k,E,w,p,g,b,S)}r&&this.fixCompositionDOM(r)}compositionView(t){let n=new Ep(t.text.nodeValue);n.flags|=8;for(let{deco:i}of t.marks)n=new wp(i,[n],n.length);let r=new us;return r.append(n,0),r}fixCompositionDOM(t){let n=(a,s)=>{s.flags|=8|(s.children.some(l=>l.flags&7)?1:0),this.markedForComposition.add(s);let o=Wi.get(a);o&&o!=s&&(o.dom=null),s.setDOM(a)},r=this.childPos(t.range.fromB,1),i=this.children[r.i];n(t.line,i);for(let a=t.marks.length-1;a>=-1;a--)r=i.childPos(r.off,1),i=i.children[r.i],n(a>=0?t.marks[a].node:t.text,i)}updateSelection(t=!1,n=!1){(t||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let r=this.view.root.activeElement,i=r==this.dom,a=!i&&_4(this.dom,this.view.observer.selectionRange)&&!(r&&this.dom.contains(r));if(!(i||n||a))return;let s=this.forceSelection;this.forceSelection=!1;let o=this.view.state.selection.main,l=this.moveToLine(this.domAtPos(o.anchor)),u=o.empty?l:this.moveToLine(this.domAtPos(o.head));if(yn.gecko&&o.empty&&!this.hasComposition&&gGe(l)){let f=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(f,l.node.childNodes[l.offset]||null)),l=u=new wo(f,0),s=!0}let d=this.view.observer.selectionRange;(s||!d.focusNode||(!_E(l.node,l.offset,d.anchorNode,d.anchorOffset)||!_E(u.node,u.offset,d.focusNode,d.focusOffset))&&!this.suppressWidgetCursorChange(d,o))&&(this.view.observer.ignore(()=>{yn.android&&yn.chrome&&this.dom.contains(d.focusNode)&&SGe(d.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let f=fC(this.view.root);if(f)if(o.empty){if(yn.gecko){let p=yGe(l.node,l.offset);if(p&&p!=3){let g=Vhe(l.node,l.offset,p==1?1:-1);g&&(l=new wo(g.node,g.offset))}}f.collapse(l.node,l.offset),o.bidiLevel!=null&&f.caretBidiLevel!==void 0&&(f.caretBidiLevel=o.bidiLevel)}else if(f.extend){f.collapse(l.node,l.offset);try{f.extend(u.node,u.offset)}catch{}}else{let p=document.createRange();o.anchor>o.head&&([l,u]=[u,l]),p.setEnd(u.node,u.offset),p.setStart(l.node,l.offset),f.removeAllRanges(),f.addRange(p)}a&&this.view.root.activeElement==this.dom&&(this.dom.blur(),r&&r.focus())}),this.view.observer.setSelectionRange(l,u)),this.impreciseAnchor=l.precise?null:new wo(d.anchorNode,d.anchorOffset),this.impreciseHead=u.precise?null:new wo(d.focusNode,d.focusOffset)}suppressWidgetCursorChange(t,n){return this.hasComposition&&n.empty&&_E(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)&&this.posFromDOM(t.focusNode,t.focusOffset)==n.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:t}=this,n=t.state.selection.main,r=fC(t.root),{anchorNode:i,anchorOffset:a}=t.observer.selectionRange;if(!r||!n.empty||!n.assoc||!r.modify)return;let s=us.find(this,n.head);if(!s)return;let o=s.posAtStart;if(n.head==o||n.head==o+s.length)return;let l=this.coordsAt(n.head,-1),u=this.coordsAt(n.head,1);if(!l||!u||l.bottom>u.top)return;let d=this.domAtPos(n.head+n.assoc);r.collapse(d.node,d.offset),r.modify("move",n.assoc<0?"forward":"backward","lineboundary"),t.observer.readSelectionRange();let f=t.observer.selectionRange;t.docView.posFromDOM(f.anchorNode,f.anchorOffset)!=n.from&&r.collapse(i,a)}moveToLine(t){let n=this.dom,r;if(t.node!=n)return t;for(let i=t.offset;!r&&i=0;i--){let a=Wi.get(n.childNodes[i]);a instanceof us&&(r=a.domAtPos(a.length))}return r?new wo(r.node,r.offset,!0):t}nearest(t){for(let n=t;n;){let r=Wi.get(n);if(r&&r.rootView==this)return r;n=n.parentNode}return null}posFromDOM(t,n){let r=this.nearest(t);if(!r)throw new RangeError("Trying to find position for a DOM position outside of the document");return r.localPosFromDOM(t,n)+r.posAtStart}domAtPos(t){let{i:n,off:r}=this.childCursor().findPos(t,-1);for(;n=0;s--){let o=this.children[s],l=a-o.breakAfter,u=l-o.length;if(lt||o.covers(1))&&(!r||o instanceof us&&!(r instanceof us&&n>=0))&&(r=o,i=u),a=u}return r?r.coordsAt(t-i,n):null}coordsForChar(t){let{i:n,off:r}=this.childPos(t,1),i=this.children[n];if(!(i instanceof us))return null;for(;i.children.length;){let{i:o,off:l}=i.childPos(r,1);for(;;o++){if(o==i.children.length)return null;if((i=i.children[o]).length)break}r=l}if(!(i instanceof Ep))return null;let a=To(i.text,r);if(a==r)return null;let s=R1(i.dom,r,a).getClientRects();for(let o=0;oMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,o=-1,l=this.view.textDirection==Gi.LTR;for(let u=0,d=0;di)break;if(u>=r){let g=f.dom.getBoundingClientRect();if(n.push(g.height),s){let b=f.dom.lastChild,S=b?$w(b):[];if(S.length){let E=S[S.length-1],w=l?E.right-g.left:g.right-E.left;w>o&&(o=w,this.minWidth=a,this.minWidthFrom=u,this.minWidthTo=p)}}}u=p+f.breakAfter}return n}textDirectionAt(t){let{i:n}=this.childPos(t,1);return getComputedStyle(this.children[n].dom).direction=="rtl"?Gi.RTL:Gi.LTR}measureTextSize(){for(let a of this.children)if(a instanceof us){let s=a.measureTextSize();if(s)return s}let t=document.createElement("div"),n,r,i;return t.className="cm-line",t.style.width="99999px",t.style.position="absolute",t.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(t);let a=$w(t.firstChild)[0];n=t.getBoundingClientRect().height,r=a?a.width/27:7,i=a?a.height:n,t.remove()}),{lineHeight:n,charWidth:r,textHeight:i}}childCursor(t=this.length){let n=this.children.length;return n&&(t-=this.children[--n].length),new vhe(this.children,t,n)}computeBlockGapDeco(){let t=[],n=this.view.viewState;for(let r=0,i=0;;i++){let a=i==n.viewports.length?null:n.viewports[i],s=a?a.from-1:this.length;if(s>r){let o=(n.lineBlockAt(s).bottom-n.lineBlockAt(r).top)/this.view.scaleY;t.push(wn.replace({widget:new jJ(o),block:!0,inclusive:!0,isBlockGap:!0}).range(r,s))}if(!a)break;r=a.to+1}return wn.set(t)}updateDeco(){let t=this.view.state.facet(Bw).map((i,a)=>(this.dynamicDecorationMap[a]=typeof i=="function")?i(this.view):i),n=!1,r=this.view.state.facet(Hhe).map((i,a)=>{let s=typeof i=="function";return s&&(n=!0),s?i(this.view):i});r.length&&(this.dynamicDecorationMap[t.length]=n,t.push(Dr.join(r)));for(let i=t.length;in.anchor?-1:1),i;if(!r)return;!n.empty&&(i=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,i.left),top:Math.min(r.top,i.top),right:Math.max(r.right,i.right),bottom:Math.max(r.bottom,i.bottom)});let a=Qhe(this.view),s={left:r.left-a.left,top:r.top-a.top,right:r.right+a.right,bottom:r.bottom+a.bottom},{offsetWidth:o,offsetHeight:l}=this.view.scrollDOM;ZQe(this.view.scrollDOM,s,n.head0)r=r.childNodes[i-1],i=Sp(r);else break}if(n>=0)for(let r=e,i=t;;){if(r.nodeType==3)return{node:r,offset:i};if(r.nodeType==1&&i=0)r=r.childNodes[i],i=0;else break}return null}function yGe(e,t){return e.nodeType!=1?0:(t&&e.childNodes[t-1].contentEditable=="false"?1:0)|(t{rt.from&&(n=!0)}),n}function wGe(e,t,n=1){let r=e.charCategorizer(t),i=e.doc.lineAt(t),a=t-i.from;if(i.length==0)return mt.cursor(t);a==0?n=1:a==i.length&&(n=-1);let s=a,o=a;n<0?s=To(i.text,a,!1):o=To(i.text,a);let l=r(i.text.slice(s,o));for(;s>0;){let u=To(i.text,s,!1);if(r(i.text.slice(u,s))!=l)break;s=u}for(;oe?t.left-e:Math.max(0,e-t.right)}function TGe(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function LD(e,t){return e.topt.top+1}function WJ(e,t){return te.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function U9(e,t,n){let r,i,a,s,o=!1,l,u,d,f;for(let b=e.firstChild;b;b=b.nextSibling){let S=$w(b);for(let E=0;Ek||s==k&&a>x){r=b,i=w,a=x,s=k;let _=k?n0?E0)}x==0?n>w.bottom&&(!d||d.bottomw.top)&&(u=b,f=w):d&&LD(d,w)?d=QJ(d,w.bottom):f&&LD(f,w)&&(f=WJ(f,w.top))}}if(d&&d.bottom>=n?(r=l,i=d):f&&f.top<=n&&(r=u,i=f),!r)return{node:e,offset:0};let p=Math.max(i.left,Math.min(i.right,t));if(r.nodeType==3)return GJ(r,p,n);if(o&&r.contentEditable!="false")return U9(r,p,n);let g=Array.prototype.indexOf.call(e.childNodes,r)+(t>=(i.left+i.right)/2?1:0);return{node:e,offset:g}}function GJ(e,t,n){let r=e.nodeValue.length,i=-1,a=1e9,s=0;for(let o=0;on?d.top-n:n-d.bottom)-1;if(d.left-1<=t&&d.right+1>=t&&f=(d.left+d.right)/2,g=p;if((yn.chrome||yn.gecko)&&R1(e,o).getBoundingClientRect().left==d.right&&(g=!p),f<=0)return{node:e,offset:o+(g?1:0)};i=o+(g?1:0),a=f}}}return{node:e,offset:i>-1?i:s>0?e.nodeValue.length:0}}function qhe(e,t,n,r=-1){var i,a;let s=e.contentDOM.getBoundingClientRect(),o=s.top+e.viewState.paddingTop,l,{docHeight:u}=e.viewState,{x:d,y:f}=t,p=f-o;if(p<0)return 0;if(p>u)return e.state.doc.length;for(let _=e.viewState.heightOracle.textHeight/2,C=!1;l=e.elementAtHeight(p),l.type!=il.Text;)for(;p=r>0?l.bottom+_:l.top-_,!(p>=0&&p<=u);){if(C)return n?null:0;C=!0,r=-r}f=o+p;let g=l.from;if(ge.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:VJ(e,s,l,d,f);let b=e.dom.ownerDocument,S=e.root.elementFromPoint?e.root:b,E=S.elementFromPoint(d,f);E&&!e.contentDOM.contains(E)&&(E=null),E||(d=Math.max(s.left+1,Math.min(s.right-1,d)),E=S.elementFromPoint(d,f),E&&!e.contentDOM.contains(E)&&(E=null));let w,x=-1;if(E&&((i=e.docView.nearest(E))===null||i===void 0?void 0:i.isEditable)!=!1){if(b.caretPositionFromPoint){let _=b.caretPositionFromPoint(d,f);_&&({offsetNode:w,offset:x}=_)}else if(b.caretRangeFromPoint){let _=b.caretRangeFromPoint(d,f);_&&({startContainer:w,startOffset:x}=_,(!e.contentDOM.contains(w)||yn.safari&&kGe(w,x,d)||yn.chrome&&AGe(w,x,d))&&(w=void 0))}}if(!w||!e.docView.dom.contains(w)){let _=us.find(e.docView,g);if(!_)return p>l.top+l.height/2?l.to:l.from;({node:w,offset:x}=U9(_.dom,d,f))}let k=e.docView.nearest(w);if(!k)return null;if(k.isWidget&&((a=k.dom)===null||a===void 0?void 0:a.nodeType)==1){let _=k.dom.getBoundingClientRect();return t.y<_.top||t.y<=_.bottom&&t.x<=(_.left+_.right)/2?k.posAtStart:k.posAtEnd}else return k.localPosFromDOM(w,x)+k.posAtStart}function VJ(e,t,n,r,i){let a=Math.round((r-t.left)*e.defaultCharacterWidth);if(e.lineWrapping&&n.height>e.defaultLineHeight*1.5){let o=e.viewState.heightOracle.textHeight,l=Math.floor((i-n.top-(e.defaultLineHeight-o)*.5)/o);a+=l*e.viewState.heightOracle.lineLength}let s=e.state.sliceDoc(n.from,n.to);return n.from+k9(s,a,e.state.tabSize)}function kGe(e,t,n){let r;if(e.nodeType!=3||t!=(r=e.nodeValue.length))return!1;for(let i=e.nextSibling;i;i=i.nextSibling)if(i.nodeType!=1||i.nodeName!="BR")return!1;return R1(e,r-1,r).getBoundingClientRect().left>n}function AGe(e,t,n){if(t!=0)return!1;for(let i=e;;){let a=i.parentNode;if(!a||a.nodeType!=1||a.firstChild!=i)return!1;if(a.classList.contains("cm-line"))break;i=a}let r=e.nodeType==1?e.getBoundingClientRect():R1(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect();return n-r.left>5}function z9(e,t){let n=e.lineBlockAt(t);if(Array.isArray(n.type)){for(let r of n.type)if(r.to>t||r.to==t&&(r.to==n.to||r.type==il.Text))return r}return n}function _Ge(e,t,n,r){let i=z9(e,t.head),a=!r||i.type!=il.Text||!(e.lineWrapping||i.widgetLineBreaks)?null:e.coordsAtPos(t.assoc<0&&t.head>i.from?t.head-1:t.head);if(a){let s=e.dom.getBoundingClientRect(),o=e.textDirectionAt(i.from),l=e.posAtCoords({x:n==(o==Gi.LTR)?s.right-1:s.left+1,y:(a.top+a.bottom)/2});if(l!=null)return mt.cursor(l,n?-1:1)}return mt.cursor(n?i.to:i.from,n?-1:1)}function qJ(e,t,n,r){let i=e.state.doc.lineAt(t.head),a=e.bidiSpans(i),s=e.textDirectionAt(i.from);for(let o=t,l=null;;){let u=hGe(i,a,s,o,n),d=Nhe;if(!u){if(i.number==(n?e.state.doc.lines:1))return o;d=` +`,i=e.state.doc.line(i.number+(n?1:-1)),a=e.bidiSpans(i),u=e.visualLineSide(i,!n)}if(l){if(!l(d))return o}else{if(!r)return u;l=r(d)}o=u}}function CGe(e,t,n){let r=e.state.charCategorizer(t),i=r(n);return a=>{let s=r(a);return i==ra.Space&&(i=s),i==s}}function RGe(e,t,n,r){let i=t.head,a=n?1:-1;if(i==(n?e.state.doc.length:0))return mt.cursor(i,t.assoc);let s=t.goalColumn,o,l=e.contentDOM.getBoundingClientRect(),u=e.coordsAtPos(i,t.assoc||-1),d=e.documentTop;if(u)s==null&&(s=u.left-l.left),o=a<0?u.top:u.bottom;else{let g=e.viewState.lineBlockAt(i);s==null&&(s=Math.min(l.right-l.left,e.defaultCharacterWidth*(i-g.from))),o=(a<0?g.top:g.bottom)+d}let f=l.left+s,p=r??e.viewState.heightOracle.textHeight>>1;for(let g=0;;g+=10){let b=o+(p+g)*a,S=qhe(e,{x:f,y:b},!1,a);if(bl.bottom||(a<0?Si)){let E=e.docView.coordsForChar(S),w=!E||b{if(t>a&&ti(e)),n.from,t.head>n.from?-1:1);return r==n.from?n:mt.cursor(r,rnull),yn.gecko&&VGe(t.contentDOM.ownerDocument)}handleEvent(t){!BGe(this.view,t)||this.ignoreDuringComposition(t)||t.type=="keydown"&&this.keydown(t)||this.runHandlers(t.type,t)}runHandlers(t,n){let r=this.handlers[t];if(r){for(let i of r.observers)i(this.view,n);for(let i of r.handlers){if(n.defaultPrevented)break;if(i(this.view,n)){n.preventDefault();break}}}}ensureHandlers(t){let n=NGe(t),r=this.handlers,i=this.view.contentDOM;for(let a in n)if(a!="scroll"){let s=!n[a].handlers.length,o=r[a];o&&s!=!o.handlers.length&&(i.removeEventListener(a,this.handleEvent),o=null),o||i.addEventListener(a,this.handleEvent,{passive:s})}for(let a in r)a!="scroll"&&!n[a]&&i.removeEventListener(a,this.handleEvent);this.handlers=n}keydown(t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),t.keyCode==9&&Date.now()r.keyCode==t.keyCode))&&!t.ctrlKey||DGe.indexOf(t.key)>-1&&t.ctrlKey&&!t.shiftKey)?(this.pendingIOSKey=n||t,setTimeout(()=>this.flushIOSKey(),250),!0):(t.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(){let t=this.pendingIOSKey;return t?(this.pendingIOSKey=void 0,rv(this.view.contentDOM,t.key,t.keyCode)):!1}ignoreDuringComposition(t){return/^key/.test(t.type)?this.composing>0?!0:yn.safari&&!yn.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(t){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=t}update(t){this.mouseSelection&&this.mouseSelection.update(t),this.draggedContent&&t.docChanged&&(this.draggedContent=this.draggedContent.map(t.changes)),t.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function YJ(e,t){return(n,r)=>{try{return t.call(e,r,n)}catch(i){Rc(n.state,i)}}}function NGe(e){let t=Object.create(null);function n(r){return t[r]||(t[r]={observers:[],handlers:[]})}for(let r of e){let i=r.spec;if(i&&i.domEventHandlers)for(let a in i.domEventHandlers){let s=i.domEventHandlers[a];s&&n(a).handlers.push(YJ(r.value,s))}if(i&&i.domEventObservers)for(let a in i.domEventObservers){let s=i.domEventObservers[a];s&&n(a).observers.push(YJ(r.value,s))}}for(let r in Fd)n(r).handlers.push(Fd[r]);for(let r in Bd)n(r).observers.push(Bd[r]);return t}const Yhe=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],DGe="dthko",Zhe=[16,17,18,20,91,92,224,225],XA=6;function KA(e){return Math.max(0,e)*.7+8}function PGe(e,t){return Math.max(Math.abs(e.clientX-t.clientX),Math.abs(e.clientY-t.clientY))}class MGe{constructor(t,n,r,i){this.view=t,this.startEvent=n,this.style=r,this.mustSelect=i,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=n,this.scrollParent=XQe(t.contentDOM),this.atoms=t.state.facet(xz).map(s=>s(t));let a=t.contentDOM.ownerDocument;a.addEventListener("mousemove",this.move=this.move.bind(this)),a.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=n.shiftKey,this.multiple=t.state.facet(Fr.allowMultipleSelections)&&LGe(t,n),this.dragging=FGe(t,n)&&epe(n)==1?null:!1}start(t){this.dragging===!1&&this.select(t)}move(t){var n;if(t.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&PGe(this.startEvent,t)<10)return;this.select(this.lastEvent=t);let r=0,i=0,a=((n=this.scrollParent)===null||n===void 0?void 0:n.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},s=Qhe(this.view);t.clientX-s.left<=a.left+XA?r=-KA(a.left-t.clientX):t.clientX+s.right>=a.right-XA&&(r=KA(t.clientX-a.right)),t.clientY-s.top<=a.top+XA?i=-KA(a.top-t.clientY):t.clientY+s.bottom>=a.bottom-XA&&(i=KA(t.clientY-a.bottom)),this.setScrollSpeed(r,i)}up(t){this.dragging==null&&this.select(this.lastEvent),this.dragging||t.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move),t.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(t,n){this.scrollSpeed={x:t,y:n},t||n?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(t){let n=null;for(let r=0;rthis.select(this.lastEvent),20)}}function LGe(e,t){let n=e.state.facet(Dhe);return n.length?n[0](t):yn.mac?t.metaKey:t.ctrlKey}function $Ge(e,t){let n=e.state.facet(Phe);return n.length?n[0](t):yn.mac?!t.altKey:!t.ctrlKey}function FGe(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=fC(e.root);if(!r||r.rangeCount==0)return!0;let i=r.getRangeAt(0).getClientRects();for(let a=0;a=t.clientX&&s.top<=t.clientY&&s.bottom>=t.clientY)return!0}return!1}function BGe(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target,r;n!=e.contentDOM;n=n.parentNode)if(!n||n.nodeType==11||(r=Wi.get(n))&&r.ignoreEvent(t))return!1;return!0}const Fd=Object.create(null),Bd=Object.create(null),Xhe=yn.ie&&yn.ie_version<15||yn.ios&&yn.webkit_version<604;function UGe(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(()=>{e.focus(),n.remove(),Khe(e,n.value)},50)}function Khe(e,t){let{state:n}=e,r,i=1,a=n.toText(t),s=a.lines==n.selection.ranges.length;if(H9!=null&&n.selection.ranges.every(l=>l.empty)&&H9==a.toString()){let l=-1;r=n.changeByRange(u=>{let d=n.doc.lineAt(u.from);if(d.from==l)return{range:u};l=d.from;let f=n.toText((s?a.line(i++).text:t)+n.lineBreak);return{changes:{from:d.from,insert:f},range:mt.cursor(u.from+f.length)}})}else s?r=n.changeByRange(l=>{let u=a.line(i++);return{changes:{from:l.from,to:l.to,insert:u.text},range:mt.cursor(l.from+u.length)}}):r=n.replaceSelection(a);e.dispatch(r,{userEvent:"input.paste",scrollIntoView:!0})}Bd.scroll=e=>{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft};Fd.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),t.keyCode==27&&(e.inputState.lastEscPress=Date.now()),!1);Bd.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")};Bd.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")};Fd.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let r of e.state.facet(Mhe))if(n=r(e,t),n)break;if(!n&&t.button==0&&(n=jGe(e,t)),n){let r=!e.hasFocus;e.inputState.startMouseSelection(new MGe(e,t,n,r)),r&&e.observer.ignore(()=>ghe(e.contentDOM));let i=e.inputState.mouseSelection;if(i)return i.start(t),i.dragging===!1}return!1};function ZJ(e,t,n,r){if(r==1)return mt.cursor(t,n);if(r==2)return wGe(e.state,t,n);{let i=us.find(e.docView,t),a=e.state.doc.lineAt(i?i.posAtEnd:t),s=i?i.posAtStart:a.from,o=i?i.posAtEnd:a.to;return oe>=t.top&&e<=t.bottom,XJ=(e,t,n)=>Jhe(t,n)&&e>=n.left&&e<=n.right;function zGe(e,t,n,r){let i=us.find(e.docView,t);if(!i)return 1;let a=t-i.posAtStart;if(a==0)return 1;if(a==i.length)return-1;let s=i.coordsAt(a,-1);if(s&&XJ(n,r,s))return-1;let o=i.coordsAt(a,1);return o&&XJ(n,r,o)?1:s&&Jhe(r,s)?-1:1}function KJ(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:zGe(e,n,t.clientX,t.clientY)}}const HGe=yn.ie&&yn.ie_version<=11;let JJ=null,eee=0,tee=0;function epe(e){if(!HGe)return e.detail;let t=JJ,n=tee;return JJ=e,tee=Date.now(),eee=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(eee+1)%3:1}function jGe(e,t){let n=KJ(e,t),r=epe(t),i=e.state.selection;return{update(a){a.docChanged&&(n.pos=a.changes.mapPos(n.pos),i=i.map(a.changes))},get(a,s,o){let l=KJ(e,a),u,d=ZJ(e,l.pos,l.bias,r);if(n.pos!=l.pos&&!s){let f=ZJ(e,n.pos,n.bias,r),p=Math.min(f.from,d.from),g=Math.max(f.to,d.to);d=p1&&(u=WGe(i,l.pos))?u:o?i.addRange(d):mt.create([d])}}}function WGe(e,t){for(let n=0;n=t)return mt.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n?1:0))}return null}Fd.dragstart=(e,t)=>{let{selection:{main:n}}=e.state;if(t.target.draggable){let i=e.docView.nearest(t.target);if(i&&i.isWidget){let a=i.posAtStart,s=a+i.length;(a>=n.to||s<=n.from)&&(n=mt.range(a,s))}}let{inputState:r}=e;return r.mouseSelection&&(r.mouseSelection.dragging=!0),r.draggedContent=n,t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(n.from,n.to)),t.dataTransfer.effectAllowed="copyMove"),!1};Fd.dragend=e=>(e.inputState.draggedContent=null,!1);function nee(e,t,n,r){if(!n)return;let i=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:a}=e.inputState,s=r&&a&&$Ge(e,t)?{from:a.from,to:a.to}:null,o={from:i,insert:n},l=e.state.changes(s?[s,o]:o);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:s?"move.drop":"input.drop"}),e.inputState.draggedContent=null}Fd.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let n=t.dataTransfer.files;if(n&&n.length){let r=Array(n.length),i=0,a=()=>{++i==n.length&&nee(e,t,r.filter(s=>s!=null).join(e.state.lineBreak),!1)};for(let s=0;s{/[\x00-\x08\x0e-\x1f]{2}/.test(o.result)||(r[s]=o.result),a()},o.readAsText(n[s])}return!0}else{let r=t.dataTransfer.getData("Text");if(r)return nee(e,t,r,!0),!0}return!1};Fd.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let n=Xhe?null:t.clipboardData;return n?(Khe(e,n.getData("text/plain")||n.getData("text/uri-text")),!0):(UGe(e),!1)};function QGe(e,t){let n=e.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=t,r.focus(),r.selectionEnd=t.length,r.selectionStart=0,setTimeout(()=>{r.remove(),e.focus()},50)}function GGe(e){let t=[],n=[],r=!1;for(let i of e.selection.ranges)i.empty||(t.push(e.sliceDoc(i.from,i.to)),n.push(i));if(!t.length){let i=-1;for(let{from:a}of e.selection.ranges){let s=e.doc.lineAt(a);s.number>i&&(t.push(s.text),n.push({from:s.from,to:Math.min(e.doc.length,s.to+1)})),i=s.number}r=!0}return{text:t.join(e.lineBreak),ranges:n,linewise:r}}let H9=null;Fd.copy=Fd.cut=(e,t)=>{let{text:n,ranges:r,linewise:i}=GGe(e.state);if(!n&&!i)return!1;H9=i?n:null,t.type=="cut"&&!e.state.readOnly&&e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let a=Xhe?null:t.clipboardData;return a?(a.clearData(),a.setData("text/plain",n),!0):(QGe(e,n),!1)};const tpe=jd.define();function npe(e,t){let n=[];for(let r of e.facet(Fhe)){let i=r(e,t);i&&n.push(i)}return n?e.update({effects:n,annotations:tpe.of(!0)}):null}function rpe(e){setTimeout(()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=npe(e.state,t);n?e.dispatch(n):e.update([])}},10)}Bd.focus=e=>{e.inputState.lastFocusTime=Date.now(),!e.scrollDOM.scrollTop&&(e.inputState.lastScrollTop||e.inputState.lastScrollLeft)&&(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),rpe(e)};Bd.blur=e=>{e.observer.clearSelectionRange(),rpe(e)};Bd.compositionstart=Bd.compositionupdate=e=>{e.inputState.compositionFirstChange==null&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0)};Bd.compositionend=e=>{e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,yn.chrome&&yn.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then(()=>e.observer.flush()):setTimeout(()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])},50)};Bd.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()};Fd.beforeinput=(e,t)=>{var n;let r;if(yn.chrome&&yn.android&&(r=Yhe.find(i=>i.inputType==t.inputType))&&(e.observer.delayAndroidKey(r.key,r.keyCode),r.key=="Backspace"||r.key=="Delete")){let i=((n=window.visualViewport)===null||n===void 0?void 0:n.height)||0;setTimeout(()=>{var a;(((a=window.visualViewport)===null||a===void 0?void 0:a.height)||0)>i+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())},100)}return!1};const ree=new Set;function VGe(e){ree.has(e)||(ree.add(e),e.addEventListener("copy",()=>{}),e.addEventListener("cut",()=>{}))}const iee=["pre-wrap","normal","pre-line","break-spaces"];class qGe{constructor(t){this.lineWrapping=t,this.doc=kr.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(t,n){let r=this.doc.lineAt(n).number-this.doc.lineAt(t).number+1;return this.lineWrapping&&(r+=Math.max(0,Math.ceil((n-t-r*this.lineLength*.5)/this.lineLength))),this.lineHeight*r}heightForLine(t){return this.lineWrapping?(1+Math.max(0,Math.ceil((t-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(t){return this.doc=t,this}mustRefreshForWrapping(t){return iee.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let n=!1;for(let r=0;r-1,l=Math.round(n)!=Math.round(this.lineHeight)||this.lineWrapping!=o;if(this.lineWrapping=o,this.lineHeight=n,this.charWidth=r,this.textHeight=i,this.lineLength=a,l){this.heightSamples={};for(let u=0;u0}set outdated(t){this.flags=(t?2:0)|this.flags&-3}setHeight(t,n){this.height!=n&&(Math.abs(this.height-n)>R4&&(t.heightChanged=!0),this.height=n)}replace(t,n,r){return al.of(r)}decomposeLeft(t,n){n.push(this)}decomposeRight(t,n){n.push(this)}applyChanges(t,n,r,i){let a=this,s=r.doc;for(let o=i.length-1;o>=0;o--){let{fromA:l,toA:u,fromB:d,toB:f}=i[o],p=a.lineAt(l,ji.ByPosNoHeight,r.setDoc(n),0,0),g=p.to>=u?p:a.lineAt(u,ji.ByPosNoHeight,r,0,0);for(f+=g.to-u,u=g.to;o>0&&p.from<=i[o-1].toA;)l=i[o-1].fromA,d=i[o-1].fromB,o--,la*2){let o=t[n-1];o.break?t.splice(--n,1,o.left,null,o.right):t.splice(--n,1,o.left,o.right),r+=1+o.break,i-=o.size}else if(a>i*2){let o=t[r];o.break?t.splice(r,1,o.left,null,o.right):t.splice(r,1,o.left,o.right),r+=2+o.break,a-=o.size}else break;else if(i=a&&s(this.blockAt(0,r,i,a))}updateHeight(t,n=0,r=!1,i){return i&&i.from<=n&&i.more&&this.setHeight(t,i.heights[i.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class yu extends ipe{constructor(t,n){super(t,n,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(t,n,r,i){return new _f(i,this.length,r,this.height,this.breaks)}replace(t,n,r){let i=r[0];return r.length==1&&(i instanceof yu||i instanceof Hs&&i.flags&4)&&Math.abs(this.length-i.length)<10?(i instanceof Hs?i=new yu(i.length,this.height):i.height=this.height,this.outdated||(i.outdated=!1),i):al.of(r)}updateHeight(t,n=0,r=!1,i){return i&&i.from<=n&&i.more?this.setHeight(t,i.heights[i.index++]):(r||this.outdated)&&this.setHeight(t,Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed))+this.breaks*t.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Hs extends al{constructor(t){super(t,0)}heightMetrics(t,n){let r=t.doc.lineAt(n).number,i=t.doc.lineAt(n+this.length).number,a=i-r+1,s,o=0;if(t.lineWrapping){let l=Math.min(this.height,t.lineHeight*a);s=l/a,this.length>a+1&&(o=(this.height-l)/(this.length-a-1))}else s=this.height/a;return{firstLine:r,lastLine:i,perLine:s,perChar:o}}blockAt(t,n,r,i){let{firstLine:a,lastLine:s,perLine:o,perChar:l}=this.heightMetrics(n,i);if(n.lineWrapping){let u=i+Math.round(Math.max(0,Math.min(1,(t-r)/this.height))*this.length),d=n.doc.lineAt(u),f=o+d.length*l,p=Math.max(r,t-f/2);return new _f(d.from,d.length,p,f,0)}else{let u=Math.max(0,Math.min(s-a,Math.floor((t-r)/o))),{from:d,length:f}=n.doc.line(a+u);return new _f(d,f,r+o*u,o,0)}}lineAt(t,n,r,i,a){if(n==ji.ByHeight)return this.blockAt(t,r,i,a);if(n==ji.ByPosNoHeight){let{from:g,to:b}=r.doc.lineAt(t);return new _f(g,b-g,0,0,0)}let{firstLine:s,perLine:o,perChar:l}=this.heightMetrics(r,a),u=r.doc.lineAt(t),d=o+u.length*l,f=u.number-s,p=i+o*f+l*(u.from-a-f);return new _f(u.from,u.length,Math.max(i,Math.min(p,i+this.height-d)),d,0)}forEachLine(t,n,r,i,a,s){t=Math.max(t,a),n=Math.min(n,a+this.length);let{firstLine:o,perLine:l,perChar:u}=this.heightMetrics(r,a);for(let d=t,f=i;d<=n;){let p=r.doc.lineAt(d);if(d==t){let b=p.number-o;f+=l*b+u*(t-a-b)}let g=l+u*p.length;s(new _f(p.from,p.length,f,g,0)),f+=g,d=p.to+1}}replace(t,n,r){let i=this.length-n;if(i>0){let a=r[r.length-1];a instanceof Hs?r[r.length-1]=new Hs(a.length+i):r.push(null,new Hs(i-1))}if(t>0){let a=r[0];a instanceof Hs?r[0]=new Hs(t+a.length):r.unshift(new Hs(t-1),null)}return al.of(r)}decomposeLeft(t,n){n.push(new Hs(t-1),null)}decomposeRight(t,n){n.push(null,new Hs(this.length-t-1))}updateHeight(t,n=0,r=!1,i){let a=n+this.length;if(i&&i.from<=n+this.length&&i.more){let s=[],o=Math.max(n,i.from),l=-1;for(i.from>n&&s.push(new Hs(i.from-n-1).updateHeight(t,n));o<=a&&i.more;){let d=t.doc.lineAt(o).length;s.length&&s.push(null);let f=i.heights[i.index++];l==-1?l=f:Math.abs(f-l)>=R4&&(l=-2);let p=new yu(d,f);p.outdated=!1,s.push(p),o+=d+1}o<=a&&s.push(null,new Hs(a-o).updateHeight(t,o));let u=al.of(s);return(l<0||Math.abs(u.height-this.height)>=R4||Math.abs(l-this.heightMetrics(t,n).perLine)>=R4)&&(t.heightChanged=!0),u}else(r||this.outdated)&&(this.setHeight(t,t.heightForGap(n,n+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class ZGe extends al{constructor(t,n,r){super(t.length+n+r.length,t.height+r.height,n|(t.outdated||r.outdated?2:0)),this.left=t,this.right=r,this.size=t.size+r.size}get break(){return this.flags&1}blockAt(t,n,r,i){let a=r+this.left.height;return to))return u;let d=n==ji.ByPosNoHeight?ji.ByPosNoHeight:ji.ByPos;return l?u.join(this.right.lineAt(o,d,r,s,o)):this.left.lineAt(o,d,r,i,a).join(u)}forEachLine(t,n,r,i,a,s){let o=i+this.left.height,l=a+this.left.length+this.break;if(this.break)t=l&&this.right.forEachLine(t,n,r,o,l,s);else{let u=this.lineAt(l,ji.ByPos,r,i,a);t=t&&u.from<=n&&s(u),n>u.to&&this.right.forEachLine(u.to+1,n,r,o,l,s)}}replace(t,n,r){let i=this.left.length+this.break;if(nthis.left.length)return this.balanced(this.left,this.right.replace(t-i,n-i,r));let a=[];t>0&&this.decomposeLeft(t,a);let s=a.length;for(let o of r)a.push(o);if(t>0&&aee(a,s-1),n=r&&n.push(null)),t>r&&this.right.decomposeLeft(t-r,n)}decomposeRight(t,n){let r=this.left.length,i=r+this.break;if(t>=i)return this.right.decomposeRight(t-i,n);t2*n.size||n.size>2*t.size?al.of(this.break?[t,null,n]:[t,n]):(this.left=t,this.right=n,this.height=t.height+n.height,this.outdated=t.outdated||n.outdated,this.size=t.size+n.size,this.length=t.length+this.break+n.length,this)}updateHeight(t,n=0,r=!1,i){let{left:a,right:s}=this,o=n+a.length+this.break,l=null;return i&&i.from<=n+a.length&&i.more?l=a=a.updateHeight(t,n,r,i):a.updateHeight(t,n,r),i&&i.from<=o+s.length&&i.more?l=s=s.updateHeight(t,o,r,i):s.updateHeight(t,o,r),l?this.balanced(a,s):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function aee(e,t){let n,r;e[t]==null&&(n=e[t-1])instanceof Hs&&(r=e[t+1])instanceof Hs&&e.splice(t-1,3,new Hs(n.length+1+r.length))}const XGe=5;class Tz{constructor(t,n){this.pos=t,this.oracle=n,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=t}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(t,n){if(this.lineStart>-1){let r=Math.min(n,this.lineEnd),i=this.nodes[this.nodes.length-1];i instanceof yu?i.length+=r-this.pos:(r>this.pos||!this.isCovered)&&this.nodes.push(new yu(r-this.pos,-1)),this.writtenTo=r,n>r&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=n}point(t,n,r){if(t=XGe)&&this.addLineDeco(i,a,s)}else n>t&&this.span(t,n);this.lineEnd>-1&&this.lineEnd-1)return;let{from:t,to:n}=this.oracle.doc.lineAt(this.pos);this.lineStart=t,this.lineEnd=n,this.writtenTot&&this.nodes.push(new yu(this.pos-t,-1)),this.writtenTo=this.pos}blankContent(t,n){let r=new Hs(n-t);return this.oracle.doc.lineAt(t).to==n&&(r.flags|=4),r}ensureLine(){this.enterLine();let t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof yu)return t;let n=new yu(0,-1);return this.nodes.push(n),n}addBlock(t){this.enterLine();let n=t.deco;n&&n.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(t),this.writtenTo=this.pos=this.pos+t.length,n&&n.endSide>0&&(this.covering=t)}addLineDeco(t,n,r){let i=this.ensureLine();i.length+=r,i.collapsed+=r,i.widgetHeight=Math.max(i.widgetHeight,t),i.breaks+=n,this.writtenTo=this.pos=this.pos+r}finish(t){let n=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(n instanceof yu)&&!this.isCovered?this.nodes.push(new yu(0,-1)):(this.writtenTod.clientHeight||d.scrollWidth>d.clientWidth)&&f.overflow!="visible"){let p=d.getBoundingClientRect();a=Math.max(a,p.left),s=Math.min(s,p.right),o=Math.max(o,p.top),l=u==e.parentNode?p.bottom:Math.min(l,p.bottom)}u=f.position=="absolute"||f.position=="fixed"?d.offsetParent:d.parentNode}else if(u.nodeType==11)u=u.host;else break;return{left:a-n.left,right:Math.max(a,s)-n.left,top:o-(n.top+t),bottom:Math.max(o,l)-(n.top+t)}}function tVe(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class FD{constructor(t,n,r){this.from=t,this.to=n,this.size=r}static same(t,n){if(t.length!=n.length)return!1;for(let r=0;rtypeof r!="function"&&r.class=="cm-lineWrapping");this.heightOracle=new qGe(n),this.stateDeco=t.facet(Bw).filter(r=>typeof r!="function"),this.heightMap=al.empty().applyChanges(this.stateDeco,kr.empty,this.heightOracle.setDoc(t.doc),[new Ic(0,0,0,t.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=wn.set(this.lineGaps.map(r=>r.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:n}=this.state.selection;for(let r=0;r<=1;r++){let i=r?n.head:n.anchor;if(!t.some(({from:a,to:s})=>i>=a&&i<=s)){let{from:a,to:s}=this.lineBlockAt(i);t.push(new JA(a,s))}}this.viewports=t.sort((r,i)=>r.from-i.from),this.scaler=this.heightMap.height<=7e6?oee:new aVe(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,t=>{this.viewportLines.push(this.scaler.scale==1?t:X2(t,this.scaler))})}update(t,n=null){this.state=t.state;let r=this.stateDeco;this.stateDeco=this.state.facet(Bw).filter(d=>typeof d!="function");let i=t.changedRanges,a=Ic.extendWithRanges(i,KGe(r,this.stateDeco,t?t.changes:ds.empty(this.state.doc.length))),s=this.heightMap.height,o=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),a),this.heightMap.height!=s&&(t.flags|=2),o?(this.scrollAnchorPos=t.changes.mapPos(o.from,-1),this.scrollAnchorHeight=o.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let l=a.length?this.mapViewport(this.viewport,t.changes):this.viewport;(n&&(n.range.headl.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,n));let u=!t.changes.empty||t.flags&2||l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,this.updateForViewport(),u&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes))),t.flags|=this.computeVisibleRanges(),n&&(this.scrollTarget=n),!this.mustEnforceCursorAssoc&&t.selectionSet&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet(Uhe)&&(this.mustEnforceCursorAssoc=!0)}measure(t){let n=t.contentDOM,r=window.getComputedStyle(n),i=this.heightOracle,a=r.whiteSpace;this.defaultTextDirection=r.direction=="rtl"?Gi.RTL:Gi.LTR;let s=this.heightOracle.mustRefreshForWrapping(a),o=n.getBoundingClientRect(),l=s||this.mustMeasureContent||this.contentDOMHeight!=o.height;this.contentDOMHeight=o.height,this.mustMeasureContent=!1;let u=0,d=0;if(o.width&&o.height){let{scaleX:_,scaleY:C}=mhe(n,o);(this.scaleX!=_||this.scaleY!=C)&&(this.scaleX=_,this.scaleY=C,u|=8,s=l=!0)}let f=(parseInt(r.paddingTop)||0)*this.scaleY,p=(parseInt(r.paddingBottom)||0)*this.scaleY;(this.paddingTop!=f||this.paddingBottom!=p)&&(this.paddingTop=f,this.paddingBottom=p,u|=10),this.editorWidth!=t.scrollDOM.clientWidth&&(i.lineWrapping&&(l=!0),this.editorWidth=t.scrollDOM.clientWidth,u|=8);let g=t.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=g&&(this.scrollAnchorHeight=-1,this.scrollTop=g),this.scrolledToBottom=yhe(t.scrollDOM);let b=(this.printing?tVe:eVe)(n,this.paddingTop),S=b.top-this.pixelViewport.top,E=b.bottom-this.pixelViewport.bottom;this.pixelViewport=b;let w=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(w!=this.inView&&(this.inView=w,w&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;let x=o.width;if((this.contentDOMWidth!=x||this.editorHeight!=t.scrollDOM.clientHeight)&&(this.contentDOMWidth=o.width,this.editorHeight=t.scrollDOM.clientHeight,u|=8),l){let _=t.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(_)&&(s=!0),s||i.lineWrapping&&Math.abs(x-this.contentDOMWidth)>i.charWidth){let{lineHeight:C,charWidth:R,textHeight:N}=t.docView.measureTextSize();s=C>0&&i.refresh(a,C,R,N,x/R,_),s&&(t.docView.minWidth=0,u|=8)}S>0&&E>0?d=Math.max(S,E):S<0&&E<0&&(d=Math.min(S,E)),i.heightChanged=!1;for(let C of this.viewports){let R=C.from==this.viewport.from?_:t.docView.measureVisibleLineHeights(C);this.heightMap=(s?al.empty().applyChanges(this.stateDeco,kr.empty,this.heightOracle,[new Ic(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(i,0,s,new YGe(C.from,R))}i.heightChanged&&(u|=2)}let k=!this.viewportIsAppropriate(this.viewport,d)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return k&&(this.viewport=this.getViewport(d,this.scrollTarget)),this.updateForViewport(),(u&2||k)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,t)),u|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.docView.enforceCursorAssoc()),u}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,n){let r=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),i=this.heightMap,a=this.heightOracle,{visibleTop:s,visibleBottom:o}=this,l=new JA(i.lineAt(s-r*1e3,ji.ByHeight,a,0,0).from,i.lineAt(o+(1-r)*1e3,ji.ByHeight,a,0,0).to);if(n){let{head:u}=n.range;if(ul.to){let d=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),f=i.lineAt(u,ji.ByPos,a,0,0),p;n.y=="center"?p=(f.top+f.bottom)/2-d/2:n.y=="start"||n.y=="nearest"&&u=o+Math.max(10,Math.min(r,250)))&&i>s-2*1e3&&a>1,s=i<<1;if(this.defaultTextDirection!=Gi.LTR&&!r)return[];let o=[],l=(u,d,f,p)=>{if(d-uu&&EE.from>=f.from&&E.to<=f.to&&Math.abs(E.from-u)E.fromw));if(!S){if(dE.from<=d&&E.to>=d)){let E=n.moveToLineBoundary(mt.cursor(d),!1,!0).head;E>u&&(d=E)}S=new FD(u,d,this.gapSize(f,u,d,p))}o.push(S)};for(let u of this.viewportLines){if(u.lengthu.from&&l(u.from,p,u,d),gn.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let n=[];Dr.spans(t,this.viewport.from,this.viewport.to,{span(i,a){n.push({from:i,to:a})},point(){}},20);let r=n.length!=this.visibleRanges.length||this.visibleRanges.some((i,a)=>i.from!=n[a].from||i.to!=n[a].to);return this.visibleRanges=n,r?4:0}lineBlockAt(t){return t>=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find(n=>n.from<=t&&n.to>=t)||X2(this.heightMap.lineAt(t,ji.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return X2(this.heightMap.lineAt(this.scaler.fromDOM(t),ji.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(t){let n=this.lineBlockAtHeight(t+8);return n.from>=this.viewport.from||this.viewportLines[0].top-t>200?n:this.viewportLines[0]}elementAtHeight(t){return X2(this.heightMap.blockAt(this.scaler.fromDOM(t),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class JA{constructor(t,n){this.from=t,this.to=n}}function rVe(e,t,n){let r=[],i=e,a=0;return Dr.spans(n,e,t,{span(){},point(s,o){s>i&&(r.push({from:i,to:s}),a+=s-i),i=o}},20),i=1)return t[t.length-1].to;let r=Math.floor(e*n);for(let i=0;;i++){let{from:a,to:s}=t[i],o=s-a;if(r<=o)return a+r;r-=o}}function t_(e,t){let n=0;for(let{from:r,to:i}of e.ranges){if(t<=i){n+=t-r;break}n+=i-r}return n/e.total}function iVe(e,t){for(let n of e)if(t(n))return n}const oee={toDOM(e){return e},fromDOM(e){return e},scale:1};class aVe{constructor(t,n,r){let i=0,a=0,s=0;this.viewports=r.map(({from:o,to:l})=>{let u=n.lineAt(o,ji.ByPos,t,0,0).top,d=n.lineAt(l,ji.ByPos,t,0,0).bottom;return i+=d-u,{from:o,to:l,top:u,bottom:d,domTop:0,domBottom:0}}),this.scale=(7e6-i)/(n.height-i);for(let o of this.viewports)o.domTop=s+(o.top-a)*this.scale,s=o.domBottom=o.domTop+(o.bottom-o.top),a=o.bottom}toDOM(t){for(let n=0,r=0,i=0;;n++){let a=nX2(i,t)):e._content)}const n_=pn.define({combine:e=>e.join(" ")}),j9=pn.define({combine:e=>e.indexOf(!0)>-1}),W9=Sm.newName(),ape=Sm.newName(),spe=Sm.newName(),ope={"&light":"."+ape,"&dark":"."+spe};function Q9(e,t,n){return new Sm(t,{finish(r){return/&/.test(r)?r.replace(/&\w*/,i=>{if(i=="&")return e;if(!n||!n[i])throw new RangeError(`Unsupported selector: ${i}`);return n[i]}):e+" "+r}})}const sVe=Q9("."+W9,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},ope),K2="￿";class oVe{constructor(t,n){this.points=t,this.text="",this.lineSeparator=n.facet(Fr.lineSeparator)}append(t){this.text+=t}lineBreak(){this.text+=K2}readRange(t,n){if(!t)return this;let r=t.parentNode;for(let i=t;;){this.findPointBefore(r,i);let a=this.text.length;this.readNode(i);let s=i.nextSibling;if(s==n)break;let o=Wi.get(i),l=Wi.get(s);(o&&l?o.breakAfter:(o?o.breakAfter:lee(i))||lee(s)&&(i.nodeName!="BR"||i.cmIgnore)&&this.text.length>a)&&this.lineBreak(),i=s}return this.findPointBefore(r,n),this}readTextNode(t){let n=t.nodeValue;for(let r of this.points)r.node==t&&(r.pos=this.text.length+Math.min(r.offset,n.length));for(let r=0,i=this.lineSeparator?null:/\r\n?|\n/g;;){let a=-1,s=1,o;if(this.lineSeparator?(a=n.indexOf(this.lineSeparator,r),s=this.lineSeparator.length):(o=i.exec(n))&&(a=o.index,s=o[0].length),this.append(n.slice(r,a<0?n.length:a)),a<0)break;if(this.lineBreak(),s>1)for(let l of this.points)l.node==t&&l.pos>this.text.length&&(l.pos-=s-1);r=a+s}}readNode(t){if(t.cmIgnore)return;let n=Wi.get(t),r=n&&n.overrideDOMText;if(r!=null){this.findPointInside(t,r.length);for(let i=r.iter();!i.next().done;)i.lineBreak?this.lineBreak():this.append(i.value)}else t.nodeType==3?this.readTextNode(t):t.nodeName=="BR"?t.nextSibling&&this.lineBreak():t.nodeType==1&&this.readRange(t.firstChild,null)}findPointBefore(t,n){for(let r of this.points)r.node==t&&t.childNodes[r.offset]==n&&(r.pos=this.text.length)}findPointInside(t,n){for(let r of this.points)(t.nodeType==3?r.node==t:t.contains(r.node))&&(r.pos=this.text.length+(lVe(t,r.node,r.offset)?n:0))}}function lVe(e,t,n){for(;;){if(!t||n-1)this.newSel=null;else if(n>-1&&(this.bounds=t.docView.domBoundsAround(n,r,0))){let o=a||s?[]:fVe(t),l=new oVe(o,t.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=hVe(o,this.bounds.from)}else{let o=t.observer.selectionRange,l=a&&a.node==o.focusNode&&a.offset==o.focusOffset||!C9(t.contentDOM,o.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(o.focusNode,o.focusOffset),u=s&&s.node==o.anchorNode&&s.offset==o.anchorOffset||!C9(t.contentDOM,o.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(o.anchorNode,o.anchorOffset),d=t.viewport;if(yn.ios&&t.state.selection.main.empty&&l!=u&&(d.from>0||d.toDate.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:s,to:o}=t.bounds,l=i.from,u=null;(a===8||yn.android&&t.text.length=i.from&&n.to<=i.to&&(n.from!=i.from||n.to!=i.to)&&i.to-i.from-(n.to-n.from)<=4?n={from:i.from,to:i.to,insert:e.state.doc.slice(i.from,n.from).append(n.insert).append(e.state.doc.slice(n.to,i.to))}:(yn.mac||yn.android)&&n&&n.from==n.to&&n.from==i.head-1&&/^\. ?$/.test(n.insert.toString())&&e.contentDOM.getAttribute("autocorrect")=="off"?(r&&n.insert.length==2&&(r=mt.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:kr.of([" "])}):yn.chrome&&n&&n.from==n.to&&n.from==i.head&&n.insert.toString()==` + `&&e.lineWrapping&&(r&&(r=mt.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:kr.of([" "])}),n){if(yn.ios&&e.inputState.flushIOSKey()||yn.android&&(n.from==i.from&&n.to==i.to&&n.insert.length==1&&n.insert.lines==2&&rv(e.contentDOM,"Enter",13)||(n.from==i.from-1&&n.to==i.to&&n.insert.length==0||a==8&&n.insert.lengthi.head)&&rv(e.contentDOM,"Backspace",8)||n.from==i.from&&n.to==i.to+1&&n.insert.length==0&&rv(e.contentDOM,"Delete",46)))return!0;let s=n.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let o,l=()=>o||(o=cVe(e,n,r));return e.state.facet($he).some(u=>u(e,n.from,n.to,s,l))||e.dispatch(l()),!0}else if(r&&!r.main.eq(i)){let s=!1,o="select";return e.inputState.lastSelectionTime>Date.now()-50&&(e.inputState.lastSelectionOrigin=="select"&&(s=!0),o=e.inputState.lastSelectionOrigin),e.dispatch({selection:r,scrollIntoView:s,userEvent:o}),!0}else return!1}function cVe(e,t,n){let r,i=e.state,a=i.selection.main;if(t.from>=a.from&&t.to<=a.to&&t.to-t.from>=(a.to-a.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let o=a.fromt.to?i.sliceDoc(t.to,a.to):"";r=i.replaceSelection(e.state.toText(o+t.insert.sliceString(0,void 0,e.state.lineBreak)+l))}else{let o=i.changes(t),l=n&&n.main.to<=o.newLength?n.main:void 0;if(i.selection.ranges.length>1&&e.inputState.composing>=0&&t.to<=a.to&&t.to>=a.to-10){let u=e.state.sliceDoc(t.from,t.to),d,f=n&&Ghe(e,n.main.head);if(f){let b=t.insert.length-(t.to-t.from);d={from:f.from,to:f.to-b}}else d=e.state.doc.lineAt(a.head);let p=a.to-t.to,g=a.to-a.from;r=i.changeByRange(b=>{if(b.from==a.from&&b.to==a.to)return{changes:o,range:l||b.map(o)};let S=b.to-p,E=S-u.length;if(b.to-b.from!=g||e.state.sliceDoc(E,S)!=u||b.to>=d.from&&b.from<=d.to)return{range:b};let w=i.changes({from:E,to:S,insert:t.insert}),x=b.to-a.to;return{changes:w,range:l?mt.range(Math.max(0,l.anchor+x),Math.max(0,l.head+x)):b.map(w)}})}else r={changes:o,selection:l&&i.selection.replaceRange(l)}}let s="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,s+=".compose",e.inputState.compositionFirstChange&&(s+=".start",e.inputState.compositionFirstChange=!1)),i.update(r,{userEvent:s,scrollIntoView:!0})}function dVe(e,t,n,r){let i=Math.min(e.length,t.length),a=0;for(;a0&&o>0&&e.charCodeAt(s-1)==t.charCodeAt(o-1);)s--,o--;if(r=="end"){let l=Math.max(0,a-Math.min(s,o));n-=s+l-a}if(s=s?a-n:0;a-=l,o=a+(o-s),s=a}else if(o=o?a-n:0;a-=l,s=a+(s-o),o=a}return{from:a,toA:s,toB:o}}function fVe(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}=e.observer.selectionRange;return n&&(t.push(new uee(n,r)),(i!=n||a!=r)&&t.push(new uee(i,a))),t}function hVe(e,t){if(e.length==0)return null;let n=e[0].pos,r=e.length==2?e[1].pos:n;return n>-1&&r>-1?mt.single(n+t,r+t):null}const pVe={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},BD=yn.ie&&yn.ie_version<=11;class mVe{constructor(t){this.view=t,this.active=!1,this.selectionRange=new KQe,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=t.contentDOM,this.observer=new MutationObserver(n=>{for(let r of n)this.queue.push(r);(yn.ie&&yn.ie_version<=11||yn.ios&&t.composing)&&n.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),BD&&(this.onCharData=n=>{this.queue.push({target:n.target,type:"characterData",oldValue:n.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var n;((n=this.view.docView)===null||n===void 0?void 0:n.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),n.length>0&&n[n.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(n=>{n.length>0&&n[n.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(t){this.view.inputState.runHandlers("scroll",t),this.intersecting&&this.view.measure()}onScroll(t){this.intersecting&&this.flush(!1),this.onScrollChanged(t)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(t){if(this.gapIntersection&&(t.length!=this.gaps.length||this.gaps.some((n,r)=>n!=t[r]))){this.gapIntersection.disconnect();for(let n of t)this.gapIntersection.observe(n);this.gaps=t}}onSelectionChange(t){let n=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:r}=this,i=this.selectionRange;if(r.state.facet(eI)?r.root.activeElement!=this.dom:!_4(r.dom,i))return;let a=i.anchorNode&&r.docView.nearest(i.anchorNode);if(a&&a.ignoreEvent(t)){n||(this.selectionChanged=!1);return}(yn.ie&&yn.ie_version<=11||yn.android&&yn.chrome)&&!r.state.selection.main.empty&&i.focusNode&&_E(i.focusNode,i.focusOffset,i.anchorNode,i.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:t}=this,n=yn.safari&&t.root.nodeType==11&&qQe(this.dom.ownerDocument)==this.dom&&gVe(this.view)||fC(t.root);if(!n||this.selectionRange.eq(n))return!1;let r=_4(this.dom,n);return r&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime{let a=this.delayedAndroidKey;a&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=a.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&a.force&&rv(this.dom,a.key,a.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(i)}(!this.delayedAndroidKey||t=="Enter")&&(this.delayedAndroidKey={key:t,keyCode:n,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}processRecords(){let t=this.pendingRecords();t.length&&(this.queue=[]);let n=-1,r=-1,i=!1;for(let a of t){let s=this.readMutation(a);s&&(s.typeOver&&(i=!0),n==-1?{from:n,to:r}=s:(n=Math.min(s.from,n),r=Math.max(s.to,r)))}return{from:n,to:r,typeOver:i}}readChange(){let{from:t,to:n,typeOver:r}=this.processRecords(),i=this.selectionChanged&&_4(this.dom,this.selectionRange);if(t<0&&!i)return null;t>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let a=new uVe(this.view,t,n,r);return this.view.docView.domChanged={newSel:a.newSel?a.newSel.main:null},a}flush(t=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;t&&this.readSelectionRange();let n=this.readChange();if(!n)return this.view.requestMeasure(),!1;let r=this.view.state,i=lpe(this.view,n);return this.view.state==r&&this.view.update([]),i}readMutation(t){let n=this.view.docView.nearest(t.target);if(!n||n.ignoreMutation(t))return null;if(n.markDirty(t.type=="attributes"),t.type=="attributes"&&(n.flags|=4),t.type=="childList"){let r=cee(n,t.previousSibling||t.target.previousSibling,-1),i=cee(n,t.nextSibling||t.target.nextSibling,1);return{from:r?n.posAfter(r):n.posAtStart,to:i?n.posBefore(i):n.posAtEnd,typeOver:!1}}else return t.type=="characterData"?{from:n.posAtStart,to:n.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}:null}setWindow(t){t!=this.win&&(this.removeWindowListeners(this.win),this.win=t,this.addWindowListeners(this.win))}addWindowListeners(t){t.addEventListener("resize",this.onResize),t.addEventListener("beforeprint",this.onPrint),t.addEventListener("scroll",this.onScroll),t.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(t){t.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onResize),t.removeEventListener("beforeprint",this.onPrint),t.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var t,n,r;this.stop(),(t=this.intersection)===null||t===void 0||t.disconnect(),(n=this.gapIntersection)===null||n===void 0||n.disconnect(),(r=this.resizeScroll)===null||r===void 0||r.disconnect();for(let i of this.scrollTargets)i.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function cee(e,t,n){for(;t;){let r=Wi.get(t);if(r&&r.parent==e)return r;let i=t.parentNode;t=i!=e.dom?i:n>0?t.nextSibling:t.previousSibling}return null}function gVe(e){let t=null;function n(l){l.preventDefault(),l.stopImmediatePropagation(),t=l.getTargetRanges()[0]}if(e.contentDOM.addEventListener("beforeinput",n,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",n,!0),!t)return null;let r=t.startContainer,i=t.startOffset,a=t.endContainer,s=t.endOffset,o=e.docView.domAtPos(e.state.selection.main.anchor);return _E(o.node,o.offset,a,s)&&([r,i,a,s]=[a,s,r,i]),{anchorNode:r,anchorOffset:i,focusNode:a,focusOffset:s}}class rn{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(t={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),t.parent&&t.parent.appendChild(this.dom);let{dispatch:n}=t;this.dispatchTransactions=t.dispatchTransactions||n&&(r=>r.forEach(i=>n(i,this)))||(r=>this.update(r)),this.dispatch=this.dispatch.bind(this),this._root=t.root||JQe(t.parent)||document,this.viewState=new see(t.state||Fr.create(t)),t.scrollTo&&t.scrollTo.is(ZA)&&(this.viewState.scrollTarget=t.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Y2).map(r=>new MD(r));for(let r of this.plugins)r.update(this);this.observer=new mVe(this),this.inputState=new IGe(this),this.inputState.ensureHandlers(this.plugins),this.docView=new HJ(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...t){let n=t.length==1&&t[0]instanceof gs?t:t.length==1&&Array.isArray(t[0])?t[0]:[this.state.update(...t)];this.dispatchTransactions(n,this)}update(t){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let n=!1,r=!1,i,a=this.state;for(let p of t){if(p.startState!=a)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");a=p.state}if(this.destroyed){this.viewState.state=a;return}let s=this.hasFocus,o=0,l=null;t.some(p=>p.annotation(tpe))?(this.inputState.notifiedFocused=s,o=1):s!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=s,l=npe(a,s),l||(o=1));let u=this.observer.delayedAndroidKey,d=null;if(u?(this.observer.clearDelayedAndroidKey(),d=this.observer.readChange(),(d&&!this.state.doc.eq(a.doc)||!this.state.selection.eq(a.selection))&&(d=null)):this.observer.clear(),a.facet(Fr.phrases)!=this.state.facet(Fr.phrases))return this.setState(a);i=hC.create(this,a,t),i.flags|=o;let f=this.viewState.scrollTarget;try{this.updateState=2;for(let p of t){if(f&&(f=f.map(p.changes)),p.scrollIntoView){let{main:g}=p.state.selection;f=new iv(g.empty?g:mt.cursor(g.head,g.head>g.anchor?-1:1))}for(let g of p.effects)g.is(ZA)&&(f=g.value.clip(this.state))}this.viewState.update(i,f),this.bidiCache=pC.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),n=this.docView.update(i),this.state.facet(Z2)!=this.styleModules&&this.mountStyles(),r=this.updateAttrs(),this.showAnnouncements(t),this.docView.updateSelection(n,t.some(p=>p.isUserEvent("select.pointer")))}finally{this.updateState=0}if(i.startState.facet(n_)!=i.state.facet(n_)&&(this.viewState.mustMeasureContent=!0),(n||r||f||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!i.empty)for(let p of this.state.facet(B9))try{p(i)}catch(g){Rc(this.state,g,"update listener")}(l||d)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),d&&!lpe(this,d)&&u.force&&rv(this.contentDOM,u.key,u.keyCode)})}setState(t){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=t;return}this.updateState=2;let n=this.hasFocus;try{for(let r of this.plugins)r.destroy(this);this.viewState=new see(t),this.plugins=t.facet(Y2).map(r=>new MD(r)),this.pluginMap.clear();for(let r of this.plugins)r.update(this);this.docView.destroy(),this.docView=new HJ(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}n&&this.focus(),this.requestMeasure()}updatePlugins(t){let n=t.startState.facet(Y2),r=t.state.facet(Y2);if(n!=r){let i=[];for(let a of r){let s=n.indexOf(a);if(s<0)i.push(new MD(a));else{let o=this.plugins[s];o.mustUpdate=t,i.push(o)}}for(let a of this.plugins)a.mustUpdate!=t&&a.destroy(this);this.plugins=i,this.pluginMap.clear()}else for(let i of this.plugins)i.mustUpdate=t;for(let i=0;i-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,t&&this.observer.forceFlush();let n=null,r=this.scrollDOM,i=r.scrollTop*this.scaleY,{scrollAnchorPos:a,scrollAnchorHeight:s}=this.viewState;Math.abs(i-this.viewState.scrollTop)>1&&(s=-1),this.viewState.scrollAnchorHeight=-1;try{for(let o=0;;o++){if(s<0)if(yhe(r))a=-1,s=this.viewState.heightMap.height;else{let g=this.viewState.scrollAnchorAt(i);a=g.from,s=g.top}this.updateState=1;let l=this.viewState.measure(this);if(!l&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(o>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let u=[];l&4||([this.measureRequests,u]=[u,this.measureRequests]);let d=u.map(g=>{try{return g.read(this)}catch(b){return Rc(this.state,b),dee}}),f=hC.create(this,this.state,[]),p=!1;f.flags|=l,n?n.flags|=l:n=f,this.updateState=2,f.empty||(this.updatePlugins(f),this.inputState.update(f),this.updateAttrs(),p=this.docView.update(f));for(let g=0;g1||b<-1){i=i+b,r.scrollTop=i/this.scaleY,s=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(n&&!n.empty)for(let o of this.state.facet(B9))o(n)}get themeClasses(){return W9+" "+(this.state.facet(j9)?spe:ape)+" "+this.state.facet(n_)}updateAttrs(){let t=fee(this,zhe,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(eI)?"true":"false",class:"cm-content",style:`${yn.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),fee(this,wz,n);let r=this.observer.ignore(()=>{let i=P9(this.contentDOM,this.contentAttrs,n),a=P9(this.dom,this.editorAttrs,t);return i||a});return this.editorAttrs=t,this.contentAttrs=n,r}showAnnouncements(t){let n=!0;for(let r of t)for(let i of r.effects)if(i.is(rn.announce)){n&&(this.announceDOM.textContent=""),n=!1;let a=this.announceDOM.appendChild(document.createElement("div"));a.textContent=i.value}}mountStyles(){this.styleModules=this.state.facet(Z2);let t=this.state.facet(rn.cspNonce);Sm.mount(this.root,this.styleModules.concat(sVe).reverse(),t?{nonce:t}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(t){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),t){if(this.measureRequests.indexOf(t)>-1)return;if(t.key!=null){for(let n=0;nr.spec==t)||null),n&&n.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(t){return this.readMeasured(),this.viewState.elementAtHeight(t)}lineBlockAtHeight(t){return this.readMeasured(),this.viewState.lineBlockAtHeight(t)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(t){return this.viewState.lineBlockAt(t)}get contentHeight(){return this.viewState.contentHeight}moveByChar(t,n,r){return $D(this,t,qJ(this,t,n,r))}moveByGroup(t,n){return $D(this,t,qJ(this,t,n,r=>CGe(this,t.head,r)))}visualLineSide(t,n){let r=this.bidiSpans(t),i=this.textDirectionAt(t.from),a=r[n?r.length-1:0];return mt.cursor(a.side(n,i)+t.from,a.forward(!n,i)?1:-1)}moveToLineBoundary(t,n,r=!0){return _Ge(this,t,n,r)}moveVertically(t,n,r){return $D(this,t,RGe(this,t,n,r))}domAtPos(t){return this.docView.domAtPos(t)}posAtDOM(t,n=0){return this.docView.posFromDOM(t,n)}posAtCoords(t,n=!0){return this.readMeasured(),qhe(this,t,n)}coordsAtPos(t,n=1){this.readMeasured();let r=this.docView.coordsAt(t,n);if(!r||r.left==r.right)return r;let i=this.state.doc.lineAt(t),a=this.bidiSpans(i),s=a[Z0.find(a,t-i.from,-1,n)];return vz(r,s.dir==Gi.LTR==n>0)}coordsForChar(t){return this.readMeasured(),this.docView.coordsForChar(t)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(t){return!this.state.facet(Bhe)||tthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>bVe)return Ihe(t.length);let n=this.textDirectionAt(t.from),r;for(let a of this.bidiCache)if(a.from==t.from&&a.dir==n&&(a.fresh||Rhe(a.isolates,r=zJ(this,t))))return a.order;r||(r=zJ(this,t));let i=fGe(t.text,n,r);return this.bidiCache.push(new pC(t.from,t.to,n,r,!0,i)),i}get hasFocus(){var t;return(this.dom.ownerDocument.hasFocus()||yn.safari&&((t=this.inputState)===null||t===void 0?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{ghe(this.contentDOM),this.docView.updateSelection()})}setRoot(t){this._root!=t&&(this._root=t,this.observer.setWindow((t.nodeType==9?t:t.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let t of this.plugins)t.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(t,n={}){return ZA.of(new iv(typeof t=="number"?mt.cursor(t):t,n.y,n.x,n.yMargin,n.xMargin))}scrollSnapshot(){let{scrollTop:t,scrollLeft:n}=this.scrollDOM,r=this.viewState.scrollAnchorAt(t);return ZA.of(new iv(mt.cursor(r.from),"start","start",r.top-t,n,!0))}static domEventHandlers(t){return ya.define(()=>({}),{eventHandlers:t})}static domEventObservers(t){return ya.define(()=>({}),{eventObservers:t})}static theme(t,n){let r=Sm.newName(),i=[n_.of(r),Z2.of(Q9(`.${r}`,t))];return n&&n.dark&&i.push(j9.of(!0)),i}static baseTheme(t){return Fp.lowest(Z2.of(Q9("."+W9,t,ope)))}static findFromDOM(t){var n;let r=t.querySelector(".cm-content"),i=r&&Wi.get(r)||Wi.get(t);return((n=i==null?void 0:i.rootView)===null||n===void 0?void 0:n.view)||null}}rn.styleModule=Z2;rn.inputHandler=$he;rn.focusChangeEffect=Fhe;rn.perLineTextDirection=Bhe;rn.exceptionSink=Lhe;rn.updateListener=B9;rn.editable=eI;rn.mouseSelectionStyle=Mhe;rn.dragMovesSelection=Phe;rn.clickAddsSelectionRange=Dhe;rn.decorations=Bw;rn.outerDecorations=Hhe;rn.atomicRanges=xz;rn.bidiIsolatedRanges=jhe;rn.scrollMargins=Whe;rn.darkTheme=j9;rn.cspNonce=pn.define({combine:e=>e.length?e[0]:""});rn.contentAttributes=wz;rn.editorAttributes=zhe;rn.lineWrapping=rn.contentAttributes.of({class:"cm-lineWrapping"});rn.announce=sr.define();const bVe=4096,dee={};class pC{constructor(t,n,r,i,a,s){this.from=t,this.to=n,this.dir=r,this.isolates=i,this.fresh=a,this.order=s}static update(t,n){if(n.empty&&!t.some(a=>a.fresh))return t;let r=[],i=t.length?t[t.length-1].dir:Gi.LTR;for(let a=Math.max(0,t.length-10);a=0;i--){let a=r[i],s=typeof a=="function"?a(e):a;s&&D9(s,n)}return n}const yVe=yn.mac?"mac":yn.windows?"win":yn.linux?"linux":"key";function vVe(e,t){const n=e.split(/-(?!$)/);let r=n[n.length-1];r=="Space"&&(r=" ");let i,a,s,o;for(let l=0;lr.concat(i),[]))),n}function SVe(e,t,n){return cpe(upe(e.state),t,e,n)}let N0=null;const EVe=4e3;function wVe(e,t=yVe){let n=Object.create(null),r=Object.create(null),i=(s,o)=>{let l=r[s];if(l==null)r[s]=o;else if(l!=o)throw new Error("Key binding "+s+" is used both as a regular binding and as a multi-stroke prefix")},a=(s,o,l,u,d)=>{var f,p;let g=n[s]||(n[s]=Object.create(null)),b=o.split(/ (?!$)/).map(w=>vVe(w,t));for(let w=1;w{let _=N0={view:k,prefix:x,scope:s};return setTimeout(()=>{N0==_&&(N0=null)},EVe),!0}]})}let S=b.join(" ");i(S,!1);let E=g[S]||(g[S]={preventDefault:!1,stopPropagation:!1,run:((p=(f=g._any)===null||f===void 0?void 0:f.run)===null||p===void 0?void 0:p.slice())||[]});l&&E.run.push(l),u&&(E.preventDefault=!0),d&&(E.stopPropagation=!0)};for(let s of e){let o=s.scope?s.scope.split(" "):["editor"];if(s.any)for(let u of o){let d=n[u]||(n[u]=Object.create(null));d._any||(d._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let f in d)d[f].run.push(s.any)}let l=s[t]||s.key;if(l)for(let u of o)a(u,l,s.run,s.preventDefault,s.stopPropagation),s.shift&&a(u,"Shift-"+l,s.shift,s.preventDefault,s.stopPropagation)}return n}function cpe(e,t,n,r){let i=VQe(t),a=Ws(i,0),s=vc(a)==i.length&&i!=" ",o="",l=!1,u=!1,d=!1;N0&&N0.view==n&&N0.scope==r&&(o=N0.prefix+" ",Zhe.indexOf(t.keyCode)<0&&(u=!0,N0=null));let f=new Set,p=E=>{if(E){for(let w of E.run)if(!f.has(w)&&(f.add(w),w(n,t)))return E.stopPropagation&&(d=!0),!0;E.preventDefault&&(E.stopPropagation&&(d=!0),u=!0)}return!1},g=e[r],b,S;return g&&(p(g[o+r_(i,t,!s)])?l=!0:s&&(t.altKey||t.metaKey||t.ctrlKey)&&!(yn.windows&&t.ctrlKey&&t.altKey)&&(b=Em[t.keyCode])&&b!=i?(p(g[o+r_(b,t,!0)])||t.shiftKey&&(S=Lw[t.keyCode])!=i&&S!=b&&p(g[o+r_(S,t,!1)]))&&(l=!0):s&&t.shiftKey&&p(g[o+r_(i,t,!0)])&&(l=!0),!l&&p(g._any)&&(l=!0)),u&&(l=!0),l&&d&&t.stopPropagation(),l}class Kx{constructor(t,n,r,i,a){this.className=t,this.left=n,this.top=r,this.width=i,this.height=a}draw(){let t=document.createElement("div");return t.className=this.className,this.adjust(t),t}update(t,n){return n.className!=this.className?!1:(this.adjust(t),!0)}adjust(t){t.style.left=this.left+"px",t.style.top=this.top+"px",this.width!=null&&(t.style.width=this.width+"px"),t.style.height=this.height+"px"}eq(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.className}static forRange(t,n,r){if(r.empty){let i=t.coordsAtPos(r.head,r.assoc||1);if(!i)return[];let a=dpe(t);return[new Kx(n,i.left-a.left,i.top-a.top,null,i.bottom-i.top)]}else return xVe(t,n,r)}}function dpe(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==Gi.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function pee(e,t,n){let r=mt.cursor(t);return{from:Math.max(n.from,e.moveToLineBoundary(r,!1,!0).from),to:Math.min(n.to,e.moveToLineBoundary(r,!0,!0).from),type:il.Text}}function xVe(e,t,n){if(n.to<=e.viewport.from||n.from>=e.viewport.to)return[];let r=Math.max(n.from,e.viewport.from),i=Math.min(n.to,e.viewport.to),a=e.textDirection==Gi.LTR,s=e.contentDOM,o=s.getBoundingClientRect(),l=dpe(e),u=s.querySelector(".cm-line"),d=u&&window.getComputedStyle(u),f=o.left+(d?parseInt(d.paddingLeft)+Math.min(0,parseInt(d.textIndent)):0),p=o.right-(d?parseInt(d.paddingRight):0),g=z9(e,r),b=z9(e,i),S=g.type==il.Text?g:null,E=b.type==il.Text?b:null;if(S&&(e.lineWrapping||g.widgetLineBreaks)&&(S=pee(e,r,S)),E&&(e.lineWrapping||b.widgetLineBreaks)&&(E=pee(e,i,E)),S&&E&&S.from==E.from)return x(k(n.from,n.to,S));{let C=S?k(n.from,null,S):_(g,!1),R=E?k(null,n.to,E):_(b,!0),N=[];return(S||g).to<(E||b).from-(S&&E?1:0)||g.widgetLineBreaks>1&&C.bottom+e.defaultLineHeight/2V&&ne.from=re)break;W>q&&G(Math.max(se,q),C==null&&se<=V,Math.min(W,re),R==null&&W>=ie,Z.dir)}if(q=ee.to+1,q>=re)break}return F.length==0&&G(V,C==null,ie,R==null,e.textDirection),{top:M,bottom:U,horizontal:F}}function _(C,R){let N=o.top+(R?C.top:C.bottom);return{top:N,bottom:N,horizontal:[]}}}function TVe(e,t){return e.constructor==t.constructor&&e.eq(t)}class kVe{constructor(t,n){this.view=t,this.layer=n,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=t.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),n.above&&this.dom.classList.add("cm-layer-above"),n.class&&this.dom.classList.add(n.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(t.state),t.requestMeasure(this.measureReq),n.mount&&n.mount(this.dom,t)}update(t){t.startState.facet(I4)!=t.state.facet(I4)&&this.setOrder(t.state),(this.layer.update(t,this.dom)||t.geometryChanged)&&(this.scale(),t.view.requestMeasure(this.measureReq))}setOrder(t){let n=0,r=t.facet(I4);for(;n!TVe(n,this.drawn[r]))){let n=this.dom.firstChild,r=0;for(let i of t)i.update&&n&&i.constructor&&this.drawn[r].constructor&&i.update(n,this.drawn[r])?(n=n.nextSibling,r++):this.dom.insertBefore(i.draw(),n);for(;n;){let i=n.nextSibling;n.remove(),n=i}this.drawn=t}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const I4=pn.define();function fpe(e){return[ya.define(t=>new kVe(t,e)),I4.of(e)]}const hpe=!yn.ios,Uw=pn.define({combine(e){return rh(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(t,n)=>Math.min(t,n),drawRangeCursor:(t,n)=>t||n})}});function AVe(e={}){return[Uw.of(e),_Ve,CVe,RVe,Uhe.of(!0)]}function ppe(e){return e.startState.facet(Uw)!=e.state.facet(Uw)}const _Ve=fpe({above:!0,markers(e){let{state:t}=e,n=t.facet(Uw),r=[];for(let i of t.selection.ranges){let a=i==t.selection.main;if(i.empty?!a||hpe:n.drawRangeCursor){let s=a?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",o=i.empty?i:mt.cursor(i.head,i.head>i.anchor?-1:1);for(let l of Kx.forRange(e,s,o))r.push(l)}}return r},update(e,t){e.transactions.some(r=>r.selection)&&(t.style.animationName=t.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let n=ppe(e);return n&&mee(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){mee(t.state,e)},class:"cm-cursorLayer"});function mee(e,t){t.style.animationDuration=e.facet(Uw).cursorBlinkRate+"ms"}const CVe=fpe({above:!1,markers(e){return e.state.selection.ranges.map(t=>t.empty?[]:Kx.forRange(e,"cm-selectionBackground",t)).reduce((t,n)=>t.concat(n))},update(e,t){return e.docChanged||e.selectionSet||e.viewportChanged||ppe(e)},class:"cm-selectionLayer"}),G9={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};hpe&&(G9[".cm-line"].caretColor="transparent !important",G9[".cm-content"]={caretColor:"transparent !important"});const RVe=Fp.highest(rn.theme(G9)),mpe=sr.define({map(e,t){return e==null?null:t.mapPos(e)}}),J2=Ns.define({create(){return null},update(e,t){return e!=null&&(e=t.changes.mapPos(e)),t.effects.reduce((n,r)=>r.is(mpe)?r.value:n,e)}}),IVe=ya.fromClass(class{constructor(e){this.view=e,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(e){var t;let n=e.state.field(J2);n==null?this.cursor!=null&&((t=this.cursor)===null||t===void 0||t.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(e.startState.field(J2)!=n||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:e}=this,t=e.state.field(J2),n=t!=null&&e.coordsAtPos(t);if(!n)return null;let r=e.scrollDOM.getBoundingClientRect();return{left:n.left-r.left+e.scrollDOM.scrollLeft*e.scaleX,top:n.top-r.top+e.scrollDOM.scrollTop*e.scaleY,height:n.bottom-n.top}}drawCursor(e){if(this.cursor){let{scaleX:t,scaleY:n}=this.view;e?(this.cursor.style.left=e.left/t+"px",this.cursor.style.top=e.top/n+"px",this.cursor.style.height=e.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(e){this.view.state.field(J2)!=e&&this.view.dispatch({effects:mpe.of(e)})}},{eventObservers:{dragover(e){this.setDropPos(this.view.posAtCoords({x:e.clientX,y:e.clientY}))},dragleave(e){(e.target==this.view.contentDOM||!this.view.contentDOM.contains(e.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function NVe(){return[J2,IVe]}function gee(e,t,n,r,i){t.lastIndex=0;for(let a=e.iterRange(n,r),s=n,o;!a.next().done;s+=a.value.length)if(!a.lineBreak)for(;o=t.exec(a.value);)i(s+o.index,o)}function DVe(e,t){let n=e.visibleRanges;if(n.length==1&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n;let r=[];for(let{from:i,to:a}of n)i=Math.max(e.state.doc.lineAt(i).from,i-t),a=Math.min(e.state.doc.lineAt(a).to,a+t),r.length&&r[r.length-1].to>=i?r[r.length-1].to=a:r.push({from:i,to:a});return r}class PVe{constructor(t){const{regexp:n,decoration:r,decorate:i,boundary:a,maxLength:s=1e3}=t;if(!n.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=n,i)this.addMatch=(o,l,u,d)=>i(d,u,u+o[0].length,o,l);else if(typeof r=="function")this.addMatch=(o,l,u,d)=>{let f=r(o,l,u);f&&d(u,u+o[0].length,f)};else if(r)this.addMatch=(o,l,u,d)=>d(u,u+o[0].length,r);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=a,this.maxLength=s}createDeco(t){let n=new Om,r=n.add.bind(n);for(let{from:i,to:a}of DVe(t,this.maxLength))gee(t.state.doc,this.regexp,i,a,(s,o)=>this.addMatch(o,t,s,r));return n.finish()}updateDeco(t,n){let r=1e9,i=-1;return t.docChanged&&t.changes.iterChanges((a,s,o,l)=>{l>t.view.viewport.from&&o1e3?this.createDeco(t.view):i>-1?this.updateRange(t.view,n.map(t.changes),r,i):n}updateRange(t,n,r,i){for(let a of t.visibleRanges){let s=Math.max(a.from,r),o=Math.min(a.to,i);if(o>s){let l=t.state.doc.lineAt(s),u=l.tol.from;s--)if(this.boundary.test(l.text[s-1-l.from])){d=s;break}for(;op.push(w.range(S,E));if(l==u)for(this.regexp.lastIndex=d-l.from;(g=this.regexp.exec(l.text))&&g.indexthis.addMatch(E,t,S,b));n=n.update({filterFrom:d,filterTo:f,filter:(S,E)=>Sf,add:p})}}return n}}const V9=/x/.unicode!=null?"gu":"g",MVe=new RegExp(`[\0-\b +--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,V9),LVe={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let UD=null;function $Ve(){var e;if(UD==null&&typeof document<"u"&&document.body){let t=document.body.style;UD=((e=t.tabSize)!==null&&e!==void 0?e:t.MozTabSize)!=null}return UD||!1}const N4=pn.define({combine(e){let t=rh(e,{render:null,specialChars:MVe,addSpecialChars:null});return(t.replaceTabs=!$Ve())&&(t.specialChars=new RegExp(" |"+t.specialChars.source,V9)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,V9)),t}});function FVe(e={}){return[N4.of(e),BVe()]}let bee=null;function BVe(){return bee||(bee=ya.fromClass(class{constructor(e){this.view=e,this.decorations=wn.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(N4)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new PVe({regexp:e.specialChars,decoration:(t,n,r)=>{let{doc:i}=n.state,a=Ws(t[0],0);if(a==9){let s=i.lineAt(r),o=n.state.tabSize,l=Zf(s.text,o,r-s.from);return wn.replace({widget:new jVe((o-l%o)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[a]||(this.decorationCache[a]=wn.replace({widget:new HVe(e,a)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(N4);e.startState.facet(N4)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))}const UVe="•";function zVe(e){return e>=32?UVe:e==10?"␤":String.fromCharCode(9216+e)}class HVe extends Wd{constructor(t,n){super(),this.options=t,this.code=n}eq(t){return t.code==this.code}toDOM(t){let n=zVe(this.code),r=t.state.phrase("Control character")+" "+(LVe[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,r,n);if(i)return i;let a=document.createElement("span");return a.textContent=n,a.title=r,a.setAttribute("aria-label",r),a.className="cm-specialChar",a}ignoreEvent(){return!1}}class jVe extends Wd{constructor(t){super(),this.width=t}eq(t){return t.width==this.width}toDOM(){let t=document.createElement("span");return t.textContent=" ",t.className="cm-tab",t.style.width=this.width+"px",t}ignoreEvent(){return!1}}function WVe(){return GVe}const QVe=wn.line({class:"cm-activeLine"}),GVe=ya.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=-1,n=[];for(let r of e.state.selection.ranges){let i=e.lineBlockAt(r.head);i.from>t&&(n.push(QVe.range(i.from)),t=i.from)}return wn.set(n)}},{decorations:e=>e.decorations}),q9=2e3;function VVe(e,t,n){let r=Math.min(t.line,n.line),i=Math.max(t.line,n.line),a=[];if(t.off>q9||n.off>q9||t.col<0||n.col<0){let s=Math.min(t.off,n.off),o=Math.max(t.off,n.off);for(let l=r;l<=i;l++){let u=e.doc.line(l);u.length<=o&&a.push(mt.range(u.from+s,u.to+o))}}else{let s=Math.min(t.col,n.col),o=Math.max(t.col,n.col);for(let l=r;l<=i;l++){let u=e.doc.line(l),d=k9(u.text,s,e.tabSize,!0);if(d<0)a.push(mt.cursor(u.to));else{let f=k9(u.text,o,e.tabSize);a.push(mt.range(u.from+d,u.from+f))}}}return a}function qVe(e,t){let n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}function yee(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1),r=e.state.doc.lineAt(n),i=n-r.from,a=i>q9?-1:i==r.length?qVe(e,t.clientX):Zf(r.text,e.state.tabSize,n-r.from);return{line:r.number,col:a,off:i}}function YVe(e,t){let n=yee(e,t),r=e.state.selection;return n?{update(i){if(i.docChanged){let a=i.changes.mapPos(i.startState.doc.line(n.line).from),s=i.state.doc.lineAt(a);n={line:s.number,col:n.col,off:Math.min(n.off,s.length)},r=r.map(i.changes)}},get(i,a,s){let o=yee(e,i);if(!o)return r;let l=VVe(e.state,n,o);return l.length?s?mt.create(l.concat(r.ranges)):mt.create(l):r}}:null}function ZVe(e){let t=n=>n.altKey&&n.button==0;return rn.mouseSelectionStyle.of((n,r)=>t(r)?YVe(n,r):null)}const XVe={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},KVe={style:"cursor: crosshair"};function JVe(e={}){let[t,n]=XVe[e.key||"Alt"],r=ya.fromClass(class{constructor(i){this.view=i,this.isDown=!1}set(i){this.isDown!=i&&(this.isDown=i,this.view.update([]))}},{eventObservers:{keydown(i){this.set(i.keyCode==t||n(i))},keyup(i){(i.keyCode==t||!n(i))&&this.set(!1)},mousemove(i){this.set(n(i))}}});return[r,rn.contentAttributes.of(i=>{var a;return!((a=i.plugin(r))===null||a===void 0)&&a.isDown?KVe:null})]}const E2="-10000px";class gpe{constructor(t,n,r,i){this.facet=n,this.createTooltipView=r,this.removeTooltipView=i,this.input=t.state.facet(n),this.tooltips=this.input.filter(a=>a),this.tooltipViews=this.tooltips.map(r)}update(t,n){var r;let i=t.state.facet(this.facet),a=i.filter(l=>l);if(i===this.input){for(let l of this.tooltipViews)l.update&&l.update(t);return!1}let s=[],o=n?[]:null;for(let l=0;ln[u]=l),n.length=o.length),this.input=i,this.tooltips=a,this.tooltipViews=s,!0}}function eqe(e){let{win:t}=e;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}const zD=pn.define({combine:e=>{var t,n,r;return{position:yn.ios?"absolute":((t=e.find(i=>i.position))===null||t===void 0?void 0:t.position)||"fixed",parent:((n=e.find(i=>i.parent))===null||n===void 0?void 0:n.parent)||null,tooltipSpace:((r=e.find(i=>i.tooltipSpace))===null||r===void 0?void 0:r.tooltipSpace)||eqe}}}),vee=new WeakMap,kz=ya.fromClass(class{constructor(e){this.view=e,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(zD);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new gpe(e,Az,n=>this.createTooltip(n),n=>{this.resizeObserver&&this.resizeObserver.unobserve(n.dom),n.dom.remove()}),this.above=this.manager.tooltips.map(n=>!!n.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(n=>{Date.now()>this.lastTransaction-50&&n.length>0&&n[n.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let n=t||e.geometryChanged,r=e.state.facet(zD);if(r.position!=this.position&&!this.madeAbsolute){this.position=r.position;for(let i of this.manager.tooltipViews)i.dom.style.position=this.position;n=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();for(let i of this.manager.tooltipViews)this.container.appendChild(i.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(e){let t=e.create(this.view);if(t.dom.classList.add("cm-tooltip"),e.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let n=document.createElement("div");n.className="cm-tooltip-arrow",t.dom.appendChild(n)}return t.dom.style.position=this.position,t.dom.style.top=E2,t.dom.style.left="0px",this.container.appendChild(t.dom),t.mount&&t.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(t.dom),t}destroy(){var e,t,n;this.view.win.removeEventListener("resize",this.measureSoon);for(let r of this.manager.tooltipViews)r.dom.remove(),(e=r.destroy)===null||e===void 0||e.call(r);this.parent&&this.container.remove(),(t=this.resizeObserver)===null||t===void 0||t.disconnect(),(n=this.intersectionObserver)===null||n===void 0||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=this.view.dom.getBoundingClientRect(),t=1,n=1,r=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:i}=this.manager.tooltipViews[0];if(yn.gecko)r=i.offsetParent!=this.container.ownerDocument.body;else if(i.style.top==E2&&i.style.left=="0px"){let a=i.getBoundingClientRect();r=Math.abs(a.top+1e4)>1||Math.abs(a.left)>1}}if(r||this.position=="absolute")if(this.parent){let i=this.parent.getBoundingClientRect();i.width&&i.height&&(t=i.width/this.parent.offsetWidth,n=i.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:n}=this.view.viewState);return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map((i,a)=>{let s=this.manager.tooltipViews[a];return s.getCoords?s.getCoords(i.pos):this.view.coordsAtPos(i.pos)}),size:this.manager.tooltipViews.map(({dom:i})=>i.getBoundingClientRect()),space:this.view.state.facet(zD).tooltipSpace(this.view),scaleX:t,scaleY:n,makeAbsolute:r}}writeMeasure(e){var t;if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let o of this.manager.tooltipViews)o.dom.style.position="absolute"}let{editor:n,space:r,scaleX:i,scaleY:a}=e,s=[];for(let o=0;o=Math.min(n.bottom,r.bottom)||f.rightMath.min(n.right,r.right)+.1){d.style.top=E2;continue}let g=l.arrow?u.dom.querySelector(".cm-tooltip-arrow"):null,b=g?7:0,S=p.right-p.left,E=(t=vee.get(u))!==null&&t!==void 0?t:p.bottom-p.top,w=u.offset||nqe,x=this.view.textDirection==Gi.LTR,k=p.width>r.right-r.left?x?r.left:r.right-p.width:x?Math.min(f.left-(g?14:0)+w.x,r.right-S):Math.max(r.left,f.left-S+(g?14:0)-w.x),_=this.above[o];!l.strictSide&&(_?f.top-(p.bottom-p.top)-w.yr.bottom)&&_==r.bottom-f.bottom>f.top-r.top&&(_=this.above[o]=!_);let C=(_?f.top-r.top:r.bottom-f.bottom)-b;if(Ck&&M.topR&&(R=_?M.top-E-2-b:M.bottom+b+2);if(this.position=="absolute"?(d.style.top=(R-e.parent.top)/a+"px",d.style.left=(k-e.parent.left)/i+"px"):(d.style.top=R/a+"px",d.style.left=k/i+"px"),g){let M=f.left+(x?w.x:-w.x)-(k+14-7);g.style.left=M/i+"px"}u.overlap!==!0&&s.push({left:k,top:R,right:N,bottom:R+E}),d.classList.toggle("cm-tooltip-above",_),d.classList.toggle("cm-tooltip-below",!_),u.positioned&&u.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=E2}},{eventObservers:{scroll(){this.maybeMeasure()}}}),tqe=rn.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),nqe={x:0,y:0},Az=pn.define({enables:[kz,tqe]}),mC=pn.define();class tI{static create(t){return new tI(t)}constructor(t){this.view=t,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new gpe(t,mC,n=>this.createHostedView(n),n=>n.dom.remove())}createHostedView(t){let n=t.create(this.view);return n.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(n.dom),this.mounted&&n.mount&&n.mount(this.view),n}mount(t){for(let n of this.manager.tooltipViews)n.mount&&n.mount(t);this.mounted=!0}positioned(t){for(let n of this.manager.tooltipViews)n.positioned&&n.positioned(t)}update(t){this.manager.update(t)}destroy(){var t;for(let n of this.manager.tooltipViews)(t=n.destroy)===null||t===void 0||t.call(n)}passProp(t){let n;for(let r of this.manager.tooltipViews){let i=r[t];if(i!==void 0){if(n===void 0)n=i;else if(n!==i)return}}return n}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const rqe=Az.compute([mC],e=>{let t=e.facet(mC).filter(n=>n);return t.length===0?null:{pos:Math.min(...t.map(n=>n.pos)),end:Math.max(...t.map(n=>{var r;return(r=n.end)!==null&&r!==void 0?r:n.pos})),create:tI.create,above:t[0].above,arrow:t.some(n=>n.arrow)}});class iqe{constructor(t,n,r,i,a){this.view=t,this.source=n,this.field=r,this.setHover=i,this.hoverTime=a,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:t.dom,time:0},this.checkHover=this.checkHover.bind(this),t.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),t.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let t=Date.now()-this.lastMove.time;to.bottom||n.xo.right+t.defaultCharacterWidth)return;let l=t.bidiSpans(t.state.doc.lineAt(i)).find(d=>d.from<=i&&d.to>=i),u=l&&l.dir==Gi.RTL?-1:1;a=n.x{this.pending==o&&(this.pending=null,l&&t.dispatch({effects:this.setHover.of(l)}))},l=>Rc(t.state,l,"hover tooltip"))}else s&&t.dispatch({effects:this.setHover.of(s)})}get tooltip(){let t=this.view.plugin(kz),n=t?t.manager.tooltips.findIndex(r=>r.create==tI.create):-1;return n>-1?t.manager.tooltipViews[n]:null}mousemove(t){var n;this.lastMove={x:t.clientX,y:t.clientY,target:t.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:r,tooltip:i}=this;if(r&&i&&!aqe(i.dom,t)||this.pending){let{pos:a}=r||this.pending,s=(n=r==null?void 0:r.end)!==null&&n!==void 0?n:a;(a==s?this.view.posAtCoords(this.lastMove)!=a:!sqe(this.view,a,s,t.clientX,t.clientY))&&(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(t){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:n}=this;if(n){let{tooltip:r}=this;r&&r.dom.contains(t.relatedTarget)?this.watchTooltipLeave(r.dom):this.view.dispatch({effects:this.setHover.of(null)})}}watchTooltipLeave(t){let n=r=>{t.removeEventListener("mouseleave",n),this.active&&!this.view.dom.contains(r.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})};t.addEventListener("mouseleave",n)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const i_=4;function aqe(e,t){let n=e.getBoundingClientRect();return t.clientX>=n.left-i_&&t.clientX<=n.right+i_&&t.clientY>=n.top-i_&&t.clientY<=n.bottom+i_}function sqe(e,t,n,r,i,a){let s=e.scrollDOM.getBoundingClientRect(),o=e.documentTop+e.documentPadding.top+e.contentHeight;if(s.left>r||s.righti||Math.min(s.bottom,o)=t&&l<=n}function oqe(e,t={}){let n=sr.define(),r=Ns.define({create(){return null},update(i,a){if(i&&(t.hideOnChange&&(a.docChanged||a.selection)||t.hideOn&&t.hideOn(a,i)))return null;if(i&&a.docChanged){let s=a.changes.mapPos(i.pos,-1,Gs.TrackDel);if(s==null)return null;let o=Object.assign(Object.create(null),i);o.pos=s,i.end!=null&&(o.end=a.changes.mapPos(i.end)),i=o}for(let s of a.effects)s.is(n)&&(i=s.value),s.is(lqe)&&(i=null);return i},provide:i=>mC.from(i)});return[r,ya.define(i=>new iqe(i,e,r,n,t.hoverTime||300)),rqe]}function bpe(e,t){let n=e.plugin(kz);if(!n)return null;let r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}const lqe=sr.define(),Oee=pn.define({combine(e){let t,n;for(let r of e)t=t||r.topContainer,n=n||r.bottomContainer;return{topContainer:t,bottomContainer:n}}});function zw(e,t){let n=e.plugin(ype),r=n?n.specs.indexOf(t):-1;return r>-1?n.panels[r]:null}const ype=ya.fromClass(class{constructor(e){this.input=e.state.facet(Hw),this.specs=this.input.filter(n=>n),this.panels=this.specs.map(n=>n(e));let t=e.state.facet(Oee);this.top=new a_(e,!0,t.topContainer),this.bottom=new a_(e,!1,t.bottomContainer),this.top.sync(this.panels.filter(n=>n.top)),this.bottom.sync(this.panels.filter(n=>!n.top));for(let n of this.panels)n.dom.classList.add("cm-panel"),n.mount&&n.mount()}update(e){let t=e.state.facet(Oee);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new a_(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new a_(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(Hw);if(n!=this.input){let r=n.filter(l=>l),i=[],a=[],s=[],o=[];for(let l of r){let u=this.specs.indexOf(l),d;u<0?(d=l(e.view),o.push(d)):(d=this.panels[u],d.update&&d.update(e)),i.push(d),(d.top?a:s).push(d)}this.specs=r,this.panels=i,this.top.sync(a),this.bottom.sync(s);for(let l of o)l.dom.classList.add("cm-panel"),l.mount&&l.mount()}else for(let r of this.panels)r.update&&r.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>rn.scrollMargins.of(t=>{let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class a_{constructor(t,n,r){this.view=t,this.top=n,this.container=r,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(t){for(let n of this.panels)n.destroy&&t.indexOf(n)<0&&n.destroy();this.panels=t,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let n=this.container||this.view.dom;n.insertBefore(this.dom,this.top?n.firstChild:null)}let t=this.dom.firstChild;for(let n of this.panels)if(n.dom.parentNode==this.dom){for(;t!=n.dom;)t=See(t);t=t.nextSibling}else this.dom.insertBefore(n.dom,t);for(;t;)t=See(t)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let t of this.classes.split(" "))t&&this.container.classList.remove(t);for(let t of(this.classes=this.view.themeClasses).split(" "))t&&this.container.classList.add(t)}}}function See(e){let t=e.nextSibling;return e.remove(),t}const Hw=pn.define({enables:ype});class xp extends C1{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}}xp.prototype.elementClass="";xp.prototype.toDOM=void 0;xp.prototype.mapMode=Gs.TrackBefore;xp.prototype.startSide=xp.prototype.endSide=-1;xp.prototype.point=!0;const D4=pn.define(),uqe={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Dr.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},RE=pn.define();function cqe(e){return[vpe(),RE.of(Object.assign(Object.assign({},uqe),e))]}const Eee=pn.define({combine:e=>e.some(t=>t)});function vpe(e){return[dqe]}const dqe=ya.fromClass(class{constructor(e){this.view=e,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=e.state.facet(RE).map(t=>new xee(e,t));for(let t of this.gutters)this.dom.appendChild(t.dom);this.fixed=!e.state.facet(Eee),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,r=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(r<(n.to-n.from)*.8)}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(Eee)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&this.dom.remove();let n=Dr.iter(this.view.state.facet(D4),this.view.viewport.from),r=[],i=this.gutters.map(a=>new fqe(a,this.view.viewport,-this.view.documentPadding.top));for(let a of this.view.viewportLineBlocks)if(r.length&&(r=[]),Array.isArray(a.type)){let s=!0;for(let o of a.type)if(o.type==il.Text&&s){Y9(n,r,o.from);for(let l of i)l.line(this.view,o,r);s=!1}else if(o.widget)for(let l of i)l.widget(this.view,o)}else if(a.type==il.Text){Y9(n,r,a.from);for(let s of i)s.line(this.view,a,r)}else if(a.widget)for(let s of i)s.widget(this.view,a);for(let a of i)a.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet(RE),n=e.state.facet(RE),r=e.docChanged||e.heightChanged||e.viewportChanged||!Dr.eq(e.startState.facet(D4),e.state.facet(D4),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let i of this.gutters)i.update(e)&&(r=!0);else{r=!0;let i=[];for(let a of n){let s=t.indexOf(a);s<0?i.push(new xee(this.view,a)):(this.gutters[s].update(e),i.push(this.gutters[s]))}for(let a of this.gutters)a.dom.remove(),i.indexOf(a)<0&&a.destroy();for(let a of i)this.dom.appendChild(a.dom);this.gutters=i}return r}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>rn.scrollMargins.of(t=>{let n=t.plugin(e);return!n||n.gutters.length==0||!n.fixed?null:t.textDirection==Gi.LTR?{left:n.dom.offsetWidth*t.scaleX}:{right:n.dom.offsetWidth*t.scaleX}})});function wee(e){return Array.isArray(e)?e:[e]}function Y9(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class fqe{constructor(t,n,r){this.gutter=t,this.height=r,this.i=0,this.cursor=Dr.iter(t.markers,n.from)}addElement(t,n,r){let{gutter:i}=this,a=(n.top-this.height)/t.scaleY,s=n.height/t.scaleY;if(this.i==i.elements.length){let o=new Ope(t,s,a,r);i.elements.push(o),i.dom.appendChild(o.dom)}else i.elements[this.i].update(t,s,a,r);this.height=n.bottom,this.i++}line(t,n,r){let i=[];Y9(this.cursor,i,n.from),r.length&&(i=i.concat(r));let a=this.gutter.config.lineMarker(t,n,i);a&&i.unshift(a);let s=this.gutter;i.length==0&&!s.config.renderEmptyElements||this.addElement(t,n,i)}widget(t,n){let r=this.gutter.config.widgetMarker(t,n.widget,n);r&&this.addElement(t,n,[r])}finish(){let t=this.gutter;for(;t.elements.length>this.i;){let n=t.elements.pop();t.dom.removeChild(n.dom),n.destroy()}}}class xee{constructor(t,n){this.view=t,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let r in n.domEventHandlers)this.dom.addEventListener(r,i=>{let a=i.target,s;if(a!=this.dom&&this.dom.contains(a)){for(;a.parentNode!=this.dom;)a=a.parentNode;let l=a.getBoundingClientRect();s=(l.top+l.bottom)/2}else s=i.clientY;let o=t.lineBlockAtHeight(s-t.documentTop);n.domEventHandlers[r](t,o,i)&&i.preventDefault()});this.markers=wee(n.markers(t)),n.initialSpacer&&(this.spacer=new Ope(t,0,0,[n.initialSpacer(t)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(t){let n=this.markers;if(this.markers=wee(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){let i=this.config.updateSpacer(this.spacer.markers[0],t);i!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[i])}let r=t.view.viewport;return!Dr.eq(this.markers,n,r.from,r.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(t):!1)}destroy(){for(let t of this.elements)t.destroy()}}class Ope{constructor(t,n,r,i){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(t,n,r,i)}update(t,n,r,i){this.height!=n&&(this.height=n,this.dom.style.height=n+"px"),this.above!=r&&(this.dom.style.marginTop=(this.above=r)?r+"px":""),hqe(this.markers,i)||this.setMarkers(t,i)}setMarkers(t,n){let r="cm-gutterElement",i=this.dom.firstChild;for(let a=0,s=0;;){let o=s,l=aa(o,l,u)||s(o,l,u):s}return r}})}});class HD extends xp{constructor(t){super(),this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function jD(e,t){return e.state.facet(My).formatNumber(t,e.state)}const mqe=RE.compute([My],e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(t){return t.state.facet(pqe)},lineMarker(t,n,r){return r.some(i=>i.toDOM)?null:new HD(jD(t,t.state.doc.lineAt(n.from).number))},widgetMarker:()=>null,lineMarkerChange:t=>t.startState.facet(My)!=t.state.facet(My),initialSpacer(t){return new HD(jD(t,Tee(t.state.doc.lines)))},updateSpacer(t,n){let r=jD(n.view,Tee(n.view.state.doc.lines));return r==t.number?t:new HD(r)},domEventHandlers:e.facet(My).domEventHandlers}));function gqe(e={}){return[My.of(e),vpe(),mqe]}function Tee(e){let t=9;for(;t{let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.head).from;i>n&&(n=i,t.push(bqe.range(i)))}return Dr.of(t)});function vqe(){return yqe}const Spe=1024;let Oqe=0;class wc{constructor(t,n){this.from=t,this.to=n}}class Zn{constructor(t={}){this.id=Oqe++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof t!="function"&&(t=bs.match(t)),n=>{let r=t(n);return r===void 0?null:[this,r]}}}Zn.closedBy=new Zn({deserialize:e=>e.split(" ")});Zn.openedBy=new Zn({deserialize:e=>e.split(" ")});Zn.group=new Zn({deserialize:e=>e.split(" ")});Zn.isolate=new Zn({deserialize:e=>{if(e&&e!="rtl"&&e!="ltr"&&e!="auto")throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}});Zn.contextHash=new Zn({perNode:!0});Zn.lookAhead=new Zn({perNode:!0});Zn.mounted=new Zn({perNode:!0});class jw{constructor(t,n,r){this.tree=t,this.overlay=n,this.parser=r}static get(t){return t&&t.props&&t.props[Zn.mounted.id]}}const Sqe=Object.create(null);class bs{constructor(t,n,r,i=0){this.name=t,this.props=n,this.id=r,this.flags=i}static define(t){let n=t.props&&t.props.length?Object.create(null):Sqe,r=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),i=new bs(t.name||"",n,t.id,r);if(t.props){for(let a of t.props)if(Array.isArray(a)||(a=a(i)),a){if(a[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[a[0].id]=a[1]}}return i}prop(t){return this.props[t.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(t){if(typeof t=="string"){if(this.name==t)return!0;let n=this.prop(Zn.group);return n?n.indexOf(t)>-1:!1}return this.id==t}static match(t){let n=Object.create(null);for(let r in t)for(let i of r.split(" "))n[i]=t[r];return r=>{for(let i=r.prop(Zn.group),a=-1;a<(i?i.length:0);a++){let s=n[a<0?r.name:i[a]];if(s)return s}}}}bs.none=new bs("",Object.create(null),0,8);class Jx{constructor(t){this.types=t;for(let n=0;n0;for(let l=this.cursor(s|Mi.IncludeAnonymous);;){let u=!1;if(l.from<=a&&l.to>=i&&(!o&&l.type.isAnonymous||n(l)!==!1)){if(l.firstChild())continue;u=!0}for(;u&&r&&(o||!l.type.isAnonymous)&&r(l),!l.nextSibling();){if(!l.parent())return;u=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let n in this.props)t.push([+n,this.props[n]]);return t}balance(t={}){return this.children.length<=8?this:Rz(bs.none,this.children,this.positions,0,this.children.length,0,this.length,(n,r,i)=>new ii(this.type,n,r,i,this.propValues),t.makeTree||((n,r,i)=>new ii(bs.none,n,r,i)))}static build(t){return Tqe(t)}}ii.empty=new ii(bs.none,[],[],0);class _z{constructor(t,n){this.buffer=t,this.index=n}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new _z(this.buffer,this.index)}}class xm{constructor(t,n,r){this.buffer=t,this.length=n,this.set=r}get type(){return bs.none}toString(){let t=[];for(let n=0;n0));l=s[l+3]);return o}slice(t,n,r){let i=this.buffer,a=new Uint16Array(n-t),s=0;for(let o=t,l=0;o=t&&nt;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function Ww(e,t,n,r){for(var i;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to0?o.length:-1;t!=u;t+=n){let d=o[t],f=l[t]+s.from;if(Epe(i,r,f,f+d.length)){if(d instanceof xm){if(a&Mi.ExcludeBuffers)continue;let p=d.findChild(0,d.buffer.length,n,r-f,i);if(p>-1)return new If(new Eqe(s,d,t,f),null,p)}else if(a&Mi.IncludeAnonymous||!d.type.isAnonymous||Cz(d)){let p;if(!(a&Mi.IgnoreMounts)&&(p=jw.get(d))&&!p.overlay)return new _o(p.tree,f,t,s);let g=new _o(d,f,t,s);return a&Mi.IncludeAnonymous||!g.type.isAnonymous?g:g.nextChild(n<0?d.children.length-1:0,n,r,i)}}}if(a&Mi.IncludeAnonymous||!s.type.isAnonymous||(s.index>=0?t=s.index+n:t=n<0?-1:s._parent._tree.children.length,s=s._parent,!s))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}enter(t,n,r=0){let i;if(!(r&Mi.IgnoreOverlays)&&(i=jw.get(this._tree))&&i.overlay){let a=t-this.from;for(let{from:s,to:o}of i.overlay)if((n>0?s<=a:s=a:o>a))return new _o(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,n,r)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function Aee(e,t,n,r){let i=e.cursor(),a=[];if(!i.firstChild())return a;if(n!=null){for(let s=!1;!s;)if(s=i.type.is(n),!i.nextSibling())return a}for(;;){if(r!=null&&i.type.is(r))return a;if(i.type.is(t)&&a.push(i.node),!i.nextSibling())return r==null?a:[]}}function Z9(e,t,n=t.length-1){for(let r=e.parent;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class Eqe{constructor(t,n,r,i){this.parent=t,this.buffer=n,this.index=r,this.start=i}}class If extends wpe{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,n,r){super(),this.context=t,this._parent=n,this.index=r,this.type=t.buffer.set.types[t.buffer.buffer[r]]}child(t,n,r){let{buffer:i}=this.context,a=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.context.start,r);return a<0?null:new If(this.context,this,a)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}enter(t,n,r=0){if(r&Mi.ExcludeBuffers)return null;let{buffer:i}=this.context,a=i.findChild(this.index+4,i.buffer[this.index+3],n>0?1:-1,t-this.context.start,n);return a<0?null:new If(this.context,this,a)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,n=t.buffer[this.index+3];return n<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new If(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new If(this.context,this._parent,t.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],n=[],{buffer:r}=this.context,i=this.index+4,a=r.buffer[this.index+3];if(a>i){let s=r.buffer[this.index+1];t.push(r.slice(i,a,s)),n.push(0)}return new ii(this.type,t,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function xpe(e){if(!e.length)return null;let t=0,n=e[0];for(let a=1;an.from||s.to=t){let o=new _o(s.tree,s.overlay[0].from+a.from,-1,a);(i||(i=[r])).push(Ww(o,t,n,!1))}}return i?xpe(i):r}class gC{get name(){return this.type.name}constructor(t,n=0){if(this.mode=n,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,t instanceof _o)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;for(let r=t._parent;r;r=r._parent)this.stack.unshift(r.index);this.bufferNode=t,this.yieldBuf(t.index)}}yieldNode(t){return t?(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0):!1}yieldBuf(t,n){this.index=t;let{start:r,buffer:i}=this.buffer;return this.type=n||i.set.types[i.buffer[t]],this.from=r+i.buffer[t+1],this.to=r+i.buffer[t+2],!0}yield(t){return t?t instanceof _o?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,n,r){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,n,r,this.mode));let{buffer:i}=this.buffer,a=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.buffer.start,r);return a<0?!1:(this.stack.push(this.index),this.yieldBuf(a))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,n,r=this.mode){return this.buffer?r&Mi.ExcludeBuffers?!1:this.enterChild(1,t,n):this.yield(this._tree.enter(t,n,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&Mi.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&Mi.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode)):!1;let{buffer:n}=this.buffer,r=this.stack.length-1;if(t<0){let i=r<0?0:this.stack[r]+4;if(this.index!=i)return this.yieldBuf(n.findChild(i,this.index,-1,0,4))}else{let i=n.buffer[this.index+3];if(i<(r<0?n.buffer.length:n.buffer[this.stack[r]+3]))return this.yieldBuf(i)}return r<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let n,r,{buffer:i}=this;if(i){if(t>0){if(this.index-1)for(let a=n+t,s=t<0?-1:r._tree.children.length;a!=s;a+=t){let o=r._tree.children[a];if(this.mode&Mi.IncludeAnonymous||o instanceof xm||!o.type.isAnonymous||Cz(o))return!1}return!0}move(t,n){if(n&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,n=0){for(;(this.from==this.to||(n<1?this.from>=t:this.from>t)||(n>-1?this.to<=t:this.to=0;){for(let s=t;s;s=s._parent)if(s.index==i){if(i==this.index)return s;n=s,r=a+1;break e}i=this.stack[--a]}for(let i=r;i=0;a--){if(a<0)return Z9(this.node,t,i);let s=r[n.buffer[this.stack[a]]];if(!s.isAnonymous){if(t[i]&&t[i]!=s.name)return!1;i--}}return!0}}function Cz(e){return e.children.some(t=>t instanceof xm||!t.type.isAnonymous||Cz(t))}function Tqe(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:i=Spe,reused:a=[],minRepeatType:s=r.types.length}=e,o=Array.isArray(n)?new _z(n,n.length):n,l=r.types,u=0,d=0;function f(C,R,N,M,U,F){let{id:G,start:V,end:ie,size:ne}=o,q=d;for(;ne<0;)if(o.next(),ne==-1){let W=a[G];N.push(W),M.push(V-C);return}else if(ne==-3){u=G;return}else if(ne==-4){d=G;return}else throw new RangeError(`Unrecognized record size: ${ne}`);let re=l[G],ee,Z,se=V-C;if(ie-V<=i&&(Z=E(o.pos-R,U))){let W=new Uint16Array(Z.size-Z.skip),Pe=o.pos-Z.size,Ee=W.length;for(;o.pos>Pe;)Ee=w(Z.start,W,Ee);ee=new xm(W,ie-Z.start,r),se=Z.start-C}else{let W=o.pos-ne;o.next();let Pe=[],Ee=[],X=G>=s?G:-1,Re=0,Ue=ie;for(;o.pos>W;)X>=0&&o.id==X&&o.size>=0?(o.end<=Ue-i&&(b(Pe,Ee,V,Re,o.end,Ue,X,q),Re=Pe.length,Ue=o.end),o.next()):F>2500?p(V,W,Pe,Ee):f(V,W,Pe,Ee,X,F+1);if(X>=0&&Re>0&&Re-1&&Re>0){let oe=g(re);ee=Rz(re,Pe,Ee,0,Pe.length,0,ie-V,oe,oe)}else ee=S(re,Pe,Ee,ie-V,q-ie)}N.push(ee),M.push(se)}function p(C,R,N,M){let U=[],F=0,G=-1;for(;o.pos>R;){let{id:V,start:ie,end:ne,size:q}=o;if(q>4)o.next();else{if(G>-1&&ie=0;ne-=3)V[q++]=U[ne],V[q++]=U[ne+1]-ie,V[q++]=U[ne+2]-ie,V[q++]=q;N.push(new xm(V,U[2]-ie,r)),M.push(ie-C)}}function g(C){return(R,N,M)=>{let U=0,F=R.length-1,G,V;if(F>=0&&(G=R[F])instanceof ii){if(!F&&G.type==C&&G.length==M)return G;(V=G.prop(Zn.lookAhead))&&(U=N[F]+G.length+V)}return S(C,R,N,M,U)}}function b(C,R,N,M,U,F,G,V){let ie=[],ne=[];for(;C.length>M;)ie.push(C.pop()),ne.push(R.pop()+N-U);C.push(S(r.types[G],ie,ne,F-U,V-F)),R.push(U-N)}function S(C,R,N,M,U=0,F){if(u){let G=[Zn.contextHash,u];F=F?[G].concat(F):[G]}if(U>25){let G=[Zn.lookAhead,U];F=F?[G].concat(F):[G]}return new ii(C,R,N,M,F)}function E(C,R){let N=o.fork(),M=0,U=0,F=0,G=N.end-i,V={size:0,start:0,skip:0};e:for(let ie=N.pos-C;N.pos>ie;){let ne=N.size;if(N.id==R&&ne>=0){V.size=M,V.start=U,V.skip=F,F+=4,M+=4,N.next();continue}let q=N.pos-ne;if(ne<0||q=s?4:0,ee=N.start;for(N.next();N.pos>q;){if(N.size<0)if(N.size==-3)re+=4;else break e;else N.id>=s&&(re+=4);N.next()}U=ee,M+=ne,F+=re}return(R<0||M==C)&&(V.size=M,V.start=U,V.skip=F),V.size>4?V:void 0}function w(C,R,N){let{id:M,start:U,end:F,size:G}=o;if(o.next(),G>=0&&M4){let ie=o.pos-(G-4);for(;o.pos>ie;)N=w(C,R,N)}R[--N]=V,R[--N]=F-C,R[--N]=U-C,R[--N]=M}else G==-3?u=M:G==-4&&(d=M);return N}let x=[],k=[];for(;o.pos>0;)f(e.start||0,e.bufferStart||0,x,k,-1,0);let _=(t=e.length)!==null&&t!==void 0?t:x.length?k[0]+x[0].length:0;return new ii(l[e.topID],x.reverse(),k.reverse(),_)}const _ee=new WeakMap;function P4(e,t){if(!e.isAnonymous||t instanceof xm||t.type!=e)return 1;let n=_ee.get(t);if(n==null){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof ii)){n=1;break}n+=P4(e,r)}_ee.set(t,n)}return n}function Rz(e,t,n,r,i,a,s,o,l){let u=0;for(let b=r;b=d)break;R+=N}if(k==_+1){if(R>d){let N=b[_];g(N.children,N.positions,0,N.children.length,S[_]+x);continue}f.push(b[_])}else{let N=S[k-1]+b[k-1].length-C;f.push(Rz(e,b,S,_,k,C,N,null,l))}p.push(C+x-a)}}return g(t,n,r,i,0),(o||l)(f,p,s)}class Tpe{constructor(){this.map=new WeakMap}setBuffer(t,n,r){let i=this.map.get(t);i||this.map.set(t,i=new Map),i.set(n,r)}getBuffer(t,n){let r=this.map.get(t);return r&&r.get(n)}set(t,n){t instanceof If?this.setBuffer(t.context.buffer,t.index,n):t instanceof _o&&this.map.set(t.tree,n)}get(t){return t instanceof If?this.getBuffer(t.context.buffer,t.index):t instanceof _o?this.map.get(t.tree):void 0}cursorSet(t,n){t.buffer?this.setBuffer(t.buffer.buffer,t.index,n):this.map.set(t.tree,n)}cursorGet(t){return t.buffer?this.getBuffer(t.buffer.buffer,t.index):this.map.get(t.tree)}}class up{constructor(t,n,r,i,a=!1,s=!1){this.from=t,this.to=n,this.tree=r,this.offset=i,this.open=(a?1:0)|(s?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(t,n=[],r=!1){let i=[new up(0,t.length,t,0,!1,r)];for(let a of n)a.to>t.length&&i.push(a);return i}static applyChanges(t,n,r=128){if(!n.length)return t;let i=[],a=1,s=t.length?t[0]:null;for(let o=0,l=0,u=0;;o++){let d=o=r)for(;s&&s.from=p.from||f<=p.to||u){let g=Math.max(p.from,l)-u,b=Math.min(p.to,f)-u;p=g>=b?null:new up(g,b,p.tree,p.offset+u,o>0,!!d)}if(p&&i.push(p),s.to>f)break;s=anew wc(i.from,i.to)):[new wc(0,0)]:[new wc(0,t.length)],this.createParse(t,n||[],r)}parse(t,n,r){let i=this.startParse(t,n,r);for(;;){let a=i.advance();if(a)return a}}};class kqe{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,n){return this.string.slice(t,n)}}function kpe(e){return(t,n,r,i)=>new _qe(t,e,n,r,i)}class Cee{constructor(t,n,r,i,a){this.parser=t,this.parse=n,this.overlay=r,this.target=i,this.from=a}}function Ree(e){if(!e.length||e.some(t=>t.from>=t.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(e))}class Aqe{constructor(t,n,r,i,a,s,o){this.parser=t,this.predicate=n,this.mounts=r,this.index=i,this.start=a,this.target=s,this.prev=o,this.depth=0,this.ranges=[]}}const X9=new Zn({perNode:!0});class _qe{constructor(t,n,r,i,a){this.nest=n,this.input=r,this.fragments=i,this.ranges=a,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=t}advance(){if(this.baseParse){let r=this.baseParse.advance();if(!r)return null;if(this.baseParse=null,this.baseTree=r,this.startInner(),this.stoppedAt!=null)for(let i of this.inner)i.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let r=this.baseTree;return this.stoppedAt!=null&&(r=new ii(r.type,r.children,r.positions,r.length,r.propValues.concat([[X9,this.stoppedAt]]))),r}let t=this.inner[this.innerDone],n=t.parse.advance();if(n){this.innerDone++;let r=Object.assign(Object.create(null),t.target.props);r[Zn.mounted.id]=new jw(n,t.overlay,t.parser),t.target.props=r}return null}get parsedPos(){if(this.baseParse)return 0;let t=this.input.length;for(let n=this.innerDone;n=this.stoppedAt)o=!1;else if(t.hasNode(i)){if(n){let u=n.mounts.find(d=>d.frag.from<=i.from&&d.frag.to>=i.to&&d.mount.overlay);if(u)for(let d of u.mount.overlay){let f=d.from+u.pos,p=d.to+u.pos;f>=i.from&&p<=i.to&&!n.ranges.some(g=>g.fromf)&&n.ranges.push({from:f,to:p})}}o=!1}else if(r&&(s=Cqe(r.ranges,i.from,i.to)))o=s!=2;else if(!i.type.isAnonymous&&(a=this.nest(i,this.input))&&(i.fromnew wc(f.from-i.from,f.to-i.from)):null,i.tree,d.length?d[0].from:i.from)),a.overlay?d.length&&(r={ranges:d,depth:0,prev:r}):o=!1}}else n&&(l=n.predicate(i))&&(l===!0&&(l=new wc(i.from,i.to)),l.fromnew wc(d.from-n.start,d.to-n.start)),n.target,u[0].from))),n=n.prev}r&&!--r.depth&&(r=r.prev)}}}}function Cqe(e,t,n){for(let r of e){if(r.from>=n)break;if(r.to>t)return r.from<=t&&r.to>=n?2:1}return 0}function Iee(e,t,n,r,i,a){if(t=t&&n.enter(r,1,Mi.IgnoreOverlays|Mi.ExcludeBuffers)||n.next(!1)||(this.done=!0)}hasNode(t){if(this.moveTo(t.from),!this.done&&this.cursor.from+this.offset==t.from&&this.cursor.tree)for(let n=this.cursor.tree;;){if(n==t.tree)return!0;if(n.children.length&&n.positions[0]==0&&n.children[0]instanceof ii)n=n.children[0];else break}return!1}}let Iqe=class{constructor(t){var n;if(this.fragments=t,this.curTo=0,this.fragI=0,t.length){let r=this.curFrag=t[0];this.curTo=(n=r.tree.prop(X9))!==null&&n!==void 0?n:r.to,this.inner=new Nee(r.tree,-r.offset)}else this.curFrag=this.inner=null}hasNode(t){for(;this.curFrag&&t.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=t.from&&this.curTo>=t.to&&this.inner.hasNode(t)}nextFrag(){var t;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let n=this.curFrag=this.fragments[this.fragI];this.curTo=(t=n.tree.prop(X9))!==null&&t!==void 0?t:n.to,this.inner=new Nee(n.tree,-n.offset)}}findMounts(t,n){var r;let i=[];if(this.inner){this.inner.cursor.moveTo(t,1);for(let a=this.inner.cursor.node;a;a=a.parent){let s=(r=a.tree)===null||r===void 0?void 0:r.prop(Zn.mounted);if(s&&s.parser==n)for(let o=this.fragI;o=a.to)break;l.tree==this.curFrag.tree&&i.push({frag:l,pos:a.from-l.offset,mount:s})}}}return i}};function Dee(e,t){let n=null,r=t;for(let i=1,a=0;i=o)break;l.to<=s||(n||(r=n=t.slice()),l.fromo&&n.splice(a+1,0,new wc(o,l.to))):l.to>o?n[a--]=new wc(o,l.to):n.splice(a--,1))}}return r}function Nqe(e,t,n,r){let i=0,a=0,s=!1,o=!1,l=-1e9,u=[];for(;;){let d=i==e.length?1e9:s?e[i].to:e[i].from,f=a==t.length?1e9:o?t[a].to:t[a].from;if(s!=o){let p=Math.max(l,n),g=Math.min(d,f,r);pnew wc(p.from+r,p.to+r)),f=Nqe(t,d,l,u);for(let p=0,g=l;;p++){let b=p==f.length,S=b?u:f[p].from;if(S>g&&n.push(new up(g,S,i.tree,-s,a.from>=g||a.openStart,a.to<=S||a.openEnd)),b)break;g=f[p].to}}else n.push(new up(l,u,i.tree,-s,a.from>=s||a.openStart,a.to<=o||a.openEnd))}return n}let Dqe=0;class xu{constructor(t,n,r,i){this.name=t,this.set=n,this.base=r,this.modified=i,this.id=Dqe++}toString(){let{name:t}=this;for(let n of this.modified)n.name&&(t=`${n.name}(${t})`);return t}static define(t,n){let r=typeof t=="string"?t:"?";if(t instanceof xu&&(n=t),n!=null&&n.base)throw new Error("Can not derive from a modified tag");let i=new xu(r,[],null,[]);if(i.set.push(i),n)for(let a of n.set)i.set.push(a);return i}static defineModifier(t){let n=new bC(t);return r=>r.modified.indexOf(n)>-1?r:bC.get(r.base||r,r.modified.concat(n).sort((i,a)=>i.id-a.id))}}let Pqe=0;class bC{constructor(t){this.name=t,this.instances=[],this.id=Pqe++}static get(t,n){if(!n.length)return t;let r=n[0].instances.find(o=>o.base==t&&Mqe(n,o.modified));if(r)return r;let i=[],a=new xu(t.name,i,t,n);for(let o of n)o.instances.push(a);let s=Lqe(n);for(let o of t.set)if(!o.modified.length)for(let l of s)i.push(bC.get(o,l));return a}}function Mqe(e,t){return e.length==t.length&&e.every((n,r)=>n==t[r])}function Lqe(e){let t=[[]];for(let n=0;nr.length-n.length)}function MO(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let i of n.split(" "))if(i){let a=[],s=2,o=i;for(let f=0;;){if(o=="..."&&f>0&&f+3==i.length){s=1;break}let p=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!p)throw new RangeError("Invalid path: "+i);if(a.push(p[0]=="*"?"":p[0][0]=='"'?JSON.parse(p[0]):p[0]),f+=p[0].length,f==i.length)break;let g=i[f++];if(f==i.length&&g=="!"){s=0;break}if(g!="/")throw new RangeError("Invalid path: "+i);o=i.slice(f)}let l=a.length-1,u=a[l];if(!u)throw new RangeError("Invalid path: "+i);let d=new yC(r,s,l>0?a.slice(0,l):null);t[u]=d.sort(t[u])}}return Ape.add(t)}const Ape=new Zn;class yC{constructor(t,n,r,i){this.tags=t,this.mode=n,this.context=r,this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(t){return!t||t.depth{let s=i;for(let o of a)for(let l of o.set){let u=n[l.id];if(u){s=s?s+" "+u:u;break}}return s},scope:r}}function $qe(e,t){let n=null;for(let r of e){let i=r.style(t);i&&(n=n?n+" "+i:i)}return n}function Fqe(e,t,n,r=0,i=e.length){let a=new Bqe(r,Array.isArray(t)?t:[t],n);a.highlightRange(e.cursor(),r,i,"",a.highlighters),a.flush(i)}class Bqe{constructor(t,n,r){this.at=t,this.highlighters=n,this.span=r,this.class=""}startSpan(t,n){n!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=n)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,n,r,i,a){let{type:s,from:o,to:l}=t;if(o>=r||l<=n)return;s.isTop&&(a=this.highlighters.filter(g=>!g.scope||g.scope(s)));let u=i,d=Uqe(t)||yC.empty,f=$qe(a,d.tags);if(f&&(u&&(u+=" "),u+=f,d.mode==1&&(i+=(i?" ":"")+f)),this.startSpan(Math.max(n,o),u),d.opaque)return;let p=t.tree&&t.tree.prop(Zn.mounted);if(p&&p.overlay){let g=t.node.enter(p.overlay[0].from+o,1),b=this.highlighters.filter(E=>!E.scope||E.scope(p.tree.type)),S=t.firstChild();for(let E=0,w=o;;E++){let x=E=k||!t.nextSibling())););if(!x||k>r)break;w=x.to+o,w>n&&(this.highlightRange(g.cursor(),Math.max(n,x.from+o),Math.min(r,w),"",b),this.startSpan(Math.min(r,w),u))}S&&t.parent()}else if(t.firstChild()){p&&(i="");do if(!(t.to<=n)){if(t.from>=r)break;this.highlightRange(t,n,r,i,a),this.startSpan(Math.min(r,t.to),u)}while(t.nextSibling());t.parent()}}}function Uqe(e){let t=e.type.prop(Ape);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}const Jt=xu.define,o_=Jt(),w0=Jt(),Mee=Jt(w0),Lee=Jt(w0),x0=Jt(),l_=Jt(x0),WD=Jt(x0),hf=Jt(),Eg=Jt(hf),cf=Jt(),df=Jt(),K9=Jt(),w2=Jt(K9),u_=Jt(),Oe={comment:o_,lineComment:Jt(o_),blockComment:Jt(o_),docComment:Jt(o_),name:w0,variableName:Jt(w0),typeName:Mee,tagName:Jt(Mee),propertyName:Lee,attributeName:Jt(Lee),className:Jt(w0),labelName:Jt(w0),namespace:Jt(w0),macroName:Jt(w0),literal:x0,string:l_,docString:Jt(l_),character:Jt(l_),attributeValue:Jt(l_),number:WD,integer:Jt(WD),float:Jt(WD),bool:Jt(x0),regexp:Jt(x0),escape:Jt(x0),color:Jt(x0),url:Jt(x0),keyword:cf,self:Jt(cf),null:Jt(cf),atom:Jt(cf),unit:Jt(cf),modifier:Jt(cf),operatorKeyword:Jt(cf),controlKeyword:Jt(cf),definitionKeyword:Jt(cf),moduleKeyword:Jt(cf),operator:df,derefOperator:Jt(df),arithmeticOperator:Jt(df),logicOperator:Jt(df),bitwiseOperator:Jt(df),compareOperator:Jt(df),updateOperator:Jt(df),definitionOperator:Jt(df),typeOperator:Jt(df),controlOperator:Jt(df),punctuation:K9,separator:Jt(K9),bracket:w2,angleBracket:Jt(w2),squareBracket:Jt(w2),paren:Jt(w2),brace:Jt(w2),content:hf,heading:Eg,heading1:Jt(Eg),heading2:Jt(Eg),heading3:Jt(Eg),heading4:Jt(Eg),heading5:Jt(Eg),heading6:Jt(Eg),contentSeparator:Jt(hf),list:Jt(hf),quote:Jt(hf),emphasis:Jt(hf),strong:Jt(hf),link:Jt(hf),monospace:Jt(hf),strikethrough:Jt(hf),inserted:Jt(),deleted:Jt(),changed:Jt(),invalid:Jt(),meta:u_,documentMeta:Jt(u_),annotation:Jt(u_),processingInstruction:Jt(u_),definition:xu.defineModifier("definition"),constant:xu.defineModifier("constant"),function:xu.defineModifier("function"),standard:xu.defineModifier("standard"),local:xu.defineModifier("local"),special:xu.defineModifier("special")};for(let e in Oe){let t=Oe[e];t instanceof xu&&(t.name=e)}_pe([{tag:Oe.link,class:"tok-link"},{tag:Oe.heading,class:"tok-heading"},{tag:Oe.emphasis,class:"tok-emphasis"},{tag:Oe.strong,class:"tok-strong"},{tag:Oe.keyword,class:"tok-keyword"},{tag:Oe.atom,class:"tok-atom"},{tag:Oe.bool,class:"tok-bool"},{tag:Oe.url,class:"tok-url"},{tag:Oe.labelName,class:"tok-labelName"},{tag:Oe.inserted,class:"tok-inserted"},{tag:Oe.deleted,class:"tok-deleted"},{tag:Oe.literal,class:"tok-literal"},{tag:Oe.string,class:"tok-string"},{tag:Oe.number,class:"tok-number"},{tag:[Oe.regexp,Oe.escape,Oe.special(Oe.string)],class:"tok-string2"},{tag:Oe.variableName,class:"tok-variableName"},{tag:Oe.local(Oe.variableName),class:"tok-variableName tok-local"},{tag:Oe.definition(Oe.variableName),class:"tok-variableName tok-definition"},{tag:Oe.special(Oe.variableName),class:"tok-variableName2"},{tag:Oe.definition(Oe.propertyName),class:"tok-propertyName tok-definition"},{tag:Oe.typeName,class:"tok-typeName"},{tag:Oe.namespace,class:"tok-namespace"},{tag:Oe.className,class:"tok-className"},{tag:Oe.macroName,class:"tok-macroName"},{tag:Oe.propertyName,class:"tok-propertyName"},{tag:Oe.operator,class:"tok-operator"},{tag:Oe.comment,class:"tok-comment"},{tag:Oe.meta,class:"tok-meta"},{tag:Oe.invalid,class:"tok-invalid"},{tag:Oe.punctuation,class:"tok-punctuation"}]);var QD;const Zg=new Zn;function Nz(e){return pn.define({combine:e?t=>t.concat(e):void 0})}const Dz=new Zn;class xc{constructor(t,n,r=[],i=""){this.data=t,this.name=i,Fr.prototype.hasOwnProperty("tree")||Object.defineProperty(Fr.prototype,"tree",{get(){return Fi(this)}}),this.parser=n,this.extension=[Tm.of(this),Fr.languageData.of((a,s,o)=>{let l=$ee(a,s,o),u=l.type.prop(Zg);if(!u)return[];let d=a.facet(u),f=l.type.prop(Dz);if(f){let p=l.resolve(s-l.from,o);for(let g of f)if(g.test(p,a)){let b=a.facet(g.facet);return g.type=="replace"?b:b.concat(d)}}return d})].concat(r)}isActiveAt(t,n,r=-1){return $ee(t,n,r).type.prop(Zg)==this.data}findRegions(t){let n=t.facet(Tm);if((n==null?void 0:n.data)==this.data)return[{from:0,to:t.doc.length}];if(!n||!n.allowsNesting)return[];let r=[],i=(a,s)=>{if(a.prop(Zg)==this.data){r.push({from:s,to:s+a.length});return}let o=a.prop(Zn.mounted);if(o){if(o.tree.prop(Zg)==this.data){if(o.overlay)for(let l of o.overlay)r.push({from:l.from+s,to:l.to+s});else r.push({from:s,to:s+a.length});return}else if(o.overlay){let l=r.length;if(i(o.tree,o.overlay[0].from+s),r.length>l)return}}for(let l=0;lr.isTop?n:void 0)]}),t.name)}configure(t,n){return new Vv(this.data,this.parser.configure(t),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Fi(e){let t=e.field(xc.state,!1);return t?t.tree:ii.empty}class zqe{constructor(t){this.doc=t,this.cursorPos=0,this.string="",this.cursor=t.iter()}get length(){return this.doc.length}syncTo(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}chunk(t){return this.syncTo(t),this.string}get lineChunks(){return!0}read(t,n){let r=this.cursorPos-this.string.length;return t=this.cursorPos?this.doc.sliceString(t,n):this.string.slice(t-r,n-r)}}let x2=null;class Qw{constructor(t,n,r=[],i,a,s,o,l){this.parser=t,this.state=n,this.fragments=r,this.tree=i,this.treeLen=a,this.viewport=s,this.skipped=o,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(t,n,r){return new Qw(t,n,[],ii.empty,0,r,[],null)}startParse(){return this.parser.startParse(new zqe(this.state.doc),this.fragments)}work(t,n){return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=ii.empty&&this.isDone(n??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var r;if(typeof t=="number"){let i=Date.now()+t;t=()=>Date.now()>i}for(this.parse||(this.parse=this.startParse()),n!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>n)&&n=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext(()=>{for(;!(n=this.parse.advance()););}),this.treeLen=t,this.tree=n,this.fragments=this.withoutTempSkipped(up.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let n=x2;x2=this;try{return t()}finally{x2=n}}withoutTempSkipped(t){for(let n;n=this.tempSkipped.pop();)t=Fee(t,n.from,n.to);return t}changes(t,n){let{fragments:r,tree:i,treeLen:a,viewport:s,skipped:o}=this;if(this.takeTree(),!t.empty){let l=[];if(t.iterChangedRanges((u,d,f,p)=>l.push({fromA:u,toA:d,fromB:f,toB:p})),r=up.applyChanges(r,l),i=ii.empty,a=0,s={from:t.mapPos(s.from,-1),to:t.mapPos(s.to,1)},this.skipped.length){o=[];for(let u of this.skipped){let d=t.mapPos(u.from,1),f=t.mapPos(u.to,-1);dt.from&&(this.fragments=Fee(this.fragments,i,a),this.skipped.splice(r--,1))}return this.skipped.length>=n?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,n){this.skipped.push({from:t,to:n})}static getSkippingParser(t){return new class extends Iz{createParse(n,r,i){let a=i[0].from,s=i[i.length-1].to;return{parsedPos:a,advance(){let l=x2;if(l){for(let u of i)l.tempSkipped.push(u);t&&(l.scheduleOn=l.scheduleOn?Promise.all([l.scheduleOn,t]):t)}return this.parsedPos=s,new ii(bs.none,[],[],s-a)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let n=this.fragments;return this.treeLen>=t&&n.length&&n[0].from==0&&n[0].to>=t}static get(){return x2}}function Fee(e,t,n){return up.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class qv{constructor(t){this.context=t,this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let n=this.context.changes(t.changes,t.state),r=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),n.viewport.to);return n.work(20,r)||n.takeTree(),new qv(n)}static init(t){let n=Math.min(3e3,t.doc.length),r=Qw.create(t.facet(Tm).parser,t,{from:0,to:n});return r.work(20,n)||r.takeTree(),new qv(r)}}xc.state=Ns.define({create:qv.init,update(e,t){for(let n of t.effects)if(n.is(xc.setState))return n.value;return t.startState.facet(Tm)!=t.state.facet(Tm)?qv.init(t.state):e.apply(t)}});let Cpe=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};typeof requestIdleCallback<"u"&&(Cpe=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const GD=typeof navigator<"u"&&(!((QD=navigator.scheduling)===null||QD===void 0)&&QD.isInputPending)?()=>navigator.scheduling.isInputPending():null,Hqe=ya.fromClass(class{constructor(t){this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(t){let n=this.view.state.field(xc.state).context;(n.updateViewport(t.view.viewport)||this.view.viewport.to>n.treeLen)&&this.scheduleWork(),(t.docChanged||t.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(n)}scheduleWork(){if(this.working)return;let{state:t}=this.view,n=t.field(xc.state);(n.tree!=n.context.tree||!n.context.isDone(t.doc.length))&&(this.working=Cpe(this.work))}work(t){this.working=null;let n=Date.now();if(this.chunkEndi+1e3,l=a.context.work(()=>GD&&GD()||Date.now()>s,i+(o?0:1e5));this.chunkBudget-=Date.now()-n,(l||this.chunkBudget<=0)&&(a.context.takeTree(),this.view.dispatch({effects:xc.setState.of(new qv(a.context))})),this.chunkBudget>0&&!(l&&!o)&&this.scheduleWork(),this.checkAsyncSchedule(a.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(()=>this.scheduleWork()).catch(n=>Rc(this.view.state,n)).then(()=>this.workScheduled--),t.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Tm=pn.define({combine(e){return e.length?e[0]:null},enables:e=>[xc.state,Hqe,rn.contentAttributes.compute([e],t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]});class Gw{constructor(t,n=[]){this.language=t,this.support=n,this.extension=[t,n]}}class vC{constructor(t,n,r,i,a,s=void 0){this.name=t,this.alias=n,this.extensions=r,this.filename=i,this.loadFunc=a,this.support=s,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(t=>this.support=t,t=>{throw this.loading=null,t}))}static of(t){let{load:n,support:r}=t;if(!n){if(!r)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");n=()=>Promise.resolve(r)}return new vC(t.name,(t.alias||[]).concat(t.name).map(i=>i.toLowerCase()),t.extensions||[],t.filename,n,r)}static matchFilename(t,n){for(let i of t)if(i.filename&&i.filename.test(n))return i;let r=/\.([^.]+)$/.exec(n);if(r){for(let i of t)if(i.extensions.indexOf(r[1])>-1)return i}return null}static matchLanguageName(t,n,r=!0){n=n.toLowerCase();for(let i of t)if(i.alias.some(a=>a==n))return i;if(r)for(let i of t)for(let a of i.alias){let s=n.indexOf(a);if(s>-1&&(a.length>2||!/\w/.test(n[s-1])&&!/\w/.test(n[s+a.length])))return i}return null}}const jqe=pn.define(),eT=pn.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some(n=>n!=t[0]))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function OC(e){let t=e.facet(eT);return t.charCodeAt(0)==9?e.tabSize*t.length:t.length}function Vw(e,t){let n="",r=e.tabSize,i=e.facet(eT)[0];if(i==" "){for(;t>=r;)n+=" ",t-=r;i=" "}for(let a=0;a=t?Wqe(e,n,t):null}class nI{constructor(t,n={}){this.state=t,this.options=n,this.unit=OC(t)}lineAt(t,n=1){let r=this.state.doc.lineAt(t),{simulateBreak:i,simulateDoubleBreak:a}=this.options;return i!=null&&i>=r.from&&i<=r.to?a&&i==t?{text:"",from:t}:(n<0?i-1&&(a+=s-this.countColumn(r,r.search(/\S|$/))),a}countColumn(t,n=t.length){return Zf(t,this.state.tabSize,n)}lineIndent(t,n=1){let{text:r,from:i}=this.lineAt(t,n),a=this.options.overrideIndentation;if(a){let s=a(i);if(s>-1)return s}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const tT=new Zn;function Wqe(e,t,n){let r=t.resolveStack(n),i=r.node.enterUnfinishedNodesBefore(n);if(i!=r.node){let a=[];for(let s=i;s!=r.node;s=s.parent)a.push(s);for(let s=a.length-1;s>=0;s--)r={node:a[s],next:r}}return Rpe(r,e,n)}function Rpe(e,t,n){for(let r=e;r;r=r.next){let i=Gqe(r.node);if(i)return i(Mz.create(t,n,r))}return 0}function Qqe(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}function Gqe(e){let t=e.type.prop(tT);if(t)return t;let n=e.firstChild,r;if(n&&(r=n.type.prop(Zn.closedBy))){let i=e.lastChild,a=i&&r.indexOf(i.name)>-1;return s=>Ipe(s,!0,1,void 0,a&&!Qqe(s)?i.from:void 0)}return e.parent==null?Vqe:null}function Vqe(){return 0}class Mz extends nI{constructor(t,n,r){super(t.state,t.options),this.base=t,this.pos=n,this.context=r}get node(){return this.context.node}static create(t,n,r){return new Mz(t,n,r)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(t){let n=this.state.doc.lineAt(t.from);for(;;){let r=t.resolve(n.from);for(;r.parent&&r.parent.from==r.from;)r=r.parent;if(qqe(r,t))break;n=this.state.doc.lineAt(r.from)}return this.lineIndent(n.from)}continue(){return Rpe(this.context.next,this.base,this.pos)}}function qqe(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function Yqe(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let i=e.options.simulateBreak,a=e.state.doc.lineAt(n.from),s=i==null||i<=a.from?a.to:Math.min(a.to,i);for(let o=n.to;;){let l=t.childAfter(o);if(!l||l==r)return null;if(!l.type.isSkipped)return l.fromIpe(r,t,n,e)}function Ipe(e,t,n,r,i){let a=e.textAfter,s=a.match(/^\s*/)[0].length,o=r&&a.slice(s,s+r.length)==r||i==e.pos+s,l=t?Yqe(e):null;return l?o?e.column(l.from):e.column(l.to):e.baseIndent+(o?0:e.unit*n)}const Xqe=e=>e.baseIndent;function M4({except:e,units:t=1}={}){return n=>{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}const Kqe=200;function Jqe(){return Fr.transactionFilter.of(e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:r}=e.newSelection.main,i=n.lineAt(r);if(r>i.from+Kqe)return e;let a=n.sliceString(i.from,r);if(!t.some(u=>u.test(a)))return e;let{state:s}=e,o=-1,l=[];for(let{head:u}of s.selection.ranges){let d=s.doc.lineAt(u);if(d.from==o)continue;o=d.from;let f=Pz(s,d.from);if(f==null)continue;let p=/^\s*/.exec(d.text)[0],g=Vw(s,f);p!=g&&l.push({from:d.from,to:d.from+p.length,insert:g})}return l.length?[e,{changes:l,sequential:!0}]:e})}const Npe=pn.define(),LO=new Zn;function Dpe(e){let t=e.firstChild,n=e.lastChild;return t&&t.ton)continue;if(a&&o.from=t&&u.to>n&&(a=u)}}return a}function tYe(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}function SC(e,t,n){for(let r of e.facet(Npe)){let i=r(e,t,n);if(i)return i}return eYe(e,t,n)}function Ppe(e,t){let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);return n>=r?void 0:{from:n,to:r}}const rI=sr.define({map:Ppe}),nT=sr.define({map:Ppe});function Mpe(e){let t=[];for(let{head:n}of e.state.selection.ranges)t.some(r=>r.from<=n&&r.to>=n)||t.push(e.lineBlockAt(n));return t}const N1=Ns.define({create(){return wn.none},update(e,t){e=e.map(t.changes);for(let n of t.effects)if(n.is(rI)&&!nYe(e,n.value.from,n.value.to)){let{preparePlaceholder:r}=t.state.facet(Fpe),i=r?wn.replace({widget:new uYe(r(t.state,n.value))}):Bee;e=e.update({add:[i.range(n.value.from,n.value.to)]})}else n.is(nT)&&(e=e.update({filter:(r,i)=>n.value.from!=r||n.value.to!=i,filterFrom:n.value.from,filterTo:n.value.to}));if(t.selection){let n=!1,{head:r}=t.selection.main;e.between(r,r,(i,a)=>{ir&&(n=!0)}),n&&(e=e.update({filterFrom:r,filterTo:r,filter:(i,a)=>a<=r||i>=r}))}return e},provide:e=>rn.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,(r,i)=>{n.push(r,i)}),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let n=0;n{(!i||i.from>a)&&(i={from:a,to:s})}),i}function nYe(e,t,n){let r=!1;return e.between(t,t,(i,a)=>{i==t&&a==n&&(r=!0)}),r}function Lpe(e,t){return e.field(N1,!1)?t:t.concat(sr.appendConfig.of(Bpe()))}const rYe=e=>{for(let t of Mpe(e)){let n=SC(e.state,t.from,t.to);if(n)return e.dispatch({effects:Lpe(e.state,[rI.of(n),$pe(e,n)])}),!0}return!1},iYe=e=>{if(!e.state.field(N1,!1))return!1;let t=[];for(let n of Mpe(e)){let r=EC(e.state,n.from,n.to);r&&t.push(nT.of(r),$pe(e,r,!1))}return t.length&&e.dispatch({effects:t}),t.length>0};function $pe(e,t,n=!0){let r=e.state.doc.lineAt(t.from).number,i=e.state.doc.lineAt(t.to).number;return rn.announce.of(`${e.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${e.state.phrase("to")} ${i}.`)}const aYe=e=>{let{state:t}=e,n=[];for(let r=0;r{let t=e.state.field(N1,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,(r,i)=>{n.push(nT.of({from:r,to:i}))}),e.dispatch({effects:n}),!0},oYe=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:rYe},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:iYe},{key:"Ctrl-Alt-[",run:aYe},{key:"Ctrl-Alt-]",run:sYe}],lYe={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},Fpe=pn.define({combine(e){return rh(e,lYe)}});function Bpe(e){return[N1,fYe]}function Upe(e,t){let{state:n}=e,r=n.facet(Fpe),i=s=>{let o=e.lineBlockAt(e.posAtDOM(s.target)),l=EC(e.state,o.from,o.to);l&&e.dispatch({effects:nT.of(l)}),s.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(e,i,t);let a=document.createElement("span");return a.textContent=r.placeholderText,a.setAttribute("aria-label",n.phrase("folded code")),a.title=n.phrase("unfold"),a.className="cm-foldPlaceholder",a.onclick=i,a}const Bee=wn.replace({widget:new class extends Wd{toDOM(e){return Upe(e,null)}}});class uYe extends Wd{constructor(t){super(),this.value=t}eq(t){return this.value==t.value}toDOM(t){return Upe(t,this.value)}}const cYe={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class VD extends xp{constructor(t,n){super(),this.config=t,this.open=n}eq(t){return this.config==t.config&&this.open==t.open}toDOM(t){if(this.config.markerDOM)return this.config.markerDOM(this.open);let n=document.createElement("span");return n.textContent=this.open?this.config.openText:this.config.closedText,n.title=t.state.phrase(this.open?"Fold line":"Unfold line"),n}}function dYe(e={}){let t=Object.assign(Object.assign({},cYe),e),n=new VD(t,!0),r=new VD(t,!1),i=ya.fromClass(class{constructor(s){this.from=s.viewport.from,this.markers=this.buildMarkers(s)}update(s){(s.docChanged||s.viewportChanged||s.startState.facet(Tm)!=s.state.facet(Tm)||s.startState.field(N1,!1)!=s.state.field(N1,!1)||Fi(s.startState)!=Fi(s.state)||t.foldingChanged(s))&&(this.markers=this.buildMarkers(s.view))}buildMarkers(s){let o=new Om;for(let l of s.viewportLineBlocks){let u=EC(s.state,l.from,l.to)?r:SC(s.state,l.from,l.to)?n:null;u&&o.add(l.from,l.from,u)}return o.finish()}}),{domEventHandlers:a}=t;return[i,cqe({class:"cm-foldGutter",markers(s){var o;return((o=s.plugin(i))===null||o===void 0?void 0:o.markers)||Dr.empty},initialSpacer(){return new VD(t,!1)},domEventHandlers:Object.assign(Object.assign({},a),{click:(s,o,l)=>{if(a.click&&a.click(s,o,l))return!0;let u=EC(s.state,o.from,o.to);if(u)return s.dispatch({effects:nT.of(u)}),!0;let d=SC(s.state,o.from,o.to);return d?(s.dispatch({effects:rI.of(d)}),!0):!1}})}),Bpe()]}const fYe=rn.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class rT{constructor(t,n){this.specs=t;let r;function i(o){let l=Sm.newName();return(r||(r=Object.create(null)))["."+l]=o,l}const a=typeof n.all=="string"?n.all:n.all?i(n.all):void 0,s=n.scope;this.scope=s instanceof xc?o=>o.prop(Zg)==s.data:s?o=>o==s:void 0,this.style=_pe(t.map(o=>({tag:o.tag,class:o.class||i(Object.assign({},o,{tag:null}))})),{all:a}).style,this.module=r?new Sm(r):null,this.themeType=n.themeType}static define(t,n){return new rT(t,n||{})}}const J9=pn.define(),zpe=pn.define({combine(e){return e.length?[e[0]]:null}});function qD(e){let t=e.facet(J9);return t.length?t:e.facet(zpe)}function Hpe(e,t){let n=[pYe],r;return e instanceof rT&&(e.module&&n.push(rn.styleModule.of(e.module)),r=e.themeType),t!=null&&t.fallback?n.push(zpe.of(e)):r?n.push(J9.computeN([rn.darkTheme],i=>i.facet(rn.darkTheme)==(r=="dark")?[e]:[])):n.push(J9.of(e)),n}class hYe{constructor(t){this.markCache=Object.create(null),this.tree=Fi(t.state),this.decorations=this.buildDeco(t,qD(t.state)),this.decoratedTo=t.viewport.to}update(t){let n=Fi(t.state),r=qD(t.state),i=r!=qD(t.startState),{viewport:a}=t.view,s=t.changes.mapPos(this.decoratedTo,1);n.length=a.to?(this.decorations=this.decorations.map(t.changes),this.decoratedTo=s):(n!=this.tree||t.viewportChanged||i)&&(this.tree=n,this.decorations=this.buildDeco(t.view,r),this.decoratedTo=a.to)}buildDeco(t,n){if(!n||!this.tree.length)return wn.none;let r=new Om;for(let{from:i,to:a}of t.visibleRanges)Fqe(this.tree,n,(s,o,l)=>{r.add(s,o,this.markCache[l]||(this.markCache[l]=wn.mark({class:l})))},i,a);return r.finish()}}const pYe=Fp.high(ya.fromClass(hYe,{decorations:e=>e.decorations})),mYe=rT.define([{tag:Oe.meta,color:"#404740"},{tag:Oe.link,textDecoration:"underline"},{tag:Oe.heading,textDecoration:"underline",fontWeight:"bold"},{tag:Oe.emphasis,fontStyle:"italic"},{tag:Oe.strong,fontWeight:"bold"},{tag:Oe.strikethrough,textDecoration:"line-through"},{tag:Oe.keyword,color:"#708"},{tag:[Oe.atom,Oe.bool,Oe.url,Oe.contentSeparator,Oe.labelName],color:"#219"},{tag:[Oe.literal,Oe.inserted],color:"#164"},{tag:[Oe.string,Oe.deleted],color:"#a11"},{tag:[Oe.regexp,Oe.escape,Oe.special(Oe.string)],color:"#e40"},{tag:Oe.definition(Oe.variableName),color:"#00f"},{tag:Oe.local(Oe.variableName),color:"#30a"},{tag:[Oe.typeName,Oe.namespace],color:"#085"},{tag:Oe.className,color:"#167"},{tag:[Oe.special(Oe.variableName),Oe.macroName],color:"#256"},{tag:Oe.definition(Oe.propertyName),color:"#00c"},{tag:Oe.comment,color:"#940"},{tag:Oe.invalid,color:"#f00"}]),gYe=rn.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),jpe=1e4,Wpe="()[]{}",Qpe=pn.define({combine(e){return rh(e,{afterCursor:!0,brackets:Wpe,maxScanDistance:jpe,renderMatch:vYe})}}),bYe=wn.mark({class:"cm-matchingBracket"}),yYe=wn.mark({class:"cm-nonmatchingBracket"});function vYe(e){let t=[],n=e.matched?bYe:yYe;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}const OYe=Ns.define({create(){return wn.none},update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],r=t.state.facet(Qpe);for(let i of t.state.selection.ranges){if(!i.empty)continue;let a=Nf(t.state,i.head,-1,r)||i.head>0&&Nf(t.state,i.head-1,1,r)||r.afterCursor&&(Nf(t.state,i.head,1,r)||i.headrn.decorations.from(e)}),SYe=[OYe,gYe];function EYe(e={}){return[Qpe.of(e),SYe]}const Gpe=new Zn;function eM(e,t,n){let r=e.prop(t<0?Zn.openedBy:Zn.closedBy);if(r)return r;if(e.name.length==1){let i=n.indexOf(e.name);if(i>-1&&i%2==(t<0?1:0))return[n[i+t]]}return null}function tM(e){let t=e.type.prop(Gpe);return t?t(e.node):e}function Nf(e,t,n,r={}){let i=r.maxScanDistance||jpe,a=r.brackets||Wpe,s=Fi(e),o=s.resolveInner(t,n);for(let l=o;l;l=l.parent){let u=eM(l.type,n,a);if(u&&l.from0?t>=d.from&&td.from&&t<=d.to))return wYe(e,t,n,l,d,u,a)}}return xYe(e,t,n,s,o.type,i,a)}function wYe(e,t,n,r,i,a,s){let o=r.parent,l={from:i.from,to:i.to},u=0,d=o==null?void 0:o.cursor();if(d&&(n<0?d.childBefore(r.from):d.childAfter(r.to)))do if(n<0?d.to<=r.from:d.from>=r.to){if(u==0&&a.indexOf(d.type.name)>-1&&d.from0)return null;let u={from:n<0?t-1:t,to:n>0?t+1:t},d=e.doc.iterRange(t,n>0?e.doc.length:0),f=0;for(let p=0;!d.next().done&&p<=a;){let g=d.value;n<0&&(p+=g.length);let b=t+p*n;for(let S=n>0?0:g.length-1,E=n>0?g.length:-1;S!=E;S+=n){let w=s.indexOf(g[S]);if(!(w<0||r.resolveInner(b+S,1).type!=i))if(w%2==0==n>0)f++;else{if(f==1)return{start:u,end:{from:b+S,to:b+S+1},matched:w>>1==l>>1};f--}}n>0&&(p+=g.length)}return d.done?{start:u,matched:!1}:null}const TYe=Object.create(null),Uee=[bs.none],zee=[],Hee=Object.create(null),kYe=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])kYe[e]=AYe(TYe,t);function YD(e,t){zee.indexOf(e)>-1||(zee.push(e),console.warn(t))}function AYe(e,t){let n=[];for(let o of t.split(" ")){let l=[];for(let u of o.split(".")){let d=e[u]||Oe[u];d?typeof d=="function"?l.length?l=l.map(d):YD(u,`Modifier ${u} used at start of tag`):l.length?YD(u,`Tag ${u} used as modifier`):l=Array.isArray(d)?d:[d]:YD(u,`Unknown highlighting tag ${u}`)}for(let u of l)n.push(u)}if(!n.length)return 0;let r=t.replace(/ /g,"_"),i=r+" "+n.map(o=>o.id),a=Hee[i];if(a)return a.id;let s=Hee[i]=bs.define({id:Uee.length,name:r,props:[MO({[r]:n})]});return Uee.push(s),s.id}Gi.RTL,Gi.LTR;const _Ye=e=>{let t=$z(e.state);return t.line?CYe(e):t.block?IYe(e):!1};function Lz(e,t){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let i=e(t,n);return i?(r(n.update(i)),!0):!1}}const CYe=Lz(PYe,0),RYe=Lz(Vpe,0),IYe=Lz((e,t)=>Vpe(e,t,DYe(t)),0);function $z(e,t=e.selection.main.head){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}const T2=50;function NYe(e,{open:t,close:n},r,i){let a=e.sliceDoc(r-T2,r),s=e.sliceDoc(i,i+T2),o=/\s*$/.exec(a)[0].length,l=/^\s*/.exec(s)[0].length,u=a.length-o;if(a.slice(u-t.length,u)==t&&s.slice(l,l+n.length)==n)return{open:{pos:r-o,margin:o&&1},close:{pos:i+l,margin:l&&1}};let d,f;i-r<=2*T2?d=f=e.sliceDoc(r,i):(d=e.sliceDoc(r,r+T2),f=e.sliceDoc(i-T2,i));let p=/^\s*/.exec(d)[0].length,g=/\s*$/.exec(f)[0].length,b=f.length-g-n.length;return d.slice(p,p+t.length)==t&&f.slice(b,b+n.length)==n?{open:{pos:r+p+t.length,margin:/\s/.test(d.charAt(p+t.length))?1:0},close:{pos:i-g-n.length,margin:/\s/.test(f.charAt(b-1))?1:0}}:null}function DYe(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),i=n.to<=r.to?r:e.doc.lineAt(n.to),a=t.length-1;a>=0&&t[a].to>r.from?t[a].to=i.to:t.push({from:r.from,to:i.to})}return t}function Vpe(e,t,n=t.selection.ranges){let r=n.map(a=>$z(t,a.from).block);if(!r.every(a=>a))return null;let i=n.map((a,s)=>NYe(t,r[s],a.from,a.to));if(e!=2&&!i.every(a=>a))return{changes:t.changes(n.map((a,s)=>i[s]?[]:[{from:a.from,insert:r[s].open+" "},{from:a.to,insert:" "+r[s].close}]))};if(e!=1&&i.some(a=>a)){let a=[];for(let s=0,o;si&&(a==s||s>d.from)){i=d.from;let f=$z(t,u).line;if(!f)continue;let p=/^\s*/.exec(d.text)[0].length,g=p==d.length,b=d.text.slice(p,p+f.length)==f?p:-1;pa.comment<0&&(!a.empty||a.single))){let a=[];for(let{line:o,token:l,indent:u,empty:d,single:f}of r)(f||!d)&&a.push({from:o.from+u,insert:l+" "});let s=t.changes(a);return{changes:s,selection:t.selection.map(s,1)}}else if(e!=1&&r.some(a=>a.comment>=0)){let a=[];for(let{line:s,comment:o,token:l}of r)if(o>=0){let u=s.from+o,d=u+l.length;s.text[d-s.from]==" "&&d++,a.push({from:u,to:d})}return{changes:a}}return null}const nM=jd.define(),MYe=jd.define(),LYe=pn.define(),qpe=pn.define({combine(e){return rh(e,{minDepth:100,newGroupDelay:500},{minDepth:Math.max,newGroupDelay:Math.min})}});function $Ye(e){let t=0;return e.iterChangedRanges((n,r)=>t=r),t}const Ype=Ns.define({create(){return Df.empty},update(e,t){let n=t.state.facet(qpe),r=t.annotation(nM);if(r){let l=t.docChanged?mt.single($Ye(t.changes)):void 0,u=Ll.fromTransaction(t,l),d=r.side,f=d==0?e.undone:e.done;return u?f=wC(f,f.length,n.minDepth,u):f=Kpe(f,t.startState.selection),new Df(d==0?r.rest:f,d==0?f:r.rest)}let i=t.annotation(MYe);if((i=="full"||i=="before")&&(e=e.isolate()),t.annotation(gs.addToHistory)===!1)return t.changes.empty?e:e.addMapping(t.changes.desc);let a=Ll.fromTransaction(t),s=t.annotation(gs.time),o=t.annotation(gs.userEvent);return a?e=e.addChanges(a,s,o,n.newGroupDelay,n.minDepth):t.selection&&(e=e.addSelection(t.startState.selection,s,o,n.newGroupDelay)),(i=="full"||i=="after")&&(e=e.isolate()),e},toJSON(e){return{done:e.done.map(t=>t.toJSON()),undone:e.undone.map(t=>t.toJSON())}},fromJSON(e){return new Df(e.done.map(Ll.fromJSON),e.undone.map(Ll.fromJSON))}});function FYe(e={}){return[Ype,qpe.of(e),rn.domEventHandlers({beforeinput(t,n){let r=t.inputType=="historyUndo"?Zpe:t.inputType=="historyRedo"?rM:null;return r?(t.preventDefault(),r(n)):!1}})]}function iI(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let i=n.field(Ype,!1);if(!i)return!1;let a=i.pop(e,n,t);return a?(r(a),!0):!1}}const Zpe=iI(0,!1),rM=iI(1,!1),BYe=iI(0,!0),UYe=iI(1,!0);class Ll{constructor(t,n,r,i,a){this.changes=t,this.effects=n,this.mapped=r,this.startSelection=i,this.selectionsAfter=a}setSelAfter(t){return new Ll(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){var t,n,r;return{changes:(t=this.changes)===null||t===void 0?void 0:t.toJSON(),mapped:(n=this.mapped)===null||n===void 0?void 0:n.toJSON(),startSelection:(r=this.startSelection)===null||r===void 0?void 0:r.toJSON(),selectionsAfter:this.selectionsAfter.map(i=>i.toJSON())}}static fromJSON(t){return new Ll(t.changes&&ds.fromJSON(t.changes),[],t.mapped&&jf.fromJSON(t.mapped),t.startSelection&&mt.fromJSON(t.startSelection),t.selectionsAfter.map(mt.fromJSON))}static fromTransaction(t,n){let r=Tc;for(let i of t.startState.facet(LYe)){let a=i(t);a.length&&(r=r.concat(a))}return!r.length&&t.changes.empty?null:new Ll(t.changes.invert(t.startState.doc),r,void 0,n||t.startState.selection,Tc)}static selection(t){return new Ll(void 0,Tc,void 0,void 0,t)}}function wC(e,t,n,r){let i=t+1>n+20?t-n-1:0,a=e.slice(i,t);return a.push(r),a}function zYe(e,t){let n=[],r=!1;return e.iterChangedRanges((i,a)=>n.push(i,a)),t.iterChangedRanges((i,a,s,o)=>{for(let l=0;l=u&&s<=d&&(r=!0)}}),r}function HYe(e,t){return e.ranges.length==t.ranges.length&&e.ranges.filter((n,r)=>n.empty!=t.ranges[r].empty).length===0}function Xpe(e,t){return e.length?t.length?e.concat(t):e:t}const Tc=[],jYe=200;function Kpe(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-jYe));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),wC(e,e.length-1,1e9,n.setSelAfter(r)))}else return[Ll.selection([t])]}function WYe(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function ZD(e,t){if(!e.length)return e;let n=e.length,r=Tc;for(;n;){let i=QYe(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let a=e.slice(0,n);return a[n-1]=i,a}else t=i.mapped,n--,r=i.selectionsAfter}return r.length?[Ll.selection(r)]:Tc}function QYe(e,t,n){let r=Xpe(e.selectionsAfter.length?e.selectionsAfter.map(o=>o.map(t)):Tc,n);if(!e.changes)return Ll.selection(r);let i=e.changes.map(t),a=t.mapDesc(e.changes,!0),s=e.mapped?e.mapped.composeDesc(a):a;return new Ll(i,sr.mapEffects(e.effects,t),s,e.startSelection.map(a),r)}const GYe=/^(input\.type|delete)($|\.)/;class Df{constructor(t,n,r=0,i=void 0){this.done=t,this.undone=n,this.prevTime=r,this.prevUserEvent=i}isolate(){return this.prevTime?new Df(this.done,this.undone):this}addChanges(t,n,r,i,a){let s=this.done,o=s[s.length-1];return o&&o.changes&&!o.changes.empty&&t.changes&&(!r||GYe.test(r))&&(!o.selectionsAfter.length&&n-this.prevTime0&&n-this.prevTimen.empty?e.moveByChar(n,t):aI(n,t))}function No(e){return e.textDirectionAt(e.state.selection.main.head)==Gi.LTR}const e0e=e=>Jpe(e,!No(e)),t0e=e=>Jpe(e,No(e));function n0e(e,t){return Qd(e,n=>n.empty?e.moveByGroup(n,t):aI(n,t))}const qYe=e=>n0e(e,!No(e)),YYe=e=>n0e(e,No(e));function ZYe(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function sI(e,t,n){let r=Fi(e).resolveInner(t.head),i=n?Zn.closedBy:Zn.openedBy;for(let l=t.head;;){let u=n?r.childAfter(l):r.childBefore(l);if(!u)break;ZYe(e,u,i)?r=u:l=n?u.to:u.from}let a=r.type.prop(i),s,o;return a&&(s=n?Nf(e,r.from,1):Nf(e,r.to,-1))&&s.matched?o=n?s.end.to:s.end.from:o=n?r.to:r.from,mt.cursor(o,n?-1:1)}const XYe=e=>Qd(e,t=>sI(e.state,t,!No(e))),KYe=e=>Qd(e,t=>sI(e.state,t,No(e)));function r0e(e,t){return Qd(e,n=>{if(!n.empty)return aI(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)})}const i0e=e=>r0e(e,!1),a0e=e=>r0e(e,!0);function s0e(e){return Math.max(e.defaultLineHeight,Math.min(e.dom.clientHeight,innerHeight)-5)}function o0e(e,t){let{state:n}=e,r=$O(n.selection,o=>o.empty?e.moveVertically(o,t,s0e(e)):aI(o,t));if(r.eq(n.selection))return!1;let i=e.coordsAtPos(n.selection.main.head),a=e.scrollDOM.getBoundingClientRect(),s;return i&&i.top>a.top&&i.bottomo0e(e,!1),iM=e=>o0e(e,!0);function $m(e,t,n){let r=e.lineBlockAt(t.head),i=e.moveToLineBoundary(t,n);if(i.head==t.head&&i.head!=(n?r.to:r.from)&&(i=e.moveToLineBoundary(t,n,!1)),!n&&i.head==r.from&&r.length){let a=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;a&&t.head!=r.from+a&&(i=mt.cursor(r.from+a))}return i}const JYe=e=>Qd(e,t=>$m(e,t,!0)),eZe=e=>Qd(e,t=>$m(e,t,!1)),tZe=e=>Qd(e,t=>$m(e,t,!No(e))),nZe=e=>Qd(e,t=>$m(e,t,No(e))),rZe=e=>Qd(e,t=>mt.cursor(e.lineBlockAt(t.head).from,1)),iZe=e=>Qd(e,t=>mt.cursor(e.lineBlockAt(t.head).to,-1));function aZe(e,t,n){let r=!1,i=$O(e.selection,a=>{let s=Nf(e,a.head,-1)||Nf(e,a.head,1)||a.head>0&&Nf(e,a.head-1,1)||a.headaZe(e,t);function Yc(e,t){let n=$O(e.state.selection,r=>{let i=t(r);return mt.range(r.anchor,i.head,i.goalColumn)});return n.eq(e.state.selection)?!1:(e.dispatch(ih(e.state,n)),!0)}function l0e(e,t){return Yc(e,n=>e.moveByChar(n,t))}const u0e=e=>l0e(e,!No(e)),c0e=e=>l0e(e,No(e));function d0e(e,t){return Yc(e,n=>e.moveByGroup(n,t))}const oZe=e=>d0e(e,!No(e)),lZe=e=>d0e(e,No(e)),uZe=e=>Yc(e,t=>sI(e.state,t,!No(e))),cZe=e=>Yc(e,t=>sI(e.state,t,No(e)));function f0e(e,t){return Yc(e,n=>e.moveVertically(n,t))}const h0e=e=>f0e(e,!1),p0e=e=>f0e(e,!0);function m0e(e,t){return Yc(e,n=>e.moveVertically(n,t,s0e(e)))}const Wee=e=>m0e(e,!1),Qee=e=>m0e(e,!0),dZe=e=>Yc(e,t=>$m(e,t,!0)),fZe=e=>Yc(e,t=>$m(e,t,!1)),hZe=e=>Yc(e,t=>$m(e,t,!No(e))),pZe=e=>Yc(e,t=>$m(e,t,No(e))),mZe=e=>Yc(e,t=>mt.cursor(e.lineBlockAt(t.head).from)),gZe=e=>Yc(e,t=>mt.cursor(e.lineBlockAt(t.head).to)),Gee=({state:e,dispatch:t})=>(t(ih(e,{anchor:0})),!0),Vee=({state:e,dispatch:t})=>(t(ih(e,{anchor:e.doc.length})),!0),qee=({state:e,dispatch:t})=>(t(ih(e,{anchor:e.selection.main.anchor,head:0})),!0),Yee=({state:e,dispatch:t})=>(t(ih(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0),bZe=({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0),yZe=({state:e,dispatch:t})=>{let n=lI(e).map(({from:r,to:i})=>mt.range(r,Math.min(i+1,e.doc.length)));return t(e.update({selection:mt.create(n),userEvent:"select"})),!0},vZe=({state:e,dispatch:t})=>{let n=$O(e.selection,r=>{var i;let a=Fi(e).resolveInner(r.head,1);for(;!(a.from=r.to||a.to>r.to&&a.from<=r.from||!(!((i=a.parent)===null||i===void 0)&&i.parent));)a=a.parent;return mt.range(a.to,a.from)});return t(ih(e,n)),!0},OZe=({state:e,dispatch:t})=>{let n=e.selection,r=null;return n.ranges.length>1?r=mt.create([n.main]):n.main.empty||(r=mt.create([mt.cursor(n.main.head)])),r?(t(ih(e,r)),!0):!1};function oI(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:r}=e,i=r.changeByRange(a=>{let{from:s,to:o}=a;if(s==o){let l=t(s);ls&&(n="delete.forward",l=c_(e,l,!0)),s=Math.min(s,l),o=Math.max(o,l)}else s=c_(e,s,!1),o=c_(e,o,!0);return s==o?{range:a}:{changes:{from:s,to:o},range:mt.cursor(s)}});return i.changes.empty?!1:(e.dispatch(r.update(i,{scrollIntoView:!0,userEvent:n,effects:n=="delete.selection"?rn.announce.of(r.phrase("Selection deleted")):void 0})),!0)}function c_(e,t,n){if(e instanceof rn)for(let r of e.state.facet(rn.atomicRanges).map(i=>i(e)))r.between(t,t,(i,a)=>{it&&(t=n?a:i)});return t}const g0e=(e,t)=>oI(e,n=>{let{state:r}=e,i=r.doc.lineAt(n),a,s;if(!t&&n>i.from&&ng0e(e,!1),b0e=e=>g0e(e,!0),y0e=(e,t)=>oI(e,n=>{let r=n,{state:i}=e,a=i.doc.lineAt(r),s=i.charCategorizer(r);for(let o=null;;){if(r==(t?a.to:a.from)){r==n&&a.number!=(t?i.doc.lines:1)&&(r+=t?1:-1);break}let l=To(a.text,r-a.from,t)+a.from,u=a.text.slice(Math.min(r,l)-a.from,Math.max(r,l)-a.from),d=s(u);if(o!=null&&d!=o)break;(u!=" "||r!=n)&&(o=d),r=l}return r}),v0e=e=>y0e(e,!1),SZe=e=>y0e(e,!0),O0e=e=>oI(e,t=>{let n=e.lineBlockAt(t).to;return toI(e,t=>{let n=e.lineBlockAt(t).from;return t>n?n:Math.max(0,t-1)}),wZe=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(r=>({changes:{from:r.from,to:r.to,insert:kr.of(["",""])},range:mt.cursor(r.from)}));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0},xZe=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(r=>{if(!r.empty||r.from==0||r.from==e.doc.length)return{range:r};let i=r.from,a=e.doc.lineAt(i),s=i==a.from?i-1:To(a.text,i-a.from,!1)+a.from,o=i==a.to?i+1:To(a.text,i-a.from,!0)+a.from;return{changes:{from:s,to:o,insert:e.doc.slice(i,o).append(e.doc.slice(s,i))},range:mt.cursor(o)}});return n.changes.empty?!1:(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function lI(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),a=e.doc.lineAt(r.to);if(!r.empty&&r.to==a.from&&(a=e.doc.lineAt(r.to-1)),n>=i.number){let s=t[t.length-1];s.to=a.to,s.ranges.push(r)}else t.push({from:i.from,to:a.to,ranges:[r]});n=a.number+1}return t}function S0e(e,t,n){if(e.readOnly)return!1;let r=[],i=[];for(let a of lI(e)){if(n?a.to==e.doc.length:a.from==0)continue;let s=e.doc.lineAt(n?a.to+1:a.from-1),o=s.length+1;if(n){r.push({from:a.to,to:s.to},{from:a.from,insert:s.text+e.lineBreak});for(let l of a.ranges)i.push(mt.range(Math.min(e.doc.length,l.anchor+o),Math.min(e.doc.length,l.head+o)))}else{r.push({from:s.from,to:a.from},{from:a.to,insert:e.lineBreak+s.text});for(let l of a.ranges)i.push(mt.range(l.anchor-o,l.head-o))}}return r.length?(t(e.update({changes:r,scrollIntoView:!0,selection:mt.create(i,e.selection.mainIndex),userEvent:"move.line"})),!0):!1}const TZe=({state:e,dispatch:t})=>S0e(e,t,!1),kZe=({state:e,dispatch:t})=>S0e(e,t,!0);function E0e(e,t,n){if(e.readOnly)return!1;let r=[];for(let i of lI(e))n?r.push({from:i.from,insert:e.doc.slice(i.from,i.to)+e.lineBreak}):r.push({from:i.to,insert:e.lineBreak+e.doc.slice(i.from,i.to)});return t(e.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const AZe=({state:e,dispatch:t})=>E0e(e,t,!1),_Ze=({state:e,dispatch:t})=>E0e(e,t,!0),CZe=e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(lI(t).map(({from:i,to:a})=>(i>0?i--:ae.moveVertically(i,!0)).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0};function RZe(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n=Fi(e).resolveInner(t),r=n.childBefore(t),i=n.childAfter(t),a;return r&&i&&r.to<=t&&i.from>=t&&(a=r.type.prop(Zn.closedBy))&&a.indexOf(i.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(i.from).from?{from:r.to,to:i.from}:null}const IZe=w0e(!1),NZe=w0e(!0);function w0e(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=t.changeByRange(i=>{let{from:a,to:s}=i,o=t.doc.lineAt(a),l=!e&&a==s&&RZe(t,a);e&&(a=s=(s<=o.to?o:t.doc.lineAt(s)).to);let u=new nI(t,{simulateBreak:a,simulateDoubleBreak:!!l}),d=Pz(u,a);for(d==null&&(d=/^\s*/.exec(t.doc.lineAt(a).text)[0].length);so.from&&a{let i=[];for(let s=r.from;s<=r.to;){let o=e.doc.lineAt(s);o.number>n&&(r.empty||r.to>o.from)&&(t(o,i,r),n=o.number),s=o.to+1}let a=e.changes(i);return{changes:i,range:mt.range(a.mapPos(r.anchor,1),a.mapPos(r.head,1))}})}const DZe=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new nI(e,{overrideIndentation:a=>{let s=n[a];return s??-1}}),i=Fz(e,(a,s,o)=>{let l=Pz(r,a.from);if(l==null)return;/\S/.test(a.text)||(l=0);let u=/^\s*/.exec(a.text)[0],d=Vw(e,l);(u!=d||o.frome.readOnly?!1:(t(e.update(Fz(e,(n,r)=>{r.push({from:n.from,insert:e.facet(eT)})}),{userEvent:"input.indent"})),!0),T0e=({state:e,dispatch:t})=>e.readOnly?!1:(t(e.update(Fz(e,(n,r)=>{let i=/^\s*/.exec(n.text)[0];if(!i)return;let a=Zf(i,e.tabSize),s=0,o=Vw(e,Math.max(0,a-OC(e)));for(;s({mac:e.key,run:e.run,shift:e.shift}))),LZe=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:XYe,shift:uZe},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:KYe,shift:cZe},{key:"Alt-ArrowUp",run:TZe},{key:"Shift-Alt-ArrowUp",run:AZe},{key:"Alt-ArrowDown",run:kZe},{key:"Shift-Alt-ArrowDown",run:_Ze},{key:"Escape",run:OZe},{key:"Mod-Enter",run:NZe},{key:"Alt-l",mac:"Ctrl-l",run:yZe},{key:"Mod-i",run:vZe,preventDefault:!0},{key:"Mod-[",run:T0e},{key:"Mod-]",run:x0e},{key:"Mod-Alt-\\",run:DZe},{key:"Shift-Mod-k",run:CZe},{key:"Shift-Mod-\\",run:sZe},{key:"Mod-/",run:_Ye},{key:"Alt-A",run:RYe}].concat(MZe),$Ze={key:"Tab",run:x0e,shift:T0e};function Di(){var e=arguments[0];typeof e=="string"&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&typeof n=="object"&&n.nodeType==null&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r];typeof i=="string"?e.setAttribute(r,i):i!=null&&(e[r]=i)}t++}for(;te.normalize("NFKD"):e=>e;class Yv{constructor(t,n,r=0,i=t.length,a,s){this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=t.iterRange(r,i),this.bufferStart=r,this.normalize=a?o=>a(Zee(o)):Zee,this.query=this.normalize(n)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Ws(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let t=this.peek();if(t<0)return this.done=!0,this;let n=mz(t),r=this.bufferStart+this.bufferPos;this.bufferPos+=vc(t);let i=this.normalize(n);for(let a=0,s=r;;a++){let o=i.charCodeAt(a),l=this.match(o,s,this.bufferPos+this.bufferStart);if(a==i.length-1){if(l)return this.value=l,this;break}s==r&&athis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let t=this.matchPos-this.curLineStart;;){this.re.lastIndex=t;let n=this.matchPos<=this.to&&this.re.exec(this.curLine);if(n){let r=this.curLineStart+n.index,i=r+n[0].length;if(this.matchPos=xC(this.text,i+(r==i?1:0)),r==this.curLineStart+this.curLine.length&&this.nextLine(),(rthis.value.to)&&(!this.test||this.test(r,i,n)))return this.value={from:r,to:i,match:n},this;t=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length=r||i.to<=n){let o=new av(n,t.sliceString(n,r));return XD.set(t,o),o}if(i.from==n&&i.to==r)return i;let{text:a,from:s}=i;return s>n&&(a=t.sliceString(n,s)+a,s=n),i.to=this.to?this.to:this.text.lineAt(t).to}next(){for(;;){let t=this.re.lastIndex=this.matchPos-this.flat.from,n=this.re.exec(this.flat.text);if(n&&!n[0]&&n.index==t&&(this.re.lastIndex=t+1,n=this.re.exec(this.flat.text)),n){let r=this.flat.from+n.index,i=r+n[0].length;if((this.flat.to>=this.to||n.index+n[0].length<=this.flat.text.length-10)&&(!this.test||this.test(r,i,n)))return this.value={from:r,to:i,match:n},this.matchPos=xC(this.text,i+(r==i?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=av.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(_0e.prototype[Symbol.iterator]=C0e.prototype[Symbol.iterator]=function(){return this});function FZe(e){try{return new RegExp(e,Bz),!0}catch{return!1}}function xC(e,t){if(t>=e.length)return t;let n=e.lineAt(t),r;for(;t=56320&&r<57344;)t++;return t}function sM(e){let t=String(e.state.doc.lineAt(e.state.selection.main.head).number),n=Di("input",{class:"cm-textfield",name:"line",value:t}),r=Di("form",{class:"cm-gotoLine",onkeydown:a=>{a.keyCode==27?(a.preventDefault(),e.dispatch({effects:TC.of(!1)}),e.focus()):a.keyCode==13&&(a.preventDefault(),i())},onsubmit:a=>{a.preventDefault(),i()}},Di("label",e.state.phrase("Go to line"),": ",n)," ",Di("button",{class:"cm-button",type:"submit"},e.state.phrase("go")));function i(){let a=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(!a)return;let{state:s}=e,o=s.doc.lineAt(s.selection.main.head),[,l,u,d,f]=a,p=d?+d.slice(1):0,g=u?+u:o.number;if(u&&f){let E=g/100;l&&(E=E*(l=="-"?-1:1)+o.number/s.doc.lines),g=Math.round(s.doc.lines*E)}else u&&l&&(g=g*(l=="-"?-1:1)+o.number);let b=s.doc.line(Math.max(1,Math.min(s.doc.lines,g))),S=mt.cursor(b.from+Math.max(0,Math.min(p,b.length)));e.dispatch({effects:[TC.of(!1),rn.scrollIntoView(S.from,{y:"center"})],selection:S}),e.focus()}return{dom:r}}const TC=sr.define(),Xee=Ns.define({create(){return!0},update(e,t){for(let n of t.effects)n.is(TC)&&(e=n.value);return e},provide:e=>Hw.from(e,t=>t?sM:null)}),BZe=e=>{let t=zw(e,sM);if(!t){let n=[TC.of(!0)];e.state.field(Xee,!1)==null&&n.push(sr.appendConfig.of([Xee,UZe])),e.dispatch({effects:n}),t=zw(e,sM)}return t&&t.dom.querySelector("input").select(),!0},UZe=rn.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),zZe={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},HZe=pn.define({combine(e){return rh(e,zZe,{highlightWordAroundCursor:(t,n)=>t||n,minSelectionLength:Math.min,maxMatches:Math.min})}});function jZe(e){return[qZe,VZe]}const WZe=wn.mark({class:"cm-selectionMatch"}),QZe=wn.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function Kee(e,t,n,r){return(n==0||e(t.sliceDoc(n-1,n))!=ra.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=ra.Word)}function GZe(e,t,n,r){return e(t.sliceDoc(n,n+1))==ra.Word&&e(t.sliceDoc(r-1,r))==ra.Word}const VZe=ya.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(HZe),{state:n}=e,r=n.selection;if(r.ranges.length>1)return wn.none;let i=r.main,a,s=null;if(i.empty){if(!t.highlightWordAroundCursor)return wn.none;let l=n.wordAt(i.head);if(!l)return wn.none;s=n.charCategorizer(i.head),a=n.sliceDoc(l.from,l.to)}else{let l=i.to-i.from;if(l200)return wn.none;if(t.wholeWords){if(a=n.sliceDoc(i.from,i.to),s=n.charCategorizer(i.head),!(Kee(s,n,i.from,i.to)&&GZe(s,n,i.from,i.to)))return wn.none}else if(a=n.sliceDoc(i.from,i.to),!a)return wn.none}let o=[];for(let l of e.visibleRanges){let u=new Yv(n.doc,a,l.from,l.to);for(;!u.next().done;){let{from:d,to:f}=u.value;if((!s||Kee(s,n,d,f))&&(i.empty&&d<=i.from&&f>=i.to?o.push(QZe.range(d,f)):(d>=i.to||f<=i.from)&&o.push(WZe.range(d,f)),o.length>t.maxMatches))return wn.none}}return wn.set(o)}},{decorations:e=>e.decorations}),qZe=rn.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),YZe=({state:e,dispatch:t})=>{let{selection:n}=e,r=mt.create(n.ranges.map(i=>e.wordAt(i.head)||mt.cursor(i.head)),n.mainIndex);return r.eq(n)?!1:(t(e.update({selection:r})),!0)};function ZZe(e,t){let{main:n,ranges:r}=e.selection,i=e.wordAt(n.head),a=i&&i.from==n.from&&i.to==n.to;for(let s=!1,o=new Yv(e.doc,t,r[r.length-1].to);;)if(o.next(),o.done){if(s)return null;o=new Yv(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),s=!0}else{if(s&&r.some(l=>l.from==o.value.from))continue;if(a){let l=e.wordAt(o.value.from);if(!l||l.from!=o.value.from||l.to!=o.value.to)continue}return o.value}}const XZe=({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some(a=>a.from===a.to))return YZe({state:e,dispatch:t});let r=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some(a=>e.sliceDoc(a.from,a.to)!=r))return!1;let i=ZZe(e,r);return i?(t(e.update({selection:e.selection.addRange(mt.range(i.from,i.to),!1),effects:rn.scrollIntoView(i.to)})),!0):!1},FO=pn.define({combine(e){return rh(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:t=>new uXe(t),scrollToMatch:t=>rn.scrollIntoView(t)})}});class R0e{constructor(t){this.search=t.search,this.caseSensitive=!!t.caseSensitive,this.literal=!!t.literal,this.regexp=!!t.regexp,this.replace=t.replace||"",this.valid=!!this.search&&(!this.regexp||FZe(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!t.wholeWord}unquote(t){return this.literal?t:t.replace(/\\([nrt\\])/g,(n,r)=>r=="n"?` +`:r=="r"?"\r":r=="t"?" ":"\\")}eq(t){return this.search==t.search&&this.replace==t.replace&&this.caseSensitive==t.caseSensitive&&this.regexp==t.regexp&&this.wholeWord==t.wholeWord}create(){return this.regexp?new tXe(this):new JZe(this)}getCursor(t,n=0,r){let i=t.doc?t:Fr.create({doc:t});return r==null&&(r=i.doc.length),this.regexp?uy(this,i,n,r):ly(this,i,n,r)}}class I0e{constructor(t){this.spec=t}}function ly(e,t,n,r){return new Yv(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:i=>i.toLowerCase(),e.wholeWord?KZe(t.doc,t.charCategorizer(t.selection.main.head)):void 0)}function KZe(e,t){return(n,r,i,a)=>((a>n||a+i.length=n)return null;i.push(r.value)}return i}highlight(t,n,r,i){let a=ly(this.spec,t,Math.max(0,n-this.spec.unquoted.length),Math.min(r+this.spec.unquoted.length,t.doc.length));for(;!a.next().done;)i(a.value.from,a.value.to)}}function uy(e,t,n,r){return new _0e(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?eXe(t.charCategorizer(t.selection.main.head)):void 0},n,r)}function kC(e,t){return e.slice(To(e,t,!1),t)}function AC(e,t){return e.slice(t,To(e,t))}function eXe(e){return(t,n,r)=>!r[0].length||(e(kC(r.input,r.index))!=ra.Word||e(AC(r.input,r.index))!=ra.Word)&&(e(AC(r.input,r.index+r[0].length))!=ra.Word||e(kC(r.input,r.index+r[0].length))!=ra.Word)}class tXe extends I0e{nextMatch(t,n,r){let i=uy(this.spec,t,r,t.doc.length).next();return i.done&&(i=uy(this.spec,t,0,n).next()),i.done?null:i.value}prevMatchInRange(t,n,r){for(let i=1;;i++){let a=Math.max(n,r-i*1e4),s=uy(this.spec,t,a,r),o=null;for(;!s.next().done;)o=s.value;if(o&&(a==n||o.from>a+10))return o;if(a==n)return null}}prevMatch(t,n,r){return this.prevMatchInRange(t,0,n)||this.prevMatchInRange(t,r,t.doc.length)}getReplacement(t){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(n,r)=>r=="$"?"$":r=="&"?t.match[0]:r!="0"&&+r=n)return null;i.push(r.value)}return i}highlight(t,n,r,i){let a=uy(this.spec,t,Math.max(0,n-250),Math.min(r+250,t.doc.length));for(;!a.next().done;)i(a.value.from,a.value.to)}}const qw=sr.define(),Uz=sr.define(),cm=Ns.define({create(e){return new KD(oM(e).create(),null)},update(e,t){for(let n of t.effects)n.is(qw)?e=new KD(n.value.create(),e.panel):n.is(Uz)&&(e=new KD(e.query,n.value?zz:null));return e},provide:e=>Hw.from(e,t=>t.panel)});class KD{constructor(t,n){this.query=t,this.panel=n}}const nXe=wn.mark({class:"cm-searchMatch"}),rXe=wn.mark({class:"cm-searchMatch cm-searchMatch-selected"}),iXe=ya.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(cm))}update(e){let t=e.state.field(cm);(t!=e.startState.field(cm)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return wn.none;let{view:n}=this,r=new Om;for(let i=0,a=n.visibleRanges,s=a.length;ia[i+1].from-2*250;)l=a[++i].to;e.highlight(n.state,o,l,(u,d)=>{let f=n.state.selection.ranges.some(p=>p.from==u&&p.to==d);r.add(u,d,f?rXe:nXe)})}return r.finish()}},{decorations:e=>e.decorations});function iT(e){return t=>{let n=t.state.field(cm,!1);return n&&n.query.spec.valid?e(t,n):P0e(t)}}const _C=iT((e,{query:t})=>{let{to:n}=e.state.selection.main,r=t.nextMatch(e.state,n,n);if(!r)return!1;let i=mt.single(r.from,r.to),a=e.state.facet(FO);return e.dispatch({selection:i,effects:[Hz(e,r),a.scrollToMatch(i.main,e)],userEvent:"select.search"}),D0e(e),!0}),CC=iT((e,{query:t})=>{let{state:n}=e,{from:r}=n.selection.main,i=t.prevMatch(n,r,r);if(!i)return!1;let a=mt.single(i.from,i.to),s=e.state.facet(FO);return e.dispatch({selection:a,effects:[Hz(e,i),s.scrollToMatch(a.main,e)],userEvent:"select.search"}),D0e(e),!0}),aXe=iT((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!n||!n.length?!1:(e.dispatch({selection:mt.create(n.map(r=>mt.range(r.from,r.to))),userEvent:"select.search.matches"}),!0)}),sXe=({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:i}=n.main,a=[],s=0;for(let o=new Yv(e.doc,e.sliceDoc(r,i));!o.next().done;){if(a.length>1e3)return!1;o.value.from==r&&(s=a.length),a.push(mt.range(o.value.from,o.value.to))}return t(e.update({selection:mt.create(a,s),userEvent:"select.search.matches"})),!0},Jee=iT((e,{query:t})=>{let{state:n}=e,{from:r,to:i}=n.selection.main;if(n.readOnly)return!1;let a=t.nextMatch(n,r,r);if(!a)return!1;let s=[],o,l,u=[];if(a.from==r&&a.to==i&&(l=n.toText(t.getReplacement(a)),s.push({from:a.from,to:a.to,insert:l}),a=t.nextMatch(n,a.from,a.to),u.push(rn.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(r).number)+"."))),a){let d=s.length==0||s[0].from>=a.to?0:a.to-a.from-l.length;o=mt.single(a.from-d,a.to-d),u.push(Hz(e,a)),u.push(n.facet(FO).scrollToMatch(o.main,e))}return e.dispatch({changes:s,selection:o,effects:u,userEvent:"input.replace"}),!0}),oXe=iT((e,{query:t})=>{if(e.state.readOnly)return!1;let n=t.matchAll(e.state,1e9).map(i=>{let{from:a,to:s}=i;return{from:a,to:s,insert:t.getReplacement(i)}});if(!n.length)return!1;let r=e.state.phrase("replaced $ matches",n.length)+".";return e.dispatch({changes:n,effects:rn.announce.of(r),userEvent:"input.replace.all"}),!0});function zz(e){return e.state.facet(FO).createPanel(e)}function oM(e,t){var n,r,i,a,s;let o=e.selection.main,l=o.empty||o.to>o.from+100?"":e.sliceDoc(o.from,o.to);if(t&&!l)return t;let u=e.facet(FO);return new R0e({search:((n=t==null?void 0:t.literal)!==null&&n!==void 0?n:u.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:(r=t==null?void 0:t.caseSensitive)!==null&&r!==void 0?r:u.caseSensitive,literal:(i=t==null?void 0:t.literal)!==null&&i!==void 0?i:u.literal,regexp:(a=t==null?void 0:t.regexp)!==null&&a!==void 0?a:u.regexp,wholeWord:(s=t==null?void 0:t.wholeWord)!==null&&s!==void 0?s:u.wholeWord})}function N0e(e){let t=zw(e,zz);return t&&t.dom.querySelector("[main-field]")}function D0e(e){let t=N0e(e);t&&t==e.root.activeElement&&t.select()}const P0e=e=>{let t=e.state.field(cm,!1);if(t&&t.panel){let n=N0e(e);if(n&&n!=e.root.activeElement){let r=oM(e.state,t.query.spec);r.valid&&e.dispatch({effects:qw.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[Uz.of(!0),t?qw.of(oM(e.state,t.query.spec)):sr.appendConfig.of(dXe)]});return!0},M0e=e=>{let t=e.state.field(cm,!1);if(!t||!t.panel)return!1;let n=zw(e,zz);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:Uz.of(!1)}),!0},lXe=[{key:"Mod-f",run:P0e,scope:"editor search-panel"},{key:"F3",run:_C,shift:CC,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:_C,shift:CC,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:M0e,scope:"editor search-panel"},{key:"Mod-Shift-l",run:sXe},{key:"Mod-Alt-g",run:BZe},{key:"Mod-d",run:XZe,preventDefault:!0}];class uXe{constructor(t){this.view=t;let n=this.query=t.state.field(cm).query.spec;this.commit=this.commit.bind(this),this.searchField=Di("input",{value:n.search,placeholder:du(t,"Find"),"aria-label":du(t,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Di("input",{value:n.replace,placeholder:du(t,"Replace"),"aria-label":du(t,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Di("input",{type:"checkbox",name:"case",form:"",checked:n.caseSensitive,onchange:this.commit}),this.reField=Di("input",{type:"checkbox",name:"re",form:"",checked:n.regexp,onchange:this.commit}),this.wordField=Di("input",{type:"checkbox",name:"word",form:"",checked:n.wholeWord,onchange:this.commit});function r(i,a,s){return Di("button",{class:"cm-button",name:i,onclick:a,type:"button"},s)}this.dom=Di("div",{onkeydown:i=>this.keydown(i),class:"cm-search"},[this.searchField,r("next",()=>_C(t),[du(t,"next")]),r("prev",()=>CC(t),[du(t,"previous")]),r("select",()=>aXe(t),[du(t,"all")]),Di("label",null,[this.caseField,du(t,"match case")]),Di("label",null,[this.reField,du(t,"regexp")]),Di("label",null,[this.wordField,du(t,"by word")]),...t.state.readOnly?[]:[Di("br"),this.replaceField,r("replace",()=>Jee(t),[du(t,"replace")]),r("replaceAll",()=>oXe(t),[du(t,"replace all")])],Di("button",{name:"close",onclick:()=>M0e(t),"aria-label":du(t,"close"),type:"button"},["×"])])}commit(){let t=new R0e({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});t.eq(this.query)||(this.query=t,this.view.dispatch({effects:qw.of(t)}))}keydown(t){SVe(this.view,t,"search-panel")?t.preventDefault():t.keyCode==13&&t.target==this.searchField?(t.preventDefault(),(t.shiftKey?CC:_C)(this.view)):t.keyCode==13&&t.target==this.replaceField&&(t.preventDefault(),Jee(this.view))}update(t){for(let n of t.transactions)for(let r of n.effects)r.is(qw)&&!r.value.eq(this.query)&&this.setQuery(r.value)}setQuery(t){this.query=t,this.searchField.value=t.search,this.replaceField.value=t.replace,this.caseField.checked=t.caseSensitive,this.reField.checked=t.regexp,this.wordField.checked=t.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(FO).top}}function du(e,t){return e.state.phrase(t)}const d_=30,f_=/[\s\.,:;?!]/;function Hz(e,{from:t,to:n}){let r=e.state.doc.lineAt(t),i=e.state.doc.lineAt(n).to,a=Math.max(r.from,t-d_),s=Math.min(i,n+d_),o=e.state.sliceDoc(a,s);if(a!=r.from){for(let l=0;lo.length-d_;l--)if(!f_.test(o[l-1])&&f_.test(o[l])){o=o.slice(0,l);break}}return rn.announce.of(`${e.state.phrase("current match")}. ${o} ${e.state.phrase("on line")} ${r.number}.`)}const cXe=rn.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),dXe=[cm,Fp.low(iXe),cXe];class jz{constructor(t,n,r,i){this.state=t,this.pos=n,this.explicit=r,this.view=i,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(t){let n=Fi(this.state).resolveInner(this.pos,-1);for(;n&&t.indexOf(n.name)<0;)n=n.parent;return n?{from:n.from,to:this.pos,text:this.state.sliceDoc(n.from,this.pos),type:n.type}:null}matchBefore(t){let n=this.state.doc.lineAt(this.pos),r=Math.max(n.from,this.pos-250),i=n.text.slice(r-n.from,this.pos-n.from),a=i.search($0e(t,!1));return a<0?null:{from:r+a,to:this.pos,text:i.slice(a)}}get aborted(){return this.abortListeners==null}addEventListener(t,n,r){t=="abort"&&this.abortListeners&&(this.abortListeners.push(n),r&&r.onDocChange&&(this.abortOnDocChange=!0))}}function ete(e){let t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),`[${n?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function fXe(e){let t=Object.create(null),n=Object.create(null);for(let{label:i}of e){t[i[0]]=!0;for(let a=1;atypeof i=="string"?{label:i}:i),[n,r]=t.every(i=>/^\w+$/.test(i.label))?[/\w*$/,/\w+$/]:fXe(t);return i=>{let a=i.matchBefore(r);return a||i.explicit?{from:a?a.from:i.pos,options:t,validFor:n}:null}}function hXe(e,t){return n=>{for(let r=Fi(n.state).resolveInner(n.pos,-1);r;r=r.parent){if(e.indexOf(r.name)>-1)return null;if(r.type.isTop)break}return t(n)}}class tte{constructor(t,n,r,i){this.completion=t,this.source=n,this.match=r,this.score=i}}function dm(e){return e.selection.main.from}function $0e(e,t){var n;let{source:r}=e,i=t&&r[0]!="^",a=r[r.length-1]!="$";return!i&&!a?e:new RegExp(`${i?"^":""}(?:${r})${a?"$":""}`,(n=e.flags)!==null&&n!==void 0?n:e.ignoreCase?"i":"")}const Wz=jd.define();function pXe(e,t,n,r){let{main:i}=e.selection,a=n-i.from,s=r-i.from;return Object.assign(Object.assign({},e.changeByRange(o=>o!=i&&n!=r&&e.sliceDoc(o.from+a,o.from+s)!=e.sliceDoc(n,r)?{range:o}:{changes:{from:o.from+a,to:r==i.from?o.to:o.from+s,insert:t},range:mt.cursor(o.from+a+t.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const nte=new WeakMap;function mXe(e){if(!Array.isArray(e))return e;let t=nte.get(e);return t||nte.set(e,t=L0e(e)),t}const RC=sr.define(),Yw=sr.define();class gXe{constructor(t){this.pattern=t,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let n=0;n=48&&C<=57||C>=97&&C<=122?2:C>=65&&C<=90?1:0:(R=mz(C))!=R.toLowerCase()?1:R!=R.toUpperCase()?2:0;(!x||N==1&&E||_==0&&N!=0)&&(n[f]==C||r[f]==C&&(p=!0)?s[f++]=x:s.length&&(w=!1)),_=N,x+=vc(C)}return f==l&&s[0]==0&&w?this.result(-100+(p?-200:0),s,t):g==l&&b==0?this.ret(-200-t.length+(S==t.length?0:-100),[0,S]):o>-1?this.ret(-700-t.length,[o,o+this.pattern.length]):g==l?this.ret(-900-t.length,[b,S]):f==l?this.result(-100+(p?-200:0)+-700+(w?0:-1100),s,t):n.length==2?null:this.result((i[0]?-700:0)+-200+-1100,i,t)}result(t,n,r){let i=[],a=0;for(let s of n){let o=s+(this.astral?vc(Ws(r,s)):1);a&&i[a-1]==s?i[a-1]=o:(i[a++]=s,i[a++]=o)}return this.ret(t-r.length,i)}}class bXe{constructor(t){this.pattern=t,this.matched=[],this.score=0,this.folded=t.toLowerCase()}match(t){if(t.length!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:yXe,filterStrict:!1,compareCompletions:(t,n)=>t.label.localeCompare(n.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(t,n)=>t&&n,closeOnBlur:(t,n)=>t&&n,icons:(t,n)=>t&&n,tooltipClass:(t,n)=>r=>rte(t(r),n(r)),optionClass:(t,n)=>r=>rte(t(r),n(r)),addToOptions:(t,n)=>t.concat(n),filterStrict:(t,n)=>t||n})}});function rte(e,t){return e?t?e+" "+t:e:t}function yXe(e,t,n,r,i,a){let s=e.textDirection==Gi.RTL,o=s,l=!1,u="top",d,f,p=t.left-i.left,g=i.right-t.right,b=r.right-r.left,S=r.bottom-r.top;if(o&&p=S||x>t.top?d=n.bottom-t.top:(u="bottom",d=t.bottom-n.top)}let E=(t.bottom-t.top)/a.offsetHeight,w=(t.right-t.left)/a.offsetWidth;return{style:`${u}: ${d/E}px; max-width: ${f/w}px`,class:"cm-completionInfo-"+(l?s?"left-narrow":"right-narrow":o?"left":"right")}}function vXe(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(n){let r=document.createElement("div");return r.classList.add("cm-completionIcon"),n.type&&r.classList.add(...n.type.split(/\s+/g).map(i=>"cm-completionIcon-"+i)),r.setAttribute("aria-hidden","true"),r},position:20}),t.push({render(n,r,i,a){let s=document.createElement("span");s.className="cm-completionLabel";let o=n.displayLabel||n.label,l=0;for(let u=0;ul&&s.appendChild(document.createTextNode(o.slice(l,d)));let p=s.appendChild(document.createElement("span"));p.appendChild(document.createTextNode(o.slice(d,f))),p.className="cm-completionMatchedText",l=f}return ln.position-r.position).map(n=>n.render)}function JD(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let i=Math.floor(t/n);return{from:i*n,to:(i+1)*n}}let r=Math.floor((e-t)/n);return{from:e-(r+1)*n,to:e-r*n}}class OXe{constructor(t,n,r){this.view=t,this.stateField=n,this.applyCompletion=r,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:l=>this.placeInfo(l),key:this},this.space=null,this.currentClass="";let i=t.state.field(n),{options:a,selected:s}=i.open,o=t.state.facet(Vs);this.optionContent=vXe(o),this.optionClass=o.optionClass,this.tooltipClass=o.tooltipClass,this.range=JD(a.length,s,o.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(t.state),this.dom.addEventListener("mousedown",l=>{let{options:u}=t.state.field(n).open;for(let d=l.target,f;d&&d!=this.dom;d=d.parentNode)if(d.nodeName=="LI"&&(f=/-(\d+)$/.exec(d.id))&&+f[1]{let u=t.state.field(this.stateField,!1);u&&u.tooltip&&t.state.facet(Vs).closeOnBlur&&l.relatedTarget!=t.contentDOM&&t.dispatch({effects:Yw.of(null)})}),this.showOptions(a,i.id)}mount(){this.updateSel()}showOptions(t,n){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t,n,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(t){var n;let r=t.state.field(this.stateField),i=t.startState.field(this.stateField);if(this.updateTooltipClass(t.state),r!=i){let{options:a,selected:s,disabled:o}=r.open;(!i.open||i.open.options!=a)&&(this.range=JD(a.length,s,t.state.facet(Vs).maxRenderedOptions),this.showOptions(a,r.id)),this.updateSel(),o!=((n=i.open)===null||n===void 0?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!o)}}updateTooltipClass(t){let n=this.tooltipClass(t);if(n!=this.currentClass){for(let r of this.currentClass.split(" "))r&&this.dom.classList.remove(r);for(let r of n.split(" "))r&&this.dom.classList.add(r);this.currentClass=n}}positioned(t){this.space=t,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let t=this.view.state.field(this.stateField),n=t.open;if((n.selected>-1&&n.selected=this.range.to)&&(this.range=JD(n.options.length,n.selected,this.view.state.facet(Vs).maxRenderedOptions),this.showOptions(n.options,t.id)),this.updateSelectedOption(n.selected)){this.destroyInfo();let{completion:r}=n.options[n.selected],{info:i}=r;if(!i)return;let a=typeof i=="string"?document.createTextNode(i):i(r);if(!a)return;"then"in a?a.then(s=>{s&&this.view.state.field(this.stateField,!1)==t&&this.addInfoPane(s,r)}).catch(s=>Rc(this.view.state,s,"completion info")):this.addInfoPane(a,r)}}addInfoPane(t,n){this.destroyInfo();let r=this.info=document.createElement("div");if(r.className="cm-tooltip cm-completionInfo",t.nodeType!=null)r.appendChild(t),this.infoDestroy=null;else{let{dom:i,destroy:a}=t;r.appendChild(i),this.infoDestroy=a||null}this.dom.appendChild(r),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(t){let n=null;for(let r=this.list.firstChild,i=this.range.from;r;r=r.nextSibling,i++)r.nodeName!="LI"||!r.id?i--:i==t?r.hasAttribute("aria-selected")||(r.setAttribute("aria-selected","true"),n=r):r.hasAttribute("aria-selected")&&r.removeAttribute("aria-selected");return n&&EXe(this.list,n),n}measureInfo(){let t=this.dom.querySelector("[aria-selected]");if(!t||!this.info)return null;let n=this.dom.getBoundingClientRect(),r=this.info.getBoundingClientRect(),i=t.getBoundingClientRect(),a=this.space;if(!a){let s=this.dom.ownerDocument.defaultView||window;a={left:0,top:0,right:s.innerWidth,bottom:s.innerHeight}}return i.top>Math.min(a.bottom,n.bottom)-10||i.bottomr.from||r.from==0))if(a=p,typeof u!="string"&&u.header)i.appendChild(u.header(u));else{let g=i.appendChild(document.createElement("completion-section"));g.textContent=p}}const d=i.appendChild(document.createElement("li"));d.id=n+"-"+s,d.setAttribute("role","option");let f=this.optionClass(o);f&&(d.className=f);for(let p of this.optionContent){let g=p(o,this.view.state,this.view,l);g&&d.appendChild(g)}}return r.from&&i.classList.add("cm-completionListIncompleteTop"),r.tonew OXe(n,e,t)}function EXe(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=n.height/e.offsetHeight;r.topn.bottom&&(e.scrollTop+=(r.bottom-n.bottom)/i)}function ite(e){return(e.boost||0)*100+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}function wXe(e,t){let n=[],r=null,i=u=>{n.push(u);let{section:d}=u.completion;if(d){r||(r=[]);let f=typeof d=="string"?d:d.name;r.some(p=>p.name==f)||r.push(typeof d=="string"?{name:f}:d)}},a=t.facet(Vs);for(let u of e)if(u.hasResult()){let d=u.result.getMatch;if(u.result.filter===!1)for(let f of u.result.options)i(new tte(f,u.source,d?d(f):[],1e9-n.length));else{let f=t.sliceDoc(u.from,u.to),p,g=a.filterStrict?new bXe(f):new gXe(f);for(let b of u.result.options)if(p=g.match(b.label)){let S=b.displayLabel?d?d(b,p.matched):[]:p.matched;i(new tte(b,u.source,S,p.score+(b.boost||0)))}}}if(r){let u=Object.create(null),d=0,f=(p,g)=>{var b,S;return((b=p.rank)!==null&&b!==void 0?b:1e9)-((S=g.rank)!==null&&S!==void 0?S:1e9)||(p.namef.score-d.score||l(d.completion,f.completion))){let d=u.completion;!o||o.label!=d.label||o.detail!=d.detail||o.type!=null&&d.type!=null&&o.type!=d.type||o.apply!=d.apply||o.boost!=d.boost?s.push(u):ite(u.completion)>ite(o)&&(s[s.length-1]=u),o=u.completion}return s}class Ly{constructor(t,n,r,i,a,s){this.options=t,this.attrs=n,this.tooltip=r,this.timestamp=i,this.selected=a,this.disabled=s}setSelected(t,n){return t==this.selected||t>=this.options.length?this:new Ly(this.options,ate(n,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,n,r,i,a){let s=wXe(t,n);if(!s.length)return i&&t.some(l=>l.state==1)?new Ly(i.options,i.attrs,i.tooltip,i.timestamp,i.selected,!0):null;let o=n.facet(Vs).selectOnOpen?0:-1;if(i&&i.selected!=o&&i.selected!=-1){let l=i.options[i.selected].completion;for(let u=0;uu.hasResult()?Math.min(l,u.from):l,1e8),create:CXe,above:a.aboveCursor},i?i.timestamp:Date.now(),o,!1)}map(t){return new Ly(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class IC{constructor(t,n,r){this.active=t,this.id=n,this.open=r}static start(){return new IC(AXe,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(t){let{state:n}=t,r=n.facet(Vs),a=(r.override||n.languageDataAt("autocomplete",dm(n)).map(mXe)).map(o=>(this.active.find(u=>u.source==o)||new Cu(o,this.active.some(u=>u.state!=0)?1:0)).update(t,r));a.length==this.active.length&&a.every((o,l)=>o==this.active[l])&&(a=this.active);let s=this.open;s&&t.docChanged&&(s=s.map(t.changes)),t.selection||a.some(o=>o.hasResult()&&t.changes.touchesRange(o.from,o.to))||!xXe(a,this.active)?s=Ly.build(a,n,this.id,s,r):s&&s.disabled&&!a.some(o=>o.state==1)&&(s=null),!s&&a.every(o=>o.state!=1)&&a.some(o=>o.hasResult())&&(a=a.map(o=>o.hasResult()?new Cu(o.source,0):o));for(let o of t.effects)o.is(U0e)&&(s=s&&s.setSelected(o.value,this.id));return a==this.active&&s==this.open?this:new IC(a,this.id,s)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?TXe:kXe}}function xXe(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;n-1&&(n["aria-activedescendant"]=e+"-"+t),n}const AXe=[];function F0e(e,t){if(e.isUserEvent("input.complete")){let r=e.annotation(Wz);if(r&&t.activateOnCompletion(r))return 12}let n=e.isUserEvent("input.type");return n&&t.activateOnTyping?5:n?1:e.isUserEvent("delete.backward")?2:e.selection?8:e.docChanged?16:0}class Cu{constructor(t,n,r=-1){this.source=t,this.state=n,this.explicitPos=r}hasResult(){return!1}update(t,n){let r=F0e(t,n),i=this;(r&8||r&16&&this.touches(t))&&(i=new Cu(i.source,0)),r&4&&i.state==0&&(i=new Cu(this.source,1)),i=i.updateFor(t,r);for(let a of t.effects)if(a.is(RC))i=new Cu(i.source,1,a.value?dm(t.state):-1);else if(a.is(Yw))i=new Cu(i.source,0);else if(a.is(B0e))for(let s of a.value)s.source==i.source&&(i=s);return i}updateFor(t,n){return this.map(t.changes)}map(t){return t.empty||this.explicitPos<0?this:new Cu(this.source,this.state,t.mapPos(this.explicitPos))}touches(t){return t.changes.touchesRange(dm(t.state))}}class sv extends Cu{constructor(t,n,r,i,a){super(t,2,n),this.result=r,this.from=i,this.to=a}hasResult(){return!0}updateFor(t,n){var r;if(!(n&3))return this.map(t.changes);let i=this.result;i.map&&!t.changes.empty&&(i=i.map(i,t.changes));let a=t.changes.mapPos(this.from),s=t.changes.mapPos(this.to,1),o=dm(t.state);if((this.explicitPos<0?o<=a:os||!i||n&2&&dm(t.startState)==this.from)return new Cu(this.source,n&4?1:0);let l=this.explicitPos<0?-1:t.changes.mapPos(this.explicitPos);return _Xe(i.validFor,t.state,a,s)?new sv(this.source,l,i,a,s):i.update&&(i=i.update(i,a,s,new jz(t.state,o,l>=0)))?new sv(this.source,l,i,i.from,(r=i.to)!==null&&r!==void 0?r:dm(t.state)):new Cu(this.source,1,l)}map(t){return t.empty?this:(this.result.map?this.result.map(this.result,t):this.result)?new sv(this.source,this.explicitPos<0?-1:t.mapPos(this.explicitPos),this.result,t.mapPos(this.from),t.mapPos(this.to,1)):new Cu(this.source,0)}touches(t){return t.changes.touchesRange(this.from,this.to)}}function _Xe(e,t,n,r){if(!e)return!1;let i=t.sliceDoc(n,r);return typeof e=="function"?e(i,n,r,t):$0e(e,!0).test(i)}const B0e=sr.define({map(e,t){return e.map(n=>n.map(t))}}),U0e=sr.define(),Pl=Ns.define({create(){return IC.start()},update(e,t){return e.update(t)},provide:e=>[Az.from(e,t=>t.tooltip),rn.contentAttributes.from(e,t=>t.attrs)]});function Qz(e,t){const n=t.completion.apply||t.completion.label;let r=e.state.field(Pl).active.find(i=>i.source==t.source);return r instanceof sv?(typeof n=="string"?e.dispatch(Object.assign(Object.assign({},pXe(e.state,n,r.from,r.to)),{annotations:Wz.of(t.completion)})):n(e,t.completion,r.from,r.to),!0):!1}const CXe=SXe(Pl,Qz);function h_(e,t="option"){return n=>{let r=n.state.field(Pl,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp-1?r.open.selected+i*(e?1:-1):e?0:s-1;return o<0?o=t=="page"?0:s-1:o>=s&&(o=t=="page"?s-1:0),n.dispatch({effects:U0e.of(o)}),!0}}const RXe=e=>{let t=e.state.field(Pl,!1);return e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestampe.state.field(Pl,!1)?(e.dispatch({effects:RC.of(!0)}),!0):!1,NXe=e=>{let t=e.state.field(Pl,!1);return!t||!t.active.some(n=>n.state!=0)?!1:(e.dispatch({effects:Yw.of(null)}),!0)};class DXe{constructor(t,n){this.active=t,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0}}const PXe=50,MXe=1e3,LXe=ya.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let t of e.state.field(Pl).active)t.state==1&&this.startQuery(t)}update(e){let t=e.state.field(Pl),n=e.state.facet(Vs);if(!e.selectionSet&&!e.docChanged&&e.startState.field(Pl)==t)return;let r=e.transactions.some(a=>{let s=F0e(a,n);return s&8||(a.selection||a.docChanged)&&!(s&3)});for(let a=0;aPXe&&Date.now()-s.time>MXe){for(let o of s.context.abortListeners)try{o()}catch(l){Rc(this.view.state,l)}s.context.abortListeners=null,this.running.splice(a--,1)}else s.updates.push(...e.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some(a=>a.effects.some(s=>s.is(RC)))&&(this.pendingStart=!0);let i=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=t.active.some(a=>a.state==1&&!this.running.some(s=>s.active.source==a.source))?setTimeout(()=>this.startUpdate(),i):-1,this.composing!=0)for(let a of e.transactions)a.isUserEvent("input.type")?this.composing=2:this.composing==2&&a.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:e}=this.view,t=e.field(Pl);for(let n of t.active)n.state==1&&!this.running.some(r=>r.active.source==n.source)&&this.startQuery(n)}startQuery(e){let{state:t}=this.view,n=dm(t),r=new jz(t,n,e.explicitPos==n,this.view),i=new DXe(e,r);this.running.push(i),Promise.resolve(e.source(r)).then(a=>{i.context.aborted||(i.done=a||null,this.scheduleAccept())},a=>{this.view.dispatch({effects:Yw.of(null)}),Rc(this.view.state,a)})}scheduleAccept(){this.running.every(e=>e.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Vs).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(Vs);for(let r=0;rs.source==i.active.source);if(a&&a.state==1)if(i.done==null){let s=new Cu(i.active.source,0);for(let o of i.updates)s=s.update(o,n);s.state!=1&&t.push(s)}else this.startQuery(a)}t.length&&this.view.dispatch({effects:B0e.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(Pl,!1);if(t&&t.tooltip&&this.view.state.facet(Vs).closeOnBlur){let n=t.open&&bpe(this.view,t.open.tooltip);(!n||!n.dom.contains(e.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:Yw.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:RC.of(!1)}),20),this.composing=0}}}),$Xe=typeof navigator=="object"&&/Win/.test(navigator.platform),FXe=Fp.highest(rn.domEventHandlers({keydown(e,t){let n=t.state.field(Pl,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||e.key.length>1||e.ctrlKey&&!($Xe&&e.altKey)||e.metaKey)return!1;let r=n.open.options[n.open.selected],i=n.active.find(s=>s.source==r.source),a=r.completion.commitCharacters||i.result.commitCharacters;return a&&a.indexOf(e.key)>-1&&Qz(t,r),!1}})),z0e=rn.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class BXe{constructor(t,n,r,i){this.field=t,this.line=n,this.from=r,this.to=i}}class Gz{constructor(t,n,r){this.field=t,this.from=n,this.to=r}map(t){let n=t.mapPos(this.from,-1,Gs.TrackDel),r=t.mapPos(this.to,1,Gs.TrackDel);return n==null||r==null?null:new Gz(this.field,n,r)}}class Vz{constructor(t,n){this.lines=t,this.fieldPositions=n}instantiate(t,n){let r=[],i=[n],a=t.doc.lineAt(n),s=/^\s*/.exec(a.text)[0];for(let l of this.lines){if(r.length){let u=s,d=/^\t*/.exec(l)[0].length;for(let f=0;fnew Gz(l.field,i[l.line]+l.from,i[l.line]+l.to));return{text:r,ranges:o}}static parse(t){let n=[],r=[],i=[],a;for(let s of t.split(/\r\n?|\n/)){for(;a=/[#$]\{(?:(\d+)(?::([^}]*))?|((?:\\[{}]|[^}])*))\}/.exec(s);){let o=a[1]?+a[1]:null,l=a[2]||a[3]||"",u=-1,d=l.replace(/\\[{}]/g,f=>f[1]);for(let f=0;f=u&&p.field++}i.push(new BXe(u,r.length,a.index,a.index+d.length)),s=s.slice(0,a.index)+l+s.slice(a.index+a[0].length)}s=s.replace(/\\([{}])/g,(o,l,u)=>{for(let d of i)d.line==r.length&&d.from>u&&(d.from--,d.to--);return l}),r.push(s)}return new Vz(r,i)}}let UXe=wn.widget({widget:new class extends Wd{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),zXe=wn.mark({class:"cm-snippetField"});class BO{constructor(t,n){this.ranges=t,this.active=n,this.deco=wn.set(t.map(r=>(r.from==r.to?UXe:zXe).range(r.from,r.to)))}map(t){let n=[];for(let r of this.ranges){let i=r.map(t);if(!i)return null;n.push(i)}return new BO(n,this.active)}selectionInsideField(t){return t.ranges.every(n=>this.ranges.some(r=>r.field==this.active&&r.from<=n.from&&r.to>=n.to))}}const aT=sr.define({map(e,t){return e&&e.map(t)}}),HXe=sr.define(),Zw=Ns.define({create(){return null},update(e,t){for(let n of t.effects){if(n.is(aT))return n.value;if(n.is(HXe)&&e)return new BO(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>rn.decorations.from(e,t=>t?t.deco:wn.none)});function qz(e,t){return mt.create(e.filter(n=>n.field==t).map(n=>mt.range(n.from,n.to)))}function jXe(e){let t=Vz.parse(e);return(n,r,i,a)=>{let{text:s,ranges:o}=t.instantiate(n.state,i),l={changes:{from:i,to:a,insert:kr.of(s)},scrollIntoView:!0,annotations:r?[Wz.of(r),gs.userEvent.of("input.complete")]:void 0};if(o.length&&(l.selection=qz(o,0)),o.some(u=>u.field>0)){let u=new BO(o,0),d=l.effects=[aT.of(u)];n.state.field(Zw,!1)===void 0&&d.push(sr.appendConfig.of([Zw,qXe,YXe,z0e]))}n.dispatch(n.state.update(l))}}function H0e(e){return({state:t,dispatch:n})=>{let r=t.field(Zw,!1);if(!r||e<0&&r.active==0)return!1;let i=r.active+e,a=e>0&&!r.ranges.some(s=>s.field==i+e);return n(t.update({selection:qz(r.ranges,i),effects:aT.of(a?null:new BO(r.ranges,i)),scrollIntoView:!0})),!0}}const WXe=({state:e,dispatch:t})=>e.field(Zw,!1)?(t(e.update({effects:aT.of(null)})),!0):!1,QXe=H0e(1),GXe=H0e(-1),VXe=[{key:"Tab",run:QXe,shift:GXe},{key:"Escape",run:WXe}],ste=pn.define({combine(e){return e.length?e[0]:VXe}}),qXe=Fp.highest(PO.compute([ste],e=>e.facet(ste)));function Al(e,t){return Object.assign(Object.assign({},t),{apply:jXe(e)})}const YXe=rn.domEventHandlers({mousedown(e,t){let n=t.state.field(Zw,!1),r;if(!n||(r=t.posAtCoords({x:e.clientX,y:e.clientY}))==null)return!1;let i=n.ranges.find(a=>a.from<=r&&a.to>=r);return!i||i.field==n.active?!1:(t.dispatch({selection:qz(n.ranges,i.field),effects:aT.of(n.ranges.some(a=>a.field>i.field)?new BO(n.ranges,i.field):null),scrollIntoView:!0}),!0)}}),Xw={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Xg=sr.define({map(e,t){let n=t.mapPos(e,-1,Gs.TrackAfter);return n??void 0}}),Yz=new class extends C1{};Yz.startSide=1;Yz.endSide=-1;const j0e=Ns.define({create(){return Dr.empty},update(e,t){if(e=e.map(t.changes),t.selection){let n=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:r=>r>=n.from&&r<=n.to})}for(let n of t.effects)n.is(Xg)&&(e=e.update({add:[Yz.range(n.value,n.value+1)]}));return e}});function ZXe(){return[KXe,j0e]}const e7="()[]{}<>";function W0e(e){for(let t=0;t{if((XXe?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let i=e.state.selection.main;if(r.length>2||r.length==2&&vc(Ws(r,0))==1||t!=i.from||n!=i.to)return!1;let a=tKe(e.state,r);return a?(e.dispatch(a),!0):!1}),JXe=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let r=Q0e(e,e.selection.main.head).brackets||Xw.brackets,i=null,a=e.changeByRange(s=>{if(s.empty){let o=nKe(e.doc,s.head);for(let l of r)if(l==o&&uI(e.doc,s.head)==W0e(Ws(l,0)))return{changes:{from:s.head-l.length,to:s.head+l.length},range:mt.cursor(s.head-l.length)}}return{range:i=s}});return i||t(e.update(a,{scrollIntoView:!0,userEvent:"delete.backward"})),!i},eKe=[{key:"Backspace",run:JXe}];function tKe(e,t){let n=Q0e(e,e.selection.main.head),r=n.brackets||Xw.brackets;for(let i of r){let a=W0e(Ws(i,0));if(t==i)return a==i?aKe(e,i,r.indexOf(i+i+i)>-1,n):rKe(e,i,a,n.before||Xw.before);if(t==a&&G0e(e,e.selection.main.from))return iKe(e,i,a)}return null}function G0e(e,t){let n=!1;return e.field(j0e).between(0,e.doc.length,r=>{r==t&&(n=!0)}),n}function uI(e,t){let n=e.sliceString(t,t+2);return n.slice(0,vc(Ws(n,0)))}function nKe(e,t){let n=e.sliceString(t-2,t);return vc(Ws(n,0))==n.length?n:n.slice(1)}function rKe(e,t,n,r){let i=null,a=e.changeByRange(s=>{if(!s.empty)return{changes:[{insert:t,from:s.from},{insert:n,from:s.to}],effects:Xg.of(s.to+t.length),range:mt.range(s.anchor+t.length,s.head+t.length)};let o=uI(e.doc,s.head);return!o||/\s/.test(o)||r.indexOf(o)>-1?{changes:{insert:t+n,from:s.head},effects:Xg.of(s.head+t.length),range:mt.cursor(s.head+t.length)}:{range:i=s}});return i?null:e.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function iKe(e,t,n){let r=null,i=e.changeByRange(a=>a.empty&&uI(e.doc,a.head)==n?{changes:{from:a.head,to:a.head+n.length,insert:n},range:mt.cursor(a.head+n.length)}:r={range:a});return r?null:e.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function aKe(e,t,n,r){let i=r.stringPrefixes||Xw.stringPrefixes,a=null,s=e.changeByRange(o=>{if(!o.empty)return{changes:[{insert:t,from:o.from},{insert:t,from:o.to}],effects:Xg.of(o.to+t.length),range:mt.range(o.anchor+t.length,o.head+t.length)};let l=o.head,u=uI(e.doc,l),d;if(u==t){if(ote(e,l))return{changes:{insert:t+t,from:l},effects:Xg.of(l+t.length),range:mt.cursor(l+t.length)};if(G0e(e,l)){let p=n&&e.sliceDoc(l,l+t.length*3)==t+t+t?t+t+t:t;return{changes:{from:l,to:l+p.length,insert:p},range:mt.cursor(l+p.length)}}}else{if(n&&e.sliceDoc(l-2*t.length,l)==t+t&&(d=lte(e,l-2*t.length,i))>-1&&ote(e,d))return{changes:{insert:t+t+t+t,from:l},effects:Xg.of(l+t.length),range:mt.cursor(l+t.length)};if(e.charCategorizer(l)(u)!=ra.Word&<e(e,l,i)>-1&&!sKe(e,l,t,i))return{changes:{insert:t+t,from:l},effects:Xg.of(l+t.length),range:mt.cursor(l+t.length)}}return{range:a=o}});return a?null:e.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function ote(e,t){let n=Fi(e).resolveInner(t+1);return n.parent&&n.from==t}function sKe(e,t,n,r){let i=Fi(e).resolveInner(t,-1),a=r.reduce((s,o)=>Math.max(s,o.length),0);for(let s=0;s<5;s++){let o=e.sliceDoc(i.from,Math.min(i.to,i.from+n.length+a)),l=o.indexOf(n);if(!l||l>-1&&r.indexOf(o.slice(0,l))>-1){let d=i.firstChild;for(;d&&d.from==i.from&&d.to-d.from>n.length+l;){if(e.sliceDoc(d.to-n.length,d.to)==n)return!1;d=d.firstChild}return!0}let u=i.to==t&&i.parent;if(!u)break;i=u}return!1}function lte(e,t,n){let r=e.charCategorizer(t);if(r(e.sliceDoc(t-1,t))!=ra.Word)return t;for(let i of n){let a=t-i.length;if(e.sliceDoc(a,t)==i&&r(e.sliceDoc(a-1,a))!=ra.Word)return a}return-1}function oKe(e={}){return[FXe,Pl,Vs.of(e),LXe,lKe,z0e]}const V0e=[{key:"Ctrl-Space",run:IXe},{key:"Escape",run:NXe},{key:"ArrowDown",run:h_(!0)},{key:"ArrowUp",run:h_(!1)},{key:"PageDown",run:h_(!0,"page")},{key:"PageUp",run:h_(!1,"page")},{key:"Enter",run:RXe}],lKe=Fp.highest(PO.computeN([Vs],e=>e.facet(Vs).defaultKeymap?[V0e]:[]));class uKe{constructor(t,n,r){this.from=t,this.to=n,this.diagnostic=r}}class Lg{constructor(t,n,r){this.diagnostics=t,this.panel=n,this.selected=r}static init(t,n,r){let i=t,a=r.facet(Kw).markerFilter;a&&(i=a(i,r));let s=wn.set(i.map(o=>o.from==o.to||o.from==o.to-1&&r.doc.lineAt(o.from).to==o.from?wn.widget({widget:new yKe(o),diagnostic:o}).range(o.from):wn.mark({attributes:{class:"cm-lintRange cm-lintRange-"+o.severity+(o.markClass?" "+o.markClass:"")},diagnostic:o}).range(o.from,o.to)),!0);return new Lg(s,n,Zv(s))}}function Zv(e,t=null,n=0){let r=null;return e.between(n,1e9,(i,a,{spec:s})=>{if(!(t&&s.diagnostic!=t))return r=new uKe(i,a,s.diagnostic),!1}),r}function cKe(e,t){let n=t.pos,r=t.end||n,i=e.state.facet(Kw).hideOn(e,n,r);if(i!=null)return i;let a=e.startState.doc.lineAt(t.pos);return!!(e.effects.some(s=>s.is(q0e))||e.changes.touchesRange(a.from,Math.max(a.to,r)))}function dKe(e,t){return e.field(Du,!1)?t:t.concat(sr.appendConfig.of(SKe))}const q0e=sr.define(),Zz=sr.define(),Y0e=sr.define(),Du=Ns.define({create(){return new Lg(wn.none,null,null)},update(e,t){if(t.docChanged&&e.diagnostics.size){let n=e.diagnostics.map(t.changes),r=null,i=e.panel;if(e.selected){let a=t.changes.mapPos(e.selected.from,1);r=Zv(n,e.selected.diagnostic,a)||Zv(n,null,a)}!n.size&&i&&t.state.facet(Kw).autoPanel&&(i=null),e=new Lg(n,i,r)}for(let n of t.effects)if(n.is(q0e)){let r=t.state.facet(Kw).autoPanel?n.value.length?Jw.open:null:e.panel;e=Lg.init(n.value,r,t.state)}else n.is(Zz)?e=new Lg(e.diagnostics,n.value?Jw.open:null,e.selected):n.is(Y0e)&&(e=new Lg(e.diagnostics,e.panel,n.value));return e},provide:e=>[Hw.from(e,t=>t.panel),rn.decorations.from(e,t=>t.diagnostics)]}),fKe=wn.mark({class:"cm-lintRange cm-lintRange-active"});function hKe(e,t,n){let{diagnostics:r}=e.state.field(Du),i=[],a=2e8,s=0;r.between(t-(n<0?1:0),t+(n>0?1:0),(l,u,{spec:d})=>{t>=l&&t<=u&&(l==u||(t>l||n>0)&&(tX0e(e,n,!1)))}const mKe=e=>{let t=e.state.field(Du,!1);(!t||!t.panel)&&e.dispatch({effects:dKe(e.state,[Zz.of(!0)])});let n=zw(e,Jw.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},ute=e=>{let t=e.state.field(Du,!1);return!t||!t.panel?!1:(e.dispatch({effects:Zz.of(!1)}),!0)},gKe=e=>{let t=e.state.field(Du,!1);if(!t)return!1;let n=e.state.selection.main,r=t.diagnostics.iter(n.to+1);return!r.value&&(r=t.diagnostics.iter(0),!r.value||r.from==n.from&&r.to==n.to)?!1:(e.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),!0)},bKe=[{key:"Mod-Shift-m",run:mKe,preventDefault:!0},{key:"F8",run:gKe}],Kw=pn.define({combine(e){return Object.assign({sources:e.map(t=>t.source).filter(t=>t!=null)},rh(e.map(t=>t.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(t,n)=>t?n?r=>t(r)||n(r):t:n}))}});function Z0e(e){let t=[];if(e)e:for(let{name:n}of e){for(let r=0;ra.toLowerCase()==i.toLowerCase())){t.push(i);continue e}}t.push("")}return t}function X0e(e,t,n){var r;let i=n?Z0e(t.actions):[];return Di("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},Di("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage(e):t.message),(r=t.actions)===null||r===void 0?void 0:r.map((a,s)=>{let o=!1,l=p=>{if(p.preventDefault(),o)return;o=!0;let g=Zv(e.state.field(Du).diagnostics,t);g&&a.apply(e,g.from,g.to)},{name:u}=a,d=i[s]?u.indexOf(i[s]):-1,f=d<0?u:[u.slice(0,d),Di("u",u.slice(d,d+1)),u.slice(d+1)];return Di("button",{type:"button",class:"cm-diagnosticAction",onclick:l,onmousedown:l,"aria-label":` Action: ${u}${d<0?"":` (access key "${i[s]})"`}.`},f)}),t.source&&Di("div",{class:"cm-diagnosticSource"},t.source))}class yKe extends Wd{constructor(t){super(),this.diagnostic=t}eq(t){return t.diagnostic==this.diagnostic}toDOM(){return Di("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class cte{constructor(t,n){this.diagnostic=n,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=X0e(t,n,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class Jw{constructor(t){this.view=t,this.items=[];let n=i=>{if(i.keyCode==27)ute(this.view),this.view.focus();else if(i.keyCode==38||i.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(i.keyCode==40||i.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(i.keyCode==36)this.moveSelection(0);else if(i.keyCode==35)this.moveSelection(this.items.length-1);else if(i.keyCode==13)this.view.focus();else if(i.keyCode>=65&&i.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:a}=this.items[this.selectedIndex],s=Z0e(a.actions);for(let o=0;o{for(let a=0;aute(this.view)},"×")),this.update()}get selectedIndex(){let t=this.view.state.field(Du).selected;if(!t)return-1;for(let n=0;n{let u=-1,d;for(let f=r;fr&&(this.items.splice(r,u-r),i=!0)),n&&d.diagnostic==n.diagnostic?d.dom.hasAttribute("aria-selected")||(d.dom.setAttribute("aria-selected","true"),a=d):d.dom.hasAttribute("aria-selected")&&d.dom.removeAttribute("aria-selected"),r++});r({sel:a.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:s,panel:o})=>{let l=o.height/this.list.offsetHeight;s.topo.bottom&&(this.list.scrollTop+=(s.bottom-o.bottom)/l)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),i&&this.sync()}sync(){let t=this.list.firstChild;function n(){let r=t;t=r.nextSibling,r.remove()}for(let r of this.items)if(r.dom.parentNode==this.list){for(;t!=r.dom;)n();t=r.dom.nextSibling}else this.list.insertBefore(r.dom,t);for(;t;)n()}moveSelection(t){if(this.selectedIndex<0)return;let n=this.view.state.field(Du),r=Zv(n.diagnostics,this.items[t].diagnostic);r&&this.view.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:Y0e.of(r)})}static open(t){return new Jw(t)}}function vKe(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(e)}')`}function p_(e){return vKe(``,'width="6" height="3"')}const OKe=rn.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:p_("#d11")},".cm-lintRange-warning":{backgroundImage:p_("orange")},".cm-lintRange-info":{backgroundImage:p_("#999")},".cm-lintRange-hint":{backgroundImage:p_("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),SKe=[Du,rn.decorations.compute([Du],e=>{let{selected:t,panel:n}=e.field(Du);return!t||!n||t.from==t.to?wn.none:wn.set([fKe.range(t.from,t.to)])}),oqe(hKe,{hideOn:cKe}),OKe],EKe=[gqe(),vqe(),FVe(),FYe(),dYe(),AVe(),NVe(),Fr.allowMultipleSelections.of(!0),Jqe(),Hpe(mYe,{fallback:!0}),EYe(),ZXe(),oKe(),ZVe(),JVe(),WVe(),jZe(),PO.of([...eKe,...LZe,...lXe,...VYe,...oYe,...V0e,...bKe])];function wKe(e){const{presenceList:t}=e,[n,r]=L.useState(null),i=!!n,a=Pr(Dp),s=p=>{r(p.currentTarget)},o=()=>{r(null)},l=p=>{var b;const g=p.presence.cursor;g!==null&&((b=a.cmView)==null||b.dispatch({effects:rn.scrollIntoView(g[0],{y:"center"})}))},u=4,d=t.slice(u),f=p=>D.jsx(Q0,{title:p.presence.name,children:D.jsx(d1,{onClick:()=>l(p),alt:p.presence.name,sx:{bgcolor:p.presence.color},children:p.presence.name[0]})},p.clientID);return D.jsxs(D.Fragment,{children:[D.jsxs(l6e,{children:[t.slice(0,u).map(f),t.length>u&&D.jsxs(d1,{onClick:s,children:["+",t.length-u]})]}),D.jsx(xO,{open:i,anchorEl:n,onClose:o,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:D.jsxs(Ks,{sx:{padding:2},children:[D.jsx(Ar,{variant:"subtitle2",children:"Additional Users"}),d.map(p=>D.jsxs(m7e,{sx:{paddingY:1},onClick:()=>l(p),children:[D.jsx(O7e,{children:D.jsx(d1,{sx:{bgcolor:p.presence.color,width:24,height:24,fontSize:12},children:p.presence.name[0]})}),D.jsx(sp,{primary:p.presence.name,primaryTypographyProps:{variant:"body2"}})]},p.clientID))]})})]})}function xKe(){const e=Gu(),t=Gc(),n=Pr(Dp),r=Pr(LR),{presenceList:i}=VFe(n.doc);L.useEffect(()=>{n.shareRole==="READ"&&e(j8("read"))},[e,n.shareRole]);const a=o=>{o&&e(j8(o))},s=()=>{var o;t(`/${(o=r.data)==null?void 0:o.slug}`)};return D.jsx(FB,{position:"static",sx:{zIndex:100},children:D.jsx(iU,{children:D.jsxs(Wn,{width:"100%",direction:"row",justifyContent:"space-between",children:[D.jsxs(Wn,{direction:"row",spacing:1,alignItems:"center",children:[!n.shareRole&&D.jsx(Q0,{title:"Back to Previous Page",children:D.jsx(Ro,{color:"inherit",onClick:s,children:D.jsx(sde,{})})}),D.jsx(Ks,{children:n.shareRole!=="READ"&&D.jsxs(Xue,{value:n.mode,exclusive:!0,onChange:(o,l)=>a(l),size:"small",children:[D.jsx(m4,{value:"edit","aria-label":"edit",children:D.jsx(Q0,{title:"Edit Mode",children:D.jsx(ode,{})})}),D.jsx(m4,{value:"both","aria-label":"both",children:D.jsx(Q0,{title:"Both Mode",children:D.jsx(lde,{})})}),D.jsx(m4,{value:"read","aria-label":"read",children:D.jsx(Q0,{title:"Read Mode",children:D.jsx(AU,{})})})]})}),D.jsx(lUe,{})]}),D.jsxs(Wn,{direction:"row",alignItems:"center",gap:1,children:[D.jsx(wKe,{presenceList:i}),!n.shareRole&&D.jsx(OQe,{}),D.jsx(AQe,{})]})]})})})}function TKe(){return D.jsxs(ia,{sx:{flexGrow:1},height:"100vh",children:[D.jsx(xKe,{}),D.jsx(kR,{})]})}function kKe(){return D.jsx(Wn,{sx:{flexGrow:1,height:"100vh"},children:D.jsx(kR,{})})}var Xz={},AKe=Bi;Object.defineProperty(Xz,"__esModule",{value:!0});var K0e=Xz.default=void 0,_Ke=AKe(aa()),CKe=D;K0e=Xz.default=(0,_Ke.default)((0,CKe.jsx)("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout");var Kz={},RKe=Bi;Object.defineProperty(Kz,"__esModule",{value:!0});var J0e=Kz.default=void 0,IKe=RKe(aa()),dte=D;J0e=Kz.default=(0,IKe.default)([(0,dte.jsx)("circle",{cx:"10",cy:"8",r:"4"},"0"),(0,dte.jsx)("path",{d:"M10.67 13.02c-.22-.01-.44-.02-.67-.02-2.42 0-4.68.67-6.61 1.82-.88.52-1.39 1.5-1.39 2.53V20h9.26c-.79-1.13-1.26-2.51-1.26-4 0-1.07.25-2.07.67-2.98M20.75 16c0-.22-.03-.42-.06-.63l1.14-1.01-1-1.73-1.45.49c-.32-.27-.68-.48-1.08-.63L18 11h-2l-.3 1.49c-.4.15-.76.36-1.08.63l-1.45-.49-1 1.73 1.14 1.01c-.03.21-.06.41-.06.63s.03.42.06.63l-1.14 1.01 1 1.73 1.45-.49c.32.27.68.48 1.08.63L16 21h2l.3-1.49c.4-.15.76-.36 1.08-.63l1.45.49 1-1.73-1.14-1.01c.03-.21.06-.41.06-.63M17 18c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"},"1")],"ManageAccounts");const NKe={accessToken:null},eme=H1({name:"auth",initialState:NKe,reducers:{setAccessToken:(e,t)=>{e.accessToken=t.payload}}}),{setAccessToken:Jz}=eme.actions,sT=e=>e.auth,DKe=eme.reducer;function tme(e){const t=Gu(),n=Yx(),r=Gc(),i=()=>{t(Jz(null)),t(H8(null))},a=()=>{r("/settings/profile")},s=()=>{t(Nce(n=="light"?"dark":"light"))};return D.jsx(xO,{anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},...e,children:D.jsxs(Ew,{children:[D.jsxs(Cd,{onClick:s,children:[D.jsx(f1,{children:n==="light"?D.jsx(pz,{}):D.jsx(fz,{})}),D.jsx(sp,{children:"Appearance"})]}),D.jsxs(Cd,{onClick:a,children:[D.jsx(f1,{children:D.jsx(J0e,{fontSize:"small"})}),D.jsx(sp,{children:"Profile"})]}),D.jsxs(Cd,{onClick:i,children:[D.jsx(f1,{children:D.jsx(K0e,{fontSize:"small"})}),D.jsx(sp,{children:"Logout"})]})]})})}function nme(e){return D.jsx(bm,{...e,children:D.jsxs("svg",{width:"40",height:"38",viewBox:"0 0 40 38",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:30,height:30},children:[D.jsx("path",{d:"M11.8574 11.4048L18.8525 21.4507C19.2947 22.086 20.1683 22.2423 20.8036 21.8001C20.9398 21.7052 21.0581 21.5869 21.153 21.4507L28.148 11.4048C29.0327 10.1343 28.7198 8.3872 27.4495 7.5027C26.9794 7.17549 26.4205 7 25.8477 7H14.1577C12.6095 7 11.3545 8.25503 11.3545 9.80322C11.3547 10.3758 11.5302 10.9347 11.8574 11.4048Z",fill:"#514C49"}),D.jsx("path",{d:"M22.8637 29.5446C23.3612 29.8283 23.9338 29.9528 24.5042 29.9014L37.2991 28.7469C38.3271 28.6542 39.0851 27.7457 38.9924 26.7178C38.9876 26.6636 38.9803 26.6096 38.9706 26.556C38.5862 24.4114 37.8296 22.3507 36.7352 20.4668C35.6407 18.5829 34.2255 16.9048 32.5532 15.5085C31.761 14.8471 30.5825 14.953 29.9211 15.7455C29.8862 15.7872 29.8532 15.8305 29.8219 15.8752L22.4807 26.418C22.1535 26.888 21.978 27.4469 21.978 28.0198V27.9849C21.978 28.3055 22.0604 28.6208 22.2176 28.9002C22.3826 29.1751 22.6155 29.4029 22.8942 29.5617",fill:"#FDC433"}),D.jsx("path",{d:"M17.8492 28.7605C17.6844 29.097 17.4222 29.376 17.0969 29.5616L17.1365 29.539C16.6391 29.8227 16.0665 29.9472 15.4961 29.8959L2.70114 28.7414C2.64694 28.7365 2.59295 28.7293 2.53935 28.7196C1.52348 28.5375 0.847507 27.5663 1.02965 26.5505C1.41407 24.4057 2.17064 22.3451 3.26489 20.4611C4.35914 18.577 5.77455 16.8993 7.44706 15.5028C7.48877 15.4679 7.53208 15.4349 7.57681 15.4037C8.42384 14.8139 9.58841 15.0225 10.1784 15.8695L17.5196 26.4124C17.8468 26.8825 18.0223 27.4414 18.0223 28.0142V27.9685C18.0223 28.343 17.9096 28.7091 17.6991 29.019",fill:"#FDC433"})]})})}function PKe(){var o,l;const e=Gc(),t=Pr(AO),[n,r]=L.useState(null),i=u=>{r(u.currentTarget)},a=()=>{r(null)},s=()=>{var u;e(`/${(u=t.data)==null?void 0:u.lastWorkspaceSlug}`)};return D.jsxs(FB,{position:"fixed",children:[D.jsx(iU,{children:D.jsxs(Wn,{width:"100%",direction:"row-reverse",justifyContent:"space-between",alignItems:"center",children:[D.jsx(Ro,{onClick:i,children:D.jsx(d1,{children:(l=(o=t.data)==null?void 0:o.nickname)==null?void 0:l.charAt(0)})}),D.jsx(Ro,{onClick:s,children:D.jsx(nme,{})})]})}),D.jsx(tme,{open:!!n,anchorEl:n,onClose:a})]})}function MKe(){return D.jsxs(ia,{sx:{display:"flex"},children:[D.jsx(PKe,{}),D.jsx(kR,{})]})}const LKe=e=>["workspaces",e],rme=()=>["workspaces"],eH=e=>{const t=Gu(),n=CO({queryKey:LKe(e||""),enabled:!!e,queryFn:async()=>(await or.get(`/workspaces/${e}`)).data,meta:{errorMessage:"This is a non-existent or unauthorized Workspace."}});return L.useEffect(()=>(n.data&&t(YK(n.data)),()=>{t(YK(null))}),[t,n.data]),n},$Ke=()=>IU({queryKey:rme(),queryFn:async({pageParam:t})=>(await or.get("/workspaces",{params:{cursor:t}})).data,initialPageParam:void 0,getPreviousPageParam:t=>t.cursor??void 0,getNextPageParam:t=>t.cursor??void 0}),FKe=()=>{const e=Hx();return Pp({mutationFn:async t=>(await or.post("/workspaces",t)).data,onSuccess:()=>{e.invalidateQueries({queryKey:rme()})}})},BKe=e=>Pp({mutationFn:async t=>(await or.post(`/workspaces/${e}/invite-token`,t)).data}),UKe=()=>Pp({mutationFn:async e=>(await or.post("/workspaces/join",e)).data});class ex extends L.Component{constructor(t){super(t),this.scrollListener=this.scrollListener.bind(this),this.eventListenerOptions=this.eventListenerOptions.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this)}componentDidMount(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}componentDidUpdate(){if(this.props.isReverse&&this.loadMore){const t=this.getParentElement(this.scrollComponent);t.scrollTop=t.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}componentWillUnmount(){this.detachScrollListener(),this.detachMousewheelListener()}isPassiveSupported(){let t=!1;const n={get passive(){t=!0}};try{document.addEventListener("test",null,n),document.removeEventListener("test",null,n)}catch{}return t}eventListenerOptions(){let t=this.props.useCapture;return this.isPassiveSupported()?t={useCapture:this.props.useCapture,passive:!0}:t={passive:!1},t}setDefaultLoader(t){this.defaultLoader=t}detachMousewheelListener(){let t=window;this.props.useWindow===!1&&(t=this.scrollComponent.parentNode),t.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}detachScrollListener(){let t=window;this.props.useWindow===!1&&(t=this.getParentElement(this.scrollComponent)),t.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}getParentElement(t){const n=this.props.getScrollParent&&this.props.getScrollParent();return n??(t&&t.parentNode)}filterProps(t){return t}attachScrollListener(){const t=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!t)return;let n=window;this.props.useWindow===!1&&(n=t),n.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),n.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),n.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}mousewheelListener(t){t.deltaY===1&&!this.isPassiveSupported()&&t.preventDefault()}scrollListener(){const t=this.scrollComponent,n=window,r=this.getParentElement(t);let i;if(this.props.useWindow){const a=document.documentElement||document.body.parentNode||document.body,s=n.pageYOffset!==void 0?n.pageYOffset:a.scrollTop;this.props.isReverse?i=s:i=this.calculateOffset(t,s)}else this.props.isReverse?i=r.scrollTop:i=t.scrollHeight-r.scrollTop-r.clientHeight;i{this.scrollComponent=w,d&&d(w)};const E=[n];return i&&(o?s?E.unshift(o):E.push(o):this.defaultLoader&&(s?E.unshift(this.defaultLoader):E.push(this.defaultLoader))),on.createElement(r,S,E)}}Bs(ex,"propTypes",{children:cu.node.isRequired,element:cu.node,hasMore:cu.bool,initialLoad:cu.bool,isReverse:cu.bool,loader:cu.node,loadMore:cu.func.isRequired,pageStart:cu.number,ref:cu.func,getScrollParent:cu.func,threshold:cu.number,useCapture:cu.bool,useWindow:cu.bool}),Bs(ex,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});var tH={},zKe=Bi;Object.defineProperty(tH,"__esModule",{value:!0});var ime=tH.default=void 0,HKe=zKe(aa()),jKe=D;ime=tH.default=(0,HKe.default)((0,jKe.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var nH={},WKe=Bi;Object.defineProperty(nH,"__esModule",{value:!0});var cI=nH.default=void 0,QKe=WKe(aa()),GKe=D;cI=nH.default=(0,QKe.default)((0,GKe.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");function VKe(e,t){var n=L.useRef(!1),r=L.useRef(),i=L.useRef(e),a=L.useCallback(function(){return n.current},[]),s=L.useCallback(function(){n.current=!1,r.current&&clearTimeout(r.current),r.current=setTimeout(function(){n.current=!0,i.current()},t)},[t]),o=L.useCallback(function(){n.current=null,r.current&&clearTimeout(r.current)},[]);return L.useEffect(function(){i.current=e},[e]),L.useEffect(function(){return s(),o},[t]),[a,o,s]}function dI(e,t,n){n===void 0&&(n=[]);var r=VKe(e,t),i=r[0],a=r[1],s=r[2];return L.useEffect(s,n),[i,a]}const qKe=e=>["check","name-conflict",e],rH=e=>CO({queryKey:qKe(e||""),enabled:!!e,queryFn:async()=>(await or.post("/check/name-conflict",{name:e})).data});function ame(e){const{title:t,onSuccess:n,enableConflictCheck:r,...i}=e,[a,s]=L.useState(""),[o,l]=L.useState(""),{data:u}=rH(o),d=L.useMemo(()=>r?a.length<2?"Title must be at least 2 characters":u!=null&&u.conflict?"Already Exists":null:null,[r,a.length,u==null?void 0:u.conflict]);dI(()=>{l(a)},500,[a]);const f=()=>{var b;(b=i==null?void 0:i.onClose)==null||b.call(i,new Event("Close Modal"),"escapeKeyDown")},p=async b=>{b.title.length>=2&&(await n(b),f())},g=b=>{r&&s(b.target.value)};return D.jsx(EO,{disableAutoFocus:!0,...i,children:D.jsxs(Ks,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[D.jsx(Ro,{sx:{position:"absolute",top:28,right:28},onClick:f,children:D.jsx(XR,{})}),D.jsxs(Wn,{gap:4,children:[D.jsxs(Ar,{variant:"h5",children:["Create New ",t]}),D.jsx(Qc,{children:D.jsx(RO,{defaultValues:{title:""},onSuccess:p,children:D.jsxs(Wn,{gap:4,alignItems:"flex-end",children:[D.jsx(Wx,{variant:"standard",name:"title",label:`Title of New ${t}`,required:!0,fullWidth:!0,inputProps:{maxLength:255},onChange:g,error:!!d,helperText:d}),D.jsx(xo,{type:"submit",variant:"contained",size:"large",disabled:!!d,children:"OK"})]})})})]})]})})}function YKe(e){const{width:t,...n}=e,r=Gc(),i=Lm(),{data:a,hasNextPage:s,fetchNextPage:o}=$Ke(),{mutateAsync:l}=FKe(),u=L.useMemo(()=>(a==null?void 0:a.pages.reduce((E,w)=>E.concat(w.workspaces),[]))??[],[a==null?void 0:a.pages]),[d,f]=L.useState(!1),p=E=>{r(`/${E}`)},g=E=>{var w;i.workspaceSlug!==E&&(p(E),(w=n==null?void 0:n.onClose)==null||w.call(n,new Event("Close Popover"),"backdropClick"))},b=()=>{var E;f(w=>!w),n.open&&((E=n==null?void 0:n.onClose)==null||E.call(n,new Event("Close Popover"),"backdropClick"))},S=async E=>{const w=await l(E);p(w.slug)};return D.jsxs(D.Fragment,{children:[D.jsxs(xO,{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...n,children:[D.jsx(Ew,{sx:{width:t},children:D.jsx(ia,{style:{maxHeight:300,overflow:"auto"},children:D.jsx(ex,{pageStart:0,loadMore:()=>o(),hasMore:s,loader:D.jsx(ia,{className:"loader",children:D.jsx(Md,{size:"sm"})},0),useWindow:!1,children:u.map(E=>D.jsxs(Cd,{onClick:()=>g(E.slug),children:[D.jsx(sp,{primaryTypographyProps:{noWrap:!0,variant:"body2"},children:E.title}),i.workspaceSlug===E.slug&&D.jsx(JB,{children:D.jsx(ime,{fontSize:"small"})})]},E.id))})})}),D.jsx(zv,{}),D.jsx(Ew,{sx:{width:t},children:D.jsxs(Cd,{onClick:b,children:[D.jsx(f1,{children:D.jsx(cI,{fontSize:"small",color:"primary"})}),D.jsx(sp,{primaryTypographyProps:{color:"primary"},children:"Create Workspace"})]})})]}),D.jsx(ame,{open:d,title:"Workspace",onClose:b,onSuccess:S,enableConflictCheck:!0})]})}const NC=256,fte=64;var iH={},ZKe=Bi;Object.defineProperty(iH,"__esModule",{value:!0});var sme=iH.default=void 0,XKe=ZKe(aa()),KKe=D;sme=iH.default=(0,XKe.default)((0,KKe.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");var aH={},JKe=Bi;Object.defineProperty(aH,"__esModule",{value:!0});var ome=aH.default=void 0,eJe=JKe(aa()),tJe=D;ome=aH.default=(0,eJe.default)((0,tJe.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");function nJe(){var d,f,p;const e=Pr(AO),t=Pr(LR),[n,r]=L.useState(null),[i,a]=L.useState(null),s=g=>{a(g.currentTarget)},o=()=>{a(null)},l=g=>{r(g.currentTarget)},u=()=>{r(null)};return D.jsxs(FB,{position:"fixed",children:[D.jsx(iU,{children:D.jsxs(Wn,{width:"100%",direction:"row",justifyContent:"space-between",alignItems:"center",children:[D.jsx(xo,{variant:"text",color:"inherit",sx:{width:NC,textAlign:"left"},onClick:l,children:D.jsxs(Wn,{width:1,direction:"row",justifyContent:"space-between",alignItems:"center",children:[D.jsx(Ar,{variant:"h6",component:"span",noWrap:!0,children:(d=t.data)==null?void 0:d.title}),n?D.jsx(ome,{}):D.jsx(sme,{})]})}),D.jsx(YKe,{open:!!n,anchorEl:n,onClose:u,width:NC}),D.jsx(Ro,{onClick:s,children:D.jsx(d1,{children:(p=(f=e.data)==null?void 0:f.nickname)==null?void 0:p.charAt(0)})})]})}),D.jsx(tme,{open:!!i,anchorEl:i,onClose:o})]})}var sH={},rJe=Bi;Object.defineProperty(sH,"__esModule",{value:!0});var lme=sH.default=void 0,iJe=rJe(aa()),aJe=D;lme=sH.default=(0,iJe.default)((0,aJe.jsx)("path",{d:"M11 21H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h6zm2 0h6c1.1 0 2-.9 2-2v-7h-8zm8-11V5c0-1.1-.9-2-2-2h-6v7z"}),"SpaceDashboard");var oH={},sJe=Bi;Object.defineProperty(oH,"__esModule",{value:!0});var ume=oH.default=void 0,oJe=sJe(aa()),lJe=D;ume=oH.default=(0,oJe.default)((0,lJe.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"People");var lH={},uJe=Bi;Object.defineProperty(lH,"__esModule",{value:!0});var cme=lH.default=void 0,cJe=uJe(aa()),hte=D;cme=lH.default=(0,cJe.default)([(0,hte.jsx)("path",{d:"M6.41 6 5 7.41 9.58 12 5 16.59 6.41 18l6-6z"},"0"),(0,hte.jsx)("path",{d:"m13 6-1.41 1.41L16.17 12l-4.58 4.59L13 18l6-6z"},"1")],"KeyboardDoubleArrowRight");var uH={},dJe=Bi;Object.defineProperty(uH,"__esModule",{value:!0});var dme=uH.default=void 0,fJe=dJe(aa()),pte=D;dme=uH.default=(0,fJe.default)([(0,pte.jsx)("path",{d:"M17.59 18 19 16.59 14.42 12 19 7.41 17.59 6l-6 6z"},"0"),(0,pte.jsx)("path",{d:"m11 18 1.41-1.41L7.83 12l4.58-4.59L11 6l-6 6z"},"1")],"KeyboardDoubleArrowLeft");function hJe(e){const{open:t}=e,n=Mm(),r=Lm(),i=Gc(),a=Gu(),[s,o]=L.useState(!1),l=L.useMemo(()=>n.pathname.split("/")[2]??"main",[n.pathname]),u=L.useMemo(()=>[{title:"Workspace",IconComponent:lme,selected:l==="main",moveTo:`/${r.workspaceSlug}`},{title:"Members",IconComponent:ume,selected:l==="member",moveTo:`/${r.workspaceSlug}/member`}],[l,r.workspaceSlug]),d=()=>{a(XLe(!t)),o(!1)},f=()=>{o(!0)},p=()=>{o(!1)};return D.jsxs(ia,{children:[D.jsx(ia,{sx:{width:t?NC:fte}}),D.jsx(Ks,{sx:{position:"fixed",top:0,left:0,height:"100vh",zIndex:10},children:D.jsx($B,{orientation:"horizontal",in:s||t,collapsedSize:fte,children:D.jsxs(ia,{sx:{width:NC,overflow:"hidden"},children:[D.jsx(fme,{}),D.jsx(Ks,{square:!0,elevation:0,onMouseEnter:f,onMouseLeave:p,sx:{backgroundColor:"transparent"},children:D.jsxs(Bue,{children:[D.jsx(RX,{onClick:d,children:D.jsx(f1,{children:t?D.jsx(dme,{}):D.jsx(cme,{})})}),u.map((g,b)=>D.jsxs(RX,{onClick:()=>i(g.moveTo),selected:g.selected,children:[D.jsx(f1,{children:D.jsx(g.IconComponent,{color:g.selected?"primary":"inherit"})}),D.jsx(sp,{primary:g.title})]},b))]})})]})})})]})}const fme=pt("div")(({theme:e})=>({display:"flex",alignItems:"center",padding:e.spacing(0,1),...e.mixins.toolbar,justifyContent:"flex-end"}));function pJe(){const{drawerOpen:e}=Pr(bU);return D.jsxs(ia,{sx:{display:"flex"},children:[D.jsx(nJe,{}),D.jsxs(Wn,{direction:"row",sx:{width:"100%"},children:[D.jsx(hJe,{open:e}),D.jsxs(ia,{flexGrow:1,padding:3,children:[D.jsx(fme,{}),D.jsx(kR,{})]})]})]})}var mJe=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(r,i,a){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:a})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,i){if(1&i&&(r=n(r)),8&i||4&i&&typeof r=="object"&&r&&r.__esModule)return r;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var s in r)n.d(a,s,(function(o){return r[o]}).bind(null,s));return a},n.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(i,"a",i),i},n.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},n.p="",n(n.s=4)}([function(e,t,n){e.exports=n(2)()},function(e,t){e.exports=L},function(e,t,n){var r=n(3);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function s(u,d,f,p,g,b){if(b!==r){var S=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw S.name="Invariant Violation",S}}function o(){return s}s.isRequired=s;var l={array:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:o,element:s,elementType:s,instanceOf:o,node:s,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:a,resetWarningCache:i};return l.PropTypes=l,l}},function(e,t,n){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){n.r(t),n.d(t,"FacebookLoginButton",function(){return ee}),n.d(t,"GoogleLoginButton",function(){return W}),n.d(t,"GithubLoginButton",function(){return X}),n.d(t,"TwitterLoginButton",function(){return oe}),n.d(t,"AmazonLoginButton",function(){return et}),n.d(t,"InstagramLoginButton",function(){return Pt}),n.d(t,"LinkedInLoginButton",function(){return wt}),n.d(t,"MicrosoftLoginButton",function(){return z}),n.d(t,"BufferLoginButton",function(){return _e}),n.d(t,"TelegramLoginButton",function(){return Qe}),n.d(t,"AppleLoginButton",function(){return ye}),n.d(t,"DiscordLoginButton",function(){return ze}),n.d(t,"OktaLoginButton",function(){return tt}),n.d(t,"SlackLoginButton",function(){return Gt}),n.d(t,"YahooLoginButton",function(){return Cr}),n.d(t,"createButton",function(){return ie}),n.d(t,"createSvgIcon",function(){return q}),n.d(t,"ZaloLoginButton",function(){return vi}),n.d(t,"TikTokLoginButton",function(){return oi}),n.d(t,"MetamaskLoginButton",function(){return Ci});var r={};n.r(r),n.d(r,"FacebookLoginButton",function(){return ee}),n.d(r,"GoogleLoginButton",function(){return W}),n.d(r,"GithubLoginButton",function(){return X}),n.d(r,"TwitterLoginButton",function(){return oe}),n.d(r,"AmazonLoginButton",function(){return et}),n.d(r,"InstagramLoginButton",function(){return Pt}),n.d(r,"LinkedInLoginButton",function(){return wt}),n.d(r,"MicrosoftLoginButton",function(){return z}),n.d(r,"BufferLoginButton",function(){return _e}),n.d(r,"TelegramLoginButton",function(){return Qe}),n.d(r,"AppleLoginButton",function(){return ye}),n.d(r,"DiscordLoginButton",function(){return ze}),n.d(r,"OktaLoginButton",function(){return tt}),n.d(r,"SlackLoginButton",function(){return Gt}),n.d(r,"YahooLoginButton",function(){return Cr}),n.d(r,"createButton",function(){return ie}),n.d(r,"createSvgIcon",function(){return q}),n.d(r,"ZaloLoginButton",function(){return vi}),n.d(r,"TikTokLoginButton",function(){return oi}),n.d(r,"MetamaskLoginButton",function(){return Ci});var i=n(1),a=n.n(i),s=n(0),o=n.n(s),l=function(We){var lt=We.name,de=We.size,me=We.format;return a.a.createElement("i",{className:me(lt),style:{fontSize:de}})};l.propTypes={format:o.a.func,name:o.a.string.isRequired,size:o.a.oneOfType([o.a.string,o.a.number]).isRequired},l.defaultProps={format:function(We){return"demo-icon icon-".concat(We)},size:26};var u=l,d=function(We){var lt=We.type,de=We.size,me=We.format,Be=We.color,Ke=Be===void 0?"#FFFFFF":Be;return typeof lt=="string"?a.a.createElement(u,{format:me,name:lt,size:de}):a.a.createElement(lt,{size:de,color:Ke})};d.propTypes={format:o.a.func,size:o.a.oneOfType([o.a.number,o.a.string]),type:o.a.oneOfType([o.a.string,o.a.node,o.a.func]),color:o.a.string};var f=d;function p(We,lt){var de=Object.keys(We);if(Object.getOwnPropertySymbols){var me=Object.getOwnPropertySymbols(We);lt&&(me=me.filter(function(Be){return Object.getOwnPropertyDescriptor(We,Be).enumerable})),de.push.apply(de,me)}return de}function g(We){for(var lt=1;lt"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var de,me=C(We);if(lt){var Be=C(this).constructor;de=Reflect.construct(me,arguments,Be)}else de=me.apply(this,arguments);return _(this,de)}}function _(We,lt){return!lt||S(lt)!=="object"&&typeof lt!="function"?function(de){if(de===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return de}(We):lt}function C(We){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(lt){return lt.__proto__||Object.getPrototypeOf(lt)})(We)}var R=function(We){(function(Ke,yt){if(typeof yt!="function"&&yt!==null)throw new TypeError("Super expression must either be null or a function");Ke.prototype=Object.create(yt&&yt.prototype,{constructor:{value:Ke,writable:!0,configurable:!0}}),yt&&x(Ke,yt)})(Be,We);var lt,de,me=k(Be);function Be(Ke){var yt;return function(Xt,Le){if(!(Xt instanceof Le))throw new TypeError("Cannot call a class as a function")}(this,Be),(yt=me.call(this,Ke)).state={focused:!1,hovered:!1},yt.handleMouseEnter=function(){yt.setState({hovered:!0}),typeof yt.props.onMouseEnter=="function"&&yt.props.onMouseEnter()},yt.handleMouseLeave=function(){yt.setState({hovered:!1}),typeof yt.props.onMouseLeave=="function"&&yt.props.onMouseLeave()},yt.handleFocus=function(){yt.setState({focused:!0})},yt.handleBlur=function(){yt.setState({focused:!1})},yt.handleClick=function(Xt){typeof yt.props.onClick=="function"&&yt.props.onClick(Xt)},yt}return lt=Be,(de=[{key:"render",value:function(){var Ke=this.props,yt=Ke.activeStyle,Xt=Ke.align,Le=Ke.text,Te=Ke.children,dt=Te===void 0?Le:Te,Je=Ke.className,kt=Ke.icon,_t=Ke.iconFormat,qt=Ke.iconSize,it=Ke.iconColor,Vn=it===void 0?"#FFFFFF":it,Ri=Ke.preventActiveStyles,Dn=Ke.size,oa=Ke.style,la=Ke.disabled,Wa=this.state,Ps=Wa.focused,Qa=Wa.hovered,va=M(U.button,{activeStyle:Ri?oa:yt,customStyle:oa,active:Qa||Ps,size:Dn});return a.a.createElement("button",E({type:"button",style:va,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur},{className:Je},{disabled:la}),a.a.createElement("div",{style:U.flex},!N(qt)&&a.a.createElement("div",{style:{display:"flex",justifyContent:"center",minWidth:qt}},a.a.createElement(f,{type:kt,size:qt,format:_t,color:Vn})),!N(qt)&&a.a.createElement("div",{style:U.divider}),a.a.createElement("div",{style:{textAlign:Xt,width:"100%"}},dt)))}}])&&w(lt.prototype,de),Be}(i.Component),N=function(We){return We==="0"||We==="0px"||We===0},M=function(We,lt){var de=lt.size,me=lt.customStyle,Be=lt.active,Ke=lt.activeStyle;return g(g(g({},We),{},{height:de},me),Be&&Ke)};R.propTypes={activeStyle:o.a.object,align:o.a.oneOf(["left","right","center"]),children:o.a.node,className:o.a.string,icon:o.a.oneOfType([o.a.string,o.a.node,o.a.func]),iconFormat:o.a.func,iconSize:o.a.string,iconColor:o.a.string,onClick:o.a.func,onMouseEnter:o.a.func,onMouseLeave:o.a.func,preventActiveStyles:o.a.bool,size:o.a.string,style:o.a.object,text:o.a.string,disabled:o.a.bool},R.defaultProps={align:"left",iconSize:"26px",preventActiveStyles:!1,size:"50px"};var U={button:{display:"block",border:0,borderRadius:3,boxShadow:"rgba(0, 0, 0, 0.5) 0 1px 2px",color:"#ffffff",cursor:"pointer",fontSize:"19px",margin:"5px",width:"calc(100% - 10px)",overflow:"hidden",padding:"0 10px",userSelect:"none"},divider:{width:"10px"},flex:{alignItems:"center",display:"flex",height:"100%"}};function F(We,lt){var de=Object.keys(We);if(Object.getOwnPropertySymbols){var me=Object.getOwnPropertySymbols(We);lt&&(me=me.filter(function(Be){return Object.getOwnPropertyDescriptor(We,Be).enumerable})),de.push.apply(de,me)}return de}function G(We){for(var lt=1;lt{window.location.href=`https://codepair-api.yorkie.dev/auth/login/${t}`};return D.jsx(YB,{sx:{height:1},children:D.jsx(Wn,{alignItems:"center",justifyContent:"center",sx:{height:1},children:D.jsx(Ks,{sx:{p:5,width:"small",boxShadow:2,maxWidth:"80%"},children:D.jsxs(Wn,{gap:4,children:[D.jsxs(ia,{children:[D.jsxs(Wn,{direction:"row",gap:1,children:[D.jsx(nme,{}),D.jsx(Ar,{variant:"h6",children:"Login"})]}),D.jsx(Ar,{variant:"body2",color:"text.secondary",maxWidth:320,children:"Real-time markdown editor for interviews, meetings and more..."})]}),D.jsxs(Wn,{gap:2,children:[D.jsxs(Ry,{container:!0,spacing:1,alignItems:"center",children:[D.jsx(Ry,{item:!0,xs:!0,children:D.jsx(zv,{sx:{width:1}})}),D.jsx(Ry,{item:!0,xs:"auto",children:D.jsx(Ar,{variant:"body2",color:"text.secondary",children:"Login with"})}),D.jsx(Ry,{item:!0,xs:!0,children:D.jsx(zv,{sx:{width:1}})})]}),gJe.map(({SocailLoginComponent:t,provider:n})=>D.jsx(t,{size:"48px",onClick:()=>e(n)},n))]})]})})})})}function yJe(){const e=Gu(),t=Gc(),[n]=fU();return L.useEffect(()=>{const r=n.get("token");if(!r){t("/");return}e(Jz(r))},[e,t,n]),D.jsx(ia,{})}const vJe=()=>{const e=Gc(),t=()=>{e("/")};return D.jsxs(ia,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100vh",width:"100vw",textAlign:"center",bgcolor:"background.default",color:"text.primary",p:3},children:[D.jsx(Ar,{variant:"h1",component:"h1",gutterBottom:!0,children:"404"}),D.jsx(Ar,{variant:"h5",component:"p",gutterBottom:!0,children:"Page Not Found"}),D.jsx(Ar,{variant:"body1",component:"p",gutterBottom:!0,children:"The page you are looking for does not exist."}),D.jsx(xo,{variant:"contained",color:"primary",onClick:t,sx:{mt:2},children:"Go to Home"})]})},hme=e=>["users",e],OJe=()=>{const e=Gu(),t=Pr(sT),n=CO({queryKey:hme(t.accessToken||""),enabled:!!t.accessToken,queryFn:async()=>(or.defaults.headers.common.Authorization=`Bearer ${t.accessToken}`,(await or.get("/users")).data)});return L.useEffect(()=>{n.isSuccess?e(H8(n.data)):n.isError&&(e(Jz(null)),e(H8(null)),or.defaults.headers.common.Authorization="")},[e,n.data,n.isError,n.isSuccess]),n},pme=()=>{const e=Pr(sT),t=Hx();return Pp({mutationFn:async n=>(await or.put("/users",n)).data,onSuccess:()=>{t.invalidateQueries({queryKey:hme(e.accessToken||"")})}})},t7=117;function SJe(){var f,p,g,b,S,E,w,x;const e=Pr(AO),[t,n]=L.useState(((f=e.data)==null?void 0:f.nickname)||""),[r,i]=L.useState(""),{data:a}=rH(r),{mutateAsync:s}=pme(),o=L.useMemo(()=>{var k;return r!=((k=e.data)==null?void 0:k.nickname)&&(a!=null&&a.conflict)?"Already Exists":null},[a==null?void 0:a.conflict,r,(p=e.data)==null?void 0:p.nickname]),l=L.useMemo(()=>{var k;return!!o||t===((k=e.data)==null?void 0:k.nickname)||t.length===0},[o,t,(g=e.data)==null?void 0:g.nickname]);dI(()=>{i(t)},500,[t]),L.useEffect(()=>{var k,_;(k=e.data)!=null&&k.nickname&&n(((_=e.data)==null?void 0:_.nickname)||"")},[(b=e.data)==null?void 0:b.nickname]);const u=k=>{n(k.target.value)},d=async k=>{await s(k)};return D.jsx(YB,{sx:{height:"calc(100vh - 88px)",width:"100%"},children:D.jsxs(Wn,{alignItems:"center",justifyContent:"center",gap:6,sx:{height:1},children:[D.jsx(d1,{sx:{width:t7,height:t7,fontSize:t7/2},children:(E=(S=e.data)==null?void 0:S.nickname)==null?void 0:E.charAt(0).toUpperCase()}),D.jsx(Wn,{width:310,children:D.jsxs(Qc,{children:[D.jsx(Ar,{variant:"body1",children:"User name"}),((w=e.data)==null?void 0:w.nickname)&&D.jsx(RO,{defaultValues:{nickname:(x=e.data)==null?void 0:x.nickname},onSuccess:d,children:D.jsxs(Wn,{gap:3,children:[D.jsx(Wx,{variant:"standard",name:"nickname",required:!0,fullWidth:!0,inputProps:{maxLength:255},onChange:u,error:!!o,helperText:o}),D.jsx(xo,{type:"submit",variant:"contained",size:"large",disabled:l,children:"Save"})]})})]})})]})})}var cH={},EJe=Bi;Object.defineProperty(cH,"__esModule",{value:!0});var mme=cH.default=void 0,wJe=EJe(aa()),mte=D;mme=cH.default=(0,wJe.default)([(0,mte.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,mte.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function xJe(e){const{document:t}=e,n=Gc(),r=Lm(),i=()=>{n(`/${r.workspaceSlug}/${t.id}`)};return D.jsx(Mue,{sx:{width:"100%"},children:D.jsx(P6e,{onClick:i,children:D.jsxs(B6e,{children:[D.jsx(Ar,{variant:"h5",component:"div",noWrap:!0,children:t.title}),D.jsxs(Wn,{direction:"row",alignItems:"center",gap:1,children:[D.jsx(mme,{fontSize:"small",sx:{color:"text.secondary"}}),D.jsxs(Ar,{variant:"body2",color:"text.secondary",noWrap:!0,children:["Changed ",an(t.updatedAt).fromNow()]})]})]})})})}function TJe(){const e=Lm(),t=Gc(),{data:n,isLoading:r}=eH(e.workspaceSlug),{data:i,fetchNextPage:a,hasNextPage:s}=uQe(n==null?void 0:n.id),{mutateAsync:o}=dQe((n==null?void 0:n.id)||""),[l,u]=L.useState(!1),d=L.useMemo(()=>(i==null?void 0:i.pages.reduce((g,b)=>g.concat(b.documents),[]))??[],[i==null?void 0:i.pages]);if(r)return D.jsx(SO,{open:!0,children:D.jsx(Md,{color:"inherit"})});const f=()=>{u(g=>!g)},p=async g=>{const b=await o(g);t(b.id)};return D.jsxs(Wn,{gap:2,children:[D.jsxs(Wn,{direction:"row",justifyContent:"space-between",alignItems:"center",px:2,children:[D.jsxs(Ar,{variant:"h5",fontWeight:"bold",children:[n==null?void 0:n.title," ",D.jsx(Ar,{component:"span",variant:"inherit",color:"primary",children:i==null?void 0:i.pages[0].totalLength})]}),D.jsx(xo,{variant:"contained",startIcon:D.jsx(cI,{}),onClick:f,children:"New Note"})]}),D.jsx(Wn,{style:{maxHeight:"calc(100vh - 144px)",overflow:"auto"},children:D.jsx(ex,{pageStart:0,loadMore:()=>a(),hasMore:s,loader:D.jsx(Wn,{className:"loader",alignItems:"center",children:D.jsx(Md,{size:20})},0),useWindow:!1,children:D.jsx(ia,{p:2,width:1,children:D.jsx(Ry,{container:!0,spacing:{xs:2,md:3},columns:{xs:4,sm:8,md:12,lg:12},children:d.map(g=>D.jsx(Ry,{item:!0,xs:4,sm:4,md:4,lg:3,children:D.jsx(xJe,{document:g})},g.id))})})})}),D.jsx(ame,{open:l,title:"Note",onSuccess:p,onClose:f})]})}function DC(){return DC=Object.assign?Object.assign.bind():function(e){for(var t=1;tu?(U(u),F.current=u):(U(Re),F.current=Re),E&&E({position:F.current})}}},[r,t,S,b,p,d,M,o,u,E,a]),se=L.useCallback(function(){r||(U(a),F.current=a)},[r,a]);return{position:M,endPosition:V,isDragging:C,separatorProps:DC({},ne,{onPointerDown:ee,onKeyDown:Z,onDoubleClick:se}),setPosition:U,splitterProps:DC({},ne,{onPointerDown:ee,onKeyDown:Z,onDoubleClick:se})}},RJe=function(e){var t=e.disabled,n=e.initial,r=e.min,i=e.max;return(0,e.children)(CJe({axis:e.axis,disabled:t!==void 0&&t,initial:n===void 0?0:n,min:r===void 0?0:r,max:i===void 0?1/0:i,reverse:e.reverse,onResizeStart:e.onResizeStart,onResizeEnd:e.onResizeEnd,containerRef:e.containerRef}))};const IJe=e=>{const t=L.useRef(e);return L.useEffect(()=>{t.current=e}),t},NJe=(e,t=100,n=!1)=>{const r=IJe(e),i=L.useRef(),a=[t,n,r];function s(){i.current&&clearTimeout(i.current),i.current=void 0}L.useEffect(()=>s,a);function o(){i.current=void 0}return L.useCallback(function(){const l=arguments,{current:u}=i;if(u===void 0&&n)return i.current=setTimeout(o,t),r.current.apply(null,l);u&&clearTimeout(u),i.current=setTimeout(()=>{i.current=void 0,r.current.apply(null,l)},t)},a)},DJe=(e,t,n)=>{const r=L.useState(e);return[r[0],NJe(r[1],t,n)]};function n7(e,t,n,r){const i=L.useRef(n),a=L.useRef(r);L.useEffect(()=>{i.current=n,a.current=r}),L.useEffect(()=>{const s=e&&"current"in e?e.current:e;if(!s)return;let o=0;function l(...d){o||i.current.apply(this,d)}s.addEventListener(t,l);const u=a.current;return()=>{o=1,s.removeEventListener(t,l),u&&u()}},[e,t])}const PJe={},IE=typeof window>"u"?null:window,MJe=IE&&typeof IE.visualViewport<"u"?IE.visualViewport:null,gte=()=>[document.documentElement.clientWidth,document.documentElement.clientHeight],LJe=function(e){e===void 0&&(e=PJe);const{wait:t,leading:n,initialWidth:r=0,initialHeight:i=0}=e,[a,s]=DJe(typeof document>"u"?[r,i]:gte,t,n),o=()=>s(gte);return n7(IE,"resize",o),n7(MJe,"resize",o),n7(IE,"orientationchange",o),a},$Je=e=>LJe(e)[0];class PC{static create(t,n,r,i,a){let s=i+(i<<8)+t+(n<<4)|0;return new PC(t,n,r,s,a,[],[])}constructor(t,n,r,i,a,s,o){this.type=t,this.value=n,this.from=r,this.hash=i,this.end=a,this.children=s,this.positions=o,this.hashProp=[[Zn.contextHash,i]]}addChild(t,n){t.prop(Zn.contextHash)!=this.hash&&(t=new ii(t.type,t.children,t.positions,t.length,this.hashProp)),this.children.push(t),this.positions.push(n)}toTree(t,n=this.end){let r=this.children.length-1;return r>=0&&(n=Math.max(n,this.positions[r]+this.children[r].length+this.from)),new ii(t.types[this.type],this.children,this.positions,n-this.from).balance({makeTree:(i,a,s)=>new ii(bs.none,i,a,s,this.hashProp)})}}var Yt;(function(e){e[e.Document=1]="Document",e[e.CodeBlock=2]="CodeBlock",e[e.FencedCode=3]="FencedCode",e[e.Blockquote=4]="Blockquote",e[e.HorizontalRule=5]="HorizontalRule",e[e.BulletList=6]="BulletList",e[e.OrderedList=7]="OrderedList",e[e.ListItem=8]="ListItem",e[e.ATXHeading1=9]="ATXHeading1",e[e.ATXHeading2=10]="ATXHeading2",e[e.ATXHeading3=11]="ATXHeading3",e[e.ATXHeading4=12]="ATXHeading4",e[e.ATXHeading5=13]="ATXHeading5",e[e.ATXHeading6=14]="ATXHeading6",e[e.SetextHeading1=15]="SetextHeading1",e[e.SetextHeading2=16]="SetextHeading2",e[e.HTMLBlock=17]="HTMLBlock",e[e.LinkReference=18]="LinkReference",e[e.Paragraph=19]="Paragraph",e[e.CommentBlock=20]="CommentBlock",e[e.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",e[e.Escape=22]="Escape",e[e.Entity=23]="Entity",e[e.HardBreak=24]="HardBreak",e[e.Emphasis=25]="Emphasis",e[e.StrongEmphasis=26]="StrongEmphasis",e[e.Link=27]="Link",e[e.Image=28]="Image",e[e.InlineCode=29]="InlineCode",e[e.HTMLTag=30]="HTMLTag",e[e.Comment=31]="Comment",e[e.ProcessingInstruction=32]="ProcessingInstruction",e[e.Autolink=33]="Autolink",e[e.HeaderMark=34]="HeaderMark",e[e.QuoteMark=35]="QuoteMark",e[e.ListMark=36]="ListMark",e[e.LinkMark=37]="LinkMark",e[e.EmphasisMark=38]="EmphasisMark",e[e.CodeMark=39]="CodeMark",e[e.CodeText=40]="CodeText",e[e.CodeInfo=41]="CodeInfo",e[e.LinkTitle=42]="LinkTitle",e[e.LinkLabel=43]="LinkLabel",e[e.URL=44]="URL"})(Yt||(Yt={}));class FJe{constructor(t,n){this.start=t,this.content=n,this.marks=[],this.parsers=[]}}class BJe{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let t=this.skipSpace(this.basePos);this.indent=this.countIndent(t,this.pos,this.indent),this.pos=t,this.next=t==this.text.length?-1:this.text.charCodeAt(t)}skipSpace(t){return NE(this.text,t)}reset(t){for(this.text=t,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(t){this.basePos=t,this.baseIndent=this.countIndent(t,this.pos,this.indent)}moveBaseColumn(t){this.baseIndent=t,this.basePos=this.findColumn(t)}addMarker(t){this.markers.push(t)}countIndent(t,n=0,r=0){for(let i=n;i=t.stack[n.depth+1].value+n.baseIndent)return!0;if(n.indent>=n.baseIndent+4)return!1;let r=(e.type==Yt.OrderedList?hH:fH)(n,t,!1);return r>0&&(e.type!=Yt.BulletList||dH(n,t,!1)<0)&&n.text.charCodeAt(n.pos+r-1)==e.value}const yme={[Yt.Blockquote](e,t,n){return n.next!=62?!1:(n.markers.push($r(Yt.QuoteMark,t.lineStart+n.pos,t.lineStart+n.pos+1)),n.moveBase(n.pos+(Zc(n.text.charCodeAt(n.pos+1))?2:1)),e.end=t.lineStart+n.text.length,!0)},[Yt.ListItem](e,t,n){return n.indent-1?!1:(n.moveBaseColumn(n.baseIndent+e.value),!0)},[Yt.OrderedList]:bte,[Yt.BulletList]:bte,[Yt.Document](){return!0}};function Zc(e){return e==32||e==9||e==10||e==13}function NE(e,t=0){for(;tn&&Zc(e.charCodeAt(t-1));)t--;return t}function vme(e){if(e.next!=96&&e.next!=126)return-1;let t=e.pos+1;for(;t-1&&e.depth==t.stack.length||r<3?-1:1}function Sme(e,t){for(let n=e.stack.length-1;n>=0;n--)if(e.stack[n].type==t)return!0;return!1}function fH(e,t,n){return(e.next==45||e.next==43||e.next==42)&&(e.pos==e.text.length-1||Zc(e.text.charCodeAt(e.pos+1)))&&(!n||Sme(t,Yt.BulletList)||e.skipSpace(e.pos+2)=48&&i<=57;){r++;if(r==e.text.length)return-1;i=e.text.charCodeAt(r)}return r==e.pos||r>e.pos+9||i!=46&&i!=41||re.pos+1||e.next!=49)?-1:r+1-e.pos}function Eme(e){if(e.next!=35)return-1;let t=e.pos+1;for(;t6?-1:n}function wme(e){if(e.next!=45&&e.next!=61||e.indent>=e.baseIndent+4)return-1;let t=e.pos+1;for(;t/,Tme=/\?>/,uM=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/i.exec(r);if(a)return e.append($r(Yt.Comment,n,n+1+a[0].length));let s=/^\?[^]*?\?>/.exec(r);if(s)return e.append($r(Yt.ProcessingInstruction,n,n+1+s[0].length));let o=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(r);return o?e.append($r(Yt.HTMLTag,n,n+1+o[0].length)):-1},Emphasis(e,t,n){if(t!=95&&t!=42)return-1;let r=n+1;for(;e.char(r)==t;)r++;let i=e.slice(n-1,n),a=e.slice(r,r+1),s=nx.test(i),o=nx.test(a),l=/\s|^$/.test(i),u=/\s|^$/.test(a),d=!u&&(!o||l||s),f=!l&&(!s||u||o),p=d&&(t==42||!f||s),g=f&&(t==42||!d||o);return e.append(new hc(t==95?Ime:Nme,n,r,(p?1:0)|(g?2:0)))},HardBreak(e,t,n){if(t==92&&e.char(n+1)==10)return e.append($r(Yt.HardBreak,n,n+2));if(t==32){let r=n+1;for(;e.char(r)==32;)r++;if(e.char(r)==10&&r>=n+2)return e.append($r(Yt.HardBreak,n,r+1))}return-1},Link(e,t,n){return t==91?e.append(new hc(cy,n,n+1,1)):-1},Image(e,t,n){return t==33&&e.char(n+1)==91?e.append(new hc(dM,n,n+2,1)):-1},LinkEnd(e,t,n){if(t!=93)return-1;for(let r=e.parts.length-1;r>=0;r--){let i=e.parts[r];if(i instanceof hc&&(i.type==cy||i.type==dM)){if(!i.side||e.skipSpace(i.to)==n&&!/[(\[]/.test(e.slice(n+1,n+2)))return e.parts[r]=null,-1;let a=e.takeContent(r),s=e.parts[r]=GJe(e,a,i.type==cy?Yt.Link:Yt.Image,i.from,n+1);if(i.type==cy)for(let o=0;ot?$r(Yt.URL,t+n,a+n):a==e.length?null:!1}}function Pme(e,t,n){let r=e.charCodeAt(t);if(r!=39&&r!=34&&r!=40)return!1;let i=r==40?41:r;for(let a=t+1,s=!1;a=this.end?-1:this.text.charCodeAt(t-this.offset)}get end(){return this.offset+this.text.length}slice(t,n){return this.text.slice(t-this.offset,n-this.offset)}append(t){return this.parts.push(t),t.to}addDelimiter(t,n,r,i,a){return this.append(new hc(t,n,r,(i?1:0)|(a?2:0)))}get hasOpenLink(){for(let t=this.parts.length-1;t>=0;t--){let n=this.parts[t];if(n instanceof hc&&(n.type==cy||n.type==dM))return!0}return!1}addElement(t){return this.append(t)}resolveMarkers(t){for(let r=t;r=t;l--){let S=this.parts[l];if(S instanceof hc&&S.side&1&&S.type==i.type&&!(a&&(i.side&1||S.side&2)&&(S.to-S.from+s)%3==0&&((S.to-S.from)%3||s%3))){o=S;break}}if(!o)continue;let u=i.type.resolve,d=[],f=o.from,p=i.to;if(a){let S=Math.min(2,o.to-o.from,s);f=o.to-S,p=i.from+S,u=S==1?"Emphasis":"StrongEmphasis"}o.type.mark&&d.push(this.elt(o.type.mark,f,o.to));for(let S=l+1;S=0;n--){let r=this.parts[n];if(r instanceof hc&&r.type==t)return n}return null}takeContent(t){let n=this.resolveMarkers(t);return this.parts.length=t,n}skipSpace(t){return NE(this.text,t-this.offset)+this.offset}elt(t,n,r,i){return typeof t=="string"?$r(this.parser.getNodeType(t),n,r,i):new Rme(t,n)}}function fM(e,t){if(!t.length)return e;if(!e.length)return t;let n=e.slice(),r=0;for(let i of t){for(;r(t?t-1:0))return!1;if(this.fragmentEnd<0){let a=this.fragment.to;for(;a>0&&this.input.read(a-1,a)!=` +`;)a--;this.fragmentEnd=a?a-1:0}let r=this.cursor;r||(r=this.cursor=this.fragment.tree.cursor(),r.firstChild());let i=t+this.fragment.offset;for(;r.to<=i;)if(!r.parent())return!1;for(;;){if(r.from>=i)return this.fragment.from<=n;if(!r.childAfter(i))return!1}}matches(t){let n=this.cursor.tree;return n&&n.prop(Zn.contextHash)==t}takeNodes(t){let n=this.cursor,r=this.fragment.offset,i=this.fragmentEnd-(this.fragment.openEnd?1:0),a=t.absoluteLineStart,s=a,o=t.block.children.length,l=s,u=o;for(;;){if(n.to-r>i){if(n.type.isAnonymous&&n.firstChild())continue;break}let d=Lme(n.from-r,t.ranges);if(n.to-r<=t.ranges[t.rangeI].to)t.addNode(n.tree,d);else{let f=new ii(t.parser.nodeSet.types[Yt.Paragraph],[],[],0,t.block.hashProp);t.reusePlaceholders.set(f,n.tree),t.addNode(f,d)}if(n.type.is("Block")&&(qJe.indexOf(n.type.id)<0?(s=n.to-r,o=t.block.children.length):(s=l,o=u,l=n.to-r,u=t.block.children.length)),!n.nextSibling())break}for(;t.block.children.length>o;)t.block.children.pop(),t.block.positions.pop();return s-a}};function Lme(e,t){let n=e;for(let r=1;rm_[e]),Object.keys(m_).map(e=>HJe[e]),Object.keys(m_),jJe,yme,Object.keys(i7).map(e=>i7[e]),Object.keys(i7),[]);function KJe(e,t,n){let r=[];for(let i=e.firstChild,a=t;;i=i.nextSibling){let s=i?i.from:n;if(s>a&&r.push({from:a,to:s}),!i)break;a=i.to}return r}function JJe(e){let{codeParser:t,htmlParser:n}=e;return{wrap:kpe((i,a)=>{let s=i.type.id;if(t&&(s==Yt.CodeBlock||s==Yt.FencedCode)){let o="";if(s==Yt.FencedCode){let u=i.node.getChild(Yt.CodeInfo);u&&(o=a.read(u.from,u.to))}let l=t(o);if(l)return{parser:l,overlay:u=>u.type.id==Yt.CodeText}}else if(n&&(s==Yt.HTMLBlock||s==Yt.HTMLTag))return{parser:n,overlay:KJe(i.node,i.from,i.to)};return null})}}const eet={resolve:"Strikethrough",mark:"StrikethroughMark"},tet={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":Oe.strikethrough}},{name:"StrikethroughMark",style:Oe.processingInstruction}],parseInline:[{name:"Strikethrough",parse(e,t,n){if(t!=126||e.char(n+1)!=126||e.char(n+2)==126)return-1;let r=e.slice(n-1,n),i=e.slice(n+2,n+3),a=/\s|^$/.test(r),s=/\s|^$/.test(i),o=nx.test(r),l=nx.test(i);return e.addDelimiter(eet,n,n+2,!s&&(!l||a||o),!a&&(!o||s||l))},after:"Emphasis"}]};function DE(e,t,n=0,r,i=0){let a=0,s=!0,o=-1,l=-1,u=!1,d=()=>{r.push(e.elt("TableCell",i+o,i+l,e.parser.parseInline(t.slice(o,l),i+o)))};for(let f=n;f-1)&&a++,s=!1,r&&(o>-1&&d(),r.push(e.elt("TableDelimiter",f+i,f+i+1))),o=l=-1):(u||p!=32&&p!=9)&&(o<0&&(o=f),l=f+1),u=!u&&p==92}return o>-1&&(a++,r&&d()),a}function Ste(e,t){for(let n=t;ni instanceof Ete)||!Ste(t.text,t.basePos))return!1;let r=e.scanLine(e.absoluteLineEnd+1).text;return $me.test(r)&&DE(e,t.text,t.basePos)==DE(e,r,t.basePos)},before:"SetextHeading"}]};class ret{nextLine(){return!1}finish(t,n){return t.addLeafElement(n,t.elt("Task",n.start,n.start+n.content.length,[t.elt("TaskMarker",n.start,n.start+3),...t.parser.parseInline(n.content.slice(3),n.start+3)])),!0}}const iet={defineNodes:[{name:"Task",block:!0,style:Oe.list},{name:"TaskMarker",style:Oe.atom}],parseBlock:[{name:"TaskList",leaf(e,t){return/^\[[ xX]\][ \t]/.test(t.content)&&e.parentType().name=="ListItem"?new ret:null},after:"SetextHeading"}]},wte=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,xte=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,aet=/[\w-]+\.[\w-]+($|\/)/,Tte=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,kte=/\/[a-zA-Z\d@.]+/gy;function Ate(e,t,n,r){let i=0;for(let a=t;a-1)return-1;let r=t+n[0].length;for(;;){let i=e[r-1],a;if(/[?!.,:*_~]/.test(i)||i==")"&&Ate(e,t,r,")")>Ate(e,t,r,"("))r--;else if(i==";"&&(a=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t,r))))r=t+a.index;else break}return r}function _te(e,t){Tte.lastIndex=t;let n=Tte.exec(e);if(!n)return-1;let r=n[0][n[0].length-1];return r=="_"||r=="-"?-1:t+n[0].length-(r=="."?1:0)}const oet={parseInline:[{name:"Autolink",parse(e,t,n){let r=n-e.offset;wte.lastIndex=r;let i=wte.exec(e.text),a=-1;if(!i)return-1;if(i[1]||i[2]){if(a=set(e.text,r+i[0].length),a>-1&&e.hasOpenLink){let s=/([^\[\]]|\[[^\]]*\])*/.exec(e.text.slice(r,a));a=r+s[0].length}}else i[3]?a=_te(e.text,r):(a=_te(e.text,r+i[0].length),a>-1&&i[0]=="xmpp:"&&(kte.lastIndex=a,i=kte.exec(e.text),i&&(a=i.index+i[0].length)));return a<0?-1:(e.addElement(e.elt("URL",n,a+e.offset)),a+e.offset)}}]},uet=[net,iet,tet,oet];function Fme(e,t,n){return(r,i,a)=>{if(i!=e||r.char(a+1)==e)return-1;let s=[r.elt(n,a,a+1)];for(let o=a+1;on%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,n,r=0){let i=t.parser.context;return new MC(t,[],n,r,r,0,[],0,i?new Rte(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var n;let r=t>>19,i=t&65535,{parser:a}=this.p,s=this.reducePos=2e3&&!(!((n=this.p.parser.nodeSet.types[i])===null||n===void 0)&&n.isAnonymous)&&(u==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=d):this.p.lastBigReductionSizel;)this.stack.pop();this.reduceContext(i,u)}storeNode(t,n,r,i=4,a=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&s.buffer[o-4]==0&&s.buffer[o-1]>-1){if(n==r)return;if(s.buffer[o-2]>=n){s.buffer[o-2]=r;return}}}if(!a||this.pos==r)this.buffer.push(t,n,r,i);else{let s=this.buffer.length;if(s>0&&this.buffer[s-4]!=0){let o=!1;for(let l=s;l>0&&this.buffer[l-2]>r;l-=4)if(this.buffer[l-1]>=0){o=!0;break}if(o)for(;s>0&&this.buffer[s-2]>r;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,i>4&&(i-=4)}this.buffer[s]=t,this.buffer[s+1]=n,this.buffer[s+2]=r,this.buffer[s+3]=i}}shift(t,n,r,i){if(t&131072)this.pushState(t&65535,this.pos);else if(t&262144)this.pos=i,this.shiftContext(n,r),n<=this.p.parser.maxNode&&this.buffer.push(n,r,i,4);else{let a=t,{parser:s}=this.p;(i>this.pos||n<=s.maxNode)&&(this.pos=i,s.stateFlag(a,1)||(this.reducePos=i)),this.pushState(a,r),this.shiftContext(n,r),n<=s.maxNode&&this.buffer.push(n,r,i,4)}}apply(t,n,r,i){t&65536?this.reduce(t):this.shift(t,n,r,i)}useNode(t,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=t)&&(this.p.reused.push(t),r++);let i=this.pos;this.reducePos=this.pos=i+t.length,this.pushState(n,i),this.buffer.push(r,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,n=t.buffer.length;for(;n>0&&t.buffer[n-2]>t.reducePos;)n-=4;let r=t.buffer.slice(n),i=t.bufferBase+n;for(;t&&i==t.bufferBase;)t=t.parent;return new MC(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,i,this.curContext,this.lookAhead,t)}recoverByDelete(t,n){let r=t<=this.p.parser.maxNode;r&&this.storeNode(t,this.pos,n,4),this.storeNode(0,this.pos,n,r?8:4),this.pos=this.reducePos=n,this.score-=190}canShift(t){for(let n=new het(this);;){let r=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,t);if(r==0)return!1;if(!(r&65536))return!0;n.reduce(r)}}recoverByInsert(t){if(this.stack.length>=300)return[];let n=this.p.parser.nextStates(this.state);if(n.length>8||this.stack.length>=120){let i=[];for(let a=0,s;al&1&&o==s)||i.push(n[a],s)}n=i}let r=[];for(let i=0;i>19,i=n&65535,a=this.stack.length-r*3;if(a<0||t.getGoto(this.stack[a],i,!1)<0){let s=this.findForcedReduction();if(s==null)return!1;n=s}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}findForcedReduction(){let{parser:t}=this.p,n=[],r=(i,a)=>{if(!n.includes(i))return n.push(i),t.allActions(i,s=>{if(!(s&393216))if(s&65536){let o=(s>>19)-a;if(o>1){let l=s&65535,u=this.stack.length-o*3;if(u>=0&&t.getGoto(this.stack[u],l,!1)>=0)return o<<19|65536|l}}else{let o=r(s,a+1);if(o!=null)return o}})};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let n=0;nthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class Rte{constructor(t,n){this.tracker=t,this.context=n,this.hash=t.strict?t.hash(n):0}}class het{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let n=t&65535,r=t>>19;r==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(r-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],n,!0);this.state=i}}class LC{constructor(t,n,r){this.stack=t,this.pos=n,this.index=r,this.buffer=t.buffer,this.index==0&&this.maybeNext()}static create(t,n=t.bufferBase+t.buffer.length){return new LC(t,n,n-t.bufferBase)}maybeNext(){let t=this.stack.parent;t!=null&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new LC(this.stack,this.pos,this.index)}}function eE(e,t=Uint16Array){if(typeof e!="string")return e;let n=null;for(let r=0,i=0;r=92&&s--,s>=34&&s--;let l=s-32;if(l>=46&&(l-=46,o=!0),a+=l,o)break;a*=46}n?n[i++]=a:n=new t(a)}return n}class L4{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const Ite=new L4;class pet{constructor(t,n){this.input=t,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Ite,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(t,n){let r=this.range,i=this.rangeIndex,a=this.pos+t;for(;ar.to:a>=r.to;){if(i==this.ranges.length-1)return null;let s=this.ranges[++i];a+=s.from-r.to,r=s}return a}clipPos(t){if(t>=this.range.from&&tt)return Math.max(t,n.from);return this.end}peek(t){let n=this.chunkOff+t,r,i;if(n>=0&&n=this.chunk2Pos&&ro.to&&(this.chunk2=this.chunk2.slice(0,o.to-r)),i=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),i}acceptToken(t,n=0){let r=n?this.resolveOffset(n,-1):this.pos;if(r==null||r=this.chunk2Pos&&this.posthis.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,n){if(n?(this.token=n,n.start=t,n.lookAhead=t+1,n.value=n.extended=-1):this.token=Ite,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t=this.chunkPos&&n<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,n-this.chunkPos);if(t>=this.chunk2Pos&&n<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,n-this.chunk2Pos);if(t>=this.range.from&&n<=this.range.to)return this.input.read(t,n);let r="";for(let i of this.ranges){if(i.from>=n)break;i.to>t&&(r+=this.input.read(Math.max(i.from,t),Math.min(i.to,n)))}return r}}class ov{constructor(t,n){this.data=t,this.id=n}token(t,n){let{parser:r}=n.p;Bme(this.data,t,n,this.id,r.data,r.tokenPrecTable)}}ov.prototype.contextual=ov.prototype.fallback=ov.prototype.extend=!1;class $C{constructor(t,n,r){this.precTable=n,this.elseToken=r,this.data=typeof t=="string"?eE(t):t}token(t,n){let r=t.pos,i=0;for(;;){let a=t.next<0,s=t.resolveOffset(1,1);if(Bme(this.data,t,n,0,this.data,this.precTable),t.token.value>-1)break;if(this.elseToken==null)return;if(a||i++,s==null)break;t.reset(s,t.token)}i&&(t.reset(r,t.token),t.acceptToken(this.elseToken,i))}}$C.prototype.contextual=ov.prototype.fallback=ov.prototype.extend=!1;class Gd{constructor(t,n={}){this.token=t,this.contextual=!!n.contextual,this.fallback=!!n.fallback,this.extend=!!n.extend}}function Bme(e,t,n,r,i,a){let s=0,o=1<0){let b=e[g];if(l.allows(b)&&(t.token.value==-1||t.token.value==b||met(b,t.token.value,i,a))){t.acceptToken(b);break}}let d=t.next,f=0,p=e[s+2];if(t.next<0&&p>f&&e[u+p*3-3]==65535){s=e[u+p*3-1];continue e}for(;f>1,b=u+g+(g<<1),S=e[b],E=e[b+1]||65536;if(d=E)f=g+1;else{s=e[b+2],t.advance();continue e}}break}}function Nte(e,t,n){for(let r=t,i;(i=e[r])!=65535;r++)if(i==n)return r-t;return-1}function met(e,t,n,r){let i=Nte(n,r,t);return i<0||Nte(n,r,e)t)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,t-25)):Math.min(e.length,Math.max(r.from+1,t+25));if(n<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return n<0?0:e.length}}class get{constructor(t,n){this.fragments=t,this.nodeSet=n,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?Dte(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?Dte(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(tt)return this.nextStart=s,null;if(a instanceof ii){if(s==t){if(s=Math.max(this.safeFrom,t)&&(this.trees.push(a),this.start.push(s),this.index.push(0))}else this.index[n]++,this.nextStart=s+a.length}}}class bet{constructor(t,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(r=>new L4)}getActions(t){let n=0,r=null,{parser:i}=t.p,{tokenizers:a}=i,s=i.stateSlot(t.state,3),o=t.curContext?t.curContext.hash:0,l=0;for(let u=0;uf.end+25&&(l=Math.max(f.lookAhead,l)),f.value!=0)){let p=n;if(f.extended>-1&&(n=this.addActions(t,f.extended,f.end,n)),n=this.addActions(t,f.value,f.end,n),!d.extend&&(r=f,n>p))break}}for(;this.actions.length>n;)this.actions.pop();return l&&t.setLookAhead(l),!r&&t.pos==this.stream.end&&(r=new L4,r.value=t.p.parser.eofTerm,r.start=r.end=t.pos,n=this.addActions(t,r.value,r.end,n)),this.mainToken=r,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let n=new L4,{pos:r,p:i}=t;return n.start=r,n.end=Math.min(r+1,i.stream.end),n.value=r==i.stream.end?i.parser.eofTerm:0,n}updateCachedToken(t,n,r){let i=this.stream.clipPos(r.pos);if(n.token(this.stream.reset(i,t),r),t.value>-1){let{parser:a}=r.p;for(let s=0;s=0&&r.p.parser.dialect.allows(o>>1)){o&1?t.extended=o>>1:t.value=o>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,n,r,i){for(let a=0;at.bufferLength*4?new get(r,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,n=this.minStackPos,r=this.stacks=[],i,a;if(this.bigReductionCount>300&&t.length==1){let[s]=t;for(;s.forceReduce()&&s.stack.length&&s.stack[s.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;sn)r.push(o);else{if(this.advanceStack(o,r,t))continue;{i||(i=[],a=[]),i.push(o);let l=this.tokens.getMainToken(o);a.push(l.value,l.end)}}break}}if(!r.length){let s=i&&Oet(i);if(s)return fu&&console.log("Finish with "+this.stackID(s)),this.stackToTree(s);if(this.parser.strict)throw fu&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&i){let s=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,a,r);if(s)return fu&&console.log("Force-finish "+this.stackID(s)),this.stackToTree(s.forceAll())}if(this.recovering){let s=this.recovering==1?1:this.recovering*3;if(r.length>s)for(r.sort((o,l)=>l.score-o.score);r.length>s;)r.pop();r.some(o=>o.reducePos>n)&&this.recovering--}else if(r.length>1){e:for(let s=0;s500&&u.buffer.length>500)if((o.score-u.score||o.buffer.length-u.buffer.length)>0)r.splice(l--,1);else{r.splice(s--,1);continue e}}}r.length>12&&r.splice(12,r.length-12)}this.minStackPos=r[0].pos;for(let s=1;s ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let u=t.curContext&&t.curContext.tracker.strict,d=u?t.curContext.hash:0;for(let f=this.fragments.nodeAt(i);f;){let p=this.parser.nodeSet.types[f.type.id]==f.type?a.getGoto(t.state,f.type.id):-1;if(p>-1&&f.length&&(!u||(f.prop(Zn.contextHash)||0)==d))return t.useNode(f,p),fu&&console.log(s+this.stackID(t)+` (via reuse of ${a.getName(f.type.id)})`),!0;if(!(f instanceof ii)||f.children.length==0||f.positions[0]>0)break;let g=f.children[0];if(g instanceof ii&&f.positions[0]==0)f=g;else break}}let o=a.stateSlot(t.state,4);if(o>0)return t.reduce(o),fu&&console.log(s+this.stackID(t)+` (via always-reduce ${a.getName(o&65535)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let l=this.tokens.getActions(t);for(let u=0;ui?n.push(b):r.push(b)}return!1}advanceFully(t,n){let r=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>r)return Pte(t,n),!0}}runRecovery(t,n,r){let i=null,a=!1;for(let s=0;s ":"";if(o.deadEnd&&(a||(a=!0,o.restart(),fu&&console.log(d+this.stackID(o)+" (restarted)"),this.advanceFully(o,r))))continue;let f=o.split(),p=d;for(let g=0;f.forceReduce()&&g<10&&(fu&&console.log(p+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,r));g++)fu&&(p=this.stackID(f)+" -> ");for(let g of o.recoverByInsert(l))fu&&console.log(d+this.stackID(g)+" (via recover-insert)"),this.advanceFully(g,r);this.stream.end>o.pos?(u==o.pos&&(u++,l=0),o.recoverByDelete(l,u),fu&&console.log(d+this.stackID(o)+` (via recover-delete ${this.parser.getName(l)})`),Pte(o,r)):(!i||i.scoree;class Ume{constructor(t){this.start=t.start,this.shift=t.shift||s7,this.reduce=t.reduce||s7,this.reuse=t.reuse||s7,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class Kv extends Iz{constructor(t){if(super(),this.wrappers=[],t.version!=14)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let n=t.nodeNames.split(" ");this.minRepeatTerm=n.length;for(let o=0;ot.topRules[o][1]),i=[];for(let o=0;o=0)a(d,l,o[u++]);else{let f=o[u+-d];for(let p=-d;p>0;p--)a(o[u++],l,f);u++}}}this.nodeSet=new Jx(n.map((o,l)=>bs.define({name:l>=this.minRepeatTerm?void 0:o,id:l,props:i[l],top:r.indexOf(l)>-1,error:l==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(l)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=Spe;let s=eE(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let o=0;otypeof o=="number"?new ov(s,o):o),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,n,r){let i=new yet(this,t,n,r);for(let a of this.wrappers)i=a(i,t,n,r);return i}getGoto(t,n,r=!1){let i=this.goto;if(n>=i[0])return-1;for(let a=i[n+1];;){let s=i[a++],o=s&1,l=i[a++];if(o&&r)return l;for(let u=a+(s>>1);a0}validAction(t,n){return!!this.allActions(t,r=>r==n?!0:null)}allActions(t,n){let r=this.stateSlot(t,4),i=r?n(r):void 0;for(let a=this.stateSlot(t,1);i==null;a+=3){if(this.data[a]==65535)if(this.data[a+1]==1)a=Vh(this.data,a+2);else break;i=n(Vh(this.data,a+1))}return i}nextStates(t){let n=[];for(let r=this.stateSlot(t,1);;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=Vh(this.data,r+2);else break;if(!(this.data[r+2]&1)){let i=this.data[r+1];n.some((a,s)=>s&1&&a==i)||n.push(this.data[r],i)}}return n}configure(t){let n=Object.assign(Object.create(Kv.prototype),this);if(t.props&&(n.nodeSet=this.nodeSet.extend(...t.props)),t.top){let r=this.topRules[t.top];if(!r)throw new RangeError(`Invalid top rule name ${t.top}`);n.top=r}return t.tokenizers&&(n.tokenizers=this.tokenizers.map(r=>{let i=t.tokenizers.find(a=>a.from==r);return i?i.to:r})),t.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((r,i)=>{let a=t.specializers.find(o=>o.from==r.external);if(!a)return r;let s=Object.assign(Object.assign({},r),{external:a.to});return n.specializers[i]=Mte(s),s})),t.contextTracker&&(n.context=t.contextTracker),t.dialect&&(n.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(n.strict=t.strict),t.wrap&&(n.wrappers=n.wrappers.concat(t.wrap)),t.bufferLength!=null&&(n.bufferLength=t.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let n=this.dynamicPrecedences;return n==null?0:n[t]||0}parseDialect(t){let n=Object.keys(this.dialects),r=n.map(()=>!1);if(t)for(let a of t.split(" ")){let s=n.indexOf(a);s>=0&&(r[s]=!0)}let i=null;for(let a=0;ar)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.scoree.external(n,r)<<1|t}return e.get}const Eet=54,wet=1,xet=55,Tet=2,ket=56,Aet=3,Lte=4,_et=5,FC=6,zme=7,Hme=8,jme=9,Wme=10,Cet=11,Ret=12,Iet=13,o7=57,Net=14,$te=58,Qme=20,Det=22,Gme=23,Pet=24,hM=26,Vme=27,Met=28,Let=31,$et=34,Fet=36,Bet=37,Uet=0,zet=1,Het={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},jet={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},Fte={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function Wet(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function qme(e){return e==9||e==10||e==13||e==32}let Bte=null,Ute=null,zte=0;function pM(e,t){let n=e.pos+t;if(zte==n&&Ute==e)return Bte;let r=e.peek(t);for(;qme(r);)r=e.peek(++t);let i="";for(;Wet(r);)i+=String.fromCharCode(r),r=e.peek(++t);return Ute=e,zte=n,Bte=i?i.toLowerCase():r==Qet||r==Get?void 0:null}const Yme=60,BC=62,pH=47,Qet=63,Get=33,Vet=45;function Hte(e,t){this.name=e,this.parent=t}const qet=[FC,Wme,zme,Hme,jme],Yet=new Ume({start:null,shift(e,t,n,r){return qet.indexOf(t)>-1?new Hte(pM(r,1)||"",e):e},reduce(e,t){return t==Qme&&e?e.parent:e},reuse(e,t,n,r){let i=t.type.id;return i==FC||i==Fet?new Hte(pM(r,1)||"",e):e},strict:!1}),Zet=new Gd((e,t)=>{if(e.next!=Yme){e.next<0&&t.context&&e.acceptToken(o7);return}e.advance();let n=e.next==pH;n&&e.advance();let r=pM(e,0);if(r===void 0)return;if(!r)return e.acceptToken(n?Net:FC);let i=t.context?t.context.name:null;if(n){if(r==i)return e.acceptToken(Cet);if(i&&jet[i])return e.acceptToken(o7,-2);if(t.dialectEnabled(Uet))return e.acceptToken(Ret);for(let a=t.context;a;a=a.parent)if(a.name==r)return;e.acceptToken(Iet)}else{if(r=="script")return e.acceptToken(zme);if(r=="style")return e.acceptToken(Hme);if(r=="textarea")return e.acceptToken(jme);if(Het.hasOwnProperty(r))return e.acceptToken(Wme);i&&Fte[i]&&Fte[i][r]?e.acceptToken(o7,-1):e.acceptToken(FC)}},{contextual:!0}),Xet=new Gd(e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken($te);break}if(e.next==Vet)t++;else if(e.next==BC&&t>=2){n>=3&&e.acceptToken($te,-2);break}else t=0;e.advance()}});function Ket(e){for(;e;e=e.parent)if(e.name=="svg"||e.name=="math")return!0;return!1}const Jet=new Gd((e,t)=>{if(e.next==pH&&e.peek(1)==BC){let n=t.dialectEnabled(zet)||Ket(t.context);e.acceptToken(n?_et:Lte,2)}else e.next==BC&&e.acceptToken(Lte,1)});function mH(e,t,n){let r=2+e.length;return new Gd(i=>{for(let a=0,s=0,o=0;;o++){if(i.next<0){o&&i.acceptToken(t);break}if(a==0&&i.next==Yme||a==1&&i.next==pH||a>=2&&as?i.acceptToken(t,-s):i.acceptToken(n,-(s-2));break}else if((i.next==10||i.next==13)&&o){i.acceptToken(t,1);break}else a=s=0;i.advance()}})}const ett=mH("script",Eet,wet),ttt=mH("style",xet,Tet),ntt=mH("textarea",ket,Aet),rtt=MO({"Text RawText":Oe.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":Oe.angleBracket,TagName:Oe.tagName,"MismatchedCloseTag/TagName":[Oe.tagName,Oe.invalid],AttributeName:Oe.attributeName,"AttributeValue UnquotedAttributeValue":Oe.attributeValue,Is:Oe.definitionOperator,"EntityReference CharacterReference":Oe.character,Comment:Oe.blockComment,ProcessingInst:Oe.processingInstruction,DoctypeDecl:Oe.documentMeta}),itt=Kv.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%ZQ&rO,59fO%fQ&rO,59iO%qQ&rO,59lO%|Q&rO,59nOOOa'#D^'#D^O&XOaO'#CxO&dOaO,59[OOOb'#D_'#D_O&lObO'#C{O&wObO,59[OOOd'#D`'#D`O'POdO'#DOO'[OdO,59[OOO`'#Da'#DaO'dO!rO,59[O'kQ#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'pO$fO,59oOOO`,59o,59oO'xQ#|O,59qO'}Q#|O,59rOOO`-E7W-E7WO(SQ&rO'#CsOOQW'#DZ'#DZO(bQ&rO1G.wOOOa1G.w1G.wOOO`1G/Y1G/YO(mQ&rO1G/QOOOb1G/Q1G/QO(xQ&rO1G/TOOOd1G/T1G/TO)TQ&rO1G/WOOO`1G/W1G/WO)`Q&rO1G/YOOOa-E7[-E7[O)kQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)pQ#tO'#C|OOOd-E7^-E7^O)uQ#tO'#DPOOO`-E7_-E7_O)zQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O*PQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOO`7+$t7+$tOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rO*[Q#|O,59eO*aQ#|O,59hO*fQ#|O,59kOOO`1G/X1G/XO*kO7[O'#CvO*|OMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O+_O7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+pOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:",]~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OT}OhyO~OS!POT}OhyO~OS!ROT}OhyO~OS!TOT}OhyO~OS}OT}OhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXTgXhgX~OS!fOT!gOhyO~OS!hOT!gOhyO~OS!iOT!gOhyO~OS!jOT!gOhyO~OS!gOT!gOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:Yet,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"],["isolate",-11,21,29,30,32,33,35,36,37,38,41,42,"ltr",-3,26,27,39,""]],propSources:[rtt],skippedNodes:[0],repeatNodeCount:9,tokenData:"!]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VP<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TakWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOb!R!RAwP;=`<%lAY!ZBRYkWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbhSkWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbhSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXhSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!bx`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYlhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_khS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_X`P!a`!cp!eQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZhSfQ`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!a`!cpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!a`!cp!dPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!a`!cpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!a`!cpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!a`!cpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!a`!cpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!a`!cpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!a`!cpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!a`!cpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!cpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO{PP!-nP;=`<%l!-Sq!-xS!cp{POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!a`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!a`{POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!a`!cp{POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!a`!cpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!a`!cpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!a`!cpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!a`!cpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!a`!cpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!a`!cpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!{let u=o.type.id;if(u==Met)return l7(o,l,n);if(u==Let)return l7(o,l,r);if(u==$et)return l7(o,l,i);if(u==Qme&&a.length){let d=o.node,f=d.firstChild,p=f&&jte(f,l),g;if(p){for(let b of a)if(b.tag==p&&(!b.attrs||b.attrs(g||(g=Zme(f,l))))){let S=d.lastChild,E=S.type.id==Bet?S.from:d.to;if(E>f.to)return{parser:b.parser,overlay:[{from:f.to,to:E}]}}}}if(s&&u==Gme){let d=o.node,f;if(f=d.firstChild){let p=s[l.read(f.from,f.to)];if(p)for(let g of p){if(g.tagName&&g.tagName!=jte(d.parent,l))continue;let b=d.lastChild;if(b.type.id==hM){let S=b.from+1,E=b.lastChild,w=b.to-(E&&E.isError?0:1);if(w>S)return{parser:g.parser,overlay:[{from:S,to:w}]}}else if(b.type.id==Vme)return{parser:g.parser,overlay:[{from:b.from,to:b.to}]}}}}return null})}const att=99,Wte=1,stt=100,ott=101,Qte=2,Kme=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],ltt=58,utt=40,Jme=95,ctt=91,$4=45,dtt=46,ftt=35,htt=37,ptt=38,mtt=92,gtt=10;function rx(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function ege(e){return e>=48&&e<=57}const btt=new Gd((e,t)=>{for(let n=!1,r=0,i=0;;i++){let{next:a}=e;if(rx(a)||a==$4||a==Jme||n&&ege(a))!n&&(a!=$4||i>0)&&(n=!0),r===i&&a==$4&&r++,e.advance();else if(a==mtt&&e.peek(1)!=gtt)e.advance(),e.next>-1&&e.advance(),n=!0;else{n&&e.acceptToken(a==utt?stt:r==2&&t.canShift(Qte)?Qte:ott);break}}}),ytt=new Gd(e=>{if(Kme.includes(e.peek(-1))){let{next:t}=e;(rx(t)||t==Jme||t==ftt||t==dtt||t==ctt||t==ltt&&rx(e.peek(1))||t==$4||t==ptt)&&e.acceptToken(att)}}),vtt=new Gd(e=>{if(!Kme.includes(e.peek(-1))){let{next:t}=e;if(t==htt&&(e.advance(),e.acceptToken(Wte)),rx(t)){do e.advance();while(rx(e.next)||ege(e.next));e.acceptToken(Wte)}}}),Ott=MO({"AtKeyword import charset namespace keyframes media supports":Oe.definitionKeyword,"from to selector":Oe.keyword,NamespaceName:Oe.namespace,KeyframeName:Oe.labelName,KeyframeRangeName:Oe.operatorKeyword,TagName:Oe.tagName,ClassName:Oe.className,PseudoClassName:Oe.constant(Oe.className),IdName:Oe.labelName,"FeatureName PropertyName":Oe.propertyName,AttributeName:Oe.attributeName,NumberLiteral:Oe.number,KeywordQuery:Oe.keyword,UnaryQueryOp:Oe.operatorKeyword,"CallTag ValueName":Oe.atom,VariableName:Oe.variableName,Callee:Oe.operatorKeyword,Unit:Oe.unit,"UniversalSelector NestingSelector":Oe.definitionOperator,MatchOp:Oe.compareOperator,"ChildOp SiblingOp, LogicOp":Oe.logicOperator,BinOp:Oe.arithmeticOperator,Important:Oe.modifier,Comment:Oe.blockComment,ColorLiteral:Oe.color,"ParenthesizedContent StringLiteral":Oe.string,":":Oe.punctuation,"PseudoOp #":Oe.derefOperator,"; ,":Oe.separator,"( )":Oe.paren,"[ ]":Oe.squareBracket,"{ }":Oe.brace}),Stt={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:138},Ett={__proto__:null,"@import":118,"@media":142,"@charset":146,"@namespace":150,"@keyframes":156,"@supports":168},wtt={__proto__:null,not:132,only:132},xtt=Kv.deserialize({version:14,states:":^QYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO$qQ[O'#DTO$vQ[O'#DWOOQP'#Em'#EmO${QdO'#DgO%jQ[O'#DtO${QdO'#DvO%{Q[O'#DxO&WQ[O'#D{O&`Q[O'#ERO&nQ[O'#ETOOQS'#El'#ElOOQS'#EW'#EWQYQ[OOO&uQXO'#CdO'jQWO'#DcO'oQWO'#EsO'zQ[O'#EsQOQWOOP(UO#tO'#C_POOO)C@[)C@[OOQP'#Cg'#CgOOQP,59Q,59QO#kQ[O,59QO(aQ[O'#E[O({QWO,58{O)TQ[O,59SO$qQ[O,59oO$vQ[O,59rO(aQ[O,59uO(aQ[O,59wO(aQ[O,59xO)`Q[O'#DbOOQS,58{,58{OOQP'#Ck'#CkOOQO'#DR'#DROOQP,59S,59SO)gQWO,59SO)lQWO,59SOOQP'#DV'#DVOOQP,59o,59oOOQO'#DX'#DXO)qQ`O,59rOOQS'#Cp'#CpO${QdO'#CqO)yQvO'#CsO+ZQtO,5:ROOQO'#Cx'#CxO)lQWO'#CwO+oQWO'#CyO+tQ[O'#DOOOQS'#Ep'#EpOOQO'#Dj'#DjO+|Q[O'#DqO,[QWO'#EtO&`Q[O'#DoO,jQWO'#DrOOQO'#Eu'#EuO)OQWO,5:`O,oQpO,5:bOOQS'#Dz'#DzO,wQWO,5:dO,|Q[O,5:dOOQO'#D}'#D}O-UQWO,5:gO-ZQWO,5:mO-cQWO,5:oOOQS-E8U-E8UO${QdO,59}O-kQ[O'#E^O-xQWO,5;_O-xQWO,5;_POOO'#EV'#EVP.TO#tO,58yPOOO,58y,58yOOQP1G.l1G.lO.zQXO,5:vOOQO-E8Y-E8YOOQS1G.g1G.gOOQP1G.n1G.nO)gQWO1G.nO)lQWO1G.nOOQP1G/Z1G/ZO/XQ`O1G/^O/rQXO1G/aO0YQXO1G/cO0pQXO1G/dO1WQWO,59|O1]Q[O'#DSO1dQdO'#CoOOQP1G/^1G/^O${QdO1G/^O1kQpO,59]OOQS,59_,59_O${QdO,59aO1sQWO1G/mOOQS,59c,59cO1xQ!bO,59eOOQS'#DP'#DPOOQS'#EY'#EYO2QQ[O,59jOOQS,59j,59jO2YQWO'#DjO2eQWO,5:VO2jQWO,5:]O&`Q[O,5:XO&`Q[O'#E_O2rQWO,5;`O2}QWO,5:ZO(aQ[O,5:^OOQS1G/z1G/zOOQS1G/|1G/|OOQS1G0O1G0OO3`QWO1G0OO3eQdO'#EOOOQS1G0R1G0ROOQS1G0X1G0XOOQS1G0Z1G0ZO3pQtO1G/iOOQO,5:x,5:xO4WQ[O,5:xOOQO-E8[-E8[O4eQWO1G0yPOOO-E8T-E8TPOOO1G.e1G.eOOQP7+$Y7+$YOOQP7+$x7+$xO${QdO7+$xOOQS1G/h1G/hO4pQXO'#ErO4wQWO,59nO4|QtO'#EXO5tQdO'#EoO6OQWO,59ZO6TQpO7+$xOOQS1G.w1G.wOOQS1G.{1G.{OOQS7+%X7+%XO6]QWO1G/POOQS-E8W-E8WOOQS1G/U1G/UO${QdO1G/qOOQO1G/w1G/wOOQO1G/s1G/sO6bQWO,5:yOOQO-E8]-E8]O6pQXO1G/xOOQS7+%j7+%jO6wQYO'#CsOOQO'#EQ'#EQO7SQ`O'#EPOOQO'#EP'#EPO7_QWO'#E`O7gQdO,5:jOOQS,5:j,5:jO7rQtO'#E]O${QdO'#E]O8sQdO7+%TOOQO7+%T7+%TOOQO1G0d1G0dO9WQpO<OAN>OO:xQdO,5:uOOQO-E8X-E8XOOQO<T![;'S%^;'S;=`%o<%lO%^l;TUo`Oy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^l;nYo`#e[Oy%^z!Q%^!Q![;g![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^l[[o`#e[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^n?VSt^Oy%^z;'S%^;'S;=`%o<%lO%^l?hWjWOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^n@VU#bQOy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^~@nTjWOy%^z{@}{;'S%^;'S;=`%o<%lO%^~AUSo`#[~Oy%^z;'S%^;'S;=`%o<%lO%^lAg[#e[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^bBbU]QOy%^z![%^![!]Bt!];'S%^;'S;=`%o<%lO%^bB{S^Qo`Oy%^z;'S%^;'S;=`%o<%lO%^nC^S!Y^Oy%^z;'S%^;'S;=`%o<%lO%^dCoS|SOy%^z;'S%^;'S;=`%o<%lO%^bDQU!OQOy%^z!`%^!`!aDd!a;'S%^;'S;=`%o<%lO%^bDkS!OQo`Oy%^z;'S%^;'S;=`%o<%lO%^bDzWOy%^z!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bEk[![Qo`Oy%^z}%^}!OEd!O!Q%^!Q![Ed![!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^nFfSq^Oy%^z;'S%^;'S;=`%o<%lO%^nFwSp^Oy%^z;'S%^;'S;=`%o<%lO%^bGWUOy%^z#b%^#b#cGj#c;'S%^;'S;=`%o<%lO%^bGoUo`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!bQo`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!TUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!S^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!RQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",tokenizers:[ytt,vtt,btt,1,2,3,4,new $C("m~RRYZ[z{a~~g~aO#^~~dP!P!Qg~lO#_~~",28,105)],topRules:{StyleSheet:[0,4],Styles:[1,86]},specialized:[{term:100,get:e=>Stt[e]||-1},{term:58,get:e=>Ett[e]||-1},{term:101,get:e=>wtt[e]||-1}],tokenPrec:1200});let u7=null;function c7(){if(!u7&&typeof document=="object"&&document.body){let{style:e}=document.body,t=[],n=new Set;for(let r in e)r!="cssText"&&r!="cssFloat"&&typeof e[r]=="string"&&(/[A-Z]/.test(r)&&(r=r.replace(/[A-Z]/g,i=>"-"+i.toLowerCase())),n.has(r)||(t.push(r),n.add(r)));u7=t.sort().map(r=>({type:"property",label:r}))}return u7||[]}const Gte=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(e=>({type:"class",label:e})),Vte=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(e=>({type:"keyword",label:e})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(e=>({type:"constant",label:e}))),Ttt=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(e=>({type:"type",label:e})),h0=/^(\w[\w-]*|-\w[\w-]*|)$/,ktt=/^-(-[\w-]*)?$/;function Att(e,t){var n;if((e.name=="("||e.type.isError)&&(e=e.parent||e),e.name!="ArgList")return!1;let r=(n=e.parent)===null||n===void 0?void 0:n.firstChild;return(r==null?void 0:r.name)!="Callee"?!1:t.sliceString(r.from,r.to)=="var"}const qte=new Tpe,_tt=["Declaration"];function Ctt(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function tge(e,t,n){if(t.to-t.from>4096){let r=qte.get(t);if(r)return r;let i=[],a=new Set,s=t.cursor(Mi.IncludeAnonymous);if(s.firstChild())do for(let o of tge(e,s.node,n))a.has(o.label)||(a.add(o.label),i.push(o));while(s.nextSibling());return qte.set(t,i),i}else{let r=[],i=new Set;return t.cursor().iterate(a=>{var s;if(n(a)&&a.matchContext(_tt)&&((s=a.node.nextSibling)===null||s===void 0?void 0:s.name)==":"){let o=e.sliceString(a.from,a.to);i.has(o)||(i.add(o),r.push({label:o,type:"variable"}))}}),r}}const Rtt=e=>t=>{let{state:n,pos:r}=t,i=Fi(n).resolveInner(r,-1),a=i.type.isError&&i.from==i.to-1&&n.doc.sliceString(i.from,i.to)=="-";if(i.name=="PropertyName"||(a||i.name=="TagName")&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:c7(),validFor:h0};if(i.name=="ValueName")return{from:i.from,options:Vte,validFor:h0};if(i.name=="PseudoClassName")return{from:i.from,options:Gte,validFor:h0};if(e(i)||(t.explicit||a)&&Att(i,n.doc))return{from:e(i)||a?i.from:r,options:tge(n.doc,Ctt(i),e),validFor:ktt};if(i.name=="TagName"){for(let{parent:l}=i;l;l=l.parent)if(l.name=="Block")return{from:i.from,options:c7(),validFor:h0};return{from:i.from,options:Ttt,validFor:h0}}if(!t.explicit)return null;let s=i.resolve(r),o=s.childBefore(r);return o&&o.name==":"&&s.name=="PseudoClassSelector"?{from:r,options:Gte,validFor:h0}:o&&o.name==":"&&s.name=="Declaration"||s.name=="ArgList"?{from:r,options:Vte,validFor:h0}:s.name=="Block"||s.name=="Styles"?{from:r,options:c7(),validFor:h0}:null},Itt=Rtt(e=>e.name=="VariableName"),UC=Vv.define({name:"css",parser:xtt.configure({props:[tT.add({Declaration:M4()}),LO.add({"Block KeyframeList":Dpe})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function Ntt(){return new Gw(UC,UC.data.of({autocomplete:Itt}))}const Dtt=312,Yte=1,Ptt=2,Mtt=3,Ltt=4,$tt=313,Ftt=315,Btt=316,Utt=5,ztt=6,Htt=0,mM=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],nge=125,jtt=59,gM=47,Wtt=42,Qtt=43,Gtt=45,Vtt=60,qtt=44,Ytt=63,Ztt=46,Xtt=new Ume({start:!1,shift(e,t){return t==Utt||t==ztt||t==Ftt?e:t==Btt},strict:!1}),Ktt=new Gd((e,t)=>{let{next:n}=e;(n==nge||n==-1||t.context)&&e.acceptToken($tt)},{contextual:!0,fallback:!0}),Jtt=new Gd((e,t)=>{let{next:n}=e,r;mM.indexOf(n)>-1||n==gM&&((r=e.peek(1))==gM||r==Wtt)||n!=nge&&n!=jtt&&n!=-1&&!t.context&&e.acceptToken(Dtt)},{contextual:!0}),ent=new Gd((e,t)=>{let{next:n}=e;if(n==Qtt||n==Gtt){if(e.advance(),n==e.next){e.advance();let r=!t.context&&t.canShift(Yte);e.acceptToken(r?Yte:Ptt)}}else n==Ytt&&e.peek(1)==Ztt&&(e.advance(),e.advance(),(e.next<48||e.next>57)&&e.acceptToken(Mtt))},{contextual:!0});function d7(e,t){return e>=65&&e<=90||e>=97&&e<=122||e==95||e>=192||!t&&e>=48&&e<=57}const tnt=new Gd((e,t)=>{if(e.next!=Vtt||!t.dialectEnabled(Htt)||(e.advance(),e.next==gM))return;let n=0;for(;mM.indexOf(e.next)>-1;)e.advance(),n++;if(d7(e.next,!0)){for(e.advance(),n++;d7(e.next,!1);)e.advance(),n++;for(;mM.indexOf(e.next)>-1;)e.advance(),n++;if(e.next==qtt)return;for(let r=0;;r++){if(r==7){if(!d7(e.next,!0))return;break}if(e.next!="extends".charCodeAt(r))break;e.advance(),n++}}e.acceptToken(Ltt,-n)}),nnt=MO({"get set async static":Oe.modifier,"for while do if else switch try catch finally return throw break continue default case":Oe.controlKeyword,"in of await yield void typeof delete instanceof":Oe.operatorKeyword,"let var const using function class extends":Oe.definitionKeyword,"import export from":Oe.moduleKeyword,"with debugger as new":Oe.keyword,TemplateString:Oe.special(Oe.string),super:Oe.atom,BooleanLiteral:Oe.bool,this:Oe.self,null:Oe.null,Star:Oe.modifier,VariableName:Oe.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":Oe.function(Oe.variableName),VariableDefinition:Oe.definition(Oe.variableName),Label:Oe.labelName,PropertyName:Oe.propertyName,PrivatePropertyName:Oe.special(Oe.propertyName),"CallExpression/MemberExpression/PropertyName":Oe.function(Oe.propertyName),"FunctionDeclaration/VariableDefinition":Oe.function(Oe.definition(Oe.variableName)),"ClassDeclaration/VariableDefinition":Oe.definition(Oe.className),PropertyDefinition:Oe.definition(Oe.propertyName),PrivatePropertyDefinition:Oe.definition(Oe.special(Oe.propertyName)),UpdateOp:Oe.updateOperator,"LineComment Hashbang":Oe.lineComment,BlockComment:Oe.blockComment,Number:Oe.number,String:Oe.string,Escape:Oe.escape,ArithOp:Oe.arithmeticOperator,LogicOp:Oe.logicOperator,BitOp:Oe.bitwiseOperator,CompareOp:Oe.compareOperator,RegExp:Oe.regexp,Equals:Oe.definitionOperator,Arrow:Oe.function(Oe.punctuation),": Spread":Oe.punctuation,"( )":Oe.paren,"[ ]":Oe.squareBracket,"{ }":Oe.brace,"InterpolationStart InterpolationEnd":Oe.special(Oe.brace),".":Oe.derefOperator,", ;":Oe.separator,"@":Oe.meta,TypeName:Oe.typeName,TypeDefinition:Oe.definition(Oe.typeName),"type enum interface implements namespace module declare":Oe.definitionKeyword,"abstract global Privacy readonly override":Oe.modifier,"is keyof unique infer":Oe.operatorKeyword,JSXAttributeValue:Oe.attributeValue,JSXText:Oe.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":Oe.angleBracket,"JSXIdentifier JSXNameSpacedName":Oe.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":Oe.attributeName,"JSXBuiltin/JSXIdentifier":Oe.standard(Oe.tagName)}),rnt={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,extends:54,this:58,true:66,false:66,null:78,void:82,typeof:86,super:102,new:136,delete:148,yield:157,await:161,class:166,public:229,private:229,protected:229,readonly:231,instanceof:250,satisfies:253,in:254,const:256,import:290,keyof:345,unique:349,infer:355,is:391,abstract:411,implements:413,type:415,let:418,var:420,using:423,interface:429,enum:433,namespace:439,module:441,declare:445,global:449,for:468,of:477,while:480,with:484,do:488,if:492,else:494,switch:498,case:504,try:510,catch:514,finally:518,return:522,throw:526,break:530,continue:534,debugger:538},int={__proto__:null,async:123,get:125,set:127,declare:189,public:191,private:191,protected:191,static:193,abstract:195,override:197,readonly:203,accessor:205,new:395},ant={__proto__:null,"<":187},snt=Kv.deserialize({version:14,states:"$@QO%TQ^OOO%[Q^OOO'_Q`OOP(lOWOOO*zQ?NdO'#CiO+RO!bO'#CjO+aO#tO'#CjO+oO!0LbO'#D^O.QQ^O'#DdO.bQ^O'#DoO%[Q^O'#DwO0fQ^O'#EPOOQ?Mr'#EX'#EXO1PQWO'#EUOOQO'#Em'#EmOOQO'#Ih'#IhO1XQWO'#GpO1dQWO'#ElO1iQWO'#ElO3hQ?NdO'#JmO6[Q?NdO'#JnO6uQWO'#F[O6zQ&jO'#FsOOQ?Mr'#Fe'#FeO7VO,YO'#FeO7eQ7[O'#FzO9RQWO'#FyOOQ?Mr'#Jn'#JnOOQ?Mp'#Jm'#JmO9WQWO'#GtOOQU'#KZ'#KZO9cQWO'#IUO9hQ?MxO'#IVOOQU'#JZ'#JZOOQU'#IZ'#IZQ`Q^OOO`Q^OOO9pQMnO'#DsO9wQ^O'#D{O:OQ^O'#D}O9^QWO'#GpO:VQ7[O'#CoO:eQWO'#EkO:pQWO'#EvO:uQ7[O'#FdO;dQWO'#GpOOQO'#K['#K[O;iQWO'#K[O;wQWO'#GxO;wQWO'#GyO;wQWO'#G{O9^QWO'#HOOVQWO'#CeO>gQWO'#H_O>oQWO'#HeO>oQWO'#HgO`Q^O'#HiO>oQWO'#HkO>oQWO'#HnO>tQWO'#HtO>yQ?MyO'#HzO%[Q^O'#H|O?UQ?MyO'#IOO?aQ?MyO'#IQO9hQ?MxO'#ISO?lQ?NdO'#CiO@nQ`O'#DiQOQWOOO%[Q^O'#D}OAUQWO'#EQO:VQ7[O'#EkOAaQWO'#EkOAlQpO'#FdOOQU'#Cg'#CgOOQ?Mp'#Dn'#DnOOQ?Mp'#Jq'#JqO%[Q^O'#JqOOQO'#Jt'#JtOOQO'#Id'#IdOBlQ`O'#EdOOQ?Mp'#Ec'#EcOOQ?Mp'#Jx'#JxOChQ?NQO'#EdOCrQ`O'#ETOOQO'#Js'#JsODWQ`O'#JtOEeQ`O'#ETOCrQ`O'#EdPErO#@ItO'#CbPOOO)CDx)CDxOOOO'#I['#I[OE}O!bO,59UOOQ?Mr,59U,59UOOOO'#I]'#I]OF]O#tO,59UO%[Q^O'#D`OOOO'#I_'#I_OFkO!0LbO,59xOOQ?Mr,59x,59xOFyQ^O'#I`OG^QWO'#JoOI]QrO'#JoO+}Q^O'#JoOIdQWO,5:OOIzQWO'#EmOJXQWO'#KOOJdQWO'#J}OJdQWO'#J}OJlQWO,5;ZOJqQWO'#J|OOQ?Mv,5:Z,5:ZOJxQ^O,5:ZOLvQ?NdO,5:cOMgQWO,5:kONQQ?MxO'#J{ONXQWO'#JzO9WQWO'#JzONmQWO'#JzONuQWO,5;YONzQWO'#JzO!#PQrO'#JnOOQ?Mr'#Ci'#CiO%[Q^O'#EPO!#oQrO,5:pOOQQ'#Ju'#JuOOQO-EpOOQU'#Jc'#JcOOQU,5>q,5>qOOQU-EtQWO'#HTO9^QWO'#HVO!DgQWO'#HVO:VQ7[O'#HXO!DlQWO'#HXOOQU,5=m,5=mO!DqQWO'#HYO!ESQWO'#CoO!EXQWO,59PO!EcQWO,59PO!GhQ^O,59POOQU,59P,59PO!GxQ?MxO,59PO%[Q^O,59PO!JTQ^O'#HaOOQU'#Hb'#HbOOQU'#Hc'#HcO`Q^O,5=yO!JkQWO,5=yO`Q^O,5>PO`Q^O,5>RO!JpQWO,5>TO`Q^O,5>VO!JuQWO,5>YO!JzQ^O,5>`OOQU,5>f,5>fO%[Q^O,5>fO9hQ?MxO,5>hOOQU,5>j,5>jO# UQWO,5>jOOQU,5>l,5>lO# UQWO,5>lOOQU,5>n,5>nO# rQ`O'#D[O%[Q^O'#JqO# |Q`O'#JqO#!kQ`O'#DjO#!|Q`O'#DjO#%_Q^O'#DjO#%fQWO'#JpO#%nQWO,5:TO#%sQWO'#EqO#&RQWO'#KPO#&ZQWO,5;[O#&`Q`O'#DjO#&mQ`O'#ESOOQ?Mr,5:l,5:lO%[Q^O,5:lO#&tQWO,5:lO>tQWO,5;VO!A}Q`O,5;VO!BVQ7[O,5;VO:VQ7[O,5;VO#&|QWO,5@]O#'RQ(CYO,5:pOOQO-EzO+}Q^O,5>zOOQO,5?Q,5?QO#*ZQ^O'#I`OOQO-E<^-E<^O#*hQWO,5@ZO#*pQrO,5@ZO#*wQWO,5@iOOQ?Mr1G/j1G/jO%[Q^O,5@jO#+PQWO'#IfOOQO-EuQ?NdO1G0|O#>|Q?NdO1G0|O#AZQ07bO'#CiO#CUQ07bO1G1_O#C]Q07bO'#JnO#CpQ?NdO,5?WOOQ?Mp-EoQWO1G3oO$3VQ^O1G3qO$7ZQ^O'#HpOOQU1G3t1G3tO$7hQWO'#HvO>tQWO'#HxOOQU1G3z1G3zO$7pQ^O1G3zO9hQ?MxO1G4QOOQU1G4S1G4SOOQ?Mp'#G]'#G]O9hQ?MxO1G4UO9hQ?MxO1G4WO$;wQWO,5@]O!(oQ^O,5;]O9WQWO,5;]O>tQWO,5:UO!(oQ^O,5:UO!A}Q`O,5:UO$;|Q07bO,5:UOOQO,5;],5;]O$tQWO1G0qO!A}Q`O1G0qO!BVQ7[O1G0qOOQ?Mp1G5w1G5wO!ArQ?MxO1G0ZOOQO1G0j1G0jO%[Q^O1G0jO$=aQ?MxO1G0jO$=lQ?MxO1G0jO!A}Q`O1G0ZOCrQ`O1G0ZO$=zQ?MxO1G0jOOQO1G0Z1G0ZO$>`Q?NdO1G0jPOOO-EjQpO,5rQrO1G4fOOQO1G4l1G4lO%[Q^O,5>zO$>|QWO1G5uO$?UQWO1G6TO$?^QrO1G6UO9WQWO,5?QO$?hQ?NdO1G6RO%[Q^O1G6RO$?xQ?MxO1G6RO$@ZQWO1G6QO$@ZQWO1G6QO9WQWO1G6QO$@cQWO,5?TO9WQWO,5?TOOQO,5?T,5?TO$@wQWO,5?TO$(PQWO,5?TOOQO-E[OOQU,5>[,5>[O%[Q^O'#HqO%8mQWO'#HsOOQU,5>b,5>bO9WQWO,5>bOOQU,5>d,5>dOOQU7+)f7+)fOOQU7+)l7+)lOOQU7+)p7+)pOOQU7+)r7+)rO%8rQ`O1G5wO%9WQ07bO1G0wO%9bQWO1G0wOOQO1G/p1G/pO%9mQ07bO1G/pO>tQWO1G/pO!(oQ^O'#DjOOQO,5>{,5>{OOQO-E<_-E<_OOQO,5?R,5?ROOQO-EtQWO7+&]O!A}Q`O7+&]OOQO7+%u7+%uO$>`Q?NdO7+&UOOQO7+&U7+&UO%[Q^O7+&UO%9wQ?MxO7+&UO!ArQ?MxO7+%uO!A}Q`O7+%uO%:SQ?MxO7+&UO%:bQ?NdO7++mO%[Q^O7++mO%:rQWO7++lO%:rQWO7++lOOQO1G4o1G4oO9WQWO1G4oO%:zQWO1G4oOOQQ7+%z7+%zO#&wQWO<|O%[Q^O,5>|OOQO-E<`-E<`O%FwQWO1G5xOOQ?Mr<]OOQU,5>_,5>_O&8uQWO1G3|O9WQWO7+&cO!(oQ^O7+&cOOQO7+%[7+%[O&8zQ07bO1G6UO>tQWO7+%[OOQ?Mr<tQWO<`Q?NdO<pQ?NdO,5?_O&@xQ?NdO7+'zO&CWQrO1G4hO&CbQ07bO7+&^O&EcQ07bO,5=UO&GgQ07bO,5=WO&GwQ07bO,5=UO&HXQ07bO,5=WO&HiQ07bO,59rO&JlQ07bO,5tQWO7+)hO'(OQWO<`Q?NdOAN?[OOQOAN>{AN>{O%[Q^OAN?[OOQO<`Q?NdOG24vO#&wQWOLD,nOOQULD,nLD,nO!&_Q7[OLD,nO'5TQrOLD,nO'5[Q07bO7+'xO'6}Q07bO,5?]O'8}Q07bO,5?_O':}Q07bO7+'zO'kOh%VOk+aO![']O%f+`O~O!d+cOa(WX![(WX'u(WX!Y(WX~Oa%lO![XO'u%lO~Oh%VO!i%cO~Oh%VO!i%cO(O%eO~O!d#vO#h(tO~Ob+nO%g+oO(O+kO(QTO(TUO!Z)TP~O!Y+pO`)SX~O[+tO~O`+uO~O![%}O(O%eO(P!lO`)SP~Oh%VO#]+zO~Oh%VOk+}O![$|O~O![,PO~O},RO![XO~O%k%tO~O!u,WO~Oe,]O~Ob,^O(O#nO(QTO(TUO!Z)RP~Oe%{O~O%g!QO(O&WO~P=RO[,cO`,bO~OPYOQYOSfOdzOeyOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO!fuO!iZO!lYO!mYO!nYO!pvO!uxO!y]O%e}O(QTO(TUO([VO(j[O(yiO~O![!eO!r!gO$V!kO(O!dO~P!EkO`,bOa%lO'u%lO~OPYOQYOSfOd!jOe!iOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!u!hO$V!kO(O!dO(QTO(TUO([VO(j[O(yiO~Oa,hO!rwO#t!OO%i!OO%j!OO%k!OO~P!HTO!i&lO~O&Y,nO~O![,pO~O&k,rO&m,sOP&haQ&haS&haY&haa&had&hae&ham&hao&hap&haq&haw&hay&ha{&ha!P&ha!T&ha!U&ha![&ha!f&ha!i&ha!l&ha!m&ha!n&ha!p&ha!r&ha!u&ha!y&ha#t&ha$V&ha%e&ha%g&ha%i&ha%j&ha%k&ha%n&ha%p&ha%s&ha%t&ha%v&ha&S&ha&Y&ha&[&ha&^&ha&`&ha&c&ha&i&ha&o&ha&q&ha&s&ha&u&ha&w&ha's&ha(O&ha(Q&ha(T&ha([&ha(j&ha(y&ha!Z&ha&a&hab&ha&f&ha~O(O,xO~Oh!bX!Y!OX!Z!OX!d!OX!d!bX!i!bX#]!OX~O!Y!bX!Z!bX~P# ZO!d,}O#],|Oh(eX!Y#eX!Y(eX!Z#eX!Z(eX!d(eX!i(eX~Oh%VO!d-PO!i%cO!Y!^X!Z!^X~Op!nO!P!oO(QTO(TUO(`!mO~OP;POQ;POSfOdkOg'XX!Y'XX~P!+hO!Y.wOg(ka~OSfO![3uO$c3vO~O!Z3zO~Os3{O~P#.aOa$lq!Y$lq'u$lq's$lq!V$lq!h$lqs$lq![$lq%f$lq!d$lq~P!9mO!V3|O~P#.aO})zO!P){O(u%POk'ea(t'ea!Y'ea#]'ea~Og'ea#}'ea~P%)nO})zO!P){Ok'ga(t'ga(u'ga!Y'ga#]'ga~Og'ga#}'ga~P%*aO(m$YO~P#.aO!VfX!V$xX!YfX!Y$xX!d%PX#]fX~P!/gO(OQ#>g#@V#@e#@l#BR#Ba#C|#D[#Db#Dh#Dn#Dx#EO#EU#E`#Er#ExPPPPPPPPPP#FOPPPPPPP#Fs#Iz#KZ#Kb#KjPPP$!sP$!|$%t$,^$,a$,d$-P$-S$-Z$-cP$-i$-lP$.Y$.^$/U$0d$0i$1PPP$1U$1[$1`P$1c$1g$1k$2a$2x$3a$3e$3h$3k$3q$3t$3x$3|R!|RoqOXst!Z#d%k&o&q&r&t,k,p1|2PY!vQ']-]1a5eQ%rvQ%zyQ&R|Q&g!VS'T!e-TQ'c!iS'i!r!yU*e$|*V*jQ+i%{Q+v&TQ,[&aQ-Z'[Q-e'dQ-m'jQ0R*lQ1k,]R;v;T%QdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V,h,k,p-a-i-w-}.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3^5b5m5}6O6R6f8R8X8h8rS#q];Q!r)Z$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{ < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:376,context:Xtt,nodeProps:[["isolate",-8,5,6,14,34,36,48,50,52,""],["group",-26,9,17,19,65,204,208,212,213,215,218,221,231,233,239,241,243,245,248,254,260,262,264,266,268,270,271,"Statement",-34,13,14,29,32,33,39,48,51,52,54,59,67,69,73,77,79,81,82,107,108,117,118,135,138,140,141,142,143,144,146,147,166,167,169,"Expression",-23,28,30,34,38,40,42,171,173,175,176,178,179,180,182,183,184,186,187,188,198,200,202,203,"Type",-3,85,100,106,"ClassItem"],["openedBy",23,"<",35,"InterpolationStart",53,"[",57,"{",70,"(",159,"JSXStartCloseTag"],["closedBy",24,">",37,"InterpolationEnd",47,"]",58,"}",71,")",164,"JSXEndTag"]],propSources:[nnt],skippedNodes:[0,5,6,274],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$h&j(U!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(U!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$h&j(RpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(RpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z07[+rq$h&j(Rp(U!b'w0/lOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z07[.ST(S#S$h&j'x0/lO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c07[.n_$h&j(Rp(U!b'x0/lOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)3p/x`$h&j!m),Q(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW1V`#u(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW2d_#u(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At3l_(Q':f$h&j(U!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$h&j(U!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$h&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$c`$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$c``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$c`$h&j(U!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(U!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$c`(U!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k%9[:hh$h&j(Rp(U!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXWS$h&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSWSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWWS(U!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]WS$h&j(RpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWWS(RpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYWS(Rp(U!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l^!Q^$h&j!U7`OY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@c!_!}!=y!}#O!CW#O#P!Dy#P#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y|#X#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#k!>|#k#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&c7`!@hX!U7`OY!@cZ!P!@c!P!Q!AT!Q!}!@c!}#O!Ar#O#P!Bq#P;'S!@c;'S;=`!CQ<%lO!@c7`!AYW!U7`#W#X!AT#Z#[!AT#]#^!AT#a#b!AT#g#h!AT#i#j!AT#j#k!AT#m#n!AT7`!AuVOY!ArZ#O!Ar#O#P!B[#P#Q!@c#Q;'S!Ar;'S;=`!Bk<%lO!Ar7`!B_SOY!ArZ;'S!Ar;'S;=`!Bk<%lO!Ar7`!BnP;=`<%l!Ar7`!BtSOY!@cZ;'S!@c;'S;=`!CQ<%lO!@c7`!CTP;=`<%l!@c^!Ezl$h&j(U!b!U7`OY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#W&}#W#X!Eq#X#Z&}#Z#[!Eq#[#]&}#]#^!Eq#^#a&}#a#b!Eq#b#g&}#g#h!Eq#h#i&}#i#j!Eq#j#k!Eq#k#m&}#m#n!Eq#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}8r!GyZ(U!b!U7`OY!GrZw!Grwx!@cx!P!Gr!P!Q!Hl!Q!}!Gr!}#O!JU#O#P!Bq#P;'S!Gr;'S;=`!J|<%lO!Gr8r!Hse(U!b!U7`OY'}Zw'}x#O'}#P#W'}#W#X!Hl#X#Z'}#Z#[!Hl#[#]'}#]#^!Hl#^#a'}#a#b!Hl#b#g'}#g#h!Hl#h#i'}#i#j!Hl#j#k!Hl#k#m'}#m#n!Hl#n;'S'};'S;=`(f<%lO'}8r!JZX(U!bOY!JUZw!JUwx!Arx#O!JU#O#P!B[#P#Q!Gr#Q;'S!JU;'S;=`!Jv<%lO!JU8r!JyP;=`<%l!JU8r!KPP;=`<%l!Gr>^!KZ^$h&j(U!bOY!KSYZ&cZw!KSwx!CWx!^!KS!^!_!JU!_#O!KS#O#P!DR#P#Q!^!LYP;=`<%l!KS>^!L`P;=`<%l!_#c#d#Bq#d#l%Z#l#m#Es#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#>j_$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#?rd$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#A]f$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Bzc$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Dbe$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#E|g$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Gpi$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x#Il_!d$b$h&j#})Lv(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)[#Jv_al$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f#LS^h#)`#O-rnt[e]||-1},{term:338,get:e=>int[e]||-1},{term:92,get:e=>ant[e]||-1}],tokenPrec:14749}),rge=[Al("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Al("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Al("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Al("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Al("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Al(`try { + \${} +} catch (\${error}) { + \${} +}`,{label:"try",detail:"/ catch block",type:"keyword"}),Al("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Al(`if (\${}) { + \${} +} else { + \${} +}`,{label:"if",detail:"/ else block",type:"keyword"}),Al(`class \${name} { + constructor(\${params}) { + \${} + } +}`,{label:"class",detail:"definition",type:"keyword"}),Al('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Al('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],ont=rge.concat([Al("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Al("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Al("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),Zte=new Tpe,ige=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function A2(e){return(t,n)=>{let r=t.node.getChild("VariableDefinition");return r&&n(r,e),!0}}const lnt=["FunctionDeclaration"],unt={FunctionDeclaration:A2("function"),ClassDeclaration:A2("class"),ClassExpression:()=>!0,EnumDeclaration:A2("constant"),TypeAliasDeclaration:A2("type"),NamespaceDeclaration:A2("namespace"),VariableDefinition(e,t){e.matchContext(lnt)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function age(e,t){let n=Zte.get(t);if(n)return n;let r=[],i=!0;function a(s,o){let l=e.sliceString(s.from,s.to);r.push({label:l,type:o})}return t.cursor(Mi.IncludeAnonymous).iterate(s=>{if(i)i=!1;else if(s.name){let o=unt[s.name];if(o&&o(s,a)||ige.has(s.name))return!1}else if(s.to-s.from>8192){for(let o of age(e,s.node))r.push(o);return!1}}),Zte.set(t,r),r}const Xte=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,sge=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function cnt(e){let t=Fi(e.state).resolveInner(e.pos,-1);if(sge.indexOf(t.name)>-1)return null;let n=t.name=="VariableName"||t.to-t.from<20&&Xte.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let i=t;i;i=i.parent)ige.has(i.name)&&(r=r.concat(age(e.state.doc,i)));return{options:r,from:n?t.from:e.pos,validFor:Xte}}const Wf=Vv.define({name:"javascript",parser:snt.configure({props:[tT.add({IfStatement:M4({except:/^\s*({|else\b)/}),TryStatement:M4({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:Xqe,SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:Zqe({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":M4({except:/^{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag"(e){return e.column(e.node.from)+e.unit}}),LO.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":Dpe,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),oge={test:e=>/^JSX/.test(e.name),facet:Nz({commentTokens:{block:{open:"{/*",close:"*/}"}}})},lge=Wf.configure({dialect:"ts"},"typescript"),uge=Wf.configure({dialect:"jsx",props:[Dz.add(e=>e.isTop?[oge]:void 0)]}),cge=Wf.configure({dialect:"jsx ts",props:[Dz.add(e=>e.isTop?[oge]:void 0)]},"typescript");let dge=e=>({label:e,type:"keyword"});const fge="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(dge),dnt=fge.concat(["declare","implements","private","protected","public"].map(dge));function fnt(e={}){let t=e.jsx?e.typescript?cge:uge:e.typescript?lge:Wf,n=e.typescript?ont.concat(dnt):rge.concat(fge);return new Gw(t,[Wf.data.of({autocomplete:hXe(sge,L0e(n))}),Wf.data.of({autocomplete:cnt}),e.jsx?mnt:[]])}function hnt(e){for(;;){if(e.name=="JSXOpenTag"||e.name=="JSXSelfClosingTag"||e.name=="JSXFragmentTag")return e;if(e.name=="JSXEscape"||!e.parent)return null;e=e.parent}}function Kte(e,t,n=e.length){for(let r=t==null?void 0:t.firstChild;r;r=r.nextSibling)if(r.name=="JSXIdentifier"||r.name=="JSXBuiltin"||r.name=="JSXNamespacedName"||r.name=="JSXMemberExpression")return e.sliceString(r.from,Math.min(r.to,n));return""}const pnt=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),mnt=rn.inputHandler.of((e,t,n,r,i)=>{if((pnt?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||r!=">"&&r!="/"||!Wf.isActiveAt(e.state,t,-1))return!1;let a=i(),{state:s}=a,o=s.changeByRange(l=>{var u;let{head:d}=l,f=Fi(s).resolveInner(d-1,-1),p;if(f.name=="JSXStartTag"&&(f=f.parent),!(s.doc.sliceString(d-1,d)!=r||f.name=="JSXAttributeValue"&&f.to>d)){if(r==">"&&f.name=="JSXFragmentTag")return{range:l,changes:{from:d,insert:""}};if(r=="/"&&f.name=="JSXStartCloseTag"){let g=f.parent,b=g.parent;if(b&&g.from==d-2&&((p=Kte(s.doc,b.firstChild,d))||((u=b.firstChild)===null||u===void 0?void 0:u.name)=="JSXFragmentTag")){let S=`${p}>`;return{range:mt.cursor(d+S.length,-1),changes:{from:d,insert:S}}}}else if(r==">"){let g=hnt(f);if(g&&g.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(s.doc.sliceString(d,d+2))&&(p=Kte(s.doc,g,d)))return{range:l,changes:{from:d,insert:``}}}}return{range:l}});return o.changes.empty?!1:(e.dispatch([a,s.update(o,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),_2=["_blank","_self","_top","_parent"],f7=["ascii","utf-8","utf-16","latin1","latin1"],h7=["get","post","put","delete"],p7=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],hu=["true","false"],An={},gnt={a:{attrs:{href:null,ping:null,type:null,media:null,target:_2,hreflang:null}},abbr:An,address:An,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:An,aside:An,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:An,base:{attrs:{href:null,target:_2}},bdi:An,bdo:An,blockquote:{attrs:{cite:null}},body:An,br:An,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:p7,formmethod:h7,formnovalidate:["novalidate"],formtarget:_2,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:An,center:An,cite:An,code:An,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:An,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:An,div:An,dl:An,dt:An,em:An,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:An,figure:An,footer:An,form:{attrs:{action:null,name:null,"accept-charset":f7,autocomplete:["on","off"],enctype:p7,method:h7,novalidate:["novalidate"],target:_2}},h1:An,h2:An,h3:An,h4:An,h5:An,h6:An,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:An,hgroup:An,hr:An,html:{attrs:{manifest:null}},i:An,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:p7,formmethod:h7,formnovalidate:["novalidate"],formtarget:_2,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:An,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:An,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:An,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:f7,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:An,noscript:An,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:An,param:{attrs:{name:null,value:null}},pre:An,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:An,rt:An,ruby:An,samp:An,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:f7}},section:An,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:An,source:{attrs:{src:null,type:null,media:null}},span:An,strong:An,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:An,summary:An,sup:An,table:An,tbody:An,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:An,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:An,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:An,time:{attrs:{datetime:null}},title:An,tr:An,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:An,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:An},hge={accesskey:null,class:null,contenteditable:hu,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:hu,autocorrect:hu,autocapitalize:hu,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":hu,"aria-autocomplete":["inline","list","both","none"],"aria-busy":hu,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":hu,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":hu,"aria-hidden":hu,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":hu,"aria-multiselectable":hu,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":hu,"aria-relevant":null,"aria-required":hu,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},pge="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(e=>"on"+e);for(let e of pge)hge[e]=null;let ix=class{constructor(t,n){this.tags=Object.assign(Object.assign({},gnt),t),this.globalAttrs=Object.assign(Object.assign({},hge),n),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};ix.default=new ix;function Jv(e,t,n=e.length){if(!t)return"";let r=t.firstChild,i=r&&r.getChild("TagName");return i?e.sliceString(i.from,Math.min(i.to,n)):""}function eO(e,t=!1){for(;e;e=e.parent)if(e.name=="Element")if(t)t=!1;else return e;return null}function mge(e,t,n){let r=n.tags[Jv(e,eO(t))];return(r==null?void 0:r.children)||n.allTags}function gH(e,t){let n=[];for(let r=eO(t);r&&!r.type.isTop;r=eO(r.parent)){let i=Jv(e,r);if(i&&r.lastChild.name=="CloseTag")break;i&&n.indexOf(i)<0&&(t.name=="EndTag"||t.from>=r.firstChild.to)&&n.push(i)}return n}const gge=/^[:\-\.\w\u00b7-\uffff]*$/;function Jte(e,t,n,r,i){let a=/\s*>/.test(e.sliceDoc(i,i+5))?"":">",s=eO(n,!0);return{from:r,to:i,options:mge(e.doc,s,t).map(o=>({label:o,type:"type"})).concat(gH(e.doc,n).map((o,l)=>({label:"/"+o,apply:"/"+o+a,type:"type",boost:99-l}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function ene(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:n,to:r,options:gH(e.doc,t).map((a,s)=>({label:a,apply:a+i,type:"type",boost:99-s})),validFor:gge}}function bnt(e,t,n,r){let i=[],a=0;for(let s of mge(e.doc,n,t))i.push({label:"<"+s,type:"type"});for(let s of gH(e.doc,n))i.push({label:"",type:"type",boost:99-a++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function ynt(e,t,n,r,i){let a=eO(n),s=a?t.tags[Jv(e.doc,a)]:null,o=s&&s.attrs?Object.keys(s.attrs):[],l=s&&s.globalAttrs===!1?o:o.length?o.concat(t.globalAttrNames):t.globalAttrNames;return{from:r,to:i,options:l.map(u=>({label:u,type:"property"})),validFor:gge}}function vnt(e,t,n,r,i){var a;let s=(a=n.parent)===null||a===void 0?void 0:a.getChild("AttributeName"),o=[],l;if(s){let u=e.sliceDoc(s.from,s.to),d=t.globalAttrs[u];if(!d){let f=eO(n),p=f?t.tags[Jv(e.doc,f)]:null;d=(p==null?void 0:p.attrs)&&p.attrs[u]}if(d){let f=e.sliceDoc(r,i).toLowerCase(),p='"',g='"';/^['"]/.test(f)?(l=f[0]=='"'?/^[^"]*$/:/^[^']*$/,p="",g=e.sliceDoc(i,i+1)==f[0]?"":f[0],f=f.slice(1),r++):l=/^[^\s<>='"]*$/;for(let b of d)o.push({label:b,apply:p+b+g,type:"constant"})}}return{from:r,to:i,options:o,validFor:l}}function bge(e,t){let{state:n,pos:r}=t,i=Fi(n).resolveInner(r,-1),a=i.resolve(r);for(let s=r,o;a==i&&(o=i.childBefore(s));){let l=o.lastChild;if(!l||!l.type.isError||l.frombge(r,i)}const Ent=Wf.parser.configure({top:"SingleExpression"}),yge=[{tag:"script",attrs:e=>e.type=="text/typescript"||e.lang=="ts",parser:lge.parser},{tag:"script",attrs:e=>e.type=="text/babel"||e.type=="text/jsx",parser:uge.parser},{tag:"script",attrs:e=>e.type=="text/typescript-jsx",parser:cge.parser},{tag:"script",attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:Ent},{tag:"script",attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:Wf.parser},{tag:"style",attrs(e){return(!e.lang||e.lang=="css")&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:UC.parser}],vge=[{name:"style",parser:UC.parser.configure({top:"Styles"})}].concat(pge.map(e=>({name:e,parser:Wf.parser}))),Oge=Vv.define({name:"html",parser:itt.configure({props:[tT.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit},Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].lengthe.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:""}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),F4=Oge.configure({wrap:Xme(yge,vge)});function wnt(e={}){let t="",n;e.matchClosingTags===!1&&(t="noMatch"),e.selfClosingTags===!0&&(t=(t?t+" ":"")+"selfClosing"),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(n=Xme((e.nestedLanguages||[]).concat(yge),(e.nestedAttributes||[]).concat(vge)));let r=n?Oge.configure({wrap:n,dialect:t}):t?F4.configure({dialect:t}):F4;return new Gw(r,[F4.data.of({autocomplete:Snt(e)}),e.autoCloseTags!==!1?xnt:[],fnt().support,Ntt().support])}const tne=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),xnt=rn.inputHandler.of((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||r!=">"&&r!="/"||!F4.isActiveAt(e.state,t,-1))return!1;let a=i(),{state:s}=a,o=s.changeByRange(l=>{var u,d,f;let p=s.doc.sliceString(l.from-1,l.to)==r,{head:g}=l,b=Fi(s).resolveInner(g,-1),S;if(p&&r==">"&&b.name=="EndTag"){let E=b.parent;if(((d=(u=E.parent)===null||u===void 0?void 0:u.lastChild)===null||d===void 0?void 0:d.name)!="CloseTag"&&(S=Jv(s.doc,E.parent,g))&&!tne.has(S)){let w=g+(s.doc.sliceString(g,g+1)===">"?1:0),x=``;return{range:l,changes:{from:g,to:w,insert:x}}}}else if(p&&r=="/"&&b.name=="IncompleteCloseTag"){let E=b.parent;if(b.from==g-2&&((f=E.lastChild)===null||f===void 0?void 0:f.name)!="CloseTag"&&(S=Jv(s.doc,E,g))&&!tne.has(S)){let w=g+(s.doc.sliceString(g,g+1)===">"?1:0),x=`${S}>`;return{range:mt.cursor(g+x.length,-1),changes:{from:g,to:w,insert:x}}}}return{range:l}});return o.changes.empty?!1:(e.dispatch([a,s.update(o,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),Sge=Nz({commentTokens:{block:{open:""}}}),Ege=new Zn,wge=XJe.configure({props:[LO.add(e=>!e.is("Block")||e.is("Document")||bM(e)!=null||Tnt(e)?void 0:(t,n)=>({from:n.doc.lineAt(t.from).to,to:t.to})),Ege.add(bM),tT.add({Document:()=>null}),Zg.add({Document:Sge})]});function bM(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function Tnt(e){return e.name=="OrderedList"||e.name=="BulletList"}function knt(e,t){let n=e;for(;;){let r=n.nextSibling,i;if(!r||(i=bM(r.type))!=null&&i<=t)break;n=r}return n.to}const Ant=Npe.of((e,t,n)=>{for(let r=Fi(e).resolveInner(n,-1);r&&!(r.fromn)return{from:n,to:a}}return null});function bH(e){return new xc(Sge,e,[Ant],"markdown")}const _nt=bH(wge),Cnt=wge.configure([uet,det,cet,fet,{props:[LO.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]),xge=bH(Cnt);function Rnt(e,t){return n=>{if(n&&e){let r=null;if(n=/\S*/.exec(n)[0],typeof e=="function"?r=e(n):r=vC.matchLanguageName(e,n,!0),r instanceof vC)return r.support?r.support.language.parser:Qw.getSkippingParser(r.load());if(r)return r.parser}return t?t.parser:null}}class b_{constructor(t,n,r,i,a,s,o){this.node=t,this.from=n,this.to=r,this.spaceBefore=i,this.spaceAfter=a,this.type=s,this.item=o}blank(t,n=!0){let r=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(t!=null){for(;r.length0;i--)r+=" ";return r+(n?this.spaceAfter:"")}}marker(t,n){let r=this.node.name=="OrderedList"?String(+kge(this.item,t)[2]+n):"";return this.spaceBefore+r+this.type+this.spaceAfter}}function Tge(e,t){let n=[];for(let i=e;i&&i.name!="Document";i=i.parent)(i.name=="ListItem"||i.name=="Blockquote"||i.name=="FencedCode")&&n.push(i);let r=[];for(let i=n.length-1;i>=0;i--){let a=n[i],s,o=t.lineAt(a.from),l=a.from-o.from;if(a.name=="FencedCode")r.push(new b_(a,l,l,"","","",null));else if(a.name=="Blockquote"&&(s=/^ *>( ?)/.exec(o.text.slice(l))))r.push(new b_(a,l,l+s[0].length,"",s[1],">",null));else if(a.name=="ListItem"&&a.parent.name=="OrderedList"&&(s=/^( *)\d+([.)])( *)/.exec(o.text.slice(l)))){let u=s[3],d=s[0].length;u.length>=4&&(u=u.slice(0,u.length-4),d-=4),r.push(new b_(a.parent,l,l+d,s[1],u,s[2],a))}else if(a.name=="ListItem"&&a.parent.name=="BulletList"&&(s=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(o.text.slice(l)))){let u=s[4],d=s[0].length;u.length>4&&(u=u.slice(0,u.length-4),d-=4);let f=s[2];s[3]&&(f+=s[3].replace(/[xX]/," ")),r.push(new b_(a.parent,l,l+d,s[1],u,f,a))}}return r}function kge(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function m7(e,t,n,r=0){for(let i=-1,a=e;;){if(a.name=="ListItem"){let o=kge(a,t),l=+o[2];if(i>=0){if(l!=i+1)return;n.push({from:a.from+o[1].length,to:a.from+o[0].length,insert:String(i+2+r)})}i=l}let s=a.nextSibling;if(!s)break;a=s}}function yH(e,t){let n=/^[ \t]*/.exec(e)[0].length;if(!n||t.facet(eT)!=" ")return e;let r=Zf(e,4,n),i="";for(let a=r;a>0;)a>=4?(i+=" ",a-=4):(i+=" ",a--);return i+e.slice(n)}const Int=({state:e,dispatch:t})=>{let n=Fi(e),{doc:r}=e,i=null,a=e.changeByRange(s=>{if(!s.empty||!xge.isActiveAt(e,s.from))return i={range:s};let o=s.from,l=r.lineAt(o),u=Tge(n.resolveInner(o,-1),r);for(;u.length&&u[u.length-1].from>o-l.from;)u.pop();if(!u.length)return i={range:s};let d=u[u.length-1];if(d.to-d.spaceAfter.length>o-l.from)return i={range:s};let f=o>=d.to-d.spaceAfter.length&&!/\S/.test(l.text.slice(d.to));if(d.item&&f){let E=d.node.firstChild,w=d.node.getChild("ListItem","ListItem");if(E.to>=o||w&&w.to0&&!/[^\s>]/.test(r.lineAt(l.from-1).text)){let x=u.length>1?u[u.length-2]:null,k,_="";x&&x.item?(k=l.from+x.from,_=x.marker(r,1)):k=l.from+(x?x.to:0);let C=[{from:k,to:o,insert:_}];return d.node.name=="OrderedList"&&m7(d.item,r,C,-2),x&&x.node.name=="OrderedList"&&m7(x.item,r,C),{range:mt.cursor(k+_.length),changes:C}}else{let x=rne(u,e,l);return{range:mt.cursor(o+x.length+1),changes:{from:l.from,insert:x+e.lineBreak}}}}if(d.node.name=="Blockquote"&&f&&l.from){let E=r.lineAt(l.from-1),w=/>\s*$/.exec(E.text);if(w&&w.index==d.from){let x=e.changes([{from:E.from+w.index,to:E.to},{from:l.from+d.from,to:l.to}]);return{range:s.map(x),changes:x}}}let p=[];d.node.name=="OrderedList"&&m7(d.item,r,p);let g=d.item&&d.item.from]*/.exec(l.text)[0].length>=d.to)for(let E=0,w=u.length-1;E<=w;E++)b+=E==w&&!g?u[E].marker(r,1):u[E].blank(El.from&&/\s/.test(l.text.charAt(S-l.from-1));)S--;return b=yH(b,e),Nnt(d.node,e.doc)&&(b=rne(u,e,l)+e.lineBreak+b),p.push({from:S,to:o,insert:e.lineBreak+b}),{range:mt.cursor(S+b.length+1),changes:p}});return i?!1:(t(e.update(a,{scrollIntoView:!0,userEvent:"input"})),!0)};function nne(e){return e.name=="QuoteMark"||e.name=="ListMark"}function Nnt(e,t){if(e.name!="OrderedList"&&e.name!="BulletList")return!1;let n=e.firstChild,r=e.getChild("ListItem","ListItem");if(!r)return!1;let i=t.lineAt(n.to),a=t.lineAt(r.from),s=/^[\s>]*$/.test(i.text);return i.number+(s?0:1){let n=Fi(e),r=null,i=e.changeByRange(a=>{let s=a.from,{doc:o}=e;if(a.empty&&xge.isActiveAt(e,a.from)){let l=o.lineAt(s),u=Tge(Dnt(n,s),o);if(u.length){let d=u[u.length-1],f=d.to-d.spaceAfter.length+(d.spaceAfter?1:0);if(s-l.from>f&&!/\S/.test(l.text.slice(f,s-l.from)))return{range:mt.cursor(l.from+f),changes:{from:l.from+f,to:s}};if(s-l.from==f&&(!d.item||l.from<=d.item.from||!/\S/.test(l.text.slice(0,d.to)))){let p=l.from+d.from;if(d.item&&d.node.from{var{theme:t,settings:n={},styles:r=[]}=e,i={".cm-gutters":{}},a={};n.background&&(a.backgroundColor=n.background),n.backgroundImage&&(a.backgroundImage=n.backgroundImage),n.foreground&&(a.color=n.foreground),n.fontSize&&(a.fontSize=n.fontSize),(n.background||n.foreground)&&(i["&"]=a),n.fontFamily&&(i["&.cm-editor .cm-scroller"]={fontFamily:n.fontFamily}),n.gutterBackground&&(i[".cm-gutters"].backgroundColor=n.gutterBackground),n.gutterForeground&&(i[".cm-gutters"].color=n.gutterForeground),n.gutterBorder&&(i[".cm-gutters"].borderRightColor=n.gutterBorder),n.caret&&(i[".cm-content"]={caretColor:n.caret},i[".cm-cursor, .cm-dropCursor"]={borderLeftColor:n.caret});var s={};n.gutterActiveForeground&&(s.color=n.gutterActiveForeground),n.lineHighlight&&(i[".cm-activeLine"]={backgroundColor:n.lineHighlight},s.backgroundColor=n.lineHighlight),i[".cm-activeLineGutter"]=s,n.selection&&(i["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:n.selection+" !important"}),n.selectionMatch&&(i["& .cm-selectionMatch"]={backgroundColor:n.selectionMatch});var o=rn.theme(i,{dark:t==="dark"}),l=rT.define(r),u=[o,Hpe(l)];return u},Bnt={background:"#fff",foreground:"#3D3D3D",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#AFAFAF",lineHighlight:"#d5e6ff69"},Unt=[{tag:[Oe.comment,Oe.quote],color:"#707F8D"},{tag:[Oe.typeName,Oe.typeOperator],color:"#aa0d91"},{tag:[Oe.keyword],color:"#aa0d91",fontWeight:"bold"},{tag:[Oe.string,Oe.meta],color:"#D23423"},{tag:[Oe.name],color:"#032f62"},{tag:[Oe.typeName],color:"#522BB2"},{tag:[Oe.variableName],color:"#23575C"},{tag:[Oe.definition(Oe.variableName)],color:"#327A9E"},{tag:[Oe.regexp,Oe.link],color:"#0e0eff"}];function znt(e){var{theme:t="light",settings:n={},styles:r=[]}={};return Age({theme:t,settings:ep({},Bnt,n),styles:[...Unt,...r]})}var Hnt=znt(),jnt={background:"#292A30",foreground:"#CECFD0",caret:"#fff",selection:"#727377",selectionMatch:"#727377",lineHighlight:"#ffffff0f"},Wnt=[{tag:[Oe.comment,Oe.quote],color:"#7F8C98"},{tag:[Oe.keyword],color:"#FF7AB2",fontWeight:"bold"},{tag:[Oe.string,Oe.meta],color:"#FF8170"},{tag:[Oe.typeName],color:"#DABAFF"},{tag:[Oe.definition(Oe.variableName)],color:"#6BDFFF"},{tag:[Oe.name],color:"#6BAA9F"},{tag:[Oe.variableName],color:"#ACF2E4"},{tag:[Oe.regexp,Oe.link],color:"#FF8170"}],Qnt=e=>{var{theme:t="dark",settings:n={},styles:r=[]}={};return Age({theme:t,settings:ep({},jnt,n),styles:[...Wnt,...r]})},Gnt=Qnt(),_ge={exports:{}};(function(e,t){(function(r,i){e.exports=i(L)})(Tf,function(n){return function(r){var i={};function a(s){if(i[s])return i[s].exports;var o=i[s]={i:s,l:!1,exports:{}};return r[s].call(o.exports,o,o.exports,a),o.l=!0,o.exports}return a.m=r,a.c=i,a.i=function(s){return s},a.d=function(s,o,l){a.o(s,o)||Object.defineProperty(s,o,{configurable:!1,enumerable:!0,get:l})},a.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return a.d(o,"a",o),o},a.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},a.p="",a(a.s=10)}([function(r,i){var a=r.exports={},s,o;function l(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?s=setTimeout:s=l}catch{s=l}try{typeof clearTimeout=="function"?o=clearTimeout:o=u}catch{o=u}})();function d(_){if(s===setTimeout)return setTimeout(_,0);if((s===l||!s)&&setTimeout)return s=setTimeout,setTimeout(_,0);try{return s(_,0)}catch{try{return s.call(null,_,0)}catch{return s.call(this,_,0)}}}function f(_){if(o===clearTimeout)return clearTimeout(_);if((o===u||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(_);try{return o(_)}catch{try{return o.call(null,_)}catch{return o.call(this,_)}}}var p=[],g=!1,b,S=-1;function E(){!g||!b||(g=!1,b.length?p=b.concat(p):S=-1,p.length&&w())}function w(){if(!g){var _=d(E);g=!0;for(var C=p.length;C;){for(b=p,p=[];++S1)for(var R=1;R1?p-1:0),b=1;b2?g-2:0),S=2;S0&&R.syncScrollPosition(R.panes[ie][0],G),R.panes[ie].push(G))}),R.addEvents(G,V)},R.unregisterPane=function(G,V){V.forEach(function(ie){R.findPane(G,ie)&&(R.removeEvents(G),R.panes[ie].splice(R.panes[ie].indexOf(G),1))})},R.addEvents=function(G,V){G.onscroll=R.handlePaneScroll.bind(R,G,V)},R.removeEvents=function(G){G.onscroll=null},R.findPane=function(G,V){return R.panes[V]?R.panes[V].find(function(ie){return ie===G}):!1},R.handlePaneScroll=function(G,V){R.props.enabled&&window.requestAnimationFrame(function(){R.syncScrollPositions(G,V)})},R.syncScrollPositions=function(G,V){V.forEach(function(ie){R.panes[ie].forEach(function(ne){G!==ne&&(R.removeEvents(ne,ie),R.syncScrollPosition(G,ne),window.requestAnimationFrame(function(){R.addEvents(ne,V)}))})}),R.props.onSync&&R.props.onSync(G)},C),S(R,N)}return s(k,[{key:"getContextValue",value:function(){return{registerPane:this.registerPane,unregisterPane:this.unregisterPane}}},{key:"syncScrollPosition",value:function(C,R){var N=C.scrollTop,M=C.scrollHeight,U=C.clientHeight,F=C.scrollLeft,G=C.scrollWidth,V=C.clientWidth,ie=M-U,ne=G-V,q=this.props,re=q.proportional,ee=q.vertical,Z=q.horizontal,se=R.scrollHeight-U,W=R.scrollWidth-V;ee&&ie>0&&(R.scrollTop=re?se*N/ie:N),Z&&ne>0&&(R.scrollLeft=re?W*F/ne:F)}},{key:"render",value:function(){return l.default.createElement(p.default.Provider,{value:this.getContextValue()},l.default.Children.only(this.props.children))}}]),k}(o.Component);w.propTypes={onSync:d.default.func,children:d.default.element.isRequired,proportional:d.default.bool,vertical:d.default.bool,horizontal:d.default.bool,enabled:d.default.bool},w.defaultProps={proportional:!0,vertical:!0,horizontal:!0,enabled:!0},i.default=w,r.exports=i.default},function(r,i,a){Object.defineProperty(i,"__esModule",{value:!0});var s=function(){function w(x,k){for(var _=0;_"u"||Ee===null)return""+Ee;var X=Z(Ee);if(X==="object"){if(Ee instanceof Date)return"date";if(Ee instanceof RegExp)return"regexp"}return X}function W(Ee){var X=se(Ee);switch(X){case"array":case"object":return"an "+X;case"boolean":case"date":case"regexp":return"a "+X;default:return X}}function Pe(Ee){return!Ee.constructor||!Ee.constructor.name?w:Ee.constructor.name}return x.checkPropTypes=f,x.PropTypes=x,x}}).call(i,a(0))}])})})(_ge);var vM=_ge.exports,vu=(e=>(e.BOLD="bold",e.ITALIC="italic",e.CODE="code",e.STRIKETHROUGH="strikeThrough",e))(vu||{});const vH=()=>{const{cmView:e}=Pr(Dp),t=L.useCallback(o=>{switch(o){case"bold":return"**";case"italic":return"_";case"code":return"`";case"strikeThrough":return"~~"}},[]),n=L.useCallback((o,l)=>{const d=new Set(["*","_","`","~"]);return[...o.sliceDoc(Math.max(0,l-10),l)].reduce((p,g)=>d.has(g)?p+1:p,0)},[]),r=L.useCallback(o=>{const l=t(o),u=l.length;return({state:d,dispatch:f})=>{const p=d.changeByRange(g=>{const b=n(d,g.from),S=d.sliceDoc(g.from-b<0?0:g.from-b,g.from).indexOf(l),E=d.sliceDoc(g.to,g.to+b).indexOf(l),w=[S===-1?{from:g.from,insert:kr.of([l])}:{from:g.from-b+S,to:g.from-b+S+u,insert:kr.of([""])},E===-1?{from:g.to,insert:kr.of([l])}:{from:g.to+E,to:g.to+E+u,insert:kr.of([""])}],x=S===-1?u:-u,k=E===-1?u:-u;return{changes:w,range:mt.range(g.from+x,g.to+k)}});return f(d.update(p,{scrollIntoView:!0,annotations:gs.userEvent.of("input")})),!0}},[t,n]),i=L.useCallback(()=>[$Ze,{key:"Mod-b",run:r("bold")},{key:"Mod-i",run:r("italic")},{key:"Mod-e",run:r("code")},{key:"Mod-Shift-x",run:r("strikeThrough")}],[r]),a=L.useCallback((o,l)=>(u,d)=>{if(!e)return;const f=new Set(o);f.has(d)?f.delete(d):f.add(d),l(p=>({...p,selectedFormats:f})),r(d)(e)},[e,r]),s=L.useCallback((o,l,u,d,f)=>{o.includes(u)&&l.includes(u)&&f.add(d)},[]);return{getFormatMarkerLength:n,applyFormat:r,setKeymapConfig:i,toggleButtonChangeHandler:a,checkAndAddFormat:s}},Vnt=()=>{const[e,t]=L.useState({show:!1,position:{top:0,left:0},selectedFormats:new Set}),{getFormatMarkerLength:n,checkAndAddFormat:r}=vH(),i=L.useCallback(a=>{const{state:s,view:o}=a,l=s.selection.main;if(l.empty){t(S=>({...S,show:!1,selectedFormats:new Set}));return}const u=o.coordsAtPos(l.from);if(!u)return;const d=n(o.state,l.from),f=s.sliceDoc(l.from-d,l.from),p=s.sliceDoc(l.to,l.to+d),g=new Set;[{marker:"**",format:vu.BOLD},{marker:"_",format:vu.ITALIC},{marker:"`",format:vu.CODE},{marker:"~~",format:vu.STRIKETHROUGH}].forEach(({marker:S,format:E})=>{r(f,p,S,E,g)}),t(S=>({...S,show:!0,position:{top:u.top-5,left:u.left},selectedFormats:g}))},[n,r]);return{toolBarState:e,setToolBarState:t,updateFormatBar:i}},qnt={yorkieIntelligence:null,fileUpload:null},Cge=H1({name:"setting",initialState:qnt,reducers:{setYorkieIntelligence:(e,t)=>{e.yorkieIntelligence=t.payload},setFileUpload:(e,t)=>{e.fileUpload=t.payload}}}),{setYorkieIntelligence:Ynt,setFileUpload:Znt}=Cge.actions,hI=e=>e.setting,Xnt=Cge.reducer,ine=async(e,t)=>await Promise.all(Array.from(e).map(n=>{if(n.type.startsWith("image/"))return new Promise((r,i)=>{const a=new FileReader;a.readAsDataURL(n),a.onload=function(){r(t(n))},a.onerror=function(s){i(s)}})})),ane=(e,t,n)=>{if(!e)return;const i=t.state.selection.main.to,a=i,s=` +![image](${e}) +`,o=a+s.length;n.update((l,u)=>{l.content.edit(i,a,s),u.set({selection:l.content.indexRangeToPosRange([o,o])})}),t.dispatch({changes:{from:i,to:a,insert:s},selection:{anchor:o}})},Knt=(e,t)=>rn.domEventHandlers({paste(n,r){var i,a;!((i=n.clipboardData)!=null&&i.files)||((a=n.clipboardData)==null?void 0:a.files.length)==0||ine(n.clipboardData.files,e).then(s=>s.forEach(o=>ane(o,r,t)))},drop(n,r){var i,a;!((i=n.dataTransfer)!=null&&i.files)||((a=n.dataTransfer)==null?void 0:a.files.length)==0||ine(n.dataTransfer.files,e).then(s=>s.forEach(o=>ane(o,r,t)))}});class Jnt{constructor(t,n){this.left=t,this.right=n}}const Kg=(e,t)=>new Jnt(e,t),ert=(e,t)=>e.forEach(n=>t(n.left,n.right)),ah=typeof document<"u"?document:{},trt=e=>ah.createElement(e),nrt=()=>ah.createDocumentFragment(),rrt=e=>ah.createTextNode(e);typeof DOMParser<"u"&&new DOMParser;const irt=(e,t)=>(ert(t,(n,r)=>{r===!1?e.removeAttribute(n):r===!0?e.setAttribute(n,""):e.setAttribute(n,r)}),e),art=e=>{const t=nrt();for(let n=0;n(Rge(e,art(t)),e),B4=(e,t=[],n=[])=>srt(irt(trt(e),t),n),y_=rrt,Rge=(e,t)=>e.appendChild(t);ah.ELEMENT_NODE;ah.TEXT_NODE;ah.CDATA_SECTION_NODE;ah.COMMENT_NODE;ah.DOCUMENT_NODE;ah.DOCUMENT_TYPE_NODE;ah.DOCUMENT_FRAGMENT_NODE;const ort="yorkie-intelligence-header",zC="yorkie-intelligence-footer";class sne extends Wd{constructor(n,r,i){super();Bs(this,"id");Bs(this,"content");Bs(this,"selectionRange");this.id=n,this.content=r,this.selectionRange=i}toDOM(){return B4("span",[Kg("id",this.id),Kg("content",this.content),Kg("style","position: relaitve;")])}eq(n){return n.selectionRange===this.selectionRange}compare(n){return n.selectionRange===this.selectionRange}updateDOM(){return!1}get estimatedHeight(){return-1}ignoreEvent(){return!0}}class lrt{constructor(){Bs(this,"decorations");this.decorations=Dr.of([])}update(t){const n=[],r=t.state.selection.main;if((r==null?void 0:r.from)!==(r==null?void 0:r.to)&&r){const a=t.state.sliceDoc(r.from,r.to);n.push({from:r.from,to:r.from,value:wn.widget({side:1,block:!1,widget:new sne(ort,a,r)})}),n.push({from:r.to,to:r.to,value:wn.widget({side:1,block:!1,widget:new sne(zC,a,r)})})}this.decorations=wn.set(n,!0)}}const urt=ya.fromClass(lrt,{decorations:e=>e.decorations});var OM={exports:{}},SM={exports:{}},EM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function n(i){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},n(i)}function r(i){var a=typeof i=="string"||i instanceof String;if(!a){var s=n(i);throw i===null?s="null":s==="object"&&(s=i.constructor.name),new TypeError("Expected a string but received a ".concat(s))}}e.exports=t.default,e.exports.default=t.default})(EM,EM.exports);var Ht=EM.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Ht);function r(a){return a&&a.__esModule?a:{default:a}}function i(a){return(0,n.default)(a),a=Date.parse(a),isNaN(a)?null:new Date(a)}e.exports=t.default,e.exports.default=t.default})(SM,SM.exports);var OH=SM.exports,wM={exports:{}},UO={},ea={};Object.defineProperty(ea,"__esModule",{value:!0});ea.farsiLocales=ea.englishLocales=ea.dotDecimal=ea.decimal=ea.commaDecimal=ea.bengaliLocales=ea.arabicLocales=ea.alphanumeric=ea.alpha=void 0;var Gl=ea.alpha={"en-US":/^[A-Z]+$/i,"az-AZ":/^[A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[А-Я]+$/i,"cs-CZ":/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[A-ZÆØÅ]+$/i,"de-DE":/^[A-ZÄÖÜß]+$/i,"el-GR":/^[Α-ώ]+$/i,"es-ES":/^[A-ZÁÉÍÑÓÚÜ]+$/i,"fa-IR":/^[ابپتثجچحخدذرزژسشصضطظعغفقکگلمنوهی]+$/i,"fi-FI":/^[A-ZÅÄÖ]+$/i,"fr-FR":/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[A-ZÀÉÈÌÎÓÒÙ]+$/i,"ja-JP":/^[ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i,"nb-NO":/^[A-ZÆØÅ]+$/i,"nl-NL":/^[A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[A-ZÆØÅ]+$/i,"hu-HU":/^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"pl-PL":/^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[А-ЯЁ]+$/i,"kk-KZ":/^[А-ЯЁ\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA]+$/i,"sl-SI":/^[A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๐\s]+$/i,"tr-TR":/^[A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[А-ЩЬЮЯЄIЇҐі]+$/i,"vi-VN":/^[A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,"ko-KR":/^[ㄱ-ㅎㅏ-ㅣ가-힣]*$/,"ku-IQ":/^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[א-ת]+$/,fa:/^['آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی']+$/i,bn:/^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,eo:/^[ABCĈD-GĜHĤIJĴK-PRSŜTUŬVZ]+$/i,"hi-IN":/^[\u0900-\u0961]+[\u0972-\u097F]*$/i,"si-LK":/^[\u0D80-\u0DFF]+$/},Vl=ea.alphanumeric={"en-US":/^[0-9A-Z]+$/i,"az-AZ":/^[0-9A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[0-9А-Я]+$/i,"cs-CZ":/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[0-9A-ZÆØÅ]+$/i,"de-DE":/^[0-9A-ZÄÖÜß]+$/i,"el-GR":/^[0-9Α-ω]+$/i,"es-ES":/^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,"fi-FI":/^[0-9A-ZÅÄÖ]+$/i,"fr-FR":/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,"ja-JP":/^[0-90-9ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i,"hu-HU":/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"nb-NO":/^[0-9A-ZÆØÅ]+$/i,"nl-NL":/^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[0-9A-ZÆØÅ]+$/i,"pl-PL":/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[0-9A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[0-9А-ЯЁ]+$/i,"kk-KZ":/^[0-9А-ЯЁ\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA]+$/i,"sl-SI":/^[0-9A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[0-9A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[0-9А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[0-9A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๙\s]+$/i,"tr-TR":/^[0-9A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,"ko-KR":/^[0-9ㄱ-ㅎㅏ-ㅣ가-힣]*$/,"ku-IQ":/^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,"vi-VN":/^[0-9A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[0-9א-ת]+$/,fa:/^['0-9آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی۱۲۳۴۵۶۷۸۹۰']+$/i,bn:/^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣ০১২৩৪৫৬৭৮৯ৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,eo:/^[0-9ABCĈD-GĜHĤIJĴK-PRSŜTUŬVZ]+$/i,"hi-IN":/^[\u0900-\u0963]+[\u0966-\u097F]*$/i,"si-LK":/^[0-9\u0D80-\u0DFF]+$/},ol=ea.decimal={"en-US":".",ar:"٫"},one=ea.englishLocales=["AU","GB","HK","IN","NZ","ZA","ZM"];for(var v_,b7=0;b7=t.min)&&(!t.hasOwnProperty("max")||r<=t.max)&&(!t.hasOwnProperty("lt")||rt.gt)}UO.locales=Object.keys(Ige.decimal);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(UO);function r(a){return a&&a.__esModule?a:{default:a}}function i(a){return(0,n.default)(a)?parseFloat(a):NaN}e.exports=t.default,e.exports.default=t.default})(wM,wM.exports);var Nge=wM.exports,xM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Ht);function r(a){return a&&a.__esModule?a:{default:a}}function i(a,s){return(0,n.default)(a),parseInt(a,s||10)}e.exports=t.default,e.exports.default=t.default})(xM,xM.exports);var hrt=xM.exports,TM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Ht);function r(a){return a&&a.__esModule?a:{default:a}}function i(a,s){return(0,n.default)(a),s?a==="1"||/^true$/i.test(a):a!=="0"&&!/^false$/i.test(a)&&a!==""}e.exports=t.default,e.exports.default=t.default})(TM,TM.exports);var prt=TM.exports,kM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Ht);function r(a){return a&&a.__esModule?a:{default:a}}function i(a,s){return(0,n.default)(a),a===s}e.exports=t.default,e.exports.default=t.default})(kM,kM.exports);var mrt=kM.exports,AM={exports:{}},_M={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function n(i){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},n(i)}function r(i){return n(i)==="object"&&i!==null?typeof i.toString=="function"?i=i.toString():i="[object Object]":(i===null||typeof i>"u"||isNaN(i)&&!i.length)&&(i=""),String(i)}e.exports=t.default,e.exports.default=t.default})(_M,_M.exports);var Dge=_M.exports,CM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;for(var a in i)typeof r[a]>"u"&&(r[a]=i[a]);return r}e.exports=t.default,e.exports.default=t.default})(CM,CM.exports);var dl=CM.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=a(Ht),r=a(Dge),i=a(dl);function a(l){return l&&l.__esModule?l:{default:l}}var s={ignoreCase:!1,minOccurrences:1};function o(l,u,d){return(0,n.default)(l),d=(0,i.default)(d,s),d.ignoreCase?l.toLowerCase().split((0,r.default)(u).toLowerCase()).length>d.minOccurrences:l.split((0,r.default)(u)).length>d.minOccurrences}e.exports=t.default,e.exports.default=t.default})(AM,AM.exports);var grt=AM.exports,RM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Ht);function r(a){return a&&a.__esModule?a:{default:a}}function i(a,s,o){return(0,n.default)(a),Object.prototype.toString.call(s)!=="[object RegExp]"&&(s=new RegExp(s,o)),!!a.match(s)}e.exports=t.default,e.exports.default=t.default})(RM,RM.exports);var brt=RM.exports,IM={exports:{}},NM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ht);function r(s){return s&&s.__esModule?s:{default:s}}function i(s){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},i(s)}function a(s,o){(0,n.default)(s);var l,u;i(o)==="object"?(l=o.min||0,u=o.max):(l=arguments[1],u=arguments[2]);var d=encodeURI(s).split(/%..|./).length-1;return d>=l&&(typeof u>"u"||d<=u)}e.exports=t.default,e.exports.default=t.default})(NM,NM.exports);var Pge=NM.exports,DM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=i(Ht),r=i(dl);function i(o){return o&&o.__esModule?o:{default:o}}var a={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};function s(o,l){(0,n.default)(o),l=(0,r.default)(l,a),l.allow_trailing_dot&&o[o.length-1]==="."&&(o=o.substring(0,o.length-1)),l.allow_wildcard===!0&&o.indexOf("*.")===0&&(o=o.substring(2));var u=o.split("."),d=u[u.length-1];return l.require_tld&&(u.length<2||!l.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(d)||/\s/.test(d))||!l.allow_numeric_tld&&/^\d+$/.test(d)?!1:u.every(function(f){return!(f.length>63&&!l.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(f)||/[\uff01-\uff5e]/.test(f)||/^-|-$/.test(f)||!l.allow_underscores&&/_/.test(f))})}e.exports=t.default,e.exports.default=t.default})(DM,DM.exports);var SH=DM.exports,PM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=r(Ht);function r(d){return d&&d.__esModule?d:{default:d}}var i="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",a="(".concat(i,"[.]){3}").concat(i),s=new RegExp("^".concat(a,"$")),o="(?:[0-9a-fA-F]{1,4})",l=new RegExp("^("+"(?:".concat(o,":){7}(?:").concat(o,"|:)|")+"(?:".concat(o,":){6}(?:").concat(a,"|:").concat(o,"|:)|")+"(?:".concat(o,":){5}(?::").concat(a,"|(:").concat(o,"){1,2}|:)|")+"(?:".concat(o,":){4}(?:(:").concat(o,"){0,1}:").concat(a,"|(:").concat(o,"){1,3}|:)|")+"(?:".concat(o,":){3}(?:(:").concat(o,"){0,2}:").concat(a,"|(:").concat(o,"){1,4}|:)|")+"(?:".concat(o,":){2}(?:(:").concat(o,"){0,3}:").concat(a,"|(:").concat(o,"){1,5}|:)|")+"(?:".concat(o,":){1}(?:(:").concat(o,"){0,4}:").concat(a,"|(:").concat(o,"){1,6}|:)|")+"(?::((?::".concat(o,"){0,5}:").concat(a,"|(?::").concat(o,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,n.default)(d),f=String(f),f?f==="4"?s.test(d):f==="6"?l.test(d):!1:u(d,4)||u(d,6)}e.exports=t.default,e.exports.default=t.default})(PM,PM.exports);var pI=PM.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=w;var n=o(Ht),r=o(Pge),i=o(SH),a=o(pI),s=o(dl);function o(x){return x&&x.__esModule?x:{default:x}}var l={allow_display_name:!1,allow_underscores:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},u=/^([^\x00-\x1F\x7F-\x9F\cX]+)]/.test(k);if(_){if(k===x)return!1;var C=k.split('"').length===k.split('\\"').length;if(!C)return!1}return!0}function w(x,k){if((0,n.default)(x),k=(0,s.default)(k,l),k.require_display_name||k.allow_display_name){var _=x.match(u);if(_){var C=_[1];if(x=x.replace(C,"").replace(/(^<|>$)/g,""),C.endsWith(" ")&&(C=C.slice(0,-1)),!E(C))return!1}else if(k.require_display_name)return!1}if(!k.ignore_max_length&&x.length>S)return!1;var R=x.split("@"),N=R.pop(),M=N.toLowerCase();if(k.host_blacklist.includes(M)||k.host_whitelist.length>0&&!k.host_whitelist.includes(M))return!1;var U=R.join("@");if(k.domain_specific_validation&&(M==="gmail.com"||M==="googlemail.com")){U=U.toLowerCase();var F=U.split("+")[0];if(!(0,r.default)(F.replace(/\./g,""),{min:6,max:30}))return!1;for(var G=F.split("."),V=0;Vx.length)&&(k=x.length);for(var _=0,C=new Array(k);_]/.test(x)||x.indexOf("mailto:")===0||(k=(0,a.default)(k,g),k.validate_length&&x.length>=2083)||!k.allow_fragments&&x.includes("#")||!k.allow_query_components&&(x.includes("?")||x.includes("&")))return!1;var _,C,R,N,M,U,F,G;if(F=x.split("#"),x=F.shift(),F=x.split("?"),x=F.shift(),F=x.split("://"),F.length>1){if(_=F.shift().toLowerCase(),k.require_valid_protocol&&k.protocols.indexOf(_)===-1)return!1}else{if(k.require_protocol)return!1;if(x.slice(0,2)==="//"){if(!k.allow_protocol_relative_urls)return!1;F[0]=x.slice(2)}}if(x=F.join("://"),x==="")return!1;if(F=x.split("/"),x=F.shift(),x===""&&!k.require_host)return!0;if(F=x.split("@"),F.length>1){if(k.disallow_auth||F[0]===""||(C=F.shift(),C.indexOf(":")>=0&&C.split(":").length>2))return!1;var V=C.split(":"),ie=o(V,2),ne=ie[0],q=ie[1];if(ne===""&&q==="")return!1}N=F.join("@"),U=null,G=null;var re=N.match(b);if(re?(R="",G=re[1],U=re[2]||null):(F=N.split(":"),R=F.shift(),F.length&&(U=F.join(":"))),U!==null&&U.length>0){if(M=parseInt(U,10),!/^[0-9]+$/.test(U)||M<=0||M>65535)return!1}else if(k.require_port)return!1;return k.host_whitelist?E(R,k.host_whitelist):R===""&&!k.require_host?!0:!(!(0,i.default)(R)&&!(0,r.default)(R,k)&&(!G||!(0,i.default)(G,6))||(R=R||G,k.host_blacklist&&E(R,k.host_blacklist)))}e.exports=t.default,e.exports.default=t.default})(MM,MM.exports);var yrt=MM.exports,LM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var n=r(Ht);function r(f){return f&&f.__esModule?f:{default:f}}var i=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){4}([0-9a-fA-F]{2})$/,a=/^([0-9a-fA-F]){12}$/,s=/^([0-9a-fA-F]{4}\.){2}([0-9a-fA-F]{4})$/,o=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){6}([0-9a-fA-F]{2})$/,l=/^([0-9a-fA-F]){16}$/,u=/^([0-9a-fA-F]{4}\.){3}([0-9a-fA-F]{4})$/;function d(f,p){return(0,n.default)(f),p!=null&&p.eui&&(p.eui=String(p.eui)),p!=null&&p.no_colons||p!=null&&p.no_separators?p.eui==="48"?a.test(f):p.eui==="64"?l.test(f):a.test(f)||l.test(f):(p==null?void 0:p.eui)==="48"?i.test(f)||s.test(f):(p==null?void 0:p.eui)==="64"?o.test(f)||u.test(f):d(f,{eui:"48"})||d(f,{eui:"64"})}e.exports=t.default,e.exports.default=t.default})(LM,LM.exports);var vrt=LM.exports,$M={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=i(Ht),r=i(pI);function i(u){return u&&u.__esModule?u:{default:u}}var a=/^\d{1,3}$/,s=32,o=128;function l(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(0,n.default)(u);var f=u.split("/");if(f.length!==2||!a.test(f[1])||f[1].length>1&&f[1].startsWith("0"))return!1;var p=(0,r.default)(f[0],d);if(!p)return!1;var g=null;switch(String(d)){case"4":g=s;break;case"6":g=o;break;default:g=(0,r.default)(f[0],"6")?o:s}return f[1]<=g&&f[1]>=0}e.exports=t.default,e.exports.default=t.default})($M,$M.exports);var Ort=$M.exports,FM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=b;var n=r(dl);function r(S){return S&&S.__esModule?S:{default:S}}function i(S,E){return o(S)||s(S,E)||u(S,E)||a()}function a(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s(S,E){var w=S==null?null:typeof Symbol<"u"&&S[Symbol.iterator]||S["@@iterator"];if(w!=null){var x,k,_,C,R=[],N=!0,M=!1;try{if(_=(w=w.call(S)).next,E!==0)for(;!(N=(x=_.call(w)).done)&&(R.push(x.value),R.length!==E);N=!0);}catch(U){M=!0,k=U}finally{try{if(!N&&w.return!=null&&(C=w.return(),Object(C)!==C))return}finally{if(M)throw k}}return R}}function o(S){if(Array.isArray(S))return S}function l(S,E){var w=typeof Symbol<"u"&&S[Symbol.iterator]||S["@@iterator"];if(!w){if(Array.isArray(S)||(w=u(S))||E){w&&(S=w);var x=0,k=function(){};return{s:k,n:function(){return x>=S.length?{done:!0}:{done:!1,value:S[x++]}},e:function(M){throw M},f:k}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var _=!0,C=!1,R;return{s:function(){w=w.call(S)},n:function(){var M=w.next();return _=M.done,M},e:function(M){C=!0,R=M},f:function(){try{!_&&w.return!=null&&w.return()}finally{if(C)throw R}}}}function u(S,E){if(S){if(typeof S=="string")return d(S,E);var w=Object.prototype.toString.call(S).slice(8,-1);if(w==="Object"&&S.constructor&&(w=S.constructor.name),w==="Map"||w==="Set")return Array.from(S);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return d(S,E)}}function d(S,E){(E==null||E>S.length)&&(E=S.length);for(var w=0,x=new Array(E);w1&&arguments[1]!==void 0?arguments[1]:i;return(0,n.default)(l),u.loose?s.includes(l.toLowerCase()):a.includes(l)}e.exports=t.default,e.exports.default=t.default})(UM,UM.exports);var Ert=UM.exports,zM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=x;var n=r(Ht);function r(k){return k&&k.__esModule?k:{default:k}}var i="([A-Za-z]{3}(-[A-Za-z]{3}){0,2})",a="(([a-zA-Z]{2,3}(-".concat(i,")?)|([a-zA-Z]{5,8}))"),s="([A-Za-z]{4})",o="([A-Za-z]{2}|\\d{3})",l="([A-Za-z0-9]{5,8}|(\\d[A-Z-a-z0-9]{3}))",u="(\\d|[A-W]|[Y-Z]|[a-w]|[y-z])",d="(".concat(u,"(-[A-Za-z0-9]{2,8})+)"),f="(x(-[A-Za-z0-9]{1,8})+)",p="((en-GB-oed)|(i-ami)|(i-bnn)|(i-default)|(i-enochian)|(i-hak)|(i-klingon)|(i-lux)|(i-mingo)|(i-navajo)|(i-pwn)|(i-tao)|(i-tay)|(i-tsu)|(sgn-BE-FR)|(sgn-BE-NL)|(sgn-CH-DE))",g="((art-lojban)|(cel-gaulish)|(no-bok)|(no-nyn)|(zh-guoyu)|(zh-hakka)|(zh-min)|(zh-min-nan)|(zh-xiang))",b="(".concat(p,"|").concat(g,")"),S="(-|_)",E="".concat(a,"(").concat(S).concat(s,")?(").concat(S).concat(o,")?(").concat(S).concat(l,")*(").concat(S).concat(d,")*(").concat(S).concat(f,")?"),w=new RegExp("(^".concat(f,"$)|(^").concat(b,"$)|(^").concat(E,"$)"));function x(k){return(0,n.default)(k),w.test(k)}e.exports=t.default,e.exports.default=t.default})(zM,zM.exports);var wrt=zM.exports,HM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ht);function r(s){return s&&s.__esModule?s:{default:s}}var i=/^(?!(1[3-9])|(20)|(3[3-9])|(4[0-9])|(5[0-9])|(60)|(7[3-9])|(8[1-9])|(9[0-2])|(9[3-9]))[0-9]{9}$/;function a(s){if((0,n.default)(s),!i.test(s))return!1;for(var o=0,l=0;l1&&arguments[1]!==void 0?arguments[1]:"en-US",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};(0,Trt.default)(e);var r=e,i=n.ignore;if(i)if(i instanceof RegExp)r=r.replace(i,"");else if(typeof i=="string")r=r.replace(new RegExp("[".concat(i.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"");else throw new Error("ignore should be instance of a String or RegExp");if(t in jM.alpha)return jM.alpha[t].test(r);throw new Error("Invalid locale '".concat(t,"'"))}oT.locales=Object.keys(jM.alpha);var lT={};Object.defineProperty(lT,"__esModule",{value:!0});lT.default=Rrt;lT.locales=void 0;var _rt=Crt(Ht),WM=ea;function Crt(e){return e&&e.__esModule?e:{default:e}}function Rrt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"en-US",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};(0,_rt.default)(e);var r=e,i=n.ignore;if(i)if(i instanceof RegExp)r=r.replace(i,"");else if(typeof i=="string")r=r.replace(new RegExp("[".concat(i.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"");else throw new Error("ignore should be instance of a String or RegExp");if(t in WM.alphanumeric)return WM.alphanumeric[t].test(r);throw new Error("Invalid locale '".concat(t,"'"))}lT.locales=Object.keys(WM.alphanumeric);var QM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=i(Ht),r=ea;function i(o){return o&&o.__esModule?o:{default:o}}var a=/^[0-9]+$/;function s(o,l){return(0,n.default)(o),l&&l.no_symbols?a.test(o):new RegExp("^[+-]?([0-9]*[".concat((l||{}).locale?r.decimal[l.locale]:".","])?[0-9]+$")).test(o)}e.exports=t.default,e.exports.default=t.default})(QM,QM.exports);var Irt=QM.exports,GM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ht);function r(s){return s&&s.__esModule?s:{default:s}}var i={AM:/^[A-Z]{2}\d{7}$/,AR:/^[A-Z]{3}\d{6}$/,AT:/^[A-Z]\d{7}$/,AU:/^[A-Z]\d{7}$/,AZ:/^[A-Z]{1}\d{8}$/,BE:/^[A-Z]{2}\d{6}$/,BG:/^\d{9}$/,BR:/^[A-Z]{2}\d{6}$/,BY:/^[A-Z]{2}\d{7}$/,CA:/^[A-Z]{2}\d{6}$/,CH:/^[A-Z]\d{7}$/,CN:/^G\d{8}$|^E(?![IO])[A-Z0-9]\d{7}$/,CY:/^[A-Z](\d{6}|\d{8})$/,CZ:/^\d{8}$/,DE:/^[CFGHJKLMNPRTVWXYZ0-9]{9}$/,DK:/^\d{9}$/,DZ:/^\d{9}$/,EE:/^([A-Z]\d{7}|[A-Z]{2}\d{7})$/,ES:/^[A-Z0-9]{2}([A-Z0-9]?)\d{6}$/,FI:/^[A-Z]{2}\d{7}$/,FR:/^\d{2}[A-Z]{2}\d{5}$/,GB:/^\d{9}$/,GR:/^[A-Z]{2}\d{7}$/,HR:/^\d{9}$/,HU:/^[A-Z]{2}(\d{6}|\d{7})$/,IE:/^[A-Z0-9]{2}\d{7}$/,IN:/^[A-Z]{1}-?\d{7}$/,ID:/^[A-C]\d{7}$/,IR:/^[A-Z]\d{8}$/,IS:/^(A)\d{7}$/,IT:/^[A-Z0-9]{2}\d{7}$/,JM:/^[Aa]\d{7}$/,JP:/^[A-Z]{2}\d{7}$/,KR:/^[MS]\d{8}$/,KZ:/^[a-zA-Z]\d{7}$/,LI:/^[a-zA-Z]\d{5}$/,LT:/^[A-Z0-9]{8}$/,LU:/^[A-Z0-9]{8}$/,LV:/^[A-Z0-9]{2}\d{7}$/,LY:/^[A-Z0-9]{8}$/,MT:/^\d{7}$/,MZ:/^([A-Z]{2}\d{7})|(\d{2}[A-Z]{2}\d{5})$/,MY:/^[AHK]\d{8}$/,MX:/^\d{10,11}$/,NL:/^[A-Z]{2}[A-Z0-9]{6}\d$/,NZ:/^([Ll]([Aa]|[Dd]|[Ff]|[Hh])|[Ee]([Aa]|[Pp])|[Nn])\d{6}$/,PH:/^([A-Z](\d{6}|\d{7}[A-Z]))|([A-Z]{2}(\d{6}|\d{7}))$/,PK:/^[A-Z]{2}\d{7}$/,PL:/^[A-Z]{2}\d{7}$/,PT:/^[A-Z]\d{6}$/,RO:/^\d{8,9}$/,RU:/^\d{9}$/,SE:/^\d{8}$/,SL:/^(P)[A-Z]\d{7}$/,SK:/^[0-9A-Z]\d{7}$/,TH:/^[A-Z]{1,2}\d{6,7}$/,TR:/^[A-Z]\d{8}$/,UA:/^[A-Z]{2}\d{6}$/,US:/^\d{9}$/,ZA:/^[TAMD]\d{8}$/};function a(s,o){(0,n.default)(s);var l=s.replace(/\s/g,"").toUpperCase();return o.toUpperCase()in i&&i[o].test(l)}e.exports=t.default,e.exports.default=t.default})(GM,GM.exports);var Nrt=GM.exports,VM={exports:{}},qM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=r(Ht);function r(o){return o&&o.__esModule?o:{default:o}}var i=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,a=/^[-+]?[0-9]+$/;function s(o,l){(0,n.default)(o),l=l||{};var u=l.allow_leading_zeroes===!1?i:a,d=!l.hasOwnProperty("min")||o>=l.min,f=!l.hasOwnProperty("max")||o<=l.max,p=!l.hasOwnProperty("lt")||ol.gt;return u.test(o)&&d&&f&&p&&g}e.exports=t.default,e.exports.default=t.default})(qM,qM.exports);var EH=qM.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(EH);function r(a){return a&&a.__esModule?a:{default:a}}function i(a){return(0,n.default)(a,{allow_leading_zeroes:!1,min:0,max:65535})}e.exports=t.default,e.exports.default=t.default})(VM,VM.exports);var Drt=VM.exports,YM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Ht);function r(a){return a&&a.__esModule?a:{default:a}}function i(a){return(0,n.default)(a),a===a.toLowerCase()}e.exports=t.default,e.exports.default=t.default})(YM,YM.exports);var Prt=YM.exports,ZM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Ht);function r(a){return a&&a.__esModule?a:{default:a}}function i(a){return(0,n.default)(a),a===a.toUpperCase()}e.exports=t.default,e.exports.default=t.default})(ZM,ZM.exports);var Mrt=ZM.exports,XM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=r(Ht);function r(o){return o&&o.__esModule?o:{default:o}}var i=/^[0-9]{15}$/,a=/^\d{2}-\d{6}-\d{6}-\d{1}$/;function s(o,l){(0,n.default)(o),l=l||{};var u=i;if(l.allow_hyphens&&(u=a),!u.test(o))return!1;o=o.replace(/-/g,"");for(var d=0,f=2,p=14,g=0;g=10?d+=S%10+1:d+=S,f===1?f+=1:f-=1}var E=(10-d%10)%10;return E===parseInt(o.substring(14,15),10)}e.exports=t.default,e.exports.default=t.default})(XM,XM.exports);var Lrt=XM.exports,KM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ht);function r(s){return s&&s.__esModule?s:{default:s}}var i=/^[\x00-\x7F]+$/;function a(s){return(0,n.default)(s),i.test(s)}e.exports=t.default,e.exports.default=t.default})(KM,KM.exports);var $rt=KM.exports,zO={};Object.defineProperty(zO,"__esModule",{value:!0});zO.default=zrt;zO.fullWidth=void 0;var Frt=Brt(Ht);function Brt(e){return e&&e.__esModule?e:{default:e}}var Urt=zO.fullWidth=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;function zrt(e){return(0,Frt.default)(e),Urt.test(e)}var HO={};Object.defineProperty(HO,"__esModule",{value:!0});HO.default=Qrt;HO.halfWidth=void 0;var Hrt=jrt(Ht);function jrt(e){return e&&e.__esModule?e:{default:e}}var Wrt=HO.halfWidth=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;function Qrt(e){return(0,Hrt.default)(e),Wrt.test(e)}var JM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=a(Ht),r=zO,i=HO;function a(o){return o&&o.__esModule?o:{default:o}}function s(o){return(0,n.default)(o),r.fullWidth.test(o)&&i.halfWidth.test(o)}e.exports=t.default,e.exports.default=t.default})(JM,JM.exports);var Grt=JM.exports,eL={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ht);function r(s){return s&&s.__esModule?s:{default:s}}var i=/[^\x00-\x7F]/;function a(s){return(0,n.default)(s),i.test(s)}e.exports=t.default,e.exports.default=t.default})(eL,eL.exports);var Vrt=eL.exports,tL={exports:{}},nL={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,i){var a=r.join("");return new RegExp(a,i)}e.exports=t.default,e.exports.default=t.default})(nL,nL.exports);var qrt=nL.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=i(Ht),r=i(qrt);function i(o){return o&&o.__esModule?o:{default:o}}var a=(0,r.default)(["^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)","(?:-((?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*))*))","?(?:\\+([0-9a-z-]+(?:\\.[0-9a-z-]+)*))?$"],"i");function s(o){return(0,n.default)(o),a.test(o)}e.exports=t.default,e.exports.default=t.default})(tL,tL.exports);var Yrt=tL.exports,rL={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ht);function r(s){return s&&s.__esModule?s:{default:s}}var i=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;function a(s){return(0,n.default)(s),i.test(s)}e.exports=t.default,e.exports.default=t.default})(rL,rL.exports);var Zrt=rL.exports,iL={exports:{}},aL={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(i,a){return i.some(function(s){return a===s})};t.default=n,e.exports=t.default,e.exports.default=t.default})(aL,aL.exports);var Xrt=aL.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var n=s(dl),r=s(Ht),i=s(Xrt),a=ea;function s(f){return f&&f.__esModule?f:{default:f}}function o(f){var p=new RegExp("^[-+]?([0-9]+)?(\\".concat(a.decimal[f.locale],"[0-9]{").concat(f.decimal_digits,"})").concat(f.force_decimal?"":"?","$"));return p}var l={force_decimal:!1,decimal_digits:"1,",locale:"en-US"},u=["","-","+"];function d(f,p){if((0,r.default)(f),p=(0,n.default)(p,l),p.locale in a.decimal)return!(0,i.default)(u,f.replace(/ /g,""))&&o(p).test(f);throw new Error("Invalid locale '".concat(p.locale,"'"))}e.exports=t.default,e.exports.default=t.default})(iL,iL.exports);var Krt=iL.exports,sL={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ht);function r(s){return s&&s.__esModule?s:{default:s}}var i=/^(0x|0h)?[0-9A-F]+$/i;function a(s){return(0,n.default)(s),i.test(s)}e.exports=t.default,e.exports.default=t.default})(sL,sL.exports);var $ge=sL.exports,oL={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ht);function r(s){return s&&s.__esModule?s:{default:s}}var i=/^(0o)?[0-7]+$/i;function a(s){return(0,n.default)(s),i.test(s)}e.exports=t.default,e.exports.default=t.default})(oL,oL.exports);var Jrt=oL.exports,lL={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(Ht),r=i(Nge);function i(s){return s&&s.__esModule?s:{default:s}}function a(s,o){return(0,n.default)(s),(0,r.default)(s)%parseInt(o,10)===0}e.exports=t.default,e.exports.default=t.default})(lL,lL.exports);var eit=lL.exports,uL={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ht);function r(s){return s&&s.__esModule?s:{default:s}}var i=/^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;function a(s){return(0,n.default)(s),i.test(s)}e.exports=t.default,e.exports.default=t.default})(uL,uL.exports);var tit=uL.exports,cL={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=r(Ht);function r(u){return u&&u.__esModule?u:{default:u}}var i=/^rgb\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){2}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\)$/,a=/^rgba\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/,s=/^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\)$/,o=/^rgba\((([0-9]%|[1-9][0-9]%|100%),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/;function l(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return(0,n.default)(u),d?i.test(u)||a.test(u)||s.test(u)||o.test(u):i.test(u)||a.test(u)}e.exports=t.default,e.exports.default=t.default})(cL,cL.exports);var nit=cL.exports,dL={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=r(Ht);function r(o){return o&&o.__esModule?o:{default:o}}var i=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(,(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}(,((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?))?\)$/i,a=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(\s(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}\s?(\/\s((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?)\s?)?\)$/i;function s(o){(0,n.default)(o);var l=o.replace(/\s+/g," ").replace(/\s?(hsla?\(|\)|,)\s?/ig,"$1");return l.indexOf(",")!==-1?i.test(l):a.test(l)}e.exports=t.default,e.exports.default=t.default})(dL,dL.exports);var rit=dL.exports,fL={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ht);function r(s){return s&&s.__esModule?s:{default:s}}var i=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;function a(s){return(0,n.default)(s),i.test(s)}e.exports=t.default,e.exports.default=t.default})(fL,fL.exports);var iit=fL.exports,uT={};Object.defineProperty(uT,"__esModule",{value:!0});uT.default=cit;uT.locales=void 0;var ait=sit(Ht);function sit(e){return e&&e.__esModule?e:{default:e}}var HC={AD:/^(AD[0-9]{2})\d{8}[A-Z0-9]{12}$/,AE:/^(AE[0-9]{2})\d{3}\d{16}$/,AL:/^(AL[0-9]{2})\d{8}[A-Z0-9]{16}$/,AT:/^(AT[0-9]{2})\d{16}$/,AZ:/^(AZ[0-9]{2})[A-Z0-9]{4}\d{20}$/,BA:/^(BA[0-9]{2})\d{16}$/,BE:/^(BE[0-9]{2})\d{12}$/,BG:/^(BG[0-9]{2})[A-Z]{4}\d{6}[A-Z0-9]{8}$/,BH:/^(BH[0-9]{2})[A-Z]{4}[A-Z0-9]{14}$/,BR:/^(BR[0-9]{2})\d{23}[A-Z]{1}[A-Z0-9]{1}$/,BY:/^(BY[0-9]{2})[A-Z0-9]{4}\d{20}$/,CH:/^(CH[0-9]{2})\d{5}[A-Z0-9]{12}$/,CR:/^(CR[0-9]{2})\d{18}$/,CY:/^(CY[0-9]{2})\d{8}[A-Z0-9]{16}$/,CZ:/^(CZ[0-9]{2})\d{20}$/,DE:/^(DE[0-9]{2})\d{18}$/,DK:/^(DK[0-9]{2})\d{14}$/,DO:/^(DO[0-9]{2})[A-Z]{4}\d{20}$/,DZ:/^(DZ\d{24})$/,EE:/^(EE[0-9]{2})\d{16}$/,EG:/^(EG[0-9]{2})\d{25}$/,ES:/^(ES[0-9]{2})\d{20}$/,FI:/^(FI[0-9]{2})\d{14}$/,FO:/^(FO[0-9]{2})\d{14}$/,FR:/^(FR[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,GB:/^(GB[0-9]{2})[A-Z]{4}\d{14}$/,GE:/^(GE[0-9]{2})[A-Z0-9]{2}\d{16}$/,GI:/^(GI[0-9]{2})[A-Z]{4}[A-Z0-9]{15}$/,GL:/^(GL[0-9]{2})\d{14}$/,GR:/^(GR[0-9]{2})\d{7}[A-Z0-9]{16}$/,GT:/^(GT[0-9]{2})[A-Z0-9]{4}[A-Z0-9]{20}$/,HR:/^(HR[0-9]{2})\d{17}$/,HU:/^(HU[0-9]{2})\d{24}$/,IE:/^(IE[0-9]{2})[A-Z0-9]{4}\d{14}$/,IL:/^(IL[0-9]{2})\d{19}$/,IQ:/^(IQ[0-9]{2})[A-Z]{4}\d{15}$/,IR:/^(IR[0-9]{2})0\d{2}0\d{18}$/,IS:/^(IS[0-9]{2})\d{22}$/,IT:/^(IT[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,JO:/^(JO[0-9]{2})[A-Z]{4}\d{22}$/,KW:/^(KW[0-9]{2})[A-Z]{4}[A-Z0-9]{22}$/,KZ:/^(KZ[0-9]{2})\d{3}[A-Z0-9]{13}$/,LB:/^(LB[0-9]{2})\d{4}[A-Z0-9]{20}$/,LC:/^(LC[0-9]{2})[A-Z]{4}[A-Z0-9]{24}$/,LI:/^(LI[0-9]{2})\d{5}[A-Z0-9]{12}$/,LT:/^(LT[0-9]{2})\d{16}$/,LU:/^(LU[0-9]{2})\d{3}[A-Z0-9]{13}$/,LV:/^(LV[0-9]{2})[A-Z]{4}[A-Z0-9]{13}$/,MA:/^(MA[0-9]{26})$/,MC:/^(MC[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,MD:/^(MD[0-9]{2})[A-Z0-9]{20}$/,ME:/^(ME[0-9]{2})\d{18}$/,MK:/^(MK[0-9]{2})\d{3}[A-Z0-9]{10}\d{2}$/,MR:/^(MR[0-9]{2})\d{23}$/,MT:/^(MT[0-9]{2})[A-Z]{4}\d{5}[A-Z0-9]{18}$/,MU:/^(MU[0-9]{2})[A-Z]{4}\d{19}[A-Z]{3}$/,MZ:/^(MZ[0-9]{2})\d{21}$/,NL:/^(NL[0-9]{2})[A-Z]{4}\d{10}$/,NO:/^(NO[0-9]{2})\d{11}$/,PK:/^(PK[0-9]{2})[A-Z0-9]{4}\d{16}$/,PL:/^(PL[0-9]{2})\d{24}$/,PS:/^(PS[0-9]{2})[A-Z0-9]{4}\d{21}$/,PT:/^(PT[0-9]{2})\d{21}$/,QA:/^(QA[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/,RO:/^(RO[0-9]{2})[A-Z]{4}[A-Z0-9]{16}$/,RS:/^(RS[0-9]{2})\d{18}$/,SA:/^(SA[0-9]{2})\d{2}[A-Z0-9]{18}$/,SC:/^(SC[0-9]{2})[A-Z]{4}\d{20}[A-Z]{3}$/,SE:/^(SE[0-9]{2})\d{20}$/,SI:/^(SI[0-9]{2})\d{15}$/,SK:/^(SK[0-9]{2})\d{20}$/,SM:/^(SM[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,SV:/^(SV[0-9]{2})[A-Z0-9]{4}\d{20}$/,TL:/^(TL[0-9]{2})\d{19}$/,TN:/^(TN[0-9]{2})\d{20}$/,TR:/^(TR[0-9]{2})\d{5}[A-Z0-9]{17}$/,UA:/^(UA[0-9]{2})\d{6}[A-Z0-9]{19}$/,VA:/^(VA[0-9]{2})\d{18}$/,VG:/^(VG[0-9]{2})[A-Z0-9]{4}\d{16}$/,XK:/^(XK[0-9]{2})\d{16}$/};function oit(e){var t=e.filter(function(n){return!(n in HC)});return!(t.length>0)}function lit(e,t){var n=e.replace(/[\s\-]+/gi,"").toUpperCase(),r=n.slice(0,2).toUpperCase(),i=r in HC;if(t.whitelist){if(!oit(t.whitelist))return!1;var a=t.whitelist.includes(r);if(!a)return!1}if(t.blacklist){var s=t.blacklist.includes(r);if(s)return!1}return i&&HC[r].test(n)}function uit(e){var t=e.replace(/[^A-Z0-9]+/gi,"").toUpperCase(),n=t.slice(4)+t.slice(0,4),r=n.replace(/[A-Z]/g,function(a){return a.charCodeAt(0)-55}),i=r.match(/\d{1,7}/g).reduce(function(a,s){return Number(a+s)%97},"");return i===1}function cit(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,ait.default)(e),lit(e,t)&&uit(e)}uT.locales=Object.keys(HC);var hL={exports:{}},jO={};Object.defineProperty(jO,"__esModule",{value:!0});jO.CountryCodes=void 0;jO.default=hit;var dit=fit(Ht);function fit(e){return e&&e.__esModule?e:{default:e}}var Fge=new Set(["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]);function hit(e){return(0,dit.default)(e),Fge.has(e.toUpperCase())}jO.CountryCodes=Fge;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=i(Ht),r=jO;function i(o){return o&&o.__esModule?o:{default:o}}var a=/^[A-Za-z]{6}[A-Za-z0-9]{2}([A-Za-z0-9]{3})?$/;function s(o){(0,n.default)(o);var l=o.slice(4,6).toUpperCase();return!r.CountryCodes.has(l)&&l!=="XK"?!1:a.test(o)}e.exports=t.default,e.exports.default=t.default})(hL,hL.exports);var pit=hL.exports,pL={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ht);function r(s){return s&&s.__esModule?s:{default:s}}var i=/^[a-f0-9]{32}$/;function a(s){return(0,n.default)(s),i.test(s)}e.exports=t.default,e.exports.default=t.default})(pL,pL.exports);var mit=pL.exports,mL={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ht);function r(s){return s&&s.__esModule?s:{default:s}}var i={md5:32,md4:32,sha1:40,sha256:64,sha384:96,sha512:128,ripemd128:32,ripemd160:40,tiger128:32,tiger160:40,tiger192:48,crc32:8,crc32b:8};function a(s,o){(0,n.default)(s);var l=new RegExp("^[a-fA-F0-9]{".concat(i[o],"}$"));return l.test(s)}e.exports=t.default,e.exports.default=t.default})(mL,mL.exports);var git=mL.exports,gL={exports:{}},bL={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=i(Ht),r=i(dl);function i(u){return u&&u.__esModule?u:{default:u}}var a=/[^A-Z0-9+\/=]/i,s=/^[A-Z0-9_\-]*$/i,o={urlSafe:!1};function l(u,d){(0,n.default)(u),d=(0,r.default)(d,o);var f=u.length;if(d.urlSafe)return s.test(u);if(f%4!==0||a.test(u))return!1;var p=u.indexOf("=");return p===-1||p===f-1||p===f-2&&u[f-1]==="="}e.exports=t.default,e.exports.default=t.default})(bL,bL.exports);var Bge=bL.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(Ht),r=i(Bge);function i(s){return s&&s.__esModule?s:{default:s}}function a(s){(0,n.default)(s);var o=s.split("."),l=o.length;return l!==3?!1:o.reduce(function(u,d){return u&&(0,r.default)(d,{urlSafe:!0})},!0)}e.exports=t.default,e.exports.default=t.default})(gL,gL.exports);var bit=gL.exports,yL={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=i(Ht),r=i(dl);function i(l){return l&&l.__esModule?l:{default:l}}function a(l){"@babel/helpers - typeof";return a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},a(l)}var s={allow_primitives:!1};function o(l,u){(0,n.default)(l);try{u=(0,r.default)(u,s);var d=[];u.allow_primitives&&(d=[null,!1,!0]);var f=JSON.parse(l);return d.includes(f)||!!f&&a(f)==="object"}catch{}return!1}e.exports=t.default,e.exports.default=t.default})(yL,yL.exports);var yit=yL.exports,vL={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=i(Ht),r=i(dl);function i(o){return o&&o.__esModule?o:{default:o}}var a={ignore_whitespace:!1};function s(o,l){return(0,n.default)(o),l=(0,r.default)(l,a),(l.ignore_whitespace?o.trim().length:o.length)===0}e.exports=t.default,e.exports.default=t.default})(vL,vL.exports);var vit=vL.exports,OL={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ht);function r(s){return s&&s.__esModule?s:{default:s}}function i(s){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},i(s)}function a(s,o){(0,n.default)(s);var l,u;i(o)==="object"?(l=o.min||0,u=o.max):(l=arguments[1]||0,u=arguments[2]);var d=s.match(/(\uFE0F|\uFE0E)/g)||[],f=s.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],p=s.length-d.length-f.length;return p>=l&&(typeof u>"u"||p<=u)}e.exports=t.default,e.exports.default=t.default})(OL,OL.exports);var Oit=OL.exports,SL={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ht);function r(s){return s&&s.__esModule?s:{default:s}}var i={1:/^[0-9A-F]{8}-[0-9A-F]{4}-1[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,2:/^[0-9A-F]{8}-[0-9A-F]{4}-2[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,7:/^[0-9A-F]{8}-[0-9A-F]{4}-7[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i};function a(s,o){(0,n.default)(s);var l=i[[void 0,null].includes(o)?"all":o];return!!l&&l.test(s)}e.exports=t.default,e.exports.default=t.default})(SL,SL.exports);var Sit=SL.exports,EL={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(Ht),r=i($ge);function i(s){return s&&s.__esModule?s:{default:s}}function a(s){return(0,n.default)(s),(0,r.default)(s)&&s.length===24}e.exports=t.default,e.exports.default=t.default})(EL,EL.exports);var Eit=EL.exports,wL={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(OH);function r(a){return a&&a.__esModule?a:{default:a}}function i(a,s){var o=(s==null?void 0:s.comparisonDate)||s||Date().toString(),l=(0,n.default)(o),u=(0,n.default)(a);return!!(u&&l&&u>l)}e.exports=t.default,e.exports.default=t.default})(wL,wL.exports);var wit=wL.exports,xL={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(Ht),r=i(OH);function i(s){return s&&s.__esModule?s:{default:s}}function a(s){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:String(new Date);(0,n.default)(s);var l=(0,r.default)(o),u=(0,r.default)(s);return!!(u&&l&&u=0}else{if(a(l)==="object")return l.hasOwnProperty(o);if(l&&typeof l.indexOf=="function")return l.indexOf(o)>=0}return!1}e.exports=t.default,e.exports.default=t.default})(TL,TL.exports);var Tit=TL.exports,kL={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Ht);function r(a){return a&&a.__esModule?a:{default:a}}function i(a){(0,n.default)(a);for(var s=a.replace(/[- ]+/g,""),o=0,l,u,d,f=s.length-1;f>=0;f--)l=s.substring(f,f+1),u=parseInt(l,10),d?(u*=2,u>=10?o+=u%10+1:o+=u):o+=u,d=!d;return!!(o%10===0&&s)}e.exports=t.default,e.exports.default=t.default})(kL,kL.exports);var Uge=kL.exports,AL={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=i(Ht),r=i(Uge);function i(l){return l&&l.__esModule?l:{default:l}}var a={amex:/^3[47][0-9]{13}$/,dinersclub:/^3(?:0[0-5]|[68][0-9])[0-9]{11}$/,discover:/^6(?:011|5[0-9][0-9])[0-9]{12,15}$/,jcb:/^(?:2131|1800|35\d{3})\d{11}$/,mastercard:/^5[1-5][0-9]{2}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$/,unionpay:/^(6[27][0-9]{14}|^(81[0-9]{14,17}))$/,visa:/^(?:4[0-9]{12})(?:[0-9]{3,6})?$/},s=function(){var l=[];for(var u in a)a.hasOwnProperty(u)&&l.push(a[u]);return l}();function o(l){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,n.default)(l);var d=u.provider,f=l.replace(/[- ]+/g,"");if(d&&d.toLowerCase()in a){if(!a[d.toLowerCase()].test(f))return!1}else{if(d&&!(d.toLowerCase()in a))throw new Error("".concat(d," is not a valid credit card provider."));if(!s.some(function(p){return p.test(f)}))return!1}return(0,r.default)(l)}e.exports=t.default,e.exports.default=t.default})(AL,AL.exports);var kit=AL.exports,_L={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=i(Ht),r=i(EH);function i(o){return o&&o.__esModule?o:{default:o}}var a={PL:function(l){(0,n.default)(l);var u={1:1,2:3,3:7,4:9,5:1,6:3,7:7,8:9,9:1,10:3,11:0};if(l!=null&&l.length===11&&(0,r.default)(l,{allow_leading_zeroes:!0})){var d=l.split("").slice(0,-1),f=d.reduce(function(b,S,E){return b+Number(S)*u[E+1]},0),p=f%10,g=Number(l.charAt(l.length-1));if(p===0&&g===0||g===10-p)return!0}return!1},ES:function(l){(0,n.default)(l);var u=/^[0-9X-Z][0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]$/,d={X:0,Y:1,Z:2},f=["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"],p=l.trim().toUpperCase();if(!u.test(p))return!1;var g=p.slice(0,-1).replace(/[X,Y,Z]/g,function(b){return d[b]});return p.endsWith(f[g%23])},FI:function(l){if((0,n.default)(l),l.length!==11||!l.match(/^\d{6}[\-A\+]\d{3}[0-9ABCDEFHJKLMNPRSTUVWXY]{1}$/))return!1;var u="0123456789ABCDEFHJKLMNPRSTUVWXY",d=parseInt(l.slice(0,6),10)*1e3+parseInt(l.slice(7,10),10),f=d%31,p=u[f];return p===l.slice(10,11)},IN:function(l){var u=/^[1-9]\d{3}\s?\d{4}\s?\d{4}$/,d=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],f=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],p=l.trim();if(!u.test(p))return!1;var g=0,b=p.replace(/\s/g,"").split("").map(Number).reverse();return b.forEach(function(S,E){g=d[g][f[E%8][S]]}),g===0},IR:function(l){if(!l.match(/^\d{10}$/)||(l="0000".concat(l).slice(l.length-6),parseInt(l.slice(3,9),10)===0))return!1;for(var u=parseInt(l.slice(9,10),10),d=0,f=0;f<9;f++)d+=parseInt(l.slice(f,f+1),10)*(10-f);return d%=11,d<2&&u===d||d>=2&&u===11-d},IT:function(l){return l.length!==9||l==="CA00000AA"?!1:l.search(/C[A-Z]\d{5}[A-Z]{2}/i)>-1},NO:function(l){var u=l.trim();if(isNaN(Number(u))||u.length!==11||u==="00000000000")return!1;var d=u.split("").map(Number),f=(11-(3*d[0]+7*d[1]+6*d[2]+1*d[3]+8*d[4]+9*d[5]+4*d[6]+5*d[7]+2*d[8])%11)%11,p=(11-(5*d[0]+4*d[1]+3*d[2]+2*d[3]+7*d[4]+6*d[5]+5*d[6]+4*d[7]+3*d[8]+2*f)%11)%11;return!(f!==d[9]||p!==d[10])},TH:function(l){if(!l.match(/^[1-8]\d{12}$/))return!1;for(var u=0,d=0;d<12;d++)u+=parseInt(l[d],10)*(13-d);return l[12]===((11-u%11)%10).toString()},LK:function(l){var u=/^[1-9]\d{8}[vx]$/i,d=/^[1-9]\d{11}$/i;return l.length===10&&u.test(l)?!0:!!(l.length===12&&d.test(l))},"he-IL":function(l){var u=/^\d{9}$/,d=l.trim();if(!u.test(d))return!1;for(var f=d,p=0,g,b=0;b9?g-9:g;return p%10===0},"ar-LY":function(l){var u=/^(1|2)\d{11}$/,d=l.trim();return!!u.test(d)},"ar-TN":function(l){var u=/^\d{8}$/,d=l.trim();return!!u.test(d)},"zh-CN":function(l){var u=["11","12","13","14","15","21","22","23","31","32","33","34","35","36","37","41","42","43","44","45","46","50","51","52","53","54","61","62","63","64","65","71","81","82","91"],d=["7","9","10","5","8","4","2","1","6","3","7","9","10","5","8","4","2"],f=["1","0","X","9","8","7","6","5","4","3","2"],p=function(_){return u.includes(_)},g=function(_){var C=parseInt(_.substring(0,4),10),R=parseInt(_.substring(4,6),10),N=parseInt(_.substring(6),10),M=new Date(C,R-1,N);return M>new Date?!1:M.getFullYear()===C&&M.getMonth()===R-1&&M.getDate()===N},b=function(_){for(var C=_.substring(0,17),R=0,N=0;N<17;N++)R+=parseInt(C.charAt(N),10)*parseInt(d[N],10);var M=R%11;return f[M]},S=function(_){return b(_)===_.charAt(17).toUpperCase()},E=function(_){var C=/^[1-9]\d{7}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}$/.test(_);if(!C)return!1;var R=_.substring(0,2);if(C=p(R),!C)return!1;var N="19".concat(_.substring(6,12));return C=g(N),!!C},w=function(_){var C=/^[1-9]\d{5}[1-9]\d{3}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}(\d|x|X)$/.test(_);if(!C)return!1;var R=_.substring(0,2);if(C=p(R),!C)return!1;var N=_.substring(6,14);return C=g(N),C?S(_):!1},x=function(_){var C=/^\d{15}|(\d{17}(\d|x|X))$/.test(_);return C?_.length===15?E(_):w(_):!1};return x(l)},"zh-HK":function(l){l=l.trim();var u=/^[A-Z]{1,2}[0-9]{6}((\([0-9A]\))|(\[[0-9A]\])|([0-9A]))$/,d=/^[0-9]$/;if(l=l.toUpperCase(),!u.test(l))return!1;l=l.replace(/\[|\]|\(|\)/g,""),l.length===8&&(l="3".concat(l));for(var f=0,p=0;p<=7;p++){var g=void 0;d.test(l[p])?g=l[p]:g=(l[p].charCodeAt(0)-55)%11,f+=g*(9-p)}f%=11;var b;return f===0?b="0":f===1?b="A":b=String(11-f),b===l[l.length-1]},"zh-TW":function(l){var u={A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:34,J:18,K:19,L:20,M:21,N:22,O:35,P:23,Q:24,R:25,S:26,T:27,U:28,V:29,W:32,X:30,Y:31,Z:33},d=l.trim().toUpperCase();return/^[A-Z][0-9]{9}$/.test(d)?Array.from(d).reduce(function(f,p,g){if(g===0){var b=u[p];return b%10*9+Math.floor(b/10)}return g===9?(10-f%10-Number(p))%10===0:f+Number(p)*(9-g)},0):!1}};function s(o,l){if((0,n.default)(o),l in a)return a[l](o);if(l==="any"){for(var u in a)if(a.hasOwnProperty(u)){var d=a[u];if(d(o))return!0}return!1}throw new Error("Invalid locale '".concat(l,"'"))}e.exports=t.default,e.exports.default=t.default})(_L,_L.exports);var Ait=_L.exports,CL={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=r(Ht);function r(d){return d&&d.__esModule?d:{default:d}}var i=8,a=14,s=/^(\d{8}|\d{13}|\d{14})$/;function o(d,f){return d===i||d===a?f%2===0?3:1:f%2===0?1:3}function l(d){var f=d.slice(0,-1).split("").map(function(g,b){return Number(g)*o(d.length,b)}).reduce(function(g,b){return g+b},0),p=10-f%10;return p<10?p:0}function u(d){(0,n.default)(d);var f=Number(d.slice(-1));return s.test(d)&&f===l(d)}e.exports=t.default,e.exports.default=t.default})(CL,CL.exports);var _it=CL.exports,RL={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ht);function r(s){return s&&s.__esModule?s:{default:s}}var i=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;function a(s){if((0,n.default)(s),!i.test(s))return!1;for(var o=!0,l=0,u=s.length-2;u>=0;u--)if(s[u]>="A"&&s[u]<="Z")for(var d=s[u].charCodeAt(0)-55,f=d%10,p=Math.trunc(d/10),g=0,b=[f,p];g=5?l+=1+(S-5)*2:l+=S*2:l+=S,o=!o}else{var E=s[u].charCodeAt(0)-48;o?E>=5?l+=1+(E-5)*2:l+=E*2:l+=E,o=!o}var w=Math.trunc((l+9)/10)*10-l;return+s[s.length-1]===w}e.exports=t.default,e.exports.default=t.default})(RL,RL.exports);var Cit=RL.exports,IL={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(Ht);function r(l){return l&&l.__esModule?l:{default:l}}var i=/^(?:[0-9]{9}X|[0-9]{10})$/,a=/^(?:[0-9]{13})$/,s=[1,3];function o(l,u){(0,n.default)(l);var d=String((u==null?void 0:u.version)||u);if(!(u!=null&&u.version||u))return o(l,{version:10})||o(l,{version:13});var f=l.replace(/[\s-]+/g,""),p=0;if(d==="10"){if(!i.test(f))return!1;for(var g=0;g1&&arguments[1]!==void 0?arguments[1]:{};(0,n.default)(s);var l=i;if(l=o.require_hyphen?l.replace("?",""):l,l=o.case_sensitive?new RegExp(l):new RegExp(l,"i"),!l.test(s))return!1;for(var u=s.replace("-","").toUpperCase(),d=0,f=0;f=0;r--){if(n){var i=parseInt(e[r],10)*2;i>9?t+=i.toString().split("").map(function(a){return parseInt(a,10)}).reduce(function(a,s){return a+s},0):t+=i}else t+=parseInt(e[r],10);n=!n}return t%10===0}function Pit(e,t){for(var n=0,r=0;rz.length)&&(K=z.length);for(var ue=0,_e=new Array(K);ue40?(ue-=40,K="20".concat(K)):ue>20?(ue-=20,K="18".concat(K)):K="19".concat(K),ue<10&&(ue="0".concat(ue));var _e="".concat(K,"/").concat(ue,"/").concat(z.slice(4,6));if(!(0,a.default)(_e,"YYYY/MM/DD"))return!1;for(var Ie=z.split("").map(function(Ne){return parseInt(Ne,10)}),Ce=[2,4,8,5,10,9,7,3,6],Qe=0,Ot=0;Ot50&&(ue-=50),ue>20){if(parseInt(K,10)<2004)return!1;ue-=20}ue<10&&(ue="0".concat(ue));var _e="".concat(K,"/").concat(ue,"/").concat(z.slice(4,6));if(!(0,a.default)(_e,"YYYY/MM/DD"))return!1;if(z.length===10&&parseInt(z,10)%11!==0){var Ie=parseInt(z.slice(0,9),10)%11;if(parseInt(K,10)<1986&&Ie===10){if(parseInt(z.slice(9),10)!==0)return!1}else return!1}return!0}function x(z){return i.luhnCheck(z)}function k(z){for(var K=z.split("").map(function(Ne){return parseInt(Ne,10)}),ue=[],_e=0;_e1}),ue.length!==2&&ue.length!==3)return!1;if(ue[0].length===3){for(var Ce=ue[0].split("").map(function(Ne){return parseInt(Ne,10)}),Qe=0,Ot=0;Ot58)K="18".concat(K);else return!1;break}K.length===3&&(K=[K.slice(0,2),"0",K.slice(2)].join(""));var _e="".concat(K,"/").concat(z.slice(2,4),"/").concat(z.slice(0,2));if(!(0,a.default)(_e,"YYYY/MM/DD"))return!1;for(var Ie=z.split("").map(function(Ne){return parseInt(Ne,10)}),Ce=0,Qe=4,Ot=0;Ot<9;Ot++)Ce+=Ie[Ot]*Qe,Qe-=1,Qe===1&&(Qe=7);return Ce%=11,Ce===1?!1:Ce===0?Ie[9]===0:Ie[9]===11-Ce}function C(z){for(var K=z.slice(0,8).split("").map(function(Ce){return parseInt(Ce,10)}),ue=0,_e=1;_e4&&(ue+=2));return String.fromCharCode(ue%26+65)===z.charAt(8)}function R(z){for(var K=z.split("").map(function(Ie){return parseInt(Ie,10)}),ue=0,_e=0;_e<8;_e++)ue+=K[_e]*Math.pow(2,8-_e);return ue%11%10===K[8]}function N(z){var K=i.reverseMultiplyAndSum(z.split("").slice(0,7).map(function(ue){return parseInt(ue,10)}),8);return z.length===9&&z[8]!=="W"&&(K+=(z[8].charCodeAt(0)-64)*9),K%=23,K===0?z[7].toUpperCase()==="W":z[7].toUpperCase()===String.fromCharCode(64+K)}var M={andover:["10","12"],atlanta:["60","67"],austin:["50","53"],brookhaven:["01","02","03","04","05","06","11","13","14","16","21","22","23","25","34","51","52","54","55","56","57","58","59","65"],cincinnati:["30","32","35","36","37","38","61"],fresno:["15","24"],internet:["20","26","27","45","46","47"],kansas:["40","44"],memphis:["94","95"],ogden:["80","90"],philadelphia:["33","39","41","42","43","46","48","62","63","64","66","68","71","72","73","74","75","76","77","81","82","83","84","85","86","87","88","91","92","93","98","99"],sba:["31"]};function U(){var z=[];for(var K in M)M.hasOwnProperty(K)&&z.push.apply(z,u(M[K]));return z}function F(z){return U().indexOf(z.slice(0,2))!==-1}function G(z){for(var K=0,ue=z.split(""),_e=parseInt(ue.pop(),10),Ie=0;Ie1){var ue=0;switch(K[0]){case"Y":ue=1;break;case"Z":ue=2;break}K.splice(0,1,ue)}else for(;K.length<9;)K.unshift(0);var _e=["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"];K=K.join("");var Ie=parseInt(K.slice(0,8),10)%23;return K[8]===_e[Ie]}function ie(z){var K=z.slice(1,3),ue=z.slice(0,1);switch(ue){case"1":case"2":K="18".concat(K);break;case"3":case"4":K="19".concat(K);break;default:K="20".concat(K);break}var _e="".concat(K,"/").concat(z.slice(3,5),"/").concat(z.slice(5,7));if(!(0,a.default)(_e,"YYYY/MM/DD"))return!1;for(var Ie=z.split("").map(function(ye){return parseInt(ye,10)}),Ce=0,Qe=1,Ot=0;Ot<10;Ot++)Ce+=Ie[Ot]*Qe,Qe+=1,Qe===10&&(Qe=1);if(Ce%11===10){Ce=0,Qe=3;for(var Ne=0;Ne<10;Ne++)Ce+=Ie[Ne]*Qe,Qe+=1,Qe===10&&(Qe=1);if(Ce%11===10)return Ie[10]===0}return Ce%11===Ie[10]}function ne(z){var K=z.slice(4,6),ue=z.slice(6,7);switch(ue){case"+":K="18".concat(K);break;case"-":K="19".concat(K);break;default:K="20".concat(K);break}var _e="".concat(K,"/").concat(z.slice(2,4),"/").concat(z.slice(0,2));if(!(0,a.default)(_e,"YYYY/MM/DD"))return!1;var Ie=parseInt(z.slice(0,6)+z.slice(7,10),10)%31;if(Ie<10)return Ie===parseInt(z.slice(10),10);Ie-=10;var Ce=["A","B","C","D","E","F","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y"];return Ce[Ie]===z.slice(10)}function q(z){if(z.slice(2,4)!=="00"||z.slice(4,6)!=="00"){var K="".concat(z.slice(0,2),"/").concat(z.slice(2,4),"/").concat(z.slice(4,6));if(!(0,a.default)(K,"YY/MM/DD"))return!1}var ue=97-parseInt(z.slice(0,9),10)%97,_e=parseInt(z.slice(9,11),10);return!(ue!==_e&&(ue=97-parseInt("2".concat(z.slice(0,9)),10)%97,ue!==_e))}function re(z){z=z.replace(/\s/g,"");var K=parseInt(z.slice(0,10),10)%511,ue=parseInt(z.slice(10,13),10);return K===ue}function ee(z){var K="".concat(z.slice(0,4),"/").concat(z.slice(4,6),"/").concat(z.slice(6,8));return!(0,a.default)(K,"YYYY/MM/DD")||!i.luhnCheck(z.slice(0,12))?!1:i.verhoeffCheck("".concat(z.slice(0,11)).concat(z[12]))}function Z(z){return i.iso7064Check(z)}function se(z){for(var K=z.split("").map(function(Ie){return parseInt(Ie,10)}),ue=8,_e=1;_e<9;_e++)ue+=K[_e]*(_e+1);return ue%11===K[9]}function W(z){for(var K=!1,ue=!1,_e=0;_e<3;_e++)if(!K&&/[AEIOU]/.test(z[_e]))K=!0;else if(!ue&&K&&z[_e]==="X")ue=!0;else if(_e>0&&(K&&!ue&&!/[AEIOU]/.test(z[_e])||ue&&!/X/.test(z[_e])))return!1;return!0}function Pe(z){var K=z.toUpperCase().split("");if(!W(K.slice(0,3))||!W(K.slice(3,6)))return!1;for(var ue=[6,7,9,10,12,13,14],_e={L:"0",M:"1",N:"2",P:"3",Q:"4",R:"5",S:"6",T:"7",U:"8",V:"9"},Ie=0,Ce=ue;Ie40&&(ye-=40),ye<10&&(ye="0".concat(ye));var ve="".concat(K[6]).concat(K[7],"/").concat(Ne,"/").concat(ye);if(!(0,a.default)(ve,"YY/MM/DD"))return!1;for(var ke=0,ze=1;ze4&&(Qt+=2)}ke+=Qt}return String.fromCharCode(65+ke%26)===K[15]}function Ee(z){z=z.replace(/\W/,"");var K=z.slice(0,2);if(K!=="32"){var ue=z.slice(2,4);if(ue!=="00"){var _e=z.slice(4,6);switch(z[6]){case"0":_e="18".concat(_e);break;case"1":_e="19".concat(_e);break;default:_e="20".concat(_e);break}var Ie="".concat(_e,"/").concat(z.slice(2,4),"/").concat(K);if(!(0,a.default)(Ie,"YYYY/MM/DD"))return!1}for(var Ce=1101,Qe=[1,6,3,7,9,10,5,8,4,2],Ot=0;Ot32e3)return!1;var _e=parseInt(K.join("").slice(5,7),10);if(ue===_e)return!1}}}return!0}function Re(z){return i.reverseMultiplyAndSum(z.split("").slice(0,8).map(function(K){return parseInt(K,10)}),9)%11===parseInt(z[8],10)}function Ue(z){if(z.length===10){for(var K=[6,5,7,2,3,4,5,6,7],ue=0,_e=0;_e80?(Ie="18".concat(Ie),Ce-=80):Ce>60?(Ie="22".concat(Ie),Ce-=60):Ce>40?(Ie="21".concat(Ie),Ce-=40):Ce>20?(Ie="20".concat(Ie),Ce-=20):Ie="19".concat(Ie),Ce<10&&(Ce="0".concat(Ce));var Qe="".concat(Ie,"/").concat(Ce,"/").concat(z.slice(4,6));if(!(0,a.default)(Qe,"YYYY/MM/DD"))return!1;for(var Ot=0,Ne=1,ye=0;ye10?Ne=1:Ne===5&&(Ne+=2);return Ot=10-Ot%10,Ot===parseInt(z[10],10)}function oe(z){if(z.length===11){var K,ue;if(K=0,z==="11111111111"||z==="22222222222"||z==="33333333333"||z==="44444444444"||z==="55555555555"||z==="66666666666"||z==="77777777777"||z==="88888888888"||z==="99999999999"||z==="00000000000")return!1;for(var _e=1;_e<=9;_e++)K+=parseInt(z.substring(_e-1,_e),10)*(11-_e);if(ue=K*10%11,ue===10&&(ue=0),ue!==parseInt(z.substring(9,10),10))return!1;K=0;for(var Ie=1;Ie<=10;Ie++)K+=parseInt(z.substring(Ie-1,Ie),10)*(12-Ie);return ue=K*10%11,ue===10&&(ue=0),ue===parseInt(z.substring(10,11),10)}if(z==="00000000000000"||z==="11111111111111"||z==="22222222222222"||z==="33333333333333"||z==="44444444444444"||z==="55555555555555"||z==="66666666666666"||z==="77777777777777"||z==="88888888888888"||z==="99999999999999")return!1;for(var Ce=z.length-2,Qe=z.substring(0,Ce),Ot=z.substring(Ce),Ne=0,ye=Ce-7,ve=Ce;ve>=1;ve--)Ne+=Qe.charAt(Ce-ve)*ye,ye-=1,ye<2&&(ye=9);var ke=Ne%11<2?0:11-Ne%11;if(ke!==parseInt(Ot.charAt(0),10))return!1;Ce+=1,Qe=z.substring(0,Ce),Ne=0,ye=Ce-7;for(var ze=Ce;ze>=1;ze--)Ne+=Qe.charAt(Ce-ze)*ye,ye-=1,ye<2&&(ye=9);return ke=Ne%11<2?0:11-Ne%11,ke===parseInt(Ot.charAt(1),10)}function rt(z){var K=11-i.reverseMultiplyAndSum(z.split("").slice(0,8).map(function(ue){return parseInt(ue,10)}),9)%11;return K>9?parseInt(z[8],10)===0:K===parseInt(z[8],10)}function qe(z){if(z.slice(0,4)!=="9000"){var K=z.slice(1,3);switch(z[0]){case"1":case"2":K="19".concat(K);break;case"3":case"4":K="18".concat(K);break;case"5":case"6":K="20".concat(K);break}var ue="".concat(K,"/").concat(z.slice(3,5),"/").concat(z.slice(5,7));if(ue.length===8){if(!(0,a.default)(ue,"YY/MM/DD"))return!1}else if(!(0,a.default)(ue,"YYYY/MM/DD"))return!1;for(var _e=z.split("").map(function(Ot){return parseInt(Ot,10)}),Ie=[2,7,9,1,4,6,3,5,8,2,7,9],Ce=0,Qe=0;Qe53)return!1;K<10?K="190".concat(K):K="19".concat(K);var ue=parseInt(z.slice(2,4),10);ue>50&&(ue-=50),ue<10&&(ue="0".concat(ue));var _e="".concat(K,"/").concat(ue,"/").concat(z.slice(4,6));if(!(0,a.default)(_e,"YYYY/MM/DD"))return!1}return!0}function Tt(z){var K=11-i.reverseMultiplyAndSum(z.split("").slice(0,7).map(function(ue){return parseInt(ue,10)}),8)%11;return K===10?parseInt(z[7],10)===0:K===parseInt(z[7],10)}function ct(z){var K=z.slice(0);z.length>11&&(K=K.slice(2));var ue="",_e=K.slice(2,4),Ie=parseInt(K.slice(4,6),10);if(z.length>11)ue=z.slice(0,4);else if(ue=z.slice(0,2),z.length===11&&Ie<60){var Ce=new Date().getFullYear().toString(),Qe=parseInt(Ce.slice(0,2),10);if(Ce=parseInt(Ce,10),z[6]==="-")parseInt("".concat(Qe).concat(ue),10)>Ce?ue="".concat(Qe-1).concat(ue):ue="".concat(Qe).concat(ue);else if(ue="".concat(Qe-1).concat(ue),Ce-parseInt(ue,10)<100)return!1}Ie>60&&(Ie-=60),Ie<10&&(Ie="0".concat(Ie));var Ot="".concat(ue,"/").concat(_e,"/").concat(Ie);if(Ot.length===8){if(!(0,a.default)(Ot,"YY/MM/DD"))return!1}else if(!(0,a.default)(Ot,"YYYY/MM/DD"))return!1;return i.luhnCheck(z.replace(/\W/,""))}function Pt(z){for(var K=z.split("").map(function(Ce){return parseInt(Ce,10)}),ue=[-1,5,7,9,4,6,10,5,7],_e=0,Ie=0;Ie1&&arguments[1]!==void 0?arguments[1]:"en-US";(0,r.default)(z);var ue=z.slice(0);if(K in Mt)return K in vt&&(ue=ue.replace(vt[K],"")),Mt[K].test(ue)?K in ot?ot[K](ue):!0:!1;throw new Error("Invalid locale '".concat(K,"'"))}e.exports=t.default,e.exports.default=t.default})(DL,DL.exports);var Lit=DL.exports,cT={};Object.defineProperty(cT,"__esModule",{value:!0});cT.default=Bit;cT.locales=void 0;var $it=Fit(Ht);function Fit(e){return e&&e.__esModule?e:{default:e}}var ta={"am-AM":/^(\+?374|0)(33|4[134]|55|77|88|9[13-689])\d{6}$/,"ar-AE":/^((\+?971)|0)?5[024568]\d{7}$/,"ar-BH":/^(\+?973)?(3|6)\d{7}$/,"ar-DZ":/^(\+?213|0)(5|6|7)\d{8}$/,"ar-LB":/^(\+?961)?((3|81)\d{6}|7\d{7})$/,"ar-EG":/^((\+?20)|0)?1[0125]\d{8}$/,"ar-IQ":/^(\+?964|0)?7[0-9]\d{8}$/,"ar-JO":/^(\+?962|0)?7[789]\d{7}$/,"ar-KW":/^(\+?965)([569]\d{7}|41\d{6})$/,"ar-LY":/^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/,"ar-MA":/^(?:(?:\+|00)212|0)[5-7]\d{8}$/,"ar-OM":/^((\+|00)968)?(9[1-9])\d{6}$/,"ar-PS":/^(\+?970|0)5[6|9](\d{7})$/,"ar-SA":/^(!?(\+?966)|0)?5\d{8}$/,"ar-SD":/^((\+?249)|0)?(9[012369]|1[012])\d{7}$/,"ar-SY":/^(!?(\+?963)|0)?9\d{8}$/,"ar-TN":/^(\+?216)?[2459]\d{7}$/,"az-AZ":/^(\+994|0)(10|5[015]|7[07]|99)\d{7}$/,"bs-BA":/^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/,"be-BY":/^(\+?375)?(24|25|29|33|44)\d{7}$/,"bg-BG":/^(\+?359|0)?8[789]\d{7}$/,"bn-BD":/^(\+?880|0)1[13456789][0-9]{8}$/,"ca-AD":/^(\+376)?[346]\d{5}$/,"cs-CZ":/^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"da-DK":/^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,"de-DE":/^((\+49|0)1)(5[0-25-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/,"de-AT":/^(\+43|0)\d{1,4}\d{3,12}$/,"de-CH":/^(\+41|0)([1-9])\d{1,9}$/,"de-LU":/^(\+352)?((6\d1)\d{6})$/,"dv-MV":/^(\+?960)?(7[2-9]|9[1-9])\d{5}$/,"el-GR":/^(\+?30|0)?6(8[5-9]|9(?![26])[0-9])\d{7}$/,"el-CY":/^(\+?357?)?(9(9|6)\d{6})$/,"en-AI":/^(\+?1|0)264(?:2(35|92)|4(?:6[1-2]|76|97)|5(?:3[6-9]|8[1-4])|7(?:2(4|9)|72))\d{4}$/,"en-AU":/^(\+?61|0)4\d{8}$/,"en-AG":/^(?:\+1|1)268(?:464|7(?:1[3-9]|[28]\d|3[0246]|64|7[0-689]))\d{4}$/,"en-BM":/^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}$))/,"en-BS":/^(\+?1[-\s]?|0)?\(?242\)?[-\s]?\d{3}[-\s]?\d{4}$/,"en-GB":/^(\+?44|0)7\d{9}$/,"en-GG":/^(\+?44|0)1481\d{6}$/,"en-GH":/^(\+233|0)(20|50|24|54|27|57|26|56|23|28|55|59)\d{7}$/,"en-GY":/^(\+592|0)6\d{6}$/,"en-HK":/^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/,"en-MO":/^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/,"en-IE":/^(\+?353|0)8[356789]\d{7}$/,"en-IN":/^(\+?91|0)?[6789]\d{9}$/,"en-JM":/^(\+?876)?\d{7}$/,"en-KE":/^(\+?254|0)(7|1)\d{8}$/,"fr-CF":/^(\+?236| ?)(70|75|77|72|21|22)\d{6}$/,"en-SS":/^(\+?211|0)(9[1257])\d{7}$/,"en-KI":/^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,"en-KN":/^(?:\+1|1)869(?:46\d|48[89]|55[6-8]|66\d|76[02-7])\d{4}$/,"en-LS":/^(\+?266)(22|28|57|58|59|27|52)\d{6}$/,"en-MT":/^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,"en-MU":/^(\+?230|0)?\d{8}$/,"en-MW":/^(\+?265|0)(((77|88|31|99|98|21)\d{7})|(((111)|1)\d{6})|(32000\d{4}))$/,"en-NA":/^(\+?264|0)(6|8)\d{7}$/,"en-NG":/^(\+?234|0)?[789]\d{9}$/,"en-NZ":/^(\+?64|0)[28]\d{7,9}$/,"en-PG":/^(\+?675|0)?(7\d|8[18])\d{6}$/,"en-PK":/^((00|\+)?92|0)3[0-6]\d{8}$/,"en-PH":/^(09|\+639)\d{9}$/,"en-RW":/^(\+?250|0)?[7]\d{8}$/,"en-SG":/^(\+65)?[3689]\d{7}$/,"en-SL":/^(\+?232|0)\d{8}$/,"en-TZ":/^(\+?255|0)?[67]\d{8}$/,"en-UG":/^(\+?256|0)?[7]\d{8}$/,"en-US":/^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,"en-ZA":/^(\+?27|0)\d{9}$/,"en-ZM":/^(\+?26)?09[567]\d{7}$/,"en-ZW":/^(\+263)[0-9]{9}$/,"en-BW":/^(\+?267)?(7[1-8]{1})\d{6}$/,"es-AR":/^\+?549(11|[2368]\d)\d{8}$/,"es-BO":/^(\+?591)?(6|7)\d{7}$/,"es-CO":/^(\+?57)?3(0(0|1|2|4|5)|1\d|2[0-4]|5(0|1))\d{7}$/,"es-CL":/^(\+?56|0)[2-9]\d{1}\d{7}$/,"es-CR":/^(\+506)?[2-8]\d{7}$/,"es-CU":/^(\+53|0053)?5\d{7}$/,"es-DO":/^(\+?1)?8[024]9\d{7}$/,"es-HN":/^(\+?504)?[9|8|3|2]\d{7}$/,"es-EC":/^(\+?593|0)([2-7]|9[2-9])\d{7}$/,"es-ES":/^(\+?34)?[6|7]\d{8}$/,"es-PE":/^(\+?51)?9\d{8}$/,"es-MX":/^(\+?52)?(1|01)?\d{10,11}$/,"es-NI":/^(\+?505)\d{7,8}$/,"es-PA":/^(\+?507)\d{7,8}$/,"es-PY":/^(\+?595|0)9[9876]\d{7}$/,"es-SV":/^(\+?503)?[67]\d{7}$/,"es-UY":/^(\+598|0)9[1-9][\d]{6}$/,"es-VE":/^(\+?58)?(2|4)\d{9}$/,"et-EE":/^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,"fa-IR":/^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,"fi-FI":/^(\+?358|0)\s?(4[0-6]|50)\s?(\d\s?){4,8}$/,"fj-FJ":/^(\+?679)?\s?\d{3}\s?\d{4}$/,"fo-FO":/^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"fr-BF":/^(\+226|0)[67]\d{7}$/,"fr-BJ":/^(\+229)\d{8}$/,"fr-CD":/^(\+?243|0)?(8|9)\d{8}$/,"fr-CM":/^(\+?237)6[0-9]{8}$/,"fr-FR":/^(\+?33|0)[67]\d{8}$/,"fr-GF":/^(\+?594|0|00594)[67]\d{8}$/,"fr-GP":/^(\+?590|0|00590)[67]\d{8}$/,"fr-MQ":/^(\+?596|0|00596)[67]\d{8}$/,"fr-PF":/^(\+?689)?8[789]\d{6}$/,"fr-RE":/^(\+?262|0|00262)[67]\d{8}$/,"fr-WF":/^(\+681)?\d{6}$/,"he-IL":/^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/,"hu-HU":/^(\+?36|06)(20|30|31|50|70)\d{7}$/,"id-ID":/^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/,"ir-IR":/^(\+98|0)?9\d{9}$/,"it-IT":/^(\+?39)?\s?3\d{2} ?\d{6,7}$/,"it-SM":/^((\+378)|(0549)|(\+390549)|(\+3780549))?6\d{5,9}$/,"ja-JP":/^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/,"ka-GE":/^(\+?995)?(79\d{7}|5\d{8})$/,"kk-KZ":/^(\+?7|8)?7\d{9}$/,"kl-GL":/^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"ko-KR":/^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,"ky-KG":/^(\+?7\s?\+?7|0)\s?\d{2}\s?\d{3}\s?\d{4}$/,"lt-LT":/^(\+370|8)\d{8}$/,"lv-LV":/^(\+?371)2\d{7}$/,"mg-MG":/^((\+?261|0)(2|3)\d)?\d{7}$/,"mn-MN":/^(\+|00|011)?976(77|81|88|91|94|95|96|99)\d{6}$/,"my-MM":/^(\+?959|09|9)(2[5-7]|3[1-2]|4[0-5]|6[6-9]|7[5-9]|9[6-9])[0-9]{7}$/,"ms-MY":/^(\+?60|0)1(([0145](-|\s)?\d{7,8})|([236-9](-|\s)?\d{7}))$/,"mz-MZ":/^(\+?258)?8[234567]\d{7}$/,"nb-NO":/^(\+?47)?[49]\d{7}$/,"ne-NP":/^(\+?977)?9[78]\d{8}$/,"nl-BE":/^(\+?32|0)4\d{8}$/,"nl-NL":/^(((\+|00)?31\(0\))|((\+|00)?31)|0)6{1}\d{8}$/,"nl-AW":/^(\+)?297(56|59|64|73|74|99)\d{5}$/,"nn-NO":/^(\+?47)?[49]\d{7}$/,"pl-PL":/^(\+?48)? ?([5-8]\d|45) ?\d{3} ?\d{2} ?\d{2}$/,"pt-BR":/^((\+?55\ ?[1-9]{2}\ ?)|(\+?55\ ?\([1-9]{2}\)\ ?)|(0[1-9]{2}\ ?)|(\([1-9]{2}\)\ ?)|([1-9]{2}\ ?))((\d{4}\-?\d{4})|(9[1-9]{1}\d{3}\-?\d{4}))$/,"pt-PT":/^(\+?351)?9[1236]\d{7}$/,"pt-AO":/^(\+244)\d{9}$/,"ro-MD":/^(\+?373|0)((6(0|1|2|6|7|8|9))|(7(6|7|8|9)))\d{6}$/,"ro-RO":/^(\+?40|0)\s?7\d{2}(\/|\s|\.|-)?\d{3}(\s|\.|-)?\d{3}$/,"ru-RU":/^(\+?7|8)?9\d{9}$/,"si-LK":/^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/,"sl-SI":/^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/,"sk-SK":/^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"so-SO":/^(\+?252|0)((6[0-9])\d{7}|(7[1-9])\d{7})$/,"sq-AL":/^(\+355|0)6[789]\d{6}$/,"sr-RS":/^(\+3816|06)[- \d]{5,9}$/,"sv-SE":/^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/,"tg-TJ":/^(\+?992)?[5][5]\d{7}$/,"th-TH":/^(\+66|66|0)\d{9}$/,"tr-TR":/^(\+?90|0)?5\d{9}$/,"tk-TM":/^(\+993|993|8)\d{8}$/,"uk-UA":/^(\+?38|8)?0\d{9}$/,"uz-UZ":/^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,"vi-VN":/^((\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,"zh-CN":/^((\+|00)86)?(1[3-9]|9[28])\d{9}$/,"zh-TW":/^(\+?886\-?|0)?9\d{8}$/,"dz-BT":/^(\+?975|0)?(17|16|77|02)\d{6}$/,"ar-YE":/^(((\+|00)9677|0?7)[0137]\d{7}|((\+|00)967|0)[1-7]\d{6})$/,"ar-EH":/^(\+?212|0)[\s\-]?(5288|5289)[\s\-]?\d{5}$/,"fa-AF":/^(\+93|0)?(2{1}[0-8]{1}|[3-5]{1}[0-4]{1})(\d{7})$/};ta["en-CA"]=ta["en-US"];ta["fr-CA"]=ta["en-CA"];ta["fr-BE"]=ta["nl-BE"];ta["zh-HK"]=ta["en-HK"];ta["zh-MO"]=ta["en-MO"];ta["ga-IE"]=ta["en-IE"];ta["fr-CH"]=ta["de-CH"];ta["it-CH"]=ta["fr-CH"];function Bit(e,t,n){if((0,$it.default)(e),n&&n.strictMode&&!e.startsWith("+"))return!1;if(Array.isArray(t))return t.some(function(a){if(ta.hasOwnProperty(a)){var s=ta[a];if(s.test(e))return!0}return!1});if(t in ta)return ta[t].test(e);if(!t||t==="any"){for(var r in ta)if(ta.hasOwnProperty(r)){var i=ta[r];if(i.test(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))}cT.locales=Object.keys(ta);var PL={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ht);function r(s){return s&&s.__esModule?s:{default:s}}var i=/^(0x)[0-9a-f]{40}$/i;function a(s){return(0,n.default)(s),i.test(s)}e.exports=t.default,e.exports.default=t.default})(PL,PL.exports);var Uit=PL.exports,ML={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=i(dl),r=i(Ht);function i(l){return l&&l.__esModule?l:{default:l}}function a(l){var u="\\d{".concat(l.digits_after_decimal[0],"}");l.digits_after_decimal.forEach(function(x,k){k!==0&&(u="".concat(u,"|\\d{").concat(x,"}"))});var d="(".concat(l.symbol.replace(/\W/,function(x){return"\\".concat(x)}),")").concat(l.require_symbol?"":"?"),f="-?",p="[1-9]\\d*",g="[1-9]\\d{0,2}(\\".concat(l.thousands_separator,"\\d{3})*"),b=["0",p,g],S="(".concat(b.join("|"),")?"),E="(\\".concat(l.decimal_separator,"(").concat(u,"))").concat(l.require_decimal?"":"?"),w=S+(l.allow_decimal||l.require_decimal?E:"");return l.allow_negatives&&!l.parens_for_negatives&&(l.negative_sign_after_digits?w+=f:l.negative_sign_before_digits&&(w=f+w)),l.allow_negative_sign_placeholder?w="( (?!\\-))?".concat(w):l.allow_space_after_symbol?w=" ?".concat(w):l.allow_space_after_digits&&(w+="( (?!$))?"),l.symbol_after_digits?w+=d:w=d+w,l.allow_negatives&&(l.parens_for_negatives?w="(\\(".concat(w,"\\)|").concat(w,")"):l.negative_sign_before_digits||l.negative_sign_after_digits||(w=f+w)),new RegExp("^(?!-? )(?=.*\\d)".concat(w,"$"))}var s={symbol:"$",require_symbol:!1,allow_space_after_symbol:!1,symbol_after_digits:!1,allow_negatives:!0,parens_for_negatives:!1,negative_sign_before_digits:!1,negative_sign_after_digits:!1,allow_negative_sign_placeholder:!1,thousands_separator:",",decimal_separator:".",allow_decimal:!0,require_decimal:!1,digits_after_decimal:[2],allow_space_after_digits:!1};function o(l,u){return(0,r.default)(l),u=(0,n.default)(u,s),a(u).test(l)}e.exports=t.default,e.exports.default=t.default})(ML,ML.exports);var zit=ML.exports,LL={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=r(Ht);function r(o){return o&&o.__esModule?o:{default:o}}var i=/^(bc1)[a-z0-9]{25,39}$/,a=/^(1|3)[A-HJ-NP-Za-km-z1-9]{25,39}$/;function s(o){return(0,n.default)(o),i.test(o)||a.test(o)}e.exports=t.default,e.exports.default=t.default})(LL,LL.exports);var Hit=LL.exports,dT={};Object.defineProperty(dT,"__esModule",{value:!0});dT.isFreightContainerID=void 0;dT.isISO6346=zge;var jit=Wit(Ht);function Wit(e){return e&&e.__esModule?e:{default:e}}var Qit=/^[A-Z]{3}(U[0-9]{7})|([J,Z][0-9]{6,7})$/,Git=/^[0-9]$/;function zge(e){if((0,jit.default)(e),e=e.toUpperCase(),!Qit.test(e))return!1;if(e.length===11){for(var t=0,n=0;n=11&&i<=20?r=12+i%11:i>=21&&i<=30?r=23+i%21:r=34+i%31,t+=r*Math.pow(2,n)}var a=t%11;return Number(e[e.length-1])===a}return!0}dT.isFreightContainerID=zge;var $L={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ht);function r(s){return s&&s.__esModule?s:{default:s}}var i=new Set(["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]);function a(s){return(0,n.default)(s),i.has(s)}e.exports=t.default,e.exports.default=t.default})($L,$L.exports);var Vit=$L.exports,FL={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(Ht);function r(l){return l&&l.__esModule?l:{default:l}}var i=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,a=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,s=function(u){var d=u.match(/^(\d{4})-?(\d{3})([ T]{1}\.*|$)/);if(d){var f=Number(d[1]),p=Number(d[2]);return f%4===0&&f%100!==0||f%400===0?p<=366:p<=365}var g=u.match(/(\d{4})-?(\d{0,2})-?(\d*)/).map(Number),b=g[1],S=g[2],E=g[3],w=S&&"0".concat(S).slice(-2),x=E&&"0".concat(E).slice(-2),k=new Date("".concat(b,"-").concat(w||"01","-").concat(x||"01"));return S&&E?k.getUTCFullYear()===b&&k.getUTCMonth()+1===S&&k.getUTCDate()===E:!0};function o(l){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,n.default)(l);var d=u.strictSeparator?a.test(l):i.test(l);return d&&u.strict?s(l):d}e.exports=t.default,e.exports.default=t.default})(FL,FL.exports);var qit=FL.exports,BL={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=w;var n=r(Ht);function r(x){return x&&x.__esModule?x:{default:x}}var i=/[0-9]{4}/,a=/(0[1-9]|1[0-2])/,s=/([12]\d|0[1-9]|3[01])/,o=/([01][0-9]|2[0-3])/,l=/[0-5][0-9]/,u=/([0-5][0-9]|60)/,d=/(\.[0-9]+)?/,f=new RegExp("[-+]".concat(o.source,":").concat(l.source)),p=new RegExp("([zZ]|".concat(f.source,")")),g=new RegExp("".concat(o.source,":").concat(l.source,":").concat(u.source).concat(d.source)),b=new RegExp("".concat(i.source,"-").concat(a.source,"-").concat(s.source)),S=new RegExp("".concat(g.source).concat(p.source)),E=new RegExp("^".concat(b.source,"[ tT]").concat(S.source,"$"));function w(x){return(0,n.default)(x),E.test(x)}e.exports=t.default,e.exports.default=t.default})(BL,BL.exports);var Yit=BL.exports,UL={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ht);function r(s){return s&&s.__esModule?s:{default:s}}var i=new Set(["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","VAT","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWZ","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","URY","UZB","VUT","VEN","VNM","VGB","VIR","WLF","ESH","YEM","ZMB","ZWE"]);function a(s){return(0,n.default)(s),i.has(s.toUpperCase())}e.exports=t.default,e.exports.default=t.default})(UL,UL.exports);var Zit=UL.exports,fT={};Object.defineProperty(fT,"__esModule",{value:!0});fT.CurrencyCodes=void 0;fT.default=Jit;var Xit=Kit(Ht);function Kit(e){return e&&e.__esModule?e:{default:e}}var Hge=new Set(["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLE","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]);function Jit(e){return(0,Xit.default)(e),Hge.has(e.toUpperCase())}fT.CurrencyCodes=Hge;var zL={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=i(Ht),r=i(dl);function i(u){return u&&u.__esModule?u:{default:u}}var a=/^[A-Z2-7]+=*$/,s=/^[A-HJKMNP-TV-Z0-9]+$/,o={crockford:!1};function l(u,d){if((0,n.default)(u),d=(0,r.default)(d,o),d.crockford)return s.test(u);var f=u.length;return!!(f%8===0&&a.test(u))}e.exports=t.default,e.exports.default=t.default})(zL,zL.exports);var eat=zL.exports,HL={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ht);function r(s){return s&&s.__esModule?s:{default:s}}var i=/^[A-HJ-NP-Za-km-z1-9]*$/;function a(s){return(0,n.default)(s),!!i.test(s)}e.exports=t.default,e.exports.default=t.default})(HL,HL.exports);var tat=HL.exports,jL={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(Ht);function r(l){return l&&l.__esModule?l:{default:l}}var i=/^[a-z]+\/[a-z0-9\-\+\._]+$/i,a=/^[a-z\-]+=[a-z0-9\-]+$/i,s=/^[a-z0-9!\$&'\(\)\*\+,;=\-\._~:@\/\?%\s]*$/i;function o(l){(0,n.default)(l);var u=l.split(",");if(u.length<2)return!1;var d=u.shift().trim().split(";"),f=d.shift();if(f.slice(0,5)!=="data:")return!1;var p=f.slice(5);if(p!==""&&!i.test(p))return!1;for(var g=0;g=S.length?{done:!0}:{done:!1,value:S[x++]}},e:function(M){throw M},f:k}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var _=!0,C=!1,R;return{s:function(){w=w.call(S)},n:function(){var M=w.next();return _=M.done,M},e:function(M){C=!0,R=M},f:function(){try{!_&&w.return!=null&&w.return()}finally{if(C)throw R}}}}function f(S,E){if(S){if(typeof S=="string")return p(S,E);var w=Object.prototype.toString.call(S).slice(8,-1);if(w==="Object"&&S.constructor&&(w=S.constructor.name),w==="Map"||w==="Set")return Array.from(S);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return p(S,E)}}function p(S,E){(E==null||E>S.length)&&(E=S.length);for(var w=0,x=new Array(E);w4)return!1;var _=d(k),C;try{for(_.s();!(C=_.n()).done;){var R=C.value,N=R.split("="),M=s(N,2),U=M[0],F=M[1];if(U&&!E.has(U)){x=!0;break}F&&(U==="cc"||U==="bcc")&&(w[U]=F),U&&E.delete(U)}}catch(G){_.e(G)}finally{_.f()}return x?!1:w}function b(S,E){if((0,i.default)(S),S.indexOf("mailto:")!==0)return!1;var w=S.replace("mailto:","").split("?"),x=s(w,2),k=x[0],_=x[1],C=_===void 0?"":_;if(!k&&!C)return!0;var R=g(C);return R?"".concat(k,",").concat(R.cc,",").concat(R.bcc).split(",").every(function(N){return N=(0,n.default)(N," "),N?(0,r.default)(N,E):!0}):!1}e.exports=t.default,e.exports.default=t.default})(QL,QL.exports);var iat=QL.exports,YL={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(Ht);function r(l){return l&&l.__esModule?l:{default:l}}var i=/^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+_]{1,100}$/i,a=/^text\/[a-zA-Z0-9\.\-\+]{1,100};\s?charset=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?$/i,s=/^multipart\/[a-zA-Z0-9\.\-\+]{1,100}(;\s?(boundary|charset)=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?){0,2}$/i;function o(l){return(0,n.default)(l),i.test(l)||a.test(l)||s.test(l)}e.exports=t.default,e.exports.default=t.default})(YL,YL.exports);var aat=YL.exports,ZL={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var n=i(Ht),r=i(dl);function i(f){return f&&f.__esModule?f:{default:f}}var a=/^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/,s=/^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/,o=/^(([1-8]?\d)\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|90\D+0\D+0)\D+[NSns]?$/i,l=/^\s*([1-7]?\d{1,2}\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|180\D+0\D+0)\D+[EWew]?$/i,u={checkDMS:!1};function d(f,p){if((0,n.default)(f),p=(0,r.default)(p,u),!f.includes(","))return!1;var g=f.split(",");return g[0].startsWith("(")&&!g[1].endsWith(")")||g[1].endsWith(")")&&!g[0].startsWith("(")?!1:p.checkDMS?o.test(g[0])&&l.test(g[1]):a.test(g[0])&&s.test(g[1])}e.exports=t.default,e.exports.default=t.default})(ZL,ZL.exports);var sat=ZL.exports,hT={};Object.defineProperty(hT,"__esModule",{value:!0});hT.default=uat;hT.locales=void 0;var oat=lat(Ht);function lat(e){return e&&e.__esModule?e:{default:e}}var hne=/^\d{3}$/,pu=/^\d{4}$/,jo=/^\d{5}$/,x7=/^\d{6}$/,dy={AD:/^AD\d{3}$/,AT:pu,AU:pu,AZ:/^AZ\d{4}$/,BA:/^([7-8]\d{4}$)/,BE:pu,BG:pu,BR:/^\d{5}-\d{3}$/,BY:/^2[1-4]\d{4}$/,CA:/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,CH:pu,CN:/^(0[1-7]|1[012356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[1-5]|8[1345]|9[09])\d{4}$/,CZ:/^\d{3}\s?\d{2}$/,DE:jo,DK:pu,DO:jo,DZ:jo,EE:jo,ES:/^(5[0-2]{1}|[0-4]{1}\d{1})\d{3}$/,FI:jo,FR:/^\d{2}\s?\d{3}$/,GB:/^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i,GR:/^\d{3}\s?\d{2}$/,HR:/^([1-5]\d{4}$)/,HT:/^HT\d{4}$/,HU:pu,ID:jo,IE:/^(?!.*(?:o))[A-Za-z]\d[\dw]\s\w{4}$/i,IL:/^(\d{5}|\d{7})$/,IN:/^((?!10|29|35|54|55|65|66|86|87|88|89)[1-9][0-9]{5})$/,IR:/^(?!(\d)\1{3})[13-9]{4}[1346-9][013-9]{5}$/,IS:hne,IT:jo,JP:/^\d{3}\-\d{4}$/,KE:jo,KR:/^(\d{5}|\d{6})$/,LI:/^(948[5-9]|949[0-7])$/,LT:/^LT\-\d{5}$/,LU:pu,LV:/^LV\-\d{4}$/,LK:jo,MG:hne,MX:jo,MT:/^[A-Za-z]{3}\s{0,1}\d{4}$/,MY:jo,NL:/^[1-9]\d{3}\s?(?!sa|sd|ss)[a-z]{2}$/i,NO:pu,NP:/^(10|21|22|32|33|34|44|45|56|57)\d{3}$|^(977)$/i,NZ:pu,PL:/^\d{2}\-\d{3}$/,PR:/^00[679]\d{2}([ -]\d{4})?$/,PT:/^\d{4}\-\d{3}?$/,RO:x7,RU:x7,SA:jo,SE:/^[1-9]\d{2}\s?\d{2}$/,SG:x7,SI:pu,SK:/^\d{3}\s?\d{2}$/,TH:jo,TN:pu,TW:/^\d{3}(\d{2})?$/,UA:jo,US:/^\d{5}(-\d{4})?$/,ZA:pu,ZM:jo};hT.locales=Object.keys(dy);function uat(e,t){if((0,oat.default)(e),t in dy)return dy[t].test(e);if(t==="any"){for(var n in dy)if(dy.hasOwnProperty(n)){var r=dy[n];if(r.test(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))}var XL={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Ht);function r(a){return a&&a.__esModule?a:{default:a}}function i(a){return(0,n.default)(a),a.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\//g,"/").replace(/\\/g,"\").replace(/`/g,"`")}e.exports=t.default,e.exports.default=t.default})(XL,XL.exports);var cat=XL.exports,KL={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Ht);function r(a){return a&&a.__esModule?a:{default:a}}function i(a){return(0,n.default)(a),a.replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(///g,"/").replace(/\/g,"\\").replace(/`/g,"`").replace(/&/g,"&")}e.exports=t.default,e.exports.default=t.default})(KL,KL.exports);var dat=KL.exports,JL={exports:{}},e$={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Ht);function r(a){return a&&a.__esModule?a:{default:a}}function i(a,s){return(0,n.default)(a),a.replace(new RegExp("[".concat(s,"]+"),"g"),"")}e.exports=t.default,e.exports.default=t.default})(e$,e$.exports);var Gge=e$.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(Ht),r=i(Gge);function i(s){return s&&s.__esModule?s:{default:s}}function a(s,o){(0,n.default)(s);var l=o?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,r.default)(s,l)}e.exports=t.default,e.exports.default=t.default})(JL,JL.exports);var fat=JL.exports,t$={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Ht);function r(a){return a&&a.__esModule?a:{default:a}}function i(a,s){return(0,n.default)(a),a.replace(new RegExp("[^".concat(s,"]+"),"g"),"")}e.exports=t.default,e.exports.default=t.default})(t$,t$.exports);var hat=t$.exports,n$={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Ht);function r(a){return a&&a.__esModule?a:{default:a}}function i(a,s){(0,n.default)(a);for(var o=a.length-1;o>=0;o--)if(s.indexOf(a[o])===-1)return!1;return!0}e.exports=t.default,e.exports.default=t.default})(n$,n$.exports);var pat=n$.exports,r$={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var n=r(dl);function r(f){return f&&f.__esModule?f:{default:f}}var i={all_lowercase:!0,gmail_lowercase:!0,gmail_remove_dots:!0,gmail_remove_subaddress:!0,gmail_convert_googlemaildotcom:!0,outlookdotcom_lowercase:!0,outlookdotcom_remove_subaddress:!0,yahoo_lowercase:!0,yahoo_remove_subaddress:!0,yandex_lowercase:!0,icloud_lowercase:!0,icloud_remove_subaddress:!0},a=["icloud.com","me.com"],s=["hotmail.at","hotmail.be","hotmail.ca","hotmail.cl","hotmail.co.il","hotmail.co.nz","hotmail.co.th","hotmail.co.uk","hotmail.com","hotmail.com.ar","hotmail.com.au","hotmail.com.br","hotmail.com.gr","hotmail.com.mx","hotmail.com.pe","hotmail.com.tr","hotmail.com.vn","hotmail.cz","hotmail.de","hotmail.dk","hotmail.es","hotmail.fr","hotmail.hu","hotmail.id","hotmail.ie","hotmail.in","hotmail.it","hotmail.jp","hotmail.kr","hotmail.lv","hotmail.my","hotmail.ph","hotmail.pt","hotmail.sa","hotmail.sg","hotmail.sk","live.be","live.co.uk","live.com","live.com.ar","live.com.mx","live.de","live.es","live.eu","live.fr","live.it","live.nl","msn.com","outlook.at","outlook.be","outlook.cl","outlook.co.il","outlook.co.nz","outlook.co.th","outlook.com","outlook.com.ar","outlook.com.au","outlook.com.br","outlook.com.gr","outlook.com.pe","outlook.com.tr","outlook.com.vn","outlook.cz","outlook.de","outlook.dk","outlook.es","outlook.fr","outlook.hu","outlook.id","outlook.ie","outlook.in","outlook.it","outlook.jp","outlook.kr","outlook.lv","outlook.my","outlook.ph","outlook.pt","outlook.sa","outlook.sg","outlook.sk","passport.com"],o=["rocketmail.com","yahoo.ca","yahoo.co.uk","yahoo.com","yahoo.de","yahoo.fr","yahoo.in","yahoo.it","ymail.com"],l=["yandex.ru","yandex.ua","yandex.kz","yandex.com","yandex.by","ya.ru"];function u(f){return f.length>1?f:""}function d(f,p){p=(0,n.default)(p,i);var g=f.split("@"),b=g.pop(),S=g.join("@"),E=[S,b];if(E[1]=E[1].toLowerCase(),E[1]==="gmail.com"||E[1]==="googlemail.com"){if(p.gmail_remove_subaddress&&(E[0]=E[0].split("+")[0]),p.gmail_remove_dots&&(E[0]=E[0].replace(/\.+/g,u)),!E[0].length)return!1;(p.all_lowercase||p.gmail_lowercase)&&(E[0]=E[0].toLowerCase()),E[1]=p.gmail_convert_googlemaildotcom?"gmail.com":E[1]}else if(a.indexOf(E[1])>=0){if(p.icloud_remove_subaddress&&(E[0]=E[0].split("+")[0]),!E[0].length)return!1;(p.all_lowercase||p.icloud_lowercase)&&(E[0]=E[0].toLowerCase())}else if(s.indexOf(E[1])>=0){if(p.outlookdotcom_remove_subaddress&&(E[0]=E[0].split("+")[0]),!E[0].length)return!1;(p.all_lowercase||p.outlookdotcom_lowercase)&&(E[0]=E[0].toLowerCase())}else if(o.indexOf(E[1])>=0){if(p.yahoo_remove_subaddress){var w=E[0].split("-");E[0]=w.length>1?w.slice(0,-1).join("-"):w[0]}if(!E[0].length)return!1;(p.all_lowercase||p.yahoo_lowercase)&&(E[0]=E[0].toLowerCase())}else l.indexOf(E[1])>=0?((p.all_lowercase||p.yandex_lowercase)&&(E[0]=E[0].toLowerCase()),E[1]="yandex.ru"):p.all_lowercase&&(E[0]=E[0].toLowerCase());return E.join("@")}e.exports=t.default,e.exports.default=t.default})(r$,r$.exports);var mat=r$.exports,i$={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ht);function r(s){return s&&s.__esModule?s:{default:s}}var i=/^[^\s-_](?!.*?[-_]{2,})[a-z0-9-\\][^\s]*[^-_\s]$/;function a(s){return(0,n.default)(s),i.test(s)}e.exports=t.default,e.exports.default=t.default})(i$,i$.exports);var gat=i$.exports,a$={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ht);function r(s){return s&&s.__esModule?s:{default:s}}var i={"cs-CZ":function(o){return/^(([ABCDEFHIJKLMNPRSTUVXYZ]|[0-9])-?){5,8}$/.test(o)},"de-DE":function(o){return/^((A|AA|AB|AC|AE|AH|AK|AM|AN|AÖ|AP|AS|AT|AU|AW|AZ|B|BA|BB|BC|BE|BF|BH|BI|BK|BL|BM|BN|BO|BÖ|BS|BT|BZ|C|CA|CB|CE|CO|CR|CW|D|DA|DD|DE|DH|DI|DL|DM|DN|DO|DU|DW|DZ|E|EA|EB|ED|EE|EF|EG|EH|EI|EL|EM|EN|ER|ES|EU|EW|F|FB|FD|FF|FG|FI|FL|FN|FO|FR|FS|FT|FÜ|FW|FZ|G|GA|GC|GD|GE|GF|GG|GI|GK|GL|GM|GN|GÖ|GP|GR|GS|GT|GÜ|GV|GW|GZ|H|HA|HB|HC|HD|HE|HF|HG|HH|HI|HK|HL|HM|HN|HO|HP|HR|HS|HU|HV|HX|HY|HZ|IK|IL|IN|IZ|J|JE|JL|K|KA|KB|KC|KE|KF|KG|KH|KI|KK|KL|KM|KN|KO|KR|KS|KT|KU|KW|KY|L|LA|LB|LC|LD|LF|LG|LH|LI|LL|LM|LN|LÖ|LP|LR|LU|M|MA|MB|MC|MD|ME|MG|MH|MI|MK|ML|MM|MN|MO|MQ|MR|MS|MÜ|MW|MY|MZ|N|NB|ND|NE|NF|NH|NI|NK|NM|NÖ|NP|NR|NT|NU|NW|NY|NZ|OA|OB|OC|OD|OE|OF|OG|OH|OK|OL|OP|OS|OZ|P|PA|PB|PE|PF|PI|PL|PM|PN|PR|PS|PW|PZ|R|RA|RC|RD|RE|RG|RH|RI|RL|RM|RN|RO|RP|RS|RT|RU|RV|RW|RZ|S|SB|SC|SE|SG|SI|SK|SL|SM|SN|SO|SP|SR|ST|SU|SW|SY|SZ|TE|TF|TG|TO|TP|TR|TS|TT|TÜ|ÜB|UE|UH|UL|UM|UN|V|VB|VG|VK|VR|VS|W|WA|WB|WE|WF|WI|WK|WL|WM|WN|WO|WR|WS|WT|WÜ|WW|WZ|Z|ZE|ZI|ZP|ZR|ZW|ZZ)[- ]?[A-Z]{1,2}[- ]?\d{1,4}|(ABG|ABI|AIB|AIC|ALF|ALZ|ANA|ANG|ANK|APD|ARN|ART|ASL|ASZ|AUR|AZE|BAD|BAR|BBG|BCH|BED|BER|BGD|BGL|BID|BIN|BIR|BIT|BIW|BKS|BLB|BLK|BNA|BOG|BOH|BOR|BOT|BRA|BRB|BRG|BRK|BRL|BRV|BSB|BSK|BTF|BÜD|BUL|BÜR|BÜS|BÜZ|CAS|CHA|CLP|CLZ|COC|COE|CUX|DAH|DAN|DAU|DBR|DEG|DEL|DGF|DIL|DIN|DIZ|DKB|DLG|DON|DUD|DÜW|EBE|EBN|EBS|ECK|EIC|EIL|EIN|EIS|EMD|EMS|ERB|ERH|ERK|ERZ|ESB|ESW|FDB|FDS|FEU|FFB|FKB|FLÖ|FOR|FRG|FRI|FRW|FTL|FÜS|GAN|GAP|GDB|GEL|GEO|GER|GHA|GHC|GLA|GMN|GNT|GOA|GOH|GRA|GRH|GRI|GRM|GRZ|GTH|GUB|GUN|GVM|HAB|HAL|HAM|HAS|HBN|HBS|HCH|HDH|HDL|HEB|HEF|HEI|HER|HET|HGN|HGW|HHM|HIG|HIP|HMÜ|HOG|HOH|HOL|HOM|HOR|HÖS|HOT|HRO|HSK|HST|HVL|HWI|IGB|ILL|JÜL|KEH|KEL|KEM|KIB|KLE|KLZ|KÖN|KÖT|KÖZ|KRU|KÜN|KUS|KYF|LAN|LAU|LBS|LBZ|LDK|LDS|LEO|LER|LEV|LIB|LIF|LIP|LÖB|LOS|LRO|LSZ|LÜN|LUP|LWL|MAB|MAI|MAK|MAL|MED|MEG|MEI|MEK|MEL|MER|MET|MGH|MGN|MHL|MIL|MKK|MOD|MOL|MON|MOS|MSE|MSH|MSP|MST|MTK|MTL|MÜB|MÜR|MYK|MZG|NAB|NAI|NAU|NDH|NEA|NEB|NEC|NEN|NES|NEW|NMB|NMS|NOH|NOL|NOM|NOR|NVP|NWM|OAL|OBB|OBG|OCH|OHA|ÖHR|OHV|OHZ|OPR|OSL|OVI|OVL|OVP|PAF|PAN|PAR|PCH|PEG|PIR|PLÖ|PRÜ|QFT|QLB|RDG|REG|REH|REI|RID|RIE|ROD|ROF|ROK|ROL|ROS|ROT|ROW|RSL|RÜD|RÜG|SAB|SAD|SAN|SAW|SBG|SBK|SCZ|SDH|SDL|SDT|SEB|SEE|SEF|SEL|SFB|SFT|SGH|SHA|SHG|SHK|SHL|SIG|SIM|SLE|SLF|SLK|SLN|SLS|SLÜ|SLZ|SMÜ|SOB|SOG|SOK|SÖM|SON|SPB|SPN|SRB|SRO|STA|STB|STD|STE|STL|SUL|SÜW|SWA|SZB|TBB|TDO|TET|TIR|TÖL|TUT|UEM|UER|UFF|USI|VAI|VEC|VER|VIB|VIE|VIT|VOH|WAF|WAK|WAN|WAR|WAT|WBS|WDA|WEL|WEN|WER|WES|WHV|WIL|WIS|WIT|WIZ|WLG|WMS|WND|WOB|WOH|WOL|WOR|WOS|WRN|WSF|WST|WSW|WTL|WTM|WUG|WÜM|WUN|WUR|WZL|ZEL|ZIG)[- ]?(([A-Z][- ]?\d{1,4})|([A-Z]{2}[- ]?\d{1,3})))[- ]?(E|H)?$/.test(o)},"de-LI":function(o){return/^FL[- ]?\d{1,5}[UZ]?$/.test(o)},"en-IN":function(o){return/^[A-Z]{2}[ -]?[0-9]{1,2}(?:[ -]?[A-Z])(?:[ -]?[A-Z]*)?[ -]?[0-9]{4}$/.test(o)},"es-AR":function(o){return/^(([A-Z]{2} ?[0-9]{3} ?[A-Z]{2})|([A-Z]{3} ?[0-9]{3}))$/.test(o)},"fi-FI":function(o){return/^(?=.{4,7})(([A-Z]{1,3}|[0-9]{1,3})[\s-]?([A-Z]{1,3}|[0-9]{1,5}))$/.test(o)},"hu-HU":function(o){return/^((((?!AAA)(([A-NPRSTVZWXY]{1})([A-PR-Z]{1})([A-HJ-NPR-Z]))|(A[ABC]I)|A[ABC]O|A[A-W]Q|BPI|BPO|UCO|UDO|XAO)-(?!000)\d{3})|(M\d{6})|((CK|DT|CD|HC|H[ABEFIKLMNPRSTVX]|MA|OT|R[A-Z]) \d{2}-\d{2})|(CD \d{3}-\d{3})|(C-(C|X) \d{4})|(X-(A|B|C) \d{4})|(([EPVZ]-\d{5}))|(S A[A-Z]{2} \d{2})|(SP \d{2}-\d{2}))$/.test(o)},"pt-BR":function(o){return/^[A-Z]{3}[ -]?[0-9][A-Z][0-9]{2}|[A-Z]{3}[ -]?[0-9]{4}$/.test(o)},"pt-PT":function(o){return/^([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})$/.test(o)},"sq-AL":function(o){return/^[A-Z]{2}[- ]?((\d{3}[- ]?(([A-Z]{2})|T))|(R[- ]?\d{3}))$/.test(o)},"sv-SE":function(o){return/^[A-HJ-PR-UW-Z]{3} ?[\d]{2}[A-HJ-PR-UW-Z1-9]$|(^[A-ZÅÄÖ ]{2,7}$)/.test(o.trim())},"en-PK":function(o){return/(^[A-Z]{2}((\s|-){0,1})[0-9]{3,4}((\s|-)[0-9]{2}){0,1}$)|(^[A-Z]{3}((\s|-){0,1})[0-9]{3,4}((\s|-)[0-9]{2}){0,1}$)|(^[A-Z]{4}((\s|-){0,1})[0-9]{3,4}((\s|-)[0-9]{2}){0,1}$)|(^[A-Z]((\s|-){0,1})[0-9]{4}((\s|-)[0-9]{2}){0,1}$)/.test(o.trim())}};function a(s,o){if((0,n.default)(s),o in i)return i[o](s);if(o==="any"){for(var l in i){var u=i[l];if(u(s))return!0}return!1}throw new Error("Invalid locale '".concat(o,"'"))}e.exports=t.default,e.exports.default=t.default})(a$,a$.exports);var bat=a$.exports,s$={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=g;var n=i(dl),r=i(Ht);function i(b){return b&&b.__esModule?b:{default:b}}var a=/^[A-Z]$/,s=/^[a-z]$/,o=/^[0-9]$/,l=/^[-#!$@£%^&*()_+|~=`{}\[\]:";'<>?,.\/\\ ]$/,u={minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1,returnScore:!1,pointsPerUnique:1,pointsPerRepeat:.5,pointsForContainingLower:10,pointsForContainingUpper:10,pointsForContainingNumber:10,pointsForContainingSymbol:10};function d(b){var S={};return Array.from(b).forEach(function(E){var w=S[E];w?S[E]+=1:S[E]=1}),S}function f(b){var S=d(b),E={length:b.length,uniqueChars:Object.keys(S).length,uppercaseCount:0,lowercaseCount:0,numberCount:0,symbolCount:0};return Object.keys(S).forEach(function(w){a.test(w)?E.uppercaseCount+=S[w]:s.test(w)?E.lowercaseCount+=S[w]:o.test(w)?E.numberCount+=S[w]:l.test(w)&&(E.symbolCount+=S[w])}),E}function p(b,S){var E=0;return E+=b.uniqueChars*S.pointsPerUnique,E+=(b.length-b.uniqueChars)*S.pointsPerRepeat,b.lowercaseCount>0&&(E+=S.pointsForContainingLower),b.uppercaseCount>0&&(E+=S.pointsForContainingUpper),b.numberCount>0&&(E+=S.pointsForContainingNumber),b.symbolCount>0&&(E+=S.pointsForContainingSymbol),E}function g(b){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;(0,r.default)(b);var E=f(b);return S=(0,n.default)(S||{},u),S.returnScore?p(E,S):E.length>=S.minLength&&E.lowercaseCount>=S.minLowercase&&E.uppercaseCount>=S.minUppercase&&E.numberCount>=S.minNumbers&&E.symbolCount>=S.minSymbols}e.exports=t.default,e.exports.default=t.default})(s$,s$.exports);var yat=s$.exports,pT={};function o$(e){"@babel/helpers - typeof";return o$=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o$(e)}Object.defineProperty(pT,"__esModule",{value:!0});pT.default=Tat;pT.vatMatchers=void 0;var pne=Sat(Ht),vat=Oat(Q1);function Vge(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Vge=function(i){return i?n:t})(e)}function Oat(e,t){if(e&&e.__esModule)return e;if(e===null||o$(e)!="object"&&typeof e!="function")return{default:e};var n=Vge(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&{}.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function Sat(e){return e&&e.__esModule?e:{default:e}}var Eat=function(t){var n=t.match(/^(AU)?(\d{11})$/);if(!n)return!1;var r=[10,1,3,5,7,9,11,13,15,17,19];t=t.replace(/^AU/,"");for(var i=(parseInt(t.slice(0,1),10)-1).toString()+t.slice(1),a=0,s=0;s<11;s++)a+=r[s]*i.charAt(s);return a!==0&&a%89===0},wat=function(t){var n=function(i){var a=i.pop(),s=[5,4,3,2,7,6,5,4],o=(11-i.reduce(function(l,u,d){return l+u*s[d]},0)%11)%11;return a===o};return/^(CHE[- ]?)?(\d{9}|(\d{3}\.\d{3}\.\d{3})|(\d{3} \d{3} \d{3})) ?(TVA|MWST|IVA)?$/.test(t)&&n(t.match(/\d/g).map(function(r){return+r}))},xat=function(t){var n=t.match(/^(PT)?(\d{9})$/);if(!n)return!1;var r=n[2],i=11-vat.reverseMultiplyAndSum(r.split("").slice(0,8).map(function(a){return parseInt(a,10)}),9)%11;return i>9?parseInt(r[8],10)===0:i===parseInt(r[8],10)},mne=pT.vatMatchers={AT:function(t){return/^(AT)?U\d{8}$/.test(t)},BE:function(t){return/^(BE)?\d{10}$/.test(t)},BG:function(t){return/^(BG)?\d{9,10}$/.test(t)},HR:function(t){return/^(HR)?\d{11}$/.test(t)},CY:function(t){return/^(CY)?\w{9}$/.test(t)},CZ:function(t){return/^(CZ)?\d{8,10}$/.test(t)},DK:function(t){return/^(DK)?\d{8}$/.test(t)},EE:function(t){return/^(EE)?\d{9}$/.test(t)},FI:function(t){return/^(FI)?\d{8}$/.test(t)},FR:function(t){return/^(FR)?\w{2}\d{9}$/.test(t)},DE:function(t){return/^(DE)?\d{9}$/.test(t)},EL:function(t){return/^(EL)?\d{9}$/.test(t)},HU:function(t){return/^(HU)?\d{8}$/.test(t)},IE:function(t){return/^(IE)?\d{7}\w{1}(W)?$/.test(t)},IT:function(t){return/^(IT)?\d{11}$/.test(t)},LV:function(t){return/^(LV)?\d{11}$/.test(t)},LT:function(t){return/^(LT)?\d{9,12}$/.test(t)},LU:function(t){return/^(LU)?\d{8}$/.test(t)},MT:function(t){return/^(MT)?\d{8}$/.test(t)},NL:function(t){return/^(NL)?\d{9}B\d{2}$/.test(t)},PL:function(t){return/^(PL)?(\d{10}|(\d{3}-\d{3}-\d{2}-\d{2})|(\d{3}-\d{2}-\d{2}-\d{3}))$/.test(t)},PT:xat,RO:function(t){return/^(RO)?\d{2,10}$/.test(t)},SK:function(t){return/^(SK)?\d{10}$/.test(t)},SI:function(t){return/^(SI)?\d{8}$/.test(t)},ES:function(t){return/^(ES)?\w\d{7}[A-Z]$/.test(t)},SE:function(t){return/^(SE)?\d{12}$/.test(t)},AL:function(t){return/^(AL)?\w{9}[A-Z]$/.test(t)},MK:function(t){return/^(MK)?\d{13}$/.test(t)},AU:Eat,BY:function(t){return/^(УНП )?\d{9}$/.test(t)},CA:function(t){return/^(CA)?\d{9}$/.test(t)},IS:function(t){return/^(IS)?\d{5,6}$/.test(t)},IN:function(t){return/^(IN)?\d{15}$/.test(t)},ID:function(t){return/^(ID)?(\d{15}|(\d{2}.\d{3}.\d{3}.\d{1}-\d{3}.\d{3}))$/.test(t)},IL:function(t){return/^(IL)?\d{9}$/.test(t)},KZ:function(t){return/^(KZ)?\d{12}$/.test(t)},NZ:function(t){return/^(NZ)?\d{9}$/.test(t)},NG:function(t){return/^(NG)?(\d{12}|(\d{8}-\d{4}))$/.test(t)},NO:function(t){return/^(NO)?\d{9}MVA$/.test(t)},PH:function(t){return/^(PH)?(\d{12}|\d{3} \d{3} \d{3} \d{3})$/.test(t)},RU:function(t){return/^(RU)?(\d{10}|\d{12})$/.test(t)},SM:function(t){return/^(SM)?\d{5}$/.test(t)},SA:function(t){return/^(SA)?\d{15}$/.test(t)},RS:function(t){return/^(RS)?\d{9}$/.test(t)},CH:wat,TR:function(t){return/^(TR)?\d{10}$/.test(t)},UA:function(t){return/^(UA)?\d{12}$/.test(t)},GB:function(t){return/^GB((\d{3} \d{4} ([0-8][0-9]|9[0-6]))|(\d{9} \d{3})|(((GD[0-4])|(HA[5-9]))[0-9]{2}))$/.test(t)},UZ:function(t){return/^(UZ)?\d{9}$/.test(t)},AR:function(t){return/^(AR)?\d{11}$/.test(t)},BO:function(t){return/^(BO)?\d{7}$/.test(t)},BR:function(t){return/^(BR)?((\d{2}.\d{3}.\d{3}\/\d{4}-\d{2})|(\d{3}.\d{3}.\d{3}-\d{2}))$/.test(t)},CL:function(t){return/^(CL)?\d{8}-\d{1}$/.test(t)},CO:function(t){return/^(CO)?\d{10}$/.test(t)},CR:function(t){return/^(CR)?\d{9,12}$/.test(t)},EC:function(t){return/^(EC)?\d{13}$/.test(t)},SV:function(t){return/^(SV)?\d{4}-\d{6}-\d{3}-\d{1}$/.test(t)},GT:function(t){return/^(GT)?\d{7}-\d{1}$/.test(t)},HN:function(t){return/^(HN)?$/.test(t)},MX:function(t){return/^(MX)?\w{3,4}\d{6}\w{3}$/.test(t)},NI:function(t){return/^(NI)?\d{3}-\d{6}-\d{4}\w{1}$/.test(t)},PA:function(t){return/^(PA)?$/.test(t)},PY:function(t){return/^(PY)?\d{6,8}-\d{1}$/.test(t)},PE:function(t){return/^(PE)?\d{11}$/.test(t)},DO:function(t){return/^(DO)?(\d{11}|(\d{3}-\d{7}-\d{1})|[1,4,5]{1}\d{8}|([1,4,5]{1})-\d{2}-\d{5}-\d{1})$/.test(t)},UY:function(t){return/^(UY)?\d{12}$/.test(t)},VE:function(t){return/^(VE)?[J,G,V,E]{1}-(\d{9}|(\d{8}-\d{1}))$/.test(t)}};function Tat(e,t){if((0,pne.default)(e),(0,pne.default)(t),t in mne)return mne[t](e);throw new Error("Invalid country code: '".concat(t,"'"))}(function(e,t){function n(Dn){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(oa){return typeof oa}:function(oa){return oa&&typeof Symbol=="function"&&oa.constructor===Symbol&&oa!==Symbol.prototype?"symbol":typeof oa},n(Dn)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=it(OH),i=it(Nge),a=it(hrt),s=it(prt),o=it(mrt),l=it(grt),u=it(brt),d=it(Mge),f=it(yrt),p=it(vrt),g=it(pI),b=it(Ort),S=it(SH),E=it(Lge),w=it(Srt),x=it(Ert),k=it(wrt),_=it(xrt),C=qt(oT),R=qt(lT),N=it(Irt),M=it(Nrt),U=it(Drt),F=it(Prt),G=it(Mrt),V=it(Lrt),ie=it($rt),ne=it(zO),q=it(HO),re=it(Grt),ee=it(Vrt),Z=it(Yrt),se=it(Zrt),W=it(EH),Pe=qt(UO),Ee=it(Krt),X=it($ge),Re=it(Jrt),Ue=it(eit),oe=it(tit),rt=it(nit),qe=it(rit),et=it(iit),Tt=qt(uT),ct=it(pit),Pt=it(mit),Mt=it(git),ot=it(bit),wt=it(yit),vt=it(vit),Wt=it(Oit),z=it(Pge),K=it(Sit),ue=it(Eit),_e=it(wit),Ie=it(xit),Ce=it(Tit),Qe=it(Uge),Ot=it(kit),Ne=it(Ait),ye=it(_it),ve=it(Cit),ke=it(Rit),ze=it(Iit),At=it(Lit),Zt=qt(cT),tt=it(Uit),Qt=it(zit),Vt=it(Hit),Gt=dT,vn=it(Vit),pr=it(qit),Cr=it(Yit),Tr=it(jO),jr=it(Zit),vi=it(fT),si=it(eat),Ai=it(tat),oi=it(Bge),ja=it(nat),_i=it(rat),Os=it(iat),Ci=it(aat),Mr=it(sat),Kn=qt(hT),Wr=it(Wge),We=it(jge),lt=it(Qge),de=it(cat),me=it(dat),Be=it(fat),Ke=it(hat),yt=it(Gge),Xt=it(pat),Le=it(mat),Te=it(gat),dt=it(bat),Je=it(yat),kt=it(pT);function _t(Dn){if(typeof WeakMap!="function")return null;var oa=new WeakMap,la=new WeakMap;return(_t=function(Ps){return Ps?la:oa})(Dn)}function qt(Dn,oa){if(Dn&&Dn.__esModule)return Dn;if(Dn===null||n(Dn)!="object"&&typeof Dn!="function")return{default:Dn};var la=_t(oa);if(la&&la.has(Dn))return la.get(Dn);var Wa={__proto__:null},Ps=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Qa in Dn)if(Qa!=="default"&&{}.hasOwnProperty.call(Dn,Qa)){var va=Ps?Object.getOwnPropertyDescriptor(Dn,Qa):null;va&&(va.get||va.set)?Object.defineProperty(Wa,Qa,va):Wa[Qa]=Dn[Qa]}return Wa.default=Dn,la&&la.set(Dn,Wa),Wa}function it(Dn){return Dn&&Dn.__esModule?Dn:{default:Dn}}var Vn="13.12.0",Ri={version:Vn,toDate:r.default,toFloat:i.default,toInt:a.default,toBoolean:s.default,equals:o.default,contains:l.default,matches:u.default,isEmail:d.default,isURL:f.default,isMACAddress:p.default,isIP:g.default,isIPRange:b.default,isFQDN:S.default,isBoolean:x.default,isIBAN:Tt.default,isBIC:ct.default,isAbaRouting:_.default,isAlpha:C.default,isAlphaLocales:C.locales,isAlphanumeric:R.default,isAlphanumericLocales:R.locales,isNumeric:N.default,isPassportNumber:M.default,isPort:U.default,isLowercase:F.default,isUppercase:G.default,isAscii:ie.default,isFullWidth:ne.default,isHalfWidth:q.default,isVariableWidth:re.default,isMultibyte:ee.default,isSemVer:Z.default,isSurrogatePair:se.default,isInt:W.default,isIMEI:V.default,isFloat:Pe.default,isFloatLocales:Pe.locales,isDecimal:Ee.default,isHexadecimal:X.default,isOctal:Re.default,isDivisibleBy:Ue.default,isHexColor:oe.default,isRgbColor:rt.default,isHSL:qe.default,isISRC:et.default,isMD5:Pt.default,isHash:Mt.default,isJWT:ot.default,isJSON:wt.default,isEmpty:vt.default,isLength:Wt.default,isLocale:k.default,isByteLength:z.default,isUUID:K.default,isMongoId:ue.default,isAfter:_e.default,isBefore:Ie.default,isIn:Ce.default,isLuhnNumber:Qe.default,isCreditCard:Ot.default,isIdentityCard:Ne.default,isEAN:ye.default,isISIN:ve.default,isISBN:ke.default,isISSN:ze.default,isMobilePhone:Zt.default,isMobilePhoneLocales:Zt.locales,isPostalCode:Kn.default,isPostalCodeLocales:Kn.locales,isEthereumAddress:tt.default,isCurrency:Qt.default,isBtcAddress:Vt.default,isISO6346:Gt.isISO6346,isFreightContainerID:Gt.isFreightContainerID,isISO6391:vn.default,isISO8601:pr.default,isRFC3339:Cr.default,isISO31661Alpha2:Tr.default,isISO31661Alpha3:jr.default,isISO4217:vi.default,isBase32:si.default,isBase58:Ai.default,isBase64:oi.default,isDataURI:ja.default,isMagnetURI:_i.default,isMailtoURI:Os.default,isMimeType:Ci.default,isLatLong:Mr.default,ltrim:Wr.default,rtrim:We.default,trim:lt.default,escape:de.default,unescape:me.default,stripLow:Be.default,whitelist:Ke.default,blacklist:yt.default,isWhitelisted:Xt.default,normalizeEmail:Le.default,toString,isSlug:Te.default,isStrongPassword:Je.default,isTaxID:At.default,isDate:E.default,isTime:w.default,isLicensePlate:dt.default,isVAT:kt.default,ibanLocales:Tt.locales};t.default=Ri,e.exports=t.default,e.exports.default=t.default})(OM,OM.exports);var kat=OM.exports;const Aat=ql(kat),_at=e=>Aat.isURL(e),Cat=(e,t,n)=>{const{from:r,to:i}=t.state.selection.main,s=`[${t.state.sliceDoc(r,i)}](${e})`;n.update((o,l)=>{o.content.edit(r,i,s),l.set({selection:o.content.indexRangeToPosRange([r+s.length,r+s.length])})}),t.dispatch({changes:{from:r,to:i,insert:s},selection:{anchor:r+s.length}})},Rat=e=>rn.domEventHandlers({paste(t,n){var s;const r=(s=t.clipboardData)==null?void 0:s.getData("text/plain");if(!r||!_at(r))return;const{from:i,to:a}=n.state.selection.main;i!==a&&(Cat(r,n,e),t.preventDefault())}});var l$={exports:{}};(function(e,t){var n={};(function(r,i){i(t)})(Tf,function(r){var i=Object.defineProperty,a=(v,c,h)=>c in v?i(v,c,{enumerable:!0,configurable:!0,writable:!0,value:h}):v[c]=h,s=(v,c,h)=>a(v,typeof c!="symbol"?c+"":c,h),o;(function(v){v[v.Canceled=1]="Canceled",v[v.Unknown=2]="Unknown",v[v.InvalidArgument=3]="InvalidArgument",v[v.DeadlineExceeded=4]="DeadlineExceeded",v[v.NotFound=5]="NotFound",v[v.AlreadyExists=6]="AlreadyExists",v[v.PermissionDenied=7]="PermissionDenied",v[v.ResourceExhausted=8]="ResourceExhausted",v[v.FailedPrecondition=9]="FailedPrecondition",v[v.Aborted=10]="Aborted",v[v.OutOfRange=11]="OutOfRange",v[v.Unimplemented=12]="Unimplemented",v[v.Internal=13]="Internal",v[v.Unavailable=14]="Unavailable",v[v.DataLoss=15]="DataLoss",v[v.Unauthenticated=16]="Unauthenticated"})(o||(o={}));function l(v){const c=o[v];return typeof c!="string"?v.toString():c[0].toLowerCase()+c.substring(1).replace(/[A-Z]/g,h=>"_"+h.toLowerCase())}class u extends Error{constructor(c,h=o.Unknown,y,T,P){super(d(c,h)),this.name="ConnectError",Object.setPrototypeOf(this,new.target.prototype),this.rawMessage=c,this.code=h,this.metadata=new Headers(y??{}),this.details=T??[],this.cause=P}static from(c,h=o.Unknown){return c instanceof u?c:c instanceof Error?c.name=="AbortError"?new u(c.message,o.Canceled):new u(c.message,h,void 0,void 0,c):new u(String(c),h,void 0,void 0,c)}static[Symbol.hasInstance](c){return c instanceof Error?Object.getPrototypeOf(c)===u.prototype?!0:c.name==="ConnectError"&&"code"in c&&typeof c.code=="number"&&"metadata"in c&&"details"in c&&Array.isArray(c.details)&&"rawMessage"in c&&typeof c.rawMessage=="string"&&"cause"in c:!1}findDetails(c){const h="typeName"in c?{findMessage:T=>T===c.typeName?c:void 0}:c,y=[];for(const T of this.details){if("getType"in T){h.findMessage(T.getType().typeName)&&y.push(T);continue}const P=h.findMessage(T.type);if(P)try{y.push(P.fromBinary(T.value))}catch{}}return y}}function d(v,c){return v.length?`[${l(c)}] ${v}`:`[${l(c)}]`}function f(v,c){if(!v)throw new Error(c)}const p=34028234663852886e22,g=-34028234663852886e22,b=4294967295,S=2147483647,E=-2147483648;function w(v){if(typeof v!="number")throw new Error("invalid int 32: "+typeof v);if(!Number.isInteger(v)||v>S||vb||v<0)throw new Error("invalid uint 32: "+v)}function k(v){if(typeof v!="number")throw new Error("invalid float 32: "+typeof v);if(Number.isFinite(v)&&(v>p||v({no:T.no,name:T.name,localName:v[T.no]})))}function N(v,c,h){const y=Object.create(null),T=Object.create(null),P=[];for(const H of c){const Y=U(H);P.push(Y),y[H.name]=Y,T[H.no]=Y}return{typeName:v,values:P,findName(H){return y[H]},findNumber(H){return T[H]}}}function M(v,c,h){const y={};for(const T of c){const P=U(T);y[P.localName]=P.no,y[P.no]=P.localName}return R(y,v,c),y}function U(v){return"localName"in v?v:Object.assign(Object.assign({},v),{localName:v.name})}class F{equals(c){return this.getType().runtime.util.equals(this.getType(),this,c)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(c,h){const y=this.getType(),T=y.runtime.bin,P=T.makeReadOptions(h);return T.readMessage(this,P.readerFactory(c),c.byteLength,P),this}fromJson(c,h){const y=this.getType(),T=y.runtime.json,P=T.makeReadOptions(h);return T.readMessage(y,c,P,this),this}fromJsonString(c,h){let y;try{y=JSON.parse(c)}catch(T){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${T instanceof Error?T.message:String(T)}`)}return this.fromJson(y,h)}toBinary(c){const h=this.getType(),y=h.runtime.bin,T=y.makeWriteOptions(c),P=T.writerFactory();return y.writeMessage(this,P,T),P.finish()}toJson(c){const h=this.getType(),y=h.runtime.json,T=y.makeWriteOptions(c);return y.writeMessage(this,T)}toJsonString(c){var h;const y=this.toJson(c);return JSON.stringify(y,null,(h=c==null?void 0:c.prettySpaces)!==null&&h!==void 0?h:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}}function G(v,c,h,y){var T;const P=(T=y==null?void 0:y.localName)!==null&&T!==void 0?T:c.substring(c.lastIndexOf(".")+1),H={[P]:function(Y){v.util.initFields(this),v.util.initPartial(Y,this)}}[P];return Object.setPrototypeOf(H.prototype,new F),Object.assign(H,{runtime:v,typeName:c,fields:v.util.newFieldList(h),fromBinary(Y,pe){return new H().fromBinary(Y,pe)},fromJson(Y,pe){return new H().fromJson(Y,pe)},fromJsonString(Y,pe){return new H().fromJsonString(Y,pe)},equals(Y,pe){return v.util.equals(H,Y,pe)}}),H}function V(){let v=0,c=0;for(let y=0;y<28;y+=7){let T=this.buf[this.pos++];if(v|=(T&127)<>4,!(h&128))return this.assertBounds(),[v,c];for(let y=3;y<=31;y+=7){let T=this.buf[this.pos++];if(c|=(T&127)<>>P,Y=!(!(H>>>7)&&c==0),pe=(Y?H|128:H)&255;if(h.push(pe),!Y)return}const y=v>>>28&15|(c&7)<<4,T=!!(c>>3);if(h.push((T?y|128:y)&255),!!T){for(let P=3;P<31;P=P+7){const H=c>>>P,Y=!!(H>>>7),pe=(Y?H|128:H)&255;if(h.push(pe),!Y)return}h.push(c>>>31&1)}}const ne=4294967296;function q(v){const c=v[0]==="-";c&&(v=v.slice(1));const h=1e6;let y=0,T=0;function P(H,Y){const pe=Number(v.slice(H,Y));T*=h,y=y*h+pe,y>=ne&&(T=T+(y/ne|0),y=y%ne)}return P(-24,-18),P(-18,-12),P(-12,-6),P(-6),c?W(y,T):se(y,T)}function re(v,c){let h=se(v,c);const y=h.hi&2147483648;y&&(h=W(h.lo,h.hi));const T=ee(h.lo,h.hi);return y?"-"+T:T}function ee(v,c){if({lo:v,hi:c}=Z(v,c),c<=2097151)return String(ne*c+v);const h=v&16777215,y=(v>>>24|c<<8)&16777215,T=c>>16&65535;let P=h+y*6777216+T*6710656,H=y+T*8147497,Y=T*2;const pe=1e7;return P>=pe&&(H+=Math.floor(P/pe),P%=pe),H>=pe&&(Y+=Math.floor(H/pe),H%=pe),Y.toString()+Pe(H)+Pe(P)}function Z(v,c){return{lo:v>>>0,hi:c>>>0}}function se(v,c){return{lo:v|0,hi:c|0}}function W(v,c){return c=~c,v?v=~v+1:c+=1,se(v,c)}const Pe=v=>{const c=String(v);return"0000000".slice(c.length)+c};function Ee(v,c){if(v>=0){for(;v>127;)c.push(v&127|128),v=v>>>7;c.push(v)}else{for(let h=0;h<9;h++)c.push(v&127|128),v=v>>7;c.push(1)}}function X(){let v=this.buf[this.pos++],c=v&127;if(!(v&128))return this.assertBounds(),c;if(v=this.buf[this.pos++],c|=(v&127)<<7,!(v&128))return this.assertBounds(),c;if(v=this.buf[this.pos++],c|=(v&127)<<14,!(v&128))return this.assertBounds(),c;if(v=this.buf[this.pos++],c|=(v&127)<<21,!(v&128))return this.assertBounds(),c;v=this.buf[this.pos++],c|=(v&15)<<28;for(let h=5;v&128&&h<10;h++)v=this.buf[this.pos++];if(v&128)throw new Error("invalid varint");return this.assertBounds(),c>>>0}function Re(){const v=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof v.getBigInt64=="function"&&typeof v.getBigUint64=="function"&&typeof v.setBigInt64=="function"&&typeof v.setBigUint64=="function"&&(typeof process!="object"||typeof n!="object"||n.BUF_BIGINT_DISABLE!=="1")){const T=BigInt("-9223372036854775808"),P=BigInt("9223372036854775807"),H=BigInt("0"),Y=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(pe){const be=typeof pe=="bigint"?pe:BigInt(pe);if(be>P||beY||bef(/^-?[0-9]+$/.test(T),`int64 invalid: ${T}`),y=T=>f(/^[0-9]+$/.test(T),`uint64 invalid: ${T}`);return{zero:"0",supported:!1,parse(T){return typeof T!="string"&&(T=T.toString()),h(T),T},uParse(T){return typeof T!="string"&&(T=T.toString()),y(T),T},enc(T){return typeof T!="string"&&(T=T.toString()),h(T),q(T)},uEnc(T){return typeof T!="string"&&(T=T.toString()),y(T),q(T)},dec(T,P){return re(T,P)},uDec(T,P){return ee(T,P)}}}const Ue=Re();var oe;(function(v){v[v.DOUBLE=1]="DOUBLE",v[v.FLOAT=2]="FLOAT",v[v.INT64=3]="INT64",v[v.UINT64=4]="UINT64",v[v.INT32=5]="INT32",v[v.FIXED64=6]="FIXED64",v[v.FIXED32=7]="FIXED32",v[v.BOOL=8]="BOOL",v[v.STRING=9]="STRING",v[v.BYTES=12]="BYTES",v[v.UINT32=13]="UINT32",v[v.SFIXED32=15]="SFIXED32",v[v.SFIXED64=16]="SFIXED64",v[v.SINT32=17]="SINT32",v[v.SINT64=18]="SINT64"})(oe||(oe={}));var rt;(function(v){v[v.BIGINT=0]="BIGINT",v[v.STRING=1]="STRING"})(rt||(rt={}));function qe(v,c,h){if(c===h)return!0;if(v==oe.BYTES){if(!(c instanceof Uint8Array)||!(h instanceof Uint8Array)||c.length!==h.length)return!1;for(let y=0;y>>0)}raw(c){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(c),this}uint32(c){for(x(c);c>127;)this.buf.push(c&127|128),c=c>>>7;return this.buf.push(c),this}int32(c){return w(c),Ee(c,this.buf),this}bool(c){return this.buf.push(c?1:0),this}bytes(c){return this.uint32(c.byteLength),this.raw(c)}string(c){let h=this.textEncoder.encode(c);return this.uint32(h.byteLength),this.raw(h)}float(c){k(c);let h=new Uint8Array(4);return new DataView(h.buffer).setFloat32(0,c,!0),this.raw(h)}double(c){let h=new Uint8Array(8);return new DataView(h.buffer).setFloat64(0,c,!0),this.raw(h)}fixed32(c){x(c);let h=new Uint8Array(4);return new DataView(h.buffer).setUint32(0,c,!0),this.raw(h)}sfixed32(c){w(c);let h=new Uint8Array(4);return new DataView(h.buffer).setInt32(0,c,!0),this.raw(h)}sint32(c){return w(c),c=(c<<1^c>>31)>>>0,Ee(c,this.buf),this}sfixed64(c){let h=new Uint8Array(8),y=new DataView(h.buffer),T=Ue.enc(c);return y.setInt32(0,T.lo,!0),y.setInt32(4,T.hi,!0),this.raw(h)}fixed64(c){let h=new Uint8Array(8),y=new DataView(h.buffer),T=Ue.uEnc(c);return y.setInt32(0,T.lo,!0),y.setInt32(4,T.hi,!0),this.raw(h)}int64(c){let h=Ue.enc(c);return ie(h.lo,h.hi,this.buf),this}sint64(c){let h=Ue.enc(c),y=h.hi>>31,T=h.lo<<1^y,P=(h.hi<<1|h.lo>>>31)^y;return ie(T,P,this.buf),this}uint64(c){let h=Ue.uEnc(c);return ie(h.lo,h.hi,this.buf),this}}class Mt{constructor(c,h){this.varint64=V,this.uint32=X,this.buf=c,this.len=c.length,this.pos=0,this.view=new DataView(c.buffer,c.byteOffset,c.byteLength),this.textDecoder=h??new TextDecoder}tag(){let c=this.uint32(),h=c>>>3,y=c&7;if(h<=0||y<0||y>5)throw new Error("illegal tag: field no "+h+" wire type "+y);return[h,y]}skip(c,h){let y=this.pos;switch(c){case ct.Varint:for(;this.buf[this.pos++]&128;);break;case ct.Bit64:this.pos+=4;case ct.Bit32:this.pos+=4;break;case ct.LengthDelimited:let T=this.uint32();this.pos+=T;break;case ct.StartGroup:for(;;){const[P,H]=this.tag();if(H===ct.EndGroup){if(h!==void 0&&P!==h)throw new Error("invalid end group tag");break}this.skip(H,P)}break;default:throw new Error("cant skip wire type "+c)}return this.assertBounds(),this.buf.subarray(y,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let c=this.uint32();return c>>>1^-(c&1)}int64(){return Ue.dec(...this.varint64())}uint64(){return Ue.uDec(...this.varint64())}sint64(){let[c,h]=this.varint64(),y=-(c&1);return c=(c>>>1|(h&1)<<31)^y,h=h>>>1^y,Ue.dec(c,h)}bool(){let[c,h]=this.varint64();return c!==0||h!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return Ue.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return Ue.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let c=this.uint32(),h=this.pos;return this.pos+=c,this.assertBounds(),this.buf.subarray(h,h+c)}string(){return this.textDecoder.decode(this.bytes())}}function ot(v,c,h,y){let T;return{typeName:c,extendee:h,get field(){if(!T){const P=typeof y=="function"?y():y;P.name=c.split(".").pop(),P.jsonName=`[${c}]`,T=v.util.newFieldList([P]).list()[0]}return T},runtime:v}}function wt(v){const c=v.field.localName,h=Object.create(null);return h[c]=vt(v),[h,()=>h[c]]}function vt(v){const c=v.field;if(c.repeated)return[];if(c.default!==void 0)return c.default;switch(c.kind){case"enum":return c.T.values[0].no;case"scalar":return et(c.T,c.L);case"message":const h=c.T,y=new h;return h.fieldWrapper?h.fieldWrapper.unwrapField(y):y;case"map":throw"map fields are not allowed to be extensions"}}function Wt(v,c){if(!c.repeated&&(c.kind=="enum"||c.kind=="scalar")){for(let h=v.length-1;h>=0;--h)if(v[h].no==c.no)return[v[h]];return[]}return v.filter(h=>h.no===c.no)}let z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),K=[];for(let v=0;v>4,H=P,T=2;break;case 2:h[y++]=(H&15)<<4|(P&60)>>2,H=P,T=3;break;case 3:h[y++]=(H&3)<<6|P,T=0;break}}if(T==1)throw Error("invalid base64 string.");return h.subarray(0,y)},enc(v){let c="",h=0,y,T=0;for(let P=0;P>2],T=(y&3)<<4,h=1;break;case 1:c+=z[T|y>>4],T=(y&15)<<2,h=2;break;case 2:c+=z[T|y>>6],c+=z[y&63],h=0;break}return h&&(c+=z[T],c+="=",h==1&&(c+="=")),c}};function _e(v,c,h){Qe(c,v);const y=c.runtime.bin.makeReadOptions(h),T=Wt(v.getType().runtime.bin.listUnknownFields(v),c.field),[P,H]=wt(c);for(const Y of T)c.runtime.bin.readField(P,y.readerFactory(Y.data),c.field,Y.wireType,y);return H()}function Ie(v,c,h,y){Qe(c,v);const T=c.runtime.bin.makeReadOptions(y),P=c.runtime.bin.makeWriteOptions(y);if(Ce(v,c)){const be=v.getType().runtime.bin.listUnknownFields(v).filter(Fe=>Fe.no!=c.field.no);v.getType().runtime.bin.discardUnknownFields(v);for(const Fe of be)v.getType().runtime.bin.onUnknownField(v,Fe.no,Fe.wireType,Fe.data)}const H=P.writerFactory();let Y=c.field;!Y.opt&&!Y.repeated&&(Y.kind=="enum"||Y.kind=="scalar")&&(Y=Object.assign(Object.assign({},c.field),{opt:!0})),c.runtime.bin.writeField(Y,h,H,P);const pe=T.readerFactory(H.finish());for(;pe.posy.no==c.field.no)}function Qe(v,c){f(v.extendee.typeName==c.getType().typeName,`extension ${v.typeName} can only be applied to message ${v.extendee.typeName}`)}function Ot(v,c){const h=v.localName;if(v.repeated)return c[h].length>0;if(v.oneof)return c[v.oneof.localName].case===h;switch(v.kind){case"enum":case"scalar":return v.opt||v.req?c[h]!==void 0:v.kind=="enum"?c[h]!==v.T.values[0].no:!Tt(v.T,c[h]);case"message":return c[h]!==void 0;case"map":return Object.keys(c[h]).length>0}}function Ne(v,c){const h=v.localName,y=!v.opt&&!v.req;if(v.repeated)c[h]=[];else if(v.oneof)c[v.oneof.localName]={case:void 0};else switch(v.kind){case"map":c[h]={};break;case"enum":c[h]=y?v.T.values[0].no:void 0;break;case"scalar":c[h]=y?et(v.T,v.L):void 0;break;case"message":c[h]=void 0;break}}function ye(v,c){if(v===null||typeof v!="object"||!Object.getOwnPropertyNames(F.prototype).every(y=>y in v&&typeof v[y]=="function"))return!1;const h=v.getType();return h===null||typeof h!="function"||!("typeName"in h)||typeof h.typeName!="string"?!1:c===void 0?!0:h.typeName==c.typeName}function ve(v,c){return ye(c)||!v.fieldWrapper?c:v.fieldWrapper.wrapField(c)}oe.DOUBLE,oe.FLOAT,oe.INT64,oe.UINT64,oe.INT32,oe.UINT32,oe.BOOL,oe.STRING,oe.BYTES;const ke={ignoreUnknownFields:!1},ze={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function At(v){return v?Object.assign(Object.assign({},ke),v):ke}function Zt(v){return v?Object.assign(Object.assign({},ze),v):ze}const tt=Symbol(),Qt=Symbol();function Vt(){return{makeReadOptions:At,makeWriteOptions:Zt,readMessage(v,c,h,y){if(c==null||Array.isArray(c)||typeof c!="object")throw new Error(`cannot decode message ${v.typeName} from JSON: ${Gt(c)}`);y=y??new v;const T=new Map,P=h.typeRegistry;for(const[H,Y]of Object.entries(c)){const pe=v.fields.findJsonName(H);if(pe){if(pe.oneof){if(Y===null&&pe.kind=="scalar")continue;const be=T.get(pe.oneof);if(be!==void 0)throw new Error(`cannot decode message ${v.typeName} from JSON: multiple keys for oneof "${pe.oneof.name}" present: "${be}", "${H}"`);T.set(pe.oneof,H)}vn(y,Y,pe,h,v)}else{let be=!1;if(P!=null&&P.findExtension&&H.startsWith("[")&&H.endsWith("]")){const Fe=P.findExtension(H.substring(1,H.length-1));if(Fe&&Fe.extendee.typeName==v.typeName){be=!0;const[xt,gt]=wt(Fe);vn(xt,Y,Fe.field,h,Fe),Ie(y,Fe,gt(),h)}}if(!be&&!h.ignoreUnknownFields)throw new Error(`cannot decode message ${v.typeName} from JSON: key "${H}" is unknown`)}}return y},writeMessage(v,c){const h=v.getType(),y={};let T;try{for(T of h.fields.byNumber()){if(!Ot(T,v)){if(T.req)throw"required field not set";if(!c.emitDefaultValues||!jr(T))continue}const H=T.oneof?v[T.oneof.localName].value:v[T.localName],Y=vi(T,H,c);Y!==void 0&&(y[c.useProtoFieldName?T.name:T.jsonName]=Y)}const P=c.typeRegistry;if(P!=null&&P.findExtensionFor)for(const H of h.runtime.bin.listUnknownFields(v)){const Y=P.findExtensionFor(h.typeName,H.no);if(Y&&Ce(v,Y)){const pe=_e(v,Y,c),be=vi(Y.field,pe,c);be!==void 0&&(y[Y.field.jsonName]=be)}}}catch(P){const H=T?`cannot encode field ${h.typeName}.${T.name} to JSON`:`cannot encode message ${h.typeName} to JSON`,Y=P instanceof Error?P.message:String(P);throw new Error(H+(Y.length>0?`: ${Y}`:""))}return y},readScalar(v,c,h){return Cr(v,c,h??rt.BIGINT,!0)},writeScalar(v,c,h){if(c!==void 0&&(h||Tt(v,c)))return Ai(v,c)},debug:Gt}}function Gt(v){if(v===null)return"null";switch(typeof v){case"object":return Array.isArray(v)?"array":"object";case"string":return v.length>100?"string":`"${v.split('"').join('\\"')}"`;default:return String(v)}}function vn(v,c,h,y,T){let P=h.localName;if(h.repeated){if(f(h.kind!="map"),c===null)return;if(!Array.isArray(c))throw new Error(`cannot decode field ${T.typeName}.${h.name} from JSON: ${Gt(c)}`);const H=v[P];for(const Y of c){if(Y===null)throw new Error(`cannot decode field ${T.typeName}.${h.name} from JSON: ${Gt(Y)}`);switch(h.kind){case"message":H.push(h.T.fromJson(Y,y));break;case"enum":const pe=Tr(h.T,Y,y.ignoreUnknownFields,!0);pe!==Qt&&H.push(pe);break;case"scalar":try{H.push(Cr(h.T,Y,h.L,!0))}catch(be){let Fe=`cannot decode field ${T.typeName}.${h.name} from JSON: ${Gt(Y)}`;throw be instanceof Error&&be.message.length>0&&(Fe+=`: ${be.message}`),new Error(Fe)}break}}}else if(h.kind=="map"){if(c===null)return;if(typeof c!="object"||Array.isArray(c))throw new Error(`cannot decode field ${T.typeName}.${h.name} from JSON: ${Gt(c)}`);const H=v[P];for(const[Y,pe]of Object.entries(c)){if(pe===null)throw new Error(`cannot decode field ${T.typeName}.${h.name} from JSON: map value null`);let be;try{be=pr(h.K,Y)}catch(Fe){let xt=`cannot decode map key for field ${T.typeName}.${h.name} from JSON: ${Gt(c)}`;throw Fe instanceof Error&&Fe.message.length>0&&(xt+=`: ${Fe.message}`),new Error(xt)}switch(h.V.kind){case"message":H[be]=h.V.T.fromJson(pe,y);break;case"enum":const Fe=Tr(h.V.T,pe,y.ignoreUnknownFields,!0);Fe!==Qt&&(H[be]=Fe);break;case"scalar":try{H[be]=Cr(h.V.T,pe,rt.BIGINT,!0)}catch(xt){let gt=`cannot decode map value for field ${T.typeName}.${h.name} from JSON: ${Gt(c)}`;throw xt instanceof Error&&xt.message.length>0&&(gt+=`: ${xt.message}`),new Error(gt)}break}}}else switch(h.oneof&&(v=v[h.oneof.localName]={case:P},P="value"),h.kind){case"message":const H=h.T;if(c===null&&H.typeName!="google.protobuf.Value")return;let Y=v[P];ye(Y)?Y.fromJson(c,y):(v[P]=Y=H.fromJson(c,y),H.fieldWrapper&&!h.oneof&&(v[P]=H.fieldWrapper.unwrapField(Y)));break;case"enum":const pe=Tr(h.T,c,y.ignoreUnknownFields,!1);switch(pe){case tt:Ne(h,v);break;case Qt:break;default:v[P]=pe;break}break;case"scalar":try{const be=Cr(h.T,c,h.L,!1);switch(be){case tt:Ne(h,v);break;default:v[P]=be;break}}catch(be){let Fe=`cannot decode field ${T.typeName}.${h.name} from JSON: ${Gt(c)}`;throw be instanceof Error&&be.message.length>0&&(Fe+=`: ${be.message}`),new Error(Fe)}break}}function pr(v,c){if(v===oe.BOOL)switch(c){case"true":c=!0;break;case"false":c=!1;break}return Cr(v,c,rt.BIGINT,!0).toString()}function Cr(v,c,h,y){if(c===null)return y?et(v,h):tt;switch(v){case oe.DOUBLE:case oe.FLOAT:if(c==="NaN")return Number.NaN;if(c==="Infinity")return Number.POSITIVE_INFINITY;if(c==="-Infinity")return Number.NEGATIVE_INFINITY;if(c===""||typeof c=="string"&&c.trim().length!==c.length||typeof c!="string"&&typeof c!="number")break;const T=Number(c);if(Number.isNaN(T)||!Number.isFinite(T))break;return v==oe.FLOAT&&k(T),T;case oe.INT32:case oe.FIXED32:case oe.SFIXED32:case oe.SINT32:case oe.UINT32:let P;if(typeof c=="number"?P=c:typeof c=="string"&&c.length>0&&c.trim().length===c.length&&(P=Number(c)),P===void 0)break;return v==oe.UINT32||v==oe.FIXED32?x(P):w(P),P;case oe.INT64:case oe.SFIXED64:case oe.SINT64:if(typeof c!="number"&&typeof c!="string")break;const H=Ue.parse(c);return h?H.toString():H;case oe.FIXED64:case oe.UINT64:if(typeof c!="number"&&typeof c!="string")break;const Y=Ue.uParse(c);return h?Y.toString():Y;case oe.BOOL:if(typeof c!="boolean")break;return c;case oe.STRING:if(typeof c!="string")break;try{encodeURIComponent(c)}catch{throw new Error("invalid UTF8")}return c;case oe.BYTES:if(c==="")return new Uint8Array(0);if(typeof c!="string")break;return ue.dec(c)}throw new Error}function Tr(v,c,h,y){if(c===null)return v.typeName=="google.protobuf.NullValue"?0:y?v.values[0].no:tt;switch(typeof c){case"number":if(Number.isInteger(c))return c;break;case"string":const T=v.findName(c);if(T!==void 0)return T.no;if(h)return Qt;break}throw new Error(`cannot decode enum ${v.typeName} from JSON: ${Gt(c)}`)}function jr(v){return v.repeated||v.kind=="map"?!0:!(v.oneof||v.kind=="message"||v.opt||v.req)}function vi(v,c,h){if(v.kind=="map"){f(typeof c=="object"&&c!=null);const y={},T=Object.entries(c);switch(v.V.kind){case"scalar":for(const[H,Y]of T)y[H.toString()]=Ai(v.V.T,Y);break;case"message":for(const[H,Y]of T)y[H.toString()]=Y.toJson(h);break;case"enum":const P=v.V.T;for(const[H,Y]of T)y[H.toString()]=si(P,Y,h.enumAsInteger);break}return h.emitDefaultValues||T.length>0?y:void 0}if(v.repeated){f(Array.isArray(c));const y=[];switch(v.kind){case"scalar":for(let T=0;T0?y:void 0}switch(v.kind){case"scalar":return Ai(v.T,c);case"enum":return si(v.T,c,h.enumAsInteger);case"message":return ve(v.T,c).toJson(h)}}function si(v,c,h){var y;if(f(typeof c=="number"),v.typeName=="google.protobuf.NullValue")return null;if(h)return c;const T=v.findNumber(c);return(y=T==null?void 0:T.name)!==null&&y!==void 0?y:c}function Ai(v,c){switch(v){case oe.INT32:case oe.SFIXED32:case oe.SINT32:case oe.FIXED32:case oe.UINT32:return f(typeof c=="number"),c;case oe.FLOAT:case oe.DOUBLE:return f(typeof c=="number"),Number.isNaN(c)?"NaN":c===Number.POSITIVE_INFINITY?"Infinity":c===Number.NEGATIVE_INFINITY?"-Infinity":c;case oe.STRING:return f(typeof c=="string"),c;case oe.BOOL:return f(typeof c=="boolean"),c;case oe.UINT64:case oe.FIXED64:case oe.INT64:case oe.SFIXED64:case oe.SINT64:return f(typeof c=="bigint"||typeof c=="string"||typeof c=="number"),c.toString();case oe.BYTES:return f(c instanceof Uint8Array),ue.enc(c)}}const oi=Symbol("@bufbuild/protobuf/unknown-fields"),ja={readUnknownFields:!0,readerFactory:v=>new Mt(v)},_i={writeUnknownFields:!0,writerFactory:()=>new Pt};function Os(v){return v?Object.assign(Object.assign({},ja),v):ja}function Ci(v){return v?Object.assign(Object.assign({},_i),v):_i}function Mr(){return{makeReadOptions:Os,makeWriteOptions:Ci,listUnknownFields(v){var c;return(c=v[oi])!==null&&c!==void 0?c:[]},discardUnknownFields(v){delete v[oi]},writeUnknownFields(v,c){const y=v[oi];if(y)for(const T of y)c.tag(T.no,T.wireType).raw(T.data)},onUnknownField(v,c,h,y){const T=v;Array.isArray(T[oi])||(T[oi]=[]),T[oi].push({no:c,wireType:h,data:y})},readMessage(v,c,h,y,T){const P=v.getType(),H=T?c.len:c.pos+h;let Y,pe;for(;c.pos0&&(pe=lt),P){let gt=v[H];if(y==ct.LengthDelimited&&Y!=oe.STRING&&Y!=oe.BYTES){let tn=c.uint32()+c.pos;for(;c.posye(gt,xt)?gt:new xt(gt));else{const gt=H[T];xt.fieldWrapper?xt.typeName==="google.protobuf.BytesValue"?P[T]=Je(gt):P[T]=gt:P[T]=ye(gt,xt)?gt:new xt(gt)}break}}},equals(v,c,h){return c===h?!0:!c||!h?!1:v.fields.byMember().every(y=>{const T=c[y.localName],P=h[y.localName];if(y.repeated){if(T.length!==P.length)return!1;switch(y.kind){case"message":return T.every((H,Y)=>y.T.equals(H,P[Y]));case"scalar":return T.every((H,Y)=>qe(y.T,H,P[Y]));case"enum":return T.every((H,Y)=>qe(oe.INT32,H,P[Y]))}throw new Error(`repeated cannot contain ${y.kind}`)}switch(y.kind){case"message":return y.T.equals(T,P);case"enum":return qe(oe.INT32,T,P);case"scalar":return qe(y.T,T,P);case"oneof":if(T.case!==P.case)return!1;const H=y.findField(T.case);if(H===void 0)return!0;switch(H.kind){case"message":return H.T.equals(T.value,P.value);case"enum":return qe(oe.INT32,T.value,P.value);case"scalar":return qe(H.T,T.value,P.value)}throw new Error(`oneof cannot contain ${H.kind}`);case"map":const Y=Object.keys(T).concat(Object.keys(P));switch(y.V.kind){case"message":const pe=y.V.T;return Y.every(Fe=>pe.equals(T[Fe],P[Fe]));case"enum":return Y.every(Fe=>qe(oe.INT32,T[Fe],P[Fe]));case"scalar":const be=y.V.T;return Y.every(Fe=>qe(be,T[Fe],P[Fe]))}break}})},clone(v){const c=v.getType(),h=new c,y=h;for(const T of c.fields.byMember()){const P=v[T.localName];let H;if(T.repeated)H=P.map(dt);else if(T.kind=="map"){H=y[T.localName];for(const[Y,pe]of Object.entries(P))H[Y]=dt(pe)}else T.kind=="oneof"?H=T.findField(P.case)?{case:P.case,value:dt(P.value)}:{case:void 0}:H=dt(P);y[T.localName]=H}for(const T of c.runtime.bin.listUnknownFields(v))c.runtime.bin.onUnknownField(y,T.no,T.wireType,T.data);return h}}}function dt(v){if(v===void 0)return v;if(ye(v))return v.clone();if(v instanceof Uint8Array){const c=new Uint8Array(v.byteLength);return c.set(v),c}return v}function Je(v){return v instanceof Uint8Array?v:new Uint8Array(v)}function kt(v,c,h){return{syntax:v,json:Vt(),bin:Mr(),util:Object.assign(Object.assign({},Te()),{newFieldList:c,initFields:h}),makeMessageType(y,T,P){return G(this,y,T,P)},makeEnum:M,makeEnumType:N,getEnumType:C,makeExtension(y,T,P){return ot(this,y,T,P)}}}class _t{constructor(c,h){this._fields=c,this._normalizer=h}findJsonName(c){if(!this.jsonNames){const h={};for(const y of this.list())h[y.jsonName]=h[y.name]=y;this.jsonNames=h}return this.jsonNames[c]}find(c){if(!this.numbers){const h={};for(const y of this.list())h[y.no]=y;this.numbers=h}return this.numbers[c]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((c,h)=>c.no-h.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];const c=this.members;let h;for(const y of this.list())y.oneof?y.oneof!==h&&(h=y.oneof,c.push(h)):c.push(y)}return this.members}}function qt(v,c){const h=Ri(v);return c?h:Ps(Wa(h))}function it(v){return qt(v,!1)}const Vn=Ri;function Ri(v){let c=!1;const h=[];for(let y=0;y`${v}$`,Wa=v=>oa.has(v)?la(v):v,Ps=v=>Dn.has(v)?la(v):v;class Qa{constructor(c){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.req=!1,this.default=void 0,this.fields=[],this.name=c,this.localName=it(c)}addField(c){f(c.oneof===this,`field ${c.name} not one of ${this.name}`),this.fields.push(c)}findField(c){if(!this._lookup){this._lookup=Object.create(null);for(let h=0;hnew _t(v,c=>va(c)),v=>{for(const c of v.getType().fields.byMember()){if(c.opt)continue;const h=c.localName,y=v;if(c.repeated){y[h]=[];continue}switch(c.kind){case"oneof":y[h]={case:void 0};break;case"enum":y[h]=0;break;case"map":y[h]={};break;case"scalar":y[h]=et(c.T,c.L);break}}});var Oa;(function(v){v[v.Unary=0]="Unary",v[v.ServerStreaming=1]="ServerStreaming",v[v.ClientStreaming=2]="ClientStreaming",v[v.BiDiStreaming=3]="BiDiStreaming"})(Oa||(Oa={}));var hh;(function(v){v[v.NoSideEffects=1]="NoSideEffects",v[v.Idempotent=2]="Idempotent"})(hh||(hh={}));class Tn extends F{constructor(c){super(),this.seconds=Ue.zero,this.nanos=0,Ge.util.initPartial(c,this)}fromJson(c,h){if(typeof c!="string")throw new Error(`cannot decode google.protobuf.Timestamp from JSON: ${Ge.json.debug(c)}`);const y=c.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!y)throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");const T=Date.parse(y[1]+"-"+y[2]+"-"+y[3]+"T"+y[4]+":"+y[5]+":"+y[6]+(y[8]?y[8]:"Z"));if(Number.isNaN(T))throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");if(TDate.parse("9999-12-31T23:59:59Z"))throw new Error("cannot decode message google.protobuf.Timestamp from JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");return this.seconds=Ue.parse(T/1e3),this.nanos=0,y[7]&&(this.nanos=parseInt("1"+y[7]+"0".repeat(9-y[7].length))-1e9),this}toJson(c){const h=Number(this.seconds)*1e3;if(hDate.parse("9999-12-31T23:59:59Z"))throw new Error("cannot encode google.protobuf.Timestamp to JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");if(this.nanos<0)throw new Error("cannot encode google.protobuf.Timestamp to JSON: nanos must not be negative");let y="Z";if(this.nanos>0){const T=(this.nanos+1e9).toString().substring(1);T.substring(3)==="000000"?y="."+T.substring(0,3)+"Z":T.substring(6)==="000"?y="."+T.substring(0,6)+"Z":y="."+T+"Z"}return new Date(h).toISOString().replace(".000Z",y)}toDate(){return new Date(Number(this.seconds)*1e3+Math.ceil(this.nanos/1e6))}static now(){return Tn.fromDate(new Date)}static fromDate(c){const h=c.getTime();return new Tn({seconds:Ue.parse(Math.floor(h/1e3)),nanos:h%1e3*1e6})}static fromBinary(c,h){return new Tn().fromBinary(c,h)}static fromJson(c,h){return new Tn().fromJson(c,h)}static fromJsonString(c,h){return new Tn().fromJsonString(c,h)}static equals(c,h){return Ge.util.equals(Tn,c,h)}}Tn.runtime=Ge,Tn.typeName="google.protobuf.Timestamp",Tn.fields=Ge.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);class Rr extends F{constructor(c){super(),this.seconds=Ue.zero,this.nanos=0,Ge.util.initPartial(c,this)}fromJson(c,h){if(typeof c!="string")throw new Error(`cannot decode google.protobuf.Duration from JSON: ${Ge.json.debug(c)}`);const y=c.match(/^(-?[0-9]+)(?:\.([0-9]+))?s/);if(y===null)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${Ge.json.debug(c)}`);const T=Number(y[1]);if(T>315576e6||T<-315576e6)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${Ge.json.debug(c)}`);if(this.seconds=Ue.parse(T),typeof y[2]=="string"){const P=y[2]+"0".repeat(9-y[2].length);this.nanos=parseInt(P),(T<0||Object.is(T,-0))&&(this.nanos=-this.nanos)}return this}toJson(c){if(Number(this.seconds)>315576e6||Number(this.seconds)<-315576e6)throw new Error("cannot encode google.protobuf.Duration to JSON: value out of range");let h=this.seconds.toString();if(this.nanos!==0){let y=Math.abs(this.nanos).toString();y="0".repeat(9-y.length)+y,y.substring(3)==="000000"?y=y.substring(0,3):y.substring(6)==="000"&&(y=y.substring(0,6)),h+="."+y,this.nanos<0&&Number(this.seconds)==0&&(h="-"+h)}return h+"s"}static fromBinary(c,h){return new Rr().fromBinary(c,h)}static fromJson(c,h){return new Rr().fromJson(c,h)}static fromJsonString(c,h){return new Rr().fromJsonString(c,h)}static equals(c,h){return Ge.util.equals(Rr,c,h)}}Rr.runtime=Ge,Rr.typeName="google.protobuf.Duration",Rr.fields=Ge.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);class Oi extends F{constructor(c){super(),this.typeUrl="",this.value=new Uint8Array(0),Ge.util.initPartial(c,this)}toJson(c){var h;if(this.typeUrl==="")return{};const y=this.typeUrlToName(this.typeUrl),T=(h=c==null?void 0:c.typeRegistry)===null||h===void 0?void 0:h.findMessage(y);if(!T)throw new Error(`cannot encode message google.protobuf.Any to JSON: "${this.typeUrl}" is not in the type registry`);let H=T.fromBinary(this.value).toJson(c);return(y.startsWith("google.protobuf.")||H===null||Array.isArray(H)||typeof H!="object")&&(H={value:H}),H["@type"]=this.typeUrl,H}fromJson(c,h){var y;if(c===null||Array.isArray(c)||typeof c!="object")throw new Error(`cannot decode message google.protobuf.Any from JSON: expected object but got ${c===null?"null":Array.isArray(c)?"array":typeof c}`);if(Object.keys(c).length==0)return this;const T=c["@type"];if(typeof T!="string"||T=="")throw new Error('cannot decode message google.protobuf.Any from JSON: "@type" is empty');const P=this.typeUrlToName(T),H=(y=h==null?void 0:h.typeRegistry)===null||y===void 0?void 0:y.findMessage(P);if(!H)throw new Error(`cannot decode message google.protobuf.Any from JSON: ${T} is not in the type registry`);let Y;if(P.startsWith("google.protobuf.")&&Object.prototype.hasOwnProperty.call(c,"value"))Y=H.fromJson(c.value,h);else{const pe=Object.assign({},c);delete pe["@type"],Y=H.fromJson(pe,h)}return this.packFrom(Y),this}packFrom(c){this.value=c.toBinary(),this.typeUrl=this.typeNameToUrl(c.getType().typeName)}unpackTo(c){return this.is(c.getType())?(c.fromBinary(this.value),!0):!1}unpack(c){if(this.typeUrl==="")return;const h=c.findMessage(this.typeUrlToName(this.typeUrl));if(h)return h.fromBinary(this.value)}is(c){if(this.typeUrl==="")return!1;const h=this.typeUrlToName(this.typeUrl);let y="";return typeof c=="string"?y=c:y=c.typeName,h===y}typeNameToUrl(c){return`type.googleapis.com/${c}`}typeUrlToName(c){if(!c.length)throw new Error(`invalid type url: ${c}`);const h=c.lastIndexOf("/"),y=h>=0?c.substring(h+1):c;if(!y.length)throw new Error(`invalid type url: ${c}`);return y}static pack(c){const h=new Oi;return h.packFrom(c),h}static fromBinary(c,h){return new Oi().fromBinary(c,h)}static fromJson(c,h){return new Oi().fromJson(c,h)}static fromJsonString(c,h){return new Oi().fromJsonString(c,h)}static equals(c,h){return Ge.util.equals(Oi,c,h)}}Oi.runtime=Ge,Oi.typeName="google.protobuf.Any",Oi.fields=Ge.util.newFieldList(()=>[{no:1,name:"type_url",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:12}]);class gr extends F{constructor(c){super(),this.value=0,Ge.util.initPartial(c,this)}toJson(c){return Ge.json.writeScalar(oe.DOUBLE,this.value,!0)}fromJson(c,h){try{this.value=Ge.json.readScalar(oe.DOUBLE,c)}catch(y){let T='cannot decode message google.protobuf.DoubleValue from JSON"';throw y instanceof Error&&y.message.length>0&&(T+=`: ${y.message}`),new Error(T)}return this}static fromBinary(c,h){return new gr().fromBinary(c,h)}static fromJson(c,h){return new gr().fromJson(c,h)}static fromJsonString(c,h){return new gr().fromJsonString(c,h)}static equals(c,h){return Ge.util.equals(gr,c,h)}}gr.runtime=Ge,gr.typeName="google.protobuf.DoubleValue",gr.fields=Ge.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:1}]),gr.fieldWrapper={wrapField(v){return new gr({value:v})},unwrapField(v){return v.value}};class Yi extends F{constructor(c){super(),this.value=0,Ge.util.initPartial(c,this)}toJson(c){return Ge.json.writeScalar(oe.FLOAT,this.value,!0)}fromJson(c,h){try{this.value=Ge.json.readScalar(oe.FLOAT,c)}catch(y){let T='cannot decode message google.protobuf.FloatValue from JSON"';throw y instanceof Error&&y.message.length>0&&(T+=`: ${y.message}`),new Error(T)}return this}static fromBinary(c,h){return new Yi().fromBinary(c,h)}static fromJson(c,h){return new Yi().fromJson(c,h)}static fromJsonString(c,h){return new Yi().fromJsonString(c,h)}static equals(c,h){return Ge.util.equals(Yi,c,h)}}Yi.runtime=Ge,Yi.typeName="google.protobuf.FloatValue",Yi.fields=Ge.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:2}]),Yi.fieldWrapper={wrapField(v){return new Yi({value:v})},unwrapField(v){return v.value}};class Mo extends F{constructor(c){super(),this.value=Ue.zero,Ge.util.initPartial(c,this)}toJson(c){return Ge.json.writeScalar(oe.INT64,this.value,!0)}fromJson(c,h){try{this.value=Ge.json.readScalar(oe.INT64,c)}catch(y){let T='cannot decode message google.protobuf.Int64Value from JSON"';throw y instanceof Error&&y.message.length>0&&(T+=`: ${y.message}`),new Error(T)}return this}static fromBinary(c,h){return new Mo().fromBinary(c,h)}static fromJson(c,h){return new Mo().fromJson(c,h)}static fromJsonString(c,h){return new Mo().fromJsonString(c,h)}static equals(c,h){return Ge.util.equals(Mo,c,h)}}Mo.runtime=Ge,Mo.typeName="google.protobuf.Int64Value",Mo.fields=Ge.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:3}]),Mo.fieldWrapper={wrapField(v){return new Mo({value:v})},unwrapField(v){return v.value}};class Lo extends F{constructor(c){super(),this.value=Ue.zero,Ge.util.initPartial(c,this)}toJson(c){return Ge.json.writeScalar(oe.UINT64,this.value,!0)}fromJson(c,h){try{this.value=Ge.json.readScalar(oe.UINT64,c)}catch(y){let T='cannot decode message google.protobuf.UInt64Value from JSON"';throw y instanceof Error&&y.message.length>0&&(T+=`: ${y.message}`),new Error(T)}return this}static fromBinary(c,h){return new Lo().fromBinary(c,h)}static fromJson(c,h){return new Lo().fromJson(c,h)}static fromJsonString(c,h){return new Lo().fromJsonString(c,h)}static equals(c,h){return Ge.util.equals(Lo,c,h)}}Lo.runtime=Ge,Lo.typeName="google.protobuf.UInt64Value",Lo.fields=Ge.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:4}]),Lo.fieldWrapper={wrapField(v){return new Lo({value:v})},unwrapField(v){return v.value}};class $o extends F{constructor(c){super(),this.value=0,Ge.util.initPartial(c,this)}toJson(c){return Ge.json.writeScalar(oe.INT32,this.value,!0)}fromJson(c,h){try{this.value=Ge.json.readScalar(oe.INT32,c)}catch(y){let T='cannot decode message google.protobuf.Int32Value from JSON"';throw y instanceof Error&&y.message.length>0&&(T+=`: ${y.message}`),new Error(T)}return this}static fromBinary(c,h){return new $o().fromBinary(c,h)}static fromJson(c,h){return new $o().fromJson(c,h)}static fromJsonString(c,h){return new $o().fromJsonString(c,h)}static equals(c,h){return Ge.util.equals($o,c,h)}}$o.runtime=Ge,$o.typeName="google.protobuf.Int32Value",$o.fields=Ge.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:5}]),$o.fieldWrapper={wrapField(v){return new $o({value:v})},unwrapField(v){return v.value}};class Zl extends F{constructor(c){super(),this.value=0,Ge.util.initPartial(c,this)}toJson(c){return Ge.json.writeScalar(oe.UINT32,this.value,!0)}fromJson(c,h){try{this.value=Ge.json.readScalar(oe.UINT32,c)}catch(y){let T='cannot decode message google.protobuf.UInt32Value from JSON"';throw y instanceof Error&&y.message.length>0&&(T+=`: ${y.message}`),new Error(T)}return this}static fromBinary(c,h){return new Zl().fromBinary(c,h)}static fromJson(c,h){return new Zl().fromJson(c,h)}static fromJsonString(c,h){return new Zl().fromJsonString(c,h)}static equals(c,h){return Ge.util.equals(Zl,c,h)}}Zl.runtime=Ge,Zl.typeName="google.protobuf.UInt32Value",Zl.fields=Ge.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:13}]),Zl.fieldWrapper={wrapField(v){return new Zl({value:v})},unwrapField(v){return v.value}};class Zu extends F{constructor(c){super(),this.value=!1,Ge.util.initPartial(c,this)}toJson(c){return Ge.json.writeScalar(oe.BOOL,this.value,!0)}fromJson(c,h){try{this.value=Ge.json.readScalar(oe.BOOL,c)}catch(y){let T='cannot decode message google.protobuf.BoolValue from JSON"';throw y instanceof Error&&y.message.length>0&&(T+=`: ${y.message}`),new Error(T)}return this}static fromBinary(c,h){return new Zu().fromBinary(c,h)}static fromJson(c,h){return new Zu().fromJson(c,h)}static fromJsonString(c,h){return new Zu().fromJsonString(c,h)}static equals(c,h){return Ge.util.equals(Zu,c,h)}}Zu.runtime=Ge,Zu.typeName="google.protobuf.BoolValue",Zu.fields=Ge.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:8}]),Zu.fieldWrapper={wrapField(v){return new Zu({value:v})},unwrapField(v){return v.value}};class no extends F{constructor(c){super(),this.value="",Ge.util.initPartial(c,this)}toJson(c){return Ge.json.writeScalar(oe.STRING,this.value,!0)}fromJson(c,h){try{this.value=Ge.json.readScalar(oe.STRING,c)}catch(y){let T='cannot decode message google.protobuf.StringValue from JSON"';throw y instanceof Error&&y.message.length>0&&(T+=`: ${y.message}`),new Error(T)}return this}static fromBinary(c,h){return new no().fromBinary(c,h)}static fromJson(c,h){return new no().fromJson(c,h)}static fromJsonString(c,h){return new no().fromJsonString(c,h)}static equals(c,h){return Ge.util.equals(no,c,h)}}no.runtime=Ge,no.typeName="google.protobuf.StringValue",no.fields=Ge.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:9}]),no.fieldWrapper={wrapField(v){return new no({value:v})},unwrapField(v){return v.value}};class Xl extends F{constructor(c){super(),this.value=new Uint8Array(0),Ge.util.initPartial(c,this)}toJson(c){return Ge.json.writeScalar(oe.BYTES,this.value,!0)}fromJson(c,h){try{this.value=Ge.json.readScalar(oe.BYTES,c)}catch(y){let T='cannot decode message google.protobuf.BytesValue from JSON"';throw y instanceof Error&&y.message.length>0&&(T+=`: ${y.message}`),new Error(T)}return this}static fromBinary(c,h){return new Xl().fromBinary(c,h)}static fromJson(c,h){return new Xl().fromJson(c,h)}static fromJsonString(c,h){return new Xl().fromJsonString(c,h)}static equals(c,h){return Ge.util.equals(Xl,c,h)}}Xl.runtime=Ge,Xl.typeName="google.protobuf.BytesValue",Xl.fields=Ge.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:12}]),Xl.fieldWrapper={wrapField(v){return new Xl({value:v})},unwrapField(v){return v.value}};function cS(v,c,h){try{const y=ue.dec(v);return c?c.fromBinary(y,h):y}catch(y){throw u.from(y,o.DataLoss)}}function l6(v,c){const h={};for(const[y,T]of Object.entries(v.methods)){const P=c(Object.assign(Object.assign({},T),{localName:y,service:v}));P!=null&&(h[y]=P)}return h}function dS(v){let c,h=new Uint8Array(0);function y(T){const P=new Uint8Array(h.length+T.length);P.set(h),P.set(T,h.length),h=P}return new ReadableStream({start(){c=v.getReader()},async pull(T){let P;for(;;){if(P===void 0&&h.byteLength>=5){let pe=0;for(let be=1;be<5;be++)pe=(pe<<8)+h[be];P={flags:h[0],length:pe}}if(P!==void 0&&h.byteLength>=P.length+5)break;const Y=await c.read();if(Y.done)break;y(Y.value)}if(P===void 0){if(h.byteLength==0){T.close();return}T.error(new u("premature end of stream",o.DataLoss));return}const H=h.subarray(5,5+P.length);h=h.subarray(5+P.length),T.enqueue({flags:P.flags,data:H})}})}function ab(v,c){const h=new Uint8Array(c.length+5);h.set(c,5);const y=new DataView(h.buffer,h.byteOffset,h.byteLength);return y.setUint8(0,v),y.setUint32(1,c.length),h}var fS=function(v){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var c=v[Symbol.asyncIterator],h;return c?c.call(v):(v=typeof __values=="function"?__values(v):v[Symbol.iterator](),h={},y("next"),y("throw"),y("return"),h[Symbol.asyncIterator]=function(){return this},h);function y(P){h[P]=v[P]&&function(H){return new Promise(function(Y,pe){H=v[P](H),T(Y,pe,H.done,H.value)})}}function T(P,H,Y,pe){Promise.resolve(pe).then(function(be){P({value:be,done:Y})},H)}},Xu=function(v){return this instanceof Xu?(this.v=v,this):new Xu(v)},jT=function(v,c,h){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var y=h.apply(v,c||[]),T,P=[];return T={},Y("next"),Y("throw"),Y("return",H),T[Symbol.asyncIterator]=function(){return this},T;function H(st){return function(tn){return Promise.resolve(tn).then(st,xt)}}function Y(st,tn){y[st]&&(T[st]=function(In){return new Promise(function(Rn,Jn){P.push([st,In,Rn,Jn])>1||pe(st,In)})},tn&&(T[st]=tn(T[st])))}function pe(st,tn){try{be(y[st](tn))}catch(In){gt(P[0][3],In)}}function be(st){st.value instanceof Xu?Promise.resolve(st.value.v).then(Fe,xt):gt(P[0][2],st)}function Fe(st){pe("next",st)}function xt(st){pe("throw",st)}function gt(st,tn){st(tn),P.shift(),P.length&&pe(P[0][0],P[0][1])}},WT=function(v){var c,h;return c={},y("next"),y("throw",function(T){throw T}),y("return"),c[Symbol.iterator]=function(){return this},c;function y(T,P){c[T]=v[T]?function(H){return(h=!h)?{value:Xu(v[T](H)),done:!1}:P?P(H):H}:P}};function u6(v){return jT(this,arguments,function*(){yield Xu(yield*WT(fS(v)))})}var hS=function(v){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var c=v[Symbol.asyncIterator],h;return c?c.call(v):(v=typeof __values=="function"?__values(v):v[Symbol.iterator](),h={},y("next"),y("throw"),y("return"),h[Symbol.asyncIterator]=function(){return this},h);function y(P){h[P]=v[P]&&function(H){return new Promise(function(Y,pe){H=v[P](H),T(Y,pe,H.done,H.value)})}}function T(P,H,Y,pe){Promise.resolve(pe).then(function(be){P({value:be,done:Y})},H)}},ph=function(v){return this instanceof ph?(this.v=v,this):new ph(v)},QT=function(v){var c,h;return c={},y("next"),y("throw",function(T){throw T}),y("return"),c[Symbol.iterator]=function(){return this},c;function y(T,P){c[T]=v[T]?function(H){return(h=!h)?{value:ph(v[T](H)),done:!1}:P?P(H):H}:P}},GT=function(v,c,h){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var y=h.apply(v,c||[]),T,P=[];return T={},Y("next"),Y("throw"),Y("return",H),T[Symbol.asyncIterator]=function(){return this},T;function H(st){return function(tn){return Promise.resolve(tn).then(st,xt)}}function Y(st,tn){y[st]&&(T[st]=function(In){return new Promise(function(Rn,Jn){P.push([st,In,Rn,Jn])>1||pe(st,In)})},tn&&(T[st]=tn(T[st])))}function pe(st,tn){try{be(y[st](tn))}catch(In){gt(P[0][3],In)}}function be(st){st.value instanceof ph?Promise.resolve(st.value.v).then(Fe,xt):gt(P[0][2],st)}function Fe(st){pe("next",st)}function xt(st){pe("throw",st)}function gt(st,tn){st(tn),P.shift(),P.length&&pe(P[0][0],P[0][1])}};function c6(v,c){return l6(v,h=>{switch(h.kind){case Oa.Unary:return d6(c,v,h);case Oa.ServerStreaming:return f6(c,v,h);case Oa.ClientStreaming:return VT(c,v,h);case Oa.BiDiStreaming:return h6(c,v,h);default:return null}})}function d6(v,c,h){return async function(y,T){var P,H;const Y=await v.unary(c,h,T==null?void 0:T.signal,T==null?void 0:T.timeoutMs,T==null?void 0:T.headers,y,T==null?void 0:T.contextValues);return(P=T==null?void 0:T.onHeader)===null||P===void 0||P.call(T,Y.header),(H=T==null?void 0:T.onTrailer)===null||H===void 0||H.call(T,Y.trailer),Y.message}}function f6(v,c,h){return function(y,T){return qT(v.stream(c,h,T==null?void 0:T.signal,T==null?void 0:T.timeoutMs,T==null?void 0:T.headers,u6([y]),T==null?void 0:T.contextValues),T)}}function VT(v,c,h){return async function(y,T){var P,H,Y,pe,be,Fe;const xt=await v.stream(c,h,T==null?void 0:T.signal,T==null?void 0:T.timeoutMs,T==null?void 0:T.headers,y,T==null?void 0:T.contextValues);(be=T==null?void 0:T.onHeader)===null||be===void 0||be.call(T,xt.header);let gt;try{for(var st=!0,tn=hS(xt.message),In;In=await tn.next(),P=In.done,!P;st=!0)pe=In.value,st=!1,gt=pe}catch(Rn){H={error:Rn}}finally{try{!st&&!P&&(Y=tn.return)&&await Y.call(tn)}finally{if(H)throw H.error}}if(!gt)throw new u("protocol error: missing response message",o.Internal);return(Fe=T==null?void 0:T.onTrailer)===null||Fe===void 0||Fe.call(T,xt.trailer),gt}}function h6(v,c,h){return function(y,T){return qT(v.stream(c,h,T==null?void 0:T.signal,T==null?void 0:T.timeoutMs,T==null?void 0:T.headers,y,T==null?void 0:T.contextValues),T)}}function qT(v,c){const h=function(){var y,T;return GT(this,arguments,function*(){const P=yield ph(v);(y=c==null?void 0:c.onHeader)===null||y===void 0||y.call(c,P.header),yield ph(yield*QT(hS(P.message))),(T=c==null?void 0:c.onTrailer)===null||T===void 0||T.call(c,P.trailer)})}()[Symbol.asyncIterator]();return{[Symbol.asyncIterator]:()=>({next:()=>h.next()})}}function p6(...v){const c=new AbortController,h=v.filter(T=>T!==void 0).concat(c.signal);for(const T of h){if(T.aborted){y.apply(T);break}T.addEventListener("abort",y)}function y(){c.signal.aborted||c.abort(sb(this));for(const T of h)T.removeEventListener("abort",y)}return c}function m6(v){const c=new AbortController,h=()=>{c.abort(new u("the operation timed out",o.DeadlineExceeded))};let y;return v!==void 0&&(v<=0?h():y=setTimeout(h,v)),{signal:c.signal,cleanup:()=>clearTimeout(y)}}function sb(v){if(!v.aborted)return;if(v.reason!==void 0)return v.reason;const c=new Error("This operation was aborted");return c.name="AbortError",c}function YT(){return{get(v){return v.id in this?this[v.id]:v.defaultValue},set(v,c){return this[v.id]=c,this},delete(v){return delete this[v.id],this}}}const pS=128;function ZT(v){const c=new Headers,h=new TextDecoder().decode(v).split(`\r +`);for(const y of h){if(y==="")continue;const T=y.indexOf(":");if(T>0){const P=y.substring(0,T).trim(),H=y.substring(T+1).trim();c.append(P,H)}}return c}const g6="Content-Type",b6="Grpc-Timeout",mi="Grpc-Status",li="Grpc-Message",y6="Grpc-Status-Details-Bin",v6="X-User-Agent",O6="X-Grpc-Web",S6="application/grpc-web+proto",E6="application/grpc-web+json";class Jc extends F{constructor(c){super(),this.code=0,this.message="",this.details=[],Ge.util.initPartial(c,this)}static fromBinary(c,h){return new Jc().fromBinary(c,h)}static fromJson(c,h){return new Jc().fromJson(c,h)}static fromJsonString(c,h){return new Jc().fromJsonString(c,h)}static equals(c,h){return Ge.util.equals(Jc,c,h)}}Jc.runtime=Ge,Jc.typeName="google.rpc.Status",Jc.fields=Ge.util.newFieldList(()=>[{no:1,name:"code",kind:"scalar",T:5},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"details",kind:"message",T:Oi,repeated:!0}]);const XT="0";function KT(v){var c;const h=v.get(y6);if(h!=null){const T=cS(h,Jc);if(T.code==0)return;const P=new u(T.message,T.code,v);return P.details=T.details.map(H=>({type:H.typeUrl.substring(H.typeUrl.lastIndexOf("/")+1),value:H.value})),P}const y=v.get(mi);if(y!=null){if(y===XT)return;const T=parseInt(y,10);return T in o?new u(decodeURIComponent((c=v.get(li))!==null&&c!==void 0?c:""),T,v):new u(`invalid grpc-status: ${y}`,o.Internal,v)}}function Ga(v,c,h){const y=typeof c=="string"?c:c.typeName,T=typeof h=="string"?h:h.name;return v.toString().replace(/\/?$/,`/${y}/${T}`)}function ob(v,c){return c instanceof v?c:new v(c)}function mh(v,c){function h(y){return y.done===!0?y:{done:y.done,value:ob(v,y.value)}}return{[Symbol.asyncIterator](){const y=c[Symbol.asyncIterator](),T={next:()=>y.next().then(h)};return y.throw!==void 0&&(T.throw=P=>y.throw(P).then(h)),y.return!==void 0&&(T.return=P=>y.return(P).then(h)),T}}}function mS(v,c){var h;return(h=c==null?void 0:c.concat().reverse().reduce((y,T)=>T(y),v))!==null&&h!==void 0?h:v}function gS(v){var c;const h=Object.assign({},v);return(c=h.ignoreUnknownFields)!==null&&c!==void 0||(h.ignoreUnknownFields=!0),h}function Fo(v,c,h,y){const T=c?bS(v.I,y):yS(v.I,h);return{parse:(c?bS(v.O,y):yS(v.O,h)).parse,serialize:T.serialize}}function bS(v,c){return{parse(h){try{return v.fromBinary(h,c)}catch(y){const T=y instanceof Error?y.message:String(y);throw new u(`parse binary: ${T}`,o.InvalidArgument)}},serialize(h){try{return h.toBinary(c)}catch(y){const T=y instanceof Error?y.message:String(y);throw new u(`serialize binary: ${T}`,o.Internal)}}}}function yS(v,c){var h,y;const T=(h=c==null?void 0:c.textEncoder)!==null&&h!==void 0?h:new TextEncoder,P=(y=c==null?void 0:c.textDecoder)!==null&&y!==void 0?y:new TextDecoder,H=gS(c);return{parse(Y){try{const pe=P.decode(Y);return v.fromJsonString(pe,H)}catch(pe){throw u.from(pe,o.InvalidArgument)}},serialize(Y){try{const pe=Y.toJsonString(H);return T.encode(pe)}catch(pe){throw u.from(pe,o.Internal)}}}}function JT(v){const c=mS(v.next,v.interceptors),[h,y,T]=vS(v),P=Object.assign(Object.assign({},v.req),{message:ob(v.req.method.I,v.req.message),signal:h});return c(P).then(H=>(T(),H),y)}function ek(v){const c=mS(v.next,v.interceptors),[h,y,T]=vS(v),P=Object.assign(Object.assign({},v.req),{message:mh(v.req.method.I,v.req.message),signal:h});let H=!1;return h.addEventListener("abort",function(){var Y,pe;const be=v.req.message[Symbol.asyncIterator]();H||(Y=be.throw)===null||Y===void 0||Y.call(be,this.reason).catch(()=>{}),(pe=be.return)===null||pe===void 0||pe.call(be).catch(()=>{})}),c(P).then(Y=>Object.assign(Object.assign({},Y),{message:{[Symbol.asyncIterator](){const pe=Y.message[Symbol.asyncIterator]();return{next(){return pe.next().then(be=>(be.done==!0&&(H=!0,T()),be),y)}}}}}),y)}function vS(v){const{signal:c,cleanup:h}=m6(v.timeoutMs),y=p6(v.signal,c);return[y.signal,function(P){const H=u.from(c.aborted?sb(c):P);return y.abort(H),h(),Promise.reject(H)},function(){h(),y.abort()}]}function tk(){try{new Headers}catch{throw new Error("connect-web requires the fetch API. Are you running on an old version of Node.js? Node.js is not supported in Connect for Web - please stay tuned for Connect for Node.")}}function ro(v,c){const h=KT(v);if(h)throw c.forEach((y,T)=>{h.metadata.append(T,y)}),h}function nk(v,c,h,y){const T=new Headers(h??{});return T.set(g6,v?S6:E6),T.set(O6,"1"),T.set(v6,"connect-es/1.4.0"),c!==void 0&&T.set(b6,`${c}m`),T}function hl(v){switch(v){case 400:return o.Internal;case 401:return o.Unauthenticated;case 403:return o.PermissionDenied;case 404:return o.Unimplemented;case 429:return o.Unavailable;case 502:return o.Unavailable;case 503:return o.Unavailable;case 504:return o.Unavailable;default:return o.Unknown}}function rk(v,c){var h;if(v>=200&&v<300){const y=KT(c);if(y)throw y;return{foundStatus:c.has(mi)}}throw new u(decodeURIComponent((h=c.get(li))!==null&&h!==void 0?h:`HTTP ${v}`),hl(v),c)}var Yd=function(v){return this instanceof Yd?(this.v=v,this):new Yd(v)},Zd=function(v,c,h){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var y=h.apply(v,c||[]),T,P=[];return T={},Y("next"),Y("throw"),Y("return",H),T[Symbol.asyncIterator]=function(){return this},T;function H(st){return function(tn){return Promise.resolve(tn).then(st,xt)}}function Y(st,tn){y[st]&&(T[st]=function(In){return new Promise(function(Rn,Jn){P.push([st,In,Rn,Jn])>1||pe(st,In)})},tn&&(T[st]=tn(T[st])))}function pe(st,tn){try{be(y[st](tn))}catch(In){gt(P[0][3],In)}}function be(st){st.value instanceof Yd?Promise.resolve(st.value.v).then(Fe,xt):gt(P[0][2],st)}function Fe(st){pe("next",st)}function xt(st){pe("throw",st)}function gt(st,tn){st(tn),P.shift(),P.length&&pe(P[0][0],P[0][1])}};function lb(v){var c;tk();const h=(c=v.useBinaryFormat)!==null&&c!==void 0?c:!0;return{async unary(y,T,P,H,Y,pe,be){var Fe;const{serialize:xt,parse:gt}=Fo(T,h,v.jsonOptions,v.binaryOptions);return H=H===void 0?v.defaultTimeoutMs:H<=0?void 0:H,await JT({interceptors:v.interceptors,signal:P,timeoutMs:H,req:{stream:!1,service:y,method:T,url:Ga(v.baseUrl,y,T),init:{method:"POST",credentials:(Fe=v.credentials)!==null&&Fe!==void 0?Fe:"same-origin",redirect:"error",mode:"cors"},header:nk(h,H,Y),contextValues:be??YT(),message:pe},next:async st=>{var tn;const Rn=await((tn=v.fetch)!==null&&tn!==void 0?tn:globalThis.fetch)(st.url,Object.assign(Object.assign({},st.init),{headers:st.header,signal:st.signal,body:ab(0,xt(st.message))}));if(rk(Rn.status,Rn.headers),!Rn.body)throw"missing response body";const Jn=dS(Rn.body).getReader();let gi,vr;for(;;){const Zr=await Jn.read();if(Zr.done)break;const{flags:Qr,data:Si}=Zr.value;if(Qr===pS){if(gi!==void 0)throw"extra trailer";gi=ZT(Si);continue}if(vr!==void 0)throw"extra message";vr=gt(Si)}if(gi===void 0)throw"missing trailer";if(ro(gi,Rn.headers),vr===void 0)throw"missing message";return{stream:!1,service:y,method:T,header:Rn.headers,message:vr,trailer:gi}}})},async stream(y,T,P,H,Y,pe,be){var Fe;const{serialize:xt,parse:gt}=Fo(T,h,v.jsonOptions,v.binaryOptions);function st(In,Rn,Jn,gi){return Zd(this,arguments,function*(){const Zr=dS(In).getReader();if(Rn){if(!(yield Yd(Zr.read())).done)throw"extra data for trailers-only";return yield Yd(void 0)}let Qr=!1;for(;;){const Si=yield Yd(Zr.read());if(Si.done)break;const{flags:ws,data:zo}=Si.value;if((ws&pS)===pS){if(Qr)throw"extra trailer";Qr=!0;const yg=ZT(zo);ro(yg,gi),yg.forEach((Xk,uN)=>Jn.set(uN,Xk));continue}if(Qr)throw"extra message";yield yield Yd(gt(zo))}if(!Qr)throw"missing trailer"})}async function tn(In){if(T.kind!=Oa.ServerStreaming)throw"The fetch API does not support streaming request bodies";const Rn=await In[Symbol.asyncIterator]().next();if(Rn.done==!0)throw"missing request message";return ab(0,xt(Rn.value))}return H=H===void 0?v.defaultTimeoutMs:H<=0?void 0:H,ek({interceptors:v.interceptors,signal:P,timeoutMs:H,req:{stream:!0,service:y,method:T,url:Ga(v.baseUrl,y,T),init:{method:"POST",credentials:(Fe=v.credentials)!==null&&Fe!==void 0?Fe:"same-origin",redirect:"error",mode:"cors"},header:nk(h,H,Y),contextValues:be??YT(),message:pe},next:async In=>{var Rn;const gi=await((Rn=v.fetch)!==null&&Rn!==void 0?Rn:globalThis.fetch)(In.url,Object.assign(Object.assign({},In.init),{headers:In.header,signal:In.signal,body:await tn(In.message)})),{foundStatus:vr}=rk(gi.status,gi.headers);if(!gi.body)throw"missing response body";const Zr=new Headers;return Object.assign(Object.assign({},In),{header:gi.headers,trailer:Zr,message:st(gi.body,vr,Zr,gi.headers)})}})}}}const Xn=Ge.makeEnum("yorkie.v1.ValueType",[{no:0,name:"VALUE_TYPE_NULL",localName:"NULL"},{no:1,name:"VALUE_TYPE_BOOLEAN",localName:"BOOLEAN"},{no:2,name:"VALUE_TYPE_INTEGER",localName:"INTEGER"},{no:3,name:"VALUE_TYPE_LONG",localName:"LONG"},{no:4,name:"VALUE_TYPE_DOUBLE",localName:"DOUBLE"},{no:5,name:"VALUE_TYPE_STRING",localName:"STRING"},{no:6,name:"VALUE_TYPE_BYTES",localName:"BYTES"},{no:7,name:"VALUE_TYPE_DATE",localName:"DATE"},{no:8,name:"VALUE_TYPE_JSON_OBJECT",localName:"JSON_OBJECT"},{no:9,name:"VALUE_TYPE_JSON_ARRAY",localName:"JSON_ARRAY"},{no:10,name:"VALUE_TYPE_TEXT",localName:"TEXT"},{no:11,name:"VALUE_TYPE_INTEGER_CNT",localName:"INTEGER_CNT"},{no:12,name:"VALUE_TYPE_LONG_CNT",localName:"LONG_CNT"},{no:13,name:"VALUE_TYPE_TREE",localName:"TREE"}]),ei=Ge.makeEnum("yorkie.v1.DocEventType",[{no:0,name:"DOC_EVENT_TYPE_DOCUMENT_CHANGED",localName:"DOCUMENT_CHANGED"},{no:1,name:"DOC_EVENT_TYPE_DOCUMENT_WATCHED",localName:"DOCUMENT_WATCHED"},{no:2,name:"DOC_EVENT_TYPE_DOCUMENT_UNWATCHED",localName:"DOCUMENT_UNWATCHED"},{no:3,name:"DOC_EVENT_TYPE_DOCUMENT_BROADCAST",localName:"DOCUMENT_BROADCAST"}]),Xd=Ge.makeMessageType("yorkie.v1.Snapshot",()=>[{no:1,name:"root",kind:"message",T:pl},{no:2,name:"presences",kind:"map",K:9,V:{kind:"message",T:mb}}]),Kl=Ge.makeMessageType("yorkie.v1.ChangePack",()=>[{no:1,name:"document_key",kind:"scalar",T:9},{no:2,name:"checkpoint",kind:"message",T:ed},{no:3,name:"snapshot",kind:"scalar",T:12},{no:4,name:"changes",kind:"message",T:ik,repeated:!0},{no:5,name:"min_synced_ticket",kind:"message",T:kn},{no:6,name:"is_removed",kind:"scalar",T:8}]),ik=Ge.makeMessageType("yorkie.v1.Change",()=>[{no:1,name:"id",kind:"message",T:jp},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"operations",kind:"message",T:OS,repeated:!0},{no:4,name:"presence_change",kind:"message",T:AS}]),jp=Ge.makeMessageType("yorkie.v1.ChangeID",()=>[{no:1,name:"client_seq",kind:"scalar",T:13},{no:2,name:"server_seq",kind:"scalar",T:3,L:1},{no:3,name:"lamport",kind:"scalar",T:3,L:1},{no:4,name:"actor_id",kind:"scalar",T:12}]),OS=Ge.makeMessageType("yorkie.v1.Operation",()=>[{no:1,name:"set",kind:"message",T:ak,oneof:"body"},{no:2,name:"add",kind:"message",T:sk,oneof:"body"},{no:3,name:"move",kind:"message",T:SS,oneof:"body"},{no:4,name:"remove",kind:"message",T:Hm,oneof:"body"},{no:5,name:"edit",kind:"message",T:gh,oneof:"body"},{no:6,name:"select",kind:"message",T:w6,oneof:"body"},{no:7,name:"style",kind:"message",T:ES,oneof:"body"},{no:8,name:"increase",kind:"message",T:wS,oneof:"body"},{no:9,name:"tree_edit",kind:"message",T:ub,oneof:"body"},{no:10,name:"tree_style",kind:"message",T:cb,oneof:"body"}]),ak=Ge.makeMessageType("yorkie.v1.Operation.Set",()=>[{no:1,name:"parent_created_at",kind:"message",T:kn},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"value",kind:"message",T:Ku},{no:4,name:"executed_at",kind:"message",T:kn}],{localName:"Operation_Set"}),sk=Ge.makeMessageType("yorkie.v1.Operation.Add",()=>[{no:1,name:"parent_created_at",kind:"message",T:kn},{no:2,name:"prev_created_at",kind:"message",T:kn},{no:3,name:"value",kind:"message",T:Ku},{no:4,name:"executed_at",kind:"message",T:kn}],{localName:"Operation_Add"}),SS=Ge.makeMessageType("yorkie.v1.Operation.Move",()=>[{no:1,name:"parent_created_at",kind:"message",T:kn},{no:2,name:"prev_created_at",kind:"message",T:kn},{no:3,name:"created_at",kind:"message",T:kn},{no:4,name:"executed_at",kind:"message",T:kn}],{localName:"Operation_Move"}),Hm=Ge.makeMessageType("yorkie.v1.Operation.Remove",()=>[{no:1,name:"parent_created_at",kind:"message",T:kn},{no:2,name:"created_at",kind:"message",T:kn},{no:3,name:"executed_at",kind:"message",T:kn}],{localName:"Operation_Remove"}),gh=Ge.makeMessageType("yorkie.v1.Operation.Edit",()=>[{no:1,name:"parent_created_at",kind:"message",T:kn},{no:2,name:"from",kind:"message",T:ec},{no:3,name:"to",kind:"message",T:ec},{no:4,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:kn}},{no:5,name:"content",kind:"scalar",T:9},{no:6,name:"executed_at",kind:"message",T:kn},{no:7,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}}],{localName:"Operation_Edit"}),w6=Ge.makeMessageType("yorkie.v1.Operation.Select",()=>[{no:1,name:"parent_created_at",kind:"message",T:kn},{no:2,name:"from",kind:"message",T:ec},{no:3,name:"to",kind:"message",T:ec},{no:4,name:"executed_at",kind:"message",T:kn}],{localName:"Operation_Select"}),ES=Ge.makeMessageType("yorkie.v1.Operation.Style",()=>[{no:1,name:"parent_created_at",kind:"message",T:kn},{no:2,name:"from",kind:"message",T:ec},{no:3,name:"to",kind:"message",T:ec},{no:4,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:5,name:"executed_at",kind:"message",T:kn},{no:6,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:kn}}],{localName:"Operation_Style"}),wS=Ge.makeMessageType("yorkie.v1.Operation.Increase",()=>[{no:1,name:"parent_created_at",kind:"message",T:kn},{no:2,name:"value",kind:"message",T:Ku},{no:3,name:"executed_at",kind:"message",T:kn}],{localName:"Operation_Increase"}),ub=Ge.makeMessageType("yorkie.v1.Operation.TreeEdit",()=>[{no:1,name:"parent_created_at",kind:"message",T:kn},{no:2,name:"from",kind:"message",T:Ju},{no:3,name:"to",kind:"message",T:Ju},{no:4,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:kn}},{no:5,name:"contents",kind:"message",T:uk,repeated:!0},{no:7,name:"split_level",kind:"scalar",T:5},{no:6,name:"executed_at",kind:"message",T:kn}],{localName:"Operation_TreeEdit"}),cb=Ge.makeMessageType("yorkie.v1.Operation.TreeStyle",()=>[{no:1,name:"parent_created_at",kind:"message",T:kn},{no:2,name:"from",kind:"message",T:Ju},{no:3,name:"to",kind:"message",T:Ju},{no:4,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:5,name:"executed_at",kind:"message",T:kn},{no:6,name:"attributes_to_remove",kind:"scalar",T:9,repeated:!0},{no:7,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:kn}}],{localName:"Operation_TreeStyle"}),Ku=Ge.makeMessageType("yorkie.v1.JSONElementSimple",()=>[{no:1,name:"created_at",kind:"message",T:kn},{no:2,name:"moved_at",kind:"message",T:kn},{no:3,name:"removed_at",kind:"message",T:kn},{no:4,name:"type",kind:"enum",T:Ge.getEnumType(Xn)},{no:5,name:"value",kind:"scalar",T:12}]),pl=Ge.makeMessageType("yorkie.v1.JSONElement",()=>[{no:1,name:"json_object",kind:"message",T:db,oneof:"body"},{no:2,name:"json_array",kind:"message",T:fb,oneof:"body"},{no:3,name:"primitive",kind:"message",T:ok,oneof:"body"},{no:5,name:"text",kind:"message",T:xS,oneof:"body"},{no:6,name:"counter",kind:"message",T:io,oneof:"body"},{no:7,name:"tree",kind:"message",T:hb,oneof:"body"}]),db=Ge.makeMessageType("yorkie.v1.JSONElement.JSONObject",()=>[{no:1,name:"nodes",kind:"message",T:Wp,repeated:!0},{no:2,name:"created_at",kind:"message",T:kn},{no:3,name:"moved_at",kind:"message",T:kn},{no:4,name:"removed_at",kind:"message",T:kn}],{localName:"JSONElement_JSONObject"}),fb=Ge.makeMessageType("yorkie.v1.JSONElement.JSONArray",()=>[{no:1,name:"nodes",kind:"message",T:pb,repeated:!0},{no:2,name:"created_at",kind:"message",T:kn},{no:3,name:"moved_at",kind:"message",T:kn},{no:4,name:"removed_at",kind:"message",T:kn}],{localName:"JSONElement_JSONArray"}),ok=Ge.makeMessageType("yorkie.v1.JSONElement.Primitive",()=>[{no:1,name:"type",kind:"enum",T:Ge.getEnumType(Xn)},{no:2,name:"value",kind:"scalar",T:12},{no:3,name:"created_at",kind:"message",T:kn},{no:4,name:"moved_at",kind:"message",T:kn},{no:5,name:"removed_at",kind:"message",T:kn}],{localName:"JSONElement_Primitive"}),xS=Ge.makeMessageType("yorkie.v1.JSONElement.Text",()=>[{no:1,name:"nodes",kind:"message",T:lk,repeated:!0},{no:2,name:"created_at",kind:"message",T:kn},{no:3,name:"moved_at",kind:"message",T:kn},{no:4,name:"removed_at",kind:"message",T:kn}],{localName:"JSONElement_Text"}),io=Ge.makeMessageType("yorkie.v1.JSONElement.Counter",()=>[{no:1,name:"type",kind:"enum",T:Ge.getEnumType(Xn)},{no:2,name:"value",kind:"scalar",T:12},{no:3,name:"created_at",kind:"message",T:kn},{no:4,name:"moved_at",kind:"message",T:kn},{no:5,name:"removed_at",kind:"message",T:kn}],{localName:"JSONElement_Counter"}),hb=Ge.makeMessageType("yorkie.v1.JSONElement.Tree",()=>[{no:1,name:"nodes",kind:"message",T:kS,repeated:!0},{no:2,name:"created_at",kind:"message",T:kn},{no:3,name:"moved_at",kind:"message",T:kn},{no:4,name:"removed_at",kind:"message",T:kn}],{localName:"JSONElement_Tree"}),Wp=Ge.makeMessageType("yorkie.v1.RHTNode",()=>[{no:1,name:"key",kind:"scalar",T:9},{no:2,name:"element",kind:"message",T:pl}]),pb=Ge.makeMessageType("yorkie.v1.RGANode",()=>[{no:1,name:"next",kind:"message",T:pb},{no:2,name:"element",kind:"message",T:pl}]),jm=Ge.makeMessageType("yorkie.v1.NodeAttr",()=>[{no:1,name:"value",kind:"scalar",T:9},{no:2,name:"updated_at",kind:"message",T:kn},{no:3,name:"is_removed",kind:"scalar",T:8}]),lk=Ge.makeMessageType("yorkie.v1.TextNode",()=>[{no:1,name:"id",kind:"message",T:TS},{no:2,name:"value",kind:"scalar",T:9},{no:3,name:"removed_at",kind:"message",T:kn},{no:4,name:"ins_prev_id",kind:"message",T:TS},{no:5,name:"attributes",kind:"map",K:9,V:{kind:"message",T:jm}}]),TS=Ge.makeMessageType("yorkie.v1.TextNodeID",()=>[{no:1,name:"created_at",kind:"message",T:kn},{no:2,name:"offset",kind:"scalar",T:5}]),kS=Ge.makeMessageType("yorkie.v1.TreeNode",()=>[{no:1,name:"id",kind:"message",T:Qp},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"value",kind:"scalar",T:9},{no:4,name:"removed_at",kind:"message",T:kn},{no:5,name:"ins_prev_id",kind:"message",T:Qp},{no:6,name:"ins_next_id",kind:"message",T:Qp},{no:7,name:"depth",kind:"scalar",T:5},{no:8,name:"attributes",kind:"map",K:9,V:{kind:"message",T:jm}}]),uk=Ge.makeMessageType("yorkie.v1.TreeNodes",()=>[{no:1,name:"content",kind:"message",T:kS,repeated:!0}]),Qp=Ge.makeMessageType("yorkie.v1.TreeNodeID",()=>[{no:1,name:"created_at",kind:"message",T:kn},{no:2,name:"offset",kind:"scalar",T:5}]),Ju=Ge.makeMessageType("yorkie.v1.TreePos",()=>[{no:1,name:"parent_id",kind:"message",T:Qp},{no:2,name:"left_sibling_id",kind:"message",T:Qp}]);Ge.makeMessageType("yorkie.v1.User",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"username",kind:"scalar",T:9},{no:3,name:"created_at",kind:"message",T:Tn}]),Ge.makeMessageType("yorkie.v1.Project",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"public_key",kind:"scalar",T:9},{no:4,name:"secret_key",kind:"scalar",T:9},{no:5,name:"auth_webhook_url",kind:"scalar",T:9},{no:6,name:"auth_webhook_methods",kind:"scalar",T:9,repeated:!0},{no:7,name:"client_deactivate_threshold",kind:"scalar",T:9},{no:8,name:"created_at",kind:"message",T:Tn},{no:9,name:"updated_at",kind:"message",T:Tn}]),Ge.makeMessageType("yorkie.v1.UpdatableProjectFields",()=>[{no:1,name:"name",kind:"message",T:no},{no:2,name:"auth_webhook_url",kind:"message",T:no},{no:3,name:"auth_webhook_methods",kind:"message",T:x6},{no:4,name:"client_deactivate_threshold",kind:"message",T:no}]);const x6=Ge.makeMessageType("yorkie.v1.UpdatableProjectFields.AuthWebhookMethods",()=>[{no:1,name:"methods",kind:"scalar",T:9,repeated:!0}],{localName:"UpdatableProjectFields_AuthWebhookMethods"});Ge.makeMessageType("yorkie.v1.DocumentSummary",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"snapshot",kind:"scalar",T:9},{no:4,name:"created_at",kind:"message",T:Tn},{no:5,name:"accessed_at",kind:"message",T:Tn},{no:6,name:"updated_at",kind:"message",T:Tn}]);const AS=Ge.makeMessageType("yorkie.v1.PresenceChange",()=>[{no:1,name:"type",kind:"enum",T:Ge.getEnumType(bh)},{no:2,name:"presence",kind:"message",T:mb}]),bh=Ge.makeEnum("yorkie.v1.PresenceChange.ChangeType",[{no:0,name:"CHANGE_TYPE_UNSPECIFIED",localName:"UNSPECIFIED"},{no:1,name:"CHANGE_TYPE_PUT",localName:"PUT"},{no:2,name:"CHANGE_TYPE_DELETE",localName:"DELETE"},{no:3,name:"CHANGE_TYPE_CLEAR",localName:"CLEAR"}]),mb=Ge.makeMessageType("yorkie.v1.Presence",()=>[{no:1,name:"data",kind:"map",K:9,V:{kind:"scalar",T:9}}]),ed=Ge.makeMessageType("yorkie.v1.Checkpoint",()=>[{no:1,name:"server_seq",kind:"scalar",T:3,L:1},{no:2,name:"client_seq",kind:"scalar",T:13}]),ec=Ge.makeMessageType("yorkie.v1.TextNodePos",()=>[{no:1,name:"created_at",kind:"message",T:kn},{no:2,name:"offset",kind:"scalar",T:5},{no:3,name:"relative_offset",kind:"scalar",T:5}]),kn=Ge.makeMessageType("yorkie.v1.TimeTicket",()=>[{no:1,name:"lamport",kind:"scalar",T:3,L:1},{no:2,name:"delimiter",kind:"scalar",T:13},{no:3,name:"actor_id",kind:"scalar",T:12}]),T6=Ge.makeMessageType("yorkie.v1.DocEventBody",()=>[{no:1,name:"topic",kind:"scalar",T:9},{no:2,name:"payload",kind:"scalar",T:12}]),k6=Ge.makeMessageType("yorkie.v1.DocEvent",()=>[{no:1,name:"type",kind:"enum",T:Ge.getEnumType(ei)},{no:2,name:"publisher",kind:"scalar",T:9},{no:3,name:"body",kind:"message",T:T6}]),Gp=Ge.makeMessageType("yorkie.v1.ActivateClientRequest",()=>[{no:1,name:"client_key",kind:"scalar",T:9}]),Jl=Ge.makeMessageType("yorkie.v1.ActivateClientResponse",()=>[{no:1,name:"client_id",kind:"scalar",T:9}]),ck=Ge.makeMessageType("yorkie.v1.DeactivateClientRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9}]),A6=Ge.makeMessageType("yorkie.v1.DeactivateClientResponse",[]),_6=Ge.makeMessageType("yorkie.v1.AttachDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"change_pack",kind:"message",T:Kl}]),C6=Ge.makeMessageType("yorkie.v1.AttachDocumentResponse",()=>[{no:1,name:"document_id",kind:"scalar",T:9},{no:2,name:"change_pack",kind:"message",T:Kl}]),R6=Ge.makeMessageType("yorkie.v1.DetachDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"change_pack",kind:"message",T:Kl},{no:4,name:"remove_if_not_attached",kind:"scalar",T:8}]),I6=Ge.makeMessageType("yorkie.v1.DetachDocumentResponse",()=>[{no:2,name:"change_pack",kind:"message",T:Kl}]),Vp=Ge.makeMessageType("yorkie.v1.WatchDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9}]),He=Ge.makeMessageType("yorkie.v1.WatchDocumentResponse",()=>[{no:1,name:"initialization",kind:"message",T:ht,oneof:"body"},{no:2,name:"event",kind:"message",T:k6,oneof:"body"}]),ht=Ge.makeMessageType("yorkie.v1.WatchDocumentResponse.Initialization",()=>[{no:1,name:"client_ids",kind:"scalar",T:9,repeated:!0}],{localName:"WatchDocumentResponse_Initialization"}),nt=Ge.makeMessageType("yorkie.v1.RemoveDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"change_pack",kind:"message",T:Kl}]),ln=Ge.makeMessageType("yorkie.v1.RemoveDocumentResponse",()=>[{no:1,name:"change_pack",kind:"message",T:Kl}]),qn=Ge.makeMessageType("yorkie.v1.PushPullChangesRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"change_pack",kind:"message",T:Kl},{no:4,name:"push_only",kind:"scalar",T:8}]),Ur=Ge.makeMessageType("yorkie.v1.PushPullChangesResponse",()=>[{no:1,name:"change_pack",kind:"message",T:Kl}]),Ia=Ge.makeMessageType("yorkie.v1.BroadcastRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"topic",kind:"scalar",T:9},{no:4,name:"payload",kind:"scalar",T:12}]),ui=Ge.makeMessageType("yorkie.v1.BroadcastResponse",[]),_S={typeName:"yorkie.v1.YorkieService",methods:{activateClient:{name:"ActivateClient",I:Gp,O:Jl,kind:Oa.Unary},deactivateClient:{name:"DeactivateClient",I:ck,O:A6,kind:Oa.Unary},attachDocument:{name:"AttachDocument",I:_6,O:C6,kind:Oa.Unary},detachDocument:{name:"DetachDocument",I:R6,O:I6,kind:Oa.Unary},removeDocument:{name:"RemoveDocument",I:nt,O:ln,kind:Oa.Unary},pushPullChanges:{name:"PushPullChanges",I:qn,O:Ur,kind:Oa.Unary},watchDocument:{name:"WatchDocument",I:Vp,O:He,kind:Oa.ServerStreaming},broadcast:{name:"Broadcast",I:Ia,O:ui,kind:Oa.Unary}}};/** + * @license + * Copyright 2009 The Closure Library Authors + * Copyright 2020 Daniel Wirtz / The long.js Authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */var ml=null;try{ml=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function Cn(v,c,h){this.low=v|0,this.high=c|0,this.unsigned=!!h}Cn.prototype.__isLong__,Object.defineProperty(Cn.prototype,"__isLong__",{value:!0});function Na(v){return(v&&v.__isLong__)===!0}function dk(v){var c=Math.clz32(v&-v);return v?31-c:c}Cn.isLong=Na;var yh={},Wm={};function tc(v,c){var h,y,T;return c?(v>>>=0,(T=0<=v&&v<256)&&(y=Wm[v],y)?y:(h=Lr(v,0,!0),T&&(Wm[v]=h),h)):(v|=0,(T=-128<=v&&v<128)&&(y=yh[v],y)?y:(h=Lr(v,v<0?-1:0,!1),T&&(yh[v]=h),h))}Cn.fromInt=tc;function tr(v,c){if(isNaN(v))return c?nc:ao;if(c){if(v<0)return nc;if(v>=nd)return Kd}else{if(v<=-Gm)return es;if(v+1>=Gm)return Yp}return v<0?tr(-v,c).neg():Lr(v%td|0,v/td|0,c)}Cn.fromNumber=tr;function Lr(v,c,h){return new Cn(v,c,h)}Cn.fromBits=Lr;var Qm=Math.pow;function qp(v,c,h){if(v.length===0)throw Error("empty string");if(typeof c=="number"?(h=c,c=!1):c=!!c,v==="NaN"||v==="Infinity"||v==="+Infinity"||v==="-Infinity")return c?nc:ao;if(h=h||10,h<2||360)throw Error("interior hyphen");if(y===0)return qp(v.substring(1),c,h).neg();for(var T=tr(Qm(h,8)),P=ao,H=0;H>>0:this.low},Ft.toNumber=function(){return this.unsigned?(this.high>>>0)*td+(this.low>>>0):this.high*td+(this.low>>>0)},Ft.toString=function(c){if(c=c||10,c<2||36>>0,Fe=be.toString(c);if(H=pe,H.isZero())return Fe+Y;for(;Fe.length<6;)Fe="0"+Fe;Y=""+Fe+Y}},Ft.getHighBits=function(){return this.high},Ft.getHighBitsUnsigned=function(){return this.high>>>0},Ft.getLowBits=function(){return this.low},Ft.getLowBitsUnsigned=function(){return this.low>>>0},Ft.getNumBitsAbs=function(){if(this.isNegative())return this.eq(es)?64:this.neg().getNumBitsAbs();for(var c=this.high!=0?this.high:this.low,h=31;h>0&&!(c&1<=0},Ft.isOdd=function(){return(this.low&1)===1},Ft.isEven=function(){return(this.low&1)===0},Ft.equals=function(c){return Na(c)||(c=eu(c)),this.unsigned!==c.unsigned&&this.high>>>31===1&&c.high>>>31===1?!1:this.high===c.high&&this.low===c.low},Ft.eq=Ft.equals,Ft.notEquals=function(c){return!this.eq(c)},Ft.neq=Ft.notEquals,Ft.ne=Ft.notEquals,Ft.lessThan=function(c){return this.comp(c)<0},Ft.lt=Ft.lessThan,Ft.lessThanOrEqual=function(c){return this.comp(c)<=0},Ft.lte=Ft.lessThanOrEqual,Ft.le=Ft.lessThanOrEqual,Ft.greaterThan=function(c){return this.comp(c)>0},Ft.gt=Ft.greaterThan,Ft.greaterThanOrEqual=function(c){return this.comp(c)>=0},Ft.gte=Ft.greaterThanOrEqual,Ft.ge=Ft.greaterThanOrEqual,Ft.compare=function(c){if(Na(c)||(c=eu(c)),this.eq(c))return 0;var h=this.isNegative(),y=c.isNegative();return h&&!y?-1:!h&&y?1:this.unsigned?c.high>>>0>this.high>>>0||c.high===this.high&&c.low>>>0>this.low>>>0?-1:1:this.sub(c).isNegative()?-1:1},Ft.comp=Ft.compare,Ft.negate=function(){return!this.unsigned&&this.eq(es)?es:this.not().add(vh)},Ft.neg=Ft.negate,Ft.add=function(c){Na(c)||(c=eu(c));var h=this.high>>>16,y=this.high&65535,T=this.low>>>16,P=this.low&65535,H=c.high>>>16,Y=c.high&65535,pe=c.low>>>16,be=c.low&65535,Fe=0,xt=0,gt=0,st=0;return st+=P+be,gt+=st>>>16,st&=65535,gt+=T+pe,xt+=gt>>>16,gt&=65535,xt+=y+Y,Fe+=xt>>>16,xt&=65535,Fe+=h+H,Fe&=65535,Lr(gt<<16|st,Fe<<16|xt,this.unsigned)},Ft.subtract=function(c){return Na(c)||(c=eu(c)),this.add(c.neg())},Ft.sub=Ft.subtract,Ft.multiply=function(c){if(this.isZero())return this;if(Na(c)||(c=eu(c)),ml){var h=ml.mul(this.low,this.high,c.low,c.high);return Lr(h,ml.get_high(),this.unsigned)}if(c.isZero())return this.unsigned?nc:ao;if(this.eq(es))return c.isOdd()?es:ao;if(c.eq(es))return this.isOdd()?es:ao;if(this.isNegative())return c.isNegative()?this.neg().mul(c.neg()):this.neg().mul(c).neg();if(c.isNegative())return this.mul(c.neg()).neg();if(this.lt(CS)&&c.lt(CS))return tr(this.toNumber()*c.toNumber(),this.unsigned);var y=this.high>>>16,T=this.high&65535,P=this.low>>>16,H=this.low&65535,Y=c.high>>>16,pe=c.high&65535,be=c.low>>>16,Fe=c.low&65535,xt=0,gt=0,st=0,tn=0;return tn+=H*Fe,st+=tn>>>16,tn&=65535,st+=P*Fe,gt+=st>>>16,st&=65535,st+=H*be,gt+=st>>>16,st&=65535,gt+=T*Fe,xt+=gt>>>16,gt&=65535,gt+=P*be,xt+=gt>>>16,gt&=65535,gt+=H*pe,xt+=gt>>>16,gt&=65535,xt+=y*Fe+T*be+P*pe+H*Y,xt&=65535,Lr(st<<16|tn,xt<<16|gt,this.unsigned)},Ft.mul=Ft.multiply,Ft.divide=function(c){if(Na(c)||(c=eu(c)),c.isZero())throw Error("division by zero");if(ml){if(!this.unsigned&&this.high===-2147483648&&c.low===-1&&c.high===-1)return this;var h=(this.unsigned?ml.div_u:ml.div_s)(this.low,this.high,c.low,c.high);return Lr(h,ml.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?nc:ao;var y,T,P;if(this.unsigned){if(c.unsigned||(c=c.toUnsigned()),c.gt(this))return nc;if(c.gt(this.shru(1)))return Vm;P=nc}else{if(this.eq(es)){if(c.eq(vh)||c.eq(gb))return es;if(c.eq(es))return vh;var H=this.shr(1);return y=H.div(c).shl(1),y.eq(ao)?c.isNegative()?vh:gb:(T=this.sub(c.mul(y)),P=y.add(T.div(c)),P)}else if(c.eq(es))return this.unsigned?nc:ao;if(this.isNegative())return c.isNegative()?this.neg().div(c.neg()):this.neg().div(c).neg();if(c.isNegative())return this.div(c.neg()).neg();P=ao}for(T=this;T.gte(c);){y=Math.max(1,Math.floor(T.toNumber()/c.toNumber()));for(var Y=Math.ceil(Math.log(y)/Math.LN2),pe=Y<=48?1:Qm(2,Y-48),be=tr(y),Fe=be.mul(c);Fe.isNegative()||Fe.gt(T);)y-=pe,be=tr(y,this.unsigned),Fe=be.mul(c);be.isZero()&&(be=vh),P=P.add(be),T=T.sub(Fe)}return P},Ft.div=Ft.divide,Ft.modulo=function(c){if(Na(c)||(c=eu(c)),ml){var h=(this.unsigned?ml.rem_u:ml.rem_s)(this.low,this.high,c.low,c.high);return Lr(h,ml.get_high(),this.unsigned)}return this.sub(this.div(c).mul(c))},Ft.mod=Ft.modulo,Ft.rem=Ft.modulo,Ft.not=function(){return Lr(~this.low,~this.high,this.unsigned)},Ft.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},Ft.clz=Ft.countLeadingZeros,Ft.countTrailingZeros=function(){return this.low?dk(this.low):dk(this.high)+32},Ft.ctz=Ft.countTrailingZeros,Ft.and=function(c){return Na(c)||(c=eu(c)),Lr(this.low&c.low,this.high&c.high,this.unsigned)},Ft.or=function(c){return Na(c)||(c=eu(c)),Lr(this.low|c.low,this.high|c.high,this.unsigned)},Ft.xor=function(c){return Na(c)||(c=eu(c)),Lr(this.low^c.low,this.high^c.high,this.unsigned)},Ft.shiftLeft=function(c){return Na(c)&&(c=c.toInt()),(c&=63)===0?this:c<32?Lr(this.low<>>32-c,this.unsigned):Lr(0,this.low<>>c|this.high<<32-c,this.high>>c,this.unsigned):Lr(this.high>>c-32,this.high>=0?0:-1,this.unsigned)},Ft.shr=Ft.shiftRight,Ft.shiftRightUnsigned=function(c){return Na(c)&&(c=c.toInt()),(c&=63)===0?this:c<32?Lr(this.low>>>c|this.high<<32-c,this.high>>>c,this.unsigned):c===32?Lr(this.high,0,this.unsigned):Lr(this.high>>>c-32,0,this.unsigned)},Ft.shru=Ft.shiftRightUnsigned,Ft.shr_u=Ft.shiftRightUnsigned,Ft.rotateLeft=function(c){var h;return Na(c)&&(c=c.toInt()),(c&=63)===0?this:c===32?Lr(this.high,this.low,this.unsigned):c<32?(h=32-c,Lr(this.low<>>h,this.high<>>h,this.unsigned)):(c-=32,h=32-c,Lr(this.high<>>h,this.low<>>h,this.unsigned))},Ft.rotl=Ft.rotateLeft,Ft.rotateRight=function(c){var h;return Na(c)&&(c=c.toInt()),(c&=63)===0?this:c===32?Lr(this.high,this.low,this.unsigned):c<32?(h=32-c,Lr(this.high<>>c,this.low<>>c,this.unsigned)):(c-=32,h=32-c,Lr(this.low<>>c,this.high<>>c,this.unsigned))},Ft.rotr=Ft.rotateRight,Ft.toSigned=function(){return this.unsigned?Lr(this.low,this.high,!1):this},Ft.toUnsigned=function(){return this.unsigned?this:Lr(this.low,this.high,!0)},Ft.toBytes=function(c){return c?this.toBytesLE():this.toBytesBE()},Ft.toBytesLE=function(){var c=this.high,h=this.low;return[h&255,h>>>8&255,h>>>16&255,h>>>24,c&255,c>>>8&255,c>>>16&255,c>>>24]},Ft.toBytesBE=function(){var c=this.high,h=this.low;return[c>>>24,c>>>16&255,c>>>8&255,c&255,h>>>24,h>>>16&255,h>>>8&255,h&255]},Cn.fromBytes=function(c,h,y){return y?Cn.fromBytesLE(c,h):Cn.fromBytesBE(c,h)},Cn.fromBytesLE=function(c,h){return new Cn(c[0]|c[1]<<8|c[2]<<16|c[3]<<24,c[4]|c[5]<<8|c[6]<<16|c[7]<<24,h)},Cn.fromBytesBE=function(c,h){return new Cn(c[4]<<24|c[5]<<16|c[6]<<8|c[7],c[0]<<24|c[1]<<16|c[2]<<8|c[3],h)};const D6=Ge.makeMessageType("google.rpc.ErrorInfo",()=>[{no:1,name:"reason",kind:"scalar",T:9},{no:2,name:"domain",kind:"scalar",T:9},{no:3,name:"metadata",kind:"map",K:9,V:{kind:"scalar",T:9}}]);Ge.makeMessageType("google.rpc.RetryInfo",()=>[{no:1,name:"retry_delay",kind:"message",T:Rr}]),Ge.makeMessageType("google.rpc.DebugInfo",()=>[{no:1,name:"stack_entries",kind:"scalar",T:9,repeated:!0},{no:2,name:"detail",kind:"scalar",T:9}]),Ge.makeMessageType("google.rpc.QuotaFailure",()=>[{no:1,name:"violations",kind:"message",T:P6,repeated:!0}]);const P6=Ge.makeMessageType("google.rpc.QuotaFailure.Violation",()=>[{no:1,name:"subject",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9}],{localName:"QuotaFailure_Violation"});Ge.makeMessageType("google.rpc.PreconditionFailure",()=>[{no:1,name:"violations",kind:"message",T:bb,repeated:!0}]);const bb=Ge.makeMessageType("google.rpc.PreconditionFailure.Violation",()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"subject",kind:"scalar",T:9},{no:3,name:"description",kind:"scalar",T:9}],{localName:"PreconditionFailure_Violation"});Ge.makeMessageType("google.rpc.BadRequest",()=>[{no:1,name:"field_violations",kind:"message",T:yb,repeated:!0}]);const yb=Ge.makeMessageType("google.rpc.BadRequest.FieldViolation",()=>[{no:1,name:"field",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9}],{localName:"BadRequest_FieldViolation"});Ge.makeMessageType("google.rpc.RequestInfo",()=>[{no:1,name:"request_id",kind:"scalar",T:9},{no:2,name:"serving_data",kind:"scalar",T:9}]),Ge.makeMessageType("google.rpc.ResourceInfo",()=>[{no:1,name:"resource_type",kind:"scalar",T:9},{no:2,name:"resource_name",kind:"scalar",T:9},{no:3,name:"owner",kind:"scalar",T:9},{no:4,name:"description",kind:"scalar",T:9}]),Ge.makeMessageType("google.rpc.Help",()=>[{no:1,name:"links",kind:"message",T:RS,repeated:!0}]);const RS=Ge.makeMessageType("google.rpc.Help.Link",()=>[{no:1,name:"description",kind:"scalar",T:9},{no:2,name:"url",kind:"scalar",T:9}],{localName:"Help_Link"});Ge.makeMessageType("google.rpc.LocalizedMessage",()=>[{no:1,name:"locale",kind:"scalar",T:9},{no:2,name:"message",kind:"scalar",T:9}]);var Ye=(v=>(v.Ok="ok",v.ErrClientNotActivated="ErrClientNotActivated",v.ErrClientNotFound="ErrClientNotFound",v.ErrUnimplemented="ErrUnimplemented",v.ErrInvalidType="ErrInvalidType",v.ErrDummy="ErrDummy",v.ErrDocumentNotAttached="ErrDocumentNotAttached",v.ErrDocumentNotDetached="ErrDocumentNotDetached",v.ErrDocumentRemoved="ErrDocumentRemoved",v.ErrInvalidObjectKey="ErrInvalidObjectKey",v.ErrInvalidArgument="ErrInvalidArgument",v.ErrNotInitialized="ErrNotInitialized",v.ErrNotReady="ErrNotReady",v.ErrRefused="ErrRefused",v.ErrContextNotProvided="ErrContextNotProvided",v))(Ye||{});class Xe extends Error{constructor(c,h){super(h),s(this,"name","YorkieError"),s(this,"stack"),this.code=c,this.message=h,this.toString=()=>`[code=${this.code}]: ${this.message}`}}function tu(v){if(v instanceof Map){const c=Array.from(v);return new Map(JSON.parse(JSON.stringify(c)))}return JSON.parse(JSON.stringify(v))}const hk=v=>v?Object.entries(v).length===0:!0,Ii=v=>{const c={};for(const[h,y]of Object.entries(v))c[h]=JSON.stringify(y);return c},ua=v=>{const c={};for(const[h,y]of Object.entries(v))c[h]=JSON.parse(y);return c};var Jd=(v=>(v.Put="put",v.Clear="clear",v))(Jd||{});class IS{constructor(c,h){s(this,"context"),s(this,"presence"),this.context=c,this.presence=h}set(c,h){for(const y of Object.keys(c))this.presence[y]=c[y];this.context.setPresenceChange({type:"put",presence:tu(this.presence)}),this.context.setReversePresence(c,h)}get(c){return this.presence[c]}clear(){this.presence={},this.context.setPresenceChange({type:"clear"})}}const qm="000000000000000000000000",M6="FFFFFFFFFFFFFFFFFFFFFFFF";class ts{constructor(c,h,y){s(this,"lamport"),s(this,"delimiter"),s(this,"actorID"),this.lamport=c,this.delimiter=h,this.actorID=y}static of(c,h,y){return new ts(c,h,y)}static fromStruct(c){return ts.of(Cn.fromString(c.lamport,!0),c.delimiter,c.actorID)}toIDString(){return`${this.lamport.toString()}:${this.actorID}:${this.delimiter}`}toStruct(){return{lamport:this.getLamportAsString(),delimiter:this.getDelimiter(),actorID:this.getActorID()}}toTestString(){return`${this.lamport.toString()}:${this.actorID.slice(-2)}:${this.delimiter}`}setActor(c){return new ts(this.lamport,this.delimiter,c)}getLamportAsString(){return this.lamport.toString()}getLamport(){return this.lamport}getDelimiter(){return this.delimiter}getActorID(){return this.actorID}after(c){return this.compare(c)>0}equals(c){return this.compare(c)===0}compare(c){if(this.lamport.greaterThan(c.lamport))return 1;if(c.lamport.greaterThan(this.lamport))return-1;const h=this.actorID.localeCompare(c.actorID);return h!==0?h:this.delimiter>c.delimiter?1:c.delimiter>this.delimiter?-1:0}}const Oh=0,NS=4294967295,Zp=Cn.MAX_VALUE,Ms=new ts(Cn.fromNumber(0),Oh,qm);new ts(Cn.fromNumber(1),Oh+1,qm);const rd=new ts(Zp,NS,M6);function Bo(v){return v.replace(/["'\\\n\r\f\b\t\u2028\u2029]/g,function(c){switch(c){case'"':case"\\":return"\\"+c;case` +`:return"\\n";case"\r":return"\\r";case"\f":return"\\f";case"\b":return"\\b";case" ":return"\\t";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return c}})}class rc{constructor(c){s(this,"createdAt"),s(this,"movedAt"),s(this,"removedAt"),this.createdAt=c}getCreatedAt(){return this.createdAt}getID(){return this.createdAt}getMovedAt(){return this.movedAt}getRemovedAt(){return this.removedAt}getPositionedAt(){return this.movedAt?this.movedAt:this.createdAt}setMovedAt(c){return!this.movedAt||c&&c.after(this.movedAt)?(this.movedAt=c,!0):!1}setRemovedAt(c){this.removedAt=c}remove(c){return c&&c.after(this.getPositionedAt())&&(!this.removedAt||c.after(this.removedAt))?(this.removedAt=c,!0):!1}isRemoved(){return!!this.removedAt}}class ef extends rc{constructor(c){super(c)}}class DS{constructor(c,h){s(this,"strKey"),s(this,"value"),this.strKey=c,this.value=h}static of(c,h){return new DS(c,h)}isRemoved(){return this.value.isRemoved()}getStrKey(){return this.strKey}getValue(){return this.value}remove(c){return this.value.remove(c)}}class Ym{constructor(){s(this,"nodeMapByKey"),s(this,"nodeMapByCreatedAt"),this.nodeMapByKey=new Map,this.nodeMapByCreatedAt=new Map}static create(){return new Ym}set(c,h,y){let T;const P=this.nodeMapByKey.get(c);P!=null&&!P.isRemoved()&&P.remove(y)&&(T=P.getValue());const H=DS.of(c,h);return this.nodeMapByCreatedAt.set(h.getCreatedAt().toIDString(),H),(P==null||y.after(P.getValue().getPositionedAt()))&&(this.nodeMapByKey.set(c,H),h.setMovedAt(y)),T}delete(c,h){if(!this.nodeMapByCreatedAt.has(c.toIDString()))throw new Xe(Ye.ErrInvalidArgument,`fail to find ${c.toIDString()}`);const y=this.nodeMapByCreatedAt.get(c.toIDString());return y.remove(h),y.getValue()}subPathOf(c){const h=this.nodeMapByCreatedAt.get(c.toIDString());if(h)return h.getStrKey()}purge(c){const h=this.nodeMapByCreatedAt.get(c.getCreatedAt().toIDString());if(!h)throw new Xe(Ye.ErrInvalidArgument,`fail to find ${c.getCreatedAt().toIDString()}`);const y=this.nodeMapByKey.get(h.getStrKey());h===y&&this.nodeMapByKey.delete(y.getStrKey()),this.nodeMapByCreatedAt.delete(h.getValue().getCreatedAt().toIDString())}deleteByKey(c,h){const y=this.nodeMapByKey.get(c);if(y!=null&&y.remove(h))return y.getValue()}has(c){const h=this.nodeMapByKey.get(c);return h==null?!1:!h.isRemoved()}getByID(c){return this.nodeMapByCreatedAt.get(c.toIDString())}get(c){const h=this.nodeMapByKey.get(c);if(!(!h||h.isRemoved()))return h}*[Symbol.iterator](){for(const[,c]of this.nodeMapByKey)yield c}}class so extends ef{constructor(c,h){super(c),s(this,"memberNodes"),this.memberNodes=h}static create(c,h){if(!h)return new so(c,Ym.create());const y=Ym.create();for(const[T,P]of Object.entries(h))y.set(T,P.deepcopy(),P.getCreatedAt());return new so(c,y)}subPathOf(c){return this.memberNodes.subPathOf(c)}purge(c){this.memberNodes.purge(c)}set(c,h,y){return this.memberNodes.set(c,h,y)}delete(c,h){return this.memberNodes.delete(c,h)}deleteByKey(c,h){return this.memberNodes.deleteByKey(c,h)}get(c){const h=this.memberNodes.get(c);return h==null?void 0:h.getValue()}getByID(c){const h=this.memberNodes.getByID(c);return h==null?void 0:h.getValue()}has(c){return this.memberNodes.has(c)}toJSON(){const c=[];for(const[h,y]of this)c.push(`"${Bo(h)}":${y.toJSON()}`);return`{${c.join(",")}}`}toJS(){return JSON.parse(this.toJSON())}toJSForTest(){const c={};for(const[h,y]of this){const{createdAt:T,value:P,type:H}=y.toJSForTest();c[h]={key:h,createdAt:T,value:P,type:H}}return{createdAt:this.getCreatedAt().toTestString(),value:c,type:"YORKIE_OBJECT"}}getKeys(){const c=Array();for(const[h]of this)c.push(h);return c}toSortedJSON(){var c;const h=Array();for(const[T]of this)h.push(T);const y=[];for(const T of h.sort()){const P=(c=this.memberNodes.get(T))==null?void 0:c.getValue();y.push(`"${Bo(T)}":${P.toSortedJSON()}`)}return`{${y.join(",")}}`}getRHT(){return this.memberNodes}deepcopy(){const c=so.create(this.getCreatedAt());for(const h of this.memberNodes)c.memberNodes.set(h.getStrKey(),h.getValue().deepcopy(),this.getPositionedAt());return c.remove(this.getRemovedAt()),c}getDescendants(c){for(const h of this.memberNodes){const y=h.getValue();if(c(y,this))return;y instanceof ef&&y.getDescendants(c)}}*[Symbol.iterator](){const c=new Set;for(const h of this.memberNodes)c.has(h.getStrKey())||(c.add(h.getStrKey()),h.isRemoved()||(yield[h.getStrKey(),h.getValue()]))}}var ti=(v=>(v.Local="local",v.Remote="remote",v.UndoRedo="undoredo",v))(ti||{});class oo{constructor(c,h){s(this,"parentCreatedAt"),s(this,"executedAt"),this.parentCreatedAt=c,this.executedAt=h}getParentCreatedAt(){return this.parentCreatedAt}getExecutedAt(){if(!this.executedAt)throw new Xe(Ye.ErrNotReady,"executedAt is not set yet");return this.executedAt}setActor(c){this.executedAt&&(this.executedAt=this.executedAt.setActor(c))}setExecutedAt(c){this.executedAt=c}}class Xp{constructor(c){s(this,"value"),s(this,"left"),s(this,"right"),s(this,"parent"),s(this,"weight"),this.value=c,this.initWeight()}getNodeString(){return`${this.weight}${this.value}`}getValue(){return this.value}getLeftWeight(){return this.hasLeft()?this.left.getWeight():0}getRightWeight(){return this.hasRight()?this.right.getWeight():0}getWeight(){return this.weight}getLeft(){return this.left}getRight(){return this.right}getParent(){return this.parent}hasLeft(){return!!this.left}hasRight(){return!!this.right}hasParent(){return!!this.parent}setLeft(c){this.left=c}setRight(c){this.right=c}setParent(c){this.parent=c}unlink(){this.parent=void 0,this.right=void 0,this.left=void 0}hasLinks(){return this.hasParent()||this.hasLeft()||this.hasRight()}increaseWeight(c){this.weight+=c}initWeight(){this.weight=this.getLength()}}class Kp{constructor(c){s(this,"root"),this.root=c}get length(){return this.root?this.root.getWeight():0}find(c){if(!this.root||c<0)return[void 0,0];let h=this.root;for(;;)if(h.hasLeft()&&c<=h.getLeftWeight())h=h.getLeft();else if(h.hasRight()&&h.getLeftWeight()+h.getLength()h.getLength())throw new Xe(Ye.ErrInvalidArgument,`out of index range: pos: ${c} > node.length: ${h.getLength()}`);return[h,c]}indexOf(c){if(!c||c!==this.root&&!c.hasLinks())return-1;let h=0,y=c,T;for(;y;)(!T||T===y.getRight())&&(h+=y.getLength()+(y.hasLeft()?y.getLeftWeight():0)),T=y,y=y.getParent();return h-c.getLength()}getRoot(){return this.root}insert(c){return this.insertAfter(this.root,c)}insertAfter(c,h){return c?(this.splayNode(c),this.root=h,h.setRight(c.getRight()),c.hasRight()&&c.getRight().setParent(h),h.setLeft(c),c.setParent(h),c.setRight(),this.updateWeight(c),this.updateWeight(h),h):(this.root=h,h)}updateWeight(c){c.initWeight(),c.hasLeft()&&c.increaseWeight(c.getLeftWeight()),c.hasRight()&&c.increaseWeight(c.getRightWeight())}updateTreeWeight(c){for(;c;)this.updateWeight(c),c=c.getParent()}splayNode(c){if(c)for(;;)if(this.isLeftChild(c.getParent())&&this.isRightChild(c))this.rotateLeft(c),this.rotateRight(c);else if(this.isRightChild(c.getParent())&&this.isLeftChild(c))this.rotateRight(c),this.rotateLeft(c);else if(this.isLeftChild(c.getParent())&&this.isLeftChild(c))this.rotateRight(c.getParent()),this.rotateRight(c);else if(this.isRightChild(c.getParent())&&this.isRightChild(c))this.rotateLeft(c.getParent()),this.rotateLeft(c);else{this.isLeftChild(c)?this.rotateRight(c):this.isRightChild(c)&&this.rotateLeft(c),this.updateWeight(c);return}}delete(c){this.splayNode(c);const h=new Kp(c.getLeft());h.root&&h.root.setParent();const y=new Kp(c.getRight());if(y.root&&y.root.setParent(),h.root){const T=h.getRightmost();h.splayNode(T),h.root.setRight(y.root),y.root&&y.root.setParent(h.root),this.root=h.root}else this.root=y.root;c.unlink(),this.root&&this.updateWeight(this.root)}deleteRange(c,h){if(!h){this.splayNode(c),this.cutOffRight(c);return}this.splayNode(c),this.splayNode(h),h.getLeft()!=c&&this.rotateRight(c),this.cutOffRight(c)}cutOffRight(c){const h=[];this.traversePostorder(c.getRight(),h);for(const y of h)y.initWeight();this.updateTreeWeight(c)}toTestString(){const c=[];return this.traverseInorder(this.root,c),c.map(h=>`[${h.getWeight()},${h.getLength()}]${h.getValue()||""}`).join("")}checkWeight(){const c=[];this.traverseInorder(this.root,c);for(const h of c)if(h.getWeight()!=h.getLength()+h.getLeftWeight()+h.getRightWeight())return!1;return!0}getRightmost(){let c=this.root;for(;c.hasRight();)c=c.getRight();return c}traverseInorder(c,h){c&&(this.traverseInorder(c.getLeft(),h),h.push(c),this.traverseInorder(c.getRight(),h))}traversePostorder(c,h){c&&(this.traversePostorder(c.getLeft(),h),this.traversePostorder(c.getRight(),h),h.push(c))}rotateLeft(c){const h=c.getParent();h.hasParent()?h===h.getParent().getLeft()?h.getParent().setLeft(c):h.getParent().setRight(c):this.root=c,c.setParent(h.getParent()),h.setRight(c.getLeft()),h.hasRight()&&h.getRight().setParent(h),c.setLeft(h),c.getLeft().setParent(c),this.updateWeight(h),this.updateWeight(c)}rotateRight(c){const h=c.getParent();h.hasParent()?h===h.getParent().getLeft()?h.getParent().setLeft(c):h.getParent().setRight(c):this.root=c,c.setParent(h.getParent()),h.setLeft(c.getRight()),h.hasLeft()&&h.getLeft().setParent(h),c.setRight(h),c.getRight().setParent(c),this.updateWeight(h),this.updateWeight(c)}isLeftChild(c){return c&&c.hasParent()?c.getParent().getLeft()===c:!1}isRightChild(c){return c&&c.hasParent()?c.getParent().getRight()===c:!1}}var ae=(v=>(v[v.Null=0]="Null",v[v.Boolean=1]="Boolean",v[v.Integer=2]="Integer",v[v.Long=3]="Long",v[v.Double=4]="Double",v[v.String=5]="String",v[v.Bytes=6]="Bytes",v[v.Date=7]="Date",v))(ae||{});class Yr extends rc{constructor(c,h){super(h),s(this,"valueType"),s(this,"value"),this.valueType=Yr.getPrimitiveType(c),this.value=c===void 0?null:c}static of(c,h){return new Yr(c,h)}static valueFromBytes(c,h){switch(c){case 0:return null;case 1:return!!h[0];case 2:return h[0]|h[1]<<8|h[2]<<16|h[3]<<24;case 4:{const y=new DataView(h.buffer);return h.forEach(function(T,P){y.setUint8(P,T)}),y.getFloat64(0,!0)}case 5:return new TextDecoder("utf-8").decode(h);case 3:return Cn.fromBytesLE(Array.from(h));case 6:return h;case 7:return new Date(Cn.fromBytesLE(Array.from(h),!0).toNumber());default:throw new Xe(Ye.ErrUnimplemented,`unimplemented type: ${c}`)}}toJSON(){return this.valueType===5?`"${Bo(this.value)}"`:`${this.value}`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:this.value,type:"YORKIE_PRIMITIVE"}}deepcopy(){const c=Yr.of(this.value,this.getCreatedAt());return c.setMovedAt(this.getMovedAt()),c.setRemovedAt(this.getRemovedAt()),c}getType(){return this.valueType}static getPrimitiveType(c){switch(typeof c){case"undefined":return 0;case"boolean":return 1;case"number":return this.isInteger(c)?2:4;case"string":return 5;case"object":if(c===null)return 0;if(c instanceof Cn)return 3;if(c instanceof Uint8Array)return 6;if(c instanceof Date)return 7}}static isSupport(c){return Yr.getPrimitiveType(c)!==void 0}static isInteger(c){return c%1===0}isNumericType(){const c=this.valueType;return c===2||c===3||c===4}getValue(){return this.value}toBytes(){switch(this.valueType){case 0:return new Uint8Array;case 1:return this.value?new Uint8Array([1]):new Uint8Array([0]);case 2:{const c=this.value;return new Uint8Array([c&255,c>>8&255,c>>16&255,c>>24&255])}case 4:{const c=this.value,h=new Uint8Array(8);return new DataView(h.buffer).setFloat64(0,c,!0),h}case 5:return new TextEncoder().encode(this.value);case 3:{const h=this.value.toBytesLE();return Uint8Array.from(h)}case 6:return this.value;case 7:{const c=this.value,h=Cn.fromNumber(c.getTime(),!0).toBytesLE();return Uint8Array.from(h)}default:throw new Xe(Ye.ErrUnimplemented,`unimplemented type: ${this.valueType}`)}}}class Sh extends Xp{constructor(c){super(c),s(this,"prev"),s(this,"next"),this.value=c}static createAfter(c,h){const y=new Sh(h),T=c.next;return c.next=y,y.prev=c,y.next=T,T&&(T.prev=y),y}remove(c){return this.value.remove(c)}getCreatedAt(){return this.value.getCreatedAt()}getPositionedAt(){return this.value.getPositionedAt()}release(){this.prev&&(this.prev.next=this.next),this.next&&(this.next.prev=this.prev),this.prev=void 0,this.next=void 0}getLength(){return this.value.isRemoved()?0:1}getPrev(){return this.prev}getNext(){return this.next}getValue(){return this.value}isRemoved(){return this.value.isRemoved()}}class Ss{constructor(){s(this,"dummyHead"),s(this,"last"),s(this,"nodeMapByIndex"),s(this,"nodeMapByCreatedAt");const c=Yr.of(0,Ms);c.setRemovedAt(Ms),this.dummyHead=new Sh(c),this.last=this.dummyHead,this.nodeMapByIndex=new Kp,this.nodeMapByCreatedAt=new Map,this.nodeMapByIndex.insert(this.dummyHead),this.nodeMapByCreatedAt.set(this.dummyHead.getCreatedAt().toIDString(),this.dummyHead)}static create(){return new Ss}get length(){return this.nodeMapByIndex.length}findNextBeforeExecutedAt(c,h){let y=this.nodeMapByCreatedAt.get(c.toIDString());if(!y)throw new Xe(Ye.ErrInvalidArgument,`cant find the given node: ${c.toIDString()}`);for(;y.getNext()&&y.getNext().getPositionedAt().after(h);)y=y.getNext();return y}release(c){this.last===c&&(this.last=c.getPrev()),c.release(),this.nodeMapByIndex.delete(c),this.nodeMapByCreatedAt.delete(c.getValue().getCreatedAt().toIDString())}insertAfter(c,h,y=h.getCreatedAt()){const T=this.findNextBeforeExecutedAt(c,y),P=Sh.createAfter(T,h);T===this.last&&(this.last=P),this.nodeMapByIndex.insertAfter(T,P),this.nodeMapByCreatedAt.set(P.getCreatedAt().toIDString(),P)}moveAfter(c,h,y){const T=this.nodeMapByCreatedAt.get(c.toIDString());if(!T)throw new Xe(Ye.ErrInvalidArgument,`cant find the given node: ${c.toIDString()}`);const P=this.nodeMapByCreatedAt.get(h.toIDString());if(!P)throw new Xe(Ye.ErrInvalidArgument,`cant find the given node: ${h.toIDString()}`);T!==P&&(!P.getValue().getMovedAt()||y.after(P.getValue().getMovedAt()))&&(this.release(P),this.insertAfter(T.getCreatedAt(),P.getValue(),y),P.getValue().setMovedAt(y))}insert(c){this.insertAfter(this.last.getCreatedAt(),c)}getByID(c){return this.nodeMapByCreatedAt.get(c.toIDString())}subPathOf(c){const h=this.nodeMapByCreatedAt.get(c.toIDString());if(h)return String(this.nodeMapByIndex.indexOf(h))}purge(c){const h=this.nodeMapByCreatedAt.get(c.getCreatedAt().toIDString());if(!h)throw new Xe(Ye.ErrInvalidArgument,`fail to find the given createdAt: ${c.getCreatedAt().toIDString()}`);this.release(h)}getByIndex(c){if(c>=this.length)return;const[h,y]=this.nodeMapByIndex.find(c);let T=h;if(c===0&&h===this.dummyHead||y>0)do T&&(T=T.getNext());while(T&&T.isRemoved());return T}getPrevCreatedAt(c){let h=this.nodeMapByCreatedAt.get(c.toIDString());do h=h.getPrev();while(this.dummyHead!==h&&h.isRemoved());return h.getValue().getCreatedAt()}delete(c,h){const y=this.nodeMapByCreatedAt.get(c.toIDString()),T=y.isRemoved();return y.remove(h)&&!T&&this.nodeMapByIndex.splayNode(y),y.getValue()}deleteByIndex(c,h){const y=this.getByIndex(c);if(y)return y.remove(h)&&this.nodeMapByIndex.splayNode(y),y.getValue()}getHead(){return this.dummyHead.getValue()}getLast(){return this.last.getValue()}getLastCreatedAt(){return this.last.getCreatedAt()}toTestString(){const c=[];for(const h of this){const y=`${h.getCreatedAt().toIDString()}:${h.getValue().toJSON()}`;h.isRemoved()?c.push(`{${y}}`):c.push(`[${y}]`)}return c.join("")}*[Symbol.iterator](){let c=this.dummyHead.getNext();for(;c;)yield c,c=c.getNext()}}class Un extends ef{constructor(c,h){super(c),s(this,"elements"),this.elements=h}static create(c,h){if(!h)return new Un(c,Ss.create());const y=Ss.create();for(const T of h)y.insertAfter(y.getLastCreatedAt(),T.deepcopy());return new Un(c,y)}subPathOf(c){return this.elements.subPathOf(c)}purge(c){this.elements.purge(c)}insertAfter(c,h){this.elements.insertAfter(c,h)}moveAfter(c,h,y){this.elements.moveAfter(c,h,y)}get(c){const h=this.elements.getByIndex(c);return h==null?void 0:h.getValue()}getByID(c){const h=this.elements.getByID(c);return h==null?void 0:h.getValue()}getHead(){return this.elements.getHead()}getLast(){return this.elements.getLast()}getPrevCreatedAt(c){return this.elements.getPrevCreatedAt(c)}delete(c,h){return this.elements.delete(c,h)}deleteByIndex(c,h){return this.elements.deleteByIndex(c,h)}getLastCreatedAt(){return this.elements.getLastCreatedAt()}get length(){return this.elements.length}*[Symbol.iterator](){for(const c of this.elements)c.isRemoved()||(yield c.getValue())}toTestString(){return this.elements.toTestString()}getDescendants(c){for(const h of this.elements){const y=h.getValue();if(c(y,this))return;y instanceof ef&&y.getDescendants(c)}}toJSON(){const c=[];for(const h of this)c.push(h.toJSON());return`[${c.join(",")}]`}toJS(){return JSON.parse(this.toJSON())}toJSForTest(){const c={};for(let h=0;h({...gt,value:gt.value?{attributes:ua(gt.value.getAttributes()),content:gt.value.getContent()}:{attributes:void 0,content:""},type:"content"}));return[pe,xt,be,[Y,Y]]}setStyle(c,h,y,T){const[,P]=this.rgaTreeSplit.findNodeWithSplit(c[1],y),[,H]=this.rgaTreeSplit.findNodeWithSplit(c[0],y),Y=[],pe=this.rgaTreeSplit.findBetween(H,P),be=new Map,Fe=[];for(const gt of pe){const st=gt.getCreatedAt().getActorID(),tn=T!=null&&T.size?T.has(st)?T.get(st):Ms:rd;if(gt.canStyle(y,tn)){const In=be.get(st),Rn=gt.getCreatedAt();(!In||Rn.after(In))&&be.set(st,Rn),Fe.push(gt)}}const xt=[];for(const gt of Fe){if(gt.isRemoved())continue;const[st,tn]=this.rgaTreeSplit.findIndexesFromRange(gt.createPosRange());Y.push({type:"style",actor:y.getActorID(),from:st,to:tn,value:{attributes:ua(h)}});for(const[In,Rn]of Object.entries(h)){const[Jn]=gt.getValue().setAttr(In,Rn,y);Jn!==void 0&&xt.push({parent:gt.getValue(),child:Jn})}}return[be,xt,Y]}indexRangeToPosRange(c,h){const y=this.rgaTreeSplit.indexToPos(c);return c===h?[y,y]:[y,this.rgaTreeSplit.indexToPos(h)]}get length(){return this.rgaTreeSplit.length}getTreeByIndex(){return this.rgaTreeSplit.getTreeByIndex()}getTreeByID(){return this.rgaTreeSplit.getTreeByID()}toJSON(){const c=[];for(const h of this.rgaTreeSplit)h.isRemoved()||c.push(h.getValue().toJSON());return`[${c.join(",")}]`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:JSON.parse(this.toJSON()),type:"YORKIE_TEXT"}}toString(){return this.rgaTreeSplit.toString()}values(){const c=[];for(const h of this.rgaTreeSplit)if(!h.isRemoved()){const y=h.getValue();c.push({attributes:ua(y.getAttributes()),content:y.getContent()})}return c}getRGATreeSplit(){return this.rgaTreeSplit}toTestString(){return this.rgaTreeSplit.toTestString()}deepcopy(){const c=new gl(this.rgaTreeSplit.deepcopy(),this.getCreatedAt());return c.remove(this.getRemovedAt()),c}findIndexesFromRange(c){return this.rgaTreeSplit.findIndexesFromRange(c)}getGCPairs(){const c=[];for(const h of this.rgaTreeSplit){h.getRemovedAt()&&c.push({parent:this.rgaTreeSplit,child:h});for(const y of h.getValue().getGCPairs())c.push(y)}return c}}class Km extends oo{constructor(c,h,y,T,P,H,Y){super(c,Y),s(this,"fromPos"),s(this,"toPos"),s(this,"maxCreatedAtMapByActor"),s(this,"content"),s(this,"attributes"),this.fromPos=h,this.toPos=y,this.maxCreatedAtMapByActor=T,this.content=P,this.attributes=H}static create(c,h,y,T,P,H,Y){return new Km(c,h,y,T,P,H,Y)}execute(c){const h=c.findByCreatedAt(this.getParentCreatedAt());if(!h)throw new Xe(Ye.ErrInvalidArgument,`fail to find ${this.getParentCreatedAt()}`);if(!(h instanceof gl))throw new Xe(Ye.ErrInvalidArgument,"fail to execute, only Text can execute edit");const y=h,[,T,P]=y.edit([this.fromPos,this.toPos],this.content,this.getExecutedAt(),Object.fromEntries(this.attributes),this.maxCreatedAtMapByActor);for(const H of P)c.registerGCPair(H);return{opInfos:T.map(({from:H,to:Y,value:pe})=>({type:"edit",from:H,to:Y,value:pe,path:c.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const c=this.getParentCreatedAt().toTestString(),h=this.fromPos.toTestString(),y=this.toPos.toTestString(),T=this.content;return`${c}.EDIT(${h},${y},${T})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getContent(){return this.content}getAttributes(){return this.attributes||new Map}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}class Uo extends oo{constructor(c,h,y,T,P,H){super(c,H),s(this,"fromPos"),s(this,"toPos"),s(this,"maxCreatedAtMapByActor"),s(this,"attributes"),this.fromPos=h,this.toPos=y,this.maxCreatedAtMapByActor=T,this.attributes=P}static create(c,h,y,T,P,H){return new Uo(c,h,y,T,P,H)}execute(c){const h=c.findByCreatedAt(this.getParentCreatedAt());if(!h)throw new Xe(Ye.ErrInvalidArgument,`fail to find ${this.getParentCreatedAt()}`);if(!(h instanceof gl))throw new Xe(Ye.ErrInvalidArgument,"fail to execute, only Text can execute edit");const y=h,[,T,P]=y.setStyle([this.fromPos,this.toPos],this.attributes?Object.fromEntries(this.attributes):{},this.getExecutedAt(),this.maxCreatedAtMapByActor);for(const H of T)c.registerGCPair(H);return{opInfos:P.map(({from:H,to:Y,value:pe})=>({type:"style",from:H,to:Y,value:pe,path:c.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const c=this.getParentCreatedAt().toTestString(),h=this.fromPos.toTestString(),y=this.toPos.toTestString(),T=this.attributes;return`${c}.STYL(${h},${y},${JSON.stringify(T)})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getAttributes(){return this.attributes}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}const L6=2,$6="root",ad="text";function Jm(v,c){let h=0;const y=v.children;for(let T=0;T0)throw new Xe(Ye.ErrRefused,"Text node cannot have children")}updateAncestorsSize(){let c=this.parent;const h=this.isRemoved?-1:1;for(;c&&(c.size+=this.paddedSize*h,!c.isRemoved);)c=c.parent}updateDescendantsSize(){let c=0;for(const h of this._children){const y=h.updateDescendantsSize();h.isRemoved||(c+=y)}return this.size+=c,this.paddedSize}get isText(){return this.type===ad}get paddedSize(){return this.size+(this.isText?0:L6)}isAncestorOf(c){return sd(this,c)}get nextSibling(){const c=this.parent.findOffset(this),h=this.parent.children[c+1];if(h)return h}get prevSibling(){const c=this.parent.findOffset(this),h=this.parent.children[c-1];if(h)return h}splitText(c,h){if(c===0||c===this.size)return;const y=this.value.slice(0,c),T=this.value.slice(c);if(!T.length)return;this.value=y;const P=this.cloneText(c+h);return P.value=T,this.parent.insertAfterInternal(P,this),P}get children(){return this._children.filter(c=>!c.isRemoved)}get allChildren(){return[...this._children]}hasTextChild(){return this.children.length>0&&this.children.every(c=>c.isText)}append(...c){if(this.isText)throw new Xe(Ye.ErrRefused,"Text node cannot have children");this._children.push(...c);for(const h of c)h.parent=this,h.updateAncestorsSize()}prepend(...c){if(this.isText)throw new Xe(Ye.ErrRefused,"Text node cannot have children");this._children.unshift(...c);for(const h of c)h.parent=this}insertBefore(c,h){if(this.isText)throw new Xe(Ye.ErrRefused,"Text node cannot have children");const y=this._children.indexOf(h);if(y===-1)throw new Xe(Ye.ErrInvalidArgument,"child not found");this.insertAtInternal(c,y),c.updateAncestorsSize()}insertAfter(c,h){if(this.isText)throw new Xe(Ye.ErrRefused,"Text node cannot have children");const y=this._children.indexOf(h);if(y===-1)throw new Xe(Ye.ErrInvalidArgument,"child not found");this.insertAtInternal(c,y+1),c.updateAncestorsSize()}insertAt(c,h){if(this.isText)throw new Xe(Ye.ErrRefused,"Text node cannot have children");this.insertAtInternal(c,h),c.updateAncestorsSize()}removeChild(c){if(this.isText)throw new Xe(Ye.ErrRefused,"Text node cannot have children");const h=this._children.indexOf(c);if(h===-1)throw new Xe(Ye.ErrInvalidArgument,"child not found");this._children.splice(h,1),c.parent=void 0}splitElement(c,h){const y=this.cloneElement(h);this.parent.insertAfterInternal(y,this),y.updateAncestorsSize();const T=this.children.slice(0,c),P=this.children.slice(c);this._children=T,y._children=P,this.size=this._children.reduce((H,Y)=>H+Y.paddedSize,0),y.size=y._children.reduce((H,Y)=>H+Y.paddedSize,0);for(const H of y._children)H.parent=y;return y}insertAfterInternal(c,h){if(this.isText)throw new Xe(Ye.ErrRefused,"Text node cannot have children");const y=this._children.indexOf(h);if(y===-1)throw new Xe(Ye.ErrInvalidArgument,"child not found");this.insertAtInternal(c,y+1)}insertAtInternal(c,h){if(this.isText)throw new Xe(Ye.ErrRefused,"Text node cannot have children");this._children.splice(h,0,c),c.parent=this}findOffset(c){if(this.isText)throw new Xe(Ye.ErrRefused,"Text node cannot have children");if(c.isRemoved){const h=this._children.indexOf(c);return this.allChildren.splice(0,h).filter(T=>!T.isRemoved).length}return this.children.indexOf(c)}findBranchOffset(c){if(this.isText)throw new Xe(Ye.ErrRefused,"Text node cannot have children");let h=c;for(;h;){const y=this._children.indexOf(h);if(y!==-1)return y;h=h.parent}return-1}}function sd(v,c){if(v===c)return!1;for(;c.parent;){if(c.parent===v)return!0;c=c.parent}return!1}var Sa=(v=>(v.Start="Start",v.End="End",v.Text="Text",v))(Sa||{});function pk(v,c,h,y){if(c>h)throw new Xe(Ye.ErrInvalidArgument,`from is greater than to: ${c} > ${h}`);if(c>v.size)throw new Xe(Ye.ErrInvalidArgument,`from is out of range: ${c} > ${v.size}`);if(h>v.size)throw new Xe(Ye.ErrInvalidArgument,`to is out of range: ${h} > ${v.size}`);if(c===h)return;let T=0;for(const P of v.children){if(c-P.paddedSizeP.size;(P.isText||pe)&&y([P,P.isText?"Text":"Start"],be),pk(P,Math.max(0,H),Math.min(Y,P.size),y),be&&y([P,"End"],be)}T+=P.paddedSize}}function mk(v,c,h=0){for(const y of v.children)mk(y,c,h+1);c(v,h)}function vb(v,c,h=0){for(const y of v._children)vb(y,c,h+1);c(v,h)}function PS(v,c,h=!0){if(c>v.size)throw new Xe(Ye.ErrInvalidArgument,`index is out of range: ${c} > ${v.size}`);if(v.isText)return{node:v,offset:c};let y=0,T=0;for(const P of v.children){if(h&&P.isText&&P.size>=c-T)return PS(P,c-T,h);if(c===T)return{node:v,offset:y};if(!h&&P.paddedSize===c-T)return{node:v,offset:y+1};if(P.paddedSize>c-T)return PS(P,c-T-1,h);T+=P.paddedSize,y+=1}return{node:v,offset:y}}function nf(v){return v.isText||v.children.length===0?v:nf(v.children[0])}function B6(v,c){if(v.sizev===c?0:v0)if(h.right)h.right.parent=h,h=h.right;else return h;else if(y<0)if(h.left)h.left.parent=h,h=h.left;else{let T=h.parent,P=h;for(;T&&P===T.left;)P=T,T=T.parent;return T}else return h}}lastEntry(){if(!this.root)return this.root;let c=this.root;for(;c.right;)c=c.right;return c}size(){return this.counter}isEmpty(){return this.counter===0}getInternal(c,h){for(;h;){const y=this.comparator(c,h.key);if(y===0)return h;y<0?h=h.left:y>0&&(h=h.right)}}putInternal(c,h,y){if(!y)return this.counter+=1,new z6(c,h,!0);const T=this.comparator(c,y.key);return T<0?y.left=this.putInternal(c,h,y.left):T>0?y.right=this.putInternal(c,h,y.right):y.value=h,this.isRed(y.right)&&!this.isRed(y.left)&&(y=this.rotateLeft(y)),this.isRed(y.left)&&this.isRed(y.left.left)&&(y=this.rotateRight(y)),this.isRed(y.left)&&this.isRed(y.right)&&this.flipColors(y),y}removeInternal(c,h){if(this.comparator(h,c.key)<0)!this.isRed(c.left)&&!this.isRed(c.left.left)&&(c=this.moveRedLeft(c)),c.left=this.removeInternal(c.left,h);else{if(this.isRed(c.left)&&(c=this.rotateRight(c)),this.comparator(h,c.key)===0&&!c.right){this.counter-=1;return}if(!this.isRed(c.right)&&!this.isRed(c.right.left)&&(c=this.moveRedRight(c)),this.comparator(h,c.key)===0){this.counter-=1;const y=this.min(c.right);c.value=y.value,c.key=y.key,c.right=this.removeMin(c.right)}else c.right=this.removeInternal(c.right,h)}return this.fixUp(c)}min(c){return c.left?this.min(c.left):c}removeMin(c){if(c.left)return!this.isRed(c.left)&&!this.isRed(c.left.left)&&(c=this.moveRedLeft(c)),c.left=this.removeMin(c.left),this.fixUp(c)}fixUp(c){return this.isRed(c.right)&&(c=this.rotateLeft(c)),this.isRed(c.left)&&this.isRed(c.left.left)&&(c=this.rotateRight(c)),this.isRed(c.left)&&this.isRed(c.right)&&this.flipColors(c),c}moveRedLeft(c){return this.flipColors(c),this.isRed(c.right.left)&&(c.right=this.rotateRight(c.right),c=this.rotateLeft(c),this.flipColors(c)),c}moveRedRight(c){return this.flipColors(c),this.isRed(c.left.left)&&(c=this.rotateRight(c),this.flipColors(c)),c}isRed(c){return c&&c.isRed}rotateLeft(c){const h=c.right;return c.right=h.left,h.left=c,h.isRed=h.left.isRed,h.left.isRed=!0,h}rotateRight(c){const h=c.left;return c.left=h.right,h.right=c,h.isRed=h.right.isRed,h.right.isRed=!0,h}flipColors(c){c.isRed=!c.isRed,c.left.isRed=!c.left.isRed,c.right.isRed=!c.right.isRed}}class ru{constructor(c,h){s(this,"parentID"),s(this,"leftSiblingID"),this.parentID=c,this.leftSiblingID=h}static of(c,h){return new ru(c,h)}static fromTreePos(c){const{offset:h}=c;let{node:y}=c,T;return y.isText?(y.parent.children[0]===y&&h===0?T=y.parent:T=y,y=y.parent):h===0?T=y:T=y.children[h-1],ru.of(y.id,ns.of(T.getCreatedAt(),T.getOffset()+h))}getParentID(){return this.parentID}static fromStruct(c){return ru.of(ns.of(ts.fromStruct(c.parentID.createdAt),c.parentID.offset),ns.of(ts.fromStruct(c.leftSiblingID.createdAt),c.leftSiblingID.offset))}toStruct(){return{parentID:{createdAt:this.getParentID().getCreatedAt().toStruct(),offset:this.getParentID().getOffset()},leftSiblingID:{createdAt:this.getLeftSiblingID().getCreatedAt().toStruct(),offset:this.getLeftSiblingID().getOffset()}}}toTreeNodePair(c){const h=this.getParentID(),y=this.getLeftSiblingID(),T=c.findFloorNode(h);let P=c.findFloorNode(y);if(!T||!P)throw new Xe(Ye.ErrRefused,`cannot find node of CRDTTreePos(${h.toTestString()}, ${y.toTestString()})`);return!y.equals(h)&&y.getOffset()>0&&y.getOffset()===P.id.getOffset()&&P.insPrevID&&(P=c.findFloorNode(P.insPrevID)),[T,P]}getLeftSiblingID(){return this.leftSiblingID}equals(c){return this.getParentID().getCreatedAt().equals(c.getParentID().getCreatedAt())&&this.getParentID().getOffset()===c.getParentID().getOffset()&&this.getLeftSiblingID().getCreatedAt().equals(c.getLeftSiblingID().getCreatedAt())&&this.getLeftSiblingID().getOffset()===c.getLeftSiblingID().getOffset()}}class ns{constructor(c,h){s(this,"createdAt"),s(this,"offset"),this.createdAt=c,this.offset=h}static of(c,h){return new ns(c,h)}static fromStruct(c){return ns.of(ts.fromStruct(c.createdAt),c.offset)}static createComparator(){return(c,h)=>{const y=c.getCreatedAt().compare(h.getCreatedAt());return y!==0?y:c.getOffset()>h.getOffset()?1:c.getOffset(){const T=y.deepcopy();return T.parent=h,T}),h.insPrevID=this.insPrevID,h.insNextID=this.insNextID,h}get value(){if(!this.isText)throw new Xe(Ye.ErrInvalidType,`cannot get value of element node: ${this.type}`);return this._value}set value(c){if(!this.isText)throw new Xe(Ye.ErrInvalidType,`cannot set value of element node: ${this.type}`);this._value=c,this.size=c.length}get isRemoved(){return!!this.removedAt}remove(c){const h=!this.removedAt;(!this.removedAt||this.removedAt.compare(c)>0)&&(this.removedAt=c),h&&this.updateAncestorsSize()}cloneText(c){return new uo(ns.of(this.id.getCreatedAt(),c),this.type,void 0,void 0,this.removedAt)}cloneElement(c){return new uo(ns.of(c(),0),this.type,void 0,void 0,this.removedAt)}split(c,h,y){const T=this.isText?this.splitText(h,this.id.getOffset()):this.splitElement(h,y);if(T){if(T.insPrevID=this.id,this.insNextID){const P=c.findFloorNode(this.insNextID);P.insPrevID=T.id,T.insNextID=this.insNextID}this.insNextID=T.id,c.registerNode(T)}return T}getCreatedAt(){return this.id.getCreatedAt()}getOffset(){return this.id.getOffset()}canDelete(c,h){return!this.getCreatedAt().after(h)&&(!this.removedAt||c.after(this.removedAt))}canStyle(c,h){return this.isText?!1:!this.getCreatedAt().after(h)&&(!this.removedAt||c.after(this.removedAt))}setAttrs(c,h){this.attrs||(this.attrs=new id);const y=new Array;for(const[T,P]of Object.entries(c))y.push(this.attrs.set(T,P,h));return y}purge(c){this.attrs&&this.attrs.purge(c)}getGCPairs(){const c=[];if(!this.attrs)return c;for(const h of this.attrs)h.getRemovedAt()&&c.push({parent:this,child:h});return c}}function Ob(v){var c;if(v.isText){const y=v;return{type:y.type,value:y.value}}const h={type:v.type,children:v.children.map(Ob)};return v.attrs&&(h.attributes=ua((c=v.attrs)==null?void 0:c.toObject())),h}function MS(v){if(v.isText)return v.value;let c="";return v.attrs&&v.attrs.size()&&(c=" "+Array.from(v.attrs).filter(h=>!h.isRemoved()).sort((h,y)=>h.getKey().localeCompare(y.getKey())).map(h=>{const y=JSON.parse(h.getValue());return typeof y=="string"?`${h.getKey()}="${y}"`:`${h.getKey()}="${Bo(h.getValue())}"`}).join(" ")),`<${v.type}${c}>${v.children.map(h=>MS(h)).join("")}`}function bk(v){if(v.isText){const c=v;return{type:c.type,value:c.value,size:c.size,isRemoved:c.isRemoved}}return{type:v.type,children:v.children.map(bk),size:v.size,isRemoved:v.isRemoved}}class co extends rc{constructor(c,h){super(h),s(this,"indexTree"),s(this,"nodeMapByID"),this.indexTree=new U6(c),this.nodeMapByID=new gk(ns.createComparator()),this.indexTree.traverseAll(y=>{this.nodeMapByID.put(y.id,y)})}static create(c,h){return new co(c,h)}findFloorNode(c){const h=this.nodeMapByID.floorEntry(c);if(!(!h||!h.key.getCreatedAt().equals(c.getCreatedAt())))return h.value}registerNode(c){this.nodeMapByID.put(c.id,c)}findNodesAndSplitText(c,h){const[y,T]=c.toTreeNodePair(this);let P=T;const H=y===P,Y=P.parent&&!H?P.parent:y;if(P.isText&&P.split(this,c.getLeftSiblingID().getOffset()-P.id.getOffset()),h){const pe=Y.allChildren,be=H?0:pe.indexOf(P)+1;for(let Fe=be;Fe{const tn=st.getCreatedAt().getActorID(),In=T?T.has(tn)?T.get(tn):Ms:rd;if(st.canStyle(y,In)&&h){const Rn=xt.get(tn),Jn=st.getCreatedAt();(!Rn||Jn.after(Rn))&&xt.set(tn,Jn);const gi=st.setAttrs(h,y),vr=gi.reduce((Si,[,ws])=>(ws&&(Si[ws.getKey()]=Fe[ws.getKey()]),Si),{}),Zr=st.parent,Qr=st.prevSibling||st.parent;Object.keys(vr).length>0&&be.push({type:"style",from:this.toIndex(Zr,Qr),to:this.toIndex(st,st),fromPath:this.toPath(Zr,Qr),toPath:this.toPath(st,st),actor:y.getActorID(),value:vr});for(const[Si]of gi)Si&>.push({parent:st,child:Si})}}),[xt,gt,be]}removeStyle(c,h,y,T){const[P,H]=this.findNodesAndSplitText(c[0],y),[Y,pe]=this.findNodesAndSplitText(c[1],y),be=[],Fe=new Map,xt=[];return this.traverseInPosRange(P,H,Y,pe,([gt])=>{const st=gt.getCreatedAt().getActorID(),tn=T?T.has(st)?T.get(st):Ms:rd;if(gt.canStyle(y,tn)&&h){const In=Fe.get(st),Rn=gt.getCreatedAt();(!In||Rn.after(In))&&Fe.set(st,Rn),gt.attrs||(gt.attrs=new id);for(const vr of h){const Zr=gt.attrs.remove(vr,y);for(const Qr of Zr)xt.push({parent:gt,child:Qr})}const Jn=gt.parent,gi=gt.prevSibling||gt.parent;be.push({actor:y.getActorID(),type:"removeStyle",from:this.toIndex(Jn,gi),to:this.toIndex(gt,gt),fromPath:this.toPath(Jn,gi),toPath:this.toPath(gt,gt),value:h})}}),[Fe,xt,be]}edit(c,h,y,T,P,H){const[Y,pe]=this.findNodesAndSplitText(c[0],T),[be,Fe]=this.findNodesAndSplitText(c[1],T),xt=this.toIndex(Y,pe),gt=this.toPath(Y,pe),st=[],tn=[],In=[],Rn=new Map;this.traverseInPosRange(Y,pe,be,Fe,([vr,Zr],Qr)=>{if(Zr===Sa.Start&&!Qr)for(const zo of vr.children)In.push(zo);const Si=vr.getCreatedAt().getActorID(),ws=H?H.has(Si)?H.get(Si):Ms:rd;if(vr.canDelete(T,ws)||st.includes(vr.parent)){const zo=Rn.get(Si),yg=vr.getCreatedAt();(!zo||yg.after(zo))&&Rn.set(Si,yg),(Zr===Sa.Text||Zr===Sa.Start)&&st.push(vr),tn.push([vr,Zr])}});const Jn=this.makeDeletionChanges(tn,T),gi=[];for(const vr of st)vr.remove(T),vr.isRemoved&&gi.push({parent:this,child:vr});for(const vr of In)vr.removedAt||Y.append(vr);if(y>0){let vr=0,Zr=Y,Qr=pe;for(;vr{Y.isRemoved&&(Si.remove(T),gi.push({parent:this,child:Si})),this.nodeMapByID.put(Si.id,Si)}),Qr.isRemoved||vr.push(Qr);if(vr.length){const Qr=vr.map(Si=>Ob(Si));Jn.length&&Jn[Jn.length-1].from===xt?Jn[Jn.length-1].value=Qr:Jn.push({type:"content",from:xt,to:xt,fromPath:gt,toPath:gt,actor:T.getActorID(),value:Qr})}}return[Jn,gi,Rn]}editT(c,h,y,T,P){const H=this.findPos(c[0]),Y=this.findPos(c[1]);this.edit([H,Y],h,y,T,P)}move(c,h,y){throw new Xe(Ye.ErrUnimplemented,`not implemented: ${c}, ${h}, ${y}`)}purge(c){var h;(h=c.parent)==null||h.removeChild(c),this.nodeMapByID.remove(c.id);const y=c.insPrevID,T=c.insNextID;if(y){const P=this.findFloorNode(y);P.insNextID=T}if(T){const P=this.findFloorNode(T);P.insPrevID=y}c.insPrevID=void 0,c.insNextID=void 0}getGCPairs(){const c=[];return this.indexTree.traverse(h=>{h.getRemovedAt()&&c.push({parent:this,child:h});for(const y of h.getGCPairs())c.push(y)}),c}findPos(c,h=!0){const y=this.indexTree.findTreePos(c,h);return ru.fromTreePos(y)}pathToPosRange(c){const h=this.pathToIndex(c);return[this.findPos(h),this.findPos(h+1)]}pathToPos(c){const h=this.indexTree.pathToIndex(c);return this.findPos(h)}getRoot(){return this.indexTree.getRoot()}getSize(){return this.indexTree.size}getNodeSize(){return this.nodeMapByID.size()}getIndexTree(){return this.indexTree}toXML(){return MS(this.indexTree.getRoot())}toJSON(){return JSON.stringify(this.getRootTreeNode())}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:JSON.parse(this.toJSON()),type:"YORKIE_TREE"}}toJSInfoForTest(){const c=this.indexTree.getRoot(),h=(y,T=void 0,P=void 0,H=0)=>{var Y,pe,be,Fe;let xt,gt,st;const tn=y.isText?{node:y,offset:0}:T&&P?this.toTreePos(T,P):null;tn&&(xt=this.indexTree.indexOf(tn),gt=this.indexTree.treePosToPath(tn),st=ru.fromTreePos(tn).toStruct());const In={type:y.type,parent:T==null?void 0:T.id.toTestString(),size:y.size,id:y.id.toTestString(),removedAt:(Y=y.removedAt)==null?void 0:Y.toTestString(),insPrev:(pe=y.insPrevID)==null?void 0:pe.toTestString(),insNext:(be=y.insNextID)==null?void 0:be.toTestString(),value:y.isText?y.value:void 0,isRemoved:y.isRemoved,children:[],depth:H,attributes:y.attrs?ua((Fe=y.attrs)==null?void 0:Fe.toObject()):void 0,index:xt,path:gt,pos:st};for(let Rn=0;Rn0&&Rn===y[y.length-1].to?(y[y.length-1].to=Jn,y[y.length-1].toPath=this.toPath(In,gt)):y.push({type:"content",from:Rn,to:Jn,fromPath:this.toPath(tn,Fe),toPath:this.toPath(In,gt),actor:h.getActorID()}))}return y.reverse()}findRightToken([c,h]){if(h===Sa.Start){const Y=c.allChildren;return Y.length>0?[Y[0],Y[0].isText?Sa.Text:Sa.Start]:[c,Sa.End]}const y=c.parent,T=y.allChildren,P=T.indexOf(c);if(y&&P===T.length-1)return[y,Sa.End];const H=T[P+1];return[H,H.isText?Sa.Text:Sa.Start]}findLeftToken([c,h]){if(h===Sa.End){const Y=c.allChildren;if(Y.length>0){const pe=Y[Y.length-1];return[pe,pe.isText?Sa.Text:Sa.End]}return[c,Sa.Start]}const y=c.parent,T=y.allChildren,P=T.indexOf(c);if(y&&P===0)return[y,Sa.Start];const H=T[P-1];return[H,H.isText?Sa.Text:Sa.End]}}class od extends oo{constructor(c,h,y,T,P,H,Y){super(c,Y),s(this,"fromPos"),s(this,"toPos"),s(this,"contents"),s(this,"splitLevel"),s(this,"maxCreatedAtMapByActor"),this.fromPos=h,this.toPos=y,this.contents=T,this.splitLevel=P,this.maxCreatedAtMapByActor=H}static create(c,h,y,T,P,H,Y){return new od(c,h,y,T,P,H,Y)}execute(c){var h;const y=c.findByCreatedAt(this.getParentCreatedAt());if(!y)throw new Xe(Ye.ErrInvalidArgument,`fail to find ${this.getParentCreatedAt()}`);if(!(y instanceof co))throw new Xe(Ye.ErrInvalidArgument,"fail to execute, only Tree can execute edit");const T=this.getExecutedAt(),P=y,[H,Y]=P.edit([this.fromPos,this.toPos],(h=this.contents)==null?void 0:h.map(pe=>pe.deepcopy()),this.splitLevel,T,(()=>{let pe=T.getDelimiter();return this.contents!==void 0&&(pe+=this.contents.length),()=>ts.of(T.getLamport(),++pe,T.getActorID())})(),this.maxCreatedAtMapByActor);for(const pe of Y)c.registerGCPair(pe);return{opInfos:H.map(({from:pe,to:be,value:Fe,splitLevel:xt,fromPath:gt,toPath:st})=>({type:"tree-edit",path:c.createPath(this.getParentCreatedAt()),from:pe,to:be,value:Fe,splitLevel:xt,fromPath:gt,toPath:st}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const c=this.getParentCreatedAt().toTestString(),h=`${this.fromPos.getLeftSiblingID().getCreatedAt().toTestString()}/${this.fromPos.getLeftSiblingID().getOffset()}`,y=`${this.toPos.getLeftSiblingID().getCreatedAt().toTestString()}/${this.toPos.getLeftSiblingID().getOffset()}`,T=this.contents||[];return`${c}.EDIT(${h},${y},${T.map(P=>MS(P)).join("")})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getContents(){return this.contents}getSplitLevel(){return this.splitLevel}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}class iu{constructor(c,h,y,T){s(this,"clientSeq"),s(this,"serverSeq"),s(this,"lamport"),s(this,"actor"),this.clientSeq=c,this.serverSeq=T,this.lamport=h,this.actor=y}static of(c,h,y,T){return new iu(c,h,y,T)}next(){return new iu(this.clientSeq+1,this.lamport.add(1),this.actor)}syncLamport(c){return c.greaterThan(this.lamport)?new iu(this.clientSeq,c,this.actor):new iu(this.clientSeq,this.lamport.add(1),this.actor)}createTimeTicket(c){return ts.of(this.lamport,c,this.actor)}setActor(c){return new iu(this.clientSeq,this.lamport,c,this.serverSeq)}getClientSeq(){return this.clientSeq}getServerSeq(){return this.serverSeq?this.serverSeq.toString():""}getLamport(){return this.lamport}getLamportAsString(){return this.lamport.toString()}getActorID(){return this.actor}toTestString(){return`${this.lamport.toString()}:${this.actor.slice(-2)}:${this.clientSeq}`}}const j6=new iu(0,Cn.fromInt(0,!0),qm);class rf{constructor({id:c,operations:h,presenceChange:y,message:T}){s(this,"id"),s(this,"operations"),s(this,"presenceChange"),s(this,"message"),this.id=c,this.operations=h||[],this.presenceChange=y,this.message=T}static create({id:c,operations:h,presenceChange:y,message:T}){return new rf({id:c,operations:h,presenceChange:y,message:T})}getID(){return this.id}getMessage(){return this.message}hasOperations(){return this.operations.length>0}getOperations(){return this.operations}setActor(c){for(const h of this.operations)h.setActor(c);this.id=this.id.setActor(c)}hasPresenceChange(){return this.presenceChange!==void 0}getPresenceChange(){return this.presenceChange}execute(c,h,y){const T=[],P=[];for(const H of this.operations){const Y=H.execute(c,y);if(!Y)continue;const{opInfos:pe,reverseOp:be}=Y;T.push(...pe),be&&P.unshift(be)}return this.presenceChange&&(this.presenceChange.type===Jd.Put?h.set(this.id.getActorID(),tu(this.presenceChange.presence)):h.delete(this.id.getActorID())),{opInfos:T,reverseOps:P}}toTestString(){return`${this.operations.map(c=>c.toTestString()).join(",")}`}toStruct(){return{changeID:ci.bytesToHex(ci.toChangeID(this.getID()).toBinary()),message:this.getMessage(),operations:this.getOperations().map(c=>ci.bytesToHex(ci.toOperation(c).toBinary())),presenceChange:this.getPresenceChange()}}static fromStruct(c){const{changeID:h,operations:y,presenceChange:T,message:P}=c;return rf.create({id:ci.bytesToChangeID(ci.hexToBytes(h)),operations:y==null?void 0:y.map(H=>ci.bytesToOperation(ci.hexToBytes(H))),presenceChange:T,message:P})}}class Sb{constructor(c,h,y,T,P,H){s(this,"documentKey"),s(this,"checkpoint"),s(this,"isRemoved"),s(this,"changes"),s(this,"snapshot"),s(this,"minSyncedTicket"),this.documentKey=c,this.checkpoint=h,this.isRemoved=y,this.changes=T,this.snapshot=P,this.minSyncedTicket=H}static create(c,h,y,T,P,H){return new Sb(c,h,y,T,P,H)}getDocumentKey(){return this.documentKey}getCheckpoint(){return this.checkpoint}getIsRemoved(){return this.isRemoved}getChanges(){return this.changes}hasChanges(){return this.changes.length>0}getChangeSize(){return this.changes.length}hasSnapshot(){return!!this.snapshot&&!!this.snapshot.length}getSnapshot(){return this.snapshot}getMinSyncedTicket(){return this.minSyncedTicket}}class fo{constructor(c,h){s(this,"serverSeq"),s(this,"clientSeq"),this.serverSeq=c,this.clientSeq=h}static of(c,h){return new fo(c,h)}increaseClientSeq(c){return c===0?this:new fo(this.serverSeq,this.clientSeq+c)}forward(c){if(this.equals(c))return this;const h=this.serverSeq.greaterThan(c.serverSeq)?this.serverSeq:c.serverSeq,y=Math.max(this.clientSeq,c.clientSeq);return fo.of(h,y)}getServerSeqAsString(){return this.serverSeq.toString()}getClientSeq(){return this.clientSeq}getServerSeq(){return this.serverSeq}equals(c){return this.clientSeq===c.clientSeq&&this.serverSeq.equals(c.serverSeq)}toTestString(){return`serverSeq=${this.serverSeq}, clientSeq=${this.clientSeq}`}}const LS=new fo(Cn.fromInt(0,!0),0);class Es{constructor(c,h){s(this,"createdAt"),s(this,"offset"),this.createdAt=c,this.offset=h}static of(c,h){return new Es(c,h)}static fromStruct(c){return Es.of(ts.fromStruct(c.createdAt),c.offset)}getCreatedAt(){return this.createdAt}getOffset(){return this.offset}equals(c){return this.createdAt.compare(c.createdAt)===0&&this.offset===c.offset}hasSameCreatedAt(c){return this.createdAt.compare(c.createdAt)===0}split(c){return new Es(this.createdAt,this.offset+c)}toStruct(){return{createdAt:this.createdAt.toStruct(),offset:this.offset}}toTestString(){return`${this.createdAt.toTestString()}:${this.offset}`}toIDString(){return`${this.createdAt.toIDString()}:${this.offset}`}}const bl=Es.of(Ms,0);class au{constructor(c,h){s(this,"id"),s(this,"relativeOffset"),this.id=c,this.relativeOffset=h}static of(c,h){return new au(c,h)}static fromStruct(c){const h=Es.fromStruct(c.id);return au.of(h,c.relativeOffset)}getID(){return this.id}getRelativeOffset(){return this.relativeOffset}getAbsoluteID(){return Es.of(this.id.getCreatedAt(),this.id.getOffset()+this.relativeOffset)}toTestString(){return`${this.id.toTestString()}:${this.relativeOffset}`}toStruct(){return{id:this.id.toStruct(),relativeOffset:this.relativeOffset}}equals(c){return this.id.equals(c.id)?this.relativeOffset===c.relativeOffset:!1}}class ld extends Xp{constructor(c,h,y){super(h),s(this,"id"),s(this,"removedAt"),s(this,"prev"),s(this,"next"),s(this,"insPrev"),s(this,"insNext"),this.id=c,this.removedAt=y}static create(c,h){return new ld(c,h)}static createComparator(){return(c,h)=>{const y=c.getCreatedAt().compare(h.getCreatedAt());return y!==0?y:c.getOffset()>h.getOffset()?1:c.getOffset()0&&h.getID().getOffset()==c.getOffset()){if(!h.hasInsPrev())return h;h=h.getInsPrev()}return h}findFloorNode(c){const h=this.treeByID.floorEntry(c);if(h&&!(!h.key.equals(c)&&!h.key.hasSameCreatedAt(c)))return h.value}findBetween(c,h){const y=[];let T=c;for(;T&&T!==h;)y.push(T),T=T.getNext();return y}splitNode(c,h){if(h>c.getContentLength())throw new Xe(Ye.ErrInvalidArgument,"offset should be less than or equal to length");if(h===0)return c;if(h===c.getContentLength())return c.getNext();const y=c.split(h);this.treeByIndex.updateWeight(y),this.insertAfter(c,y);const T=c.getInsNext();return T&&T.setInsPrev(y),y.setInsPrev(c),y}deleteNodes(c,h,y){if(!c.length)return[[],new Map,new Map];const[T,P]=this.filterNodes(c,h,y),H=new Map,Y=new Map,pe=this.makeChanges(P,h);for(const be of T){const Fe=be.getCreatedAt().getActorID();(!H.has(Fe)||be.getID().getCreatedAt().after(H.get(Fe)))&&H.set(Fe,be.getID().getCreatedAt()),Y.set(be.getID().toIDString(),be),be.remove(h)}return this.deleteIndexNodes(P),[pe,H,Y]}filterNodes(c,h,y){const T=!!y,P=[],H=[],[Y,pe]=this.findEdgesOfCandidates(c);H.push(Y);for(const be of c){const Fe=be.getCreatedAt().getActorID(),xt=T?y.has(Fe)?y.get(Fe):Ms:rd;be.canDelete(h,xt)?P.push(be):H.push(be)}return H.push(pe),[P,H]}findEdgesOfCandidates(c){return[c[0].getPrev(),c[c.length-1].getNext()]}makeChanges(c,h){const y=[];let T,P;for(let H=0;Hv<0?Math.ceil(v):Math.floor(v);var rs=(v=>(v[v.IntegerCnt=0]="IntegerCnt",v[v.LongCnt=1]="LongCnt",v))(rs||{});class ho extends rc{constructor(c,h,y){switch(super(y),s(this,"valueType"),s(this,"value"),this.valueType=c,c){case 0:typeof h=="number"?h>Math.pow(2,31)-1||h<-Math.pow(2,31)?this.value=Cn.fromNumber(h).toInt():this.value=Jp(h):this.value=h.toInt();break;case 1:typeof h=="number"?this.value=Cn.fromNumber(h):this.value=h;break;default:throw new Xe(Ye.ErrUnimplemented,`unimplemented type: ${c}`)}}static create(c,h,y){return new ho(c,h,y)}static valueFromBytes(c,h){switch(c){case 0:return h[0]|h[1]<<8|h[2]<<16|h[3]<<24;case 1:return Cn.fromBytesLE(Array.from(h));default:throw new Xe(Ye.ErrUnimplemented,`unimplemented type: ${c}`)}}toJSON(){return`${this.value}`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:this.value,type:"YORKIE_COUNTER"}}deepcopy(){const c=ho.create(this.valueType,this.value,this.getCreatedAt());return c.setMovedAt(this.getMovedAt()),c}getType(){return this.valueType}static getCounterType(c){switch(typeof c){case"object":return c instanceof Cn?1:void 0;case"number":return c>Math.pow(2,31)-1||c<-Math.pow(2,31)?1:0;default:return}}static isSupport(c){return!!ho.getCounterType(c)}static isInteger(c){return c%1===0}isNumericType(){const c=this.valueType;return c===0||c===1}getValueType(){return this.valueType}getValue(){return this.value}toBytes(){switch(this.valueType){case 0:{const c=this.value;return new Uint8Array([c&255,c>>8&255,c>>16&255,c>>24&255])}case 1:{const h=this.value.toBytesLE();return Uint8Array.from(h)}default:throw new Xe(Ye.ErrUnimplemented,`unimplemented type: ${this.valueType}`)}}increase(c){function h(y){if(!y.isNumericType())throw new TypeError(`Unsupported type of value: ${typeof y.getValue()}`)}return h(this),h(c),this.valueType===1?this.value=this.value.add(c.getValue()):c.getType()===ae.Long?this.value=this.value+c.getValue().toInt():this.value=Cn.fromNumber(this.value+Jp(c.getValue())).toInt(),this}}class e0 extends oo{constructor(c,h,y){super(c,y),s(this,"value"),this.value=h}static create(c,h,y){return new e0(c,h,y)}execute(c){const h=c.findByCreatedAt(this.getParentCreatedAt());if(!h)throw new Xe(Ye.ErrInvalidArgument,`fail to find ${this.getParentCreatedAt()}`);if(!(h instanceof ho))throw new Xe(Ye.ErrInvalidArgument,"fail to execute, only Counter can execute increase");const y=h,T=this.value.deepcopy();return y.increase(T),{opInfos:[{type:"increase",path:c.createPath(this.getParentCreatedAt()),value:T.getValue()}],reverseOp:this.toReverseOperation()}}toReverseOperation(){const c=this.value.deepcopy(),y=c.getType()===ae.Long?c.getValue().multiply(-1):c.getValue()*-1;return e0.create(this.getParentCreatedAt(),Yr.of(y,c.getCreatedAt()))}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){return`${this.getParentCreatedAt().toTestString()}.INCREASE.${this.value.toJSON()}`}getValue(){return this.value}}class yl extends oo{constructor(c,h,y,T,P,H,Y){super(c,Y),s(this,"fromPos"),s(this,"toPos"),s(this,"maxCreatedAtMapByActor"),s(this,"attributes"),s(this,"attributesToRemove"),this.fromPos=h,this.toPos=y,this.maxCreatedAtMapByActor=T,this.attributes=P,this.attributesToRemove=H}static create(c,h,y,T,P,H){return new yl(c,h,y,T,P,new Array,H)}static createTreeRemoveStyleOperation(c,h,y,T,P,H){return new yl(c,h,y,T,new Map,P,H)}execute(c){const h=c.findByCreatedAt(this.getParentCreatedAt());if(!h)throw new Xe(Ye.ErrInvalidArgument,`fail to find ${this.getParentCreatedAt()}`);if(!(h instanceof co))throw new Xe(Ye.ErrInvalidArgument,"fail to execute, only Tree can execute edit");const y=h;let T,P;if(this.attributes.size){const H={};[...this.attributes].forEach(([Y,pe])=>H[Y]=pe),[,P,T]=y.style([this.fromPos,this.toPos],H,this.getExecutedAt(),this.maxCreatedAtMapByActor)}else{const H=this.attributesToRemove;[,P,T]=y.removeStyle([this.fromPos,this.toPos],H,this.getExecutedAt(),this.maxCreatedAtMapByActor)}for(const H of P)c.registerGCPair(H);return{opInfos:T.map(({from:H,to:Y,value:pe,fromPath:be,toPath:Fe})=>({type:"tree-style",from:H,to:Y,value:this.attributes.size?{attributes:pe}:{attributesToRemove:pe},fromPath:be,toPath:Fe,path:c.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const c=this.getParentCreatedAt().toTestString(),h=`${this.fromPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.fromPos.getLeftSiblingID().getOffset()}`,y=`${this.toPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.toPos.getLeftSiblingID().getOffset()}`;return`${c}.STYLE(${h},${y},${Object.entries(this.attributes||{}).map(([T,P])=>`${T}:"${P}"`).join(" ")})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getAttributes(){return this.attributes}getAttributesToRemove(){return this.attributesToRemove}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}function W6(v){const c=new mb,h=c.data;for(const[y,T]of Object.entries(v))h[y]=JSON.stringify(T);return c}function yk(v){if(v.type===Jd.Put)return new AS({type:bh.PUT,presence:W6(v.presence)});if(v.type===Jd.Clear)return new AS({type:bh.CLEAR});throw new Xe(Ye.ErrUnimplemented,"unimplemented type")}function is(v){return new ed({serverSeq:v.getServerSeqAsString(),clientSeq:v.getClientSeq()})}function Eb(v){return new jp({clientSeq:v.getClientSeq(),lamport:v.getLamportAsString(),actorId:sg(v.getActorID())})}function On(v){if(v)return new kn({lamport:v.getLamportAsString(),delimiter:v.getDelimiter(),actorId:sg(v.getActorID())})}function su(v){switch(v){case ae.Null:return Xn.NULL;case ae.Boolean:return Xn.BOOLEAN;case ae.Integer:return Xn.INTEGER;case ae.Long:return Xn.LONG;case ae.Double:return Xn.DOUBLE;case ae.String:return Xn.STRING;case ae.Bytes:return Xn.BYTES;case ae.Date:return Xn.DATE;default:throw new Xe(Ye.ErrInvalidType,`unsupported type: ${v}`)}}function wb(v){switch(v){case rs.IntegerCnt:return Xn.INTEGER_CNT;case rs.LongCnt:return Xn.LONG_CNT;default:throw new Xe(Ye.ErrInvalidType,`unsupported type: ${v}`)}}function t0(v){if(v instanceof so)return new Ku({type:Xn.JSON_OBJECT,createdAt:On(v.getCreatedAt()),value:ud(v)});if(v instanceof Un)return new Ku({type:Xn.JSON_ARRAY,createdAt:On(v.getCreatedAt()),value:Lk(v)});if(v instanceof gl)return new Ku({type:Xn.TEXT,createdAt:On(v.getCreatedAt())});if(v instanceof Yr)return new Ku({type:su(v.getType()),createdAt:On(v.getCreatedAt()),value:v.toBytes()});if(v instanceof ho)return new Ku({type:wb(v.getType()),createdAt:On(v.getCreatedAt()),value:v.toBytes()});if(v instanceof co)return new Ku({type:Xn.TREE,createdAt:On(v.getCreatedAt()),value:$k(v)});throw new Xe(Ye.ErrUnimplemented,"unimplemented element")}function Th(v){return new TS({createdAt:On(v.getCreatedAt()),offset:v.getOffset()})}function eg(v){return new ec({createdAt:On(v.getID().getCreatedAt()),offset:v.getID().getOffset(),relativeOffset:v.getRelativeOffset()})}function Va(v){return new Ju({parentId:kh(v.getParentID()),leftSiblingId:kh(v.getLeftSiblingID())})}function kh(v){return new Qp({createdAt:On(v.getCreatedAt()),offset:v.getOffset()})}function vk(v){const c=new OS;if(v instanceof Eh){const h=v,y=new ak;y.parentCreatedAt=On(h.getParentCreatedAt()),y.key=h.getKey(),y.value=t0(h.getValue()),y.executedAt=On(h.getExecutedAt()),c.body.case="set",c.body.value=y}else if(v instanceof Zm){const h=v,y=new sk;y.parentCreatedAt=On(h.getParentCreatedAt()),y.prevCreatedAt=On(h.getPrevCreatedAt()),y.value=t0(h.getValue()),y.executedAt=On(h.getExecutedAt()),c.body.case="add",c.body.value=y}else if(v instanceof lo){const h=v,y=new SS;y.parentCreatedAt=On(h.getParentCreatedAt()),y.prevCreatedAt=On(h.getPrevCreatedAt()),y.createdAt=On(h.getCreatedAt()),y.executedAt=On(h.getExecutedAt()),c.body.case="move",c.body.value=y}else if(v instanceof tf){const h=v,y=new Hm;y.parentCreatedAt=On(h.getParentCreatedAt()),y.createdAt=On(h.getCreatedAt()),y.executedAt=On(h.getExecutedAt()),c.body.case="remove",c.body.value=y}else if(v instanceof Km){const h=v,y=new gh;y.parentCreatedAt=On(h.getParentCreatedAt()),y.from=eg(h.getFromPos()),y.to=eg(h.getToPos());const T=y.createdAtMapByActor;for(const[H,Y]of h.getMaxCreatedAtMapByActor())T[H]=On(Y);y.content=h.getContent();const P=y.attributes;for(const[H,Y]of h.getAttributes())P[H]=Y;y.executedAt=On(h.getExecutedAt()),c.body.case="edit",c.body.value=y}else if(v instanceof Uo){const h=v,y=new ES;y.parentCreatedAt=On(h.getParentCreatedAt()),y.from=eg(h.getFromPos()),y.to=eg(h.getToPos());const T=y.createdAtMapByActor;for(const[H,Y]of h.getMaxCreatedAtMapByActor())T[H]=On(Y);const P=y.attributes;for(const[H,Y]of h.getAttributes())P[H]=Y;y.executedAt=On(h.getExecutedAt()),c.body.case="style",c.body.value=y}else if(v instanceof e0){const h=v,y=new wS;y.parentCreatedAt=On(h.getParentCreatedAt()),y.value=t0(h.getValue()),y.executedAt=On(h.getExecutedAt()),c.body.case="increase",c.body.value=y}else if(v instanceof od){const h=v,y=new ub,T=y.createdAtMapByActor;for(const[P,H]of h.getMaxCreatedAtMapByActor())T[P]=On(H);y.parentCreatedAt=On(h.getParentCreatedAt()),y.from=Va(h.getFromPos()),y.to=Va(h.getToPos()),y.contents=q6(h.getContents()),y.splitLevel=h.getSplitLevel(),y.executedAt=On(h.getExecutedAt()),c.body.case="treeEdit",c.body.value=y}else if(v instanceof yl){const h=v,y=new cb;y.parentCreatedAt=On(h.getParentCreatedAt()),y.from=Va(h.getFromPos()),y.to=Va(h.getToPos());const T=y.createdAtMapByActor;for(const[H,Y]of h.getMaxCreatedAtMapByActor())T[H]=On(Y);const P=h.getAttributesToRemove();if(P.length>0)y.attributesToRemove=P;else{const H=y.attributes;for(const[Y,pe]of h.getAttributes())H[Y]=pe}y.executedAt=On(h.getExecutedAt()),c.body.case="treeStyle",c.body.value=y}else throw new Xe(Ye.ErrUnimplemented,"unimplemented operation");return c}function Q6(v){const c=[];for(const h of v)c.push(vk(h));return c}function G6(v){const c=new ik({id:Eb(v.getID()),message:v.getMessage()});return v.hasOperations()&&(c.operations=Q6(v.getOperations())),v.hasPresenceChange()&&(c.presenceChange=yk(v.getPresenceChange())),c}function $S(v){const c=[];for(const h of v)c.push(G6(h));return c}function V6(v){const c=[];for(const h of v)c.push(new Wp({key:h.getStrKey(),element:BS(h.getValue())}));return c}function tg(v){const c=[];for(const h of v)c.push(new pb({element:BS(h.getValue())}));return c}function Ok(v){const c=[];for(const h of v){const y=new lk;y.id=Th(h.getID()),y.value=h.getValue().getContent(),y.removedAt=On(h.getRemovedAt());const T=y.attributes,P=h.getValue().getAttrs();for(const H of P){const Y=new jm;Y.value=H.getValue(),Y.updatedAt=On(H.getUpdatedAt()),T[H.getKey()]=Y}c.push(y)}return c}function q6(v){const c=[];if(!v||!v.length)return c;for(const h of v)c.push(new uk({content:Ah(h)}));return c}function Y6(v){const c={};for(const h of v)c[h.getKey()]=new jm({value:h.getValue(),updatedAt:On(h.getUpdatedAt()),isRemoved:h.isRemoved()});return c}function Ah(v){if(!v)return[];const c=[];return vb(v,(h,y)=>{const T=new kS({id:kh(h.id),type:h.type,removedAt:On(h.removedAt),depth:y});h.isText&&(T.value=h.value),h.insPrevID&&(T.insPrevId=kh(h.insPrevID)),h.insNextID&&(T.insNextId=kh(h.insNextID)),h.attrs&&(T.attributes=Y6(h.attrs)),c.push(T)}),c}function Z6(v){const c=new pl;return c.body.case="jsonObject",c.body.value=new db({nodes:V6(v.getRHT()),createdAt:On(v.getCreatedAt()),movedAt:On(v.getMovedAt()),removedAt:On(v.getRemovedAt())}),c}function Sk(v){const c=new pl;return c.body.case="jsonArray",c.body.value=new fb({nodes:tg(v.getElements()),createdAt:On(v.getCreatedAt()),movedAt:On(v.getMovedAt()),removedAt:On(v.getRemovedAt())}),c}function FS(v){const c=new pl;return c.body.case="primitive",c.body.value=new ok({type:su(v.getType()),value:v.toBytes(),createdAt:On(v.getCreatedAt()),movedAt:On(v.getMovedAt()),removedAt:On(v.getRemovedAt())}),c}function Ek(v){const c=new pl;return c.body.case="text",c.body.value=new xS({nodes:Ok(v.getRGATreeSplit()),createdAt:On(v.getCreatedAt()),movedAt:On(v.getMovedAt()),removedAt:On(v.getRemovedAt())}),c}function X6(v){const c=new pl;return c.body.case="counter",c.body.value=new io({type:wb(v.getType()),value:v.toBytes(),createdAt:On(v.getCreatedAt()),movedAt:On(v.getMovedAt()),removedAt:On(v.getRemovedAt())}),c}function wk(v){const c=new pl;return c.body.case="tree",c.body.value=new hb({nodes:Ah(v.getRoot()),createdAt:On(v.getCreatedAt()),movedAt:On(v.getMovedAt()),removedAt:On(v.getRemovedAt())}),c}function BS(v){if(v instanceof so)return Z6(v);if(v instanceof Un)return Sk(v);if(v instanceof Yr)return FS(v);if(v instanceof gl)return Ek(v);if(v instanceof ho)return X6(v);if(v instanceof co)return wk(v);throw new Xe(Ye.ErrUnimplemented,"unimplemented element")}function xk(v){return new Kl({documentKey:v.getDocumentKey(),checkpoint:is(v.getCheckpoint()),isRemoved:v.getIsRemoved(),changes:$S(v.getChanges()),snapshot:v.getSnapshot(),minSyncedTicket:On(v.getMinSyncedTicket())})}function xb(v){const c=v.findDetails(D6);for(const h of c)if(h.metadata.code)return h.metadata.code;return""}function Tk(v){let c;return v.serverSeq&&(c=Cn.fromString(v.serverSeq,!0)),iu.of(v.clientSeq,Cn.fromString(v.lamport,!0),Db(v.actorId),c)}function Sn(v){if(v)return ts.of(Cn.fromString(v.lamport,!0),v.delimiter,Db(v.actorId))}function Tb(v){const c={};return Object.entries(v.data).forEach(([h,y])=>{c[h]=JSON.parse(y)}),c}function kk(v){const c=v.type;if(c===bh.PUT){const h=Tb(v.presence);return{type:Jd.Put,presence:h}}if(c===bh.CLEAR)return{type:Jd.Clear};throw new Xe(Ye.ErrInvalidType,`unsupported type: ${c}`)}function Ak(v){const c=new Map;return Object.entries(v).forEach(([h,y])=>{c.set(h,Tb(y))}),c}function ng(v){switch(v){case Xn.NULL:return ae.Null;case Xn.BOOLEAN:return ae.Boolean;case Xn.INTEGER:return ae.Integer;case Xn.LONG:return ae.Long;case Xn.DOUBLE:return ae.Double;case Xn.STRING:return ae.String;case Xn.BYTES:return ae.Bytes;case Xn.DATE:return ae.Date}throw new Xe(Ye.ErrUnimplemented,`unimplemented value type: ${v}`)}function kb(v){switch(v){case Xn.INTEGER_CNT:return rs.IntegerCnt;case Xn.LONG_CNT:return rs.LongCnt}throw new Xe(Ye.ErrUnimplemented,`unimplemented value type: ${v}`)}function Ab(v){switch(v.type){case Xn.JSON_OBJECT:return v.value?po(v.value):so.create(Sn(v.createdAt));case Xn.JSON_ARRAY:return v.value?zS(v.value):Un.create(Sn(v.createdAt));case Xn.TEXT:return gl.create(xh.create(),Sn(v.createdAt));case Xn.TREE:return Ib(v.value);case Xn.NULL:case Xn.BOOLEAN:case Xn.INTEGER:case Xn.LONG:case Xn.DOUBLE:case Xn.STRING:case Xn.BYTES:case Xn.DATE:return Yr.of(Yr.valueFromBytes(ng(v.type),v.value),Sn(v.createdAt));case Xn.INTEGER_CNT:case Xn.LONG_CNT:return ho.create(kb(v.type),ho.valueFromBytes(kb(v.type),v.value),Sn(v.createdAt))}}function rg(v){return au.of(Es.of(Sn(v.createdAt),v.offset),v.relativeOffset)}function _k(v){return Es.of(Sn(v.createdAt),v.offset)}function Ck(v){const c=Xm.create(v.value);Object.entries(v.attributes).forEach(([y,T])=>{c.setAttr(y,T.value,Sn(T.updatedAt))});const h=ld.create(_k(v.id),c);return h.remove(Sn(v.removedAt)),h}function n0(v){return ru.of(_h(v.parentId),_h(v.leftSiblingId))}function _h(v){return ns.of(Sn(v.createdAt),v.offset)}function Rk(v){if(!v.length)return;const c=[];return v.forEach(h=>{const y=ig(h.content);c.push(y)}),c}function ig(v){if(v.length===0)return;const c=[];for(const T of v)c.push(US(T));const h=c[c.length-1],y=new Map;y.set(v[c.length-1].depth,c[c.length-1]);for(let T=c.length-2;T>=0;T--)y.get(v[T].depth-1).prepend(c[T]),y.set(v[T].depth,c[T]);return h.updateDescendantsSize(),co.create(h,Ms).getRoot()}function K6(v){const c=id.create();for(const[h,y]of Object.entries(v))c.setInternal(h,y.value,Sn(y.updatedAt),y.isRemoved);return c}function US(v){const c=_h(v.id),h=uo.create(c,v.type),y=Object.entries(v.attributes);return h.isText?h.value=v.value:y.length&&(h.attrs=K6(v.attributes)),v.insPrevId&&(h.insPrevID=_h(v.insPrevId)),v.insNextId&&(h.insNextID=_h(v.insNextId)),h.removedAt=Sn(v.removedAt),h}function nr(v){if(v.body.case==="set"){const c=v.body.value;return Eh.create(c.key,Ab(c.value),Sn(c.parentCreatedAt),Sn(c.executedAt))}else if(v.body.case==="add"){const c=v.body.value;return Zm.create(Sn(c.parentCreatedAt),Sn(c.prevCreatedAt),Ab(c.value),Sn(c.executedAt))}else if(v.body.case==="move"){const c=v.body.value;return lo.create(Sn(c.parentCreatedAt),Sn(c.prevCreatedAt),Sn(c.createdAt),Sn(c.executedAt))}else if(v.body.case==="remove"){const c=v.body.value;return tf.create(Sn(c.parentCreatedAt),Sn(c.createdAt),Sn(c.executedAt))}else if(v.body.case==="edit"){const c=v.body.value,h=new Map;Object.entries(c.createdAtMapByActor).forEach(([T,P])=>{h.set(T,Sn(P))});const y=new Map;return Object.entries(c.attributes).forEach(([T,P])=>{y.set(T,P)}),Km.create(Sn(c.parentCreatedAt),rg(c.from),rg(c.to),h,c.content,y,Sn(c.executedAt))}else if(v.body.case==="style"){const c=v.body.value,h=new Map;Object.entries(c.createdAtMapByActor).forEach(([T,P])=>{h.set(T,Sn(P))});const y=new Map;return Object.entries(c.attributes).forEach(([T,P])=>{y.set(T,P)}),Uo.create(Sn(c.parentCreatedAt),rg(c.from),rg(c.to),h,y,Sn(c.executedAt))}else{if(v.body.case==="select")return;if(v.body.case==="increase"){const c=v.body.value;return e0.create(Sn(c.parentCreatedAt),Ab(c.value),Sn(c.executedAt))}else if(v.body.case==="treeEdit"){const c=v.body.value,h=new Map;return Object.entries(c.createdAtMapByActor).forEach(([y,T])=>{h.set(y,Sn(T))}),od.create(Sn(c.parentCreatedAt),n0(c.from),n0(c.to),Rk(c.contents),c.splitLevel,h,Sn(c.executedAt))}else if(v.body.case==="treeStyle"){const c=v.body.value,h=new Map,y=c.attributesToRemove,T=new Map;return c!=null&&c.createdAtMapByActor&&Object.entries(c.createdAtMapByActor).forEach(([P,H])=>{T.set(P,Sn(H))}),(y==null?void 0:y.length)>0?yl.createTreeRemoveStyleOperation(Sn(c.parentCreatedAt),n0(c.from),n0(c.to),T,y,Sn(c.executedAt)):(Object.entries(c.attributes).forEach(([P,H])=>{h.set(P,H)}),yl.create(Sn(c.parentCreatedAt),n0(c.from),n0(c.to),T,h,Sn(c.executedAt)))}else throw new Xe(Ye.ErrUnimplemented,"unimplemented operation")}}function J6(v){const c=[];for(const h of v){const y=nr(h);y&&c.push(y)}return c}function Ik(v){const c=[];for(const h of v)c.push(rf.create({id:Tk(h.id),operations:J6(h.operations),presenceChange:h.presenceChange?kk(h.presenceChange):void 0,message:h.message}));return c}function ag(v){return fo.of(Cn.fromString(v.serverSeq,!0),v.clientSeq)}function Nk(v){return Sb.create(v.documentKey,ag(v.checkpoint),v.isRemoved,Ik(v.changes),v.snapshot,Sn(v.minSyncedTicket))}function Dk(v){const c=new Ym;for(const y of v.nodes){const T=Rb(y.element);c.set(y.key,T,T.getPositionedAt())}const h=new so(Sn(v.createdAt),c);return h.setMovedAt(Sn(v.movedAt)),h.setRemovedAt(Sn(v.removedAt)),h}function Pk(v){const c=new Ss;for(const y of v.nodes)c.insert(Rb(y.element));const h=new Un(Sn(v.createdAt),c);return h.setMovedAt(Sn(v.movedAt)),h.setRemovedAt(Sn(v.removedAt)),h}function vl(v){const c=Yr.of(Yr.valueFromBytes(ng(v.type),v.value),Sn(v.createdAt));return c.setMovedAt(Sn(v.movedAt)),c.setRemovedAt(Sn(v.removedAt)),c}function eN(v){const c=new xh;let h=c.getHead();for(const T of v.nodes){const P=c.insertAfter(h,Ck(T));T.insPrevId&&P.setInsPrev(c.findNode(_k(T.insPrevId))),h=P}const y=new gl(c,Sn(v.createdAt));return y.setMovedAt(Sn(v.movedAt)),y.setRemovedAt(Sn(v.removedAt)),y}function _b(v){const c=ho.create(kb(v.type),ho.valueFromBytes(kb(v.type),v.value),Sn(v.createdAt));return c.setMovedAt(Sn(v.movedAt)),c.setRemovedAt(Sn(v.removedAt)),c}function Cb(v){const c=ig(v.nodes);return co.create(c,Sn(v.createdAt))}function Rb(v){if(v.body.case==="jsonObject")return Dk(v.body.value);if(v.body.case==="jsonArray")return Pk(v.body.value);if(v.body.case==="primitive")return vl(v.body.value);if(v.body.case==="text")return eN(v.body.value);if(v.body.case==="counter")return _b(v.body.value);if(v.body.case==="tree")return Cb(v.body.value);throw new Xe(Ye.ErrUnimplemented,"unimplemented element")}function Mk(v){if(!v)return{root:so.create(Ms),presences:new Map};const c=Xd.fromBinary(v);return{root:Rb(c.root),presences:Ak(c.presences)}}function po(v){if(!v)throw new Xe(Ye.ErrInvalidArgument,"bytes is empty");const c=pl.fromBinary(v);return Dk(c.body.value)}function ud(v){return BS(v).toBinary()}function zS(v){if(!v)throw new Xe(Ye.ErrInvalidArgument,"bytes is empty");const c=pl.fromBinary(v);return Pk(c.body.value)}function Lk(v){return Sk(v).toBinary()}function Ib(v){if(!v)throw new Xe(Ye.ErrInvalidArgument,"bytes is empty");const c=pl.fromBinary(v);return Cb(c.body.value)}function $k(v){return wk(v).toBinary()}function Nb(v){return v?Array.from(v).map(c=>c.toString(16).padStart(2,"0")).join(""):""}function Db(v){return Nb(v)}function Pb(v){return new Uint8Array(v.match(/.{1,2}/g).map(c=>parseInt(c,16)))}function sg(v){return Pb(v)}function af(v){const c=jp.fromBinary(v);return Tk(c)}function tN(v){const c=OS.fromBinary(v);return nr(c)}const ci={fromPresence:Tb,toChangePack:xk,fromChangePack:Nk,fromChanges:Ik,toTreeNodes:Ah,fromTreeNodes:ig,objectToBytes:ud,bytesToObject:po,bytesToSnapshot:Mk,bytesToHex:Nb,hexToBytes:Pb,toHexString:Db,toUint8Array:sg,toOperation:vk,toChangeID:Eb,PbChangeID:jp,bytesToChangeID:af,bytesToOperation:tN};var as=(v=>(v[v.Trivial=0]="Trivial",v[v.Debug=1]="Debug",v[v.Info=2]="Info",v[v.Warn=3]="Warn",v[v.Error=4]="Error",v[v.Fatal=5]="Fatal",v))(as||{});let sf=3;function og(v){sf=v}const Ln={trivial:(...v)=>{sf>0||typeof console<"u"&&console.log("YORKIE T:",...v)},debug:(...v)=>{sf>1||typeof console<"u"&&console.log("YORKIE D:",...v)},info:(...v)=>{sf>2||typeof console<"u"&&console.log("YORKIE I:",...v)},warn:(...v)=>{sf>3||typeof console<"u"&&(typeof console.warn<"u"?console.warn("YORKIE W:",...v):console.log("YORKIE W:",...v))},error:(...v)=>{sf>4||typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE E:",...v):console.log("YORKIE E:",...v))},fatal:(...v)=>{typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE F:",...v):console.log("YORKIE F:",...v))},isEnabled:v=>sf<=v};function Fk(){return"xxxxxxxx-xxxx-4xxxy-xxxx-xxxxxxxxxxx".replace(/[xy]/g,v=>{const c=Math.random()*16|0;return(v==="x"?c:c&3|8).toString(16)})}class nN{constructor(c,h,y,T,P){s(this,"reconnectStreamDelay"),s(this,"doc"),s(this,"docID"),s(this,"syncMode"),s(this,"remoteChangeEventReceived"),s(this,"watchStream"),s(this,"watchLoopTimerID"),s(this,"watchAbortController"),s(this,"unsubscribeBroadcastEvent"),this.reconnectStreamDelay=c,this.doc=h,this.docID=y,this.syncMode=T,this.remoteChangeEventReceived=!1,this.unsubscribeBroadcastEvent=P}changeSyncMode(c){this.syncMode=c}needRealtimeSync(){return this.syncMode===bg.RealtimeSyncOff?!1:this.syncMode===bg.RealtimePushOnly?this.doc.hasLocalChanges():this.syncMode!==bg.Manual&&(this.doc.hasLocalChanges()||this.remoteChangeEventReceived)}async runWatchLoop(c){const h=async()=>{if(this.watchStream)return Promise.resolve();this.watchLoopTimerID&&(clearTimeout(this.watchLoopTimerID),this.watchLoopTimerID=void 0);try{[this.watchStream,this.watchAbortController]=await c(()=>{this.watchStream=void 0,this.watchAbortController=void 0,this.watchLoopTimerID=setTimeout(h,this.reconnectStreamDelay)})}catch{}};await h()}cancelWatchStream(){this.watchStream&&this.watchAbortController&&(this.watchAbortController.abort(),this.watchStream=void 0,this.watchAbortController=void 0),clearTimeout(this.watchLoopTimerID),this.watchLoopTimerID=void 0}}const Mb=()=>{};class Bk{constructor(c){s(this,"finalized",!1),s(this,"observers",[]),s(this,"finalError");try{c(this)}catch(h){this.error(h)}}next(c){this.forEachObserver(h=>{h.next(c)})}error(c){this.forEachObserver(h=>{h.error(c)}),this.close(c)}complete(){this.forEachObserver(c=>{c.complete()}),this.close()}subscribe(c,h,y){let T;if(!c)throw new Xe(Ye.ErrInvalidArgument,"missing observer");if(this.finalized)throw new Xe(Ye.ErrRefused,"observable is finalized due to previous error");typeof c=="object"?T=c:T={next:c,error:h,complete:y},T.next===void 0&&(T.next=Mb),T.error===void 0&&(T.error=Mb),T.complete===void 0&&(T.complete=Mb);const P=Fk(),H=this.unsubscribeOne.bind(this,P);if(this.observers.push({subscriptionID:P,observer:T}),this.finalized)try{this.finalError?T.error(this.finalError):T.complete()}catch(Y){Ln.warn(Y)}return H}unsubscribeOne(c){var h;this.observers=(h=this.observers)==null?void 0:h.filter(y=>y.subscriptionID!==c)}forEachObserver(c){if(!this.finalized)for(let h=0;hc}}class Ch{constructor(c,h,y,T){s(this,"id"),s(this,"delimiter"),s(this,"message"),s(this,"root"),s(this,"operations"),s(this,"presenceChange"),s(this,"previousPresence"),s(this,"reversePresenceKeys"),this.id=c,this.delimiter=Oh,this.root=h,this.operations=[],this.previousPresence=tu(y),this.presenceChange=void 0,this.reversePresenceKeys=new Set,this.message=T}static create(c,h,y,T){return new Ch(c,h,y,T)}push(c){this.operations.push(c)}registerElement(c,h){this.root.registerElement(c,h)}registerRemovedElement(c){this.root.registerRemovedElement(c)}registerGCPair(c){this.root.registerGCPair(c)}getChange(){return rf.create({id:this.id,operations:this.operations,presenceChange:this.presenceChange,message:this.message})}hasChange(){return this.operations.length>0||this.presenceChange!==void 0}setPresenceChange(c){this.presenceChange=c}setReversePresence(c,h){for(const y of Object.keys(c))h!=null&&h.addToHistory?this.reversePresenceKeys.add(y):this.reversePresenceKeys.delete(y)}getReversePresence(){if(this.reversePresenceKeys.size===0)return;const c={};for(const h of this.reversePresenceKeys)c[h]=this.previousPresence[h];return c}issueTimeTicket(){return this.delimiter+=1,this.id.createTimeTicket(this.delimiter)}getLastTimeTicket(){return this.id.createTimeTicket(this.delimiter)}}class r0{constructor(c){s(this,"rootObject"),s(this,"elementPairMapByCreatedAt"),s(this,"gcElementSetByCreatedAt"),s(this,"gcPairMap"),this.rootObject=c,this.elementPairMapByCreatedAt=new Map,this.gcElementSetByCreatedAt=new Set,this.gcPairMap=new Map,this.registerElement(c,void 0),c.getDescendants(h=>{if(h.getRemovedAt()&&this.registerRemovedElement(h),h instanceof gl||h instanceof co)for(const y of h.getGCPairs())this.registerGCPair(y);return!1})}static create(){return new r0(so.create(Ms))}findByCreatedAt(c){const h=this.elementPairMapByCreatedAt.get(c.toIDString());if(h)return h.element}findElementPairByCreatedAt(c){return this.elementPairMapByCreatedAt.get(c.toIDString())}createSubPaths(c){let h=this.elementPairMapByCreatedAt.get(c.toIDString());if(!h)return[];const y=[];for(;h.parent;){const T=h.element.getCreatedAt(),P=h.parent.subPathOf(T);if(P===void 0)throw new Xe(Ye.ErrInvalidArgument,`cant find the given element: ${T.toIDString()}`);y.unshift(P),h=this.elementPairMapByCreatedAt.get(h.parent.getCreatedAt().toIDString())}return y.unshift("$"),y}createPath(c){return this.createSubPaths(c).join(".")}registerElement(c,h){this.elementPairMapByCreatedAt.set(c.getCreatedAt().toIDString(),{parent:h,element:c}),c instanceof ef&&c.getDescendants((y,T)=>(this.registerElement(y,T),!1))}deregisterElement(c){let h=0;const y=T=>{const P=T.getCreatedAt().toIDString();this.elementPairMapByCreatedAt.delete(P),this.gcElementSetByCreatedAt.delete(P),h++};return y(c),c instanceof ef&&c.getDescendants(T=>(y(T),!1)),h}registerRemovedElement(c){this.gcElementSetByCreatedAt.add(c.getCreatedAt().toIDString())}registerGCPair(c){if(this.gcPairMap.get(c.child.toIDString())){this.gcPairMap.delete(c.child.toIDString());return}this.gcPairMap.set(c.child.toIDString(),c)}getElementMapSize(){return this.elementPairMapByCreatedAt.size}getGarbageElementSetSize(){const c=new Set;for(const h of this.gcElementSetByCreatedAt){c.add(h);const y=this.elementPairMapByCreatedAt.get(h);y.element instanceof ef&&y.element.getDescendants(T=>(c.add(T.getCreatedAt().toIDString()),!1))}return c.size}getObject(){return this.rootObject}getGarbageLen(){return this.getGarbageElementSetSize()+this.gcPairMap.size}deepcopy(){return new r0(this.rootObject.deepcopy())}garbageCollect(c){let h=0;for(const y of this.gcElementSetByCreatedAt){const T=this.elementPairMapByCreatedAt.get(y);T.element.getRemovedAt()&&c.compare(T.element.getRemovedAt())>=0&&(T.parent.purge(T.element),h+=this.deregisterElement(T.element))}for(const[,y]of this.gcPairMap){const T=y.child.getRemovedAt();T!==void 0&&c.compare(T)>=0&&(y.parent.purge(y.child),this.gcPairMap.delete(y.child.toIDString()),h+=1)}return h}toJSON(){return this.rootObject.toJSON()}toSortedJSON(){return this.rootObject.toSortedJSON()}}function Ls(v,c){const h=new mo(v);return new Proxy(c,h.getHandlers())}class mo{constructor(c){s(this,"context"),s(this,"handlers"),this.context=c,this.handlers={set:(h,y,T)=>(Ln.isEnabled(as.Trivial)&&Ln.trivial(`obj[${y}]=${JSON.stringify(T)}`),mo.setInternal(c,h,y,T),!0),get:(h,y)=>(Ln.isEnabled(as.Trivial)&&Ln.trivial(`obj[${y}]`),y==="getID"?()=>h.getCreatedAt():y==="toJSON"||y==="toString"?()=>h.toJSON():y==="toJS"?()=>h.toJS():y==="toJSForTest"?()=>h.toJSForTest():ic(c,h.get(y))),ownKeys:h=>h.getKeys(),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),deleteProperty:(h,y)=>(Ln.isEnabled(as.Trivial)&&Ln.trivial(`obj[${y}]`),mo.deleteInternal(c,h,y),!0)}}static setInternal(c,h,y,T){if(y.includes("."))throw new Xe(Ye.ErrInvalidObjectKey,"key must not contain the '.'.");const P=c.issueTimeTicket(),H=ug(c,T,P),Y=h.set(y,H,P);c.registerElement(H,h),Y&&c.registerRemovedElement(Y),c.push(Eh.create(y,H.deepcopy(),h.getCreatedAt(),P))}static buildObjectMembers(c,h){const y={};for(const[T,P]of Object.entries(h)){if(T.includes("."))throw new Xe(Ye.ErrInvalidObjectKey,"key must not contain the '.'.");const H=c.issueTimeTicket(),Y=ug(c,P,H);y[T]=Y}return y}static deleteInternal(c,h,y){const T=c.issueTimeTicket(),P=h.deleteByKey(y,T);P&&(c.push(tf.create(h.getCreatedAt(),P.getCreatedAt(),T)),c.registerRemovedElement(P))}getHandlers(){return this.handlers}}function iN(v,c){const h=new di(v,c);return new Proxy(c,h.getHandlers())}function aN(v){return typeof v=="string"||v instanceof String?!isNaN(v):!1}function Lb(v){return["concat","entries","every","filter","find","findIndex","forEach","join","keys","map","reduce","reduceRight","slice","some","toLocaleString","toString","values"].includes(v)}class di{constructor(c,h){s(this,"context"),s(this,"handlers"),s(this,"array"),this.context=c,this.array=h,this.handlers={get:(y,T,P)=>T==="getID"?()=>y.getCreatedAt():T==="getElementByID"?H=>{const Y=y.getByID(H);if(!(!Y||Y.isRemoved()))return cd(c,Y)}:T==="getElementByIndex"?H=>{const Y=y.get(H);return cd(c,Y)}:T==="getLast"?()=>cd(c,y.getLast()):T==="deleteByID"?H=>{const Y=di.deleteInternalByID(c,y,H);return cd(c,Y)}:T==="insertAfter"?(H,Y)=>{const pe=di.insertAfterInternal(c,y,H,Y);return cd(c,pe)}:T==="insertBefore"?(H,Y)=>{const pe=di.insertBeforeInternal(c,y,H,Y);return cd(c,pe)}:T==="moveBefore"?(H,Y)=>{di.moveBeforeInternal(c,y,H,Y)}:T==="moveAfter"?(H,Y)=>{di.moveAfterInternal(c,y,H,Y)}:T==="moveFront"?H=>{di.moveFrontInternal(c,y,H)}:T==="moveLast"?H=>{di.moveLastInternal(c,y,H)}:aN(T)?ic(c,y.get(Number(T))):T==="push"?H=>di.pushInternal(c,y,H):T==="splice"?(H,Y,...pe)=>di.splice(c,y,H,Y,...pe):T==="length"?y.length:typeof T=="symbol"&&T===Symbol.iterator?di.iteratorInternal.bind(this,c,y):T==="includes"?(H,Y)=>di.includes(c,y,H,Y):T==="indexOf"?(H,Y)=>di.indexOf(c,y,H,Y):T==="lastIndexOf"?(H,Y)=>di.lastIndexOf(c,y,H,Y):T==="toJSForTest"?()=>y.toJSForTest():T==="toTestString"?()=>di.toTestString(y):typeof T=="string"&&Lb(T)?(...H)=>{const Y=Array.from(y).map(pe=>ic(c,pe));return Array.prototype[T].apply(Y,H)}:Reflect.get(y,T,P),deleteProperty:(y,T)=>(Ln.isEnabled(as.Trivial)&&Ln.trivial(`array[${T}]`),di.deleteInternalByIndex(c,y,Number.parseInt(T)),!0)}}static*iteratorInternal(c,h){for(const y of h)yield cd(c,y)}static buildArrayElements(c,h){const y=[];for(const T of h){const P=c.issueTimeTicket(),H=ug(c,T,P);y.push(H)}return y}static pushInternal(c,h,y){return di.insertAfterInternal(c,h,h.getLastCreatedAt(),y),h.length}static moveBeforeInternal(c,h,y,T){const P=c.issueTimeTicket(),H=h.getPrevCreatedAt(y);h.moveAfter(H,T,P),c.push(lo.create(h.getCreatedAt(),H,T,P))}static moveAfterInternal(c,h,y,T){const P=c.issueTimeTicket();h.moveAfter(y,T,P),c.push(lo.create(h.getCreatedAt(),y,T,P))}static moveFrontInternal(c,h,y){const T=c.issueTimeTicket(),P=h.getHead();h.moveAfter(P.getCreatedAt(),y,T),c.push(lo.create(h.getCreatedAt(),P.getCreatedAt(),y,T))}static moveLastInternal(c,h,y){const T=c.issueTimeTicket(),P=h.getLastCreatedAt();h.moveAfter(P,y,T),c.push(lo.create(h.getCreatedAt(),P,y,T))}static insertAfterInternal(c,h,y,T){const P=c.issueTimeTicket(),H=ug(c,T,P);return h.insertAfter(y,H),c.registerElement(H,h),c.push(Zm.create(h.getCreatedAt(),y,H.deepcopy(),P)),H}static insertBeforeInternal(c,h,y,T){return di.insertAfterInternal(c,h,h.getPrevCreatedAt(y),T)}static deleteInternalByIndex(c,h,y){const T=c.issueTimeTicket(),P=h.deleteByIndex(y,T);if(P)return c.push(tf.create(h.getCreatedAt(),P.getCreatedAt(),T)),c.registerRemovedElement(P),P}static deleteInternalByID(c,h,y){const T=c.issueTimeTicket(),P=h.delete(y,T);return c.push(tf.create(h.getCreatedAt(),P.getCreatedAt(),T)),c.registerRemovedElement(P),P}static splice(c,h,y,T,...P){const H=h.length,Y=y>=0?Math.min(y,H):Math.max(H+y,0),pe=T===void 0?H:T<0?Y:Math.min(Y+T,H),be=[];for(let Fe=Y;Fe=H)return!1;if(Yr.isSupport(y))return Array.from(h).map(be=>ic(c,be)).includes(y,Y);for(let pe=Y;pe=H)return-1;if(Yr.isSupport(y))return Array.from(h).map(be=>ic(c,be)).indexOf(y,Y);for(let pe=Y;pe=H?H-1:T<0?T+H:T;if(Y<0)return-1;if(Yr.isSupport(y))return Array.from(h).map(be=>ic(c,be)).lastIndexOf(y,Y);for(let pe=Y;pe>0;pe--)if(((P=h.get(pe))==null?void 0:P.getID())===y.getID())return pe;return-1}static toTestString(c){return c.toTestString()}getHandlers(){return this.handlers}}class i0{constructor(c,h){s(this,"context"),s(this,"text"),this.context=c,this.text=h}initialize(c,h){this.context=c,this.text=h}getID(){return this.text.getID()}edit(c,h,y,T){if(!this.context||!this.text)throw new Xe(Ye.ErrNotInitialized,"Text is not initialized yet");if(c>h)throw new Xe(Ye.ErrInvalidArgument,"from should be less than or equal to to");const P=this.text.indexRangeToPosRange(c,h);Ln.isEnabled(as.Debug)&&Ln.debug(`EDIT: f:${c}->${P[0].toTestString()}, t:${h}->${P[1].toTestString()} c:${y}`);const H=T?Ii(T):void 0,Y=this.context.issueTimeTicket(),[pe,,be,Fe]=this.text.edit(P,y,Y,H);for(const xt of be)this.context.registerGCPair(xt);return this.context.push(new Km(this.text.getCreatedAt(),P[0],P[1],pe,y,H?new Map(Object.entries(H)):new Map,Y)),this.text.findIndexesFromRange(Fe)}delete(c,h){return this.edit(c,h,"")}empty(){return this.edit(0,this.length,"")}setStyle(c,h,y){if(!this.context||!this.text)throw new Xe(Ye.ErrNotInitialized,"Text is not initialized yet");if(c>h)throw new Xe(Ye.ErrInvalidArgument,"from should be less than or equal to to");const T=this.text.indexRangeToPosRange(c,h);Ln.isEnabled(as.Debug)&&Ln.debug(`STYL: f:${c}->${T[0].toTestString()}, t:${h}->${T[1].toTestString()} a:${JSON.stringify(y)}`);const P=Ii(y),H=this.context.issueTimeTicket(),[Y,pe]=this.text.setStyle(T,P,H);for(const be of pe)this.context.registerGCPair(be);return this.context.push(new Uo(this.text.getCreatedAt(),T[0],T[1],Y,new Map(Object.entries(P)),H)),!0}indexRangeToPosRange(c){if(!this.context||!this.text)throw new Xe(Ye.ErrNotInitialized,"Text is not initialized yet");const h=this.text.indexRangeToPosRange(c[0],c[1]);return[h[0].toStruct(),h[1].toStruct()]}posRangeToIndexRange(c){if(!this.context||!this.text)throw new Xe(Ye.ErrNotInitialized,"Text is not initialized yet");const h=this.text.findIndexesFromRange([au.fromStruct(c[0]),au.fromStruct(c[1])]);return[h[0],h[1]]}toTestString(){if(!this.context||!this.text)throw new Xe(Ye.ErrNotInitialized,"Text is not initialized yet");return this.text.toTestString()}values(){if(!this.context||!this.text)throw new Xe(Ye.ErrNotInitialized,"Text is not initialized yet");return this.text.values()}get length(){return this.text.length}getTreeByIndex(){return this.text.getTreeByIndex()}getTreeByID(){return this.text.getTreeByID()}toString(){if(!this.context||!this.text)throw new Xe(Ye.ErrNotInitialized,"Text is not initialized yet");return this.text.toString()}toJSON(){if(!this.context||!this.text)throw new Xe(Ye.ErrNotInitialized,"Text is not initialized yet");return this.text.toJSON()}toJSForTest(){if(!this.context||!this.text)throw new Xe(Ye.ErrNotInitialized,"Text is not initialized yet");return this.text.toJSForTest()}createRangeForTest(c,h){if(!this.context||!this.text)throw new Xe(Ye.ErrNotInitialized,"Text is not initialized yet");return this.text.indexRangeToPosRange(c,h)}}class a0{constructor(c,h){s(this,"valueType"),s(this,"value"),s(this,"context"),s(this,"counter"),this.valueType=c,this.value=h}initialize(c,h){this.valueType=h.getValueType(),this.context=c,this.counter=h,this.value=h.getValue()}getID(){return this.counter.getID()}getValue(){return this.value}getValueType(){return this.valueType}increase(c){if(!this.context||!this.counter)throw new Xe(Ye.ErrNotInitialized,"Counter is not initialized yet");const h=this.context.issueTimeTicket(),y=Yr.of(c,h);if(!y.isNumericType())throw new TypeError(`Unsupported type of value: ${typeof y.getValue()}`);return this.counter.increase(y),this.context.push(e0.create(this.counter.getCreatedAt(),y,h)),this}toJSForTest(){if(!this.context||!this.counter)throw new Xe(Ye.ErrNotInitialized,"Counter is not initialized yet");return this.counter.toJSForTest()}}function HS(v,c,h){const{type:y}=v,T=h.issueTimeTicket();if(y===ad){Rh(v);const{value:P}=v,H=uo.create(ns.of(T,0),y,P);c.append(H)}else{const{children:P=[]}=v;let{attributes:H}=v,Y;if(typeof H=="object"&&!hk(H)){H=Ii(H),Y=new id;for(const[be,Fe]of Object.entries(H))Y.set(be,Fe,T)}const pe=uo.create(ns.of(T,0),y,void 0,Y);c.append(pe);for(const be of P)HS(be,pe,h)}}function Uk(v,c){const{type:h}=c,y=v.issueTimeTicket();let T;if(c.type===ad){const{value:P}=c;T=uo.create(ns.of(y,0),h,P)}else if(c){const{children:P=[]}=c;let{attributes:H}=c,Y;if(typeof H=="object"&&!hk(H)){H=Ii(H),Y=new id;for(const[pe,be]of Object.entries(H))Y.set(pe,be,y)}T=uo.create(ns.of(v.issueTimeTicket(),0),h,void 0,Y);for(const pe of P)HS(pe,T,v)}return T}function Rh(v){if(!v.value.length)throw new Xe(Ye.ErrInvalidArgument,"text node cannot have empty value");return!0}function s0(v){if(!v.length)return!0;if(v[0].type===ad)for(const h of v){const{type:y}=h;if(y!==ad)throw new Xe(Ye.ErrInvalidArgument,"element node and text node cannot be passed together");Rh(h)}else for(const h of v){const{type:y}=h;if(y===ad)throw new Xe(Ye.ErrInvalidArgument,"element node and text node cannot be passed together")}return!0}class lg{constructor(c){s(this,"initialRoot"),s(this,"context"),s(this,"tree"),this.initialRoot=c}initialize(c,h){this.context=c,this.tree=h}getID(){return this.tree.getID()}buildRoot(c){if(!this.initialRoot)return uo.create(ns.of(c.issueTimeTicket(),0),$6);const h=uo.create(ns.of(c.issueTimeTicket(),0),this.initialRoot.type);for(const y of this.initialRoot.children)HS(y,h,c);return h}getSize(){if(!this.context||!this.tree)throw new Xe(Ye.ErrNotInitialized,"Tree is not initialized yet");return this.tree.getSize()}getNodeSize(){if(!this.context||!this.tree)throw new Xe(Ye.ErrNotInitialized,"Tree is not initialized yet");return this.tree.getNodeSize()}getIndexTree(){if(!this.context||!this.tree)throw new Xe(Ye.ErrNotInitialized,"Tree is not initialized yet");return this.tree.getIndexTree()}styleByPath(c,h){if(!this.context||!this.tree)throw new Xe(Ye.ErrNotInitialized,"Tree is not initialized yet");if(!c.length)throw new Xe(Ye.ErrInvalidArgument,"path should not be empty");const[y,T]=this.tree.pathToPosRange(c),P=this.context.issueTimeTicket(),H=h?Ii(h):void 0,[Y]=this.tree.style([y,T],H,P);this.context.push(yl.create(this.tree.getCreatedAt(),y,T,Y,H?new Map(Object.entries(H)):new Map,P))}style(c,h,y){if(!this.context||!this.tree)throw new Xe(Ye.ErrNotInitialized,"Tree is not initialized yet");if(c>h)throw new Xe(Ye.ErrInvalidArgument,"from should be less than or equal to to");const T=this.tree.findPos(c),P=this.tree.findPos(h),H=this.context.issueTimeTicket(),Y=y?Ii(y):void 0,[pe,be]=this.tree.style([T,P],Y,H);for(const Fe of be)this.context.registerGCPair(Fe);this.context.push(yl.create(this.tree.getCreatedAt(),T,P,pe,Y?new Map(Object.entries(Y)):new Map,H))}removeStyle(c,h,y){if(!this.context||!this.tree)throw new Xe(Ye.ErrNotInitialized,"Tree is not initialized yet");if(c>h)throw new Xe(Ye.ErrInvalidArgument,"from should be less than or equal to to");const T=this.tree.findPos(c),P=this.tree.findPos(h),H=this.context.issueTimeTicket(),[Y,pe]=this.tree.removeStyle([T,P],y,H);for(const be of pe)this.context.registerGCPair(be);this.context.push(yl.createTreeRemoveStyleOperation(this.tree.getCreatedAt(),T,P,Y,y,H))}editInternal(c,h,y,T=0){var P;if(y.length!==0&&y[0]&&(s0(y),y[0].type!==ad))for(const Fe of y){const{children:xt=[]}=Fe;s0(xt)}const H=this.context.getLastTimeTicket();let Y=new Array;if(((P=y[0])==null?void 0:P.type)===ad){let Fe="";for(const xt of y){const{value:gt}=xt;Fe+=gt}Y.push(uo.create(ns.of(this.context.issueTimeTicket(),0),ad,Fe))}else Y=y.map(Fe=>Fe&&Uk(this.context,Fe)).filter(Fe=>Fe);const[,pe,be]=this.tree.edit([c,h],Y.length?Y.map(Fe=>Fe==null?void 0:Fe.deepcopy()):void 0,T,H,()=>this.context.issueTimeTicket());for(const Fe of pe)this.context.registerGCPair(Fe);return this.context.push(od.create(this.tree.getCreatedAt(),c,h,Y.length?Y:void 0,T,be,H)),!0}editByPath(c,h,y,T=0){if(!this.context||!this.tree)throw new Xe(Ye.ErrNotInitialized,"Tree is not initialized yet");if(c.length!==h.length)throw new Xe(Ye.ErrInvalidArgument,"path length should be equal");if(!c.length||!h.length)throw new Xe(Ye.ErrInvalidArgument,"path should not be empty");const P=this.tree.pathToPos(c),H=this.tree.pathToPos(h);return this.editInternal(P,H,y?[y]:[],T)}editBulkByPath(c,h,y,T=0){if(!this.context||!this.tree)throw new Xe(Ye.ErrNotInitialized,"Tree is not initialized yet");if(c.length!==h.length)throw new Xe(Ye.ErrInvalidArgument,"path length should be equal");if(!c.length||!h.length)throw new Xe(Ye.ErrInvalidArgument,"path should not be empty");const P=this.tree.pathToPos(c),H=this.tree.pathToPos(h);return this.editInternal(P,H,y,T)}edit(c,h,y,T=0){if(!this.context||!this.tree)throw new Xe(Ye.ErrNotInitialized,"Tree is not initialized yet");if(c>h)throw new Xe(Ye.ErrInvalidArgument,"from should be less than or equal to to");const P=this.tree.findPos(c),H=this.tree.findPos(h);return this.editInternal(P,H,y?[y]:[],T)}editBulk(c,h,y,T=0){if(!this.context||!this.tree)throw new Xe(Ye.ErrNotInitialized,"Tree is not initialized yet");if(c>h)throw new Xe(Ye.ErrInvalidArgument,"from should be less than or equal to to");const P=this.tree.findPos(c),H=this.tree.findPos(h);return this.editInternal(P,H,y,T)}toXML(){if(!this.context||!this.tree)throw new Xe(Ye.ErrNotInitialized,"Tree is not initialized yet");return this.tree.toXML()}toJSON(){if(!this.context||!this.tree)throw new Xe(Ye.ErrNotInitialized,"Tree is not initialized yet");return this.tree.toJSON()}toJSForTest(){if(!this.context||!this.tree)throw new Xe(Ye.ErrNotInitialized,"Tree is not initialized yet");return this.tree.toJSForTest()}toJSInfoForTest(){if(!this.context||!this.tree)throw new Xe(Ye.ErrNotInitialized,"Tree is not initialized yet");return this.tree.toJSInfoForTest()}getRootTreeNode(){if(!this.context||!this.tree)throw new Xe(Ye.ErrNotInitialized,"Tree is not initialized yet");return this.tree.getRootTreeNode()}indexToPath(c){if(!this.context||!this.tree)throw new Xe(Ye.ErrNotInitialized,"Tree is not initialized yet");return this.tree.indexToPath(c)}pathToIndex(c){if(!this.context||!this.tree)throw new Xe(Ye.ErrNotInitialized,"Tree is not initialized yet");return this.tree.pathToIndex(c)}pathRangeToPosRange(c){if(!this.context||!this.tree)throw new Xe(Ye.ErrNotInitialized,"Tree is not initialized yet");const h=[this.tree.pathToIndex(c[0]),this.tree.pathToIndex(c[1])],y=this.tree.indexRangeToPosRange(h);return[y[0].toStruct(),y[1].toStruct()]}indexRangeToPosRange(c){if(!this.context||!this.tree)throw new Xe(Ye.ErrNotInitialized,"Tree is not initialized yet");return this.tree.indexRangeToPosStructRange(c)}posRangeToIndexRange(c){if(!this.context||!this.tree)throw new Xe(Ye.ErrNotInitialized,"Tree is not initialized yet");const h=[ru.fromStruct(c[0]),ru.fromStruct(c[1])];return this.tree.posRangeToIndexRange(h)}posRangeToPathRange(c){if(!this.context||!this.tree)throw new Xe(Ye.ErrNotInitialized,"Tree is not initialized yet");const h=[ru.fromStruct(c[0]),ru.fromStruct(c[1])];return this.tree.posRangeToPathRange(h)}}function jS(v,c){return Ls(v,c)}function cd(v,c){if(c){if(c instanceof Yr)return c;if(c instanceof so)return Ls(v,c);if(c instanceof Un)return iN(v,c);if(c instanceof gl)return new i0(v,c);if(c instanceof ho){const h=new a0(rs.IntegerCnt,0);return h.initialize(v,c),h}else if(c instanceof co){const h=new lg;return h.initialize(v,c),h}}else return;throw new TypeError(`Unsupported type of element: ${typeof c}`)}function ic(v,c){const h=cd(v,c);return h instanceof Yr?h.getValue():h}function ug(v,c,h){let y;if(Yr.isSupport(c))y=Yr.of(c,h);else if(Array.isArray(c))y=Un.create(h,di.buildArrayElements(v,c));else if(typeof c=="object")c instanceof i0?(y=gl.create(xh.create(),h),c.initialize(v,y)):c instanceof a0?(y=ho.create(c.getValueType(),c.getValue(),h),c.initialize(v,y)):c instanceof lg?(y=co.create(c.buildRoot(v),h),c.initialize(v,y)):y=so.create(h,mo.buildObjectMembers(v,c));else throw new TypeError(`Unsupported type of value: ${typeof c}`);return y}const cg=50;class WS{constructor(){s(this,"undoStack",[]),s(this,"redoStack",[])}hasUndo(){return this.undoStack.length>0}hasRedo(){return this.redoStack.length>0}pushUndo(c){this.undoStack.length>=cg&&this.undoStack.shift(),this.undoStack.push(c)}popUndo(){return this.undoStack.pop()}pushRedo(c){this.redoStack.length>=cg&&this.redoStack.shift(),this.redoStack.push(c)}popRedo(){return this.redoStack.pop()}clearRedo(){this.redoStack=[]}getUndoStackForTest(){return this.undoStack}getRedoStackForTest(){return this.redoStack}}const dg="yorkie-devtools-panel",zk="yorkie-devtools-sdk";let Ih="disconnected";const fg=new Map,hg=new Map;typeof window<"u"&&(window.transactionEventsByDocKey=hg);function o0(v,c){(c!=null&&c.force||Ih!=="disconnected")&&window.postMessage({source:zk,...v},"*")}function sN(v){if(!v.isEnableDevtools()||typeof window>"u"||fg.has(v.getKey()))return;hg.set(v.getKey(),[]);const c=v.subscribe("all",h=>{h.some(y=>y.type!==Ui.StatusChanged&&y.type!==Ui.Snapshot&&y.type!==Ui.LocalChange&&y.type!==Ui.RemoteChange&&y.type!==Ui.Initialized&&y.type!==Ui.Watched&&y.type!==Ui.Unwatched&&y.type!==Ui.PresenceChanged)||(hg.get(v.getKey()).push(h),Ih==="synced"&&o0({msg:"doc::sync::partial",docKey:v.getKey(),event:h}))});fg.set(v.getKey(),[c]),o0({msg:"refresh-devtools"},{force:!0}),window.addEventListener("message",h=>{var y;if(((y=h.data)==null?void 0:y.source)!==dg)return;switch(h.data.msg){case"devtools::connect":if(Ih!=="disconnected")break;Ih="connected",o0({msg:"doc::available",docKey:v.getKey()}),Ln.info(`[YD] Devtools connected. Doc: ${v.getKey()}`);break;case"devtools::disconnect":Ih="disconnected",Ln.info(`[YD] Devtools disconnected. Doc: ${v.getKey()}`);break;case"devtools::subscribe":Ih="synced",o0({msg:"doc::sync::full",docKey:v.getKey(),events:hg.get(v.getKey())}),Ln.info(`[YD] Devtools subscribed. Doc: ${v.getKey()}`);break}})}var ac=(v=>(v.Detached="detached",v.Attached="attached",v.Removed="removed",v))(ac||{}),Ui=(v=>(v.StatusChanged="status-changed",v.ConnectionChanged="connection-changed",v.SyncStatusChanged="sync-status-changed",v.Snapshot="snapshot",v.LocalChange="local-change",v.RemoteChange="remote-change",v.Initialized="initialized",v.Watched="watched",v.Unwatched="unwatched",v.PresenceChanged="presence-changed",v.Broadcast="broadcast",v.LocalBroadcast="local-broadcast",v))(Ui||{}),pg=(v=>(v.Connected="connected",v.Disconnected="disconnected",v))(pg||{}),mg=(v=>(v.Synced="synced",v.SyncFailed="sync-failed",v))(mg||{});class QS{constructor(c,h){s(this,"key"),s(this,"status"),s(this,"opts"),s(this,"changeID"),s(this,"checkpoint"),s(this,"localChanges"),s(this,"root"),s(this,"clone"),s(this,"eventStream"),s(this,"eventStreamObserver"),s(this,"onlineClients"),s(this,"presences"),s(this,"history"),s(this,"internalHistory"),s(this,"isUpdating"),this.opts=h||{},this.key=c,this.status="detached",this.root=r0.create(),this.changeID=j6,this.checkpoint=LS,this.localChanges=[],this.eventStream=rN(y=>{this.eventStreamObserver=y}),this.onlineClients=new Set,this.presences=new Map,this.isUpdating=!1,this.internalHistory=new WS,this.history={canUndo:this.canUndo.bind(this),canRedo:this.canRedo.bind(this),undo:this.undo.bind(this),redo:this.redo.bind(this)},sN(this)}update(c,h){if(this.getStatus()==="removed")throw new Xe(Ye.ErrDocumentRemoved,`${this.key} is removed`);this.ensureClone();const y=this.changeID.getActorID(),T=Ch.create(this.changeID.next(),this.clone.root,this.clone.presences.get(y)||{},h);try{const P=jS(T,this.clone.root.getObject());this.presences.has(y)||this.clone.presences.set(y,{}),this.isUpdating=!0,c(P,new IS(T,this.clone.presences.get(y)))}catch(P){throw this.clone=void 0,P}finally{this.isUpdating=!1}if(T.hasChange()){Ln.isEnabled(as.Trivial)&&Ln.trivial(`trying to update a local change: ${this.toJSON()}`);const P=T.getChange(),{opInfos:H,reverseOps:Y}=P.execute(this.root,this.presences,ti.Local),pe=T.getReversePresence();pe&&Y.push({type:"presence",value:pe}),this.localChanges.push(P),Y.length>0&&this.internalHistory.pushUndo(Y),H.length>0&&this.internalHistory.clearRedo(),this.changeID=P.getID();const be=[];H.length>0&&be.push({type:"local-change",source:ti.Local,value:{message:P.getMessage()||"",operations:H,actor:y,clientSeq:P.getID().getClientSeq(),serverSeq:P.getID().getServerSeq()},rawChange:this.isEnableDevtools()?P.toStruct():void 0}),P.hasPresenceChange()&&be.push({type:"presence-changed",source:ti.Local,value:{clientID:y,presence:this.getPresence(y)}}),this.publish(be),Ln.isEnabled(as.Trivial)&&Ln.trivial(`after update a local change: ${this.toJSON()}`)}}subscribe(c,h,y,T){if(typeof c=="string"){if(typeof h!="function")throw new Xe(Ye.ErrInvalidArgument,"Second argument must be a callback function");if(c==="presence"){const Y=h;return this.eventStream.subscribe(pe=>{for(const be of pe)be.type!=="initialized"&&be.type!=="watched"&&be.type!=="unwatched"&&be.type!=="presence-changed"||Y(be)},y,T)}if(c==="my-presence"){const Y=h;return this.eventStream.subscribe(pe=>{for(const be of pe)be.type!=="initialized"&&be.type!=="presence-changed"||be.type==="presence-changed"&&be.value.clientID!==this.changeID.getActorID()||Y(be)},y,T)}if(c==="others"){const Y=h;return this.eventStream.subscribe(pe=>{for(const be of pe)be.type!=="watched"&&be.type!=="unwatched"&&be.type!=="presence-changed"||be.value.clientID!==this.changeID.getActorID()&&Y(be)},y,T)}if(c==="connection"){const Y=h;return this.eventStream.subscribe(pe=>{for(const be of pe)be.type==="connection-changed"&&Y(be)},y,T)}if(c==="status"){const Y=h;return this.eventStream.subscribe(pe=>{for(const be of pe)be.type==="status-changed"&&Y(be)},y,T)}if(c==="sync"){const Y=h;return this.eventStream.subscribe(pe=>{for(const be of pe)be.type==="sync-status-changed"&&Y(be)},y,T)}if(c==="local-broadcast"){const Y=h;return this.eventStream.subscribe(pe=>{for(const be of pe)be.type==="local-broadcast"&&Y(be)},y)}if(c==="broadcast"){const Y=h;return this.eventStream.subscribe(pe=>{for(const be of pe)be.type==="broadcast"&&Y(be)},y)}if(c==="all"){const Y=h;return this.eventStream.subscribe(Y,y,T)}const P=c,H=h;return this.eventStream.subscribe(Y=>{for(const pe of Y){if(pe.type!=="local-change"&&pe.type!=="remote-change")continue;const be=[];for(const Fe of pe.value.operations)this.isSameElementOrChildOf(Fe.path,P)&&be.push(Fe);be.length&&H({...pe,value:{...pe.value,operations:be}})}},y,T)}if(typeof c=="function"){const P=c,H=h,Y=y;return this.eventStream.subscribe(pe=>{for(const be of pe)be.type!=="snapshot"&&be.type!=="local-change"&&be.type!=="remote-change"||P(be)},H,Y)}throw new Xe(Ye.ErrInvalidArgument,`"${c}" is not a valid`)}publish(c){this.eventStreamObserver&&this.eventStreamObserver.next(c)}isSameElementOrChildOf(c,h){if(h===c)return!0;const y=c.split(".");return h.split(".").every((P,H)=>P===y[H])}applyChangePack(c){for(c.hasSnapshot()?this.applySnapshot(c.getCheckpoint().getServerSeq(),c.getSnapshot()):c.hasChanges()&&this.applyChanges(c.getChanges(),ti.Remote);this.localChanges.length&&!(this.localChanges[0].getID().getClientSeq()>c.getCheckpoint().getClientSeq());)this.localChanges.shift();c.hasSnapshot()&&this.applyChanges(this.localChanges,ti.Remote),this.checkpoint=this.checkpoint.forward(c.getCheckpoint()),this.garbageCollect(c.getMinSyncedTicket()),c.getIsRemoved()&&this.applyStatus("removed"),Ln.isEnabled(as.Trivial)&&Ln.trivial(`${this.root.toJSON()}`)}getCheckpoint(){return this.checkpoint}getChangeID(){return this.changeID}hasLocalChanges(){return this.localChanges.length>0}ensureClone(){this.clone||(this.clone={root:this.root.deepcopy(),presences:tu(this.presences)})}createChangePack(){const c=Array.from(this.localChanges),h=this.checkpoint.increaseClientSeq(c.length);return Sb.create(this.key,h,!1,c)}setActor(c){for(const h of this.localChanges)h.setActor(c);this.changeID=this.changeID.setActor(c)}isEnableDevtools(){return!!this.opts.enableDevtools}getKey(){return this.key}getStatus(){return this.status}getCloneRoot(){if(this.clone)return this.clone.root.getObject()}getRoot(){this.ensureClone();const c=Ch.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});return jS(c,this.clone.root.getObject())}garbageCollect(c){return this.opts.disableGC?0:(this.clone&&this.clone.root.garbageCollect(c),this.root.garbageCollect(c))}getRootObject(){return this.root.getObject()}getGarbageLen(){return this.root.getGarbageLen()}getGarbageLenFromClone(){return this.clone.root.getGarbageLen()}toJSON(){return this.root.toJSON()}toSortedJSON(){return this.root.toSortedJSON()}toJSForTest(){return{...this.getRoot().toJSForTest(),key:"root"}}applySnapshot(c,h){const{root:y,presences:T}=ci.bytesToSnapshot(h);this.root=new r0(y),this.presences=T,this.changeID=this.changeID.syncLamport(c),this.clone=void 0,this.publish([{type:"snapshot",source:ti.Remote,value:{snapshot:this.isEnableDevtools()?ci.bytesToHex(h):void 0,serverSeq:c.toString()}}])}applyChanges(c,h){Ln.isEnabled(as.Debug)&&Ln.debug(`trying to apply ${c.length} remote changes.elements:${this.root.getElementMapSize()}, removeds:${this.root.getGarbageElementSetSize()}`),Ln.isEnabled(as.Trivial)&&Ln.trivial(c.map(y=>`${y.getID().toTestString()} ${y.toTestString()}`).join(` +`));for(const y of c)this.applyChange(y,h);Ln.isEnabled(as.Debug)&&Ln.debug(`after appling ${c.length} remote changes.elements:${this.root.getElementMapSize()}, removeds:${this.root.getGarbageElementSetSize()}`)}applyChange(c,h){this.ensureClone(),c.execute(this.clone.root,this.clone.presences,h);const y=[],T=c.getID().getActorID();if(c.hasPresenceChange()&&this.onlineClients.has(T)){const H=c.getPresenceChange();switch(H.type){case Jd.Put:y.push(this.presences.has(T)?{type:"presence-changed",source:h,value:{clientID:T,presence:H.presence}}:{type:"watched",source:ti.Remote,value:{clientID:T,presence:H.presence}});break;case Jd.Clear:y.push({type:"unwatched",source:ti.Remote,value:{clientID:T,presence:this.getPresence(T)}}),this.removeOnlineClient(T);break}}const{opInfos:P}=c.execute(this.root,this.presences,h);if(this.changeID=this.changeID.syncLamport(c.getID().getLamport()),P.length>0){const H=this.isEnableDevtools()?c.toStruct():void 0;y.push(h===ti.Remote?{type:"remote-change",source:h,value:{actor:T,clientSeq:c.getID().getClientSeq(),serverSeq:c.getID().getServerSeq(),message:c.getMessage()||"",operations:P},rawChange:H}:{type:"local-change",source:h,value:{actor:T,clientSeq:c.getID().getClientSeq(),serverSeq:c.getID().getServerSeq(),message:c.getMessage()||"",operations:P},rawChange:H})}y.length>0&&this.publish(y)}applyWatchStream(c){if(c.body.case==="initialization"){const h=c.body.value.clientIds,y=new Set;for(const T of h)T!==this.changeID.getActorID()&&y.add(T);this.setOnlineClients(y),this.publish([{type:"initialized",source:ti.Local,value:this.getPresences()}]);return}if(c.body.case==="event"){const{type:h,publisher:y}=c.body.value,T=[];if(h===ei.DOCUMENT_WATCHED)this.addOnlineClient(y),this.hasPresence(y)&&T.push({type:"watched",source:ti.Remote,value:{clientID:y,presence:this.getPresence(y)}});else if(h===ei.DOCUMENT_UNWATCHED){const P=this.getPresence(y);this.removeOnlineClient(y),P&&T.push({type:"unwatched",source:ti.Remote,value:{clientID:y,presence:P}})}else if(h===ei.DOCUMENT_BROADCAST&&c.body.value.body){const{topic:P,payload:H}=c.body.value.body,Y=new TextDecoder;T.push({type:"broadcast",value:{clientID:y,topic:P,payload:JSON.parse(Y.decode(H))}})}T.length>0&&this.publish(T)}}applyStatus(c){this.status=c,c==="detached"&&this.setActor(qm),this.publish([{source:c==="removed"?ti.Remote:ti.Local,type:"status-changed",value:c==="attached"?{status:c,actorID:this.changeID.getActorID()}:{status:c}}])}applyDocEvent(c){if(c.type==="status-changed"){this.applyStatus(c.value.status),c.value.status==="attached"&&this.setActor(c.value.actorID);return}if(c.type==="snapshot"){const{snapshot:h,serverSeq:y}=c.value;if(!h)return;this.applySnapshot(Cn.fromString(y),ci.hexToBytes(h));return}if(c.type==="local-change"||c.type==="remote-change"){if(!c.rawChange)return;const h=rf.fromStruct(c.rawChange);this.applyChange(h,c.source)}if(c.type==="initialized"){const h=new Set;for(const{clientID:y,presence:T}of c.value)h.add(y),this.presences.set(y,T);this.setOnlineClients(h);return}if(c.type==="watched"){const{clientID:h,presence:y}=c.value;this.addOnlineClient(h),this.presences.set(h,y);return}if(c.type==="unwatched"){const{clientID:h}=c.value;this.removeOnlineClient(h),this.presences.delete(h)}if(c.type==="presence-changed"){const{clientID:h,presence:y}=c.value;this.presences.set(h,y)}}applyTransactionEvent(c){for(const h of c)this.applyDocEvent(h)}getValueByPath(c){if(!c.startsWith("$"))throw new Xe(Ye.ErrInvalidArgument,'path must start with "$"');const h=c.split(".");h.shift();let y=this.getRoot();for(const T of h)if(y=y[T],y===void 0)return;return y}setOnlineClients(c){this.onlineClients=c}resetOnlineClients(){this.onlineClients=new Set}addOnlineClient(c){this.onlineClients.add(c)}removeOnlineClient(c){this.onlineClients.delete(c)}hasPresence(c){return this.presences.has(c)}getMyPresence(){if(this.status!=="attached")return{};const c=this.presences.get(this.changeID.getActorID());return c?tu(c):{}}getPresence(c){if(c===this.changeID.getActorID())return this.getMyPresence();if(!this.onlineClients.has(c))return;const h=this.presences.get(c);return h?tu(h):void 0}getPresenceForTest(c){const h=this.presences.get(c);return h?tu(h):void 0}getPresences(){const c=[];c.push({clientID:this.changeID.getActorID(),presence:tu(this.getMyPresence())});for(const h of this.onlineClients)this.presences.has(h)&&c.push({clientID:h,presence:tu(this.presences.get(h))});return c}getSelfForTest(){return{clientID:this.getChangeID().getActorID(),presence:this.getMyPresence()}}getOthersForTest(){const c=this.getChangeID().getActorID();return this.getPresences().filter(h=>h.clientID!==c).sort((h,y)=>h.clientID>y.clientID?1:-1)}canUndo(){return this.internalHistory.hasUndo()&&!this.isUpdating}canRedo(){return this.internalHistory.hasRedo()&&!this.isUpdating}undo(){if(this.isUpdating)throw new Xe(Ye.ErrRefused,"Undo is not allowed during an update");const c=this.internalHistory.popUndo();if(c===void 0)throw new Xe(Ye.ErrRefused,"There is no operation to be undone");this.ensureClone();const h=Ch.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const be of c){if(!(be instanceof oo)){new IS(h,tu(this.clone.presences.get(this.changeID.getActorID()))).set(be.value,{addToHistory:!0});continue}const Fe=h.issueTimeTicket();be.setExecutedAt(Fe),h.push(be)}const y=h.getChange();y.execute(this.clone.root,this.clone.presences,ti.UndoRedo);const{opInfos:T,reverseOps:P}=y.execute(this.root,this.presences,ti.UndoRedo),H=h.getReversePresence();if(H&&P.push({type:"presence",value:H}),P.length>0&&this.internalHistory.pushRedo(P),!y.hasPresenceChange()&&T.length===0)return;this.localChanges.push(y),this.changeID=y.getID();const Y=this.changeID.getActorID(),pe=[];T.length>0&&pe.push({type:"local-change",source:ti.UndoRedo,value:{message:y.getMessage()||"",operations:T,actor:Y,clientSeq:y.getID().getClientSeq(),serverSeq:y.getID().getServerSeq()},rawChange:this.isEnableDevtools()?y.toStruct():void 0}),y.hasPresenceChange()&&pe.push({type:"presence-changed",source:ti.UndoRedo,value:{clientID:Y,presence:this.getPresence(Y)}}),this.publish(pe)}redo(){if(this.isUpdating)throw new Xe(Ye.ErrRefused,"Redo is not allowed during an update");const c=this.internalHistory.popRedo();if(c===void 0)throw new Xe(Ye.ErrRefused,"There is no operation to be redone");this.ensureClone();const h=Ch.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const be of c){if(!(be instanceof oo)){new IS(h,tu(this.clone.presences.get(this.changeID.getActorID()))).set(be.value,{addToHistory:!0});continue}const Fe=h.issueTimeTicket();be.setExecutedAt(Fe),h.push(be)}const y=h.getChange();y.execute(this.clone.root,this.clone.presences,ti.UndoRedo);const{opInfos:T,reverseOps:P}=y.execute(this.root,this.presences,ti.UndoRedo),H=h.getReversePresence();if(H&&P.push({type:"presence",value:H}),P.length>0&&this.internalHistory.pushUndo(P),!y.hasPresenceChange()&&T.length===0)return;this.localChanges.push(y),this.changeID=y.getID();const Y=this.changeID.getActorID(),pe=[];T.length>0&&pe.push({type:"local-change",source:ti.UndoRedo,value:{message:y.getMessage()||"",operations:T,actor:Y,clientSeq:y.getID().getClientSeq(),serverSeq:y.getID().getServerSeq()},rawChange:this.isEnableDevtools()?y.toStruct():void 0}),y.hasPresenceChange()&&pe.push({type:"presence-changed",source:ti.UndoRedo,value:{clientID:Y,presence:this.getPresence(Y)}}),this.publish(pe)}getUndoStackForTest(){return this.internalHistory.getUndoStackForTest()}getRedoStackForTest(){return this.internalHistory.getRedoStackForTest()}broadcast(c,h,y){const T={type:"local-broadcast",value:{topic:c,payload:h},error:y};this.publish([T])}}function Hk(v,c){return h=>async y=>(v&&y.header.set("x-api-key",v),c&&y.header.set("authorization",c),await h(y))}const qk={name:"yorkie-js-sdk",version:"0.5.0",description:"Yorkie JS SDK",main:"./src/yorkie.ts",publishConfig:{access:"public",main:"./dist/yorkie-js-sdk.js",typings:"./dist/yorkie-js-sdk.d.ts"},files:["dist"],scripts:{build:"tsc && vite build","build:proto":"npx buf generate","build:docs":"typedoc","build:ghpages":"mkdir -p ghpages/examples && cp -r docs ghpages/api-reference && find ../../examples -name 'dist' -type d -exec sh -c 'cp -r {} ghpages/examples/$(basename $(dirname {}))' \\;",dev:"vite build -c vite.preview.ts && vite preview",test:"vitest run","test:watch":"vitest","test:bench":"vitest bench","test:ci":"vitest run --coverage","test:yorkie.dev":"TEST_RPC_ADDR=https://api.yorkie.dev vitest run --coverage",lint:"eslint . --fix --max-warnings=0 --ext .ts",prepare:"pnpm build"},engines:{node:">=18.0.0",npm:">=7.1.0"},repository:{type:"git",url:"git+https://github.com/yorkie-team/yorkie-js-sdk.git"},author:{name:"hackerwins",email:"susukang98@gmail.com"},license:"Apache-2.0",bugs:{url:"https://github.com/yorkie-team/yorkie-js-sdk/issues"},homepage:"https://github.com/yorkie-team/yorkie-js-sdk#readme",devDependencies:{"@buf/googleapis_googleapis.bufbuild_es":"^1.4.0-20240524201209-f0e53af8f2fc.3","@bufbuild/buf":"^1.28.1","@bufbuild/protoc-gen-es":"^1.6.0","@connectrpc/protoc-gen-connect-es":"^1.4.0","@types/google-protobuf":"^3.15.5","@types/long":"^4.0.1","@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","@vitest/coverage-istanbul":"^0.34.5","@vitest/coverage-v8":"^0.34.5",eslint:"^8.19.0","eslint-plugin-jsdoc":"^39.3.3","eslint-plugin-prettier":"^4.2.1","eslint-plugin-tsdoc":"^0.2.16",husky:"^8.0.3",prettier:"^2.7.1","ts-node":"^10.9.1",typedoc:"^0.25.13",typescript:"^5.3.3","typescript-transform-paths":"^3.3.1",vite:"^5.0.12","vite-plugin-commonjs":"^0.10.1","vite-plugin-dts":"^3.9.1","vite-tsconfig-paths":"^4.2.1",vitest:"^0.34.5"},dependencies:{"@bufbuild/protobuf":"^1.6.0","@connectrpc/connect":"^1.4.0","@connectrpc/connect-web":"^1.4.0",long:"^5.2.0"},husky:{hooks:{"pre-commit":"pnpm lint"}}};function lN(){return v=>async c=>(c.header.set("x-yorkie-user-agent",qk.name+"/"+qk.version),await v(c))}const Yk=v=>{try{if(JSON.stringify(v)===void 0)return!1}catch{return!1}return!0};var bg=(v=>(v.Manual="manual",v.Realtime="realtime",v.RealtimePushOnly="realtime-pushonly",v.RealtimeSyncOff="realtime-syncoff",v))(bg||{}),qS=(v=>(v.Deactivated="deactivated",v.Activated="activated",v))(qS||{}),Zk=(v=>(v.SyncLoop="SyncLoop",v.WatchLoop="WatchLoop",v))(Zk||{});const $b={syncLoopDuration:50,retrySyncLoopDelay:1e3,reconnectStreamDelay:1e3};class YS{constructor(c,h){s(this,"id"),s(this,"key"),s(this,"status"),s(this,"attachmentMap"),s(this,"apiKey"),s(this,"conditions"),s(this,"syncLoopDuration"),s(this,"reconnectStreamDelay"),s(this,"retrySyncLoopDelay"),s(this,"rpcClient"),s(this,"taskQueue"),s(this,"processing",!1),h=h||$b,this.key=h.key?h.key:Fk(),this.status="deactivated",this.attachmentMap=new Map,this.apiKey=h.apiKey||"",this.conditions={SyncLoop:!1,WatchLoop:!1},this.syncLoopDuration=h.syncLoopDuration||$b.syncLoopDuration,this.reconnectStreamDelay=h.reconnectStreamDelay||$b.reconnectStreamDelay,this.retrySyncLoopDelay=h.retrySyncLoopDelay||$b.retrySyncLoopDelay,this.rpcClient=c6(_S,lb({baseUrl:c,interceptors:[Hk(h.apiKey,h.token),lN()]})),this.taskQueue=[]}activate(){return this.isActive()?Promise.resolve():this.enqueueTask(async()=>this.rpcClient.activateClient({clientKey:this.key},{headers:{"x-shard-key":this.apiKey}}).then(c=>{this.id=c.clientId,this.status="activated",this.runSyncLoop(),Ln.info(`[AC] c:"${this.getKey()}" activated, id:"${this.id}"`)}).catch(c=>{throw Ln.error(`[AC] c:"${this.getKey()}" err :`,c),this.handleConnectError(c),c}))}deactivate(){return this.status==="deactivated"?Promise.resolve():this.enqueueTask(async()=>this.rpcClient.deactivateClient({clientId:this.id},{headers:{"x-shard-key":this.apiKey}}).then(()=>{this.deactivateInternal(),Ln.info(`[DC] c"${this.getKey()}" deactivated`)}).catch(c=>{throw Ln.error(`[DC] c:"${this.getKey()}" err :`,c),this.handleConnectError(c),c}))}attach(c,h={}){if(!this.isActive())throw new Xe(Ye.ErrClientNotActivated,`${this.key} is not active`);if(c.getStatus()!==ac.Detached)throw new Xe(Ye.ErrDocumentNotDetached,`${c.getKey()} is not detached`);c.setActor(this.id),c.update((P,H)=>H.set(h.initialPresence||{}));const y=c.subscribe("local-broadcast",P=>{const{topic:H,payload:Y}=P.value,pe=P.error;try{this.broadcast(c.getKey(),H,Y)}catch(be){be instanceof Error&&(pe==null||pe(be))}}),T=h.syncMode??"realtime";return this.enqueueTask(async()=>this.rpcClient.attachDocument({clientId:this.id,changePack:ci.toChangePack(c.createChangePack())},{headers:{"x-shard-key":`${this.apiKey}/${c.getKey()}`}}).then(async P=>{const H=ci.fromChangePack(P.changePack);return c.applyChangePack(H),c.getStatus()===ac.Removed||(c.applyStatus(ac.Attached),this.attachmentMap.set(c.getKey(),new nN(this.reconnectStreamDelay,c,P.documentId,T,y)),T!=="manual"&&await this.runWatchLoop(c.getKey()),Ln.info(`[AD] c:"${this.getKey()}" attaches d:"${c.getKey()}"`)),c}).catch(P=>{throw Ln.error(`[AD] c:"${this.getKey()}" err :`,P),this.handleConnectError(P),P}))}detach(c,h={}){if(!this.isActive())throw new Xe(Ye.ErrClientNotActivated,`${this.key} is not active`);const y=this.attachmentMap.get(c.getKey());if(!y)throw new Xe(Ye.ErrDocumentNotAttached,`${c.getKey()} is not attached`);return c.update((T,P)=>P.clear()),this.enqueueTask(async()=>this.rpcClient.detachDocument({clientId:this.id,documentId:y.docID,changePack:ci.toChangePack(c.createChangePack()),removeIfNotAttached:h.removeIfNotAttached??!1},{headers:{"x-shard-key":`${this.apiKey}/${c.getKey()}`}}).then(T=>{const P=ci.fromChangePack(T.changePack);return c.applyChangePack(P),c.getStatus()!==ac.Removed&&c.applyStatus(ac.Detached),this.detachInternal(c.getKey()),Ln.info(`[DD] c:"${this.getKey()}" detaches d:"${c.getKey()}"`),c}).catch(T=>{throw Ln.error(`[DD] c:"${this.getKey()}" err :`,T),this.handleConnectError(T),T}))}async changeSyncMode(c,h){if(!this.isActive())throw new Xe(Ye.ErrClientNotActivated,`${this.key} is not active`);const y=this.attachmentMap.get(c.getKey());if(!y)throw new Xe(Ye.ErrDocumentNotAttached,`${c.getKey()} is not attached`);const T=y.syncMode;return T===h?c:(y.changeSyncMode(h),h==="manual"?(y.cancelWatchStream(),c):(h==="realtime"&&(y.remoteChangeEventReceived=!0),T==="manual"&&await this.runWatchLoop(c.getKey()),c))}sync(c){if(!this.isActive())throw new Xe(Ye.ErrClientNotActivated,`${this.key} is not active`);if(c){const h=this.attachmentMap.get(c.getKey());if(!h)throw new Xe(Ye.ErrDocumentNotAttached,`${c.getKey()} is not attached`);return this.enqueueTask(async()=>this.syncInternal(h,"realtime").catch(y=>{throw Ln.error(`[SY] c:"${this.getKey()}" err :`,y),this.handleConnectError(y),y}))}return this.enqueueTask(async()=>{const h=[];for(const[,y]of this.attachmentMap)h.push(this.syncInternal(y,y.syncMode));return Promise.all(h).catch(y=>{throw Ln.error(`[SY] c:"${this.getKey()}" err :`,y),this.handleConnectError(y),y})})}remove(c){if(!this.isActive())throw new Xe(Ye.ErrClientNotActivated,`${this.key} is not active`);const h=this.attachmentMap.get(c.getKey());if(!h)throw new Xe(Ye.ErrDocumentNotAttached,`${c.getKey()} is not attached`);c.setActor(this.id);const y=ci.toChangePack(c.createChangePack());return y.isRemoved=!0,this.enqueueTask(async()=>this.rpcClient.removeDocument({clientId:this.id,documentId:h.docID,changePack:y},{headers:{"x-shard-key":`${this.apiKey}/${c.getKey()}`}}).then(T=>{const P=ci.fromChangePack(T.changePack);c.applyChangePack(P),this.detachInternal(c.getKey()),Ln.info(`[RD] c:"${this.getKey()}" removes d:"${c.getKey()}"`)}).catch(T=>{throw Ln.error(`[RD] c:"${this.getKey()}" err :`,T),this.handleConnectError(T),T}))}getID(){return this.id}getKey(){return this.key}isActive(){return this.status==="activated"}getStatus(){return this.status}getCondition(c){return this.conditions[c]}broadcast(c,h,y){if(!this.isActive())throw new Xe(Ye.ErrClientNotActivated,`${this.key} is not active`);const T=this.attachmentMap.get(c);if(!T)throw new Xe(Ye.ErrDocumentNotAttached,`${c} is not attached`);if(!Yk(y))throw new Xe(Ye.ErrInvalidArgument,"payload is not serializable");return this.enqueueTask(async()=>this.rpcClient.broadcast({clientId:this.id,documentId:T.docID,topic:h,payload:new TextEncoder().encode(JSON.stringify(y))},{headers:{"x-shard-key":`${this.apiKey}/${c}`}}).then(()=>{Ln.info(`[BC] c:"${this.getKey()}" broadcasts d:"${c}" t:"${h}"`)}).catch(P=>{throw Ln.error(`[BC] c:"${this.getKey()}" err :`,P),this.handleConnectError(P),P}))}runSyncLoop(){const c=()=>{if(!this.isActive()){Ln.debug(`[SL] c:"${this.getKey()}" exit sync loop`),this.conditions.SyncLoop=!1;return}const h=[];for(const[,y]of this.attachmentMap)y.needRealtimeSync()&&(y.remoteChangeEventReceived=!1,h.push(this.syncInternal(y,y.syncMode)));Promise.all(h).then(()=>setTimeout(c,this.syncLoopDuration)).catch(y=>{Ln.error(`[SL] c:"${this.getKey()}" sync failed:`,y),this.handleConnectError(y)?setTimeout(c,this.retrySyncLoopDelay):this.conditions.SyncLoop=!1})};Ln.debug(`[SL] c:"${this.getKey()}" run sync loop`),this.conditions.SyncLoop=!0,c()}async runWatchLoop(c){const h=this.attachmentMap.get(c);if(!h)throw new Xe(Ye.ErrDocumentNotAttached,`${c} is not attached`);return this.conditions.WatchLoop=!0,h.runWatchLoop(y=>{if(!this.isActive())return this.conditions.WatchLoop=!1,Promise.reject(new Xe(Ye.ErrClientNotActivated,`${this.key} is not active`));const T=new AbortController,P=this.rpcClient.watchDocument({clientId:this.id,documentId:h.docID},{headers:{"x-shard-key":`${this.apiKey}/${c}`},signal:T.signal});return h.doc.publish([{type:Ui.ConnectionChanged,value:pg.Connected}]),Ln.info(`[WD] c:"${this.getKey()}" watches d:"${c}"`),new Promise((H,Y)=>{(async()=>{try{for await(const be of P)this.handleWatchDocumentsResponse(h,be),be.body.case==="initialization"&&H([P,T])}catch(be){h.doc.resetOnlineClients(),h.doc.publish([{type:Ui.Initialized,source:ti.Local,value:h.doc.getPresences()}]),h.doc.publish([{type:Ui.ConnectionChanged,value:pg.Disconnected}]),Ln.debug(`[WD] c:"${this.getKey()}" unwatches`),this.handleConnectError(be)?y():this.conditions.WatchLoop=!1,Y(be)}})()})})}handleWatchDocumentsResponse(c,h){if(h.body.case==="event"&&h.body.value.type===ei.DOCUMENT_CHANGED){c.remoteChangeEventReceived=!0;return}c.doc.applyWatchStream(h)}deactivateInternal(){this.status="deactivated";for(const[c,h]of this.attachmentMap)this.detachInternal(c),h.doc.applyStatus(ac.Detached)}detachInternal(c){const h=this.attachmentMap.get(c);h&&(h.cancelWatchStream(),h.unsubscribeBroadcastEvent(),this.attachmentMap.delete(c))}syncInternal(c,h){const{doc:y,docID:T}=c,P=y.createChangePack();return this.rpcClient.pushPullChanges({clientId:this.id,documentId:T,changePack:ci.toChangePack(P),pushOnly:h==="realtime-pushonly"},{headers:{"x-shard-key":`${this.apiKey}/${y.getKey()}`}}).then(H=>{const Y=ci.fromChangePack(H.changePack);if(Y.hasChanges()&&(c.syncMode==="realtime-pushonly"||c.syncMode==="realtime-syncoff"))return y;y.applyChangePack(Y),c.doc.publish([{type:Ui.SyncStatusChanged,value:mg.Synced}]),y.getStatus()===ac.Removed&&this.detachInternal(y.getKey());const pe=y.getKey(),be=Y.getChangeSize();return Ln.info(`[PP] c:"${this.getKey()}" sync d:"${pe}", push:${P.getChangeSize()} pull:${be} cp:${Y.getCheckpoint().toTestString()}`),y}).catch(H=>{throw y.publish([{type:Ui.SyncStatusChanged,value:mg.SyncFailed}]),Ln.error(`[PP] c:"${this.getKey()}" err :`,H),H})}handleConnectError(c){return c instanceof u?c.code===o.Canceled||c.code===o.Unknown||c.code===o.ResourceExhausted||c.code===o.Unavailable?!0:((xb(c)===Ye.ErrClientNotActivated||xb(c)===Ye.ErrClientNotFound)&&this.deactivateInternal(),!1):!1}enqueueTask(c){return new Promise((h,y)=>{this.taskQueue.push(()=>c().then(h).catch(y)),this.processing||this.processNext()})}async processNext(){if(this.taskQueue.length===0){this.processing=!1;return}try{this.processing=!0,await this.taskQueue.shift()()}catch{Ln.error(`[TQ] c:"${this.getKey()}" process failed, id:"${this.id}"`)}this.processNext()}}const dd=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Fs={Client:YS,Document:QS,Primitive:Yr,Text:i0,Counter:a0,Tree:lg,LogLevel:as,setLogLevel:og,IntType:rs.IntegerCnt,LongType:rs.LongCnt};typeof globalThis<"u"&&(globalThis.yorkie={Client:YS,Document:QS,Primitive:Yr,Text:i0,Counter:a0,Tree:lg,LogLevel:as,setLogLevel:og,IntType:rs.IntegerCnt,LongType:rs.LongCnt}),r.Change=rf,r.Client=YS,r.ClientCondition=Zk,r.ClientStatus=qS,r.Counter=a0,r.Devtools=dd,r.DocEventType=Ui,r.Document=QS,r.DocumentStatus=ac,r.DocumentSyncStatus=mg,r.EventSourceDevPanel=dg,r.EventSourceSDK=zk,r.LogLevel=as,r.OpSource=ti,r.Primitive=Yr,r.StreamConnectionStatus=pg,r.SyncMode=bg,r.Text=i0,r.TimeTicket=ts,r.Tree=lg,r.converter=ci,r.default=Fs,r.setLogLevel=og,Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})})(l$,l$.exports);var jC=l$.exports;class Iat{constructor(t,n){Bs(this,"doc");Bs(this,"client");this.doc=t,this.client=n}}const wH=pn.define({combine(e){return e[e.length-1]}});jd.define();class Nat{constructor(t){Bs(this,"view");Bs(this,"conf");Bs(this,"_doc");this.view=t,this.conf=t.state.facet(wH),this._doc=this.conf.doc,this._doc.subscribe(n=>{if(n.type!=="snapshot")return;const r=this._doc.getRoot().content;t.dispatch({changes:{from:0,to:t.state.doc.length,insert:r.toString()},annotations:[gs.remote.of(!0)]})}),this._doc.update(n=>{n.content||(n.content=new jC.Text)}),this._doc.subscribe("$.content",n=>{if(n.type!=="remote-change")return;const{operations:r}=n.value;r.forEach(i=>{if(i.type==="edit"){const a=[{from:Math.max(0,i.from),to:Math.max(0,i.to),insert:i.value.content}];t.dispatch({changes:a,annotations:[gs.remote.of(!0)]})}})})}update(t){if(t.docChanged)for(const n of t.transactions){if(!["select","input","delete","move","undo","redo"].some(a=>n.isUserEvent(a))||n.annotation(gs.remote))continue;let i=0;this._doc.update(a=>{n.changes.iterChanges((s,o,l,u,d)=>{const f=d.toJSON().join(` +`);a.content.edit(s+i,o+i,f),i+=f.length-(o-s)})})}}}const Dat=ya.fromClass(Nat);var WC={exports:{}};/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */WC.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",o="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,d="__lodash_placeholder__",f=1,p=2,g=4,b=1,S=2,E=1,w=2,x=4,k=8,_=16,C=32,R=64,N=128,M=256,U=512,F=30,G="...",V=800,ie=16,ne=1,q=2,re=3,ee=1/0,Z=9007199254740991,se=17976931348623157e292,W=NaN,Pe=4294967295,Ee=Pe-1,X=Pe>>>1,Re=[["ary",N],["bind",E],["bindKey",w],["curry",k],["curryRight",_],["flip",U],["partial",C],["partialRight",R],["rearg",M]],Ue="[object Arguments]",oe="[object Array]",rt="[object AsyncFunction]",qe="[object Boolean]",et="[object Date]",Tt="[object DOMException]",ct="[object Error]",Pt="[object Function]",Mt="[object GeneratorFunction]",ot="[object Map]",wt="[object Number]",vt="[object Null]",Wt="[object Object]",z="[object Promise]",K="[object Proxy]",ue="[object RegExp]",_e="[object Set]",Ie="[object String]",Ce="[object Symbol]",Qe="[object Undefined]",Ot="[object WeakMap]",Ne="[object WeakSet]",ye="[object ArrayBuffer]",ve="[object DataView]",ke="[object Float32Array]",ze="[object Float64Array]",At="[object Int8Array]",Zt="[object Int16Array]",tt="[object Int32Array]",Qt="[object Uint8Array]",Vt="[object Uint8ClampedArray]",Gt="[object Uint16Array]",vn="[object Uint32Array]",pr=/\b__p \+= '';/g,Cr=/\b(__p \+=) '' \+/g,Tr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,jr=/&(?:amp|lt|gt|quot|#39);/g,vi=/[&<>"']/g,si=RegExp(jr.source),Ai=RegExp(vi.source),oi=/<%-([\s\S]+?)%>/g,ja=/<%([\s\S]+?)%>/g,_i=/<%=([\s\S]+?)%>/g,Os=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ci=/^\w*$/,Mr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Kn=/[\\^$.*+?()[\]{}|]/g,Wr=RegExp(Kn.source),We=/^\s+/,lt=/\s/,de=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,me=/\{\n\/\* \[wrapped with (.+)\] \*/,Be=/,? & /,Ke=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,yt=/[()=,{}\[\]\/\s]/,Xt=/\\(\\)?/g,Le=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Te=/\w*$/,dt=/^[-+]0x[0-9a-f]+$/i,Je=/^0b[01]+$/i,kt=/^\[object .+?Constructor\]$/,_t=/^0o[0-7]+$/i,qt=/^(?:0|[1-9]\d*)$/,it=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Vn=/($^)/,Ri=/['\n\r\u2028\u2029\\]/g,Dn="\\ud800-\\udfff",oa="\\u0300-\\u036f",la="\\ufe20-\\ufe2f",Wa="\\u20d0-\\u20ff",Ps=oa+la+Wa,Qa="\\u2700-\\u27bf",va="a-z\\xdf-\\xf6\\xf8-\\xff",Ge="\\xac\\xb1\\xd7\\xf7",Oa="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",hh="\\u2000-\\u206f",Tn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Rr="A-Z\\xc0-\\xd6\\xd8-\\xde",Oi="\\ufe0e\\ufe0f",gr=Ge+Oa+hh+Tn,Yi="['’]",Mo="["+Dn+"]",Lo="["+gr+"]",$o="["+Ps+"]",Zl="\\d+",Zu="["+Qa+"]",no="["+va+"]",Xl="[^"+Dn+gr+Zl+Qa+va+Rr+"]",cS="\\ud83c[\\udffb-\\udfff]",l6="(?:"+$o+"|"+cS+")",dS="[^"+Dn+"]",ab="(?:\\ud83c[\\udde6-\\uddff]){2}",fS="[\\ud800-\\udbff][\\udc00-\\udfff]",Xu="["+Rr+"]",jT="\\u200d",WT="(?:"+no+"|"+Xl+")",u6="(?:"+Xu+"|"+Xl+")",hS="(?:"+Yi+"(?:d|ll|m|re|s|t|ve))?",ph="(?:"+Yi+"(?:D|LL|M|RE|S|T|VE))?",QT=l6+"?",GT="["+Oi+"]?",c6="(?:"+jT+"(?:"+[dS,ab,fS].join("|")+")"+GT+QT+")*",d6="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",f6="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",VT=GT+QT+c6,h6="(?:"+[Zu,ab,fS].join("|")+")"+VT,qT="(?:"+[dS+$o+"?",$o,ab,fS,Mo].join("|")+")",p6=RegExp(Yi,"g"),m6=RegExp($o,"g"),sb=RegExp(cS+"(?="+cS+")|"+qT+VT,"g"),YT=RegExp([Xu+"?"+no+"+"+hS+"(?="+[Lo,Xu,"$"].join("|")+")",u6+"+"+ph+"(?="+[Lo,Xu+WT,"$"].join("|")+")",Xu+"?"+WT+"+"+hS,Xu+"+"+ph,f6,d6,Zl,h6].join("|"),"g"),pS=RegExp("["+jT+Dn+Ps+Oi+"]"),ZT=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,g6=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],b6=-1,mi={};mi[ke]=mi[ze]=mi[At]=mi[Zt]=mi[tt]=mi[Qt]=mi[Vt]=mi[Gt]=mi[vn]=!0,mi[Ue]=mi[oe]=mi[ye]=mi[qe]=mi[ve]=mi[et]=mi[ct]=mi[Pt]=mi[ot]=mi[wt]=mi[Wt]=mi[ue]=mi[_e]=mi[Ie]=mi[Ot]=!1;var li={};li[Ue]=li[oe]=li[ye]=li[ve]=li[qe]=li[et]=li[ke]=li[ze]=li[At]=li[Zt]=li[tt]=li[ot]=li[wt]=li[Wt]=li[ue]=li[_e]=li[Ie]=li[Ce]=li[Qt]=li[Vt]=li[Gt]=li[vn]=!0,li[ct]=li[Pt]=li[Ot]=!1;var y6={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},v6={"&":"&","<":"<",">":">",'"':""","'":"'"},O6={"&":"&","<":"<",">":">",""":'"',"'":"'"},S6={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},E6=parseFloat,Jc=parseInt,XT=typeof Tf=="object"&&Tf&&Tf.Object===Object&&Tf,KT=typeof self=="object"&&self&&self.Object===Object&&self,Ga=XT||KT||Function("return this")(),ob=t&&!t.nodeType&&t,mh=ob&&!0&&e&&!e.nodeType&&e,mS=mh&&mh.exports===ob,gS=mS&&XT.process,Fo=function(){try{var He=mh&&mh.require&&mh.require("util").types;return He||gS&&gS.binding&&gS.binding("util")}catch{}}(),bS=Fo&&Fo.isArrayBuffer,yS=Fo&&Fo.isDate,JT=Fo&&Fo.isMap,ek=Fo&&Fo.isRegExp,vS=Fo&&Fo.isSet,tk=Fo&&Fo.isTypedArray;function ro(He,ht,nt){switch(nt.length){case 0:return He.call(ht);case 1:return He.call(ht,nt[0]);case 2:return He.call(ht,nt[0],nt[1]);case 3:return He.call(ht,nt[0],nt[1],nt[2])}return He.apply(ht,nt)}function nk(He,ht,nt,ln){for(var qn=-1,Ur=He==null?0:He.length;++qn-1}function Xn(He,ht,nt){for(var ln=-1,qn=He==null?0:He.length;++ln-1;);return nt}function jm(He,ht){for(var nt=He.length;nt--&&gh(ht,He[nt],0)>-1;);return nt}function lk(He,ht){for(var nt=He.length,ln=0;nt--;)He[nt]===ht&&++ln;return ln}var TS=cb(y6),kS=cb(v6);function uk(He){return"\\"+S6[He]}function Qp(He,ht){return He==null?n:He[ht]}function Ju(He){return pS.test(He)}function x6(He){return ZT.test(He)}function AS(He){for(var ht,nt=[];!(ht=He.next()).done;)nt.push(ht.value);return nt}function bh(He){var ht=-1,nt=Array(He.size);return He.forEach(function(ln,qn){nt[++ht]=[qn,ln]}),nt}function mb(He,ht){return function(nt){return He(ht(nt))}}function ed(He,ht){for(var nt=-1,ln=He.length,qn=0,Ur=[];++nt-1}function F6(m,O){var A=this.__data__,B=iu(A,m);return B<0?(++this.size,A.push([m,O])):A[B][1]=O,this}Uo.prototype.clear=L6,Uo.prototype.delete=$6,Uo.prototype.get=ad,Uo.prototype.has=Jm,Uo.prototype.set=F6;function sd(m){var O=-1,A=m==null?0:m.length;for(this.clear();++O=O?m:O)),m}function bl(m,O,A,B,J,fe){var we,De=O&f,je=O&p,St=O&g;if(A&&(we=J?A(m,B,J,fe):A(m)),we!==n)return we;if(!ca(m))return m;var Et=er(m);if(Et){if(we=bg(m),!De)return Ls(m,we)}else{var Ct=$s(m),nn=Ct==Pt||Ct==Mt;if(u0(m))return sf(m,De);if(Ct==Wt||Ct==Ue||nn&&!J){if(we=je||nn?{}:qS(m),!De)return je?aN(m,Sb(we,m)):iN(m,rf(we,m))}else{if(!li[Ct])return J?m:{};we=Zk(m,Ct,De)}}fe||(fe=new nu);var xn=fe.get(m);if(xn)return xn;fe.set(m,we),qq(m)?m.forEach(function(Hn){we.add(bl(Hn,O,A,Hn,m,fe))}):Gq(m)&&m.forEach(function(Hn,Or){we.set(Or,bl(Hn,O,A,Or,m,fe))});var zn=St?je?Wk:jk:je?Sl:xs,dr=Et?n:zn(m);return hl(dr||m,function(Hn,Or){dr&&(Or=Hn,Hn=m[Or]),od(we,Or,bl(Hn,O,A,Or,m,fe))}),we}function au(m){var O=xs(m);return function(A){return ld(A,m,O)}}function ld(m,O,A){var B=A.length;if(m==null)return!B;for(m=ui(m);B--;){var J=A[B],fe=O[J],we=m[J];if(we===n&&!(J in m)||!fe(we))return!1}return!0}function xh(m,O,A){if(typeof m!="function")throw new Cn(s);return Jn(function(){m.apply(n,A)},O)}function Jp(m,O,A,B){var J=-1,fe=lb,we=!0,De=m.length,je=[],St=O.length;if(!De)return je;A&&(O=ei(O,io(A))),B?(fe=Xn,we=!1):O.length>=i&&(fe=Wp,we=!1,O=new nf(O));e:for(;++JJ?0:J+A),B=B===n||B>J?J:lr(B),B<0&&(B+=J),B=A>B?0:Zq(B);A0&&A(De)?O>1?is(De,O-1,A,B,J):Xd(J,De):B||(J[J.length]=De)}return J}var Eb=a0(),On=a0(!0);function su(m,O){return m&&Eb(m,O,xs)}function wb(m,O){return m&&On(m,O,xs)}function t0(m,O){return Zd(O,function(A){return Nh(m[A])})}function Th(m,O){O=af(O,m);for(var A=0,B=O.length;m!=null&&AO}function vk(m,O){return m!=null&&tr.call(m,O)}function Q6(m,O){return m!=null&&O in ui(m)}function G6(m,O,A){return m>=ua(O,A)&&m=120&&Et.length>=120)?new nf(we&&Et):n}Et=m[0];var Ct=-1,nn=De[0];e:for(;++Ct-1;)De!==m&&Vm.call(De,je,1),Vm.call(m,je,1);return m}function Rk(m,O){for(var A=m?O.length:0,B=A-1;A--;){var J=O[A];if(A==B||J!==fe){var fe=J;dd(J)?Vm.call(m,J,1):zS(m,J)}}return m}function ig(m,O){return m+yb(qm()*(O-m+1))}function K6(m,O,A,B){for(var J=-1,fe=Ii(bb((O-m)/(A||1)),0),we=nt(fe);fe--;)we[B?fe:++J]=m,m+=A;return we}function US(m,O){var A="";if(!m||O<1||O>Z)return A;do O%2&&(A+=m),O=yb(O/2),O&&(m+=m);while(O);return A}function nr(m,O){return gi(gt(m,O,El),m+"")}function J6(m){return Ob(Bb(m))}function Ik(m,O){var A=Bb(m);return Qr(A,Es(O,0,A.length))}function ag(m,O,A,B){if(!ca(m))return m;O=af(O,m);for(var J=-1,fe=O.length,we=fe-1,De=m;De!=null&&++JJ?0:J+O),A=A>J?J:A,A<0&&(A+=J),J=O>A?0:A-O>>>0,O>>>=0;for(var fe=nt(J);++B>>1,we=m[fe];we!==null&&!ou(we)&&(A?we<=O:we=i){var St=O?null:sN(m);if(St)return ec(St);we=!1,J=Wp,je=new nf}else je=O?[]:De;e:for(;++B=B?m:vl(m,O,A)}var as=Ft||function(m){return Ga.clearTimeout(m)};function sf(m,O){if(O)return m.slice();var A=m.length,B=CS?CS(A):new m.constructor(A);return m.copy(B),B}function og(m){var O=new m.constructor(m.byteLength);return new Gm(O).set(new Gm(m)),O}function Ln(m,O){var A=O?og(m.buffer):m.buffer;return new m.constructor(A,m.byteOffset,m.byteLength)}function Fk(m){var O=new m.constructor(m.source,Te.exec(m));return O.lastIndex=m.lastIndex,O}function nN(m){return Xp?ui(Xp.call(m)):{}}function Mb(m,O){var A=O?og(m.buffer):m.buffer;return new m.constructor(A,m.byteOffset,m.length)}function Bk(m,O){if(m!==O){var A=m!==n,B=m===null,J=m===m,fe=ou(m),we=O!==n,De=O===null,je=O===O,St=ou(O);if(!De&&!St&&!fe&&m>O||fe&&we&&je&&!De&&!St||B&&we&&je||!A&&je||!J)return 1;if(!B&&!fe&&!St&&m=De)return je;var St=A[B];return je*(St=="desc"?-1:1)}}return m.index-O.index}function Ch(m,O,A,B){for(var J=-1,fe=m.length,we=A.length,De=-1,je=O.length,St=Ii(fe-we,0),Et=nt(je+St),Ct=!B;++De1?A[J-1]:n,we=J>2?A[2]:n;for(fe=m.length>3&&typeof fe=="function"?(J--,fe):n,we&&Fs(A[0],A[1],we)&&(fe=J<3?n:fe,J=1),O=ui(O);++B-1?J[fe?O[we]:we]:n}}function cd(m){return of(function(O){var A=O.length,B=A,J=Ss.prototype.thru;for(m&&O.reverse();B--;){var fe=O[B];if(typeof fe!="function")throw new Cn(s);if(J&&!we&&GS(fe)=="wrapper")var we=new Ss([],!0)}for(B=we?B:A;++B1&&Ir.reverse(),Et&&jeDe))return!1;var St=fe.get(m),Et=fe.get(O);if(St&&Et)return St==O&&Et==m;var Ct=-1,nn=!0,xn=A&S?new nf:n;for(fe.set(m,O),fe.set(O,m);++Ct1?"& ":"")+O[B],O=O.join(A>2?", ":" "),m.replace(de,`{ +/* [wrapped with `+O+`] */ +`)}function YS(m){return er(m)||vg(m)||!!(gb&&m&&m[gb])}function dd(m,O){var A=typeof m;return O=O??Z,!!O&&(A=="number"||A!="symbol"&&qt.test(m))&&m>-1&&m%1==0&&m0){if(++O>=V)return arguments[0]}else O=0;return m.apply(n,arguments)}}function Qr(m,O){var A=-1,B=m.length,J=B-1;for(O=O===n?B:O;++A1?m[O-1]:n;return A=typeof A=="function"?(m.pop(),A):n,Pq(m,A)});function Mq(m){var O=ae(m);return O.__chain__=!0,O}function h2e(m,O){return O(m),m}function Kk(m,O){return O(m)}var p2e=of(function(m){var O=m.length,A=O?m[0]:0,B=this.__wrapped__,J=function(fe){return LS(fe,m)};return O>1||this.__actions__.length||!(B instanceof Un)||!dd(A)?this.thru(J):(B=B.slice(A,+A+(O?1:0)),B.__actions__.push({func:Kk,args:[J],thisArg:n}),new Ss(B,this.__chain__).thru(function(fe){return O&&!fe.length&&fe.push(n),fe}))});function m2e(){return Mq(this)}function g2e(){return new Ss(this.value(),this.__chain__)}function b2e(){this.__values__===n&&(this.__values__=Yq(this.value()));var m=this.__index__>=this.__values__.length,O=m?n:this.__values__[this.__index__++];return{done:m,value:O}}function y2e(){return this}function v2e(m){for(var O,A=this;A instanceof Sh;){var B=Xk(A);B.__index__=0,B.__values__=n,O?J.__wrapped__=B:O=B;var J=B;A=A.__wrapped__}return J.__wrapped__=m,O}function O2e(){var m=this.__wrapped__;if(m instanceof Un){var O=m;return this.__actions__.length&&(O=new Un(this)),O=O.reverse(),O.__actions__.push({func:Kk,args:[cN],thisArg:n}),new Ss(O,this.__chain__)}return this.thru(cN)}function S2e(){return $k(this.__wrapped__,this.__actions__)}var E2e=Lb(function(m,O,A){tr.call(m,A)?++m[A]:fo(m,A,1)});function w2e(m,O,A){var B=er(m)?Yd:e0;return A&&Fs(m,O,A)&&(O=n),B(m,$n(O,3))}function x2e(m,O){var A=er(m)?Zd:yk;return A(m,$n(O,3))}var T2e=jS(Cq),k2e=jS(Rq);function A2e(m,O){return is(Jk(m,O),1)}function _2e(m,O){return is(Jk(m,O),ee)}function C2e(m,O,A){return A=A===n?1:lr(A),is(Jk(m,O),A)}function Lq(m,O){var A=er(m)?hl:rs;return A(m,$n(O,3))}function $q(m,O){var A=er(m)?rk:ho;return A(m,$n(O,3))}var R2e=Lb(function(m,O,A){tr.call(m,A)?m[A].push(O):fo(m,A,[O])});function I2e(m,O,A,B){m=Ol(m)?m:Bb(m),A=A&&!B?lr(A):0;var J=m.length;return A<0&&(A=Ii(J+A,0)),iA(m)?A<=J&&m.indexOf(O,A)>-1:!!J&&gh(m,O,A)>-1}var N2e=nr(function(m,O,A){var B=-1,J=typeof O=="function",fe=Ol(m)?nt(m.length):[];return rs(m,function(we){fe[++B]=J?ro(O,we,A):tg(we,O,A)}),fe}),D2e=Lb(function(m,O,A){fo(m,A,O)});function Jk(m,O){var A=er(m)?ei:Tb;return A(m,$n(O,3))}function P2e(m,O,A,B){return m==null?[]:(er(O)||(O=O==null?[]:[O]),A=B?n:A,er(A)||(A=A==null?[]:[A]),rg(m,O,A))}var M2e=Lb(function(m,O,A){m[A?0:1].push(O)},function(){return[[],[]]});function L2e(m,O,A){var B=er(m)?Kl:Ku,J=arguments.length<3;return B(m,$n(O,4),A,J,rs)}function $2e(m,O,A){var B=er(m)?ik:Ku,J=arguments.length<3;return B(m,$n(O,4),A,J,ho)}function F2e(m,O){var A=er(m)?Zd:yk;return A(m,nA($n(O,3)))}function B2e(m){var O=er(m)?Ob:J6;return O(m)}function U2e(m,O,A){(A?Fs(m,O,A):O===n)?O=1:O=lr(O);var B=er(m)?MS:Ik;return B(m,O)}function z2e(m){var O=er(m)?bk:Pk;return O(m)}function H2e(m){if(m==null)return 0;if(Ol(m))return iA(m)?Gp(m):m.length;var O=$s(m);return O==ot||O==_e?m.size:xb(m).length}function j2e(m,O,A){var B=er(m)?jp:eN;return A&&Fs(m,O,A)&&(O=n),B(m,$n(O,3))}var W2e=nr(function(m,O){if(m==null)return[];var A=O.length;return A>1&&Fs(m,O[0],O[1])?O=[]:A>2&&Fs(O[0],O[1],O[2])&&(O=[O[0]]),rg(m,is(O,1),[])}),eA=D6||function(){return Ga.Date.now()};function Q2e(m,O){if(typeof O!="function")throw new Cn(s);return m=lr(m),function(){if(--m<1)return O.apply(this,arguments)}}function Fq(m,O,A){return O=A?n:O,O=m&&O==null?m.length:O,Ui(m,N,n,n,n,n,O)}function Bq(m,O){var A;if(typeof O!="function")throw new Cn(s);return m=lr(m),function(){return--m>0&&(A=O.apply(this,arguments)),m<=1&&(O=n),A}}var fN=nr(function(m,O,A){var B=E;if(A.length){var J=ed(A,gg(fN));B|=C}return Ui(m,B,O,A,J)}),Uq=nr(function(m,O,A){var B=E|w;if(A.length){var J=ed(A,gg(Uq));B|=C}return Ui(O,B,m,A,J)});function zq(m,O,A){O=A?n:O;var B=Ui(m,k,n,n,n,n,n,O);return B.placeholder=zq.placeholder,B}function Hq(m,O,A){O=A?n:O;var B=Ui(m,_,n,n,n,n,n,O);return B.placeholder=Hq.placeholder,B}function jq(m,O,A){var B,J,fe,we,De,je,St=0,Et=!1,Ct=!1,nn=!0;if(typeof m!="function")throw new Cn(s);O=oc(O)||0,ca(A)&&(Et=!!A.leading,Ct="maxWait"in A,fe=Ct?Ii(oc(A.maxWait)||0,O):fe,nn="trailing"in A?!!A.trailing:nn);function xn(Pa){var hd=B,Ph=J;return B=J=n,St=Pa,we=m.apply(Ph,hd),we}function zn(Pa){return St=Pa,De=Jn(Or,O),Et?xn(Pa):we}function dr(Pa){var hd=Pa-je,Ph=Pa-St,lY=O-hd;return Ct?ua(lY,fe-Ph):lY}function Hn(Pa){var hd=Pa-je,Ph=Pa-St;return je===n||hd>=O||hd<0||Ct&&Ph>=fe}function Or(){var Pa=eA();if(Hn(Pa))return Ir(Pa);De=Jn(Or,dr(Pa))}function Ir(Pa){return De=n,nn&&B?xn(Pa):(B=J=n,we)}function lu(){De!==n&&as(De),St=0,B=je=J=De=n}function Ho(){return De===n?we:Ir(eA())}function uu(){var Pa=eA(),hd=Hn(Pa);if(B=arguments,J=this,je=Pa,hd){if(De===n)return zn(je);if(Ct)return as(De),De=Jn(Or,O),xn(je)}return De===n&&(De=Jn(Or,O)),we}return uu.cancel=lu,uu.flush=Ho,uu}var G2e=nr(function(m,O){return xh(m,1,O)}),V2e=nr(function(m,O,A){return xh(m,oc(O)||0,A)});function q2e(m){return Ui(m,U)}function tA(m,O){if(typeof m!="function"||O!=null&&typeof O!="function")throw new Cn(s);var A=function(){var B=arguments,J=O?O.apply(this,B):B[0],fe=A.cache;if(fe.has(J))return fe.get(J);var we=m.apply(this,B);return A.cache=fe.set(J,we)||fe,we};return A.cache=new(tA.Cache||sd),A}tA.Cache=sd;function nA(m){if(typeof m!="function")throw new Cn(s);return function(){var O=arguments;switch(O.length){case 0:return!m.call(this);case 1:return!m.call(this,O[0]);case 2:return!m.call(this,O[0],O[1]);case 3:return!m.call(this,O[0],O[1],O[2])}return!m.apply(this,O)}}function Y2e(m){return Bq(2,m)}var Z2e=tN(function(m,O){O=O.length==1&&er(O[0])?ei(O[0],io($n())):ei(is(O,1),io($n()));var A=O.length;return nr(function(B){for(var J=-1,fe=ua(B.length,A);++J=O}),vg=Ok(function(){return arguments}())?Ok:function(m){return Ea(m)&&tr.call(m,"callee")&&!vh.call(m,"callee")},er=nt.isArray,dEe=bS?io(bS):q6;function Ol(m){return m!=null&&rA(m.length)&&!Nh(m)}function Da(m){return Ea(m)&&Ol(m)}function fEe(m){return m===!0||m===!1||Ea(m)&&Va(m)==qe}var u0=Ye||xN,hEe=yS?io(yS):Y6;function pEe(m){return Ea(m)&&m.nodeType===1&&!ZS(m)}function mEe(m){if(m==null)return!0;if(Ol(m)&&(er(m)||typeof m=="string"||typeof m.splice=="function"||u0(m)||Fb(m)||vg(m)))return!m.length;var O=$s(m);if(O==ot||O==_e)return!m.size;if(P(m))return!xb(m).length;for(var A in m)if(tr.call(m,A))return!1;return!0}function gEe(m,O){return Ah(m,O)}function bEe(m,O,A){A=typeof A=="function"?A:n;var B=A?A(m,O):n;return B===n?Ah(m,O,n,A):!!B}function pN(m){if(!Ea(m))return!1;var O=Va(m);return O==ct||O==Tt||typeof m.message=="string"&&typeof m.name=="string"&&!ZS(m)}function yEe(m){return typeof m=="number"&&Xe(m)}function Nh(m){if(!ca(m))return!1;var O=Va(m);return O==Pt||O==Mt||O==rt||O==K}function Qq(m){return typeof m=="number"&&m==lr(m)}function rA(m){return typeof m=="number"&&m>-1&&m%1==0&&m<=Z}function ca(m){var O=typeof m;return m!=null&&(O=="object"||O=="function")}function Ea(m){return m!=null&&typeof m=="object"}var Gq=JT?io(JT):Sk;function vEe(m,O){return m===O||FS(m,O,Gk(O))}function OEe(m,O,A){return A=typeof A=="function"?A:n,FS(m,O,Gk(O),A)}function SEe(m){return Vq(m)&&m!=+m}function EEe(m){if(T(m))throw new qn(a);return Ek(m)}function wEe(m){return m===null}function xEe(m){return m==null}function Vq(m){return typeof m=="number"||Ea(m)&&Va(m)==wt}function ZS(m){if(!Ea(m)||Va(m)!=Wt)return!1;var O=ao(m);if(O===null)return!0;var A=tr.call(O,"constructor")&&O.constructor;return typeof A=="function"&&A instanceof A&&tc.call(A)==eu}var mN=ek?io(ek):X6;function TEe(m){return Qq(m)&&m>=-Z&&m<=Z}var qq=vS?io(vS):wk;function iA(m){return typeof m=="string"||!er(m)&&Ea(m)&&Va(m)==Ie}function ou(m){return typeof m=="symbol"||Ea(m)&&Va(m)==Ce}var Fb=tk?io(tk):BS;function kEe(m){return m===n}function AEe(m){return Ea(m)&&$s(m)==Ot}function _Ee(m){return Ea(m)&&Va(m)==Ne}var CEe=fg(Sn),REe=fg(function(m,O){return m<=O});function Yq(m){if(!m)return[];if(Ol(m))return iA(m)?Jl(m):Ls(m);if(Yp&&m[Yp])return AS(m[Yp]());var O=$s(m),A=O==ot?bh:O==_e?ec:Bb;return A(m)}function Dh(m){if(!m)return m===0?m:0;if(m=oc(m),m===ee||m===-ee){var O=m<0?-1:1;return O*se}return m===m?m:0}function lr(m){var O=Dh(m),A=O%1;return O===O?A?O-A:O:0}function Zq(m){return m?Es(lr(m),0,Pe):0}function oc(m){if(typeof m=="number")return m;if(ou(m))return W;if(ca(m)){var O=typeof m.valueOf=="function"?m.valueOf():m;m=ca(O)?O+"":O}if(typeof m!="string")return m===0?m:+m;m=xS(m);var A=Je.test(m);return A||_t.test(m)?Jc(m.slice(2),A?2:8):dt.test(m)?W:+m}function Xq(m){return mo(m,Sl(m))}function IEe(m){return m?Es(lr(m),-Z,Z):m===0?m:0}function ni(m){return m==null?"":po(m)}var NEe=di(function(m,O){if(P(O)||Ol(O)){mo(O,xs(O),m);return}for(var A in O)tr.call(O,A)&&od(m,A,O[A])}),Kq=di(function(m,O){mo(O,Sl(O),m)}),aA=di(function(m,O,A,B){mo(O,Sl(O),m,B)}),DEe=di(function(m,O,A,B){mo(O,xs(O),m,B)}),PEe=of(LS);function MEe(m,O){var A=Yr(m);return O==null?A:rf(A,O)}var LEe=nr(function(m,O){m=ui(m);var A=-1,B=O.length,J=B>2?O[2]:n;for(J&&Fs(O[0],O[1],J)&&(B=1);++A1),fe}),mo(m,Wk(m),A),B&&(A=bl(A,f|p|g,QS));for(var J=O.length;J--;)zS(A,O[J]);return A});function ewe(m,O){return eY(m,nA($n(O)))}var twe=of(function(m,O){return m==null?{}:_k(m,O)});function eY(m,O){if(m==null)return{};var A=ei(Wk(m),function(B){return[B]});return O=$n(O),Ck(m,A,function(B,J){return O(B,J[0])})}function nwe(m,O,A){O=af(O,m);var B=-1,J=O.length;for(J||(J=1,m=n);++BO){var B=m;m=O,O=B}if(A||m%1||O%1){var J=qm();return ua(m+J*(O-m+E6("1e-"+((J+"").length-1))),O)}return ig(m,O)}var hwe=Rh(function(m,O,A){return O=O.toLowerCase(),m+(A?rY(O):O)});function rY(m){return yN(ni(m).toLowerCase())}function iY(m){return m=ni(m),m&&m.replace(it,TS).replace(m6,"")}function pwe(m,O,A){m=ni(m),O=po(O);var B=m.length;A=A===n?B:Es(lr(A),0,B);var J=A;return A-=O.length,A>=0&&m.slice(A,J)==O}function mwe(m){return m=ni(m),m&&Ai.test(m)?m.replace(vi,kS):m}function gwe(m){return m=ni(m),m&&Wr.test(m)?m.replace(Kn,"\\$&"):m}var bwe=Rh(function(m,O,A){return m+(A?"-":"")+O.toLowerCase()}),ywe=Rh(function(m,O,A){return m+(A?" ":"")+O.toLowerCase()}),vwe=Uk("toLowerCase");function Owe(m,O,A){m=ni(m),O=lr(O);var B=O?Gp(m):0;if(!O||B>=O)return m;var J=(O-B)/2;return dg(yb(J),A)+m+dg(bb(J),A)}function Swe(m,O,A){m=ni(m),O=lr(O);var B=O?Gp(m):0;return O&&B>>0,A?(m=ni(m),m&&(typeof O=="string"||O!=null&&!mN(O))&&(O=po(O),!O&&Ju(m))?ci(Jl(m),0,A):m.split(O,A)):[]}var _we=Rh(function(m,O,A){return m+(A?" ":"")+yN(O)});function Cwe(m,O,A){return m=ni(m),A=A==null?0:Es(lr(A),0,m.length),O=po(O),m.slice(A,A+O.length)==O}function Rwe(m,O,A){var B=ae.templateSettings;A&&Fs(m,O,A)&&(O=n),m=ni(m),O=aA({},O,B,pg);var J=aA({},O.imports,B.imports,pg),fe=xs(J),we=hb(J,fe),De,je,St=0,Et=O.interpolate||Vn,Ct="__p += '",nn=_S((O.escape||Vn).source+"|"+Et.source+"|"+(Et===_i?Le:Vn).source+"|"+(O.evaluate||Vn).source+"|$","g"),xn="//# sourceURL="+(tr.call(O,"sourceURL")?(O.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++b6+"]")+` +`;m.replace(nn,function(Hn,Or,Ir,lu,Ho,uu){return Ir||(Ir=lu),Ct+=m.slice(St,uu).replace(Ri,uk),Or&&(De=!0,Ct+=`' + +__e(`+Or+`) + +'`),Ho&&(je=!0,Ct+=`'; +`+Ho+`; +__p += '`),Ir&&(Ct+=`' + +((__t = (`+Ir+`)) == null ? '' : __t) + +'`),St=uu+Hn.length,Hn}),Ct+=`'; +`;var zn=tr.call(O,"variable")&&O.variable;if(!zn)Ct=`with (obj) { +`+Ct+` +} +`;else if(yt.test(zn))throw new qn(o);Ct=(je?Ct.replace(pr,""):Ct).replace(Cr,"$1").replace(Tr,"$1;"),Ct="function("+(zn||"obj")+`) { +`+(zn?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(De?", __e = _.escape":"")+(je?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+Ct+`return __p +}`;var dr=sY(function(){return Ur(fe,xn+"return "+Ct).apply(n,we)});if(dr.source=Ct,pN(dr))throw dr;return dr}function Iwe(m){return ni(m).toLowerCase()}function Nwe(m){return ni(m).toUpperCase()}function Dwe(m,O,A){if(m=ni(m),m&&(A||O===n))return xS(m);if(!m||!(O=po(O)))return m;var B=Jl(m),J=Jl(O),fe=pb(B,J),we=jm(B,J)+1;return ci(B,fe,we).join("")}function Pwe(m,O,A){if(m=ni(m),m&&(A||O===n))return m.slice(0,ck(m)+1);if(!m||!(O=po(O)))return m;var B=Jl(m),J=jm(B,Jl(O))+1;return ci(B,0,J).join("")}function Mwe(m,O,A){if(m=ni(m),m&&(A||O===n))return m.replace(We,"");if(!m||!(O=po(O)))return m;var B=Jl(m),J=pb(B,Jl(O));return ci(B,J).join("")}function Lwe(m,O){var A=F,B=G;if(ca(O)){var J="separator"in O?O.separator:J;A="length"in O?lr(O.length):A,B="omission"in O?po(O.omission):B}m=ni(m);var fe=m.length;if(Ju(m)){var we=Jl(m);fe=we.length}if(A>=fe)return m;var De=A-Gp(B);if(De<1)return B;var je=we?ci(we,0,De).join(""):m.slice(0,De);if(J===n)return je+B;if(we&&(De+=je.length-De),mN(J)){if(m.slice(De).search(J)){var St,Et=je;for(J.global||(J=_S(J.source,ni(Te.exec(J))+"g")),J.lastIndex=0;St=J.exec(Et);)var Ct=St.index;je=je.slice(0,Ct===n?De:Ct)}}else if(m.indexOf(po(J),De)!=De){var nn=je.lastIndexOf(J);nn>-1&&(je=je.slice(0,nn))}return je+B}function $we(m){return m=ni(m),m&&si.test(m)?m.replace(jr,A6):m}var Fwe=Rh(function(m,O,A){return m+(A?" ":"")+O.toUpperCase()}),yN=Uk("toUpperCase");function aY(m,O,A){return m=ni(m),O=A?n:O,O===n?x6(m)?R6(m):sk(m):m.match(O)||[]}var sY=nr(function(m,O){try{return ro(m,n,O)}catch(A){return pN(A)?A:new qn(A)}}),Bwe=of(function(m,O){return hl(O,function(A){A=ws(A),fo(m,A,fN(m[A],m))}),m});function Uwe(m){var O=m==null?0:m.length,A=$n();return m=O?ei(m,function(B){if(typeof B[1]!="function")throw new Cn(s);return[A(B[0]),B[1]]}):[],nr(function(B){for(var J=-1;++JZ)return[];var A=Pe,B=ua(m,Pe);O=$n(O),m-=Pe;for(var J=fb(B,O);++A0||O<0)?new Un(A):(m<0?A=A.takeRight(-m):m&&(A=A.drop(m)),O!==n&&(O=lr(O),A=O<0?A.dropRight(-O):A.take(O-m)),A)},Un.prototype.takeRightWhile=function(m){return this.reverse().takeWhile(m).reverse()},Un.prototype.toArray=function(){return this.take(Pe)},su(Un.prototype,function(m,O){var A=/^(?:filter|find|map|reject)|While$/.test(O),B=/^(?:head|last)$/.test(O),J=ae[B?"take"+(O=="last"?"Right":""):O],fe=B||/^find/.test(O);J&&(ae.prototype[O]=function(){var we=this.__wrapped__,De=B?[1]:arguments,je=we instanceof Un,St=De[0],Et=je||er(we),Ct=function(Or){var Ir=J.apply(ae,Xd([Or],De));return B&&nn?Ir[0]:Ir};Et&&A&&typeof St=="function"&&St.length!=1&&(je=Et=!1);var nn=this.__chain__,xn=!!this.__actions__.length,zn=fe&&!nn,dr=je&&!xn;if(!fe&&Et){we=dr?we:new Un(this);var Hn=m.apply(we,De);return Hn.__actions__.push({func:Kk,args:[Ct],thisArg:n}),new Ss(Hn,nn)}return zn&&dr?m.apply(this,De):(Hn=this.thru(Ct),zn?B?Hn.value()[0]:Hn.value():Hn)})}),hl(["pop","push","shift","sort","splice","unshift"],function(m){var O=Na[m],A=/^(?:push|sort|unshift)$/.test(m)?"tap":"thru",B=/^(?:pop|shift)$/.test(m);ae.prototype[m]=function(){var J=arguments;if(B&&!this.__chain__){var fe=this.value();return O.apply(er(fe)?fe:[],J)}return this[A](function(we){return O.apply(er(we)?we:[],J)})}}),su(Un.prototype,function(m,O){var A=ae[O];if(A){var B=A.name+"";tr.call(rc,B)||(rc[B]=[]),rc[B].push({name:O,func:A})}}),rc[ic(n,w).name]=[{name:"wrapper",func:n}],Un.prototype.clone=tf,Un.prototype.reverse=Eh,Un.prototype.value=Zm,ae.prototype.at=p2e,ae.prototype.chain=m2e,ae.prototype.commit=g2e,ae.prototype.next=b2e,ae.prototype.plant=v2e,ae.prototype.reverse=O2e,ae.prototype.toJSON=ae.prototype.valueOf=ae.prototype.value=S2e,ae.prototype.first=ae.prototype.head,Yp&&(ae.prototype[Yp]=y2e),ae},Vp=I6();mh?((mh.exports=Vp)._=Vp,ob._=Vp):Ga._=Vp}).call(Tf)})(WC,WC.exports);var Pat=WC.exports;const Mat=ql(Pat),Lat=rn.baseTheme({".cm-ySelection":{},".cm-yLineSelection":{padding:0,margin:"0px 2px 0px 4px"},".cm-ySelectionCaret":{position:"relative",borderLeft:"1px solid black",borderRight:"1px solid black",marginLeft:"-1px",marginRight:"-1px",boxSizing:"border-box",display:"inline"},".cm-ySelectionCaretDot":{borderRadius:"50%",position:"absolute",width:".4em",height:".4em",top:"-.2em",left:"-.2em",backgroundColor:"inherit",transition:"transform .3s ease-in-out",boxSizing:"border-box"},".cm-ySelectionCaret:hover > .cm-ySelectionCaretDot":{transformOrigin:"bottom center",transform:"scale(0)"},".cm-ySelectionInfo":{position:"absolute",top:"-1.05em",left:"-1px",fontSize:".75em",fontFamily:"serif",fontStyle:"normal",fontWeight:"normal",lineHeight:"normal",userSelect:"none",color:"black",paddingLeft:"2px",paddingRight:"2px",zIndex:101,transition:"opacity .3s ease-in-out",backgroundColor:"inherit",transitionDelay:"0s",whiteSpace:"nowrap"}}),$at=jd.define();class Fat extends Wd{constructor(n,r){super();Bs(this,"color");Bs(this,"name");this.color=n,this.name=r}toDOM(){return B4("span",[Kg("class","cm-ySelectionCaret"),Kg("style",`background-color: ${this.color}; border-color: ${this.color}`)],[y_("⁠"),B4("div",[Kg("class","cm-ySelectionCaretDot")]),y_("⁠"),B4("div",[Kg("class","cm-ySelectionInfo")],[y_(this.name)]),y_("⁠")])}eq(n){return n.color===this.color}compare(n){return n.color===this.color}updateDOM(){return!1}get estimatedHeight(){return-1}ignoreEvent(){return!0}}class Bat{constructor(t){Bs(this,"conf");Bs(this,"decorations");Bs(this,"unsubscribe");this.conf=t.state.facet(wH),this.unsubscribe=this.conf.doc.subscribe("others",n=>{["presence-changed","unwatched"].includes(n.type)&&t.dispatch({annotations:[$at.of([])]})}),this.decorations=Dr.of([])}destroy(){this.unsubscribe()}update(t){const n=[];this.conf.doc.update((r,i)=>{const s=t.view.hasFocus&&t.view.dom.ownerDocument.hasFocus()?t.state.selection.main:null;if(s&&r.content){const o=r.content.indexRangeToPosRange([s.anchor,s.head]),l=r.content.posRangeToIndexRange(o);Mat.isEqual(o,i.get("selection"))||i.set({selection:o,cursor:l})}else i.get("selection")&&i.set({selection:null,cursor:null})}),this.conf.doc.getPresences().forEach(r=>{if(r.clientID===this.conf.client.getID()||r.presence.selection==null)return;const i=this.conf.doc.getRoot().content.posRangeToIndexRange(r.presence.selection),a=r.presence.color,s=r.presence.name,o=Math.min(i[0],i[1]),l=Math.max(i[0],i[1]),u=t.view.state.doc.lineAt(o),d=t.view.state.doc.lineAt(l);if(u.number===d.number)n.push({from:o,to:l,value:wn.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})});else{n.push({from:o,to:u.from+u.length,value:wn.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})}),n.push({from:d.from,to:l,value:wn.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})});for(let f=u.number+1;f0?-1:1,block:!1,widget:new Fat(a,s)})})}),this.decorations=wn.set(n,!0)}}const Uat=ya.fromClass(Bat,{decorations:e=>e.decorations});function zat(e,t){const n=new Iat(e,t),r=[wH.of(n),Dat];return t&&r.push(Lat,Uat),r}const Hat={toggleButton:{width:"25px",height:"25px",border:"none",fontWeight:"bold"}};function E_({title:e,children:t,...n}){return D.jsx(Q0,{title:e,placement:"top",children:D.jsx(m4,{sx:Hat.toggleButton,...n,children:t})})}var mI={exports:{}},qge={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},Yge=Object.keys(qge).join("|"),jat=new RegExp(Yge,"g"),Wat=new RegExp(Yge,"");function Qat(e){return qge[e]}var Zge=function(e){return e.replace(jat,Qat)},Gat=function(e){return!!e.match(Wat)};mI.exports=Zge;mI.exports.has=Gat;mI.exports.remove=Zge;var Vat=mI.exports;const qat=ql(Vat);/** + * @name match-sorter + * @license MIT license. + * @copyright (c) 2020 Kent C. Dodds + * @author Kent C. Dodds (https://kentcdodds.com) + */const Jo={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0},Yat=(e,t)=>String(e.rankedValue).localeCompare(String(t.rankedValue));function Xge(e,t,n){n===void 0&&(n={});const{keys:r,threshold:i=Jo.MATCHES,baseSort:a=Yat,sorter:s=u=>u.sort((d,f)=>Jat(d,f,a))}=n,o=e.reduce(l,[]);return s(o).map(u=>{let{item:d}=u;return d});function l(u,d,f){const p=Zat(d,r,t,n),{rank:g,keyThreshold:b=i}=p;return g>=b&&u.push({...p,item:d,index:f}),u}}Xge.rankings=Jo;function Zat(e,t,n,r){if(!t){const a=e;return{rankedValue:a,rank:gne(a,n,r),keyIndex:-1,keyThreshold:r.threshold}}return nst(e,t).reduce((a,s,o)=>{let{rank:l,rankedValue:u,keyIndex:d,keyThreshold:f}=a,{itemValue:p,attributes:g}=s,b=gne(p,n,r),S=u;const{minRanking:E,maxRanking:w,threshold:x}=g;return b=Jo.MATCHES?b=E:b>w&&(b=w),b>l&&(l=b,d=o,f=x,S=p),{rankedValue:S,rank:l,keyIndex:d,keyThreshold:f}},{rankedValue:e,rank:Jo.NO_MATCH,keyIndex:-1,keyThreshold:r.threshold})}function gne(e,t,n){return e=bne(e,n),t=bne(t,n),t.length>e.length?Jo.NO_MATCH:e===t?Jo.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?Jo.EQUAL:e.startsWith(t)?Jo.STARTS_WITH:e.includes(` ${t}`)?Jo.WORD_STARTS_WITH:e.includes(t)?Jo.CONTAINS:t.length===1?Jo.NO_MATCH:Xat(e).includes(t)?Jo.ACRONYM:Kat(e,t))}function Xat(e){let t="";return e.split(" ").forEach(r=>{r.split("-").forEach(a=>{t+=a.substr(0,1)})}),t}function Kat(e,t){let n=0,r=0;function i(l,u,d){for(let f=d,p=u.length;f-1))return Jo.NO_MATCH}const o=r-s;return a(o)}function Jat(e,t,n){const{rank:a,keyIndex:s}=e,{rank:o,keyIndex:l}=t;return a===o?s===l?n(e,t):so?-1:1}function bne(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=qat(e)),e}function est(e,t){typeof t=="object"&&(t=t.key);let n;if(typeof t=="function")n=t(e);else if(e==null)n=null;else if(Object.hasOwnProperty.call(e,t))n=e[t];else{if(t.includes("."))return tst(t,e);n=null}return n==null?[]:Array.isArray(n)?n:[String(n)]}function tst(e,t){const n=e.split(".");let r=[t];for(let i=0,a=n.length;i{var l;return Xge(((l=n.yorkieIntelligence)==null?void 0:l.config.features)??[],r,{keys:["title","feature"]})},[r,(o=n.yorkieIntelligence)==null?void 0:o.config.features]),s=l=>{i(l.target.value)};return D.jsxs(Wn,{children:[D.jsx(Nx,{placeholder:"Choose from below",size:"small",sx:{width:1},value:r,onChange:s}),D.jsx(Ew,{children:a.map(l=>D.jsxs(Cd,{onClick:()=>t(l.feature,l.title),children:[D.jsx(f1,{children:D.jsx($ue,{children:D.jsx("img",{src:l.icon,alt:l.title})})}),D.jsx(sp,{children:l.title})]},l.feature))})]})}var xH={},ast=Bi;Object.defineProperty(xH,"__esModule",{value:!0});var Kge=xH.default=void 0,sst=ast(aa()),ost=D;Kge=xH.default=(0,sst.default)((0,ost.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh");var TH={},lst=Bi;Object.defineProperty(TH,"__esModule",{value:!0});var Jge=TH.default=void 0,ust=lst(aa()),cst=D;Jge=TH.default=(0,ust.default)((0,cst.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");const dst=e=>{var p;const t=Pr(sT),n=Pr($R),[r,i]=L.useState(null),[a,s]=L.useState(null),[o,l]=L.useState(!1),[u,d]=L.useState(!1),f=L.useCallback(async g=>{var x,k;l(!0),d(!1),s(null),i(null);const S=(k=(await fetch(`https://codepair-api.yorkie.dev/intelligence/${e}`,{method:"POST",headers:{Authorization:`Bearer ${t.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify({documentId:(x=n.data)==null?void 0:x.id,content:g})})).body)==null?void 0:k.getReader();let E=!0,w="";for(;S;){const{done:_,value:C}=await S.read();if(l(!1),_)break;let R=new TextDecoder().decode(C);if(E){const N=R.split(` +`);s(N[0]),E=!1,R=N.slice(1).join(` +`)}w+=R,i(w)}d(!0)},[t.accessToken,(p=n.data)==null?void 0:p.id,e]);return{data:r,memoryKey:a,isLoading:o,isComplete:u,mutateAsync:f}},fst=e=>{var d;const t=Pr(sT),n=Pr($R),[r,i]=L.useState(null),[a,s]=L.useState(!1),[o,l]=L.useState(!1),u=L.useCallback(async f=>{var S,E;if(!e)return;s(!0),l(!1),i(null);const g=(E=(await fetch("https://codepair-api.yorkie.dev/intelligence",{method:"POST",headers:{Authorization:`Bearer ${t.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify({documentId:(S=n.data)==null?void 0:S.id,memoryKey:e,content:f})})).body)==null?void 0:E.getReader();let b="";for(;g;){const{done:w,value:x}=await g.read();if(s(!1),w)break;const k=new TextDecoder().decode(x);b+=k,i(b)}l(!0)},[t.accessToken,(d=n.data)==null?void 0:d.id,e]);return{data:r,memoryKey:e,isLoading:a,isComplete:o,mutateAsync:u}},WO=function(e){if(e==null)return gst;if(typeof e=="function")return gI(e);if(typeof e=="object")return Array.isArray(e)?hst(e):pst(e);if(typeof e=="string")return mst(e);throw new Error("Expected function, string, or object as test")};function hst(e){const t=[];let n=-1;for(;++n":""))+")"})}return p;function p(){let g=e1e,b,S,E;if((!t||a(l,u,d[d.length-1]||void 0))&&(g=vst(n(l,d)),g[0]===QC))return g;if("children"in l&&l.children){const w=l;if(w.children&&g[0]!==lv)for(S=(r?w.children.length:-1)+s,E=d.concat(w);S>-1&&S0&&d.length===0)return}const f={};let p;for(p in o)Sst.call(o,p)&&(f[p]=p==="children"?d:o[p]);return f}}function wst(e){return"children"in e&&e.children!==void 0}var u$={exports:{}};(function(e,t){function n(r){let i=[],a;for(let s of r.split(",").map(o=>o.trim()))if(/^-?\d+$/.test(s))i.push(parseInt(s,10));else if(a=s.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[o,l,u,d]=a;if(l&&d){l=parseInt(l),d=parseInt(d);const f=l]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}Vd.displayName="c";Vd.aliases=[];function Vd(e){e.register(xr),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}G1.displayName="cpp";G1.aliases=[];function G1(e){e.register(Vd),function(t){var n=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,r=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return n.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return n.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:n,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(e)}bI.displayName="arduino";bI.aliases=["ino"];function bI(e){e.register(G1),e.languages.arduino=e.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),e.languages.ino=e.languages.arduino}mT.displayName="bash";mT.aliases=["sh","shell"];function mT(e){(function(t){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:r,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=t.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],s=i.variable[1].inside,o=0;o>/g,function(Ee,X){return"(?:"+Pe[+X]+")"})}function r(W,Pe,Ee){return RegExp(n(W,Pe),"")}function i(W,Pe){for(var Ee=0;Ee>/g,function(){return"(?:"+W+")"});return W.replace(/<>/g,"[^\\s\\S]")}var a={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function s(W){return"\\b(?:"+W.trim().replace(/ /g,"|")+")\\b"}var o=s(a.typeDeclaration),l=RegExp(s(a.type+" "+a.typeDeclaration+" "+a.contextual+" "+a.other)),u=s(a.typeDeclaration+" "+a.contextual+" "+a.other),d=s(a.type+" "+a.typeDeclaration+" "+a.other),f=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),p=i(/\((?:[^()]|<>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,b=n(/<<0>>(?:\s*<<1>>)?/.source,[g,f]),S=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[u,b]),E=/\[\s*(?:,\s*)*\]/.source,w=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[S,E]),x=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[f,p,E]),k=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[x]),_=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[k,S,E]),C={keyword:l,punctuation:/[<>()?,.:[\]]/},R=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,N=/"(?:\\.|[^\\"\r\n])*"/.source,M=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[M]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[N]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[S]),lookbehind:!0,inside:C},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,_]),lookbehind:!0,inside:C},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[o,b]),lookbehind:!0,inside:C},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[S]),lookbehind:!0,inside:C},{pattern:r(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[w]),lookbehind:!0,inside:C},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[_,d,g]),inside:C}],keyword:l,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[p]),lookbehind:!0,alias:"class-name",inside:C},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[_,S]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[_]),lookbehind:!0,inside:C,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,f]),inside:{function:r(/^<<0>>/.source,[g]),generic:{pattern:RegExp(f),alias:"class-name",inside:C}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[o,b,g,_,l.source,p,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[b,p]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:l,"class-name":{pattern:RegExp(_),greedy:!0,inside:C},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var U=N+"|"+R,F=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[U]),G=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[F]),2),V=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,ie=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[S,G]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[V,ie]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[V]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[G]),inside:t.languages.csharp},"class-name":{pattern:RegExp(S),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var ne=/:[^}\r\n]+/.source,q=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[F]),2),re=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[q,ne]),ee=i(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[U]),2),Z=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[ee,ne]);function se(W,Pe){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[W]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[Pe,ne]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[re]),lookbehind:!0,greedy:!0,inside:se(re,q)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[Z]),lookbehind:!0,greedy:!0,inside:se(Z,ee)}],char:{pattern:RegExp(R),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(e)}Ds.displayName="markup";Ds.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function Ds(e){e.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var i={};i["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[r]},i.cdata=/^$/i;var a={"included-cdata":{pattern://i,inside:i}};a["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var s={};s[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:a},e.languages.insertBefore("markup","cdata",s)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}Fm.displayName="css";Fm.aliases=[];function Fm(e){(function(t){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+n.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(e)}yI.displayName="diff";yI.aliases=[];function yI(e){(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var n={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(n).forEach(function(r){var i=n[r],a=[];/^\w+$/.test(r)||a.push(/\w+/.exec(r)[0]),r==="diff"&&a.push("bold"),t.languages.diff[r]={pattern:RegExp("^(?:["+i+`].*(?:\r +?| +|(?![\\s\\S])))+`,"m"),alias:a,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(r)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:n})})(e)}vI.displayName="go";vI.aliases=[];function vI(e){e.register(xr),e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}OI.displayName="ini";OI.aliases=[];function OI(e){e.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}q1.displayName="java";q1.aliases=[];function q1(e){e.register(xr),function(t){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[i,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:i.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:i.inside}],keyword:n,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:i.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:i.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return n.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(e)}SI.displayName="regex";SI.aliases=[];function SI(e){(function(t){var n={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},r=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},a={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},s="(?:[^\\\\-]|"+r.source+")",o=RegExp(s+"-"+s),l={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:o,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":a,escape:r}},"special-escape":n,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":l}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:r,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]||&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}QO.displayName="json";QO.aliases=["webmanifest"];function QO(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}EI.displayName="kotlin";EI.aliases=["kt","kts"];function EI(e){e.register(xr),function(t){t.languages.kotlin=t.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete t.languages.kotlin["class-name"];var n={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.kotlin}};t.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:n},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:n},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete t.languages.kotlin.string,t.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),t.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),t.languages.kt=t.languages.kotlin,t.languages.kts=t.languages.kotlin}(e)}wI.displayName="less";wI.aliases=[];function wI(e){e.register(Fm),e.languages.less=e.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}gT.displayName="lua";gT.aliases=[];function gT(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}xI.displayName="makefile";xI.aliases=[];function xI(e){e.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}bT.displayName="yaml";bT.aliases=["yml"];function bT(e){(function(t){var n=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+r.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+r.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(l,u){u=(u||"").replace(/m/g,"")+"m";var d=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return l});return RegExp(d,u)}t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return"(?:"+a+"|"+s+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(s),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml})(e)}TI.displayName="markdown";TI.aliases=["md"];function TI(e){e.register(Ds),function(t){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(o){return o=o.replace(//g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+o+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),s=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+s+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+s+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(o){["url","bold","italic","strike","code-snippet"].forEach(function(l){o!==l&&(t.languages.markdown[o].inside.content.inside[l]=t.languages.markdown[l])})}),t.hooks.add("after-tokenize",function(o){if(o.language!=="markdown"&&o.language!=="md")return;function l(u){if(!(!u||typeof u=="string"))for(var d=0,f=u.length;d]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}AI.displayName="perl";AI.aliases=[];function AI(e){(function(t){var n=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;t.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,n+/\s*/.source+n].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(e)}to.displayName="markup-templating";to.aliases=[];function to(e){e.register(Ds),function(t){function n(r,i){return"___"+r.toUpperCase()+i+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,i,a,s){if(r.language===i){var o=r.tokenStack=[];r.code=r.code.replace(a,function(l){if(typeof s=="function"&&!s(l))return l;for(var u=o.length,d;r.code.indexOf(d=n(i,u))!==-1;)++u;return o[u]=l,d}),r.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(r,i){if(r.language!==i||!r.tokenStack)return;r.grammar=t.languages[i];var a=0,s=Object.keys(r.tokenStack);function o(l){for(var u=0;u=s.length);u++){var d=l[u];if(typeof d=="string"||d.content&&typeof d.content=="string"){var f=s[a],p=r.tokenStack[f],g=typeof d=="string"?d:d.content,b=n(i,f),S=g.indexOf(b);if(S>-1){++a;var E=g.substring(0,S),w=new t.Token(i,t.tokenize(p,r.grammar),"language-"+i,p),x=g.substring(S+b.length),k=[];E&&k.push.apply(k,o([E])),k.push(w),x&&k.push.apply(k,o([x])),typeof d=="string"?l.splice.apply(l,[u,1].concat(k)):d.content=k}}else d.content&&o(d.content)}return l}o(r.tokens)}}})}(e)}Y1.displayName="php";Y1.aliases=[];function Y1(e){e.register(to),function(t){var n=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,a=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,s=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:n,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:a,punctuation:s};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},l=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:o}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:o}}];t.languages.insertBefore("php","variable",{string:l,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:n,string:l,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,number:i,operator:a,punctuation:s}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(u){if(/<\?/.test(u.code)){var d=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;t.languages["markup-templating"].buildPlaceholders(u,"php",d)}}),t.hooks.add("after-tokenize",function(u){t.languages["markup-templating"].tokenizePlaceholders(u,"php")})}(e)}yT.displayName="python";yT.aliases=["py"];function yT(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}_I.displayName="r";_I.aliases=[];function _I(e){e.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}Z1.displayName="ruby";Z1.aliases=["rb"];function Z1(e){e.register(xr),function(t){t.languages.ruby=t.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),t.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:t.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete t.languages.ruby.function;var r="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",i=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;t.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+r+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+i),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+i+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),t.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+r),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+r),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete t.languages.ruby.string,t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),t.languages.rb=t.languages.ruby}(e)}CI.displayName="rust";CI.aliases=[];function CI(e){(function(t){for(var n=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+n),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string})(e)}RI.displayName="sass";RI.aliases=[];function RI(e){e.register(Fm),function(t){t.languages.sass=t.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete t.languages.sass.atrule;var n=/\$[-\w]+|#\{\$[-\w]+\}/,r=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];t.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:n,operator:r}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:n,operator:r,important:t.languages.sass.important}}}),delete t.languages.sass.property,delete t.languages.sass.important,t.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(e)}II.displayName="scss";II.aliases=[];function II(e){e.register(Fm),e.languages.scss=e.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),e.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),e.languages.scss.atrule.inside.rest=e.languages.scss}GO.displayName="sql";GO.aliases=[];function GO(e){e.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}NI.displayName="swift";NI.aliases=[];function NI(e){e.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},e.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=e.languages.swift})}VO.displayName="typescript";VO.aliases=["ts"];function VO(e){e.register(eo),function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var n=t.languages.extend("typescript",{});delete n["class-name"],t.languages.typescript["class-name"].inside=n,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n}}}}),t.languages.ts=t.languages.typescript}(e)}vT.displayName="basic";vT.aliases=[];function vT(e){e.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}OT.displayName="vbnet";OT.aliases=[];function OT(e){e.register(vT),e.languages.vbnet=e.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}class ST{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}ST.prototype.property={};ST.prototype.normal={};ST.prototype.space=null;function n1e(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&Rst.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(One,Dst);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!One.test(a)){let s=a.replace(Ist,Nst);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=AH}return new i(r,t)}function Nst(e){return"-"+e.toLowerCase()}function Dst(e){return e.charAt(1).toUpperCase()}const Pst={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"},K1=n1e([a1e,i1e,l1e,u1e,_st],"html"),Bp=n1e([a1e,i1e,l1e,u1e,Cst],"svg"),Sne=/[#.]/g;function Mst(e,t){const n=e||"",r={};let i=0,a,s;for(;i=48&&t<=57}function jst(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Wst(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function xne(e){return Wst(e)||d1e(e)}const Tne=document.createElement("i");function sx(e){const t="&"+e+";";Tne.innerHTML=t;const n=Tne.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const Kb=String.fromCharCode,Qst=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function Gst(e,t={}){const n=typeof t.additional=="string"?t.additional.charCodeAt(0):t.additional,r=[];let i=0,a=-1,s="",o,l;t.position&&("start"in t.position||"indent"in t.position?(l=t.position.indent,o=t.position.start):o=t.position);let u=(o?o.line:0)||1,d=(o?o.column:0)||1,f=g(),p;for(i--;++i<=e.length;)if(p===10&&(d=(l?l[a]:0)||1),p=e.charCodeAt(i),p===38){const E=e.charCodeAt(i+1);if(E===9||E===10||E===12||E===32||E===38||E===60||Number.isNaN(E)||n&&E===n){s+=Kb(p),d++;continue}const w=i+1;let x=w,k=w,_;if(E===35){k=++x;const V=e.charCodeAt(k);V===88||V===120?(_="hexadecimal",k=++x):_="decimal"}else _="named";let C="",R="",N="";const M=_==="named"?xne:_==="decimal"?d1e:jst;for(k--;++k<=e.length;){const V=e.charCodeAt(k);if(!M(V))break;N+=Kb(V),_==="named"&&Hst.includes(N)&&(C=N,R=sx(N))}let U=e.charCodeAt(k)===59;if(U){k++;const V=_==="named"?sx(N):!1;V&&(C=N,R=V)}let F=1+k-w,G="";if(!(!U&&t.nonTerminated===!1))if(!N)_!=="named"&&b(4,F);else if(_==="named"){if(U&&!R)b(5,1);else if(C!==N&&(k=x+C.length,F=1+k-x,U=!1),!U){const V=C?1:3;if(t.attribute){const ie=e.charCodeAt(k);ie===61?(b(V,F),R=""):xne(ie)?R="":b(V,F)}else b(V,F)}G=R}else{U||b(2,F);let V=Number.parseInt(N,_==="hexadecimal"?16:10);if(Vst(V))b(7,F),G=Kb(65533);else if(V in wne)b(6,F),G=wne[V];else{let ie="";qst(V)&&b(6,F),V>65535&&(V-=65536,ie+=Kb(V>>>10|55296),V=56320|V&1023),G=ie+Kb(V)}}if(G){S(),f=g(),i=k-1,d+=k-w+1,r.push(G);const V=g();V.offset++,t.reference&&t.reference.call(t.referenceContext,G,{start:f,end:V},e.slice(w-1,k)),f=V}else N=e.slice(w-1,k),s+=N,d+=N.length,i=k-1}else p===10&&(u++,a++,d=0),Number.isNaN(p)?S():(s+=Kb(p),d++);return r.join("");function g(){return{line:u,column:d,offset:i+((o?o.offset:0)||0)}}function b(E,w){let x;t.warning&&(x=g(),x.column+=w,x.offset+=w,t.warning.call(t.warningContext,Qst[E],x,E))}function S(){s&&(r.push(s),t.text&&t.text.call(t.textContext,s,{start:f,end:g()}),s="")}}function Vst(e){return e>=55296&&e<=57343||e>1114111}function qst(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var Yst=0,w_={},Ts={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++Yst}),e.__id},clone:function e(t,n){n=n||{};var r,i;switch(Ts.util.type(t)){case"Object":if(i=Ts.util.objId(t),n[i])return n[i];r={},n[i]=r;for(var a in t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=Ts.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(s,o){r[o]=e(s,n)}),r);default:return t}}},languages:{plain:w_,plaintext:w_,text:w_,txt:w_,extend:function(e,t){var n=Ts.util.clone(Ts.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||Ts.languages;var i=r[e],a={};for(var s in i)if(i.hasOwnProperty(s)){if(s==t)for(var o in n)n.hasOwnProperty(o)&&(a[o]=n[o]);n.hasOwnProperty(s)||(a[s]=i[s])}var l=r[e];return r[e]=a,Ts.languages.DFS(Ts.languages,function(u,d){d===l&&u!=e&&(this[u]=a)}),a},DFS:function e(t,n,r,i){i=i||{};var a=Ts.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var o=t[s],l=Ts.util.type(o);l==="Object"&&!i[a(o)]?(i[a(o)]=!0,e(o,n,null,i)):l==="Array"&&!i[a(o)]&&(i[a(o)]=!0,e(o,n,s,i))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(Ts.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=Ts.tokenize(r.code,r.grammar),Ts.hooks.run("after-tokenize",r),PE.stringify(Ts.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new Zst;return U4(i,i.head,e),f1e(e,i,t,i.head,0),Kst(i)},hooks:{all:{},add:function(e,t){var n=Ts.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=Ts.hooks.all[e];if(!(!n||!n.length))for(var r=0,i;i=n[r++];)i(t)}},Token:PE};function PE(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function kne(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function f1e(e,t,n,r,i,a){for(var s in n)if(!(!n.hasOwnProperty(s)||!n[s])){var o=n[s];o=Array.isArray(o)?o:[o];for(var l=0;l=a.reach);w+=E.value.length,E=E.next){var x=E.value;if(t.length>e.length)return;if(!(x instanceof PE)){var k=1,_;if(p){if(_=kne(S,w,e,f),!_||_.index>=e.length)break;var M=_.index,C=_.index+_[0].length,R=w;for(R+=E.value.length;M>=R;)E=E.next,R+=E.value.length;if(R-=E.value.length,w=R,E.value instanceof PE)continue;for(var N=E;N!==t.tail&&(Ra.reach&&(a.reach=V);var ie=E.prev;F&&(ie=U4(t,ie,F),w+=F.length),Xst(t,ie,k);var ne=new PE(s,d?Ts.tokenize(U,d):U,g,U);if(E=U4(t,ie,ne),G&&U4(t,E,G),k>1){var q={cause:s+","+l,reach:V};f1e(e,t,n,E.prev,w,q),a&&q.reach>a.reach&&(a.reach=q.reach)}}}}}}function Zst(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function U4(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function Xst(e,t,n){for(var r=t.next,i=0;i]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}IH.displayName="abnf";IH.aliases=[];function IH(e){(function(t){var n="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";t.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+n+"|<"+n+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(e)}NH.displayName="actionscript";NH.aliases=[];function NH(e){e.register(eo),e.languages.actionscript=e.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),e.languages.actionscript["class-name"].alias="function",delete e.languages.actionscript.parameter,delete e.languages.actionscript["literal-property"],e.languages.markup&&e.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:e.languages.markup}})}DH.displayName="ada";DH.aliases=[];function DH(e){e.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|or|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}PH.displayName="agda";PH.aliases=[];function PH(e){(function(t){t.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(e)}MH.displayName="al";MH.aliases=[];function MH(e){e.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}LH.displayName="antlr4";LH.aliases=["g4"];function LH(e){e.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},e.languages.g4=e.languages.antlr4}$H.displayName="apacheconf";$H.aliases=[];function $H(e){e.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}FH.displayName="apex";FH.aliases=[];function FH(e){e.register(xr),e.register(GO),function(t){var n=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,r=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return n.source});function i(s){return RegExp(s.replace(//g,function(){return r}),"i")}var a={keyword:n,punctuation:/[()\[\]{};,:.<>]/};t.languages.apex={comment:t.languages.clike.comment,string:t.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:t.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:i(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:a},{pattern:i(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:a},{pattern:i(/(?=\s*\w+\s*[;=,(){:])/.source),inside:a}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:n,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(e)}BH.displayName="apl";BH.aliases=[];function BH(e){e.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}UH.displayName="applescript";UH.aliases=[];function UH(e){e.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}zH.displayName="aql";zH.aliases=[];function zH(e){e.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}HH.displayName="arff";HH.aliases=[];function HH(e){e.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}jH.displayName="armasm";jH.aliases=["arm-asm"];function jH(e){e.languages.armasm={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"/,greedy:!0,inside:{variable:{pattern:/((?:^|[^$])(?:\${2})*)\$\w+/,lookbehind:!0}}},char:{pattern:/'(?:[^'\r\n]{0,4}|'')'/,greedy:!0},"version-symbol":{pattern:/\|[\w@]+\|/,greedy:!0,alias:"property"},boolean:/\b(?:FALSE|TRUE)\b/,directive:{pattern:/\b(?:ALIAS|ALIGN|AREA|ARM|ASSERT|ATTR|CN|CODE|CODE16|CODE32|COMMON|CP|DATA|DCB|DCD|DCDO|DCDU|DCFD|DCFDU|DCI|DCQ|DCQU|DCW|DCWU|DN|ELIF|ELSE|END|ENDFUNC|ENDIF|ENDP|ENTRY|EQU|EXPORT|EXPORTAS|EXTERN|FIELD|FILL|FN|FUNCTION|GBLA|GBLL|GBLS|GET|GLOBAL|IF|IMPORT|INCBIN|INCLUDE|INFO|KEEP|LCLA|LCLL|LCLS|LTORG|MACRO|MAP|MEND|MEXIT|NOFP|OPT|PRESERVE8|PROC|QN|READONLY|RELOC|REQUIRE|REQUIRE8|RLIST|ROUT|SETA|SETL|SETS|SN|SPACE|SUBT|THUMB|THUMBX|TTL|WEND|WHILE)\b/,alias:"property"},instruction:{pattern:/((?:^|(?:^|[^\\])(?:\r\n?|\n))[ \t]*(?:(?:[A-Z][A-Z0-9_]*[a-z]\w*|[a-z]\w*|\d+)[ \t]+)?)\b[A-Z.]+\b/,lookbehind:!0,alias:"keyword"},variable:/\$\w+/,number:/(?:\b[2-9]_\d+|(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e-?\d+)?|\b0(?:[fd]_|x)[0-9a-f]+|&[0-9a-f]+)\b/i,register:{pattern:/\b(?:r\d|lr)\b/,alias:"symbol"},operator:/<>|<<|>>|&&|\|\||[=!<>/]=?|[+\-*%#?&|^]|:[A-Z]+:/,punctuation:/[()[\],]/},e.languages["arm-asm"]=e.languages.armasm}WH.displayName="arturo";WH.aliases=["art"];function WH(e){(function(t){var n=function(r,i){return{pattern:RegExp(/\{!/.source+"(?:"+(i||r)+")"+/$[\s\S]*\}/.source,"m"),greedy:!0,inside:{embedded:{pattern:/(^\{!\w+\b)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-"+r,inside:t.languages[r]},string:/[\s\S]+/}}};t.languages.arturo={comment:{pattern:/;.*/,greedy:!0},character:{pattern:/`.`/,alias:"char",greedy:!0},number:{pattern:/\b\d+(?:\.\d+(?:\.\d+(?:-[\w+-]+)?)?)?\b/},string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},regex:{pattern:/\{\/.*?\/\}/,greedy:!0},"html-string":n("html"),"css-string":n("css"),"js-string":n("js"),"md-string":n("md"),"sql-string":n("sql"),"sh-string":n("shell","sh"),multistring:{pattern:/».*|\{:[\s\S]*?:\}|\{[\s\S]*?\}|^-{6}$[\s\S]*/m,alias:"string",greedy:!0},label:{pattern:/\w+\b\??:/,alias:"property"},literal:{pattern:/'(?:\w+\b\??:?)/,alias:"constant"},type:{pattern:/:(?:\w+\b\??:?)/,alias:"class-name"},color:/#\w+/,predicate:{pattern:/\b(?:all|and|any|ascii|attr|attribute|attributeLabel|binary|block|char|contains|database|date|dictionary|empty|equal|even|every|exists|false|floating|function|greater|greaterOrEqual|if|in|inline|integer|is|key|label|leap|less|lessOrEqual|literal|logical|lower|nand|negative|nor|not|notEqual|null|numeric|odd|or|path|pathLabel|positive|prefix|prime|regex|same|set|some|sorted|standalone|string|subset|suffix|superset|symbol|symbolLiteral|true|try|type|unless|upper|when|whitespace|word|xnor|xor|zero)\?/,alias:"keyword"},"builtin-function":{pattern:/\b(?:abs|acos|acosh|acsec|acsech|actan|actanh|add|after|alert|alias|and|angle|append|arg|args|arity|array|as|asec|asech|asin|asinh|atan|atan2|atanh|attr|attrs|average|before|benchmark|blend|break|call|capitalize|case|ceil|chop|clear|clip|close|color|combine|conj|continue|copy|cos|cosh|crc|csec|csech|ctan|ctanh|cursor|darken|dec|decode|define|delete|desaturate|deviation|dialog|dictionary|difference|digest|digits|div|do|download|drop|dup|e|else|empty|encode|ensure|env|escape|execute|exit|exp|extend|extract|factors|fdiv|filter|first|flatten|floor|fold|from|function|gamma|gcd|get|goto|hash|hypot|if|inc|indent|index|infinity|info|input|insert|inspect|intersection|invert|jaro|join|keys|kurtosis|last|let|levenshtein|lighten|list|ln|log|loop|lower|mail|map|match|max|median|min|mod|module|mul|nand|neg|new|nor|normalize|not|now|null|open|or|outdent|pad|palette|panic|path|pause|permissions|permutate|pi|pop|popup|pow|powerset|powmod|prefix|print|prints|process|product|query|random|range|read|relative|remove|rename|render|repeat|replace|request|return|reverse|round|sample|saturate|script|sec|sech|select|serve|set|shl|shr|shuffle|sin|sinh|size|skewness|slice|sort|spin|split|sqrt|squeeze|stack|strip|sub|suffix|sum|switch|symbols|symlink|sys|take|tan|tanh|terminal|terminate|to|truncate|try|type|unclip|union|unique|unless|until|unzip|upper|values|var|variance|volume|webview|while|with|wordwrap|write|xnor|xor|zip)\b/,alias:"keyword"},sugar:{pattern:/->|=>|\||::/,alias:"operator"},punctuation:/[()[\],]/,symbol:{pattern:/<:|-:|ø|@|#|\+|\||\*|\$|---|-|%|\/|\.\.|\^|~|=|<|>|\\/},boolean:{pattern:/\b(?:false|maybe|true)\b/}},t.languages.art=t.languages.arturo})(e)}QH.displayName="asciidoc";QH.aliases=["adoc"];function QH(e){(function(t){var n={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},r=t.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})$[\s\S]*?^\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:n,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:n.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:n,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function i(a){a=a.split(" ");for(var s={},o=0,l=a.length;o/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:e.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:e.languages.csharp}}}),e.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.insertBefore("inside","punctuation",{directive:e.languages.aspnet.directive},e.languages.aspnet.tag.inside["attr-value"]),e.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),e.languages.insertBefore("aspnet",e.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:e.languages.csharp||{}}})}VH.displayName="asm6502";VH.aliases=[];function VH(e){e.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}qH.displayName="asmatmel";qH.aliases=[];function qH(e){e.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&[&=]?|\|[\|=]?|[-+*/%^!=<>?]=?/,punctuation:/[(),:]/}}YH.displayName="autohotkey";YH.aliases=[];function YH(e){e.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,command:{pattern:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,alias:"selector"},constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,directive:{pattern:/#[a-z]+\b/i,alias:"important"},keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}ZH.displayName="autoit";ZH.aliases=[];function ZH(e){e.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}XH.displayName="avisynth";XH.aliases=["avs"];function XH(e){(function(t){function n(u,d){return u.replace(/<<(\d+)>>/g,function(f,p){return d[+p]})}function r(u,d,f){return RegExp(n(u,d),f)}var i=/bool|clip|float|int|string|val/.source,a=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),s=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),o=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),l=[a,s,o].join("|");t.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:r(/\b(?:<<0>>)\s+("?)\w+\1/.source,[i],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:r(/\b(?:<<0>>)\b/.source,[l],"i"),alias:"function"},"type-cast":{pattern:r(/\b(?:<<0>>)(?=\s*\()/.source,[i],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},t.languages.avs=t.languages.avisynth})(e)}KH.displayName="avro-idl";KH.aliases=["avdl"];function KH(e){e.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},e.languages.avdl=e.languages["avro-idl"]}JH.displayName="awk";JH.aliases=["gawk"];function JH(e){e.languages.awk={hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\\"\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},regex:{pattern:/((?:^|[^\w\s)])\s*)\/(?:[^\/\\\r\n]|\\.)*\//,lookbehind:!0,greedy:!0},variable:/\$\w+/,keyword:/\b(?:BEGIN|BEGINFILE|END|ENDFILE|break|case|continue|default|delete|do|else|exit|for|function|getline|if|in|next|nextfile|printf?|return|switch|while)\b|@(?:include|load)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[a-fA-F0-9]+)\b/,operator:/--|\+\+|!?~|>&|>>|<<|(?:\*\*|[<>!=+\-*/%^])=?|&&|\|[|&]|[?:]/,punctuation:/[()[\]{},;]/},e.languages.gawk=e.languages.awk}ej.displayName="batch";ej.aliases=[];function ej(e){(function(t){var n=/%%?[~:\w]+%?|!\S+!/,r={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,a=/(?:\b|-)\d+\b/;t.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:i,parameter:r,variable:n,number:a,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:i,parameter:r,variable:n,number:a,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:i,parameter:r,variable:[n,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:a,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:i,parameter:r,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:n,number:a,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(e)}tj.displayName="bbcode";tj.aliases=["shortcode"];function tj(e){e.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},e.languages.shortcode=e.languages.bbcode}nj.displayName="bbj";nj.aliases=[];function nj(e){(function(t){t.languages.bbj={comment:{pattern:/(^|[^\\:])rem\s+.*/i,lookbehind:!0,greedy:!0},string:{pattern:/(['"])(?:(?!\1|\\).|\\.)*\1/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:abstract|all|argc|begin|bye|callback|case|chn|class|classend|ctl|day|declare|delete|dim|dom|dread|dsz|else|end|endif|err|exitto|extends|fi|field|for|from|gosub|goto|if|implements|interface|interfaceend|iol|iolist|let|list|load|method|methodend|methodret|on|opts|pfx|print|private|process_events|protected|psz|public|read|read_resource|release|remove_callback|repeat|restore|return|rev|seterr|setesc|sqlchn|sqlunt|ssn|start|static|swend|switch|sys|then|tim|unt|until|use|void|wend|where|while)\b/i,function:/\b\w+(?=\()/,boolean:/\b(?:BBjAPI\.TRUE|BBjAPI\.FALSE)\b/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:and|not|or|xor)\b/i,punctuation:/[.,;:()]/}})(e)}rj.displayName="bicep";rj.aliases=[];function rj(e){e.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},e.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=e.languages.bicep}ij.displayName="birb";ij.aliases=[];function ij(e){e.register(xr),e.languages.birb=e.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),e.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}aj.displayName="bison";aj.aliases=[];function aj(e){e.register(Vd),e.languages.bison=e.languages.extend("c",{}),e.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:e.languages.c}},comment:e.languages.c.comment,string:e.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}sj.displayName="bnf";sj.aliases=["rbnf"];function sj(e){e.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},e.languages.rbnf=e.languages.bnf}oj.displayName="bqn";oj.aliases=[];function oj(e){e.languages.bqn={shebang:{pattern:/^#![ \t]*\/.*/,alias:"important",greedy:!0},comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/"(?:[^"]|"")*"/,greedy:!0,alias:"string"},"character-literal":{pattern:/'(?:[\s\S]|[\uD800-\uDBFF][\uDC00-\uDFFF])'/,greedy:!0,alias:"char"},function:/•[\w¯.∞π]+[\w¯.∞π]*/,"dot-notation-on-brackets":{pattern:/\{(?=.*\}\.)|\}\./,alias:"namespace"},"special-name":{pattern:/(?:𝕨|𝕩|𝕗|𝕘|𝕤|𝕣|𝕎|𝕏|𝔽|𝔾|𝕊|_𝕣_|_𝕣)/,alias:"keyword"},"dot-notation-on-name":{pattern:/[A-Za-z_][\w¯∞π]*\./,alias:"namespace"},"word-number-scientific":{pattern:/\d+(?:\.\d+)?[eE]¯?\d+/,alias:"number"},"word-name":{pattern:/[A-Za-z_][\w¯∞π]*/,alias:"symbol"},"word-number":{pattern:/[¯∞π]?(?:\d*\.?\b\d+(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π))?/,alias:"number"},"null-literal":{pattern:/@/,alias:"char"},"primitive-functions":{pattern:/[-+×÷⋆√⌊⌈|¬∧∨<>≠=≤≥≡≢⊣⊢⥊∾≍⋈↑↓↕«»⌽⍉/⍋⍒⊏⊑⊐⊒∊⍷⊔!]/,alias:"operator"},"primitive-1-operators":{pattern:/[`˜˘¨⁼⌜´˝˙]/,alias:"operator"},"primitive-2-operators":{pattern:/[∘⊸⟜○⌾⎉⚇⍟⊘◶⎊]/,alias:"operator"},punctuation:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}lj.displayName="brainfuck";lj.aliases=[];function lj(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}uj.displayName="brightscript";uj.aliases=[];function uj(e){e.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},e.languages.brightscript["directive-statement"].inside.expression.inside=e.languages.brightscript}cj.displayName="bro";cj.aliases=[];function cj(e){e.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}dj.displayName="bsl";dj.aliases=["oscript"];function dj(e){e.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},e.languages.oscript=e.languages.bsl}fj.displayName="cfscript";fj.aliases=["cfc"];function fj(e){e.register(xr),e.languages.cfscript=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|:/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),e.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete e.languages.cfscript["class-name"],e.languages.cfc=e.languages.cfscript}hj.displayName="chaiscript";hj.aliases=[];function hj(e){e.register(xr),e.register(G1),e.languages.chaiscript=e.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[e.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),e.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),e.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}pj.displayName="cil";pj.aliases=[];function pj(e){e.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}mj.displayName="cilkc";mj.aliases=["cilk-c"];function mj(e){e.register(Vd),e.languages.cilkc=e.languages.insertBefore("c","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-c"]=e.languages.cilkc}gj.displayName="cilkcpp";gj.aliases=["cilk","cilk-cpp"];function gj(e){e.register(G1),e.languages.cilkcpp=e.languages.insertBefore("cpp","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-cpp"]=e.languages.cilkcpp,e.languages.cilk=e.languages.cilkcpp}bj.displayName="clojure";bj.aliases=[];function bj(e){e.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}yj.displayName="cmake";yj.aliases=[];function yj(e){e.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_NAME|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}vj.displayName="cobol";vj.aliases=[];function vj(e){e.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}Oj.displayName="coffeescript";Oj.aliases=["coffee"];function Oj(e){e.register(eo),function(t){var n=/#(?!\{).+/,r={pattern:/#\{[^}]+\}/,alias:"variable"};t.languages.coffeescript=t.languages.extend("javascript",{comment:n,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:r}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),t.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:n,interpolation:r}}}),t.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:t.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:r}}]}),t.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete t.languages.coffeescript["template-string"],t.languages.coffee=t.languages.coffeescript}(e)}Sj.displayName="concurnas";Sj.aliases=["conc"];function Sj(e){e.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},e.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},string:/[\s\S]+/}}}),e.languages.conc=e.languages.concurnas}Ej.displayName="csp";Ej.aliases=[];function Ej(e){(function(t){function n(r){return RegExp(/([ \t])/.source+"(?:"+r+")"+/(?=[\s;]|$)/.source,"i")}t.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:n(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:n(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:n(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:n(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:n(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:n(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:n(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(e)}wj.displayName="cooklang";wj.aliases=[];function wj(e){(function(t){var n=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,r=/[^{}@#]+/.source,i=/\{[^}#@]*\}/.source,a=r+i,s=/(?:h|hours|hrs|m|min|minutes)/.source,o={pattern:/\{[^{}]*\}/,inside:{amount:{pattern:/([\{|])[^{}|*%]+/,lookbehind:!0,alias:"number"},unit:{pattern:/(%)[^}]+/,lookbehind:!0,alias:"symbol"},"servings-scaler":{pattern:/\*/,alias:"operator"},"servings-alternative-separator":{pattern:/\|/,alias:"operator"},"unit-separator":{pattern:/(?:%|(\*)%)/,lookbehind:!0,alias:"operator"},punctuation:/[{}]/}};t.languages.cooklang={comment:{pattern:/\[-[\s\S]*?-\]|--.*/,greedy:!0},meta:{pattern:/>>.*:.*/,inside:{property:{pattern:/(>>\s*)[^\s:](?:[^:]*[^\s:])?/,lookbehind:!0}}},"cookware-group":{pattern:new RegExp("#(?:"+a+"|"+n+")"),inside:{cookware:{pattern:new RegExp("(^#)(?:"+r+")"),lookbehind:!0,alias:"variable"},"cookware-keyword":{pattern:/^#/,alias:"keyword"},"quantity-group":{pattern:new RegExp(/\{[^{}@#]*\}/),inside:{quantity:{pattern:new RegExp(/(^\{)/.source+r),lookbehind:!0,alias:"number"},punctuation:/[{}]/}}}},"ingredient-group":{pattern:new RegExp("@(?:"+a+"|"+n+")"),inside:{ingredient:{pattern:new RegExp("(^@)(?:"+r+")"),lookbehind:!0,alias:"variable"},"ingredient-keyword":{pattern:/^@/,alias:"keyword"},"amount-group":o}},"timer-group":{pattern:/~(?!\s)[^@#~{}]*\{[^{}]*\}/,inside:{timer:{pattern:/(^~)[^{]+/,lookbehind:!0,alias:"variable"},"duration-group":{pattern:/\{[^{}]*\}/,inside:{punctuation:/[{}]/,unit:{pattern:new RegExp(/(%\s*)/.source+s+/\b/.source),lookbehind:!0,alias:"symbol"},operator:/%/,duration:{pattern:/\d+/,alias:"number"}}},"timer-keyword":{pattern:/^~/,alias:"keyword"}}}}})(e)}xj.displayName="coq";xj.aliases=[];function xj(e){(function(t){for(var n=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,"[]"),t.languages.coq={comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return n})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(e)}Tj.displayName="crystal";Tj.aliases=[];function Tj(e){e.register(Z1),function(t){t.languages.crystal=t.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,t.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),t.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:t.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(e)}kj.displayName="css-extras";kj.aliases=[];function kj(e){e.register(Fm),function(t){var n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r;t.languages.css.selector={pattern:t.languages.css.selector.pattern,lookbehind:!0,inside:r={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},t.languages.css.atrule.inside["selector-function-argument"].inside=r,t.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var i={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};t.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:i,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:a})}(e)}Aj.displayName="csv";Aj.aliases=[];function Aj(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}_j.displayName="cue";_j.aliases=[];function _j(e){(function(t){var n=/\\(?:(?!\2)|\2(?:[^()\r\n]|\([^()]*\)))/.source,r=/"""(?:[^\\"]|"(?!""\2)|)*"""/.source+"|"+/'''(?:[^\\']|'(?!''\2)|)*'''/.source+"|"+/"(?:[^\\\r\n"]|"(?!\2)|)*"/.source+"|"+/'(?:[^\\\r\n']|'(?!\2)|)*'/.source,i="(?:"+r.replace(//g,n)+")";t.languages.cue={comment:{pattern:/\/\/.*/,greedy:!0},"string-literal":{pattern:RegExp(/(^|[^#"'\\])(#*)/.source+i+/(?!["'])\2/.source),lookbehind:!0,greedy:!0,inside:{escape:{pattern:/(?=[\s\S]*["'](#*)$)\\\1(?:U[a-fA-F0-9]{1,8}|u[a-fA-F0-9]{1,4}|x[a-fA-F0-9]{1,2}|\d{2,3}|[^(])/,greedy:!0,alias:"string"},interpolation:{pattern:/(?=[\s\S]*["'](#*)$)\\\1\([^()]*\)/,greedy:!0,inside:{punctuation:/^\\#*\(|\)$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:{pattern:/(^|[^\w$])(?:for|if|import|in|let|null|package)(?![\w$])/,lookbehind:!0},boolean:{pattern:/(^|[^\w$])(?:false|true)(?![\w$])/,lookbehind:!0},builtin:{pattern:/(^|[^\w$])(?:bool|bytes|float|float(?:32|64)|u?int(?:8|16|32|64|128)?|number|rune|string)(?![\w$])/,lookbehind:!0},attribute:{pattern:/@[\w$]+(?=\s*\()/,alias:"function"},function:{pattern:/(^|[^\w$])[a-z_$][\w$]*(?=\s*\()/i,lookbehind:!0},number:{pattern:/(^|[^\w$.])(?:0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|0[xX][0-9A-Fa-f]+(?:_[0-9A-Fa-f]+)*|(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[eE][+-]?\d+(?:_\d+)*)?(?:[KMGTP]i?)?)(?![\w$])/,lookbehind:!0},operator:/\.{3}|_\|_|&&?|\|\|?|[=!]~|[<>=!]=?|[+\-*/?]/,punctuation:/[()[\]{},.:]/},t.languages.cue["string-literal"].inside.interpolation.inside.expression.inside=t.languages.cue})(e)}Cj.displayName="cypher";Cj.aliases=[];function Cj(e){e.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}Rj.displayName="d";Rj.aliases=[];function Rj(e){e.register(xr),e.languages.d=e.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),e.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),e.languages.insertBefore("d","keyword",{property:/\B@\w*/}),e.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}Ij.displayName="dart";Ij.aliases=[];function Ij(e){e.register(xr),function(t){var n=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};t.languages.dart=t.languages.extend("clike",{"class-name":[i,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:n,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),t.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.dart}}},string:/[\s\S]+/}},string:void 0}),t.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),t.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(e)}Nj.displayName="dataweave";Nj.aliases=[];function Nj(e){(function(t){t.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(e)}Dj.displayName="dax";Dj.aliases=[];function Dj(e){e.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}Pj.displayName="dhall";Pj.aliases=[];function Pj(e){e.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},e.languages.dhall.string.inside.interpolation.inside.expression.inside=e.languages.dhall}Mj.displayName="django";Mj.aliases=["jinja2"];function Mj(e){e.register(to),function(t){t.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var n=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,r=t.languages["markup-templating"];t.hooks.add("before-tokenize",function(i){r.buildPlaceholders(i,"django",n)}),t.hooks.add("after-tokenize",function(i){r.tokenizePlaceholders(i,"django")}),t.languages.jinja2=t.languages.django,t.hooks.add("before-tokenize",function(i){r.buildPlaceholders(i,"jinja2",n)}),t.hooks.add("after-tokenize",function(i){r.tokenizePlaceholders(i,"jinja2")})}(e)}Lj.displayName="dns-zone-file";Lj.aliases=["dns-zone"];function Lj(e){e.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}$j.displayName="docker";$j.aliases=["dockerfile"];function $j(e){(function(t){var n=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,r=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return n}),i=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,a=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return i}),s={pattern:RegExp(i),greedy:!0},o={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function l(u,d){return u=u.replace(//g,function(){return a}).replace(//g,function(){return r}),RegExp(u,d)}t.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:l(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[s,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:l(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:l(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:l(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:o,string:s,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:o},t.languages.dockerfile=t.languages.docker})(e)}Fj.displayName="dot";Fj.aliases=["gv"];function Fj(e){(function(t){var n="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",r={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:t.languages.markup}};function i(a,s){return RegExp(a.replace(//g,function(){return n}),s)}t.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:i(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:r},"attr-value":{pattern:i(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:r},"attr-name":{pattern:i(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:r},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:i(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:r},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},t.languages.gv=t.languages.dot})(e)}Bj.displayName="ebnf";Bj.aliases=[];function Bj(e){e.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}Uj.displayName="editorconfig";Uj.aliases=[];function Uj(e){e.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}zj.displayName="eiffel";zj.aliases=[];function zj(e){e.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}Hj.displayName="ejs";Hj.aliases=["eta"];function Hj(e){e.register(eo),e.register(to),function(t){t.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:t.languages.javascript}},t.hooks.add("before-tokenize",function(n){var r=/<%(?!%)[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"ejs",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"ejs")}),t.languages.eta=t.languages.ejs}(e)}jj.displayName="elixir";jj.aliases=[];function jj(e){e.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},e.languages.elixir.string.forEach(function(t){t.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:e.languages.elixir}}}})}Wj.displayName="elm";Wj.aliases=[];function Wj(e){e.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}Qj.displayName="etlua";Qj.aliases=[];function Qj(e){e.register(gT),e.register(to),function(t){t.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:t.languages.lua}},t.hooks.add("before-tokenize",function(n){var r=/<%[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"etlua",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"etlua")})}(e)}Gj.displayName="erb";Gj.aliases=[];function Gj(e){e.register(to),e.register(Z1),function(t){t.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:t.languages.ruby}},t.hooks.add("before-tokenize",function(n){var r=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"erb",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"erb")})}(e)}Vj.displayName="erlang";Vj.aliases=[];function Vj(e){e.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|begin|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}qj.displayName="excel-formula";qj.aliases=["xls","xlsx"];function qj(e){e.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"builtin"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"selector",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"selector"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},e.languages.xlsx=e.languages.xls=e.languages["excel-formula"]}Yj.displayName="fsharp";Yj.aliases=[];function Yj(e){e.register(xr),e.languages.fsharp=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:e.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}Zj.displayName="factor";Zj.aliases=[];function Zj(e){(function(t){var n={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},r={number:/\\[^\s']|%\w/},i={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:n},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:n}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:r.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:r}},a=function(u){return(u+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},s=function(u){return new RegExp("(^|\\s)(?:"+u.map(a).join("|")+")(?=\\s|$)")},o={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(o).forEach(function(u){i[u].pattern=s(o[u])});var l=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"];i.combinators.pattern=s(l),t.languages.factor=i})(e)}Xj.displayName="false";Xj.aliases=[];function Xj(e){(function(t){t.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete e.languages["firestore-security-rules"]["class-name"],e.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}Jj.displayName="flow";Jj.aliases=[];function Jj(e){e.register(eo),function(t){t.languages.flow=t.languages.extend("javascript",{}),t.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),t.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete t.languages.flow.parameter,t.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(t.languages.flow.keyword)||(t.languages.flow.keyword=[t.languages.flow.keyword]),t.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(e)}eW.displayName="fortran";eW.aliases=[];function eW(e){e.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}tW.displayName="ftl";tW.aliases=[];function tW(e){e.register(to),function(t){for(var n=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var i={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return n})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return n})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};i.string[1].inside.interpolation.inside.rest=i,t.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}}},t.hooks.add("before-tokenize",function(a){var s=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return n}),"gi");t.languages["markup-templating"].buildPlaceholders(a,"ftl",s)}),t.hooks.add("after-tokenize",function(a){t.languages["markup-templating"].tokenizePlaceholders(a,"ftl")})}(e)}nW.displayName="gml";nW.aliases=["gamemakerlanguage"];function nW(e){e.register(xr),e.languages.gamemakerlanguage=e.languages.gml=e.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}rW.displayName="gap";rW.aliases=[];function rW(e){e.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},e.languages.gap.shell.inside.gap.inside=e.languages.gap}iW.displayName="gcode";iW.aliases=[];function iW(e){e.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}aW.displayName="gdscript";aW.aliases=[];function aW(e){e.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}sW.displayName="gedcom";sW.aliases=[];function sW(e){e.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},record:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"tag"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}oW.displayName="gettext";oW.aliases=["po"];function oW(e){e.languages.gettext={comment:[{pattern:/# .*/,greedy:!0,alias:"translator-comment"},{pattern:/#\..*/,greedy:!0,alias:"extracted-comment"},{pattern:/#:.*/,greedy:!0,alias:"reference-comment"},{pattern:/#,.*/,greedy:!0,alias:"flag-comment"},{pattern:/#\|.*/,greedy:!0,alias:"previously-untranslated-comment"},{pattern:/#.*/,greedy:!0}],string:{pattern:/(^|[^\\])"(?:[^"\\]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/^msg(?:ctxt|id|id_plural|str)\b/m,number:/\b\d+\b/,punctuation:/[\[\]]/},e.languages.po=e.languages.gettext}lW.displayName="gherkin";lW.aliases=[];function lW(e){(function(t){var n=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;t.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+n+")(?:"+n+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(n),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(e)}uW.displayName="git";uW.aliases=[];function uW(e){e.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}cW.displayName="glsl";cW.aliases=[];function cW(e){e.register(Vd),e.languages.glsl=e.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}dW.displayName="gn";dW.aliases=["gni"];function dW(e){e.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},e.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=e.languages.gn,e.languages.gni=e.languages.gn}fW.displayName="linker-script";fW.aliases=["ld"];function fW(e){e.languages["linker-script"]={comment:{pattern:/(^|\s)\/\*[\s\S]*?(?:$|\*\/)/,lookbehind:!0,greedy:!0},identifier:{pattern:/"[^"\r\n]*"/,greedy:!0},"location-counter":{pattern:/\B\.\B/,alias:"important"},section:{pattern:/(^|[^\w*])\.\w+\b/,lookbehind:!0,alias:"keyword"},function:/\b[A-Z][A-Z_]*(?=\s*\()/,number:/\b(?:0[xX][a-fA-F0-9]+|\d+)[KM]?\b/,operator:/>>=?|<<=?|->|\+\+|--|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?/,punctuation:/[(){},;]/},e.languages.ld=e.languages["linker-script"]}hW.displayName="go-module";hW.aliases=["go-mod"];function hW(e){e.languages["go-mod"]=e.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}pW.displayName="gradle";pW.aliases=[];function pW(e){e.register(xr),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.gradle=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:apply|def|dependencies|else|if|implementation|import|plugin|plugins|project|repositories|repository|sourceSets|tasks|val)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("gradle","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("gradle","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("gradle","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.gradle}(e)}mW.displayName="graphql";mW.aliases=[];function mW(e){e.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:e.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},e.hooks.add("after-tokenize",function(n){if(n.language!=="graphql")return;var r=n.tokens.filter(function(E){return typeof E!="string"&&E.type!=="comment"&&E.type!=="scalar"}),i=0;function a(E){return r[i+E]}function s(E,w){w=w||0;for(var x=0;x0)){var g=o(/^\{$/,/^\}$/);if(g===-1)continue;for(var b=i;b=0&&l(S,"variable-input")}}}}})}gW.displayName="groovy";gW.aliases=[];function gW(e){e.register(xr),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.groovy=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.groovy}(e)}bW.displayName="textile";bW.aliases=[];function bW(e){e.register(Ds),function(t){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,r=/\)|\((?![^|()\n]+\))/.source;function i(f,p){return RegExp(f.replace(//g,function(){return"(?:"+n+")"}).replace(//g,function(){return"(?:"+r+")"}),p||"")}var a={css:{pattern:/\{[^{}]+\}/,inside:{rest:t.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},s=t.languages.textile=t.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:a},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)+/.source),lookbehind:!0,inside:a},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:a},punctuation:/\||^\./}},inline:{pattern:i(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:i(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:i(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:i(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:i(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:i(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:i(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:i(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:i(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:a},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:i(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:i(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:i(/(^")+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:i(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:i(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:i(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),o=s.phrase.inside,l={inline:o.inline,link:o.link,image:o.image,footnote:o.footnote,acronym:o.acronym,mark:o.mark};s.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var u=o.inline.inside;u.bold.inside=l,u.italic.inside=l,u.inserted.inside=l,u.deleted.inside=l,u.span.inside=l;var d=o.table.inside;d.inline=l.inline,d.link=l.link,d.image=l.image,d.footnote=l.footnote,d.acronym=l.acronym,d.mark=l.mark}(e)}yW.displayName="haml";yW.aliases=[];function yW(e){e.register(Z1),function(t){t.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:t.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:t.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:t.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:t.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:t.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:t.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var n="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",r=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],i={},a=0,s=r.length;a@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},t.hooks.add("before-tokenize",function(n){var r=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;t.languages["markup-templating"].buildPlaceholders(n,"handlebars",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"handlebars")}),t.languages.hbs=t.languages.handlebars,t.languages.mustache=t.languages.handlebars}(e)}ET.displayName="haskell";ET.aliases=["hs"];function ET(e){e.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},e.languages.hs=e.languages.haskell}OW.displayName="haxe";OW.aliases=[];function OW(e){e.register(xr),e.languages.haxe=e.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),e.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.haxe}}},string:/[\s\S]+/}}}),e.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),e.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}SW.displayName="hcl";SW.aliases=[];function SW(e){e.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}EW.displayName="hlsl";EW.aliases=[];function EW(e){e.register(Vd),e.languages.hlsl=e.languages.extend("c",{"class-name":[e.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}wW.displayName="hoon";wW.aliases=[];function wW(e){e.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}xW.displayName="hpkp";xW.aliases=[];function xW(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}TW.displayName="hsts";TW.aliases=[];function TW(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}kW.displayName="uri";kW.aliases=["url"];function kW(e){e.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},e.languages.url=e.languages.uri}AW.displayName="http";AW.aliases=[];function AW(e){(function(t){function n(d){return RegExp("(^(?:"+d+"):[ ]*(?![ ]))[^]+","i")}t.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:t.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:n(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:t.languages.csp},{pattern:n(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:t.languages.hpkp},{pattern:n(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:t.languages.hsts},{pattern:n(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var r=t.languages,i={"application/javascript":r.javascript,"application/json":r.json||r.javascript,"application/xml":r.xml,"text/xml":r.xml,"text/html":r.html,"text/css":r.css,"text/plain":r.plain},a={"application/json":!0,"application/xml":!0};function s(d){var f=d.replace(/^[a-z]+\//,""),p="\\w+/(?:[\\w.-]+\\+)+"+f+"(?![+\\w.-])";return"(?:"+d+"|"+p+")"}var o;for(var l in i)if(i[l]){o=o||{};var u=a[l]?s(l):l;o[l.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+u+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[l]}}o&&t.languages.insertBefore("http","header",o)})(e)}_W.displayName="ichigojam";_W.aliases=[];function _W(e){e.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}CW.displayName="icon";CW.aliases=[];function CW(e){e.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}RW.displayName="icu-message-format";RW.aliases=[];function RW(e){(function(t){function n(l,u){return u<=0?/[]/.source:l.replace(//g,function(){return n(l,u-1)})}var r=/'[{}:=,](?:[^']|'')*'(?!')/,i={pattern:/''/,greedy:!0,alias:"operator"},a={pattern:r,greedy:!0,inside:{escape:i}},s=n(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return r.source}),8),o={pattern:RegExp(s),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};t.languages["icu-message-format"]={argument:{pattern:RegExp(s),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":o,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":o,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+n(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:i,string:a},o.inside.message.inside=t.languages["icu-message-format"],t.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=t.languages["icu-message-format"]})(e)}IW.displayName="idris";IW.aliases=["idr"];function IW(e){e.register(ET),e.languages.idris=e.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),e.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.idr=e.languages.idris}NW.displayName="ignore";NW.aliases=["gitignore","hgignore","npmignore"];function NW(e){(function(t){t.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},t.languages.gitignore=t.languages.ignore,t.languages.hgignore=t.languages.ignore,t.languages.npmignore=t.languages.ignore})(e)}DW.displayName="inform7";DW.aliases=[];function DW(e){e.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},e.languages.inform7.string.inside.substitution.inside.rest=e.languages.inform7,e.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}PW.displayName="io";PW.aliases=[];function PW(e){e.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}XO.displayName="javadoclike";XO.aliases=[];function XO(e){(function(t){var n=t.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function r(a,s){var o="doc-comment",l=t.languages[a];if(l){var u=l[o];if(!u){var d={};d[o]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},l=t.languages.insertBefore(a,"comment",d),u=l[o]}if(u instanceof RegExp&&(u=l[o]={pattern:u}),Array.isArray(u))for(var f=0,p=u.length;f|\b(?:abstract|case|catch|class|def|derives|do|else|enum|extends|extension|final|finally|for|forSome|given|if|implicit|import|infix|inline|lazy|match|new|null|object|opaque|open|override|package|private|protected|return|sealed|self|super|this|throw|trait|transparent|try|type|using|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),e.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.scala}}},string:/[\s\S]+/}}}),delete e.languages.scala["class-name"],delete e.languages.scala.function,delete e.languages.scala.constant}$W.displayName="javadoc";$W.aliases=[];function $W(e){e.register(q1),e.register(XO),e.register(Ds),function(t){var n=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,r=/#\s*\w+(?:\s*\([^()]*\))?/.source,i=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*)?|/.source.replace(//g,function(){return r});t.languages.javadoc=t.languages.extend("javadoclike",{}),t.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+i+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:t.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:n,lookbehind:!0,inside:t.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:n,lookbehind:!0,inside:{tag:t.languages.markup.tag,entity:t.languages.markup.entity,code:{pattern:/.+/,inside:t.languages.java,alias:"language-java"}}}}}],tag:t.languages.markup.tag,entity:t.languages.markup.entity}),t.languages.javadoclike.addSupport("java",t.languages.javadoc)}(e)}FW.displayName="javastacktrace";FW.aliases=[];function FW(e){e.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:|[\w$]+)\()/,function:/(?:|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}BW.displayName="jexl";BW.aliases=[];function BW(e){e.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}UW.displayName="jolie";UW.aliases=[];function UW(e){e.register(xr),e.languages.jolie=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),e.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}zW.displayName="jq";zW.aliases=[];function zW(e){(function(t){var n=/\\\((?:[^()]|\([^()]*\))*\)/.source,r=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return n})),i={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+n),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},a=t.languages.jq={comment:/#.*/,property:{pattern:RegExp(r.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:i},string:{pattern:r,lookbehind:!0,greedy:!0,inside:i},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};i.interpolation.inside.content.inside=a})(e)}HW.displayName="js-templates";HW.aliases=[];function HW(e){e.register(eo),function(t){var n=t.languages.javascript["template-string"],r=n.pattern.source,i=n.inside.interpolation,a=i.inside["interpolation-punctuation"],s=i.pattern.source;function o(b,S){if(t.languages[b])return{pattern:RegExp("((?:"+S+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:b}}}}t.languages.javascript["template-string"]=[o("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),o("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),o("svg",/\bsvg/.source),o("markdown",/\b(?:markdown|md)/.source),o("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),o("sql",/\bsql/.source),n].filter(Boolean);function l(b,S){return"___"+S.toUpperCase()+"_"+b+"___"}function u(b,S,E){var w={code:b,grammar:S,language:E};return t.hooks.run("before-tokenize",w),w.tokens=t.tokenize(w.code,w.grammar),t.hooks.run("after-tokenize",w),w.tokens}function d(b){var S={};S["interpolation-punctuation"]=a;var E=t.tokenize(b,S);if(E.length===3){var w=[1,1];w.push.apply(w,u(E[1],t.languages.javascript,"javascript")),E.splice.apply(E,w)}return new t.Token("interpolation",E,i.alias,b)}function f(b,S,E){var w=t.tokenize(b,{interpolation:{pattern:RegExp(s),lookbehind:!0}}),x=0,k={},_=w.map(function(M){if(typeof M=="string")return M;for(var U=M.content,F;b.indexOf(F=l(x++,E))!==-1;);return k[F]=U,F}).join(""),C=u(_,S,E),R=Object.keys(k);x=0;function N(M){for(var U=0;U=R.length)return;var F=M[U];if(typeof F=="string"||typeof F.content=="string"){var G=R[x],V=typeof F=="string"?F:F.content,ie=V.indexOf(G);if(ie!==-1){++x;var ne=V.substring(0,ie),q=d(k[G]),re=V.substring(ie+G.length),ee=[];if(ne&&ee.push(ne),ee.push(q),re){var Z=[re];N(Z),ee.push.apply(ee,Z)}typeof F=="string"?(M.splice.apply(M,[U,1].concat(ee)),U+=ee.length-1):F.content=ee}}else{var se=F.content;Array.isArray(se)?N(se):N([se])}}}return N(C),new t.Token(E,C,"language-"+E,b)}var p={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};t.hooks.add("after-tokenize",function(b){if(!(b.language in p))return;function S(E){for(var w=0,x=E.length;w\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return r})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+r),lookbehind:!0,inside:{string:n.string,number:n.number,boolean:n.boolean,keyword:t.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:n,alias:"language-javascript"}}}}),t.languages.javadoclike.addSupport("javascript",t.languages.jsdoc)}(e)}WW.displayName="n4js";WW.aliases=["n4jsd"];function WW(e){e.register(eo),e.languages.n4js=e.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),e.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),e.languages.n4jsd=e.languages.n4js}QW.displayName="js-extras";QW.aliases=[];function QW(e){e.register(eo),function(t){t.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+t.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),t.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+t.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),t.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function n(l,u){return RegExp(l.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),u)}t.languages.insertBefore("javascript","keyword",{imports:{pattern:n(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:t.languages.javascript},exports:{pattern:n(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:t.languages.javascript}}),t.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),t.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),t.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:n(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var r=["function","function-variable","method","method-variable","property-access"],i=0;i|.*(?:node_modules|\(\)|\(|$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}YW.displayName="julia";YW.aliases=[];function YW(e){e.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}ZW.displayName="keepalived";ZW.aliases=[];function ZW(e){e.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}|(?:[\da-f]{1,4}:){0,5}:|::(?:[\da-f]{1,4}:){0,5}|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|(?:\/\d{1,2})?)\b/.source.replace(//g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}XW.displayName="keyman";XW.aliases=[];function XW(e){e.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|newcontext|nomatch|postkeystroke|readonly|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}KW.displayName="kumir";KW.aliases=["kum"];function KW(e){(function(t){var n=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function r(i,a){return RegExp(i.replace(//g,n),a)}t.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:r(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:r(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:r(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:r(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:r(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:r(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:r(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:r(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},t.languages.kum=t.languages.kumir})(e)}JW.displayName="kusto";JW.aliases=[];function JW(e){e.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}eQ.displayName="latex";eQ.aliases=["context","tex"];function eQ(e){(function(t){var n=/\\(?:[^a-z()[\]]|[a-z*]+)/i,r={"equation-command":{pattern:n,alias:"regex"}};t.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:r,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:r,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:n,alias:"selector"},punctuation:/[[\]{}&]/},t.languages.tex=t.languages.latex,t.languages.context=t.languages.latex})(e)}tQ.displayName="latte";tQ.aliases=[];function tQ(e){e.register(xr),e.register(to),e.register(Y1),function(t){t.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:t.languages.php}};var n=t.languages.extend("markup",{});t.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.php}}}}}},n.tag),t.hooks.add("before-tokenize",function(r){if(r.language==="latte"){var i=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;t.languages["markup-templating"].buildPlaceholders(r,"latte",i),r.grammar=n}}),t.hooks.add("after-tokenize",function(r){t.languages["markup-templating"].tokenizePlaceholders(r,"latte")})}(e)}wT.displayName="scheme";wT.aliases=[];function wT(e){(function(t){t.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(n({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function n(r){for(var i in r)r[i]=r[i].replace(/<[\w\s]+>/g,function(a){return"(?:"+r[a].trim()+")"});return r[i]}})(e)}nQ.displayName="lilypond";nQ.aliases=["ly"];function nQ(e){e.register(wT),function(t){for(var n=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,r=5,i=0;i/g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var a=t.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return n}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:t.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};a["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=a,t.languages.ly=a}(e)}rQ.displayName="liquid";rQ.aliases=[];function rQ(e){e.register(to),e.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},e.hooks.add("before-tokenize",function(t){var n=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,r=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",n,function(i){var a=/^\{%-?\s*(\w+)/.exec(i);if(a){var s=a[1];if(s==="raw"&&!r)return r=!0,!0;if(s==="endraw")return r=!1,!0}return!r})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}iQ.displayName="lisp";iQ.aliases=["elisp","emacs","emacs-lisp"];function iQ(e){(function(t){function n(b){return RegExp(/(\()/.source+"(?:"+b+")"+/(?=[\s\)])/.source)}function r(b){return RegExp(/([\s([])/.source+"(?:"+b+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,a="&"+i,s="(\\()",o="(?=\\))",l="(?=\\s)",u=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,d={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+i+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+i),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+i),alias:"property"},splice:{pattern:RegExp(",@?"+i),alias:["symbol","variable"]},keyword:[{pattern:RegExp(s+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+l),lookbehind:!0},{pattern:RegExp(s+"(?:append|by|collect|concat|do|finally|for|in|return)"+l),lookbehind:!0}],declare:{pattern:n(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:n(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:r(/nil|t/.source),lookbehind:!0},number:{pattern:r(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(s+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(s+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+u+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(s+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(s+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},f={"lisp-marker":RegExp(a),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+u+/\)/.source),inside:d},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:d},p="\\S+(?:\\s+\\S+)*",g={pattern:RegExp(s+u+o),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+p),inside:f},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+p),inside:f},keys:{pattern:RegExp("&key\\s+"+p+"(?:\\s+&allow-other-keys)?"),inside:f},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};d.lambda.inside.arguments=g,d.defun.inside.arguments=t.util.clone(g),d.defun.inside.arguments.inside.sublist=g,t.languages.lisp=d,t.languages.elisp=d,t.languages.emacs=d,t.languages["emacs-lisp"]=d})(e)}aQ.displayName="livescript";aQ.aliases=[];function aQ(e){e.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},e.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=e.languages.livescript}sQ.displayName="llvm";sQ.aliases=[];function sQ(e){(function(t){t.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(e)}oQ.displayName="log";oQ.aliases=[];function oQ(e){e.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:e.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}lQ.displayName="lolcode";lQ.aliases=[];function lQ(e){e.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}uQ.displayName="magma";uQ.aliases=[];function uQ(e){e.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}DI.displayName="mata";DI.aliases=[];function DI(e){(function(t){var n=/\b(?:(?:col|row)?vector|matrix|scalar)\b/.source,r=/\bvoid\b||\b(?:complex|numeric|pointer(?:\s*\([^()]*\))?|real|string|(?:class|struct)\s+\w+|transmorphic)(?:\s*)?/.source.replace(//g,n);t.languages.mata={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|struct)\s+)\w+(?=\s*(?:\{|\bextends\b))/,lookbehind:!0},type:{pattern:RegExp(r),alias:"class-name",inside:{punctuation:/[()]/,keyword:/\b(?:class|function|struct|void)\b/}},keyword:/\b(?:break|class|continue|do|else|end|extends|external|final|for|function|goto|if|pragma|private|protected|public|return|static|struct|unset|unused|version|virtual|while)\b/,constant:/\bNULL\b/,number:{pattern:/(^|[^\w.])(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|\d[a-f0-9]*(?:\.[a-f0-9]+)?x[+-]?\d+)i?(?![\w.])/i,lookbehind:!0},missing:{pattern:/(^|[^\w.])(?:\.[a-z]?)(?![\w.])/,lookbehind:!0,alias:"symbol"},function:/\b[a-z_]\w*(?=\s*\()/i,operator:/\.\.|\+\+|--|&&|\|\||:?(?:[!=<>]=|[+\-*/^<>&|:])|[!?=\\#’`']/,punctuation:/[()[\]{},;.]/}})(e)}cQ.displayName="matlab";cQ.aliases=[];function cQ(e){e.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}dQ.displayName="maxscript";dQ.aliases=[];function dQ(e){(function(t){var n=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;t.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+n.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+n.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:n,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(e)}fQ.displayName="mel";fQ.aliases=[];function fQ(e){e.languages.mel={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},code:{pattern:/`(?:\\.|[^\\`])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},statement:{pattern:/[\s\S]+/,inside:null}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:{pattern:/((?:^|[{;])[ \t]*)[a-z_]\w*\b(?!\s*(?:\.(?!\.)|[[{=]))|\b[a-z_]\w*(?=[ \t]*\()/im,lookbehind:!0,greedy:!0},"tensor-punctuation":{pattern:/<<|>>/,alias:"punctuation"},operator:/\+[+=]?|-[-=]?|&&|\|\||[<>]=?|[*\/!=]=?|[%^]/,punctuation:/[.,:;?\[\](){}]/},e.languages.mel.code.inside.statement.inside=e.languages.mel}hQ.displayName="mermaid";hQ.aliases=[];function hQ(e){e.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}pQ.displayName="metafont";pQ.aliases=[];function pQ(e){e.languages.metafont={comment:{pattern:/%.*/,greedy:!0},string:{pattern:/"[^\r\n"]*"/,greedy:!0},number:/\d*\.?\d+/,boolean:/\b(?:false|true)\b/,punctuation:[/[,;()]/,{pattern:/(^|[^{}])(?:\{|\})(?![{}])/,lookbehind:!0},{pattern:/(^|[^[])\[(?!\[)/,lookbehind:!0},{pattern:/(^|[^\]])\](?!\])/,lookbehind:!0}],constant:[{pattern:/(^|[^!?])\?\?\?(?![!?])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\\|\\\\)(?![/*\\])/,lookbehind:!0},/\b(?:_|blankpicture|bp|cc|cm|dd|ditto|down|eps|epsilon|fullcircle|halfcircle|identity|in|infinity|left|mm|nullpen|nullpicture|origin|pc|penrazor|penspeck|pensquare|penstroke|proof|pt|quartercircle|relax|right|smoke|unitpixel|unitsquare|up)\b/],quantity:{pattern:/\b(?:autorounding|blacker|boundarychar|charcode|chardp|chardx|chardy|charext|charht|charic|charwd|currentwindow|day|designsize|displaying|fillin|fontmaking|granularity|hppp|join_radius|month|o_correction|pausing|pen_(?:bot|lft|rt|top)|pixels_per_inch|proofing|showstopping|smoothing|time|tolerance|tracingcapsules|tracingchoices|tracingcommands|tracingedges|tracingequations|tracingmacros|tracingonline|tracingoutput|tracingpens|tracingrestores|tracingspecs|tracingstats|tracingtitles|turningcheck|vppp|warningcheck|xoffset|year|yoffset)\b/,alias:"keyword"},command:{pattern:/\b(?:addto|batchmode|charlist|cull|display|errhelp|errmessage|errorstopmode|everyjob|extensible|fontdimen|headerbyte|inner|interim|let|ligtable|message|newinternal|nonstopmode|numspecial|openwindow|outer|randomseed|save|scrollmode|shipout|show|showdependencies|showstats|showtoken|showvariable|special)\b/,alias:"builtin"},operator:[{pattern:/(^|[^>=<:|])(?:<|<=|=|=:|\|=:|\|=:>|=:\|>|=:\||\|=:\||\|=:\|>|\|=:\|>>|>|>=|:|:=|<>|::|\|\|:)(?![>=<:|])/,lookbehind:!0},{pattern:/(^|[^+-])(?:\+|\+\+|-{1,3}|\+-\+)(?![+-])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\*|\*\*|\/)(?![/*\\])/,lookbehind:!0},{pattern:/(^|[^.])(?:\.{2,3})(?!\.)/,lookbehind:!0},{pattern:/(^|[^@#&$])&(?![@#&$])/,lookbehind:!0},/\b(?:and|not|or)\b/],macro:{pattern:/\b(?:abs|beginchar|bot|byte|capsule_def|ceiling|change_width|clear_pen_memory|clearit|clearpen|clearxy|counterclockwise|cullit|cutdraw|cutoff|decr|define_blacker_pixels|define_corrected_pixels|define_good_x_pixels|define_good_y_pixels|define_horizontal_corrected_pixels|define_pixels|define_whole_blacker_pixels|define_whole_pixels|define_whole_vertical_blacker_pixels|define_whole_vertical_pixels|dir|direction|directionpoint|div|dotprod|downto|draw|drawdot|endchar|erase|fill|filldraw|fix_units|flex|font_coding_scheme|font_extra_space|font_identifier|font_normal_shrink|font_normal_space|font_normal_stretch|font_quad|font_size|font_slant|font_x_height|gfcorners|gobble|gobbled|good\.(?:bot|lft|rt|top|x|y)|grayfont|hide|hround|imagerules|incr|interact|interpath|intersectionpoint|inverse|italcorr|killtext|labelfont|labels|lft|loggingall|lowres_fix|makegrid|makelabel(?:\.(?:bot|lft|rt|top)(?:\.nodot)?)?|max|min|mod|mode_def|mode_setup|nodisplays|notransforms|numtok|openit|penlabels|penpos|pickup|proofoffset|proofrule|proofrulethickness|range|reflectedabout|rotatedabout|rotatedaround|round|rt|savepen|screenchars|screenrule|screenstrokes|shipit|showit|slantfont|softjoin|solve|stop|superellipse|tensepath|thru|titlefont|top|tracingall|tracingnone|undraw|undrawdot|unfill|unfilldraw|upto|vround)\b/,alias:"function"},builtin:/\b(?:ASCII|angle|char|cosd|decimal|directiontime|floor|hex|intersectiontimes|jobname|known|length|makepath|makepen|mexp|mlog|normaldeviate|oct|odd|pencircle|penoffset|point|postcontrol|precontrol|reverse|rotated|sind|sqrt|str|subpath|substring|totalweight|turningnumber|uniformdeviate|unknown|xpart|xxpart|xypart|ypart|yxpart|yypart)\b/,keyword:/\b(?:also|at|atleast|begingroup|charexists|contour|controls|curl|cycle|def|delimiters|doublepath|dropping|dump|else|elseif|end|enddef|endfor|endgroup|endinput|exitif|exitunless|expandafter|fi|for|forever|forsuffixes|from|if|input|inwindow|keeping|kern|of|primarydef|quote|readstring|scaled|scantokens|secondarydef|shifted|skipto|slanted|step|tension|tertiarydef|to|transformed|until|vardef|withpen|withweight|xscaled|yscaled|zscaled)\b/,type:{pattern:/\b(?:boolean|expr|numeric|pair|path|pen|picture|primary|secondary|string|suffix|tertiary|text|transform)\b/,alias:"property"},variable:{pattern:/(^|[^@#&$])(?:@#|#@|#|@)(?![@#&$])|\b(?:aspect_ratio|currentpen|currentpicture|currenttransform|d|extra_beginchar|extra_endchar|extra_setup|h|localfont|mag|mode|screen_cols|screen_rows|w|whatever|x|y|z)\b/,lookbehind:!0}}}mQ.displayName="mizar";mQ.aliases=[];function mQ(e){e.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}gQ.displayName="mongodb";gQ.aliases=[];function gQ(e){e.register(eo),function(t){var n=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],r=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];n=n.map(function(a){return a.replace("$","\\$")});var i="(?:"+n.join("|")+")\\b";t.languages.mongodb=t.languages.extend("javascript",{}),t.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+i+"(?:\\1)?$")}}}),t.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},t.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+r.join("|")+")\\b"),alias:"keyword"}})}(e)}bQ.displayName="monkey";bQ.aliases=[];function bQ(e){e.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}yQ.displayName="moonscript";yQ.aliases=["moon"];function yQ(e){e.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},e.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=e.languages.moonscript,e.languages.moon=e.languages.moonscript}vQ.displayName="n1ql";vQ.aliases=[];function vQ(e){e.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}OQ.displayName="nand2tetris-hdl";OQ.aliases=[];function OQ(e){e.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}SQ.displayName="naniscript";SQ.aliases=["nani"];function SQ(e){(function(t){var n=/\{[^\r\n\[\]{}]*\}/,r={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:n,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};t.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:n,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:r}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:n,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:r},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},t.languages.nani=t.languages.naniscript,t.hooks.add("after-tokenize",function(s){var o=s.tokens;o.forEach(function(l){if(typeof l!="string"&&l.type==="generic-text"){var u=a(l);i(u)||(l.type="bad-line",l.content=u)}})});function i(s){for(var o="[]{}",l=[],u=0;u=&|$!]/}}wQ.displayName="neon";wQ.aliases=[];function wQ(e){e.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"property"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}xQ.displayName="nevod";xQ.aliases=[];function xQ(e){e.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}TQ.displayName="nginx";TQ.aliases=[];function TQ(e){(function(t){var n=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;t.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:n}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:n}},punctuation:/[{};]/}})(e)}kQ.displayName="nim";kQ.aliases=[];function kQ(e){e.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}AQ.displayName="nix";AQ.aliases=[];function AQ(e){e.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},e.languages.nix.string.inside.interpolation.inside=e.languages.nix}_Q.displayName="nsis";_Q.aliases=[];function _Q(e){e.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|KnownFolderPath|LabelAddress|TempFileName|WinVer)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|RtlLanguage|ShellVarContextAll|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|Target|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}CQ.displayName="ocaml";CQ.aliases=[];function CQ(e){e.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}RQ.displayName="odin";RQ.aliases=[];function RQ(e){(function(t){var n=/\\(?:["'\\abefnrtv]|0[0-7]{2}|U[\dA-Fa-f]{6}|u[\dA-Fa-f]{4}|x[\dA-Fa-f]{2})/;t.languages.odin={comment:[{pattern:/\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:\*(?!\/)|[^*])*(?:\*\/|$))*(?:\*\/|$)/,greedy:!0},{pattern:/#![^\n\r]*/,greedy:!0},{pattern:/\/\/[^\n\r]*/,greedy:!0}],char:{pattern:/'(?:\\(?:.|[0Uux][0-9A-Fa-f]{1,6})|[^\n\r'\\])'/,greedy:!0,inside:{symbol:n}},string:[{pattern:/`[^`]*`/,greedy:!0},{pattern:/"(?:\\.|[^\n\r"\\])*"/,greedy:!0,inside:{symbol:n}}],directive:{pattern:/#\w+/,alias:"property"},number:/\b0(?:b[01_]+|d[\d_]+|h_*(?:(?:(?:[\dA-Fa-f]_*){8}){1,2}|(?:[\dA-Fa-f]_*){4})|o[0-7_]+|x[\dA-F_a-f]+|z[\dAB_ab]+)\b|(?:\b\d+(?:\.(?!\.)\d*)?|\B\.\d+)(?:[Ee][+-]?\d*)?[ijk]?(?!\w)/,discard:{pattern:/\b_\b/,alias:"keyword"},"procedure-definition":{pattern:/\b\w+(?=[ \t]*(?::\s*){2}proc\b)/,alias:"function"},keyword:/\b(?:asm|auto_cast|bit_set|break|case|cast|context|continue|defer|distinct|do|dynamic|else|enum|fallthrough|for|foreign|if|import|in|map|matrix|not_in|or_else|or_return|package|proc|return|struct|switch|transmute|typeid|union|using|when|where)\b/,"procedure-name":{pattern:/\b\w+(?=[ \t]*\()/,alias:"function"},boolean:/\b(?:false|nil|true)\b/,"constant-parameter-sign":{pattern:/\$/,alias:"important"},undefined:{pattern:/---/,alias:"operator"},arrow:{pattern:/->/,alias:"punctuation"},operator:/\+\+|--|\.\.[<=]?|(?:&~|[-!*+/=~]|[%&<>|]{1,2})=?|[?^]/,punctuation:/[(),.:;@\[\]{}]/}})(e)}IQ.displayName="opencl";IQ.aliases=[];function IQ(e){e.register(Vd),function(t){t.languages.opencl=t.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),t.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var n={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};t.languages.insertBefore("c","keyword",n),t.languages.cpp&&(n["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},t.languages.insertBefore("cpp","keyword",n))}(e)}NQ.displayName="openqasm";NQ.aliases=["qasm"];function NQ(e){e.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},e.languages.qasm=e.languages.openqasm}DQ.displayName="oz";DQ.aliases=[];function DQ(e){e.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}PQ.displayName="parigp";PQ.aliases=[];function PQ(e){e.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var t=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return t=t.map(function(n){return n.split("").join(" *")}).join("|"),RegExp("\\b(?:"+t+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}MQ.displayName="parser";MQ.aliases=[];function MQ(e){e.register(Ds),function(t){var n=t.languages.parser=t.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});n=t.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:n.keyword,variable:n.variable,function:n.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:n.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:n.punctuation}}}),t.languages.insertBefore("inside","punctuation",{expression:n.expression,keyword:n.keyword,variable:n.variable,function:n.function,escape:n.escape,"parser-punctuation":{pattern:n.punctuation,alias:"punctuation"}},n.tag.inside["attr-value"])}(e)}LQ.displayName="pascal";LQ.aliases=["objectpascal"];function LQ(e){e.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},e.languages.pascal.asm.inside=e.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),e.languages.objectpascal=e.languages.pascal}$Q.displayName="pascaligo";$Q.aliases=[];function $Q(e){(function(t){var n=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,r=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return n}),i=t.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return r}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return r}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return r})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},a=["comment","keyword","builtin","operator","punctuation"].reduce(function(s,o){return s[o]=i[o],s},{});i["class-name"].forEach(function(s){s.inside=a})})(e)}FQ.displayName="psl";FQ.aliases=[];function FQ(e){e.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}BQ.displayName="pcaxis";BQ.aliases=["px"];function BQ(e){e.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},e.languages.px=e.languages.pcaxis}UQ.displayName="peoplecode";UQ.aliases=["pcode"];function UQ(e){e.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},e.languages.pcode=e.languages.peoplecode}zQ.displayName="phpdoc";zQ.aliases=[];function zQ(e){e.register(XO),e.register(Y1),function(t){var n=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;t.languages.phpdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+n+"\\s+)?)\\$\\w+"),lookbehind:!0}}),t.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+n),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),t.languages.javadoclike.addSupport("php",t.languages.phpdoc)}(e)}HQ.displayName="php-extras";HQ.aliases=[];function HQ(e){e.register(Y1),e.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}jQ.displayName="plant-uml";jQ.aliases=["plantuml"];function jQ(e){(function(t){var n=/\$\w+|%[a-z]+%/,r=/\[[^[\]]*\]/.source,i=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,a="(?:-+"+i+"-+|\\.+"+i+"\\.+|-+(?:"+r+"-*)?|"+r+"-+|\\.+(?:"+r+"\\.*)?|"+r+"\\.+)",s=/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source,o=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,l=/[[?]?[ox]?/.source,u=/[ox]?[\]?]?/.source,d=l+"(?:"+a+o+"|"+s+a+"(?:"+o+")?)"+u;t.languages["plant-uml"]={comment:{pattern:/(^[ \t]*)(?:'.*|\/'[\s\S]*?'\/)/m,lookbehind:!0,greedy:!0},preprocessor:{pattern:/(^[ \t]*)!.*/m,lookbehind:!0,greedy:!0,alias:"property",inside:{variable:n}},delimiter:{pattern:/(^[ \t]*)@(?:end|start)uml\b/m,lookbehind:!0,greedy:!0,alias:"punctuation"},arrow:{pattern:RegExp(/(^|[^-.<>?|\\[\]ox])/.source+d+/(?![-.<>?|\\\]ox])/.source),lookbehind:!0,greedy:!0,alias:"operator",inside:{expression:{pattern:/(\[)[^[\]]+(?=\])/,lookbehind:!0,inside:null},punctuation:/\[(?=$|\])|^\]/}},string:{pattern:/"[^"]*"/,greedy:!0},text:{pattern:/(\[[ \t]*[\r\n]+(?![\r\n]))[^\]]*(?=\])/,lookbehind:!0,greedy:!0,alias:"string"},keyword:[{pattern:/^([ \t]*)(?:abstract\s+class|end\s+(?:box|fork|group|merge|note|ref|split|title)|(?:fork|split)(?:\s+again)?|activate|actor|agent|alt|annotation|artifact|autoactivate|autonumber|backward|binary|boundary|box|break|caption|card|case|circle|class|clock|cloud|collections|component|concise|control|create|critical|database|deactivate|destroy|detach|diamond|else|elseif|end|end[hr]note|endif|endswitch|endwhile|entity|enum|file|folder|footer|frame|group|[hr]?note|header|hexagon|hide|if|interface|label|legend|loop|map|namespace|network|newpage|node|nwdiag|object|opt|package|page|par|participant|person|queue|rectangle|ref|remove|repeat|restore|return|robust|scale|set|show|skinparam|stack|start|state|stop|storage|switch|title|together|usecase|usecase\/|while)(?=\s|$)/m,lookbehind:!0,greedy:!0},/\b(?:elseif|equals|not|while)(?=\s*\()/,/\b(?:as|is|then)\b/],divider:{pattern:/^==.+==$/m,greedy:!0,alias:"important"},time:{pattern:/@(?:\d+(?:[:/]\d+){2}|[+-]?\d+|:[a-z]\w*(?:[+-]\d+)?)\b/i,greedy:!0,alias:"number"},color:{pattern:/#(?:[a-z_]+|[a-fA-F0-9]+)\b/,alias:"symbol"},variable:n,punctuation:/[:,;()[\]{}]|\.{3}/},t.languages["plant-uml"].arrow.inside.expression.inside=t.languages["plant-uml"],t.languages.plantuml=t.languages["plant-uml"]})(e)}WQ.displayName="plsql";WQ.aliases=[];function WQ(e){e.register(GO),e.languages.plsql=e.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),e.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}QQ.displayName="powerquery";QQ.aliases=["mscript","pq"];function QQ(e){e.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},e.languages.pq=e.languages.powerquery,e.languages.mscript=e.languages.powerquery}GQ.displayName="powershell";GQ.aliases=[];function GQ(e){(function(t){var n=t.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};n.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:n},boolean:n.boolean,variable:n.variable}})(e)}VQ.displayName="processing";VQ.aliases=[];function VQ(e){e.register(xr),e.languages.processing=e.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),e.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}qQ.displayName="prolog";qQ.aliases=[];function qQ(e){e.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}YQ.displayName="promql";YQ.aliases=[];function YQ(e){(function(t){var n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],r=["on","ignoring","group_right","group_left","by","without"],i=["offset"],a=n.concat(r,i);t.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+r.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+a.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(e)}ZQ.displayName="properties";ZQ.aliases=[];function ZQ(e){e.languages.properties={comment:/^[ \t]*[#!].*$/m,value:{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0,alias:"attr-value"},key:{pattern:/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,alias:"attr-name"},punctuation:/[=:]/}}XQ.displayName="protobuf";XQ.aliases=[];function XQ(e){e.register(xr),function(t){var n=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;t.languages.protobuf=t.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),t.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:n}},builtin:n,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})}(e)}KQ.displayName="stylus";KQ.aliases=[];function KQ(e){(function(t){var n={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},r={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},i={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:n,number:r,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:n,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:r,punctuation:/[{}()\[\];:,]/};i.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:i}},i.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:i}},t.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:i}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:i}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:i}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:i.interpolation}},rest:i}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:i.interpolation,comment:i.comment,punctuation:/[{},]/}},func:i.func,string:i.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:i.interpolation,punctuation:/[{}()\[\];:.]/}})(e)}JQ.displayName="twig";JQ.aliases=[];function JQ(e){e.register(to),e.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},e.hooks.add("before-tokenize",function(t){if(t.language==="twig"){var n=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;e.languages["markup-templating"].buildPlaceholders(t,"twig",n)}}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"twig")})}eG.displayName="pug";eG.aliases=[];function eG(e){e.register(eo),e.register(Ds),function(t){t.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:t.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:t.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:t.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:t.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:t.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:t.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:t.languages.javascript}],punctuation:/[.\-!=|]+/};for(var n=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,r=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],i={},a=0,s=r.length;a",function(){return o.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[o.language,"language-"+o.language],inside:t.languages[o.language]}}})}t.languages.insertBefore("pug","filter",i)}(e)}tG.displayName="puppet";tG.aliases=[];function tG(e){(function(t){t.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var n=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:t.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];t.languages.puppet.heredoc[0].inside.interpolation=n,t.languages.puppet.string.inside["double-quoted"].inside.interpolation=n})(e)}nG.displayName="pure";nG.aliases=[];function nG(e){(function(t){t.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var n=["c",{lang:"c++",alias:"cpp"},"fortran"],r=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;n.forEach(function(i){var a=i;if(typeof i!="string"&&(a=i.alias,i=i.lang),t.languages[a]){var s={};s["inline-lang-"+a]={pattern:RegExp(r.replace("",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:t.util.clone(t.languages.pure["inline-lang"].inside)},s["inline-lang-"+a].inside.rest=t.util.clone(t.languages[a]),t.languages.insertBefore("pure","inline-lang",s)}}),t.languages.c&&(t.languages.pure["inline-lang"].inside.rest=t.util.clone(t.languages.c))})(e)}rG.displayName="purebasic";rG.aliases=["pbfasm"];function rG(e){e.register(xr),e.languages.purebasic=e.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+\$?|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}iG.displayName="purescript";iG.aliases=["purs"];function iG(e){e.register(ET),e.languages.purescript=e.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[e.languages.haskell.operator[0],e.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),e.languages.purs=e.languages.purescript}aG.displayName="qsharp";aG.aliases=["qs"];function aG(e){e.register(xr),function(t){function n(g,b){return g.replace(/<<(\d+)>>/g,function(S,E){return"(?:"+b[+E]+")"})}function r(g,b,S){return RegExp(n(g,b),"")}function i(g,b){for(var S=0;S>/g,function(){return"(?:"+g+")"});return g.replace(/<>/g,"[^\\s\\S]")}var a={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function s(g){return"\\b(?:"+g.trim().replace(/ /g,"|")+")\\b"}var o=RegExp(s(a.type+" "+a.other)),l=/\b[A-Za-z_]\w*\b/.source,u=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[l]),d={keyword:o,punctuation:/[<>()?,.:[\]]/},f=/"(?:\\.|[^\\"])*"/.source;t.languages.qsharp=t.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[f]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[u]),lookbehind:!0,inside:d},{pattern:r(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[u]),lookbehind:!0,inside:d}],keyword:o,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),t.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var p=i(n(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[f]),2);t.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:r(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[p]),greedy:!0,inside:{interpolation:{pattern:r(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[p]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:t.languages.qsharp}}},string:/[\s\S]+/}}})}(e),e.languages.qs=e.languages.qsharp}sG.displayName="q";sG.aliases=[];function sG(e){e.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}oG.displayName="qml";oG.aliases=[];function oG(e){e.register(eo),function(t){for(var n=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,r=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,i=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return n}).replace(//g,function(){return r}),a=0;a<2;a++)i=i.replace(//g,function(){return i});i=i.replace(//g,"[^\\s\\S]"),t.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}}(e)}lG.displayName="qore";lG.aliases=[];function lG(e){e.register(xr),e.languages.qore=e.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}uG.displayName="racket";uG.aliases=["rkt"];function uG(e){e.register(wT),e.languages.racket=e.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),e.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),e.languages.rkt=e.languages.racket}cG.displayName="cshtml";cG.aliases=["razor"];function cG(e){e.register(V1),e.register(Ds),function(t){var n=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,r=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function i(x,k){for(var _=0;_/g,function(){return"(?:"+x+")"});return x.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+r+")").replace(//g,"(?:"+n+")")}var a=i(/\((?:[^()'"@/]|||)*\)/.source,2),s=i(/\[(?:[^\[\]'"@/]|||)*\]/.source,1),o=i(/\{(?:[^{}'"@/]|||)*\}/.source,2),l=i(/<(?:[^<>'"@/]||)*>/.source,1),u=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+a+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+l+")?"+a+"|"+s+")*"+/(?![?!\.(\[]|<(?!\/))/.source,d=/@(?![\w()])/.source+"|"+u,f="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+`|["'][^"'@]*(?:(?:`+d+`)[^"'@]*)+["'])`,p=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*|(?=[\s/>])))+)?/.source.replace(//,f),g=/(?!\d)[^\s>\/=$<%]+/.source+p+/\s*\/?>/.source,b=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|"+i(/<\1/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/*\.{3}(?:[^{}]|)*\})/.source;function s(u,d){return u=u.replace(//g,function(){return r}).replace(//g,function(){return i}).replace(//g,function(){return a}),RegExp(u,d)}a=s(a).source,t.languages.jsx=t.languages.extend("markup",n),t.languages.jsx.tag.pattern=s(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=n.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:s(//.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:s(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var o=function(u){return u?typeof u=="string"?u:typeof u.content=="string"?u.content:u.content.map(o).join(""):""},l=function(u){for(var d=[],f=0;f0&&d[d.length-1].tagName===o(p.content[0].content[1])&&d.pop():p.content[p.content.length-1].content==="/>"||d.push({tagName:o(p.content[0].content[1]),openedBraces:0}):d.length>0&&p.type==="punctuation"&&p.content==="{"?d[d.length-1].openedBraces++:d.length>0&&d[d.length-1].openedBraces>0&&p.type==="punctuation"&&p.content==="}"?d[d.length-1].openedBraces--:g=!0),(g||typeof p=="string")&&d.length>0&&d[d.length-1].openedBraces===0){var b=o(p);f0&&(typeof u[f-1]=="string"||u[f-1].type==="plain-text")&&(b=o(u[f-1])+b,u.splice(f-1,1),f--),u[f]=new t.Token("plain-text",b,null,b)}p.content&&typeof p.content!="string"&&l(p.content)}};t.hooks.add("after-tokenize",function(u){u.language!=="jsx"&&u.language!=="tsx"||l(u.tokens)})}(e)}dG.displayName="tsx";dG.aliases=[];function dG(e){e.register(PI),e.register(VO),function(t){var n=t.util.clone(t.languages.typescript);t.languages.tsx=t.languages.extend("jsx",n),delete t.languages.tsx.parameter,delete t.languages.tsx["literal-property"];var r=t.languages.tsx.tag;r.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+r.pattern.source+")",r.pattern.flags),r.lookbehind=!0}(e)}fG.displayName="reason";fG.aliases=[];function fG(e){e.register(xr),e.languages.reason=e.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),e.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete e.languages.reason.function}hG.displayName="rego";hG.aliases=[];function hG(e){e.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}pG.displayName="renpy";pG.aliases=["rpy"];function pG(e){e.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},e.languages.rpy=e.languages.renpy}mG.displayName="rescript";mG.aliases=["res"];function mG(e){e.languages.rescript={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},char:{pattern:/'(?:[^\r\n\\]|\\(?:.|\w+))'/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*|@[a-z.]*|#[A-Za-z]\w*|#\d/,function:{pattern:/[a-zA-Z]\w*(?=\()|(\.)[a-z]\w*/,lookbehind:!0},number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,boolean:/\b(?:false|true)\b/,"attr-value":/[A-Za-z]\w*(?==)/,constant:{pattern:/(\btype\s+)[a-z]\w*/,lookbehind:!0},tag:{pattern:/(<)[a-z]\w*|(?:<\/)[a-z]\w*/,lookbehind:!0,inside:{operator:/<|>|\//}},keyword:/\b(?:and|as|assert|begin|bool|class|constraint|do|done|downto|else|end|exception|external|float|for|fun|function|if|in|include|inherit|initializer|int|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|string|switch|then|to|try|type|when|while|with)\b/,operator:/\.{3}|:[:=]?|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/,punctuation:/[(){}[\],;.]/},e.languages.insertBefore("rescript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"tag"},rest:e.languages.rescript}},string:/[\s\S]+/}}}),e.languages.res=e.languages.rescript}gG.displayName="rest";gG.aliases=[];function gG(e){e.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}bG.displayName="rip";bG.aliases=[];function bG(e){e.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}yG.displayName="roboconf";yG.aliases=[];function yG(e){e.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}vG.displayName="robotframework";vG.aliases=["robot"];function vG(e){(function(t){var n={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},r={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function i(l,u){var d={};d["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var f in u)d[f]=u[f];return d.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},d.variable=r,d.comment=n,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return l}),"im"),alias:"section",inside:d}}var a={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},s={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:r}},o={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:r}};t.languages.robotframework={settings:i("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:i("Variables"),"test-cases":i("Test Cases",{"test-name":s,documentation:a,property:o}),keywords:i("Keywords",{"keyword-name":s,documentation:a,property:o}),tasks:i("Tasks",{"task-name":s,documentation:a,property:o}),comment:n},t.languages.robot=t.languages.robotframework})(e)}OG.displayName="sas";OG.aliases=[];function OG(e){(function(t){var n=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,r=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,i={pattern:RegExp(n+"[bx]"),alias:"number"},a={pattern:/&[a-z_]\w*/i},s={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},o={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},l=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],u={pattern:RegExp(n),greedy:!0},d=/[$%@.(){}\[\];,\\]/,f={pattern:/%?\b\w+(?=\()/,alias:"keyword"},p={function:f,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":a,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:r,"numeric-constant":i,punctuation:d,string:u},g={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},b={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},S={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},E={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},w=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,x={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return w}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return w}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:l,function:f,"arg-value":p["arg-value"],operator:p.operator,argument:p.arg,number:r,"numeric-constant":i,punctuation:d,string:u}},k={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};t.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return n}),"im"),alias:"language-sql",inside:t.languages.sql},"global-statements":S,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:r,"numeric-constant":i,punctuation:d,string:u}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:l,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-groovy",inside:t.languages.groovy},keyword:k,"submit-statement":E,"global-statements":S,number:r,"numeric-constant":i,punctuation:d,string:u}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:l,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-lua",inside:t.languages.lua},keyword:k,"submit-statement":E,"global-statements":S,number:r,"numeric-constant":i,punctuation:d,string:u}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:l,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:p}},"cas-actions":x,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:p},step:o,keyword:k,function:f,format:g,altformat:b,"global-statements":S,number:r,"numeric-constant":i,punctuation:d,string:u}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,inside:p},"macro-keyword":s,"macro-variable":a,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":s,"macro-variable":a,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:d}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:l,number:r,"numeric-constant":i}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:p},"cas-actions":x,comment:l,function:f,format:g,altformat:b,"numeric-constant":i,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:u,step:o,keyword:k,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:r,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:d}})(e)}SG.displayName="shell-session";SG.aliases=["sh-session","shellsession"];function SG(e){e.register(mT),function(t){var n=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");t.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,function(){return n}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:t.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},t.languages["sh-session"]=t.languages.shellsession=t.languages["shell-session"]}(e)}EG.displayName="smali";EG.aliases=[];function EG(e){e.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}wG.displayName="smalltalk";wG.aliases=[];function wG(e){e.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}xG.displayName="smarty";xG.aliases=[];function xG(e){e.register(to),function(t){t.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:t.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},t.languages.smarty["embedded-php"].inside.smarty.inside=t.languages.smarty,t.languages.smarty.string[0].inside.interpolation.inside.expression.inside=t.languages.smarty;var n=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,r=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return n.source}),"g");t.hooks.add("before-tokenize",function(i){var a="{literal}",s="{/literal}",o=!1;t.languages["markup-templating"].buildPlaceholders(i,"smarty",r,function(l){return l===s&&(o=!1),o?!1:(l===a&&(o=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"smarty")})}(e)}TG.displayName="sml";TG.aliases=["smlnj"];function TG(e){(function(t){var n=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;t.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)(?:\s*(?:(?:\*|->)\s*|,\s*(?:(?=)|(?!)\s+)))*/.source.replace(//g,function(){return/\s*(?:[*,]|->)/.source}).replace(//g,function(){return/(?:'[\w']*||\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+)*/.source}).replace(//g,function(){return/(?!)[a-z\d_][\w'.]*/.source}).replace(//g,function(){return n.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:n,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},t.languages.sml["class-name"][0].inside=t.languages.sml,t.languages.smlnj=t.languages.sml})(e)}kG.displayName="solidity";kG.aliases=["sol"];function kG(e){e.register(xr),e.languages.solidity=e.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),e.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),e.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),e.languages.sol=e.languages.solidity}AG.displayName="solution-file";AG.aliases=["sln"];function AG(e){(function(t){var n={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};t.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:n}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:n}},guid:n,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},t.languages.sln=t.languages["solution-file"]})(e)}_G.displayName="soy";_G.aliases=[];function _G(e){e.register(to),function(t){var n=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;t.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:n,greedy:!0},number:r,punctuation:/[\[\].?]/}},string:{pattern:n,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:r,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},t.hooks.add("before-tokenize",function(i){var a=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,s="{literal}",o="{/literal}",l=!1;t.languages["markup-templating"].buildPlaceholders(i,"soy",a,function(u){return u===o&&(l=!1),l?!1:(u===s&&(l=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"soy")})}(e)}MI.displayName="turtle";MI.aliases=["trig"];function MI(e){e.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},e.languages.trig=e.languages.turtle}CG.displayName="sparql";CG.aliases=["rq"];function CG(e){e.register(MI),e.languages.sparql=e.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),e.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),e.languages.rq=e.languages.sparql}RG.displayName="splunk-spl";RG.aliases=[];function RG(e){e.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}IG.displayName="sqf";IG.aliases=[];function IG(e){e.register(xr),e.languages.sqf=e.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),e.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:e.languages.sqf.comment}}}),delete e.languages.sqf["class-name"]}NG.displayName="squirrel";NG.aliases=[];function NG(e){e.register(xr),e.languages.squirrel=e.languages.extend("clike",{comment:[e.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),e.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}DG.displayName="stan";DG.aliases=[];function DG(e){(function(t){var n=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;t.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+n.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,n],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},t.languages.stan.constraint.inside.expression.inside=t.languages.stan})(e)}PG.displayName="stata";PG.aliases=[];function PG(e){e.register(q1),e.register(DI),e.register(yT),e.languages.stata={comment:[{pattern:/(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|\s)\/\/.*|\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0}],"string-literal":{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}|[‘`']\w[^’`'\r\n]*[’`']/,inside:{punctuation:/^\$\{|\}$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},mata:{pattern:/(^[ \t]*mata[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-mata",inside:e.languages.mata},java:{pattern:/(^[ \t]*java[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-java",inside:e.languages.java},python:{pattern:/(^[ \t]*python[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-python",inside:e.languages.python},command:{pattern:/(^[ \t]*(?:\.[ \t]+)?(?:(?:bayes|bootstrap|by|bysort|capture|collect|fmm|fp|frame|jackknife|mfp|mi|nestreg|noisily|permute|quietly|rolling|simulate|statsby|stepwise|svy|version|xi)\b[^:\r\n]*:[ \t]*|(?:capture|noisily|quietly|version)[ \t]+)?)[a-zA-Z]\w*/m,lookbehind:!0,greedy:!0,alias:"keyword"},variable:/\$\w+|[‘`']\w[^’`'\r\n]*[’`']/,keyword:/\b(?:bayes|bootstrap|by|bysort|capture|clear|collect|fmm|fp|frame|if|in|jackknife|mi[ \t]+estimate|mfp|nestreg|noisily|of|permute|quietly|rolling|simulate|sort|statsby|stepwise|svy|varlist|version|xi)\b/,boolean:/\b(?:off|on)\b/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+/,function:/\b[a-z_]\w*(?=\()/i,operator:/\+\+|--|##?|[<>!=~]=?|[+\-*^&|/]/,punctuation:/[(){}[\],:]/},e.languages.stata["string-literal"].inside.interpolation.inside.expression.inside=e.languages.stata}MG.displayName="iecst";MG.aliases=[];function MG(e){e.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}LG.displayName="supercollider";LG.aliases=["sclang"];function LG(e){e.languages.supercollider={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^"\\]|\\[\s\S])*"/,lookbehind:!0,greedy:!0},char:{pattern:/\$(?:[^\\\r\n]|\\.)/,greedy:!0},symbol:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'|\\\w+/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|arg|classvar|const|nil|var|while)\b/,boolean:/\b(?:false|true)\b/,label:{pattern:/\b[a-z_]\w*(?=\s*:)/,alias:"property"},number:/\b(?:inf|pi|0x[0-9a-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(?:pi)?|\d+r[0-9a-zA-Z]+(?:\.[0-9a-zA-Z]+)?|\d+[sb]{1,4}\d*)\b/,"class-name":/\b[A-Z]\w*\b/,operator:/\.{2,3}|#(?![[{])|&&|[!=]==?|\+>>|\+{1,3}|-[->]|=>|>>|\?\?|@\|?@|\|(?:@|[!=]=)?\||!\?|<[!=>]|\*{1,2}|<{2,3}\*?|[-!%&/<>?@|=`]/,punctuation:/[{}()[\].:,;]|#[[{]/},e.languages.sclang=e.languages.supercollider}$G.displayName="systemd";$G.aliases=[];function $G(e){(function(t){var n={pattern:/^[;#].*/m,greedy:!0},r=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;t.languages.systemd={comment:n,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+r+`|(?=[^"\r +]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+r+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:n,quoted:{pattern:RegExp(/(^|\s)/.source+r),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(e)}xT.displayName="t4-templating";xT.aliases=[];function xT(e){(function(t){function n(i,a,s){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:a,alias:s}}}}function r(i){var a=t.languages[i],s="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:n("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:n("=",a,s),"class-feature":n("\\+",a,s),standard:n("",a,s)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:r})})(e)}FG.displayName="t4-cs";FG.aliases=["t4"];function FG(e){e.register(V1),e.register(xT),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}BG.displayName="t4-vb";BG.aliases=[];function BG(e){e.register(xT),e.register(OT),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}UG.displayName="tap";UG.aliases=[];function UG(e){e.register(bT),e.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:e.languages.yaml,alias:"language-yaml"}}}zG.displayName="tcl";zG.aliases=[];function zG(e){e.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}HG.displayName="tt2";HG.aliases=[];function HG(e){e.register(xr),e.register(to),function(t){t.languages.tt2=t.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),t.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),t.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),t.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete t.languages.tt2.string,t.hooks.add("before-tokenize",function(n){var r=/\[%[\s\S]+?%\]/g;t.languages["markup-templating"].buildPlaceholders(n,"tt2",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"tt2")})}(e)}jG.displayName="toml";jG.aliases=[];function jG(e){(function(t){var n=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function r(i){return i.replace(/__/g,function(){return n})}t.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(r(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(r(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(e)}WG.displayName="tremor";WG.aliases=["trickle","troy"];function WG(e){(function(t){t.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var n=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;t.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+n+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+n+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(n),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.tremor}}},string:/[\s\S]+/}},t.languages.troy=t.languages.tremor,t.languages.trickle=t.languages.tremor})(e)}QG.displayName="typoscript";QG.aliases=["tsconfig"];function QG(e){(function(t){var n=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;t.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:n}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:n,number:/^\d+$/,punctuation:/[,|:]/}},keyword:n,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},t.languages.tsconfig=t.languages.typoscript})(e)}GG.displayName="unrealscript";GG.aliases=["uc","uscript"];function GG(e){e.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},e.languages.uc=e.languages.uscript=e.languages.unrealscript}VG.displayName="uorazor";VG.aliases=[];function VG(e){e.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}qG.displayName="v";qG.aliases=[];function qG(e){e.register(xr),function(t){var n={pattern:/[\s\S]+/,inside:null};t.languages.v=t.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":n}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),n.inside=t.languages.v,t.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),t.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),t.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:t.languages.v.generic.inside}}}})}(e)}YG.displayName="vala";YG.aliases=[];function YG(e){e.register(xr),e.languages.vala=e.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),e.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:e.languages.vala}},string:/[\s\S]+/}}}),e.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}ZG.displayName="velocity";ZG.aliases=[];function ZG(e){e.register(Ds),function(t){t.languages.velocity=t.languages.extend("markup",{});var n={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};n.variable.inside={string:n.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:n.number,boolean:n.boolean,punctuation:n.punctuation},t.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:n}},variable:n.variable}),t.languages.velocity.tag.inside["attr-value"].inside.rest=t.languages.velocity}(e)}XG.displayName="verilog";XG.aliases=[];function XG(e){e.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}KG.displayName="vhdl";KG.aliases=[];function KG(e){e.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|private|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|view|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}JG.displayName="vim";JG.aliases=[];function JG(e){e.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}eV.displayName="visual-basic";eV.aliases=["vb","vba"];function eV(e){e.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},e.languages.vb=e.languages["visual-basic"],e.languages.vba=e.languages["visual-basic"]}tV.displayName="warpscript";tV.aliases=[];function tV(e){e.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}nV.displayName="wasm";nV.aliases=[];function nV(e){e.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\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|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\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/,punctuation:/[()]/}}rV.displayName="web-idl";rV.aliases=["webidl"];function rV(e){(function(t){var n=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,r="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+n+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};t.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+n),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp("("+/\bcallback\s+/.source+n+/\s*=\s*/.source+")"+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\btypedef\b\s*)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+n),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+n),lookbehind:!0},RegExp(n+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+n),lookbehind:!0},{pattern:RegExp(r+"(?="+/\s*(?:\.{3}\s*)?/.source+n+/\s*[(),;=]/.source+")"),inside:i}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var a in t.languages["web-idl"])a!=="class-name"&&(i[a]=t.languages["web-idl"][a]);t.languages.webidl=t.languages["web-idl"]})(e)}iV.displayName="wgsl";iV.aliases=[];function iV(e){e.languages.wgsl={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"builtin-attribute":{pattern:/(@)builtin\(.*?\)/,lookbehind:!0,inside:{attribute:{pattern:/^builtin/,alias:"attr-name"},punctuation:/[(),]/,"built-in-values":{pattern:/\b(?:frag_depth|front_facing|global_invocation_id|instance_index|local_invocation_id|local_invocation_index|num_workgroups|position|sample_index|sample_mask|vertex_index|workgroup_id)\b/,alias:"attr-value"}}},attributes:{pattern:/(@)(?:align|binding|compute|const|fragment|group|id|interpolate|invariant|location|size|vertex|workgroup_size)/i,lookbehind:!0,alias:"attr-name"},functions:{pattern:/\b(fn\s+)[_a-zA-Z]\w*(?=[(<])/,lookbehind:!0,alias:"function"},keyword:/\b(?:bitcast|break|case|const|continue|continuing|default|discard|else|enable|fallthrough|fn|for|function|if|let|loop|private|return|storage|struct|switch|type|uniform|var|while|workgroup)\b/,builtin:/\b(?:abs|acos|acosh|all|any|array|asin|asinh|atan|atan2|atanh|atomic|atomicAdd|atomicAnd|atomicCompareExchangeWeak|atomicExchange|atomicLoad|atomicMax|atomicMin|atomicOr|atomicStore|atomicSub|atomicXor|bool|ceil|clamp|cos|cosh|countLeadingZeros|countOneBits|countTrailingZeros|cross|degrees|determinant|distance|dot|dpdx|dpdxCoarse|dpdxFine|dpdy|dpdyCoarse|dpdyFine|exp|exp2|extractBits|f32|f64|faceForward|firstLeadingBit|floor|fma|fract|frexp|fwidth|fwidthCoarse|fwidthFine|i32|i64|insertBits|inverseSqrt|ldexp|length|log|log2|mat[2-4]x[2-4]|max|min|mix|modf|normalize|override|pack2x16float|pack2x16snorm|pack2x16unorm|pack4x8snorm|pack4x8unorm|pow|ptr|quantizeToF16|radians|reflect|refract|reverseBits|round|sampler|sampler_comparison|select|shiftLeft|shiftRight|sign|sin|sinh|smoothstep|sqrt|staticAssert|step|storageBarrier|tan|tanh|textureDimensions|textureGather|textureGatherCompare|textureLoad|textureNumLayers|textureNumLevels|textureNumSamples|textureSample|textureSampleBias|textureSampleCompare|textureSampleCompareLevel|textureSampleGrad|textureSampleLevel|textureStore|texture_1d|texture_2d|texture_2d_array|texture_3d|texture_cube|texture_cube_array|texture_depth_2d|texture_depth_2d_array|texture_depth_cube|texture_depth_cube_array|texture_depth_multisampled_2d|texture_multisampled_2d|texture_storage_1d|texture_storage_2d|texture_storage_2d_array|texture_storage_3d|transpose|trunc|u32|u64|unpack2x16float|unpack2x16snorm|unpack2x16unorm|unpack4x8snorm|unpack4x8unorm|vec[2-4]|workgroupBarrier)\b/,"function-calls":{pattern:/\b[_a-z]\w*(?=\()/i,alias:"function"},"class-name":/\b(?:[A-Z][A-Za-z0-9]*)\b/,"bool-literal":{pattern:/\b(?:false|true)\b/,alias:"boolean"},"hex-int-literal":{pattern:/\b0[xX][0-9a-fA-F]+[iu]?\b(?![.pP])/,alias:"number"},"hex-float-literal":{pattern:/\b0[xX][0-9a-fA-F]*(?:\.[0-9a-fA-F]*)?(?:[pP][+-]?\d+[fh]?)?/,alias:"number"},"decimal-float-literal":[{pattern:/\d*\.\d+(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+\.\d*(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+[eE](?:\+|-)?\d+[fh]?/,alias:"number"},{pattern:/\b\d+[fh]\b/,alias:"number"}],"int-literal":{pattern:/\b\d+[iu]?\b/,alias:"number"},operator:[{pattern:/(?:\^|~|\|(?!\|)|\|\||&&|<<|>>|!)(?!=)/},{pattern:/&(?![&=])/},{pattern:/(?:\+=|-=|\*=|\/=|%=|\^=|&=|\|=|<<=|>>=)/},{pattern:/(^|[^<>=!])=(?![=>])/,lookbehind:!0},{pattern:/(?:==|!=|<=|\+\+|--|(^|[^=])>=)/,lookbehind:!0},{pattern:/(?:(?:[+%]|(?:\*(?!\w)))(?!=))|(?:-(?!>))|(?:\/(?!\/))/},{pattern:/->/}],punctuation:/[@(){}[\],;<>:.]/}}aV.displayName="wiki";aV.aliases=[];function aV(e){e.register(Ds),e.languages.wiki=e.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:e.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),e.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:e.languages.markup.tag.inside}}}})}sV.displayName="wolfram";sV.aliases=["mathematica","nb","wl"];function sV(e){e.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.mathematica=e.languages.wolfram,e.languages.wl=e.languages.wolfram,e.languages.nb=e.languages.wolfram}oV.displayName="wren";oV.aliases=[];function oV(e){e.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},e.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:e.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}lV.displayName="xeora";lV.aliases=["xeoracube"];function lV(e){e.register(Ds),function(t){t.languages.xeora=t.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),t.languages.insertBefore("inside","punctuation",{variable:t.languages.xeora["function-inline"].inside.variable},t.languages.xeora["function-block"]),t.languages.xeoracube=t.languages.xeora}(e)}uV.displayName="xml-doc";uV.aliases=[];function uV(e){e.register(Ds),function(t){function n(s,o){t.languages[s]&&t.languages.insertBefore(s,"comment",{"doc-comment":o})}var r=t.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:r}},a={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:r}};n("csharp",i),n("fsharp",i),n("vbnet",a)}(e)}cV.displayName="xojo";cV.aliases=[];function cV(e){e.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}dV.displayName="xquery";dV.aliases=[];function dV(e){e.register(Ds),function(t){t.languages.xquery=t.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),t.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,t.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,t.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,t.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:t.languages.xquery,alias:"language-xquery"};var n=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(n).join("")},r=function(i){for(var a=[],s=0;s0&&a[a.length-1].tagName===n(o.content[0].content[1])&&a.pop():o.content[o.content.length-1].content==="/>"||a.push({tagName:n(o.content[0].content[1]),openedBraces:0}):a.length>0&&o.type==="punctuation"&&o.content==="{"&&(!i[s+1]||i[s+1].type!=="punctuation"||i[s+1].content!=="{")&&(!i[s-1]||i[s-1].type!=="plain-text"||i[s-1].content!=="{")?a[a.length-1].openedBraces++:a.length>0&&a[a.length-1].openedBraces>0&&o.type==="punctuation"&&o.content==="}"?a[a.length-1].openedBraces--:o.type!=="comment"&&(l=!0)),(l||typeof o=="string")&&a.length>0&&a[a.length-1].openedBraces===0){var u=n(o);s0&&(typeof i[s-1]=="string"||i[s-1].type==="plain-text")&&(u=n(i[s-1])+u,i.splice(s-1,1),s--),/^\s+$/.test(u)?i[s]=u:i[s]=new t.Token("plain-text",u,null,u)}o.content&&typeof o.content!="string"&&r(o.content)}};t.hooks.add("after-tokenize",function(i){i.language==="xquery"&&r(i.tokens)})}(e)}fV.displayName="yang";fV.aliases=[];function fV(e){e.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}hV.displayName="zig";hV.aliases=[];function hV(e){(function(t){function n(u){return function(){return u}}var r=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,i="\\b(?!"+r.source+")(?!\\d)\\w+\\b",a=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,s=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,n(a)),o=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,n(i)),l="(?!\\s)(?:!?\\s*(?:"+s+"\\s*)*"+o+")+";t.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,n(l)).replace(//g,n(a))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,n(l)).replace(//g,n(a))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:r,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},t.languages.zig["class-name"].forEach(function(u){u.inside===null&&(u.inside=t.languages.zig)})})(e)}le.register(Ds);le.register(Fm);le.register(xr);le.register(SI);le.register(eo);le.register(RH);le.register(IH);le.register(NH);le.register(DH);le.register(PH);le.register(MH);le.register(LH);le.register($H);le.register(GO);le.register(FH);le.register(BH);le.register(UH);le.register(zH);le.register(Vd);le.register(G1);le.register(bI);le.register(HH);le.register(jH);le.register(mT);le.register(bT);le.register(TI);le.register(WH);le.register(QH);le.register(V1);le.register(GH);le.register(VH);le.register(qH);le.register(YH);le.register(ZH);le.register(XH);le.register(KH);le.register(JH);le.register(vT);le.register(ej);le.register(tj);le.register(nj);le.register(rj);le.register(ij);le.register(aj);le.register(sj);le.register(oj);le.register(lj);le.register(uj);le.register(cj);le.register(dj);le.register(fj);le.register(hj);le.register(pj);le.register(mj);le.register(gj);le.register(bj);le.register(yj);le.register(vj);le.register(Oj);le.register(Sj);le.register(Ej);le.register(wj);le.register(xj);le.register(Z1);le.register(Tj);le.register(kj);le.register(Aj);le.register(_j);le.register(Cj);le.register(Rj);le.register(Ij);le.register(Nj);le.register(Dj);le.register(Pj);le.register(yI);le.register(to);le.register(Mj);le.register(Lj);le.register($j);le.register(Fj);le.register(Bj);le.register(Uj);le.register(zj);le.register(Hj);le.register(jj);le.register(Wj);le.register(gT);le.register(Qj);le.register(Gj);le.register(Vj);le.register(qj);le.register(Yj);le.register(Zj);le.register(Xj);le.register(Kj);le.register(Jj);le.register(eW);le.register(tW);le.register(nW);le.register(rW);le.register(iW);le.register(aW);le.register(sW);le.register(oW);le.register(lW);le.register(uW);le.register(cW);le.register(dW);le.register(fW);le.register(vI);le.register(hW);le.register(pW);le.register(mW);le.register(gW);le.register(wI);le.register(II);le.register(bW);le.register(yW);le.register(vW);le.register(ET);le.register(OW);le.register(SW);le.register(EW);le.register(wW);le.register(xW);le.register(TW);le.register(QO);le.register(kW);le.register(AW);le.register(_W);le.register(CW);le.register(RW);le.register(IW);le.register(NW);le.register(DW);le.register(OI);le.register(PW);le.register(MW);le.register(q1);le.register(Y1);le.register(XO);le.register(LW);le.register($W);le.register(FW);le.register(BW);le.register(UW);le.register(zW);le.register(HW);le.register(VO);le.register(jW);le.register(WW);le.register(QW);le.register(GW);le.register(VW);le.register(qW);le.register(YW);le.register(ZW);le.register(XW);le.register(EI);le.register(KW);le.register(JW);le.register(eQ);le.register(tQ);le.register(wT);le.register(nQ);le.register(rQ);le.register(iQ);le.register(aQ);le.register(sQ);le.register(oQ);le.register(lQ);le.register(uQ);le.register(xI);le.register(DI);le.register(cQ);le.register(dQ);le.register(fQ);le.register(hQ);le.register(pQ);le.register(mQ);le.register(gQ);le.register(bQ);le.register(yQ);le.register(vQ);le.register(OQ);le.register(SQ);le.register(EQ);le.register(wQ);le.register(xQ);le.register(TQ);le.register(kQ);le.register(AQ);le.register(_Q);le.register(kI);le.register(CQ);le.register(RQ);le.register(IQ);le.register(NQ);le.register(DQ);le.register(PQ);le.register(MQ);le.register(LQ);le.register($Q);le.register(FQ);le.register(BQ);le.register(UQ);le.register(AI);le.register(zQ);le.register(HQ);le.register(jQ);le.register(WQ);le.register(QQ);le.register(GQ);le.register(VQ);le.register(qQ);le.register(YQ);le.register(ZQ);le.register(XQ);le.register(KQ);le.register(JQ);le.register(eG);le.register(tG);le.register(nG);le.register(rG);le.register(iG);le.register(yT);le.register(aG);le.register(sG);le.register(oG);le.register(lG);le.register(_I);le.register(uG);le.register(cG);le.register(PI);le.register(dG);le.register(fG);le.register(hG);le.register(pG);le.register(mG);le.register(gG);le.register(bG);le.register(yG);le.register(vG);le.register(CI);le.register(OG);le.register(RI);le.register(SG);le.register(EG);le.register(wG);le.register(xG);le.register(TG);le.register(kG);le.register(AG);le.register(_G);le.register(MI);le.register(CG);le.register(RG);le.register(IG);le.register(NG);le.register(DG);le.register(PG);le.register(MG);le.register(LG);le.register(NI);le.register($G);le.register(xT);le.register(FG);le.register(OT);le.register(BG);le.register(UG);le.register(zG);le.register(HG);le.register(jG);le.register(WG);le.register(QG);le.register(GG);le.register(VG);le.register(qG);le.register(YG);le.register(ZG);le.register(XG);le.register(KG);le.register(JG);le.register(eV);le.register(tV);le.register(nV);le.register(rV);le.register(iV);le.register(aV);le.register(sV);le.register(oV);le.register(lV);le.register(uV);le.register(cV);le.register(dV);le.register(fV);le.register(hV);function h$(){h$=function(i,a){return new n(i,void 0,a)};var e=RegExp.prototype,t=new WeakMap;function n(i,a,s){var o=new RegExp(i,a);return t.set(o,s||t.get(i)),GC(o,n.prototype)}function r(i,a){var s=t.get(a);return Object.keys(s).reduce(function(o,l){var u=s[l];if(typeof u=="number")o[l]=i[u];else{for(var d=0;i[u[d]]===void 0&&d+1]+)>/g,function(l,u){var d=s[u];return"$"+(Array.isArray(d)?d.join("$"):d)}))}if(typeof a=="function"){var o=this;return e[Symbol.replace].call(this,i,function(){var l=arguments;return typeof l[l.length-1]!="object"&&(l=[].slice.call(l)).push(r(l,o)),a.apply(this,l)})}return e[Symbol.replace].call(this,i,a)},h$.apply(this,arguments)}function GC(e,t){return GC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},GC(e,t)}function Ane(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var sot=function(e){return function(t){return t===void 0&&(t={}),function(r,i){if(i&&!r.registered(i))throw new Error('The default language "'+i+'" is not registered with refractor.')}(e,t.defaultLanguage),function(r){Io(r,"element",n)};function n(r,i,a){var s,o;if(a&&a.tagName==="pre"&&r.tagName==="code"){var l=(r==null||(s=r.data)==null?void 0:s.meta)||(r==null||(o=r.properties)==null?void 0:o.metastring)||"";r.properties.className?typeof r.properties.className=="boolean"?r.properties.className=[]:Array.isArray(r.properties.className)||(r.properties.className=[r.properties.className]):r.properties.className=[];var u,d,f=function(C){for(var R,N=k7(C.properties.className);!(R=N()).done;){var M=R.value;if(M.slice(0,9)==="language-")return M.slice(9).toLowerCase()}return null}(r);if(!f&&t.defaultLanguage&&r.properties.className.push("language-"+(f=t.defaultLanguage)),r.properties.className.push("code-highlight"),f)try{var p,g;g=(p=f)!=null&&p.includes("diff-")?f.split("-")[1]:f,u=e.highlight($y(r),g),a.properties.className=(a.properties.className||[]).concat("language-"+g)}catch(C){if(!t.ignoreMissing||!/Unknown language/.test(C.message))throw C;u=r}else u=r;u.children=(d=1,function C(R){return R.reduce(function(N,M){if(M.type==="text"){var U=M.value,F=(U.match(/\n/g)||"").length;if(F===0)M.position={start:{line:d,column:1},end:{line:d,column:1}},N.push(M);else for(var G,V=U.split(` +`),ie=k7(V.entries());!(G=ie()).done;){var ne=G.value,q=ne[0],re=ne[1];N.push({type:"text",value:q===V.length-1?re:re+` +`,position:{start:{line:d+q,column:1},end:{line:d+q,column:1}}})}return d+=F,N}if(Object.prototype.hasOwnProperty.call(M,"children")){var ee=d;return M.children=C(M.children),N.push(M),M.position={start:{line:ee,column:1},end:{line:d,column:1}},N}return N.push(M),N},[])})(u.children),u.position=u.children.length>0?{start:{line:u.children[0].position.start.line,column:0},end:{line:u.children[u.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var b,S=function(C){var R=/{([\d,-]+)}/,N=C.split(",").map(function(F){return F.trim()}).join();if(R.test(N)){var M=R.exec(N)[1],U=Tst(M);return function(F){return U.includes(F+1)}}return function(){return!1}}(l),E=function(C){var R=h$(/showLineNumbers=(\d+)/i,{lines:1});if(R.test(C)){var N=R.exec(C);return Number(N.groups.lines)}return 1}(l),w=function(C){for(var R=new Array(C),N=0;N=M+1});U.children=F.children,!l.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||x.some(function(G){return l.toLowerCase().includes(G)})||(U.properties.line=[(M+E).toString()],U.properties.className.push("line-number")),S(M)&&U.properties.className.push("highlight-line"),(f==="diff"||(C=f)!=null&&C.includes("diff-"))&&$y(U).substring(0,1)==="-"?U.properties.className.push("deleted"):(f==="diff"||(R=f)!=null&&R.includes("diff-"))&&$y(U).substring(0,1)==="+"&&U.properties.className.push("inserted")},_=k7(w.entries());!(b=_()).done;)k();w.length>0&&$y(w[w.length-1]).trim()===""&&w.pop(),r.children=w}}}},oot=sot(le),z4={},p$={};function lot(e,t){for(var n=t,r=0;r","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),g$=TT(g1e,{namespace:{wildcard:!0},combinators:["~"],attributes:{operators:["^=","$=","*="]},pseudoElements:{notation:"both"},pseudoClasses:{definitions:{NoArgument:["root","last-child","first-of-type","last-of-type","only-child","only-of-type","empty","target","enabled","disabled","checked","indeterminate"],Formula:["nth-child","nth-last-child","nth-of-type","nth-last-of-type"],Selector:["not"]}}}),b$=TT(g$,{combinators:["||"],attributes:{caseSensitivityModifiers:["i","I","s","S"]},pseudoClasses:{definitions:{NoArgument:["any-link","local-link","target-within","scope","current","past","future","focus-within","focus-visible","read-write","read-only","placeholder-shown","default","valid","invalid","in-range","out-of-range","required","optional","blank","user-invalid"],Formula:["nth-col","nth-last-col"],String:["dir"],FormulaOfSelector:["nth-child","nth-last-child"],Selector:["current","is","where","has"]}}}),got=TT(b$,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),Dne={css1:m1e,css2:g1e,css3:g$,"selectors-3":g$,"selectors-4":b$,latest:b$,progressive:got};function C2(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function Pne(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function R2(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var bot={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},yot={'"':!0,"'":!0},_7={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},vot=6,C7="css-selector-parser parse error: ";function Oot(e){e===void 0&&(e={});var t=e.syntax,n=t===void 0?"latest":t,r=e.substitutes,i=e.strict,a=i===void 0?!0:i,s=typeof n=="object"?n:Dne[n];s.baseSyntax&&(s=TT(Dne[s.baseSyntax],s));var o=s.tag?[!0,!!hot(s.tag).wildcard]:[!1,!1],l=o[0],u=o[1],d=!!s.ids,f=!!s.classNames,p=!!s.namespace,g=s.namespace&&(s.namespace===!0||s.namespace.wildcard===!0);if(p&&!l)throw new Error("".concat(C7,"Namespaces cannot be enabled while tags are disabled."));var b=!!r,S=s.combinators?_ne(s.combinators):z4,E=s.attributes?[!0,s.attributes.operators?_ne(s.attributes.operators):z4,s.attributes.caseSensitivityModifiers?uot(s.attributes.caseSensitivityModifiers):p$,s.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,z4,p$,!1],w=E[0],x=E[1],k=E[2],_=E[3],C=_||Object.keys(k).length>0,R=s.pseudoClasses?[!0,s.pseudoClasses.definitions?Rne(s.pseudoClasses.definitions):x_,s.pseudoClasses.unknown==="accept"]:[!1,x_,!1],N=R[0],M=R[1],U=R[2],F=s.pseudoElements?[!0,s.pseudoElements.notation==="singleColon"||s.pseudoElements.notation==="both",!s.pseudoElements.notation||s.pseudoElements.notation==="doubleColon"||s.pseudoElements.notation==="both",s.pseudoElements.definitions?Rne(Array.isArray(s.pseudoElements.definitions)?{NoArgument:s.pseudoElements.definitions}:s.pseudoElements.definitions):x_,s.pseudoElements.unknown==="accept"]:[!1,!1,!1,x_,!1],G=F[0],V=F[1],ie=F[2],ne=F[3],q=F[4],re="",ee=re.length,Z=0,se="",W=function(ye){return se===ye},Pe=function(){return W("*")||C2(se)},Ee=function(ye){Z=ye,se=re.charAt(Z)},X=function(){Z++,se=re.charAt(Z)},Re=function(){var ye=se;return Z++,se=re.charAt(Z),ye};function Ue(ye){var ve=Math.min(ee-1,Z),ke=new Error("".concat(C7).concat(ye," Pos: ").concat(ve,"."));throw ke.position=ve,ke.name="ParserError",ke}function oe(ye,ve){if(!ye)return Ue(ve)}var rt=function(){oe(Z=ee},et=function(ye){oe(Z=2&&Ue("Identifiers cannot start with two hyphens with strict mode on."),_7[se]&&Ue("Identifiers cannot start with hyphens followed by digits.");Z0)return(t.commaSeparated?CH:_H)(e)}else return String(e)}const Cot=[];function Rot(e,t){return(t.properties.className||Cot).includes(e.name)}function Iot(e,t){return t.properties.id===e.name}function Not(e,t){return e.name===t.tagName}function Dot(e,t){return function(n,r){let i=Lne(n,"tag");const a=Lne(r??"*","range"),s=[];let o=-1;for(;++o=Fne&&e.charCodeAt(t)<=Fot;)u=u*10+(e.charCodeAt(t)-Fne),t++;return t===l?null:u}function o(){for(;ta<=n;if(t===0)return a=>a===n;if(t===1)return n<0?Bne.trueFunc:a=>a>=n;const r=Math.abs(t),i=(n%r+r)%r;return t>1?a=>a>=n&&a%r===i:a=>a<=n&&a%r===i}function Une(e){return zot(Bot(e))}const zne={}.hasOwnProperty;function pV(e,t){const n=t||{};function r(i,...a){let s=r.invalid;const o=r.handlers;if(i&&zne.call(i,e)){const l=String(i[e]);s=zne.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}const Hot=Une.default||Une,jot=pV("name",{handlers:{"any-link":Wot,blank:Qot,checked:Got,dir:Vot,disabled:O1e,empty:qot,enabled:Yot,"first-child":Zot,"first-of-type":Xot,has:Kot,is:S1e,lang:elt,"last-child":tlt,"last-of-type":nlt,not:rlt,"nth-child":ilt,"nth-last-child":alt,"nth-last-of-type":slt,"nth-of-type":olt,"only-child":llt,"only-of-type":ult,optional:clt,"read-only":dlt,"read-write":E1e,required:w1e,root:flt,scope:hlt},invalid:Jot,unknown:plt});function Wot(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&P1(t,"href")}function sh(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function Qot(e,t){return!x1e(t,n);function n(r){return r.type==="element"||r.type==="text"&&!v1e(r)}}function Got(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&P1(t,"checked")):t.tagName==="option"?P1(t,"selected"):!1}function Vot(e,t,n,r,i){return e.argument,e.argument.type,i.direction===e.argument.value}function O1e(e,t){return(t.tagName==="button"||t.tagName==="input"||t.tagName==="select"||t.tagName==="textarea"||t.tagName==="optgroup"||t.tagName==="option"||t.tagName==="menuitem"||t.tagName==="fieldset")&&P1(t,"disabled")}function qot(e,t){return!x1e(t,n);function n(r){return r.type==="element"||r.type==="text"}}function Yot(e,t){return!O1e(e,t)}function Zot(e,t,n,r,i){return sh(i,e),i.elementIndex===0}function Xot(e,t,n,r,i){return sh(i,e),i.typeIndex===0}function LI(e){let t=e._cachedFn;if(!t){const n=e.argument;if(n.type!=="Formula")throw new Error("Expected `nth` formula, such as `even` or `2n+1` (`of` is not yet supported)");t=Hot(n.a+"n+"+n.b),e._cachedFn=t}return t}function Kot(e,t,n,r,i){e.argument,e.argument.type;const a={...i,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return mV(a,{type:"root",children:t.children}),a.results.length>0}function Jot(){}function S1e(e,t,n,r,i){e.argument,e.argument.type;const a={...i,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return mV(a,t),a.results[0]===t}function elt(e,t,n,r,i){return e.argument,e.argument.type,i.language!==""&&i.language!==void 0&&Pot(i.language,ax(e.argument.value)).length>0}function tlt(e,t,n,r,i){return sh(i,e),!!(i.elementCount&&i.elementIndex===i.elementCount-1)}function nlt(e,t,n,r,i){return sh(i,e),typeof i.typeIndex=="number"&&typeof i.typeCount=="number"&&i.typeIndex===i.typeCount-1}function rlt(e,t,n,r,i){return!S1e(e,t,n,r,i)}function ilt(e,t,n,r,i){const a=LI(e);return sh(i,e),typeof i.elementIndex=="number"&&a(i.elementIndex)}function alt(e,t,n,r,i){const a=LI(e);return sh(i,e),!!(typeof i.elementCount=="number"&&typeof i.elementIndex=="number"&&a(i.elementCount-i.elementIndex-1))}function slt(e,t,n,r,i){const a=LI(e);return sh(i,e),typeof i.typeCount=="number"&&typeof i.typeIndex=="number"&&a(i.typeCount-1-i.typeIndex)}function olt(e,t,n,r,i){const a=LI(e);return sh(i,e),typeof i.typeIndex=="number"&&a(i.typeIndex)}function llt(e,t,n,r,i){return sh(i,e),i.elementCount===1}function ult(e,t,n,r,i){return sh(i,e),i.typeCount===1}function clt(e,t){return!w1e(e,t)}function dlt(e,t,n,r,i){return!E1e(e,t,n,r,i)}function E1e(e,t,n,r,i){return t.tagName==="input"||t.tagName==="textarea"?!P1(t,"readOnly")&&!P1(t,"disabled"):!!i.editableOrEditingHost}function w1e(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&P1(t,"required")}function flt(e,t,n,r,i){return!!((!r||r.type==="root")&&i.schema&&(i.schema.space==="html"||i.schema.space==="svg")&&(t.tagName==="html"||t.tagName==="svg"))}function hlt(e,t,n,r,i){return i.scopeElements.includes(t)}function x1e(e,t){const n=e.children;let r=-1;for(;++r"?"directChild":"descendant";I7(a,u,l)}else e.found=!0,e.results.includes(n)||e.results.push(n)}o.combinator===void 0?I7(a,"descendant",o):o.combinator==="~"&&I7(a,"generalSibling",o)}return a}function H4(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:glt}function Hne(e,t){if(t.type==="element"){const n=t.tagName.toUpperCase(),r=(e.types.get(n)||0)+1;e.count++,e.types.set(n,r)}}function T1e(e,t,n,r,i,a){let s={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const o=kot(e,n);if(n.type==="element"){let l=e.rootQuery.rules;i&&i!==a&&(l=e.rootQuery.rules.filter(u=>u.combinator===void 0||u.combinator===">"&&i===a)),s=ylt(e,H4(t,l),n,r,i)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&blt(e,s,n,a),o(),s}function vlt(e,t,n){const r=Olt(e,t);return mV(r,t||void 0),r.results}function Olt(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:Eot(e),schema:K1,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const gV=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=gV(n.children))}),t),Slt=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const i=vlt(t,r);i&&i.length>0&&Io(r,i,(a,s,o)=>{n(a,s,o)});return}Io(r,(i,a,s)=>{n(i,a,s)})}}},Elt=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),wlt=(e=[],t)=>{let n=t;for(;n>-1;){if(n--,!e[n])return;if(e[n]&&e[n].value&&e[n].value.replace(/(\n|\s)/g,"")!==""||e[n].type!=="text")return!/^rehype:/.test(e[n].value)||e[n].type!=="comment"?void 0:e[n]}},k1e=(e=[],t,n,r)=>{let i=t;for(;i/,"$2")||"")?void 0:r?k1e(e,i,"pre",r)?void 0:(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a):(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a)}},jne=({value:e=""})=>{const t=Elt(e.replace(/^/,"$1").replace(/^rehype:/,""));return Object.keys(t).forEach(n=>{t[n]==="true"&&(t[n]=!0),t[n]==="false"&&(t[n]=!1),typeof t[n]=="string"&&!/^0/.test(t[n])&&!isNaN(+t[n])&&(t[n]=+t[n])}),t},Wne=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},xlt=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{Io(r,"element",(i,a,s)=>{if(n&&i.tagName==="pre"&&i&&Array.isArray(i.children)&&s&&Array.isArray(s.children)&&s.children.length>1){const o=i.children[0];if(o&&o.tagName==="code"&&typeof a=="number"){const l=wlt(s.children,a);if(l){const u=jne(l);Object.keys(u).length>0&&(i.properties={...i.properties,"data-type":"rehyp"},o.properties=Wne(o.properties,u,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(i.tagName)&&s&&Array.isArray(s.children)&&typeof a=="number"){const o=k1e(s.children,a,"",n);if(o){const l=jne(o);Object.keys(l).length>0&&(i.properties=Wne(i.properties,l,t))}}})}},A1e=-1,$I=0,qC=1,YC=2,bV=3,yV=4,vV=5,OV=6,_1e=7,C1e=8,Qne=typeof self=="object"?self:globalThis,Tlt=(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 $I:case A1e:return n(s,i);case qC:{const o=n([],i);for(const l of s)o.push(r(l));return o}case YC:{const o=n({},i);for(const[l,u]of s)o[r(l)]=r(u);return o}case bV:return n(new Date(s),i);case yV:{const{source:o,flags:l}=s;return n(new RegExp(o,l),i)}case vV:{const o=n(new Map,i);for(const[l,u]of s)o.set(r(l),r(u));return o}case OV:{const o=n(new Set,i);for(const l of s)o.add(r(l));return o}case _1e:{const{name:o,message:l}=s;return n(new Qne[o](l),i)}case C1e:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i)}return n(new Qne[a](s),i)};return r},Gne=e=>Tlt(new Map,e)(0),ey="",{toString:klt}={},{keys:Alt}=Object,I2=e=>{const t=typeof e;if(t!=="object"||!e)return[$I,t];const n=klt.call(e).slice(8,-1);switch(n){case"Array":return[qC,ey];case"Object":return[YC,ey];case"Date":return[bV,ey];case"RegExp":return[yV,ey];case"Map":return[vV,ey];case"Set":return[OV,ey]}return n.includes("Array")?[qC,n]:n.includes("Error")?[_1e,n]:[YC,n]},T_=([e,t])=>e===$I&&(t==="function"||t==="symbol"),_lt=(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]=I2(s);switch(o){case $I:{let d=s;switch(l){case"bigint":o=C1e,d=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);d=null;break;case"undefined":return i([A1e],s)}return i([o,d],s)}case qC:{if(l)return i([l,[...s]],s);const d=[],f=i([o,d],s);for(const p of s)d.push(a(p));return f}case YC:{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 d=[],f=i([o,d],s);for(const p of Alt(s))(e||!T_(I2(s[p])))&&d.push([a(p),a(s[p])]);return f}case bV:return i([o,s.toISOString()],s);case yV:{const{source:d,flags:f}=s;return i([o,{source:d,flags:f}],s)}case vV:{const d=[],f=i([o,d],s);for(const[p,g]of s)(e||!(T_(I2(p))||T_(I2(g))))&&d.push([a(p),a(g)]);return f}case OV:{const d=[],f=i([o,d],s);for(const p of s)(e||!T_(I2(p)))&&d.push(a(p));return f}}const{message:u}=s;return i([o,{name:l,message:u}],s)};return a},Vne=(e,{json:t,lossy:n}={})=>{const r=[];return _lt(!(t||n),!!t,new Map,r)(e),r},Id=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Gne(Vne(e,t)):structuredClone(e):(e,t)=>Gne(Vne(e,t)),qne=/[#.]/g;function Clt(e,t){const n=e||"",r={};let i=0,a,s;for(;i-1&&a<=t.length){let s=0;for(;;){let o=n[s];if(o===void 0){const l=Zne(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.length1?n[a.line-2]:0)+a.column-1;if(s=55296&&e<=57343}function Jlt(e){return e>=56320&&e<=57343}function eut(e,t){return(e-55296)*1024+9216+t}function $1e(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function F1e(e){return e>=64976&&e<=65007||Klt.has(e)}var at;(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"})(at=at||(at={}));const tut=65536;class nut{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=tut,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){const{line:n,col:r,offset:i}=this;return{code:t,startLine:n,endLine:n,startCol:r,endCol:r,startOffset:i,endOffset:i}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t)))}_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(Jlt(n))return this.pos++,this._addGap(),eut(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,he.EOF;return this._err(at.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=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,he.EOF;const r=this.html.charCodeAt(n);return r===he.CARRIAGE_RETURN?he.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,he.EOF;let t=this.html.charCodeAt(this.pos);return t===he.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,he.LINE_FEED):t===he.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,L1e(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===he.LINE_FEED||t===he.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){$1e(t)?this._err(at.controlCharacterInInputStream):F1e(t)&&this._err(at.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const v0=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))),rut=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var N7;const iut=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]]),aut=(N7=String.fromCodePoint)!==null&&N7!==void 0?N7:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function sut(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=iut.get(e))!==null&&t!==void 0?t:e}var Cs;(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"})(Cs||(Cs={}));const out=32;var Mf;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Mf||(Mf={}));function O$(e){return e>=Cs.ZERO&&e<=Cs.NINE}function lut(e){return e>=Cs.UPPER_A&&e<=Cs.UPPER_F||e>=Cs.LOWER_A&&e<=Cs.LOWER_F}function uut(e){return e>=Cs.UPPER_A&&e<=Cs.UPPER_Z||e>=Cs.LOWER_A&&e<=Cs.LOWER_Z||O$(e)}function cut(e){return e===Cs.EQUALS||uut(e)}var ks;(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"})(ks||(ks={}));var $g;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})($g||($g={}));class dut{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=ks.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=$g.Strict}startEntity(t){this.decodeMode=t,this.state=ks.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case ks.EntityStart:return t.charCodeAt(n)===Cs.NUM?(this.state=ks.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=ks.NamedEntity,this.stateNamedEntity(t,n));case ks.NumericStart:return this.stateNumericStart(t,n);case ks.NumericDecimal:return this.stateNumericDecimal(t,n);case ks.NumericHex:return this.stateNumericHex(t,n);case ks.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|out)===Cs.LOWER_X?(this.state=ks.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=ks.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)+parseInt(t.substr(n,a),i),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n>14;for(;n>14,a!==0){if(s===Cs.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==$g.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]&Mf.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]&~Mf.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case ks.NamedEntity:return this.result!==0&&(this.decodeMode!==$g.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case ks.NumericDecimal:return this.emitNumericEntity(0,2);case ks.NumericHex:return this.emitNumericEntity(0,3);case ks.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ks.EntityStart:return 0}}}function U1e(e){let t="";const n=new dut(e,r=>t+=aut(r));return function(i,a){let s=0,o=0;for(;(o=i.indexOf("&",o))>=0;){t+=i.slice(s,o),n.startEntity(a);const u=n.write(i,o+1);if(u<0){s=o+n.end();break}s=o+u,o=u===0?s+1:s}const l=t+i.slice(s);return t="",l}}function z1e(e,t,n,r){const i=(t&Mf.BRANCH_LENGTH)>>7,a=t&Mf.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(ur)o=l-1;else return e[l+i]}return-1}U1e(v0);U1e(rut);var bt;(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/"})(bt=bt||(bt={}));var fm;(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"})(fm=fm||(fm={}));var Tu;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Tu=Tu||(Tu={}));var Ve;(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.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"})(Ve=Ve||(Ve={}));var I;(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.SECTION=94]="SECTION",e[e.SELECT=95]="SELECT",e[e.SOURCE=96]="SOURCE",e[e.SMALL=97]="SMALL",e[e.SPAN=98]="SPAN",e[e.STRIKE=99]="STRIKE",e[e.STRONG=100]="STRONG",e[e.STYLE=101]="STYLE",e[e.SUB=102]="SUB",e[e.SUMMARY=103]="SUMMARY",e[e.SUP=104]="SUP",e[e.TABLE=105]="TABLE",e[e.TBODY=106]="TBODY",e[e.TEMPLATE=107]="TEMPLATE",e[e.TEXTAREA=108]="TEXTAREA",e[e.TFOOT=109]="TFOOT",e[e.TD=110]="TD",e[e.TH=111]="TH",e[e.THEAD=112]="THEAD",e[e.TITLE=113]="TITLE",e[e.TR=114]="TR",e[e.TRACK=115]="TRACK",e[e.TT=116]="TT",e[e.U=117]="U",e[e.UL=118]="UL",e[e.SVG=119]="SVG",e[e.VAR=120]="VAR",e[e.WBR=121]="WBR",e[e.XMP=122]="XMP"})(I=I||(I={}));const fut=new Map([[Ve.A,I.A],[Ve.ADDRESS,I.ADDRESS],[Ve.ANNOTATION_XML,I.ANNOTATION_XML],[Ve.APPLET,I.APPLET],[Ve.AREA,I.AREA],[Ve.ARTICLE,I.ARTICLE],[Ve.ASIDE,I.ASIDE],[Ve.B,I.B],[Ve.BASE,I.BASE],[Ve.BASEFONT,I.BASEFONT],[Ve.BGSOUND,I.BGSOUND],[Ve.BIG,I.BIG],[Ve.BLOCKQUOTE,I.BLOCKQUOTE],[Ve.BODY,I.BODY],[Ve.BR,I.BR],[Ve.BUTTON,I.BUTTON],[Ve.CAPTION,I.CAPTION],[Ve.CENTER,I.CENTER],[Ve.CODE,I.CODE],[Ve.COL,I.COL],[Ve.COLGROUP,I.COLGROUP],[Ve.DD,I.DD],[Ve.DESC,I.DESC],[Ve.DETAILS,I.DETAILS],[Ve.DIALOG,I.DIALOG],[Ve.DIR,I.DIR],[Ve.DIV,I.DIV],[Ve.DL,I.DL],[Ve.DT,I.DT],[Ve.EM,I.EM],[Ve.EMBED,I.EMBED],[Ve.FIELDSET,I.FIELDSET],[Ve.FIGCAPTION,I.FIGCAPTION],[Ve.FIGURE,I.FIGURE],[Ve.FONT,I.FONT],[Ve.FOOTER,I.FOOTER],[Ve.FOREIGN_OBJECT,I.FOREIGN_OBJECT],[Ve.FORM,I.FORM],[Ve.FRAME,I.FRAME],[Ve.FRAMESET,I.FRAMESET],[Ve.H1,I.H1],[Ve.H2,I.H2],[Ve.H3,I.H3],[Ve.H4,I.H4],[Ve.H5,I.H5],[Ve.H6,I.H6],[Ve.HEAD,I.HEAD],[Ve.HEADER,I.HEADER],[Ve.HGROUP,I.HGROUP],[Ve.HR,I.HR],[Ve.HTML,I.HTML],[Ve.I,I.I],[Ve.IMG,I.IMG],[Ve.IMAGE,I.IMAGE],[Ve.INPUT,I.INPUT],[Ve.IFRAME,I.IFRAME],[Ve.KEYGEN,I.KEYGEN],[Ve.LABEL,I.LABEL],[Ve.LI,I.LI],[Ve.LINK,I.LINK],[Ve.LISTING,I.LISTING],[Ve.MAIN,I.MAIN],[Ve.MALIGNMARK,I.MALIGNMARK],[Ve.MARQUEE,I.MARQUEE],[Ve.MATH,I.MATH],[Ve.MENU,I.MENU],[Ve.META,I.META],[Ve.MGLYPH,I.MGLYPH],[Ve.MI,I.MI],[Ve.MO,I.MO],[Ve.MN,I.MN],[Ve.MS,I.MS],[Ve.MTEXT,I.MTEXT],[Ve.NAV,I.NAV],[Ve.NOBR,I.NOBR],[Ve.NOFRAMES,I.NOFRAMES],[Ve.NOEMBED,I.NOEMBED],[Ve.NOSCRIPT,I.NOSCRIPT],[Ve.OBJECT,I.OBJECT],[Ve.OL,I.OL],[Ve.OPTGROUP,I.OPTGROUP],[Ve.OPTION,I.OPTION],[Ve.P,I.P],[Ve.PARAM,I.PARAM],[Ve.PLAINTEXT,I.PLAINTEXT],[Ve.PRE,I.PRE],[Ve.RB,I.RB],[Ve.RP,I.RP],[Ve.RT,I.RT],[Ve.RTC,I.RTC],[Ve.RUBY,I.RUBY],[Ve.S,I.S],[Ve.SCRIPT,I.SCRIPT],[Ve.SECTION,I.SECTION],[Ve.SELECT,I.SELECT],[Ve.SOURCE,I.SOURCE],[Ve.SMALL,I.SMALL],[Ve.SPAN,I.SPAN],[Ve.STRIKE,I.STRIKE],[Ve.STRONG,I.STRONG],[Ve.STYLE,I.STYLE],[Ve.SUB,I.SUB],[Ve.SUMMARY,I.SUMMARY],[Ve.SUP,I.SUP],[Ve.TABLE,I.TABLE],[Ve.TBODY,I.TBODY],[Ve.TEMPLATE,I.TEMPLATE],[Ve.TEXTAREA,I.TEXTAREA],[Ve.TFOOT,I.TFOOT],[Ve.TD,I.TD],[Ve.TH,I.TH],[Ve.THEAD,I.THEAD],[Ve.TITLE,I.TITLE],[Ve.TR,I.TR],[Ve.TRACK,I.TRACK],[Ve.TT,I.TT],[Ve.U,I.U],[Ve.UL,I.UL],[Ve.SVG,I.SVG],[Ve.VAR,I.VAR],[Ve.WBR,I.WBR],[Ve.XMP,I.XMP]]);function JO(e){var t;return(t=fut.get(e))!==null&&t!==void 0?t:I.UNKNOWN}const Lt=I,hut={[bt.HTML]:new Set([Lt.ADDRESS,Lt.APPLET,Lt.AREA,Lt.ARTICLE,Lt.ASIDE,Lt.BASE,Lt.BASEFONT,Lt.BGSOUND,Lt.BLOCKQUOTE,Lt.BODY,Lt.BR,Lt.BUTTON,Lt.CAPTION,Lt.CENTER,Lt.COL,Lt.COLGROUP,Lt.DD,Lt.DETAILS,Lt.DIR,Lt.DIV,Lt.DL,Lt.DT,Lt.EMBED,Lt.FIELDSET,Lt.FIGCAPTION,Lt.FIGURE,Lt.FOOTER,Lt.FORM,Lt.FRAME,Lt.FRAMESET,Lt.H1,Lt.H2,Lt.H3,Lt.H4,Lt.H5,Lt.H6,Lt.HEAD,Lt.HEADER,Lt.HGROUP,Lt.HR,Lt.HTML,Lt.IFRAME,Lt.IMG,Lt.INPUT,Lt.LI,Lt.LINK,Lt.LISTING,Lt.MAIN,Lt.MARQUEE,Lt.MENU,Lt.META,Lt.NAV,Lt.NOEMBED,Lt.NOFRAMES,Lt.NOSCRIPT,Lt.OBJECT,Lt.OL,Lt.P,Lt.PARAM,Lt.PLAINTEXT,Lt.PRE,Lt.SCRIPT,Lt.SECTION,Lt.SELECT,Lt.SOURCE,Lt.STYLE,Lt.SUMMARY,Lt.TABLE,Lt.TBODY,Lt.TD,Lt.TEMPLATE,Lt.TEXTAREA,Lt.TFOOT,Lt.TH,Lt.THEAD,Lt.TITLE,Lt.TR,Lt.TRACK,Lt.UL,Lt.WBR,Lt.XMP]),[bt.MATHML]:new Set([Lt.MI,Lt.MO,Lt.MN,Lt.MS,Lt.MTEXT,Lt.ANNOTATION_XML]),[bt.SVG]:new Set([Lt.TITLE,Lt.FOREIGN_OBJECT,Lt.DESC]),[bt.XLINK]:new Set,[bt.XML]:new Set,[bt.XMLNS]:new Set};function H1e(e){return e===Lt.H1||e===Lt.H2||e===Lt.H3||e===Lt.H4||e===Lt.H5||e===Lt.H6}Ve.STYLE,Ve.SCRIPT,Ve.XMP,Ve.IFRAME,Ve.NOEMBED,Ve.NOFRAMES,Ve.PLAINTEXT;const put=new Map([[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]]);var ge;(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.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"})(ge||(ge={}));const Fa={DATA:ge.DATA,RCDATA:ge.RCDATA,RAWTEXT:ge.RAWTEXT,SCRIPT_DATA:ge.SCRIPT_DATA,PLAINTEXT:ge.PLAINTEXT,CDATA_SECTION:ge.CDATA_SECTION};function ME(e){return e>=he.DIGIT_0&&e<=he.DIGIT_9}function tE(e){return e>=he.LATIN_CAPITAL_A&&e<=he.LATIN_CAPITAL_Z}function mut(e){return e>=he.LATIN_SMALL_A&&e<=he.LATIN_SMALL_Z}function O0(e){return mut(e)||tE(e)}function S$(e){return O0(e)||ME(e)}function j1e(e){return e>=he.LATIN_CAPITAL_A&&e<=he.LATIN_CAPITAL_F}function W1e(e){return e>=he.LATIN_SMALL_A&&e<=he.LATIN_SMALL_F}function gut(e){return ME(e)||j1e(e)||W1e(e)}function k_(e){return e+32}function Q1e(e){return e===he.SPACE||e===he.LINE_FEED||e===he.TABULATION||e===he.FORM_FEED}function but(e){return e===he.EQUALS_SIGN||S$(e)}function Kne(e){return Q1e(e)||e===he.SOLIDUS||e===he.GREATER_THAN_SIGN}class yut{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=ge.DATA,this.returnState=ge.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new nut(n),this.currentLocation=this.getCurrentLocation(-1)}_err(t){var n,r;(r=(n=this.handler).onParseError)===null||r===void 0||r.call(n,this.preprocessor.getError(t))}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._unconsume(this.consumedAfterSnapshot),this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(t){this.consumedAfterSnapshot-=t,this.preprocessor.retreat(t)}_reconsumeInState(t,n){this.state=t,this._callState(n)}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n0&&this._err(at.endTagWithAttributes),t.selfClosing&&this._err(at.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 mr.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case mr.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case mr.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:mr.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type!==t)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=n;return}this._createCharacterToken(t,n)}_emitCodePoint(t){const n=Q1e(t)?mr.WHITESPACE_CHARACTER:t===he.NULL?mr.NULL_CHARACTER:mr.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(mr.CHARACTER,t)}_matchNamedCharacterReference(t){let n=null,r=0,i=!1;for(let a=0,s=v0[0];a>=0&&(a=z1e(v0,s,a+1,t),!(a<0));t=this._consume()){r+=1,s=v0[a];const o=s&Mf.VALUE_LENGTH;if(o){const l=(o>>14)-1;if(t!==he.SEMICOLON&&this._isCharacterReferenceInAttribute()&&but(this.preprocessor.peek(1))?(n=[he.AMPERSAND],a+=l):(n=l===0?[v0[a]&~Mf.VALUE_LENGTH]:l===1?[v0[++a]]:[v0[++a],v0[++a]],r=0,i=t!==he.SEMICOLON),l===0){this._consume();break}}}return this._unconsume(r),i&&!this.preprocessor.endOfChunkHit&&this._err(at.missingSemicolonAfterCharacterReference),this._unconsume(1),n}_isCharacterReferenceInAttribute(){return this.returnState===ge.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===ge.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===ge.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case ge.DATA:{this._stateData(t);break}case ge.RCDATA:{this._stateRcdata(t);break}case ge.RAWTEXT:{this._stateRawtext(t);break}case ge.SCRIPT_DATA:{this._stateScriptData(t);break}case ge.PLAINTEXT:{this._statePlaintext(t);break}case ge.TAG_OPEN:{this._stateTagOpen(t);break}case ge.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case ge.TAG_NAME:{this._stateTagName(t);break}case ge.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case ge.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case ge.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case ge.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case ge.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case ge.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case ge.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case ge.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case ge.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case ge.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case ge.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case ge.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case ge.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case ge.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case ge.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case ge.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case ge.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case ge.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case ge.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case ge.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case ge.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case ge.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case ge.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case ge.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case ge.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case ge.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case ge.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case ge.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case ge.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case ge.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case ge.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case ge.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case ge.BOGUS_COMMENT:{this._stateBogusComment(t);break}case ge.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case ge.COMMENT_START:{this._stateCommentStart(t);break}case ge.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case ge.COMMENT:{this._stateComment(t);break}case ge.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case ge.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case ge.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case ge.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case ge.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case ge.COMMENT_END:{this._stateCommentEnd(t);break}case ge.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case ge.DOCTYPE:{this._stateDoctype(t);break}case ge.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case ge.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case ge.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case ge.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case ge.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case ge.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case ge.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case ge.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case ge.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case ge.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case ge.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case ge.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case ge.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case ge.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case ge.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case ge.CDATA_SECTION:{this._stateCdataSection(t);break}case ge.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case ge.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case ge.CHARACTER_REFERENCE:{this._stateCharacterReference(t);break}case ge.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(t);break}case ge.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}case ge.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(t);break}case ge.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(t);break}case ge.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(t);break}case ge.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(t);break}case ge.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case he.LESS_THAN_SIGN:{this.state=ge.TAG_OPEN;break}case he.AMPERSAND:{this.returnState=ge.DATA,this.state=ge.CHARACTER_REFERENCE;break}case he.NULL:{this._err(at.unexpectedNullCharacter),this._emitCodePoint(t);break}case he.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case he.AMPERSAND:{this.returnState=ge.RCDATA,this.state=ge.CHARACTER_REFERENCE;break}case he.LESS_THAN_SIGN:{this.state=ge.RCDATA_LESS_THAN_SIGN;break}case he.NULL:{this._err(at.unexpectedNullCharacter),this._emitChars(Ki);break}case he.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case he.LESS_THAN_SIGN:{this.state=ge.RAWTEXT_LESS_THAN_SIGN;break}case he.NULL:{this._err(at.unexpectedNullCharacter),this._emitChars(Ki);break}case he.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case he.LESS_THAN_SIGN:{this.state=ge.SCRIPT_DATA_LESS_THAN_SIGN;break}case he.NULL:{this._err(at.unexpectedNullCharacter),this._emitChars(Ki);break}case he.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case he.NULL:{this._err(at.unexpectedNullCharacter),this._emitChars(Ki);break}case he.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(O0(t))this._createStartTagToken(),this.state=ge.TAG_NAME,this._stateTagName(t);else switch(t){case he.EXCLAMATION_MARK:{this.state=ge.MARKUP_DECLARATION_OPEN;break}case he.SOLIDUS:{this.state=ge.END_TAG_OPEN;break}case he.QUESTION_MARK:{this._err(at.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=ge.BOGUS_COMMENT,this._stateBogusComment(t);break}case he.EOF:{this._err(at.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(at.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=ge.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(O0(t))this._createEndTagToken(),this.state=ge.TAG_NAME,this._stateTagName(t);else switch(t){case he.GREATER_THAN_SIGN:{this._err(at.missingEndTagName),this.state=ge.DATA;break}case he.EOF:{this._err(at.eofBeforeTagName),this._emitChars("");break}case he.NULL:{this._err(at.unexpectedNullCharacter),this.state=ge.SCRIPT_DATA_ESCAPED,this._emitChars(Ki);break}case he.EOF:{this._err(at.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ge.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===he.SOLIDUS?this.state=ge.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:O0(t)?(this._emitChars("<"),this.state=ge.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=ge.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){O0(t)?(this.state=ge.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("");break}case he.NULL:{this._err(at.unexpectedNullCharacter),this.state=ge.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ki);break}case he.EOF:{this._err(at.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ge.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===he.SOLIDUS?(this.state=ge.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=ge.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(wl.SCRIPT,!1)&&Kne(this.preprocessor.peek(wl.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n1114111)this._err(at.characterReferenceOutsideUnicodeRange),this.charRefCode=he.REPLACEMENT_CHARACTER;else if(L1e(this.charRefCode))this._err(at.surrogateCharacterReference),this.charRefCode=he.REPLACEMENT_CHARACTER;else if(F1e(this.charRefCode))this._err(at.noncharacterCharacterReference);else if($1e(this.charRefCode)||this.charRefCode===he.CARRIAGE_RETURN){this._err(at.controlCharacterReference);const n=put.get(this.charRefCode);n!==void 0&&(this.charRefCode=n)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,t)}}const G1e=new Set([I.DD,I.DT,I.LI,I.OPTGROUP,I.OPTION,I.P,I.RB,I.RP,I.RT,I.RTC]),Jne=new Set([...G1e,I.CAPTION,I.COLGROUP,I.TBODY,I.TD,I.TFOOT,I.TH,I.THEAD,I.TR]),A_=new Map([[I.APPLET,bt.HTML],[I.CAPTION,bt.HTML],[I.HTML,bt.HTML],[I.MARQUEE,bt.HTML],[I.OBJECT,bt.HTML],[I.TABLE,bt.HTML],[I.TD,bt.HTML],[I.TEMPLATE,bt.HTML],[I.TH,bt.HTML],[I.ANNOTATION_XML,bt.MATHML],[I.MI,bt.MATHML],[I.MN,bt.MATHML],[I.MO,bt.MATHML],[I.MS,bt.MATHML],[I.MTEXT,bt.MATHML],[I.DESC,bt.SVG],[I.FOREIGN_OBJECT,bt.SVG],[I.TITLE,bt.SVG]]),vut=[I.H1,I.H2,I.H3,I.H4,I.H5,I.H6],Out=[I.TR,I.TEMPLATE,I.HTML],Sut=[I.TBODY,I.TFOOT,I.THEAD,I.TEMPLATE,I.HTML],Eut=[I.TABLE,I.TEMPLATE,I.HTML],wut=[I.TD,I.TH];class xut{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=I.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===I.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===bt.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.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])!==bt.HTML);this.shortenToLength(n<0?0:n)}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=0;r--)if(t.includes(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(Eut,bt.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Sut,bt.HTML)}clearBackToTableRowContext(){this.clearBackTo(Out,bt.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]===I.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]===I.HTML}hasInScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===bt.HTML)return!0;if(A_.get(r)===i)return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(H1e(n)&&r===bt.HTML)return!0;if(A_.get(n)===r)return!1}return!0}hasInListItemScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===bt.HTML)return!0;if((r===I.UL||r===I.OL)&&i===bt.HTML||A_.get(r)===i)return!1}return!0}hasInButtonScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===bt.HTML)return!0;if(r===I.BUTTON&&i===bt.HTML||A_.get(r)===i)return!1}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];if(this.treeAdapter.getNamespaceURI(this.items[n])===bt.HTML){if(r===t)return!0;if(r===I.TABLE||r===I.TEMPLATE||r===I.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===bt.HTML){if(n===I.TBODY||n===I.THEAD||n===I.TFOOT)return!0;if(n===I.TABLE||n===I.HTML)return!1}}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];if(this.treeAdapter.getNamespaceURI(this.items[n])===bt.HTML){if(r===t)return!0;if(r!==I.OPTION&&r!==I.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;G1e.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Jne.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&Jne.has(this.currentTagId);)this.pop()}}const D7=3;var wd;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(wd=wd||(wd={}));const ere={type:wd.Marker};class Tut{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[s.name,s.value]));let a=0;for(let s=0;si.get(l.name)===l.value)&&(a+=1,a>=D7&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(ere)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:wd.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:wd.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n>=0&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(ere);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===wd.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===wd.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===wd.Element&&n.element===t)}}function tre(e){return{nodeName:"#text",value:e,parentNode:null}}const fy={createDocument(){return{nodeName:"#document",mode:Tu.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}},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};fy.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(fy.isTextNode(n)){n.value+=t;return}}fy.appendChild(e,tre(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&fy.isTextNode(r)?r.value+=t:fy.insertBefore(e,tre(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;re.startsWith(n))}function Iut(e){return e.name===V1e&&e.publicId===null&&(e.systemId===null||e.systemId===kut)}function Nut(e){if(e.name!==V1e)return Tu.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===Aut)return Tu.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),Cut.has(n))return Tu.QUIRKS;let r=t===null?_ut:q1e;if(nre(n,r))return Tu.QUIRKS;if(r=t===null?Y1e:Rut,nre(n,r))return Tu.LIMITED_QUIRKS}return Tu.NO_QUIRKS}const rre={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Dut="definitionurl",Put="definitionURL",Mut=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])),Lut=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:bt.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:bt.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:bt.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:bt.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:bt.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:bt.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:bt.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:bt.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:bt.XML}],["xml:space",{prefix:"xml",name:"space",namespace:bt.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:bt.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:bt.XMLNS}]]),$ut=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])),Fut=new Set([I.B,I.BIG,I.BLOCKQUOTE,I.BODY,I.BR,I.CENTER,I.CODE,I.DD,I.DIV,I.DL,I.DT,I.EM,I.EMBED,I.H1,I.H2,I.H3,I.H4,I.H5,I.H6,I.HEAD,I.HR,I.I,I.IMG,I.LI,I.LISTING,I.MENU,I.META,I.NOBR,I.OL,I.P,I.PRE,I.RUBY,I.S,I.SMALL,I.SPAN,I.STRONG,I.STRIKE,I.SUB,I.SUP,I.TABLE,I.TT,I.U,I.UL,I.VAR]);function But(e){const t=e.tagID;return t===I.FONT&&e.attrs.some(({name:r})=>r===fm.COLOR||r===fm.SIZE||r===fm.FACE)||Fut.has(t)}function Z1e(e){for(let t=0;t0&&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||this.treeAdapter.getNamespaceURI(t)===bt.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,bt.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=Ae.TEXT}switchToPlaintextParsing(){this.insertionMode=Ae.TEXT,this.originalInsertionMode=Ae.IN_BODY,this.tokenizer.state=Fa.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)===Ve.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==bt.HTML))switch(this.fragmentContextID){case I.TITLE:case I.TEXTAREA:{this.tokenizer.state=Fa.RCDATA;break}case I.STYLE:case I.XMP:case I.IFRAME:case I.NOEMBED:case I.NOFRAMES:case I.NOSCRIPT:{this.tokenizer.state=Fa.RAWTEXT;break}case I.SCRIPT:{this.tokenizer.state=Fa.SCRIPT_DATA;break}case I.PLAINTEXT:{this.tokenizer.state=Fa.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,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,bt.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,bt.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(Ve.HTML,bt.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,I.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:d}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:l,endCol:u,endOffset:d})}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===mr.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===I.SVG&&this.treeAdapter.getTagName(n)===Ve.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===bt.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===I.MGLYPH||t.tagID===I.MALIGNMARK)&&!this._isIntegrationPoint(r,n,bt.HTML)}_processToken(t){switch(t.type){case mr.CHARACTER:{this.onCharacter(t);break}case mr.NULL_CHARACTER:{this.onNullCharacter(t);break}case mr.COMMENT:{this.onComment(t);break}case mr.DOCTYPE:{this.onDoctype(t);break}case mr.START_TAG:{this._processStartTag(t);break}case mr.END_TAG:{this.onEndTag(t);break}case mr.EOF:{this.onEof(t);break}case mr.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return jut(t,i,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===wd.Marker||this.openElements.contains(i.element)),r=n<0?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=Ae.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(I.P),this.openElements.popUntilTagNamePopped(I.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case I.TR:{this.insertionMode=Ae.IN_ROW;return}case I.TBODY:case I.THEAD:case I.TFOOT:{this.insertionMode=Ae.IN_TABLE_BODY;return}case I.CAPTION:{this.insertionMode=Ae.IN_CAPTION;return}case I.COLGROUP:{this.insertionMode=Ae.IN_COLUMN_GROUP;return}case I.TABLE:{this.insertionMode=Ae.IN_TABLE;return}case I.BODY:{this.insertionMode=Ae.IN_BODY;return}case I.FRAMESET:{this.insertionMode=Ae.IN_FRAMESET;return}case I.SELECT:{this._resetInsertionModeForSelect(t);return}case I.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case I.HTML:{this.insertionMode=this.headElement?Ae.AFTER_HEAD:Ae.BEFORE_HEAD;return}case I.TD:case I.TH:{if(t>0){this.insertionMode=Ae.IN_CELL;return}break}case I.HEAD:{if(t>0){this.insertionMode=Ae.IN_HEAD;return}break}}this.insertionMode=Ae.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===I.TEMPLATE)break;if(r===I.TABLE){this.insertionMode=Ae.IN_SELECT_IN_TABLE;return}}this.insertionMode=Ae.IN_SELECT}_isElementCausesFosterParenting(t){return K1e.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&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 I.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===bt.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case I.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 hut[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){wdt(this,t);return}switch(this.insertionMode){case Ae.INITIAL:{N2(this,t);break}case Ae.BEFORE_HTML:{LE(this,t);break}case Ae.BEFORE_HEAD:{$E(this,t);break}case Ae.IN_HEAD:{FE(this,t);break}case Ae.IN_HEAD_NO_SCRIPT:{BE(this,t);break}case Ae.AFTER_HEAD:{UE(this,t);break}case Ae.IN_BODY:case Ae.IN_CAPTION:case Ae.IN_CELL:case Ae.IN_TEMPLATE:{ebe(this,t);break}case Ae.TEXT:case Ae.IN_SELECT:case Ae.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case Ae.IN_TABLE:case Ae.IN_TABLE_BODY:case Ae.IN_ROW:{P7(this,t);break}case Ae.IN_TABLE_TEXT:{sbe(this,t);break}case Ae.IN_COLUMN_GROUP:{ZC(this,t);break}case Ae.AFTER_BODY:{XC(this,t);break}case Ae.AFTER_AFTER_BODY:{W4(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Edt(this,t);return}switch(this.insertionMode){case Ae.INITIAL:{N2(this,t);break}case Ae.BEFORE_HTML:{LE(this,t);break}case Ae.BEFORE_HEAD:{$E(this,t);break}case Ae.IN_HEAD:{FE(this,t);break}case Ae.IN_HEAD_NO_SCRIPT:{BE(this,t);break}case Ae.AFTER_HEAD:{UE(this,t);break}case Ae.TEXT:{this._insertCharacters(t);break}case Ae.IN_TABLE:case Ae.IN_TABLE_BODY:case Ae.IN_ROW:{P7(this,t);break}case Ae.IN_COLUMN_GROUP:{ZC(this,t);break}case Ae.AFTER_BODY:{XC(this,t);break}case Ae.AFTER_AFTER_BODY:{W4(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){E$(this,t);return}switch(this.insertionMode){case Ae.INITIAL:case Ae.BEFORE_HTML:case Ae.BEFORE_HEAD:case Ae.IN_HEAD:case Ae.IN_HEAD_NO_SCRIPT:case Ae.AFTER_HEAD:case Ae.IN_BODY:case Ae.IN_TABLE:case Ae.IN_CAPTION:case Ae.IN_COLUMN_GROUP:case Ae.IN_TABLE_BODY:case Ae.IN_ROW:case Ae.IN_CELL:case Ae.IN_SELECT:case Ae.IN_SELECT_IN_TABLE:case Ae.IN_TEMPLATE:case Ae.IN_FRAMESET:case Ae.AFTER_FRAMESET:{E$(this,t);break}case Ae.IN_TABLE_TEXT:{D2(this,t);break}case Ae.AFTER_BODY:{ect(this,t);break}case Ae.AFTER_AFTER_BODY:case Ae.AFTER_AFTER_FRAMESET:{tct(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case Ae.INITIAL:{nct(this,t);break}case Ae.BEFORE_HEAD:case Ae.IN_HEAD:case Ae.IN_HEAD_NO_SCRIPT:case Ae.AFTER_HEAD:{this._err(t,at.misplacedDoctype);break}case Ae.IN_TABLE_TEXT:{D2(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,at.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?xdt(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case Ae.INITIAL:{N2(this,t);break}case Ae.BEFORE_HTML:{rct(this,t);break}case Ae.BEFORE_HEAD:{act(this,t);break}case Ae.IN_HEAD:{qd(this,t);break}case Ae.IN_HEAD_NO_SCRIPT:{lct(this,t);break}case Ae.AFTER_HEAD:{cct(this,t);break}case Ae.IN_BODY:{Do(this,t);break}case Ae.IN_TABLE:{nO(this,t);break}case Ae.IN_TABLE_TEXT:{D2(this,t);break}case Ae.IN_CAPTION:{sdt(this,t);break}case Ae.IN_COLUMN_GROUP:{kV(this,t);break}case Ae.IN_TABLE_BODY:{UI(this,t);break}case Ae.IN_ROW:{zI(this,t);break}case Ae.IN_CELL:{udt(this,t);break}case Ae.IN_SELECT:{ube(this,t);break}case Ae.IN_SELECT_IN_TABLE:{ddt(this,t);break}case Ae.IN_TEMPLATE:{hdt(this,t);break}case Ae.AFTER_BODY:{mdt(this,t);break}case Ae.IN_FRAMESET:{gdt(this,t);break}case Ae.AFTER_FRAMESET:{ydt(this,t);break}case Ae.AFTER_AFTER_BODY:{Odt(this,t);break}case Ae.AFTER_AFTER_FRAMESET:{Sdt(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?Tdt(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case Ae.INITIAL:{N2(this,t);break}case Ae.BEFORE_HTML:{ict(this,t);break}case Ae.BEFORE_HEAD:{sct(this,t);break}case Ae.IN_HEAD:{oct(this,t);break}case Ae.IN_HEAD_NO_SCRIPT:{uct(this,t);break}case Ae.AFTER_HEAD:{dct(this,t);break}case Ae.IN_BODY:{BI(this,t);break}case Ae.TEXT:{Zct(this,t);break}case Ae.IN_TABLE:{ox(this,t);break}case Ae.IN_TABLE_TEXT:{D2(this,t);break}case Ae.IN_CAPTION:{odt(this,t);break}case Ae.IN_COLUMN_GROUP:{ldt(this,t);break}case Ae.IN_TABLE_BODY:{w$(this,t);break}case Ae.IN_ROW:{lbe(this,t);break}case Ae.IN_CELL:{cdt(this,t);break}case Ae.IN_SELECT:{cbe(this,t);break}case Ae.IN_SELECT_IN_TABLE:{fdt(this,t);break}case Ae.IN_TEMPLATE:{pdt(this,t);break}case Ae.AFTER_BODY:{fbe(this,t);break}case Ae.IN_FRAMESET:{bdt(this,t);break}case Ae.AFTER_FRAMESET:{vdt(this,t);break}case Ae.AFTER_AFTER_BODY:{W4(this,t);break}}}onEof(t){switch(this.insertionMode){case Ae.INITIAL:{N2(this,t);break}case Ae.BEFORE_HTML:{LE(this,t);break}case Ae.BEFORE_HEAD:{$E(this,t);break}case Ae.IN_HEAD:{FE(this,t);break}case Ae.IN_HEAD_NO_SCRIPT:{BE(this,t);break}case Ae.AFTER_HEAD:{UE(this,t);break}case Ae.IN_BODY:case Ae.IN_TABLE:case Ae.IN_CAPTION:case Ae.IN_COLUMN_GROUP:case Ae.IN_TABLE_BODY:case Ae.IN_ROW:case Ae.IN_CELL:case Ae.IN_SELECT:case Ae.IN_SELECT_IN_TABLE:{ibe(this,t);break}case Ae.TEXT:{Xct(this,t);break}case Ae.IN_TABLE_TEXT:{D2(this,t);break}case Ae.IN_TEMPLATE:{dbe(this,t);break}case Ae.AFTER_BODY:case Ae.IN_FRAMESET:case Ae.AFTER_FRAMESET:case Ae.AFTER_AFTER_BODY:case Ae.AFTER_AFTER_FRAMESET:{TV(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===he.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 Ae.IN_HEAD:case Ae.IN_HEAD_NO_SCRIPT:case Ae.AFTER_HEAD:case Ae.TEXT:case Ae.IN_COLUMN_GROUP:case Ae.IN_SELECT:case Ae.IN_SELECT_IN_TABLE:case Ae.IN_FRAMESET:case Ae.AFTER_FRAMESET:{this._insertCharacters(t);break}case Ae.IN_BODY:case Ae.IN_CAPTION:case Ae.IN_CELL:case Ae.IN_TEMPLATE:case Ae.AFTER_BODY:case Ae.AFTER_AFTER_BODY:case Ae.AFTER_AFTER_FRAMESET:{J1e(this,t);break}case Ae.IN_TABLE:case Ae.IN_TABLE_BODY:case Ae.IN_ROW:{P7(this,t);break}case Ae.IN_TABLE_TEXT:{abe(this,t);break}}}};function qut(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):rbe(e,t),n}function Yut(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(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function Zut(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>=Gut;!o||l?(l&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=Xut(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function Xut(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 Kut(e,t,n){const r=e.treeAdapter.getTagName(t),i=JO(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);i===I.TEMPLATE&&a===bt.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Jut(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 xV(e,t){for(let n=0;n=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 nct(e,t){e._setDocumentType(t);const n=t.forceQuirks?Tu.QUIRKS:Nut(t);Iut(t)||e._err(t,at.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Ae.BEFORE_HTML}function N2(e,t){e._err(t,at.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Tu.QUIRKS),e.insertionMode=Ae.BEFORE_HTML,e._processToken(t)}function rct(e,t){t.tagID===I.HTML?(e._insertElement(t,bt.HTML),e.insertionMode=Ae.BEFORE_HEAD):LE(e,t)}function ict(e,t){const n=t.tagID;(n===I.HTML||n===I.HEAD||n===I.BODY||n===I.BR)&&LE(e,t)}function LE(e,t){e._insertFakeRootElement(),e.insertionMode=Ae.BEFORE_HEAD,e._processToken(t)}function act(e,t){switch(t.tagID){case I.HTML:{Do(e,t);break}case I.HEAD:{e._insertElement(t,bt.HTML),e.headElement=e.openElements.current,e.insertionMode=Ae.IN_HEAD;break}default:$E(e,t)}}function sct(e,t){const n=t.tagID;n===I.HEAD||n===I.BODY||n===I.HTML||n===I.BR?$E(e,t):e._err(t,at.endTagWithoutMatchingOpenElement)}function $E(e,t){e._insertFakeElement(Ve.HEAD,I.HEAD),e.headElement=e.openElements.current,e.insertionMode=Ae.IN_HEAD,e._processToken(t)}function qd(e,t){switch(t.tagID){case I.HTML:{Do(e,t);break}case I.BASE:case I.BASEFONT:case I.BGSOUND:case I.LINK:case I.META:{e._appendElement(t,bt.HTML),t.ackSelfClosing=!0;break}case I.TITLE:{e._switchToTextParsing(t,Fa.RCDATA);break}case I.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Fa.RAWTEXT):(e._insertElement(t,bt.HTML),e.insertionMode=Ae.IN_HEAD_NO_SCRIPT);break}case I.NOFRAMES:case I.STYLE:{e._switchToTextParsing(t,Fa.RAWTEXT);break}case I.SCRIPT:{e._switchToTextParsing(t,Fa.SCRIPT_DATA);break}case I.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Ae.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Ae.IN_TEMPLATE);break}case I.HEAD:{e._err(t,at.misplacedStartTagForHeadElement);break}default:FE(e,t)}}function oct(e,t){switch(t.tagID){case I.HEAD:{e.openElements.pop(),e.insertionMode=Ae.AFTER_HEAD;break}case I.BODY:case I.BR:case I.HTML:{FE(e,t);break}case I.TEMPLATE:{J1(e,t);break}default:e._err(t,at.endTagWithoutMatchingOpenElement)}}function J1(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==I.TEMPLATE&&e._err(t,at.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(I.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,at.endTagWithoutMatchingOpenElement)}function FE(e,t){e.openElements.pop(),e.insertionMode=Ae.AFTER_HEAD,e._processToken(t)}function lct(e,t){switch(t.tagID){case I.HTML:{Do(e,t);break}case I.BASEFONT:case I.BGSOUND:case I.HEAD:case I.LINK:case I.META:case I.NOFRAMES:case I.STYLE:{qd(e,t);break}case I.NOSCRIPT:{e._err(t,at.nestedNoscriptInHead);break}default:BE(e,t)}}function uct(e,t){switch(t.tagID){case I.NOSCRIPT:{e.openElements.pop(),e.insertionMode=Ae.IN_HEAD;break}case I.BR:{BE(e,t);break}default:e._err(t,at.endTagWithoutMatchingOpenElement)}}function BE(e,t){const n=t.type===mr.EOF?at.openElementsLeftAfterEof:at.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=Ae.IN_HEAD,e._processToken(t)}function cct(e,t){switch(t.tagID){case I.HTML:{Do(e,t);break}case I.BODY:{e._insertElement(t,bt.HTML),e.framesetOk=!1,e.insertionMode=Ae.IN_BODY;break}case I.FRAMESET:{e._insertElement(t,bt.HTML),e.insertionMode=Ae.IN_FRAMESET;break}case I.BASE:case I.BASEFONT:case I.BGSOUND:case I.LINK:case I.META:case I.NOFRAMES:case I.SCRIPT:case I.STYLE:case I.TEMPLATE:case I.TITLE:{e._err(t,at.abandonedHeadElementChild),e.openElements.push(e.headElement,I.HEAD),qd(e,t),e.openElements.remove(e.headElement);break}case I.HEAD:{e._err(t,at.misplacedStartTagForHeadElement);break}default:UE(e,t)}}function dct(e,t){switch(t.tagID){case I.BODY:case I.HTML:case I.BR:{UE(e,t);break}case I.TEMPLATE:{J1(e,t);break}default:e._err(t,at.endTagWithoutMatchingOpenElement)}}function UE(e,t){e._insertFakeElement(Ve.BODY,I.BODY),e.insertionMode=Ae.IN_BODY,FI(e,t)}function FI(e,t){switch(t.type){case mr.CHARACTER:{ebe(e,t);break}case mr.WHITESPACE_CHARACTER:{J1e(e,t);break}case mr.COMMENT:{E$(e,t);break}case mr.START_TAG:{Do(e,t);break}case mr.END_TAG:{BI(e,t);break}case mr.EOF:{ibe(e,t);break}}}function J1e(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function ebe(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function fct(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function hct(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function pct(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,bt.HTML),e.insertionMode=Ae.IN_FRAMESET)}function mct(e,t){e.openElements.hasInButtonScope(I.P)&&e._closePElement(),e._insertElement(t,bt.HTML)}function gct(e,t){e.openElements.hasInButtonScope(I.P)&&e._closePElement(),H1e(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,bt.HTML)}function bct(e,t){e.openElements.hasInButtonScope(I.P)&&e._closePElement(),e._insertElement(t,bt.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function yct(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(I.P)&&e._closePElement(),e._insertElement(t,bt.HTML),n||(e.formElement=e.openElements.current))}function vct(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===I.LI&&i===I.LI||(n===I.DD||n===I.DT)&&(i===I.DD||i===I.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==I.ADDRESS&&i!==I.DIV&&i!==I.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(I.P)&&e._closePElement(),e._insertElement(t,bt.HTML)}function Oct(e,t){e.openElements.hasInButtonScope(I.P)&&e._closePElement(),e._insertElement(t,bt.HTML),e.tokenizer.state=Fa.PLAINTEXT}function Sct(e,t){e.openElements.hasInScope(I.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(I.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,bt.HTML),e.framesetOk=!1}function Ect(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Ve.A);n&&(xV(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,bt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function wct(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,bt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function xct(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(I.NOBR)&&(xV(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,bt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Tct(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,bt.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function kct(e,t){e.treeAdapter.getDocumentMode(e.document)!==Tu.QUIRKS&&e.openElements.hasInButtonScope(I.P)&&e._closePElement(),e._insertElement(t,bt.HTML),e.framesetOk=!1,e.insertionMode=Ae.IN_TABLE}function tbe(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,bt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function nbe(e){const t=B1e(e,fm.TYPE);return t!=null&&t.toLowerCase()===Wut}function Act(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,bt.HTML),nbe(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function _ct(e,t){e._appendElement(t,bt.HTML),t.ackSelfClosing=!0}function Cct(e,t){e.openElements.hasInButtonScope(I.P)&&e._closePElement(),e._appendElement(t,bt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Rct(e,t){t.tagName=Ve.IMG,t.tagID=I.IMG,tbe(e,t)}function Ict(e,t){e._insertElement(t,bt.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Fa.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Ae.TEXT}function Nct(e,t){e.openElements.hasInButtonScope(I.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Fa.RAWTEXT)}function Dct(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Fa.RAWTEXT)}function sre(e,t){e._switchToTextParsing(t,Fa.RAWTEXT)}function Pct(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,bt.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===Ae.IN_TABLE||e.insertionMode===Ae.IN_CAPTION||e.insertionMode===Ae.IN_TABLE_BODY||e.insertionMode===Ae.IN_ROW||e.insertionMode===Ae.IN_CELL?Ae.IN_SELECT_IN_TABLE:Ae.IN_SELECT}function Mct(e,t){e.openElements.currentTagId===I.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,bt.HTML)}function Lct(e,t){e.openElements.hasInScope(I.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,bt.HTML)}function $ct(e,t){e.openElements.hasInScope(I.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(I.RTC),e._insertElement(t,bt.HTML)}function Fct(e,t){e._reconstructActiveFormattingElements(),Z1e(t),wV(t),t.selfClosing?e._appendElement(t,bt.MATHML):e._insertElement(t,bt.MATHML),t.ackSelfClosing=!0}function Bct(e,t){e._reconstructActiveFormattingElements(),X1e(t),wV(t),t.selfClosing?e._appendElement(t,bt.SVG):e._insertElement(t,bt.SVG),t.ackSelfClosing=!0}function ore(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,bt.HTML)}function Do(e,t){switch(t.tagID){case I.I:case I.S:case I.B:case I.U:case I.EM:case I.TT:case I.BIG:case I.CODE:case I.FONT:case I.SMALL:case I.STRIKE:case I.STRONG:{wct(e,t);break}case I.A:{Ect(e,t);break}case I.H1:case I.H2:case I.H3:case I.H4:case I.H5:case I.H6:{gct(e,t);break}case I.P:case I.DL:case I.OL:case I.UL:case I.DIV:case I.DIR:case I.NAV:case I.MAIN:case I.MENU:case I.ASIDE:case I.CENTER:case I.FIGURE:case I.FOOTER:case I.HEADER:case I.HGROUP:case I.DIALOG:case I.DETAILS:case I.ADDRESS:case I.ARTICLE:case I.SECTION:case I.SUMMARY:case I.FIELDSET:case I.BLOCKQUOTE:case I.FIGCAPTION:{mct(e,t);break}case I.LI:case I.DD:case I.DT:{vct(e,t);break}case I.BR:case I.IMG:case I.WBR:case I.AREA:case I.EMBED:case I.KEYGEN:{tbe(e,t);break}case I.HR:{Cct(e,t);break}case I.RB:case I.RTC:{Lct(e,t);break}case I.RT:case I.RP:{$ct(e,t);break}case I.PRE:case I.LISTING:{bct(e,t);break}case I.XMP:{Nct(e,t);break}case I.SVG:{Bct(e,t);break}case I.HTML:{fct(e,t);break}case I.BASE:case I.LINK:case I.META:case I.STYLE:case I.TITLE:case I.SCRIPT:case I.BGSOUND:case I.BASEFONT:case I.TEMPLATE:{qd(e,t);break}case I.BODY:{hct(e,t);break}case I.FORM:{yct(e,t);break}case I.NOBR:{xct(e,t);break}case I.MATH:{Fct(e,t);break}case I.TABLE:{kct(e,t);break}case I.INPUT:{Act(e,t);break}case I.PARAM:case I.TRACK:case I.SOURCE:{_ct(e,t);break}case I.IMAGE:{Rct(e,t);break}case I.BUTTON:{Sct(e,t);break}case I.APPLET:case I.OBJECT:case I.MARQUEE:{Tct(e,t);break}case I.IFRAME:{Dct(e,t);break}case I.SELECT:{Pct(e,t);break}case I.OPTION:case I.OPTGROUP:{Mct(e,t);break}case I.NOEMBED:{sre(e,t);break}case I.FRAMESET:{pct(e,t);break}case I.TEXTAREA:{Ict(e,t);break}case I.NOSCRIPT:{e.options.scriptingEnabled?sre(e,t):ore(e,t);break}case I.PLAINTEXT:{Oct(e,t);break}case I.COL:case I.TH:case I.TD:case I.TR:case I.HEAD:case I.FRAME:case I.TBODY:case I.TFOOT:case I.THEAD:case I.CAPTION:case I.COLGROUP:break;default:ore(e,t)}}function Uct(e,t){if(e.openElements.hasInScope(I.BODY)&&(e.insertionMode=Ae.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function zct(e,t){e.openElements.hasInScope(I.BODY)&&(e.insertionMode=Ae.AFTER_BODY,fbe(e,t))}function Hct(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function jct(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(I.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(I.FORM):n&&e.openElements.remove(n))}function Wct(e){e.openElements.hasInButtonScope(I.P)||e._insertFakeElement(Ve.P,I.P),e._closePElement()}function Qct(e){e.openElements.hasInListItemScope(I.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(I.LI),e.openElements.popUntilTagNamePopped(I.LI))}function Gct(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function Vct(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function qct(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Yct(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Ve.BR,I.BR),e.openElements.pop(),e.framesetOk=!1}function rbe(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!==I.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 BI(e,t){switch(t.tagID){case I.A:case I.B:case I.I:case I.S:case I.U:case I.EM:case I.TT:case I.BIG:case I.CODE:case I.FONT:case I.NOBR:case I.SMALL:case I.STRIKE:case I.STRONG:{xV(e,t);break}case I.P:{Wct(e);break}case I.DL:case I.UL:case I.OL:case I.DIR:case I.DIV:case I.NAV:case I.PRE:case I.MAIN:case I.MENU:case I.ASIDE:case I.BUTTON:case I.CENTER:case I.FIGURE:case I.FOOTER:case I.HEADER:case I.HGROUP:case I.DIALOG:case I.ADDRESS:case I.ARTICLE:case I.DETAILS:case I.SECTION:case I.SUMMARY:case I.LISTING:case I.FIELDSET:case I.BLOCKQUOTE:case I.FIGCAPTION:{Hct(e,t);break}case I.LI:{Qct(e);break}case I.DD:case I.DT:{Gct(e,t);break}case I.H1:case I.H2:case I.H3:case I.H4:case I.H5:case I.H6:{Vct(e);break}case I.BR:{Yct(e);break}case I.BODY:{Uct(e,t);break}case I.HTML:{zct(e,t);break}case I.FORM:{jct(e);break}case I.APPLET:case I.OBJECT:case I.MARQUEE:{qct(e,t);break}case I.TEMPLATE:{J1(e,t);break}default:rbe(e,t)}}function ibe(e,t){e.tmplInsertionModeStack.length>0?dbe(e,t):TV(e,t)}function Zct(e,t){var n;t.tagID===I.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Xct(e,t){e._err(t,at.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function P7(e,t){if(K1e.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Ae.IN_TABLE_TEXT,t.type){case mr.CHARACTER:{sbe(e,t);break}case mr.WHITESPACE_CHARACTER:{abe(e,t);break}}else kT(e,t)}function Kct(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,bt.HTML),e.insertionMode=Ae.IN_CAPTION}function Jct(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,bt.HTML),e.insertionMode=Ae.IN_COLUMN_GROUP}function edt(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Ve.COLGROUP,I.COLGROUP),e.insertionMode=Ae.IN_COLUMN_GROUP,kV(e,t)}function tdt(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,bt.HTML),e.insertionMode=Ae.IN_TABLE_BODY}function ndt(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Ve.TBODY,I.TBODY),e.insertionMode=Ae.IN_TABLE_BODY,UI(e,t)}function rdt(e,t){e.openElements.hasInTableScope(I.TABLE)&&(e.openElements.popUntilTagNamePopped(I.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function idt(e,t){nbe(t)?e._appendElement(t,bt.HTML):kT(e,t),t.ackSelfClosing=!0}function adt(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,bt.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function nO(e,t){switch(t.tagID){case I.TD:case I.TH:case I.TR:{ndt(e,t);break}case I.STYLE:case I.SCRIPT:case I.TEMPLATE:{qd(e,t);break}case I.COL:{edt(e,t);break}case I.FORM:{adt(e,t);break}case I.TABLE:{rdt(e,t);break}case I.TBODY:case I.TFOOT:case I.THEAD:{tdt(e,t);break}case I.INPUT:{idt(e,t);break}case I.CAPTION:{Kct(e,t);break}case I.COLGROUP:{Jct(e,t);break}default:kT(e,t)}}function ox(e,t){switch(t.tagID){case I.TABLE:{e.openElements.hasInTableScope(I.TABLE)&&(e.openElements.popUntilTagNamePopped(I.TABLE),e._resetInsertionMode());break}case I.TEMPLATE:{J1(e,t);break}case I.BODY:case I.CAPTION:case I.COL:case I.COLGROUP:case I.HTML:case I.TBODY:case I.TD:case I.TFOOT:case I.TH:case I.THEAD:case I.TR:break;default:kT(e,t)}}function kT(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,FI(e,t),e.fosterParentingEnabled=n}function abe(e,t){e.pendingCharacterTokens.push(t)}function sbe(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function D2(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===I.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===I.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===I.OPTGROUP&&e.openElements.pop();break}case I.OPTION:{e.openElements.currentTagId===I.OPTION&&e.openElements.pop();break}case I.SELECT:{e.openElements.hasInSelectScope(I.SELECT)&&(e.openElements.popUntilTagNamePopped(I.SELECT),e._resetInsertionMode());break}case I.TEMPLATE:{J1(e,t);break}}}function ddt(e,t){const n=t.tagID;n===I.CAPTION||n===I.TABLE||n===I.TBODY||n===I.TFOOT||n===I.THEAD||n===I.TR||n===I.TD||n===I.TH?(e.openElements.popUntilTagNamePopped(I.SELECT),e._resetInsertionMode(),e._processStartTag(t)):ube(e,t)}function fdt(e,t){const n=t.tagID;n===I.CAPTION||n===I.TABLE||n===I.TBODY||n===I.TFOOT||n===I.THEAD||n===I.TR||n===I.TD||n===I.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(I.SELECT),e._resetInsertionMode(),e.onEndTag(t)):cbe(e,t)}function hdt(e,t){switch(t.tagID){case I.BASE:case I.BASEFONT:case I.BGSOUND:case I.LINK:case I.META:case I.NOFRAMES:case I.SCRIPT:case I.STYLE:case I.TEMPLATE:case I.TITLE:{qd(e,t);break}case I.CAPTION:case I.COLGROUP:case I.TBODY:case I.TFOOT:case I.THEAD:{e.tmplInsertionModeStack[0]=Ae.IN_TABLE,e.insertionMode=Ae.IN_TABLE,nO(e,t);break}case I.COL:{e.tmplInsertionModeStack[0]=Ae.IN_COLUMN_GROUP,e.insertionMode=Ae.IN_COLUMN_GROUP,kV(e,t);break}case I.TR:{e.tmplInsertionModeStack[0]=Ae.IN_TABLE_BODY,e.insertionMode=Ae.IN_TABLE_BODY,UI(e,t);break}case I.TD:case I.TH:{e.tmplInsertionModeStack[0]=Ae.IN_ROW,e.insertionMode=Ae.IN_ROW,zI(e,t);break}default:e.tmplInsertionModeStack[0]=Ae.IN_BODY,e.insertionMode=Ae.IN_BODY,Do(e,t)}}function pdt(e,t){t.tagID===I.TEMPLATE&&J1(e,t)}function dbe(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(I.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):TV(e,t)}function mdt(e,t){t.tagID===I.HTML?Do(e,t):XC(e,t)}function fbe(e,t){var n;if(t.tagID===I.HTML){if(e.fragmentContext||(e.insertionMode=Ae.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===I.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 XC(e,t)}function XC(e,t){e.insertionMode=Ae.IN_BODY,FI(e,t)}function gdt(e,t){switch(t.tagID){case I.HTML:{Do(e,t);break}case I.FRAMESET:{e._insertElement(t,bt.HTML);break}case I.FRAME:{e._appendElement(t,bt.HTML),t.ackSelfClosing=!0;break}case I.NOFRAMES:{qd(e,t);break}}}function bdt(e,t){t.tagID===I.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==I.FRAMESET&&(e.insertionMode=Ae.AFTER_FRAMESET))}function ydt(e,t){switch(t.tagID){case I.HTML:{Do(e,t);break}case I.NOFRAMES:{qd(e,t);break}}}function vdt(e,t){t.tagID===I.HTML&&(e.insertionMode=Ae.AFTER_AFTER_FRAMESET)}function Odt(e,t){t.tagID===I.HTML?Do(e,t):W4(e,t)}function W4(e,t){e.insertionMode=Ae.IN_BODY,FI(e,t)}function Sdt(e,t){switch(t.tagID){case I.HTML:{Do(e,t);break}case I.NOFRAMES:{qd(e,t);break}}}function Edt(e,t){t.chars=Ki,e._insertCharacters(t)}function wdt(e,t){e._insertCharacters(t),e.framesetOk=!1}function hbe(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==bt.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function xdt(e,t){if(But(t))hbe(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===bt.MATHML?Z1e(t):r===bt.SVG&&(Uut(t),X1e(t)),wV(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function Tdt(e,t){if(t.tagID===I.P||t.tagID===I.BR){hbe(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)===bt.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}Ve.AREA,Ve.BASE,Ve.BASEFONT,Ve.BGSOUND,Ve.BR,Ve.COL,Ve.EMBED,Ve.FRAME,Ve.HR,Ve.IMG,Ve.INPUT,Ve.KEYGEN,Ve.LINK,Ve.META,Ve.PARAM,Ve.SOURCE,Ve.TRACK,Ve.WBR;const HI=pbe("end"),oh=pbe("start");function pbe(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 mbe(e){const t=oh(e),n=HI(e);if(t&&n)return{start:t,end:n}}const kdt=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),lre={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function gbe(e,t){const n=Ldt(e),r=pV("type",{handlers:{root:Adt,element:_dt,text:Cdt,comment:ybe,doctype:Rdt,raw:Ndt},unknown:Ddt}),i={parser:n?new are(lre):are.getFragmentParser(void 0,lre),handle(o){r(o,i)},stitches:!1,options:t||{}};r(e,i),eS(i,oh());const a=n?i.parser.document:i.parser.getFragment(),s=Flt(a,{file:i.options.file});return i.stitches&&Io(s,"comment",function(o,l,u){const d=o;if(d.value.stitch&&u&&l!==void 0){const f=u.children;return f[l]=d.value.stitch,l}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function bbe(e,t){let n=-1;if(e)for(;++n4&&(t.parser.tokenizer.state=0);const n={type:mr.CHARACTER,chars:e.value,location:AT(e)};eS(t,oh(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Rdt(e,t){const n={type:mr.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:AT(e)};eS(t,oh(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Idt(e,t){t.stitches=!0;const n=$dt(e);if("children"in e&&"children"in n){const r=gbe({type:"root",children:e.children},t.options);n.children=r.children}ybe({type:"comment",value:{stitch:n}},t)}function ybe(e,t){const n=e.value,r={type:mr.COMMENT,data:n,location:AT(e)};eS(t,oh(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function Ndt(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,vbe(t,oh(e)),t.parser.tokenizer.write(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 Ddt(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))Idt(n,t);else{let r="";throw kdt.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 eS(e,t){vbe(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=Fa.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 vbe(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 Pdt(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Fa.PLAINTEXT)return;eS(t,oh(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:Pf.html;i===Pf.html&&n==="svg"&&(i=Pf.svg);const a=jlt({...e,children:[]},{space:i===Pf.svg?"svg":"html"}),s={type:mr.START_TAG,tagName:n,tagID:JO(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:AT(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function Mdt(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Xlt.includes(n)||t.parser.tokenizer.state===Fa.PLAINTEXT)return;eS(t,HI(e));const r={type:mr.END_TAG,tagName:n,tagID:JO(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:AT(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Fa.RCDATA||t.parser.tokenizer.state===Fa.RAWTEXT||t.parser.tokenizer.state===Fa.SCRIPT_DATA)&&(t.parser.tokenizer.state=Fa.DATA)}function Ldt(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function AT(e){const t=oh(e)||{line:void 0,column:void 0,offset:void 0},n=HI(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 $dt(e){return"children"in e?Id({...e,children:[]}):Id(e)}function Obe(e){return function(t,n){return gbe(t,{...e,file:n})}}var Fdt=hue();const Bdt=ql(Fdt),Udt=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,zdt=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Hdt={};function ure(e,t){return(Hdt.jsx?zdt:Udt).test(e)}var Sbe={},cre=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,jdt=/\n/g,Wdt=/^\s*/,Qdt=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Gdt=/^:\s*/,Vdt=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,qdt=/^[;\s]*/,Ydt=/^\s+|\s+$/g,Zdt=` +`,dre="/",fre="*",Fg="",Xdt="comment",Kdt="declaration",Jdt=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(b){var S=b.match(jdt);S&&(n+=S.length);var E=b.lastIndexOf(Zdt);r=~E?b.length-E:r+b.length}function a(){var b={line:n,column:r};return function(S){return S.position=new s(b),u(),S}}function s(b){this.start=b,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function o(b){var S=new Error(t.source+":"+n+":"+r+": "+b);if(S.reason=b,S.filename=t.source,S.line=n,S.column=r,S.source=e,!t.silent)throw S}function l(b){var S=b.exec(e);if(S){var E=S[0];return i(E),e=e.slice(E.length),S}}function u(){l(Wdt)}function d(b){var S;for(b=b||[];S=f();)S!==!1&&b.push(S);return b}function f(){var b=a();if(!(dre!=e.charAt(0)||fre!=e.charAt(1))){for(var S=2;Fg!=e.charAt(S)&&(fre!=e.charAt(S)||dre!=e.charAt(S+1));)++S;if(S+=2,Fg===e.charAt(S-1))return o("End of comment missing");var E=e.slice(2,S-2);return r+=2,i(E),e=e.slice(S),r+=2,b({type:Xdt,comment:E})}}function p(){var b=a(),S=l(Qdt);if(S){if(f(),!l(Gdt))return o("property missing ':'");var E=l(Vdt),w=b({type:Kdt,property:hre(S[0].replace(cre,Fg)),value:E?hre(E[0].replace(cre,Fg)):Fg});return l(qdt),w}}function g(){var b=[];d(b);for(var S;S=p();)S!==!1&&(b.push(S),d(b));return b}return u(),g()};function hre(e){return e?e.replace(Ydt,Fg):Fg}var eft=Tf&&Tf.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Sbe,"__esModule",{value:!0});var pre=Sbe.default=nft,tft=eft(Jdt);function nft(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,tft.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}const rft=pre.default||pre;function zE(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?mre(e.position):"start"in e||"end"in e?mre(e):"line"in e||"column"in e?x$(e):""}function x$(e){return gre(e&&e.line)+":"+gre(e&&e.column)}function mre(e){return x$(e&&e.start)+"-"+x$(e&&e.end)}function gre(e){return e&&typeof e=="number"?e:1}class Po 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=zE(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}}Po.prototype.file="";Po.prototype.name="";Po.prototype.reason="";Po.prototype.message="";Po.prototype.stack="";Po.prototype.column=void 0;Po.prototype.line=void 0;Po.prototype.ancestors=void 0;Po.prototype.cause=void 0;Po.prototype.fatal=void 0;Po.prototype.place=void 0;Po.prototype.ruleId=void 0;Po.prototype.source=void 0;const AV={}.hasOwnProperty,ift=new Map,aft=/[A-Z]/g,sft=/-([a-z])/g,oft=new Set(["table","tbody","thead","tfoot","tr"]),lft=new Set(["td","th"]),Ebe="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function uft(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=bft(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=gft(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"?Bp:K1,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=wbe(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function wbe(e,t,n){if(t.type==="element")return cft(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return dft(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return hft(e,t,n);if(t.type==="mdxjsEsm")return fft(e,t);if(t.type==="root")return pft(e,t,n);if(t.type==="text")return mft(e,t)}function cft(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Bp,e.schema=i),e.ancestors.push(t);const a=Tbe(e,t.tagName,!1),s=yft(e,t);let o=CV(e,t);return oft.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!v1e(l):!0})),xbe(e,s,a,t),_V(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function dft(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)}lx(e,t.position)}function fft(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);lx(e,t.position)}function hft(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Bp,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:Tbe(e,t.name,!0),s=vft(e,t),o=CV(e,t);return xbe(e,s,a,t),_V(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function pft(e,t,n){const r={};return _V(r,CV(e,t)),e.create(t,e.Fragment,r,n)}function mft(e,t){return t.value}function xbe(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function _V(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function gft(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 bft(e,t){return n;function n(r,i,a,s){const o=Array.isArray(a.children),l=oh(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 yft(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&AV.call(t.properties,i)){const a=Oft(e,i,t.properties[i]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&lft.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 vft(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 lx(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 lx(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function CV(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:ift;for(;++ri?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);a0?(Nc(e,e.length,0,t),e):t}const yre={}.hasOwnProperty;function Abe(e){const t={};let n=-1;for(;++n13&&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 Nd(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const el=Bm(/[A-Za-z]/),ko=Bm(/[\dA-Za-z]/),Rft=Bm(/[#-'*+\--9=?A-Z^-~]/);function KC(e){return e!==null&&(e<32||e===127)}const T$=Bm(/\d/),Ift=Bm(/[\dA-Fa-f]/),Nft=Bm(/[!-/:-@[-`{-~]/);function _n(e){return e!==null&&e<-2}function Ti(e){return e!==null&&(e<0||e===32)}function Sr(e){return e===-2||e===-1||e===32}const jI=Bm(new RegExp("\\p{P}|\\p{S}","u")),M1=Bm(/\s/);function Bm(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function tS(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&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 yr(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(l){return Sr(l)?(e.enter(n),o(l)):t(l)}function o(l){return Sr(l)&&a++s))return;const N=t.events.length;let M=N,U,F;for(;M--;)if(t.events[M][0]==="exit"&&t.events[M][1].type==="chunkFlow"){if(U){F=t.events[M][1].end;break}U=!0}for(w(r),R=N;Rk;){const C=n[_];t.containerState=C[1],C[0].exit.call(t,e)}n.length=k}function x(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function $ft(e,t,n){return yr(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function JC(e){if(e===null||Ti(e)||M1(e))return 1;if(jI(e))return 2}function WI(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),p=Object.assign({},e[n][1].start);Ore(f,-l),Ore(p,l),s={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},o={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:p},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},s.start),end:Object.assign({},o.end)},e[r][1].end=Object.assign({},s.start),e[n][1].start=Object.assign({},o.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=yc(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=yc(u,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),u=yc(u,WI(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=yc(u,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,u=yc(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,Nc(e,r-1,n-r+3,u),n=r+u.length-d-2;break}}for(n=-1;++n0&&Sr(R)?yr(e,x,"linePrefix",a+1)(R):x(R)}function x(R){return R===null||_n(R)?e.check(Sre,S,_)(R):(e.enter("codeFlowValue"),k(R))}function k(R){return R===null||_n(R)?(e.exit("codeFlowValue"),x(R)):(e.consume(R),k)}function _(R){return e.exit("codeFenced"),t(R)}function C(R,N,M){let U=0;return F;function F(q){return R.enter("lineEnding"),R.consume(q),R.exit("lineEnding"),G}function G(q){return R.enter("codeFencedFence"),Sr(q)?yr(R,V,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(q):V(q)}function V(q){return q===o?(R.enter("codeFencedFenceSequence"),ie(q)):M(q)}function ie(q){return q===o?(U++,R.consume(q),ie):U>=s?(R.exit("codeFencedFenceSequence"),Sr(q)?yr(R,ne,"whitespace")(q):ne(q)):M(q)}function ne(q){return q===null||_n(q)?(R.exit("codeFencedFence"),N(q)):M(q)}}}function Yft(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 L7={name:"codeIndented",tokenize:Xft},Zft={tokenize:Kft,partial:!0};function Xft(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),yr(e,a,"linePrefix",5)(u)}function a(u){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?l(u):_n(u)?e.attempt(Zft,s,l)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||_n(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),o)}function l(u){return e.exit("codeIndented"),t(u)}}function Kft(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):_n(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):yr(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):_n(s)?i(s):n(s)}}const Jft={name:"codeText",tokenize:nht,resolve:eht,previous:tht};function eht(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=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 tthis.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&&P2(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),P2(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),P2(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=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function Dbe(e,t,n,r,i,a,s,o,l){const u=l||Number.POSITIVE_INFINITY;let d=0;return f;function f(w){return w===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(w),e.exit(a),p):w===null||w===32||w===41||KC(w)?n(w):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),S(w))}function p(w){return w===62?(e.enter(a),e.consume(w),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),g(w))}function g(w){return w===62?(e.exit("chunkString"),e.exit(o),p(w)):w===null||w===60||_n(w)?n(w):(e.consume(w),w===92?b:g)}function b(w){return w===60||w===62||w===92?(e.consume(w),g):g(w)}function S(w){return!d&&(w===null||w===41||Ti(w))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(w)):d999||g===null||g===91||g===93&&!l||g===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(g):g===93?(e.exit(a),e.enter(i),e.consume(g),e.exit(i),e.exit(r),t):_n(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),f(g))}function f(g){return g===null||g===91||g===93||_n(g)||o++>999?(e.exit("chunkString"),d(g)):(e.consume(g),l||(l=!Sr(g)),g===92?p:f)}function p(g){return g===91||g===92||g===93?(e.consume(g),o++,f):f(g)}}function Mbe(e,t,n,r,i,a){let s;return o;function o(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),s=p===40?41:p,l):n(p)}function l(p){return p===s?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(a),u(p))}function u(p){return p===s?(e.exit(a),l(s)):p===null?n(p):_n(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),yr(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===s||p===null||_n(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?f:d)}function f(p){return p===s||p===92?(e.consume(p),d):d(p)}}function HE(e,t){let n;return r;function r(i){return _n(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Sr(i)?yr(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const cht={name:"definition",tokenize:fht},dht={tokenize:hht,partial:!0};function fht(e,t,n){const r=this;let i;return a;function a(g){return e.enter("definition"),s(g)}function s(g){return Pbe.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function o(g){return i=Nd(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),l):n(g)}function l(g){return Ti(g)?HE(e,u)(g):u(g)}function u(g){return Dbe(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function d(g){return e.attempt(dht,f,f)(g)}function f(g){return Sr(g)?yr(e,p,"whitespace")(g):p(g)}function p(g){return g===null||_n(g)?(e.exit("definition"),r.parser.defined.push(i),t(g)):n(g)}}function hht(e,t,n){return r;function r(o){return Ti(o)?HE(e,i)(o):n(o)}function i(o){return Mbe(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return Sr(o)?yr(e,s,"whitespace")(o):s(o)}function s(o){return o===null||_n(o)?t(o):n(o)}}const pht={name:"hardBreakEscape",tokenize:mht};function mht(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return _n(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const ght={name:"headingAtx",tokenize:yht,resolve:bht};function bht(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"},Nc(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function yht(e,t,n){let r=0;return i;function i(d){return e.enter("atxHeading"),a(d)}function a(d){return e.enter("atxHeadingSequence"),s(d)}function s(d){return d===35&&r++<6?(e.consume(d),s):d===null||Ti(d)?(e.exit("atxHeadingSequence"),o(d)):n(d)}function o(d){return d===35?(e.enter("atxHeadingSequence"),l(d)):d===null||_n(d)?(e.exit("atxHeading"),t(d)):Sr(d)?yr(e,o,"whitespace")(d):(e.enter("atxHeadingText"),u(d))}function l(d){return d===35?(e.consume(d),l):(e.exit("atxHeadingSequence"),o(d))}function u(d){return d===null||d===35||Ti(d)?(e.exit("atxHeadingText"),o(d)):(e.consume(d),u)}}const vht=["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"],wre=["pre","script","style","textarea"],Oht={name:"htmlFlow",tokenize:xht,resolveTo:wht,concrete:!0},Sht={tokenize:kht,partial:!0},Eht={tokenize:Tht,partial:!0};function wht(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 xht(e,t,n){const r=this;let i,a,s,o,l;return u;function u(X){return d(X)}function d(X){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(X),f}function f(X){return X===33?(e.consume(X),p):X===47?(e.consume(X),a=!0,S):X===63?(e.consume(X),i=3,r.interrupt?t:W):el(X)?(e.consume(X),s=String.fromCharCode(X),E):n(X)}function p(X){return X===45?(e.consume(X),i=2,g):X===91?(e.consume(X),i=5,o=0,b):el(X)?(e.consume(X),i=4,r.interrupt?t:W):n(X)}function g(X){return X===45?(e.consume(X),r.interrupt?t:W):n(X)}function b(X){const Re="CDATA[";return X===Re.charCodeAt(o++)?(e.consume(X),o===Re.length?r.interrupt?t:V:b):n(X)}function S(X){return el(X)?(e.consume(X),s=String.fromCharCode(X),E):n(X)}function E(X){if(X===null||X===47||X===62||Ti(X)){const Re=X===47,Ue=s.toLowerCase();return!Re&&!a&&wre.includes(Ue)?(i=1,r.interrupt?t(X):V(X)):vht.includes(s.toLowerCase())?(i=6,Re?(e.consume(X),w):r.interrupt?t(X):V(X)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(X):a?x(X):k(X))}return X===45||ko(X)?(e.consume(X),s+=String.fromCharCode(X),E):n(X)}function w(X){return X===62?(e.consume(X),r.interrupt?t:V):n(X)}function x(X){return Sr(X)?(e.consume(X),x):F(X)}function k(X){return X===47?(e.consume(X),F):X===58||X===95||el(X)?(e.consume(X),_):Sr(X)?(e.consume(X),k):F(X)}function _(X){return X===45||X===46||X===58||X===95||ko(X)?(e.consume(X),_):C(X)}function C(X){return X===61?(e.consume(X),R):Sr(X)?(e.consume(X),C):k(X)}function R(X){return X===null||X===60||X===61||X===62||X===96?n(X):X===34||X===39?(e.consume(X),l=X,N):Sr(X)?(e.consume(X),R):M(X)}function N(X){return X===l?(e.consume(X),l=null,U):X===null||_n(X)?n(X):(e.consume(X),N)}function M(X){return X===null||X===34||X===39||X===47||X===60||X===61||X===62||X===96||Ti(X)?C(X):(e.consume(X),M)}function U(X){return X===47||X===62||Sr(X)?k(X):n(X)}function F(X){return X===62?(e.consume(X),G):n(X)}function G(X){return X===null||_n(X)?V(X):Sr(X)?(e.consume(X),G):n(X)}function V(X){return X===45&&i===2?(e.consume(X),re):X===60&&i===1?(e.consume(X),ee):X===62&&i===4?(e.consume(X),Pe):X===63&&i===3?(e.consume(X),W):X===93&&i===5?(e.consume(X),se):_n(X)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Sht,Ee,ie)(X)):X===null||_n(X)?(e.exit("htmlFlowData"),ie(X)):(e.consume(X),V)}function ie(X){return e.check(Eht,ne,Ee)(X)}function ne(X){return e.enter("lineEnding"),e.consume(X),e.exit("lineEnding"),q}function q(X){return X===null||_n(X)?ie(X):(e.enter("htmlFlowData"),V(X))}function re(X){return X===45?(e.consume(X),W):V(X)}function ee(X){return X===47?(e.consume(X),s="",Z):V(X)}function Z(X){if(X===62){const Re=s.toLowerCase();return wre.includes(Re)?(e.consume(X),Pe):V(X)}return el(X)&&s.length<8?(e.consume(X),s+=String.fromCharCode(X),Z):V(X)}function se(X){return X===93?(e.consume(X),W):V(X)}function W(X){return X===62?(e.consume(X),Pe):X===45&&i===2?(e.consume(X),W):V(X)}function Pe(X){return X===null||_n(X)?(e.exit("htmlFlowData"),Ee(X)):(e.consume(X),Pe)}function Ee(X){return e.exit("htmlFlow"),t(X)}}function Tht(e,t,n){const r=this;return i;function i(s){return _n(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 kht(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(_T,t,n)}}const Aht={name:"htmlText",tokenize:_ht};function _ht(e,t,n){const r=this;let i,a,s;return o;function o(W){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(W),l}function l(W){return W===33?(e.consume(W),u):W===47?(e.consume(W),C):W===63?(e.consume(W),k):el(W)?(e.consume(W),M):n(W)}function u(W){return W===45?(e.consume(W),d):W===91?(e.consume(W),a=0,b):el(W)?(e.consume(W),x):n(W)}function d(W){return W===45?(e.consume(W),g):n(W)}function f(W){return W===null?n(W):W===45?(e.consume(W),p):_n(W)?(s=f,ee(W)):(e.consume(W),f)}function p(W){return W===45?(e.consume(W),g):f(W)}function g(W){return W===62?re(W):W===45?p(W):f(W)}function b(W){const Pe="CDATA[";return W===Pe.charCodeAt(a++)?(e.consume(W),a===Pe.length?S:b):n(W)}function S(W){return W===null?n(W):W===93?(e.consume(W),E):_n(W)?(s=S,ee(W)):(e.consume(W),S)}function E(W){return W===93?(e.consume(W),w):S(W)}function w(W){return W===62?re(W):W===93?(e.consume(W),w):S(W)}function x(W){return W===null||W===62?re(W):_n(W)?(s=x,ee(W)):(e.consume(W),x)}function k(W){return W===null?n(W):W===63?(e.consume(W),_):_n(W)?(s=k,ee(W)):(e.consume(W),k)}function _(W){return W===62?re(W):k(W)}function C(W){return el(W)?(e.consume(W),R):n(W)}function R(W){return W===45||ko(W)?(e.consume(W),R):N(W)}function N(W){return _n(W)?(s=N,ee(W)):Sr(W)?(e.consume(W),N):re(W)}function M(W){return W===45||ko(W)?(e.consume(W),M):W===47||W===62||Ti(W)?U(W):n(W)}function U(W){return W===47?(e.consume(W),re):W===58||W===95||el(W)?(e.consume(W),F):_n(W)?(s=U,ee(W)):Sr(W)?(e.consume(W),U):re(W)}function F(W){return W===45||W===46||W===58||W===95||ko(W)?(e.consume(W),F):G(W)}function G(W){return W===61?(e.consume(W),V):_n(W)?(s=G,ee(W)):Sr(W)?(e.consume(W),G):U(W)}function V(W){return W===null||W===60||W===61||W===62||W===96?n(W):W===34||W===39?(e.consume(W),i=W,ie):_n(W)?(s=V,ee(W)):Sr(W)?(e.consume(W),V):(e.consume(W),ne)}function ie(W){return W===i?(e.consume(W),i=void 0,q):W===null?n(W):_n(W)?(s=ie,ee(W)):(e.consume(W),ie)}function ne(W){return W===null||W===34||W===39||W===60||W===61||W===96?n(W):W===47||W===62||Ti(W)?U(W):(e.consume(W),ne)}function q(W){return W===47||W===62||Ti(W)?U(W):n(W)}function re(W){return W===62?(e.consume(W),e.exit("htmlTextData"),e.exit("htmlText"),t):n(W)}function ee(W){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(W),e.exit("lineEnding"),Z}function Z(W){return Sr(W)?yr(e,se,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):se(W)}function se(W){return e.enter("htmlTextData"),s(W)}}const IV={name:"labelEnd",tokenize:Pht,resolveTo:Dht,resolveAll:Nht},Cht={tokenize:Mht},Rht={tokenize:Lht},Iht={tokenize:$ht};function Nht(e){let t=-1;for(;++t=3&&(u===null||_n(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),Sr(u)?yr(e,o,"whitespace")(u):o(u))}}const xl={name:"list",tokenize:Ght,continuation:{tokenize:Vht},exit:Yht},Wht={tokenize:Zht,partial:!0},Qht={tokenize:qht,partial:!0};function Ght(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(g){const b=r.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||g===r.containerState.marker:T$(g)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(Q4,n,u)(g):u(g);if(!r.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(g)}return n(g)}function l(g){return T$(g)&&++s<10?(e.consume(g),l):(!r.interrupt||s<2)&&(r.containerState.marker?g===r.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),u(g)):n(g)}function u(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||g,e.check(_T,r.interrupt?n:d,e.attempt(Wht,p,f))}function d(g){return r.containerState.initialBlankLine=!0,a++,p(g)}function f(g){return Sr(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),p):n(g)}function p(g){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(g)}}function Vht(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(_T,i,a);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,yr(e,t,"listItemIndent",r.containerState.size+1)(o)}function a(o){return r.containerState.furtherBlankLines||!Sr(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(Qht,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,yr(e,e.attempt(xl,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function qht(e,t,n){const r=this;return yr(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 Yht(e){e.exit(this.containerState.type)}function Zht(e,t,n){const r=this;return yr(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!Sr(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const xre={name:"setextUnderline",tokenize:Kht,resolveTo:Xht};function Xht(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:Object.assign({},e[i][1].start),end:Object.assign({},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=Object.assign({},e[a][1].end)):e[r][1]=s,e.push(["exit",s,t]),e}function Kht(e,t,n){const r=this;let i;return a;function a(u){let d=r.events.length,f;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){f=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(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"),Sr(u)?yr(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||_n(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const Jht={tokenize:ept};function ept(e){const t=this,n=e.attempt(_T,r,e.attempt(this.parser.constructs.flowInitial,i,yr(e,e.attempt(this.parser.constructs.flow,i,e.attempt(aht,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 tpt={resolveAll:$be()},npt=Lbe("string"),rpt=Lbe("text");function Lbe(e){return{tokenize:t,resolveAll:$be(e==="text"?ipt:void 0)};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,s,o);return s;function s(d){return u(d)?a(d):o(d)}function o(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),l}function l(d){return u(d)?(n.exit("data"),a(d)):(n.consume(d),l)}function u(d){if(d===null)return!0;const f=i[d];let p=-1;if(f)for(;++p-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 opt(e,t){let n=-1;const r=[];let i;for(;++n0){const At=ve.tokenStack[ve.tokenStack.length-1];(At[1]||kre).call(ve,void 0,At[0])}for(ye.position={start:p0(Ne.length>0?Ne[0][1].start:{line:1,column:1,offset:0}),end:p0(Ne.length>0?Ne[Ne.length-2][1].end:{line:1,column:1,offset:0})},ze=-1;++ze1?"-"+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 Ppt(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 Mpt(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Ube(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 Lpt(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Ube(e,t);const i={src:tS(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 $pt(e,t){const n={src:tS(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 Fpt(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 Bpt(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Ube(e,t);const i={href:tS(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 Upt(e,t){const n={href:tS(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 zpt(e,t,n){const r=e.all(t),i=n?Hpt(n):zbe(t),a={},s=[];if(typeof t.checked=="boolean"){const d=r[0];let f;d&&d.type==="element"&&d.tagName==="p"?f=d:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o1}function jpt(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=oh(t.children[1]),l=HI(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 qpt(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(;++l0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(Cre(t.slice(i),i>0,!1)),a.join("")}function Cre(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===Are||a===_re;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===Are||a===_re;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Xpt(e,t){const n={type:"text",value:Zpt(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Kpt(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Jpt={blockquote:_pt,break:Cpt,code:Rpt,delete:Ipt,emphasis:Npt,footnoteReference:Dpt,heading:Ppt,html:Mpt,imageReference:Lpt,image:$pt,inlineCode:Fpt,linkReference:Bpt,link:Upt,listItem:zpt,list:jpt,paragraph:Wpt,root:Qpt,strong:Gpt,table:Vpt,tableCell:Ypt,tableRow:qpt,text:Xpt,thematicBreak:Kpt,toml:__,yaml:__,definition:__,footnoteDefinition:__};function __(){}function e0t(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 t0t(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function n0t(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||e0t,r=e.options.footnoteBackLabel||t0t,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l0&&b.push({type:"text",value:" "});let x=typeof n=="string"?n:n(l,g);typeof x=="string"&&(x={type:"text",value:x}),b.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(g>1?"-"+g:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,g),className:["data-footnote-backref"]},children:Array.isArray(x)?x:[x]})}const E=d[d.length-1];if(E&&E.type==="element"&&E.tagName==="p"){const x=E.children[E.children.length-1];x&&x.type==="text"?x.value+=" ":E.children.push({type:"text",value:" "}),E.children.push(...b)}else d.push(...b);const w={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(d,!0)};e.patch(u,w),o.push(w)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Id(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 A$={}.hasOwnProperty,r0t={};function i0t(e,t){const n=t||r0t,r=new Map,i=new Map,a=new Map,s={...Jpt,...n.handlers},o={all:u,applyData:s0t,definitionById:r,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:s,one:l,options:n,patch:a0t,wrap:l0t};return Io(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const f=d.type==="definition"?r:i,p=String(d.identifier).toUpperCase();f.has(p)||f.set(p,d)}}),o;function l(d,f){const p=d.type,g=o.handlers[p];if(A$.call(o.handlers,p)&&g)return g(o,d,f);if(o.options.passThrough&&o.options.passThrough.includes(p)){if("children"in d){const{children:S,...E}=d,w=Id(E);return w.children=o.all(d),w}return Id(d)}return(o.options.unknownHandler||o0t)(o,d,f)}function u(d){const f=[];if("children"in d){const p=d.children;let g=-1;for(;++g0&&n.push({type:"text",value:` +`}),n}function Rre(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Ire(e,t){const n=i0t(e,t),r=n.one(e,void 0),i=n0t(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` +`},i),a}function u0t(e,t){return e&&"run"in e?async function(n,r){const i=Ire(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Ire(n,{file:r,...t||e})}}function Nre(e){if(e)throw e}var G4=Object.prototype.hasOwnProperty,Hbe=Object.prototype.toString,Dre=Object.defineProperty,Pre=Object.getOwnPropertyDescriptor,Mre=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Hbe.call(t)==="[object Array]"},Lre=function(t){if(!t||Hbe.call(t)!=="[object Object]")return!1;var n=G4.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&G4.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||G4.call(t,i)},$re=function(t,n){Dre&&n.name==="__proto__"?Dre(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Fre=function(t,n){if(n==="__proto__")if(G4.call(t,n)){if(Pre)return Pre(t,n).value}else return;return t[n]},c0t=function e(){var t,n,r,i,a,s,o=arguments[0],l=1,u=arguments.length,d=!1;for(typeof o=="boolean"&&(d=o,o=arguments[1]||{},l=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});ls.length;let l;o&&s.push(i);try{l=e.apply(this,s)}catch(u){const d=u;if(o&&n)throw d;return i(d)}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 gf={basename:h0t,dirname:p0t,extname:m0t,join:g0t,sep:"/"};function h0t(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');CT(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 p0t(e){if(CT(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 m0t(e){CT(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 g0t(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function y0t(e,t){let n="",r=0,i=-1,a=0,s=-1,o,l;for(;++s<=e.length;){if(s2){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 CT(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const v0t={cwd:O0t};function O0t(){return"/"}function C$(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function S0t(e){if(typeof e=="string")e=new URL(e);else if(!C$(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 E0t(e)}function E0t(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(;++n0){let[g,...b]=d;const S=r[p][1];_$(S)&&_$(g)&&(g=F7(!0,S,g)),r[p]=[u,g,...b]}}}}const k0t=new NV().freeze();function H7(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function j7(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function W7(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 Ure(e){if(!_$(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function zre(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function C_(e){return A0t(e)?e:new jbe(e)}function A0t(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function _0t(e){return typeof e=="string"||C0t(e)}function C0t(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const R0t="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Hre=[],jre={allowDangerousHtml:!0},I0t=/^(https?|ircs?|mailto|xmpp)$/i,N0t=[{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 D0t(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,a=e.components,s=e.disallowedElements,o=e.rehypePlugins||Hre,l=e.remarkPlugins||Hre,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...jre}:jre,d=e.skipHtml,f=e.unwrapDisallowed,p=e.urlTransform||P0t,g=k0t().use(Apt).use(l).use(u0t,u).use(o),b=new jbe;typeof r=="string"&&(b.value=r);for(const x of N0t)Object.hasOwn(e,x.from)&&(""+x.from+(x.to?"use `"+x.to+"` instead":"remove it")+R0t+x.id,void 0);const S=g.parse(b);let E=g.runSync(S,b);return i&&(E={type:"element",tagName:"div",properties:{className:i},children:E.type==="root"?E.children:[E]}),Io(E,w),uft(E,{Fragment:D.Fragment,components:a,ignoreInvalidStyle:!0,jsx:D.jsx,jsxs:D.jsxs,passKeys:!0,passNode:!0});function w(x,k,_){if(x.type==="raw"&&_&&typeof k=="number")return d?_.children.splice(k,1):_.children[k]={type:"text",value:x.value},k;if(x.type==="element"){let C;for(C in M7)if(Object.hasOwn(M7,C)&&Object.hasOwn(x.properties,C)){const R=x.properties[C],N=M7[C];(N===null||N.includes(x.tagName))&&(x.properties[C]=p(String(R||""),C,x))}}if(x.type==="element"){let C=t?!t.includes(x.tagName):s?s.includes(x.tagName):!1;if(!C&&n&&typeof k=="number"&&(C=!n(x,k,_)),C&&_&&typeof k=="number")return f&&x.children?_.children.splice(k,1,...x.children):_.children.splice(k,1),k}}}function P0t(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||n>-1&&t>n||r>-1&&t>r||I0t.test(e.slice(0,t))?e:""}function Wre(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 M0t(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function L0t(e,t,n){const i=WO((n||{}).ignore||[]),a=$0t(t);let s=-1;for(;++s0?{type:"text",value:R}:void 0),R===!1?p.lastIndex=_+1:(b!==_&&x.push({type:"text",value:u.value.slice(b,_)}),Array.isArray(R)?x.push(...R):R&&x.push(R),b=_+k[0].length,w=!0),!p.global)break;k=p.exec(u.value)}return w?(b?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Wre(e,"(");let a=Wre(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 Wbe(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||M1(n)||jI(n))&&(!t||n!==47)}Qbe.peek=lmt;function K0t(){return{enter:{gfmFootnoteDefinition:emt,gfmFootnoteDefinitionLabelString:tmt,gfmFootnoteCall:imt,gfmFootnoteCallString:amt},exit:{gfmFootnoteDefinition:rmt,gfmFootnoteDefinitionLabelString:nmt,gfmFootnoteCall:omt,gfmFootnoteCallString:smt}}}function J0t(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:umt,footnoteReference:Qbe}}}function emt(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function tmt(){this.buffer()}function nmt(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=Nd(this.sliceSerialize(e)).toLowerCase()}function rmt(e){this.exit(e)}function imt(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function amt(){this.buffer()}function smt(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=Nd(this.sliceSerialize(e)).toLowerCase()}function omt(e){this.exit(e)}function Qbe(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),{...i.current(),before:a,after:"]"})),o(),s(),a+=i.move("]"),a}function lmt(){return"["}function umt(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteDefinition"),o=n.enter("label");return a+=i.move(n.safe(n.associationId(e),{...i.current(),before:a,after:"]"})),o(),a+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),a+=i.move(n.indentLines(n.containerFlow(e,i.current()),cmt)),s(),a}function cmt(e,t,n){return t===0?e:(n?"":" ")+e}const dmt=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Gbe.peek=gmt;function fmt(){return{canContainEols:["delete"],enter:{strikethrough:pmt},exit:{strikethrough:mmt}}}function hmt(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:dmt}],handlers:{delete:Gbe}}}function pmt(e){this.enter({type:"delete",children:[]},e)}function mmt(e){this.exit(e)}function Gbe(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 gmt(){return"~"}function bmt(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||vmt,i=[],a=[],s=[],o=[];let l=0,u=-1;for(;++ul&&(l=e[u].length);++Eo[E])&&(o[E]=x)}b.push(w)}a[u]=b,s[u]=S}let d=-1;if(typeof n=="object"&&"length"in n)for(;++do[d]&&(o[d]=w),p[d]=w),f[d]=x}a.splice(1,0,f),s.splice(1,0,p),u=-1;const g=[];for(;++u "),a.shift(2);const s=n.indentLines(n.containerFlow(e,a.current()),Smt);return i(),s}function Smt(e,t,n){return">"+(n?"":" ")+e}function Emt(e,t){return Gre(e,t.inConstruct,!0)&&!Gre(e,t.notInConstruct,!1)}function Gre(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++rs&&(s=a):a=1,i=r+t.length,r=n.indexOf(t,i);return s}function wmt(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 xmt(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 Tmt(e,t,n,r){const i=xmt(n),a=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(wmt(e,n)){const f=n.enter("codeIndented"),p=n.indentLines(a,kmt);return f(),p}const o=n.createTracker(r),l=i.repeat(Math.max(Vbe(a,i)+1,3)),u=n.enter("codeFenced");let d=o.move(l);if(e.lang){const f=n.enter(`codeFencedLang${s}`);d+=o.move(n.safe(e.lang,{before:d,after:" ",encode:["`"],...o.current()})),f()}if(e.lang&&e.meta){const f=n.enter(`codeFencedMeta${s}`);d+=o.move(" "),d+=o.move(n.safe(e.meta,{before:d,after:` +`,encode:["`"],...o.current()})),f()}return d+=o.move(` +`),a&&(d+=o.move(a+` +`)),d+=o.move(l),u(),d}function kmt(e,t,n){return(n?"":" ")+e}function DV(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 Amt(e,t,n,r){const i=DV(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 _mt(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}qbe.peek=Cmt;function qbe(e,t,n,r){const i=_mt(n),a=n.enter("emphasis"),s=n.createTracker(r);let o=s.move(i);return o+=s.move(n.containerPhrasing(e,{before:o,after:i,...s.current()})),o+=s.move(i),a(),o}function Cmt(e,t,n){return n.options.emphasis||"*"}function Rmt(e,t){let n=!1;return Io(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,QC}),!!((!e.depth||e.depth<3)&&RV(e)&&(t.options.setext||n))}function Imt(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(Rmt(e,n)){const d=n.enter("headingSetext"),f=n.enter("phrasing"),p=n.containerPhrasing(e,{...a.current(),before:` +`,after:` +`});return f(),d(),p+` +`+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.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="&#x"+u.charCodeAt(0).toString(16).toUpperCase()+";"+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),l(),o(),u}Ybe.peek=Nmt;function Ybe(e){return e.value||""}function Nmt(){return"<"}Zbe.peek=Dmt;function Zbe(e,t,n,r){const i=DV(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 Dmt(){return"!"}Xbe.peek=Pmt;function Xbe(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 d=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return s(),n.stack=d,a(),i==="full"||!u||u!==f?l+=o.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function Pmt(){return"!"}Kbe.peek=Mmt;function Kbe(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\u007F]/.test(e.url))}eye.peek=Lmt;function eye(e,t,n,r){const i=DV(n),a=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let o,l;if(Jbe(e,n)){const d=n.stack;n.stack=[],o=n.enter("autolink");let f=s.move("<");return f+=s.move(n.containerPhrasing(e,{before:f,after:">",...s.current()})),f+=s.move(">"),o(),n.stack=d,f}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 Lmt(e,t,n){return Jbe(e,n)?"<":"["}tye.peek=$mt;function tye(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 d=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return s(),n.stack=d,a(),i==="full"||!u||u!==f?l+=o.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function $mt(){return"["}function PV(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 Fmt(e){const t=PV(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 Bmt(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 nye(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 Umt(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let s=e.ordered?Bmt(n):PV(n);const o=e.ordered?s==="."?")":".":Fmt(n);let l=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&d&&(!d.children||!d.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),nye(n)===s&&d){let f=-1;for(;++f-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()),d);return l(),u;function d(f,p,g){return p?(g?"":" ".repeat(s))+f:(g?a:a+" ".repeat(s-a.length))+f}}function jmt(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),s=n.containerPhrasing(e,r);return a(),i(),s}const Wmt=WO(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Qmt(e,t,n,r){return(e.children.some(function(s){return Wmt(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Gmt(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}rye.peek=Vmt;function rye(e,t,n,r){const i=Gmt(n),a=n.enter("strong"),s=n.createTracker(r);let o=s.move(i+i);return o+=s.move(n.containerPhrasing(e,{before:o,after:i,...s.current()})),o+=s.move(i+i),a(),o}function Vmt(e,t,n){return n.options.strong||"*"}function qmt(e,t,n,r){return n.safe(e.value,r)}function Ymt(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 Zmt(e,t,n){const r=(nye(n)+(n.options.ruleSpaces?" ":"")).repeat(Ymt(n));return n.options.ruleSpaces?r.slice(0,-1):r}const iye={blockquote:Omt,break:Vre,code:Tmt,definition:Amt,emphasis:qbe,hardBreak:Vre,heading:Imt,html:Ybe,image:Zbe,imageReference:Xbe,inlineCode:Kbe,link:eye,linkReference:tye,list:Umt,listItem:Hmt,paragraph:jmt,root:Qmt,strong:rye,text:qmt,thematicBreak:Zmt};function Xmt(){return{enter:{table:Kmt,tableData:qre,tableHeader:qre,tableRow:egt},exit:{codeText:tgt,table:Jmt,tableData:q7,tableHeader:q7,tableRow:q7}}}function Kmt(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 Jmt(e){this.exit(e),this.data.inTable=void 0}function egt(e){this.enter({type:"tableRow",children:[]},e)}function q7(e){this.exit(e)}function qre(e){this.enter({type:"tableCell",children:[]},e)}function tgt(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,ngt));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function ngt(e,t){return t==="|"?t:e}function rgt(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:p,table:s,tableCell:l,tableRow:o}};function s(g,b,S,E){return u(d(g,S,E),g.align)}function o(g,b,S,E){const w=f(g,S,E),x=u([w]);return x.slice(0,x.indexOf(` +`))}function l(g,b,S,E){const w=S.enter("tableCell"),x=S.enter("phrasing"),k=S.containerPhrasing(g,{...E,before:a,after:a});return x(),w(),k}function u(g,b){return bmt(g,{align:b,alignDelimiters:r,padding:n,stringLength:i})}function d(g,b,S){const E=g.children;let w=-1;const x=[],k=b.enter("table");for(;++w0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Sgt={tokenize:Cgt,partial:!0};function Egt(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:kgt,continuation:{tokenize:Agt},exit:_gt}},text:{91:{name:"gfmFootnoteCall",tokenize:Tgt},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:wgt,resolveTo:xgt}}}}function wgt(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=Nd(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 xgt(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 Tgt(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;return o;function o(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),l}function l(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(f){if(a>999||f===93&&!s||f===null||f===91||Ti(f))return n(f);if(f===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(Nd(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return Ti(f)||(s=!0),a++,e.consume(f),f===92?d:u}function d(f){return f===91||f===92||f===93?(e.consume(f),a++,u):u(f)}}function kgt(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0,o;return l;function l(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(b)}function d(b){if(s>999||b===93&&!o||b===null||b===91||Ti(b))return n(b);if(b===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return a=Nd(r.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return Ti(b)||(o=!0),s++,e.consume(b),b===92?f:d}function f(b){return b===91||b===92||b===93?(e.consume(b),s++,d):d(b)}function p(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),i.includes(a)||i.push(a),yr(e,g,"gfmFootnoteDefinitionWhitespace")):n(b)}function g(b){return t(b)}}function Agt(e,t,n){return e.check(_T,t,e.attempt(Sgt,t,n))}function _gt(e){e.exit("gfmFootnoteDefinition")}function Cgt(e,t,n){const r=this;return yr(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 Rgt(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(;++l1?l(b):(s.consume(b),f++,g);if(f<2&&!n)return l(b);const E=s.exit("strikethroughSequenceTemporary"),w=JC(b);return E._open=!w||w===2&&!!S,E._close=!S||S===2&&!!w,o(b)}}}class Igt{constructor(){this.map=[]}add(t,n,r){Ngt(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]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function Ngt(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const ne=r.events[G][1].type;if(ne==="lineEnding"||ne==="linePrefix")G--;else break}const V=G>-1?r.events[G][1].type:null,ie=V==="tableHead"||V==="tableRow"?R:l;return ie===R&&r.parser.lazy[r.now().line]?n(F):ie(F)}function l(F){return e.enter("tableHead"),e.enter("tableRow"),u(F)}function u(F){return F===124||(s=!0,a+=1),d(F)}function d(F){return F===null?n(F):_n(F)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),g):n(F):Sr(F)?yr(e,d,"whitespace")(F):(a+=1,s&&(s=!1,i+=1),F===124?(e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),s=!0,d):(e.enter("data"),f(F)))}function f(F){return F===null||F===124||Ti(F)?(e.exit("data"),d(F)):(e.consume(F),F===92?p:f)}function p(F){return F===92||F===124?(e.consume(F),f):f(F)}function g(F){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(F):(e.enter("tableDelimiterRow"),s=!1,Sr(F)?yr(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):b(F))}function b(F){return F===45||F===58?E(F):F===124?(s=!0,e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),S):C(F)}function S(F){return Sr(F)?yr(e,E,"whitespace")(F):E(F)}function E(F){return F===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(F),e.exit("tableDelimiterMarker"),w):F===45?(a+=1,w(F)):F===null||_n(F)?_(F):C(F)}function w(F){return F===45?(e.enter("tableDelimiterFiller"),x(F)):C(F)}function x(F){return F===45?(e.consume(F),x):F===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(F),e.exit("tableDelimiterMarker"),k):(e.exit("tableDelimiterFiller"),k(F))}function k(F){return Sr(F)?yr(e,_,"whitespace")(F):_(F)}function _(F){return F===124?b(F):F===null||_n(F)?!s||i!==a?C(F):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(F)):C(F)}function C(F){return n(F)}function R(F){return e.enter("tableRow"),N(F)}function N(F){return F===124?(e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),N):F===null||_n(F)?(e.exit("tableRow"),t(F)):Sr(F)?yr(e,N,"whitespace")(F):(e.enter("data"),M(F))}function M(F){return F===null||F===124||Ti(F)?(e.exit("data"),N(F)):(e.consume(F),F===92?U:M)}function U(F){return F===92||F===124?(e.consume(F),M):M(F)}}function Lgt(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,l=0,u,d,f;const p=new Igt;for(;++nn[2]+1){const b=n[2]+1,S=n[3]-n[2]-1;e.add(b,S,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return i!==void 0&&(a.end=Object.assign({},hy(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function Zre(e,t,n,r,i){const a=[],s=hy(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 hy(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const $gt={name:"tasklistCheck",tokenize:Bgt};function Fgt(){return{text:{91:$gt}}}function Bgt(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 Ti(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 _n(l)?t(l):Sr(l)?e.check({tokenize:Ugt},t,n)(l):n(l)}}function Ugt(e,t,n){return yr(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function zgt(e){return Abe([fgt(),Egt(),Rgt(e),Pgt(),Fgt()])}const Hgt={};function jgt(e){const t=this,n=e||Hgt,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(zgt(n)),a.push(lgt()),s.push(ugt(n))}const Wgt=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,Qgt=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,Ggt=({legacyTitle:e=!1}={})=>t=>{Io(t,"blockquote",(n,r,i)=>{let a="",s="",o=!0,l=n.children.map(u=>{if(o&&u.type==="paragraph"){const d=u.children[0],f=d.type==="text"?d.value:"",p=e?Qgt:Wgt,g=f.match(p);if(g&&(o=!1,a=g[1].toLocaleLowerCase(),s=e&&g[2]||a.toLocaleUpperCase(),f.includes(` +`)&&(u.children[0]={type:"text",value:f.replace(p,"").replace(/^\n+/,"")}),!f.includes(` +`))){const b=[];u.children.forEach((S,E)=>{E!=0&&(E==1&&S.type==="break"||b.push(S))}),u.children=[...b]}}return u});a&&(n.data={hName:"div",hProperties:{class:`markdown-alert markdown-alert-${a}`,dir:"auto"}},l.unshift({type:"paragraph",children:[Vgt(a),{type:"text",value:s.replace(/^\//,"")}],data:{hProperties:{class:"markdown-alert-title",dir:"auto"}}})),n.children=[...l]})};function Vgt(e){let t=qgt[e]??"";return{type:"emphasis",data:{hName:"svg",hProperties:{class:"octicon",viewBox:"0 0 16 16",width:"16",height:"16",ariaHidden:"true"}},children:[{type:"emphasis",data:{hName:"path",hProperties:{d:t}},children:[]}]}}const qgt={note:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z",tip:"M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z",important:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",warning:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",caution:"M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"};function Ygt(e,t){if(typeof document>"u")return;const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style={position:"absolute",left:"-9999px"},document.body.appendChild(n);const r=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):!1;n.select();let i=!1;try{i=!!document.execCommand("copy")}catch{i=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(i)}function hye(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?hye(t.parentElement):null}function Zgt(e){var t=n=>{var r=hye(n.target);r&&(r.classList.add("active"),Ygt(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};L.useEffect(()=>{var n,r;return(n=e.current)==null||n.removeEventListener("click",t,!1),(r=e.current)==null||r.addEventListener("click",t,!1),()=>{var i;(i=e.current)==null||i.removeEventListener("click",t,!1)}},[e])}var Xgt=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],Kgt=e=>e;const Jgt=on.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:i,style:a,disableCopy:s=!1,skipHtml:o=!0,onScroll:l,onMouseOver:u,pluginsFilter:d,wrapperElement:f={},warpperElement:p={},urlTransform:g}=e,b=Bdt(e,Xgt),S=on.useRef(null);L.useImperativeHandle(t,()=>ep({},e,{mdp:S}),[S,e]);var E=(n||"")+" "+(r||"");Zgt(S);var w=[...b.rehypePlugins||[]],x={allowElement:(C,R,N)=>b.allowElement?b.allowElement(C,R,N):/^[A-Za-z0-9]+$/.test(C.tagName)};o&&w.push(Obe);var k=[Ggt,...b.remarkPlugins||[],jgt],_=ep({},p,f);return D.jsx("div",ep({ref:S,onScroll:l,onMouseOver:u},_,{className:E,style:a,children:D.jsx(D0t,ep({},x,b,{skipHtml:o,urlTransform:g||Kgt,rehypePlugins:d?d("rehype",w):w,remarkPlugins:d?d("remark",k):k,children:i||""}))}))});var e1t=function(t){return n=>{Io(n,r=>{r.type==="element"&&r.tagName==="code"&&r.data&&r.data.meta&&(r.properties=ep({},r.properties,{"data-meta":String(r.data.meta)}))})}},t1t=function(t){return n=>{Io(n,r=>{if(r.type==="element"&&r.tagName==="code"&&r.properties&&r.properties.dataMeta){r.data||(r.data={});var i=r.properties.dataMeta;typeof i=="string"&&(r.data.meta=i),delete r.properties.dataMeta}})}};const n1t=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,r1t=Object.hasOwnProperty;class i1t{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let i=a1t(t,n===!0);const a=i;for(;r1t.call(r.occurrences,i);)r.occurrences[a]++,i=a+"-"+r.occurrences[a];return r.occurrences[i]=0,i}reset(){this.occurrences=Object.create(null)}}function a1t(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(n1t,"").replace(/ /g,"-"))}function pye(e){const t=e.type==="element"?e.tagName.toLowerCase():"",n=t.length===2&&t.charCodeAt(0)===104?t.charCodeAt(1):0;return n>48&&n<55?n-48:void 0}const s1t={},Xre=new i1t;function o1t(e){const n=(e||s1t).prefix||"";return function(r){Xre.reset(),Io(r,"element",function(i){pye(i)&&!i.properties.id&&(i.properties.id=n+Xre.slug($y(i)))})}}const zp=function(e){if(e==null)return c1t;if(typeof e=="string")return u1t(e);if(typeof e=="object")return l1t(e);if(typeof e=="function")return LV(e);throw new Error("Expected function, string, or array as `test`")};function l1t(e){const t=[];let n=-1;for(;++n{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{Io(r,(i,a,s)=>{if(i.type==="element"||i.type==="root"){let o=!1;i.children=i.children.filter(l=>{if(l.type==="raw"||l.type==="comment"){let u=(l.value||"").trim();if(u=u.replace(/^/,"$1"),u===t)return o=!0,!1;if(u===n)return o=!1,!1}return!o})}})}};var m1t={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};function g1t(e){return e===void 0&&(e=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":e},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}}var b1t=(e,t)=>(n,r,i)=>{if(n.type==="element"&&i&&i.type==="root"&&/h(1|2|3|4|5|6)/.test(n.tagName)){var a=n.children&&n.children[0];a&&a.properties&&a.properties.ariaHidden==="true"&&(a.properties=ep({class:"anchor"},a.properties),a.children=[m1t])}if(n.type==="element"&&n.tagName==="pre"&&!e){var s=gV(n.children);n.children.push(g1t(s))}t&&t(n,r===null?void 0:r,i===null?void 0:i)},y1t=[o1t,h1t,p1t];const gye=on.forwardRef((e,t)=>{var n,r=[e1t,Obe,t1t,...y1t,[Slt,{rewrite:b1t((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[xlt,{properties:"attr"}],...e.rehypePlugins||[],[oot,{ignoreMissing:!0}]];return D.jsx(Jgt,ep({},e,{rehypePlugins:r,ref:t}))});function I$(e){return e.split(` +`).map(t=>t+" ").join(` +`)}function v1t(e){const{title:t,feature:n,onClose:r}=e,i=Xf(),a=Yx(),s=Pr(Dp),{data:o,memoryKey:l,isLoading:u,isComplete:d,mutateAsync:f}=dst(n),{data:p,isLoading:g,isComplete:b,mutateAsync:S}=fst(l),[E,w]=L.useState(""),x=document.getElementById(zC),k=L.useMemo(()=>u||g,[u,g]),_=L.useMemo(()=>d||b,[d,b]),C=L.useMemo(()=>p||o,[o,p]),{enqueueSnackbar:R}=zx(),N=L.useRef(null),M=Xde(),{reset:U,formState:F}=M;L.useEffect(()=>{F.isSubmitSuccessful&&U({content:""})},[F.isSubmitSuccessful,U]),L.useEffect(()=>{w((x==null?void 0:x.getAttribute("content"))??"")},[x]),L.useEffect(()=>{E&&f(E)},[E,f]),L.useEffect(()=>{C&&N.current&&N.current.scrollTo({behavior:"smooth",top:N.current.scrollHeight})},[C]);const G=async()=>{C&&(await W1.write(C),R("URL Copied!",{variant:"success"}))},V=async()=>{S("Recreate the last statement with a paraphrase or adjust it slightly to better suit the user's input.")},ie=q=>{S(q.content)},ne=(q=!1)=>{var Ee,X;if(!s.cmView)return;const re=s.cmView.state.selection.main;let ee=Math.min(re.to,re.from);const Z=Math.max(re.to,re.from);let se=C;q||(ee=Z,se=` +${se}`);const W=q?ee:ee+1,Pe=ee+se.length;(Ee=s.doc)==null||Ee.update((Re,Ue)=>{Re.content.edit(ee,Z,se),Ue.set({selection:Re.content.indexRangeToPosRange([W,Pe])})}),(X=s.cmView)==null||X.dispatch({changes:{from:ee,to:Z,insert:se},selection:{anchor:W,head:Pe}}),r()};return D.jsxs(Wn,{gap:4,children:[D.jsx(ia,{bgcolor:i.palette.background.paper,p:1,borderRadius:2,border:1,children:D.jsx(Ar,{children:t})}),k&&D.jsx(Md,{sx:{marginX:"auto"}}),D.jsx(ia,{ref:N,sx:{height:350,overflow:"auto"},children:!k&&D.jsx(gye,{source:I$(C||""),wrapperElement:{"data-color-mode":a}})}),D.jsxs(Wn,{gap:2,children:[D.jsx(P3,{in:_,children:D.jsxs(Wn,{direction:"row",justifyContent:"flex-end",gap:1,children:[D.jsx(xo,{variant:"outlined",onClick:V,children:D.jsx(Kge,{fontSize:"small"})}),D.jsx(xo,{variant:"outlined",onClick:G,children:D.jsx(ZR,{fontSize:"small"})}),D.jsx(xo,{variant:"outlined",onClick:()=>ne(),children:"Insert below"}),D.jsx(xo,{variant:"contained",onClick:()=>ne(!0),children:"Replace"})]})}),D.jsx(Qc,{children:D.jsx(RO,{defaultValues:{content:""},formContext:M,onSuccess:ie,children:D.jsx(Wn,{gap:4,alignItems:"flex-end",children:D.jsx(Wx,{variant:"outlined",name:"content",placeholder:"Tell Yorkie what to do next",required:!0,fullWidth:!0,disabled:!_,size:"small",InputProps:{startAdornment:D.jsx(T8,{position:"start",children:D.jsx("img",{src:"/yorkie.png",height:20})}),endAdornment:D.jsx(P3,{in:_,children:D.jsx(T8,{position:"end",children:D.jsx(Ro,{type:"submit",edge:"end",children:D.jsx(Jge,{})})})})}})})})})]})]})}function O1t(e){const{onCloseIntelligence:t,...n}=e,r=()=>{var a;(a=n==null?void 0:n.onClose)==null||a.call(n,new Event("Close Modal"),"escapeKeyDown")},i=()=>{t(),r()};return D.jsx(EO,{disableAutoFocus:!0,...n,children:D.jsx(Ks,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4},children:D.jsxs(Wn,{gap:4,children:[D.jsxs(Wn,{alignItems:"center",gap:1,children:[D.jsx("img",{src:"/yorkie.png",alt:"yorkie",width:60}),D.jsxs(Ar,{variant:"h6",align:"center",children:["Do you want to discard",D.jsx("br",{}),"the Yorkie response?"]})]}),D.jsxs(Wn,{direction:"row",gap:1,justifyContent:"center",children:[D.jsx(xo,{variant:"outlined",onClick:i,children:"Discard"}),D.jsx(xo,{variant:"contained",onClick:r,children:"Cancel"})]})]})})})}function S1t(e){const{onClose:t}=e,n=Xf(),r=Pr(Dp),i=L.useRef(null),[a,s]=L.useState(null),[o,l]=L.useState(null),[u,d]=L.useState(),[f,p]=L.useState(!1),g=L.useRef(null),b=L.useMemo(()=>r.cmView.contentDOM.getBoundingClientRect().width-12,[r.cmView]);L.useEffect(()=>{if(i.current)return d(i.current),()=>{d(void 0)}},[]);const S=(w,x)=>{l(w),s(x)},E=()=>{p(w=>!w)};return D.jsxs(ia,{sx:{position:"absolute",mt:1},children:[D.jsx("span",{ref:i,style:{marginTop:4}}),D.jsx(xO,{open:!!u,anchorEl:u,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:E,children:D.jsx(Mue,{ref:g,sx:{boxShadow:n.shadows[11],borderRadius:2,width:b,padding:2},children:o&&a?D.jsx(v1t,{title:a,feature:o,onClose:t}):D.jsx(ist,{onSelectFeature:S})})}),D.jsx(O1t,{open:f,onCloseIntelligence:t,onClose:E})]})}function E1t(){const[e,t]=L.useState(!1),[n,r]=L.useState(null),{yorkieIntelligence:i}=Pr(hI);L.useEffect(()=>{const s=document.getElementById(zC);r(s),document.addEventListener("selectionchange",function(){const o=document.getElementById(zC);r(o)})},[]);const a=()=>{t(s=>!s)};if(n)return D.jsxs(D.Fragment,{children:[D.jsxs(xo,{onClick:a,sx:{padding:"3px 5px",border:"none","&:hover":{border:"none"}},disabled:!(i!=null&&i.enable),children:[D.jsx("img",{src:"/yorkie.png",height:20,alt:"yorkie_img",style:{filter:i!=null&&i.enable?"none":"grayscale(100%)"}}),D.jsx(Ar,{variant:"subtitle1",fontSize:14,children:"Yorkie Intelligence"})]}),e&&hO.createPortal(D.jsx(S1t,{onClose:a}),n)]})}function w1t({toolBarState:{show:e,position:t,selectedFormats:n},onChangeToolBarState:r}){const{toggleButtonChangeHandler:i}=vH(),[a,s]=L.useState(null);if(dI(()=>{s(e)},500,[e]),!!a)return D.jsx(xO,{open:a,anchorReference:"anchorPosition",anchorPosition:{top:t.top,left:t.left},onClose:()=>r(o=>({...o,show:!1})),anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"},disableAutoFocus:!0,TransitionComponent:P3,TransitionProps:{timeout:300},children:D.jsxs(Wn,{direction:"row",margin:"5px 7px",children:[D.jsx(E1t,{}),D.jsx(zv,{orientation:"vertical",flexItem:!0,sx:{height:"20px",alignSelf:"center",margin:"0 5px"}}),D.jsx(Xue,{value:Array.from(n),onChange:i(n,r),exclusive:!0,"aria-label":"text formatting",children:D.jsxs(Wn,{direction:"row",gap:"5px",alignItems:"center",children:[D.jsx(E_,{color:n.has(vu.ITALIC)?"primary":"secondary",title:"Cmd+I / Ctrl+I",value:vu.ITALIC,children:D.jsx("i",{children:"i"})}),D.jsx(E_,{color:n.has(vu.BOLD)?"primary":"secondary",title:"Cmd+B / Ctrl+B",value:vu.BOLD,children:D.jsx("strong",{children:"B"})}),D.jsx(E_,{color:n.has(vu.STRIKETHROUGH)?"primary":"secondary",title:"Cmd+Shift+X / Ctrl+Shfit+X",value:vu.STRIKETHROUGH,children:"~"}),D.jsx(E_,{color:n.has(vu.CODE)?"primary":"secondary",title:"Cmd+E / Ctrl+E",value:vu.CODE,children:""})]})})]})})}function eie(){var S;const e=Gu(),t=Yx(),[n,r]=L.useState(),i=Pr(Dp),a=Pr(hI),s=Pr(LR),{mutateAsync:o}=iUe(),{mutateAsync:l}=aUe(),{applyFormat:u,setKeymapConfig:d}=vH(),{toolBarState:f,setToolBarState:p,updateFormatBar:g}=Vnt(),b=L.useCallback(E=>{E&&r(E)},[]);return L.useEffect(()=>{var k,_;if(!n||!i.doc||!i.client||typeof((k=a.fileUpload)==null?void 0:k.enable)!="boolean")return;const E=async C=>{if(!s.data)return"";const R=await o({workspaceId:s.data.id,contentLength:new Blob([C]).size,contentType:C.type});return await l({...R,file:C}),`https://codepair-api.yorkie.dev/files/${R.fileKey}`},w=Fr.create({doc:((_=i.doc.getRoot().content)==null?void 0:_.toString())??"",extensions:[PO.of(d()),EKe,Lnt(),t=="light"?Hnt:Gnt,rn.theme({"&":{width:"100%"}}),rn.lineWrapping,rn.updateListener.of(C=>{C.selectionSet&&g(C)}),zat(i.doc,i.client),urt,...a.fileUpload.enable?[Knt(E,i.doc)]:[],Rat(i.doc)]}),x=new rn({state:w,parent:n});return e(ZFe(x)),()=>{x==null||x.destroy()}},[n,i.client,i.doc,t,s.data,(S=a.fileUpload)==null?void 0:S.enable,e,o,l,u,g,d]),D.jsx(vM.ScrollSyncPane,{children:D.jsxs("div",{style:{height:"100%",overflow:"auto"},children:[D.jsx("div",{ref:b,style:{display:"flex",alignItems:"stretch",minHeight:"100%"}}),!!f.show&&D.jsx(w1t,{toolBarState:f,onChangeToolBarState:p})]})})}class wu{constructor(t,n,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=n,this.end=r}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new wu(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}}class Dc{constructor(t,n){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=n}range(t,n){return new Dc(n,wu.range(this,t))}}class Ut{constructor(t,n){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r="KaTeX parse error: "+t,i,a,s=n&&n.loc;if(s&&s.start<=s.end){var o=s.lexer.input;i=s.start,a=s.end,i===o.length?r+=" at end of input: ":r+=" at position "+(i+1)+": ";var l=o.slice(i,a).replace(/[^]/g,"$&̲"),u;i>15?u="…"+o.slice(i-15,i):u=o.slice(0,i);var d;a+15":">","<":"<",'"':""","'":"'"},C1t=/[&><"']/g;function R1t(e){return String(e).replace(C1t,t=>_1t[t])}var bye=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},I1t=function(t){var n=bye(t);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},N1t=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},D1t=function(t){var n=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return n?n[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(n[1])?null:n[1].toLowerCase():"_relative"},Mn={contains:x1t,deflt:T1t,escape:R1t,hyphenate:A1t,getBaseElem:bye,isCharacterBox:I1t,protocolFromUrl:D1t},V4={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function P1t(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class FV{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var n in V4)if(V4.hasOwnProperty(n)){var r=V4[n];this[n]=t[n]!==void 0?r.processor?r.processor(t[n]):t[n]:P1t(r)}}reportNonstrict(t,n,r){var i=this.strict;if(typeof i=="function"&&(i=i(t,n,r)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new Ut("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,r){var i=this.strict;if(typeof i=="function")try{i=i(t,n,r)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var n=Mn.protocolFromUrl(t.url);if(n==null)return!1;t.protocol=n}var r=typeof this.trust=="function"?this.trust(t):this.trust;return!!r}}class m0{constructor(t,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=r}sup(){return xf[M1t[this.id]]}sub(){return xf[L1t[this.id]]}fracNum(){return xf[$1t[this.id]]}fracDen(){return xf[F1t[this.id]]}cramp(){return xf[B1t[this.id]]}text(){return xf[U1t[this.id]]}isTight(){return this.size>=2}}var BV=0,e5=1,cv=2,cp=3,ux=4,kc=5,rO=6,tl=7,xf=[new m0(BV,0,!1),new m0(e5,0,!0),new m0(cv,1,!1),new m0(cp,1,!0),new m0(ux,2,!1),new m0(kc,2,!0),new m0(rO,3,!1),new m0(tl,3,!0)],M1t=[ux,kc,ux,kc,rO,tl,rO,tl],L1t=[kc,kc,kc,kc,tl,tl,tl,tl],$1t=[cv,cp,ux,kc,rO,tl,rO,tl],F1t=[cp,cp,kc,kc,tl,tl,tl,tl],B1t=[e5,e5,cp,cp,kc,kc,tl,tl],U1t=[BV,e5,cv,cp,cv,cp,cv,cp],Bn={DISPLAY:xf[BV],TEXT:xf[cv],SCRIPT:xf[ux],SCRIPTSCRIPT:xf[rO]},N$=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function z1t(e){for(var t=0;t=i[0]&&e<=i[1])return n.name}return null}var q4=[];N$.forEach(e=>e.blocks.forEach(t=>q4.push(...t)));function yye(e){for(var t=0;t=q4[t]&&e<=q4[t+1])return!0;return!1}var ty=80,H1t=function(t,n){return"M95,"+(622+t+n)+` +c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 +c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 +c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 +s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 +c69,-144,104.5,-217.7,106.5,-221 +l`+t/2.075+" -"+t+` +c5.3,-9.3,12,-14,20,-14 +H400000v`+(40+t)+`H845.2724 +s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 +c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z +M`+(834+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},j1t=function(t,n){return"M263,"+(601+t+n)+`c0.7,0,18,39.7,52,119 +c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 +c340,-704.7,510.7,-1060.3,512,-1067 +l`+t/2.084+" -"+t+` +c4.7,-7.3,11,-11,19,-11 +H40000v`+(40+t)+`H1012.3 +s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 +c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 +s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 +c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z +M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},W1t=function(t,n){return"M983 "+(10+t+n)+` +l`+t/3.13+" -"+t+` +c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+` +H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 +s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 +c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 +c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 +c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 +c53.7,-170.3,84.5,-266.8,92.5,-289.5z +M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Q1t=function(t,n){return"M424,"+(2398+t+n)+` +c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 +c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 +s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 +s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 +l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000 +v`+(40+t)+`H1014.6 +s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 +c-2,6,-10,9,-24,9 +c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+n+` +h400000v`+(40+t)+"h-400000z"},G1t=function(t,n){return"M473,"+(2713+t+n)+` +c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+` +c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7 +s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 +c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 +c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 +s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, +606zM`+(1001+t)+" "+n+"h400000v"+(40+t)+"H1017.7z"},V1t=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},q1t=function(t,n,r){var i=r-54-n-t;return"M702 "+(t+n)+"H400000"+(40+t)+` +H742v`+i+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 +h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 +c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 +219 661 l218 661zM702 `+n+"H400000v"+(40+t)+"H742z"},Y1t=function(t,n,r){n=1e3*n;var i="";switch(t){case"sqrtMain":i=H1t(n,ty);break;case"sqrtSize1":i=j1t(n,ty);break;case"sqrtSize2":i=W1t(n,ty);break;case"sqrtSize3":i=Q1t(n,ty);break;case"sqrtSize4":i=G1t(n,ty);break;case"sqrtTall":i=q1t(n,ty,r)}return i},Z1t=function(t,n){switch(t){case"⎜":return"M291 0 H417 V"+n+" H291z M291 0 H417 V"+n+" H291z";case"∣":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z";case"∥":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z"+("M367 0 H410 V"+n+" H367z M367 0 H410 V"+n+" H367z");case"⎟":return"M457 0 H583 V"+n+" H457z M457 0 H583 V"+n+" H457z";case"⎢":return"M319 0 H403 V"+n+" H319z M319 0 H403 V"+n+" H319z";case"⎥":return"M263 0 H347 V"+n+" H263z M263 0 H347 V"+n+" H263z";case"⎪":return"M384 0 H504 V"+n+" H384z M384 0 H504 V"+n+" H384z";case"⏐":return"M312 0 H355 V"+n+" H312z M312 0 H355 V"+n+" H312z";case"‖":return"M257 0 H300 V"+n+" H257z M257 0 H300 V"+n+" H257z"+("M478 0 H521 V"+n+" H478z M478 0 H521 V"+n+" H478z");default:return""}},tie={doubleleftarrow:`M262 157 +l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 + 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 + 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 +c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5 + 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87 +-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 +-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z +m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l +-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5 + 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88 +-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68 +-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18 +-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 +c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3 +-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 + 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8 +-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247 +c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208 + 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3 + 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202 + l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 +-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 + 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 + 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 + 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 +-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 +H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0 + 435 0h399565z`,leftgroupunder:`M400000 262 +H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 + 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 +-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5 +-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7 +-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5 + 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3 +-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7 +-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z +m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 + 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 + 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667 +-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12 + 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7 +-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 +v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 +-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 +-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 + 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z +M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z +M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 +-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 +c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 + 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z +M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334 +c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 +-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 + 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 + 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 +c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 + 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 + 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0 +-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6 +-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z +m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8 +60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8 +-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z +m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 +c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6 +-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z +m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 +85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8 +-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z +m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 +c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128 +-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 + 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 + 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85 +-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 +-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 + 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l +-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5 +s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 +c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 + 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 +-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0 + 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18 + 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3 +-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2 +-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 + 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11 +-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7 + 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z +m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 + 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5 +-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95 +-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8 + 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 + 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3 +-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z +m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 + 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 +-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 + 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z +M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 + 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 +-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 +-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 + 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69 +-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 +-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 +-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 + 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167 +c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 + 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42 + 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 +-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 + 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7 +-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0 + 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0 + 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 +-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 +-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9 + 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 +c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751 + 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457 +-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 + 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 + 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 + -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 +-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 + 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 + 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 + -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5 +3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 +10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 +-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1 +-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 +H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 +c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 +c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1, +-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202 +c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 +c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130 +s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47 +121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6 +s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11 +c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z +M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 +-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 +13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39 +-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5 +-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 +-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 +151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 +c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 +c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21 +c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 +c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z +M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 +c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, +-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 +c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z +M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 +c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9, +1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7, +-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z +M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0 +c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, +-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 +c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z +M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},X1t=function(t,n){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 h347 v-84 +H403z M403 1759 V0 H319 V1759 v`+n+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v1759 H0 v84 H347z +M347 1759 V0 H263 V1759 v`+n+" v1759 h84z";case"vert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+" v585 h43z";case"doublevert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+` v585 h43z +M367 15 v585 v`+n+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+n+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+n+` v1715 h263 v84 H319z +MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+n+` v1799 H0 v-84 H319z +MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v602 h84z +M403 1759 V0 H319 V1759 v`+n+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v602 h84z +M347 1759 V0 h-84 V1759 v`+n+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1 +c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349, +-36,557 l0,`+(n+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, +949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9 +c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, +-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 +l0,-`+(n+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, +-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3, +63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 +c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(n+9)+` +c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664 +c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11 +c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 +c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 +l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, +-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};let RT=class{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return Mn.contains(this.classes,t)}toNode(){for(var t=document.createDocumentFragment(),n=0;nn.toText();return this.children.map(t).join("")}};var Lf={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},N_={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},nie={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function K1t(e,t){Lf[e]=t}function UV(e,t,n){if(!Lf[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),i=Lf[t][r];if(!i&&e[0]in nie&&(r=nie[e[0]].charCodeAt(0),i=Lf[t][r]),!i&&n==="text"&&yye(r)&&(i=Lf[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var Z7={};function J1t(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!Z7[t]){var n=Z7[t]={cssEmPerMu:N_.quad[t]/18};for(var r in N_)N_.hasOwnProperty(r)&&(n[r]=N_[r][t])}return Z7[t]}var ebt=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],rie=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],iie=function(t,n){return n.size<2?t:ebt[t-1][n.size-1]};class qh{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||qh.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=rie[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new qh(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:iie(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:rie[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=iie(qh.BASESIZE,t);return this.size===n&&this.textSize===qh.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==qh.BASESIZE?["sizing","reset-size"+this.size,"size"+qh.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=J1t(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}qh.BASESIZE=6;var D$={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},tbt={ex:!0,em:!0,mu:!0},vye=function(t){return typeof t!="string"&&(t=t.unit),t in D$||t in tbt||t==="ex"},pa=function(t,n){var r;if(t.unit in D$)r=D$[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var i;if(n.style.isTight()?i=n.havingStyle(n.style.text()):i=n,t.unit==="ex")r=i.fontMetrics().xHeight;else if(t.unit==="em")r=i.fontMetrics().quad;else throw new Ut("Invalid unit: '"+t.unit+"'");i!==n&&(r*=i.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},Kt=function(t){return+t.toFixed(4)+"em"},km=function(t){return t.filter(n=>n).join(" ")},Oye=function(t,n,r){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var i=n.getColor();i&&(this.style.color=i)}},Sye=function(t){var n=document.createElement(t);n.className=km(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(n.style[r]=this.style[r]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&n.setAttribute(i,this.attributes[i]);for(var a=0;a",n};let IT=class{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Oye.call(this,t,r,i),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return Mn.contains(this.classes,t)}toNode(){return Sye.call(this,"span")}toMarkup(){return Eye.call(this,"span")}};class zV{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Oye.call(this,n,i),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return Mn.contains(this.classes,t)}toNode(){return Sye.call(this,"a")}toMarkup(){return Eye.call(this,"a")}}class nbt{constructor(t,n,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=t,this.classes=["mord"],this.style=r}hasClass(t){return Mn.contains(this.classes,t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var n in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);return t}toMarkup(){var t=''+Mn.escape(this.alt)+'0&&(n=document.createElement("span"),n.style.marginRight=Kt(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=km(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(n=n||document.createElement("span"),n.style[r]=this.style[r]);return n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="0&&(r+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=Mn.hyphenate(i)+":"+this.style[i]+";");r&&(t=!0,n+=' style="'+Mn.escape(r)+'"');var a=Mn.escape(this.text);return t?(n+=">",n+=a,n+="",n):a}}class Tp{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);for(var i=0;i':''}}class P${constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var t=" but got "+String(e)+".")}var abt={bin:1,close:1,inner:1,open:1,punct:1,rel:1},sbt={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},$i={math:{},text:{}};function $(e,t,n,r,i,a){$i[e][i]={font:t,group:n,replace:r},a&&r&&($i[e][r]=$i[e][i])}var j="math",Dt="text",te="main",Se="ams",sa="accent-token",un="bin",fl="close",nS="inner",Fn="mathord",Ja="op-token",Yu="open",QI="punct",xe="rel",Hp="spacing",$e="textord";$(j,te,xe,"≡","\\equiv",!0);$(j,te,xe,"≺","\\prec",!0);$(j,te,xe,"≻","\\succ",!0);$(j,te,xe,"∼","\\sim",!0);$(j,te,xe,"⊥","\\perp");$(j,te,xe,"⪯","\\preceq",!0);$(j,te,xe,"⪰","\\succeq",!0);$(j,te,xe,"≃","\\simeq",!0);$(j,te,xe,"∣","\\mid",!0);$(j,te,xe,"≪","\\ll",!0);$(j,te,xe,"≫","\\gg",!0);$(j,te,xe,"≍","\\asymp",!0);$(j,te,xe,"∥","\\parallel");$(j,te,xe,"⋈","\\bowtie",!0);$(j,te,xe,"⌣","\\smile",!0);$(j,te,xe,"⊑","\\sqsubseteq",!0);$(j,te,xe,"⊒","\\sqsupseteq",!0);$(j,te,xe,"≐","\\doteq",!0);$(j,te,xe,"⌢","\\frown",!0);$(j,te,xe,"∋","\\ni",!0);$(j,te,xe,"∝","\\propto",!0);$(j,te,xe,"⊢","\\vdash",!0);$(j,te,xe,"⊣","\\dashv",!0);$(j,te,xe,"∋","\\owns");$(j,te,QI,".","\\ldotp");$(j,te,QI,"⋅","\\cdotp");$(j,te,$e,"#","\\#");$(Dt,te,$e,"#","\\#");$(j,te,$e,"&","\\&");$(Dt,te,$e,"&","\\&");$(j,te,$e,"ℵ","\\aleph",!0);$(j,te,$e,"∀","\\forall",!0);$(j,te,$e,"ℏ","\\hbar",!0);$(j,te,$e,"∃","\\exists",!0);$(j,te,$e,"∇","\\nabla",!0);$(j,te,$e,"♭","\\flat",!0);$(j,te,$e,"ℓ","\\ell",!0);$(j,te,$e,"♮","\\natural",!0);$(j,te,$e,"♣","\\clubsuit",!0);$(j,te,$e,"℘","\\wp",!0);$(j,te,$e,"♯","\\sharp",!0);$(j,te,$e,"♢","\\diamondsuit",!0);$(j,te,$e,"ℜ","\\Re",!0);$(j,te,$e,"♡","\\heartsuit",!0);$(j,te,$e,"ℑ","\\Im",!0);$(j,te,$e,"♠","\\spadesuit",!0);$(j,te,$e,"§","\\S",!0);$(Dt,te,$e,"§","\\S");$(j,te,$e,"¶","\\P",!0);$(Dt,te,$e,"¶","\\P");$(j,te,$e,"†","\\dag");$(Dt,te,$e,"†","\\dag");$(Dt,te,$e,"†","\\textdagger");$(j,te,$e,"‡","\\ddag");$(Dt,te,$e,"‡","\\ddag");$(Dt,te,$e,"‡","\\textdaggerdbl");$(j,te,fl,"⎱","\\rmoustache",!0);$(j,te,Yu,"⎰","\\lmoustache",!0);$(j,te,fl,"⟯","\\rgroup",!0);$(j,te,Yu,"⟮","\\lgroup",!0);$(j,te,un,"∓","\\mp",!0);$(j,te,un,"⊖","\\ominus",!0);$(j,te,un,"⊎","\\uplus",!0);$(j,te,un,"⊓","\\sqcap",!0);$(j,te,un,"∗","\\ast");$(j,te,un,"⊔","\\sqcup",!0);$(j,te,un,"◯","\\bigcirc",!0);$(j,te,un,"∙","\\bullet",!0);$(j,te,un,"‡","\\ddagger");$(j,te,un,"≀","\\wr",!0);$(j,te,un,"⨿","\\amalg");$(j,te,un,"&","\\And");$(j,te,xe,"⟵","\\longleftarrow",!0);$(j,te,xe,"⇐","\\Leftarrow",!0);$(j,te,xe,"⟸","\\Longleftarrow",!0);$(j,te,xe,"⟶","\\longrightarrow",!0);$(j,te,xe,"⇒","\\Rightarrow",!0);$(j,te,xe,"⟹","\\Longrightarrow",!0);$(j,te,xe,"↔","\\leftrightarrow",!0);$(j,te,xe,"⟷","\\longleftrightarrow",!0);$(j,te,xe,"⇔","\\Leftrightarrow",!0);$(j,te,xe,"⟺","\\Longleftrightarrow",!0);$(j,te,xe,"↦","\\mapsto",!0);$(j,te,xe,"⟼","\\longmapsto",!0);$(j,te,xe,"↗","\\nearrow",!0);$(j,te,xe,"↩","\\hookleftarrow",!0);$(j,te,xe,"↪","\\hookrightarrow",!0);$(j,te,xe,"↘","\\searrow",!0);$(j,te,xe,"↼","\\leftharpoonup",!0);$(j,te,xe,"⇀","\\rightharpoonup",!0);$(j,te,xe,"↙","\\swarrow",!0);$(j,te,xe,"↽","\\leftharpoondown",!0);$(j,te,xe,"⇁","\\rightharpoondown",!0);$(j,te,xe,"↖","\\nwarrow",!0);$(j,te,xe,"⇌","\\rightleftharpoons",!0);$(j,Se,xe,"≮","\\nless",!0);$(j,Se,xe,"","\\@nleqslant");$(j,Se,xe,"","\\@nleqq");$(j,Se,xe,"⪇","\\lneq",!0);$(j,Se,xe,"≨","\\lneqq",!0);$(j,Se,xe,"","\\@lvertneqq");$(j,Se,xe,"⋦","\\lnsim",!0);$(j,Se,xe,"⪉","\\lnapprox",!0);$(j,Se,xe,"⊀","\\nprec",!0);$(j,Se,xe,"⋠","\\npreceq",!0);$(j,Se,xe,"⋨","\\precnsim",!0);$(j,Se,xe,"⪹","\\precnapprox",!0);$(j,Se,xe,"≁","\\nsim",!0);$(j,Se,xe,"","\\@nshortmid");$(j,Se,xe,"∤","\\nmid",!0);$(j,Se,xe,"⊬","\\nvdash",!0);$(j,Se,xe,"⊭","\\nvDash",!0);$(j,Se,xe,"⋪","\\ntriangleleft");$(j,Se,xe,"⋬","\\ntrianglelefteq",!0);$(j,Se,xe,"⊊","\\subsetneq",!0);$(j,Se,xe,"","\\@varsubsetneq");$(j,Se,xe,"⫋","\\subsetneqq",!0);$(j,Se,xe,"","\\@varsubsetneqq");$(j,Se,xe,"≯","\\ngtr",!0);$(j,Se,xe,"","\\@ngeqslant");$(j,Se,xe,"","\\@ngeqq");$(j,Se,xe,"⪈","\\gneq",!0);$(j,Se,xe,"≩","\\gneqq",!0);$(j,Se,xe,"","\\@gvertneqq");$(j,Se,xe,"⋧","\\gnsim",!0);$(j,Se,xe,"⪊","\\gnapprox",!0);$(j,Se,xe,"⊁","\\nsucc",!0);$(j,Se,xe,"⋡","\\nsucceq",!0);$(j,Se,xe,"⋩","\\succnsim",!0);$(j,Se,xe,"⪺","\\succnapprox",!0);$(j,Se,xe,"≆","\\ncong",!0);$(j,Se,xe,"","\\@nshortparallel");$(j,Se,xe,"∦","\\nparallel",!0);$(j,Se,xe,"⊯","\\nVDash",!0);$(j,Se,xe,"⋫","\\ntriangleright");$(j,Se,xe,"⋭","\\ntrianglerighteq",!0);$(j,Se,xe,"","\\@nsupseteqq");$(j,Se,xe,"⊋","\\supsetneq",!0);$(j,Se,xe,"","\\@varsupsetneq");$(j,Se,xe,"⫌","\\supsetneqq",!0);$(j,Se,xe,"","\\@varsupsetneqq");$(j,Se,xe,"⊮","\\nVdash",!0);$(j,Se,xe,"⪵","\\precneqq",!0);$(j,Se,xe,"⪶","\\succneqq",!0);$(j,Se,xe,"","\\@nsubseteqq");$(j,Se,un,"⊴","\\unlhd");$(j,Se,un,"⊵","\\unrhd");$(j,Se,xe,"↚","\\nleftarrow",!0);$(j,Se,xe,"↛","\\nrightarrow",!0);$(j,Se,xe,"⇍","\\nLeftarrow",!0);$(j,Se,xe,"⇏","\\nRightarrow",!0);$(j,Se,xe,"↮","\\nleftrightarrow",!0);$(j,Se,xe,"⇎","\\nLeftrightarrow",!0);$(j,Se,xe,"△","\\vartriangle");$(j,Se,$e,"ℏ","\\hslash");$(j,Se,$e,"▽","\\triangledown");$(j,Se,$e,"◊","\\lozenge");$(j,Se,$e,"Ⓢ","\\circledS");$(j,Se,$e,"®","\\circledR");$(Dt,Se,$e,"®","\\circledR");$(j,Se,$e,"∡","\\measuredangle",!0);$(j,Se,$e,"∄","\\nexists");$(j,Se,$e,"℧","\\mho");$(j,Se,$e,"Ⅎ","\\Finv",!0);$(j,Se,$e,"⅁","\\Game",!0);$(j,Se,$e,"‵","\\backprime");$(j,Se,$e,"▲","\\blacktriangle");$(j,Se,$e,"▼","\\blacktriangledown");$(j,Se,$e,"■","\\blacksquare");$(j,Se,$e,"⧫","\\blacklozenge");$(j,Se,$e,"★","\\bigstar");$(j,Se,$e,"∢","\\sphericalangle",!0);$(j,Se,$e,"∁","\\complement",!0);$(j,Se,$e,"ð","\\eth",!0);$(Dt,te,$e,"ð","ð");$(j,Se,$e,"╱","\\diagup");$(j,Se,$e,"╲","\\diagdown");$(j,Se,$e,"□","\\square");$(j,Se,$e,"□","\\Box");$(j,Se,$e,"◊","\\Diamond");$(j,Se,$e,"¥","\\yen",!0);$(Dt,Se,$e,"¥","\\yen",!0);$(j,Se,$e,"✓","\\checkmark",!0);$(Dt,Se,$e,"✓","\\checkmark");$(j,Se,$e,"ℶ","\\beth",!0);$(j,Se,$e,"ℸ","\\daleth",!0);$(j,Se,$e,"ℷ","\\gimel",!0);$(j,Se,$e,"ϝ","\\digamma",!0);$(j,Se,$e,"ϰ","\\varkappa");$(j,Se,Yu,"┌","\\@ulcorner",!0);$(j,Se,fl,"┐","\\@urcorner",!0);$(j,Se,Yu,"└","\\@llcorner",!0);$(j,Se,fl,"┘","\\@lrcorner",!0);$(j,Se,xe,"≦","\\leqq",!0);$(j,Se,xe,"⩽","\\leqslant",!0);$(j,Se,xe,"⪕","\\eqslantless",!0);$(j,Se,xe,"≲","\\lesssim",!0);$(j,Se,xe,"⪅","\\lessapprox",!0);$(j,Se,xe,"≊","\\approxeq",!0);$(j,Se,un,"⋖","\\lessdot");$(j,Se,xe,"⋘","\\lll",!0);$(j,Se,xe,"≶","\\lessgtr",!0);$(j,Se,xe,"⋚","\\lesseqgtr",!0);$(j,Se,xe,"⪋","\\lesseqqgtr",!0);$(j,Se,xe,"≑","\\doteqdot");$(j,Se,xe,"≓","\\risingdotseq",!0);$(j,Se,xe,"≒","\\fallingdotseq",!0);$(j,Se,xe,"∽","\\backsim",!0);$(j,Se,xe,"⋍","\\backsimeq",!0);$(j,Se,xe,"⫅","\\subseteqq",!0);$(j,Se,xe,"⋐","\\Subset",!0);$(j,Se,xe,"⊏","\\sqsubset",!0);$(j,Se,xe,"≼","\\preccurlyeq",!0);$(j,Se,xe,"⋞","\\curlyeqprec",!0);$(j,Se,xe,"≾","\\precsim",!0);$(j,Se,xe,"⪷","\\precapprox",!0);$(j,Se,xe,"⊲","\\vartriangleleft");$(j,Se,xe,"⊴","\\trianglelefteq");$(j,Se,xe,"⊨","\\vDash",!0);$(j,Se,xe,"⊪","\\Vvdash",!0);$(j,Se,xe,"⌣","\\smallsmile");$(j,Se,xe,"⌢","\\smallfrown");$(j,Se,xe,"≏","\\bumpeq",!0);$(j,Se,xe,"≎","\\Bumpeq",!0);$(j,Se,xe,"≧","\\geqq",!0);$(j,Se,xe,"⩾","\\geqslant",!0);$(j,Se,xe,"⪖","\\eqslantgtr",!0);$(j,Se,xe,"≳","\\gtrsim",!0);$(j,Se,xe,"⪆","\\gtrapprox",!0);$(j,Se,un,"⋗","\\gtrdot");$(j,Se,xe,"⋙","\\ggg",!0);$(j,Se,xe,"≷","\\gtrless",!0);$(j,Se,xe,"⋛","\\gtreqless",!0);$(j,Se,xe,"⪌","\\gtreqqless",!0);$(j,Se,xe,"≖","\\eqcirc",!0);$(j,Se,xe,"≗","\\circeq",!0);$(j,Se,xe,"≜","\\triangleq",!0);$(j,Se,xe,"∼","\\thicksim");$(j,Se,xe,"≈","\\thickapprox");$(j,Se,xe,"⫆","\\supseteqq",!0);$(j,Se,xe,"⋑","\\Supset",!0);$(j,Se,xe,"⊐","\\sqsupset",!0);$(j,Se,xe,"≽","\\succcurlyeq",!0);$(j,Se,xe,"⋟","\\curlyeqsucc",!0);$(j,Se,xe,"≿","\\succsim",!0);$(j,Se,xe,"⪸","\\succapprox",!0);$(j,Se,xe,"⊳","\\vartriangleright");$(j,Se,xe,"⊵","\\trianglerighteq");$(j,Se,xe,"⊩","\\Vdash",!0);$(j,Se,xe,"∣","\\shortmid");$(j,Se,xe,"∥","\\shortparallel");$(j,Se,xe,"≬","\\between",!0);$(j,Se,xe,"⋔","\\pitchfork",!0);$(j,Se,xe,"∝","\\varpropto");$(j,Se,xe,"◀","\\blacktriangleleft");$(j,Se,xe,"∴","\\therefore",!0);$(j,Se,xe,"∍","\\backepsilon");$(j,Se,xe,"▶","\\blacktriangleright");$(j,Se,xe,"∵","\\because",!0);$(j,Se,xe,"⋘","\\llless");$(j,Se,xe,"⋙","\\gggtr");$(j,Se,un,"⊲","\\lhd");$(j,Se,un,"⊳","\\rhd");$(j,Se,xe,"≂","\\eqsim",!0);$(j,te,xe,"⋈","\\Join");$(j,Se,xe,"≑","\\Doteq",!0);$(j,Se,un,"∔","\\dotplus",!0);$(j,Se,un,"∖","\\smallsetminus");$(j,Se,un,"⋒","\\Cap",!0);$(j,Se,un,"⋓","\\Cup",!0);$(j,Se,un,"⩞","\\doublebarwedge",!0);$(j,Se,un,"⊟","\\boxminus",!0);$(j,Se,un,"⊞","\\boxplus",!0);$(j,Se,un,"⋇","\\divideontimes",!0);$(j,Se,un,"⋉","\\ltimes",!0);$(j,Se,un,"⋊","\\rtimes",!0);$(j,Se,un,"⋋","\\leftthreetimes",!0);$(j,Se,un,"⋌","\\rightthreetimes",!0);$(j,Se,un,"⋏","\\curlywedge",!0);$(j,Se,un,"⋎","\\curlyvee",!0);$(j,Se,un,"⊝","\\circleddash",!0);$(j,Se,un,"⊛","\\circledast",!0);$(j,Se,un,"⋅","\\centerdot");$(j,Se,un,"⊺","\\intercal",!0);$(j,Se,un,"⋒","\\doublecap");$(j,Se,un,"⋓","\\doublecup");$(j,Se,un,"⊠","\\boxtimes",!0);$(j,Se,xe,"⇢","\\dashrightarrow",!0);$(j,Se,xe,"⇠","\\dashleftarrow",!0);$(j,Se,xe,"⇇","\\leftleftarrows",!0);$(j,Se,xe,"⇆","\\leftrightarrows",!0);$(j,Se,xe,"⇚","\\Lleftarrow",!0);$(j,Se,xe,"↞","\\twoheadleftarrow",!0);$(j,Se,xe,"↢","\\leftarrowtail",!0);$(j,Se,xe,"↫","\\looparrowleft",!0);$(j,Se,xe,"⇋","\\leftrightharpoons",!0);$(j,Se,xe,"↶","\\curvearrowleft",!0);$(j,Se,xe,"↺","\\circlearrowleft",!0);$(j,Se,xe,"↰","\\Lsh",!0);$(j,Se,xe,"⇈","\\upuparrows",!0);$(j,Se,xe,"↿","\\upharpoonleft",!0);$(j,Se,xe,"⇃","\\downharpoonleft",!0);$(j,te,xe,"⊶","\\origof",!0);$(j,te,xe,"⊷","\\imageof",!0);$(j,Se,xe,"⊸","\\multimap",!0);$(j,Se,xe,"↭","\\leftrightsquigarrow",!0);$(j,Se,xe,"⇉","\\rightrightarrows",!0);$(j,Se,xe,"⇄","\\rightleftarrows",!0);$(j,Se,xe,"↠","\\twoheadrightarrow",!0);$(j,Se,xe,"↣","\\rightarrowtail",!0);$(j,Se,xe,"↬","\\looparrowright",!0);$(j,Se,xe,"↷","\\curvearrowright",!0);$(j,Se,xe,"↻","\\circlearrowright",!0);$(j,Se,xe,"↱","\\Rsh",!0);$(j,Se,xe,"⇊","\\downdownarrows",!0);$(j,Se,xe,"↾","\\upharpoonright",!0);$(j,Se,xe,"⇂","\\downharpoonright",!0);$(j,Se,xe,"⇝","\\rightsquigarrow",!0);$(j,Se,xe,"⇝","\\leadsto");$(j,Se,xe,"⇛","\\Rrightarrow",!0);$(j,Se,xe,"↾","\\restriction");$(j,te,$e,"‘","`");$(j,te,$e,"$","\\$");$(Dt,te,$e,"$","\\$");$(Dt,te,$e,"$","\\textdollar");$(j,te,$e,"%","\\%");$(Dt,te,$e,"%","\\%");$(j,te,$e,"_","\\_");$(Dt,te,$e,"_","\\_");$(Dt,te,$e,"_","\\textunderscore");$(j,te,$e,"∠","\\angle",!0);$(j,te,$e,"∞","\\infty",!0);$(j,te,$e,"′","\\prime");$(j,te,$e,"△","\\triangle");$(j,te,$e,"Γ","\\Gamma",!0);$(j,te,$e,"Δ","\\Delta",!0);$(j,te,$e,"Θ","\\Theta",!0);$(j,te,$e,"Λ","\\Lambda",!0);$(j,te,$e,"Ξ","\\Xi",!0);$(j,te,$e,"Π","\\Pi",!0);$(j,te,$e,"Σ","\\Sigma",!0);$(j,te,$e,"Υ","\\Upsilon",!0);$(j,te,$e,"Φ","\\Phi",!0);$(j,te,$e,"Ψ","\\Psi",!0);$(j,te,$e,"Ω","\\Omega",!0);$(j,te,$e,"A","Α");$(j,te,$e,"B","Β");$(j,te,$e,"E","Ε");$(j,te,$e,"Z","Ζ");$(j,te,$e,"H","Η");$(j,te,$e,"I","Ι");$(j,te,$e,"K","Κ");$(j,te,$e,"M","Μ");$(j,te,$e,"N","Ν");$(j,te,$e,"O","Ο");$(j,te,$e,"P","Ρ");$(j,te,$e,"T","Τ");$(j,te,$e,"X","Χ");$(j,te,$e,"¬","\\neg",!0);$(j,te,$e,"¬","\\lnot");$(j,te,$e,"⊤","\\top");$(j,te,$e,"⊥","\\bot");$(j,te,$e,"∅","\\emptyset");$(j,Se,$e,"∅","\\varnothing");$(j,te,Fn,"α","\\alpha",!0);$(j,te,Fn,"β","\\beta",!0);$(j,te,Fn,"γ","\\gamma",!0);$(j,te,Fn,"δ","\\delta",!0);$(j,te,Fn,"ϵ","\\epsilon",!0);$(j,te,Fn,"ζ","\\zeta",!0);$(j,te,Fn,"η","\\eta",!0);$(j,te,Fn,"θ","\\theta",!0);$(j,te,Fn,"ι","\\iota",!0);$(j,te,Fn,"κ","\\kappa",!0);$(j,te,Fn,"λ","\\lambda",!0);$(j,te,Fn,"μ","\\mu",!0);$(j,te,Fn,"ν","\\nu",!0);$(j,te,Fn,"ξ","\\xi",!0);$(j,te,Fn,"ο","\\omicron",!0);$(j,te,Fn,"π","\\pi",!0);$(j,te,Fn,"ρ","\\rho",!0);$(j,te,Fn,"σ","\\sigma",!0);$(j,te,Fn,"τ","\\tau",!0);$(j,te,Fn,"υ","\\upsilon",!0);$(j,te,Fn,"ϕ","\\phi",!0);$(j,te,Fn,"χ","\\chi",!0);$(j,te,Fn,"ψ","\\psi",!0);$(j,te,Fn,"ω","\\omega",!0);$(j,te,Fn,"ε","\\varepsilon",!0);$(j,te,Fn,"ϑ","\\vartheta",!0);$(j,te,Fn,"ϖ","\\varpi",!0);$(j,te,Fn,"ϱ","\\varrho",!0);$(j,te,Fn,"ς","\\varsigma",!0);$(j,te,Fn,"φ","\\varphi",!0);$(j,te,un,"∗","*",!0);$(j,te,un,"+","+");$(j,te,un,"−","-",!0);$(j,te,un,"⋅","\\cdot",!0);$(j,te,un,"∘","\\circ",!0);$(j,te,un,"÷","\\div",!0);$(j,te,un,"±","\\pm",!0);$(j,te,un,"×","\\times",!0);$(j,te,un,"∩","\\cap",!0);$(j,te,un,"∪","\\cup",!0);$(j,te,un,"∖","\\setminus",!0);$(j,te,un,"∧","\\land");$(j,te,un,"∨","\\lor");$(j,te,un,"∧","\\wedge",!0);$(j,te,un,"∨","\\vee",!0);$(j,te,$e,"√","\\surd");$(j,te,Yu,"⟨","\\langle",!0);$(j,te,Yu,"∣","\\lvert");$(j,te,Yu,"∥","\\lVert");$(j,te,fl,"?","?");$(j,te,fl,"!","!");$(j,te,fl,"⟩","\\rangle",!0);$(j,te,fl,"∣","\\rvert");$(j,te,fl,"∥","\\rVert");$(j,te,xe,"=","=");$(j,te,xe,":",":");$(j,te,xe,"≈","\\approx",!0);$(j,te,xe,"≅","\\cong",!0);$(j,te,xe,"≥","\\ge");$(j,te,xe,"≥","\\geq",!0);$(j,te,xe,"←","\\gets");$(j,te,xe,">","\\gt",!0);$(j,te,xe,"∈","\\in",!0);$(j,te,xe,"","\\@not");$(j,te,xe,"⊂","\\subset",!0);$(j,te,xe,"⊃","\\supset",!0);$(j,te,xe,"⊆","\\subseteq",!0);$(j,te,xe,"⊇","\\supseteq",!0);$(j,Se,xe,"⊈","\\nsubseteq",!0);$(j,Se,xe,"⊉","\\nsupseteq",!0);$(j,te,xe,"⊨","\\models");$(j,te,xe,"←","\\leftarrow",!0);$(j,te,xe,"≤","\\le");$(j,te,xe,"≤","\\leq",!0);$(j,te,xe,"<","\\lt",!0);$(j,te,xe,"→","\\rightarrow",!0);$(j,te,xe,"→","\\to");$(j,Se,xe,"≱","\\ngeq",!0);$(j,Se,xe,"≰","\\nleq",!0);$(j,te,Hp," ","\\ ");$(j,te,Hp," ","\\space");$(j,te,Hp," ","\\nobreakspace");$(Dt,te,Hp," ","\\ ");$(Dt,te,Hp," "," ");$(Dt,te,Hp," ","\\space");$(Dt,te,Hp," ","\\nobreakspace");$(j,te,Hp,null,"\\nobreak");$(j,te,Hp,null,"\\allowbreak");$(j,te,QI,",",",");$(j,te,QI,";",";");$(j,Se,un,"⊼","\\barwedge",!0);$(j,Se,un,"⊻","\\veebar",!0);$(j,te,un,"⊙","\\odot",!0);$(j,te,un,"⊕","\\oplus",!0);$(j,te,un,"⊗","\\otimes",!0);$(j,te,$e,"∂","\\partial",!0);$(j,te,un,"⊘","\\oslash",!0);$(j,Se,un,"⊚","\\circledcirc",!0);$(j,Se,un,"⊡","\\boxdot",!0);$(j,te,un,"△","\\bigtriangleup");$(j,te,un,"▽","\\bigtriangledown");$(j,te,un,"†","\\dagger");$(j,te,un,"⋄","\\diamond");$(j,te,un,"⋆","\\star");$(j,te,un,"◃","\\triangleleft");$(j,te,un,"▹","\\triangleright");$(j,te,Yu,"{","\\{");$(Dt,te,$e,"{","\\{");$(Dt,te,$e,"{","\\textbraceleft");$(j,te,fl,"}","\\}");$(Dt,te,$e,"}","\\}");$(Dt,te,$e,"}","\\textbraceright");$(j,te,Yu,"{","\\lbrace");$(j,te,fl,"}","\\rbrace");$(j,te,Yu,"[","\\lbrack",!0);$(Dt,te,$e,"[","\\lbrack",!0);$(j,te,fl,"]","\\rbrack",!0);$(Dt,te,$e,"]","\\rbrack",!0);$(j,te,Yu,"(","\\lparen",!0);$(j,te,fl,")","\\rparen",!0);$(Dt,te,$e,"<","\\textless",!0);$(Dt,te,$e,">","\\textgreater",!0);$(j,te,Yu,"⌊","\\lfloor",!0);$(j,te,fl,"⌋","\\rfloor",!0);$(j,te,Yu,"⌈","\\lceil",!0);$(j,te,fl,"⌉","\\rceil",!0);$(j,te,$e,"\\","\\backslash");$(j,te,$e,"∣","|");$(j,te,$e,"∣","\\vert");$(Dt,te,$e,"|","\\textbar",!0);$(j,te,$e,"∥","\\|");$(j,te,$e,"∥","\\Vert");$(Dt,te,$e,"∥","\\textbardbl");$(Dt,te,$e,"~","\\textasciitilde");$(Dt,te,$e,"\\","\\textbackslash");$(Dt,te,$e,"^","\\textasciicircum");$(j,te,xe,"↑","\\uparrow",!0);$(j,te,xe,"⇑","\\Uparrow",!0);$(j,te,xe,"↓","\\downarrow",!0);$(j,te,xe,"⇓","\\Downarrow",!0);$(j,te,xe,"↕","\\updownarrow",!0);$(j,te,xe,"⇕","\\Updownarrow",!0);$(j,te,Ja,"∐","\\coprod");$(j,te,Ja,"⋁","\\bigvee");$(j,te,Ja,"⋀","\\bigwedge");$(j,te,Ja,"⨄","\\biguplus");$(j,te,Ja,"⋂","\\bigcap");$(j,te,Ja,"⋃","\\bigcup");$(j,te,Ja,"∫","\\int");$(j,te,Ja,"∫","\\intop");$(j,te,Ja,"∬","\\iint");$(j,te,Ja,"∭","\\iiint");$(j,te,Ja,"∏","\\prod");$(j,te,Ja,"∑","\\sum");$(j,te,Ja,"⨂","\\bigotimes");$(j,te,Ja,"⨁","\\bigoplus");$(j,te,Ja,"⨀","\\bigodot");$(j,te,Ja,"∮","\\oint");$(j,te,Ja,"∯","\\oiint");$(j,te,Ja,"∰","\\oiiint");$(j,te,Ja,"⨆","\\bigsqcup");$(j,te,Ja,"∫","\\smallint");$(Dt,te,nS,"…","\\textellipsis");$(j,te,nS,"…","\\mathellipsis");$(Dt,te,nS,"…","\\ldots",!0);$(j,te,nS,"…","\\ldots",!0);$(j,te,nS,"⋯","\\@cdots",!0);$(j,te,nS,"⋱","\\ddots",!0);$(j,te,$e,"⋮","\\varvdots");$(j,te,sa,"ˊ","\\acute");$(j,te,sa,"ˋ","\\grave");$(j,te,sa,"¨","\\ddot");$(j,te,sa,"~","\\tilde");$(j,te,sa,"ˉ","\\bar");$(j,te,sa,"˘","\\breve");$(j,te,sa,"ˇ","\\check");$(j,te,sa,"^","\\hat");$(j,te,sa,"⃗","\\vec");$(j,te,sa,"˙","\\dot");$(j,te,sa,"˚","\\mathring");$(j,te,Fn,"","\\@imath");$(j,te,Fn,"","\\@jmath");$(j,te,$e,"ı","ı");$(j,te,$e,"ȷ","ȷ");$(Dt,te,$e,"ı","\\i",!0);$(Dt,te,$e,"ȷ","\\j",!0);$(Dt,te,$e,"ß","\\ss",!0);$(Dt,te,$e,"æ","\\ae",!0);$(Dt,te,$e,"œ","\\oe",!0);$(Dt,te,$e,"ø","\\o",!0);$(Dt,te,$e,"Æ","\\AE",!0);$(Dt,te,$e,"Œ","\\OE",!0);$(Dt,te,$e,"Ø","\\O",!0);$(Dt,te,sa,"ˊ","\\'");$(Dt,te,sa,"ˋ","\\`");$(Dt,te,sa,"ˆ","\\^");$(Dt,te,sa,"˜","\\~");$(Dt,te,sa,"ˉ","\\=");$(Dt,te,sa,"˘","\\u");$(Dt,te,sa,"˙","\\.");$(Dt,te,sa,"¸","\\c");$(Dt,te,sa,"˚","\\r");$(Dt,te,sa,"ˇ","\\v");$(Dt,te,sa,"¨",'\\"');$(Dt,te,sa,"˝","\\H");$(Dt,te,sa,"◯","\\textcircled");var wye={"--":!0,"---":!0,"``":!0,"''":!0};$(Dt,te,$e,"–","--",!0);$(Dt,te,$e,"–","\\textendash");$(Dt,te,$e,"—","---",!0);$(Dt,te,$e,"—","\\textemdash");$(Dt,te,$e,"‘","`",!0);$(Dt,te,$e,"‘","\\textquoteleft");$(Dt,te,$e,"’","'",!0);$(Dt,te,$e,"’","\\textquoteright");$(Dt,te,$e,"“","``",!0);$(Dt,te,$e,"“","\\textquotedblleft");$(Dt,te,$e,"”","''",!0);$(Dt,te,$e,"”","\\textquotedblright");$(j,te,$e,"°","\\degree",!0);$(Dt,te,$e,"°","\\degree");$(Dt,te,$e,"°","\\textdegree",!0);$(j,te,$e,"£","\\pounds");$(j,te,$e,"£","\\mathsterling",!0);$(Dt,te,$e,"£","\\pounds");$(Dt,te,$e,"£","\\textsterling",!0);$(j,Se,$e,"✠","\\maltese");$(Dt,Se,$e,"✠","\\maltese");var sie='0123456789/@."';for(var X7=0;X70)return Od(a,u,i,n,s.concat(d));if(l){var f,p;if(l==="boldsymbol"){var g=ubt(a,i,n,s,r);f=g.fontName,p=[g.fontClass]}else o?(f=kye[l].fontName,p=[l]):(f=L_(l,n.fontWeight,n.fontShape),p=[l,n.fontWeight,n.fontShape]);if(GI(a,f,i).metrics)return Od(a,f,i,n,s.concat(p));if(wye.hasOwnProperty(a)&&f.slice(0,10)==="Typewriter"){for(var b=[],S=0;S{if(km(e.classes)!==km(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},fbt=e=>{for(var t=0;tn&&(n=s.height),s.depth>r&&(r=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=i},Il=function(t,n,r,i){var a=new IT(t,n,r,i);return HV(a),a},xye=(e,t,n,r)=>new IT(e,t,n,r),hbt=function(t,n,r){var i=Il([t],[],n);return i.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),i.style.borderBottomWidth=Kt(i.height),i.maxFontSize=1,i},pbt=function(t,n,r,i){var a=new zV(t,n,r,i);return HV(a),a},Tye=function(t){var n=new RT(t);return HV(n),n},mbt=function(t,n){return t instanceof RT?Il([],[t],n):t},gbt=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],i=-n[0].shift-n[0].elem.depth,a=i,s=1;s{var n=Il(["mspace"],[],t),r=pa(e,t);return n.style.marginRight=Kt(r),n},L_=function(t,n,r){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var a;return n==="textbf"&&r==="textit"?a="BoldItalic":n==="textbf"?a="Bold":n==="textit"?a="Italic":a="Regular",i+"-"+a},kye={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Aye={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},vbt=function(t,n){var[r,i,a]=Aye[t],s=new Am(r),o=new Tp([s],{width:Kt(i),height:Kt(a),style:"width:"+Kt(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),l=xye(["overlay"],[o],n);return l.height=a,l.style.height=Kt(a),l.style.width=Kt(i),l},Ze={fontMap:kye,makeSymbol:Od,mathsym:lbt,makeSpan:Il,makeSvgSpan:xye,makeLineSpan:hbt,makeAnchor:pbt,makeFragment:Tye,wrapFragment:mbt,makeVList:bbt,makeOrd:cbt,makeGlue:ybt,staticSvg:vbt,svgData:Aye,tryCombineChars:fbt},da={number:3,unit:"mu"},kg={number:4,unit:"mu"},Uh={number:5,unit:"mu"},Obt={mord:{mop:da,mbin:kg,mrel:Uh,minner:da},mop:{mord:da,mop:da,mrel:Uh,minner:da},mbin:{mord:kg,mop:kg,mopen:kg,minner:kg},mrel:{mord:Uh,mop:Uh,mopen:Uh,minner:Uh},mopen:{},mclose:{mop:da,mbin:kg,mrel:Uh,minner:da},mpunct:{mord:da,mop:da,mrel:Uh,mopen:da,mclose:da,mpunct:da,minner:da},minner:{mord:da,mop:da,mbin:kg,mrel:Uh,mopen:da,mpunct:da,minner:da}},Sbt={mord:{mop:da},mop:{mord:da,mop:da},mbin:{},mrel:{},mopen:{},mclose:{mop:da},mpunct:{},minner:{mop:da}},_ye={},n5={},r5={};function sn(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},l=0;l{var E=S.classes[0],w=b.classes[0];E==="mbin"&&Mn.contains(wbt,w)?S.classes[0]="mord":w==="mbin"&&Mn.contains(Ebt,E)&&(b.classes[0]="mord")},{node:f},p,g),die(a,(b,S)=>{var E=L$(S),w=L$(b),x=E&&w?b.hasClass("mtight")?Sbt[E][w]:Obt[E][w]:null;if(x)return Ze.makeGlue(x,u)},{node:f},p,g),a},die=function e(t,n,r,i,a){i&&t.push(i);for(var s=0;sp=>{t.splice(f+1,0,p),s++})(s)}i&&t.pop()},Cye=function(t){return t instanceof RT||t instanceof zV||t instanceof IT&&t.hasClass("enclosing")?t:null},kbt=function e(t,n){var r=Cye(t);if(r){var i=r.children;if(i.length){if(n==="right")return e(i[i.length-1],"right");if(n==="left")return e(i[0],"left")}}return t},L$=function(t,n){return t?(n&&(t=kbt(t,n)),Tbt[t.classes[0]]||null):null},cx=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return kp(n.concat(r))},Hr=function(t,n,r){if(!t)return kp();if(n5[t.type]){var i=n5[t.type](t,n);if(r&&n.size!==r.size){i=kp(n.sizingClasses(r),[i],n);var a=n.sizeMultiplier/r.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new Ut("Got group of unknown type: '"+t.type+"'")};function $_(e,t){var n=kp(["base"],e,t),r=kp(["strut"]);return r.style.height=Kt(n.height+n.depth),n.depth&&(r.style.verticalAlign=Kt(-n.depth)),n.children.unshift(r),n}function $$(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=ys(e,t,"root"),i;r.length===2&&r[1].hasClass("tag")&&(i=r.pop());for(var a=[],s=[],o=0;o0&&(a.push($_(s,t)),s=[]),a.push(r[o]));s.length>0&&a.push($_(s,t));var u;n?(u=$_(ys(n,t,!0)),u.classes=["tag"],a.push(u)):i&&a.push(i);var d=kp(["katex-html"],a);if(d.setAttribute("aria-hidden","true"),u){var f=u.children[0];f.style.height=Kt(d.height+d.depth),d.depth&&(f.style.verticalAlign=Kt(-d.depth))}return d}function Rye(e){return new RT(e)}class Oc{constructor(t,n,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=km(this.classes));for(var r=0;r0&&(t+=' class ="'+Mn.escape(km(this.classes))+'"'),t+=">";for(var r=0;r",t}toText(){return this.children.map(t=>t.toText()).join("")}}class jE{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return Mn.escape(this.toText())}toText(){return this.text}}class Abt{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",Kt(this.width)),t}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var $t={MathNode:Oc,TextNode:jE,SpaceNode:Abt,newDocumentFragment:Rye},Uc=function(t,n,r){return $i[n][t]&&$i[n][t].replace&&t.charCodeAt(0)!==55349&&!(wye.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=$i[n][t].replace),new $t.TextNode(t)},jV=function(t){return t.length===1?t[0]:new $t.MathNode("mrow",t)},WV=function(t,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var r=n.font;if(!r||r==="mathnormal")return null;var i=t.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var a=t.text;if(Mn.contains(["\\imath","\\jmath"],a))return null;$i[i][a]&&$i[i][a].replace&&(a=$i[i][a].replace);var s=Ze.fontMap[r].fontName;return UV(a,s,i)?Ze.fontMap[r].variant:null},Yl=function(t,n,r){if(t.length===1){var i=ki(t[0],n);return r&&i instanceof Oc&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],s,o=0;o0&&(f.text=f.text.slice(0,1)+"̸"+f.text.slice(1),a.pop())}}}a.push(l),s=l}return a},_m=function(t,n,r){return jV(Yl(t,n,r))},ki=function(t,n){if(!t)return new $t.MathNode("mrow");if(r5[t.type]){var r=r5[t.type](t,n);return r}else throw new Ut("Got group of unknown type: '"+t.type+"'")};function fie(e,t,n,r,i){var a=Yl(e,n),s;a.length===1&&a[0]instanceof Oc&&Mn.contains(["mrow","mtable"],a[0].type)?s=a[0]:s=new $t.MathNode("mrow",a);var o=new $t.MathNode("annotation",[new $t.TextNode(t)]);o.setAttribute("encoding","application/x-tex");var l=new $t.MathNode("semantics",[s,o]),u=new $t.MathNode("math",[l]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&u.setAttribute("display","block");var d=i?"katex":"katex-mathml";return Ze.makeSpan([d],[u])}var Iye=function(t){return new qh({style:t.displayMode?Bn.DISPLAY:Bn.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},Nye=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=Ze.makeSpan(r,[t])}return t},_bt=function(t,n,r){var i=Iye(r),a;if(r.output==="mathml")return fie(t,n,i,r.displayMode,!0);if(r.output==="html"){var s=$$(t,i);a=Ze.makeSpan(["katex"],[s])}else{var o=fie(t,n,i,r.displayMode,!1),l=$$(t,i);a=Ze.makeSpan(["katex"],[o,l])}return Nye(a,r)},Cbt=function(t,n,r){var i=Iye(r),a=$$(t,i),s=Ze.makeSpan(["katex"],[a]);return Nye(s,r)},Rbt={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},Ibt=function(t){var n=new $t.MathNode("mo",[new $t.TextNode(Rbt[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},Nbt={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Dbt=function(t){return t.type==="ordgroup"?t.body.length:1},Pbt=function(t,n){function r(){var o=4e5,l=t.label.slice(1);if(Mn.contains(["widehat","widecheck","widetilde","utilde"],l)){var u=t,d=Dbt(u.base),f,p,g;if(d>5)l==="widehat"||l==="widecheck"?(f=420,o=2364,g=.42,p=l+"4"):(f=312,o=2340,g=.34,p="tilde4");else{var b=[1,1,2,2,3,3][d];l==="widehat"||l==="widecheck"?(o=[0,1062,2364,2364,2364][b],f=[0,239,300,360,420][b],g=[0,.24,.3,.3,.36,.42][b],p=l+b):(o=[0,600,1033,2339,2340][b],f=[0,260,286,306,312][b],g=[0,.26,.286,.3,.306,.34][b],p="tilde"+b)}var S=new Am(p),E=new Tp([S],{width:"100%",height:Kt(g),viewBox:"0 0 "+o+" "+f,preserveAspectRatio:"none"});return{span:Ze.makeSvgSpan([],[E],n),minWidth:0,height:g}}else{var w=[],x=Nbt[l],[k,_,C]=x,R=C/1e3,N=k.length,M,U;if(N===1){var F=x[3];M=["hide-tail"],U=[F]}else if(N===2)M=["halfarrow-left","halfarrow-right"],U=["xMinYMin","xMaxYMin"];else if(N===3)M=["brace-left","brace-center","brace-right"],U=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support + `+N+" children.");for(var G=0;G0&&(i.style.minWidth=Kt(a)),i},Mbt=function(t,n,r,i,a){var s,o=t.height+t.depth+r+i;if(/fbox|color|angl/.test(n)){if(s=Ze.makeSpan(["stretchy",n],[],a),n==="fbox"){var l=a.color&&a.getColor();l&&(s.style.borderColor=l)}}else{var u=[];/^[bx]cancel$/.test(n)&&u.push(new P$({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&u.push(new P$({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var d=new Tp(u,{width:"100%",height:Kt(o)});s=Ze.makeSvgSpan([],[d],a)}return s.height=o,s.style.height=Kt(o),s},Ap={encloseSpan:Mbt,mathMLnode:Ibt,svgSpan:Pbt};function cr(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function QV(e){var t=VI(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function VI(e){return e&&(e.type==="atom"||sbt.hasOwnProperty(e.type))?e:null}var GV=(e,t)=>{var n,r,i;e&&e.type==="supsub"?(r=cr(e.base,"accent"),n=r.base,e.base=n,i=ibt(Hr(e,t)),e.base=r):(r=cr(e,"accent"),n=r.base);var a=Hr(n,t.havingCrampedStyle()),s=r.isShifty&&Mn.isCharacterBox(n),o=0;if(s){var l=Mn.getBaseElem(n),u=Hr(l,t.havingCrampedStyle());o=aie(u).skew}var d=r.label==="\\c",f=d?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),p;if(r.isStretchy)p=Ap.svgSpan(r,t),p=Ze.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:p,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+Kt(2*o)+")",marginLeft:Kt(2*o)}:void 0}]},t);else{var g,b;r.label==="\\vec"?(g=Ze.staticSvg("vec",t),b=Ze.svgData.vec[1]):(g=Ze.makeOrd({mode:r.mode,text:r.label},t,"textord"),g=aie(g),g.italic=0,b=g.width,d&&(f+=g.depth)),p=Ze.makeSpan(["accent-body"],[g]);var S=r.label==="\\textcircled";S&&(p.classes.push("accent-full"),f=a.height);var E=o;S||(E-=b/2),p.style.left=Kt(E),r.label==="\\textcircled"&&(p.style.top=".2em"),p=Ze.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-f},{type:"elem",elem:p}]},t)}var w=Ze.makeSpan(["mord","accent"],[p],t);return i?(i.children[0]=w,i.height=Math.max(w.height,i.height),i.classes[0]="mord",i):w},Dye=(e,t)=>{var n=e.isStretchy?Ap.mathMLnode(e.label):new $t.MathNode("mo",[Uc(e.label,e.mode)]),r=new $t.MathNode("mover",[ki(e.base,t),n]);return r.setAttribute("accent","true"),r},Lbt=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));sn({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=i5(t[0]),r=!Lbt.test(e.funcName),i=!r||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:GV,mathmlBuilder:Dye});sn({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:GV,mathmlBuilder:Dye});sn({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=Hr(e.base,t),r=Ap.svgSpan(e,t),i=e.label==="\\utilde"?.12:0,a=Ze.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]},t);return Ze.makeSpan(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var n=Ap.mathMLnode(e.label),r=new $t.MathNode("munder",[ki(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var F_=e=>{var t=new $t.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};sn({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:"xArrow",mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=Ze.wrapFragment(Hr(e.body,r,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var s;e.below&&(r=t.havingStyle(n.sub()),s=Ze.wrapFragment(Hr(e.below,r,t),t),s.classes.push(a+"-arrow-pad"));var o=Ap.svgSpan(e,t),l=-t.fontMetrics().axisHeight+.5*o.height,u=-t.fontMetrics().axisHeight-.5*o.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(u-=i.depth);var d;if(s){var f=-t.fontMetrics().axisHeight+s.height+.5*o.height+.111;d=Ze.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:o,shift:l},{type:"elem",elem:s,shift:f}]},t)}else d=Ze.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:o,shift:l}]},t);return d.children[0].children[0].children[1].classes.push("svg-align"),Ze.makeSpan(["mrel","x-arrow"],[d],t)},mathmlBuilder(e,t){var n=Ap.mathMLnode(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var i=F_(ki(e.body,t));if(e.below){var a=F_(ki(e.below,t));r=new $t.MathNode("munderover",[n,a,i])}else r=new $t.MathNode("mover",[n,i])}else if(e.below){var s=F_(ki(e.below,t));r=new $t.MathNode("munder",[n,s])}else r=F_(),r=new $t.MathNode("mover",[n,r]);return r}});var $bt=Ze.makeSpan;function Pye(e,t){var n=ys(e.body,t,!0);return $bt([e.mclass],n,t)}function Mye(e,t){var n,r=Yl(e.body,t);return e.mclass==="minner"?n=new $t.MathNode("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new $t.MathNode("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new $t.MathNode("mo",r),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}sn({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:Ua(i),isCharacterBox:Mn.isCharacterBox(i)}},htmlBuilder:Pye,mathmlBuilder:Mye});var qI=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};sn({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:qI(t[0]),body:Ua(t[1]),isCharacterBox:Mn.isCharacterBox(t[1])}}});sn({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],s;r!=="\\stackrel"?s=qI(i):s="mrel";var o={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:Ua(i)},l={type:"supsub",mode:a.mode,base:o,sup:r==="\\underset"?null:a,sub:r==="\\underset"?a:null};return{type:"mclass",mode:n.mode,mclass:s,body:[l],isCharacterBox:Mn.isCharacterBox(l)}},htmlBuilder:Pye,mathmlBuilder:Mye});sn({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:qI(t[0]),body:Ua(t[0])}},htmlBuilder(e,t){var n=ys(e.body,t,!0),r=Ze.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=Yl(e.body,t),r=new $t.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var Fbt={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},hie=()=>({type:"styling",body:[],mode:"math",style:"display"}),pie=e=>e.type==="textord"&&e.text==="@",Bbt=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function Ubt(e,t,n){var r=Fbt[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=n.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:r,mode:"math",family:"rel"},s=n.callFunction("\\Big",[a],[]),o=n.callFunction("\\\\cdright",[t[1]],[]),l={type:"ordgroup",mode:"math",body:[i,s,o]};return n.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var u={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[u],[])}default:return{type:"textord",text:" ",mode:"math"}}}function zbt(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new Ut("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],i=[r],a=0;a-1))if("<>AV".indexOf(u)>-1)for(var f=0;f<2;f++){for(var p=!0,g=l+1;gAV=|." after @',s[l]);var b=Ubt(u,d,e),S={type:"styling",body:[b],mode:"math",style:"display"};r.push(S),o=hie()}a%2===0?r.push(o):r.shift(),r=[],i.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var E=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:E,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}sn({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=Ze.wrapFragment(Hr(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=Kt(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new $t.MathNode("mrow",[ki(e.label,t)]);return n=new $t.MathNode("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new $t.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});sn({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=Ze.wrapFragment(Hr(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new $t.MathNode("mrow",[ki(e.fragment,t)])}});sn({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=cr(t[0],"ordgroup"),i=r.body,a="",s=0;s=1114111)throw new Ut("\\@char with invalid code point "+a);return l<=65535?u=String.fromCharCode(l):(l-=65536,u=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:n.mode,text:u}}});var Lye=(e,t)=>{var n=ys(e.body,t.withColor(e.color),!1);return Ze.makeFragment(n)},$ye=(e,t)=>{var n=Yl(e.body,t.withColor(e.color)),r=new $t.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};sn({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=cr(t[0],"color-token").color,i=t[1];return{type:"color",mode:n.mode,color:r,body:Ua(i)}},htmlBuilder:Lye,mathmlBuilder:$ye});sn({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=cr(t[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var a=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:a}},htmlBuilder:Lye,mathmlBuilder:$ye});sn({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:a,size:i&&cr(i,"size").value}},htmlBuilder(e,t){var n=Ze.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=Kt(pa(e.size,t)))),n},mathmlBuilder(e,t){var n=new $t.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",Kt(pa(e.size,t)))),n}});var F$={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Fye=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Ut("Expected a control sequence",e);return t},Hbt=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},Bye=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i==null&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};sn({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(F$[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=F$[r.text]),cr(t.parseFunction(),"internal");throw new Ut("Invalid token after macro prefix",r)}});sn({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new Ut("Expected a control sequence",r);for(var a=0,s,o=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){s=t.gullet.future(),o[a].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new Ut('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==a+1)throw new Ut('Argument number "'+r.text+'" out of order');a++,o.push([])}else{if(r.text==="EOF")throw new Ut("Expected a macro definition");o[a].push(r.text)}var{tokens:l}=t.gullet.consumeArg();return s&&l.unshift(s),(n==="\\edef"||n==="\\xdef")&&(l=t.gullet.expandTokens(l),l.reverse()),t.gullet.macros.set(i,{tokens:l,numArgs:a,delimiters:o},n===F$[n]),{type:"internal",mode:t.mode}}});sn({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=Fye(t.gullet.popToken());t.gullet.consumeSpaces();var i=Hbt(t);return Bye(t,r,i,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});sn({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=Fye(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return Bye(t,r,a,n==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var nE=function(t,n,r){var i=$i.math[t]&&$i.math[t].replace,a=UV(i||t,n,r);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return a},VV=function(t,n,r,i){var a=r.havingBaseStyle(n),s=Ze.makeSpan(i.concat(a.sizingClasses(r)),[t],r),o=a.sizeMultiplier/r.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=a.sizeMultiplier,s},Uye=function(t,n,r){var i=n.havingBaseStyle(r),a=(1-n.sizeMultiplier/i.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Kt(a),t.height-=a,t.depth+=a},jbt=function(t,n,r,i,a,s){var o=Ze.makeSymbol(t,"Main-Regular",a,i),l=VV(o,n,i,s);return r&&Uye(l,i,n),l},Wbt=function(t,n,r,i){return Ze.makeSymbol(t,"Size"+n+"-Regular",r,i)},zye=function(t,n,r,i,a,s){var o=Wbt(t,n,a,i),l=VV(Ze.makeSpan(["delimsizing","size"+n],[o],i),Bn.TEXT,i,s);return r&&Uye(l,i,Bn.TEXT),l},tP=function(t,n,r){var i;n==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=Ze.makeSpan(["delimsizinginner",i],[Ze.makeSpan([],[Ze.makeSymbol(t,n,r)])]);return{type:"elem",elem:a}},nP=function(t,n,r){var i=Lf["Size4-Regular"][t.charCodeAt(0)]?Lf["Size4-Regular"][t.charCodeAt(0)][4]:Lf["Size1-Regular"][t.charCodeAt(0)][4],a=new Am("inner",Z1t(t,Math.round(1e3*n))),s=new Tp([a],{width:Kt(i),height:Kt(n),style:"width:"+Kt(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),o=Ze.makeSvgSpan([],[s],r);return o.height=n,o.style.height=Kt(n),o.style.width=Kt(i),{type:"elem",elem:o}},B$=.008,B_={type:"kern",size:-1*B$},Qbt=["|","\\lvert","\\rvert","\\vert"],Gbt=["\\|","\\lVert","\\rVert","\\Vert"],Hye=function(t,n,r,i,a,s){var o,l,u,d,f="",p=0;o=u=d=t,l=null;var g="Size1-Regular";t==="\\uparrow"?u=d="⏐":t==="\\Uparrow"?u=d="‖":t==="\\downarrow"?o=u="⏐":t==="\\Downarrow"?o=u="‖":t==="\\updownarrow"?(o="\\uparrow",u="⏐",d="\\downarrow"):t==="\\Updownarrow"?(o="\\Uparrow",u="‖",d="\\Downarrow"):Mn.contains(Qbt,t)?(u="∣",f="vert",p=333):Mn.contains(Gbt,t)?(u="∥",f="doublevert",p=556):t==="["||t==="\\lbrack"?(o="⎡",u="⎢",d="⎣",g="Size4-Regular",f="lbrack",p=667):t==="]"||t==="\\rbrack"?(o="⎤",u="⎥",d="⎦",g="Size4-Regular",f="rbrack",p=667):t==="\\lfloor"||t==="⌊"?(u=o="⎢",d="⎣",g="Size4-Regular",f="lfloor",p=667):t==="\\lceil"||t==="⌈"?(o="⎡",u=d="⎢",g="Size4-Regular",f="lceil",p=667):t==="\\rfloor"||t==="⌋"?(u=o="⎥",d="⎦",g="Size4-Regular",f="rfloor",p=667):t==="\\rceil"||t==="⌉"?(o="⎤",u=d="⎥",g="Size4-Regular",f="rceil",p=667):t==="("||t==="\\lparen"?(o="⎛",u="⎜",d="⎝",g="Size4-Regular",f="lparen",p=875):t===")"||t==="\\rparen"?(o="⎞",u="⎟",d="⎠",g="Size4-Regular",f="rparen",p=875):t==="\\{"||t==="\\lbrace"?(o="⎧",l="⎨",d="⎩",u="⎪",g="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(o="⎫",l="⎬",d="⎭",u="⎪",g="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(o="⎧",d="⎩",u="⎪",g="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(o="⎫",d="⎭",u="⎪",g="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(o="⎧",d="⎭",u="⎪",g="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(o="⎫",d="⎩",u="⎪",g="Size4-Regular");var b=nE(o,g,a),S=b.height+b.depth,E=nE(u,g,a),w=E.height+E.depth,x=nE(d,g,a),k=x.height+x.depth,_=0,C=1;if(l!==null){var R=nE(l,g,a);_=R.height+R.depth,C=2}var N=S+k+_,M=Math.max(0,Math.ceil((n-N)/(C*w))),U=N+M*C*w,F=i.fontMetrics().axisHeight;r&&(F*=i.sizeMultiplier);var G=U/2-F,V=[];if(f.length>0){var ie=U-S-k,ne=Math.round(U*1e3),q=X1t(f,Math.round(ie*1e3)),re=new Am(f,q),ee=(p/1e3).toFixed(3)+"em",Z=(ne/1e3).toFixed(3)+"em",se=new Tp([re],{width:ee,height:Z,viewBox:"0 0 "+p+" "+ne}),W=Ze.makeSvgSpan([],[se],i);W.height=ne/1e3,W.style.width=ee,W.style.height=Z,V.push({type:"elem",elem:W})}else{if(V.push(tP(d,g,a)),V.push(B_),l===null){var Pe=U-S-k+2*B$;V.push(nP(u,Pe,i))}else{var Ee=(U-S-k-_)/2+2*B$;V.push(nP(u,Ee,i)),V.push(B_),V.push(tP(l,g,a)),V.push(B_),V.push(nP(u,Ee,i))}V.push(B_),V.push(tP(o,g,a))}var X=i.havingBaseStyle(Bn.TEXT),Re=Ze.makeVList({positionType:"bottom",positionData:G,children:V},X);return VV(Ze.makeSpan(["delimsizing","mult"],[Re],X),Bn.TEXT,i,s)},rP=80,iP=.08,aP=function(t,n,r,i,a){var s=Y1t(t,i,r),o=new Am(t,s),l=new Tp([o],{width:"400em",height:Kt(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return Ze.makeSvgSpan(["hide-tail"],[l],a)},Vbt=function(t,n){var r=n.havingBaseSizing(),i=Gye("\\surd",t*r.sizeMultiplier,Qye,r),a=r.sizeMultiplier,s=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),o,l=0,u=0,d=0,f;return i.type==="small"?(d=1e3+1e3*s+rP,t<1?a=1:t<1.4&&(a=.7),l=(1+s+iP)/a,u=(1+s)/a,o=aP("sqrtMain",l,d,s,n),o.style.minWidth="0.853em",f=.833/a):i.type==="large"?(d=(1e3+rP)*WE[i.size],u=(WE[i.size]+s)/a,l=(WE[i.size]+s+iP)/a,o=aP("sqrtSize"+i.size,l,d,s,n),o.style.minWidth="1.02em",f=1/a):(l=t+s+iP,u=t+s,d=Math.floor(1e3*t+s)+rP,o=aP("sqrtTall",l,d,s,n),o.style.minWidth="0.742em",f=1.056),o.height=u,o.style.height=Kt(l),{span:o,advanceWidth:f,ruleWidth:(n.fontMetrics().sqrtRuleThickness+s)*a}},jye=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],qbt=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],Wye=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],WE=[0,1.2,1.8,2.4,3],Ybt=function(t,n,r,i,a){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),Mn.contains(jye,t)||Mn.contains(Wye,t))return zye(t,n,!1,r,i,a);if(Mn.contains(qbt,t))return Hye(t,WE[n],!1,r,i,a);throw new Ut("Illegal delimiter: '"+t+"'")},Zbt=[{type:"small",style:Bn.SCRIPTSCRIPT},{type:"small",style:Bn.SCRIPT},{type:"small",style:Bn.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Xbt=[{type:"small",style:Bn.SCRIPTSCRIPT},{type:"small",style:Bn.SCRIPT},{type:"small",style:Bn.TEXT},{type:"stack"}],Qye=[{type:"small",style:Bn.SCRIPTSCRIPT},{type:"small",style:Bn.SCRIPT},{type:"small",style:Bn.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Kbt=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},Gye=function(t,n,r,i){for(var a=Math.min(2,3-i.style.size),s=a;sn)return r[s]}return r[r.length-1]},Vye=function(t,n,r,i,a,s){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var o;Mn.contains(Wye,t)?o=Zbt:Mn.contains(jye,t)?o=Qye:o=Xbt;var l=Gye(t,n,o,i);return l.type==="small"?jbt(t,l.style,r,i,a,s):l.type==="large"?zye(t,l.size,r,i,a,s):Hye(t,n,r,i,a,s)},Jbt=function(t,n,r,i,a,s){var o=i.fontMetrics().axisHeight*i.sizeMultiplier,l=901,u=5/i.fontMetrics().ptPerEm,d=Math.max(n-o,r+o),f=Math.max(d/500*l,2*d-u);return Vye(t,f,!0,i,a,s)},dp={sqrtImage:Vbt,sizedDelim:Ybt,sizeToMaxHeight:WE,customSizedDelim:Vye,leftRightDelim:Jbt},mie={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},eyt=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function YI(e,t){var n=VI(e);if(n&&Mn.contains(eyt,n.text))return n;throw n?new Ut("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new Ut("Invalid delimiter type '"+e.type+"'",e)}sn({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=YI(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:mie[e.funcName].size,mclass:mie[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?Ze.makeSpan([e.mclass]):dp.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(Uc(e.delim,e.mode));var n=new $t.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=Kt(dp.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function gie(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}sn({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new Ut("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:YI(t[0],e).text,color:n}}});sn({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=YI(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var a=cr(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{gie(e);for(var n=ys(e.body,t,!0,["mopen","mclose"]),r=0,i=0,a=!1,s=0;s{gie(e);var n=Yl(e.body,t);if(e.left!=="."){var r=new $t.MathNode("mo",[Uc(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var i=new $t.MathNode("mo",[Uc(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),n.push(i)}return jV(n)}});sn({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=YI(t[0],e);if(!e.parser.leftrightDepth)throw new Ut("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=cx(t,[]);else{n=dp.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?Uc("|","text"):Uc(e.delim,e.mode),r=new $t.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var qV=(e,t)=>{var n=Ze.wrapFragment(Hr(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,s=0,o=Mn.isCharacterBox(e.body);if(r==="sout")a=Ze.makeSpan(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/i,s=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var l=pa({number:.6,unit:"pt"},t),u=pa({number:.35,unit:"ex"},t),d=t.havingBaseSizing();i=i/d.sizeMultiplier;var f=n.height+n.depth+l+u;n.style.paddingLeft=Kt(f/2+l);var p=Math.floor(1e3*f*i),g=V1t(p),b=new Tp([new Am("phase",g)],{width:"400em",height:Kt(p/1e3),viewBox:"0 0 400000 "+p,preserveAspectRatio:"xMinYMin slice"});a=Ze.makeSvgSpan(["hide-tail"],[b],t),a.style.height=Kt(f),s=n.depth+l+u}else{/cancel/.test(r)?o||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var S=0,E=0,w=0;/box/.test(r)?(w=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),S=t.fontMetrics().fboxsep+(r==="colorbox"?0:w),E=S):r==="angl"?(w=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),S=4*w,E=Math.max(0,.25-n.depth)):(S=o?.2:0,E=S),a=Ap.encloseSpan(n,r,S,E,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle="solid",a.style.borderWidth=Kt(w)):r==="angl"&&w!==.049&&(a.style.borderTopWidth=Kt(w),a.style.borderRightWidth=Kt(w)),s=n.depth+E,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var x;if(e.backgroundColor)x=Ze.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:n,shift:0}]},t);else{var k=/cancel|phase/.test(r)?["svg-align"]:[];x=Ze.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:k}]},t)}return/cancel/.test(r)&&(x.height=n.height,x.depth=n.depth),/cancel/.test(r)&&!o?Ze.makeSpan(["mord","cancel-lap"],[x],t):Ze.makeSpan(["mord"],[x],t)},YV=(e,t)=>{var n=0,r=new $t.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[ki(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};sn({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=cr(t[0],"color-token").color,s=t[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:a,body:s}},htmlBuilder:qV,mathmlBuilder:YV});sn({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=cr(t[0],"color-token").color,s=cr(t[1],"color-token").color,o=t[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:s,borderColor:a,body:o}},htmlBuilder:qV,mathmlBuilder:YV});sn({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}});sn({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:qV,mathmlBuilder:YV});sn({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var qye={};function uh(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l{var t=e.parser.settings;if(!t.displayMode)throw new Ut("{"+e.envName+"} can be used only in display mode.")};function ZV(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function Um(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:s,colSeparationType:o,autoTag:l,singleRow:u,emptySingleRow:d,maxNumCols:f,leqno:p}=t;if(e.gullet.beginGroup(),u||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var g=e.gullet.expandMacroAsText("\\arraystretch");if(g==null)s=1;else if(s=parseFloat(g),!s||s<0)throw new Ut("Invalid \\arraystretch: "+g)}e.gullet.beginGroup();var b=[],S=[b],E=[],w=[],x=l!=null?[]:void 0;function k(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function _(){x&&(e.gullet.macros.get("\\df@tag")?(x.push(e.subparse([new Dc("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):x.push(!!l&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(k(),w.push(bie(e));;){var C=e.parseExpression(!1,u?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),C={type:"ordgroup",mode:e.mode,body:C},n&&(C={type:"styling",mode:e.mode,style:n,body:[C]}),b.push(C);var R=e.fetch().text;if(R==="&"){if(f&&b.length===f){if(u||o)throw new Ut("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(R==="\\end"){_(),b.length===1&&C.type==="styling"&&C.body[0].body.length===0&&(S.length>1||!d)&&S.pop(),w.length0&&(k+=.25),u.push({pos:k,isDashed:z[K]})}for(_(s[0]),r=0;r0&&(G+=x,Nz))for(r=0;r=o)){var rt=void 0;(i>0||t.hskipBeforeAndAfter)&&(rt=Mn.deflt(Ee.pregap,p),rt!==0&&(q=Ze.makeSpan(["arraycolsep"],[]),q.style.width=Kt(rt),ne.push(q)));var qe=[];for(r=0;r0){for(var Pt=Ze.makeLineSpan("hline",n,d),Mt=Ze.makeLineSpan("hdashline",n,d),ot=[{type:"elem",elem:l,shift:0}];u.length>0;){var wt=u.pop(),vt=wt.pos-V;wt.isDashed?ot.push({type:"elem",elem:Mt,shift:vt}):ot.push({type:"elem",elem:Pt,shift:vt})}l=Ze.makeVList({positionType:"individualShift",children:ot},n)}if(ee.length===0)return Ze.makeSpan(["mord"],[l],n);var Wt=Ze.makeVList({positionType:"individualShift",children:ee},n);return Wt=Ze.makeSpan(["tag"],[Wt],n),Ze.makeFragment([l,Wt])},tyt={c:"center ",l:"left ",r:"right "},dh=function(t,n){for(var r=[],i=new $t.MathNode("mtd",[],["mtr-glue"]),a=new $t.MathNode("mtd",[],["mml-eqn-num"]),s=0;s0){var b=t.cols,S="",E=!1,w=0,x=b.length;b[0].type==="separator"&&(p+="top ",w=1),b[b.length-1].type==="separator"&&(p+="bottom ",x-=1);for(var k=w;k0?"left ":"",p+=M[M.length-1].length>0?"right ":"";for(var U=1;U-1?"alignat":"align",a=t.envName==="split",s=Um(t.parser,{cols:r,addJot:!0,autoTag:a?void 0:ZV(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),o,l=0,u={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var d="",f=0;f0&&g&&(E=1),r[b]={type:"align",align:S,pregap:E,postgap:0}}return s.colSeparationType=g?"align":"alignat",s};uh({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=VI(t[0]),r=n?[t[0]]:cr(t[0],"ordgroup").body,i=r.map(function(s){var o=QV(s),l=o.text;if("lcr".indexOf(l)!==-1)return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new Ut("Unknown column alignment: "+l,s)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return Um(e.parser,a,XV(e.envName))},htmlBuilder:ch,mathmlBuilder:dh});uh({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,"lcr".indexOf(n)===-1)throw new Ut("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),r.cols=[{type:"align",align:n}]}}var a=Um(e.parser,r,XV(e.envName)),s=Math.max(0,...a.body.map(o=>o.length));return a.cols=new Array(s).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:ch,mathmlBuilder:dh});uh({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=Um(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:ch,mathmlBuilder:dh});uh({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=VI(t[0]),r=n?[t[0]]:cr(t[0],"ordgroup").body,i=r.map(function(s){var o=QV(s),l=o.text;if("lc".indexOf(l)!==-1)return{type:"align",align:l};throw new Ut("Unknown column alignment: "+l,s)});if(i.length>1)throw new Ut("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=Um(e.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new Ut("{subarray} can contain only one column");return a},htmlBuilder:ch,mathmlBuilder:dh});uh({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=Um(e.parser,t,XV(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:ch,mathmlBuilder:dh});uh({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Zye,htmlBuilder:ch,mathmlBuilder:dh});uh({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){Mn.contains(["gather","gather*"],e.envName)&&ZI(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:ZV(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Um(e.parser,t,"display")},htmlBuilder:ch,mathmlBuilder:dh});uh({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Zye,htmlBuilder:ch,mathmlBuilder:dh});uh({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){ZI(e);var t={autoTag:ZV(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Um(e.parser,t,"display")},htmlBuilder:ch,mathmlBuilder:dh});uh({type:"array",names:["CD"],props:{numArgs:0},handler(e){return ZI(e),zbt(e.parser)},htmlBuilder:ch,mathmlBuilder:dh});ce("\\nonumber","\\gdef\\@eqnsw{0}");ce("\\notag","\\nonumber");sn({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Ut(e.funcName+" valid only within array environment")}});var yie=qye;sn({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!=="ordgroup")throw new Ut("Invalid environment name",i);for(var a="",s=0;s{var n=e.font,r=t.withFont(n);return Hr(e.body,r)},Kye=(e,t)=>{var n=e.font,r=t.withFont(n);return ki(e.body,r)},vie={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};sn({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=i5(t[0]),a=r;return a in vie&&(a=vie[a]),{type:"font",mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:Xye,mathmlBuilder:Kye});sn({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],i=Mn.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:qI(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:i}}});sn({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,s=n.parseExpression(!0,i),o="math"+r.slice(1);return{type:"font",mode:a,font:o,body:{type:"ordgroup",mode:n.mode,body:s}}},htmlBuilder:Xye,mathmlBuilder:Kye});var Jye=(e,t)=>{var n=t;return e==="display"?n=n.id>=Bn.SCRIPT.id?n.text():Bn.DISPLAY:e==="text"&&n.size===Bn.DISPLAY.size?n=Bn.TEXT:e==="script"?n=Bn.SCRIPT:e==="scriptscript"&&(n=Bn.SCRIPTSCRIPT),n},KV=(e,t)=>{var n=Jye(e.size,t.style),r=n.fracNum(),i=n.fracDen(),a;a=t.havingStyle(r);var s=Hr(e.numer,a,t);if(e.continued){var o=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;s.height=s.height0?b=3*p:b=7*p,S=t.fontMetrics().denom1):(f>0?(g=t.fontMetrics().num2,b=p):(g=t.fontMetrics().num3,b=3*p),S=t.fontMetrics().denom2);var E;if(d){var x=t.fontMetrics().axisHeight;g-s.depth-(x+.5*f){var n=new $t.MathNode("mfrac",[ki(e.numer,t),ki(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=pa(e.barSize,t);n.setAttribute("linethickness",Kt(r))}var i=Jye(e.size,t.style);if(i.size!==t.style.size){n=new $t.MathNode("mstyle",[n]);var a=i.size===Bn.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",a),n.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var s=[];if(e.leftDelim!=null){var o=new $t.MathNode("mo",[new $t.TextNode(e.leftDelim.replace("\\",""))]);o.setAttribute("fence","true"),s.push(o)}if(s.push(n),e.rightDelim!=null){var l=new $t.MathNode("mo",[new $t.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),s.push(l)}return jV(s)}return n};sn({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],s,o=null,l=null,u="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",l=")";break;case"\\\\bracefrac":s=!1,o="\\{",l="\\}";break;case"\\\\brackfrac":s=!1,o="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":u="display";break;case"\\tfrac":case"\\tbinom":u="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:i,denom:a,hasBarLine:s,leftDelim:o,rightDelim:l,size:u,barSize:null}},htmlBuilder:KV,mathmlBuilder:JV});sn({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:i,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});sn({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:r}}});var Oie=["display","text","script","scriptscript"],Sie=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};sn({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=i5(t[0]),s=a.type==="atom"&&a.family==="open"?Sie(a.text):null,o=i5(t[1]),l=o.type==="atom"&&o.family==="close"?Sie(o.text):null,u=cr(t[2],"size"),d,f=null;u.isBlank?d=!0:(f=u.value,d=f.number>0);var p="auto",g=t[3];if(g.type==="ordgroup"){if(g.body.length>0){var b=cr(g.body[0],"textord");p=Oie[Number(b.text)]}}else g=cr(g,"textord"),p=Oie[Number(g.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:d,barSize:f,leftDelim:s,rightDelim:l,size:p}},htmlBuilder:KV,mathmlBuilder:JV});sn({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:cr(t[0],"size").value,token:i}}});sn({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=N1t(cr(t[1],"infix").size),s=t[2],o=a.number>0;return{type:"genfrac",mode:n.mode,numer:i,denom:s,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:KV,mathmlBuilder:JV});var eve=(e,t)=>{var n=t.style,r,i;e.type==="supsub"?(r=e.sup?Hr(e.sup,t.havingStyle(n.sup()),t):Hr(e.sub,t.havingStyle(n.sub()),t),i=cr(e.base,"horizBrace")):i=cr(e,"horizBrace");var a=Hr(i.base,t.havingBaseStyle(Bn.DISPLAY)),s=Ap.svgSpan(i,t),o;if(i.isOver?(o=Ze.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},t),o.children[0].children[0].children[1].classes.push("svg-align")):(o=Ze.makeVList({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},t),o.children[0].children[0].children[0].classes.push("svg-align")),r){var l=Ze.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t);i.isOver?o=Ze.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},t):o=Ze.makeVList({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return Ze.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t)},nyt=(e,t)=>{var n=Ap.mathMLnode(e.label);return new $t.MathNode(e.isOver?"mover":"munder",[ki(e.base,t),n])};sn({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:eve,mathmlBuilder:nyt});sn({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=cr(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:Ua(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=ys(e.body,t,!1);return Ze.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=_m(e.body,t);return n instanceof Oc||(n=new Oc("mrow",[n])),n.setAttribute("href",e.href),n}});sn({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=cr(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],a=0;a{var{parser:n,funcName:r,token:i}=e,a=cr(t[0],"raw").string,s=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,l={};switch(r){case"\\htmlClass":l.class=a,o={command:"\\htmlClass",class:a};break;case"\\htmlId":l.id=a,o={command:"\\htmlId",id:a};break;case"\\htmlStyle":l.style=a,o={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var u=a.split(","),d=0;d{var n=ys(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=Ze.makeSpan(r,n,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>_m(e.body,t)});sn({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:Ua(t[0]),mathml:Ua(t[1])}},htmlBuilder:(e,t)=>{var n=ys(e.html,t,!1);return Ze.makeFragment(n)},mathmlBuilder:(e,t)=>_m(e.mathml,t)});var sP=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new Ut("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!vye(r))throw new Ut("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};sn({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(n[0])for(var l=cr(n[0],"raw").string,u=l.split(","),d=0;d{var n=pa(e.height,t),r=0;e.totalheight.number>0&&(r=pa(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=pa(e.width,t));var a={height:Kt(n+r)};i>0&&(a.width=Kt(i)),r>0&&(a.verticalAlign=Kt(-r));var s=new nbt(e.src,e.alt,a);return s.height=n,s.depth=r,s},mathmlBuilder:(e,t)=>{var n=new $t.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=pa(e.height,t),i=0;if(e.totalheight.number>0&&(i=pa(e.totalheight,t)-r,n.setAttribute("valign",Kt(-i))),n.setAttribute("height",Kt(r+i)),e.width.number>0){var a=pa(e.width,t);n.setAttribute("width",Kt(a))}return n.setAttribute("src",e.src),n}});sn({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=cr(t[0],"size");if(n.settings.strict){var a=r[1]==="m",s=i.value.unit==="mu";a?(s||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+i.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):s&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return Ze.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=pa(e.dimension,t);return new $t.SpaceNode(n)}});sn({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=Ze.makeSpan([],[Hr(e.body,t)]),n=Ze.makeSpan(["inner"],[n],t)):n=Ze.makeSpan(["inner"],[Hr(e.body,t)]);var r=Ze.makeSpan(["fix"],[]),i=Ze.makeSpan([e.alignment],[n,r],t),a=Ze.makeSpan(["strut"]);return a.style.height=Kt(i.height+i.depth),i.depth&&(a.style.verticalAlign=Kt(-i.depth)),i.children.unshift(a),i=Ze.makeSpan(["thinbox"],[i],t),Ze.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var n=new $t.MathNode("mpadded",[ki(e.body,t)]);if(e.alignment!=="rlap"){var r=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}});sn({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode("math");var a=n==="\\("?"\\)":"$",s=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:s}}});sn({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Ut("Mismatched "+e.funcName)}});var Eie=(e,t)=>{switch(t.style.size){case Bn.DISPLAY.size:return e.display;case Bn.TEXT.size:return e.text;case Bn.SCRIPT.size:return e.script;case Bn.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};sn({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:Ua(t[0]),text:Ua(t[1]),script:Ua(t[2]),scriptscript:Ua(t[3])}},htmlBuilder:(e,t)=>{var n=Eie(e,t),r=ys(n,t,!1);return Ze.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=Eie(e,t);return _m(n,t)}});var tve=(e,t,n,r,i,a,s)=>{e=Ze.makeSpan([],[e]);var o=n&&Mn.isCharacterBox(n),l,u;if(t){var d=Hr(t,r.havingStyle(i.sup()),r);u={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-d.depth)}}if(n){var f=Hr(n,r.havingStyle(i.sub()),r);l={elem:f,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-f.height)}}var p;if(u&&l){var g=r.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+s;p=Ze.makeVList({positionType:"bottom",positionData:g,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Kt(-a)},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:Kt(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(l){var b=e.height-s;p=Ze.makeVList({positionType:"top",positionData:b,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Kt(-a)},{type:"kern",size:l.kern},{type:"elem",elem:e}]},r)}else if(u){var S=e.depth+s;p=Ze.makeVList({positionType:"bottom",positionData:S,children:[{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:Kt(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return e;var E=[p];if(l&&a!==0&&!o){var w=Ze.makeSpan(["mspace"],[],r);w.style.marginRight=Kt(a),E.unshift(w)}return Ze.makeSpan(["mop","op-limits"],E,r)},nve=["\\smallint"],rS=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=cr(e.base,"op"),i=!0):a=cr(e,"op");var s=t.style,o=!1;s.size===Bn.DISPLAY.size&&a.symbol&&!Mn.contains(nve,a.name)&&(o=!0);var l;if(a.symbol){var u=o?"Size2-Regular":"Size1-Regular",d="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(d=a.name.slice(1),a.name=d==="oiint"?"\\iint":"\\iiint"),l=Ze.makeSymbol(a.name,u,"math",t,["mop","op-symbol",o?"large-op":"small-op"]),d.length>0){var f=l.italic,p=Ze.staticSvg(d+"Size"+(o?"2":"1"),t);l=Ze.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:p,shift:o?.08:0}]},t),a.name="\\"+d,l.classes.unshift("mop"),l.italic=f}}else if(a.body){var g=ys(a.body,t,!0);g.length===1&&g[0]instanceof Bc?(l=g[0],l.classes[0]="mop"):l=Ze.makeSpan(["mop"],g,t)}else{for(var b=[],S=1;S{var n;if(e.symbol)n=new Oc("mo",[Uc(e.name,e.mode)]),Mn.contains(nve,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new Oc("mo",Yl(e.body,t));else{n=new Oc("mi",[new jE(e.name.slice(1))]);var r=new Oc("mo",[Uc("⁡","text")]);e.parentIsSupSub?n=new Oc("mrow",[n,r]):n=Rye([n,r])}return n},ryt={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};sn({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=ryt[i]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:rS,mathmlBuilder:NT});sn({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Ua(r)}},htmlBuilder:rS,mathmlBuilder:NT});var iyt={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};sn({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:rS,mathmlBuilder:NT});sn({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:rS,mathmlBuilder:NT});sn({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=iyt[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:rS,mathmlBuilder:NT});var rve=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=cr(e.base,"operatorname"),i=!0):a=cr(e,"operatorname");var s;if(a.body.length>0){for(var o=a.body.map(f=>{var p=f.text;return typeof p=="string"?{type:"textord",mode:f.mode,text:p}:f}),l=ys(o,t.withFont("mathrm"),!0),u=0;u{for(var n=Yl(e.body,t.withFont("mathrm")),r=!0,i=0;id.toText()).join("");n=[new $t.TextNode(o)]}var l=new $t.MathNode("mi",n);l.setAttribute("mathvariant","normal");var u=new $t.MathNode("mo",[Uc("⁡","text")]);return e.parentIsSupSub?new $t.MathNode("mrow",[l,u]):$t.newDocumentFragment([l,u])};sn({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"operatorname",mode:n.mode,body:Ua(i),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:rve,mathmlBuilder:ayt});ce("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");eb({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Ze.makeFragment(ys(e.body,t,!1)):Ze.makeSpan(["mord"],ys(e.body,t,!0),t)},mathmlBuilder(e,t){return _m(e.body,t,!0)}});sn({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=Hr(e.body,t.havingCrampedStyle()),r=Ze.makeLineSpan("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=Ze.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]},t);return Ze.makeSpan(["mord","overline"],[a],t)},mathmlBuilder(e,t){var n=new $t.MathNode("mo",[new $t.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new $t.MathNode("mover",[ki(e.body,t),n]);return r.setAttribute("accent","true"),r}});sn({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:Ua(r)}},htmlBuilder:(e,t)=>{var n=ys(e.body,t.withPhantom(),!1);return Ze.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=Yl(e.body,t);return new $t.MathNode("mphantom",n)}});sn({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=Ze.makeSpan([],[Hr(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r{var n=Yl(Ua(e.body),t),r=new $t.MathNode("mphantom",n),i=new $t.MathNode("mpadded",[r]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}});sn({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=Ze.makeSpan(["inner"],[Hr(e.body,t.withPhantom())]),r=Ze.makeSpan(["fix"],[]);return Ze.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=Yl(Ua(e.body),t),r=new $t.MathNode("mphantom",n),i=new $t.MathNode("mpadded",[r]);return i.setAttribute("width","0px"),i}});sn({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=cr(t[0],"size").value,i=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=Hr(e.body,t),r=pa(e.dy,t);return Ze.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new $t.MathNode("mpadded",[ki(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}});sn({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});sn({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,i=n[0],a=cr(t[0],"size"),s=cr(t[1],"size");return{type:"rule",mode:r.mode,shift:i&&cr(i,"size").value,width:a.value,height:s.value}},htmlBuilder(e,t){var n=Ze.makeSpan(["mord","rule"],[],t),r=pa(e.width,t),i=pa(e.height,t),a=e.shift?pa(e.shift,t):0;return n.style.borderRightWidth=Kt(r),n.style.borderTopWidth=Kt(i),n.style.bottom=Kt(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=pa(e.width,t),r=pa(e.height,t),i=e.shift?pa(e.shift,t):0,a=t.color&&t.getColor()||"black",s=new $t.MathNode("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",Kt(n)),s.setAttribute("height",Kt(r));var o=new $t.MathNode("mpadded",[s]);return i>=0?o.setAttribute("height",Kt(i)):(o.setAttribute("height",Kt(i)),o.setAttribute("depth",Kt(-i))),o.setAttribute("voffset",Kt(i)),o}});function ive(e,t,n){for(var r=ys(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a{var n=t.havingSize(e.size);return ive(e.body,n,t)};sn({type:"sizing",names:wie,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:wie.indexOf(r)+1,body:a}},htmlBuilder:syt,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=Yl(e.body,n),i=new $t.MathNode("mstyle",r);return i.setAttribute("mathsize",Kt(n.sizeMultiplier)),i}});sn({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,s=n[0]&&cr(n[0],"ordgroup");if(s)for(var o="",l=0;l{var n=Ze.makeSpan([],[Hr(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r{var n=new $t.MathNode("mpadded",[ki(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});sn({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:"sqrt",mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=Hr(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=Ze.wrapFragment(n,t);var r=t.fontMetrics(),i=r.defaultRuleThickness,a=i;t.style.idn.height+n.depth+s&&(s=(s+f-n.height-n.depth)/2);var p=l.height-n.height-s-u;n.style.paddingLeft=Kt(d);var g=Ze.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+p)},{type:"elem",elem:l},{type:"kern",size:u}]},t);if(e.index){var b=t.havingStyle(Bn.SCRIPTSCRIPT),S=Hr(e.index,b,t),E=.6*(g.height-g.depth),w=Ze.makeVList({positionType:"shift",positionData:-E,children:[{type:"elem",elem:S}]},t),x=Ze.makeSpan(["root"],[w]);return Ze.makeSpan(["mord","sqrt"],[x,g],t)}else return Ze.makeSpan(["mord","sqrt"],[g],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new $t.MathNode("mroot",[ki(n,t),ki(r,t)]):new $t.MathNode("msqrt",[ki(n,t)])}});var xie={display:Bn.DISPLAY,text:Bn.TEXT,script:Bn.SCRIPT,scriptscript:Bn.SCRIPTSCRIPT};sn({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),s=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:s,body:a}},htmlBuilder(e,t){var n=xie[e.style],r=t.havingStyle(n).withFont("");return ive(e.body,r,t)},mathmlBuilder(e,t){var n=xie[e.style],r=t.havingStyle(n),i=Yl(e.body,r),a=new $t.MathNode("mstyle",i),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[e.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}});var oyt=function(t,n){var r=t.base;if(r)if(r.type==="op"){var i=r.limits&&(n.style.size===Bn.DISPLAY.size||r.alwaysHandleSupSub);return i?rS:null}else if(r.type==="operatorname"){var a=r.alwaysHandleSupSub&&(n.style.size===Bn.DISPLAY.size||r.limits);return a?rve:null}else{if(r.type==="accent")return Mn.isCharacterBox(r.base)?GV:null;if(r.type==="horizBrace"){var s=!t.sub;return s===r.isOver?eve:null}else return null}else return null};eb({type:"supsub",htmlBuilder(e,t){var n=oyt(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,s=Hr(r,t),o,l,u=t.fontMetrics(),d=0,f=0,p=r&&Mn.isCharacterBox(r);if(i){var g=t.havingStyle(t.style.sup());o=Hr(i,g,t),p||(d=s.height-g.fontMetrics().supDrop*g.sizeMultiplier/t.sizeMultiplier)}if(a){var b=t.havingStyle(t.style.sub());l=Hr(a,b,t),p||(f=s.depth+b.fontMetrics().subDrop*b.sizeMultiplier/t.sizeMultiplier)}var S;t.style===Bn.DISPLAY?S=u.sup1:t.style.cramped?S=u.sup3:S=u.sup2;var E=t.sizeMultiplier,w=Kt(.5/u.ptPerEm/E),x=null;if(l){var k=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(s instanceof Bc||k)&&(x=Kt(-s.italic))}var _;if(o&&l){d=Math.max(d,S,o.depth+.25*u.xHeight),f=Math.max(f,u.sub2);var C=u.defaultRuleThickness,R=4*C;if(d-o.depth-(l.height-f)0&&(d+=N,f-=N)}var M=[{type:"elem",elem:l,shift:f,marginRight:w,marginLeft:x},{type:"elem",elem:o,shift:-d,marginRight:w}];_=Ze.makeVList({positionType:"individualShift",children:M},t)}else if(l){f=Math.max(f,u.sub1,l.height-.8*u.xHeight);var U=[{type:"elem",elem:l,marginLeft:x,marginRight:w}];_=Ze.makeVList({positionType:"shift",positionData:f,children:U},t)}else if(o)d=Math.max(d,S,o.depth+.25*u.xHeight),_=Ze.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:o,marginRight:w}]},t);else throw new Error("supsub must have either sup or sub.");var F=L$(s,"right")||"mord";return Ze.makeSpan([F],[s,Ze.makeSpan(["msupsub"],[_])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[ki(e.base,t)];e.sub&&a.push(ki(e.sub,t)),e.sup&&a.push(ki(e.sup,t));var s;if(n)s=r?"mover":"munder";else if(e.sub)if(e.sup){var u=e.base;u&&u.type==="op"&&u.limits&&t.style===Bn.DISPLAY||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(t.style===Bn.DISPLAY||u.limits)?s="munderover":s="msubsup"}else{var l=e.base;l&&l.type==="op"&&l.limits&&(t.style===Bn.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||t.style===Bn.DISPLAY)?s="munder":s="msub"}else{var o=e.base;o&&o.type==="op"&&o.limits&&(t.style===Bn.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||t.style===Bn.DISPLAY)?s="mover":s="msup"}return new $t.MathNode(s,a)}});eb({type:"atom",htmlBuilder(e,t){return Ze.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new $t.MathNode("mo",[Uc(e.text,e.mode)]);if(e.family==="bin"){var r=WV(e,t);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var ave={mi:"italic",mn:"normal",mtext:"normal"};eb({type:"mathord",htmlBuilder(e,t){return Ze.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var n=new $t.MathNode("mi",[Uc(e.text,e.mode,t)]),r=WV(e,t)||"italic";return r!==ave[n.type]&&n.setAttribute("mathvariant",r),n}});eb({type:"textord",htmlBuilder(e,t){return Ze.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var n=Uc(e.text,e.mode,t),r=WV(e,t)||"normal",i;return e.mode==="text"?i=new $t.MathNode("mtext",[n]):/[0-9]/.test(e.text)?i=new $t.MathNode("mn",[n]):e.text==="\\prime"?i=new $t.MathNode("mo",[n]):i=new $t.MathNode("mi",[n]),r!==ave[i.type]&&i.setAttribute("mathvariant",r),i}});var oP={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},lP={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};eb({type:"spacing",htmlBuilder(e,t){if(lP.hasOwnProperty(e.text)){var n=lP[e.text].className||"";if(e.mode==="text"){var r=Ze.makeOrd(e,t,"textord");return r.classes.push(n),r}else return Ze.makeSpan(["mspace",n],[Ze.mathsym(e.text,e.mode,t)],t)}else{if(oP.hasOwnProperty(e.text))return Ze.makeSpan(["mspace",oP[e.text]],[],t);throw new Ut('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(lP.hasOwnProperty(e.text))n=new $t.MathNode("mtext",[new $t.TextNode(" ")]);else{if(oP.hasOwnProperty(e.text))return new $t.MathNode("mspace");throw new Ut('Unknown type of space "'+e.text+'"')}return n}});var Tie=()=>{var e=new $t.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};eb({type:"tag",mathmlBuilder(e,t){var n=new $t.MathNode("mtable",[new $t.MathNode("mtr",[Tie(),new $t.MathNode("mtd",[_m(e.body,t)]),Tie(),new $t.MathNode("mtd",[_m(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var kie={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Aie={"\\textbf":"textbf","\\textmd":"textmd"},lyt={"\\textit":"textit","\\textup":"textup"},_ie=(e,t)=>{var n=e.font;if(n){if(kie[n])return t.withTextFontFamily(kie[n]);if(Aie[n])return t.withTextFontWeight(Aie[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(lyt[n])};sn({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"text",mode:n.mode,body:Ua(i),font:r}},htmlBuilder(e,t){var n=_ie(e,t),r=ys(e.body,n,!0);return Ze.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=_ie(e,t);return _m(e.body,n)}});sn({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Hr(e.body,t),r=Ze.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=Ze.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]},t);return Ze.makeSpan(["mord","underline"],[a],t)},mathmlBuilder(e,t){var n=new $t.MathNode("mo",[new $t.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new $t.MathNode("munder",[ki(e.body,t),n]);return r.setAttribute("accentunder","true"),r}});sn({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Hr(e.body,t),r=t.fontMetrics().axisHeight,i=.5*(n.height-r-(n.depth+r));return Ze.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){return new $t.MathNode("mpadded",[ki(e.body,t)],["vcenter"])}});sn({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new Ut("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=Cie(e),r=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?"␣":" "),X0=_ye,sve=`[ \r + ]`,uyt="\\\\[a-zA-Z@]+",cyt="\\\\[^\uD800-\uDFFF]",dyt="("+uyt+")"+sve+"*",fyt=`\\\\( +|[ \r ]+ +?)[ \r ]*`,U$="[̀-ͯ]",hyt=new RegExp(U$+"+$"),pyt="("+sve+"+)|"+(fyt+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(U$+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(U$+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+dyt)+("|"+cyt+")");class Rie{constructor(t,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=n,this.tokenRegex=new RegExp(pyt,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,n){this.catcodes[t]=n}lex(){var t=this.input,n=this.tokenRegex.lastIndex;if(n===t.length)return new Dc("EOF",new wu(this,n,n));var r=this.tokenRegex.exec(t);if(r===null||r.index!==n)throw new Ut("Unexpected character: '"+t[n]+"'",new Dc(t[n],new wu(this,n,n+1)));var i=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=t.indexOf(` +`,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new Dc(i,new wu(this,n,this.tokenRegex.lastIndex))}}class myt{constructor(t,n){t===void 0&&(t={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=n,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Ut("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var n in t)t.hasOwnProperty(n)&&(t[n]==null?delete this.current[n]:this.current[n]=t[n])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,n,r){if(r===void 0&&(r=!1),r){for(var i=0;i0&&(this.undefStack[this.undefStack.length-1][t]=n)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(t)&&(a[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var gyt=Yye;ce("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});ce("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});ce("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});ce("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});ce("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});ce("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");ce("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Iie={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};ce("\\char",function(e){var t=e.popToken(),n,r="";if(t.text==="'")n=8,t=e.popToken();else if(t.text==='"')n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")r=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new Ut("\\char` missing argument");r=t.text.charCodeAt(0)}else n=10;if(n){if(r=Iie[t.text],r==null||r>=n)throw new Ut("Invalid base-"+n+" digit "+t.text);for(var i;(i=Iie[e.future().text])!=null&&i{var r=e.consumeArg().tokens;if(r.length!==1)throw new Ut("\\newcommand's first argument must be a macro name");var i=r[0].text,a=e.isDefined(i);if(a&&!t)throw new Ut("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!a&&!n)throw new Ut("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var s=0;if(r=e.consumeArg().tokens,r.length===1&&r[0].text==="["){for(var o="",l=e.expandNextToken();l.text!=="]"&&l.text!=="EOF";)o+=l.text,l=e.expandNextToken();if(!o.match(/^\s*[0-9]+\s*$/))throw new Ut("Invalid number of arguments: "+o);s=parseInt(o),r=e.consumeArg().tokens}return e.macros.set(i,{tokens:r,numArgs:s}),""};ce("\\newcommand",e=>eq(e,!1,!0));ce("\\renewcommand",e=>eq(e,!0,!1));ce("\\providecommand",e=>eq(e,!0,!0));ce("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});ce("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});ce("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),X0[n],$i.math[n],$i.text[n]),""});ce("\\bgroup","{");ce("\\egroup","}");ce("~","\\nobreakspace");ce("\\lq","`");ce("\\rq","'");ce("\\aa","\\r a");ce("\\AA","\\r A");ce("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");ce("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");ce("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");ce("ℬ","\\mathscr{B}");ce("ℰ","\\mathscr{E}");ce("ℱ","\\mathscr{F}");ce("ℋ","\\mathscr{H}");ce("ℐ","\\mathscr{I}");ce("ℒ","\\mathscr{L}");ce("ℳ","\\mathscr{M}");ce("ℛ","\\mathscr{R}");ce("ℭ","\\mathfrak{C}");ce("ℌ","\\mathfrak{H}");ce("ℨ","\\mathfrak{Z}");ce("\\Bbbk","\\Bbb{k}");ce("·","\\cdotp");ce("\\llap","\\mathllap{\\textrm{#1}}");ce("\\rlap","\\mathrlap{\\textrm{#1}}");ce("\\clap","\\mathclap{\\textrm{#1}}");ce("\\mathstrut","\\vphantom{(}");ce("\\underbar","\\underline{\\text{#1}}");ce("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');ce("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");ce("\\ne","\\neq");ce("≠","\\neq");ce("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");ce("∉","\\notin");ce("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");ce("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");ce("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");ce("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");ce("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");ce("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");ce("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");ce("⟂","\\perp");ce("‼","\\mathclose{!\\mkern-0.8mu!}");ce("∌","\\notni");ce("⌜","\\ulcorner");ce("⌝","\\urcorner");ce("⌞","\\llcorner");ce("⌟","\\lrcorner");ce("©","\\copyright");ce("®","\\textregistered");ce("️","\\textregistered");ce("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');ce("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');ce("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');ce("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');ce("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}");ce("⋮","\\vdots");ce("\\varGamma","\\mathit{\\Gamma}");ce("\\varDelta","\\mathit{\\Delta}");ce("\\varTheta","\\mathit{\\Theta}");ce("\\varLambda","\\mathit{\\Lambda}");ce("\\varXi","\\mathit{\\Xi}");ce("\\varPi","\\mathit{\\Pi}");ce("\\varSigma","\\mathit{\\Sigma}");ce("\\varUpsilon","\\mathit{\\Upsilon}");ce("\\varPhi","\\mathit{\\Phi}");ce("\\varPsi","\\mathit{\\Psi}");ce("\\varOmega","\\mathit{\\Omega}");ce("\\substack","\\begin{subarray}{c}#1\\end{subarray}");ce("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");ce("\\boxed","\\fbox{$\\displaystyle{#1}$}");ce("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");ce("\\implies","\\DOTSB\\;\\Longrightarrow\\;");ce("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Nie={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};ce("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in Nie?t=Nie[n]:(n.slice(0,4)==="\\not"||n in $i.math&&Mn.contains(["bin","rel"],$i.math[n].group))&&(t="\\dotsb"),t});var tq={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};ce("\\dotso",function(e){var t=e.future().text;return t in tq?"\\ldots\\,":"\\ldots"});ce("\\dotsc",function(e){var t=e.future().text;return t in tq&&t!==","?"\\ldots\\,":"\\ldots"});ce("\\cdots",function(e){var t=e.future().text;return t in tq?"\\@cdots\\,":"\\@cdots"});ce("\\dotsb","\\cdots");ce("\\dotsm","\\cdots");ce("\\dotsi","\\!\\cdots");ce("\\dotsx","\\ldots\\,");ce("\\DOTSI","\\relax");ce("\\DOTSB","\\relax");ce("\\DOTSX","\\relax");ce("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");ce("\\,","\\tmspace+{3mu}{.1667em}");ce("\\thinspace","\\,");ce("\\>","\\mskip{4mu}");ce("\\:","\\tmspace+{4mu}{.2222em}");ce("\\medspace","\\:");ce("\\;","\\tmspace+{5mu}{.2777em}");ce("\\thickspace","\\;");ce("\\!","\\tmspace-{3mu}{.1667em}");ce("\\negthinspace","\\!");ce("\\negmedspace","\\tmspace-{4mu}{.2222em}");ce("\\negthickspace","\\tmspace-{5mu}{.277em}");ce("\\enspace","\\kern.5em ");ce("\\enskip","\\hskip.5em\\relax");ce("\\quad","\\hskip1em\\relax");ce("\\qquad","\\hskip2em\\relax");ce("\\tag","\\@ifstar\\tag@literal\\tag@paren");ce("\\tag@paren","\\tag@literal{({#1})}");ce("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Ut("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});ce("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");ce("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");ce("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");ce("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");ce("\\newline","\\\\\\relax");ce("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var ove=Kt(Lf["Main-Regular"][84][1]-.7*Lf["Main-Regular"][65][1]);ce("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+ove+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");ce("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+ove+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");ce("\\hspace","\\@ifstar\\@hspacer\\@hspace");ce("\\@hspace","\\hskip #1\\relax");ce("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");ce("\\ordinarycolon",":");ce("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");ce("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');ce("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');ce("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');ce("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');ce("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');ce("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');ce("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');ce("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');ce("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');ce("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');ce("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');ce("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');ce("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');ce("∷","\\dblcolon");ce("∹","\\eqcolon");ce("≔","\\coloneqq");ce("≕","\\eqqcolon");ce("⩴","\\Coloneqq");ce("\\ratio","\\vcentcolon");ce("\\coloncolon","\\dblcolon");ce("\\colonequals","\\coloneqq");ce("\\coloncolonequals","\\Coloneqq");ce("\\equalscolon","\\eqqcolon");ce("\\equalscoloncolon","\\Eqqcolon");ce("\\colonminus","\\coloneq");ce("\\coloncolonminus","\\Coloneq");ce("\\minuscolon","\\eqcolon");ce("\\minuscoloncolon","\\Eqcolon");ce("\\coloncolonapprox","\\Colonapprox");ce("\\coloncolonsim","\\Colonsim");ce("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");ce("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");ce("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");ce("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");ce("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");ce("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");ce("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");ce("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");ce("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");ce("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");ce("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");ce("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");ce("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");ce("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");ce("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");ce("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");ce("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");ce("\\nleqq","\\html@mathml{\\@nleqq}{≰}");ce("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");ce("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");ce("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");ce("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");ce("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");ce("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");ce("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");ce("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");ce("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");ce("\\imath","\\html@mathml{\\@imath}{ı}");ce("\\jmath","\\html@mathml{\\@jmath}{ȷ}");ce("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");ce("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");ce("⟦","\\llbracket");ce("⟧","\\rrbracket");ce("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");ce("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");ce("⦃","\\lBrace");ce("⦄","\\rBrace");ce("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");ce("⦵","\\minuso");ce("\\darr","\\downarrow");ce("\\dArr","\\Downarrow");ce("\\Darr","\\Downarrow");ce("\\lang","\\langle");ce("\\rang","\\rangle");ce("\\uarr","\\uparrow");ce("\\uArr","\\Uparrow");ce("\\Uarr","\\Uparrow");ce("\\N","\\mathbb{N}");ce("\\R","\\mathbb{R}");ce("\\Z","\\mathbb{Z}");ce("\\alef","\\aleph");ce("\\alefsym","\\aleph");ce("\\Alpha","\\mathrm{A}");ce("\\Beta","\\mathrm{B}");ce("\\bull","\\bullet");ce("\\Chi","\\mathrm{X}");ce("\\clubs","\\clubsuit");ce("\\cnums","\\mathbb{C}");ce("\\Complex","\\mathbb{C}");ce("\\Dagger","\\ddagger");ce("\\diamonds","\\diamondsuit");ce("\\empty","\\emptyset");ce("\\Epsilon","\\mathrm{E}");ce("\\Eta","\\mathrm{H}");ce("\\exist","\\exists");ce("\\harr","\\leftrightarrow");ce("\\hArr","\\Leftrightarrow");ce("\\Harr","\\Leftrightarrow");ce("\\hearts","\\heartsuit");ce("\\image","\\Im");ce("\\infin","\\infty");ce("\\Iota","\\mathrm{I}");ce("\\isin","\\in");ce("\\Kappa","\\mathrm{K}");ce("\\larr","\\leftarrow");ce("\\lArr","\\Leftarrow");ce("\\Larr","\\Leftarrow");ce("\\lrarr","\\leftrightarrow");ce("\\lrArr","\\Leftrightarrow");ce("\\Lrarr","\\Leftrightarrow");ce("\\Mu","\\mathrm{M}");ce("\\natnums","\\mathbb{N}");ce("\\Nu","\\mathrm{N}");ce("\\Omicron","\\mathrm{O}");ce("\\plusmn","\\pm");ce("\\rarr","\\rightarrow");ce("\\rArr","\\Rightarrow");ce("\\Rarr","\\Rightarrow");ce("\\real","\\Re");ce("\\reals","\\mathbb{R}");ce("\\Reals","\\mathbb{R}");ce("\\Rho","\\mathrm{P}");ce("\\sdot","\\cdot");ce("\\sect","\\S");ce("\\spades","\\spadesuit");ce("\\sub","\\subset");ce("\\sube","\\subseteq");ce("\\supe","\\supseteq");ce("\\Tau","\\mathrm{T}");ce("\\thetasym","\\vartheta");ce("\\weierp","\\wp");ce("\\Zeta","\\mathrm{Z}");ce("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");ce("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");ce("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");ce("\\bra","\\mathinner{\\langle{#1}|}");ce("\\ket","\\mathinner{|{#1}\\rangle}");ce("\\braket","\\mathinner{\\langle{#1}\\rangle}");ce("\\Bra","\\left\\langle#1\\right|");ce("\\Ket","\\left|#1\\right\\rangle");var lve=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,s=t.macros.get("|"),o=t.macros.get("\\|");t.macros.beginGroup();var l=f=>p=>{e&&(p.macros.set("|",s),i.length&&p.macros.set("\\|",o));var g=f;if(!f&&i.length){var b=p.future();b.text==="|"&&(p.popToken(),g=!0)}return{tokens:g?i:r,numArgs:0}};t.macros.set("|",l(!1)),i.length&&t.macros.set("\\|",l(!0));var u=t.consumeArg().tokens,d=t.expandTokens([...a,...u,...n]);return t.macros.endGroup(),{tokens:d.reverse(),numArgs:0}};ce("\\bra@ket",lve(!1));ce("\\bra@set",lve(!0));ce("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");ce("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");ce("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");ce("\\angln","{\\angl n}");ce("\\blue","\\textcolor{##6495ed}{#1}");ce("\\orange","\\textcolor{##ffa500}{#1}");ce("\\pink","\\textcolor{##ff00af}{#1}");ce("\\red","\\textcolor{##df0030}{#1}");ce("\\green","\\textcolor{##28ae7b}{#1}");ce("\\gray","\\textcolor{gray}{#1}");ce("\\purple","\\textcolor{##9d38bd}{#1}");ce("\\blueA","\\textcolor{##ccfaff}{#1}");ce("\\blueB","\\textcolor{##80f6ff}{#1}");ce("\\blueC","\\textcolor{##63d9ea}{#1}");ce("\\blueD","\\textcolor{##11accd}{#1}");ce("\\blueE","\\textcolor{##0c7f99}{#1}");ce("\\tealA","\\textcolor{##94fff5}{#1}");ce("\\tealB","\\textcolor{##26edd5}{#1}");ce("\\tealC","\\textcolor{##01d1c1}{#1}");ce("\\tealD","\\textcolor{##01a995}{#1}");ce("\\tealE","\\textcolor{##208170}{#1}");ce("\\greenA","\\textcolor{##b6ffb0}{#1}");ce("\\greenB","\\textcolor{##8af281}{#1}");ce("\\greenC","\\textcolor{##74cf70}{#1}");ce("\\greenD","\\textcolor{##1fab54}{#1}");ce("\\greenE","\\textcolor{##0d923f}{#1}");ce("\\goldA","\\textcolor{##ffd0a9}{#1}");ce("\\goldB","\\textcolor{##ffbb71}{#1}");ce("\\goldC","\\textcolor{##ff9c39}{#1}");ce("\\goldD","\\textcolor{##e07d10}{#1}");ce("\\goldE","\\textcolor{##a75a05}{#1}");ce("\\redA","\\textcolor{##fca9a9}{#1}");ce("\\redB","\\textcolor{##ff8482}{#1}");ce("\\redC","\\textcolor{##f9685d}{#1}");ce("\\redD","\\textcolor{##e84d39}{#1}");ce("\\redE","\\textcolor{##bc2612}{#1}");ce("\\maroonA","\\textcolor{##ffbde0}{#1}");ce("\\maroonB","\\textcolor{##ff92c6}{#1}");ce("\\maroonC","\\textcolor{##ed5fa6}{#1}");ce("\\maroonD","\\textcolor{##ca337c}{#1}");ce("\\maroonE","\\textcolor{##9e034e}{#1}");ce("\\purpleA","\\textcolor{##ddd7ff}{#1}");ce("\\purpleB","\\textcolor{##c6b9fc}{#1}");ce("\\purpleC","\\textcolor{##aa87ff}{#1}");ce("\\purpleD","\\textcolor{##7854ab}{#1}");ce("\\purpleE","\\textcolor{##543b78}{#1}");ce("\\mintA","\\textcolor{##f5f9e8}{#1}");ce("\\mintB","\\textcolor{##edf2df}{#1}");ce("\\mintC","\\textcolor{##e0e5cc}{#1}");ce("\\grayA","\\textcolor{##f6f7f7}{#1}");ce("\\grayB","\\textcolor{##f0f1f2}{#1}");ce("\\grayC","\\textcolor{##e3e5e6}{#1}");ce("\\grayD","\\textcolor{##d6d8da}{#1}");ce("\\grayE","\\textcolor{##babec2}{#1}");ce("\\grayF","\\textcolor{##888d93}{#1}");ce("\\grayG","\\textcolor{##626569}{#1}");ce("\\grayH","\\textcolor{##3b3e40}{#1}");ce("\\grayI","\\textcolor{##21242c}{#1}");ce("\\kaBlue","\\textcolor{##314453}{#1}");ce("\\kaGreen","\\textcolor{##71B307}{#1}");var uve={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class byt{constructor(t,n,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=n,this.expansionCount=0,this.feed(t),this.macros=new myt(gyt,n.macros),this.mode=r,this.stack=[]}feed(t){this.lexer=new Rie(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var n,r,i;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:i,end:r}=this.consumeArg(["]"])}else({tokens:i,start:n,end:r}=this.consumeArg());return this.pushToken(new Dc("EOF",r.loc)),this.pushTokens(i),n.range(r,"")}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var n=[],r=t&&t.length>0;r||this.consumeSpaces();var i=this.future(),a,s=0,o=0;do{if(a=this.popToken(),n.push(a),a.text==="{")++s;else if(a.text==="}"){if(--s,s===-1)throw new Ut("Extra }",a)}else if(a.text==="EOF")throw new Ut("Unexpected end of input in a macro argument, expected '"+(t&&r?t[o]:"}")+"'",a);if(t&&r)if((s===0||s===1&&t[o]==="{")&&a.text===t[o]){if(++o,o===t.length){n.splice(-o,o);break}}else o=0}while(s!==0||r);return i.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:i,end:a}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new Ut("The length of delimiters doesn't match the number of args!");for(var r=n[0],i=0;ithis.settings.maxExpand)throw new Ut("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var n=this.popToken(),r=n.text,i=n.noexpand?null:this._getExpansion(r);if(i==null||t&&i.unexpandable){if(t&&i==null&&r[0]==="\\"&&!this.isDefined(r))throw new Ut("Undefined control sequence: "+r);return this.pushToken(n),!1}this.countExpansion(1);var a=i.tokens,s=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var o=a.length-1;o>=0;--o){var l=a[o];if(l.text==="#"){if(o===0)throw new Ut("Incomplete placeholder at end of macro body",l);if(l=a[--o],l.text==="#")a.splice(o+1,1);else if(/^[1-9]$/.test(l.text))a.splice(o,2,...s[+l.text-1]);else throw new Ut("Not a valid argument number",l)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new Dc(t)]):void 0}expandTokens(t){var n=[],r=this.stack.length;for(this.pushTokens(t);this.stack.length>r;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),n.push(i)}return this.countExpansion(n.length),n}expandMacroAsText(t){var n=this.expandMacro(t);return n&&n.map(r=>r.text).join("")}_getExpansion(t){var n=this.macros.get(t);if(n==null)return n;if(t.length===1){var r=this.lexer.catcodes[t];if(r!=null&&r!==13)return}var i=typeof n=="function"?n(this):n;if(typeof i=="string"){var a=0;if(i.indexOf("#")!==-1)for(var s=i.replace(/##/g,"");s.indexOf("#"+(a+1))!==-1;)++a;for(var o=new Rie(i,this.settings),l=[],u=o.lex();u.text!=="EOF";)l.push(u),u=o.lex();l.reverse();var d={tokens:l,numArgs:a};return d}return i}isDefined(t){return this.macros.has(t)||X0.hasOwnProperty(t)||$i.math.hasOwnProperty(t)||$i.text.hasOwnProperty(t)||uve.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:X0.hasOwnProperty(t)&&!X0[t].primitive}}var Die=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,U_=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),uP={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},Pie={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class XI{constructor(t,n){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new byt(t,n,this.mode),this.settings=n,this.leftrightDepth=0}expect(t,n){if(n===void 0&&(n=!0),this.fetch().text!==t)throw new Ut("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());n&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var n=this.nextToken;this.consume(),this.gullet.pushToken(new Dc("}")),this.gullet.pushTokens(t);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,r}parseExpression(t,n){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(XI.endOfExpression.indexOf(i.text)!==-1||n&&i.text===n||t&&X0[i.text]&&X0[i.text].infix)break;var a=this.parseAtom(n);if(a){if(a.type==="internal")continue}else break;r.push(a)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(t){for(var n=-1,r,i=0;i=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var o=$i[this.mode][n].group,l=wu.range(t),u;if(abt.hasOwnProperty(o)){var d=o;u={type:"atom",mode:this.mode,family:d,loc:l,text:n}}else u={type:o,mode:this.mode,loc:l,text:n};s=u}else if(n.charCodeAt(0)>=128)this.settings.strict&&(yye(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),t)),s={type:"textord",mode:"text",loc:wu.range(t),text:n};else return null;if(this.consume(),a)for(var f=0;f0&&(a.properties.rel=[...p]),g&&(a.properties.target=g),d){const S=M2(t.contentProperties,a)||{};a.children.push({type:"element",tagName:"span",properties:Id(S),children:Id(d)})}}}})}}function M2(e,t){return typeof e=="function"?e(t):e}function _yt(e,t){return fve(e,{})||{type:"root",children:[]}}function fve(e,t){const n=Cyt(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function Cyt(e,t){switch(e.nodeType){case 1:return Dyt(e,t);case 3:return Iyt(e);case 8:return Nyt(e);case 9:return Mie(e,t);case 10:return Ryt();case 11:return Mie(e,t);default:return}}function Mie(e,t){return{type:"root",children:hve(e,t)}}function Ryt(){return{type:"doctype"}}function Iyt(e){return{type:"text",value:e.nodeValue||""}}function Nyt(e){return{type:"comment",value:e.nodeValue||""}}function Dyt(e,t){const n=e.namespaceURI,r=n===Pf.svg?N1e:I1e,i=n===Pf.html?e.tagName.toLowerCase():e.tagName,a=n===Pf.html&&i==="template"?e.content:e,s=e.getAttributeNames(),o={};let l=-1;for(;++lu&&(u=d):d&&(u!==void 0&&u>-1&&l.push(` +`.repeat(u)||" "),u=-1,l.push(d))}return l.join("")}function mve(e,t,n){return e.type==="element"?Byt(e,t,n):e.type==="text"?n.whitespace==="normal"?gve(e,n):Uyt(e):[]}function Byt(e,t,n){const r=bve(e,n),i=e.children||[];let a=-1,s=[];if($yt(e))return s;let o,l;for(z$(e)||Uie(e)&&Lie(t,e,Uie)?l=` +`:Lyt(e)?(o=2,l=2):pve(e)&&(o=1,l=1);++a"),a={type:"comment",value:r<0?n:n.slice(0,r)};return DT(a,t),a}}function Zyt(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return DT(n,t),n}}function Xyt(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const r=vve(e,t.children),i=evt(e,t.properties);e.stack.pop();let a=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(a=!0,e.schema.ancestors&&T0.call(e.schema.ancestors,n))){const o=e.schema.ancestors[n];let l=-1;for(a=!1;++l1){let i=!1,a=0;for(;++a-1&&a>l||s>-1&&a>s||o>-1&&a>o)return!0;let u=-1;for(;++u4&&t.slice(0,4).toLowerCase()==="data")return n}function rvt(e){return function(t){return qyt(t,e)}}function ivt(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:o,mathText:s,mathTextData:o}};function e(l){const u={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[u]}},l)}function t(){this.buffer()}function n(){const l=this.resume(),u=this.stack[this.stack.length-1];u.type,u.meta=l}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(l){const u=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),d=this.stack[this.stack.length-1];d.type,this.exit(l),d.value=u;const f=d.data.hChildren[0];f.type,f.tagName,f.children.push({type:"text",value:u}),this.data.mathFlowInside=void 0}function a(l){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},l),this.buffer()}function s(l){const u=this.resume(),d=this.stack[this.stack.length-1];d.type,this.exit(l),d.value=u,d.data.hChildren.push({type:"text",value:u})}function o(l){this.config.enter.data.call(this,l),this.config.exit.data.call(this,l)}}function avt(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),r.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:` +`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:r}};function n(a,s,o,l){const u=a.value||"",d=o.createTracker(l),f="$".repeat(Math.max(Vbe(u,"$")+1,2)),p=o.enter("mathFlow");let g=d.move(f);if(a.meta){const b=o.enter("mathFlowMeta");g+=d.move(o.safe(a.meta,{after:` +`,before:g,encode:["$"],...d.current()})),b()}return g+=d.move(` +`),u&&(g+=d.move(u+` +`)),g+=d.move(f),p(),g}function r(a,s,o){let l=a.value||"",u=1;for(t||u++;new RegExp("(^|[^$])"+"\\$".repeat(u)+"([^$]|$)").test(l);)u++;const d="$".repeat(u);/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^\$|\$$/.test(l))&&(l=" "+l+" ");let f=-1;for(;++f{if(!t.doc)return;const i=()=>{var o,l;const s=((l=(o=t.doc)==null?void 0:o.getRoot().content)==null?void 0:l.toString())||"";r(I$(s))};i();const a=t.doc.subscribe("$.content",()=>{i()});return()=>{a(),r("")}},[t.doc]),t!=null&&t.doc?D.jsx(gye,{source:I$(n),wrapperElement:{"data-color-mode":e,style:{whiteSpace:"wrap !important",WebkitUserModify:"read-only"}},remarkPlugins:[pvt],rehypePlugins:[[rvt,{...s5,attributes:{...s5.attributes,code:[["className",/^language-./,"math-inline","math-display"]]}}],Vyt,[Ayt,{target:"_blank"}]],components:{code:({children:i=[],className:a,...s})=>{if(typeof i=="string"&&/^\$\$(.*)\$\$/.test(i)){const l=a5.renderToString(i.replace(/^\$\$(.*)\$\$/,"$1"),{throwOnError:!1});return D.jsx("code",{dangerouslySetInnerHTML:{__html:l},style:{background:"transparent"}})}const o=s.node&&s.node.children?gV(s.node.children):i;if(typeof o=="string"&&typeof a=="string"&&/^language-katex/.test(a.toLocaleLowerCase())){const l=a5.renderToString(o,{throwOnError:!1});return D.jsx("code",{style:{fontSize:"150%"},dangerouslySetInnerHTML:{__html:l}})}return D.jsx("code",{className:String(a),children:i})}}}):D.jsx(Wn,{direction:"row",justifyContent:"center",children:D.jsx(Md,{sx:{mt:2}})})}function Sve(){const e=Pr(Dp),t=$Je();return!e.doc||!e.client?D.jsx(SO,{open:!0,children:D.jsx(Md,{color:"inherit"})}):D.jsxs(D.Fragment,{children:[D.jsx("div",{className:"wmde-markdown-var"}),e.mode==="both"&&D.jsx(RJe,{axis:"x",initial:t/2,min:400,children:({position:n,separatorProps:r})=>D.jsx(vM.ScrollSync,{children:D.jsxs("div",{id:"wrapper",style:{display:"flex",height:"100%",overflow:"hidden"},children:[D.jsx("div",{id:"left-block",style:{width:n},children:D.jsx(eie,{})}),D.jsx(Ks,{id:"splitter",...r,sx:{height:"100%",width:8,borderRadius:0,cursor:"col-resize",zIndex:0}}),D.jsx(vM.ScrollSyncPane,{children:D.jsx("div",{className:"right-block",style:{width:`calc(100% - ${n}px)`,overflow:"auto"},children:D.jsx(ia,{sx:{p:4},height:"100%",children:D.jsx(Wie,{})})})})]})})}),e.mode==="read"&&D.jsx(ia,{sx:{p:4,overflow:"auto"},height:"100%",children:D.jsx(Wie,{})}),e.mode==="edit"&&D.jsx(eie,{})]})}var Eve={exports:{}},mvt={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},wve={exports:{}},gvt=function(t){return!t||typeof t=="string"?!1:t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")},bvt=gvt,yvt=Array.prototype.concat,vvt=Array.prototype.slice,Qie=wve.exports=function(t){for(var n=[],r=0,i=t.length;r=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"};Pu.to.keyword=function(e){return Tve[e.slice(0,3)]};function hm(e,t,n){return Math.min(Math.max(t,e),n)}function z_(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var Svt=Eve.exports,Evt={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const dx=Evt,kve={};for(const e of Object.keys(dx))kve[dx[e]]=e;const En={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var Ave=En;for(const e of Object.keys(En)){if(!("channels"in En[e]))throw new Error("missing channels property: "+e);if(!("labels"in En[e]))throw new Error("missing channel labels property: "+e);if(En[e].labels.length!==En[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=En[e];delete En[e].channels,delete En[e].labels,Object.defineProperty(En[e],"channels",{value:t}),Object.defineProperty(En[e],"labels",{value:n})}En.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),s=a-i;let o,l;a===i?o=0:t===a?o=(n-r)/s:n===a?o=2+(r-t)/s:r===a&&(o=4+(t-n)/s),o=Math.min(o*60,360),o<0&&(o+=360);const u=(i+a)/2;return a===i?l=0:u<=.5?l=s/(a+i):l=s/(2-a-i),[o,l*100,u*100]};En.rgb.hsv=function(e){let t,n,r,i,a;const s=e[0]/255,o=e[1]/255,l=e[2]/255,u=Math.max(s,o,l),d=u-Math.min(s,o,l),f=function(p){return(u-p)/6/d+1/2};return d===0?(i=0,a=0):(a=d/u,t=f(s),n=f(o),r=f(l),s===u?i=r-n:o===u?i=1/3+t-r:l===u&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[i*360,a*100,u*100]};En.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const i=En.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,a*100,r*100]};En.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r),a=(1-t-i)/(1-i)||0,s=(1-n-i)/(1-i)||0,o=(1-r-i)/(1-i)||0;return[a*100,s*100,o*100,i*100]};function wvt(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}En.rgb.keyword=function(e){const t=kve[e];if(t)return t;let n=1/0,r;for(const i of Object.keys(dx)){const a=dx[i],s=wvt(e,a);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const i=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[i*100,a*100,s*100]};En.rgb.lab=function(e){const t=En.rgb.xyz(e);let n=t[0],r=t[1],i=t[2];n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;const a=116*r-16,s=500*(n-r),o=200*(r-i);return[a,s,o]};En.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let i,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?i=r*(1+n):i=r+n-r*n;const o=2*r-i,l=[0,0,0];for(let u=0;u<3;u++)a=t+1/3*-(u-1),a<0&&a++,a>1&&a--,6*a<1?s=o+(i-o)*6*a:2*a<1?s=i:3*a<2?s=o+(i-o)*(2/3-a)*6:s=o,l[u]=s*255;return l};En.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,i=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=a<=1?a:2-a;const s=(r+n)/2,o=r===0?2*i/(a+i):2*n/(r+n);return[t,o*100,s*100]};En.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const i=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),o=255*r*(1-n*a),l=255*r*(1-n*(1-a));switch(r*=255,i){case 0:return[r,l,s];case 1:return[o,r,s];case 2:return[s,r,l];case 3:return[s,o,r];case 4:return[l,s,r];case 5:return[r,s,o]}};En.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01);let a,s;s=(2-n)*r;const o=(2-n)*i;return a=n*i,a/=o<=1?o:2-o,a=a||0,s/=2,[t,a*100,s*100]};En.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const i=n+r;let a;i>1&&(n/=i,r/=i);const s=Math.floor(6*t),o=1-r;a=6*t-s,s&1&&(a=1-a);const l=n+a*(o-n);let u,d,f;switch(s){default:case 6:case 0:u=o,d=l,f=n;break;case 1:u=l,d=o,f=n;break;case 2:u=n,d=o,f=l;break;case 3:u=n,d=l,f=o;break;case 4:u=l,d=n,f=o;break;case 5:u=o,d=n,f=l;break}return[u*255,d*255,f*255]};En.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100,a=1-Math.min(1,t*(1-i)+i),s=1-Math.min(1,n*(1-i)+i),o=1-Math.min(1,r*(1-i)+i);return[a*255,s*255,o*255]};En.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let i,a,s;return i=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[i*255,a*255,s*255]};En.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const i=116*n-16,a=500*(t-n),s=200*(n-r);return[i,a,s]};En.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let i,a,s;a=(t+16)/116,i=n/500+a,s=a-r/200;const o=a**3,l=i**3,u=s**3;return a=o>.008856?o:(a-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,s=u>.008856?u:(s-16/116)/7.787,i*=95.047,a*=100,s*=108.883,[i,a,s]};En.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let i;i=Math.atan2(r,n)*360/2/Math.PI,i<0&&(i+=360);const s=Math.sqrt(n*n+r*r);return[t,s,i]};En.lch.lab=function(e){const t=e[0],n=e[1],i=e[2]/360*2*Math.PI,a=n*Math.cos(i),s=n*Math.sin(i);return[t,a,s]};En.rgb.ansi16=function(e,t=null){const[n,r,i]=e;let a=t===null?En.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};En.hsv.ansi16=function(e){return En.rgb.ansi16(En.hsv.rgb(e),e[2])};En.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};En.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,i=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,i,a]};En.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[n,r,i]};En.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};En.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(o=>o+o).join(""));const r=parseInt(n,16),i=r>>16&255,a=r>>8&255,s=r&255;return[i,a,s]};En.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=i-a;let o,l;return s<1?o=a/(1-s):o=0,s<=0?l=0:i===t?l=(n-r)/s%6:i===n?l=2+(r-t)/s:l=4+(t-n)/s,l/=6,l%=1,[l*360,s*100,o*100]};En.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let i=0;return r<1&&(i=(n-.5*r)/(1-r)),[e[0],r*100,i*100]};En.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],r*100,i*100]};En.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const i=[0,0,0],a=t%1*6,s=a%1,o=1-s;let l=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=o,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=o,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=o}return l=(1-n)*r,[(n*i[0]+l)*255,(n*i[1]+l)*255,(n*i[2]+l)*255]};En.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let i=0;return r>0&&(i=t/r),[e[0],i*100,r*100]};En.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let i=0;return r>0&&r<.5?i=t/(2*r):r>=.5&&r<1&&(i=t/(2*(1-r))),[e[0],i*100,r*100]};En.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};En.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,i=r-t;let a=0;return i<1&&(a=(r-i)/(1-i)),[e[0],i*100,a*100]};En.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};En.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};En.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};En.gray.hsl=function(e){return[0,0,e[0]]};En.gray.hsv=En.gray.hsl;En.gray.hwb=function(e){return[0,100,e[0]]};En.gray.cmyk=function(e){return[0,0,0,e[0]]};En.gray.lab=function(e){return[e[0],0,0]};En.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};En.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const o5=Ave;function xvt(){const e={},t=Object.keys(o5);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function Nvt(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const i=e(n);if(typeof i=="object")for(let a=i.length,s=0;s{py[e]={},Object.defineProperty(py[e],"channels",{value:H$[e].channels}),Object.defineProperty(py[e],"labels",{value:H$[e].labels});const t=Cvt(e);Object.keys(t).forEach(r=>{const i=t[r];py[e][r]=Nvt(i),py[e][r].raw=Ivt(i)})});var Dvt=py;const my=Svt,Ru=Dvt,_ve=["keyword","gray","hex"],j$={};for(const e of Object.keys(Ru))j$[[...Ru[e].labels].sort().join("")]=e;const l5={};function _s(e,t){if(!(this instanceof _s))return new _s(e,t);if(t&&t in _ve&&(t=null),t&&!(t in Ru))throw new Error("Unknown model: "+t);let n,r;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof _s)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const i=my.get(e);if(i===null)throw new Error("Unable to parse color from string: "+e);this.model=i.model,r=Ru[this.model].channels,this.color=i.value.slice(0,r),this.valpha=typeof i.value[r]=="number"?i.value[r]:1}else if(e.length>0){this.model=t||"rgb",r=Ru[this.model].channels;const i=Array.prototype.slice.call(e,0,r);this.color=W$(i,r),this.valpha=typeof e[r]=="number"?e[r]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const i=Object.keys(e);"alpha"in e&&(i.splice(i.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const a=i.sort().join("");if(!(a in j$))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=j$[a];const{labels:s}=Ru[this.model],o=[];for(n=0;n(e%360+360)%360),saturationl:xa("hsl",1,ss(100)),lightness:xa("hsl",2,ss(100)),saturationv:xa("hsv",1,ss(100)),value:xa("hsv",2,ss(100)),chroma:xa("hcg",1,ss(100)),gray:xa("hcg",2,ss(100)),white:xa("hwb",1,ss(100)),wblack:xa("hwb",2,ss(100)),cyan:xa("cmyk",0,ss(100)),magenta:xa("cmyk",1,ss(100)),yellow:xa("cmyk",2,ss(100)),black:xa("cmyk",3,ss(100)),x:xa("xyz",0,ss(95.047)),y:xa("xyz",1,ss(100)),z:xa("xyz",2,ss(108.833)),l:xa("lab",0,ss(100)),a:xa("lab",1),b:xa("lab",2),keyword(e){return e!==void 0?new _s(e):Ru[this.model].keyword(this.color)},hex(e){return e!==void 0?new _s(e):my.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new _s(e);const t=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),my.to.hex(t)+n},rgbNumber(){const e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){const e=this.rgb().color,t=[];for(const[n,r]of e.entries()){const i=r/255;t[n]=i<=.04045?i/12.92:((i+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return _s.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),i=t===void 0?.5:t,a=2*i-1,s=n.alpha()-r.alpha(),o=((a*s===-1?a:(a+s)/(1+a*s))+1)/2,l=1-o;return _s.rgb(o*n.red()+l*r.red(),o*n.green()+l*r.green(),o*n.blue()+l*r.blue(),n.alpha()*i+r.alpha()*(1-i))}};for(const e of Object.keys(Ru)){if(_ve.includes(e))continue;const{channels:t}=Ru[e];_s.prototype[e]=function(...n){return this.model===e?new _s(this):n.length>0?new _s(n,e):new _s([...Lvt(Ru[this.model][e].raw(this.color)),this.valpha],e)},_s[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=W$(n,t)),new _s(r,e)}}function Pvt(e,t){return Number(e.toFixed(t))}function Mvt(e){return function(t){return Pvt(t,e)}}function xa(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(l5[r]||(l5[r]=[]))[t]=n;return e=e[0],function(r){let i;return r!==void 0?(n&&(r=n(r)),i=this[e](),i.color[t]=r,i):(i=this[e]().color[t],n&&(i=n(i)),i)}}function ss(e){return function(t){return Math.max(0,Math.min(e,t))}}function Lvt(e){return Array.isArray(e)?e:[e]}function W$(e,t){for(let n=0;nV.length;){var ne=a(N);n!==null&&(N.seed=n),V.push(ne)}return N.count=G,V}return M=s(N),U=o(M,N),F=l(M,U,N),u([M,U,F],N)};function s(N){if(i.length>0){var M=R(N.hue),U=b(M),F=(M[1]-M[0])/i.length,G=parseInt((U-M[0])/F);i[G]===!0?G=(G+2)%i.length:i[G]=!0;var V=(M[0]+G*F)%359,ie=(M[0]+(G+1)*F)%359;return M=[V,ie],U=b(M),U<0&&(U=360+U),U}else{var M=f(N.hue);return U=b(M),U<0&&(U=360+U),U}}function o(N,M){if(M.hue==="monochrome")return 0;if(M.luminosity==="random")return b([0,100]);var U=p(N),F=U[0],G=U[1];switch(M.luminosity){case"bright":F=55;break;case"dark":F=G-10;break;case"light":G=55;break}return b([F,G])}function l(N,M,U){var F=d(N,M),G=100;switch(U.luminosity){case"dark":G=F+20;break;case"light":F=(G+F)/2;break;case"random":F=0,G=100;break}return b([F,G])}function u(N,M){switch(M.format){case"hsvArray":return N;case"hslArray":return _(N);case"hsl":var U=_(N);return"hsl("+U[0]+", "+U[1]+"%, "+U[2]+"%)";case"hsla":var F=_(N),ie=M.alpha||Math.random();return"hsla("+F[0]+", "+F[1]+"%, "+F[2]+"%, "+ie+")";case"rgbArray":return x(N);case"rgb":var G=x(N);return"rgb("+G.join(", ")+")";case"rgba":var V=x(N),ie=M.alpha||Math.random();return"rgba("+V.join(", ")+", "+ie+")";default:return S(N)}}function d(N,M){for(var U=g(N).lowerBounds,F=0;F=G&&M<=ie){var q=(ne-V)/(ie-G),re=V-q*G;return q*M+re}}return 0}function f(N){if(typeof parseInt(N)=="number"){var M=parseInt(N);if(M<360&&M>0)return[M,M]}if(typeof N=="string"){if(r[N]){var U=r[N];if(U.hueRange)return U.hueRange}else if(N.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var F=k(N)[0];return[F,F]}}return[0,360]}function p(N){return g(N).saturationRange}function g(N){N>=334&&N<=360&&(N-=360);for(var M in r){var U=r[M];if(U.hueRange&&N>=U.hueRange[0]&&N<=U.hueRange[1])return r[M]}return"Color not found"}function b(N){if(n===null){var M=.618033988749895,U=Math.random();return U+=M,U%=1,Math.floor(N[0]+U*(N[1]+1-N[0]))}else{var F=N[1]||1,G=N[0]||0;n=(n*9301+49297)%233280;var V=n/233280;return Math.floor(G+V*(F-G))}}function S(N){var M=x(N);function U(G){var V=G.toString(16);return V.length==1?"0"+V:V}var F="#"+U(M[0])+U(M[1])+U(M[2]);return F}function E(N,M,U){var F=U[0][0],G=U[U.length-1][0],V=U[U.length-1][1],ie=U[0][1];r[N]={hueRange:M,lowerBounds:U,saturationRange:[F,G],brightnessRange:[V,ie]}}function w(){E("monochrome",null,[[0,0],[100,0]]),E("red",[-26,18],[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]),E("orange",[18,46],[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]),E("yellow",[46,62],[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]),E("green",[62,178],[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]),E("blue",[178,257],[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]),E("purple",[257,282],[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]),E("pink",[282,334],[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]])}function x(N){var M=N[0];M===0&&(M=1),M===360&&(M=359),M=M/360;var U=N[1]/100,F=N[2]/100,G=Math.floor(M*6),V=M*6-G,ie=F*(1-U),ne=F*(1-V*U),q=F*(1-(1-V)*U),re=256,ee=256,Z=256;switch(G){case 0:re=F,ee=q,Z=ie;break;case 1:re=ne,ee=F,Z=ie;break;case 2:re=ie,ee=F,Z=q;break;case 3:re=ie,ee=ne,Z=F;break;case 4:re=q,ee=ie,Z=F;break;case 5:re=F,ee=ie,Z=ne;break}var se=[Math.floor(re*255),Math.floor(ee*255),Math.floor(Z*255)];return se}function k(N){N=N.replace(/^#/,""),N=N.length===3?N.replace(/(.)/g,"$1$1"):N;var M=parseInt(N.substr(0,2),16)/255,U=parseInt(N.substr(2,2),16)/255,F=parseInt(N.substr(4,2),16)/255,G=Math.max(M,U,F),V=G-Math.min(M,U,F),ie=G?V/G:0;switch(G){case M:return[60*((U-F)/V%6)||0,ie,G];case U:return[60*((F-M)/V+2)||0,ie,G];case F:return[60*((M-U)/V+4)||0,ie,G]}}function _(N){var M=N[0],U=N[1]/100,F=N[2]/100,G=(2-U)*F;return[M,Math.round(U*F/(G<1?G:2-G)*1e4)/100,G/2*100]}function C(N){for(var M=0,U=0;U!==N.length&&!(M>=Number.MAX_SAFE_INTEGER);U++)M+=N.charCodeAt(U);return M}function R(N){if(isNaN(N)){if(typeof N=="string"){if(r[N]){var U=r[N];if(U.hueRange)return U.hueRange}else if(N.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var F=k(N)[0];return g(F).hueRange}}}else{var M=parseInt(N);if(M<360&&M>0)return g(N).hueRange}return[0,360]}return a})})(Q$,Q$.exports);var Bvt=Q$.exports;const Uvt=ql(Bvt),zvt="https://api.yorkie.dev",Hvt="cbovg64qfu96agb5i0fg";jC.setLogLevel(4);const Cve=(e,t)=>{const[n]=fU(),r=Pr(sT),[i,a]=L.useState(null),[s,o]=L.useState(null),l=L.useCallback(()=>{const p=n.get("token");return p?`share:${p}`:`default:${r.accessToken}`},[r.accessToken,n]),u=L.useCallback(async p=>{const g=new jC.Client(zvt,{apiKey:Hvt,token:p});return await g.activate(),g},[]),d=L.useCallback((p,g,b)=>{const S=new jC.Document(g,{enableDevtools:!0});return p.attach(S,{initialPresence:{name:b,color:Fvt(Uvt()).fade(.15).toString(),selection:null,cursor:null}})},[]),f=L.useCallback(async()=>{if(!(!i||!s))try{await i.detach(s),await i.deactivate()}catch(p){console.error("Error during Yorkie cleanup:",p)}},[i,s]);return L.useEffect(()=>{let p=!0;return!e||!t||s||i?void 0:((async()=>{try{const b=l(),S=await u(b),E=await d(S,e,t);if(!p){await S.detach(E),await S.deactivate();return}a(S),o(E)}catch(b){console.error("Error initializing Yorkie: ",b)}})(),()=>{p=!1})},[t,e,s,i,l,u,d]),L.useEffect(()=>()=>{f()},[f]),{client:i,doc:s}};function jvt(){var u;const e=Gu(),t=Lm(),n=Pr(AO),{data:r,isLoading:i}=eH(t.workspaceSlug),{data:a,isLoading:s}=cQe(r==null?void 0:r.id,t.documentId),{doc:o,client:l}=Cve(a==null?void 0:a.yorkieDocumentId,(u=n.data)==null?void 0:u.nickname);return L.useEffect(()=>{if(!(!o||!l))return e(Y3(o)),e(Z3(l)),()=>{e(Y3(null)),e(Z3(null))}},[e,l,o]),s||i?D.jsx(SO,{open:!0,children:D.jsx(Md,{color:"inherit"})}):D.jsx(ia,{height:"calc(100% - 64px)",children:D.jsx(Sve,{})})}const Wvt=e=>["documents","share",e],Qvt=e=>{const t=Gu(),n=CO({queryKey:Wvt(e||""),enabled:!!e,queryFn:async()=>(await or.get("/documents/share",{params:{token:e}})).data,meta:{errorMessage:"This is a non-existent or expired document."}});return L.useEffect(()=>(n.data&&t(X3(n.data)),()=>{t(X3(null))}),[t,n.data]),n};function Gvt(){var l;const e=Gu(),t=Mm(),[n]=fU(),r=Pr(AO),i=L.useMemo(()=>n.get("token"),[n]),{data:a}=Qvt(i),{doc:s,client:o}=Cve(a==null?void 0:a.yorkieDocumentId,((l=r.data)==null?void 0:l.nickname)??"Anonymous");return L.useEffect(()=>{a!=null&&a.role&&(e(YFe(a.role)),a.role==="READ"&&e(j8("read")))},[e,a==null?void 0:a.role]),L.useEffect(()=>{if(!(!s||!o))return e(Y3(s)),e(Z3(o)),()=>{e(Y3(null)),e(Z3(null))}},[e,o,s]),i?D.jsx(ia,{height:"calc(100% - 64px)",children:D.jsx(Sve,{})}):D.jsx(dU,{to:"/",state:{from:t},replace:!0})}function Vvt(){const e=Lm(),t=Gc(),{mutateAsync:n}=UKe();return L.useEffect(()=>{e.invitationToken&&n({invitationToken:e.invitationToken}).then(r=>{t(`/${r.slug}`)})},[n,t,e.invitationToken]),D.jsx(SO,{open:!0,children:D.jsx(Md,{color:"inherit"})})}const qvt=e=>["workspaces",e,"users"],Yvt=e=>IU({queryKey:qvt(e||""),queryFn:async({pageParam:t})=>(await or.get(`/workspaces/${e}/users`,{params:{cursor:t}})).data,enabled:!!e,initialPageParam:void 0,getPreviousPageParam:t=>t.cursor??void 0,getNextPageParam:t=>t.cursor??void 0});function Zvt(e){var d;const{open:t,onClose:n}=e,r=Pr(LR),{mutateAsync:i}=BKe(((d=r.data)==null?void 0:d.id)||""),{enqueueSnackbar:a}=zx(),[s,o]=L.useState(null),l=async f=>{let p;if(f.expiredString===Xy[0])p=null;else{const[b,S]=f.expiredString.split(" ");p=an().add(Number(b),S).toDate()}const{invitationToken:g}=await i({expiredAt:p});o(`${window.location.origin}/join/${g}`)},u=async()=>{s&&(await W1.write(s),a("URL Copied!",{variant:"success"}))};return D.jsx(EO,{open:t,disableAutoFocus:!0,onClose:n,children:D.jsxs(Ks,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:538},children:[D.jsx(Ro,{sx:{position:"absolute",top:28,right:28},onClick:n,children:D.jsx(XR,{})}),D.jsxs(Wn,{gap:4,children:[D.jsxs(Wn,{children:[D.jsx(Ar,{variant:"h5",fontWeight:"bold",children:"Add Members"}),D.jsx(Ar,{children:"Generate and share the link."})]}),D.jsx(Wn,{gap:1,children:D.jsx(Qc,{children:D.jsx(RO,{defaultValues:{expiredString:Xy[0]},onSuccess:l,children:D.jsxs(Wn,{gap:2,children:[D.jsx(s9,{label:"Expired Date",name:"expiredString",options:Xy.map(f=>({id:f,label:f})),size:"small",sx:{width:1}}),D.jsx(xo,{type:"submit",variant:"contained",children:"Generate"})]})})})}),D.jsxs(Wn,{gap:1,children:[D.jsx(Ar,{variant:"h6",fontWeight:"bold",children:"Invite Link"}),D.jsx(ia,{height:40,children:s?D.jsxs(Wn,{direction:"row",alignItems:"center",gap:2,children:[D.jsx(Ar,{variant:"body1",children:s}),D.jsx(Q0,{title:"Copy URL",children:D.jsx(Ro,{onClick:u,children:D.jsx(ZR,{})})})]}):D.jsx(Ar,{mx:"auto",children:"No link has been generated."})})]})]})]})})}function Xvt(){const e=Lm(),{data:t}=eH(e.workspaceSlug),{data:n,fetchNextPage:r,hasNextPage:i}=Yvt(t==null?void 0:t.id),[a,s]=L.useState(!1),o=L.useMemo(()=>(n==null?void 0:n.pages.reduce((u,d)=>u.concat(d.workspaceUsers),[]))??[],[n==null?void 0:n.pages]),l=()=>{s(u=>!u)};return D.jsxs(YB,{maxWidth:"lg",children:[D.jsxs(Wn,{gap:4,children:[D.jsxs(Wn,{direction:"row",justifyContent:"space-between",alignItems:"center",px:2,children:[D.jsxs(Ar,{variant:"h5",fontWeight:"bold",children:[t==null?void 0:t.title," ",D.jsx(Ar,{component:"span",variant:"inherit",color:"primary",children:n==null?void 0:n.pages[0].workspaceUsers.length})]}),D.jsx(xo,{variant:"contained",startIcon:D.jsx(cI,{}),onClick:l,children:"Add Members"})]}),D.jsxs(W8e,{component:ia,children:[D.jsx(zv,{}),D.jsx(ex,{pageStart:0,loadMore:()=>r(),hasMore:i,loader:D.jsx(ia,{className:"loader",children:D.jsx(Md,{size:"sm"})},0),useWindow:!1,style:{width:"100%"},children:D.jsxs(_8e,{children:[D.jsx(Z8e,{children:D.jsxs(JX,{children:[D.jsx(Vb,{children:"Name"}),D.jsx(Vb,{children:"Role"}),D.jsx(Vb,{})]})}),D.jsx(P8e,{style:{maxHeight:"100%",overflow:"auto"},children:o.map(u=>D.jsxs(JX,{sx:{width:"100%"},children:[D.jsx(Vb,{component:"th",scope:"row",children:u.nickname}),D.jsx(Vb,{children:"-"}),D.jsx(Vb,{children:"-"})]},u.id))})]})})]})]}),D.jsx(Zvt,{open:a,onClose:l})]})}const Kvt=[{path:"",accessType:2,element:D.jsx(kKe,{}),children:[{path:"",element:D.jsx(bJe,{})}]},{path:":workspaceSlug",accessType:1,element:D.jsx(pJe,{}),children:[{path:"",element:D.jsx(TJe,{})},{path:"member",element:D.jsx(Xvt,{})}]},{path:":workspaceSlug",element:D.jsx(TKe,{}),children:[{path:":documentId",accessType:1,element:D.jsx(jvt,{})},{path:":documentId/share",accessType:0,element:D.jsx(Gvt,{})}]},{path:"auth/callback",accessType:2,element:D.jsx(yJe,{})},{path:"join/:invitationToken",accessType:1,element:D.jsx(Vvt,{})},{path:"/404",accessType:0,element:D.jsx(vJe,{})},{path:"settings/profile",accessType:1,element:D.jsx(MKe,{}),children:[{path:"",element:D.jsx(SJe,{})}]}],Jvt=e=>{const t=n=>(n.accessType===1?n.element=D.jsx(DFe,{children:n.element}):n.accessType===2&&(n.element=D.jsx(NFe,{children:n.element})),n);return e.map(n=>(n=t(n),n!=null&&n.children&&(n.children=n.children.map(r=>t(r))),n.errorElement=D.jsx(CFe,{}),n))},eOt=Jvt(Kvt);function tOt(e){const[t,n]=L.useState(""),[r,i]=L.useState(""),{data:a}=rH(r),{mutateAsync:s}=pme(),o=L.useMemo(()=>a!=null&&a.conflict?"Already Exists":null,[a==null?void 0:a.conflict]);dI(()=>{i(t)},500,[t]);const l=d=>{n(d.target.value)},u=async d=>{await s(d)};return D.jsx(EO,{disableAutoFocus:!0,...e,children:D.jsx(Ks,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:D.jsxs(Wn,{gap:4,children:[D.jsx(Ar,{variant:"h5",children:"Create Your Nickname"}),D.jsx(Qc,{children:D.jsx(RO,{defaultValues:{nickname:""},onSuccess:u,children:D.jsxs(Wn,{gap:4,alignItems:"flex-end",children:[D.jsx(Wx,{variant:"standard",name:"nickname",label:"Enter your nickname",required:!0,fullWidth:!0,inputProps:{maxLength:255},onChange:l,error:!!o,helperText:o}),D.jsx(xo,{type:"submit",variant:"contained",size:"large",disabled:!!o,children:"OK"})]})})})]})})})}function nOt(e){const{children:t}=e,{data:n,isSuccess:r,isLoading:i}=OJe(),a=L.useMemo(()=>r&&!n.nickname,[r,n==null?void 0:n.nickname]);return D.jsx(EU.Provider,{value:{isLoggedIn:r,isLoading:i},children:a?D.jsx(tOt,{open:!0}):t})}function rOt(){const{enqueueSnackbar:e}=zx();return L.useCallback(n=>{var r;e(((r=n.response)==null?void 0:r.data.message)||n.message||"Something went wrong...",{variant:"error"})},[e])}const Rve=Object.prototype.toString;function Ive(e){switch(Rve.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return _p(e,Error)}}function iS(e,t){return Rve.call(e)===`[object ${t}]`}function iq(e){return iS(e,"ErrorEvent")}function Gie(e){return iS(e,"DOMError")}function iOt(e){return iS(e,"DOMException")}function Qf(e){return iS(e,"String")}function aq(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function sq(e){return e===null||aq(e)||typeof e!="object"&&typeof e!="function"}function iO(e){return iS(e,"Object")}function KI(e){return typeof Event<"u"&&_p(e,Event)}function aOt(e){return typeof Element<"u"&&_p(e,Element)}function sOt(e){return iS(e,"RegExp")}function JI(e){return!!(e&&e.then&&typeof e.then=="function")}function oOt(e){return iO(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Nve(e){return typeof e=="number"&&e!==e}function _p(e,t){try{return e instanceof t}catch{return!1}}function Dve(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function dv(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Vie(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;rlOt(e,r,n))}function uOt(e,t,n=250,r,i,a,s){if(!a.exception||!a.exception.values||!s||!_p(s.originalException,Error))return;const o=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;o&&(a.exception.values=cOt(G$(e,t,i,s.originalException,r,a.exception.values,o,0),n))}function G$(e,t,n,r,i,a,s,o){if(a.length>=n+1)return a;let l=[...a];if(_p(r[i],Error)){qie(s,o);const u=e(t,r[i]),d=l.length;Yie(u,i,d,o),l=G$(e,t,n,r[i],i,[u,...l],u,d)}return Array.isArray(r.errors)&&r.errors.forEach((u,d)=>{if(_p(u,Error)){qie(s,o);const f=e(t,u),p=l.length;Yie(f,`errors[${d}]`,p,o),l=G$(e,t,n,u,i,[f,...l],f,p)}}),l}function qie(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function Yie(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function cOt(e,t){return e.map(n=>(n.value&&(n.value=dv(n.value,t)),n))}function H_(e){return e&&e.Math==Math?e:void 0}const Jr=typeof globalThis=="object"&&H_(globalThis)||typeof window=="object"&&H_(window)||typeof self=="object"&&H_(self)||typeof global=="object"&&H_(global)||function(){return this}()||{};function oq(){return Jr}function Pve(e,t,n){const r=n||Jr,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const fv=oq(),dOt=80;function aO(e,t={}){if(!e)return"";try{let n=e;const r=5,i=[];let a=0,s=0;const o=" > ",l=o.length;let u;const d=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||dOt;for(;n&&a++1&&s+i.length*l+u.length>=f));)i.push(u),s+=u.length,n=n.parentNode;return i.reverse().join(o)}catch{return""}}function fOt(e,t){const n=e,r=[];let i,a,s,o,l;if(!n||!n.tagName)return"";if(fv.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const u=t&&t.length?t.filter(f=>n.getAttribute(f)).map(f=>[f,n.getAttribute(f)]):null;if(u&&u.length)u.forEach(f=>{r.push(`[${f[0]}="${f[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&Qf(i))for(a=i.split(/\s+/),l=0;l"u"||__SENTRY_DEBUG__,mOt="Sentry Logger ",V$=["debug","info","warn","error","log","assert","trace"],u5={};function e6(e){if(!("console"in Jr))return e();const t=Jr.console,n={},r=Object.keys(u5);r.forEach(i=>{const a=u5[i];n[i]=t[i],t[i]=a});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function gOt(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return aS?V$.forEach(n=>{t[n]=(...r)=>{e&&e6(()=>{Jr.console[n](`${mOt}[${n}]:`,...r)})}}):V$.forEach(n=>{t[n]=()=>{}}),t}const Nt=gOt(),bOt=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function yOt(e){return e==="http"||e==="https"}function sS(e,t=!1){const{host:n,path:r,pass:i,port:a,projectId:s,protocol:o,publicKey:l}=e;return`${o}://${l}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r&&`${r}/`}${s}`}function vOt(e){const t=bOt.exec(e);if(!t){e6(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,i="",a,s="",o]=t.slice(1);let l="",u=o;const d=u.split("/");if(d.length>1&&(l=d.slice(0,-1).join("/"),u=d.pop()),u){const f=u.match(/^\d+/);f&&(u=f[0])}return Lve({host:a,pass:i,path:l,projectId:u,port:s,protocol:n,publicKey:r})}function Lve(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function OOt(e){if(!aS)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(Nt.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?yOt(r)?t&&isNaN(parseInt(t,10))?(Nt.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(Nt.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(Nt.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function SOt(e){const t=typeof e=="string"?vOt(e):Lve(e);if(!(!t||!OOt(t)))return t}class Cf extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function Ys(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);typeof i=="function"&&$ve(i,r),e[t]=i}function L1(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{aS&&Nt.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function $ve(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,L1(e,"__sentry_original__",t)}catch{}}function lq(e){return e.__sentry_original__}function EOt(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function Fve(e){if(Ive(e))return{message:e.message,name:e.name,stack:e.stack,...Xie(e)};if(KI(e)){const t={type:e.type,target:Zie(e.target),currentTarget:Zie(e.currentTarget),...Xie(e)};return typeof CustomEvent<"u"&&_p(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Zie(e){try{return aOt(e)?aO(e):Object.prototype.toString.call(e)}catch{return""}}function Xie(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function wOt(e,t=40){const n=Object.keys(Fve(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return dv(n[0],t);for(let r=n.length;r>0;r--){const i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:dv(i,t)}return""}function Mu(e){return q$(e,new Map)}function q$(e,t){if(xOt(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const i of Object.keys(e))typeof e[i]<"u"&&(r[i]=q$(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(i=>{r.push(q$(i,t))}),r}return e}function xOt(e){if(!iO(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const Bve=50,Kie=/\(error: (.*)\)/,Jie=/captureMessage|captureException/;function Uve(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const i=[],a=n.split(` +`);for(let s=r;s1024)continue;const l=Kie.test(o)?o.replace(Kie,"$1"):o;if(!l.match(/\S*Error: /)){for(const u of t){const d=u(l);if(d){i.push(d);break}}if(i.length>=Bve)break}}return kOt(i)}}function TOt(e){return Array.isArray(e)?Uve(...e):e}function kOt(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),Jie.test(t[t.length-1].function||"")&&(t.pop(),Jie.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,Bve).map(n=>({...n,filename:n.filename||t[t.length-1].filename,function:n.function||"?"}))}const dP="";function Cp(e){try{return!e||typeof e!="function"?dP:e.name||dP}catch{return dP}}const Y4={},eae={};function tb(e,t){Y4[e]=Y4[e]||[],Y4[e].push(t)}function nb(e,t){eae[e]||(t(),eae[e]=!0)}function Dd(e,t){const n=e&&Y4[e];if(n)for(const r of n)try{r(t)}catch(i){aS&&Nt.error(`Error while triggering instrumentation handler. +Type: ${e} +Name: ${Cp(r)} +Error:`,i)}}function AOt(e){const t="console";tb(t,e),nb(t,_Ot)}function _Ot(){"console"in Jr&&V$.forEach(function(e){e in Jr.console&&Ys(Jr.console,e,function(t){return u5[e]=t,function(...n){Dd("console",{args:n,level:e});const i=u5[e];i&&i.apply(Jr.console,n)}})})}function Ba(){const e=Jr,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function zve(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function D0(e){const{message:t,event_id:n}=e;if(t)return t;const r=zve(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function Y$(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type="Error")}function fx(e,t){const n=zve(e);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&"data"in t){const a={...i&&i.data,...t.data};n.mechanism.data=a}}function tae(e){if(e&&e.__sentry_captured__)return!0;try{L1(e,"__sentry_captured__",!0)}catch{}return!1}function Hve(e){return Array.isArray(e)?e:[e]}const gy=Jr,COt=1e3;let nae,Z$,X$;function ROt(e){const t="dom";tb(t,e),nb(t,IOt)}function IOt(){if(!gy.document)return;const e=Dd.bind(null,"dom"),t=rae(e,!0);gy.document.addEventListener("click",t,!1),gy.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=gy[n]&&gy[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Ys(r,"addEventListener",function(i){return function(a,s,o){if(a==="click"||a=="keypress")try{const l=this,u=l.__sentry_instrumentation_handlers__=l.__sentry_instrumentation_handlers__||{},d=u[a]=u[a]||{refCount:0};if(!d.handler){const f=rae(e);d.handler=f,i.call(this,a,f,o)}d.refCount++}catch{}return i.call(this,a,s,o)}}),Ys(r,"removeEventListener",function(i){return function(a,s,o){if(a==="click"||a=="keypress")try{const l=this,u=l.__sentry_instrumentation_handlers__||{},d=u[a];d&&(d.refCount--,d.refCount<=0&&(i.call(this,a,d.handler,o),d.handler=void 0,delete u[a]),Object.keys(u).length===0&&delete l.__sentry_instrumentation_handlers__)}catch{}return i.call(this,a,s,o)}}))})}function NOt(e){if(e.type!==Z$)return!1;try{if(!e.target||e.target._sentryId!==X$)return!1}catch{}return!0}function DOt(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function rae(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=POt(n);if(DOt(n.type,r))return;L1(n,"_sentryCaptured",!0),r&&!r._sentryId&&L1(r,"_sentryId",Ba());const i=n.type==="keypress"?"input":n.type;NOt(n)||(e({event:n,name:i,global:t}),Z$=n.type,X$=r?r._sentryId:void 0),clearTimeout(nae),nae=gy.setTimeout(()=>{X$=void 0,Z$=void 0},COt)}}function POt(e){try{return e.target}catch{return null}}const K$=oq();function jve(){if(!("fetch"in K$))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function J$(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function MOt(){if(typeof EdgeRuntime=="string")return!0;if(!jve())return!1;if(J$(K$.fetch))return!0;let e=!1;const t=K$.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=J$(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){aS&&Nt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Wve(e){const t="fetch";tb(t,e),nb(t,LOt)}function LOt(){MOt()&&Ys(Jr,"fetch",function(e){return function(...t){const{method:n,url:r}=$Ot(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return Dd("fetch",{...i}),e.apply(Jr,t).then(a=>{const s={...i,endTimestamp:Date.now(),response:a};return Dd("fetch",s),a},a=>{const s={...i,endTimestamp:Date.now(),error:a};throw Dd("fetch",s),a})}})}function eF(e,t){return!!e&&typeof e=="object"&&!!e[t]}function iae(e){return typeof e=="string"?e:e?eF(e,"url")?e.url:e.toString?e.toString():"":""}function $Ot(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:iae(n),method:eF(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:iae(t),method:eF(t,"method")?String(t.method).toUpperCase():"GET"}}let j_=null;function Qve(e){const t="error";tb(t,e),nb(t,FOt)}function FOt(){j_=Jr.onerror,Jr.onerror=function(e,t,n,r,i){return Dd("error",{column:r,error:i,line:n,msg:e,url:t}),j_&&!j_.__SENTRY_LOADER__?j_.apply(this,arguments):!1},Jr.onerror.__SENTRY_INSTRUMENTED__=!0}let W_=null;function Gve(e){const t="unhandledrejection";tb(t,e),nb(t,BOt)}function BOt(){W_=Jr.onunhandledrejection,Jr.onunhandledrejection=function(e){return Dd("unhandledrejection",e),W_&&!W_.__SENTRY_LOADER__?W_.apply(this,arguments):!0},Jr.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Q_=oq();function UOt(){const e=Q_.chrome,t=e&&e.app&&e.app.runtime,n="history"in Q_&&!!Q_.history.pushState&&!!Q_.history.replaceState;return!t&&n}const L2=Jr;let G_;function uq(e){const t="history";tb(t,e),nb(t,zOt)}function zOt(){if(!UOt())return;const e=L2.onpopstate;L2.onpopstate=function(...n){const r=L2.location.href,i=G_;if(G_=r,Dd("history",{from:i,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const i=r.length>2?r[2]:void 0;if(i){const a=G_,s=String(i);G_=s,Dd("history",{from:a,to:s})}return n.apply(this,r)}}Ys(L2.history,"pushState",t),Ys(L2.history,"replaceState",t)}const HOt=Jr,By="__sentry_xhr_v3__";function Vve(e){const t="xhr";tb(t,e),nb(t,jOt)}function jOt(){if(!HOt.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;Ys(e,"open",function(t){return function(...n){const r=Date.now(),i=Qf(n[0])?n[0].toUpperCase():void 0,a=WOt(n[1]);if(!i||!a)return t.apply(this,n);this[By]={method:i,url:a,request_headers:{}},i==="POST"&&a.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const o=this[By];if(o&&this.readyState===4){try{o.status_code=this.status}catch{}const l={args:[i,a],endTimestamp:Date.now(),startTimestamp:r,xhr:this};Dd("xhr",l)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?Ys(this,"onreadystatechange",function(o){return function(...l){return s(),o.apply(this,l)}}):this.addEventListener("readystatechange",s),Ys(this,"setRequestHeader",function(o){return function(...l){const[u,d]=l,f=this[By];return f&&Qf(u)&&Qf(d)&&(f.request_headers[u.toLowerCase()]=d),o.apply(this,l)}}),t.apply(this,n)}}),Ys(e,"send",function(t){return function(...n){const r=this[By];if(!r)return t.apply(this,n);n[0]!==void 0&&(r.body=n[0]);const i={args:[r.method,r.url],startTimestamp:Date.now(),xhr:this};return Dd("xhr",i),t.apply(this,n)}})}function WOt(e){if(Qf(e))return e;try{return e.toString()}catch{}}function QOt(){return"npm"}function GOt(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let a=0;an?qve(e,t-1,n):r}function tF(e,t,n=1/0,r=1/0,i=GOt()){const[a,s]=i;if(t==null||["number","boolean","string"].includes(typeof t)&&!Nve(t))return t;const o=VOt(e,t);if(!o.startsWith("[object "))return o;if(t.__sentry_skip_normalization__)return t;const l=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(l===0)return o.replace("object ","");if(a(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const g=u.toJSON();return tF("",g,l-1,r,i)}catch{}const d=Array.isArray(t)?[]:{};let f=0;const p=Fve(t);for(const g in p){if(!Object.prototype.hasOwnProperty.call(p,g))continue;if(f>=r){d[g]="[MaxProperties ~]";break}const b=p[g];d[g]=tF(g,b,l-1,r,i),f++}return s(t),d}function VOt(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(Dve(t))return"[VueViewModel]";if(oOt(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${Cp(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=qOt(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function qOt(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function YOt(e){return~-encodeURI(e).split(/%..|./).length}function ZOt(e){return YOt(JSON.stringify(e))}var Qh;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(Qh||(Qh={}));function sO(e){return new ku(t=>{t(e)})}function cq(e){return new ku((t,n)=>{n(e)})}class ku{constructor(t){ku.prototype.__init.call(this),ku.prototype.__init2.call(this),ku.prototype.__init3.call(this),ku.prototype.__init4.call(this),this._state=Qh.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new ku((r,i)=>{this._handlers.push([!1,a=>{if(!t)r(a);else try{r(t(a))}catch(s){i(s)}},a=>{if(!n)i(a);else try{r(n(a))}catch(s){i(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new ku((n,r)=>{let i,a;return this.then(s=>{a=!1,i=s,t&&t()},s=>{a=!0,i=s,t&&t()}).then(()=>{if(a){r(i);return}n(i)})})}__init(){this._resolve=t=>{this._setResult(Qh.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(Qh.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===Qh.PENDING){if(JI(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Qh.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Qh.RESOLVED&&n[1](this._value),this._state===Qh.REJECTED&&n[2](this._value),n[0]=!0)})}}}function XOt(e){const t=[];function n(){return e===void 0||t.lengthr(o)).then(null,()=>r(o).then(null,()=>{})),o}function a(s){return new ku((o,l)=>{let u=t.length;if(!u)return o(!0);const d=setTimeout(()=>{s&&s>0&&o(!1)},s);t.forEach(f=>{sO(f).then(()=>{--u||(clearTimeout(d),o(!0))},l)})})}return{$:t,add:i,drain:a}}function m1(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const KOt=["fatal","error","warning","log","info","debug"];function JOt(e){return e==="warn"?"warning":KOt.includes(e)?e:"log"}const Yve=1e3;function LT(){return Date.now()/Yve}function eSt(){const{performance:e}=Jr;if(!e||!e.now)return LT;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/Yve}const $T=eSt(),zc=(()=>{const{performance:e}=Jr;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=i{const a=aae(i);for(const s of Object.keys(a))r[s]=a[s];return r},{});else{if(!e)return;t=aae(e)}const n=Object.entries(t).reduce((r,[i,a])=>{if(i.match(tSt)){const s=i.slice(Zve.length);r[s]=a}return r},{});if(Object.keys(n).length>0)return n}function Xve(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,i])=>(i&&(n[`${Zve}${r}`]=i),n),{});return iSt(t)}function aae(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(t[n]=r,t),{})}function iSt(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],i)=>{const a=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,s=i===0?a:`${t},${a}`;return s.length>nSt?(aS&&Nt.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):s},"")}const aSt=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function sSt(e){if(!e)return;const t=e.match(aSt);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function oSt(e,t){const n=sSt(e),r=rSt(t),{traceId:i,parentSpanId:a,parentSampled:s}=n||{};return n?{traceId:i||Ba(),parentSpanId:a||Ba().substring(16),spanId:Ba().substring(16),sampled:s,dsc:r||{}}:{traceId:i||Ba(),spanId:Ba().substring(16)}}function dq(e=Ba(),t=Ba().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function rb(e,t=[]){return[e,t]}function lSt(e,t){const[n,r]=e;return[n,[...r,t]]}function sae(e,t){const n=e[1];for(const r of n){const i=r[0].type;if(t(r,i))return!0}return!1}function rF(e,t){return(t||new TextEncoder).encode(e)}function uSt(e,t){const[n,r]=e;let i=JSON.stringify(n);function a(s){typeof i=="string"?i=typeof s=="string"?i+s:[rF(i,t),s]:i.push(typeof s=="string"?rF(s,t):s)}for(const s of r){const[o,l]=s;if(a(` +${JSON.stringify(o)} +`),typeof l=="string"||l instanceof Uint8Array)a(l);else{let u;try{u=JSON.stringify(l)}catch{u=JSON.stringify(k0(l))}a(u)}}return typeof i=="string"?i:cSt(i)}function cSt(e){const t=e.reduce((i,a)=>i+a.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function dSt(e,t){const n=typeof e.data=="string"?rF(e.data,t):e.data;return[Mu({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const fSt={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function oae(e){return fSt[e]}function Kve(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function hSt(e,t,n,r){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:sS(r)},...i&&{trace:Mu({...i})}}}function pSt(e,t,n){const r=[{type:"client_report"},{timestamp:LT(),discarded_events:e}];return rb(t?{dsn:t}:{},[r])}const mSt=60*1e3;function gSt(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?mSt:r-t}function bSt(e,t){return e[t]||e.all||0}function ySt(e,t,n=Date.now()){return bSt(e,t)>n}function vSt(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},a=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(a)for(const o of a.trim().split(",")){const[l,u,,,d]=o.split(":",5),f=parseInt(l,10),p=(isNaN(f)?60:f)*1e3;if(!u)i.all=r+p;else for(const g of u.split(";"))g==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(i[g]=r+p):i[g]=r+p}else s?i.all=r+gSt(s,r):t===429&&(i.all=r+60*1e3);return i}const Pn=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,t6="production";function fq(){return Pve("globalEventProcessors",()=>[])}function OSt(e){fq().push(e)}function c5(e,t,n,r=0){return new ku((i,a)=>{const s=e[r];if(t===null||typeof s!="function")i(t);else{const o=s({...t},n);Pn&&s.id&&o===null&&Nt.log(`Event processor "${s.id}" dropped event`),JI(o)?o.then(l=>c5(e,l,n,r+1).then(i)).then(null,a):c5(e,o,n,r+1).then(i).then(null,a)}})}function Jve(e){const t=$T(),n={sid:Ba(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>SSt(n)};return e&&$1(n,e),n}function $1(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||$T(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Ba()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function eOe(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),$1(e,n)}function SSt(e){return Mu({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const ESt=0,tOe=1;function hq(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:s,tags:o,origin:l}=ll(e);return Mu({data:r,op:i,parent_span_id:a,span_id:t,status:s,tags:o,trace_id:n,origin:l})}function n6(e){const{traceId:t,spanId:n}=e.spanContext(),r=pq(e);return dq(t,n,r)}function r6(e){return typeof e=="number"?lae(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?lae(e.getTime()):$T()}function lae(e){return e>9999999999?e/1e3:e}function ll(e){return wSt(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function wSt(e){return typeof e.getSpanJSON=="function"}function pq(e){const{traceFlags:t}=e.spanContext();return!!(t&tOe)}function xSt(e,t,n,r,i,a){const{normalizeDepth:s=3,normalizeMaxBreadth:o=1e3}=e,l={...t,event_id:t.event_id||n.event_id||Ba(),timestamp:t.timestamp||LT()},u=n.integrations||e.integrations.map(E=>E.name);TSt(l,e),_St(l,u),t.type===void 0&&kSt(l,e.stackParser);const d=RSt(r,n.captureContext);n.mechanism&&fx(l,n.mechanism);const f=i&&i.getEventProcessors?i.getEventProcessors():[],p=BSt().getScopeData();if(a){const E=a.getScopeData();fae(p,E)}if(d){const E=d.getScopeData();fae(p,E)}const g=[...n.attachments||[],...p.attachments];g.length&&(n.attachments=g),aOe(l,p);const b=[...f,...fq(),...p.eventProcessors];return c5(b,l,n).then(E=>(E&&ASt(E),typeof s=="number"&&s>0?CSt(E,s,o):E))}function TSt(e,t){const{environment:n,release:r,dist:i,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:t6),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&(e.message=dv(e.message,a));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=dv(s.value,a));const o=e.request;o&&o.url&&(o.url=dv(o.url,a))}const uae=new WeakMap;function kSt(e,t){const n=Jr._sentryDebugIds;if(!n)return;let r;const i=uae.get(t);i?r=i:(r=new Map,uae.set(t,r));const a=Object.keys(n).reduce((s,o)=>{let l;const u=r.get(o);u?l=u:(l=t(o),r.set(o,l));for(let d=l.length-1;d>=0;d--){const f=l[d];if(f.filename){s[f.filename]=n[o];break}}return s},{});try{e.exception.values.forEach(s=>{s.stacktrace.frames.forEach(o=>{o.filename&&(o.debug_id=a[o.filename])})})}catch{}}function ASt(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:t[r]})})}function _St(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function CSt(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:k0(i.data,t,n)}}))},...e.user&&{user:k0(e.user,t,n)},...e.contexts&&{contexts:k0(e.contexts,t,n)},...e.extra&&{extra:k0(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=k0(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>{const a=ll(i).data;return a&&(i.data=k0(a,t,n)),i})),r}function RSt(e,t){if(!t)return e;const n=e?e.clone():new pm;return n.update(t),n}function ISt(e,t){return Kc().captureException(e,void 0)}function nOe(e,t){return Kc().captureEvent(e,t)}function F1(e,t){Kc().addBreadcrumb(e,t)}function NSt(...e){const t=Kc();if(e.length===2){const[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}return t.withScope(e[0])}function vs(){return Kc().getClient()}function fh(){return Kc().getScope()}function cae(e){const t=vs(),n=ib(),r=fh(),{release:i,environment:a=t6}=t&&t.getOptions()||{},{userAgent:s}=Jr.navigator||{},o=Jve({release:i,environment:a,user:r.getUser()||n.getUser(),...s&&{userAgent:s},...e}),l=n.getSession();return l&&l.status==="ok"&&$1(l,{status:"exited"}),rOe(),n.setSession(o),r.setSession(o),o}function rOe(){const e=ib(),t=fh(),n=t.getSession()||e.getSession();n&&eOe(n),iOe(),e.setSession(),t.setSession()}function iOe(){const e=ib(),t=fh(),n=vs(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function dae(e=!1){if(e){rOe();return}iOe()}function d5(e){return e.transaction}function i6(e,t,n){const r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:a}=n&&n.getUser()||{},s=Mu({environment:r.environment||t6,release:r.release,user_segment:a,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",s),s}function oO(e){const t=vs();if(!t)return{};const n=i6(ll(e).trace_id||"",t,fh()),r=d5(e);if(!r)return n;const i=r&&r._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:a,source:s}=r.metadata;a!=null&&(n.sample_rate=`${a}`);const o=ll(r);return s&&s!=="url"&&(n.transaction=o.description),n.sampled=String(pq(r)),t.emit&&t.emit("createDsc",n),n}function aOe(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;DSt(e,t),r&&LSt(e,r),$St(e,n),PSt(e,i),MSt(e,a)}function fae(e,t){const{extra:n,tags:r,user:i,contexts:a,level:s,sdkProcessingMetadata:o,breadcrumbs:l,fingerprint:u,eventProcessors:d,attachments:f,propagationContext:p,transactionName:g,span:b}=t;$2(e,"extra",n),$2(e,"tags",r),$2(e,"user",i),$2(e,"contexts",a),$2(e,"sdkProcessingMetadata",o),s&&(e.level=s),g&&(e.transactionName=g),b&&(e.span=b),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function $2(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function DSt(e,t){const{extra:n,tags:r,user:i,contexts:a,level:s,transactionName:o}=t,l=Mu(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});const u=Mu(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});const d=Mu(i);d&&Object.keys(d).length&&(e.user={...d,...e.user});const f=Mu(a);f&&Object.keys(f).length&&(e.contexts={...f,...e.contexts}),s&&(e.level=s),o&&(e.transaction=o)}function PSt(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function MSt(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function LSt(e,t){e.contexts={trace:hq(t),...e.contexts};const n=d5(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:oO(t),...e.sdkProcessingMetadata};const r=ll(n).description;r&&(e.tags={transaction:r,...e.tags})}}function $St(e,t){e.fingerprint=e.fingerprint?Hve(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const FSt=100;let fP;class pm{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=hae()}static clone(t){return t?t.clone():new pm}clone(){const t=new pm;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&$1(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t;if(n instanceof pm){const r=n.getScopeData();this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&Object.keys(r.user).length&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint.length&&(this._fingerprint=r.fingerprint),n.getRequestSession()&&(this._requestSession=n.getRequestSession()),r.propagationContext&&(this._propagationContext=r.propagationContext)}else if(iO(n)){const r=t;this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint&&(this._fingerprint=r.fingerprint),r.requestSession&&(this._requestSession=r.requestSession),r.propagationContext&&(this._propagationContext=r.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=hae(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:FSt;if(r<=0)return this;const i={timestamp:LT(),...t},a=this._breadcrumbs;return a.push(i),this._breadcrumbs=a.length>r?a.slice(-r):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:n,_contexts:r,_tags:i,_extra:a,_user:s,_level:o,_fingerprint:l,_eventProcessors:u,_propagationContext:d,_sdkProcessingMetadata:f,_transactionName:p,_span:g}=this;return{breadcrumbs:t,attachments:n,contexts:r,tags:i,extra:a,user:s,level:o,fingerprint:l||[],eventProcessors:u,propagationContext:d,sdkProcessingMetadata:f,transactionName:p,span:g}}applyToEvent(t,n={},r=[]){aOe(t,this.getScopeData());const i=[...r,...fq(),...this._eventProcessors];return c5(i,t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:Ba();if(!this._client)return Nt.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureMessage(t,n,r){const i=r&&r.event_id?r.event_id:Ba();if(!this._client)return Nt.warn("No client configured on scope - will not capture message!"),i;const a=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:a,...r,event_id:i},this),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:Ba();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(Nt.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function BSt(){return fP||(fP=new pm),fP}function hae(){return{traceId:Ba(),spanId:Ba().substring(16)}}const iF="7.119.0",sOe=parseFloat(iF),USt=100;class oOe{constructor(t,n,r,i=sOe){this._version=i;let a;n?a=n:(a=new pm,a.setClient(t));let s;r?s=r:(s=new pm,s.setClient(t)),this._stack=[{scope:a}],t&&this.bindClient(t),this._isolationScope=s}isOlderThan(t){return this._version(this.popScope(),i),i=>{throw this.popScope(),i}):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:Ba(),i=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:i,...n,event_id:r}),r}captureMessage(t,n,r){const i=this._lastEventId=r&&r.event_id?r.event_id:Ba(),a=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:a,...r,event_id:i}),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:Ba();return t.type||(this._lastEventId=r),this.getScope().captureEvent(t,{...n,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:s=USt}=i.getOptions&&i.getOptions()||{};if(s<=0)return;const l={timestamp:LT(),...t},u=a?e6(()=>a(l,n)):l;u!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",u,n),r.addBreadcrumb(u,s))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n),this.getIsolationScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n),this.getIsolationScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n),this.getIsolationScope().setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){const n=pae(this);try{t(this)}finally{pae(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return Pn&&Nt.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const r=this._callExtensionMethod("startTransaction",t,n);return Pn&&!r&&(this.getClient()?Nt.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': +Sentry.addTracingExtensions(); +Sentry.init({...}); +`):Nt.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&eOe(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:i,environment:a=t6}=r&&r.getOptions()||{},{userAgent:s}=Jr.navigator||{},o=Jve({release:i,environment:a,user:n.getUser(),...s&&{userAgent:s},...t}),l=n.getSession&&n.getSession();return l&&l.status==="ok"&&$1(l,{status:"exited"}),this.endSession(),n.setSession(o),o}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_callExtensionMethod(t,...n){const i=FT().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[t]=="function")return i.extensions[t].apply(this,n);Pn&&Nt.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function FT(){return Jr.__SENTRY__=Jr.__SENTRY__||{extensions:{},hub:void 0},Jr}function pae(e){const t=FT(),n=aF(t);return lOe(t,e),n}function Kc(){const e=FT();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return zSt(e)}function ib(){return Kc().getIsolationScope()}function zSt(e=FT()){return(!HSt(e)||aF(e).isOlderThan(sOe))&&lOe(e,new oOe),aF(e)}function HSt(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function aF(e){return Pve("hub",()=>new oOe,e)}function lOe(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function B1(e){return Kc().getScope().getTransaction()}let mae=!1;function jSt(){mae||(mae=!0,Qve(sF),Gve(sF))}function sF(){const e=B1();if(e){const t="internal_error";Pn&&Nt.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}sF.tag="sentry_tracingErrorCallback";var gae;(function(e){const t="ok";e.Ok=t;const n="deadline_exceeded";e.DeadlineExceeded=n;const r="unauthenticated";e.Unauthenticated=r;const i="permission_denied";e.PermissionDenied=i;const a="not_found";e.NotFound=a;const s="resource_exhausted";e.ResourceExhausted=s;const o="invalid_argument";e.InvalidArgument=o;const l="unimplemented";e.Unimplemented=l;const u="unavailable";e.Unavailable=u;const d="internal_error";e.InternalError=d;const f="unknown_error";e.UnknownError=f;const p="cancelled";e.Cancelled=p;const g="already_exists";e.AlreadyExists=g;const b="failed_precondition";e.FailedPrecondition=b;const S="aborted";e.Aborted=S;const E="out_of_range";e.OutOfRange=E;const w="data_loss";e.DataLoss=w})(gae||(gae={}));function WSt(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}function mq(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);const n=WSt(t);n!=="unknown_error"&&e.setStatus(n)}function oS(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=vs(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function uOe(e){if(!oS())return;const t=VSt(e),n=Kc(),r=e.scope?e.scope.getSpan():QSt();if(e.onlyIfParent&&!r)return;const s=(e.scope||fh()).clone();return GSt(n,{parentSpan:r,spanContext:t,forceTransaction:e.forceTransaction,scope:s})}function QSt(){return fh().getSpan()}function GSt(e,{parentSpan:t,spanContext:n,forceTransaction:r,scope:i}){if(!oS())return;const a=ib();let s;if(t&&!r)s=t.startChild(n);else if(t){const o=oO(t),{traceId:l,spanId:u}=t.spanContext(),d=pq(t);s=e.startTransaction({traceId:l,parentSpanId:u,parentSampled:d,...n,metadata:{dynamicSamplingContext:o,...n.metadata}})}else{const{traceId:o,dsc:l,parentSpanId:u,sampled:d}={...a.getPropagationContext(),...i.getPropagationContext()};s=e.startTransaction({traceId:o,parentSpanId:u,parentSampled:d,...n,metadata:{dynamicSamplingContext:l,...n.metadata}})}return i.setSpan(s),qSt(s,i,a),s}function VSt(e){if(e.startTime){const t={...e};return t.startTimestamp=r6(e.startTime),delete t.startTime,t}return e}const cOe="_sentryScope",dOe="_sentryIsolationScope";function qSt(e,t,n){e&&(L1(e,dOe,n),L1(e,cOe,t))}function YSt(e){return{scope:e[cOe],isolationScope:e[dOe]}}const g1="sentry.source",Uy="sentry.sample_rate",rE="sentry.op",Jg="sentry.origin",ZSt="profile_id";class fOe{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class a6{constructor(t={}){this._traceId=t.traceId||Ba(),this._spanId=t.spanId||Ba().substring(16),this._startTime=t.startTimestamp||$T(),this.tags=t.tags?{...t.tags}:{},this.data=t.data?{...t.data}:{},this.instrumenter=t.instrumenter||"sentry",this._attributes={},this.setAttributes({[Jg]:t.origin||"manual",[rE]:t.op,...t.attributes}),this._name=t.name||t.description,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.status&&(this._status=t.status),t.endTimestamp&&(this._endTime=t.endTimestamp),t.exclusiveTime!==void 0&&(this._exclusiveTime=t.exclusiveTime),this._measurements=t.measurements?{...t.measurements}:{}}get name(){return this._name||""}set name(t){this.updateName(t)}get description(){return this._name}set description(t){this._name=t}get traceId(){return this._traceId}set traceId(t){this._traceId=t}get spanId(){return this._spanId}set spanId(t){this._spanId=t}set parentSpanId(t){this._parentSpanId=t}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(t){this._sampled=t}get attributes(){return this._attributes}set attributes(t){this._attributes=t}get startTimestamp(){return this._startTime}set startTimestamp(t){this._startTime=t}get endTimestamp(){return this._endTime}set endTimestamp(t){this._endTime=t}get status(){return this._status}set status(t){this._status=t}get op(){return this._attributes[rE]}set op(t){this.setAttribute(rE,t)}get origin(){return this._attributes[Jg]}set origin(t){this.setAttribute(Jg,t)}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?tOe:ESt}}startChild(t){const n=new a6({...t,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n);const r=d5(this);if(n.transaction=r,Pn&&r){const i=t&&t.op||"< unknown op >",a=ll(n).description||"< unknown name >",s=r.spanContext().spanId,o=`[Tracing] Starting '${i}' span on transaction '${a}' (${s}).`;Nt.log(o),this._logMessage=o}return n}setTag(t,n){return this.tags={...this.tags,[t]:n},this}setData(t,n){return this.data={...this.data,[t]:n},this}setAttribute(t,n){n===void 0?delete this._attributes[t]:this._attributes[t]=n}setAttributes(t){Object.keys(t).forEach(n=>this.setAttribute(n,t[n]))}setStatus(t){return this._status=t,this}setHttpStatus(t){return mq(this,t),this}setName(t){this.updateName(t)}updateName(t){return this._name=t,this}isSuccess(){return this._status==="ok"}finish(t){return this.end(t)}end(t){if(this._endTime)return;const n=d5(this);if(Pn&&n&&n.spanContext().spanId!==this._spanId){const r=this._logMessage;r&&Nt.log(r.replace("Starting","Finishing"))}this._endTime=r6(t)}toTraceparent(){return n6(this)}toContext(){return Mu({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(t){return this.data=t.data||{},this._name=t.name||t.description,this._endTime=t.endTimestamp,this.op=t.op,this._parentSpanId=t.parentSpanId,this._sampled=t.sampled,this._spanId=t.spanId||this._spanId,this._startTime=t.startTimestamp||this._startTime,this._status=t.status,this.tags=t.tags||{},this._traceId=t.traceId||this._traceId,this}getTraceContext(){return hq(this)}getSpanJSON(){return Mu({data:this._getData(),description:this._name,op:this._attributes[rE],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Jg],_metrics_summary:void 0,profile_id:this._attributes[ZSt],exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:t,_attributes:n}=this,r=Object.keys(t).length>0,i=Object.keys(n).length>0;if(!(!r&&!i))return r&&i?{...t,...n}:r?t:n}}class hOe extends a6{constructor(t,n){super(t),this._contexts={},this._hub=n||Kc(),this._name=t.name||"",this._metadata={...t.metadata},this._trimEnd=t.trimEnd,this.transaction=this;const r=this._metadata.dynamicSamplingContext;r&&(this._frozenDynamicSamplingContext={...r})}get name(){return this._name}set name(t){this.setName(t)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[g1]&&{source:this._attributes[g1]},...this._attributes[Uy]&&{sampleRate:this._attributes[Uy]}}}set metadata(t){this._metadata=t}setName(t,n="custom"){this._name=t,this.setAttribute(g1,n)}updateName(t){return this._name=t,this}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new fOe(t)),this.spanRecorder.add(this)}setContext(t,n){n===null?delete this._contexts[t]:this._contexts[t]=n}setMeasurement(t,n,r=""){this._measurements[t]={value:n,unit:r}}setMetadata(t){this._metadata={...this._metadata,...t}}end(t){const n=r6(t),r=this._finishTransaction(n);if(r)return this._hub.captureEvent(r)}toContext(){const t=super.toContext();return Mu({...t,name:this._name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this._name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){return oO(this)}setHub(t){this._hub=t}getProfileId(){if(this._contexts!==void 0&&this._contexts.profile!==void 0)return this._contexts.profile.profile_id}_finishTransaction(t){if(this._endTime!==void 0)return;this._name||(Pn&&Nt.warn("Transaction has no name, falling back to ``."),this._name=""),super.end(t);const n=this._hub.getClient();if(n&&n.emit&&n.emit("finishTransaction",this),this._sampled!==!0){Pn&&Nt.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),n&&n.recordDroppedEvent("sample_rate","transaction");return}const r=this.spanRecorder?this.spanRecorder.spans.filter(d=>d!==this&&ll(d).timestamp):[];if(this._trimEnd&&r.length>0){const d=r.map(f=>ll(f).timestamp).filter(Boolean);this._endTime=d.reduce((f,p)=>f>p?f:p)}const{scope:i,isolationScope:a}=YSt(this),{metadata:s}=this,{source:o}=s,l={contexts:{...this._contexts,trace:hq(this)},spans:r,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...s,capturedSpanScope:i,capturedSpanIsolationScope:a,...Mu({dynamicSamplingContext:oO(this)})},_metrics_summary:void 0,...o&&{transaction_info:{source:o}}};return Object.keys(this._measurements).length>0&&(Pn&&Nt.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),l.measurements=this._measurements),Pn&&Nt.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),l}}const Z4={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},XSt="finishReason",ny=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class KSt extends fOe{constructor(t,n,r,i){super(i),this._pushActivity=t,this._popActivity=n,this.transactionSpanId=r}add(t){if(t.spanContext().spanId!==this.transactionSpanId){const n=t.end;t.end=(...r)=>(this._popActivity(t.spanContext().spanId),n.apply(t,r)),ll(t).timestamp===void 0&&this._pushActivity(t.spanContext().spanId)}super.add(t)}}class JSt extends hOe{constructor(t,n,r=Z4.idleTimeout,i=Z4.finalTimeout,a=Z4.heartbeatInterval,s=!1,o=!1){super(t,n),this._idleHub=n,this._idleTimeout=r,this._finalTimeout=i,this._heartbeatInterval=a,this._onScope=s,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=ny[4],this._autoFinishAllowed=!o,s&&(Pn&&Nt.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),n.getScope().setSpan(this)),o||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=ny[3],this.end())},this._finalTimeout)}end(t){const n=r6(t);if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setAttribute(XSt,this._finishReason),this.spanRecorder){Pn&&Nt.log("[Tracing] finishing IdleTransaction",new Date(n*1e3).toISOString(),this.op);for(const r of this._beforeFinishCallbacks)r(this,n);this.spanRecorder.spans=this.spanRecorder.spans.filter(r=>{if(r.spanContext().spanId===this.spanContext().spanId)return!0;ll(r).timestamp||(r.setStatus("cancelled"),r.end(n),Pn&&Nt.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(r,void 0,2)));const{start_timestamp:i,timestamp:a}=ll(r),s=i&&i{this._finished||this._pushActivity(i)},r=i=>{this._finished||this._popActivity(i)};this.spanRecorder=new KSt(n,r,this.spanContext().spanId,t),Pn&&Nt.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:n}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=n===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=ny[5],this.end(t)))}setFinishReason(t){this._finishReason=t}sendAutoFinishSignal(){this._autoFinishAllowed||(Pn&&Nt.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=ny[1],this.end(t))},this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),Pn&&Nt.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,Pn&&Nt.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(Pn&&Nt.log(`[Tracing] popActivity ${t}`),delete this.activities[t],Pn&&Nt.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const n=$T();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=ny[5],this.end(n)):this._restartIdleTimeout(n+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?this._autoFinishAllowed&&(Pn&&Nt.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=ny[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){Pn&&Nt.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function pOe(e,t,n){if(!oS(t))return e.sampled=!1,e;if(e.sampled!==void 0)return e.setAttribute(Uy,Number(e.sampled)),e;let r;return typeof t.tracesSampler=="function"?(r=t.tracesSampler(n),e.setAttribute(Uy,Number(r))):n.parentSampled!==void 0?r=n.parentSampled:typeof t.tracesSampleRate<"u"?(r=t.tracesSampleRate,e.setAttribute(Uy,Number(r))):(r=1,e.setAttribute(Uy,r)),mOe(r)?r?(e.sampled=Math.random()1?(Pn&&Nt.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function e2t(){const t=this.getScope().getSpan();return t?{"sentry-trace":n6(t)}:{}}function t2t(e,t){const n=this.getClient(),r=n&&n.getOptions()||{},i=r.instrumenter||"sentry",a=e.instrumenter||"sentry";i!==a&&(Pn&&Nt.error(`A transaction was started with instrumenter=\`${a}\`, but the SDK is configured with the \`${i}\` instrumenter. +The transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),e.sampled=!1);let s=new hOe(e,this);return s=pOe(s,r,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...t}),s.isRecording()&&s.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",s),s}function bae(e,t,n,r,i,a,s,o=!1){const l=e.getClient(),u=l&&l.getOptions()||{};let d=new JSt(t,e,n,r,s,i,o);return d=pOe(d,u,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...a}),d.isRecording()&&d.initSpanRecorder(u._experiments&&u._experiments.maxSpans),l&&l.emit&&l.emit("startTransaction",d),d}function n2t(){const e=FT();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=t2t),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=e2t),jSt())}function r2t(e,t,n){const r=B1();r&&r.setMeasurement(e,t,n)}function i2t(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function a2t(e,t,n,r){const i=Kve(n),a={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:sS(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return rb(a,[s])}function s2t(e,t,n,r){const i=Kve(n),a=e.type&&e.type!=="replay_event"?e.type:"event";i2t(e,n&&n.sdk);const s=hSt(e,i,r,t);return delete e.sdkProcessingMetadata,rb(s,[[{type:a},e]])}const o2t="7";function l2t(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function u2t(e){return`${l2t(e)}${e.projectId}/envelope/`}function c2t(e,t){return EOt({sentry_key:e.publicKey,sentry_version:o2t,...t&&{sentry_client:`${t.name}/${t.version}`}})}function d2t(e,t={}){const n=typeof t=="string"?t:t.tunnel,r=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return n||`${u2t(e)}?${c2t(e,r)}`}const yae=[];function f2t(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.keys(t).map(n=>t[n])}function h2t(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=Hve(n(t)):r=t;const i=f2t(r),a=m2t(i,s=>s.name==="Debug");if(a!==-1){const[s]=i.splice(a,1);i.push(s)}return i}function p2t(e,t){const n={};return t.forEach(r=>{r&&gOe(e,r,n)}),n}function vae(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function gOe(e,t,n){if(n[t.name]){Pn&&Nt.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,yae.indexOf(t.name)===-1&&(t.setupOnce(OSt,Kc),yae.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),e.on&&typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,a)=>r(i,a,e))}if(e.addEventProcessor&&typeof t.processEvent=="function"){const r=t.processEvent.bind(t),i=Object.assign((a,s)=>r(a,s,e),{id:t.name});e.addEventProcessor(i)}Pn&&Nt.log(`Integration installed: ${t.name}`)}function m2t(e,t){for(let n=0;n0?`|#${r.map(([a,s])=>`${a}:${s}`).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${i}|T${n.timestamp} +`}return t}function b2t(e,t,n,r){const i={sent_at:new Date().toISOString()};n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(i.dsn=sS(t));const a=y2t(e);return rb(i,[a])}function y2t(e){const t=g2t(e);return[{type:"statsd",length:t.length},t]}const Oae="Not capturing exception because it's already been captured.";class v2t{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=SOt(t.dsn):Pn&&Nt.warn("No DSN provided, client will not send events."),this._dsn){const n=d2t(this._dsn,t);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){if(tae(t)){Pn&&Nt.log(Oae);return}let i=n&&n.event_id;return this._process(this.eventFromException(t,n).then(a=>this._captureEvent(a,n,r)).then(a=>{i=a})),i}captureMessage(t,n,r,i){let a=r&&r.event_id;const s=aq(t)?t:String(t),o=sq(t)?this.eventFromMessage(s,n,r):this.eventFromException(t,r);return this._process(o.then(l=>this._captureEvent(l,r,i)).then(l=>{a=l})),a}captureEvent(t,n,r){if(n&&n.originalException&&tae(n.originalException)){Pn&&Nt.log(Oae);return}let i=n&&n.event_id;const s=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,n,s||r).then(o=>{i=o})),i}captureSession(t){typeof t.release!="string"?Pn&&Nt.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),$1(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(i=>r&&i))):sO(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch{return Pn&&Nt.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){const n=this._integrations[t.name];gOe(this,t,this._integrations),n||vae(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=s2t(t,this._dsn,this._options._metadata,this._options.tunnel);for(const a of n.attachments||[])r=lSt(r,dSt(a,this._options.transportOptions&&this._options.transportOptions.textEncoder));const i=this._sendEnvelope(r);i&&i.then(a=>this.emit("afterSendEvent",t,a),null)}sendSession(t){const n=a2t(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const i=typeof r=="number"?r:1,a=`${t}:${n}`;Pn&&Nt.log(`Recording outcome: "${a}"${i>1?` (${i} times)`:""}`),this._outcomes[a]=(this._outcomes[a]||0)+i}}captureAggregateMetrics(t){Pn&&Nt.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const n=b2t(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}on(t,n){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(n)}emit(t,...n){this._hooks[t]&&this._hooks[t].forEach(r=>r(...n))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=p2t(this,t),vae(this,t),this._integrationsInitialized=!0}_updateSessionFromEvent(t,n){let r=!1,i=!1;const a=n.exception&&n.exception.values;if(a){i=!0;for(const l of a){const u=l.mechanism;if(u&&u.handled===!1){r=!0;break}}}const s=t.status==="ok";(s&&t.errors===0||s&&r)&&($1(t,{...r&&{status:"crashed"},errors:t.errors||Number(i||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new ku(n=>{let r=0;const i=1,a=setInterval(()=>{this._numProcessing==0?(clearInterval(a),n(!0)):(r+=i,t&&r>=t&&(clearInterval(a),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,i=ib()){const a=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s.length>0&&(n.integrations=s),this.emit("preprocessEvent",t,n),xSt(a,t,n,r,this,i).then(o=>{if(o===null)return o;const l={...i.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(o.contexts&&o.contexts.trace)&&l){const{traceId:d,spanId:f,parentSpanId:p,dsc:g}=l;o.contexts={trace:{trace_id:d,span_id:f,parent_span_id:p},...o.contexts};const b=g||i6(d,this,r);o.sdkProcessingMetadata={dynamicSamplingContext:b,...o.sdkProcessingMetadata}}return o})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(i=>i.event_id,i=>{if(Pn){const a=i;a.logLevel==="log"?Nt.log(a.message):Nt.warn(a)}})}_processEvent(t,n,r){const i=this.getOptions(),{sampleRate:a}=i,s=yOe(t),o=bOe(t),l=t.type||"error",u=`before send for type \`${l}\``;if(o&&typeof a=="number"&&Math.random()>a)return this.recordDroppedEvent("sample_rate","error",t),cq(new Cf(`Discarding event because it's not included in the random sample (sampling rate = ${a})`,"log"));const d=l==="replay_event"?"replay":l,p=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,p).then(g=>{if(g===null)throw this.recordDroppedEvent("event_processor",d,t),new Cf("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return g;const S=S2t(i,g,n);return O2t(S,u)}).then(g=>{if(g===null){if(this.recordDroppedEvent("before_send",d,t),s){const w=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",w)}throw new Cf(`${u} returned \`null\`, will not send event.`,"log")}const b=r&&r.getSession();if(!s&&b&&this._updateSessionFromEvent(b,g),s){const E=g.sdkProcessingMetadata&&g.sdkProcessingMetadata.spanCountBeforeProcessing||0,w=g.spans?g.spans.length:0,x=E-w;x>0&&this.recordDroppedEvent("before_send","span",x)}const S=g.transaction_info;if(s&&S&&g.transaction!==t.transaction){const E="custom";g.transaction_info={...S,source:E}}return this.sendEvent(g,n),g}).then(null,g=>{throw g instanceof Cf?g:(this.captureException(g,{data:{__sentry__:!0},originalException:g}),new Cf(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. +Reason: ${g}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,n=>{Pn&&Nt.error("Error while sending event:",n)});Pn&&Nt.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map(n=>{const[r,i]=n.split(":");return{reason:r,category:i,quantity:t[n]}})}}function O2t(e,t){const n=`${t} must return \`null\` or a valid event.`;if(JI(e))return e.then(r=>{if(!iO(r)&&r!==null)throw new Cf(n);return r},r=>{throw new Cf(`${t} rejected with ${r}`)});if(!iO(e)&&e!==null)throw new Cf(n);return e}function S2t(e,t,n){const{beforeSend:r,beforeSendTransaction:i}=e;if(bOe(t)&&r)return r(t,n);if(yOe(t)&&i){if(t.spans){const a=t.spans.length;t.sdkProcessingMetadata={...t.sdkProcessingMetadata,spanCountBeforeProcessing:a}}return i(t,n)}return t}function bOe(e){return e.type===void 0}function yOe(e){return e.type==="transaction"}function E2t(e,t){t.debug===!0&&(Pn?Nt.enable():e6(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),fh().update(t.initialScope);const r=new e(t);w2t(r),x2t(r)}function w2t(e){const n=Kc().getStackTop();n.client=e,n.scope.setClient(e)}function x2t(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}const T2t=30;function vOe(e,t,n=XOt(e.bufferSize||T2t)){let r={};const i=s=>n.drain(s);function a(s){const o=[];if(sae(s,(f,p)=>{const g=oae(p);if(ySt(r,g)){const b=Sae(f,p);e.recordDroppedEvent("ratelimit_backoff",g,b)}else o.push(f)}),o.length===0)return sO();const l=rb(s[0],o),u=f=>{sae(l,(p,g)=>{const b=Sae(p,g);e.recordDroppedEvent(f,oae(g),b)})},d=()=>t({body:uSt(l,e.textEncoder)}).then(f=>(f.statusCode!==void 0&&(f.statusCode<200||f.statusCode>=300)&&Pn&&Nt.warn(`Sentry responded with status code ${f.statusCode} to sent event.`),r=vSt(r,f),f),f=>{throw u("network_error"),f});return n.add(d).then(f=>f,f=>{if(f instanceof Cf)return Pn&&Nt.error("Skipped sending event because buffer is full."),u("queue_overflow"),sO();throw f})}return a.__sentry__baseTransport__=!0,{send:a,flush:i}}function Sae(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function k2t(e,t){const n={sent_at:new Date().toISOString()};t&&(n.dsn=sS(t));const r=e.map(A2t);return rb(n,r)}function A2t(e){return[{type:"span"},e]}function OOe(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(a=>({name:`${r}:@sentry/${a}`,version:iF})),version:iF}),e._metadata=i}const _2t=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],C2t=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],SOe="InboundFilters",R2t=(e={})=>({name:SOe,setupOnce(){},processEvent(t,n,r){const i=r.getOptions(),a=I2t(e,i);return N2t(t,a)?null:t}}),EOe=R2t;zm(SOe,EOe);function I2t(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:_2t],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:C2t],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function N2t(e,t){return t.ignoreInternal&&F2t(e)?(Pn&&Nt.warn(`Event dropped due to being internal Sentry Error. +Event: ${D0(e)}`),!0):D2t(e,t.ignoreErrors)?(Pn&&Nt.warn(`Event dropped due to being matched by \`ignoreErrors\` option. +Event: ${D0(e)}`),!0):P2t(e,t.ignoreTransactions)?(Pn&&Nt.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. +Event: ${D0(e)}`),!0):M2t(e,t.denyUrls)?(Pn&&Nt.warn(`Event dropped due to being matched by \`denyUrls\` option. +Event: ${D0(e)}. +Url: ${f5(e)}`),!0):L2t(e,t.allowUrls)?!1:(Pn&&Nt.warn(`Event dropped due to not being matched by \`allowUrls\` option. +Event: ${D0(e)}. +Url: ${f5(e)}`),!0)}function D2t(e,t){return e.type||!t||!t.length?!1:$2t(e).some(n=>MT(n,t))}function P2t(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?MT(n,t):!1}function M2t(e,t){if(!t||!t.length)return!1;const n=f5(e);return n?MT(n,t):!1}function L2t(e,t){if(!t||!t.length)return!0;const n=f5(e);return n?MT(n,t):!0}function $2t(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),Pn&&t.length===0&&Nt.error(`Could not extract message for event ${D0(e)}`),t}function F2t(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function B2t(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!==""&&n.filename!=="[native code]")return n.filename||null}return null}function f5(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?B2t(t):null}catch{return Pn&&Nt.error(`Cannot extract url for event ${D0(e)}`),null}}let Eae;const wOe="FunctionToString",wae=new WeakMap,U2t=()=>({name:wOe,setupOnce(){Eae=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=lq(this),n=wae.has(vs())&&t!==void 0?t:this;return Eae.apply(n,e)}}catch{}},setup(e){wae.set(e,!0)}}),xOe=U2t;zm(wOe,xOe);const Pi=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ar=Jr;function z2t(){ar.document?ar.document.addEventListener("visibilitychange",()=>{const e=B1();if(ar.document.hidden&&e){const t="cancelled",{op:n,status:r}=ll(e);Pi&&Nt.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),r||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}}):Pi&&Nt.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const BT=(e,t,n)=>{let r,i;return a=>{t.value>=0&&(a||n)&&(i=t.value-(r||0),(i||r===void 0)&&(r=t.value,t.delta=i,e(t)))}},H2t=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,j2t=()=>{const e=ar.performance.timing,t=ar.performance.navigation.type,n={entryType:"navigation",startTime:0,type:t==2?"back_forward":t===1?"reload":"navigate"};for(const r in e)r!=="navigationStart"&&r!=="toJSON"&&(n[r]=Math.max(e[r]-e.navigationStart,0));return n},s6=()=>ar.__WEB_VITALS_POLYFILL__?ar.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||j2t()):ar.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],gq=()=>{const e=s6();return e&&e.activationStart||0},UT=(e,t)=>{const n=s6();let r="navigate";return n&&(ar.document&&ar.document.prerendering||gq()>0?r="prerender":r=n.type.replace(/_/g,"-")),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:H2t(),navigationType:r}},lS=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(i=>{t(i.getEntries())});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},zT=(e,t)=>{const n=r=>{(r.type==="pagehide"||ar.document.visibilityState==="hidden")&&(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};ar.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))},W2t=(e,t={})=>{const n=UT("CLS",0);let r,i=0,a=[];const s=l=>{l.forEach(u=>{if(!u.hadRecentInput){const d=a[0],f=a[a.length-1];i&&a.length!==0&&u.startTime-f.startTime<1e3&&u.startTime-d.startTime<5e3?(i+=u.value,a.push(u)):(i=u.value,a=[u]),i>n.value&&(n.value=i,n.entries=a,r&&r())}})},o=lS("layout-shift",s);if(o){r=BT(e,n,t.reportAllChanges);const l=()=>{s(o.takeRecords()),r(!0)};return zT(l),l}};let h5=-1;const Q2t=()=>{ar.document&&ar.document.visibilityState&&(h5=ar.document.visibilityState==="hidden"&&!ar.document.prerendering?0:1/0)},G2t=()=>{zT(({timeStamp:e})=>{h5=e},!0)},bq=()=>(h5<0&&(Q2t(),G2t()),{get firstHiddenTime(){return h5}}),V2t=e=>{const t=bq(),n=UT("FID");let r;const i=o=>{o.startTime{o.forEach(i)},s=lS("first-input",a);r=BT(e,n),s&&zT(()=>{a(s.takeRecords()),s.disconnect()},!0)};let TOe=0,hP=1/0,V_=0;const q2t=e=>{e.forEach(t=>{t.interactionId&&(hP=Math.min(hP,t.interactionId),V_=Math.max(V_,t.interactionId),TOe=V_?(V_-hP)/7+1:0)})};let oF;const Y2t=()=>oF?TOe:performance.interactionCount||0,Z2t=()=>{"interactionCount"in performance||oF||(oF=lS("event",q2t,{type:"event",buffered:!0,durationThreshold:0}))},kOe=()=>Y2t(),xae=10,Yh=[],pP={},Tae=e=>{const t=Yh[Yh.length-1],n=pP[e.interactionId];if(n||Yh.lengtht.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{const r={id:e.interactionId,latency:e.duration,entries:[e]};pP[r.id]=r,Yh.push(r)}Yh.sort((r,i)=>i.latency-r.latency),Yh.splice(xae).forEach(r=>{delete pP[r.id]})}},X2t=()=>{const e=Math.min(Yh.length-1,Math.floor(kOe()/50));return Yh[e]},K2t=(e,t)=>{t=t||{},Z2t();const n=UT("INP");let r;const i=s=>{s.forEach(l=>{l.interactionId&&Tae(l),l.entryType==="first-input"&&!Yh.some(d=>d.entries.some(f=>l.duration===f.duration&&l.startTime===f.startTime))&&Tae(l)});const o=X2t();o&&o.latency!==n.value&&(n.value=o.latency,n.entries=o.entries,r())},a=lS("event",i,{durationThreshold:t.durationThreshold||40});r=BT(e,n,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),zT(()=>{i(a.takeRecords()),n.value<0&&kOe()>0&&(n.value=0,n.entries=[]),r(!0)}))},kae={},J2t=e=>{const t=bq(),n=UT("LCP");let r;const i=s=>{const o=s[s.length-1];if(o){const l=Math.max(o.startTime-gq(),0);l{kae[n.id]||(i(a.takeRecords()),a.disconnect(),kae[n.id]=!0,r(!0))};return["keydown","click"].forEach(o=>{ar.document&&addEventListener(o,s,{once:!0,capture:!0})}),zT(s,!0),s}},lF=e=>{ar.document&&(ar.document.prerendering?addEventListener("prerenderingchange",()=>lF(e),!0):ar.document.readyState!=="complete"?addEventListener("load",()=>lF(e),!0):setTimeout(e,0))},eEt=(e,t)=>{t=t||{};const n=UT("TTFB"),r=BT(e,n,t.reportAllChanges);lF(()=>{const i=s6();if(i){if(n.value=Math.max(i.responseStart-gq(),0),n.value<0||n.value>performance.now())return;n.entries=[i],r(!0)}})},GE={},p5={};let AOe,_Oe,COe,ROe,IOe;function tEt(e,t=!1){return HT("cls",e,sEt,AOe,t)}function nEt(e,t=!1){return HT("lcp",e,lEt,COe,t)}function rEt(e){return HT("ttfb",e,uEt,ROe)}function iEt(e){return HT("fid",e,oEt,_Oe)}function aEt(e){return HT("inp",e,cEt,IOe)}function hx(e,t){return NOe(e,t),p5[e]||(dEt(e),p5[e]=!0),DOe(e,t)}function uS(e,t){const n=GE[e];if(!(!n||!n.length))for(const r of n)try{r(t)}catch(i){Pi&&Nt.error(`Error while triggering instrumentation handler. +Type: ${e} +Name: ${Cp(r)} +Error:`,i)}}function sEt(){return W2t(e=>{uS("cls",{metric:e}),AOe=e},{reportAllChanges:!0})}function oEt(){return V2t(e=>{uS("fid",{metric:e}),_Oe=e})}function lEt(){return J2t(e=>{uS("lcp",{metric:e}),COe=e})}function uEt(){return eEt(e=>{uS("ttfb",{metric:e}),ROe=e})}function cEt(){return K2t(e=>{uS("inp",{metric:e}),IOe=e})}function HT(e,t,n,r,i=!1){NOe(e,t);let a;return p5[e]||(a=n(),p5[e]=!0),r&&t({metric:r}),DOe(e,t,i?a:void 0)}function dEt(e){const t={};e==="event"&&(t.durationThreshold=0),lS(e,n=>{uS(e,{entries:n})},t)}function NOe(e,t){GE[e]=GE[e]||[],GE[e].push(t)}function DOe(e,t,n){return()=>{n&&n();const r=GE[e];if(!r)return;const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function mP(e){return typeof e=="number"&&isFinite(e)}function lO(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}const fEt=2147483647;function hs(e){return e/1e3}function yq(){return ar&&ar.addEventListener&&ar.performance}let Aae=0,_a={},bf,VE;function hEt(){const e=yq();if(e&&zc){e.mark&&ar.performance.mark("sentry-tracing-init");const t=vEt(),n=bEt(),r=yEt(),i=OEt();return()=>{t(),n(),r(),i()}}return()=>{}}function pEt(){hx("longtask",({entries:e})=>{for(const t of e){const n=B1();if(!n)return;const r=hs(zc+t.startTime),i=hs(t.duration);n.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i})}})}function mEt(){hx("event",({entries:e})=>{for(const t of e){const n=B1();if(!n)return;if(t.name==="click"){const r=hs(zc+t.startTime),i=hs(t.duration),a={description:aO(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i},s=Mve(t.target);s&&(a.attributes={"ui.component_name":s}),n.startChild(a)}}})}function gEt(e,t){if(yq()&&zc){const r=SEt(e,t);return()=>{r()}}return()=>{}}function bEt(){return tEt(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Pi&&Nt.log("[Measurements] Adding CLS"),_a.cls={value:e.value,unit:""},VE=t)},!0)}function yEt(){return nEt(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Pi&&Nt.log("[Measurements] Adding LCP"),_a.lcp={value:e.value,unit:"millisecond"},bf=t)},!0)}function vEt(){return iEt(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=hs(zc),r=hs(t.startTime);Pi&&Nt.log("[Measurements] Adding FID"),_a.fid={value:e.value,unit:"millisecond"},_a["mark.fid"]={value:n+r,unit:"second"}})}function OEt(){return rEt(({metric:e})=>{e.entries[e.entries.length-1]&&(Pi&&Nt.log("[Measurements] Adding TTFB"),_a.ttfb={value:e.value,unit:"millisecond"})})}const _ae={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function SEt(e,t){return aEt(({metric:n})=>{if(n.value===void 0)return;const r=n.entries.find(k=>k.duration===n.value&&_ae[k.name]!==void 0),i=vs();if(!r||!i)return;const a=_ae[r.name],s=i.getOptions(),o=hs(zc+r.startTime),l=hs(n.value),u=r.interactionId!==void 0?e[r.interactionId]:void 0;if(u===void 0)return;const{routeName:d,parentContext:f,activeTransaction:p,user:g,replayId:b}=u,S=g!==void 0?g.email||g.id||g.ip_address:void 0,E=p!==void 0?p.getProfileId():void 0,w=new a6({startTimestamp:o,endTimestamp:o+l,op:`ui.interaction.${a}`,name:aO(r.target),attributes:{release:s.release,environment:s.environment,transaction:d,...S!==void 0&&S!==""?{user:S}:{},...E!==void 0?{profile_id:E}:{},...b!==void 0?{replay_id:b}:{}},exclusiveTime:n.value,measurements:{inp:{value:n.value,unit:"millisecond"}}}),x=REt(f,s,t);if(x&&Math.random(){Pi&&Nt.error("Error while sending interaction:",C)});return}})}function EEt(e){const t=yq();if(!t||!ar.performance.getEntries||!zc)return;Pi&&Nt.log("[Tracing] Adding & adjusting spans using Performance API");const n=hs(zc),r=t.getEntries(),{op:i,start_timestamp:a}=ll(e);if(r.slice(Aae).forEach(s=>{const o=hs(s.startTime),l=hs(s.duration);if(!(e.op==="navigation"&&a&&n+o{if(!_a[o]||!a||n>=a)return;const l=_a[o].value,u=n+hs(l),d=Math.abs((u-a)*1e3),f=d-l;Pi&&Nt.log(`[Measurements] Normalized ${o} from ${l} to ${d} (${f})`),_a[o].value=d});const s=_a["mark.fid"];s&&_a.fid&&(lO(e,{description:"first input delay",endTimestamp:s.value+hs(_a.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:s.value}),delete _a["mark.fid"]),"fcp"in _a||delete _a.cls,Object.keys(_a).forEach(o=>{r2t(o,_a[o].value,_a[o].unit)}),_Et(e)}bf=void 0,VE=void 0,_a={}}function wEt(e,t,n,r,i){const a=i+n,s=a+r;return lO(e,{description:t.name,endTimestamp:s,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:a}),a}function xEt(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{q_(e,t,r,n)}),q_(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),q_(e,t,"fetch",n,"cache","domainLookupStart"),q_(e,t,"domainLookup",n,"DNS"),TEt(e,t,n)}function q_(e,t,n,r,i,a){const s=a?t[a]:t[`${n}End`],o=t[`${n}Start`];!o||!s||lO(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+hs(o),endTimestamp:r+hs(s)})}function TEt(e,t,n){t.responseEnd&&(lO(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+hs(t.requestStart),endTimestamp:n+hs(t.responseEnd)}),lO(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+hs(t.responseStart),endTimestamp:n+hs(t.responseEnd)}))}function kEt(e,t,n,r,i,a){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const s=m1(n),o={};gP(o,t,"transferSize","http.response_transfer_size"),gP(o,t,"encodedBodySize","http.response_content_length"),gP(o,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(o["resource.render_blocking_status"]=t.renderBlockingStatus),s.protocol&&(o["url.scheme"]=s.protocol.split(":").pop()),s.host&&(o["server.address"]=s.host),o["url.same_origin"]=n.includes(ar.location.origin);const l=a+r,u=l+i;lO(e,{description:n.replace(ar.location.origin,""),endTimestamp:u,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:l,data:o})}function AEt(e){const t=ar.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),mP(n.rtt)&&(_a["connection.rtt"]={value:n.rtt,unit:"millisecond"})),mP(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),mP(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}function _Et(e){bf&&(Pi&&Nt.log("[Measurements] Adding LCP Data"),bf.element&&e.setTag("lcp.element",aO(bf.element)),bf.id&&e.setTag("lcp.id",bf.id),bf.url&&e.setTag("lcp.url",bf.url.trim().slice(0,200)),e.setTag("lcp.size",bf.size)),VE&&VE.sources&&(Pi&&Nt.log("[Measurements] Adding CLS Data"),VE.sources.forEach((t,n)=>e.setTag(`cls.source.${n+1}`,aO(t.node))))}function gP(e,t,n,r){const i=t[n];i!=null&&i0?S.join(","):void 0}}else return{"sentry-trace":f,baggage:p}}function DEt(e){try{return new URL(e).href}catch{return}}function PEt(e,t){if(t.response){mq(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus("internal_error");e.end()}const uF=["localhost",/^\/(?!\/)/],cF={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:uF,tracePropagationTargets:uF};function MEt(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:a,enableHTTPTimings:s}={traceFetch:cF.traceFetch,traceXHR:cF.traceXHR,...e},o=typeof a=="function"?a:d=>!0,l=d=>BEt(d,r||i),u={};t&&Wve(d=>{const f=IEt(d,o,l,u);if(f){const p=POe(d.fetchData.url),g=p?m1(p).host:void 0;f.setAttributes({"http.url":p,"server.address":g})}s&&f&&Cae(f)}),n&&Vve(d=>{const f=UEt(d,o,l,u);s&&f&&Cae(f)})}function LEt(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function Cae(e){const{url:t}=ll(e).data||{};if(!t||typeof t!="string")return;const n=hx("resource",({entries:r})=>{r.forEach(i=>{LEt(i)&&i.name.endsWith(t)&&(FEt(i).forEach(s=>e.setAttribute(...s)),setTimeout(n))})})}function $Et(e){let t="unknown",n="unknown",r="";for(const i of e){if(i==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function ff(e=0){return((zc||performance.timeOrigin)+e)/1e3}function FEt(e){const{name:t,version:n}=$Et(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),zc?[...r,["http.request.redirect_start",ff(e.redirectStart)],["http.request.fetch_start",ff(e.fetchStart)],["http.request.domain_lookup_start",ff(e.domainLookupStart)],["http.request.domain_lookup_end",ff(e.domainLookupEnd)],["http.request.connect_start",ff(e.connectStart)],["http.request.secure_connection_start",ff(e.secureConnectionStart)],["http.request.connection_end",ff(e.connectEnd)],["http.request.request_start",ff(e.requestStart)],["http.request.response_start",ff(e.responseStart)],["http.request.response_end",ff(e.responseEnd)]]:r}function BEt(e,t){return MT(e,t||uF)}function UEt(e,t,n,r){const i=e.xhr,a=i&&i[By];if(!oS()||!i||i.__sentry_own_request__||!a)return;const s=t(a.url);if(e.endTimestamp&&s){const g=i.__sentry_xhr_span_id__;if(!g)return;const b=r[g];b&&a.status_code!==void 0&&(mq(b,a.status_code),b.end(),delete r[g]);return}const o=fh(),l=ib(),u=POe(a.url),d=u?m1(u).host:void 0,f=s?uOe({name:`${a.method} ${a.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":a.method,"http.url":u,url:a.url,"server.address":d,[Jg]:"auto.http.browser"},op:"http.client"}):void 0;f&&(i.__sentry_xhr_span_id__=f.spanContext().spanId,r[i.__sentry_xhr_span_id__]=f);const p=vs();if(i.setRequestHeader&&n(a.url)&&p){const{traceId:g,spanId:b,sampled:S,dsc:E}={...l.getPropagationContext(),...o.getPropagationContext()},w=f?n6(f):dq(g,b,S),x=Xve(E||(f?oO(f):i6(g,p,o)));zEt(i,w,x)}return f}function zEt(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(nF,n)}catch{}}function POe(e){try{return new URL(e,ar.location.origin).href}catch{return}}function HEt(e,t=!0,n=!0){if(!ar||!ar.location){Pi&&Nt.warn("Could not initialize routing instrumentation due to invalid location");return}let r=ar.location.href,i;t&&(i=e({name:ar.location.pathname,startTimestamp:zc?zc/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&uq(({to:a,from:s})=>{if(s===void 0&&r&&r.indexOf(a)!==-1){r=void 0;return}s!==a&&(r=void 0,i&&(Pi&&Nt.log(`[Tracing] Finishing current transaction with op: ${i.op}`),i.end()),i=e({name:ar.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})}const jEt="BrowserTracing",WEt={...Z4,markBackgroundTransactions:!0,routingInstrumentation:HEt,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...cF},Rae=10;class QEt{constructor(t){this.name=jEt,this._hasSetTracePropagationTargets=!1,n2t(),Pi&&(this._hasSetTracePropagationTargets=!!(t&&(t.tracePropagationTargets||t.tracingOrigins))),this.options={...WEt,...t},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=hEt(),this._interactionIdToRouteNameMapping={},this.options.enableInp&&gEt(this._interactionIdToRouteNameMapping,this.options.interactionsSampleRate),this.options.enableLongTask&&pEt(),this.options._experiments.enableInteractions&&mEt(),this._latestRoute={name:void 0,context:void 0}}setupOnce(t,n){this._getCurrentHub=n;const i=n().getClient(),a=i&&i.getOptions(),{routingInstrumentation:s,startTransactionOnLocationChange:o,startTransactionOnPageLoad:l,markBackgroundTransactions:u,traceFetch:d,traceXHR:f,shouldCreateSpanForRequest:p,enableHTTPTimings:g,_experiments:b}=this.options,S=a&&a.tracePropagationTargets,E=S||this.options.tracePropagationTargets;Pi&&this._hasSetTracePropagationTargets&&S&&Nt.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),s(w=>{const x=this._createRouteTransaction(w);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(x,w,n),x},l,o),u&&z2t(),b.enableInteractions&&this._registerInteractionListener(),this.options.enableInp&&this._registerInpInteractionListener(),MEt({traceFetch:d,traceXHR:f,tracePropagationTargets:E,shouldCreateSpanForRequest:p,enableHTTPTimings:g})}_createRouteTransaction(t){if(!this._getCurrentHub){Pi&&Nt.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`);return}const n=this._getCurrentHub(),{beforeNavigate:r,idleTimeout:i,finalTimeout:a,heartbeatInterval:s}=this.options,o=t.op==="pageload";let l;if(o){const g=o?Iae("sentry-trace"):"",b=o?Iae("baggage"):void 0,{traceId:S,dsc:E,parentSpanId:w,sampled:x}=oSt(g,b);l={traceId:S,parentSpanId:w,parentSampled:x,...t,metadata:{...t.metadata,dynamicSamplingContext:E},trimEnd:!0}}else l={trimEnd:!0,...t};const u=typeof r=="function"?r(l):l,d=u===void 0?{...l,sampled:!1}:u;d.metadata=d.name!==l.name?{...d.metadata,source:"custom"}:d.metadata,this._latestRoute.name=d.name,this._latestRoute.context=d,d.sampled===!1&&Pi&&Nt.log(`[Tracing] Will not send ${d.op} transaction because of beforeNavigate.`),Pi&&Nt.log(`[Tracing] Starting ${d.op} transaction on scope`);const{location:f}=ar,p=bae(n,d,i,a,!0,{location:f},s,o);return o&&ar.document&&(ar.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(ar.document.readyState)&&p.sendAutoFinishSignal()}),["interactive","complete"].includes(ar.document.readyState)&&p.sendAutoFinishSignal()),p.registerBeforeFinishCallback(g=>{this._collectWebVitals(),EEt(g)}),p}_registerInteractionListener(){let t;const n=()=>{const{idleTimeout:r,finalTimeout:i,heartbeatInterval:a}=this.options,s="ui.action.click",o=B1();if(o&&o.op&&["navigation","pageload"].includes(o.op)){Pi&&Nt.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`);return}if(t&&(t.setFinishReason("interactionInterrupted"),t.end(),t=void 0),!this._getCurrentHub){Pi&&Nt.warn(`[Tracing] Did not create ${s} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRoute.name){Pi&&Nt.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}const l=this._getCurrentHub(),{location:u}=ar,d={name:this._latestRoute.name,op:s,trimEnd:!0,data:{[g1]:this._latestRoute.context?GEt(this._latestRoute.context):"url"}};t=bae(l,d,r,i,!0,{location:u},a)};["click"].forEach(r=>{ar.document&&addEventListener(r,n,{once:!1,capture:!0})})}_registerInpInteractionListener(){const t=({entries:n})=>{const r=vs(),i=r!==void 0&&r.getIntegrationByName!==void 0?r.getIntegrationByName("Replay"):void 0,a=i!==void 0?i.getReplayId():void 0,s=B1(),o=fh(),l=o!==void 0?o.getUser():void 0;n.forEach(u=>{if(VEt(u)){const d=u.interactionId;if(d===void 0)return;const f=this._interactionIdToRouteNameMapping[d],p=u.duration,g=u.startTime,b=Object.keys(this._interactionIdToRouteNameMapping),S=b.length>0?b.reduce((E,w)=>this._interactionIdToRouteNameMapping[E].durationthis._interactionIdToRouteNameMapping[w]).some(w=>w.duration===p&&w.startTime===g)||!d)return;if(f)f.duration=Math.max(f.duration,p);else if(b.lengththis._interactionIdToRouteNameMapping[S].duration){const E=this._latestRoute.name,w=this._latestRoute.context;E&&w&&(S&&Object.keys(this._interactionIdToRouteNameMapping).length>=Rae&&delete this._interactionIdToRouteNameMapping[S],this._interactionIdToRouteNameMapping[d]={routeName:E,duration:p,parentContext:w,user:l,activeTransaction:s,replayId:a,startTime:g})}}})};hx("event",t),hx("first-input",t)}}function Iae(e){const t=pOt(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function GEt(e){const t=e.attributes&&e.attributes[g1],n=e.data&&e.data[g1],r=e.metadata&&e.metadata.source;return t||n||r}function VEt(e){return"duration"in e}const ri=Jr;let dF=0;function MOe(){return dF>0}function qEt(){dF++,setTimeout(()=>{dF--})}function uO(e,t={},n){if(typeof e!="function")return e;try{const i=e.__sentry_wrapped__;if(i)return i;if(lq(e))return e}catch{return e}const r=function(){const i=Array.prototype.slice.call(arguments);try{const a=i.map(s=>uO(s,t));return e.apply(this,a)}catch(a){throw qEt(),NSt(s=>{s.addEventProcessor(o=>(t.mechanism&&(Y$(o,void 0),fx(o,t.mechanism)),o.extra={...o.extra,arguments:i},o)),ISt(a)}),a}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}$ve(r,e),L1(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const ip=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function LOe(e,t){const n=vq(e,t),r={type:t&&t.name,value:KEt(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function YEt(e,t,n,r){const i=vs(),a=i&&i.getOptions().normalizeDepth,s={exception:{values:[{type:KI(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:twt(t,{isUnhandledRejection:r})}]},extra:{__serialized__:qve(t,a)}};if(n){const o=vq(e,n);o.length&&(s.exception.values[0].stacktrace={frames:o})}return s}function bP(e,t){return{exception:{values:[LOe(e,t)]}}}function vq(e,t){const n=t.stacktrace||t.stack||"",r=XEt(t);try{return e(n,r)}catch{}return[]}const ZEt=/Minified React error #\d+;/i;function XEt(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(ZEt.test(e.message))return 1}return 0}function KEt(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function JEt(e,t,n,r){const i=n&&n.syntheticException||void 0,a=Oq(e,t,i,r);return fx(a),a.level="error",n&&n.event_id&&(a.event_id=n.event_id),sO(a)}function ewt(e,t,n="info",r,i){const a=r&&r.syntheticException||void 0,s=fF(e,t,a,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),sO(s)}function Oq(e,t,n,r,i){let a;if(iq(t)&&t.error)return bP(e,t.error);if(Gie(t)||iOt(t)){const s=t;if("stack"in t)a=bP(e,t);else{const o=s.name||(Gie(s)?"DOMError":"DOMException"),l=s.message?`${o}: ${s.message}`:o;a=fF(e,l,n,r),Y$(a,l)}return"code"in s&&(a.tags={...a.tags,"DOMException.code":`${s.code}`}),a}return Ive(t)?bP(e,t):iO(t)||KI(t)?(a=YEt(e,t,n,i),fx(a,{synthetic:!0}),a):(a=fF(e,t,n,r),Y$(a,`${t}`),fx(a,{synthetic:!0}),a)}function fF(e,t,n,r){const i={};if(r&&n){const a=vq(e,n);a.length&&(i.exception={values:[{value:t,stacktrace:{frames:a}}]})}if(aq(t)){const{__sentry_template_string__:a,__sentry_template_values__:s}=t;return i.logentry={message:a,params:s},i}return i.message=t,i}function twt(e,{isUnhandledRejection:t}){const n=wOt(e),r=t?"promise rejection":"exception";return iq(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:KI(e)?`Event \`${nwt(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function nwt(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function rwt(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:sS(r)}},a=iwt(e);return rb(i,[a])}function iwt(e){return[{type:"user_report"},e]}class awt extends v2t{constructor(t){const n=ri.SENTRY_SDK_SOURCE||QOt();OOe(t,"browser",["browser"],n),super(t),t.sendClientReports&&ri.document&&ri.document.addEventListener("visibilitychange",()=>{ri.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return JEt(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return ewt(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){ip&&Nt.warn("SDK not enabled, will not capture user feedback.");return}const n=rwt(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){ip&&Nt.log("No outcomes to send");return}if(!this._dsn){ip&&Nt.log("No dsn provided, will not send outcomes");return}ip&&Nt.log("Sending outcomes:",t);const n=pSt(t,this._options.tunnel&&sS(this._dsn));this._sendEnvelope(n)}}let iE;function swt(){if(iE)return iE;if(J$(ri.fetch))return iE=ri.fetch.bind(ri);const e=ri.document;let t=ri.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){ip&&Nt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return iE=t.bind(ri)}function owt(){iE=void 0}function lwt(e,t=swt()){let n=0,r=0;function i(a){const s=a.body.length;n+=s,r++;const o={body:a.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,o).then(l=>(n-=s,r--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return owt(),n-=s,r--,cq(l)}}return vOe(e,i)}const uwt=4;function cwt(e){function t(n){return new ku((r,i)=>{const a=new XMLHttpRequest;a.onerror=i,a.onreadystatechange=()=>{a.readyState===uwt&&r({statusCode:a.status,headers:{"x-sentry-rate-limits":a.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":a.getResponseHeader("Retry-After")}})},a.open("POST",e.url);for(const s in e.headers)Object.prototype.hasOwnProperty.call(e.headers,s)&&a.setRequestHeader(s,e.headers[s]);a.send(n.body)})}return vOe(e,t)}const o6="?",dwt=30,fwt=40,hwt=50;function Sq(e,t,n,r){const i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const pwt=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,mwt=/\((\S*)(?::(\d+))(?::(\d+))\)/,gwt=e=>{const t=pwt.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const a=mwt.exec(t[2]);a&&(t[2]=a[1],t[3]=a[2],t[4]=a[3])}const[r,i]=$Oe(t[1]||o6,t[2]);return Sq(i,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},bwt=[dwt,gwt],ywt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,vwt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Owt=e=>{const t=ywt.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const a=vwt.exec(t[3]);a&&(t[1]=t[1]||"eval",t[3]=a[1],t[4]=a[2],t[5]="")}let r=t[3],i=t[1]||o6;return[i,r]=$Oe(i,r),Sq(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},Swt=[hwt,Owt],Ewt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,wwt=e=>{const t=Ewt.exec(e);return t?Sq(t[2],t[1]||o6,+t[3],t[4]?+t[4]:void 0):void 0},xwt=[fwt,wwt],Twt=[bwt,Swt,xwt],kwt=Uve(...Twt),$Oe=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:o6,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Y_=1024,FOe="Breadcrumbs",Awt=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:FOe,setupOnce(){},setup(n){t.console&&AOt(Rwt(n)),t.dom&&ROt(Cwt(n,t.dom)),t.xhr&&Vve(Iwt(n)),t.fetch&&Wve(Nwt(n)),t.history&&uq(Dwt(n)),t.sentry&&n.on&&n.on("beforeSendEvent",_wt(n))}}},BOe=Awt;zm(FOe,BOe);function _wt(e){return function(n){vs()===e&&F1({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:D0(n)},{event:n})}}function Cwt(e,t){return function(r){if(vs()!==e)return;let i,a,s=typeof t=="object"?t.serializeAttribute:void 0,o=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;o&&o>Y_&&(ip&&Nt.warn(`\`dom.maxStringLength\` cannot exceed ${Y_}, but a value of ${o} was configured. Sentry will use ${Y_} instead.`),o=Y_),typeof s=="string"&&(s=[s]);try{const u=r.event,d=Pwt(u)?u.target:u;i=aO(d,{keyAttrs:s,maxStringLength:o}),a=Mve(d)}catch{i=""}if(i.length===0)return;const l={category:`ui.${r.name}`,message:i};a&&(l.data={"ui.component_name":a}),F1(l,{event:r.event,name:r.name,global:r.global})}}function Rwt(e){return function(n){if(vs()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:JOt(n.level),message:Vie(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Vie(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;F1(r,{input:n.args,level:n.level})}}function Iwt(e){return function(n){if(vs()!==e)return;const{startTimestamp:r,endTimestamp:i}=n,a=n.xhr[By];if(!r||!i||!a)return;const{method:s,url:o,status_code:l,body:u}=a,d={method:s,url:o,status_code:l},f={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:i};F1({category:"xhr",data:d,type:"http"},f)}}function Nwt(e){return function(n){if(vs()!==e)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const a=n.fetchData,s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i};F1({category:"fetch",data:a,level:"error",type:"http"},s)}else{const a=n.response,s={...n.fetchData,status_code:a&&a.status},o={input:n.args,response:a,startTimestamp:r,endTimestamp:i};F1({category:"fetch",data:s,type:"http"},o)}}}function Dwt(e){return function(n){if(vs()!==e)return;let r=n.from,i=n.to;const a=m1(ri.location.href);let s=r?m1(r):void 0;const o=m1(i);(!s||!s.path)&&(s=a),a.protocol===o.protocol&&a.host===o.host&&(i=o.relative),a.protocol===s.protocol&&a.host===s.host&&(r=s.relative),F1({category:"navigation",data:{from:r,to:i}})}}function Pwt(e){return!!e&&!!e.target}const UOe="Dedupe",Mwt=()=>{let e;return{name:UOe,setupOnce(){},processEvent(t){if(t.type)return t;try{if(Lwt(t,e))return ip&&Nt.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},zOe=Mwt;zm(UOe,zOe);function Lwt(e,t){return t?!!($wt(e,t)||Fwt(e,t)):!1}function $wt(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!jOe(e,t)||!HOe(e,t))}function Fwt(e,t){const n=Nae(t),r=Nae(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!jOe(e,t)||!HOe(e,t))}function HOe(e,t){let n=Dae(e),r=Dae(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:WOe,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(Uwt(n),Pae("onerror")),t.onunhandledrejection&&(zwt(n),Pae("onunhandledrejection"))}}},QOe=Bwt;zm(WOe,QOe);function Uwt(e){Qve(t=>{const{stackParser:n,attachStacktrace:r}=VOe();if(vs()!==e||MOe())return;const{msg:i,url:a,line:s,column:o,error:l}=t,u=l===void 0&&Qf(i)?Wwt(i,a,s,o):GOe(Oq(n,l||i,void 0,r,!1),a,s,o);u.level="error",nOe(u,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}function zwt(e){Gve(t=>{const{stackParser:n,attachStacktrace:r}=VOe();if(vs()!==e||MOe())return;const i=Hwt(t),a=sq(i)?jwt(i):Oq(n,i,void 0,r,!0);a.level="error",nOe(a,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Hwt(e){if(sq(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return e}function jwt(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Wwt(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let a=iq(e)?e.message:e,s="Error";const o=a.match(i);return o&&(s=o[1],a=o[2]),GOe({exception:{values:[{type:s,value:a}]}},t,n,r)}function GOe(e,t,n,r){const i=e.exception=e.exception||{},a=i.values=i.values||[],s=a[0]=a[0]||{},o=s.stacktrace=s.stacktrace||{},l=o.frames=o.frames||[],u=isNaN(parseInt(r,10))?void 0:r,d=isNaN(parseInt(n,10))?void 0:n,f=Qf(t)&&t.length>0?t:hOt();return l.length===0&&l.push({colno:u,filename:f,function:"?",in_app:!0,lineno:d}),e}function Pae(e){ip&&Nt.log(`Global Handler attached: ${e}`)}function VOe(){const e=vs();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const qOe="HttpContext",Qwt=()=>({name:qOe,setupOnce(){},preprocessEvent(e){if(!ri.navigator&&!ri.location&&!ri.document)return;const t=e.request&&e.request.url||ri.location&&ri.location.href,{referrer:n}=ri.document||{},{userAgent:r}=ri.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},a={...e.request,...t&&{url:t},headers:i};e.request=a}}),YOe=Qwt;zm(qOe,YOe);const Gwt="cause",Vwt=5,ZOe="LinkedErrors",qwt=(e={})=>{const t=e.limit||Vwt,n=e.key||Gwt;return{name:ZOe,setupOnce(){},preprocessEvent(r,i,a){const s=a.getOptions();uOt(LOe,s.stackParser,s.maxValueLength,n,t,r,i)}}},XOe=qwt;zm(ZOe,XOe);const Ywt=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],KOe="TryCatch",Zwt=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:KOe,setupOnce(){t.setTimeout&&Ys(ri,"setTimeout",Mae),t.setInterval&&Ys(ri,"setInterval",Mae),t.requestAnimationFrame&&Ys(ri,"requestAnimationFrame",Xwt),t.XMLHttpRequest&&"XMLHttpRequest"in ri&&Ys(XMLHttpRequest.prototype,"send",Kwt);const n=t.eventTarget;n&&(Array.isArray(n)?n:Ywt).forEach(Jwt)}}},JOe=Zwt;zm(KOe,JOe);function Mae(e){return function(...t){const n=t[0];return t[0]=uO(n,{mechanism:{data:{function:Cp(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Xwt(e){return function(t){return e.apply(this,[uO(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Cp(e)},handled:!1,type:"instrument"}})])}}function Kwt(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&Ys(n,i,function(a){const s={mechanism:{data:{function:i,handler:Cp(a)},handled:!1,type:"instrument"}},o=lq(a);return o&&(s.mechanism.data.handler=Cp(o)),uO(a,s)})}),e.apply(this,t)}}function Jwt(e){const t=ri,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Ys(n,"addEventListener",function(r){return function(i,a,s){try{typeof a.handleEvent=="function"&&(a.handleEvent=uO(a.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Cp(a),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[i,uO(a,{mechanism:{data:{function:"addEventListener",handler:Cp(a),target:e},handled:!1,type:"instrument"}}),s])}}),Ys(n,"removeEventListener",function(r){return function(i,a,s){const o=a;try{const l=o&&o.__sentry_wrapped__;l&&r.call(this,i,l,s)}catch{}return r.call(this,i,o,s)}}))}const ext=[EOe(),xOe(),JOe(),BOe(),QOe(),XOe(),zOe(),YOe()];function txt(e){return[...ext]}function nxt(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=txt()),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),ri.SENTRY_RELEASE&&ri.SENTRY_RELEASE.id&&(e.release=ri.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:TOt(e.stackParser||kwt),integrations:h2t(e),transport:e.transport||(jve()?lwt:cwt)};E2t(awt,t),e.autoSessionTracking&&rxt()}function rxt(){if(typeof ri.document>"u"){ip&&Nt.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}cae({ignoreDuration:!0}),dae(),uq(({from:e,to:t})=>{e!==void 0&&e!==t&&(cae({ignoreDuration:!0}),dae())})}function ixt(e){const t={...e};OOe(t,"react"),nxt(t)}function axt(e,t,n,r,i,a){return(s,o=!0,l=!0)=>{const u=ri&&ri.location&&ri.location.pathname;o&&u&&s({name:u,attributes:{[g1]:"url",[rE]:"pageload",[Jg]:"auto.pageload.react.reactrouter_v6"}})}}const sxt=()=>["settings"],oxt=()=>{const e=Gu(),t=Pr(hI),n=CO({queryKey:sxt(),enabled:t.yorkieIntelligence===null&&t.fileUpload===null,queryFn:async()=>(await or.get("/settings")).data,staleTime:1e3*60*60*24});return L.useEffect(()=>{if(!n.isSuccess)return;const r=n.data;e(Ynt(r.yorkieIntelligence)),e(Znt(r.fileUpload))},[e,n.data,n.isSuccess]),n},lxt=e=>{var t;return e instanceof ide&&((t=e.response)==null?void 0:t.status)===404},uxt=e=>{var t;return e instanceof ide&&((t=e.response)==null?void 0:t.status)===500};ixt({dsn:"https://d287d6df8c6f423189266360055e6ca7@o553194.ingest.sentry.io/5680102",release:"codepair@0.1.10",integrations:[new QEt({routingInstrumentation:axt()})],tracesSampleRate:1});const cxt=nLe(eOt);or.defaults.baseURL="https://codepair-api.yorkie.dev";function dxt(){return oxt(),null}function fxt(){const e=Pr(bU),t=Xle("(prefers-color-scheme: dark)"),n=L.useMemo(()=>{const a=t?"dark":"light";return NB({typography:{button:{textTransform:"none"}},palette:{mode:e.theme=="default"?a:e.theme}})},[e.theme,t]),r=rOt(),i=L.useMemo(()=>new zBe({queryCache:new xde({onError:a=>{lxt(a)||uxt(a)?window.location.href="/404":r(a)}}),defaultOptions:{queries:{retry:(a,s)=>{var o;return or.isAxiosError(s)&&((o=s.response)==null?void 0:o.status)===401?!1:a<3}},mutations:{onError:r}}}),[r]);return D.jsx(GBe,{client:i,children:D.jsx(nOt,{children:D.jsxs(ICe,{theme:n,children:[D.jsx(pNe,{}),D.jsx(dxt,{}),D.jsx(ia,{minHeight:"100vh",children:D.jsx(dLe,{router:cxt})})]})})})}var Eq={},wq={};wq.__esModule=!0;wq.default=mxt;function X4(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?X4=function(n){return typeof n}:X4=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},X4(e)}function yP(){}var hxt={getItem:yP,setItem:yP,removeItem:yP};function pxt(e){if((typeof self>"u"?"undefined":X4(self))!=="object"||!(e in self))return!1;try{var t=self[e],n="redux-persist ".concat(e," test");t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch{return!1}return!0}function mxt(e){var t="".concat(e,"Storage");return pxt(t)?self[t]:hxt}Eq.__esModule=!0;Eq.default=yxt;var gxt=bxt(wq);function bxt(e){return e&&e.__esModule?e:{default:e}}function yxt(e){var t=(0,gxt.default)(e);return{getItem:function(r){return new Promise(function(i,a){i(t.getItem(r))})},setItem:function(r,i){return new Promise(function(a,s){a(t.setItem(r,i))})},removeItem:function(r){return new Promise(function(i,a){i(t.removeItem(r))})}}}var eSe=void 0,vxt=Oxt(Eq);function Oxt(e){return e&&e.__esModule?e:{default:e}}var Sxt=(0,vxt.default)("local");eSe=Sxt;var xq="persist:",tSe="persist/FLUSH",Tq="persist/REHYDRATE",nSe="persist/PAUSE",rSe="persist/PERSIST",iSe="persist/PURGE",aSe="persist/REGISTER",Ext=-1;function K4(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?K4=function(n){return typeof n}:K4=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},K4(e)}function Lae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function wxt(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Pxt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var Mxt=5e3;function Lxt(e,t){var n=e.version!==void 0?e.version:Ext;e.debug;var r=e.stateReconciler===void 0?Txt:e.stateReconciler,i=e.getStoredState||_xt,a=e.timeout!==void 0?e.timeout:Mxt,s=null,o=!1,l=!0,u=function(f){return f._persist.rehydrated&&s&&!l&&s.update(f),f};return function(d,f){var p=d||{},g=p._persist,b=Dxt(p,["_persist"]),S=b;if(f.type===rSe){var E=!1,w=function(M,U){E||(f.rehydrate(e.key,M,U),E=!0)};if(a&&setTimeout(function(){!E&&w(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},a),l=!1,s||(s=kxt(e)),g)return zh({},t(S,f),{_persist:g});if(typeof f.rehydrate!="function"||typeof f.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return f.register(e.key),i(e).then(function(N){var M=e.migrate||function(U,F){return Promise.resolve(U)};M(N,n).then(function(U){w(U)},function(U){w(void 0,U)})},function(N){w(void 0,N)}),zh({},t(S,f),{_persist:{version:n,rehydrated:!1}})}else{if(f.type===iSe)return o=!0,f.result(Rxt(e)),zh({},t(S,f),{_persist:g});if(f.type===tSe)return f.result(s&&s.flush()),zh({},t(S,f),{_persist:g});if(f.type===nSe)l=!0;else if(f.type===Tq){if(o)return zh({},S,{_persist:zh({},g,{rehydrated:!0})});if(f.key===e.key){var x=t(S,f),k=f.payload,_=r!==!1&&k!==void 0?r(k,d,x,e):x,C=zh({},_,{_persist:zh({},g,{rehydrated:!0})});return u(C)}}}if(!g)return t(d,f);var R=t(S,f);return R===S?d:u(zh({},R,{_persist:g}))}}function Fae(e){return Bxt(e)||Fxt(e)||$xt()}function $xt(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Fxt(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Bxt(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:sSe,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case aSe:return hF({},t,{registry:[].concat(Fae(t.registry),[n.key])});case Tq:var r=t.registry.indexOf(n.key),i=Fae(t.registry);return i.splice(r,1),hF({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function Hxt(e,t,n){var r=pU(zxt,sSe,void 0),i=function(l){r.dispatch({type:aSe,key:l})},a=function(l,u,d){var f={type:Tq,payload:u,err:d,key:l};e.dispatch(f),r.dispatch(f)},s=hF({},r,{purge:function(){var l=[];return e.dispatch({type:iSe,result:function(d){l.push(d)}}),Promise.all(l)},flush:function(){var l=[];return e.dispatch({type:tSe,result:function(d){l.push(d)}}),Promise.all(l)},pause:function(){e.dispatch({type:nSe})},persist:function(){e.dispatch({type:rSe,register:i,rehydrate:a})}});return s.persist(),s}const jxt=vce({auth:DKe,config:KLe,user:IFe,editor:XFe,workspace:JFe,document:kBe,setting:Xnt}),Wxt={key:"root",storage:eSe,whitelist:["auth","config"]},Qxt=Lxt(Wxt,jxt),oSe=FLe({reducer:Qxt,middleware:e=>e({serializableCheck:{ignoredActions:["persist/PERSIST","editor/setDoc","editor/setClient","editor/setCmView"],ignoredPaths:["editor.doc","editor.client","editor.cmView"]},immutableCheck:{ignoredPaths:["editor.doc","editor.client","editor.cmView"]}})});function J4(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?J4=function(n){return typeof n}:J4=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},J4(e)}function Gxt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vxt(e,t){for(var n=0;n"u"&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)}),(o=window).gtag.apply(o,a)}},n=t;e.default=n})(dSe);var fSe={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var t=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;function n(o){return o.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,function(l,u,d){return u>0&&u+l.length!==d.length&&l.search(t)>-1&&d.charAt(u-2)!==":"&&(d.charAt(u+l.length)!=="-"||d.charAt(u-1)==="-")&&d.charAt(u-1).search(/[^\s-]/)<0?l.toLowerCase():l.substr(1).search(/[A-Z]|\../)>-1?l:l.charAt(0).toUpperCase()+l.substr(1)})}function r(o){return typeof o=="string"&&o.indexOf("@")!==-1}var i="REDACTED (Potential Email Address)";function a(o){return r(o)?(console.warn("This arg looks like an email address, redacting."),i):o}function s(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,d=o||"";return l&&(d=n(o)),u&&(d=a(d)),d}})(fSe);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.GA4=void 0;var t=s(dSe),n=s(fSe),r=["eventCategory","eventAction","eventLabel","eventValue","hitType"],i=["title","location"],a=["page","hitType"];function s(ne){return ne&&ne.__esModule?ne:{default:ne}}function o(ne,q){if(ne==null)return{};var re=l(ne,q),ee,Z;if(Object.getOwnPropertySymbols){var se=Object.getOwnPropertySymbols(ne);for(Z=0;Z=0)&&Object.prototype.propertyIsEnumerable.call(ne,ee)&&(re[ee]=ne[ee])}return re}function l(ne,q){if(ne==null)return{};var re={},ee=Object.keys(ne),Z,se;for(se=0;se=0)&&(re[Z]=ne[Z]);return re}function u(ne){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},u(ne)}function d(ne){return g(ne)||p(ne)||x(ne)||f()}function f(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p(ne){if(typeof Symbol<"u"&&ne[Symbol.iterator]!=null||ne["@@iterator"]!=null)return Array.from(ne)}function g(ne){if(Array.isArray(ne))return k(ne)}function b(ne,q){var re=Object.keys(ne);if(Object.getOwnPropertySymbols){var ee=Object.getOwnPropertySymbols(ne);q&&(ee=ee.filter(function(Z){return Object.getOwnPropertyDescriptor(ne,Z).enumerable})),re.push.apply(re,ee)}return re}function S(ne){for(var q=1;qne.length)&&(q=ne.length);for(var re=0,ee=new Array(q);re2&&arguments[2]!==void 0?arguments[2]:"https://www.googletagmanager.com/gtag/js";if(!(typeof window>"u"||typeof document>"u")&&!q._hasLoadedGA){var se=document.createElement("script");se.async=!0,se.src="".concat(Z,"?id=").concat(re),ee&&se.setAttribute("nonce",ee),document.body.appendChild(se),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},q._hasLoadedGA=!0}}),U(this,"_toGtagOptions",function(re){if(re){var ee={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"},Z=Object.entries(re).reduce(function(se,W){var Pe=E(W,2),Ee=Pe[0],X=Pe[1];return ee[Ee]?se[ee[Ee]]=X:se[Ee]=X,se},{});return Z}}),U(this,"initialize",function(re){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!re)throw new Error("Require GA_MEASUREMENT_ID");var Z=typeof re=="string"?[{trackingId:re}]:re;q._currentMeasurementId=Z[0].trackingId;var se=ee.gaOptions,W=ee.gtagOptions,Pe=ee.nonce,Ee=ee.testMode,X=Ee===void 0?!1:Ee,Re=ee.gtagUrl;if(q._testMode=X,X||q._loadGA(q._currentMeasurementId,Pe,Re),q.isInitialized||(q._gtag("js",new Date),Z.forEach(function(rt){var qe=S(S(S({},q._toGtagOptions(S(S({},se),rt.gaOptions))),W),rt.gtagOptions);Object.keys(qe).length?q._gtag("config",rt.trackingId,qe):q._gtag("config",rt.trackingId)})),q.isInitialized=!0,!X){var Ue=d(q._queueGtag);for(q._queueGtag=[],q._isQueuing=!1;Ue.length;){var oe=Ue.shift();q._gtag.apply(q,d(oe)),oe[0]==="get"&&(q._isQueuing=!0)}}}),U(this,"set",function(re){if(!re){console.warn("`fieldsObject` is required in .set()");return}if(u(re)!=="object"){console.warn("Expected `fieldsObject` arg to be an Object");return}Object.keys(re).length===0&&console.warn("empty `fieldsObject` given to .set()"),q._gaCommand("set",re)}),U(this,"_gaCommandSendEvent",function(re,ee,Z,se,W){q._gtag("event",ee,S(S({event_category:re,event_label:Z,value:se},W&&{non_interaction:W.nonInteraction}),q._toGtagOptions(W)))}),U(this,"_gaCommandSendEventParameters",function(){for(var re=arguments.length,ee=new Array(re),Z=0;Z1?ee-1:0),se=1;se - +