From 7cca78ddf69d61a1dcc526a7c53a7f089ec768fd Mon Sep 17 00:00:00 2001 From: devleejb <52884648+devleejb@users.noreply.github.com> Date: Tue, 23 Jan 2024 07:35:46 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20yorkie-t?= =?UTF-8?q?eam/codepair-poc@7b8a387d70926a85a406b1b38cffe19efee55e30=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{index-SFfgCzWt.js => index-EhbxjNGv.js} | 186 +++++++++--------- index.html | 2 +- 2 files changed, 94 insertions(+), 94 deletions(-) rename assets/{index-SFfgCzWt.js => index-EhbxjNGv.js} (56%) diff --git a/assets/index-SFfgCzWt.js b/assets/index-EhbxjNGv.js similarity index 56% rename from assets/index-SFfgCzWt.js rename to assets/index-EhbxjNGv.js index 328304bb..e8c840a4 100644 --- a/assets/index-SFfgCzWt.js +++ b/assets/index-EhbxjNGv.js @@ -1,4 +1,4 @@ -var Noe=Object.defineProperty;var Poe=(e,t,n)=>t in e?Noe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Loe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var qo=(e,t,n)=>(Poe(e,typeof t!="symbol"?t+"":t,n),n),sC=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var ke=(e,t,n)=>(sC(e,t,"read from private field"),n?n.call(e):t.get(e)),Xt=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Bt=(e,t,n,r)=>(sC(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var JO=(e,t,n,r)=>({set _(i){Bt(e,t,i,n)},get _(){return ke(e,t,r)}}),Tn=(e,t,n)=>(sC(e,t,"access private method"),n);var mtt=Loe((Att,TS)=>{function XV(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(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 o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var wS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Moe(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 KV={exports:{}},bw={},JV={exports:{}},Hn={};/** +var zoe=Object.defineProperty;var Voe=(e,t,n)=>t in e?zoe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Hoe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Zo=(e,t,n)=>(Voe(e,typeof t!="symbol"?t+"":t,n),n),cC=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var ke=(e,t,n)=>(cC(e,t,"read from private field"),n?n.call(e):t.get(e)),Xt=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Bt=(e,t,n,r)=>(cC(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var tv=(e,t,n,r)=>({set _(i){Bt(e,t,i,n)},get _(){return ke(e,t,r)}}),Tn=(e,t,n)=>(cC(e,t,"access private method"),n);var ktt=Hoe((Ftt,kS)=>{function sH(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(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 o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var xS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ef(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Woe(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 lH={exports:{}},Ow={},uH={exports:{}},Hn={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var Noe=Object.defineProperty;var Poe=(e,t,n)=>t in e?Noe(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var N1=Symbol.for("react.element"),$oe=Symbol.for("react.portal"),Foe=Symbol.for("react.fragment"),Boe=Symbol.for("react.strict_mode"),Uoe=Symbol.for("react.profiler"),joe=Symbol.for("react.provider"),zoe=Symbol.for("react.context"),Voe=Symbol.for("react.forward_ref"),Hoe=Symbol.for("react.suspense"),Woe=Symbol.for("react.memo"),Qoe=Symbol.for("react.lazy"),a6=Symbol.iterator;function Yoe(e){return e===null||typeof e!="object"?null:(e=a6&&e[a6]||e["@@iterator"],typeof e=="function"?e:null)}var eH={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},tH=Object.assign,nH={};function mg(e,t,n){this.props=e,this.context=t,this.refs=nH,this.updater=n||eH}mg.prototype.isReactComponent={};mg.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")};mg.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function rH(){}rH.prototype=mg.prototype;function fD(e,t,n){this.props=e,this.context=t,this.refs=nH,this.updater=n||eH}var pD=fD.prototype=new rH;pD.constructor=fD;tH(pD,mg.prototype);pD.isPureReactComponent=!0;var s6=Array.isArray,iH=Object.prototype.hasOwnProperty,hD={current:null},oH={key:!0,ref:!0,__self:!0,__source:!0};function aH(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)iH.call(t,r)&&!oH.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1t in e?Noe(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Koe=I,Joe=Symbol.for("react.element"),eae=Symbol.for("react.fragment"),tae=Object.prototype.hasOwnProperty,nae=Koe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,rae={key:!0,ref:!0,__self:!0,__source:!0};function sH(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)tae.call(t,r)&&!rae.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Joe,type:e,key:o,ref:a,props:i,_owner:nae.current}}bw.Fragment=eae;bw.jsx=sH;bw.jsxs=sH;KV.exports=bw;var P=KV.exports,L2={},lH={exports:{}},ys={},uH={exports:{}},cH={};/** + */var sae=I,lae=Symbol.for("react.element"),uae=Symbol.for("react.fragment"),cae=Object.prototype.hasOwnProperty,dae=sae.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,fae={key:!0,ref:!0,__self:!0,__source:!0};function bH(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)cae.call(t,r)&&!fae.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:lae,type:e,key:o,ref:a,props:i,_owner:dae.current}}Ow.Fragment=uae;Ow.jsx=bH;Ow.jsxs=bH;lH.exports=Ow;var N=lH.exports,$2={},yH={exports:{}},ys={},OH={exports:{}},vH={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var Noe=Object.defineProperty;var Poe=(e,t,n)=>t in e?Noe(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(Y,Z){var j=Y.length;Y.push(Z);e:for(;0>>1,ve=Y[se];if(0>>1;sei(ge,j))uei(xe,ge)?(Y[se]=xe,Y[ue]=j,se=ue):(Y[se]=ge,Y[ce]=j,se=ce);else if(uei(xe,j))Y[se]=xe,Y[ue]=j,se=ue;else break e}}return Z}function i(Y,Z){var j=Y.sortIndex-Z.sortIndex;return j!==0?j:Y.id-Z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,p=3,h=!1,m=!1,b=!1,O=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(Y){for(var Z=n(u);Z!==null;){if(Z.callback===null)r(u);else if(Z.startTime<=Y)r(u),Z.sortIndex=Z.expirationTime,t(l,Z);else break;Z=n(u)}}function k(Y){if(b=!1,S(Y),!m)if(n(l)!==null)m=!0,X(C);else{var Z=n(u);Z!==null&&q(k,Z.startTime-Y)}}function C(Y,Z){m=!1,b&&(b=!1,y($),$=-1),h=!0;var j=p;try{for(S(Z),d=n(l);d!==null&&(!(d.expirationTime>Z)||Y&&!B());){var se=d.callback;if(typeof se=="function"){d.callback=null,p=d.priorityLevel;var ve=se(d.expirationTime<=Z);Z=e.unstable_now(),typeof ve=="function"?d.callback=ve:d===n(l)&&r(l),S(Z)}else r(l);d=n(l)}if(d!==null)var G=!0;else{var ce=n(u);ce!==null&&q(k,ce.startTime-Z),G=!1}return G}finally{d=null,p=j,h=!1}}var w=!1,E=null,$=-1,N=5,R=-1;function B(){return!(e.unstable_now()-RY||125se?(Y.sortIndex=j,t(u,Y),n(l)===null&&Y===n(u)&&(b?(y($),$=-1):b=!0,q(k,j-se))):(Y.sortIndex=ve,t(l,Y),m||h||(m=!0,X(C))),Y},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(Y){var Z=p;return function(){var j=p;p=Z;try{return Y.apply(this,arguments)}finally{p=j}}}})(cH);uH.exports=cH;var iae=uH.exports;/** + */(function(e){function t(Y,Z){var j=Y.length;Y.push(Z);e:for(;0>>1,ve=Y[se];if(0>>1;sei(ge,j))uei(xe,ge)?(Y[se]=xe,Y[ue]=j,se=ue):(Y[se]=ge,Y[ce]=j,se=ce);else if(uei(xe,j))Y[se]=xe,Y[ue]=j,se=ue;else break e}}return Z}function i(Y,Z){var j=Y.sortIndex-Z.sortIndex;return j!==0?j:Y.id-Z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,p=3,h=!1,m=!1,b=!1,O=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(Y){for(var Z=n(u);Z!==null;){if(Z.callback===null)r(u);else if(Z.startTime<=Y)r(u),Z.sortIndex=Z.expirationTime,t(l,Z);else break;Z=n(u)}}function k(Y){if(b=!1,S(Y),!m)if(n(l)!==null)m=!0,X(C);else{var Z=n(u);Z!==null&&q(k,Z.startTime-Y)}}function C(Y,Z){m=!1,b&&(b=!1,y($),$=-1),h=!0;var j=p;try{for(S(Z),d=n(l);d!==null&&(!(d.expirationTime>Z)||Y&&!B());){var se=d.callback;if(typeof se=="function"){d.callback=null,p=d.priorityLevel;var ve=se(d.expirationTime<=Z);Z=e.unstable_now(),typeof ve=="function"?d.callback=ve:d===n(l)&&r(l),S(Z)}else r(l);d=n(l)}if(d!==null)var G=!0;else{var ce=n(u);ce!==null&&q(k,ce.startTime-Z),G=!1}return G}finally{d=null,p=j,h=!1}}var w=!1,E=null,$=-1,P=5,R=-1;function B(){return!(e.unstable_now()-RY||125se?(Y.sortIndex=j,t(u,Y),n(l)===null&&Y===n(u)&&(b?(y($),$=-1):b=!0,q(k,j-se))):(Y.sortIndex=ve,t(l,Y),m||h||(m=!0,X(C))),Y},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(Y){var Z=p;return function(){var j=p;p=Z;try{return Y.apply(this,arguments)}finally{p=j}}}})(vH);OH.exports=vH;var pae=OH.exports;/** * @license React * react-dom.production.min.js * @@ -30,21 +30,21 @@ var Noe=Object.defineProperty;var Poe=(e,t,n)=>t in e?Noe(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var dH=I,ps=iae;function St(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"),M2=Object.prototype.hasOwnProperty,oae=/^[: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]*$/,u6={},c6={};function aae(e){return M2.call(c6,e)?!0:M2.call(u6,e)?!1:oae.test(e)?c6[e]=!0:(u6[e]=!0,!1)}function sae(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 lae(e,t,n,r){if(t===null||typeof t>"u"||sae(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 sa(e,t,n,r,i,o,a){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=o,this.removeEmptyString=a}var yo={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){yo[e]=new sa(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];yo[t]=new sa(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){yo[e]=new sa(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){yo[e]=new sa(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){yo[e]=new sa(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){yo[e]=new sa(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){yo[e]=new sa(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){yo[e]=new sa(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){yo[e]=new sa(e,5,!1,e.toLowerCase(),null,!1,!1)});var gD=/[\-:]([a-z])/g;function bD(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(gD,bD);yo[t]=new sa(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(gD,bD);yo[t]=new sa(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(gD,bD);yo[t]=new sa(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){yo[e]=new sa(e,1,!1,e.toLowerCase(),null,!1,!1)});yo.xlinkHref=new sa("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){yo[e]=new sa(e,1,!1,e.toLowerCase(),null,!0,!0)});function yD(e,t,n,r){var i=yo.hasOwnProperty(t)?yo[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),F2=Object.prototype.hasOwnProperty,hae=/^[: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]*$/,b6={},y6={};function mae(e){return F2.call(y6,e)?!0:F2.call(b6,e)?!1:hae.test(e)?y6[e]=!0:(b6[e]=!0,!1)}function gae(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 bae(e,t,n,r){if(t===null||typeof t>"u"||gae(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 sa(e,t,n,r,i,o,a){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=o,this.removeEmptyString=a}var vo={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){vo[e]=new sa(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];vo[t]=new sa(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){vo[e]=new sa(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){vo[e]=new sa(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){vo[e]=new sa(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){vo[e]=new sa(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){vo[e]=new sa(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){vo[e]=new sa(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){vo[e]=new sa(e,5,!1,e.toLowerCase(),null,!1,!1)});var vD=/[\-:]([a-z])/g;function ED(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(vD,ED);vo[t]=new sa(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(vD,ED);vo[t]=new sa(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(vD,ED);vo[t]=new sa(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){vo[e]=new sa(e,1,!1,e.toLowerCase(),null,!1,!1)});vo.xlinkHref=new sa("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){vo[e]=new sa(e,1,!1,e.toLowerCase(),null,!0,!0)});function SD(e,t,n,r){var i=vo.hasOwnProperty(t)?vo[t]:null;(i!==null?i.type!==0:r||!(2s||i[a]!==o[s]){var l=` -`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{cC=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Y0(e):""}function uae(e){switch(e.tag){case 5:return Y0(e.type);case 16:return Y0("Lazy");case 13:return Y0("Suspense");case 19:return Y0("SuspenseList");case 0:case 2:case 15:return e=dC(e.type,!1),e;case 11:return e=dC(e.type.render,!1),e;case 1:return e=dC(e.type,!0),e;default:return""}}function U2(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 Nh:return"Fragment";case Dh:return"Portal";case $2:return"Profiler";case OD:return"StrictMode";case F2:return"Suspense";case B2:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case hH:return(e.displayName||"Context")+".Consumer";case pH:return(e._context.displayName||"Context")+".Provider";case vD:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ED:return t=e.displayName||null,t!==null?t:U2(e.type)||"Memo";case Zc:t=e._payload,e=e._init;try{return U2(e(t))}catch{}}return null}function cae(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 U2(t);case 8:return t===OD?"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 Bd(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function gH(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dae(e){var t=gH(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,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function nv(e){e._valueTracker||(e._valueTracker=dae(e))}function bH(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=gH(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function kS(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 j2(e,t){var n=t.checked;return Xr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function f6(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Bd(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 yH(e,t){t=t.checked,t!=null&&yD(e,"checked",t,!1)}function z2(e,t){yH(e,t);var n=Bd(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")?V2(e,t.type,n):t.hasOwnProperty("defaultValue")&&V2(e,t.type,Bd(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function p6(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 V2(e,t,n){(t!=="number"||kS(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var G0=Array.isArray;function tm(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=rv.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ry(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var fb={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},fae=["Webkit","ms","Moz","O"];Object.keys(fb).forEach(function(e){fae.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fb[t]=fb[e]})});function SH(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||fb.hasOwnProperty(e)&&fb[e]?(""+t).trim():t+"px"}function TH(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=SH(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var pae=Xr({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 Q2(e,t){if(t){if(pae[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(St(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(St(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(St(61))}if(t.style!=null&&typeof t.style!="object")throw Error(St(62))}}function Y2(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 G2=null;function SD(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var q2=null,nm=null,rm=null;function g6(e){if(e=M1(e)){if(typeof q2!="function")throw Error(St(280));var t=e.stateNode;t&&(t=Sw(t),q2(e.stateNode,e.type,t))}}function wH(e){nm?rm?rm.push(e):rm=[e]:nm=e}function kH(){if(nm){var e=nm,t=rm;if(rm=nm=null,g6(e),t)for(e=0;e>>=0,e===0?32:31-(wae(e)/kae|0)|0}var iv=64,ov=4194304;function q0(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 _S(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=q0(s):(o&=a,o!==0&&(r=q0(o)))}else a=n&~i,a!==0?r=q0(a):o!==0&&(r=q0(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&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 P1(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Cl(t),e[t]=n}function _ae(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=hb),k6=" ",x6=!1;function WH(e,t){switch(e){case"keyup":return rse.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function QH(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ph=!1;function ose(e,t){switch(e){case"compositionend":return QH(t);case"keypress":return t.which!==32?null:(x6=!0,k6);case"textInput":return e=t.data,e===k6&&x6?null:e;default:return null}}function ase(e,t){if(Ph)return e==="compositionend"||!RD&&WH(e,t)?(e=VH(),xE=CD=pd=null,Ph=!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=R6(n)}}function ZH(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ZH(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function XH(){for(var e=window,t=kS();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=kS(e.document)}return t}function ID(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 mse(e){var t=XH(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ZH(n.ownerDocument.documentElement,n)){if(r!==null&&ID(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,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=I6(n,o);var a=I6(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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,Lh=null,t_=null,gb=null,n_=!1;function D6(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;n_||Lh==null||Lh!==kS(r)||(r=Lh,"selectionStart"in r&&ID(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}),gb&&uy(gb,r)||(gb=r,r=DS(t_,"onSelect"),0Fh||(e.current=l_[Fh],l_[Fh]=null,Fh--)}function xr(e,t){Fh++,l_[Fh]=e.current,e.current=t}var Ud={},Fo=tf(Ud),wa=tf(!1),up=Ud;function zm(e,t){var n=e.type.contextTypes;if(!n)return Ud;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ka(e){return e=e.childContextTypes,e!=null}function PS(){Lr(wa),Lr(Fo)}function B6(e,t,n){if(Fo.current!==Ud)throw Error(St(168));xr(Fo,t),xr(wa,n)}function aW(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(St(108,cae(e)||"Unknown",i));return Xr({},n,r)}function LS(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ud,up=Fo.current,xr(Fo,e),xr(wa,wa.current),!0}function U6(e,t,n){var r=e.stateNode;if(!r)throw Error(St(169));n?(e=aW(e,t,up),r.__reactInternalMemoizedMergedChildContext=e,Lr(wa),Lr(Fo),xr(Fo,e)):Lr(wa),xr(wa,n)}var tc=null,Tw=!1,kC=!1;function sW(e){tc===null?tc=[e]:tc.push(e)}function Cse(e){Tw=!0,sW(e)}function nf(){if(!kC&&tc!==null){kC=!0;var e=0,t=dr;try{var n=tc;for(dr=1;e>=a,i-=a,ac=1<<32-Cl(t)+i|n<$?(N=E,E=null):N=E.sibling;var R=p(y,E,S[$],k);if(R===null){E===null&&(E=N);break}e&&E&&R.alternate===null&&t(y,E),v=o(R,v,$),w===null?C=R:w.sibling=R,w=R,E=N}if($===S.length)return n(y,E),Wr&&Cf(y,$),C;if(E===null){for(;$$?(N=E,E=null):N=E.sibling;var B=p(y,E,R.value,k);if(B===null){E===null&&(E=N);break}e&&E&&B.alternate===null&&t(y,E),v=o(B,v,$),w===null?C=B:w.sibling=B,w=B,E=N}if(R.done)return n(y,E),Wr&&Cf(y,$),C;if(E===null){for(;!R.done;$++,R=S.next())R=d(y,R.value,k),R!==null&&(v=o(R,v,$),w===null?C=R:w.sibling=R,w=R);return Wr&&Cf(y,$),C}for(E=r(y,E);!R.done;$++,R=S.next())R=h(E,y,$,R.value,k),R!==null&&(e&&R.alternate!==null&&E.delete(R.key===null?$:R.key),v=o(R,v,$),w===null?C=R:w.sibling=R,w=R);return e&&E.forEach(function(U){return t(y,U)}),Wr&&Cf(y,$),C}function O(y,v,S,k){if(typeof S=="object"&&S!==null&&S.type===Nh&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case tv:e:{for(var C=S.key,w=v;w!==null;){if(w.key===C){if(C=S.type,C===Nh){if(w.tag===7){n(y,w.sibling),v=i(w,S.props.children),v.return=y,y=v;break e}}else if(w.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Zc&&Y6(C)===w.type){n(y,w.sibling),v=i(w,S.props),v.ref=c0(y,w,S),v.return=y,y=v;break e}n(y,w);break}else t(y,w);w=w.sibling}S.type===Nh?(v=ip(S.props.children,y.mode,k,S.key),v.return=y,y=v):(k=PE(S.type,S.key,S.props,null,y.mode,k),k.ref=c0(y,v,S),k.return=y,y=k)}return a(y);case Dh:e:{for(w=S.key;v!==null;){if(v.key===w)if(v.tag===4&&v.stateNode.containerInfo===S.containerInfo&&v.stateNode.implementation===S.implementation){n(y,v.sibling),v=i(v,S.children||[]),v.return=y,y=v;break e}else{n(y,v);break}else t(y,v);v=v.sibling}v=NC(S,y.mode,k),v.return=y,y=v}return a(y);case Zc:return w=S._init,O(y,v,w(S._payload),k)}if(G0(S))return m(y,v,S,k);if(o0(S))return b(y,v,S,k);fv(y,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,v!==null&&v.tag===6?(n(y,v.sibling),v=i(v,S),v.return=y,y=v):(n(y,v),v=DC(S,y.mode,k),v.return=y,y=v),a(y)):n(y,v)}return O}var Hm=mW(!0),gW=mW(!1),$1={},Tu=tf($1),py=tf($1),hy=tf($1);function Ff(e){if(e===$1)throw Error(St(174));return e}function UD(e,t){switch(xr(hy,t),xr(py,e),xr(Tu,$1),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:W2(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=W2(t,e)}Lr(Tu),xr(Tu,t)}function Wm(){Lr(Tu),Lr(py),Lr(hy)}function bW(e){Ff(hy.current);var t=Ff(Tu.current),n=W2(t,e.type);t!==n&&(xr(py,e),xr(Tu,n))}function jD(e){py.current===e&&(Lr(Tu),Lr(py))}var qr=tf(0);function jS(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var xC=[];function zD(){for(var e=0;en?n:4,e(!0);var r=CC.transition;CC.transition={};try{e(!1),t()}finally{dr=n,CC.transition=r}}function NW(){return Ks().memoizedState}function Ise(e,t,n){var r=_d(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},PW(e))LW(t,n);else if(n=dW(e,t,n,r),n!==null){var i=na();Al(n,e,r,i),MW(n,t,r)}}function Dse(e,t,n){var r=_d(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(PW(e))LW(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Il(s,a)){var l=t.interleaved;l===null?(i.next=i,FD(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=dW(e,t,i,r),n!==null&&(i=na(),Al(n,e,r,i),MW(n,t,r))}}function PW(e){var t=e.alternate;return e===Zr||t!==null&&t===Zr}function LW(e,t){bb=zS=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function MW(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,wD(e,n)}}var VS={readContext:Xs,useCallback:Co,useContext:Co,useEffect:Co,useImperativeHandle:Co,useInsertionEffect:Co,useLayoutEffect:Co,useMemo:Co,useReducer:Co,useRef:Co,useState:Co,useDebugValue:Co,useDeferredValue:Co,useTransition:Co,useMutableSource:Co,useSyncExternalStore:Co,useId:Co,unstable_isNewReconciler:!1},Nse={readContext:Xs,useCallback:function(e,t){return nu().memoizedState=[e,t===void 0?null:t],e},useContext:Xs,useEffect:q6,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,RE(4194308,4,AW.bind(null,t,e),n)},useLayoutEffect:function(e,t){return RE(4194308,4,e,t)},useInsertionEffect:function(e,t){return RE(4,2,e,t)},useMemo:function(e,t){var n=nu();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=nu();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=Ise.bind(null,Zr,e),[r.memoizedState,e]},useRef:function(e){var t=nu();return e={current:e},t.memoizedState=e},useState:G6,useDebugValue:YD,useDeferredValue:function(e){return nu().memoizedState=e},useTransition:function(){var e=G6(!1),t=e[0];return e=Rse.bind(null,e[1]),nu().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Zr,i=nu();if(Wr){if(n===void 0)throw Error(St(407));n=n()}else{if(n=t(),Zi===null)throw Error(St(349));dp&30||vW(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,q6(SW.bind(null,r,o,e),[e]),r.flags|=2048,by(9,EW.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=nu(),t=Zi.identifierPrefix;if(Wr){var n=sc,r=ac;n=(r&~(1<<32-Cl(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=my++,0")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{pC=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Z0(e):""}function yae(e){switch(e.tag){case 5:return Z0(e.type);case 16:return Z0("Lazy");case 13:return Z0("Suspense");case 19:return Z0("SuspenseList");case 0:case 2:case 15:return e=hC(e.type,!1),e;case 11:return e=hC(e.type.render,!1),e;case 1:return e=hC(e.type,!0),e;default:return""}}function z2(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 Nh:return"Fragment";case Dh:return"Portal";case B2:return"Profiler";case TD:return"StrictMode";case U2:return"Suspense";case j2:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case wH:return(e.displayName||"Context")+".Consumer";case TH:return(e._context.displayName||"Context")+".Provider";case wD:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case kD:return t=e.displayName||null,t!==null?t:z2(e.type)||"Memo";case Kc:t=e._payload,e=e._init;try{return z2(e(t))}catch{}}return null}function Oae(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 z2(t);case 8:return t===TD?"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 Ud(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function xH(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vae(e){var t=xH(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,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function iv(e){e._valueTracker||(e._valueTracker=vae(e))}function CH(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=xH(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function CS(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 V2(e,t){var n=t.checked;return Kr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function v6(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ud(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 AH(e,t){t=t.checked,t!=null&&SD(e,"checked",t,!1)}function H2(e,t){AH(e,t);var n=Ud(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")?W2(e,t.type,n):t.hasOwnProperty("defaultValue")&&W2(e,t.type,Ud(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function E6(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 W2(e,t,n){(t!=="number"||CS(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var X0=Array.isArray;function tm(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=ov.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ay(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var hb={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},Eae=["Webkit","ms","Moz","O"];Object.keys(hb).forEach(function(e){Eae.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hb[t]=hb[e]})});function DH(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||hb.hasOwnProperty(e)&&hb[e]?(""+t).trim():t+"px"}function NH(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=DH(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Sae=Kr({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 G2(e,t){if(t){if(Sae[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(St(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(St(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(St(61))}if(t.style!=null&&typeof t.style!="object")throw Error(St(62))}}function q2(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 Z2=null;function xD(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var X2=null,nm=null,rm=null;function w6(e){if(e=B1(e)){if(typeof X2!="function")throw Error(St(280));var t=e.stateNode;t&&(t=ww(t),X2(e.stateNode,e.type,t))}}function PH(e){nm?rm?rm.push(e):rm=[e]:nm=e}function LH(){if(nm){var e=nm,t=rm;if(rm=nm=null,w6(e),t)for(e=0;e>>=0,e===0?32:31-(Nae(e)/Pae|0)|0}var av=64,sv=4194304;function K0(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 IS(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=K0(s):(o&=a,o!==0&&(r=K0(o)))}else a=n&~i,a!==0?r=K0(a):o!==0&&(r=K0(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&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 $1(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Cl(t),e[t]=n}function Fae(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=gb),N6=" ",P6=!1;function tW(e,t){switch(e){case"keyup":return fse.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nW(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ph=!1;function hse(e,t){switch(e){case"compositionend":return nW(t);case"keypress":return t.which!==32?null:(P6=!0,N6);case"textInput":return e=t.data,e===N6&&P6?null:e;default:return null}}function mse(e,t){if(Ph)return e==="compositionend"||!PD&&tW(e,t)?(e=JH(),AE=ID=md=null,Ph=!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=F6(n)}}function aW(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?aW(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function sW(){for(var e=window,t=CS();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=CS(e.document)}return t}function LD(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 wse(e){var t=sW(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&aW(n.ownerDocument.documentElement,n)){if(r!==null&&LD(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,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=B6(n,o);var a=B6(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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,Lh=null,r_=null,yb=null,i_=!1;function U6(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;i_||Lh==null||Lh!==CS(r)||(r=Lh,"selectionStart"in r&&LD(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}),yb&&fy(yb,r)||(yb=r,r=PS(r_,"onSelect"),0Fh||(e.current=c_[Fh],c_[Fh]=null,Fh--)}function Cr(e,t){Fh++,c_[Fh]=e.current,e.current=t}var jd={},Bo=nf(jd),ka=nf(!1),up=jd;function Vm(e,t){var n=e.type.contextTypes;if(!n)return jd;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function xa(e){return e=e.childContextTypes,e!=null}function MS(){Mr(ka),Mr(Bo)}function Y6(e,t,n){if(Bo.current!==jd)throw Error(St(168));Cr(Bo,t),Cr(ka,n)}function gW(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(St(108,Oae(e)||"Unknown",i));return Kr({},n,r)}function $S(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||jd,up=Bo.current,Cr(Bo,e),Cr(ka,ka.current),!0}function G6(e,t,n){var r=e.stateNode;if(!r)throw Error(St(169));n?(e=gW(e,t,up),r.__reactInternalMemoizedMergedChildContext=e,Mr(ka),Mr(Bo),Cr(Bo,e)):Mr(ka),Cr(ka,n)}var tc=null,kw=!1,AC=!1;function bW(e){tc===null?tc=[e]:tc.push(e)}function Mse(e){kw=!0,bW(e)}function rf(){if(!AC&&tc!==null){AC=!0;var e=0,t=fr;try{var n=tc;for(fr=1;e>=a,i-=a,ac=1<<32-Cl(t)+i|n<$?(P=E,E=null):P=E.sibling;var R=p(y,E,S[$],k);if(R===null){E===null&&(E=P);break}e&&E&&R.alternate===null&&t(y,E),v=o(R,v,$),w===null?C=R:w.sibling=R,w=R,E=P}if($===S.length)return n(y,E),Qr&&Cf(y,$),C;if(E===null){for(;$$?(P=E,E=null):P=E.sibling;var B=p(y,E,R.value,k);if(B===null){E===null&&(E=P);break}e&&E&&B.alternate===null&&t(y,E),v=o(B,v,$),w===null?C=B:w.sibling=B,w=B,E=P}if(R.done)return n(y,E),Qr&&Cf(y,$),C;if(E===null){for(;!R.done;$++,R=S.next())R=d(y,R.value,k),R!==null&&(v=o(R,v,$),w===null?C=R:w.sibling=R,w=R);return Qr&&Cf(y,$),C}for(E=r(y,E);!R.done;$++,R=S.next())R=h(E,y,$,R.value,k),R!==null&&(e&&R.alternate!==null&&E.delete(R.key===null?$:R.key),v=o(R,v,$),w===null?C=R:w.sibling=R,w=R);return e&&E.forEach(function(U){return t(y,U)}),Qr&&Cf(y,$),C}function O(y,v,S,k){if(typeof S=="object"&&S!==null&&S.type===Nh&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case rv:e:{for(var C=S.key,w=v;w!==null;){if(w.key===C){if(C=S.type,C===Nh){if(w.tag===7){n(y,w.sibling),v=i(w,S.props.children),v.return=y,y=v;break e}}else if(w.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Kc&&tB(C)===w.type){n(y,w.sibling),v=i(w,S.props),v.ref=p0(y,w,S),v.return=y,y=v;break e}n(y,w);break}else t(y,w);w=w.sibling}S.type===Nh?(v=ip(S.props.children,y.mode,k,S.key),v.return=y,y=v):(k=ME(S.type,S.key,S.props,null,y.mode,k),k.ref=p0(y,v,S),k.return=y,y=k)}return a(y);case Dh:e:{for(w=S.key;v!==null;){if(v.key===w)if(v.tag===4&&v.stateNode.containerInfo===S.containerInfo&&v.stateNode.implementation===S.implementation){n(y,v.sibling),v=i(v,S.children||[]),v.return=y,y=v;break e}else{n(y,v);break}else t(y,v);v=v.sibling}v=MC(S,y.mode,k),v.return=y,y=v}return a(y);case Kc:return w=S._init,O(y,v,w(S._payload),k)}if(X0(S))return m(y,v,S,k);if(l0(S))return b(y,v,S,k);hv(y,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,v!==null&&v.tag===6?(n(y,v.sibling),v=i(v,S),v.return=y,y=v):(n(y,v),v=LC(S,y.mode,k),v.return=y,y=v),a(y)):n(y,v)}return O}var Wm=kW(!0),xW=kW(!1),U1={},Tu=nf(U1),gy=nf(U1),by=nf(U1);function Ff(e){if(e===U1)throw Error(St(174));return e}function HD(e,t){switch(Cr(by,t),Cr(gy,e),Cr(Tu,U1),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Y2(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Y2(t,e)}Mr(Tu),Cr(Tu,t)}function Qm(){Mr(Tu),Mr(gy),Mr(by)}function CW(e){Ff(by.current);var t=Ff(Tu.current),n=Y2(t,e.type);t!==n&&(Cr(gy,e),Cr(Tu,n))}function WD(e){gy.current===e&&(Mr(Tu),Mr(gy))}var Zr=nf(0);function VS(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var _C=[];function QD(){for(var e=0;e<_C.length;e++)_C[e]._workInProgressVersionPrimary=null;_C.length=0}var IE=Ac.ReactCurrentDispatcher,RC=Ac.ReactCurrentBatchConfig,dp=0,Xr=null,Di=null,Yi=null,HS=!1,Ob=!1,yy=0,Fse=0;function Ao(){throw Error(St(321))}function YD(e,t){if(t===null)return!1;for(var n=0;nn?n:4,e(!0);var r=RC.transition;RC.transition={};try{e(!1),t()}finally{fr=n,RC.transition=r}}function VW(){return Ks().memoizedState}function Use(e,t,n){var r=Rd(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},HW(e))WW(t,n);else if(n=EW(e,t,n,r),n!==null){var i=ra();Al(n,e,r,i),QW(n,t,r)}}function jse(e,t,n){var r=Rd(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(HW(e))WW(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Il(s,a)){var l=t.interleaved;l===null?(i.next=i,zD(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=EW(e,t,i,r),n!==null&&(i=ra(),Al(n,e,r,i),QW(n,t,r))}}function HW(e){var t=e.alternate;return e===Xr||t!==null&&t===Xr}function WW(e,t){Ob=HS=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function QW(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,AD(e,n)}}var WS={readContext:Xs,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},zse={readContext:Xs,useCallback:function(e,t){return nu().memoizedState=[e,t===void 0?null:t],e},useContext:Xs,useEffect:rB,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,DE(4194308,4,FW.bind(null,t,e),n)},useLayoutEffect:function(e,t){return DE(4194308,4,e,t)},useInsertionEffect:function(e,t){return DE(4,2,e,t)},useMemo:function(e,t){var n=nu();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=nu();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=Use.bind(null,Xr,e),[r.memoizedState,e]},useRef:function(e){var t=nu();return e={current:e},t.memoizedState=e},useState:nB,useDebugValue:XD,useDeferredValue:function(e){return nu().memoizedState=e},useTransition:function(){var e=nB(!1),t=e[0];return e=Bse.bind(null,e[1]),nu().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Xr,i=nu();if(Qr){if(n===void 0)throw Error(St(407));n=n()}else{if(n=t(),Zi===null)throw Error(St(349));dp&30||RW(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,rB(DW.bind(null,r,o,e),[e]),r.flags|=2048,vy(9,IW.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=nu(),t=Zi.identifierPrefix;if(Qr){var n=sc,r=ac;n=(r&~(1<<32-Cl(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=yy++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[du]=t,e[fy]=r,WW(e,t,!1,!1),t.stateNode=e;e:{switch(a=Y2(n,r),n){case"dialog":Rr("cancel",e),Rr("close",e),i=r;break;case"iframe":case"object":case"embed":Rr("load",e),i=r;break;case"video":case"audio":for(i=0;iYm&&(t.flags|=128,r=!0,d0(o,!1),t.lanes=4194304)}else{if(!r)if(e=jS(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),d0(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Wr)return Ao(t),null}else 2*bi()-o.renderingStartTime>Ym&&n!==1073741824&&(t.flags|=128,r=!0,d0(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=bi(),t.sibling=null,n=qr.current,xr(qr,r?n&1|2:n&1),t):(Ao(t),null);case 22:case 23:return JD(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Za&1073741824&&(Ao(t),t.subtreeFlags&6&&(t.flags|=8192)):Ao(t),null;case 24:return null;case 25:return null}throw Error(St(156,t.tag))}function jse(e,t){switch(ND(t),t.tag){case 1:return ka(t.type)&&PS(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wm(),Lr(wa),Lr(Fo),zD(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return jD(t),null;case 13:if(Lr(qr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(St(340));Vm()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Lr(qr),null;case 4:return Wm(),null;case 10:return $D(t.type._context),null;case 22:case 23:return JD(),null;case 24:return null;default:return null}}var hv=!1,Do=!1,zse=typeof WeakSet=="function"?WeakSet:Set,Gt=null;function zh(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ai(e,t,r)}else n.current=null}function v_(e,t,n){try{n()}catch(r){ai(e,t,r)}}var iB=!1;function Vse(e,t){if(r_=RS,e=XH(),ID(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,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,c=0,d=e,p=null;t:for(;;){for(var h;d!==n||i!==0&&d.nodeType!==3||(s=a+i),d!==o||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(h=d.firstChild)!==null;)p=d,d=h;for(;;){if(d===e)break t;if(p===n&&++u===i&&(s=a),p===o&&++c===r&&(l=a),(h=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=h}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(i_={focusedElem:e,selectionRange:n},RS=!1,Gt=t;Gt!==null;)if(t=Gt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Gt=e;else for(;Gt!==null;){t=Gt;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var b=m.memoizedProps,O=m.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?b:dl(t.type,b),O);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(St(163))}}catch(k){ai(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,Gt=e;break}Gt=t.return}return m=iB,iB=!1,m}function yb(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 o=i.destroy;i.destroy=void 0,o!==void 0&&v_(t,n,o)}i=i.next}while(i!==r)}}function xw(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 E_(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 GW(e){var t=e.alternate;t!==null&&(e.alternate=null,GW(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[du],delete t[fy],delete t[s_],delete t[kse],delete t[xse])),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 qW(e){return e.tag===5||e.tag===3||e.tag===4}function oB(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||qW(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 S_(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=NS));else if(r!==4&&(e=e.child,e!==null))for(S_(e,t,n),e=e.sibling;e!==null;)S_(e,t,n),e=e.sibling}function T_(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(T_(e,t,n),e=e.sibling;e!==null;)T_(e,t,n),e=e.sibling}var lo=null,pl=!1;function Uc(e,t,n){for(n=n.child;n!==null;)ZW(e,t,n),n=n.sibling}function ZW(e,t,n){if(Su&&typeof Su.onCommitFiberUnmount=="function")try{Su.onCommitFiberUnmount(yw,n)}catch{}switch(n.tag){case 5:Do||zh(n,t);case 6:var r=lo,i=pl;lo=null,Uc(e,t,n),lo=r,pl=i,lo!==null&&(pl?(e=lo,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):lo.removeChild(n.stateNode));break;case 18:lo!==null&&(pl?(e=lo,n=n.stateNode,e.nodeType===8?wC(e.parentNode,n):e.nodeType===1&&wC(e,n),sy(e)):wC(lo,n.stateNode));break;case 4:r=lo,i=pl,lo=n.stateNode.containerInfo,pl=!0,Uc(e,t,n),lo=r,pl=i;break;case 0:case 11:case 14:case 15:if(!Do&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&v_(n,t,a),i=i.next}while(i!==r)}Uc(e,t,n);break;case 1:if(!Do&&(zh(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ai(n,t,s)}Uc(e,t,n);break;case 21:Uc(e,t,n);break;case 22:n.mode&1?(Do=(r=Do)||n.memoizedState!==null,Uc(e,t,n),Do=r):Uc(e,t,n);break;default:Uc(e,t,n)}}function aB(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new zse),t.forEach(function(r){var i=Kse.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function cl(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=bi()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Wse(r/1960))-r,10e?16:e,hd===null)var r=!1;else{if(e=hd,hd=null,QS=0,er&6)throw Error(St(331));var i=er;for(er|=4,Gt=e.current;Gt!==null;){var o=Gt,a=o.child;if(Gt.flags&16){var s=o.deletions;if(s!==null){for(var l=0;lbi()-XD?rp(e,0):ZD|=n),xa(e,t)}function iQ(e,t){t===0&&(e.mode&1?(t=ov,ov<<=1,!(ov&130023424)&&(ov=4194304)):t=1);var n=na();e=yc(e,t),e!==null&&(P1(e,t,n),xa(e,n))}function Xse(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),iQ(e,n)}function Kse(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(St(314))}r!==null&&r.delete(t),iQ(e,n)}var oQ;oQ=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||wa.current)Sa=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Sa=!1,Bse(e,t,n);Sa=!!(e.flags&131072)}else Sa=!1,Wr&&t.flags&1048576&&lW(t,$S,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;IE(e,t),e=t.pendingProps;var i=zm(t,Fo.current);om(t,n),i=HD(null,t,r,e,i,n);var o=WD();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,ka(r)?(o=!0,LS(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,BD(t),i.updater=ww,t.stateNode=i,i._reactInternals=t,p_(t,r,e,n),t=g_(null,t,r,!0,o,n)):(t.tag=0,Wr&&o&&DD(t),Ko(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(IE(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=ele(r),e=dl(r,e),i){case 0:t=m_(null,t,r,e,n);break e;case 1:t=tB(null,t,r,e,n);break e;case 11:t=J6(null,t,r,e,n);break e;case 14:t=eB(null,t,r,dl(r.type,e),n);break e}throw Error(St(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dl(r,i),m_(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dl(r,i),tB(e,t,r,i,n);case 3:e:{if(zW(t),e===null)throw Error(St(387));r=t.pendingProps,o=t.memoizedState,i=o.element,fW(e,t),US(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Qm(Error(St(423)),t),t=nB(e,t,r,n,i);break e}else if(r!==i){i=Qm(Error(St(424)),t),t=nB(e,t,r,n,i);break e}else for(as=xd(t.stateNode.containerInfo.firstChild),cs=t,Wr=!0,gl=null,n=gW(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vm(),r===i){t=Oc(e,t,n);break e}Ko(e,t,r,n)}t=t.child}return t;case 5:return bW(t),e===null&&c_(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,o_(r,i)?a=null:o!==null&&o_(r,o)&&(t.flags|=32),jW(e,t),Ko(e,t,a,n),t.child;case 6:return e===null&&c_(t),null;case 13:return VW(e,t,n);case 4:return UD(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Hm(t,null,r,n):Ko(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dl(r,i),J6(e,t,r,i,n);case 7:return Ko(e,t,t.pendingProps,n),t.child;case 8:return Ko(e,t,t.pendingProps.children,n),t.child;case 12:return Ko(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,xr(FS,r._currentValue),r._currentValue=a,o!==null)if(Il(o.value,a)){if(o.children===i.children&&!wa.current){t=Oc(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=dc(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),d_(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(St(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),d_(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}Ko(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,om(t,n),i=Xs(i),r=r(i),t.flags|=1,Ko(e,t,r,n),t.child;case 14:return r=t.type,i=dl(r,t.pendingProps),i=dl(r.type,i),eB(e,t,r,i,n);case 15:return BW(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dl(r,i),IE(e,t),t.tag=1,ka(r)?(e=!0,LS(t)):e=!1,om(t,n),hW(t,r,i),p_(t,r,i,n),g_(null,t,r,!0,e,n);case 19:return HW(e,t,n);case 22:return UW(e,t,n)}throw Error(St(156,t.tag))};function aQ(e,t){return DH(e,t)}function Jse(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 Us(e,t,n,r){return new Jse(e,t,n,r)}function tN(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ele(e){if(typeof e=="function")return tN(e)?1:0;if(e!=null){if(e=e.$$typeof,e===vD)return 11;if(e===ED)return 14}return 2}function Rd(e,t){var n=e.alternate;return n===null?(n=Us(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 PE(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")tN(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Nh:return ip(n.children,i,o,t);case OD:a=8,i|=8;break;case $2:return e=Us(12,n,t,i|2),e.elementType=$2,e.lanes=o,e;case F2:return e=Us(13,n,t,i),e.elementType=F2,e.lanes=o,e;case B2:return e=Us(19,n,t,i),e.elementType=B2,e.lanes=o,e;case mH:return Aw(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case pH:a=10;break e;case hH:a=9;break e;case vD:a=11;break e;case ED:a=14;break e;case Zc:a=16,r=null;break e}throw Error(St(130,e==null?e:typeof e,""))}return t=Us(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function ip(e,t,n,r){return e=Us(7,e,r,t),e.lanes=n,e}function Aw(e,t,n,r){return e=Us(22,e,r,t),e.elementType=mH,e.lanes=n,e.stateNode={isHidden:!1},e}function DC(e,t,n){return e=Us(6,e,null,t),e.lanes=n,e}function NC(e,t,n){return t=Us(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tle(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=pC(0),this.expirationTimes=pC(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pC(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function nN(e,t,n,r,i,o,a,s,l){return e=new tle(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Us(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},BD(o),e}function nle(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(cQ)}catch(e){console.error(e)}}cQ(),lH.exports=ys;var yg=lH.exports;const X0=Jd(yg),sle=XV({__proto__:null,default:X0},[yg]);var hB=yg;L2.createRoot=hB.createRoot,L2.hydrateRoot=hB.hydrateRoot;const lle={black:"#000",white:"#fff"},Oy=lle,ule={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"},oh=ule,cle={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"},ah=cle,dle={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"},sh=dle,fle={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"},lh=fle,ple={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"},uh=ple,hle={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"},p0=hle,mle={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"},gle=mle;function jd(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n=0)&&(n[i]=e[i]);return n}function dQ(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var ble=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,yle=dQ(function(e){return ble.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Ole(e){if(e.sheet)return e.sheet;for(var t=0;t0?co(Og,--Ra):0,Gm--,Si===10&&(Gm=1,Pw--),Si}function ds(){return Si=Ra2||Ey(Si)>3?"":" "}function Dle(e,t){for(;--t&&ds()&&!(Si<48||Si>102||Si>57&&Si<65||Si>70&&Si<97););return F1(e,LE()+(t<6&&wu()==32&&ds()==32))}function __(e){for(;ds();)switch(Si){case e:return Ra;case 34:case 39:e!==34&&e!==39&&__(Si);break;case 40:e===41&&__(e);break;case 92:ds();break}return Ra}function Nle(e,t){for(;ds()&&e+Si!==57;)if(e+Si===84&&wu()===47)break;return"/*"+F1(t,Ra-1)+"*"+Nw(e===47?e:ds())}function Ple(e){for(;!Ey(wu());)ds();return F1(e,Ra)}function Lle(e){return bQ($E("",null,null,null,[""],e=gQ(e),0,[0],e))}function $E(e,t,n,r,i,o,a,s,l){for(var u=0,c=0,d=a,p=0,h=0,m=0,b=1,O=1,y=1,v=0,S="",k=i,C=o,w=r,E=S;O;)switch(m=v,v=ds()){case 40:if(m!=108&&co(E,d-1)==58){A_(E+=ur(ME(v),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:E+=ME(v);break;case 9:case 10:case 13:case 32:E+=Ile(m);break;case 92:E+=Dle(LE()-1,7);continue;case 47:switch(wu()){case 42:case 47:bv(Mle(Nle(ds(),LE()),t,n),l);break;default:E+="/"}break;case 123*b:s[u++]=uu(E)*y;case 125*b:case 59:case 0:switch(v){case 0:case 125:O=0;case 59+c:y==-1&&(E=ur(E,/\f/g,"")),h>0&&uu(E)-d&&bv(h>32?gB(E+";",r,n,d-1):gB(ur(E," ","")+";",r,n,d-2),l);break;case 59:E+=";";default:if(bv(w=mB(E,t,n,u,c,i,s,S,k=[],C=[],d),o),v===123)if(c===0)$E(E,t,w,w,k,o,d,s,C);else switch(p===99&&co(E,3)===110?100:p){case 100:case 108:case 109:case 115:$E(e,w,w,r&&bv(mB(e,w,w,0,0,i,s,S,i,k=[],d),C),i,C,d,s,r?k:C);break;default:$E(E,w,w,w,[""],C,0,s,C)}}u=c=h=0,b=y=1,S=E="",d=a;break;case 58:d=1+uu(E),h=m;default:if(b<1){if(v==123)--b;else if(v==125&&b++==0&&Rle()==125)continue}switch(E+=Nw(v),v*b){case 38:y=c>0?1:(E+="\f",-1);break;case 44:s[u++]=(uu(E)-1)*y,y=1;break;case 64:wu()===45&&(E+=ME(ds())),p=wu(),c=d=uu(S=E+=Ple(LE())),v++;break;case 45:m===45&&uu(E)==2&&(b=0)}}return o}function mB(e,t,n,r,i,o,a,s,l,u,c){for(var d=i-1,p=i===0?o:[""],h=lN(p),m=0,b=0,O=0;m0?p[y]+" "+v:ur(v,/&\f/g,p[y])))&&(l[O++]=S);return Lw(e,t,n,i===0?aN:s,l,u,c)}function Mle(e,t,n){return Lw(e,t,n,fQ,Nw(_le()),vy(e,2,-2),0)}function gB(e,t,n,r){return Lw(e,t,n,sN,vy(e,0,r),vy(e,r+1,-1),r)}function sm(e,t){for(var n="",r=lN(e),i=0;i6)switch(co(e,t+1)){case 109:if(co(e,t+4)!==45)break;case 102:return ur(e,/(.+:)(.+)-([^]+)/,"$1"+lr+"$2-$3$1"+qS+(co(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~A_(e,"stretch")?yQ(ur(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(co(e,t+1)!==115)break;case 6444:switch(co(e,uu(e)-3-(~A_(e,"!important")&&10))){case 107:return ur(e,":",":"+lr)+e;case 101:return ur(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+lr+(co(e,14)===45?"inline-":"")+"box$3$1"+lr+"$2$3$1"+Ro+"$2box$3")+e}break;case 5936:switch(co(e,t+11)){case 114:return lr+e+Ro+ur(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return lr+e+Ro+ur(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return lr+e+Ro+ur(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return lr+e+Ro+e+e}return e}var Wle=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case sN:t.return=yQ(t.value,t.length);break;case pQ:return sm([h0(t,{value:ur(t.value,"@","@"+lr)})],i);case aN:if(t.length)return Ale(t.props,function(o){switch(Cle(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return sm([h0(t,{props:[ur(o,/:(read-\w+)/,":"+qS+"$1")]})],i);case"::placeholder":return sm([h0(t,{props:[ur(o,/:(plac\w+)/,":"+lr+"input-$1")]}),h0(t,{props:[ur(o,/:(plac\w+)/,":"+qS+"$1")]}),h0(t,{props:[ur(o,/:(plac\w+)/,Ro+"input-$1")]})],i)}return""})}},Qle=[Wle],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(b){var O=b.getAttribute("data-emotion");O.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var i=t.stylisPlugins||Qle,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(b){for(var O=b.getAttribute("data-emotion").split(" "),y=1;y<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[du]=t,e[my]=r,tQ(e,t,!1,!1),t.stateNode=e;e:{switch(a=q2(n,r),n){case"dialog":Ir("cancel",e),Ir("close",e),i=r;break;case"iframe":case"object":case"embed":Ir("load",e),i=r;break;case"video":case"audio":for(i=0;iGm&&(t.flags|=128,r=!0,h0(o,!1),t.lanes=4194304)}else{if(!r)if(e=VS(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),h0(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Qr)return _o(t),null}else 2*bi()-o.renderingStartTime>Gm&&n!==1073741824&&(t.flags|=128,r=!0,h0(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=bi(),t.sibling=null,n=Zr.current,Cr(Zr,r?n&1|2:n&1),t):(_o(t),null);case 22:case 23:return rN(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Za&1073741824&&(_o(t),t.subtreeFlags&6&&(t.flags|=8192)):_o(t),null;case 24:return null;case 25:return null}throw Error(St(156,t.tag))}function Zse(e,t){switch($D(t),t.tag){case 1:return xa(t.type)&&MS(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Qm(),Mr(ka),Mr(Bo),QD(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return WD(t),null;case 13:if(Mr(Zr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(St(340));Hm()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Mr(Zr),null;case 4:return Qm(),null;case 10:return jD(t.type._context),null;case 22:case 23:return rN(),null;case 24:return null;default:return null}}var gv=!1,No=!1,Xse=typeof WeakSet=="function"?WeakSet:Set,Gt=null;function zh(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){si(e,t,r)}else n.current=null}function S_(e,t,n){try{n()}catch(r){si(e,t,r)}}var fB=!1;function Kse(e,t){if(o_=DS,e=sW(),LD(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,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,c=0,d=e,p=null;t:for(;;){for(var h;d!==n||i!==0&&d.nodeType!==3||(s=a+i),d!==o||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(h=d.firstChild)!==null;)p=d,d=h;for(;;){if(d===e)break t;if(p===n&&++u===i&&(s=a),p===o&&++c===r&&(l=a),(h=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=h}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(a_={focusedElem:e,selectionRange:n},DS=!1,Gt=t;Gt!==null;)if(t=Gt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Gt=e;else for(;Gt!==null;){t=Gt;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var b=m.memoizedProps,O=m.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?b:dl(t.type,b),O);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(St(163))}}catch(k){si(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,Gt=e;break}Gt=t.return}return m=fB,fB=!1,m}function vb(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 o=i.destroy;i.destroy=void 0,o!==void 0&&S_(t,n,o)}i=i.next}while(i!==r)}}function Aw(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 T_(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 iQ(e){var t=e.alternate;t!==null&&(e.alternate=null,iQ(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[du],delete t[my],delete t[u_],delete t[Pse],delete t[Lse])),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 oQ(e){return e.tag===5||e.tag===3||e.tag===4}function pB(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||oQ(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 w_(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=LS));else if(r!==4&&(e=e.child,e!==null))for(w_(e,t,n),e=e.sibling;e!==null;)w_(e,t,n),e=e.sibling}function k_(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(k_(e,t,n),e=e.sibling;e!==null;)k_(e,t,n),e=e.sibling}var co=null,pl=!1;function zc(e,t,n){for(n=n.child;n!==null;)aQ(e,t,n),n=n.sibling}function aQ(e,t,n){if(Su&&typeof Su.onCommitFiberUnmount=="function")try{Su.onCommitFiberUnmount(vw,n)}catch{}switch(n.tag){case 5:No||zh(n,t);case 6:var r=co,i=pl;co=null,zc(e,t,n),co=r,pl=i,co!==null&&(pl?(e=co,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):co.removeChild(n.stateNode));break;case 18:co!==null&&(pl?(e=co,n=n.stateNode,e.nodeType===8?CC(e.parentNode,n):e.nodeType===1&&CC(e,n),cy(e)):CC(co,n.stateNode));break;case 4:r=co,i=pl,co=n.stateNode.containerInfo,pl=!0,zc(e,t,n),co=r,pl=i;break;case 0:case 11:case 14:case 15:if(!No&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&S_(n,t,a),i=i.next}while(i!==r)}zc(e,t,n);break;case 1:if(!No&&(zh(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){si(n,t,s)}zc(e,t,n);break;case 21:zc(e,t,n);break;case 22:n.mode&1?(No=(r=No)||n.memoizedState!==null,zc(e,t,n),No=r):zc(e,t,n);break;default:zc(e,t,n)}}function hB(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Xse),t.forEach(function(r){var i=sle.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function cl(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=bi()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ele(r/1960))-r,10e?16:e,gd===null)var r=!1;else{if(e=gd,gd=null,GS=0,tr&6)throw Error(St(331));var i=tr;for(tr|=4,Gt=e.current;Gt!==null;){var o=Gt,a=o.child;if(Gt.flags&16){var s=o.deletions;if(s!==null){for(var l=0;lbi()-tN?rp(e,0):eN|=n),Ca(e,t)}function hQ(e,t){t===0&&(e.mode&1?(t=sv,sv<<=1,!(sv&130023424)&&(sv=4194304)):t=1);var n=ra();e=Oc(e,t),e!==null&&($1(e,t,n),Ca(e,n))}function ale(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),hQ(e,n)}function sle(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(St(314))}r!==null&&r.delete(t),hQ(e,n)}var mQ;mQ=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ka.current)Ta=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ta=!1,Gse(e,t,n);Ta=!!(e.flags&131072)}else Ta=!1,Qr&&t.flags&1048576&&yW(t,BS,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;NE(e,t),e=t.pendingProps;var i=Vm(t,Bo.current);om(t,n),i=GD(null,t,r,e,i,n);var o=qD();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,xa(r)?(o=!0,$S(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,VD(t),i.updater=xw,t.stateNode=i,i._reactInternals=t,m_(t,r,e,n),t=y_(null,t,r,!0,o,n)):(t.tag=0,Qr&&o&&MD(t),Jo(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(NE(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=ule(r),e=dl(r,e),i){case 0:t=b_(null,t,r,e,n);break e;case 1:t=uB(null,t,r,e,n);break e;case 11:t=sB(null,t,r,e,n);break e;case 14:t=lB(null,t,r,dl(r.type,e),n);break e}throw Error(St(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dl(r,i),b_(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dl(r,i),uB(e,t,r,i,n);case 3:e:{if(KW(t),e===null)throw Error(St(387));r=t.pendingProps,o=t.memoizedState,i=o.element,SW(e,t),zS(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Ym(Error(St(423)),t),t=cB(e,t,r,n,i);break e}else if(r!==i){i=Ym(Error(St(424)),t),t=cB(e,t,r,n,i);break e}else for(as=Cd(t.stateNode.containerInfo.firstChild),cs=t,Qr=!0,gl=null,n=xW(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Hm(),r===i){t=vc(e,t,n);break e}Jo(e,t,r,n)}t=t.child}return t;case 5:return CW(t),e===null&&f_(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,s_(r,i)?a=null:o!==null&&s_(r,o)&&(t.flags|=32),XW(e,t),Jo(e,t,a,n),t.child;case 6:return e===null&&f_(t),null;case 13:return JW(e,t,n);case 4:return HD(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Wm(t,null,r,n):Jo(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dl(r,i),sB(e,t,r,i,n);case 7:return Jo(e,t,t.pendingProps,n),t.child;case 8:return Jo(e,t,t.pendingProps.children,n),t.child;case 12:return Jo(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,Cr(US,r._currentValue),r._currentValue=a,o!==null)if(Il(o.value,a)){if(o.children===i.children&&!ka.current){t=vc(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=fc(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),p_(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(St(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),p_(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}Jo(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,om(t,n),i=Xs(i),r=r(i),t.flags|=1,Jo(e,t,r,n),t.child;case 14:return r=t.type,i=dl(r,t.pendingProps),i=dl(r.type,i),lB(e,t,r,i,n);case 15:return qW(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dl(r,i),NE(e,t),t.tag=1,xa(r)?(e=!0,$S(t)):e=!1,om(t,n),wW(t,r,i),m_(t,r,i,n),y_(null,t,r,!0,e,n);case 19:return eQ(e,t,n);case 22:return ZW(e,t,n)}throw Error(St(156,t.tag))};function gQ(e,t){return zH(e,t)}function lle(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 Us(e,t,n,r){return new lle(e,t,n,r)}function oN(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ule(e){if(typeof e=="function")return oN(e)?1:0;if(e!=null){if(e=e.$$typeof,e===wD)return 11;if(e===kD)return 14}return 2}function Id(e,t){var n=e.alternate;return n===null?(n=Us(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 ME(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")oN(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Nh:return ip(n.children,i,o,t);case TD:a=8,i|=8;break;case B2:return e=Us(12,n,t,i|2),e.elementType=B2,e.lanes=o,e;case U2:return e=Us(13,n,t,i),e.elementType=U2,e.lanes=o,e;case j2:return e=Us(19,n,t,i),e.elementType=j2,e.lanes=o,e;case kH:return Rw(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case TH:a=10;break e;case wH:a=9;break e;case wD:a=11;break e;case kD:a=14;break e;case Kc:a=16,r=null;break e}throw Error(St(130,e==null?e:typeof e,""))}return t=Us(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function ip(e,t,n,r){return e=Us(7,e,r,t),e.lanes=n,e}function Rw(e,t,n,r){return e=Us(22,e,r,t),e.elementType=kH,e.lanes=n,e.stateNode={isHidden:!1},e}function LC(e,t,n){return e=Us(6,e,null,t),e.lanes=n,e}function MC(e,t,n){return t=Us(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function cle(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=gC(0),this.expirationTimes=gC(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gC(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function aN(e,t,n,r,i,o,a,s,l){return e=new cle(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Us(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},VD(o),e}function dle(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(vQ)}catch(e){console.error(e)}}vQ(),yH.exports=ys;var Og=yH.exports;const eb=ef(Og),gle=sH({__proto__:null,default:eb},[Og]);var SB=Og;$2.createRoot=SB.createRoot,$2.hydrateRoot=SB.hydrateRoot;const ble={black:"#000",white:"#fff"},Sy=ble,yle={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"},oh=yle,Ole={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"},ah=Ole,vle={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"},sh=vle,Ele={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"},lh=Ele,Sle={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"},uh=Sle,Tle={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"},g0=Tle,wle={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"},kle=wle;function zd(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n=0)&&(n[i]=e[i]);return n}function EQ(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var xle=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Cle=EQ(function(e){return xle.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Ale(e){if(e.sheet)return e.sheet;for(var t=0;t0?po(vg,--Ia):0,qm--,Si===10&&(qm=1,Mw--),Si}function ds(){return Si=Ia2||wy(Si)>3?"":" "}function jle(e,t){for(;--t&&ds()&&!(Si<48||Si>102||Si>57&&Si<65||Si>70&&Si<97););return j1(e,$E()+(t<6&&wu()==32&&ds()==32))}function I_(e){for(;ds();)switch(Si){case e:return Ia;case 34:case 39:e!==34&&e!==39&&I_(Si);break;case 40:e===41&&I_(e);break;case 92:ds();break}return Ia}function zle(e,t){for(;ds()&&e+Si!==57;)if(e+Si===84&&wu()===47)break;return"/*"+j1(t,Ia-1)+"*"+Lw(e===47?e:ds())}function Vle(e){for(;!wy(wu());)ds();return j1(e,Ia)}function Hle(e){return CQ(BE("",null,null,null,[""],e=xQ(e),0,[0],e))}function BE(e,t,n,r,i,o,a,s,l){for(var u=0,c=0,d=a,p=0,h=0,m=0,b=1,O=1,y=1,v=0,S="",k=i,C=o,w=r,E=S;O;)switch(m=v,v=ds()){case 40:if(m!=108&&po(E,d-1)==58){R_(E+=ur(FE(v),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:E+=FE(v);break;case 9:case 10:case 13:case 32:E+=Ule(m);break;case 92:E+=jle($E()-1,7);continue;case 47:switch(wu()){case 42:case 47:Ov(Wle(zle(ds(),$E()),t,n),l);break;default:E+="/"}break;case 123*b:s[u++]=uu(E)*y;case 125*b:case 59:case 0:switch(v){case 0:case 125:O=0;case 59+c:y==-1&&(E=ur(E,/\f/g,"")),h>0&&uu(E)-d&&Ov(h>32?wB(E+";",r,n,d-1):wB(ur(E," ","")+";",r,n,d-2),l);break;case 59:E+=";";default:if(Ov(w=TB(E,t,n,u,c,i,s,S,k=[],C=[],d),o),v===123)if(c===0)BE(E,t,w,w,k,o,d,s,C);else switch(p===99&&po(E,3)===110?100:p){case 100:case 108:case 109:case 115:BE(e,w,w,r&&Ov(TB(e,w,w,0,0,i,s,S,i,k=[],d),C),i,C,d,s,r?k:C);break;default:BE(E,w,w,w,[""],C,0,s,C)}}u=c=h=0,b=y=1,S=E="",d=a;break;case 58:d=1+uu(E),h=m;default:if(b<1){if(v==123)--b;else if(v==125&&b++==0&&Ble()==125)continue}switch(E+=Lw(v),v*b){case 38:y=c>0?1:(E+="\f",-1);break;case 44:s[u++]=(uu(E)-1)*y,y=1;break;case 64:wu()===45&&(E+=FE(ds())),p=wu(),c=d=uu(S=E+=Vle($E())),v++;break;case 45:m===45&&uu(E)==2&&(b=0)}}return o}function TB(e,t,n,r,i,o,a,s,l,u,c){for(var d=i-1,p=i===0?o:[""],h=fN(p),m=0,b=0,O=0;m0?p[y]+" "+v:ur(v,/&\f/g,p[y])))&&(l[O++]=S);return $w(e,t,n,i===0?cN:s,l,u,c)}function Wle(e,t,n){return $w(e,t,n,SQ,Lw(Fle()),Ty(e,2,-2),0)}function wB(e,t,n,r){return $w(e,t,n,dN,Ty(e,0,r),Ty(e,r+1,-1),r)}function sm(e,t){for(var n="",r=fN(e),i=0;i6)switch(po(e,t+1)){case 109:if(po(e,t+4)!==45)break;case 102:return ur(e,/(.+:)(.+)-([^]+)/,"$1"+lr+"$2-$3$1"+XS+(po(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~R_(e,"stretch")?AQ(ur(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(po(e,t+1)!==115)break;case 6444:switch(po(e,uu(e)-3-(~R_(e,"!important")&&10))){case 107:return ur(e,":",":"+lr)+e;case 101:return ur(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+lr+(po(e,14)===45?"inline-":"")+"box$3$1"+lr+"$2$3$1"+Io+"$2box$3")+e}break;case 5936:switch(po(e,t+11)){case 114:return lr+e+Io+ur(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return lr+e+Io+ur(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return lr+e+Io+ur(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return lr+e+Io+e+e}return e}var eue=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case dN:t.return=AQ(t.value,t.length);break;case TQ:return sm([b0(t,{value:ur(t.value,"@","@"+lr)})],i);case cN:if(t.length)return $le(t.props,function(o){switch(Mle(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return sm([b0(t,{props:[ur(o,/:(read-\w+)/,":"+XS+"$1")]})],i);case"::placeholder":return sm([b0(t,{props:[ur(o,/:(plac\w+)/,":"+lr+"input-$1")]}),b0(t,{props:[ur(o,/:(plac\w+)/,":"+XS+"$1")]}),b0(t,{props:[ur(o,/:(plac\w+)/,Io+"input-$1")]})],i)}return""})}},tue=[eue],nue=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(b){var O=b.getAttribute("data-emotion");O.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var i=t.stylisPlugins||tue,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(b){for(var O=b.getAttribute("data-emotion").split(" "),y=1;y=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 oue={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,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},aue=/[A-Z]|^ms/g,sue=/_EMO_([^_]+?)_([^]*?)_EMO_/g,kQ=function(t){return t.charCodeAt(1)===45},yB=function(t){return t!=null&&typeof t!="boolean"},PC=dQ(function(e){return kQ(e)?e:e.replace(aue,"-$&").toLowerCase()}),OB=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(sue,function(r,i,o){return cu={name:i,styles:o,next:cu},i})}return oue[t]!==1&&!kQ(t)&&typeof n=="number"&&n!==0?n+"px":n};function Sy(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return cu={name:n.name,styles:n.styles,next:cu},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)cu={name:r.name,styles:r.styles,next:cu},r=r.next;var i=n.styles+";";return i}return lue(e,t,n)}case"function":{if(e!==void 0){var o=cu,a=n(e);return cu=o,Sy(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function lue(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?fue:pue},TB=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(a){return t.__emotion_forwardProp(a)&&o(a)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},hue=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return TQ(n,r,i),cue(function(){return wQ(n,r,i)}),null},mue=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,a;n!==void 0&&(o=n.label,a=n.target);var s=TB(t,n,r),l=s||SB(i),u=!l("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var p=c.length,h=1;ht(Sue(i)?n:i):t;return P.jsx(due,{styles:r})}function DQ(e,t){return R_(e,t)}const wue=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function oc(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 NQ(e){if(!oc(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=NQ(e[n])}),t}function Lo(e,t,n={clone:!0}){const r=n.clone?L({},e):e;return oc(e)&&oc(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(oc(t[i])&&i in e&&oc(e[i])?r[i]=Lo(e[i],t[i],n):n.clone?r[i]=oc(t[i])?NQ(t[i]):t[i]:r[i]=t[i])}),r}var pr={};/** + */var Ki=typeof Symbol=="function"&&Symbol.for,pN=Ki?Symbol.for("react.element"):60103,hN=Ki?Symbol.for("react.portal"):60106,Fw=Ki?Symbol.for("react.fragment"):60107,Bw=Ki?Symbol.for("react.strict_mode"):60108,Uw=Ki?Symbol.for("react.profiler"):60114,jw=Ki?Symbol.for("react.provider"):60109,zw=Ki?Symbol.for("react.context"):60110,mN=Ki?Symbol.for("react.async_mode"):60111,Vw=Ki?Symbol.for("react.concurrent_mode"):60111,Hw=Ki?Symbol.for("react.forward_ref"):60112,Ww=Ki?Symbol.for("react.suspense"):60113,rue=Ki?Symbol.for("react.suspense_list"):60120,Qw=Ki?Symbol.for("react.memo"):60115,Yw=Ki?Symbol.for("react.lazy"):60116,iue=Ki?Symbol.for("react.block"):60121,oue=Ki?Symbol.for("react.fundamental"):60117,aue=Ki?Symbol.for("react.responder"):60118,sue=Ki?Symbol.for("react.scope"):60119;function vs(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case pN:switch(e=e.type,e){case mN:case Vw:case Fw:case Uw:case Bw:case Ww:return e;default:switch(e=e&&e.$$typeof,e){case zw:case Hw:case Yw:case Qw:case jw:return e;default:return t}}case hN:return t}}}function RQ(e){return vs(e)===Vw}pr.AsyncMode=mN;pr.ConcurrentMode=Vw;pr.ContextConsumer=zw;pr.ContextProvider=jw;pr.Element=pN;pr.ForwardRef=Hw;pr.Fragment=Fw;pr.Lazy=Yw;pr.Memo=Qw;pr.Portal=hN;pr.Profiler=Uw;pr.StrictMode=Bw;pr.Suspense=Ww;pr.isAsyncMode=function(e){return RQ(e)||vs(e)===mN};pr.isConcurrentMode=RQ;pr.isContextConsumer=function(e){return vs(e)===zw};pr.isContextProvider=function(e){return vs(e)===jw};pr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===pN};pr.isForwardRef=function(e){return vs(e)===Hw};pr.isFragment=function(e){return vs(e)===Fw};pr.isLazy=function(e){return vs(e)===Yw};pr.isMemo=function(e){return vs(e)===Qw};pr.isPortal=function(e){return vs(e)===hN};pr.isProfiler=function(e){return vs(e)===Uw};pr.isStrictMode=function(e){return vs(e)===Bw};pr.isSuspense=function(e){return vs(e)===Ww};pr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Fw||e===Vw||e===Uw||e===Bw||e===Ww||e===rue||typeof e=="object"&&e!==null&&(e.$$typeof===Yw||e.$$typeof===Qw||e.$$typeof===jw||e.$$typeof===zw||e.$$typeof===Hw||e.$$typeof===oue||e.$$typeof===aue||e.$$typeof===sue||e.$$typeof===iue)};pr.typeOf=vs;_Q.exports=pr;var lue=_Q.exports,IQ=lue,uue={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},cue={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},DQ={};DQ[IQ.ForwardRef]=uue;DQ[IQ.Memo]=cue;var due=!0;function fue(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var NQ=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||due===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},PQ=function(t,n,r){NQ(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function pue(e){for(var t=0,n,r=0,i=e.length;i>=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 hue={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,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},mue=/[A-Z]|^ms/g,gue=/_EMO_([^_]+?)_([^]*?)_EMO_/g,LQ=function(t){return t.charCodeAt(1)===45},xB=function(t){return t!=null&&typeof t!="boolean"},$C=EQ(function(e){return LQ(e)?e:e.replace(mue,"-$&").toLowerCase()}),CB=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(gue,function(r,i,o){return cu={name:i,styles:o,next:cu},i})}return hue[t]!==1&&!LQ(t)&&typeof n=="number"&&n!==0?n+"px":n};function ky(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return cu={name:n.name,styles:n.styles,next:cu},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)cu={name:r.name,styles:r.styles,next:cu},r=r.next;var i=n.styles+";";return i}return bue(e,t,n)}case"function":{if(e!==void 0){var o=cu,a=n(e);return cu=o,ky(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function bue(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?Eue:Sue},IB=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(a){return t.__emotion_forwardProp(a)&&o(a)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},Tue=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return NQ(n,r,i),Oue(function(){return PQ(n,r,i)}),null},wue=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,a;n!==void 0&&(o=n.label,a=n.target);var s=IB(t,n,r),l=s||RB(i),u=!l("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var p=c.length,h=1;ht(Iue(i)?n:i):t;return N.jsx(vue,{styles:r})}function zQ(e,t){return D_(e,t)}const Nue=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function oc(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 VQ(e){if(!oc(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=VQ(e[n])}),t}function Mo(e,t,n={clone:!0}){const r=n.clone?L({},e):e;return oc(e)&&oc(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(oc(t[i])&&i in e&&oc(e[i])?r[i]=Mo(e[i],t[i],n):n.clone?r[i]=oc(t[i])?VQ(t[i]):t[i]:r[i]=t[i])}),r}var hr={};/** * @license React * react-is.production.min.js * @@ -52,7 +52,7 @@ Error generating stack: `+o.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var hN=Symbol.for("react.element"),mN=Symbol.for("react.portal"),Yw=Symbol.for("react.fragment"),Gw=Symbol.for("react.strict_mode"),qw=Symbol.for("react.profiler"),Zw=Symbol.for("react.provider"),Xw=Symbol.for("react.context"),kue=Symbol.for("react.server_context"),Kw=Symbol.for("react.forward_ref"),Jw=Symbol.for("react.suspense"),ek=Symbol.for("react.suspense_list"),tk=Symbol.for("react.memo"),nk=Symbol.for("react.lazy"),xue=Symbol.for("react.offscreen"),PQ;PQ=Symbol.for("react.module.reference");function nl(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case hN:switch(e=e.type,e){case Yw:case qw:case Gw:case Jw:case ek:return e;default:switch(e=e&&e.$$typeof,e){case kue:case Xw:case Kw:case nk:case tk:case Zw:return e;default:return t}}case mN:return t}}}pr.ContextConsumer=Xw;pr.ContextProvider=Zw;pr.Element=hN;pr.ForwardRef=Kw;pr.Fragment=Yw;pr.Lazy=nk;pr.Memo=tk;pr.Portal=mN;pr.Profiler=qw;pr.StrictMode=Gw;pr.Suspense=Jw;pr.SuspenseList=ek;pr.isAsyncMode=function(){return!1};pr.isConcurrentMode=function(){return!1};pr.isContextConsumer=function(e){return nl(e)===Xw};pr.isContextProvider=function(e){return nl(e)===Zw};pr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===hN};pr.isForwardRef=function(e){return nl(e)===Kw};pr.isFragment=function(e){return nl(e)===Yw};pr.isLazy=function(e){return nl(e)===nk};pr.isMemo=function(e){return nl(e)===tk};pr.isPortal=function(e){return nl(e)===mN};pr.isProfiler=function(e){return nl(e)===qw};pr.isStrictMode=function(e){return nl(e)===Gw};pr.isSuspense=function(e){return nl(e)===Jw};pr.isSuspenseList=function(e){return nl(e)===ek};pr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Yw||e===qw||e===Gw||e===Jw||e===ek||e===xue||typeof e=="object"&&e!==null&&(e.$$typeof===nk||e.$$typeof===tk||e.$$typeof===Zw||e.$$typeof===Xw||e.$$typeof===Kw||e.$$typeof===PQ||e.getModuleId!==void 0)};pr.typeOf=nl;const Cue=Q.oneOfType([Q.func,Q.object]),vg=Cue;function nt(e){if(typeof e!="string")throw new Error(jd(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ZS(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function Eg(e,t=166){let n;function r(...i){const o=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function Aue(e,t){return()=>null}function Eb(e,t){var n,r;return I.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 yr(e){return e&&e.ownerDocument||document}function Js(e){return yr(e).defaultView||window}function _ue(e,t){return()=>null}function Ty(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Kr=typeof window<"u"?I.useLayoutEffect:I.useEffect;let wB=0;function Rue(e){const[t,n]=I.useState(e),r=e||t;return I.useEffect(()=>{t==null&&(wB+=1,n(`mui-${wB}`))},[t]),r}const kB=Um.useId;function $l(e){if(kB!==void 0){const t=kB();return e??t}return Rue(e)}function Iue(e,t,n,r,i){return null}function Xi({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=I.useRef(e!==void 0),[o,a]=I.useState(t),s=i?e:o,l=I.useCallback(u=>{i||a(u)},[]);return[s,l]}function jt(e){const t=I.useRef(e);return Kr(()=>{t.current=e}),I.useRef((...n)=>(0,t.current)(...n)).current}function yn(...e){return I.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Ty(n,t)})},e)}let rk=!0,I_=!1,xB;const Due={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 Nue(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Due[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Pue(e){e.metaKey||e.altKey||e.ctrlKey||(rk=!0)}function LC(){rk=!1}function Lue(){this.visibilityState==="hidden"&&I_&&(rk=!0)}function Mue(e){e.addEventListener("keydown",Pue,!0),e.addEventListener("mousedown",LC,!0),e.addEventListener("pointerdown",LC,!0),e.addEventListener("touchstart",LC,!0),e.addEventListener("visibilitychange",Lue,!0)}function $ue(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return rk||Nue(t)}function ik(){const e=I.useCallback(i=>{i!=null&&Mue(i.ownerDocument)},[]),t=I.useRef(!1);function n(){return t.current?(I_=!0,window.clearTimeout(xB),xB=window.setTimeout(()=>{I_=!1},100),t.current=!1,!0):!1}function r(i){return $ue(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function LQ(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let ch;function MQ(){if(ch)return ch;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),ch="reverse",e.scrollLeft>0?ch="default":(e.scrollLeft=1,e.scrollLeft===0&&(ch="negative")),document.body.removeChild(e),ch}function Fue(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(MQ()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const Bue=e=>{const t=I.useRef({});return I.useEffect(()=>{t.current=e}),t.current};function Uue(e){return I.Children.toArray(e).filter(t=>I.isValidElement(t))}const jue={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},zue=jue;function ok(e,t){const n=L({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=L({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},!o||!Object.keys(o)?n[r]=i:!i||!Object.keys(i)?n[r]=o:(n[r]=L({},o),Object.keys(i).forEach(a=>{n[r][a]=ok(i[a],o[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function kt(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,a)=>{if(a){const s=t(a);s!==""&&o.push(s),n&&n[a]&&o.push(n[a])}return o},[]).join(" ")}),r}const CB=e=>e,Vue=()=>{let e=CB;return{configure(t){e=t},generate(t){return e(t)},reset(){e=CB}}},gN=Vue(),$Q={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 At(e,t,n="Mui"){const r=$Q[t];return r?`${n}-${r}`:`${gN.generate(e)}-${t}`}function _t(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=At(e,i,n)}),r}function Oh(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const Hue=["values","unit","step"],Wue=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)=>L({},n,{[r.key]:r.val}),{})};function Que(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=Ge(e,Hue),o=Wue(t),a=Object.keys(o);function s(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,h){const m=a.indexOf(h);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(m!==-1&&typeof t[a[m]]=="number"?t[a[m]]:h)-r/100}${n})`}function c(p){return a.indexOf(p)+1`@media (min-width:${bN[e]}px)`};function Ia(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||AB;return t.reduce((a,s,l)=>(a[o.up(o.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const o=r.breakpoints||AB;return Object.keys(t).reduce((a,s)=>{if(Object.keys(o.values||bN).indexOf(s)!==-1){const l=o.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function FQ(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function BQ(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function que(e,...t){const n=FQ(e),r=[n,...t].reduce((i,o)=>Lo(i,o),{});return BQ(Object.keys(n),r)}function Zue(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((i,o)=>{o{e[i]!=null&&(n[i]=!0)}),n}function op({values:e,breakpoints:t,base:n}){const r=n||Zue(e,t),i=Object.keys(r);if(i.length===0)return e;let o;return i.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[o],o=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[o],o=s):a[s]=e,a),{})}function ak(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function XS(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=ak(e,n)||r,t&&(i=t(i,r,e)),i}function Oi(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,u=ak(l,r)||{};return Ia(a,s,d=>{let p=XS(u,i,d);return d===p&&typeof d=="string"&&(p=XS(u,i,`${t}${d==="default"?"":nt(d)}`,d)),n===!1?p:{[n]:p}})};return o.propTypes={},o.filterProps=[t],o}function Xue(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Kue={m:"margin",p:"padding"},Jue={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},_B={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ece=Xue(e=>{if(e.length>2)if(_B[e])e=_B[e];else return[e];const[t,n]=e.split(""),r=Kue[t],i=Jue[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),yN=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ON=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...yN,...ON];function U1(e,t,n,r){var i;const o=(i=ak(e,t,!1))!=null?i:n;return typeof o=="number"?a=>typeof a=="string"?a:o*a:Array.isArray(o)?a=>typeof a=="string"?a:o[a]:typeof o=="function"?o:()=>{}}function vN(e){return U1(e,"spacing",8)}function mp(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 tce(e,t){return n=>e.reduce((r,i)=>(r[i]=mp(t,n),r),{})}function nce(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=ece(n),o=tce(i,r),a=e[n];return Ia(e,a,o)}function UQ(e,t){const n=vN(e.theme);return Object.keys(e).map(r=>nce(e,t,r,n)).reduce(Sb,{})}function ri(e){return UQ(e,yN)}ri.propTypes={};ri.filterProps=yN;function ii(e){return UQ(e,ON)}ii.propTypes={};ii.filterProps=ON;function rce(e=8){if(e.mui)return e;const t=vN({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function sk(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?Sb(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Ms(e){return typeof e!="number"?e:`${e}px solid`}function rl(e,t){return Oi({prop:e,themeKey:"borders",transform:t})}const ice=rl("border",Ms),oce=rl("borderTop",Ms),ace=rl("borderRight",Ms),sce=rl("borderBottom",Ms),lce=rl("borderLeft",Ms),uce=rl("borderColor"),cce=rl("borderTopColor"),dce=rl("borderRightColor"),fce=rl("borderBottomColor"),pce=rl("borderLeftColor"),hce=rl("outline",Ms),mce=rl("outlineColor"),lk=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=U1(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:mp(t,r)});return Ia(e,e.borderRadius,n)}return null};lk.propTypes={};lk.filterProps=["borderRadius"];sk(ice,oce,ace,sce,lce,uce,cce,dce,fce,pce,lk,hce,mce);const uk=e=>{if(e.gap!==void 0&&e.gap!==null){const t=U1(e.theme,"spacing",8),n=r=>({gap:mp(t,r)});return Ia(e,e.gap,n)}return null};uk.propTypes={};uk.filterProps=["gap"];const ck=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=U1(e.theme,"spacing",8),n=r=>({columnGap:mp(t,r)});return Ia(e,e.columnGap,n)}return null};ck.propTypes={};ck.filterProps=["columnGap"];const dk=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=U1(e.theme,"spacing",8),n=r=>({rowGap:mp(t,r)});return Ia(e,e.rowGap,n)}return null};dk.propTypes={};dk.filterProps=["rowGap"];const gce=Oi({prop:"gridColumn"}),bce=Oi({prop:"gridRow"}),yce=Oi({prop:"gridAutoFlow"}),Oce=Oi({prop:"gridAutoColumns"}),vce=Oi({prop:"gridAutoRows"}),Ece=Oi({prop:"gridTemplateColumns"}),Sce=Oi({prop:"gridTemplateRows"}),Tce=Oi({prop:"gridTemplateAreas"}),wce=Oi({prop:"gridArea"});sk(uk,ck,dk,gce,bce,yce,Oce,vce,Ece,Sce,Tce,wce);function lm(e,t){return t==="grey"?t:e}const kce=Oi({prop:"color",themeKey:"palette",transform:lm}),xce=Oi({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:lm}),Cce=Oi({prop:"backgroundColor",themeKey:"palette",transform:lm});sk(kce,xce,Cce);function rs(e){return e<=1&&e!==0?`${e*100}%`:e}const Ace=Oi({prop:"width",transform:rs}),EN=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const o=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||bN[n];return o?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:rs(n)}};return Ia(e,e.maxWidth,t)}return null};EN.filterProps=["maxWidth"];const _ce=Oi({prop:"minWidth",transform:rs}),Rce=Oi({prop:"height",transform:rs}),Ice=Oi({prop:"maxHeight",transform:rs}),Dce=Oi({prop:"minHeight",transform:rs});Oi({prop:"size",cssProperty:"width",transform:rs});Oi({prop:"size",cssProperty:"height",transform:rs});const Nce=Oi({prop:"boxSizing"});sk(Ace,EN,_ce,Rce,Ice,Dce,Nce);const Pce={border:{themeKey:"borders",transform:Ms},borderTop:{themeKey:"borders",transform:Ms},borderRight:{themeKey:"borders",transform:Ms},borderBottom:{themeKey:"borders",transform:Ms},borderLeft:{themeKey:"borders",transform:Ms},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ms},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:lk},color:{themeKey:"palette",transform:lm},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:lm},backgroundColor:{themeKey:"palette",transform:lm},p:{style:ii},pt:{style:ii},pr:{style:ii},pb:{style:ii},pl:{style:ii},px:{style:ii},py:{style:ii},padding:{style:ii},paddingTop:{style:ii},paddingRight:{style:ii},paddingBottom:{style:ii},paddingLeft:{style:ii},paddingX:{style:ii},paddingY:{style:ii},paddingInline:{style:ii},paddingInlineStart:{style:ii},paddingInlineEnd:{style:ii},paddingBlock:{style:ii},paddingBlockStart:{style:ii},paddingBlockEnd:{style:ii},m:{style:ri},mt:{style:ri},mr:{style:ri},mb:{style:ri},ml:{style:ri},mx:{style:ri},my:{style:ri},margin:{style:ri},marginTop:{style:ri},marginRight:{style:ri},marginBottom:{style:ri},marginLeft:{style:ri},marginX:{style:ri},marginY:{style:ri},marginInline:{style:ri},marginInlineStart:{style:ri},marginInlineEnd:{style:ri},marginBlock:{style:ri},marginBlockStart:{style:ri},marginBlockEnd:{style:ri},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:uk},rowGap:{style:dk},columnGap:{style:ck},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:rs},maxWidth:{style:EN},minWidth:{transform:rs},height:{transform:rs},maxHeight:{transform:rs},minHeight:{transform:rs},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},fk=Pce;function Lce(...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 Mce(e,t){return typeof e=="function"?e(t):e}function $ce(){function e(n,r,i,o){const a={[n]:r,theme:i},s=o[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:d}=s;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=ak(i,u)||{};return d?d(a):Ia(a,r,m=>{let b=XS(p,c,m);return m===b&&typeof m=="string"&&(b=XS(p,c,`${n}${m==="default"?"":nt(m)}`,m)),l===!1?b:{[l]:b}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const a=(r=o.unstable_sxConfig)!=null?r:fk;function s(l){let u=l;if(typeof l=="function")u=l(o);else if(typeof l!="object")return l;if(!u)return null;const c=FQ(o.breakpoints),d=Object.keys(c);let p=c;return Object.keys(u).forEach(h=>{const m=Mce(u[h],o);if(m!=null)if(typeof m=="object")if(a[h])p=Sb(p,e(h,m,o,a));else{const b=Ia({theme:o},m,O=>({[h]:O}));Lce(b,m)?p[h]=t({sx:m,theme:o}):p=Sb(p,b)}else p=Sb(p,e(h,m,o,a))}),BQ(d,p)}return Array.isArray(i)?i.map(s):s(i)}return t}const j1=$ce();j1.filterProps=["sx"];const Fce=["breakpoints","palette","spacing","shape"];function z1(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=Ge(e,Fce),s=Que(n),l=rce(i);let u=Lo({breakpoints:s,direction:"ltr",components:{},palette:L({mode:"light"},r),spacing:l,shape:L({},Gue,o)},a);return u=t.reduce((c,d)=>Lo(c,d),u),u.unstable_sxConfig=L({},fk,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return j1({sx:d,theme:this})},u}function Bce(e){return Object.keys(e).length===0}function pk(e=null){const t=I.useContext(Qw);return!t||Bce(t)?e:t}const Uce=z1();function Sg(e=Uce){return pk(e)}function jce({styles:e,themeId:t,defaultTheme:n={}}){const r=Sg(n),i=typeof e=="function"?e(t&&r[t]||r):e;return P.jsx(Tue,{styles:i})}const zce=["sx"],Vce=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:fk;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function hk(e){const{sx:t}=e,n=Ge(e,zce),{systemProps:r,otherProps:i}=Vce(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...a)=>{const s=t(...a);return oc(s)?L({},r,s):r}:o=L({},r,t),L({},i,{sx:o})}function jQ(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;ts!=="theme"&&s!=="sx"&&s!=="as"})(j1);return I.forwardRef(function(l,u){const c=Sg(n),d=hk(l),{className:p,component:h="div"}=d,m=Ge(d,Hce);return P.jsx(o,L({as:h,ref:u,className:Je(p,i?i(r):r),theme:t&&c[t]||c},m))})}const Qce=["variant"];function RB(e){return e.length===0}function zQ(e){const{variant:t}=e,n=Ge(e,Qce);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=RB(r)?e[i]:nt(e[i]):r+=`${RB(r)?i:nt(i)}${nt(e[i].toString())}`}),r}const Yce=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Gce(e){return Object.keys(e).length===0}function qce(e){return typeof e=="string"&&e.charCodeAt(0)>96}const Zce=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,KS=e=>{let t=0;const n={};return e&&e.forEach(r=>{let i="";typeof r.props=="function"?(i=`callback${t}`,t+=1):i=zQ(r.props),n[i]=r.style}),n},Xce=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),KS(n)},JS=(e,t,n)=>{const{ownerState:r={}}=e,i=[];let o=0;return n&&n.forEach(a=>{let s=!0;if(typeof a.props=="function"){const l=L({},e,r);s=a.props(l)}else Object.keys(a.props).forEach(l=>{r[l]!==a.props[l]&&e[l]!==a.props[l]&&(s=!1)});s&&(typeof a.props=="function"?i.push(t[`callback${o}`]):i.push(t[zQ(a.props)])),typeof a.props=="function"&&(o+=1)}),i},Kce=(e,t,n,r)=>{var i;const o=n==null||(i=n.components)==null||(i=i[r])==null?void 0:i.variants;return JS(e,t,o)};function Tb(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Jce=z1(),ede=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function FE({defaultTheme:e,theme:t,themeId:n}){return Gce(t)?e:t[n]||t}function tde(e){return e?(t,n)=>n[e]:null}const IB=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const i=e(L({},t,{theme:FE(L({},t,{defaultTheme:n,themeId:r}))}));let o;if(i&&i.variants&&(o=i.variants,delete i.variants),o){const a=JS(t,KS(o),o);return[i,...a]}return i};function VQ(e={}){const{themeId:t,defaultTheme:n=Jce,rootShouldForwardProp:r=Tb,slotShouldForwardProp:i=Tb}=e,o=a=>j1(L({},a,{theme:FE(L({},a,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(a,s={})=>{wue(a,k=>k.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:p=tde(ede(u))}=s,h=Ge(s,Yce),m=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,b=d||!1;let O,y=Tb;u==="Root"||u==="root"?y=r:u?y=i:qce(a)&&(y=void 0);const v=DQ(a,L({shouldForwardProp:y,label:O},h)),S=(k,...C)=>{const w=C?C.map(R=>{if(typeof R=="function"&&R.__emotion_real!==R)return B=>IB({styledArg:R,props:B,defaultTheme:n,themeId:t});if(oc(R)){let B=R,U;return R&&R.variants&&(U=R.variants,delete B.variants,B=V=>{let z=R;return JS(V,KS(U),U).forEach(X=>{z=Lo(z,X)}),z}),B}return R}):[];let E=k;if(oc(k)){let R;k&&k.variants&&(R=k.variants,delete E.variants,E=B=>{let U=k;return JS(B,KS(R),R).forEach(z=>{U=Lo(U,z)}),U})}else typeof k=="function"&&k.__emotion_real!==k&&(E=R=>IB({styledArg:k,props:R,defaultTheme:n,themeId:t}));l&&p&&w.push(R=>{const B=FE(L({},R,{defaultTheme:n,themeId:t})),U=Zce(l,B);if(U){const V={};return Object.entries(U).forEach(([z,W])=>{V[z]=typeof W=="function"?W(L({},R,{theme:B})):W}),p(R,V)}return null}),l&&!m&&w.push(R=>{const B=FE(L({},R,{defaultTheme:n,themeId:t}));return Kce(R,Xce(l,B),B,l)}),b||w.push(o);const $=w.length-C.length;if(Array.isArray(k)&&$>0){const R=new Array($).fill("");E=[...k,...R],E.raw=[...k.raw,...R]}const N=v(E,...w);return a.muiName&&(N.muiName=a.muiName),N};return v.withConfig&&(S.withConfig=v.withConfig),S}}const HQ=VQ();function WQ(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:ok(t.components[n].defaultProps,r)}function SN({props:e,name:t,defaultTheme:n,themeId:r}){let i=Sg(n);return r&&(i=i[r]||i),WQ({theme:i,name:t,props:e})}function TN(e,t=0,n=1){return Oh(e,t,n)}function nde(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 gp(e){if(e.type)return e;if(e.charAt(0)==="#")return gp(nde(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(jd(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(jd(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function mk(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<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 rde(e){e=gp(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(u,c=(u+n/30)%12)=>i-o*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),mk({type:s,values:l})}function D_(e){e=gp(e);let t=e.type==="hsl"||e.type==="hsla"?gp(rde(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 ide(e,t){const n=D_(e),r=D_(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function cn(e,t){return e=gp(e),t=TN(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,mk(e)}function gk(e,t){if(e=gp(e),t=TN(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 mk(e)}function bk(e,t){if(e=gp(e),t=TN(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 mk(e)}function ode(e,t=.15){return D_(e)>.5?gk(e,t):bk(e,t)}const ade=I.createContext(null),QQ=ade;function YQ(){return I.useContext(QQ)}const sde=typeof Symbol=="function"&&Symbol.for,lde=sde?Symbol.for("mui.nested"):"__THEME_NESTED__";function ude(e,t){return typeof t=="function"?t(e):L({},e,t)}function cde(e){const{children:t,theme:n}=e,r=YQ(),i=I.useMemo(()=>{const o=r===null?n:ude(r,n);return o!=null&&(o[lde]=r!==null),o},[n,r]);return P.jsx(QQ.Provider,{value:i,children:t})}const DB={};function NB(e,t,n,r=!1){return I.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const o=n(i),a=e?L({},t,{[e]:o}):o;return r?()=>a:a}return e?L({},t,{[e]:n}):L({},t,n)},[e,t,n,r])}function dde(e){const{children:t,theme:n,themeId:r}=e,i=pk(DB),o=YQ()||DB,a=NB(r,i,n),s=NB(r,o,n,!0);return P.jsx(cde,{theme:s,children:P.jsx(Qw.Provider,{value:a,children:t})})}const fde=["className","component","disableGutters","fixed","maxWidth","classes"],pde=z1(),hde=HQ("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${nt(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),mde=e=>SN({props:e,name:"MuiContainer",defaultTheme:pde}),gde=(e,t)=>{const n=l=>At(t,l),{classes:r,fixed:i,disableGutters:o,maxWidth:a}=e,s={root:["root",a&&`maxWidth${nt(String(a))}`,i&&"fixed",o&&"disableGutters"]};return kt(s,n,r)};function bde(e={}){const{createStyledComponent:t=hde,useThemeProps:n=mde,componentName:r="MuiContainer"}=e,i=t(({theme:a,ownerState:s})=>L({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!s.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}),({theme:a,ownerState:s})=>s.fixed&&Object.keys(a.breakpoints.values).reduce((l,u)=>{const c=u,d=a.breakpoints.values[c];return d!==0&&(l[a.breakpoints.up(c)]={maxWidth:`${d}${a.breakpoints.unit}`}),l},{}),({theme:a,ownerState:s})=>L({},s.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},s.maxWidth&&s.maxWidth!=="xs"&&{[a.breakpoints.up(s.maxWidth)]:{maxWidth:`${a.breakpoints.values[s.maxWidth]}${a.breakpoints.unit}`}}));return I.forwardRef(function(s,l){const u=n(s),{className:c,component:d="div",disableGutters:p=!1,fixed:h=!1,maxWidth:m="lg"}=u,b=Ge(u,fde),O=L({},u,{component:d,disableGutters:p,fixed:h,maxWidth:m}),y=gde(O,r);return P.jsx(i,L({as:d,ownerState:O,className:Je(y.root,c),ref:l},b))})}const yde=["component","direction","spacing","divider","children","className","useFlexGap"],Ode=z1(),vde=HQ("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Ede(e){return SN({props:e,name:"MuiStack",defaultTheme:Ode})}function Sde(e,t){const n=I.Children.toArray(e).filter(Boolean);return n.reduce((r,i,o)=>(r.push(i),o({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],wde=({ownerState:e,theme:t})=>{let n=L({display:"flex",flexDirection:"column"},Ia({theme:t},op({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=vN(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),{}),o=op({values:e.direction,base:i}),a=op({values:e.spacing,base:i});typeof o=="object"&&Object.keys(o).forEach((l,u,c)=>{if(!o[l]){const p=u>0?o[c[u-1]]:"column";o[l]=p}}),n=Lo(n,Ia({theme:t},a,(l,u)=>e.useFlexGap?{gap:mp(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Tde(u?o[u]:e.direction)}`]:mp(r,l)}}))}return n=que(t.breakpoints,n),n};function kde(e={}){const{createStyledComponent:t=vde,useThemeProps:n=Ede,componentName:r="MuiStack"}=e,i=()=>kt({root:["root"]},l=>At(r,l),{}),o=t(wde);return I.forwardRef(function(l,u){const c=n(l),d=hk(c),{component:p="div",direction:h="column",spacing:m=0,divider:b,children:O,className:y,useFlexGap:v=!1}=d,S=Ge(d,yde),k={direction:h,spacing:m,useFlexGap:v},C=i();return P.jsx(o,L({as:p,ownerState:k,ref:u,className:Je(C.root,y)},S,{children:b?Sde(O,b):O}))})}function xde(e,t){return L({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Cde=["mode","contrastThreshold","tonalOffset"],PB={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:Oy.white,default:Oy.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}},MC={text:{primary:Oy.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:Oy.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 LB(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=bk(e.main,i):t==="dark"&&(e.dark=gk(e.main,o)))}function Ade(e="light"){return e==="dark"?{main:sh[200],light:sh[50],dark:sh[400]}:{main:sh[700],light:sh[400],dark:sh[800]}}function _de(e="light"){return e==="dark"?{main:ah[200],light:ah[50],dark:ah[400]}:{main:ah[500],light:ah[300],dark:ah[700]}}function Rde(e="light"){return e==="dark"?{main:oh[500],light:oh[300],dark:oh[700]}:{main:oh[700],light:oh[400],dark:oh[800]}}function Ide(e="light"){return e==="dark"?{main:lh[400],light:lh[300],dark:lh[700]}:{main:lh[700],light:lh[500],dark:lh[900]}}function Dde(e="light"){return e==="dark"?{main:uh[400],light:uh[300],dark:uh[700]}:{main:uh[800],light:uh[500],dark:uh[900]}}function Nde(e="light"){return e==="dark"?{main:p0[400],light:p0[300],dark:p0[700]}:{main:"#ed6c02",light:p0[500],dark:p0[900]}}function Pde(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=Ge(e,Cde),o=e.primary||Ade(t),a=e.secondary||_de(t),s=e.error||Rde(t),l=e.info||Ide(t),u=e.success||Dde(t),c=e.warning||Nde(t);function d(b){return ide(b,MC.text.primary)>=n?MC.text.primary:PB.text.primary}const p=({color:b,name:O,mainShade:y=500,lightShade:v=300,darkShade:S=700})=>{if(b=L({},b),!b.main&&b[y]&&(b.main=b[y]),!b.hasOwnProperty("main"))throw new Error(jd(11,O?` (${O})`:"",y));if(typeof b.main!="string")throw new Error(jd(12,O?` (${O})`:"",JSON.stringify(b.main)));return LB(b,"light",v,r),LB(b,"dark",S,r),b.contrastText||(b.contrastText=d(b.main)),b},h={dark:MC,light:PB};return Lo(L({common:L({},Oy),mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:gle,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},h[t]),i)}const Lde=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Mde(e){return Math.round(e*1e5)/1e5}const MB={textTransform:"uppercase"},$B='"Roboto", "Helvetica", "Arial", sans-serif';function $de(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=$B,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=Ge(n,Lde),h=i/14,m=d||(y=>`${y/u*h}rem`),b=(y,v,S,k,C)=>L({fontFamily:r,fontWeight:y,fontSize:m(v),lineHeight:S},r===$B?{letterSpacing:`${Mde(k/v)}em`}:{},C,c),O={h1:b(o,96,1.167,-1.5),h2:b(o,60,1.2,-.5),h3:b(a,48,1.167,0),h4:b(a,34,1.235,.25),h5:b(a,24,1.334,0),h6:b(s,20,1.6,.15),subtitle1:b(a,16,1.75,.15),subtitle2:b(s,14,1.57,.1),body1:b(a,16,1.5,.15),body2:b(a,14,1.43,.15),button:b(s,14,1.75,.4,MB),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,MB),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Lo(L({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},O),p,{clone:!1})}const Fde=.2,Bde=.14,Ude=.12;function jr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Fde})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Bde})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Ude})`].join(",")}const jde=["none",jr(0,2,1,-1,0,1,1,0,0,1,3,0),jr(0,3,1,-2,0,2,2,0,0,1,5,0),jr(0,3,3,-2,0,3,4,0,0,1,8,0),jr(0,2,4,-1,0,4,5,0,0,1,10,0),jr(0,3,5,-1,0,5,8,0,0,1,14,0),jr(0,3,5,-1,0,6,10,0,0,1,18,0),jr(0,4,5,-2,0,7,10,1,0,2,16,1),jr(0,5,5,-3,0,8,10,1,0,3,14,2),jr(0,5,6,-3,0,9,12,1,0,3,16,2),jr(0,6,6,-3,0,10,14,1,0,4,18,3),jr(0,6,7,-4,0,11,15,1,0,4,20,3),jr(0,7,8,-4,0,12,17,2,0,5,22,4),jr(0,7,8,-4,0,13,19,2,0,5,24,4),jr(0,7,9,-4,0,14,21,2,0,5,26,4),jr(0,8,9,-5,0,15,22,2,0,6,28,5),jr(0,8,10,-5,0,16,24,2,0,6,30,5),jr(0,8,11,-5,0,17,26,2,0,6,32,5),jr(0,9,11,-5,0,18,28,2,0,7,34,6),jr(0,9,12,-6,0,19,29,2,0,7,36,6),jr(0,10,13,-6,0,20,31,3,0,8,38,7),jr(0,10,13,-6,0,21,33,3,0,8,40,7),jr(0,10,14,-6,0,22,35,3,0,8,42,7),jr(0,11,14,-7,0,23,36,3,0,9,44,8),jr(0,11,15,-7,0,24,38,3,0,9,46,8)],zde=["duration","easing","delay"],Vde={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)"},GQ={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function FB(e){return`${Math.round(e)}ms`}function Hde(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Wde(e){const t=L({},Vde,e.easing),n=L({},GQ,e.duration);return L({getAutoHeightDuration:Hde,create:(i=["all"],o={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0}=o;return Ge(o,zde),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof a=="string"?a:FB(a)} ${s} ${typeof l=="string"?l:FB(l)}`).join(",")}},e,{easing:t,duration:n})}const Qde={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Yde=Qde,Gde=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function wN(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=Ge(e,Gde);if(e.vars)throw new Error(jd(18));const s=Pde(r),l=z1(e);let u=Lo(l,{mixins:xde(l.breakpoints,n),palette:s,shadows:jde.slice(),typography:$de(s,o),transitions:Wde(i),zIndex:L({},Yde)});return u=Lo(u,a),u=t.reduce((c,d)=>Lo(c,d),u),u.unstable_sxConfig=L({},fk,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return j1({sx:d,theme:this})},u}const qde=wN(),yk=qde;function ci(){const e=Sg(yk);return e[hp]||e}function gt({props:e,name:t}){return SN({props:e,name:t,defaultTheme:yk,themeId:hp})}const Ji=e=>Tb(e)&&e!=="classes",kN=Tb,Se=VQ({themeId:hp,defaultTheme:yk,rootShouldForwardProp:Ji}),Zde=["theme"];function Xde(e){let{theme:t}=e,n=Ge(e,Zde);const r=t[hp];return P.jsx(dde,L({},n,{themeId:r?hp:void 0,theme:r||t}))}const BB=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Kde(e){return At("MuiSvgIcon",e)}_t("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Jde=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],efe=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${nt(t)}`,`fontSize${nt(n)}`]};return kt(i,Kde,r)},tfe=Se("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${nt(n.color)}`],t[`fontSize${nt(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,a,s,l,u,c,d,p,h,m;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:((o=e.typography)==null||(a=o.pxToRem)==null?void 0:a.call(o,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(d=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?d:{action:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.disabled,inherit:void 0}[t.color]}}),zd=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:p="0 0 24 24"}=r,h=Ge(r,Jde),m=I.isValidElement(i)&&i.type==="svg",b=L({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:m}),O={};c||(O.viewBox=p);const y=efe(b);return P.jsxs(tfe,L({as:s,className:Je(y.root,o),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},O,h,m&&i.props,{ownerState:b,children:[m?i.props.children:i,d?P.jsx("title",{children:d}):null]}))});zd.muiName="SvgIcon";function ki(e,t){function n(r,i){return P.jsx(zd,L({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=zd.muiName,I.memo(I.forwardRef(n))}const nfe={configure:e=>{gN.configure(e)}},rfe=Object.freeze(Object.defineProperty({__proto__:null,capitalize:nt,createChainedFunction:ZS,createSvgIcon:ki,debounce:Eg,deprecatedPropType:Aue,isMuiElement:Eb,ownerDocument:yr,ownerWindow:Js,requirePropFactory:_ue,setRef:Ty,unstable_ClassNameGenerator:nfe,unstable_useEnhancedEffect:Kr,unstable_useId:$l,unsupportedProp:Iue,useControlled:Xi,useEventCallback:jt,useForkRef:yn,useIsFocusVisible:ik},Symbol.toStringTag,{value:"Module"}));function N_(e,t){return N_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},N_(e,t)}function xN(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,N_(e,t)}function ife(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function ofe(e,t){e.classList?e.classList.add(t):ife(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function UB(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function afe(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=UB(e.className,t):e.setAttribute("class",UB(e.className&&e.className.baseVal||"",t))}const jB={disabled:!1},eT=Qt.createContext(null);var qQ=function(t){return t.scrollTop},K0="unmounted",_f="exited",Rf="entering",vh="entered",P_="exiting",Ac=function(e){xN(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,s=a&&!a.isMounting?r.enter:r.appear,l;return o.appearStatus=null,r.in?s?(l=_f,o.appearStatus=Rf):l=vh:r.unmountOnExit||r.mountOnEnter?l=K0:l=_f,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===K0?{status:_f}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==Rf&&a!==vh&&(o=Rf):(a===Rf||a===vh)&&(o=P_)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===Rf){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:X0.findDOMNode(this);a&&qQ(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===_f&&this.setState({status:K0})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[X0.findDOMNode(this),s],u=l[0],c=l[1],d=this.getTimeouts(),p=s?d.appear:d.enter;if(!i&&!a||jB.disabled){this.safeSetState({status:vh},function(){o.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Rf},function(){o.props.onEntering(u,c),o.onTransitionEnd(p,function(){o.safeSetState({status:vh},function(){o.props.onEntered(u,c)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:X0.findDOMNode(this);if(!o||jB.disabled){this.safeSetState({status:_f},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:P_},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:_f},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:X0.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===K0)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=Ge(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Qt.createElement(eT.Provider,{value:null},typeof a=="function"?a(i,s):Qt.cloneElement(Qt.Children.only(a),s))},t}(Qt.Component);Ac.contextType=eT;Ac.propTypes={};function dh(){}Ac.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:dh,onEntering:dh,onEntered:dh,onExit:dh,onExiting:dh,onExited:dh};Ac.UNMOUNTED=K0;Ac.EXITED=_f;Ac.ENTERING=Rf;Ac.ENTERED=vh;Ac.EXITING=P_;const V1=Ac;var sfe=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return ofe(t,r)})},$C=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return afe(t,r)})},CN=function(e){xN(t,e);function t(){for(var r,i=arguments.length,o=new Array(i),a=0;ae.scrollTop;function Vd(e,t){var n,r;const{timeout:i,easing:o,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof o=="object"?o[t.mode]:o,delay:a.transitionDelay}}function mfe(e){return At("MuiCollapse",e)}_t("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const gfe=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],bfe=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return kt(r,mfe,n)},yfe=Se("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})=>L({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&L({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),Ofe=Se("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>L({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),vfe=Se("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>L({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),ZQ=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiCollapse"}),{addEndListener:i,children:o,className:a,collapsedSize:s="0px",component:l,easing:u,in:c,onEnter:d,onEntered:p,onEntering:h,onExit:m,onExited:b,onExiting:O,orientation:y="vertical",style:v,timeout:S=GQ.standard,TransitionComponent:k=V1}=r,C=Ge(r,gfe),w=L({},r,{orientation:y,collapsedSize:s}),E=bfe(w),$=ci(),N=I.useRef(),R=I.useRef(null),B=I.useRef(),U=typeof s=="number"?`${s}px`:s,V=y==="horizontal",z=V?"width":"height";I.useEffect(()=>()=>{clearTimeout(N.current)},[]);const W=I.useRef(null),X=yn(n,W),q=ue=>xe=>{if(ue){const Ne=W.current;xe===void 0?ue(Ne):ue(Ne,xe)}},Y=()=>R.current?R.current[V?"clientWidth":"clientHeight"]:0,Z=q((ue,xe)=>{R.current&&V&&(R.current.style.position="absolute"),ue.style[z]=U,d&&d(ue,xe)}),j=q((ue,xe)=>{const Ne=Y();R.current&&V&&(R.current.style.position="");const{duration:Ve,easing:Ke}=Vd({style:v,timeout:S,easing:u},{mode:"enter"});if(S==="auto"){const Me=$.transitions.getAutoHeightDuration(Ne);ue.style.transitionDuration=`${Me}ms`,B.current=Me}else ue.style.transitionDuration=typeof Ve=="string"?Ve:`${Ve}ms`;ue.style[z]=`${Ne}px`,ue.style.transitionTimingFunction=Ke,h&&h(ue,xe)}),se=q((ue,xe)=>{ue.style[z]="auto",p&&p(ue,xe)}),ve=q(ue=>{ue.style[z]=`${Y()}px`,m&&m(ue)}),G=q(b),ce=q(ue=>{const xe=Y(),{duration:Ne,easing:Ve}=Vd({style:v,timeout:S,easing:u},{mode:"exit"});if(S==="auto"){const Ke=$.transitions.getAutoHeightDuration(xe);ue.style.transitionDuration=`${Ke}ms`,B.current=Ke}else ue.style.transitionDuration=typeof Ne=="string"?Ne:`${Ne}ms`;ue.style[z]=U,ue.style.transitionTimingFunction=Ve,O&&O(ue)}),ge=ue=>{S==="auto"&&(N.current=setTimeout(ue,B.current||0)),i&&i(W.current,ue)};return P.jsx(k,L({in:c,onEnter:Z,onEntered:se,onEntering:j,onExit:ve,onExited:G,onExiting:ce,addEndListener:ge,nodeRef:W,timeout:S==="auto"?null:S},C,{children:(ue,xe)=>P.jsx(yfe,L({as:l,className:Je(E.root,a,{entered:E.entered,exited:!c&&U==="0px"&&E.hidden}[ue]),style:L({[V?"minWidth":"minHeight"]:U},v),ownerState:L({},w,{state:ue}),ref:X},xe,{children:P.jsx(Ofe,{ownerState:L({},w,{state:ue}),className:E.wrapper,ref:R,children:P.jsx(vfe,{ownerState:L({},w,{state:ue}),className:E.wrapperInner,children:o})})}))}))});ZQ.muiSupportAuto=!0;const Efe=ZQ;function Sfe(e){return At("MuiPaper",e)}_t("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 Tfe=["className","component","elevation","square","variant"],wfe=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return kt(o,Sfe,i)},kfe=Se("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 L({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"&&L({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${cn("#fff",BB(t.elevation))}, ${cn("#fff",BB(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),xfe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPaper"}),{className:i,component:o="div",elevation:a=1,square:s=!1,variant:l="elevation"}=r,u=Ge(r,Tfe),c=L({},r,{component:o,elevation:a,square:s,variant:l}),d=wfe(c);return P.jsx(kfe,L({as:o,ownerState:c,className:Je(d.root,i),ref:n},u))}),Na=xfe;function ku(e){return typeof e=="string"}function J0(e,t,n){return e===void 0||ku(e)?t:L({},t,{ownerState:L({},t.ownerState,n)})}function Cfe(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const Afe={disableDefaultClasses:!1},_fe=I.createContext(Afe);function Rfe(e){const{disableDefaultClasses:t}=I.useContext(_fe);return n=>t?"":e(n)}function wb(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 rf(e,t,n){return typeof e=="function"?e(t,n):e}function zB(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 Ife(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const h=Je(n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),m=L({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),b=L({},n,i,r);return h.length>0&&(b.className=h),Object.keys(m).length>0&&(b.style=m),{props:b,internalRef:void 0}}const a=wb(L({},i,r)),s=zB(r),l=zB(i),u=t(a),c=Je(u==null?void 0:u.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),d=L({},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=L({},u,n,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}const Dfe=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function kn(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,a=Ge(e,Dfe),s=o?{}:rf(r,i),{props:l,internalRef:u}=Ife(L({},a,{externalSlotProps:s})),c=yn(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return J0(n,L({},l,{ref:c}),i)}function Nfe(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:l,timeout:u}=e,[c,d]=I.useState(!1),p=Je(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:a,height:a,top:-(a/2)+o,left:-(a/2)+i},m=Je(n.child,c&&n.childLeaving,r&&n.childPulsate);return!s&&!c&&d(!0),I.useEffect(()=>{if(!s&&l!=null){const b=setTimeout(l,u);return()=>{clearTimeout(b)}}},[l,s,u]),P.jsx("span",{className:p,style:h,children:P.jsx("span",{className:m})})}const Ns=_t("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Pfe=["center","classes","className"];let Ok=e=>e,VB,HB,WB,QB;const L_=550,Lfe=80,Mfe=B1(VB||(VB=Ok` + */var yN=Symbol.for("react.element"),ON=Symbol.for("react.portal"),qw=Symbol.for("react.fragment"),Zw=Symbol.for("react.strict_mode"),Xw=Symbol.for("react.profiler"),Kw=Symbol.for("react.provider"),Jw=Symbol.for("react.context"),Pue=Symbol.for("react.server_context"),ek=Symbol.for("react.forward_ref"),tk=Symbol.for("react.suspense"),nk=Symbol.for("react.suspense_list"),rk=Symbol.for("react.memo"),ik=Symbol.for("react.lazy"),Lue=Symbol.for("react.offscreen"),HQ;HQ=Symbol.for("react.module.reference");function nl(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case yN:switch(e=e.type,e){case qw:case Xw:case Zw:case tk:case nk:return e;default:switch(e=e&&e.$$typeof,e){case Pue:case Jw:case ek:case ik:case rk:case Kw:return e;default:return t}}case ON:return t}}}hr.ContextConsumer=Jw;hr.ContextProvider=Kw;hr.Element=yN;hr.ForwardRef=ek;hr.Fragment=qw;hr.Lazy=ik;hr.Memo=rk;hr.Portal=ON;hr.Profiler=Xw;hr.StrictMode=Zw;hr.Suspense=tk;hr.SuspenseList=nk;hr.isAsyncMode=function(){return!1};hr.isConcurrentMode=function(){return!1};hr.isContextConsumer=function(e){return nl(e)===Jw};hr.isContextProvider=function(e){return nl(e)===Kw};hr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===yN};hr.isForwardRef=function(e){return nl(e)===ek};hr.isFragment=function(e){return nl(e)===qw};hr.isLazy=function(e){return nl(e)===ik};hr.isMemo=function(e){return nl(e)===rk};hr.isPortal=function(e){return nl(e)===ON};hr.isProfiler=function(e){return nl(e)===Xw};hr.isStrictMode=function(e){return nl(e)===Zw};hr.isSuspense=function(e){return nl(e)===tk};hr.isSuspenseList=function(e){return nl(e)===nk};hr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===qw||e===Xw||e===Zw||e===tk||e===nk||e===Lue||typeof e=="object"&&e!==null&&(e.$$typeof===ik||e.$$typeof===rk||e.$$typeof===Kw||e.$$typeof===Jw||e.$$typeof===ek||e.$$typeof===HQ||e.getModuleId!==void 0)};hr.typeOf=nl;const Mue=Q.oneOfType([Q.func,Q.object]),Eg=Mue;function nt(e){if(typeof e!="string")throw new Error(zd(7));return e.charAt(0).toUpperCase()+e.slice(1)}function KS(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function Sg(e,t=166){let n;function r(...i){const o=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function $ue(e,t){return()=>null}function Tb(e,t){var n,r;return I.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 Or(e){return e&&e.ownerDocument||document}function Js(e){return Or(e).defaultView||window}function Fue(e,t){return()=>null}function xy(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Jr=typeof window<"u"?I.useLayoutEffect:I.useEffect;let DB=0;function Bue(e){const[t,n]=I.useState(e),r=e||t;return I.useEffect(()=>{t==null&&(DB+=1,n(`mui-${DB}`))},[t]),r}const NB=jm.useId;function $l(e){if(NB!==void 0){const t=NB();return e??t}return Bue(e)}function Uue(e,t,n,r,i){return null}function Xi({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=I.useRef(e!==void 0),[o,a]=I.useState(t),s=i?e:o,l=I.useCallback(u=>{i||a(u)},[]);return[s,l]}function jt(e){const t=I.useRef(e);return Jr(()=>{t.current=e}),I.useRef((...n)=>(0,t.current)(...n)).current}function yn(...e){return I.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{xy(n,t)})},e)}let ok=!0,N_=!1,PB;const jue={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 zue(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&jue[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Vue(e){e.metaKey||e.altKey||e.ctrlKey||(ok=!0)}function FC(){ok=!1}function Hue(){this.visibilityState==="hidden"&&N_&&(ok=!0)}function Wue(e){e.addEventListener("keydown",Vue,!0),e.addEventListener("mousedown",FC,!0),e.addEventListener("pointerdown",FC,!0),e.addEventListener("touchstart",FC,!0),e.addEventListener("visibilitychange",Hue,!0)}function Que(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return ok||zue(t)}function ak(){const e=I.useCallback(i=>{i!=null&&Wue(i.ownerDocument)},[]),t=I.useRef(!1);function n(){return t.current?(N_=!0,window.clearTimeout(PB),PB=window.setTimeout(()=>{N_=!1},100),t.current=!1,!0):!1}function r(i){return Que(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function WQ(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let ch;function QQ(){if(ch)return ch;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),ch="reverse",e.scrollLeft>0?ch="default":(e.scrollLeft=1,e.scrollLeft===0&&(ch="negative")),document.body.removeChild(e),ch}function Yue(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(QQ()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const Gue=e=>{const t=I.useRef({});return I.useEffect(()=>{t.current=e}),t.current};function que(e){return I.Children.toArray(e).filter(t=>I.isValidElement(t))}const Zue={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Xue=Zue;function sk(e,t){const n=L({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=L({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},!o||!Object.keys(o)?n[r]=i:!i||!Object.keys(i)?n[r]=o:(n[r]=L({},o),Object.keys(i).forEach(a=>{n[r][a]=sk(i[a],o[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function kt(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,a)=>{if(a){const s=t(a);s!==""&&o.push(s),n&&n[a]&&o.push(n[a])}return o},[]).join(" ")}),r}const LB=e=>e,Kue=()=>{let e=LB;return{configure(t){e=t},generate(t){return e(t)},reset(){e=LB}}},vN=Kue(),YQ={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 At(e,t,n="Mui"){const r=YQ[t];return r?`${n}-${r}`:`${vN.generate(e)}-${t}`}function _t(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=At(e,i,n)}),r}function Oh(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const Jue=["values","unit","step"],ece=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)=>L({},n,{[r.key]:r.val}),{})};function tce(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=Ge(e,Jue),o=ece(t),a=Object.keys(o);function s(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,h){const m=a.indexOf(h);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(m!==-1&&typeof t[a[m]]=="number"?t[a[m]]:h)-r/100}${n})`}function c(p){return a.indexOf(p)+1`@media (min-width:${EN[e]}px)`};function Da(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||MB;return t.reduce((a,s,l)=>(a[o.up(o.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const o=r.breakpoints||MB;return Object.keys(t).reduce((a,s)=>{if(Object.keys(o.values||EN).indexOf(s)!==-1){const l=o.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function GQ(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function qQ(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function ice(e,...t){const n=GQ(e),r=[n,...t].reduce((i,o)=>Mo(i,o),{});return qQ(Object.keys(n),r)}function oce(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((i,o)=>{o{e[i]!=null&&(n[i]=!0)}),n}function op({values:e,breakpoints:t,base:n}){const r=n||oce(e,t),i=Object.keys(r);if(i.length===0)return e;let o;return i.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[o],o=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[o],o=s):a[s]=e,a),{})}function lk(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function JS(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=lk(e,n)||r,t&&(i=t(i,r,e)),i}function Oi(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,u=lk(l,r)||{};return Da(a,s,d=>{let p=JS(u,i,d);return d===p&&typeof d=="string"&&(p=JS(u,i,`${t}${d==="default"?"":nt(d)}`,d)),n===!1?p:{[n]:p}})};return o.propTypes={},o.filterProps=[t],o}function ace(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const sce={m:"margin",p:"padding"},lce={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},$B={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},uce=ace(e=>{if(e.length>2)if($B[e])e=$B[e];else return[e];const[t,n]=e.split(""),r=sce[t],i=lce[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),SN=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],TN=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...SN,...TN];function V1(e,t,n,r){var i;const o=(i=lk(e,t,!1))!=null?i:n;return typeof o=="number"?a=>typeof a=="string"?a:o*a:Array.isArray(o)?a=>typeof a=="string"?a:o[a]:typeof o=="function"?o:()=>{}}function wN(e){return V1(e,"spacing",8)}function mp(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 cce(e,t){return n=>e.reduce((r,i)=>(r[i]=mp(t,n),r),{})}function dce(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=uce(n),o=cce(i,r),a=e[n];return Da(e,a,o)}function ZQ(e,t){const n=wN(e.theme);return Object.keys(e).map(r=>dce(e,t,r,n)).reduce(wb,{})}function ii(e){return ZQ(e,SN)}ii.propTypes={};ii.filterProps=SN;function oi(e){return ZQ(e,TN)}oi.propTypes={};oi.filterProps=TN;function fce(e=8){if(e.mui)return e;const t=wN({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function uk(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?wb(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Ms(e){return typeof e!="number"?e:`${e}px solid`}function rl(e,t){return Oi({prop:e,themeKey:"borders",transform:t})}const pce=rl("border",Ms),hce=rl("borderTop",Ms),mce=rl("borderRight",Ms),gce=rl("borderBottom",Ms),bce=rl("borderLeft",Ms),yce=rl("borderColor"),Oce=rl("borderTopColor"),vce=rl("borderRightColor"),Ece=rl("borderBottomColor"),Sce=rl("borderLeftColor"),Tce=rl("outline",Ms),wce=rl("outlineColor"),ck=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=V1(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:mp(t,r)});return Da(e,e.borderRadius,n)}return null};ck.propTypes={};ck.filterProps=["borderRadius"];uk(pce,hce,mce,gce,bce,yce,Oce,vce,Ece,Sce,ck,Tce,wce);const dk=e=>{if(e.gap!==void 0&&e.gap!==null){const t=V1(e.theme,"spacing",8),n=r=>({gap:mp(t,r)});return Da(e,e.gap,n)}return null};dk.propTypes={};dk.filterProps=["gap"];const fk=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=V1(e.theme,"spacing",8),n=r=>({columnGap:mp(t,r)});return Da(e,e.columnGap,n)}return null};fk.propTypes={};fk.filterProps=["columnGap"];const pk=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=V1(e.theme,"spacing",8),n=r=>({rowGap:mp(t,r)});return Da(e,e.rowGap,n)}return null};pk.propTypes={};pk.filterProps=["rowGap"];const kce=Oi({prop:"gridColumn"}),xce=Oi({prop:"gridRow"}),Cce=Oi({prop:"gridAutoFlow"}),Ace=Oi({prop:"gridAutoColumns"}),_ce=Oi({prop:"gridAutoRows"}),Rce=Oi({prop:"gridTemplateColumns"}),Ice=Oi({prop:"gridTemplateRows"}),Dce=Oi({prop:"gridTemplateAreas"}),Nce=Oi({prop:"gridArea"});uk(dk,fk,pk,kce,xce,Cce,Ace,_ce,Rce,Ice,Dce,Nce);function lm(e,t){return t==="grey"?t:e}const Pce=Oi({prop:"color",themeKey:"palette",transform:lm}),Lce=Oi({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:lm}),Mce=Oi({prop:"backgroundColor",themeKey:"palette",transform:lm});uk(Pce,Lce,Mce);function rs(e){return e<=1&&e!==0?`${e*100}%`:e}const $ce=Oi({prop:"width",transform:rs}),kN=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const o=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||EN[n];return o?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:rs(n)}};return Da(e,e.maxWidth,t)}return null};kN.filterProps=["maxWidth"];const Fce=Oi({prop:"minWidth",transform:rs}),Bce=Oi({prop:"height",transform:rs}),Uce=Oi({prop:"maxHeight",transform:rs}),jce=Oi({prop:"minHeight",transform:rs});Oi({prop:"size",cssProperty:"width",transform:rs});Oi({prop:"size",cssProperty:"height",transform:rs});const zce=Oi({prop:"boxSizing"});uk($ce,kN,Fce,Bce,Uce,jce,zce);const Vce={border:{themeKey:"borders",transform:Ms},borderTop:{themeKey:"borders",transform:Ms},borderRight:{themeKey:"borders",transform:Ms},borderBottom:{themeKey:"borders",transform:Ms},borderLeft:{themeKey:"borders",transform:Ms},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ms},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ck},color:{themeKey:"palette",transform:lm},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:lm},backgroundColor:{themeKey:"palette",transform:lm},p:{style:oi},pt:{style:oi},pr:{style:oi},pb:{style:oi},pl:{style:oi},px:{style:oi},py:{style:oi},padding:{style:oi},paddingTop:{style:oi},paddingRight:{style:oi},paddingBottom:{style:oi},paddingLeft:{style:oi},paddingX:{style:oi},paddingY:{style:oi},paddingInline:{style:oi},paddingInlineStart:{style:oi},paddingInlineEnd:{style:oi},paddingBlock:{style:oi},paddingBlockStart:{style:oi},paddingBlockEnd:{style:oi},m:{style:ii},mt:{style:ii},mr:{style:ii},mb:{style:ii},ml:{style:ii},mx:{style:ii},my:{style:ii},margin:{style:ii},marginTop:{style:ii},marginRight:{style:ii},marginBottom:{style:ii},marginLeft:{style:ii},marginX:{style:ii},marginY:{style:ii},marginInline:{style:ii},marginInlineStart:{style:ii},marginInlineEnd:{style:ii},marginBlock:{style:ii},marginBlockStart:{style:ii},marginBlockEnd:{style:ii},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:dk},rowGap:{style:pk},columnGap:{style:fk},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:rs},maxWidth:{style:kN},minWidth:{transform:rs},height:{transform:rs},maxHeight:{transform:rs},minHeight:{transform:rs},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},hk=Vce;function Hce(...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 Wce(e,t){return typeof e=="function"?e(t):e}function Qce(){function e(n,r,i,o){const a={[n]:r,theme:i},s=o[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:d}=s;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=lk(i,u)||{};return d?d(a):Da(a,r,m=>{let b=JS(p,c,m);return m===b&&typeof m=="string"&&(b=JS(p,c,`${n}${m==="default"?"":nt(m)}`,m)),l===!1?b:{[l]:b}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const a=(r=o.unstable_sxConfig)!=null?r:hk;function s(l){let u=l;if(typeof l=="function")u=l(o);else if(typeof l!="object")return l;if(!u)return null;const c=GQ(o.breakpoints),d=Object.keys(c);let p=c;return Object.keys(u).forEach(h=>{const m=Wce(u[h],o);if(m!=null)if(typeof m=="object")if(a[h])p=wb(p,e(h,m,o,a));else{const b=Da({theme:o},m,O=>({[h]:O}));Hce(b,m)?p[h]=t({sx:m,theme:o}):p=wb(p,b)}else p=wb(p,e(h,m,o,a))}),qQ(d,p)}return Array.isArray(i)?i.map(s):s(i)}return t}const H1=Qce();H1.filterProps=["sx"];const Yce=["breakpoints","palette","spacing","shape"];function W1(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=Ge(e,Yce),s=tce(n),l=fce(i);let u=Mo({breakpoints:s,direction:"ltr",components:{},palette:L({mode:"light"},r),spacing:l,shape:L({},rce,o)},a);return u=t.reduce((c,d)=>Mo(c,d),u),u.unstable_sxConfig=L({},hk,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return H1({sx:d,theme:this})},u}function Gce(e){return Object.keys(e).length===0}function mk(e=null){const t=I.useContext(Gw);return!t||Gce(t)?e:t}const qce=W1();function Tg(e=qce){return mk(e)}function Zce({styles:e,themeId:t,defaultTheme:n={}}){const r=Tg(n),i=typeof e=="function"?e(t&&r[t]||r):e;return N.jsx(Due,{styles:i})}const Xce=["sx"],Kce=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:hk;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function gk(e){const{sx:t}=e,n=Ge(e,Xce),{systemProps:r,otherProps:i}=Kce(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...a)=>{const s=t(...a);return oc(s)?L({},r,s):r}:o=L({},r,t),L({},i,{sx:o})}function XQ(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;ts!=="theme"&&s!=="sx"&&s!=="as"})(H1);return I.forwardRef(function(l,u){const c=Tg(n),d=gk(l),{className:p,component:h="div"}=d,m=Ge(d,Jce);return N.jsx(o,L({as:h,ref:u,className:Je(p,i?i(r):r),theme:t&&c[t]||c},m))})}const tde=["variant"];function FB(e){return e.length===0}function KQ(e){const{variant:t}=e,n=Ge(e,tde);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=FB(r)?e[i]:nt(e[i]):r+=`${FB(r)?i:nt(i)}${nt(e[i].toString())}`}),r}const nde=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function rde(e){return Object.keys(e).length===0}function ide(e){return typeof e=="string"&&e.charCodeAt(0)>96}const ode=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,eT=e=>{let t=0;const n={};return e&&e.forEach(r=>{let i="";typeof r.props=="function"?(i=`callback${t}`,t+=1):i=KQ(r.props),n[i]=r.style}),n},ade=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),eT(n)},tT=(e,t,n)=>{const{ownerState:r={}}=e,i=[];let o=0;return n&&n.forEach(a=>{let s=!0;if(typeof a.props=="function"){const l=L({},e,r);s=a.props(l)}else Object.keys(a.props).forEach(l=>{r[l]!==a.props[l]&&e[l]!==a.props[l]&&(s=!1)});s&&(typeof a.props=="function"?i.push(t[`callback${o}`]):i.push(t[KQ(a.props)])),typeof a.props=="function"&&(o+=1)}),i},sde=(e,t,n,r)=>{var i;const o=n==null||(i=n.components)==null||(i=i[r])==null?void 0:i.variants;return tT(e,t,o)};function kb(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const lde=W1(),ude=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function UE({defaultTheme:e,theme:t,themeId:n}){return rde(t)?e:t[n]||t}function cde(e){return e?(t,n)=>n[e]:null}const BB=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const i=e(L({},t,{theme:UE(L({},t,{defaultTheme:n,themeId:r}))}));let o;if(i&&i.variants&&(o=i.variants,delete i.variants),o){const a=tT(t,eT(o),o);return[i,...a]}return i};function JQ(e={}){const{themeId:t,defaultTheme:n=lde,rootShouldForwardProp:r=kb,slotShouldForwardProp:i=kb}=e,o=a=>H1(L({},a,{theme:UE(L({},a,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(a,s={})=>{Nue(a,k=>k.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:p=cde(ude(u))}=s,h=Ge(s,nde),m=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,b=d||!1;let O,y=kb;u==="Root"||u==="root"?y=r:u?y=i:ide(a)&&(y=void 0);const v=zQ(a,L({shouldForwardProp:y,label:O},h)),S=(k,...C)=>{const w=C?C.map(R=>{if(typeof R=="function"&&R.__emotion_real!==R)return B=>BB({styledArg:R,props:B,defaultTheme:n,themeId:t});if(oc(R)){let B=R,U;return R&&R.variants&&(U=R.variants,delete B.variants,B=V=>{let z=R;return tT(V,eT(U),U).forEach(X=>{z=Mo(z,X)}),z}),B}return R}):[];let E=k;if(oc(k)){let R;k&&k.variants&&(R=k.variants,delete E.variants,E=B=>{let U=k;return tT(B,eT(R),R).forEach(z=>{U=Mo(U,z)}),U})}else typeof k=="function"&&k.__emotion_real!==k&&(E=R=>BB({styledArg:k,props:R,defaultTheme:n,themeId:t}));l&&p&&w.push(R=>{const B=UE(L({},R,{defaultTheme:n,themeId:t})),U=ode(l,B);if(U){const V={};return Object.entries(U).forEach(([z,W])=>{V[z]=typeof W=="function"?W(L({},R,{theme:B})):W}),p(R,V)}return null}),l&&!m&&w.push(R=>{const B=UE(L({},R,{defaultTheme:n,themeId:t}));return sde(R,ade(l,B),B,l)}),b||w.push(o);const $=w.length-C.length;if(Array.isArray(k)&&$>0){const R=new Array($).fill("");E=[...k,...R],E.raw=[...k.raw,...R]}const P=v(E,...w);return a.muiName&&(P.muiName=a.muiName),P};return v.withConfig&&(S.withConfig=v.withConfig),S}}const eY=JQ();function tY(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:sk(t.components[n].defaultProps,r)}function xN({props:e,name:t,defaultTheme:n,themeId:r}){let i=Tg(n);return r&&(i=i[r]||i),tY({theme:i,name:t,props:e})}function CN(e,t=0,n=1){return Oh(e,t,n)}function dde(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 gp(e){if(e.type)return e;if(e.charAt(0)==="#")return gp(dde(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(zd(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(zd(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function bk(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<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 fde(e){e=gp(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(u,c=(u+n/30)%12)=>i-o*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),bk({type:s,values:l})}function P_(e){e=gp(e);let t=e.type==="hsl"||e.type==="hsla"?gp(fde(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 pde(e,t){const n=P_(e),r=P_(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function cn(e,t){return e=gp(e),t=CN(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,bk(e)}function yk(e,t){if(e=gp(e),t=CN(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 bk(e)}function Ok(e,t){if(e=gp(e),t=CN(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 bk(e)}function hde(e,t=.15){return P_(e)>.5?yk(e,t):Ok(e,t)}const mde=I.createContext(null),nY=mde;function rY(){return I.useContext(nY)}const gde=typeof Symbol=="function"&&Symbol.for,bde=gde?Symbol.for("mui.nested"):"__THEME_NESTED__";function yde(e,t){return typeof t=="function"?t(e):L({},e,t)}function Ode(e){const{children:t,theme:n}=e,r=rY(),i=I.useMemo(()=>{const o=r===null?n:yde(r,n);return o!=null&&(o[bde]=r!==null),o},[n,r]);return N.jsx(nY.Provider,{value:i,children:t})}const UB={};function jB(e,t,n,r=!1){return I.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const o=n(i),a=e?L({},t,{[e]:o}):o;return r?()=>a:a}return e?L({},t,{[e]:n}):L({},t,n)},[e,t,n,r])}function vde(e){const{children:t,theme:n,themeId:r}=e,i=mk(UB),o=rY()||UB,a=jB(r,i,n),s=jB(r,o,n,!0);return N.jsx(Ode,{theme:s,children:N.jsx(Gw.Provider,{value:a,children:t})})}const Ede=["className","component","disableGutters","fixed","maxWidth","classes"],Sde=W1(),Tde=eY("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${nt(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),wde=e=>xN({props:e,name:"MuiContainer",defaultTheme:Sde}),kde=(e,t)=>{const n=l=>At(t,l),{classes:r,fixed:i,disableGutters:o,maxWidth:a}=e,s={root:["root",a&&`maxWidth${nt(String(a))}`,i&&"fixed",o&&"disableGutters"]};return kt(s,n,r)};function xde(e={}){const{createStyledComponent:t=Tde,useThemeProps:n=wde,componentName:r="MuiContainer"}=e,i=t(({theme:a,ownerState:s})=>L({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!s.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}),({theme:a,ownerState:s})=>s.fixed&&Object.keys(a.breakpoints.values).reduce((l,u)=>{const c=u,d=a.breakpoints.values[c];return d!==0&&(l[a.breakpoints.up(c)]={maxWidth:`${d}${a.breakpoints.unit}`}),l},{}),({theme:a,ownerState:s})=>L({},s.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},s.maxWidth&&s.maxWidth!=="xs"&&{[a.breakpoints.up(s.maxWidth)]:{maxWidth:`${a.breakpoints.values[s.maxWidth]}${a.breakpoints.unit}`}}));return I.forwardRef(function(s,l){const u=n(s),{className:c,component:d="div",disableGutters:p=!1,fixed:h=!1,maxWidth:m="lg"}=u,b=Ge(u,Ede),O=L({},u,{component:d,disableGutters:p,fixed:h,maxWidth:m}),y=kde(O,r);return N.jsx(i,L({as:d,ownerState:O,className:Je(y.root,c),ref:l},b))})}const Cde=["component","direction","spacing","divider","children","className","useFlexGap"],Ade=W1(),_de=eY("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Rde(e){return xN({props:e,name:"MuiStack",defaultTheme:Ade})}function Ide(e,t){const n=I.Children.toArray(e).filter(Boolean);return n.reduce((r,i,o)=>(r.push(i),o({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Nde=({ownerState:e,theme:t})=>{let n=L({display:"flex",flexDirection:"column"},Da({theme:t},op({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=wN(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),{}),o=op({values:e.direction,base:i}),a=op({values:e.spacing,base:i});typeof o=="object"&&Object.keys(o).forEach((l,u,c)=>{if(!o[l]){const p=u>0?o[c[u-1]]:"column";o[l]=p}}),n=Mo(n,Da({theme:t},a,(l,u)=>e.useFlexGap?{gap:mp(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Dde(u?o[u]:e.direction)}`]:mp(r,l)}}))}return n=ice(t.breakpoints,n),n};function Pde(e={}){const{createStyledComponent:t=_de,useThemeProps:n=Rde,componentName:r="MuiStack"}=e,i=()=>kt({root:["root"]},l=>At(r,l),{}),o=t(Nde);return I.forwardRef(function(l,u){const c=n(l),d=gk(c),{component:p="div",direction:h="column",spacing:m=0,divider:b,children:O,className:y,useFlexGap:v=!1}=d,S=Ge(d,Cde),k={direction:h,spacing:m,useFlexGap:v},C=i();return N.jsx(o,L({as:p,ownerState:k,ref:u,className:Je(C.root,y)},S,{children:b?Ide(O,b):O}))})}function Lde(e,t){return L({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Mde=["mode","contrastThreshold","tonalOffset"],zB={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:Sy.white,default:Sy.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}},BC={text:{primary:Sy.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:Sy.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 VB(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Ok(e.main,i):t==="dark"&&(e.dark=yk(e.main,o)))}function $de(e="light"){return e==="dark"?{main:sh[200],light:sh[50],dark:sh[400]}:{main:sh[700],light:sh[400],dark:sh[800]}}function Fde(e="light"){return e==="dark"?{main:ah[200],light:ah[50],dark:ah[400]}:{main:ah[500],light:ah[300],dark:ah[700]}}function Bde(e="light"){return e==="dark"?{main:oh[500],light:oh[300],dark:oh[700]}:{main:oh[700],light:oh[400],dark:oh[800]}}function Ude(e="light"){return e==="dark"?{main:lh[400],light:lh[300],dark:lh[700]}:{main:lh[700],light:lh[500],dark:lh[900]}}function jde(e="light"){return e==="dark"?{main:uh[400],light:uh[300],dark:uh[700]}:{main:uh[800],light:uh[500],dark:uh[900]}}function zde(e="light"){return e==="dark"?{main:g0[400],light:g0[300],dark:g0[700]}:{main:"#ed6c02",light:g0[500],dark:g0[900]}}function Vde(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=Ge(e,Mde),o=e.primary||$de(t),a=e.secondary||Fde(t),s=e.error||Bde(t),l=e.info||Ude(t),u=e.success||jde(t),c=e.warning||zde(t);function d(b){return pde(b,BC.text.primary)>=n?BC.text.primary:zB.text.primary}const p=({color:b,name:O,mainShade:y=500,lightShade:v=300,darkShade:S=700})=>{if(b=L({},b),!b.main&&b[y]&&(b.main=b[y]),!b.hasOwnProperty("main"))throw new Error(zd(11,O?` (${O})`:"",y));if(typeof b.main!="string")throw new Error(zd(12,O?` (${O})`:"",JSON.stringify(b.main)));return VB(b,"light",v,r),VB(b,"dark",S,r),b.contrastText||(b.contrastText=d(b.main)),b},h={dark:BC,light:zB};return Mo(L({common:L({},Sy),mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:kle,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},h[t]),i)}const Hde=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Wde(e){return Math.round(e*1e5)/1e5}const HB={textTransform:"uppercase"},WB='"Roboto", "Helvetica", "Arial", sans-serif';function Qde(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=WB,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=Ge(n,Hde),h=i/14,m=d||(y=>`${y/u*h}rem`),b=(y,v,S,k,C)=>L({fontFamily:r,fontWeight:y,fontSize:m(v),lineHeight:S},r===WB?{letterSpacing:`${Wde(k/v)}em`}:{},C,c),O={h1:b(o,96,1.167,-1.5),h2:b(o,60,1.2,-.5),h3:b(a,48,1.167,0),h4:b(a,34,1.235,.25),h5:b(a,24,1.334,0),h6:b(s,20,1.6,.15),subtitle1:b(a,16,1.75,.15),subtitle2:b(s,14,1.57,.1),body1:b(a,16,1.5,.15),body2:b(a,14,1.43,.15),button:b(s,14,1.75,.4,HB),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,HB),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Mo(L({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},O),p,{clone:!1})}const Yde=.2,Gde=.14,qde=.12;function zr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Yde})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Gde})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${qde})`].join(",")}const Zde=["none",zr(0,2,1,-1,0,1,1,0,0,1,3,0),zr(0,3,1,-2,0,2,2,0,0,1,5,0),zr(0,3,3,-2,0,3,4,0,0,1,8,0),zr(0,2,4,-1,0,4,5,0,0,1,10,0),zr(0,3,5,-1,0,5,8,0,0,1,14,0),zr(0,3,5,-1,0,6,10,0,0,1,18,0),zr(0,4,5,-2,0,7,10,1,0,2,16,1),zr(0,5,5,-3,0,8,10,1,0,3,14,2),zr(0,5,6,-3,0,9,12,1,0,3,16,2),zr(0,6,6,-3,0,10,14,1,0,4,18,3),zr(0,6,7,-4,0,11,15,1,0,4,20,3),zr(0,7,8,-4,0,12,17,2,0,5,22,4),zr(0,7,8,-4,0,13,19,2,0,5,24,4),zr(0,7,9,-4,0,14,21,2,0,5,26,4),zr(0,8,9,-5,0,15,22,2,0,6,28,5),zr(0,8,10,-5,0,16,24,2,0,6,30,5),zr(0,8,11,-5,0,17,26,2,0,6,32,5),zr(0,9,11,-5,0,18,28,2,0,7,34,6),zr(0,9,12,-6,0,19,29,2,0,7,36,6),zr(0,10,13,-6,0,20,31,3,0,8,38,7),zr(0,10,13,-6,0,21,33,3,0,8,40,7),zr(0,10,14,-6,0,22,35,3,0,8,42,7),zr(0,11,14,-7,0,23,36,3,0,9,44,8),zr(0,11,15,-7,0,24,38,3,0,9,46,8)],Xde=["duration","easing","delay"],Kde={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)"},iY={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function QB(e){return`${Math.round(e)}ms`}function Jde(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function efe(e){const t=L({},Kde,e.easing),n=L({},iY,e.duration);return L({getAutoHeightDuration:Jde,create:(i=["all"],o={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0}=o;return Ge(o,Xde),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof a=="string"?a:QB(a)} ${s} ${typeof l=="string"?l:QB(l)}`).join(",")}},e,{easing:t,duration:n})}const tfe={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},nfe=tfe,rfe=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function AN(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=Ge(e,rfe);if(e.vars)throw new Error(zd(18));const s=Vde(r),l=W1(e);let u=Mo(l,{mixins:Lde(l.breakpoints,n),palette:s,shadows:Zde.slice(),typography:Qde(s,o),transitions:efe(i),zIndex:L({},nfe)});return u=Mo(u,a),u=t.reduce((c,d)=>Mo(c,d),u),u.unstable_sxConfig=L({},hk,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return H1({sx:d,theme:this})},u}const ife=AN(),vk=ife;function ci(){const e=Tg(vk);return e[hp]||e}function gt({props:e,name:t}){return xN({props:e,name:t,defaultTheme:vk,themeId:hp})}const Ji=e=>kb(e)&&e!=="classes",_N=kb,Se=JQ({themeId:hp,defaultTheme:vk,rootShouldForwardProp:Ji}),ofe=["theme"];function afe(e){let{theme:t}=e,n=Ge(e,ofe);const r=t[hp];return N.jsx(vde,L({},n,{themeId:r?hp:void 0,theme:r||t}))}const YB=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function sfe(e){return At("MuiSvgIcon",e)}_t("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const lfe=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ufe=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${nt(t)}`,`fontSize${nt(n)}`]};return kt(i,sfe,r)},cfe=Se("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${nt(n.color)}`],t[`fontSize${nt(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,a,s,l,u,c,d,p,h,m;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:((o=e.typography)==null||(a=o.pxToRem)==null?void 0:a.call(o,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(d=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?d:{action:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.disabled,inherit:void 0}[t.color]}}),Vd=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:p="0 0 24 24"}=r,h=Ge(r,lfe),m=I.isValidElement(i)&&i.type==="svg",b=L({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:m}),O={};c||(O.viewBox=p);const y=ufe(b);return N.jsxs(cfe,L({as:s,className:Je(y.root,o),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},O,h,m&&i.props,{ownerState:b,children:[m?i.props.children:i,d?N.jsx("title",{children:d}):null]}))});Vd.muiName="SvgIcon";function ki(e,t){function n(r,i){return N.jsx(Vd,L({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=Vd.muiName,I.memo(I.forwardRef(n))}const dfe={configure:e=>{vN.configure(e)}},ffe=Object.freeze(Object.defineProperty({__proto__:null,capitalize:nt,createChainedFunction:KS,createSvgIcon:ki,debounce:Sg,deprecatedPropType:$ue,isMuiElement:Tb,ownerDocument:Or,ownerWindow:Js,requirePropFactory:Fue,setRef:xy,unstable_ClassNameGenerator:dfe,unstable_useEnhancedEffect:Jr,unstable_useId:$l,unsupportedProp:Uue,useControlled:Xi,useEventCallback:jt,useForkRef:yn,useIsFocusVisible:ak},Symbol.toStringTag,{value:"Module"}));function L_(e,t){return L_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},L_(e,t)}function RN(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,L_(e,t)}function pfe(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function hfe(e,t){e.classList?e.classList.add(t):pfe(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function GB(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function mfe(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=GB(e.className,t):e.setAttribute("class",GB(e.className&&e.className.baseVal||"",t))}const qB={disabled:!1},nT=Qt.createContext(null);var oY=function(t){return t.scrollTop},tb="unmounted",_f="exited",Rf="entering",vh="entered",M_="exiting",_c=function(e){RN(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,s=a&&!a.isMounting?r.enter:r.appear,l;return o.appearStatus=null,r.in?s?(l=_f,o.appearStatus=Rf):l=vh:r.unmountOnExit||r.mountOnEnter?l=tb:l=_f,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===tb?{status:_f}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==Rf&&a!==vh&&(o=Rf):(a===Rf||a===vh)&&(o=M_)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===Rf){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:eb.findDOMNode(this);a&&oY(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===_f&&this.setState({status:tb})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[eb.findDOMNode(this),s],u=l[0],c=l[1],d=this.getTimeouts(),p=s?d.appear:d.enter;if(!i&&!a||qB.disabled){this.safeSetState({status:vh},function(){o.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Rf},function(){o.props.onEntering(u,c),o.onTransitionEnd(p,function(){o.safeSetState({status:vh},function(){o.props.onEntered(u,c)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:eb.findDOMNode(this);if(!o||qB.disabled){this.safeSetState({status:_f},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:M_},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:_f},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:eb.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===tb)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=Ge(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Qt.createElement(nT.Provider,{value:null},typeof a=="function"?a(i,s):Qt.cloneElement(Qt.Children.only(a),s))},t}(Qt.Component);_c.contextType=nT;_c.propTypes={};function dh(){}_c.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:dh,onEntering:dh,onEntered:dh,onExit:dh,onExiting:dh,onExited:dh};_c.UNMOUNTED=tb;_c.EXITED=_f;_c.ENTERING=Rf;_c.ENTERED=vh;_c.EXITING=M_;const Q1=_c;var gfe=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return hfe(t,r)})},UC=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return mfe(t,r)})},IN=function(e){RN(t,e);function t(){for(var r,i=arguments.length,o=new Array(i),a=0;ae.scrollTop;function Hd(e,t){var n,r;const{timeout:i,easing:o,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof o=="object"?o[t.mode]:o,delay:a.transitionDelay}}function wfe(e){return At("MuiCollapse",e)}_t("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const kfe=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],xfe=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return kt(r,wfe,n)},Cfe=Se("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})=>L({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&L({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),Afe=Se("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>L({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),_fe=Se("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>L({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),aY=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiCollapse"}),{addEndListener:i,children:o,className:a,collapsedSize:s="0px",component:l,easing:u,in:c,onEnter:d,onEntered:p,onEntering:h,onExit:m,onExited:b,onExiting:O,orientation:y="vertical",style:v,timeout:S=iY.standard,TransitionComponent:k=Q1}=r,C=Ge(r,kfe),w=L({},r,{orientation:y,collapsedSize:s}),E=xfe(w),$=ci(),P=I.useRef(),R=I.useRef(null),B=I.useRef(),U=typeof s=="number"?`${s}px`:s,V=y==="horizontal",z=V?"width":"height";I.useEffect(()=>()=>{clearTimeout(P.current)},[]);const W=I.useRef(null),X=yn(n,W),q=ue=>xe=>{if(ue){const Ne=W.current;xe===void 0?ue(Ne):ue(Ne,xe)}},Y=()=>R.current?R.current[V?"clientWidth":"clientHeight"]:0,Z=q((ue,xe)=>{R.current&&V&&(R.current.style.position="absolute"),ue.style[z]=U,d&&d(ue,xe)}),j=q((ue,xe)=>{const Ne=Y();R.current&&V&&(R.current.style.position="");const{duration:Ve,easing:Ke}=Hd({style:v,timeout:S,easing:u},{mode:"enter"});if(S==="auto"){const Me=$.transitions.getAutoHeightDuration(Ne);ue.style.transitionDuration=`${Me}ms`,B.current=Me}else ue.style.transitionDuration=typeof Ve=="string"?Ve:`${Ve}ms`;ue.style[z]=`${Ne}px`,ue.style.transitionTimingFunction=Ke,h&&h(ue,xe)}),se=q((ue,xe)=>{ue.style[z]="auto",p&&p(ue,xe)}),ve=q(ue=>{ue.style[z]=`${Y()}px`,m&&m(ue)}),G=q(b),ce=q(ue=>{const xe=Y(),{duration:Ne,easing:Ve}=Hd({style:v,timeout:S,easing:u},{mode:"exit"});if(S==="auto"){const Ke=$.transitions.getAutoHeightDuration(xe);ue.style.transitionDuration=`${Ke}ms`,B.current=Ke}else ue.style.transitionDuration=typeof Ne=="string"?Ne:`${Ne}ms`;ue.style[z]=U,ue.style.transitionTimingFunction=Ve,O&&O(ue)}),ge=ue=>{S==="auto"&&(P.current=setTimeout(ue,B.current||0)),i&&i(W.current,ue)};return N.jsx(k,L({in:c,onEnter:Z,onEntered:se,onEntering:j,onExit:ve,onExited:G,onExiting:ce,addEndListener:ge,nodeRef:W,timeout:S==="auto"?null:S},C,{children:(ue,xe)=>N.jsx(Cfe,L({as:l,className:Je(E.root,a,{entered:E.entered,exited:!c&&U==="0px"&&E.hidden}[ue]),style:L({[V?"minWidth":"minHeight"]:U},v),ownerState:L({},w,{state:ue}),ref:X},xe,{children:N.jsx(Afe,{ownerState:L({},w,{state:ue}),className:E.wrapper,ref:R,children:N.jsx(_fe,{ownerState:L({},w,{state:ue}),className:E.wrapperInner,children:o})})}))}))});aY.muiSupportAuto=!0;const Rfe=aY;function Ife(e){return At("MuiPaper",e)}_t("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 Dfe=["className","component","elevation","square","variant"],Nfe=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return kt(o,Ife,i)},Pfe=Se("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 L({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"&&L({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${cn("#fff",YB(t.elevation))}, ${cn("#fff",YB(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Lfe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPaper"}),{className:i,component:o="div",elevation:a=1,square:s=!1,variant:l="elevation"}=r,u=Ge(r,Dfe),c=L({},r,{component:o,elevation:a,square:s,variant:l}),d=Nfe(c);return N.jsx(Pfe,L({as:o,ownerState:c,className:Je(d.root,i),ref:n},u))}),la=Lfe;function ku(e){return typeof e=="string"}function nb(e,t,n){return e===void 0||ku(e)?t:L({},t,{ownerState:L({},t.ownerState,n)})}function Mfe(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const $fe={disableDefaultClasses:!1},Ffe=I.createContext($fe);function Bfe(e){const{disableDefaultClasses:t}=I.useContext(Ffe);return n=>t?"":e(n)}function xb(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 of(e,t,n){return typeof e=="function"?e(t,n):e}function ZB(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 Ufe(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const h=Je(n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),m=L({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),b=L({},n,i,r);return h.length>0&&(b.className=h),Object.keys(m).length>0&&(b.style=m),{props:b,internalRef:void 0}}const a=xb(L({},i,r)),s=ZB(r),l=ZB(i),u=t(a),c=Je(u==null?void 0:u.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),d=L({},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=L({},u,n,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}const jfe=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function kn(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,a=Ge(e,jfe),s=o?{}:of(r,i),{props:l,internalRef:u}=Ufe(L({},a,{externalSlotProps:s})),c=yn(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return nb(n,L({},l,{ref:c}),i)}function zfe(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:l,timeout:u}=e,[c,d]=I.useState(!1),p=Je(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:a,height:a,top:-(a/2)+o,left:-(a/2)+i},m=Je(n.child,c&&n.childLeaving,r&&n.childPulsate);return!s&&!c&&d(!0),I.useEffect(()=>{if(!s&&l!=null){const b=setTimeout(l,u);return()=>{clearTimeout(b)}}},[l,s,u]),N.jsx("span",{className:p,style:h,children:N.jsx("span",{className:m})})}const Ns=_t("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Vfe=["center","classes","className"];let Ek=e=>e,XB,KB,JB,e8;const $_=550,Hfe=80,Wfe=z1(XB||(XB=Ek` 0% { transform: scale(0); opacity: 0.1; @@ -62,7 +62,7 @@ Error generating stack: `+o.message+` transform: scale(1); opacity: 0.3; } -`)),$fe=B1(HB||(HB=Ok` +`)),Qfe=z1(KB||(KB=Ek` 0% { opacity: 1; } @@ -70,7 +70,7 @@ Error generating stack: `+o.message+` 100% { opacity: 0; } -`)),Ffe=B1(WB||(WB=Ok` +`)),Yfe=z1(JB||(JB=Ek` 0% { transform: scale(1); } @@ -82,7 +82,7 @@ Error generating stack: `+o.message+` 100% { transform: scale(1); } -`)),Bfe=Se("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Ufe=Se(Nfe,{name:"MuiTouchRipple",slot:"Ripple"})(QB||(QB=Ok` +`)),Gfe=Se("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),qfe=Se(zfe,{name:"MuiTouchRipple",slot:"Ripple"})(e8||(e8=Ek` opacity: 0; position: absolute; @@ -125,8 +125,8 @@ Error generating stack: `+o.message+` animation-iteration-count: infinite; animation-delay: 200ms; } -`),Ns.rippleVisible,Mfe,L_,({theme:e})=>e.transitions.easing.easeInOut,Ns.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Ns.child,Ns.childLeaving,$fe,L_,({theme:e})=>e.transitions.easing.easeInOut,Ns.childPulsate,Ffe,({theme:e})=>e.transitions.easing.easeInOut),jfe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:a}=r,s=Ge(r,Pfe),[l,u]=I.useState([]),c=I.useRef(0),d=I.useRef(null);I.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const p=I.useRef(!1),h=I.useRef(0),m=I.useRef(null),b=I.useRef(null);I.useEffect(()=>()=>{h.current&&clearTimeout(h.current)},[]);const O=I.useCallback(k=>{const{pulsate:C,rippleX:w,rippleY:E,rippleSize:$,cb:N}=k;u(R=>[...R,P.jsx(Ufe,{classes:{ripple:Je(o.ripple,Ns.ripple),rippleVisible:Je(o.rippleVisible,Ns.rippleVisible),ripplePulsate:Je(o.ripplePulsate,Ns.ripplePulsate),child:Je(o.child,Ns.child),childLeaving:Je(o.childLeaving,Ns.childLeaving),childPulsate:Je(o.childPulsate,Ns.childPulsate)},timeout:L_,pulsate:C,rippleX:w,rippleY:E,rippleSize:$},c.current)]),c.current+=1,d.current=N},[o]),y=I.useCallback((k={},C={},w=()=>{})=>{const{pulsate:E=!1,center:$=i||C.pulsate,fakeElement:N=!1}=C;if((k==null?void 0:k.type)==="mousedown"&&p.current){p.current=!1;return}(k==null?void 0:k.type)==="touchstart"&&(p.current=!0);const R=N?null:b.current,B=R?R.getBoundingClientRect():{width:0,height:0,left:0,top:0};let U,V,z;if($||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)U=Math.round(B.width/2),V=Math.round(B.height/2);else{const{clientX:W,clientY:X}=k.touches&&k.touches.length>0?k.touches[0]:k;U=Math.round(W-B.left),V=Math.round(X-B.top)}if($)z=Math.sqrt((2*B.width**2+B.height**2)/3),z%2===0&&(z+=1);else{const W=Math.max(Math.abs((R?R.clientWidth:0)-U),U)*2+2,X=Math.max(Math.abs((R?R.clientHeight:0)-V),V)*2+2;z=Math.sqrt(W**2+X**2)}k!=null&&k.touches?m.current===null&&(m.current=()=>{O({pulsate:E,rippleX:U,rippleY:V,rippleSize:z,cb:w})},h.current=setTimeout(()=>{m.current&&(m.current(),m.current=null)},Lfe)):O({pulsate:E,rippleX:U,rippleY:V,rippleSize:z,cb:w})},[i,O]),v=I.useCallback(()=>{y({},{pulsate:!0})},[y]),S=I.useCallback((k,C)=>{if(clearTimeout(h.current),(k==null?void 0:k.type)==="touchend"&&m.current){m.current(),m.current=null,h.current=setTimeout(()=>{S(k,C)});return}m.current=null,u(w=>w.length>0?w.slice(1):w),d.current=C},[]);return I.useImperativeHandle(n,()=>({pulsate:v,start:y,stop:S}),[v,y,S]),P.jsx(Bfe,L({className:Je(Ns.root,o.root,a),ref:b},s,{children:P.jsx(RN,{component:null,exit:!0,children:l})}))}),zfe=jfe;function Vfe(e){return At("MuiButtonBase",e)}const Hfe=_t("MuiButtonBase",["root","disabled","focusVisible"]),Wfe=["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"],Qfe=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=kt({root:["root",t&&"disabled",n&&"focusVisible"]},Vfe,i);return n&&r&&(a.root+=` ${r}`),a},Yfe=Se("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"},[`&.${Hfe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Gfe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:a,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:h="a",onBlur:m,onClick:b,onContextMenu:O,onDragLeave:y,onFocus:v,onFocusVisible:S,onKeyDown:k,onKeyUp:C,onMouseDown:w,onMouseLeave:E,onMouseUp:$,onTouchEnd:N,onTouchMove:R,onTouchStart:B,tabIndex:U=0,TouchRippleProps:V,touchRippleRef:z,type:W}=r,X=Ge(r,Wfe),q=I.useRef(null),Y=I.useRef(null),Z=yn(Y,z),{isFocusVisibleRef:j,onFocus:se,onBlur:ve,ref:G}=ik(),[ce,ge]=I.useState(!1);u&&ce&&ge(!1),I.useImperativeHandle(i,()=>({focusVisible:()=>{ge(!0),q.current.focus()}}),[]);const[ue,xe]=I.useState(!1);I.useEffect(()=>{xe(!0)},[]);const Ne=ue&&!c&&!u;I.useEffect(()=>{ce&&p&&!c&&ue&&Y.current.pulsate()},[c,p,ce,ue]);function Ve(Te,rt,pt=d){return jt(xt=>(rt&&rt(xt),!pt&&Y.current&&Y.current[Te](xt),!0))}const Ke=Ve("start",w),Me=Ve("stop",O),Ye=Ve("stop",y),ye=Ve("stop",$),ze=Ve("stop",Te=>{ce&&Te.preventDefault(),E&&E(Te)}),$e=Ve("start",B),We=Ve("stop",N),dt=Ve("stop",R),Be=Ve("stop",Te=>{ve(Te),j.current===!1&&ge(!1),m&&m(Te)},!1),re=jt(Te=>{q.current||(q.current=Te.currentTarget),se(Te),j.current===!0&&(ge(!0),S&&S(Te)),v&&v(Te)}),ee=()=>{const Te=q.current;return l&&l!=="button"&&!(Te.tagName==="A"&&Te.href)},J=I.useRef(!1),Re=jt(Te=>{p&&!J.current&&ce&&Y.current&&Te.key===" "&&(J.current=!0,Y.current.stop(Te,()=>{Y.current.start(Te)})),Te.target===Te.currentTarget&&ee()&&Te.key===" "&&Te.preventDefault(),k&&k(Te),Te.target===Te.currentTarget&&ee()&&Te.key==="Enter"&&!u&&(Te.preventDefault(),b&&b(Te))}),Le=jt(Te=>{p&&Te.key===" "&&Y.current&&ce&&!Te.defaultPrevented&&(J.current=!1,Y.current.stop(Te,()=>{Y.current.pulsate(Te)})),C&&C(Te),b&&Te.target===Te.currentTarget&&ee()&&Te.key===" "&&!Te.defaultPrevented&&b(Te)});let De=l;De==="button"&&(X.href||X.to)&&(De=h);const ie={};De==="button"?(ie.type=W===void 0?"button":W,ie.disabled=u):(!X.href&&!X.to&&(ie.role="button"),u&&(ie["aria-disabled"]=u));const fe=yn(n,G,q),de=L({},r,{centerRipple:o,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:U,focusVisible:ce}),Oe=Qfe(de);return P.jsxs(Yfe,L({as:De,className:Je(Oe.root,s),ownerState:de,onBlur:Be,onClick:b,onContextMenu:Me,onFocus:re,onKeyDown:Re,onKeyUp:Le,onMouseDown:Ke,onMouseLeave:ze,onMouseUp:ye,onDragLeave:Ye,onTouchEnd:We,onTouchMove:dt,onTouchStart:$e,ref:fe,tabIndex:u?-1:U,type:W},ie,X,{children:[a,Ne?P.jsx(zfe,L({ref:Z,center:o},V)):null]}))}),hs=Gfe;function qfe(e){return At("MuiIconButton",e)}const Zfe=_t("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Xfe=["edge","children","className","color","disabled","disableFocusRipple","size"],Kfe=e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${nt(r)}`,i&&`edge${nt(i)}`,`size${nt(o)}`]};return kt(a,qfe,t)},Jfe=Se(hs,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${nt(n.color)}`],n.edge&&t[`edge${nt(n.edge)}`],t[`size${nt(n.size)}`]]}})(({theme:e,ownerState:t})=>L({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})`:cn(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 L({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&L({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":L({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(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)},{[`&.${Zfe.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),epe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiIconButton"}),{edge:i=!1,children:o,className:a,color:s="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=r,d=Ge(r,Xfe),p=L({},r,{edge:i,color:s,disabled:l,disableFocusRipple:u,size:c}),h=Kfe(p);return P.jsx(Jfe,L({className:Je(h.root,a),centerRipple:!0,focusRipple:!u,disabled:l,ref:n,ownerState:p},d,{children:o}))}),oa=epe,tpe=ki(P.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 npe(e){return At("MuiTypography",e)}_t("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const rpe=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],ipe=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e,s={root:["root",o,e.align!=="inherit"&&`align${nt(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return kt(s,npe,a)},ope=Se("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${nt(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>L({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})),YB={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ape={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},spe=e=>ape[e]||e,lpe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiTypography"}),i=spe(r.color),o=hk(L({},r,{color:i})),{align:a="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:p="body1",variantMapping:h=YB}=o,m=Ge(o,rpe),b=L({},o,{align:a,color:i,className:s,component:l,gutterBottom:u,noWrap:c,paragraph:d,variant:p,variantMapping:h}),O=l||(d?"p":h[p]||YB[p])||"span",y=ipe(b);return P.jsx(ope,L({as:O,ref:n,ownerState:b,className:Je(y.root,s)},m))}),br=lpe;function upe(e){return At("MuiAppBar",e)}_t("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const cpe=["className","color","enableColorOnDark","position"],dpe=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${nt(t)}`,`position${nt(n)}`]};return kt(i,upe,r)},yv=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,fpe=Se(Na,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${nt(n.position)}`],t[`color${nt(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return L({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&&L({},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"&&L({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&L({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:yv(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:yv(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:yv(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:yv(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),ppe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiAppBar"}),{className:i,color:o="primary",enableColorOnDark:a=!1,position:s="fixed"}=r,l=Ge(r,cpe),u=L({},r,{color:o,position:s,enableColorOnDark:a}),c=dpe(u);return P.jsx(fpe,L({square:!0,component:"header",ownerState:u,elevation:4,className:Je(c.root,i,s==="fixed"&&"mui-fixed"),ref:n},l))}),hpe=ppe,XQ="base";function mpe(e){return`${XQ}--${e}`}function gpe(e,t){return`${XQ}-${e}-${t}`}function KQ(e,t){const n=$Q[t];return n?mpe(n):gpe(e,t)}function bpe(e,t){const n={};return t.forEach(r=>{n[r]=KQ(e,r)}),n}function GB(e){return e.substring(2).toLowerCase()}function ype(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const c=yn(t.ref,s),d=jt(m=>{const b=u.current;u.current=!1;const O=yr(s.current);if(!l.current||!s.current||"clientX"in m&&ype(m,O))return;if(a.current){a.current=!1;return}let y;m.composedPath?y=m.composedPath().indexOf(s.current)>-1:y=!O.documentElement.contains(m.target)||s.current.contains(m.target),!y&&(n||!b)&&i(m)}),p=m=>b=>{u.current=!0;const O=t.props[m];O&&O(b)},h={ref:c};return o!==!1&&(h[o]=p(o)),I.useEffect(()=>{if(o!==!1){const m=GB(o),b=yr(s.current),O=()=>{a.current=!0};return b.addEventListener(m,d),b.addEventListener("touchmove",O),()=>{b.removeEventListener(m,d),b.removeEventListener("touchmove",O)}}},[d,o]),r!==!1&&(h[r]=p(r)),I.useEffect(()=>{if(r!==!1){const m=GB(r),b=yr(s.current);return b.addEventListener(m,d),()=>{b.removeEventListener(m,d)}}},[d,r]),P.jsx(I.Fragment,{children:I.cloneElement(t,h)})}const vpe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Epe(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 Spe(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 Tpe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Spe(e))}function wpe(e){const t=[],n=[];return Array.from(e.querySelectorAll(vpe)).forEach((r,i)=>{const o=Epe(r);o===-1||!Tpe(r)||(o===0?t.push(r):n.push({documentOrder:i,tabIndex:o,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 kpe(){return!0}function JQ(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=wpe,isEnabled:a=kpe,open:s}=e,l=I.useRef(!1),u=I.useRef(null),c=I.useRef(null),d=I.useRef(null),p=I.useRef(null),h=I.useRef(!1),m=I.useRef(null),b=yn(t.ref,m),O=I.useRef(null);I.useEffect(()=>{!s||!m.current||(h.current=!n)},[n,s]),I.useEffect(()=>{if(!s||!m.current)return;const S=yr(m.current);return m.current.contains(S.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),I.useEffect(()=>{if(!s||!m.current)return;const S=yr(m.current),k=E=>{O.current=E,!(r||!a()||E.key!=="Tab")&&S.activeElement===m.current&&E.shiftKey&&(l.current=!0,c.current&&c.current.focus())},C=()=>{const E=m.current;if(E===null)return;if(!S.hasFocus()||!a()||l.current){l.current=!1;return}if(E.contains(S.activeElement)||r&&S.activeElement!==u.current&&S.activeElement!==c.current)return;if(S.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!h.current)return;let $=[];if((S.activeElement===u.current||S.activeElement===c.current)&&($=o(m.current)),$.length>0){var N,R;const B=!!((N=O.current)!=null&&N.shiftKey&&((R=O.current)==null?void 0:R.key)==="Tab"),U=$[0],V=$[$.length-1];typeof U!="string"&&typeof V!="string"&&(B?V.focus():U.focus())}else E.focus()};S.addEventListener("focusin",C),S.addEventListener("keydown",k,!0);const w=setInterval(()=>{S.activeElement&&S.activeElement.tagName==="BODY"&&C()},50);return()=>{clearInterval(w),S.removeEventListener("focusin",C),S.removeEventListener("keydown",k,!0)}},[n,r,i,a,s,o]);const y=S=>{d.current===null&&(d.current=S.relatedTarget),h.current=!0,p.current=S.target;const k=t.props.onFocus;k&&k(S)},v=S=>{d.current===null&&(d.current=S.relatedTarget),h.current=!0};return P.jsxs(I.Fragment,{children:[P.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),I.cloneElement(t,{ref:b,onFocus:y}),P.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}var Ca="top",el="bottom",tl="right",Aa="left",DN="auto",H1=[Ca,el,tl,Aa],qm="start",wy="end",xpe="clippingParents",eY="viewport",m0="popper",Cpe="reference",qB=H1.reduce(function(e,t){return e.concat([t+"-"+qm,t+"-"+wy])},[]),tY=[].concat(H1,[DN]).reduce(function(e,t){return e.concat([t,t+"-"+qm,t+"-"+wy])},[]),Ape="beforeRead",_pe="read",Rpe="afterRead",Ipe="beforeMain",Dpe="main",Npe="afterMain",Ppe="beforeWrite",Lpe="write",Mpe="afterWrite",$pe=[Ape,_pe,Rpe,Ipe,Dpe,Npe,Ppe,Lpe,Mpe];function Ru(e){return e?(e.nodeName||"").toLowerCase():null}function ms(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function bp(e){var t=ms(e).Element;return e instanceof t||e instanceof Element}function Ws(e){var t=ms(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function NN(e){if(typeof ShadowRoot>"u")return!1;var t=ms(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Fpe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!Ws(o)||!Ru(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function Bpe(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],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!Ws(i)||!Ru(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const Upe={name:"applyStyles",enabled:!0,phase:"write",fn:Fpe,effect:Bpe,requires:["computeStyles"]};function xu(e){return e.split("-")[0]}var ap=Math.max,tT=Math.min,Zm=Math.round;function M_(){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 nY(){return!/^((?!chrome|android).)*safari/i.test(M_())}function Xm(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Ws(e)&&(i=e.offsetWidth>0&&Zm(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Zm(r.height)/e.offsetHeight||1);var a=bp(e)?ms(e):window,s=a.visualViewport,l=!nY()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/i,c=(r.top+(l&&s?s.offsetTop:0))/o,d=r.width/i,p=r.height/o;return{width:d,height:p,top:c,right:u+d,bottom:c+p,left:u,x:u,y:c}}function PN(e){var t=Xm(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 rY(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&NN(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function vc(e){return ms(e).getComputedStyle(e)}function jpe(e){return["table","td","th"].indexOf(Ru(e))>=0}function of(e){return((bp(e)?e.ownerDocument:e.document)||window.document).documentElement}function vk(e){return Ru(e)==="html"?e:e.assignedSlot||e.parentNode||(NN(e)?e.host:null)||of(e)}function ZB(e){return!Ws(e)||vc(e).position==="fixed"?null:e.offsetParent}function zpe(e){var t=/firefox/i.test(M_()),n=/Trident/i.test(M_());if(n&&Ws(e)){var r=vc(e);if(r.position==="fixed")return null}var i=vk(e);for(NN(i)&&(i=i.host);Ws(i)&&["html","body"].indexOf(Ru(i))<0;){var o=vc(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function W1(e){for(var t=ms(e),n=ZB(e);n&&jpe(n)&&vc(n).position==="static";)n=ZB(n);return n&&(Ru(n)==="html"||Ru(n)==="body"&&vc(n).position==="static")?t:n||zpe(e)||t}function LN(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function kb(e,t,n){return ap(e,tT(t,n))}function Vpe(e,t,n){var r=kb(e,t,n);return r>n?n:r}function iY(){return{top:0,right:0,bottom:0,left:0}}function oY(e){return Object.assign({},iY(),e)}function aY(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Hpe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,oY(typeof t!="number"?t:aY(t,H1))};function Wpe(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=xu(n.placement),l=LN(s),u=[Aa,tl].indexOf(s)>=0,c=u?"height":"width";if(!(!o||!a)){var d=Hpe(i.padding,n),p=PN(o),h=l==="y"?Ca:Aa,m=l==="y"?el:tl,b=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],O=a[l]-n.rects.reference[l],y=W1(o),v=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,S=b/2-O/2,k=d[h],C=v-p[c]-d[m],w=v/2-p[c]/2+S,E=kb(k,w,C),$=l;n.modifiersData[r]=(t={},t[$]=E,t.centerOffset=E-w,t)}}function Qpe(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)||rY(t.elements.popper,i)&&(t.elements.arrow=i))}const Ype={name:"arrow",enabled:!0,phase:"main",fn:Wpe,effect:Qpe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Km(e){return e.split("-")[1]}var Gpe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qpe(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Zm(n*i)/i||0,y:Zm(r*i)/i||0}}function XB(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=a.x,h=p===void 0?0:p,m=a.y,b=m===void 0?0:m,O=typeof c=="function"?c({x:h,y:b}):{x:h,y:b};h=O.x,b=O.y;var y=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),S=Aa,k=Ca,C=window;if(u){var w=W1(n),E="clientHeight",$="clientWidth";if(w===ms(n)&&(w=of(n),vc(w).position!=="static"&&s==="absolute"&&(E="scrollHeight",$="scrollWidth")),w=w,i===Ca||(i===Aa||i===tl)&&o===wy){k=el;var N=d&&w===C&&C.visualViewport?C.visualViewport.height:w[E];b-=N-r.height,b*=l?1:-1}if(i===Aa||(i===Ca||i===el)&&o===wy){S=tl;var R=d&&w===C&&C.visualViewport?C.visualViewport.width:w[$];h-=R-r.width,h*=l?1:-1}}var B=Object.assign({position:s},u&&Gpe),U=c===!0?qpe({x:h,y:b},ms(n)):{x:h,y:b};if(h=U.x,b=U.y,l){var V;return Object.assign({},B,(V={},V[k]=v?"0":"",V[S]=y?"0":"",V.transform=(C.devicePixelRatio||1)<=1?"translate("+h+"px, "+b+"px)":"translate3d("+h+"px, "+b+"px, 0)",V))}return Object.assign({},B,(t={},t[k]=v?b+"px":"",t[S]=y?h+"px":"",t.transform="",t))}function Zpe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:xu(t.placement),variation:Km(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,XB(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,XB(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 Xpe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Zpe,data:{}};var Ov={passive:!0};function Kpe(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=ms(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",n.update,Ov)}),s&&l.addEventListener("resize",n.update,Ov),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Ov)}),s&&l.removeEventListener("resize",n.update,Ov)}}const Jpe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Kpe,data:{}};var ehe={left:"right",right:"left",bottom:"top",top:"bottom"};function BE(e){return e.replace(/left|right|bottom|top/g,function(t){return ehe[t]})}var the={start:"end",end:"start"};function KB(e){return e.replace(/start|end/g,function(t){return the[t]})}function MN(e){var t=ms(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function $N(e){return Xm(of(e)).left+MN(e).scrollLeft}function nhe(e,t){var n=ms(e),r=of(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=nY();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+$N(e),y:l}}function rhe(e){var t,n=of(e),r=MN(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=ap(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=ap(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+$N(e),l=-r.scrollTop;return vc(i||n).direction==="rtl"&&(s+=ap(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function FN(e){var t=vc(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function sY(e){return["html","body","#document"].indexOf(Ru(e))>=0?e.ownerDocument.body:Ws(e)&&FN(e)?e:sY(vk(e))}function xb(e,t){var n;t===void 0&&(t=[]);var r=sY(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=ms(r),a=i?[o].concat(o.visualViewport||[],FN(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(xb(vk(a)))}function $_(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ihe(e,t){var n=Xm(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 JB(e,t,n){return t===eY?$_(nhe(e,n)):bp(t)?ihe(t,n):$_(rhe(of(e)))}function ohe(e){var t=xb(vk(e)),n=["absolute","fixed"].indexOf(vc(e).position)>=0,r=n&&Ws(e)?W1(e):e;return bp(r)?t.filter(function(i){return bp(i)&&rY(i,r)&&Ru(i)!=="body"}):[]}function ahe(e,t,n,r){var i=t==="clippingParents"?ohe(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,u){var c=JB(e,u,r);return l.top=ap(c.top,l.top),l.right=tT(c.right,l.right),l.bottom=tT(c.bottom,l.bottom),l.left=ap(c.left,l.left),l},JB(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function lY(e){var t=e.reference,n=e.element,r=e.placement,i=r?xu(r):null,o=r?Km(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case Ca:l={x:a,y:t.y-n.height};break;case el:l={x:a,y:t.y+t.height};break;case tl:l={x:t.x+t.width,y:s};break;case Aa:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?LN(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case qm:l[u]=l[u]-(t[c]/2-n[c]/2);break;case wy:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function ky(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?xpe:s,u=n.rootBoundary,c=u===void 0?eY:u,d=n.elementContext,p=d===void 0?m0:d,h=n.altBoundary,m=h===void 0?!1:h,b=n.padding,O=b===void 0?0:b,y=oY(typeof O!="number"?O:aY(O,H1)),v=p===m0?Cpe:m0,S=e.rects.popper,k=e.elements[m?v:p],C=ahe(bp(k)?k:k.contextElement||of(e.elements.popper),l,c,a),w=Xm(e.elements.reference),E=lY({reference:w,element:S,strategy:"absolute",placement:i}),$=$_(Object.assign({},S,E)),N=p===m0?$:w,R={top:C.top-N.top+y.top,bottom:N.bottom-C.bottom+y.bottom,left:C.left-N.left+y.left,right:N.right-C.right+y.right},B=e.modifiersData.offset;if(p===m0&&B){var U=B[i];Object.keys(R).forEach(function(V){var z=[tl,el].indexOf(V)>=0?1:-1,W=[Ca,el].indexOf(V)>=0?"y":"x";R[V]+=U[W]*z})}return R}function she(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?tY:l,c=Km(r),d=c?s?qB:qB.filter(function(m){return Km(m)===c}):H1,p=d.filter(function(m){return u.indexOf(m)>=0});p.length===0&&(p=d);var h=p.reduce(function(m,b){return m[b]=ky(e,{placement:b,boundary:i,rootBoundary:o,padding:a})[xu(b)],m},{});return Object.keys(h).sort(function(m,b){return h[m]-h[b]})}function lhe(e){if(xu(e)===DN)return[];var t=BE(e);return[KB(e),t,KB(t)]}function uhe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,b=n.allowedAutoPlacements,O=t.options.placement,y=xu(O),v=y===O,S=l||(v||!m?[BE(O)]:lhe(O)),k=[O].concat(S).reduce(function(ce,ge){return ce.concat(xu(ge)===DN?she(t,{placement:ge,boundary:c,rootBoundary:d,padding:u,flipVariations:m,allowedAutoPlacements:b}):ge)},[]),C=t.rects.reference,w=t.rects.popper,E=new Map,$=!0,N=k[0],R=0;R=0,W=z?"width":"height",X=ky(t,{placement:B,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),q=z?V?tl:Aa:V?el:Ca;C[W]>w[W]&&(q=BE(q));var Y=BE(q),Z=[];if(o&&Z.push(X[U]<=0),s&&Z.push(X[q]<=0,X[Y]<=0),Z.every(function(ce){return ce})){N=B,$=!1;break}E.set(B,Z)}if($)for(var j=m?3:1,se=function(ge){var ue=k.find(function(xe){var Ne=E.get(xe);if(Ne)return Ne.slice(0,ge).every(function(Ve){return Ve})});if(ue)return N=ue,"break"},ve=j;ve>0;ve--){var G=se(ve);if(G==="break")break}t.placement!==N&&(t.modifiersData[r]._skip=!0,t.placement=N,t.reset=!0)}}const che={name:"flip",enabled:!0,phase:"main",fn:uhe,requiresIfExists:["offset"],data:{_skip:!1}};function e8(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 t8(e){return[Ca,tl,el,Aa].some(function(t){return e[t]>=0})}function dhe(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=ky(t,{elementContext:"reference"}),s=ky(t,{altBoundary:!0}),l=e8(a,r),u=e8(s,i,o),c=t8(l),d=t8(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const fhe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:dhe};function phe(e,t,n){var r=xu(e),i=[Aa,Ca].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Aa,tl].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function hhe(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=tY.reduce(function(c,d){return c[d]=phe(d,t.rects,o),c},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const mhe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:hhe};function ghe(e){var t=e.state,n=e.name;t.modifiersData[n]=lY({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const bhe={name:"popperOffsets",enabled:!0,phase:"read",fn:ghe,data:{}};function yhe(e){return e==="x"?"y":"x"}function Ohe(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,h=p===void 0?!0:p,m=n.tetherOffset,b=m===void 0?0:m,O=ky(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),y=xu(t.placement),v=Km(t.placement),S=!v,k=LN(y),C=yhe(k),w=t.modifiersData.popperOffsets,E=t.rects.reference,$=t.rects.popper,N=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,R=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(w){if(o){var V,z=k==="y"?Ca:Aa,W=k==="y"?el:tl,X=k==="y"?"height":"width",q=w[k],Y=q+O[z],Z=q-O[W],j=h?-$[X]/2:0,se=v===qm?E[X]:$[X],ve=v===qm?-$[X]:-E[X],G=t.elements.arrow,ce=h&&G?PN(G):{width:0,height:0},ge=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:iY(),ue=ge[z],xe=ge[W],Ne=kb(0,E[X],ce[X]),Ve=S?E[X]/2-j-Ne-ue-R.mainAxis:se-Ne-ue-R.mainAxis,Ke=S?-E[X]/2+j+Ne+xe+R.mainAxis:ve+Ne+xe+R.mainAxis,Me=t.elements.arrow&&W1(t.elements.arrow),Ye=Me?k==="y"?Me.clientTop||0:Me.clientLeft||0:0,ye=(V=B==null?void 0:B[k])!=null?V:0,ze=q+Ve-ye-Ye,$e=q+Ke-ye,We=kb(h?tT(Y,ze):Y,q,h?ap(Z,$e):Z);w[k]=We,U[k]=We-q}if(s){var dt,Be=k==="x"?Ca:Aa,re=k==="x"?el:tl,ee=w[C],J=C==="y"?"height":"width",Re=ee+O[Be],Le=ee-O[re],De=[Ca,Aa].indexOf(y)!==-1,ie=(dt=B==null?void 0:B[C])!=null?dt:0,fe=De?Re:ee-E[J]-$[J]-ie+R.altAxis,de=De?ee+E[J]+$[J]-ie-R.altAxis:Le,Oe=h&&De?Vpe(fe,ee,de):kb(h?fe:Re,ee,h?de:Le);w[C]=Oe,U[C]=Oe-ee}t.modifiersData[r]=U}}const vhe={name:"preventOverflow",enabled:!0,phase:"main",fn:Ohe,requiresIfExists:["offset"]};function Ehe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function She(e){return e===ms(e)||!Ws(e)?MN(e):Ehe(e)}function The(e){var t=e.getBoundingClientRect(),n=Zm(t.width)/e.offsetWidth||1,r=Zm(t.height)/e.offsetHeight||1;return n!==1||r!==1}function whe(e,t,n){n===void 0&&(n=!1);var r=Ws(t),i=Ws(t)&&The(t),o=of(t),a=Xm(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ru(t)!=="body"||FN(o))&&(s=She(t)),Ws(t)?(l=Xm(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=$N(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function khe(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function xhe(e){var t=khe(e);return $pe.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Che(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ahe(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 n8={placement:"bottom",modifiers:[],strategy:"absolute"};function r8(){for(var e=arguments.length,t=new Array(e),n=0;n{o||s(Dhe(i)||document.body)},[i,o]),Kr(()=>{if(a&&!o)return Ty(n,a),()=>{Ty(n,null)}},[n,a,o]),o){if(I.isValidElement(r)){const u={ref:l};return I.cloneElement(r,u)}return P.jsx(I.Fragment,{children:r})}return P.jsx(I.Fragment,{children:a&&yg.createPortal(r,a)})}),cY="Popper";function Nhe(e){return KQ(cY,e)}bpe(cY,["root"]);const Phe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Lhe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Mhe(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 F_(e){return typeof e=="function"?e():e}function $he(e){return e.nodeType!==void 0}const Fhe=()=>kt({root:["root"]},Rfe(Nhe)),Bhe={},Uhe=I.forwardRef(function(t,n){var r;const{anchorEl:i,children:o,direction:a,disablePortal:s,modifiers:l,open:u,placement:c,popperOptions:d,popperRef:p,slotProps:h={},slots:m={},TransitionProps:b}=t,O=Ge(t,Phe),y=I.useRef(null),v=yn(y,n),S=I.useRef(null),k=yn(S,p),C=I.useRef(k);Kr(()=>{C.current=k},[k]),I.useImperativeHandle(p,()=>S.current,[]);const w=Mhe(c,a),[E,$]=I.useState(w),[N,R]=I.useState(F_(i));I.useEffect(()=>{S.current&&S.current.forceUpdate()}),I.useEffect(()=>{i&&R(F_(i))},[i]),Kr(()=>{if(!N||!u)return;const W=Y=>{$(Y.placement)};let X=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Y})=>{W(Y)}}];l!=null&&(X=X.concat(l)),d&&d.modifiers!=null&&(X=X.concat(d.modifiers));const q=Ihe(N,y.current,L({placement:w},d,{modifiers:X}));return C.current(q),()=>{q.destroy(),C.current(null)}},[N,s,l,u,d,w]);const B={placement:E};b!==null&&(B.TransitionProps=b);const U=Fhe(),V=(r=m.root)!=null?r:"div",z=kn({elementType:V,externalSlotProps:h.root,externalForwardedProps:O,additionalProps:{role:"tooltip",ref:v},ownerState:t,className:U.root});return P.jsx(V,L({},z,{children:typeof o=="function"?o(B):o}))}),jhe=I.forwardRef(function(t,n){const{anchorEl:r,children:i,container:o,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:u,open:c,placement:d="bottom",popperOptions:p=Bhe,popperRef:h,style:m,transition:b=!1,slotProps:O={},slots:y={}}=t,v=Ge(t,Lhe),[S,k]=I.useState(!0),C=()=>{k(!1)},w=()=>{k(!0)};if(!l&&!c&&(!b||S))return null;let E;if(o)E=o;else if(r){const R=F_(r);E=R&&$he(R)?yr(R).body:yr(null).body}const $=!c&&l&&(!b||S)?"none":void 0,N=b?{in:c,onEnter:C,onExited:w}:void 0;return P.jsx(uY,{disablePortal:s,container:E,children:P.jsx(Uhe,L({anchorEl:r,direction:a,disablePortal:s,modifiers:u,ref:n,open:b?!S:c,placement:d,popperOptions:p,popperRef:h,slotProps:O,slots:y},v,{style:L({position:"fixed",top:0,left:0,display:$},m),TransitionProps:N,children:i}))})});function zhe(e){const t=yr(e);return t.body===e?Js(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Cb(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function i8(e){return parseInt(Js(e).getComputedStyle(e).paddingRight,10)||0}function Vhe(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 o8(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,a=>{const s=o.indexOf(a)===-1,l=!Vhe(a);s&&l&&Cb(a,i)})}function FC(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function Hhe(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(zhe(r)){const a=LQ(yr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${i8(r)+a}px`;const s=yr(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${i8(l)+a}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=yr(r).body;else{const a=r.parentElement,s=Js(r);o=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:a,property:s})=>{o?a.style.setProperty(s,o):a.style.removeProperty(s)})}}function Whe(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Qhe{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&&Cb(t.modalRef,!1);const i=Whe(n);o8(n,t.mount,t.modalRef,i,!0);const o=FC(this.containers,a=>a.container===n);return o!==-1?(this.containers[o].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=FC(this.containers,o=>o.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=Hhe(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=FC(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(r,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&Cb(t.modalRef,n),o8(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const a=o.modals[o.modals.length-1];a.modalRef&&Cb(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Yhe(e){return typeof e=="function"?e():e}function Ghe(e){return e?e.props.hasOwnProperty("in"):!1}const qhe=new Qhe;function Zhe(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=qhe,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,p=I.useRef({}),h=I.useRef(null),m=I.useRef(null),b=yn(m,d),[O,y]=I.useState(!c),v=Ghe(l);let S=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(S=!1);const k=()=>yr(h.current),C=()=>(p.current.modalRef=m.current,p.current.mount=h.current,p.current),w=()=>{i.mount(C(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=jt(()=>{const X=Yhe(t)||k().body;i.add(C(),X),m.current&&w()}),$=I.useCallback(()=>i.isTopModal(C()),[i]),N=jt(X=>{h.current=X,X&&(c&&$()?w():m.current&&Cb(m.current,S))}),R=I.useCallback(()=>{i.remove(C(),S)},[S,i]);I.useEffect(()=>()=>{R()},[R]),I.useEffect(()=>{c?E():(!v||!o)&&R()},[c,R,v,o,E]);const B=X=>q=>{var Y;(Y=X.onKeyDown)==null||Y.call(X,q),!(q.key!=="Escape"||q.which===229||!$())&&(n||(q.stopPropagation(),u&&u(q,"escapeKeyDown")))},U=X=>q=>{var Y;(Y=X.onClick)==null||Y.call(X,q),q.target===q.currentTarget&&u&&u(q,"backdropClick")};return{getRootProps:(X={})=>{const q=wb(e);delete q.onTransitionEnter,delete q.onTransitionExited;const Y=L({},q,X);return L({role:"presentation"},Y,{onKeyDown:B(Y),ref:b})},getBackdropProps:(X={})=>{const q=X;return L({"aria-hidden":!0},q,{onClick:U(q),open:c})},getTransitionProps:()=>{const X=()=>{y(!1),a&&a()},q=()=>{y(!0),s&&s(),o&&R()};return{onEnter:ZS(X,l==null?void 0:l.props.onEnter),onExited:ZS(q,l==null?void 0:l.props.onExited)}},rootRef:b,portalRef:N,isTopModal:$,exited:O,hasTransition:v}}const Xhe=2;function dY(e,t){return e-t}function a8(e,t){var n;const{index:r}=(n=e.reduce((i,o,a)=>{const s=Math.abs(t-o);return i===null||s({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}%`})}},nme=e=>e;let Tv;function l8(){return Tv===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Tv=CSS.supports("touch-action","none"):Tv=!0),Tv}function rme(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:o=!1,marks:a=!1,max:s=100,min:l=0,name:u,onChange:c,onChangeCommitted:d,orientation:p="horizontal",rootRef:h,scale:m=nme,step:b=1,tabIndex:O,value:y}=e,v=I.useRef(),[S,k]=I.useState(-1),[C,w]=I.useState(-1),[E,$]=I.useState(!1),N=I.useRef(0),[R,B]=Xi({controlled:y,default:n??l,name:"Slider"}),U=c&&((ie,fe,de)=>{const Oe=ie.nativeEvent||ie,Te=new Oe.constructor(Oe.type,Oe);Object.defineProperty(Te,"target",{writable:!0,value:{value:fe,name:u}}),c(Te,fe,de)}),V=Array.isArray(R);let z=V?R.slice().sort(dY):[R];z=z.map(ie=>ie==null?l:Oh(ie,l,s));const W=a===!0&&b!==null?[...Array(Math.floor((s-l)/b)+1)].map((ie,fe)=>({value:l+b*fe})):a||[],X=W.map(ie=>ie.value),{isFocusVisibleRef:q,onBlur:Y,onFocus:Z,ref:j}=ik(),[se,ve]=I.useState(-1),G=I.useRef(),ce=yn(j,G),ge=yn(h,ce),ue=ie=>fe=>{var de;const Oe=Number(fe.currentTarget.getAttribute("data-index"));Z(fe),q.current===!0&&ve(Oe),w(Oe),ie==null||(de=ie.onFocus)==null||de.call(ie,fe)},xe=ie=>fe=>{var de;Y(fe),q.current===!1&&ve(-1),w(-1),ie==null||(de=ie.onBlur)==null||de.call(ie,fe)};Kr(()=>{if(r&&G.current.contains(document.activeElement)){var ie;(ie=document.activeElement)==null||ie.blur()}},[r]),r&&S!==-1&&k(-1),r&&se!==-1&&ve(-1);const Ne=ie=>fe=>{var de;(de=ie.onChange)==null||de.call(ie,fe);const Oe=Number(fe.currentTarget.getAttribute("data-index")),Te=z[Oe],rt=X.indexOf(Te);let pt=fe.target.valueAsNumber;if(W&&b==null){const xt=X[X.length-1];pt>xt?pt=xt:pt{const{current:de}=G,{width:Oe,height:Te,bottom:rt,left:pt}=de.getBoundingClientRect();let xt;Ke.indexOf("vertical")===0?xt=(rt-ie.y)/Te:xt=(ie.x-pt)/Oe,Ke.indexOf("-reverse")!==-1&&(xt=1-xt);let et;if(et=Khe(xt,l,s),b)et=eme(et,b,l);else{const qe=a8(X,et);et=X[qe]}et=Oh(et,l,s);let vt=0;if(V){fe?vt=Ve.current:vt=a8(z,et),i&&(et=Oh(et,z[vt-1]||-1/0,z[vt+1]||1/0));const qe=et;et=s8({values:z,newValue:et,index:vt}),i&&fe||(vt=et.indexOf(qe),Ve.current=vt)}return{newValue:et,activeIndex:vt}},Ye=jt(ie=>{const fe=vv(ie,v);if(!fe)return;if(N.current+=1,ie.type==="mousemove"&&ie.buttons===0){ye(ie);return}const{newValue:de,activeIndex:Oe}=Me({finger:fe,move:!0});Ev({sliderRef:G,activeIndex:Oe,setActive:k}),B(de),!E&&N.current>Xhe&&$(!0),U&&!Sv(de,R)&&U(ie,de,Oe)}),ye=jt(ie=>{const fe=vv(ie,v);if($(!1),!fe)return;const{newValue:de}=Me({finger:fe,move:!0});k(-1),ie.type==="touchend"&&w(-1),d&&d(ie,de),v.current=void 0,$e()}),ze=jt(ie=>{if(r)return;l8()||ie.preventDefault();const fe=ie.changedTouches[0];fe!=null&&(v.current=fe.identifier);const de=vv(ie,v);if(de!==!1){const{newValue:Te,activeIndex:rt}=Me({finger:de});Ev({sliderRef:G,activeIndex:rt,setActive:k}),B(Te),U&&!Sv(Te,R)&&U(ie,Te,rt)}N.current=0;const Oe=yr(G.current);Oe.addEventListener("touchmove",Ye,{passive:!0}),Oe.addEventListener("touchend",ye,{passive:!0})}),$e=I.useCallback(()=>{const ie=yr(G.current);ie.removeEventListener("mousemove",Ye),ie.removeEventListener("mouseup",ye),ie.removeEventListener("touchmove",Ye),ie.removeEventListener("touchend",ye)},[ye,Ye]);I.useEffect(()=>{const{current:ie}=G;return ie.addEventListener("touchstart",ze,{passive:l8()}),()=>{ie.removeEventListener("touchstart",ze),$e()}},[$e,ze]),I.useEffect(()=>{r&&$e()},[r,$e]);const We=ie=>fe=>{var de;if((de=ie.onMouseDown)==null||de.call(ie,fe),r||fe.defaultPrevented||fe.button!==0)return;fe.preventDefault();const Oe=vv(fe,v);if(Oe!==!1){const{newValue:rt,activeIndex:pt}=Me({finger:Oe});Ev({sliderRef:G,activeIndex:pt,setActive:k}),B(rt),U&&!Sv(rt,R)&&U(fe,rt,pt)}N.current=0;const Te=yr(G.current);Te.addEventListener("mousemove",Ye,{passive:!0}),Te.addEventListener("mouseup",ye)},dt=nT(V?z[0]:l,l,s),Be=nT(z[z.length-1],l,s)-dt,re=(ie={})=>{const fe=wb(ie),de={onMouseDown:We(fe||{})},Oe=L({},fe,de);return L({},ie,{ref:ge},Oe)},ee=ie=>fe=>{var de;(de=ie.onMouseOver)==null||de.call(ie,fe);const Oe=Number(fe.currentTarget.getAttribute("data-index"));w(Oe)},J=ie=>fe=>{var de;(de=ie.onMouseLeave)==null||de.call(ie,fe),w(-1)};return{active:S,axis:Ke,axisProps:tme,dragging:E,focusedThumbIndex:se,getHiddenInputProps:(ie={})=>{var fe;const de=wb(ie),Oe={onChange:Ne(de||{}),onFocus:ue(de||{}),onBlur:xe(de||{})},Te=L({},de,Oe);return L({tabIndex:O,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":m(s),"aria-valuemin":m(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(fe=e.step)!=null?fe:void 0,disabled:r},ie,Te,{style:L({},zue,{direction:o?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:re,getThumbProps:(ie={})=>{const fe=wb(ie),de={onMouseOver:ee(fe||{}),onMouseLeave:J(fe||{})};return L({},ie,fe,de)},marks:W,open:C,range:V,rootRef:ge,trackLeap:Be,trackOffset:dt,values:z,getThumbStyle:ie=>({pointerEvents:S!==-1&&S!==ie?"none":void 0})}}const ime=["onChange","maxRows","minRows","style","value"];function wv(e){return parseInt(e,10)||0}const ome={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function u8(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const fY=I.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:o=1,style:a,value:s}=t,l=Ge(t,ime),{current:u}=I.useRef(s!=null),c=I.useRef(null),d=yn(n,c),p=I.useRef(null),h=I.useRef(0),[m,b]=I.useState({outerHeightStyle:0}),O=I.useCallback(()=>{const k=c.current,w=Js(k).getComputedStyle(k);if(w.width==="0px")return{outerHeightStyle:0};const E=p.current;E.style.width=w.width,E.value=k.value||t.placeholder||"x",E.value.slice(-1)===` -`&&(E.value+=" ");const $=w.boxSizing,N=wv(w.paddingBottom)+wv(w.paddingTop),R=wv(w.borderBottomWidth)+wv(w.borderTopWidth),B=E.scrollHeight;E.value="x";const U=E.scrollHeight;let V=B;o&&(V=Math.max(Number(o)*U,V)),i&&(V=Math.min(Number(i)*U,V)),V=Math.max(V,U);const z=V+($==="border-box"?N+R:0),W=Math.abs(V-B)<=1;return{outerHeightStyle:z,overflow:W}},[i,o,t.placeholder]),y=(k,C)=>{const{outerHeightStyle:w,overflow:E}=C;return h.current<20&&(w>0&&Math.abs((k.outerHeightStyle||0)-w)>1||k.overflow!==E)?(h.current+=1,{overflow:E,outerHeightStyle:w}):k},v=I.useCallback(()=>{const k=O();u8(k)||b(C=>y(C,k))},[O]);Kr(()=>{const k=()=>{const B=O();u8(B)||yg.flushSync(()=>{b(U=>y(U,B))})},C=()=>{h.current=0,k()};let w;const E=Eg(C),$=c.current,N=Js($);N.addEventListener("resize",E);let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(C),R.observe($)),()=>{E.clear(),cancelAnimationFrame(w),N.removeEventListener("resize",E),R&&R.disconnect()}},[O]),Kr(()=>{v()}),I.useEffect(()=>{h.current=0},[s]);const S=k=>{h.current=0,u||v(),r&&r(k)};return P.jsxs(I.Fragment,{children:[P.jsx("textarea",L({value:s,onChange:S,ref:d,rows:o,style:L({height:m.outerHeightStyle,overflow:m.overflow?"hidden":void 0},a)},l)),P.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:L({},ome.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function c8(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function ame(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:i="any",stringify:o,trim:a=!1}=e;return(s,{inputValue:l,getOptionLabel:u})=>{let c=a?l.trim():l;n&&(c=c.toLowerCase()),t&&(c=c8(c));const d=c?s.filter(p=>{let h=(o||u)(p);return n&&(h=h.toLowerCase()),t&&(h=c8(h)),i==="start"?h.indexOf(c)===0:h.indexOf(c)>-1}):s;return typeof r=="number"?d.slice(0,r):d}}function BC(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 ume(e){const{unstable_isActiveElementInListbox:t=lme,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:o=!1,blurOnSelect:a=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:u="useAutocomplete",defaultValue:c=e.multiple?[]:null,disableClearable:d=!1,disableCloseOnSelect:p=!1,disabled:h,disabledItemsFocusable:m=!1,disableListWrap:b=!1,filterOptions:O=sme,filterSelectedOptions:y=!1,freeSolo:v=!1,getOptionDisabled:S,getOptionKey:k,getOptionLabel:C=Ue=>{var Ce;return(Ce=Ue.label)!=null?Ce:Ue},groupBy:w,handleHomeEndKeys:E=!e.freeSolo,id:$,includeInputInList:N=!1,inputValue:R,isOptionEqualToValue:B=(Ue,Ce)=>Ue===Ce,multiple:U=!1,onChange:V,onClose:z,onHighlightChange:W,onInputChange:X,onOpen:q,open:Y,openOnFocus:Z=!1,options:j,readOnly:se=!1,selectOnFocus:ve=!e.freeSolo,value:G}=e,ce=$l($);let ge=C;ge=Ue=>{const Ce=C(Ue);return typeof Ce!="string"?String(Ce):Ce};const ue=I.useRef(!1),xe=I.useRef(!0),Ne=I.useRef(null),Ve=I.useRef(null),[Ke,Me]=I.useState(null),[Ye,ye]=I.useState(-1),ze=i?0:-1,$e=I.useRef(ze),[We,dt]=Xi({controlled:G,default:c,name:u}),[Be,re]=Xi({controlled:R,default:"",name:u,state:"inputValue"}),[ee,J]=I.useState(!1),Re=I.useCallback((Ue,Ce)=>{if(!(U?We.length!(y&&(U?We:[We]).some(Ce=>Ce!==null&&B(Ue,Ce)))),{inputValue:de&&ie?"":Be,getOptionLabel:ge}):[],rt=Bue({filteredOptions:Te,value:We,inputValue:Be});I.useEffect(()=>{const Ue=We!==rt.value;ee&&!Ue||v&&!Ue||Re(null,We)},[We,Re,ee,rt.value,v]);const pt=Le&&Te.length>0&&!se,xt=jt(Ue=>{Ue===-1?Ne.current.focus():Ke.querySelector(`[data-tag-index="${Ue}"]`).focus()});I.useEffect(()=>{U&&Ye>We.length-1&&(ye(-1),xt(-1))},[We,U,Ye,xt]);function et(Ue,Ce){if(!Ve.current||Ue<0||Ue>=Te.length)return-1;let mt=Ue;for(;;){const Dt=Ve.current.querySelector(`[data-option-index="${mt}"]`),tn=m?!1:!Dt||Dt.disabled||Dt.getAttribute("aria-disabled")==="true";if(Dt&&Dt.hasAttribute("tabindex")&&!tn)return mt;if(Ce==="next"?mt=(mt+1)%Te.length:mt=(mt-1+Te.length)%Te.length,mt===Ue)return-1}}const vt=jt(({event:Ue,index:Ce,reason:mt="auto"})=>{if($e.current=Ce,Ce===-1?Ne.current.removeAttribute("aria-activedescendant"):Ne.current.setAttribute("aria-activedescendant",`${ce}-option-${Ce}`),W&&W(Ue,Ce===-1?null:Te[Ce],mt),!Ve.current)return;const Dt=Ve.current.querySelector(`[role="option"].${n}-focused`);Dt&&(Dt.classList.remove(`${n}-focused`),Dt.classList.remove(`${n}-focusVisible`));let tn=Ve.current;if(Ve.current.getAttribute("role")!=="listbox"&&(tn=Ve.current.parentElement.querySelector('[role="listbox"]')),!tn)return;if(Ce===-1){tn.scrollTop=0;return}const Mn=Ve.current.querySelector(`[data-option-index="${Ce}"]`);if(Mn&&(Mn.classList.add(`${n}-focused`),mt==="keyboard"&&Mn.classList.add(`${n}-focusVisible`),tn.scrollHeight>tn.clientHeight&&mt!=="mouse"&&mt!=="touch")){const Dn=Mn,Kt=tn.clientHeight+tn.scrollTop,bn=Dn.offsetTop+Dn.offsetHeight;bn>Kt?tn.scrollTop=bn-tn.clientHeight:Dn.offsetTop-Dn.offsetHeight*(w?1.3:0){if(!Oe)return;const Mn=et((()=>{const Dn=Te.length-1;if(Ce==="reset")return ze;if(Ce==="start")return 0;if(Ce==="end")return Dn;const Kt=$e.current+Ce;return Kt<0?Kt===-1&&N?-1:b&&$e.current!==-1||Math.abs(Ce)>1?0:Dn:Kt>Dn?Kt===Dn+1&&N?-1:b||Math.abs(Ce)>1?Dn:0:Kt})(),mt);if(vt({index:Mn,reason:Dt,event:Ue}),r&&Ce!=="reset")if(Mn===-1)Ne.current.value=Be;else{const Dn=ge(Te[Mn]);Ne.current.value=Dn,Dn.toLowerCase().indexOf(Be.toLowerCase())===0&&Be.length>0&&Ne.current.setSelectionRange(Be.length,Dn.length)}}),it=()=>{const Ue=(Ce,mt)=>{const Dt=Ce?ge(Ce):"",tn=mt?ge(mt):"";return Dt===tn};if($e.current!==-1&&rt.filteredOptions&&rt.filteredOptions.length!==Te.length&&rt.inputValue===Be&&(U?We.length===rt.value.length&&rt.value.every((Ce,mt)=>ge(We[mt])===ge(Ce)):Ue(rt.value,We))){const Ce=rt.filteredOptions[$e.current];if(Ce&&Te.some(Dt=>ge(Dt)===ge(Ce)))return!0}return!1},Et=I.useCallback(()=>{if(!Oe||it())return;const Ue=U?We[0]:We;if(Te.length===0||Ue==null){qe({diff:"reset"});return}if(Ve.current){if(Ue!=null){const Ce=Te[$e.current];if(U&&Ce&&BC(We,Dt=>B(Ce,Dt))!==-1)return;const mt=BC(Te,Dt=>B(Dt,Ue));mt===-1?qe({diff:"reset"}):vt({index:mt});return}if($e.current>=Te.length-1){vt({index:Te.length-1});return}vt({index:$e.current})}},[Te.length,U?!1:We,y,qe,vt,Oe,Be,U]),Nt=jt(Ue=>{Ty(Ve,Ue),Ue&&Et()});I.useEffect(()=>{Et()},[Et]);const on=Ue=>{Le||(De(!0),fe(!0),q&&q(Ue))},dn=(Ue,Ce)=>{Le&&(De(!1),z&&z(Ue,Ce))},pn=(Ue,Ce,mt,Dt)=>{if(U){if(We.length===Ce.length&&We.every((tn,Mn)=>tn===Ce[Mn]))return}else if(We===Ce)return;V&&V(Ue,Ce,mt,Dt),dt(Ce)},zn=I.useRef(!1),Ee=(Ue,Ce,mt="selectOption",Dt="options")=>{let tn=mt,Mn=Ce;if(U){Mn=Array.isArray(We)?We.slice():[];const Dn=BC(Mn,Kt=>B(Ce,Kt));Dn===-1?Mn.push(Ce):Dt!=="freeSolo"&&(Mn.splice(Dn,1),tn="removeOption")}Re(Ue,Mn),pn(Ue,Mn,tn,{option:Ce}),!p&&(!Ue||!Ue.ctrlKey&&!Ue.metaKey)&&dn(Ue,tn),(a===!0||a==="touch"&&zn.current||a==="mouse"&&!zn.current)&&Ne.current.blur()};function _e(Ue,Ce){if(Ue===-1)return-1;let mt=Ue;for(;;){if(Ce==="next"&&mt===We.length||Ce==="previous"&&mt===-1)return-1;const Dt=Ke.querySelector(`[data-tag-index="${mt}"]`);if(!Dt||!Dt.hasAttribute("tabindex")||Dt.disabled||Dt.getAttribute("aria-disabled")==="true")mt+=Ce==="next"?1:-1;else return mt}}const pe=(Ue,Ce)=>{if(!U)return;Be===""&&dn(Ue,"toggleInput");let mt=Ye;Ye===-1?Be===""&&Ce==="previous"&&(mt=We.length-1):(mt+=Ce==="next"?1:-1,mt<0&&(mt=0),mt===We.length&&(mt=-1)),mt=_e(mt,Ce),ye(mt),xt(mt)},lt=Ue=>{ue.current=!0,re(""),X&&X(Ue,"","clear"),pn(Ue,U?[]:null,"clear")},at=Ue=>Ce=>{if(Ue.onKeyDown&&Ue.onKeyDown(Ce),!Ce.defaultMuiPrevented&&(Ye!==-1&&["ArrowLeft","ArrowRight"].indexOf(Ce.key)===-1&&(ye(-1),xt(-1)),Ce.which!==229))switch(Ce.key){case"Home":Oe&&E&&(Ce.preventDefault(),qe({diff:"start",direction:"next",reason:"keyboard",event:Ce}));break;case"End":Oe&&E&&(Ce.preventDefault(),qe({diff:"end",direction:"previous",reason:"keyboard",event:Ce}));break;case"PageUp":Ce.preventDefault(),qe({diff:-d8,direction:"previous",reason:"keyboard",event:Ce}),on(Ce);break;case"PageDown":Ce.preventDefault(),qe({diff:d8,direction:"next",reason:"keyboard",event:Ce}),on(Ce);break;case"ArrowDown":Ce.preventDefault(),qe({diff:1,direction:"next",reason:"keyboard",event:Ce}),on(Ce);break;case"ArrowUp":Ce.preventDefault(),qe({diff:-1,direction:"previous",reason:"keyboard",event:Ce}),on(Ce);break;case"ArrowLeft":pe(Ce,"previous");break;case"ArrowRight":pe(Ce,"next");break;case"Enter":if($e.current!==-1&&Oe){const mt=Te[$e.current],Dt=S?S(mt):!1;if(Ce.preventDefault(),Dt)return;Ee(Ce,mt,"selectOption"),r&&Ne.current.setSelectionRange(Ne.current.value.length,Ne.current.value.length)}else v&&Be!==""&&de===!1&&(U&&Ce.preventDefault(),Ee(Ce,Be,"createOption","freeSolo"));break;case"Escape":Oe?(Ce.preventDefault(),Ce.stopPropagation(),dn(Ce,"escape")):l&&(Be!==""||U&&We.length>0)&&(Ce.preventDefault(),Ce.stopPropagation(),lt(Ce));break;case"Backspace":if(U&&!se&&Be===""&&We.length>0){const mt=Ye===-1?We.length-1:Ye,Dt=We.slice();Dt.splice(mt,1),pn(Ce,Dt,"removeOption",{option:We[mt]})}break;case"Delete":if(U&&!se&&Be===""&&We.length>0&&Ye!==-1){const mt=Ye,Dt=We.slice();Dt.splice(mt,1),pn(Ce,Dt,"removeOption",{option:We[mt]})}break}},Mt=Ue=>{J(!0),Z&&!ue.current&&on(Ue)},$t=Ue=>{if(t(Ve)){Ne.current.focus();return}J(!1),xe.current=!0,ue.current=!1,o&&$e.current!==-1&&Oe?Ee(Ue,Te[$e.current],"blur"):o&&v&&Be!==""?Ee(Ue,Be,"blur","freeSolo"):s&&Re(Ue,We),dn(Ue,"blur")},It=Ue=>{const Ce=Ue.target.value;Be!==Ce&&(re(Ce),fe(!1),X&&X(Ue,Ce,"input")),Ce===""?!d&&!U&&pn(Ue,null,"clear"):on(Ue)},Ct=Ue=>{const Ce=Number(Ue.currentTarget.getAttribute("data-option-index"));$e.current!==Ce&&vt({event:Ue,index:Ce,reason:"mouse"})},Zt=Ue=>{vt({event:Ue,index:Number(Ue.currentTarget.getAttribute("data-option-index")),reason:"touch"}),zn.current=!0},Ie=Ue=>{const Ce=Number(Ue.currentTarget.getAttribute("data-option-index"));Ee(Ue,Te[Ce],"selectOption"),zn.current=!1},we=Ue=>Ce=>{const mt=We.slice();mt.splice(Ue,1),pn(Ce,mt,"removeOption",{option:We[Ue]})},Qe=Ue=>{Le?dn(Ue,"toggleInput"):on(Ue)},ot=Ue=>{Ue.currentTarget.contains(Ue.target)&&Ue.target.getAttribute("id")!==ce&&Ue.preventDefault()},rn=Ue=>{Ue.currentTarget.contains(Ue.target)&&(Ne.current.focus(),ve&&xe.current&&Ne.current.selectionEnd-Ne.current.selectionStart===0&&Ne.current.select(),xe.current=!1)},Wt=Ue=>{!h&&(Be===""||!Le)&&Qe(Ue)};let mn=v&&Be.length>0;mn=mn||(U?We.length>0:We!==null);let tr=Te;return w&&(tr=Te.reduce((Ue,Ce,mt)=>{const Dt=w(Ce);return Ue.length>0&&Ue[Ue.length-1].group===Dt?Ue[Ue.length-1].options.push(Ce):Ue.push({key:mt,index:mt,group:Dt,options:[Ce]}),Ue},[])),h&&ee&&$t(),{getRootProps:(Ue={})=>L({"aria-owns":pt?`${ce}-listbox`:null},Ue,{onKeyDown:at(Ue),onMouseDown:ot,onClick:rn}),getInputLabelProps:()=>({id:`${ce}-label`,htmlFor:ce}),getInputProps:()=>({id:ce,value:Be,onBlur:$t,onFocus:Mt,onChange:It,onMouseDown:Wt,"aria-activedescendant":Oe?"":null,"aria-autocomplete":r?"both":"list","aria-controls":pt?`${ce}-listbox`:void 0,"aria-expanded":pt,autoComplete:"off",ref:Ne,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:lt}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Qe}),getTagProps:({index:Ue})=>L({key:Ue,"data-tag-index":Ue,tabIndex:-1},!se&&{onDelete:we(Ue)}),getListboxProps:()=>({role:"listbox",id:`${ce}-listbox`,"aria-labelledby":`${ce}-label`,ref:Nt,onMouseDown:Ue=>{Ue.preventDefault()}}),getOptionProps:({index:Ue,option:Ce})=>{var mt;const Dt=(U?We:[We]).some(Mn=>Mn!=null&&B(Ce,Mn)),tn=S?S(Ce):!1;return{key:(mt=k==null?void 0:k(Ce))!=null?mt:ge(Ce),tabIndex:-1,role:"option",id:`${ce}-option-${Ue}`,onMouseMove:Ct,onClick:Ie,onTouchStart:Zt,"data-option-index":Ue,"aria-disabled":tn,"aria-selected":Dt}},id:ce,inputValue:Be,value:We,dirty:mn,expanded:Oe&&Ke,popupOpen:Oe,focused:ee||Ye!==-1,anchorEl:Ke,setAnchorEl:Me,focusedTag:Ye,groupedOptions:tr}}const cme=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],dme=Se(jhe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),fme=I.forwardRef(function(t,n){var r;const i=pk(),o=gt({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:u,container:c,disablePortal:d,keepMounted:p,modifiers:h,open:m,placement:b,popperOptions:O,popperRef:y,transition:v,slots:S,slotProps:k}=o,C=Ge(o,cme),w=(r=S==null?void 0:S.root)!=null?r:l==null?void 0:l.Root,E=L({anchorEl:a,container:c,disablePortal:d,keepMounted:p,modifiers:h,open:m,placement:b,popperOptions:O,popperRef:y,transition:v},C);return P.jsx(dme,L({as:s,direction:i==null?void 0:i.direction,slots:{root:w},slotProps:k??u},E,{ref:n}))}),Q1=fme;function pme(e){return At("MuiListSubheader",e)}_t("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const hme=["className","color","component","disableGutters","disableSticky","inset"],mme=e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:o}=e,a={root:["root",n!=="default"&&`color${nt(n)}`,!r&&"gutters",i&&"inset",!o&&"sticky"]};return kt(a,pme,t)},gme=Se("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${nt(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>L({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})),pY=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiListSubheader"}),{className:i,color:o="default",component:a="li",disableGutters:s=!1,disableSticky:l=!1,inset:u=!1}=r,c=Ge(r,hme),d=L({},r,{color:o,component:a,disableGutters:s,disableSticky:l,inset:u}),p=mme(d);return P.jsx(gme,L({as:a,className:Je(p.root,i),ref:n,ownerState:d},c))});pY.muiSkipListHighlight=!0;const bme=pY,yme=ki(P.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 Ome(e){return At("MuiChip",e)}const vme=_t("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"]),nr=vme,Eme=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],Sme=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:o,onDelete:a,clickable:s,variant:l}=e,u={root:["root",l,n&&"disabled",`size${nt(r)}`,`color${nt(i)}`,s&&"clickable",s&&`clickableColor${nt(i)}`,a&&"deletable",a&&`deletableColor${nt(i)}`,`${l}${nt(i)}`],label:["label",`label${nt(r)}`],avatar:["avatar",`avatar${nt(r)}`,`avatarColor${nt(i)}`],icon:["icon",`icon${nt(r)}`,`iconColor${nt(o)}`],deleteIcon:["deleteIcon",`deleteIcon${nt(r)}`,`deleteIconColor${nt(i)}`,`deleteIcon${nt(l)}Color${nt(i)}`]};return kt(u,Ome,t)},Tme=Se("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:o,onDelete:a,size:s,variant:l}=n;return[{[`& .${nr.avatar}`]:t.avatar},{[`& .${nr.avatar}`]:t[`avatar${nt(s)}`]},{[`& .${nr.avatar}`]:t[`avatarColor${nt(r)}`]},{[`& .${nr.icon}`]:t.icon},{[`& .${nr.icon}`]:t[`icon${nt(s)}`]},{[`& .${nr.icon}`]:t[`iconColor${nt(i)}`]},{[`& .${nr.deleteIcon}`]:t.deleteIcon},{[`& .${nr.deleteIcon}`]:t[`deleteIcon${nt(s)}`]},{[`& .${nr.deleteIcon}`]:t[`deleteIconColor${nt(r)}`]},{[`& .${nr.deleteIcon}`]:t[`deleteIcon${nt(l)}Color${nt(r)}`]},t.root,t[`size${nt(s)}`],t[`color${nt(r)}`],o&&t.clickable,o&&r!=="default"&&t[`clickableColor${nt(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${nt(r)}`],t[l],t[`${l}${nt(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return L({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",[`&.${nr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${nr.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${nr.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${nr.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${nr.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${nr.icon}`]:L({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&L({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${nr.deleteIcon}`]:L({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:cn(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)`:cn(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)`:cn(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&&{[`&.${nr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${nr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>L({},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}))`:cn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${nr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(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, &.${nr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>L({},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]}`,[`&.${nr.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${nr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${nr.avatar}`]:{marginLeft:4},[`& .${nr.avatarSmall}`]:{marginLeft:2},[`& .${nr.icon}`]:{marginLeft:4},[`& .${nr.iconSmall}`]:{marginLeft:2},[`& .${nr.deleteIcon}`]:{marginRight:5},[`& .${nr.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)`:cn(e.palette[t.color].main,.7)}`,[`&.${nr.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${nr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:cn(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${nr.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:cn(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),wme=Se("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${nt(r)}`]]}})(({ownerState:e})=>L({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 f8(e){return e.key==="Backspace"||e.key==="Delete"}const kme=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiChip"}),{avatar:i,className:o,clickable:a,color:s="default",component:l,deleteIcon:u,disabled:c=!1,icon:d,label:p,onClick:h,onDelete:m,onKeyDown:b,onKeyUp:O,size:y="medium",variant:v="filled",tabIndex:S,skipFocusWhenDisabled:k=!1}=r,C=Ge(r,Eme),w=I.useRef(null),E=yn(w,n),$=Z=>{Z.stopPropagation(),m&&m(Z)},N=Z=>{Z.currentTarget===Z.target&&f8(Z)&&Z.preventDefault(),b&&b(Z)},R=Z=>{Z.currentTarget===Z.target&&(m&&f8(Z)?m(Z):Z.key==="Escape"&&w.current&&w.current.blur()),O&&O(Z)},B=a!==!1&&h?!0:a,U=B||m?hs:l||"div",V=L({},r,{component:U,disabled:c,size:y,color:s,iconColor:I.isValidElement(d)&&d.props.color||s,onDelete:!!m,clickable:B,variant:v}),z=Sme(V),W=U===hs?L({component:l||"div",focusVisibleClassName:z.focusVisible},m&&{disableRipple:!0}):{};let X=null;m&&(X=u&&I.isValidElement(u)?I.cloneElement(u,{className:Je(u.props.className,z.deleteIcon),onClick:$}):P.jsx(yme,{className:Je(z.deleteIcon),onClick:$}));let q=null;i&&I.isValidElement(i)&&(q=I.cloneElement(i,{className:Je(z.avatar,i.props.className)}));let Y=null;return d&&I.isValidElement(d)&&(Y=I.cloneElement(d,{className:Je(z.icon,d.props.className)})),P.jsxs(Tme,L({as:U,className:Je(z.root,o),disabled:B&&c?!0:void 0,onClick:h,onKeyDown:N,onKeyUp:R,ref:E,tabIndex:k&&c?-1:S,ownerState:V},W,C,{children:[q||Y,P.jsx(wme,{className:Je(z.label),ownerState:V,children:p}),X]}))}),BN=kme;function af({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 xme=I.createContext(void 0),Ek=xme;function Du(){return I.useContext(Ek)}function hY(e){return P.jsx(jce,L({},e,{defaultTheme:yk,themeId:hp}))}function p8(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function rT(e,t=!1){return e&&(p8(e.value)&&e.value!==""||t&&p8(e.defaultValue)&&e.defaultValue!=="")}function Cme(e){return e.startAdornment}function Ame(e){return At("MuiInputBase",e)}const _me=_t("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Ja=_me,Rme=["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"],Sk=(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${nt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Tk=(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]},Ime=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:h,type:m}=e,b={root:["root",`color${nt(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&p!=="medium"&&`size${nt(p)}`,c&&"multiline",h&&"adornedStart",o&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",m==="search"&&"inputTypeSearch",c&&"inputMultiline",p==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]};return kt(b,Ame,t)},wk=Se("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Sk})(({theme:e,ownerState:t})=>L({},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",[`&.${Ja.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&L({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),kk=Se("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Tk})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=L({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"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return L({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] + .${Ja.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Ja.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"})}),Dme=P.jsx(hY,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Nme=I.forwardRef(function(t,n){var r;const i=gt({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:h,endAdornment:m,fullWidth:b=!1,id:O,inputComponent:y="input",inputProps:v={},inputRef:S,maxRows:k,minRows:C,multiline:w=!1,name:E,onBlur:$,onChange:N,onClick:R,onFocus:B,onKeyDown:U,onKeyUp:V,placeholder:z,readOnly:W,renderSuffix:X,rows:q,slotProps:Y={},slots:Z={},startAdornment:j,type:se="text",value:ve}=i,G=Ge(i,Rme),ce=v.value!=null?v.value:ve,{current:ge}=I.useRef(ce!=null),ue=I.useRef(),xe=I.useCallback(Oe=>{},[]),Ne=yn(ue,S,v.ref,xe),[Ve,Ke]=I.useState(!1),Me=Du(),Ye=af({props:i,muiFormControl:Me,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ye.focused=Me?Me.focused:Ve,I.useEffect(()=>{!Me&&p&&Ve&&(Ke(!1),$&&$())},[Me,p,Ve,$]);const ye=Me&&Me.onFilled,ze=Me&&Me.onEmpty,$e=I.useCallback(Oe=>{rT(Oe)?ye&&ye():ze&&ze()},[ye,ze]);Kr(()=>{ge&&$e({value:ce})},[ce,$e,ge]);const We=Oe=>{if(Ye.disabled){Oe.stopPropagation();return}B&&B(Oe),v.onFocus&&v.onFocus(Oe),Me&&Me.onFocus?Me.onFocus(Oe):Ke(!0)},dt=Oe=>{$&&$(Oe),v.onBlur&&v.onBlur(Oe),Me&&Me.onBlur?Me.onBlur(Oe):Ke(!1)},Be=(Oe,...Te)=>{if(!ge){const rt=Oe.target||ue.current;if(rt==null)throw new Error(jd(1));$e({value:rt.value})}v.onChange&&v.onChange(Oe,...Te),N&&N(Oe,...Te)};I.useEffect(()=>{$e(ue.current)},[]);const re=Oe=>{ue.current&&Oe.currentTarget===Oe.target&&ue.current.focus(),R&&R(Oe)};let ee=y,J=v;w&&ee==="input"&&(q?J=L({type:void 0,minRows:q,maxRows:q},J):J=L({type:void 0,maxRows:k,minRows:C},J),ee=fY);const Re=Oe=>{$e(Oe.animationName==="mui-auto-fill-cancel"?ue.current:{value:"x"})};I.useEffect(()=>{Me&&Me.setAdornedStart(!!j)},[Me,j]);const Le=L({},i,{color:Ye.color||"primary",disabled:Ye.disabled,endAdornment:m,error:Ye.error,focused:Ye.focused,formControl:Me,fullWidth:b,hiddenLabel:Ye.hiddenLabel,multiline:w,size:Ye.size,startAdornment:j,type:se}),De=Ime(Le),ie=Z.root||u.Root||wk,fe=Y.root||c.root||{},de=Z.input||u.Input||kk;return J=L({},J,(r=Y.input)!=null?r:c.input),P.jsxs(I.Fragment,{children:[!h&&Dme,P.jsxs(ie,L({},fe,!ku(ie)&&{ownerState:L({},Le,fe.ownerState)},{ref:n,onClick:re},G,{className:Je(De.root,fe.className,l,W&&"MuiInputBase-readOnly"),children:[j,P.jsx(Ek.Provider,{value:null,children:P.jsx(de,L({ownerState:Le,"aria-invalid":Ye.error,"aria-describedby":o,autoComplete:a,autoFocus:s,defaultValue:d,disabled:Ye.disabled,id:O,onAnimationStart:Re,name:E,placeholder:z,readOnly:W,required:Ye.required,rows:q,value:ce,onKeyDown:U,onKeyUp:V,type:se},J,!ku(de)&&{as:ee,ownerState:L({},Le,J.ownerState)},{ref:Ne,className:Je(De.input,J.className,W&&"MuiInputBase-readOnly"),onBlur:dt,onChange:Be,onFocus:We}))}),m,X?X(L({},Ye,{startAdornment:j})):null]}))]})}),UN=Nme;function Pme(e){return At("MuiInput",e)}const Lme=L({},Ja,_t("MuiInput",["root","underline","input"])),nd=Lme;function Mme(e){return At("MuiOutlinedInput",e)}const $me=L({},Ja,_t("MuiOutlinedInput",["root","notchedOutline","input"])),ru=$me;function Fme(e){return At("MuiFilledInput",e)}const Bme=L({},Ja,_t("MuiFilledInput",["root","underline","input"])),es=Bme,mY=ki(P.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Ume(e){return At("MuiAutocomplete",e)}const jme=_t("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"]),Fn=jme;var h8,m8;const zme=["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"],Vme=["ref"],Hme=["key"],Wme=e=>{const{classes:t,disablePortal:n,expanded:r,focused:i,fullWidth:o,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:u,size:c}=e,d={root:["root",r&&"expanded",i&&"focused",o&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${nt(c)}`],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 kt(d,Ume,t)},Qme=Se("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:o,inputFocused:a,size:s}=n;return[{[`& .${Fn.tag}`]:t.tag},{[`& .${Fn.tag}`]:t[`tagSize${nt(s)}`]},{[`& .${Fn.inputRoot}`]:t.inputRoot},{[`& .${Fn.input}`]:t.input},{[`& .${Fn.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,o&&t.hasPopupIcon,i&&t.hasClearIcon]}})(({ownerState:e})=>L({[`&.${Fn.focused} .${Fn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Fn.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${Fn.tag}`]:L({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${Fn.inputRoot}`]:{flexWrap:"wrap",[`.${Fn.hasPopupIcon}&, .${Fn.hasClearIcon}&`]:{paddingRight:30},[`.${Fn.hasPopupIcon}.${Fn.hasClearIcon}&`]:{paddingRight:56},[`& .${Fn.input}`]:{width:0,minWidth:30}},[`& .${nd.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${nd.root}.${Ja.sizeSmall}`]:{[`& .${nd.input}`]:{padding:"2px 4px 3px 0"}},[`& .${ru.root}`]:{padding:9,[`.${Fn.hasPopupIcon}&, .${Fn.hasClearIcon}&`]:{paddingRight:39},[`.${Fn.hasPopupIcon}.${Fn.hasClearIcon}&`]:{paddingRight:65},[`& .${Fn.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Fn.endAdornment}`]:{right:9}},[`& .${ru.root}.${Ja.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Fn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${es.root}`]:{paddingTop:19,paddingLeft:8,[`.${Fn.hasPopupIcon}&, .${Fn.hasClearIcon}&`]:{paddingRight:39},[`.${Fn.hasPopupIcon}.${Fn.hasClearIcon}&`]:{paddingRight:65},[`& .${es.input}`]:{padding:"7px 4px"},[`& .${Fn.endAdornment}`]:{right:9}},[`& .${es.root}.${Ja.sizeSmall}`]:{paddingBottom:1,[`& .${es.input}`]:{padding:"2.5px 4px"}},[`& .${Ja.hiddenLabel}`]:{paddingTop:8},[`& .${es.root}.${Ja.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Fn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${es.root}.${Ja.hiddenLabel}.${Ja.sizeSmall}`]:{[`& .${Fn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Fn.input}`]:L({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),Yme=Se("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),Gme=Se(oa,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),qme=Se(oa,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>L({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>L({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),Zme=Se(Q1,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Fn.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>L({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),Xme=Se(Na,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>L({},e.typography.body1,{overflow:"auto"})),Kme=Se("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Jme=Se("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),ege=Se("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",[`& .${Fn.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"},[`&.${Fn.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"},[`&.${Fn.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})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Fn.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:cn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),tge=Se(bme,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),nge=Se("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Fn.option}`]:{paddingLeft:24}}),rge=I.forwardRef(function(t,n){var r,i,o,a;const s=gt({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:u=!1,autoSelect:c=!1,blurOnSelect:d=!1,ChipProps:p,className:h,clearIcon:m=h8||(h8=P.jsx(tpe,{fontSize:"small"})),clearOnBlur:b=!s.freeSolo,clearOnEscape:O=!1,clearText:y="Clear",closeText:v="Close",componentsProps:S={},defaultValue:k=s.multiple?[]:null,disableClearable:C=!1,disableCloseOnSelect:w=!1,disabled:E=!1,disabledItemsFocusable:$=!1,disableListWrap:N=!1,disablePortal:R=!1,filterSelectedOptions:B=!1,forcePopupIcon:U="auto",freeSolo:V=!1,fullWidth:z=!1,getLimitTagsText:W=Ce=>`+${Ce}`,getOptionLabel:X,groupBy:q,handleHomeEndKeys:Y=!s.freeSolo,includeInputInList:Z=!1,limitTags:j=-1,ListboxComponent:se="ul",ListboxProps:ve,loading:G=!1,loadingText:ce="Loading…",multiple:ge=!1,noOptionsText:ue="No options",openOnFocus:xe=!1,openText:Ne="Open",PaperComponent:Ve=Na,PopperComponent:Ke=Q1,popupIcon:Me=m8||(m8=P.jsx(mY,{})),readOnly:Ye=!1,renderGroup:ye,renderInput:ze,renderOption:$e,renderTags:We,selectOnFocus:dt=!s.freeSolo,size:Be="medium",slotProps:re={}}=s,ee=Ge(s,zme),{getRootProps:J,getInputProps:Re,getInputLabelProps:Le,getPopupIndicatorProps:De,getClearProps:ie,getTagProps:fe,getListboxProps:de,getOptionProps:Oe,value:Te,dirty:rt,expanded:pt,id:xt,popupOpen:et,focused:vt,focusedTag:qe,anchorEl:it,setAnchorEl:Et,inputValue:Nt,groupedOptions:on}=ume(L({},s,{componentName:"Autocomplete"})),dn=!C&&!E&&rt&&!Ye,pn=(!V||U===!0)&&U!==!1,{onMouseDown:zn}=Re(),{ref:Ee}=ve??{},_e=de(),{ref:pe}=_e,lt=Ge(_e,Vme),at=yn(pe,Ee),$t=X||(Ce=>{var mt;return(mt=Ce.label)!=null?mt:Ce}),It=L({},s,{disablePortal:R,expanded:pt,focused:vt,fullWidth:z,getOptionLabel:$t,hasClearIcon:dn,hasPopupIcon:pn,inputFocused:qe===-1,popupOpen:et,size:Be}),Ct=Wme(It);let Zt;if(ge&&Te.length>0){const Ce=mt=>L({className:Ct.tag,disabled:E},fe(mt));We?Zt=We(Te,Ce,It):Zt=Te.map((mt,Dt)=>P.jsx(BN,L({label:$t(mt),size:Be},Ce({index:Dt}),p)))}if(j>-1&&Array.isArray(Zt)){const Ce=Zt.length-j;!vt&&Ce>0&&(Zt=Zt.splice(0,j),Zt.push(P.jsx("span",{className:Ct.tag,children:W(Ce)},Zt.length)))}const we=ye||(Ce=>P.jsxs("li",{children:[P.jsx(tge,{className:Ct.groupLabel,ownerState:It,component:"div",children:Ce.group}),P.jsx(nge,{className:Ct.groupUl,ownerState:It,children:Ce.children})]},Ce.key)),ot=$e||((Ce,mt)=>{const{key:Dt}=Ce,tn=Ge(Ce,Hme);return P.jsx("li",L({},tn,{children:$t(mt)}),Dt)}),rn=(Ce,mt)=>{const Dt=Oe({option:Ce,index:mt});return ot(L({},Dt,{className:Ct.option}),Ce,{selected:Dt["aria-selected"],index:mt,inputValue:Nt},It)},Wt=(r=re.clearIndicator)!=null?r:S.clearIndicator,mn=(i=re.paper)!=null?i:S.paper,tr=(o=re.popper)!=null?o:S.popper,Ue=(a=re.popupIndicator)!=null?a:S.popupIndicator;return P.jsxs(I.Fragment,{children:[P.jsx(Qme,L({ref:n,className:Je(Ct.root,h),ownerState:It},J(ee),{children:ze({id:xt,disabled:E,fullWidth:!0,size:Be==="small"?"small":void 0,InputLabelProps:Le(),InputProps:L({ref:Et,className:Ct.inputRoot,startAdornment:Zt,onClick:Ce=>{Ce.target===Ce.currentTarget&&zn(Ce)}},(dn||pn)&&{endAdornment:P.jsxs(Yme,{className:Ct.endAdornment,ownerState:It,children:[dn?P.jsx(Gme,L({},ie(),{"aria-label":y,title:y,ownerState:It},Wt,{className:Je(Ct.clearIndicator,Wt==null?void 0:Wt.className),children:m})):null,pn?P.jsx(qme,L({},De(),{disabled:E,"aria-label":et?v:Ne,title:et?v:Ne,ownerState:It},Ue,{className:Je(Ct.popupIndicator,Ue==null?void 0:Ue.className),children:Me})):null]})}),inputProps:L({className:Ct.input,disabled:E,readOnly:Ye},Re())})})),it?P.jsx(Zme,L({as:Ke,disablePortal:R,style:{width:it?it.clientWidth:null},ownerState:It,role:"presentation",anchorEl:it,open:et},tr,{className:Je(Ct.popper,tr==null?void 0:tr.className),children:P.jsxs(Xme,L({ownerState:It,as:Ve},mn,{className:Je(Ct.paper,mn==null?void 0:mn.className),children:[G&&on.length===0?P.jsx(Kme,{className:Ct.loading,ownerState:It,children:ce}):null,on.length===0&&!V&&!G?P.jsx(Jme,{className:Ct.noOptions,ownerState:It,role:"presentation",onMouseDown:Ce=>{Ce.preventDefault()},children:ue}):null,on.length>0?P.jsx(ege,L({as:se,className:Ct.listbox,ownerState:It},lt,ve,{ref:at,children:on.map((Ce,mt)=>q?we({key:Ce.key,group:Ce.group,children:Ce.options.map((Dt,tn)=>rn(Dt,Ce.index+tn))}):rn(Ce,mt))})):null]}))})):null]})}),ige=rge,oge=ki(P.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 age(e){return At("MuiAvatar",e)}_t("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const sge=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],lge=e=>{const{classes:t,variant:n,colorDefault:r}=e;return kt({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},age,t)},uge=Se("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e,ownerState:t})=>L({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"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.variant==="square"&&{borderRadius:0},t.colorDefault&&L({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}))),cge=Se("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),dge=Se(oge,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function fge({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,o]=I.useState(!1);return I.useEffect(()=>{if(!n&&!r)return;o(!1);let a=!0;const s=new Image;return s.onload=()=>{a&&o("loaded")},s.onerror=()=>{a&&o("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{a=!1}},[e,t,n,r]),i}const pge=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiAvatar"}),{alt:i,children:o,className:a,component:s="div",imgProps:l,sizes:u,src:c,srcSet:d,variant:p="circular"}=r,h=Ge(r,sge);let m=null;const b=fge(L({},l,{src:c,srcSet:d})),O=c||d,y=O&&b!=="error",v=L({},r,{colorDefault:!y,component:s,variant:p}),S=lge(v);return y?m=P.jsx(cge,L({alt:i,srcSet:d,src:c,sizes:u,ownerState:v,className:S.img},l)):o!=null?m=o:O&&i?m=i[0]:m=P.jsx(dge,{ownerState:v,className:S.fallback}),P.jsx(uge,L({as:s,ownerState:v,className:Je(S.root,a),ref:n},h,{children:m}))}),gY=pge,hge=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],mge={entering:{opacity:1},entered:{opacity:1}},gge=I.forwardRef(function(t,n){const r=ci(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:h,onExited:m,onExiting:b,style:O,timeout:y=i,TransitionComponent:v=V1}=t,S=Ge(t,hge),k=I.useRef(null),C=yn(k,s.ref,n),w=z=>W=>{if(z){const X=k.current;W===void 0?z(X):z(X,W)}},E=w(p),$=w((z,W)=>{IN(z);const X=Vd({style:O,timeout:y,easing:l},{mode:"enter"});z.style.webkitTransition=r.transitions.create("opacity",X),z.style.transition=r.transitions.create("opacity",X),c&&c(z,W)}),N=w(d),R=w(b),B=w(z=>{const W=Vd({style:O,timeout:y,easing:l},{mode:"exit"});z.style.webkitTransition=r.transitions.create("opacity",W),z.style.transition=r.transitions.create("opacity",W),h&&h(z)}),U=w(m),V=z=>{o&&o(k.current,z)};return P.jsx(v,L({appear:a,in:u,nodeRef:k,onEnter:$,onEntered:N,onEntering:E,onExit:B,onExited:U,onExiting:R,addEndListener:V,timeout:y},S,{children:(z,W)=>I.cloneElement(s,L({style:L({opacity:0,visibility:z==="exited"&&!u?"hidden":void 0},mge[z],O,s.props.style),ref:C},W))}))}),Tg=gge;function bge(e){return At("MuiBackdrop",e)}_t("MuiBackdrop",["root","invisible"]);const yge=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Oge=e=>{const{classes:t,invisible:n}=e;return kt({root:["root",n&&"invisible"]},bge,t)},vge=Se("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>L({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"})),Ege=I.forwardRef(function(t,n){var r,i,o;const a=gt({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:u="div",components:c={},componentsProps:d={},invisible:p=!1,open:h,slotProps:m={},slots:b={},TransitionComponent:O=Tg,transitionDuration:y}=a,v=Ge(a,yge),S=L({},a,{component:u,invisible:p}),k=Oge(S),C=(r=m.root)!=null?r:d.root;return P.jsx(O,L({in:h,timeout:y},v,{children:P.jsx(vge,L({"aria-hidden":!0},C,{as:(i=(o=b.root)!=null?o:c.Root)!=null?i:u,className:Je(k.root,l,C==null?void 0:C.className),ownerState:L({},S,C==null?void 0:C.ownerState),classes:k,ref:n,children:s}))}))}),xk=Ege,Sge=_t("MuiBox",["root"]),Tge=Sge,wge=wN(),kge=Wce({themeId:hp,defaultTheme:wge,defaultClassName:Tge.root,generateClassName:gN.generate}),_a=kge;function xge(e){return At("MuiButton",e)}const Cge=_t("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","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),kv=Cge,Age=I.createContext({}),_ge=Age,Rge=I.createContext(void 0),Ige=Rge,Dge=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Nge=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e,s={root:["root",o,`${o}${nt(t)}`,`size${nt(i)}`,`${o}Size${nt(i)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${nt(i)}`],endIcon:["endIcon",`iconSize${nt(i)}`]},l=kt(s,xge,a);return L({},a,l)},bY=e=>L({},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}}),Pge=Se(hs,{shouldForwardProp:e=>Ji(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${nt(n.color)}`],t[`size${nt(n.size)}`],t[`${n.variant}Size${nt(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],o=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return L({},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":L({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(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})`:cn(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})`:cn(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:o,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":L({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${kv.focusVisible}`]:L({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${kv.disabled}`]:L({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 ${cn(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"},[`&.${kv.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${kv.disabled}`]:{boxShadow:"none"}}),Lge=Se("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${nt(n.size)}`]]}})(({ownerState:e})=>L({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},bY(e))),Mge=Se("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${nt(n.size)}`]]}})(({ownerState:e})=>L({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},bY(e))),$ge=I.forwardRef(function(t,n){const r=I.useContext(_ge),i=I.useContext(Ige),o=ok(r,t),a=gt({props:o,name:"MuiButton"}),{children:s,color:l="primary",component:u="button",className:c,disabled:d=!1,disableElevation:p=!1,disableFocusRipple:h=!1,endIcon:m,focusVisibleClassName:b,fullWidth:O=!1,size:y="medium",startIcon:v,type:S,variant:k="text"}=a,C=Ge(a,Dge),w=L({},a,{color:l,component:u,disabled:d,disableElevation:p,disableFocusRipple:h,fullWidth:O,size:y,type:S,variant:k}),E=Nge(w),$=v&&P.jsx(Lge,{className:E.startIcon,ownerState:w,children:v}),N=m&&P.jsx(Mge,{className:E.endIcon,ownerState:w,children:m}),R=i||"";return P.jsxs(Pge,L({ownerState:w,className:Je(r.className,E.root,c,R),component:u,disabled:d,focusRipple:!h,focusVisibleClassName:Je(E.focusVisible,b),ref:n,type:S},C,{classes:E,children:[$,s,N]}))}),md=$ge;function Fge(e){return At("MuiCard",e)}_t("MuiCard",["root"]);const Bge=["className","raised"],Uge=e=>{const{classes:t}=e;return kt({root:["root"]},Fge,t)},jge=Se(Na,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),zge=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiCard"}),{className:i,raised:o=!1}=r,a=Ge(r,Bge),s=L({},r,{raised:o}),l=Uge(s);return P.jsx(jge,L({className:Je(l.root,i),elevation:o?8:void 0,ref:n,ownerState:s},a))}),Vge=zge;function Hge(e){return At("MuiCardActionArea",e)}const Wge=_t("MuiCardActionArea",["root","focusVisible","focusHighlight"]),UC=Wge,Qge=["children","className","focusVisibleClassName"],Yge=e=>{const{classes:t}=e;return kt({root:["root"],focusHighlight:["focusHighlight"]},Hge,t)},Gge=Se(hs,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${UC.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${UC.focusVisible} .${UC.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}})),qge=Se("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})})),Zge=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiCardActionArea"}),{children:i,className:o,focusVisibleClassName:a}=r,s=Ge(r,Qge),l=r,u=Yge(l);return P.jsxs(Gge,L({className:Je(u.root,o),focusVisibleClassName:Je(a,u.focusVisible),ref:n,ownerState:l},s,{children:[i,P.jsx(qge,{className:u.focusHighlight,ownerState:l})]}))}),Xge=Zge;function Kge(e){return At("MuiCardContent",e)}_t("MuiCardContent",["root"]);const Jge=["className","component"],e0e=e=>{const{classes:t}=e;return kt({root:["root"]},Kge,t)},t0e=Se("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),n0e=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiCardContent"}),{className:i,component:o="div"}=r,a=Ge(r,Jge),s=L({},r,{component:o}),l=e0e(s);return P.jsx(t0e,L({as:o,className:Je(l.root,i),ownerState:s,ref:n},a))}),r0e=n0e;function i0e(e){return At("PrivateSwitchBase",e)}_t("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const o0e=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],a0e=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${nt(i)}`],input:["input"]};return kt(o,i0e,t)},s0e=Se(hs)(({ownerState:e})=>L({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),l0e=Se("input",{shouldForwardProp:Ji})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),u0e=I.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:o,className:a,defaultChecked:s,disabled:l,disableFocusRipple:u=!1,edge:c=!1,icon:d,id:p,inputProps:h,inputRef:m,name:b,onBlur:O,onChange:y,onFocus:v,readOnly:S,required:k=!1,tabIndex:C,type:w,value:E}=t,$=Ge(t,o0e),[N,R]=Xi({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),B=Du(),U=Z=>{v&&v(Z),B&&B.onFocus&&B.onFocus(Z)},V=Z=>{O&&O(Z),B&&B.onBlur&&B.onBlur(Z)},z=Z=>{if(Z.nativeEvent.defaultPrevented)return;const j=Z.target.checked;R(j),y&&y(Z,j)};let W=l;B&&typeof W>"u"&&(W=B.disabled);const X=w==="checkbox"||w==="radio",q=L({},t,{checked:N,disabled:W,disableFocusRipple:u,edge:c}),Y=a0e(q);return P.jsxs(s0e,L({component:"span",className:Je(Y.root,a),centerRipple:!0,focusRipple:!u,disabled:W,tabIndex:null,role:void 0,onFocus:U,onBlur:V,ownerState:q,ref:n},$,{children:[P.jsx(l0e,L({autoFocus:r,checked:i,defaultChecked:s,className:Y.input,disabled:W,id:X?p:void 0,name:b,onChange:z,readOnly:S,ref:m,required:k,ownerState:q,tabIndex:C,type:w},w==="checkbox"&&E===void 0?{}:{value:E},h)),N?o:d]}))}),jN=u0e,c0e=ki(P.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"),d0e=ki(P.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"),f0e=ki(P.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 p0e(e){return At("MuiCheckbox",e)}const h0e=_t("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),jC=h0e,m0e=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],g0e=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,o={root:["root",n&&"indeterminate",`color${nt(r)}`,`size${nt(i)}`]},a=kt(o,p0e,t);return L({},t,a)},b0e=Se(jN,{shouldForwardProp:e=>Ji(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${nt(n.size)}`],n.color!=="default"&&t[`color${nt(n.color)}`]]}})(({theme:e,ownerState:t})=>L({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})`:cn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${jC.checked}, &.${jC.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${jC.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),y0e=P.jsx(d0e,{}),O0e=P.jsx(c0e,{}),v0e=P.jsx(f0e,{}),E0e=I.forwardRef(function(t,n){var r,i;const o=gt({props:t,name:"MuiCheckbox"}),{checkedIcon:a=y0e,color:s="primary",icon:l=O0e,indeterminate:u=!1,indeterminateIcon:c=v0e,inputProps:d,size:p="medium",className:h}=o,m=Ge(o,m0e),b=u?c:l,O=u?c:a,y=L({},o,{color:s,indeterminate:u,size:p}),v=g0e(y);return P.jsx(b0e,L({type:"checkbox",inputProps:L({"data-indeterminate":u},d),icon:I.cloneElement(b,{fontSize:(r=b.props.fontSize)!=null?r:p}),checkedIcon:I.cloneElement(O,{fontSize:(i=O.props.fontSize)!=null?i:p}),ownerState:y,ref:n,className:Je(v.root,h)},m,{classes:v}))}),Ck=E0e;function S0e(e){return At("MuiCircularProgress",e)}_t("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const T0e=["className","color","disableShrink","size","style","thickness","value","variant"];let Ak=e=>e,g8,b8,y8,O8;const jc=44,w0e=B1(g8||(g8=Ak` +`),Ns.rippleVisible,Wfe,$_,({theme:e})=>e.transitions.easing.easeInOut,Ns.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Ns.child,Ns.childLeaving,Qfe,$_,({theme:e})=>e.transitions.easing.easeInOut,Ns.childPulsate,Yfe,({theme:e})=>e.transitions.easing.easeInOut),Zfe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:a}=r,s=Ge(r,Vfe),[l,u]=I.useState([]),c=I.useRef(0),d=I.useRef(null);I.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const p=I.useRef(!1),h=I.useRef(0),m=I.useRef(null),b=I.useRef(null);I.useEffect(()=>()=>{h.current&&clearTimeout(h.current)},[]);const O=I.useCallback(k=>{const{pulsate:C,rippleX:w,rippleY:E,rippleSize:$,cb:P}=k;u(R=>[...R,N.jsx(qfe,{classes:{ripple:Je(o.ripple,Ns.ripple),rippleVisible:Je(o.rippleVisible,Ns.rippleVisible),ripplePulsate:Je(o.ripplePulsate,Ns.ripplePulsate),child:Je(o.child,Ns.child),childLeaving:Je(o.childLeaving,Ns.childLeaving),childPulsate:Je(o.childPulsate,Ns.childPulsate)},timeout:$_,pulsate:C,rippleX:w,rippleY:E,rippleSize:$},c.current)]),c.current+=1,d.current=P},[o]),y=I.useCallback((k={},C={},w=()=>{})=>{const{pulsate:E=!1,center:$=i||C.pulsate,fakeElement:P=!1}=C;if((k==null?void 0:k.type)==="mousedown"&&p.current){p.current=!1;return}(k==null?void 0:k.type)==="touchstart"&&(p.current=!0);const R=P?null:b.current,B=R?R.getBoundingClientRect():{width:0,height:0,left:0,top:0};let U,V,z;if($||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)U=Math.round(B.width/2),V=Math.round(B.height/2);else{const{clientX:W,clientY:X}=k.touches&&k.touches.length>0?k.touches[0]:k;U=Math.round(W-B.left),V=Math.round(X-B.top)}if($)z=Math.sqrt((2*B.width**2+B.height**2)/3),z%2===0&&(z+=1);else{const W=Math.max(Math.abs((R?R.clientWidth:0)-U),U)*2+2,X=Math.max(Math.abs((R?R.clientHeight:0)-V),V)*2+2;z=Math.sqrt(W**2+X**2)}k!=null&&k.touches?m.current===null&&(m.current=()=>{O({pulsate:E,rippleX:U,rippleY:V,rippleSize:z,cb:w})},h.current=setTimeout(()=>{m.current&&(m.current(),m.current=null)},Hfe)):O({pulsate:E,rippleX:U,rippleY:V,rippleSize:z,cb:w})},[i,O]),v=I.useCallback(()=>{y({},{pulsate:!0})},[y]),S=I.useCallback((k,C)=>{if(clearTimeout(h.current),(k==null?void 0:k.type)==="touchend"&&m.current){m.current(),m.current=null,h.current=setTimeout(()=>{S(k,C)});return}m.current=null,u(w=>w.length>0?w.slice(1):w),d.current=C},[]);return I.useImperativeHandle(n,()=>({pulsate:v,start:y,stop:S}),[v,y,S]),N.jsx(Gfe,L({className:Je(Ns.root,o.root,a),ref:b},s,{children:N.jsx(PN,{component:null,exit:!0,children:l})}))}),Xfe=Zfe;function Kfe(e){return At("MuiButtonBase",e)}const Jfe=_t("MuiButtonBase",["root","disabled","focusVisible"]),epe=["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"],tpe=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=kt({root:["root",t&&"disabled",n&&"focusVisible"]},Kfe,i);return n&&r&&(a.root+=` ${r}`),a},npe=Se("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"},[`&.${Jfe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),rpe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:a,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:h="a",onBlur:m,onClick:b,onContextMenu:O,onDragLeave:y,onFocus:v,onFocusVisible:S,onKeyDown:k,onKeyUp:C,onMouseDown:w,onMouseLeave:E,onMouseUp:$,onTouchEnd:P,onTouchMove:R,onTouchStart:B,tabIndex:U=0,TouchRippleProps:V,touchRippleRef:z,type:W}=r,X=Ge(r,epe),q=I.useRef(null),Y=I.useRef(null),Z=yn(Y,z),{isFocusVisibleRef:j,onFocus:se,onBlur:ve,ref:G}=ak(),[ce,ge]=I.useState(!1);u&&ce&&ge(!1),I.useImperativeHandle(i,()=>({focusVisible:()=>{ge(!0),q.current.focus()}}),[]);const[ue,xe]=I.useState(!1);I.useEffect(()=>{xe(!0)},[]);const Ne=ue&&!c&&!u;I.useEffect(()=>{ce&&p&&!c&&ue&&Y.current.pulsate()},[c,p,ce,ue]);function Ve(Te,rt,pt=d){return jt(xt=>(rt&&rt(xt),!pt&&Y.current&&Y.current[Te](xt),!0))}const Ke=Ve("start",w),Me=Ve("stop",O),Ye=Ve("stop",y),ye=Ve("stop",$),ze=Ve("stop",Te=>{ce&&Te.preventDefault(),E&&E(Te)}),$e=Ve("start",B),We=Ve("stop",P),dt=Ve("stop",R),Be=Ve("stop",Te=>{ve(Te),j.current===!1&&ge(!1),m&&m(Te)},!1),re=jt(Te=>{q.current||(q.current=Te.currentTarget),se(Te),j.current===!0&&(ge(!0),S&&S(Te)),v&&v(Te)}),ee=()=>{const Te=q.current;return l&&l!=="button"&&!(Te.tagName==="A"&&Te.href)},J=I.useRef(!1),Re=jt(Te=>{p&&!J.current&&ce&&Y.current&&Te.key===" "&&(J.current=!0,Y.current.stop(Te,()=>{Y.current.start(Te)})),Te.target===Te.currentTarget&&ee()&&Te.key===" "&&Te.preventDefault(),k&&k(Te),Te.target===Te.currentTarget&&ee()&&Te.key==="Enter"&&!u&&(Te.preventDefault(),b&&b(Te))}),Le=jt(Te=>{p&&Te.key===" "&&Y.current&&ce&&!Te.defaultPrevented&&(J.current=!1,Y.current.stop(Te,()=>{Y.current.pulsate(Te)})),C&&C(Te),b&&Te.target===Te.currentTarget&&ee()&&Te.key===" "&&!Te.defaultPrevented&&b(Te)});let De=l;De==="button"&&(X.href||X.to)&&(De=h);const ie={};De==="button"?(ie.type=W===void 0?"button":W,ie.disabled=u):(!X.href&&!X.to&&(ie.role="button"),u&&(ie["aria-disabled"]=u));const fe=yn(n,G,q),de=L({},r,{centerRipple:o,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:U,focusVisible:ce}),Oe=tpe(de);return N.jsxs(npe,L({as:De,className:Je(Oe.root,s),ownerState:de,onBlur:Be,onClick:b,onContextMenu:Me,onFocus:re,onKeyDown:Re,onKeyUp:Le,onMouseDown:Ke,onMouseLeave:ze,onMouseUp:ye,onDragLeave:Ye,onTouchEnd:We,onTouchMove:dt,onTouchStart:$e,ref:fe,tabIndex:u?-1:U,type:W},ie,X,{children:[a,Ne?N.jsx(Xfe,L({ref:Z,center:o},V)):null]}))}),hs=rpe;function ipe(e){return At("MuiIconButton",e)}const ope=_t("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),ape=["edge","children","className","color","disabled","disableFocusRipple","size"],spe=e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${nt(r)}`,i&&`edge${nt(i)}`,`size${nt(o)}`]};return kt(a,ipe,t)},lpe=Se(hs,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${nt(n.color)}`],n.edge&&t[`edge${nt(n.edge)}`],t[`size${nt(n.size)}`]]}})(({theme:e,ownerState:t})=>L({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})`:cn(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 L({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&L({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":L({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(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)},{[`&.${ope.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),upe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiIconButton"}),{edge:i=!1,children:o,className:a,color:s="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=r,d=Ge(r,ape),p=L({},r,{edge:i,color:s,disabled:l,disableFocusRipple:u,size:c}),h=spe(p);return N.jsx(lpe,L({className:Je(h.root,a),centerRipple:!0,focusRipple:!u,disabled:l,ref:n,ownerState:p},d,{children:o}))}),Eo=upe,cpe=ki(N.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 dpe(e){return At("MuiTypography",e)}_t("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const fpe=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],ppe=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e,s={root:["root",o,e.align!=="inherit"&&`align${nt(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return kt(s,dpe,a)},hpe=Se("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${nt(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>L({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})),t8={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},mpe={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},gpe=e=>mpe[e]||e,bpe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiTypography"}),i=gpe(r.color),o=gk(L({},r,{color:i})),{align:a="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:p="body1",variantMapping:h=t8}=o,m=Ge(o,fpe),b=L({},o,{align:a,color:i,className:s,component:l,gutterBottom:u,noWrap:c,paragraph:d,variant:p,variantMapping:h}),O=l||(d?"p":h[p]||t8[p])||"span",y=ppe(b);return N.jsx(hpe,L({as:O,ref:n,ownerState:b,className:Je(y.root,s)},m))}),dr=bpe;function ype(e){return At("MuiAppBar",e)}_t("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Ope=["className","color","enableColorOnDark","position"],vpe=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${nt(t)}`,`position${nt(n)}`]};return kt(i,ype,r)},vv=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Epe=Se(la,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${nt(n.position)}`],t[`color${nt(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return L({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&&L({},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"&&L({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&L({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:vv(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:vv(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:vv(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:vv(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),Spe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiAppBar"}),{className:i,color:o="primary",enableColorOnDark:a=!1,position:s="fixed"}=r,l=Ge(r,Ope),u=L({},r,{color:o,position:s,enableColorOnDark:a}),c=vpe(u);return N.jsx(Epe,L({square:!0,component:"header",ownerState:u,elevation:4,className:Je(c.root,i,s==="fixed"&&"mui-fixed"),ref:n},l))}),Tpe=Spe,sY="base";function wpe(e){return`${sY}--${e}`}function kpe(e,t){return`${sY}-${e}-${t}`}function lY(e,t){const n=YQ[t];return n?wpe(n):kpe(e,t)}function xpe(e,t){const n={};return t.forEach(r=>{n[r]=lY(e,r)}),n}function n8(e){return e.substring(2).toLowerCase()}function Cpe(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const c=yn(t.ref,s),d=jt(m=>{const b=u.current;u.current=!1;const O=Or(s.current);if(!l.current||!s.current||"clientX"in m&&Cpe(m,O))return;if(a.current){a.current=!1;return}let y;m.composedPath?y=m.composedPath().indexOf(s.current)>-1:y=!O.documentElement.contains(m.target)||s.current.contains(m.target),!y&&(n||!b)&&i(m)}),p=m=>b=>{u.current=!0;const O=t.props[m];O&&O(b)},h={ref:c};return o!==!1&&(h[o]=p(o)),I.useEffect(()=>{if(o!==!1){const m=n8(o),b=Or(s.current),O=()=>{a.current=!0};return b.addEventListener(m,d),b.addEventListener("touchmove",O),()=>{b.removeEventListener(m,d),b.removeEventListener("touchmove",O)}}},[d,o]),r!==!1&&(h[r]=p(r)),I.useEffect(()=>{if(r!==!1){const m=n8(r),b=Or(s.current);return b.addEventListener(m,d),()=>{b.removeEventListener(m,d)}}},[d,r]),N.jsx(I.Fragment,{children:I.cloneElement(t,h)})}const _pe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Rpe(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 Ipe(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 Dpe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Ipe(e))}function Npe(e){const t=[],n=[];return Array.from(e.querySelectorAll(_pe)).forEach((r,i)=>{const o=Rpe(r);o===-1||!Dpe(r)||(o===0?t.push(r):n.push({documentOrder:i,tabIndex:o,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 Ppe(){return!0}function uY(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=Npe,isEnabled:a=Ppe,open:s}=e,l=I.useRef(!1),u=I.useRef(null),c=I.useRef(null),d=I.useRef(null),p=I.useRef(null),h=I.useRef(!1),m=I.useRef(null),b=yn(t.ref,m),O=I.useRef(null);I.useEffect(()=>{!s||!m.current||(h.current=!n)},[n,s]),I.useEffect(()=>{if(!s||!m.current)return;const S=Or(m.current);return m.current.contains(S.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),I.useEffect(()=>{if(!s||!m.current)return;const S=Or(m.current),k=E=>{O.current=E,!(r||!a()||E.key!=="Tab")&&S.activeElement===m.current&&E.shiftKey&&(l.current=!0,c.current&&c.current.focus())},C=()=>{const E=m.current;if(E===null)return;if(!S.hasFocus()||!a()||l.current){l.current=!1;return}if(E.contains(S.activeElement)||r&&S.activeElement!==u.current&&S.activeElement!==c.current)return;if(S.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!h.current)return;let $=[];if((S.activeElement===u.current||S.activeElement===c.current)&&($=o(m.current)),$.length>0){var P,R;const B=!!((P=O.current)!=null&&P.shiftKey&&((R=O.current)==null?void 0:R.key)==="Tab"),U=$[0],V=$[$.length-1];typeof U!="string"&&typeof V!="string"&&(B?V.focus():U.focus())}else E.focus()};S.addEventListener("focusin",C),S.addEventListener("keydown",k,!0);const w=setInterval(()=>{S.activeElement&&S.activeElement.tagName==="BODY"&&C()},50);return()=>{clearInterval(w),S.removeEventListener("focusin",C),S.removeEventListener("keydown",k,!0)}},[n,r,i,a,s,o]);const y=S=>{d.current===null&&(d.current=S.relatedTarget),h.current=!0,p.current=S.target;const k=t.props.onFocus;k&&k(S)},v=S=>{d.current===null&&(d.current=S.relatedTarget),h.current=!0};return N.jsxs(I.Fragment,{children:[N.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),I.cloneElement(t,{ref:b,onFocus:y}),N.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}var Aa="top",el="bottom",tl="right",_a="left",MN="auto",Y1=[Aa,el,tl,_a],Zm="start",Cy="end",Lpe="clippingParents",cY="viewport",y0="popper",Mpe="reference",r8=Y1.reduce(function(e,t){return e.concat([t+"-"+Zm,t+"-"+Cy])},[]),dY=[].concat(Y1,[MN]).reduce(function(e,t){return e.concat([t,t+"-"+Zm,t+"-"+Cy])},[]),$pe="beforeRead",Fpe="read",Bpe="afterRead",Upe="beforeMain",jpe="main",zpe="afterMain",Vpe="beforeWrite",Hpe="write",Wpe="afterWrite",Qpe=[$pe,Fpe,Bpe,Upe,jpe,zpe,Vpe,Hpe,Wpe];function Ru(e){return e?(e.nodeName||"").toLowerCase():null}function ms(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function bp(e){var t=ms(e).Element;return e instanceof t||e instanceof Element}function Ws(e){var t=ms(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function $N(e){if(typeof ShadowRoot>"u")return!1;var t=ms(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Ype(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!Ws(o)||!Ru(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function Gpe(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],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!Ws(i)||!Ru(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const qpe={name:"applyStyles",enabled:!0,phase:"write",fn:Ype,effect:Gpe,requires:["computeStyles"]};function xu(e){return e.split("-")[0]}var ap=Math.max,rT=Math.min,Xm=Math.round;function F_(){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 fY(){return!/^((?!chrome|android).)*safari/i.test(F_())}function Km(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Ws(e)&&(i=e.offsetWidth>0&&Xm(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Xm(r.height)/e.offsetHeight||1);var a=bp(e)?ms(e):window,s=a.visualViewport,l=!fY()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/i,c=(r.top+(l&&s?s.offsetTop:0))/o,d=r.width/i,p=r.height/o;return{width:d,height:p,top:c,right:u+d,bottom:c+p,left:u,x:u,y:c}}function FN(e){var t=Km(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 pY(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&$N(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ec(e){return ms(e).getComputedStyle(e)}function Zpe(e){return["table","td","th"].indexOf(Ru(e))>=0}function af(e){return((bp(e)?e.ownerDocument:e.document)||window.document).documentElement}function Sk(e){return Ru(e)==="html"?e:e.assignedSlot||e.parentNode||($N(e)?e.host:null)||af(e)}function i8(e){return!Ws(e)||Ec(e).position==="fixed"?null:e.offsetParent}function Xpe(e){var t=/firefox/i.test(F_()),n=/Trident/i.test(F_());if(n&&Ws(e)){var r=Ec(e);if(r.position==="fixed")return null}var i=Sk(e);for($N(i)&&(i=i.host);Ws(i)&&["html","body"].indexOf(Ru(i))<0;){var o=Ec(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function G1(e){for(var t=ms(e),n=i8(e);n&&Zpe(n)&&Ec(n).position==="static";)n=i8(n);return n&&(Ru(n)==="html"||Ru(n)==="body"&&Ec(n).position==="static")?t:n||Xpe(e)||t}function BN(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Cb(e,t,n){return ap(e,rT(t,n))}function Kpe(e,t,n){var r=Cb(e,t,n);return r>n?n:r}function hY(){return{top:0,right:0,bottom:0,left:0}}function mY(e){return Object.assign({},hY(),e)}function gY(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Jpe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,mY(typeof t!="number"?t:gY(t,Y1))};function ehe(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=xu(n.placement),l=BN(s),u=[_a,tl].indexOf(s)>=0,c=u?"height":"width";if(!(!o||!a)){var d=Jpe(i.padding,n),p=FN(o),h=l==="y"?Aa:_a,m=l==="y"?el:tl,b=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],O=a[l]-n.rects.reference[l],y=G1(o),v=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,S=b/2-O/2,k=d[h],C=v-p[c]-d[m],w=v/2-p[c]/2+S,E=Cb(k,w,C),$=l;n.modifiersData[r]=(t={},t[$]=E,t.centerOffset=E-w,t)}}function the(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)||pY(t.elements.popper,i)&&(t.elements.arrow=i))}const nhe={name:"arrow",enabled:!0,phase:"main",fn:ehe,effect:the,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Jm(e){return e.split("-")[1]}var rhe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ihe(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Xm(n*i)/i||0,y:Xm(r*i)/i||0}}function o8(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=a.x,h=p===void 0?0:p,m=a.y,b=m===void 0?0:m,O=typeof c=="function"?c({x:h,y:b}):{x:h,y:b};h=O.x,b=O.y;var y=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),S=_a,k=Aa,C=window;if(u){var w=G1(n),E="clientHeight",$="clientWidth";if(w===ms(n)&&(w=af(n),Ec(w).position!=="static"&&s==="absolute"&&(E="scrollHeight",$="scrollWidth")),w=w,i===Aa||(i===_a||i===tl)&&o===Cy){k=el;var P=d&&w===C&&C.visualViewport?C.visualViewport.height:w[E];b-=P-r.height,b*=l?1:-1}if(i===_a||(i===Aa||i===el)&&o===Cy){S=tl;var R=d&&w===C&&C.visualViewport?C.visualViewport.width:w[$];h-=R-r.width,h*=l?1:-1}}var B=Object.assign({position:s},u&&rhe),U=c===!0?ihe({x:h,y:b},ms(n)):{x:h,y:b};if(h=U.x,b=U.y,l){var V;return Object.assign({},B,(V={},V[k]=v?"0":"",V[S]=y?"0":"",V.transform=(C.devicePixelRatio||1)<=1?"translate("+h+"px, "+b+"px)":"translate3d("+h+"px, "+b+"px, 0)",V))}return Object.assign({},B,(t={},t[k]=v?b+"px":"",t[S]=y?h+"px":"",t.transform="",t))}function ohe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:xu(t.placement),variation:Jm(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,o8(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,o8(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 ahe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ohe,data:{}};var Ev={passive:!0};function she(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=ms(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",n.update,Ev)}),s&&l.addEventListener("resize",n.update,Ev),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Ev)}),s&&l.removeEventListener("resize",n.update,Ev)}}const lhe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:she,data:{}};var uhe={left:"right",right:"left",bottom:"top",top:"bottom"};function jE(e){return e.replace(/left|right|bottom|top/g,function(t){return uhe[t]})}var che={start:"end",end:"start"};function a8(e){return e.replace(/start|end/g,function(t){return che[t]})}function UN(e){var t=ms(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function jN(e){return Km(af(e)).left+UN(e).scrollLeft}function dhe(e,t){var n=ms(e),r=af(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=fY();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+jN(e),y:l}}function fhe(e){var t,n=af(e),r=UN(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=ap(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=ap(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+jN(e),l=-r.scrollTop;return Ec(i||n).direction==="rtl"&&(s+=ap(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function zN(e){var t=Ec(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function bY(e){return["html","body","#document"].indexOf(Ru(e))>=0?e.ownerDocument.body:Ws(e)&&zN(e)?e:bY(Sk(e))}function Ab(e,t){var n;t===void 0&&(t=[]);var r=bY(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=ms(r),a=i?[o].concat(o.visualViewport||[],zN(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(Ab(Sk(a)))}function B_(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function phe(e,t){var n=Km(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 s8(e,t,n){return t===cY?B_(dhe(e,n)):bp(t)?phe(t,n):B_(fhe(af(e)))}function hhe(e){var t=Ab(Sk(e)),n=["absolute","fixed"].indexOf(Ec(e).position)>=0,r=n&&Ws(e)?G1(e):e;return bp(r)?t.filter(function(i){return bp(i)&&pY(i,r)&&Ru(i)!=="body"}):[]}function mhe(e,t,n,r){var i=t==="clippingParents"?hhe(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,u){var c=s8(e,u,r);return l.top=ap(c.top,l.top),l.right=rT(c.right,l.right),l.bottom=rT(c.bottom,l.bottom),l.left=ap(c.left,l.left),l},s8(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function yY(e){var t=e.reference,n=e.element,r=e.placement,i=r?xu(r):null,o=r?Jm(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case Aa:l={x:a,y:t.y-n.height};break;case el:l={x:a,y:t.y+t.height};break;case tl:l={x:t.x+t.width,y:s};break;case _a:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?BN(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case Zm:l[u]=l[u]-(t[c]/2-n[c]/2);break;case Cy:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function Ay(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?Lpe:s,u=n.rootBoundary,c=u===void 0?cY:u,d=n.elementContext,p=d===void 0?y0:d,h=n.altBoundary,m=h===void 0?!1:h,b=n.padding,O=b===void 0?0:b,y=mY(typeof O!="number"?O:gY(O,Y1)),v=p===y0?Mpe:y0,S=e.rects.popper,k=e.elements[m?v:p],C=mhe(bp(k)?k:k.contextElement||af(e.elements.popper),l,c,a),w=Km(e.elements.reference),E=yY({reference:w,element:S,strategy:"absolute",placement:i}),$=B_(Object.assign({},S,E)),P=p===y0?$:w,R={top:C.top-P.top+y.top,bottom:P.bottom-C.bottom+y.bottom,left:C.left-P.left+y.left,right:P.right-C.right+y.right},B=e.modifiersData.offset;if(p===y0&&B){var U=B[i];Object.keys(R).forEach(function(V){var z=[tl,el].indexOf(V)>=0?1:-1,W=[Aa,el].indexOf(V)>=0?"y":"x";R[V]+=U[W]*z})}return R}function ghe(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?dY:l,c=Jm(r),d=c?s?r8:r8.filter(function(m){return Jm(m)===c}):Y1,p=d.filter(function(m){return u.indexOf(m)>=0});p.length===0&&(p=d);var h=p.reduce(function(m,b){return m[b]=Ay(e,{placement:b,boundary:i,rootBoundary:o,padding:a})[xu(b)],m},{});return Object.keys(h).sort(function(m,b){return h[m]-h[b]})}function bhe(e){if(xu(e)===MN)return[];var t=jE(e);return[a8(e),t,a8(t)]}function yhe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,b=n.allowedAutoPlacements,O=t.options.placement,y=xu(O),v=y===O,S=l||(v||!m?[jE(O)]:bhe(O)),k=[O].concat(S).reduce(function(ce,ge){return ce.concat(xu(ge)===MN?ghe(t,{placement:ge,boundary:c,rootBoundary:d,padding:u,flipVariations:m,allowedAutoPlacements:b}):ge)},[]),C=t.rects.reference,w=t.rects.popper,E=new Map,$=!0,P=k[0],R=0;R=0,W=z?"width":"height",X=Ay(t,{placement:B,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),q=z?V?tl:_a:V?el:Aa;C[W]>w[W]&&(q=jE(q));var Y=jE(q),Z=[];if(o&&Z.push(X[U]<=0),s&&Z.push(X[q]<=0,X[Y]<=0),Z.every(function(ce){return ce})){P=B,$=!1;break}E.set(B,Z)}if($)for(var j=m?3:1,se=function(ge){var ue=k.find(function(xe){var Ne=E.get(xe);if(Ne)return Ne.slice(0,ge).every(function(Ve){return Ve})});if(ue)return P=ue,"break"},ve=j;ve>0;ve--){var G=se(ve);if(G==="break")break}t.placement!==P&&(t.modifiersData[r]._skip=!0,t.placement=P,t.reset=!0)}}const Ohe={name:"flip",enabled:!0,phase:"main",fn:yhe,requiresIfExists:["offset"],data:{_skip:!1}};function l8(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 u8(e){return[Aa,tl,el,_a].some(function(t){return e[t]>=0})}function vhe(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Ay(t,{elementContext:"reference"}),s=Ay(t,{altBoundary:!0}),l=l8(a,r),u=l8(s,i,o),c=u8(l),d=u8(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const Ehe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:vhe};function She(e,t,n){var r=xu(e),i=[_a,Aa].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[_a,tl].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function The(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=dY.reduce(function(c,d){return c[d]=She(d,t.rects,o),c},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const whe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:The};function khe(e){var t=e.state,n=e.name;t.modifiersData[n]=yY({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const xhe={name:"popperOffsets",enabled:!0,phase:"read",fn:khe,data:{}};function Che(e){return e==="x"?"y":"x"}function Ahe(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,h=p===void 0?!0:p,m=n.tetherOffset,b=m===void 0?0:m,O=Ay(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),y=xu(t.placement),v=Jm(t.placement),S=!v,k=BN(y),C=Che(k),w=t.modifiersData.popperOffsets,E=t.rects.reference,$=t.rects.popper,P=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,R=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(w){if(o){var V,z=k==="y"?Aa:_a,W=k==="y"?el:tl,X=k==="y"?"height":"width",q=w[k],Y=q+O[z],Z=q-O[W],j=h?-$[X]/2:0,se=v===Zm?E[X]:$[X],ve=v===Zm?-$[X]:-E[X],G=t.elements.arrow,ce=h&&G?FN(G):{width:0,height:0},ge=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:hY(),ue=ge[z],xe=ge[W],Ne=Cb(0,E[X],ce[X]),Ve=S?E[X]/2-j-Ne-ue-R.mainAxis:se-Ne-ue-R.mainAxis,Ke=S?-E[X]/2+j+Ne+xe+R.mainAxis:ve+Ne+xe+R.mainAxis,Me=t.elements.arrow&&G1(t.elements.arrow),Ye=Me?k==="y"?Me.clientTop||0:Me.clientLeft||0:0,ye=(V=B==null?void 0:B[k])!=null?V:0,ze=q+Ve-ye-Ye,$e=q+Ke-ye,We=Cb(h?rT(Y,ze):Y,q,h?ap(Z,$e):Z);w[k]=We,U[k]=We-q}if(s){var dt,Be=k==="x"?Aa:_a,re=k==="x"?el:tl,ee=w[C],J=C==="y"?"height":"width",Re=ee+O[Be],Le=ee-O[re],De=[Aa,_a].indexOf(y)!==-1,ie=(dt=B==null?void 0:B[C])!=null?dt:0,fe=De?Re:ee-E[J]-$[J]-ie+R.altAxis,de=De?ee+E[J]+$[J]-ie-R.altAxis:Le,Oe=h&&De?Kpe(fe,ee,de):Cb(h?fe:Re,ee,h?de:Le);w[C]=Oe,U[C]=Oe-ee}t.modifiersData[r]=U}}const _he={name:"preventOverflow",enabled:!0,phase:"main",fn:Ahe,requiresIfExists:["offset"]};function Rhe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Ihe(e){return e===ms(e)||!Ws(e)?UN(e):Rhe(e)}function Dhe(e){var t=e.getBoundingClientRect(),n=Xm(t.width)/e.offsetWidth||1,r=Xm(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Nhe(e,t,n){n===void 0&&(n=!1);var r=Ws(t),i=Ws(t)&&Dhe(t),o=af(t),a=Km(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ru(t)!=="body"||zN(o))&&(s=Ihe(t)),Ws(t)?(l=Km(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=jN(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Phe(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function Lhe(e){var t=Phe(e);return Qpe.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Mhe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function $he(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 c8={placement:"bottom",modifiers:[],strategy:"absolute"};function d8(){for(var e=arguments.length,t=new Array(e),n=0;n{o||s(jhe(i)||document.body)},[i,o]),Jr(()=>{if(a&&!o)return xy(n,a),()=>{xy(n,null)}},[n,a,o]),o){if(I.isValidElement(r)){const u={ref:l};return I.cloneElement(r,u)}return N.jsx(I.Fragment,{children:r})}return N.jsx(I.Fragment,{children:a&&Og.createPortal(r,a)})}),vY="Popper";function zhe(e){return lY(vY,e)}xpe(vY,["root"]);const Vhe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Hhe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Whe(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 U_(e){return typeof e=="function"?e():e}function Qhe(e){return e.nodeType!==void 0}const Yhe=()=>kt({root:["root"]},Bfe(zhe)),Ghe={},qhe=I.forwardRef(function(t,n){var r;const{anchorEl:i,children:o,direction:a,disablePortal:s,modifiers:l,open:u,placement:c,popperOptions:d,popperRef:p,slotProps:h={},slots:m={},TransitionProps:b}=t,O=Ge(t,Vhe),y=I.useRef(null),v=yn(y,n),S=I.useRef(null),k=yn(S,p),C=I.useRef(k);Jr(()=>{C.current=k},[k]),I.useImperativeHandle(p,()=>S.current,[]);const w=Whe(c,a),[E,$]=I.useState(w),[P,R]=I.useState(U_(i));I.useEffect(()=>{S.current&&S.current.forceUpdate()}),I.useEffect(()=>{i&&R(U_(i))},[i]),Jr(()=>{if(!P||!u)return;const W=Y=>{$(Y.placement)};let X=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Y})=>{W(Y)}}];l!=null&&(X=X.concat(l)),d&&d.modifiers!=null&&(X=X.concat(d.modifiers));const q=Uhe(P,y.current,L({placement:w},d,{modifiers:X}));return C.current(q),()=>{q.destroy(),C.current(null)}},[P,s,l,u,d,w]);const B={placement:E};b!==null&&(B.TransitionProps=b);const U=Yhe(),V=(r=m.root)!=null?r:"div",z=kn({elementType:V,externalSlotProps:h.root,externalForwardedProps:O,additionalProps:{role:"tooltip",ref:v},ownerState:t,className:U.root});return N.jsx(V,L({},z,{children:typeof o=="function"?o(B):o}))}),Zhe=I.forwardRef(function(t,n){const{anchorEl:r,children:i,container:o,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:u,open:c,placement:d="bottom",popperOptions:p=Ghe,popperRef:h,style:m,transition:b=!1,slotProps:O={},slots:y={}}=t,v=Ge(t,Hhe),[S,k]=I.useState(!0),C=()=>{k(!1)},w=()=>{k(!0)};if(!l&&!c&&(!b||S))return null;let E;if(o)E=o;else if(r){const R=U_(r);E=R&&Qhe(R)?Or(R).body:Or(null).body}const $=!c&&l&&(!b||S)?"none":void 0,P=b?{in:c,onEnter:C,onExited:w}:void 0;return N.jsx(OY,{disablePortal:s,container:E,children:N.jsx(qhe,L({anchorEl:r,direction:a,disablePortal:s,modifiers:u,ref:n,open:b?!S:c,placement:d,popperOptions:p,popperRef:h,slotProps:O,slots:y},v,{style:L({position:"fixed",top:0,left:0,display:$},m),TransitionProps:P,children:i}))})});function Xhe(e){const t=Or(e);return t.body===e?Js(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function _b(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function f8(e){return parseInt(Js(e).getComputedStyle(e).paddingRight,10)||0}function Khe(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 p8(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,a=>{const s=o.indexOf(a)===-1,l=!Khe(a);s&&l&&_b(a,i)})}function jC(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function Jhe(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Xhe(r)){const a=WQ(Or(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${f8(r)+a}px`;const s=Or(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${f8(l)+a}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=Or(r).body;else{const a=r.parentElement,s=Js(r);o=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:a,property:s})=>{o?a.style.setProperty(s,o):a.style.removeProperty(s)})}}function eme(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class tme{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&&_b(t.modalRef,!1);const i=eme(n);p8(n,t.mount,t.modalRef,i,!0);const o=jC(this.containers,a=>a.container===n);return o!==-1?(this.containers[o].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=jC(this.containers,o=>o.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=Jhe(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=jC(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(r,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&_b(t.modalRef,n),p8(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const a=o.modals[o.modals.length-1];a.modalRef&&_b(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function nme(e){return typeof e=="function"?e():e}function rme(e){return e?e.props.hasOwnProperty("in"):!1}const ime=new tme;function ome(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=ime,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,p=I.useRef({}),h=I.useRef(null),m=I.useRef(null),b=yn(m,d),[O,y]=I.useState(!c),v=rme(l);let S=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(S=!1);const k=()=>Or(h.current),C=()=>(p.current.modalRef=m.current,p.current.mount=h.current,p.current),w=()=>{i.mount(C(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=jt(()=>{const X=nme(t)||k().body;i.add(C(),X),m.current&&w()}),$=I.useCallback(()=>i.isTopModal(C()),[i]),P=jt(X=>{h.current=X,X&&(c&&$()?w():m.current&&_b(m.current,S))}),R=I.useCallback(()=>{i.remove(C(),S)},[S,i]);I.useEffect(()=>()=>{R()},[R]),I.useEffect(()=>{c?E():(!v||!o)&&R()},[c,R,v,o,E]);const B=X=>q=>{var Y;(Y=X.onKeyDown)==null||Y.call(X,q),!(q.key!=="Escape"||q.which===229||!$())&&(n||(q.stopPropagation(),u&&u(q,"escapeKeyDown")))},U=X=>q=>{var Y;(Y=X.onClick)==null||Y.call(X,q),q.target===q.currentTarget&&u&&u(q,"backdropClick")};return{getRootProps:(X={})=>{const q=xb(e);delete q.onTransitionEnter,delete q.onTransitionExited;const Y=L({},q,X);return L({role:"presentation"},Y,{onKeyDown:B(Y),ref:b})},getBackdropProps:(X={})=>{const q=X;return L({"aria-hidden":!0},q,{onClick:U(q),open:c})},getTransitionProps:()=>{const X=()=>{y(!1),a&&a()},q=()=>{y(!0),s&&s(),o&&R()};return{onEnter:KS(X,l==null?void 0:l.props.onEnter),onExited:KS(q,l==null?void 0:l.props.onExited)}},rootRef:b,portalRef:P,isTopModal:$,exited:O,hasTransition:v}}const ame=2;function EY(e,t){return e-t}function h8(e,t){var n;const{index:r}=(n=e.reduce((i,o,a)=>{const s=Math.abs(t-o);return i===null||s({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}%`})}},dme=e=>e;let kv;function g8(){return kv===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?kv=CSS.supports("touch-action","none"):kv=!0),kv}function fme(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:o=!1,marks:a=!1,max:s=100,min:l=0,name:u,onChange:c,onChangeCommitted:d,orientation:p="horizontal",rootRef:h,scale:m=dme,step:b=1,tabIndex:O,value:y}=e,v=I.useRef(),[S,k]=I.useState(-1),[C,w]=I.useState(-1),[E,$]=I.useState(!1),P=I.useRef(0),[R,B]=Xi({controlled:y,default:n??l,name:"Slider"}),U=c&&((ie,fe,de)=>{const Oe=ie.nativeEvent||ie,Te=new Oe.constructor(Oe.type,Oe);Object.defineProperty(Te,"target",{writable:!0,value:{value:fe,name:u}}),c(Te,fe,de)}),V=Array.isArray(R);let z=V?R.slice().sort(EY):[R];z=z.map(ie=>ie==null?l:Oh(ie,l,s));const W=a===!0&&b!==null?[...Array(Math.floor((s-l)/b)+1)].map((ie,fe)=>({value:l+b*fe})):a||[],X=W.map(ie=>ie.value),{isFocusVisibleRef:q,onBlur:Y,onFocus:Z,ref:j}=ak(),[se,ve]=I.useState(-1),G=I.useRef(),ce=yn(j,G),ge=yn(h,ce),ue=ie=>fe=>{var de;const Oe=Number(fe.currentTarget.getAttribute("data-index"));Z(fe),q.current===!0&&ve(Oe),w(Oe),ie==null||(de=ie.onFocus)==null||de.call(ie,fe)},xe=ie=>fe=>{var de;Y(fe),q.current===!1&&ve(-1),w(-1),ie==null||(de=ie.onBlur)==null||de.call(ie,fe)};Jr(()=>{if(r&&G.current.contains(document.activeElement)){var ie;(ie=document.activeElement)==null||ie.blur()}},[r]),r&&S!==-1&&k(-1),r&&se!==-1&&ve(-1);const Ne=ie=>fe=>{var de;(de=ie.onChange)==null||de.call(ie,fe);const Oe=Number(fe.currentTarget.getAttribute("data-index")),Te=z[Oe],rt=X.indexOf(Te);let pt=fe.target.valueAsNumber;if(W&&b==null){const xt=X[X.length-1];pt>xt?pt=xt:pt{const{current:de}=G,{width:Oe,height:Te,bottom:rt,left:pt}=de.getBoundingClientRect();let xt;Ke.indexOf("vertical")===0?xt=(rt-ie.y)/Te:xt=(ie.x-pt)/Oe,Ke.indexOf("-reverse")!==-1&&(xt=1-xt);let et;if(et=sme(xt,l,s),b)et=ume(et,b,l);else{const qe=h8(X,et);et=X[qe]}et=Oh(et,l,s);let vt=0;if(V){fe?vt=Ve.current:vt=h8(z,et),i&&(et=Oh(et,z[vt-1]||-1/0,z[vt+1]||1/0));const qe=et;et=m8({values:z,newValue:et,index:vt}),i&&fe||(vt=et.indexOf(qe),Ve.current=vt)}return{newValue:et,activeIndex:vt}},Ye=jt(ie=>{const fe=Sv(ie,v);if(!fe)return;if(P.current+=1,ie.type==="mousemove"&&ie.buttons===0){ye(ie);return}const{newValue:de,activeIndex:Oe}=Me({finger:fe,move:!0});Tv({sliderRef:G,activeIndex:Oe,setActive:k}),B(de),!E&&P.current>ame&&$(!0),U&&!wv(de,R)&&U(ie,de,Oe)}),ye=jt(ie=>{const fe=Sv(ie,v);if($(!1),!fe)return;const{newValue:de}=Me({finger:fe,move:!0});k(-1),ie.type==="touchend"&&w(-1),d&&d(ie,de),v.current=void 0,$e()}),ze=jt(ie=>{if(r)return;g8()||ie.preventDefault();const fe=ie.changedTouches[0];fe!=null&&(v.current=fe.identifier);const de=Sv(ie,v);if(de!==!1){const{newValue:Te,activeIndex:rt}=Me({finger:de});Tv({sliderRef:G,activeIndex:rt,setActive:k}),B(Te),U&&!wv(Te,R)&&U(ie,Te,rt)}P.current=0;const Oe=Or(G.current);Oe.addEventListener("touchmove",Ye,{passive:!0}),Oe.addEventListener("touchend",ye,{passive:!0})}),$e=I.useCallback(()=>{const ie=Or(G.current);ie.removeEventListener("mousemove",Ye),ie.removeEventListener("mouseup",ye),ie.removeEventListener("touchmove",Ye),ie.removeEventListener("touchend",ye)},[ye,Ye]);I.useEffect(()=>{const{current:ie}=G;return ie.addEventListener("touchstart",ze,{passive:g8()}),()=>{ie.removeEventListener("touchstart",ze),$e()}},[$e,ze]),I.useEffect(()=>{r&&$e()},[r,$e]);const We=ie=>fe=>{var de;if((de=ie.onMouseDown)==null||de.call(ie,fe),r||fe.defaultPrevented||fe.button!==0)return;fe.preventDefault();const Oe=Sv(fe,v);if(Oe!==!1){const{newValue:rt,activeIndex:pt}=Me({finger:Oe});Tv({sliderRef:G,activeIndex:pt,setActive:k}),B(rt),U&&!wv(rt,R)&&U(fe,rt,pt)}P.current=0;const Te=Or(G.current);Te.addEventListener("mousemove",Ye,{passive:!0}),Te.addEventListener("mouseup",ye)},dt=iT(V?z[0]:l,l,s),Be=iT(z[z.length-1],l,s)-dt,re=(ie={})=>{const fe=xb(ie),de={onMouseDown:We(fe||{})},Oe=L({},fe,de);return L({},ie,{ref:ge},Oe)},ee=ie=>fe=>{var de;(de=ie.onMouseOver)==null||de.call(ie,fe);const Oe=Number(fe.currentTarget.getAttribute("data-index"));w(Oe)},J=ie=>fe=>{var de;(de=ie.onMouseLeave)==null||de.call(ie,fe),w(-1)};return{active:S,axis:Ke,axisProps:cme,dragging:E,focusedThumbIndex:se,getHiddenInputProps:(ie={})=>{var fe;const de=xb(ie),Oe={onChange:Ne(de||{}),onFocus:ue(de||{}),onBlur:xe(de||{})},Te=L({},de,Oe);return L({tabIndex:O,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":m(s),"aria-valuemin":m(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(fe=e.step)!=null?fe:void 0,disabled:r},ie,Te,{style:L({},Xue,{direction:o?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:re,getThumbProps:(ie={})=>{const fe=xb(ie),de={onMouseOver:ee(fe||{}),onMouseLeave:J(fe||{})};return L({},ie,fe,de)},marks:W,open:C,range:V,rootRef:ge,trackLeap:Be,trackOffset:dt,values:z,getThumbStyle:ie=>({pointerEvents:S!==-1&&S!==ie?"none":void 0})}}const pme=["onChange","maxRows","minRows","style","value"];function xv(e){return parseInt(e,10)||0}const hme={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function b8(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const SY=I.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:o=1,style:a,value:s}=t,l=Ge(t,pme),{current:u}=I.useRef(s!=null),c=I.useRef(null),d=yn(n,c),p=I.useRef(null),h=I.useRef(0),[m,b]=I.useState({outerHeightStyle:0}),O=I.useCallback(()=>{const k=c.current,w=Js(k).getComputedStyle(k);if(w.width==="0px")return{outerHeightStyle:0};const E=p.current;E.style.width=w.width,E.value=k.value||t.placeholder||"x",E.value.slice(-1)===` +`&&(E.value+=" ");const $=w.boxSizing,P=xv(w.paddingBottom)+xv(w.paddingTop),R=xv(w.borderBottomWidth)+xv(w.borderTopWidth),B=E.scrollHeight;E.value="x";const U=E.scrollHeight;let V=B;o&&(V=Math.max(Number(o)*U,V)),i&&(V=Math.min(Number(i)*U,V)),V=Math.max(V,U);const z=V+($==="border-box"?P+R:0),W=Math.abs(V-B)<=1;return{outerHeightStyle:z,overflow:W}},[i,o,t.placeholder]),y=(k,C)=>{const{outerHeightStyle:w,overflow:E}=C;return h.current<20&&(w>0&&Math.abs((k.outerHeightStyle||0)-w)>1||k.overflow!==E)?(h.current+=1,{overflow:E,outerHeightStyle:w}):k},v=I.useCallback(()=>{const k=O();b8(k)||b(C=>y(C,k))},[O]);Jr(()=>{const k=()=>{const B=O();b8(B)||Og.flushSync(()=>{b(U=>y(U,B))})},C=()=>{h.current=0,k()};let w;const E=Sg(C),$=c.current,P=Js($);P.addEventListener("resize",E);let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(C),R.observe($)),()=>{E.clear(),cancelAnimationFrame(w),P.removeEventListener("resize",E),R&&R.disconnect()}},[O]),Jr(()=>{v()}),I.useEffect(()=>{h.current=0},[s]);const S=k=>{h.current=0,u||v(),r&&r(k)};return N.jsxs(I.Fragment,{children:[N.jsx("textarea",L({value:s,onChange:S,ref:d,rows:o,style:L({height:m.outerHeightStyle,overflow:m.overflow?"hidden":void 0},a)},l)),N.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:L({},hme.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function y8(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function mme(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:i="any",stringify:o,trim:a=!1}=e;return(s,{inputValue:l,getOptionLabel:u})=>{let c=a?l.trim():l;n&&(c=c.toLowerCase()),t&&(c=y8(c));const d=c?s.filter(p=>{let h=(o||u)(p);return n&&(h=h.toLowerCase()),t&&(h=y8(h)),i==="start"?h.indexOf(c)===0:h.indexOf(c)>-1}):s;return typeof r=="number"?d.slice(0,r):d}}function zC(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 yme(e){const{unstable_isActiveElementInListbox:t=bme,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:o=!1,blurOnSelect:a=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:u="useAutocomplete",defaultValue:c=e.multiple?[]:null,disableClearable:d=!1,disableCloseOnSelect:p=!1,disabled:h,disabledItemsFocusable:m=!1,disableListWrap:b=!1,filterOptions:O=gme,filterSelectedOptions:y=!1,freeSolo:v=!1,getOptionDisabled:S,getOptionKey:k,getOptionLabel:C=Ue=>{var Ce;return(Ce=Ue.label)!=null?Ce:Ue},groupBy:w,handleHomeEndKeys:E=!e.freeSolo,id:$,includeInputInList:P=!1,inputValue:R,isOptionEqualToValue:B=(Ue,Ce)=>Ue===Ce,multiple:U=!1,onChange:V,onClose:z,onHighlightChange:W,onInputChange:X,onOpen:q,open:Y,openOnFocus:Z=!1,options:j,readOnly:se=!1,selectOnFocus:ve=!e.freeSolo,value:G}=e,ce=$l($);let ge=C;ge=Ue=>{const Ce=C(Ue);return typeof Ce!="string"?String(Ce):Ce};const ue=I.useRef(!1),xe=I.useRef(!0),Ne=I.useRef(null),Ve=I.useRef(null),[Ke,Me]=I.useState(null),[Ye,ye]=I.useState(-1),ze=i?0:-1,$e=I.useRef(ze),[We,dt]=Xi({controlled:G,default:c,name:u}),[Be,re]=Xi({controlled:R,default:"",name:u,state:"inputValue"}),[ee,J]=I.useState(!1),Re=I.useCallback((Ue,Ce)=>{if(!(U?We.length!(y&&(U?We:[We]).some(Ce=>Ce!==null&&B(Ue,Ce)))),{inputValue:de&&ie?"":Be,getOptionLabel:ge}):[],rt=Gue({filteredOptions:Te,value:We,inputValue:Be});I.useEffect(()=>{const Ue=We!==rt.value;ee&&!Ue||v&&!Ue||Re(null,We)},[We,Re,ee,rt.value,v]);const pt=Le&&Te.length>0&&!se,xt=jt(Ue=>{Ue===-1?Ne.current.focus():Ke.querySelector(`[data-tag-index="${Ue}"]`).focus()});I.useEffect(()=>{U&&Ye>We.length-1&&(ye(-1),xt(-1))},[We,U,Ye,xt]);function et(Ue,Ce){if(!Ve.current||Ue<0||Ue>=Te.length)return-1;let mt=Ue;for(;;){const Dt=Ve.current.querySelector(`[data-option-index="${mt}"]`),tn=m?!1:!Dt||Dt.disabled||Dt.getAttribute("aria-disabled")==="true";if(Dt&&Dt.hasAttribute("tabindex")&&!tn)return mt;if(Ce==="next"?mt=(mt+1)%Te.length:mt=(mt-1+Te.length)%Te.length,mt===Ue)return-1}}const vt=jt(({event:Ue,index:Ce,reason:mt="auto"})=>{if($e.current=Ce,Ce===-1?Ne.current.removeAttribute("aria-activedescendant"):Ne.current.setAttribute("aria-activedescendant",`${ce}-option-${Ce}`),W&&W(Ue,Ce===-1?null:Te[Ce],mt),!Ve.current)return;const Dt=Ve.current.querySelector(`[role="option"].${n}-focused`);Dt&&(Dt.classList.remove(`${n}-focused`),Dt.classList.remove(`${n}-focusVisible`));let tn=Ve.current;if(Ve.current.getAttribute("role")!=="listbox"&&(tn=Ve.current.parentElement.querySelector('[role="listbox"]')),!tn)return;if(Ce===-1){tn.scrollTop=0;return}const Mn=Ve.current.querySelector(`[data-option-index="${Ce}"]`);if(Mn&&(Mn.classList.add(`${n}-focused`),mt==="keyboard"&&Mn.classList.add(`${n}-focusVisible`),tn.scrollHeight>tn.clientHeight&&mt!=="mouse"&&mt!=="touch")){const Dn=Mn,Kt=tn.clientHeight+tn.scrollTop,bn=Dn.offsetTop+Dn.offsetHeight;bn>Kt?tn.scrollTop=bn-tn.clientHeight:Dn.offsetTop-Dn.offsetHeight*(w?1.3:0){if(!Oe)return;const Mn=et((()=>{const Dn=Te.length-1;if(Ce==="reset")return ze;if(Ce==="start")return 0;if(Ce==="end")return Dn;const Kt=$e.current+Ce;return Kt<0?Kt===-1&&P?-1:b&&$e.current!==-1||Math.abs(Ce)>1?0:Dn:Kt>Dn?Kt===Dn+1&&P?-1:b||Math.abs(Ce)>1?Dn:0:Kt})(),mt);if(vt({index:Mn,reason:Dt,event:Ue}),r&&Ce!=="reset")if(Mn===-1)Ne.current.value=Be;else{const Dn=ge(Te[Mn]);Ne.current.value=Dn,Dn.toLowerCase().indexOf(Be.toLowerCase())===0&&Be.length>0&&Ne.current.setSelectionRange(Be.length,Dn.length)}}),it=()=>{const Ue=(Ce,mt)=>{const Dt=Ce?ge(Ce):"",tn=mt?ge(mt):"";return Dt===tn};if($e.current!==-1&&rt.filteredOptions&&rt.filteredOptions.length!==Te.length&&rt.inputValue===Be&&(U?We.length===rt.value.length&&rt.value.every((Ce,mt)=>ge(We[mt])===ge(Ce)):Ue(rt.value,We))){const Ce=rt.filteredOptions[$e.current];if(Ce&&Te.some(Dt=>ge(Dt)===ge(Ce)))return!0}return!1},Et=I.useCallback(()=>{if(!Oe||it())return;const Ue=U?We[0]:We;if(Te.length===0||Ue==null){qe({diff:"reset"});return}if(Ve.current){if(Ue!=null){const Ce=Te[$e.current];if(U&&Ce&&zC(We,Dt=>B(Ce,Dt))!==-1)return;const mt=zC(Te,Dt=>B(Dt,Ue));mt===-1?qe({diff:"reset"}):vt({index:mt});return}if($e.current>=Te.length-1){vt({index:Te.length-1});return}vt({index:$e.current})}},[Te.length,U?!1:We,y,qe,vt,Oe,Be,U]),Nt=jt(Ue=>{xy(Ve,Ue),Ue&&Et()});I.useEffect(()=>{Et()},[Et]);const on=Ue=>{Le||(De(!0),fe(!0),q&&q(Ue))},dn=(Ue,Ce)=>{Le&&(De(!1),z&&z(Ue,Ce))},pn=(Ue,Ce,mt,Dt)=>{if(U){if(We.length===Ce.length&&We.every((tn,Mn)=>tn===Ce[Mn]))return}else if(We===Ce)return;V&&V(Ue,Ce,mt,Dt),dt(Ce)},zn=I.useRef(!1),Ee=(Ue,Ce,mt="selectOption",Dt="options")=>{let tn=mt,Mn=Ce;if(U){Mn=Array.isArray(We)?We.slice():[];const Dn=zC(Mn,Kt=>B(Ce,Kt));Dn===-1?Mn.push(Ce):Dt!=="freeSolo"&&(Mn.splice(Dn,1),tn="removeOption")}Re(Ue,Mn),pn(Ue,Mn,tn,{option:Ce}),!p&&(!Ue||!Ue.ctrlKey&&!Ue.metaKey)&&dn(Ue,tn),(a===!0||a==="touch"&&zn.current||a==="mouse"&&!zn.current)&&Ne.current.blur()};function _e(Ue,Ce){if(Ue===-1)return-1;let mt=Ue;for(;;){if(Ce==="next"&&mt===We.length||Ce==="previous"&&mt===-1)return-1;const Dt=Ke.querySelector(`[data-tag-index="${mt}"]`);if(!Dt||!Dt.hasAttribute("tabindex")||Dt.disabled||Dt.getAttribute("aria-disabled")==="true")mt+=Ce==="next"?1:-1;else return mt}}const pe=(Ue,Ce)=>{if(!U)return;Be===""&&dn(Ue,"toggleInput");let mt=Ye;Ye===-1?Be===""&&Ce==="previous"&&(mt=We.length-1):(mt+=Ce==="next"?1:-1,mt<0&&(mt=0),mt===We.length&&(mt=-1)),mt=_e(mt,Ce),ye(mt),xt(mt)},lt=Ue=>{ue.current=!0,re(""),X&&X(Ue,"","clear"),pn(Ue,U?[]:null,"clear")},at=Ue=>Ce=>{if(Ue.onKeyDown&&Ue.onKeyDown(Ce),!Ce.defaultMuiPrevented&&(Ye!==-1&&["ArrowLeft","ArrowRight"].indexOf(Ce.key)===-1&&(ye(-1),xt(-1)),Ce.which!==229))switch(Ce.key){case"Home":Oe&&E&&(Ce.preventDefault(),qe({diff:"start",direction:"next",reason:"keyboard",event:Ce}));break;case"End":Oe&&E&&(Ce.preventDefault(),qe({diff:"end",direction:"previous",reason:"keyboard",event:Ce}));break;case"PageUp":Ce.preventDefault(),qe({diff:-O8,direction:"previous",reason:"keyboard",event:Ce}),on(Ce);break;case"PageDown":Ce.preventDefault(),qe({diff:O8,direction:"next",reason:"keyboard",event:Ce}),on(Ce);break;case"ArrowDown":Ce.preventDefault(),qe({diff:1,direction:"next",reason:"keyboard",event:Ce}),on(Ce);break;case"ArrowUp":Ce.preventDefault(),qe({diff:-1,direction:"previous",reason:"keyboard",event:Ce}),on(Ce);break;case"ArrowLeft":pe(Ce,"previous");break;case"ArrowRight":pe(Ce,"next");break;case"Enter":if($e.current!==-1&&Oe){const mt=Te[$e.current],Dt=S?S(mt):!1;if(Ce.preventDefault(),Dt)return;Ee(Ce,mt,"selectOption"),r&&Ne.current.setSelectionRange(Ne.current.value.length,Ne.current.value.length)}else v&&Be!==""&&de===!1&&(U&&Ce.preventDefault(),Ee(Ce,Be,"createOption","freeSolo"));break;case"Escape":Oe?(Ce.preventDefault(),Ce.stopPropagation(),dn(Ce,"escape")):l&&(Be!==""||U&&We.length>0)&&(Ce.preventDefault(),Ce.stopPropagation(),lt(Ce));break;case"Backspace":if(U&&!se&&Be===""&&We.length>0){const mt=Ye===-1?We.length-1:Ye,Dt=We.slice();Dt.splice(mt,1),pn(Ce,Dt,"removeOption",{option:We[mt]})}break;case"Delete":if(U&&!se&&Be===""&&We.length>0&&Ye!==-1){const mt=Ye,Dt=We.slice();Dt.splice(mt,1),pn(Ce,Dt,"removeOption",{option:We[mt]})}break}},Mt=Ue=>{J(!0),Z&&!ue.current&&on(Ue)},$t=Ue=>{if(t(Ve)){Ne.current.focus();return}J(!1),xe.current=!0,ue.current=!1,o&&$e.current!==-1&&Oe?Ee(Ue,Te[$e.current],"blur"):o&&v&&Be!==""?Ee(Ue,Be,"blur","freeSolo"):s&&Re(Ue,We),dn(Ue,"blur")},It=Ue=>{const Ce=Ue.target.value;Be!==Ce&&(re(Ce),fe(!1),X&&X(Ue,Ce,"input")),Ce===""?!d&&!U&&pn(Ue,null,"clear"):on(Ue)},Ct=Ue=>{const Ce=Number(Ue.currentTarget.getAttribute("data-option-index"));$e.current!==Ce&&vt({event:Ue,index:Ce,reason:"mouse"})},Zt=Ue=>{vt({event:Ue,index:Number(Ue.currentTarget.getAttribute("data-option-index")),reason:"touch"}),zn.current=!0},Ie=Ue=>{const Ce=Number(Ue.currentTarget.getAttribute("data-option-index"));Ee(Ue,Te[Ce],"selectOption"),zn.current=!1},we=Ue=>Ce=>{const mt=We.slice();mt.splice(Ue,1),pn(Ce,mt,"removeOption",{option:We[Ue]})},Qe=Ue=>{Le?dn(Ue,"toggleInput"):on(Ue)},ot=Ue=>{Ue.currentTarget.contains(Ue.target)&&Ue.target.getAttribute("id")!==ce&&Ue.preventDefault()},rn=Ue=>{Ue.currentTarget.contains(Ue.target)&&(Ne.current.focus(),ve&&xe.current&&Ne.current.selectionEnd-Ne.current.selectionStart===0&&Ne.current.select(),xe.current=!1)},Wt=Ue=>{!h&&(Be===""||!Le)&&Qe(Ue)};let mn=v&&Be.length>0;mn=mn||(U?We.length>0:We!==null);let nr=Te;return w&&(nr=Te.reduce((Ue,Ce,mt)=>{const Dt=w(Ce);return Ue.length>0&&Ue[Ue.length-1].group===Dt?Ue[Ue.length-1].options.push(Ce):Ue.push({key:mt,index:mt,group:Dt,options:[Ce]}),Ue},[])),h&&ee&&$t(),{getRootProps:(Ue={})=>L({"aria-owns":pt?`${ce}-listbox`:null},Ue,{onKeyDown:at(Ue),onMouseDown:ot,onClick:rn}),getInputLabelProps:()=>({id:`${ce}-label`,htmlFor:ce}),getInputProps:()=>({id:ce,value:Be,onBlur:$t,onFocus:Mt,onChange:It,onMouseDown:Wt,"aria-activedescendant":Oe?"":null,"aria-autocomplete":r?"both":"list","aria-controls":pt?`${ce}-listbox`:void 0,"aria-expanded":pt,autoComplete:"off",ref:Ne,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:lt}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Qe}),getTagProps:({index:Ue})=>L({key:Ue,"data-tag-index":Ue,tabIndex:-1},!se&&{onDelete:we(Ue)}),getListboxProps:()=>({role:"listbox",id:`${ce}-listbox`,"aria-labelledby":`${ce}-label`,ref:Nt,onMouseDown:Ue=>{Ue.preventDefault()}}),getOptionProps:({index:Ue,option:Ce})=>{var mt;const Dt=(U?We:[We]).some(Mn=>Mn!=null&&B(Ce,Mn)),tn=S?S(Ce):!1;return{key:(mt=k==null?void 0:k(Ce))!=null?mt:ge(Ce),tabIndex:-1,role:"option",id:`${ce}-option-${Ue}`,onMouseMove:Ct,onClick:Ie,onTouchStart:Zt,"data-option-index":Ue,"aria-disabled":tn,"aria-selected":Dt}},id:ce,inputValue:Be,value:We,dirty:mn,expanded:Oe&&Ke,popupOpen:Oe,focused:ee||Ye!==-1,anchorEl:Ke,setAnchorEl:Me,focusedTag:Ye,groupedOptions:nr}}const Ome=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],vme=Se(Zhe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Eme=I.forwardRef(function(t,n){var r;const i=mk(),o=gt({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:u,container:c,disablePortal:d,keepMounted:p,modifiers:h,open:m,placement:b,popperOptions:O,popperRef:y,transition:v,slots:S,slotProps:k}=o,C=Ge(o,Ome),w=(r=S==null?void 0:S.root)!=null?r:l==null?void 0:l.Root,E=L({anchorEl:a,container:c,disablePortal:d,keepMounted:p,modifiers:h,open:m,placement:b,popperOptions:O,popperRef:y,transition:v},C);return N.jsx(vme,L({as:s,direction:i==null?void 0:i.direction,slots:{root:w},slotProps:k??u},E,{ref:n}))}),q1=Eme;function Sme(e){return At("MuiListSubheader",e)}_t("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Tme=["className","color","component","disableGutters","disableSticky","inset"],wme=e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:o}=e,a={root:["root",n!=="default"&&`color${nt(n)}`,!r&&"gutters",i&&"inset",!o&&"sticky"]};return kt(a,Sme,t)},kme=Se("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${nt(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>L({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})),TY=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiListSubheader"}),{className:i,color:o="default",component:a="li",disableGutters:s=!1,disableSticky:l=!1,inset:u=!1}=r,c=Ge(r,Tme),d=L({},r,{color:o,component:a,disableGutters:s,disableSticky:l,inset:u}),p=wme(d);return N.jsx(kme,L({as:a,className:Je(p.root,i),ref:n,ownerState:d},c))});TY.muiSkipListHighlight=!0;const xme=TY,Cme=ki(N.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 Ame(e){return At("MuiChip",e)}const _me=_t("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"]),rr=_me,Rme=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],Ime=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:o,onDelete:a,clickable:s,variant:l}=e,u={root:["root",l,n&&"disabled",`size${nt(r)}`,`color${nt(i)}`,s&&"clickable",s&&`clickableColor${nt(i)}`,a&&"deletable",a&&`deletableColor${nt(i)}`,`${l}${nt(i)}`],label:["label",`label${nt(r)}`],avatar:["avatar",`avatar${nt(r)}`,`avatarColor${nt(i)}`],icon:["icon",`icon${nt(r)}`,`iconColor${nt(o)}`],deleteIcon:["deleteIcon",`deleteIcon${nt(r)}`,`deleteIconColor${nt(i)}`,`deleteIcon${nt(l)}Color${nt(i)}`]};return kt(u,Ame,t)},Dme=Se("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:o,onDelete:a,size:s,variant:l}=n;return[{[`& .${rr.avatar}`]:t.avatar},{[`& .${rr.avatar}`]:t[`avatar${nt(s)}`]},{[`& .${rr.avatar}`]:t[`avatarColor${nt(r)}`]},{[`& .${rr.icon}`]:t.icon},{[`& .${rr.icon}`]:t[`icon${nt(s)}`]},{[`& .${rr.icon}`]:t[`iconColor${nt(i)}`]},{[`& .${rr.deleteIcon}`]:t.deleteIcon},{[`& .${rr.deleteIcon}`]:t[`deleteIcon${nt(s)}`]},{[`& .${rr.deleteIcon}`]:t[`deleteIconColor${nt(r)}`]},{[`& .${rr.deleteIcon}`]:t[`deleteIcon${nt(l)}Color${nt(r)}`]},t.root,t[`size${nt(s)}`],t[`color${nt(r)}`],o&&t.clickable,o&&r!=="default"&&t[`clickableColor${nt(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${nt(r)}`],t[l],t[`${l}${nt(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return L({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",[`&.${rr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${rr.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${rr.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${rr.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${rr.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${rr.icon}`]:L({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&L({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${rr.deleteIcon}`]:L({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:cn(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)`:cn(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)`:cn(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&&{[`&.${rr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${rr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>L({},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}))`:cn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${rr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(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, &.${rr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>L({},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]}`,[`&.${rr.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${rr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${rr.avatar}`]:{marginLeft:4},[`& .${rr.avatarSmall}`]:{marginLeft:2},[`& .${rr.icon}`]:{marginLeft:4},[`& .${rr.iconSmall}`]:{marginLeft:2},[`& .${rr.deleteIcon}`]:{marginRight:5},[`& .${rr.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)`:cn(e.palette[t.color].main,.7)}`,[`&.${rr.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${rr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:cn(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${rr.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:cn(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Nme=Se("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${nt(r)}`]]}})(({ownerState:e})=>L({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 v8(e){return e.key==="Backspace"||e.key==="Delete"}const Pme=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiChip"}),{avatar:i,className:o,clickable:a,color:s="default",component:l,deleteIcon:u,disabled:c=!1,icon:d,label:p,onClick:h,onDelete:m,onKeyDown:b,onKeyUp:O,size:y="medium",variant:v="filled",tabIndex:S,skipFocusWhenDisabled:k=!1}=r,C=Ge(r,Rme),w=I.useRef(null),E=yn(w,n),$=Z=>{Z.stopPropagation(),m&&m(Z)},P=Z=>{Z.currentTarget===Z.target&&v8(Z)&&Z.preventDefault(),b&&b(Z)},R=Z=>{Z.currentTarget===Z.target&&(m&&v8(Z)?m(Z):Z.key==="Escape"&&w.current&&w.current.blur()),O&&O(Z)},B=a!==!1&&h?!0:a,U=B||m?hs:l||"div",V=L({},r,{component:U,disabled:c,size:y,color:s,iconColor:I.isValidElement(d)&&d.props.color||s,onDelete:!!m,clickable:B,variant:v}),z=Ime(V),W=U===hs?L({component:l||"div",focusVisibleClassName:z.focusVisible},m&&{disableRipple:!0}):{};let X=null;m&&(X=u&&I.isValidElement(u)?I.cloneElement(u,{className:Je(u.props.className,z.deleteIcon),onClick:$}):N.jsx(Cme,{className:Je(z.deleteIcon),onClick:$}));let q=null;i&&I.isValidElement(i)&&(q=I.cloneElement(i,{className:Je(z.avatar,i.props.className)}));let Y=null;return d&&I.isValidElement(d)&&(Y=I.cloneElement(d,{className:Je(z.icon,d.props.className)})),N.jsxs(Dme,L({as:U,className:Je(z.root,o),disabled:B&&c?!0:void 0,onClick:h,onKeyDown:P,onKeyUp:R,ref:E,tabIndex:k&&c?-1:S,ownerState:V},W,C,{children:[q||Y,N.jsx(Nme,{className:Je(z.label),ownerState:V,children:p}),X]}))}),VN=Pme;function sf({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 Lme=I.createContext(void 0),Tk=Lme;function Du(){return I.useContext(Tk)}function wY(e){return N.jsx(Zce,L({},e,{defaultTheme:vk,themeId:hp}))}function E8(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function oT(e,t=!1){return e&&(E8(e.value)&&e.value!==""||t&&E8(e.defaultValue)&&e.defaultValue!=="")}function Mme(e){return e.startAdornment}function $me(e){return At("MuiInputBase",e)}const Fme=_t("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Ja=Fme,Bme=["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"],wk=(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${nt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},kk=(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]},Ume=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:h,type:m}=e,b={root:["root",`color${nt(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&p!=="medium"&&`size${nt(p)}`,c&&"multiline",h&&"adornedStart",o&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",m==="search"&&"inputTypeSearch",c&&"inputMultiline",p==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]};return kt(b,$me,t)},xk=Se("div",{name:"MuiInputBase",slot:"Root",overridesResolver:wk})(({theme:e,ownerState:t})=>L({},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",[`&.${Ja.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&L({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Ck=Se("input",{name:"MuiInputBase",slot:"Input",overridesResolver:kk})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=L({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"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return L({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] + .${Ja.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Ja.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"})}),jme=N.jsx(wY,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),zme=I.forwardRef(function(t,n){var r;const i=gt({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:h,endAdornment:m,fullWidth:b=!1,id:O,inputComponent:y="input",inputProps:v={},inputRef:S,maxRows:k,minRows:C,multiline:w=!1,name:E,onBlur:$,onChange:P,onClick:R,onFocus:B,onKeyDown:U,onKeyUp:V,placeholder:z,readOnly:W,renderSuffix:X,rows:q,slotProps:Y={},slots:Z={},startAdornment:j,type:se="text",value:ve}=i,G=Ge(i,Bme),ce=v.value!=null?v.value:ve,{current:ge}=I.useRef(ce!=null),ue=I.useRef(),xe=I.useCallback(Oe=>{},[]),Ne=yn(ue,S,v.ref,xe),[Ve,Ke]=I.useState(!1),Me=Du(),Ye=sf({props:i,muiFormControl:Me,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ye.focused=Me?Me.focused:Ve,I.useEffect(()=>{!Me&&p&&Ve&&(Ke(!1),$&&$())},[Me,p,Ve,$]);const ye=Me&&Me.onFilled,ze=Me&&Me.onEmpty,$e=I.useCallback(Oe=>{oT(Oe)?ye&&ye():ze&&ze()},[ye,ze]);Jr(()=>{ge&&$e({value:ce})},[ce,$e,ge]);const We=Oe=>{if(Ye.disabled){Oe.stopPropagation();return}B&&B(Oe),v.onFocus&&v.onFocus(Oe),Me&&Me.onFocus?Me.onFocus(Oe):Ke(!0)},dt=Oe=>{$&&$(Oe),v.onBlur&&v.onBlur(Oe),Me&&Me.onBlur?Me.onBlur(Oe):Ke(!1)},Be=(Oe,...Te)=>{if(!ge){const rt=Oe.target||ue.current;if(rt==null)throw new Error(zd(1));$e({value:rt.value})}v.onChange&&v.onChange(Oe,...Te),P&&P(Oe,...Te)};I.useEffect(()=>{$e(ue.current)},[]);const re=Oe=>{ue.current&&Oe.currentTarget===Oe.target&&ue.current.focus(),R&&R(Oe)};let ee=y,J=v;w&&ee==="input"&&(q?J=L({type:void 0,minRows:q,maxRows:q},J):J=L({type:void 0,maxRows:k,minRows:C},J),ee=SY);const Re=Oe=>{$e(Oe.animationName==="mui-auto-fill-cancel"?ue.current:{value:"x"})};I.useEffect(()=>{Me&&Me.setAdornedStart(!!j)},[Me,j]);const Le=L({},i,{color:Ye.color||"primary",disabled:Ye.disabled,endAdornment:m,error:Ye.error,focused:Ye.focused,formControl:Me,fullWidth:b,hiddenLabel:Ye.hiddenLabel,multiline:w,size:Ye.size,startAdornment:j,type:se}),De=Ume(Le),ie=Z.root||u.Root||xk,fe=Y.root||c.root||{},de=Z.input||u.Input||Ck;return J=L({},J,(r=Y.input)!=null?r:c.input),N.jsxs(I.Fragment,{children:[!h&&jme,N.jsxs(ie,L({},fe,!ku(ie)&&{ownerState:L({},Le,fe.ownerState)},{ref:n,onClick:re},G,{className:Je(De.root,fe.className,l,W&&"MuiInputBase-readOnly"),children:[j,N.jsx(Tk.Provider,{value:null,children:N.jsx(de,L({ownerState:Le,"aria-invalid":Ye.error,"aria-describedby":o,autoComplete:a,autoFocus:s,defaultValue:d,disabled:Ye.disabled,id:O,onAnimationStart:Re,name:E,placeholder:z,readOnly:W,required:Ye.required,rows:q,value:ce,onKeyDown:U,onKeyUp:V,type:se},J,!ku(de)&&{as:ee,ownerState:L({},Le,J.ownerState)},{ref:Ne,className:Je(De.input,J.className,W&&"MuiInputBase-readOnly"),onBlur:dt,onChange:Be,onFocus:We}))}),m,X?X(L({},Ye,{startAdornment:j})):null]}))]})}),HN=zme;function Vme(e){return At("MuiInput",e)}const Hme=L({},Ja,_t("MuiInput",["root","underline","input"])),id=Hme;function Wme(e){return At("MuiOutlinedInput",e)}const Qme=L({},Ja,_t("MuiOutlinedInput",["root","notchedOutline","input"])),ru=Qme;function Yme(e){return At("MuiFilledInput",e)}const Gme=L({},Ja,_t("MuiFilledInput",["root","underline","input"])),es=Gme,kY=ki(N.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function qme(e){return At("MuiAutocomplete",e)}const Zme=_t("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"]),Fn=Zme;var S8,T8;const Xme=["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"],Kme=["ref"],Jme=["key"],ege=e=>{const{classes:t,disablePortal:n,expanded:r,focused:i,fullWidth:o,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:u,size:c}=e,d={root:["root",r&&"expanded",i&&"focused",o&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${nt(c)}`],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 kt(d,qme,t)},tge=Se("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:o,inputFocused:a,size:s}=n;return[{[`& .${Fn.tag}`]:t.tag},{[`& .${Fn.tag}`]:t[`tagSize${nt(s)}`]},{[`& .${Fn.inputRoot}`]:t.inputRoot},{[`& .${Fn.input}`]:t.input},{[`& .${Fn.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,o&&t.hasPopupIcon,i&&t.hasClearIcon]}})(({ownerState:e})=>L({[`&.${Fn.focused} .${Fn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Fn.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${Fn.tag}`]:L({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${Fn.inputRoot}`]:{flexWrap:"wrap",[`.${Fn.hasPopupIcon}&, .${Fn.hasClearIcon}&`]:{paddingRight:30},[`.${Fn.hasPopupIcon}.${Fn.hasClearIcon}&`]:{paddingRight:56},[`& .${Fn.input}`]:{width:0,minWidth:30}},[`& .${id.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${id.root}.${Ja.sizeSmall}`]:{[`& .${id.input}`]:{padding:"2px 4px 3px 0"}},[`& .${ru.root}`]:{padding:9,[`.${Fn.hasPopupIcon}&, .${Fn.hasClearIcon}&`]:{paddingRight:39},[`.${Fn.hasPopupIcon}.${Fn.hasClearIcon}&`]:{paddingRight:65},[`& .${Fn.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Fn.endAdornment}`]:{right:9}},[`& .${ru.root}.${Ja.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Fn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${es.root}`]:{paddingTop:19,paddingLeft:8,[`.${Fn.hasPopupIcon}&, .${Fn.hasClearIcon}&`]:{paddingRight:39},[`.${Fn.hasPopupIcon}.${Fn.hasClearIcon}&`]:{paddingRight:65},[`& .${es.input}`]:{padding:"7px 4px"},[`& .${Fn.endAdornment}`]:{right:9}},[`& .${es.root}.${Ja.sizeSmall}`]:{paddingBottom:1,[`& .${es.input}`]:{padding:"2.5px 4px"}},[`& .${Ja.hiddenLabel}`]:{paddingTop:8},[`& .${es.root}.${Ja.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Fn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${es.root}.${Ja.hiddenLabel}.${Ja.sizeSmall}`]:{[`& .${Fn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Fn.input}`]:L({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),nge=Se("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),rge=Se(Eo,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),ige=Se(Eo,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>L({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>L({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),oge=Se(q1,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Fn.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>L({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),age=Se(la,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>L({},e.typography.body1,{overflow:"auto"})),sge=Se("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),lge=Se("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),uge=Se("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",[`& .${Fn.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"},[`&.${Fn.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"},[`&.${Fn.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})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Fn.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:cn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),cge=Se(xme,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),dge=Se("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Fn.option}`]:{paddingLeft:24}}),fge=I.forwardRef(function(t,n){var r,i,o,a;const s=gt({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:u=!1,autoSelect:c=!1,blurOnSelect:d=!1,ChipProps:p,className:h,clearIcon:m=S8||(S8=N.jsx(cpe,{fontSize:"small"})),clearOnBlur:b=!s.freeSolo,clearOnEscape:O=!1,clearText:y="Clear",closeText:v="Close",componentsProps:S={},defaultValue:k=s.multiple?[]:null,disableClearable:C=!1,disableCloseOnSelect:w=!1,disabled:E=!1,disabledItemsFocusable:$=!1,disableListWrap:P=!1,disablePortal:R=!1,filterSelectedOptions:B=!1,forcePopupIcon:U="auto",freeSolo:V=!1,fullWidth:z=!1,getLimitTagsText:W=Ce=>`+${Ce}`,getOptionLabel:X,groupBy:q,handleHomeEndKeys:Y=!s.freeSolo,includeInputInList:Z=!1,limitTags:j=-1,ListboxComponent:se="ul",ListboxProps:ve,loading:G=!1,loadingText:ce="Loading…",multiple:ge=!1,noOptionsText:ue="No options",openOnFocus:xe=!1,openText:Ne="Open",PaperComponent:Ve=la,PopperComponent:Ke=q1,popupIcon:Me=T8||(T8=N.jsx(kY,{})),readOnly:Ye=!1,renderGroup:ye,renderInput:ze,renderOption:$e,renderTags:We,selectOnFocus:dt=!s.freeSolo,size:Be="medium",slotProps:re={}}=s,ee=Ge(s,Xme),{getRootProps:J,getInputProps:Re,getInputLabelProps:Le,getPopupIndicatorProps:De,getClearProps:ie,getTagProps:fe,getListboxProps:de,getOptionProps:Oe,value:Te,dirty:rt,expanded:pt,id:xt,popupOpen:et,focused:vt,focusedTag:qe,anchorEl:it,setAnchorEl:Et,inputValue:Nt,groupedOptions:on}=yme(L({},s,{componentName:"Autocomplete"})),dn=!C&&!E&&rt&&!Ye,pn=(!V||U===!0)&&U!==!1,{onMouseDown:zn}=Re(),{ref:Ee}=ve??{},_e=de(),{ref:pe}=_e,lt=Ge(_e,Kme),at=yn(pe,Ee),$t=X||(Ce=>{var mt;return(mt=Ce.label)!=null?mt:Ce}),It=L({},s,{disablePortal:R,expanded:pt,focused:vt,fullWidth:z,getOptionLabel:$t,hasClearIcon:dn,hasPopupIcon:pn,inputFocused:qe===-1,popupOpen:et,size:Be}),Ct=ege(It);let Zt;if(ge&&Te.length>0){const Ce=mt=>L({className:Ct.tag,disabled:E},fe(mt));We?Zt=We(Te,Ce,It):Zt=Te.map((mt,Dt)=>N.jsx(VN,L({label:$t(mt),size:Be},Ce({index:Dt}),p)))}if(j>-1&&Array.isArray(Zt)){const Ce=Zt.length-j;!vt&&Ce>0&&(Zt=Zt.splice(0,j),Zt.push(N.jsx("span",{className:Ct.tag,children:W(Ce)},Zt.length)))}const we=ye||(Ce=>N.jsxs("li",{children:[N.jsx(cge,{className:Ct.groupLabel,ownerState:It,component:"div",children:Ce.group}),N.jsx(dge,{className:Ct.groupUl,ownerState:It,children:Ce.children})]},Ce.key)),ot=$e||((Ce,mt)=>{const{key:Dt}=Ce,tn=Ge(Ce,Jme);return N.jsx("li",L({},tn,{children:$t(mt)}),Dt)}),rn=(Ce,mt)=>{const Dt=Oe({option:Ce,index:mt});return ot(L({},Dt,{className:Ct.option}),Ce,{selected:Dt["aria-selected"],index:mt,inputValue:Nt},It)},Wt=(r=re.clearIndicator)!=null?r:S.clearIndicator,mn=(i=re.paper)!=null?i:S.paper,nr=(o=re.popper)!=null?o:S.popper,Ue=(a=re.popupIndicator)!=null?a:S.popupIndicator;return N.jsxs(I.Fragment,{children:[N.jsx(tge,L({ref:n,className:Je(Ct.root,h),ownerState:It},J(ee),{children:ze({id:xt,disabled:E,fullWidth:!0,size:Be==="small"?"small":void 0,InputLabelProps:Le(),InputProps:L({ref:Et,className:Ct.inputRoot,startAdornment:Zt,onClick:Ce=>{Ce.target===Ce.currentTarget&&zn(Ce)}},(dn||pn)&&{endAdornment:N.jsxs(nge,{className:Ct.endAdornment,ownerState:It,children:[dn?N.jsx(rge,L({},ie(),{"aria-label":y,title:y,ownerState:It},Wt,{className:Je(Ct.clearIndicator,Wt==null?void 0:Wt.className),children:m})):null,pn?N.jsx(ige,L({},De(),{disabled:E,"aria-label":et?v:Ne,title:et?v:Ne,ownerState:It},Ue,{className:Je(Ct.popupIndicator,Ue==null?void 0:Ue.className),children:Me})):null]})}),inputProps:L({className:Ct.input,disabled:E,readOnly:Ye},Re())})})),it?N.jsx(oge,L({as:Ke,disablePortal:R,style:{width:it?it.clientWidth:null},ownerState:It,role:"presentation",anchorEl:it,open:et},nr,{className:Je(Ct.popper,nr==null?void 0:nr.className),children:N.jsxs(age,L({ownerState:It,as:Ve},mn,{className:Je(Ct.paper,mn==null?void 0:mn.className),children:[G&&on.length===0?N.jsx(sge,{className:Ct.loading,ownerState:It,children:ce}):null,on.length===0&&!V&&!G?N.jsx(lge,{className:Ct.noOptions,ownerState:It,role:"presentation",onMouseDown:Ce=>{Ce.preventDefault()},children:ue}):null,on.length>0?N.jsx(uge,L({as:se,className:Ct.listbox,ownerState:It},lt,ve,{ref:at,children:on.map((Ce,mt)=>q?we({key:Ce.key,group:Ce.group,children:Ce.options.map((Dt,tn)=>rn(Dt,Ce.index+tn))}):rn(Ce,mt))})):null]}))})):null]})}),pge=fge,hge=ki(N.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 mge(e){return At("MuiAvatar",e)}_t("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const gge=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],bge=e=>{const{classes:t,variant:n,colorDefault:r}=e;return kt({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},mge,t)},yge=Se("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e,ownerState:t})=>L({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"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.variant==="square"&&{borderRadius:0},t.colorDefault&&L({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}))),Oge=Se("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),vge=Se(hge,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function Ege({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,o]=I.useState(!1);return I.useEffect(()=>{if(!n&&!r)return;o(!1);let a=!0;const s=new Image;return s.onload=()=>{a&&o("loaded")},s.onerror=()=>{a&&o("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{a=!1}},[e,t,n,r]),i}const Sge=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiAvatar"}),{alt:i,children:o,className:a,component:s="div",imgProps:l,sizes:u,src:c,srcSet:d,variant:p="circular"}=r,h=Ge(r,gge);let m=null;const b=Ege(L({},l,{src:c,srcSet:d})),O=c||d,y=O&&b!=="error",v=L({},r,{colorDefault:!y,component:s,variant:p}),S=bge(v);return y?m=N.jsx(Oge,L({alt:i,srcSet:d,src:c,sizes:u,ownerState:v,className:S.img},l)):o!=null?m=o:O&&i?m=i[0]:m=N.jsx(vge,{ownerState:v,className:S.fallback}),N.jsx(yge,L({as:s,ownerState:v,className:Je(S.root,a),ref:n},h,{children:m}))}),xY=Sge,Tge=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],wge={entering:{opacity:1},entered:{opacity:1}},kge=I.forwardRef(function(t,n){const r=ci(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:h,onExited:m,onExiting:b,style:O,timeout:y=i,TransitionComponent:v=Q1}=t,S=Ge(t,Tge),k=I.useRef(null),C=yn(k,s.ref,n),w=z=>W=>{if(z){const X=k.current;W===void 0?z(X):z(X,W)}},E=w(p),$=w((z,W)=>{LN(z);const X=Hd({style:O,timeout:y,easing:l},{mode:"enter"});z.style.webkitTransition=r.transitions.create("opacity",X),z.style.transition=r.transitions.create("opacity",X),c&&c(z,W)}),P=w(d),R=w(b),B=w(z=>{const W=Hd({style:O,timeout:y,easing:l},{mode:"exit"});z.style.webkitTransition=r.transitions.create("opacity",W),z.style.transition=r.transitions.create("opacity",W),h&&h(z)}),U=w(m),V=z=>{o&&o(k.current,z)};return N.jsx(v,L({appear:a,in:u,nodeRef:k,onEnter:$,onEntered:P,onEntering:E,onExit:B,onExited:U,onExiting:R,addEndListener:V,timeout:y},S,{children:(z,W)=>I.cloneElement(s,L({style:L({opacity:0,visibility:z==="exited"&&!u?"hidden":void 0},wge[z],O,s.props.style),ref:C},W))}))}),wg=kge;function xge(e){return At("MuiBackdrop",e)}_t("MuiBackdrop",["root","invisible"]);const Cge=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Age=e=>{const{classes:t,invisible:n}=e;return kt({root:["root",n&&"invisible"]},xge,t)},_ge=Se("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>L({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"})),Rge=I.forwardRef(function(t,n){var r,i,o;const a=gt({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:u="div",components:c={},componentsProps:d={},invisible:p=!1,open:h,slotProps:m={},slots:b={},TransitionComponent:O=wg,transitionDuration:y}=a,v=Ge(a,Cge),S=L({},a,{component:u,invisible:p}),k=Age(S),C=(r=m.root)!=null?r:d.root;return N.jsx(O,L({in:h,timeout:y},v,{children:N.jsx(_ge,L({"aria-hidden":!0},C,{as:(i=(o=b.root)!=null?o:c.Root)!=null?i:u,className:Je(k.root,l,C==null?void 0:C.className),ownerState:L({},S,C==null?void 0:C.ownerState),classes:k,ref:n,children:s}))}))}),Ak=Rge,Ige=_t("MuiBox",["root"]),Dge=Ige,Nge=AN(),Pge=ede({themeId:hp,defaultTheme:Nge,defaultClassName:Dge.root,generateClassName:vN.generate}),Ra=Pge;function Lge(e){return At("MuiButton",e)}const Mge=_t("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","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Cv=Mge,$ge=I.createContext({}),Fge=$ge,Bge=I.createContext(void 0),Uge=Bge,jge=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],zge=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e,s={root:["root",o,`${o}${nt(t)}`,`size${nt(i)}`,`${o}Size${nt(i)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${nt(i)}`],endIcon:["endIcon",`iconSize${nt(i)}`]},l=kt(s,Lge,a);return L({},a,l)},CY=e=>L({},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}}),Vge=Se(hs,{shouldForwardProp:e=>Ji(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${nt(n.color)}`],t[`size${nt(n.size)}`],t[`${n.variant}Size${nt(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],o=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return L({},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":L({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(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})`:cn(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})`:cn(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:o,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":L({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Cv.focusVisible}`]:L({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Cv.disabled}`]:L({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 ${cn(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"},[`&.${Cv.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Cv.disabled}`]:{boxShadow:"none"}}),Hge=Se("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${nt(n.size)}`]]}})(({ownerState:e})=>L({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},CY(e))),Wge=Se("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${nt(n.size)}`]]}})(({ownerState:e})=>L({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},CY(e))),Qge=I.forwardRef(function(t,n){const r=I.useContext(Fge),i=I.useContext(Uge),o=sk(r,t),a=gt({props:o,name:"MuiButton"}),{children:s,color:l="primary",component:u="button",className:c,disabled:d=!1,disableElevation:p=!1,disableFocusRipple:h=!1,endIcon:m,focusVisibleClassName:b,fullWidth:O=!1,size:y="medium",startIcon:v,type:S,variant:k="text"}=a,C=Ge(a,jge),w=L({},a,{color:l,component:u,disabled:d,disableElevation:p,disableFocusRipple:h,fullWidth:O,size:y,type:S,variant:k}),E=zge(w),$=v&&N.jsx(Hge,{className:E.startIcon,ownerState:w,children:v}),P=m&&N.jsx(Wge,{className:E.endIcon,ownerState:w,children:m}),R=i||"";return N.jsxs(Vge,L({ownerState:w,className:Je(r.className,E.root,c,R),component:u,disabled:d,focusRipple:!h,focusVisibleClassName:Je(E.focusVisible,b),ref:n,type:S},C,{classes:E,children:[$,s,P]}))}),lc=Qge;function Yge(e){return At("MuiCard",e)}_t("MuiCard",["root"]);const Gge=["className","raised"],qge=e=>{const{classes:t}=e;return kt({root:["root"]},Yge,t)},Zge=Se(la,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Xge=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiCard"}),{className:i,raised:o=!1}=r,a=Ge(r,Gge),s=L({},r,{raised:o}),l=qge(s);return N.jsx(Zge,L({className:Je(l.root,i),elevation:o?8:void 0,ref:n,ownerState:s},a))}),Kge=Xge;function Jge(e){return At("MuiCardActionArea",e)}const e0e=_t("MuiCardActionArea",["root","focusVisible","focusHighlight"]),VC=e0e,t0e=["children","className","focusVisibleClassName"],n0e=e=>{const{classes:t}=e;return kt({root:["root"],focusHighlight:["focusHighlight"]},Jge,t)},r0e=Se(hs,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${VC.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${VC.focusVisible} .${VC.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}})),i0e=Se("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})})),o0e=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiCardActionArea"}),{children:i,className:o,focusVisibleClassName:a}=r,s=Ge(r,t0e),l=r,u=n0e(l);return N.jsxs(r0e,L({className:Je(u.root,o),focusVisibleClassName:Je(a,u.focusVisible),ref:n,ownerState:l},s,{children:[i,N.jsx(i0e,{className:u.focusHighlight,ownerState:l})]}))}),a0e=o0e;function s0e(e){return At("MuiCardContent",e)}_t("MuiCardContent",["root"]);const l0e=["className","component"],u0e=e=>{const{classes:t}=e;return kt({root:["root"]},s0e,t)},c0e=Se("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),d0e=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiCardContent"}),{className:i,component:o="div"}=r,a=Ge(r,l0e),s=L({},r,{component:o}),l=u0e(s);return N.jsx(c0e,L({as:o,className:Je(l.root,i),ownerState:s,ref:n},a))}),f0e=d0e;function p0e(e){return At("PrivateSwitchBase",e)}_t("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const h0e=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],m0e=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${nt(i)}`],input:["input"]};return kt(o,p0e,t)},g0e=Se(hs)(({ownerState:e})=>L({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),b0e=Se("input",{shouldForwardProp:Ji})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),y0e=I.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:o,className:a,defaultChecked:s,disabled:l,disableFocusRipple:u=!1,edge:c=!1,icon:d,id:p,inputProps:h,inputRef:m,name:b,onBlur:O,onChange:y,onFocus:v,readOnly:S,required:k=!1,tabIndex:C,type:w,value:E}=t,$=Ge(t,h0e),[P,R]=Xi({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),B=Du(),U=Z=>{v&&v(Z),B&&B.onFocus&&B.onFocus(Z)},V=Z=>{O&&O(Z),B&&B.onBlur&&B.onBlur(Z)},z=Z=>{if(Z.nativeEvent.defaultPrevented)return;const j=Z.target.checked;R(j),y&&y(Z,j)};let W=l;B&&typeof W>"u"&&(W=B.disabled);const X=w==="checkbox"||w==="radio",q=L({},t,{checked:P,disabled:W,disableFocusRipple:u,edge:c}),Y=m0e(q);return N.jsxs(g0e,L({component:"span",className:Je(Y.root,a),centerRipple:!0,focusRipple:!u,disabled:W,tabIndex:null,role:void 0,onFocus:U,onBlur:V,ownerState:q,ref:n},$,{children:[N.jsx(b0e,L({autoFocus:r,checked:i,defaultChecked:s,className:Y.input,disabled:W,id:X?p:void 0,name:b,onChange:z,readOnly:S,ref:m,required:k,ownerState:q,tabIndex:C,type:w},w==="checkbox"&&E===void 0?{}:{value:E},h)),P?o:d]}))}),WN=y0e,O0e=ki(N.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"),v0e=ki(N.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"),E0e=ki(N.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 S0e(e){return At("MuiCheckbox",e)}const T0e=_t("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),HC=T0e,w0e=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],k0e=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,o={root:["root",n&&"indeterminate",`color${nt(r)}`,`size${nt(i)}`]},a=kt(o,S0e,t);return L({},t,a)},x0e=Se(WN,{shouldForwardProp:e=>Ji(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${nt(n.size)}`],n.color!=="default"&&t[`color${nt(n.color)}`]]}})(({theme:e,ownerState:t})=>L({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})`:cn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${HC.checked}, &.${HC.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${HC.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),C0e=N.jsx(v0e,{}),A0e=N.jsx(O0e,{}),_0e=N.jsx(E0e,{}),R0e=I.forwardRef(function(t,n){var r,i;const o=gt({props:t,name:"MuiCheckbox"}),{checkedIcon:a=C0e,color:s="primary",icon:l=A0e,indeterminate:u=!1,indeterminateIcon:c=_0e,inputProps:d,size:p="medium",className:h}=o,m=Ge(o,w0e),b=u?c:l,O=u?c:a,y=L({},o,{color:s,indeterminate:u,size:p}),v=k0e(y);return N.jsx(x0e,L({type:"checkbox",inputProps:L({"data-indeterminate":u},d),icon:I.cloneElement(b,{fontSize:(r=b.props.fontSize)!=null?r:p}),checkedIcon:I.cloneElement(O,{fontSize:(i=O.props.fontSize)!=null?i:p}),ownerState:y,ref:n,className:Je(v.root,h)},m,{classes:v}))}),_k=R0e;function I0e(e){return At("MuiCircularProgress",e)}_t("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const D0e=["className","color","disableShrink","size","style","thickness","value","variant"];let Rk=e=>e,w8,k8,x8,C8;const Vc=44,N0e=z1(w8||(w8=Rk` 0% { transform: rotate(0deg); } @@ -134,7 +134,7 @@ Error generating stack: `+o.message+` 100% { transform: rotate(360deg); } -`)),k0e=B1(b8||(b8=Ak` +`)),P0e=z1(k8||(k8=Rk` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -149,11 +149,11 @@ Error generating stack: `+o.message+` stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`)),x0e=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,`color${nt(r)}`],svg:["svg"],circle:["circle",`circle${nt(n)}`,i&&"circleDisableShrink"]};return kt(o,S0e,t)},C0e=Se("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${nt(n.color)}`]]}})(({ownerState:e,theme:t})=>L({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"&&pN(y8||(y8=Ak` +`)),L0e=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,`color${nt(r)}`],svg:["svg"],circle:["circle",`circle${nt(n)}`,i&&"circleDisableShrink"]};return kt(o,I0e,t)},M0e=Se("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${nt(n.color)}`]]}})(({ownerState:e,theme:t})=>L({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"&&bN(x8||(x8=Rk` animation: ${0} 1.4s linear infinite; - `),w0e)),A0e=Se("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),_0e=Se("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${nt(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>L({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&&pN(O8||(O8=Ak` + `),N0e)),$0e=Se("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),F0e=Se("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${nt(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>L({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&&bN(C8||(C8=Rk` animation: ${0} 1.4s ease-in-out infinite; - `),k0e)),R0e=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:a=!1,size:s=40,style:l,thickness:u=3.6,value:c=0,variant:d="indeterminate"}=r,p=Ge(r,T0e),h=L({},r,{color:o,disableShrink:a,size:s,thickness:u,value:c,variant:d}),m=x0e(h),b={},O={},y={};if(d==="determinate"){const v=2*Math.PI*((jc-u)/2);b.strokeDasharray=v.toFixed(3),y["aria-valuenow"]=Math.round(c),b.strokeDashoffset=`${((100-c)/100*v).toFixed(3)}px`,O.transform="rotate(-90deg)"}return P.jsx(C0e,L({className:Je(m.root,i),style:L({width:s,height:s},O,l),ownerState:h,ref:n,role:"progressbar"},y,p,{children:P.jsx(A0e,{className:m.svg,ownerState:h,viewBox:`${jc/2} ${jc/2} ${jc} ${jc}`,children:P.jsx(_0e,{className:m.circle,style:b,ownerState:h,cx:jc,cy:jc,r:(jc-u)/2,fill:"none",strokeWidth:u})})}))}),Dp=R0e,I0e=bde({createStyledComponent:Se("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${nt(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>gt({props:e,name:"MuiContainer"})}),D0e=I0e,N0e=(e,t)=>L({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),P0e=e=>L({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}}),L0e=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,s])=>{var l;r[e.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:(l=s.palette)==null?void 0:l.mode}});let i=L({html:N0e(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:L({margin:0},P0e(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const o=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return o&&(i=[i,o]),i};function M0e(e){const t=gt({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return P.jsxs(I.Fragment,{children:[P.jsx(hY,{styles:i=>L0e(i,r)}),n]})}function $0e(e){return At("MuiModal",e)}_t("MuiModal",["root","hidden","backdrop"]);const F0e=["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"],B0e=e=>{const{open:t,exited:n,classes:r}=e;return kt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},$0e,r)},U0e=Se("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})=>L({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),j0e=Se(xk,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),z0e=I.forwardRef(function(t,n){var r,i,o,a,s,l;const u=gt({name:"MuiModal",props:t}),{BackdropComponent:c=j0e,BackdropProps:d,className:p,closeAfterTransition:h=!1,children:m,container:b,component:O,components:y={},componentsProps:v={},disableAutoFocus:S=!1,disableEnforceFocus:k=!1,disableEscapeKeyDown:C=!1,disablePortal:w=!1,disableRestoreFocus:E=!1,disableScrollLock:$=!1,hideBackdrop:N=!1,keepMounted:R=!1,onBackdropClick:B,open:U,slotProps:V,slots:z}=u,W=Ge(u,F0e),X=L({},u,{closeAfterTransition:h,disableAutoFocus:S,disableEnforceFocus:k,disableEscapeKeyDown:C,disablePortal:w,disableRestoreFocus:E,disableScrollLock:$,hideBackdrop:N,keepMounted:R}),{getRootProps:q,getBackdropProps:Y,getTransitionProps:Z,portalRef:j,isTopModal:se,exited:ve,hasTransition:G}=Zhe(L({},X,{rootRef:n})),ce=L({},X,{exited:ve}),ge=B0e(ce),ue={};if(m.props.tabIndex===void 0&&(ue.tabIndex="-1"),G){const{onEnter:ye,onExited:ze}=Z();ue.onEnter=ye,ue.onExited=ze}const xe=(r=(i=z==null?void 0:z.root)!=null?i:y.Root)!=null?r:U0e,Ne=(o=(a=z==null?void 0:z.backdrop)!=null?a:y.Backdrop)!=null?o:c,Ve=(s=V==null?void 0:V.root)!=null?s:v.root,Ke=(l=V==null?void 0:V.backdrop)!=null?l:v.backdrop,Me=kn({elementType:xe,externalSlotProps:Ve,externalForwardedProps:W,getSlotProps:q,additionalProps:{ref:n,as:O},ownerState:ce,className:Je(p,Ve==null?void 0:Ve.className,ge==null?void 0:ge.root,!ce.open&&ce.exited&&(ge==null?void 0:ge.hidden))}),Ye=kn({elementType:Ne,externalSlotProps:Ke,additionalProps:d,getSlotProps:ye=>Y(L({},ye,{onClick:ze=>{B&&B(ze),ye!=null&&ye.onClick&&ye.onClick(ze)}})),className:Je(Ke==null?void 0:Ke.className,d==null?void 0:d.className,ge==null?void 0:ge.backdrop),ownerState:ce});return!R&&!U&&(!G||ve)?null:P.jsx(uY,{ref:j,container:b,disablePortal:w,children:P.jsxs(xe,L({},Me,{children:[!N&&c?P.jsx(Ne,L({},Ye)):null,P.jsx(JQ,{disableEnforceFocus:k,disableAutoFocus:S,disableRestoreFocus:E,isEnabled:se,open:U,children:I.cloneElement(m,ue)})]}))})}),Y1=z0e;function V0e(e){return At("MuiDialog",e)}const Ab=_t("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),H0e=I.createContext({}),W0e=H0e,Q0e=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Y0e=Se(xk,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),G0e=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e,a={root:["root"],container:["container",`scroll${nt(n)}`],paper:["paper",`paperScroll${nt(n)}`,`paperWidth${nt(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return kt(a,V0e,t)},q0e=Se(Y1,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Z0e=Se("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${nt(n.scroll)}`]]}})(({ownerState:e})=>L({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),X0e=Se(Na,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${nt(n.scroll)}`],t[`paperWidth${nt(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>L({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Ab.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Ab.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Ab.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),K0e=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDialog"}),i=ci(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,BackdropComponent:l,BackdropProps:u,children:c,className:d,disableEscapeKeyDown:p=!1,fullScreen:h=!1,fullWidth:m=!1,maxWidth:b="sm",onBackdropClick:O,onClose:y,open:v,PaperComponent:S=Na,PaperProps:k={},scroll:C="paper",TransitionComponent:w=Tg,transitionDuration:E=o,TransitionProps:$}=r,N=Ge(r,Q0e),R=L({},r,{disableEscapeKeyDown:p,fullScreen:h,fullWidth:m,maxWidth:b,scroll:C}),B=G0e(R),U=I.useRef(),V=q=>{U.current=q.target===q.currentTarget},z=q=>{U.current&&(U.current=null,O&&O(q),y&&y(q,"backdropClick"))},W=$l(s),X=I.useMemo(()=>({titleId:W}),[W]);return P.jsx(q0e,L({className:Je(B.root,d),closeAfterTransition:!0,components:{Backdrop:Y0e},componentsProps:{backdrop:L({transitionDuration:E,as:l},u)},disableEscapeKeyDown:p,onClose:y,open:v,ref:n,onClick:z,ownerState:R},N,{children:P.jsx(w,L({appear:!0,in:v,timeout:E,role:"presentation"},$,{children:P.jsx(Z0e,{className:Je(B.container),onMouseDown:V,ownerState:R,children:P.jsx(X0e,L({as:S,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":W},k,{className:Je(B.paper,k.className),ownerState:R,children:P.jsx(W0e.Provider,{value:X,children:c})}))})}))}))}),J0e=K0e;function ebe(e){return At("MuiDialogActions",e)}_t("MuiDialogActions",["root","spacing"]);const tbe=["className","disableSpacing"],nbe=e=>{const{classes:t,disableSpacing:n}=e;return kt({root:["root",!n&&"spacing"]},ebe,t)},rbe=Se("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>L({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),ibe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1}=r,a=Ge(r,tbe),s=L({},r,{disableSpacing:o}),l=nbe(s);return P.jsx(rbe,L({className:Je(l.root,i),ownerState:s,ref:n},a))}),obe=ibe;function abe(e){return At("MuiDialogContent",e)}_t("MuiDialogContent",["root","dividers"]);const sbe=_t("MuiDialogTitle",["root"]),lbe=sbe,ube=["className","dividers"],cbe=e=>{const{classes:t,dividers:n}=e;return kt({root:["root",n&&"dividers"]},abe,t)},dbe=Se("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>L({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${lbe.root} + &`]:{paddingTop:0}})),fbe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDialogContent"}),{className:i,dividers:o=!1}=r,a=Ge(r,ube),s=L({},r,{dividers:o}),l=cbe(s);return P.jsx(dbe,L({className:Je(l.root,i),ownerState:s,ref:n},a))}),pbe=fbe;function hbe(e){return At("MuiDivider",e)}const mbe=_t("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),v8=mbe,gbe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],bbe=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e;return kt({root:["root",t&&"absolute",l,o&&"light",a==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},hbe,r)},ybe=Se("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})=>L({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)`:cn(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})=>L({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>L({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>L({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>L({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Obe=Se("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>L({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)`})),yY=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDivider"}),{absolute:i=!1,children:o,className:a,component:s=o?"div":"hr",flexItem:l=!1,light:u=!1,orientation:c="horizontal",role:d=s!=="hr"?"separator":void 0,textAlign:p="center",variant:h="fullWidth"}=r,m=Ge(r,gbe),b=L({},r,{absolute:i,component:s,flexItem:l,light:u,orientation:c,role:d,textAlign:p,variant:h}),O=bbe(b);return P.jsx(ybe,L({as:s,className:Je(O.root,a),role:d,ref:n,ownerState:b},m,{children:o?P.jsx(Obe,{className:O.wrapper,ownerState:b,children:o}):null}))});yY.muiSkipListHighlight=!0;const lc=yY,vbe=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Ebe(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),o=Js(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const u=o.getComputedStyle(t);a=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let s=0,l=0;if(a&&a!=="none"&&typeof a=="string"){const u=a.split("(")[1].split(")")[0].split(",");s=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?i?`translateX(${i.right+s-r.left}px)`:`translateX(${o.innerWidth+s-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${o.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function Sbe(e){return typeof e=="function"?e():e}function xv(e,t,n){const r=Sbe(n),i=Ebe(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const Tbe=I.forwardRef(function(t,n){const r=ci(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,container:u,direction:c="down",easing:d=i,in:p,onEnter:h,onEntered:m,onEntering:b,onExit:O,onExited:y,onExiting:v,style:S,timeout:k=o,TransitionComponent:C=V1}=t,w=Ge(t,vbe),E=I.useRef(null),$=yn(l.ref,E,n),N=Y=>Z=>{Y&&(Z===void 0?Y(E.current):Y(E.current,Z))},R=N((Y,Z)=>{xv(c,Y,u),IN(Y),h&&h(Y,Z)}),B=N((Y,Z)=>{const j=Vd({timeout:k,style:S,easing:d},{mode:"enter"});Y.style.webkitTransition=r.transitions.create("-webkit-transform",L({},j)),Y.style.transition=r.transitions.create("transform",L({},j)),Y.style.webkitTransform="none",Y.style.transform="none",b&&b(Y,Z)}),U=N(m),V=N(v),z=N(Y=>{const Z=Vd({timeout:k,style:S,easing:d},{mode:"exit"});Y.style.webkitTransition=r.transitions.create("-webkit-transform",Z),Y.style.transition=r.transitions.create("transform",Z),xv(c,Y,u),O&&O(Y)}),W=N(Y=>{Y.style.webkitTransition="",Y.style.transition="",y&&y(Y)}),X=Y=>{a&&a(E.current,Y)},q=I.useCallback(()=>{E.current&&xv(c,E.current,u)},[c,u]);return I.useEffect(()=>{if(p||c==="down"||c==="right")return;const Y=Eg(()=>{E.current&&xv(c,E.current,u)}),Z=Js(E.current);return Z.addEventListener("resize",Y),()=>{Y.clear(),Z.removeEventListener("resize",Y)}},[c,p,u]),I.useEffect(()=>{p||q()},[p,q]),P.jsx(C,L({nodeRef:E,onEnter:R,onEntered:U,onEntering:B,onExit:z,onExited:W,onExiting:V,addEndListener:X,appear:s,in:p,timeout:k},w,{children:(Y,Z)=>I.cloneElement(l,L({ref:$,style:L({visibility:Y==="exited"&&!p?"hidden":void 0},S,l.props.style)},Z))}))}),OY=Tbe;function wbe(e){return At("MuiDrawer",e)}_t("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const kbe=["BackdropProps"],xbe=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],vY=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},Cbe=e=>{const{classes:t,anchor:n,variant:r}=e,i={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${nt(n)}`,r!=="temporary"&&`paperAnchorDocked${nt(n)}`]};return kt(i,wbe,t)},Abe=Se(Y1,{name:"MuiDrawer",slot:"Root",overridesResolver:vY})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),E8=Se("div",{shouldForwardProp:Ji,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:vY})({flex:"0 0 auto"}),_be=Se(Na,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${nt(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${nt(n.anchor)}`]]}})(({theme:e,ownerState:t})=>L({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),EY={left:"right",right:"left",top:"down",bottom:"up"};function Rbe(e){return["left","right"].indexOf(e)!==-1}function Ibe(e,t){return e.direction==="rtl"&&Rbe(t)?EY[t]:t}const Dbe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDrawer"}),i=ci(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:s,children:l,className:u,elevation:c=16,hideBackdrop:d=!1,ModalProps:{BackdropProps:p}={},onClose:h,open:m=!1,PaperProps:b={},SlideProps:O,TransitionComponent:y=OY,transitionDuration:v=o,variant:S="temporary"}=r,k=Ge(r.ModalProps,kbe),C=Ge(r,xbe),w=I.useRef(!1);I.useEffect(()=>{w.current=!0},[]);const E=Ibe(i,a),N=L({},r,{anchor:a,elevation:c,open:m,variant:S},C),R=Cbe(N),B=P.jsx(_be,L({elevation:S==="temporary"?c:0,square:!0},b,{className:Je(R.paper,b.className),ownerState:N,children:l}));if(S==="permanent")return P.jsx(E8,L({className:Je(R.root,R.docked,u),ownerState:N,ref:n},C,{children:B}));const U=P.jsx(y,L({in:m,direction:EY[E],timeout:v,appear:w.current},O,{children:B}));return S==="persistent"?P.jsx(E8,L({className:Je(R.root,R.docked,u),ownerState:N,ref:n},C,{children:U})):P.jsx(Abe,L({BackdropProps:L({},s,p,{transitionDuration:v}),className:Je(R.root,R.modal,u),open:m,ownerState:N,onClose:h,hideBackdrop:d,ref:n},C,k,{children:U}))}),Nbe=Dbe,Pbe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Lbe=e=>{const{classes:t,disableUnderline:n}=e,i=kt({root:["root",!n&&"underline"],input:["input"]},Fme,t);return L({},t,i)},Mbe=Se(wk,{shouldForwardProp:e=>Ji(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Sk(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)",o=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return L({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,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:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${es.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${es.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!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"},[`&.${es.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${es.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(.${es.disabled}, .${es.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${es.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&L({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}))}),$be=Se(kk,{name:"MuiFilledInput",slot:"Input",overridesResolver:Tk})(({theme:e,ownerState:t})=>L({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})),SY=I.forwardRef(function(t,n){var r,i,o,a;const s=gt({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:h,slots:m={},type:b="text"}=s,O=Ge(s,Pbe),y=L({},s,{fullWidth:c,inputComponent:d,multiline:p,type:b}),v=Lbe(s),S={root:{ownerState:y},input:{ownerState:y}},k=h??u?Lo(S,h??u):S,C=(r=(i=m.root)!=null?i:l.Root)!=null?r:Mbe,w=(o=(a=m.input)!=null?a:l.Input)!=null?o:$be;return P.jsx(UN,L({slots:{root:C,input:w},componentsProps:k,fullWidth:c,inputComponent:d,multiline:p,ref:n,type:b},O,{classes:v}))});SY.muiName="Input";const TY=SY;function Fbe(e){return At("MuiFormControl",e)}_t("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Bbe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Ube=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${nt(n)}`,r&&"fullWidth"]};return kt(i,Fbe,t)},jbe=Se("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>L({},t.root,t[`margin${nt(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>L({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%"})),zbe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiFormControl"}),{children:i,className:o,color:a="primary",component:s="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:d=!1,hiddenLabel:p=!1,margin:h="none",required:m=!1,size:b="medium",variant:O="outlined"}=r,y=Ge(r,Bbe),v=L({},r,{color:a,component:s,disabled:l,error:u,fullWidth:d,hiddenLabel:p,margin:h,required:m,size:b,variant:O}),S=Ube(v),[k,C]=I.useState(()=>{let V=!1;return i&&I.Children.forEach(i,z=>{if(!Eb(z,["Input","Select"]))return;const W=Eb(z,["Select"])?z.props.input:z;W&&Cme(W.props)&&(V=!0)}),V}),[w,E]=I.useState(()=>{let V=!1;return i&&I.Children.forEach(i,z=>{Eb(z,["Input","Select"])&&(rT(z.props,!0)||rT(z.props.inputProps,!0))&&(V=!0)}),V}),[$,N]=I.useState(!1);l&&$&&N(!1);const R=c!==void 0&&!l?c:$;let B;const U=I.useMemo(()=>({adornedStart:k,setAdornedStart:C,color:a,disabled:l,error:u,filled:w,focused:R,fullWidth:d,hiddenLabel:p,size:b,onBlur:()=>{N(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{N(!0)},registerEffect:B,required:m,variant:O}),[k,a,l,u,w,R,d,p,B,m,b,O]);return P.jsx(Ek.Provider,{value:U,children:P.jsx(jbe,L({as:s,ownerState:v,className:Je(S.root,o),ref:n},y,{children:i}))})}),sf=zbe,Vbe=kde({createStyledComponent:Se("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>gt({props:e,name:"MuiStack"})}),ui=Vbe;function Hbe(e){return At("MuiFormControlLabel",e)}const Wbe=_t("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),eb=Wbe,Qbe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Ybe=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:o}=e,a={root:["root",n&&"disabled",`labelPlacement${nt(r)}`,i&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return kt(a,Hbe,t)},Gbe=Se("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${eb.label}`]:t.label},t.root,t[`labelPlacement${nt(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>L({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${eb.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},{[`& .${eb.label}`]:{[`&.${eb.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),qbe=Se("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${eb.error}`]:{color:(e.vars||e).palette.error.main}})),Zbe=I.forwardRef(function(t,n){var r,i;const o=gt({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:l,disabled:u,disableTypography:c,label:d,labelPlacement:p="end",required:h,slotProps:m={}}=o,b=Ge(o,Qbe),O=Du(),y=(r=u??l.props.disabled)!=null?r:O==null?void 0:O.disabled,v=h??l.props.required,S={disabled:y,required:v};["checked","name","onChange","value","inputRef"].forEach(N=>{typeof l.props[N]>"u"&&typeof o[N]<"u"&&(S[N]=o[N])});const k=af({props:o,muiFormControl:O,states:["error"]}),C=L({},o,{disabled:y,labelPlacement:p,required:v,error:k.error}),w=Ybe(C),E=(i=m.typography)!=null?i:s.typography;let $=d;return $!=null&&$.type!==br&&!c&&($=P.jsx(br,L({component:"span"},E,{className:Je(w.label,E==null?void 0:E.className),children:$}))),P.jsxs(Gbe,L({className:Je(w.root,a),ownerState:C,ref:n},b,{children:[I.cloneElement(l,S),v?P.jsxs(ui,{display:"block",children:[$,P.jsxs(qbe,{ownerState:C,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]}):$]}))}),xy=Zbe;function Xbe(e){return At("MuiFormGroup",e)}_t("MuiFormGroup",["root","row","error"]);const Kbe=["className","row"],Jbe=e=>{const{classes:t,row:n,error:r}=e;return kt({root:["root",n&&"row",r&&"error"]},Xbe,t)},eye=Se("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>L({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),tye=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiFormGroup"}),{className:i,row:o=!1}=r,a=Ge(r,Kbe),s=Du(),l=af({props:r,muiFormControl:s,states:["error"]}),u=L({},r,{row:o,error:l.error}),c=Jbe(u);return P.jsx(eye,L({className:Je(c.root,i),ownerState:u,ref:n},a))}),zN=tye;function nye(e){return At("MuiFormHelperText",e)}const rye=_t("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),S8=rye;var T8;const iye=["children","className","component","disabled","error","filled","focused","margin","required","variant"],oye=e=>{const{classes:t,contained:n,size:r,disabled:i,error:o,filled:a,focused:s,required:l}=e,u={root:["root",i&&"disabled",o&&"error",r&&`size${nt(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return kt(u,nye,t)},aye=Se("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${nt(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>L({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${S8.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${S8.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),sye=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiFormHelperText"}),{children:i,className:o,component:a="p"}=r,s=Ge(r,iye),l=Du(),u=af({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=L({},r,{component:a,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}),d=oye(c);return P.jsx(aye,L({as:a,ownerState:c,className:Je(d.root,o),ref:n},s,{children:i===" "?T8||(T8=P.jsx("span",{className:"notranslate",children:"​"})):i}))}),wg=sye;function lye(e){return At("MuiFormLabel",e)}const _b=_t("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),uye=["children","className","color","component","disabled","error","filled","focused","required"],cye=e=>{const{classes:t,color:n,focused:r,disabled:i,error:o,filled:a,required:s}=e,l={root:["root",`color${nt(n)}`,i&&"disabled",o&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]};return kt(l,lye,t)},dye=Se("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>L({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>L({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${_b.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${_b.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${_b.error}`]:{color:(e.vars||e).palette.error.main}})),fye=Se("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${_b.error}`]:{color:(e.vars||e).palette.error.main}})),pye=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiFormLabel"}),{children:i,className:o,component:a="label"}=r,s=Ge(r,uye),l=Du(),u=af({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=L({},r,{color:u.color||"primary",component:a,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=cye(c);return P.jsxs(dye,L({as:a,ownerState:c,className:Je(d.root,o),ref:n},s,{children:[i,u.required&&P.jsxs(fye,{ownerState:c,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),_k=pye,hye=I.createContext(),w8=hye;function mye(e){return At("MuiGrid",e)}const gye=[0,1,2,3,4,5,6,7,8,9,10],bye=["column-reverse","column","row-reverse","row"],yye=["nowrap","wrap-reverse","wrap"],g0=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Cy=_t("MuiGrid",["root","container","item","zeroMinWidth",...gye.map(e=>`spacing-xs-${e}`),...bye.map(e=>`direction-xs-${e}`),...yye.map(e=>`wrap-xs-${e}`),...g0.map(e=>`grid-xs-${e}`),...g0.map(e=>`grid-sm-${e}`),...g0.map(e=>`grid-md-${e}`),...g0.map(e=>`grid-lg-${e}`),...g0.map(e=>`grid-xl-${e}`)]),Oye=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function um(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function vye({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,i)=>{let o={};if(t[i]&&(n=t[i]),!n)return r;if(n===!0)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=op({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof a=="object"?a[i]:a;if(s==null)return r;const l=`${Math.round(n/s*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const c=e.spacing(t.columnSpacing);if(c!=="0px"){const d=`calc(${l} + ${um(c)})`;u={flexBasis:d,maxWidth:d}}}o=L({flexBasis:l,flexGrow:0,maxWidth:l},u)}return e.breakpoints.values[i]===0?Object.assign(r,o):r[e.breakpoints.up(i)]=o,r},{})}function Eye({theme:e,ownerState:t}){const n=op({values:t.direction,breakpoints:e.breakpoints.values});return Ia({theme:e},n,r=>{const i={flexDirection:r};return r.indexOf("column")===0&&(i[`& > .${Cy.item}`]={maxWidth:"none"}),i})}function wY({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(i=>{n===""&&t[i]!==0&&(n=i)});const r=Object.keys(e).sort((i,o)=>e[i]-e[o]);return r.slice(0,r.indexOf(n))}function Sye({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let i={};if(n&&r!==0){const o=op({values:r,breakpoints:e.breakpoints.values});let a;typeof o=="object"&&(a=wY({breakpoints:e.breakpoints.values,values:o})),i=Ia({theme:e},o,(s,l)=>{var u;const c=e.spacing(s);return c!=="0px"?{marginTop:`-${um(c)}`,[`& > .${Cy.item}`]:{paddingTop:um(c)}}:(u=a)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${Cy.item}`]:{paddingTop:0}}})}return i}function Tye({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let i={};if(n&&r!==0){const o=op({values:r,breakpoints:e.breakpoints.values});let a;typeof o=="object"&&(a=wY({breakpoints:e.breakpoints.values,values:o})),i=Ia({theme:e},o,(s,l)=>{var u;const c=e.spacing(s);return c!=="0px"?{width:`calc(100% + ${um(c)})`,marginLeft:`-${um(c)}`,[`& > .${Cy.item}`]:{paddingLeft:um(c)}}:(u=a)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${Cy.item}`]:{paddingLeft:0}}})}return i}function wye(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 o=e[i];Number(o)>0&&r.push(n[`spacing-${i}-${String(o)}`])}),r}const kye=Se("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:i,item:o,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:u}=n;let c=[];r&&(c=wye(a,u,t));const d=[];return u.forEach(p=>{const h=n[p];h&&d.push(t[`grid-${p}-${String(h)}`])}),[t.root,r&&t.container,o&&t.item,l&&t.zeroMinWidth,...c,i!=="row"&&t[`direction-xs-${String(i)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...d]}})(({ownerState:e})=>L({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}),Eye,Sye,Tye,vye);function xye(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 o=`spacing-${r}-${String(i)}`;n.push(o)}}),n}const Cye=e=>{const{classes:t,container:n,direction:r,item:i,spacing:o,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let u=[];n&&(u=xye(o,l));const c=[];l.forEach(p=>{const h=e[p];h&&c.push(`grid-${p}-${String(h)}`)});const d={root:["root",n&&"container",i&&"item",s&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,a!=="wrap"&&`wrap-xs-${String(a)}`,...c]};return kt(d,mye,t)},Aye=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiGrid"}),{breakpoints:i}=ci(),o=hk(r),{className:a,columns:s,columnSpacing:l,component:u="div",container:c=!1,direction:d="row",item:p=!1,rowSpacing:h,spacing:m=0,wrap:b="wrap",zeroMinWidth:O=!1}=o,y=Ge(o,Oye),v=h||m,S=l||m,k=I.useContext(w8),C=c?s||12:k,w={},E=L({},y);i.keys.forEach(R=>{y[R]!=null&&(w[R]=y[R],delete E[R])});const $=L({},o,{columns:C,container:c,direction:d,item:p,rowSpacing:v,columnSpacing:S,wrap:b,zeroMinWidth:O,spacing:m},w,{breakpoints:i.keys}),N=Cye($);return P.jsx(w8.Provider,{value:C,children:P.jsx(kye,L({ownerState:$,className:Je(N.root,a),as:u,ref:n},E))})}),Hh=Aye,_ye=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function B_(e){return`scale(${e}, ${e**2})`}const Rye={entering:{opacity:1,transform:B_(1)},entered:{opacity:1,transform:"none"}},zC=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),kY=I.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:o,easing:a,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:h,style:m,timeout:b="auto",TransitionComponent:O=V1}=t,y=Ge(t,_ye),v=I.useRef(),S=I.useRef(),k=ci(),C=I.useRef(null),w=yn(C,o.ref,n),E=W=>X=>{if(W){const q=C.current;X===void 0?W(q):W(q,X)}},$=E(c),N=E((W,X)=>{IN(W);const{duration:q,delay:Y,easing:Z}=Vd({style:m,timeout:b,easing:a},{mode:"enter"});let j;b==="auto"?(j=k.transitions.getAutoHeightDuration(W.clientHeight),S.current=j):j=q,W.style.transition=[k.transitions.create("opacity",{duration:j,delay:Y}),k.transitions.create("transform",{duration:zC?j:j*.666,delay:Y,easing:Z})].join(","),l&&l(W,X)}),R=E(u),B=E(h),U=E(W=>{const{duration:X,delay:q,easing:Y}=Vd({style:m,timeout:b,easing:a},{mode:"exit"});let Z;b==="auto"?(Z=k.transitions.getAutoHeightDuration(W.clientHeight),S.current=Z):Z=X,W.style.transition=[k.transitions.create("opacity",{duration:Z,delay:q}),k.transitions.create("transform",{duration:zC?Z:Z*.666,delay:zC?q:q||Z*.333,easing:Y})].join(","),W.style.opacity=0,W.style.transform=B_(.75),d&&d(W)}),V=E(p),z=W=>{b==="auto"&&(v.current=setTimeout(W,S.current||0)),r&&r(C.current,W)};return I.useEffect(()=>()=>{clearTimeout(v.current)},[]),P.jsx(O,L({appear:i,in:s,nodeRef:C,onEnter:N,onEntered:R,onEntering:$,onExit:U,onExited:V,onExiting:B,addEndListener:z,timeout:b==="auto"?null:b},y,{children:(W,X)=>I.cloneElement(o,L({style:L({opacity:0,transform:B_(.75),visibility:W==="exited"&&!s?"hidden":void 0},Rye[W],m,o.props.style),ref:w},X))}))});kY.muiSupportAuto=!0;const iT=kY;function Iye(e,t,n,r,i){const[o,a]=I.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return Kr(()=>{let s=!0;if(!n)return;const l=n(e),u=()=>{s&&a(l.matches)};return u(),l.addListener(u),()=>{s=!1,l.removeListener(u)}},[e,n]),o}const xY=I.useSyncExternalStore;function Dye(e,t,n,r,i){const o=I.useCallback(()=>t,[t]),a=I.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:c}=r(e);return()=>c}return o},[o,e,r,i,n]),[s,l]=I.useMemo(()=>{if(n===null)return[o,()=>()=>{}];const c=n(e);return[()=>c.matches,d=>(c.addListener(d),()=>{c.removeListener(d)})]},[o,n,e]);return xY(l,s,a)}function kg(e,t={}){const n=pk(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:o=r?window.matchMedia:null,ssrMatchMedia:a=null,noSsr:s=!1}=WQ({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(xY!==void 0?Dye:Iye)(l,i,o,a,s)}const Nye=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Pye=e=>{const{classes:t,disableUnderline:n}=e,i=kt({root:["root",!n&&"underline"],input:["input"]},Pme,t);return L({},t,i)},Lye=Se(wk,{shouldForwardProp:e=>Ji(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Sk(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})`),L({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"},[`&.${nd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${nd.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(.${nd.disabled}, .${nd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${nd.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Mye=Se(kk,{name:"MuiInput",slot:"Input",overridesResolver:Tk})({}),CY=I.forwardRef(function(t,n){var r,i,o,a;const s=gt({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:d=!1,inputComponent:p="input",multiline:h=!1,slotProps:m,slots:b={},type:O="text"}=s,y=Ge(s,Nye),v=Pye(s),k={root:{ownerState:{disableUnderline:l}}},C=m??c?Lo(m??c,k):k,w=(r=(i=b.root)!=null?i:u.Root)!=null?r:Lye,E=(o=(a=b.input)!=null?a:u.Input)!=null?o:Mye;return P.jsx(UN,L({slots:{root:w,input:E},slotProps:C,fullWidth:d,inputComponent:p,multiline:h,ref:n,type:O},y,{classes:v}))});CY.muiName="Input";const AY=CY;function $ye(e){return At("MuiInputAdornment",e)}const Fye=_t("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),k8=Fye;var x8;const Bye=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Uye=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${nt(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},jye=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:o,variant:a}=e,s={root:["root",n&&"disablePointerEvents",i&&`position${nt(i)}`,a,r&&"hiddenLabel",o&&`size${nt(o)}`]};return kt(s,$ye,t)},zye=Se("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Uye})(({theme:e,ownerState:t})=>L({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${k8.positionStart}&:not(.${k8.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Vye=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiInputAdornment"}),{children:i,className:o,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:u,variant:c}=r,d=Ge(r,Bye),p=Du()||{};let h=c;c&&p.variant,p&&!h&&(h=p.variant);const m=L({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:u,variant:h}),b=jye(m);return P.jsx(Ek.Provider,{value:null,children:P.jsx(zye,L({as:a,ownerState:m,className:Je(b.root,o),ref:n},d,{children:typeof i=="string"&&!l?P.jsx(br,{color:"text.secondary",children:i}):P.jsxs(I.Fragment,{children:[u==="start"?x8||(x8=P.jsx("span",{className:"notranslate",children:"​"})):null,i]})}))})}),VN=Vye;function Hye(e){return At("MuiInputLabel",e)}_t("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Wye=["disableAnimation","margin","shrink","variant","className"],Qye=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:o,variant:a,required:s}=e,l={root:["root",n&&"formControl",!o&&"animated",i&&"shrink",r&&r!=="normal"&&`size${nt(r)}`,a],asterisk:[s&&"asterisk"]},u=kt(l,Hye,t);return L({},t,u)},Yye=Se(_k,{shouldForwardProp:e=>Ji(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${_b.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})=>L({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"&&L({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&&L({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"&&L({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)"}))),Gye=I.forwardRef(function(t,n){const r=gt({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:o,className:a}=r,s=Ge(r,Wye),l=Du();let u=o;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=af({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),d=L({},r,{disableAnimation:i,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),p=Qye(d);return P.jsx(Yye,L({"data-shrink":u,ownerState:d,ref:n,className:Je(p.root,a)},s,{classes:p}))}),_Y=Gye,qye=I.createContext({}),Qs=qye;function Zye(e){return At("MuiList",e)}_t("MuiList",["root","padding","dense","subheader"]);const Xye=["children","className","component","dense","disablePadding","subheader"],Kye=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return kt({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},Zye,t)},Jye=Se("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})=>L({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),e1e=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiList"}),{children:i,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=r,c=Ge(r,Xye),d=I.useMemo(()=>({dense:s}),[s]),p=L({},r,{component:a,dense:s,disablePadding:l}),h=Kye(p);return P.jsx(Qs.Provider,{value:d,children:P.jsxs(Jye,L({as:a,className:Je(h.root,o),ref:n,ownerState:p},c,{children:[u,i]}))})}),RY=e1e;function t1e(e){return At("MuiListItem",e)}const n1e=_t("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Eh=n1e;function r1e(e){return At("MuiListItemButton",e)}const i1e=_t("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Sh=i1e,o1e=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],a1e=(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]},s1e=e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:a,selected:s}=e,u=kt({root:["root",r&&"dense",!o&&"gutters",a&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",s&&"selected"]},r1e,n);return L({},n,u)},l1e=Se(hs,{shouldForwardProp:e=>Ji(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:a1e})(({theme:e,ownerState:t})=>L({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"}},[`&.${Sh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Sh.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Sh.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:cn(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})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Sh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Sh.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})),u1e=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:o=!1,component:a="div",children:s,dense:l=!1,disableGutters:u=!1,divider:c=!1,focusVisibleClassName:d,selected:p=!1,className:h}=r,m=Ge(r,o1e),b=I.useContext(Qs),O=I.useMemo(()=>({dense:l||b.dense||!1,alignItems:i,disableGutters:u}),[i,b.dense,l,u]),y=I.useRef(null);Kr(()=>{o&&y.current&&y.current.focus()},[o]);const v=L({},r,{alignItems:i,dense:O.dense,disableGutters:u,divider:c,selected:p}),S=s1e(v),k=yn(y,n);return P.jsx(Qs.Provider,{value:O,children:P.jsx(l1e,L({ref:k,href:m.href||m.to,component:(m.href||m.to)&&a==="div"?"button":a,focusVisibleClassName:Je(S.focusVisible,d),ownerState:v,className:Je(S.root,h)},m,{classes:S,children:s}))})}),VC=u1e;function c1e(e){return At("MuiListItemSecondaryAction",e)}_t("MuiListItemSecondaryAction",["root","disableGutters"]);const d1e=["className"],f1e=e=>{const{disableGutters:t,classes:n}=e;return kt({root:["root",t&&"disableGutters"]},c1e,n)},p1e=Se("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>L({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),IY=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=r,o=Ge(r,d1e),a=I.useContext(Qs),s=L({},r,{disableGutters:a.disableGutters}),l=f1e(s);return P.jsx(p1e,L({className:Je(l.root,i),ownerState:s,ref:n},o))});IY.muiName="ListItemSecondaryAction";const oT=IY,h1e=["className"],m1e=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],g1e=(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]},b1e=e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:o,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return kt({root:["root",i&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",o&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},t1e,r)},y1e=Se("div",{name:"MuiListItem",slot:"Root",overridesResolver:g1e})(({theme:e,ownerState:t})=>L({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&L({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Sh.root}`]:{paddingRight:48}},{[`&.${Eh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Eh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Eh.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Eh.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"}},[`&.${Eh.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:cn(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})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),O1e=Se("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),v1e=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:o=!1,button:a=!1,children:s,className:l,component:u,components:c={},componentsProps:d={},ContainerComponent:p="li",ContainerProps:{className:h}={},dense:m=!1,disabled:b=!1,disableGutters:O=!1,disablePadding:y=!1,divider:v=!1,focusVisibleClassName:S,secondaryAction:k,selected:C=!1,slotProps:w={},slots:E={}}=r,$=Ge(r.ContainerProps,h1e),N=Ge(r,m1e),R=I.useContext(Qs),B=I.useMemo(()=>({dense:m||R.dense||!1,alignItems:i,disableGutters:O}),[i,R.dense,m,O]),U=I.useRef(null);Kr(()=>{o&&U.current&&U.current.focus()},[o]);const V=I.Children.toArray(s),z=V.length&&Eb(V[V.length-1],["ListItemSecondaryAction"]),W=L({},r,{alignItems:i,autoFocus:o,button:a,dense:B.dense,disabled:b,disableGutters:O,disablePadding:y,divider:v,hasSecondaryAction:z,selected:C}),X=b1e(W),q=yn(U,n),Y=E.root||c.Root||y1e,Z=w.root||d.root||{},j=L({className:Je(X.root,Z.className,l),disabled:b},N);let se=u||"li";return a&&(j.component=u||"div",j.focusVisibleClassName=Je(Eh.focusVisible,S),se=hs),z?(se=!j.component&&!u?"div":se,p==="li"&&(se==="li"?se="div":j.component==="li"&&(j.component="div")),P.jsx(Qs.Provider,{value:B,children:P.jsxs(O1e,L({as:p,className:Je(X.container,h),ref:q,ownerState:W},$,{children:[P.jsx(Y,L({},Z,!ku(Y)&&{as:se,ownerState:L({},W,Z.ownerState)},j,{children:V})),V.pop()]}))})):P.jsx(Qs.Provider,{value:B,children:P.jsxs(Y,L({},Z,{as:se,ref:q},!ku(Y)&&{ownerState:L({},W,Z.ownerState)},j,{children:[V,k&&P.jsx(oT,{children:k})]}))})}),Th=v1e;function E1e(e){return At("MuiListItemAvatar",e)}_t("MuiListItemAvatar",["root","alignItemsFlexStart"]);const S1e=["className"],T1e=e=>{const{alignItems:t,classes:n}=e;return kt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},E1e,n)},w1e=Se("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>L({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),k1e=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiListItemAvatar"}),{className:i}=r,o=Ge(r,S1e),a=I.useContext(Qs),s=L({},r,{alignItems:a.alignItems}),l=T1e(s);return P.jsx(w1e,L({className:Je(l.root,i),ownerState:s,ref:n},o))}),x1e=k1e;function C1e(e){return At("MuiListItemIcon",e)}const A1e=_t("MuiListItemIcon",["root","alignItemsFlexStart"]),C8=A1e,_1e=["className"],R1e=e=>{const{alignItems:t,classes:n}=e;return kt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},C1e,n)},I1e=Se("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})=>L({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),D1e=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiListItemIcon"}),{className:i}=r,o=Ge(r,_1e),a=I.useContext(Qs),s=L({},r,{alignItems:a.alignItems}),l=R1e(s);return P.jsx(I1e,L({className:Je(l.root,i),ownerState:s,ref:n},o))}),HN=D1e;function N1e(e){return At("MuiListItemText",e)}const P1e=_t("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),aT=P1e,L1e=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],M1e=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return kt({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},N1e,t)},$1e=Se("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${aT.primary}`]:t.primary},{[`& .${aT.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>L({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),F1e=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiListItemText"}),{children:i,className:o,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:d}=r,p=Ge(r,L1e),{dense:h}=I.useContext(Qs);let m=l??i,b=c;const O=L({},r,{disableTypography:a,inset:s,primary:!!m,secondary:!!b,dense:h}),y=M1e(O);return m!=null&&m.type!==br&&!a&&(m=P.jsx(br,L({variant:h?"body2":"body1",className:y.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:m}))),b!=null&&b.type!==br&&!a&&(b=P.jsx(br,L({variant:"body2",className:y.secondary,color:"text.secondary",display:"block"},d,{children:b}))),P.jsxs($1e,L({className:Je(y.root,o),ownerState:O,ref:n},p,{children:[m,b]}))}),sp=F1e,B1e=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function HC(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function A8(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function DY(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 b0(e,t,n,r,i,o){let a=!1,s=i(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!DY(s,o)||l)s=i(e,s,n);else return s.focus(),!0}return!1}const U1e=I.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=t,p=Ge(t,B1e),h=I.useRef(null),m=I.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Kr(()=>{i&&h.current.focus()},[i]),I.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(S,k)=>{const C=!h.current.style.width;if(S.clientHeight{const k=h.current,C=S.key,w=yr(k).activeElement;if(C==="ArrowDown")S.preventDefault(),b0(k,w,u,l,HC);else if(C==="ArrowUp")S.preventDefault(),b0(k,w,u,l,A8);else if(C==="Home")S.preventDefault(),b0(k,null,u,l,HC);else if(C==="End")S.preventDefault(),b0(k,null,u,l,A8);else if(C.length===1){const E=m.current,$=C.toLowerCase(),N=performance.now();E.keys.length>0&&(N-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&$!==E.keys[0]&&(E.repeating=!1)),E.lastTime=N,E.keys.push($);const R=w&&!E.repeating&&DY(w,E);E.previousKeyMatched&&(R||b0(k,w,!1,l,HC,E))?S.preventDefault():E.previousKeyMatched=!1}c&&c(S)},O=yn(h,n);let y=-1;I.Children.forEach(a,(S,k)=>{if(!I.isValidElement(S)){y===k&&(y+=1,y>=a.length&&(y=-1));return}S.props.disabled||(d==="selectedMenu"&&S.props.selected||y===-1)&&(y=k),y===k&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(y+=1,y>=a.length&&(y=-1))});const v=I.Children.map(a,(S,k)=>{if(k===y){const C={};return o&&(C.autoFocus=!0),S.props.tabIndex===void 0&&d==="selectedMenu"&&(C.tabIndex=0),I.cloneElement(S,C)}return S});return P.jsx(RY,L({role:"menu",ref:O,className:s,onKeyDown:b,tabIndex:i?0:-1},p,{children:v}))}),G1=U1e;function j1e(e){return At("MuiPopover",e)}_t("MuiPopover",["root","paper"]);const z1e=["onEntering"],V1e=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],H1e=["slotProps"];function _8(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function R8(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function I8(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function WC(e){return typeof e=="function"?e():e}const W1e=e=>{const{classes:t}=e;return kt({root:["root"],paper:["paper"]},j1e,t)},Q1e=Se(Y1,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),NY=Se(Na,{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}),Y1e=I.forwardRef(function(t,n){var r,i,o;const a=gt({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:h,container:m,elevation:b=8,marginThreshold:O=16,open:y,PaperProps:v={},slots:S,slotProps:k,transformOrigin:C={vertical:"top",horizontal:"left"},TransitionComponent:w=iT,transitionDuration:E="auto",TransitionProps:{onEntering:$}={},disableScrollLock:N=!1}=a,R=Ge(a.TransitionProps,z1e),B=Ge(a,V1e),U=(r=k==null?void 0:k.paper)!=null?r:v,V=I.useRef(),z=yn(V,U.ref),W=L({},a,{anchorOrigin:u,anchorReference:d,elevation:b,marginThreshold:O,externalPaperSlotProps:U,transformOrigin:C,TransitionComponent:w,transitionDuration:E,TransitionProps:R}),X=W1e(W),q=I.useCallback(()=>{if(d==="anchorPosition")return c;const ye=WC(l),$e=(ye&&ye.nodeType===1?ye:yr(V.current).body).getBoundingClientRect();return{top:$e.top+_8($e,u.vertical),left:$e.left+R8($e,u.horizontal)}},[l,u.horizontal,u.vertical,c,d]),Y=I.useCallback(ye=>({vertical:_8(ye,C.vertical),horizontal:R8(ye,C.horizontal)}),[C.horizontal,C.vertical]),Z=I.useCallback(ye=>{const ze={width:ye.offsetWidth,height:ye.offsetHeight},$e=Y(ze);if(d==="none")return{top:null,left:null,transformOrigin:I8($e)};const We=q();let dt=We.top-$e.vertical,Be=We.left-$e.horizontal;const re=dt+ze.height,ee=Be+ze.width,J=Js(WC(l)),Re=J.innerHeight-O,Le=J.innerWidth-O;if(O!==null&&dtRe){const De=re-Re;dt-=De,$e.vertical+=De}if(O!==null&&BeLe){const De=ee-Le;Be-=De,$e.horizontal+=De}return{top:`${Math.round(dt)}px`,left:`${Math.round(Be)}px`,transformOrigin:I8($e)}},[l,d,q,Y,O]),[j,se]=I.useState(y),ve=I.useCallback(()=>{const ye=V.current;if(!ye)return;const ze=Z(ye);ze.top!==null&&(ye.style.top=ze.top),ze.left!==null&&(ye.style.left=ze.left),ye.style.transformOrigin=ze.transformOrigin,se(!0)},[Z]);I.useEffect(()=>(N&&window.addEventListener("scroll",ve),()=>window.removeEventListener("scroll",ve)),[l,N,ve]);const G=(ye,ze)=>{$&&$(ye,ze),ve()},ce=()=>{se(!1)};I.useEffect(()=>{y&&ve()}),I.useImperativeHandle(s,()=>y?{updatePosition:()=>{ve()}}:null,[y,ve]),I.useEffect(()=>{if(!y)return;const ye=Eg(()=>{ve()}),ze=Js(l);return ze.addEventListener("resize",ye),()=>{ye.clear(),ze.removeEventListener("resize",ye)}},[l,y,ve]);let ge=E;E==="auto"&&!w.muiSupportAuto&&(ge=void 0);const ue=m||(l?yr(WC(l)).body:void 0),xe=(i=S==null?void 0:S.root)!=null?i:Q1e,Ne=(o=S==null?void 0:S.paper)!=null?o:NY,Ve=kn({elementType:Ne,externalSlotProps:L({},U,{style:j?U.style:L({},U.style,{opacity:0})}),additionalProps:{elevation:b,ref:z},ownerState:W,className:Je(X.paper,U==null?void 0:U.className)}),Ke=kn({elementType:xe,externalSlotProps:(k==null?void 0:k.root)||{},externalForwardedProps:B,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:ue,open:y},ownerState:W,className:Je(X.root,h)}),{slotProps:Me}=Ke,Ye=Ge(Ke,H1e);return P.jsx(xe,L({},Ye,!ku(xe)&&{slotProps:Me,disableScrollLock:N},{children:P.jsx(w,L({appear:!0,in:y,onEntering:G,onExited:ce,timeout:ge},R,{children:P.jsx(Ne,L({},Ve,{children:p}))}))}))}),WN=Y1e;function G1e(e){return At("MuiMenu",e)}_t("MuiMenu",["root","paper","list"]);const q1e=["onEntering"],Z1e=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],X1e={vertical:"top",horizontal:"right"},K1e={vertical:"top",horizontal:"left"},J1e=e=>{const{classes:t}=e;return kt({root:["root"],paper:["paper"],list:["list"]},G1e,t)},eOe=Se(WN,{shouldForwardProp:e=>Ji(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tOe=Se(NY,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),nOe=Se(G1,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),rOe=I.forwardRef(function(t,n){var r,i;const o=gt({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:h={},PopoverClasses:m,transitionDuration:b="auto",TransitionProps:{onEntering:O}={},variant:y="selectedMenu",slots:v={},slotProps:S={}}=o,k=Ge(o.TransitionProps,q1e),C=Ge(o,Z1e),w=ci(),E=w.direction==="rtl",$=L({},o,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:O,PaperProps:h,transitionDuration:b,TransitionProps:k,variant:y}),N=J1e($),R=a&&!u&&p,B=I.useRef(null),U=(Z,j)=>{B.current&&B.current.adjustStyleForScrollbar(Z,w),O&&O(Z,j)},V=Z=>{Z.key==="Tab"&&(Z.preventDefault(),d&&d(Z,"tabKeyDown"))};let z=-1;I.Children.map(s,(Z,j)=>{I.isValidElement(Z)&&(Z.props.disabled||(y==="selectedMenu"&&Z.props.selected||z===-1)&&(z=j))});const W=(r=v.paper)!=null?r:tOe,X=(i=S.paper)!=null?i:h,q=kn({elementType:v.root,externalSlotProps:S.root,ownerState:$,className:[N.root,l]}),Y=kn({elementType:W,externalSlotProps:X,ownerState:$,className:N.paper});return P.jsx(eOe,L({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?X1e:K1e,slots:{paper:W,root:v.root},slotProps:{root:q,paper:Y},open:p,ref:n,transitionDuration:b,TransitionProps:L({onEntering:U},k),ownerState:$},C,{classes:m,children:P.jsx(nOe,L({onKeyDown:V,actions:B,autoFocus:a&&(z===-1||u),autoFocusItem:R,variant:y},c,{className:Je(N.list,c.className),children:s}))}))}),iOe=rOe;function oOe(e){return At("MuiMenuItem",e)}const aOe=_t("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),y0=aOe,sOe=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],lOe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},uOe=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:a}=e,l=kt({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},oOe,a);return L({},a,l)},cOe=Se(hs,{shouldForwardProp:e=>Ji(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:lOe})(({theme:e,ownerState:t})=>L({},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"}},[`&.${y0.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${y0.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${y0.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:cn(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})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${y0.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${y0.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${v8.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${v8.inset}`]:{marginLeft:52},[`& .${aT.root}`]:{marginTop:0,marginBottom:0},[`& .${aT.inset}`]:{paddingLeft:36},[`& .${C8.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&L({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${C8.root} svg`]:{fontSize:"1.25rem"}}))),dOe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:o="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:p}=r,h=Ge(r,sOe),m=I.useContext(Qs),b=I.useMemo(()=>({dense:a||m.dense||!1,disableGutters:l}),[m.dense,a,l]),O=I.useRef(null);Kr(()=>{i&&O.current&&O.current.focus()},[i]);const y=L({},r,{dense:b.dense,divider:s,disableGutters:l}),v=uOe(r),S=yn(O,n);let k;return r.disabled||(k=d!==void 0?d:-1),P.jsx(Qs.Provider,{value:b,children:P.jsx(cOe,L({ref:S,role:c,tabIndex:k,component:o,focusVisibleClassName:Je(v.focusVisible,u),className:Je(v.root,p)},h,{ownerState:y,classes:v}))})}),yp=dOe;function fOe(e){return At("MuiNativeSelect",e)}const pOe=_t("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),QN=pOe,hOe=["className","disabled","error","IconComponent","inputRef","variant"],mOe=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e,s={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${nt(n)}`,o&&"iconOpen",r&&"disabled"]};return kt(s,fOe,t)},PY=({ownerState:e,theme:t})=>L({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":L({},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"},[`&.${QN.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}}),gOe=Se("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ji,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${QN.multiple}`]:t.multiple}]}})(PY),LY=({ownerState:e,theme:t})=>L({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${QN.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),bOe=Se("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${nt(n.variant)}`],n.open&&t.iconOpen]}})(LY),yOe=I.forwardRef(function(t,n){const{className:r,disabled:i,error:o,IconComponent:a,inputRef:s,variant:l="standard"}=t,u=Ge(t,hOe),c=L({},t,{disabled:i,variant:l,error:o}),d=mOe(c);return P.jsxs(I.Fragment,{children:[P.jsx(gOe,L({ownerState:c,className:Je(d.select,r),disabled:i,ref:s||n},u)),t.multiple?null:P.jsx(bOe,{as:a,ownerState:c,className:d.icon})]})}),OOe=yOe;var D8;const vOe=["children","classes","className","label","notched"],EOe=Se("fieldset",{shouldForwardProp:Ji})({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%"}),SOe=Se("legend",{shouldForwardProp:Ji})(({ownerState:e,theme:t})=>L({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&&L({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 TOe(e){const{className:t,label:n,notched:r}=e,i=Ge(e,vOe),o=n!=null&&n!=="",a=L({},e,{notched:r,withLabel:o});return P.jsx(EOe,L({"aria-hidden":!0,className:t,ownerState:a},i,{children:P.jsx(SOe,{ownerState:a,children:o?P.jsx("span",{children:n}):D8||(D8=P.jsx("span",{className:"notranslate",children:"​"}))})}))}const wOe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],kOe=e=>{const{classes:t}=e,r=kt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Mme,t);return L({},t,r)},xOe=Se(wk,{shouldForwardProp:e=>Ji(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Sk})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return L({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ru.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ru.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${ru.focused} .${ru.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ru.error} .${ru.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ru.disabled} .${ru.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&L({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),COe=Se(TOe,{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}}),AOe=Se(kk,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Tk})(({theme:e,ownerState:t})=>L({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})),MY=I.forwardRef(function(t,n){var r,i,o,a,s;const l=gt({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:p,multiline:h=!1,notched:m,slots:b={},type:O="text"}=l,y=Ge(l,wOe),v=kOe(l),S=Du(),k=af({props:l,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),C=L({},l,{color:k.color||"primary",disabled:k.disabled,error:k.error,focused:k.focused,formControl:S,fullWidth:c,hiddenLabel:k.hiddenLabel,multiline:h,size:k.size,type:O}),w=(r=(i=b.root)!=null?i:u.Root)!=null?r:xOe,E=(o=(a=b.input)!=null?a:u.Input)!=null?o:AOe;return P.jsx(UN,L({slots:{root:w,input:E},renderSuffix:$=>P.jsx(COe,{ownerState:C,className:v.notchedOutline,label:p!=null&&p!==""&&k.required?s||(s=P.jsxs(I.Fragment,{children:[p," ","*"]})):p,notched:typeof m<"u"?m:!!($.startAdornment||$.filled||$.focused)}),fullWidth:c,inputComponent:d,multiline:h,ref:n,type:O},y,{classes:L({},v,{notchedOutline:null})}))});MY.muiName="Input";const $Y=MY,_Oe=ki(P.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"),ROe=ki(P.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"),IOe=Se("span",{shouldForwardProp:Ji})({position:"relative",display:"flex"}),DOe=Se(_Oe)({transform:"scale(1)"}),NOe=Se(ROe)(({theme:e,ownerState:t})=>L({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 FY(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i=L({},e,{checked:t});return P.jsxs(IOe,{className:n.root,ownerState:i,children:[P.jsx(DOe,{fontSize:r,className:n.background,ownerState:i}),P.jsx(NOe,{fontSize:r,className:n.dot,ownerState:i})]})}const POe=I.createContext(void 0),BY=POe;function LOe(){return I.useContext(BY)}function MOe(e){return At("MuiRadio",e)}const N8=_t("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),$Oe=["checked","checkedIcon","color","icon","name","onChange","size","className"],FOe=e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${nt(n)}`,r!=="medium"&&`size${nt(r)}`]};return L({},t,kt(i,MOe,t))},BOe=Se(jN,{shouldForwardProp:e=>Ji(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${nt(n.size)}`],t[`color${nt(n.color)}`]]}})(({theme:e,ownerState:t})=>L({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})`:cn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${N8.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${N8.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function UOe(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const P8=P.jsx(FY,{checked:!0}),L8=P.jsx(FY,{}),jOe=I.forwardRef(function(t,n){var r,i;const o=gt({props:t,name:"MuiRadio"}),{checked:a,checkedIcon:s=P8,color:l="primary",icon:u=L8,name:c,onChange:d,size:p="medium",className:h}=o,m=Ge(o,$Oe),b=L({},o,{color:l,size:p}),O=FOe(b),y=LOe();let v=a;const S=ZS(d,y&&y.onChange);let k=c;return y&&(typeof v>"u"&&(v=UOe(y.value,o.value)),typeof k>"u"&&(k=y.name)),P.jsx(BOe,L({type:"radio",icon:I.cloneElement(u,{fontSize:(r=L8.props.fontSize)!=null?r:p}),checkedIcon:I.cloneElement(s,{fontSize:(i=P8.props.fontSize)!=null?i:p}),ownerState:b,classes:O,name:k,checked:v,onChange:S,ref:n,className:Je(O.root,h)},m))}),M8=jOe,zOe=["actions","children","defaultValue","name","onChange","value"],VOe=I.forwardRef(function(t,n){const{actions:r,children:i,defaultValue:o,name:a,onChange:s,value:l}=t,u=Ge(t,zOe),c=I.useRef(null),[d,p]=Xi({controlled:l,default:o,name:"RadioGroup"});I.useImperativeHandle(r,()=>({focus:()=>{let O=c.current.querySelector("input:not(:disabled):checked");O||(O=c.current.querySelector("input:not(:disabled)")),O&&O.focus()}}),[]);const h=yn(n,c),m=$l(a),b=I.useMemo(()=>({name:m,onChange(O){p(O.target.value),s&&s(O,O.target.value)},value:d}),[m,s,p,d]);return P.jsx(BY.Provider,{value:b,children:P.jsx(zN,L({role:"radiogroup",ref:h},u,{children:i}))})}),HOe=VOe;function WOe(e){return At("MuiSelect",e)}const O0=_t("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var $8;const QOe=["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"],YOe=Se("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${O0.select}`]:t.select},{[`&.${O0.select}`]:t[n.variant]},{[`&.${O0.error}`]:t.error},{[`&.${O0.multiple}`]:t.multiple}]}})(PY,{[`&.${O0.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),GOe=Se("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${nt(n.variant)}`],n.open&&t.iconOpen]}})(LY),qOe=Se("input",{shouldForwardProp:e=>kN(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 F8(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function ZOe(e){return e==null||typeof e=="string"&&!e.trim()}const XOe=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e,s={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${nt(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return kt(s,WOe,t)},KOe=I.forwardRef(function(t,n){var r;const{"aria-describedby":i,"aria-label":o,autoFocus:a,autoWidth:s,children:l,className:u,defaultOpen:c,defaultValue:d,disabled:p,displayEmpty:h,error:m=!1,IconComponent:b,inputRef:O,labelId:y,MenuProps:v={},multiple:S,name:k,onBlur:C,onChange:w,onClose:E,onFocus:$,onOpen:N,open:R,readOnly:B,renderValue:U,SelectDisplayProps:V={},tabIndex:z,value:W,variant:X="standard"}=t,q=Ge(t,QOe),[Y,Z]=Xi({controlled:W,default:d,name:"Select"}),[j,se]=Xi({controlled:R,default:c,name:"Select"}),ve=I.useRef(null),G=I.useRef(null),[ce,ge]=I.useState(null),{current:ue}=I.useRef(R!=null),[xe,Ne]=I.useState(),Ve=yn(n,O),Ke=I.useCallback(et=>{G.current=et,et&&ge(et)},[]),Me=ce==null?void 0:ce.parentNode;I.useImperativeHandle(Ve,()=>({focus:()=>{G.current.focus()},node:ve.current,value:Y}),[Y]),I.useEffect(()=>{c&&j&&ce&&!ue&&(Ne(s?null:Me.clientWidth),G.current.focus())},[ce,s]),I.useEffect(()=>{a&&G.current.focus()},[a]),I.useEffect(()=>{if(!y)return;const et=yr(G.current).getElementById(y);if(et){const vt=()=>{getSelection().isCollapsed&&G.current.focus()};return et.addEventListener("click",vt),()=>{et.removeEventListener("click",vt)}}},[y]);const Ye=(et,vt)=>{et?N&&N(vt):E&&E(vt),ue||(Ne(s?null:Me.clientWidth),se(et))},ye=et=>{et.button===0&&(et.preventDefault(),G.current.focus(),Ye(!0,et))},ze=et=>{Ye(!1,et)},$e=I.Children.toArray(l),We=et=>{const vt=$e.find(qe=>qe.props.value===et.target.value);vt!==void 0&&(Z(vt.props.value),w&&w(et,vt))},dt=et=>vt=>{let qe;if(vt.currentTarget.hasAttribute("tabindex")){if(S){qe=Array.isArray(Y)?Y.slice():[];const it=Y.indexOf(et.props.value);it===-1?qe.push(et.props.value):qe.splice(it,1)}else qe=et.props.value;if(et.props.onClick&&et.props.onClick(vt),Y!==qe&&(Z(qe),w)){const it=vt.nativeEvent||vt,Et=new it.constructor(it.type,it);Object.defineProperty(Et,"target",{writable:!0,value:{value:qe,name:k}}),w(Et,et)}S||Ye(!1,vt)}},Be=et=>{B||[" ","ArrowUp","ArrowDown","Enter"].indexOf(et.key)!==-1&&(et.preventDefault(),Ye(!0,et))},re=ce!==null&&j,ee=et=>{!re&&C&&(Object.defineProperty(et,"target",{writable:!0,value:{value:Y,name:k}}),C(et))};delete q["aria-invalid"];let J,Re;const Le=[];let De=!1;(rT({value:Y})||h)&&(U?J=U(Y):De=!0);const ie=$e.map(et=>{if(!I.isValidElement(et))return null;let vt;if(S){if(!Array.isArray(Y))throw new Error(jd(2));vt=Y.some(qe=>F8(qe,et.props.value)),vt&&De&&Le.push(et.props.children)}else vt=F8(Y,et.props.value),vt&&De&&(Re=et.props.children);return I.cloneElement(et,{"aria-selected":vt?"true":"false",onClick:dt(et),onKeyUp:qe=>{qe.key===" "&&qe.preventDefault(),et.props.onKeyUp&&et.props.onKeyUp(qe)},role:"option",selected:vt,value:void 0,"data-value":et.props.value})});De&&(S?Le.length===0?J=null:J=Le.reduce((et,vt,qe)=>(et.push(vt),qe{const{classes:t}=e;return t},YN={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ji(e)&&e!=="variant",slot:"Root"},rve=Se(AY,YN)(""),ive=Se($Y,YN)(""),ove=Se(TY,YN)(""),UY=I.forwardRef(function(t,n){const r=gt({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=mY,id:d,input:p,inputProps:h,label:m,labelId:b,MenuProps:O,multiple:y=!1,native:v=!1,onClose:S,onOpen:k,open:C,renderValue:w,SelectDisplayProps:E,variant:$="outlined"}=r,N=Ge(r,eve),R=v?OOe:JOe,B=Du(),U=af({props:r,muiFormControl:B,states:["variant","error"]}),V=U.variant||$,z=L({},r,{variant:V,classes:a}),W=nve(z),X=Ge(W,tve),q=p||{standard:P.jsx(rve,{ownerState:z}),outlined:P.jsx(ive,{label:m,ownerState:z}),filled:P.jsx(ove,{ownerState:z})}[V],Y=yn(n,q.ref);return P.jsx(I.Fragment,{children:I.cloneElement(q,L({inputComponent:R,inputProps:L({children:o,error:U.error,IconComponent:c,variant:V,type:void 0,multiple:y},v?{id:d}:{autoWidth:i,defaultOpen:l,displayEmpty:u,labelId:b,MenuProps:O,onClose:S,onOpen:k,open:C,renderValue:w,SelectDisplayProps:L({id:d},E)},h,{classes:h?Lo(X,h.classes):X},p?p.props.inputProps:{})},y&&v&&V==="outlined"?{notched:!0}:{},{ref:Y,className:Je(q.props.className,s,W.root)},!p&&{variant:V},N))})});UY.muiName="Select";const jY=UY,ave=e=>!e||!ku(e);function sve(e){return At("MuiSlider",e)}const wl=_t("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"]),lve=e=>{const{open:t}=e;return{offset:Je(t&&wl.valueLabelOpen),circle:wl.valueLabelCircle,label:wl.valueLabelLabel}};function uve(e){const{children:t,className:n,value:r}=e,i=lve(e);return t?I.cloneElement(t,{className:Je(t.props.className)},P.jsxs(I.Fragment,{children:[t.props.children,P.jsx("span",{className:Je(i.offset,n),"aria-hidden":!0,children:P.jsx("span",{className:i.circle,children:P.jsx("span",{className:i.label,children:r})})})]})):null}const cve=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function B8(e){return e}const dve=Se("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${nt(n.color)}`],n.size!=="medium"&&t[`size${nt(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>L({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&L({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&L({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${wl.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${wl.dragging}`]:{[`& .${wl.thumb}, & .${wl.track}`]:{transition:"none"}}})),fve=Se("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>L({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),pve=Se("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?bk(e.palette[t.color].main,.62):gk(e.palette[t.color].main,.5);return L({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})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),hve=Se("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${nt(n.color)}`],n.size!=="medium"&&t[`thumbSize${nt(n.size)}`]]}})(({theme:e,ownerState:t})=>L({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})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&::before":L({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${wl.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:cn(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${wl.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:cn(e.palette[t.color].main,.16)}`},[`&.${wl.disabled}`]:{"&:hover":{boxShadow:"none"}}})),mve=Se(uve,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>L({[`&.${wl.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,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"},t.orientation==="horizontal"&&{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%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"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%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),gve=Se("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>kN(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>L({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),bve=Se("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>kN(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>L({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),yve=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:o,classes:a,color:s,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",o==="inverted"&&"trackInverted",o===!1&&"trackFalse",s&&`color${nt(s)}`,l&&`size${nt(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${nt(l)}`,s&&`thumbColor${nt(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return kt(u,sve,a)},Ove=({children:e})=>e,vve=I.forwardRef(function(t,n){var r,i,o,a,s,l,u,c,d,p,h,m,b,O,y,v,S,k,C,w,E,$,N,R;const B=gt({props:t,name:"MuiSlider"}),V=ci().direction==="rtl",{"aria-label":z,"aria-valuetext":W,"aria-labelledby":X,component:q="span",components:Y={},componentsProps:Z={},color:j="primary",classes:se,className:ve,disableSwap:G=!1,disabled:ce=!1,getAriaLabel:ge,getAriaValueText:ue,marks:xe=!1,max:Ne=100,min:Ve=0,orientation:Ke="horizontal",size:Me="medium",step:Ye=1,scale:ye=B8,slotProps:ze,slots:$e,track:We="normal",valueLabelDisplay:dt="off",valueLabelFormat:Be=B8}=B,re=Ge(B,cve),ee=L({},B,{isRtl:V,max:Ne,min:Ve,classes:se,disabled:ce,disableSwap:G,orientation:Ke,marks:xe,color:j,size:Me,step:Ye,scale:ye,track:We,valueLabelDisplay:dt,valueLabelFormat:Be}),{axisProps:J,getRootProps:Re,getHiddenInputProps:Le,getThumbProps:De,open:ie,active:fe,axis:de,focusedThumbIndex:Oe,range:Te,dragging:rt,marks:pt,values:xt,trackOffset:et,trackLeap:vt,getThumbStyle:qe}=rme(L({},ee,{rootRef:n}));ee.marked=pt.length>0&&pt.some(Ue=>Ue.label),ee.dragging=rt,ee.focusedThumbIndex=Oe;const it=yve(ee),Et=(r=(i=$e==null?void 0:$e.root)!=null?i:Y.Root)!=null?r:dve,Nt=(o=(a=$e==null?void 0:$e.rail)!=null?a:Y.Rail)!=null?o:fve,on=(s=(l=$e==null?void 0:$e.track)!=null?l:Y.Track)!=null?s:pve,dn=(u=(c=$e==null?void 0:$e.thumb)!=null?c:Y.Thumb)!=null?u:hve,pn=(d=(p=$e==null?void 0:$e.valueLabel)!=null?p:Y.ValueLabel)!=null?d:mve,zn=(h=(m=$e==null?void 0:$e.mark)!=null?m:Y.Mark)!=null?h:gve,Ee=(b=(O=$e==null?void 0:$e.markLabel)!=null?O:Y.MarkLabel)!=null?b:bve,_e=(y=(v=$e==null?void 0:$e.input)!=null?v:Y.Input)!=null?y:"input",pe=(S=ze==null?void 0:ze.root)!=null?S:Z.root,lt=(k=ze==null?void 0:ze.rail)!=null?k:Z.rail,at=(C=ze==null?void 0:ze.track)!=null?C:Z.track,Mt=(w=ze==null?void 0:ze.thumb)!=null?w:Z.thumb,$t=(E=ze==null?void 0:ze.valueLabel)!=null?E:Z.valueLabel,It=($=ze==null?void 0:ze.mark)!=null?$:Z.mark,Ct=(N=ze==null?void 0:ze.markLabel)!=null?N:Z.markLabel,Zt=(R=ze==null?void 0:ze.input)!=null?R:Z.input,Ie=kn({elementType:Et,getSlotProps:Re,externalSlotProps:pe,externalForwardedProps:re,additionalProps:L({},ave(Et)&&{as:q}),ownerState:L({},ee,pe==null?void 0:pe.ownerState),className:[it.root,ve]}),we=kn({elementType:Nt,externalSlotProps:lt,ownerState:ee,className:it.rail}),Qe=kn({elementType:on,externalSlotProps:at,additionalProps:{style:L({},J[de].offset(et),J[de].leap(vt))},ownerState:L({},ee,at==null?void 0:at.ownerState),className:it.track}),ot=kn({elementType:dn,getSlotProps:De,externalSlotProps:Mt,ownerState:L({},ee,Mt==null?void 0:Mt.ownerState),className:it.thumb}),rn=kn({elementType:pn,externalSlotProps:$t,ownerState:L({},ee,$t==null?void 0:$t.ownerState),className:it.valueLabel}),Wt=kn({elementType:zn,externalSlotProps:It,ownerState:ee,className:it.mark}),mn=kn({elementType:Ee,externalSlotProps:Ct,ownerState:ee,className:it.markLabel}),tr=kn({elementType:_e,getSlotProps:Le,externalSlotProps:Zt,ownerState:ee});return P.jsxs(Et,L({},Ie,{children:[P.jsx(Nt,L({},we)),P.jsx(on,L({},Qe)),pt.filter(Ue=>Ue.value>=Ve&&Ue.value<=Ne).map((Ue,Ce)=>{const mt=nT(Ue.value,Ve,Ne),Dt=J[de].offset(mt);let tn;return We===!1?tn=xt.indexOf(Ue.value)!==-1:tn=We==="normal"&&(Te?Ue.value>=xt[0]&&Ue.value<=xt[xt.length-1]:Ue.value<=xt[0])||We==="inverted"&&(Te?Ue.value<=xt[0]||Ue.value>=xt[xt.length-1]:Ue.value>=xt[0]),P.jsxs(I.Fragment,{children:[P.jsx(zn,L({"data-index":Ce},Wt,!ku(zn)&&{markActive:tn},{style:L({},Dt,Wt.style),className:Je(Wt.className,tn&&it.markActive)})),Ue.label!=null?P.jsx(Ee,L({"aria-hidden":!0,"data-index":Ce},mn,!ku(Ee)&&{markLabelActive:tn},{style:L({},Dt,mn.style),className:Je(it.markLabel,mn.className,tn&&it.markLabelActive),children:Ue.label})):null]},Ce)}),xt.map((Ue,Ce)=>{const mt=nT(Ue,Ve,Ne),Dt=J[de].offset(mt),tn=dt==="off"?Ove:pn;return P.jsx(tn,L({},!ku(tn)&&{valueLabelFormat:Be,valueLabelDisplay:dt,value:typeof Be=="function"?Be(ye(Ue),Ce):Be,index:Ce,open:ie===Ce||fe===Ce||dt==="on",disabled:ce},rn,{children:P.jsx(dn,L({"data-index":Ce},ot,{className:Je(it.thumb,ot.className,fe===Ce&&it.active,Oe===Ce&&it.focusVisible),style:L({},Dt,qe(Ce),ot.style),children:P.jsx(_e,L({"data-index":Ce,"aria-label":ge?ge(Ce):z,"aria-valuenow":ye(Ue),"aria-labelledby":X,"aria-valuetext":ue?ue(ye(Ue),Ce):W,value:xt[Ce]},tr))}))}),Ce)})]}))}),Eve=vve;function Sve(e){return At("MuiTooltip",e)}const Tve=_t("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),gd=Tve,wve=["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 kve(e){return Math.round(e*1e5)/1e5}const xve=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${nt(o.split("-")[0])}`],arrow:["arrow"]};return kt(a,Sve,t)},Cve=Se(Q1,{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})=>L({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${gd.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${gd.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${gd.arrow}`]:L({},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"] .${gd.arrow}`]:L({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Ave=Se("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${nt(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>L({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:cn(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:`${kve(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${gd.popper}[data-popper-placement*="left"] &`]:L({transformOrigin:"right center"},t.isRtl?L({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):L({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${gd.popper}[data-popper-placement*="right"] &`]:L({transformOrigin:"left center"},t.isRtl?L({marginRight:"14px"},t.touch&&{marginRight:"24px"}):L({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${gd.popper}[data-popper-placement*="top"] &`]:L({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${gd.popper}[data-popper-placement*="bottom"] &`]:L({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),_ve=Se("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:cn(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Cv=!1,QC=null,v0={x:0,y:0};function Av(e,t){return n=>{t&&t(n),e(n)}}const Rve=I.forwardRef(function(t,n){var r,i,o,a,s,l,u,c,d,p,h,m,b,O,y,v,S,k,C;const w=gt({props:t,name:"MuiTooltip"}),{arrow:E=!1,children:$,components:N={},componentsProps:R={},describeChild:B=!1,disableFocusListener:U=!1,disableHoverListener:V=!1,disableInteractive:z=!1,disableTouchListener:W=!1,enterDelay:X=100,enterNextDelay:q=0,enterTouchDelay:Y=700,followCursor:Z=!1,id:j,leaveDelay:se=0,leaveTouchDelay:ve=1500,onClose:G,onOpen:ce,open:ge,placement:ue="bottom",PopperComponent:xe,PopperProps:Ne={},slotProps:Ve={},slots:Ke={},title:Me,TransitionComponent:Ye=iT,TransitionProps:ye}=w,ze=Ge(w,wve),$e=I.isValidElement($)?$:P.jsx("span",{children:$}),We=ci(),dt=We.direction==="rtl",[Be,re]=I.useState(),[ee,J]=I.useState(null),Re=I.useRef(!1),Le=z||Z,De=I.useRef(),ie=I.useRef(),fe=I.useRef(),de=I.useRef(),[Oe,Te]=Xi({controlled:ge,default:!1,name:"Tooltip",state:"open"});let rt=Oe;const pt=$l(j),xt=I.useRef(),et=I.useCallback(()=>{xt.current!==void 0&&(document.body.style.WebkitUserSelect=xt.current,xt.current=void 0),clearTimeout(de.current)},[]);I.useEffect(()=>()=>{clearTimeout(De.current),clearTimeout(ie.current),clearTimeout(fe.current),et()},[et]);const vt=Kt=>{clearTimeout(QC),Cv=!0,Te(!0),ce&&!rt&&ce(Kt)},qe=jt(Kt=>{clearTimeout(QC),QC=setTimeout(()=>{Cv=!1},800+se),Te(!1),G&&rt&&G(Kt),clearTimeout(De.current),De.current=setTimeout(()=>{Re.current=!1},We.transitions.duration.shortest)}),it=Kt=>{Re.current&&Kt.type!=="touchstart"||(Be&&Be.removeAttribute("title"),clearTimeout(ie.current),clearTimeout(fe.current),X||Cv&&q?ie.current=setTimeout(()=>{vt(Kt)},Cv?q:X):vt(Kt))},Et=Kt=>{clearTimeout(ie.current),clearTimeout(fe.current),fe.current=setTimeout(()=>{qe(Kt)},se)},{isFocusVisibleRef:Nt,onBlur:on,onFocus:dn,ref:pn}=ik(),[,zn]=I.useState(!1),Ee=Kt=>{on(Kt),Nt.current===!1&&(zn(!1),Et(Kt))},_e=Kt=>{Be||re(Kt.currentTarget),dn(Kt),Nt.current===!0&&(zn(!0),it(Kt))},pe=Kt=>{Re.current=!0;const bn=$e.props;bn.onTouchStart&&bn.onTouchStart(Kt)},lt=it,at=Et,Mt=Kt=>{pe(Kt),clearTimeout(fe.current),clearTimeout(De.current),et(),xt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",de.current=setTimeout(()=>{document.body.style.WebkitUserSelect=xt.current,it(Kt)},Y)},$t=Kt=>{$e.props.onTouchEnd&&$e.props.onTouchEnd(Kt),et(),clearTimeout(fe.current),fe.current=setTimeout(()=>{qe(Kt)},ve)};I.useEffect(()=>{if(!rt)return;function Kt(bn){(bn.key==="Escape"||bn.key==="Esc")&&qe(bn)}return document.addEventListener("keydown",Kt),()=>{document.removeEventListener("keydown",Kt)}},[qe,rt]);const It=yn($e.ref,pn,re,n);!Me&&Me!==0&&(rt=!1);const Ct=I.useRef(),Zt=Kt=>{const bn=$e.props;bn.onMouseMove&&bn.onMouseMove(Kt),v0={x:Kt.clientX,y:Kt.clientY},Ct.current&&Ct.current.update()},Ie={},we=typeof Me=="string";B?(Ie.title=!rt&&we&&!V?Me:null,Ie["aria-describedby"]=rt?pt:null):(Ie["aria-label"]=we?Me:null,Ie["aria-labelledby"]=rt&&!we?pt:null);const Qe=L({},Ie,ze,$e.props,{className:Je(ze.className,$e.props.className),onTouchStart:pe,ref:It},Z?{onMouseMove:Zt}:{}),ot={};W||(Qe.onTouchStart=Mt,Qe.onTouchEnd=$t),V||(Qe.onMouseOver=Av(lt,Qe.onMouseOver),Qe.onMouseLeave=Av(at,Qe.onMouseLeave),Le||(ot.onMouseOver=lt,ot.onMouseLeave=at)),U||(Qe.onFocus=Av(_e,Qe.onFocus),Qe.onBlur=Av(Ee,Qe.onBlur),Le||(ot.onFocus=_e,ot.onBlur=Ee));const rn=I.useMemo(()=>{var Kt;let bn=[{name:"arrow",enabled:!!ee,options:{element:ee,padding:4}}];return(Kt=Ne.popperOptions)!=null&&Kt.modifiers&&(bn=bn.concat(Ne.popperOptions.modifiers)),L({},Ne.popperOptions,{modifiers:bn})},[ee,Ne]),Wt=L({},w,{isRtl:dt,arrow:E,disableInteractive:Le,placement:ue,PopperComponentProp:xe,touch:Re.current}),mn=xve(Wt),tr=(r=(i=Ke.popper)!=null?i:N.Popper)!=null?r:Cve,Ue=(o=(a=(s=Ke.transition)!=null?s:N.Transition)!=null?a:Ye)!=null?o:iT,Ce=(l=(u=Ke.tooltip)!=null?u:N.Tooltip)!=null?l:Ave,mt=(c=(d=Ke.arrow)!=null?d:N.Arrow)!=null?c:_ve,Dt=J0(tr,L({},Ne,(p=Ve.popper)!=null?p:R.popper,{className:Je(mn.popper,Ne==null?void 0:Ne.className,(h=(m=Ve.popper)!=null?m:R.popper)==null?void 0:h.className)}),Wt),tn=J0(Ue,L({},ye,(b=Ve.transition)!=null?b:R.transition),Wt),Mn=J0(Ce,L({},(O=Ve.tooltip)!=null?O:R.tooltip,{className:Je(mn.tooltip,(y=(v=Ve.tooltip)!=null?v:R.tooltip)==null?void 0:y.className)}),Wt),Dn=J0(mt,L({},(S=Ve.arrow)!=null?S:R.arrow,{className:Je(mn.arrow,(k=(C=Ve.arrow)!=null?C:R.arrow)==null?void 0:k.className)}),Wt);return P.jsxs(I.Fragment,{children:[I.cloneElement($e,Qe),P.jsx(tr,L({as:xe??Q1,placement:ue,anchorEl:Z?{getBoundingClientRect:()=>({top:v0.y,left:v0.x,right:v0.x,bottom:v0.y,width:0,height:0})}:Be,popperRef:Ct,open:Be?rt:!1,id:pt,transition:!0},ot,Dt,{popperOptions:rn,children:({TransitionProps:Kt})=>P.jsx(Ue,L({timeout:We.transitions.duration.shorter},Kt,tn,{children:P.jsxs(Ce,L({},Mn,{children:[Me,E?P.jsx(mt,L({},Dn,{ref:J})):null]}))}))}))]})}),tb=Rve;function Ive(e){return At("MuiSwitch",e)}const Dve=_t("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Zo=Dve,Nve=["className","color","edge","size","sx"],Pve=e=>{const{classes:t,edge:n,size:r,color:i,checked:o,disabled:a}=e,s={root:["root",n&&`edge${nt(n)}`,`size${nt(r)}`],switchBase:["switchBase",`color${nt(i)}`,o&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=kt(s,Ive,t);return L({},t,l)},Lve=Se("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${nt(n.edge)}`],t[`size${nt(n.size)}`]]}})(({ownerState:e})=>L({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"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${Zo.thumb}`]:{width:16,height:16},[`& .${Zo.switchBase}`]:{padding:4,[`&.${Zo.checked}`]:{transform:"translateX(16px)"}}})),Mve=Se(jN,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Zo.input}`]:t.input},n.color!=="default"&&t[`color${nt(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}),[`&.${Zo.checked}`]:{transform:"translateX(20px)"},[`&.${Zo.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Zo.checked} + .${Zo.track}`]:{opacity:.5},[`&.${Zo.disabled} + .${Zo.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Zo.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>L({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Zo.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Zo.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?bk(e.palette[t.color].main,.62):gk(e.palette[t.color].main,.55)}`}},[`&.${Zo.checked} + .${Zo.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),$ve=Se("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}`})),Fve=Se("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%"})),Bve=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiSwitch"}),{className:i,color:o="primary",edge:a=!1,size:s="medium",sx:l}=r,u=Ge(r,Nve),c=L({},r,{color:o,edge:a,size:s}),d=Pve(c),p=P.jsx(Fve,{className:d.thumb,ownerState:c});return P.jsxs(Lve,{className:Je(d.root,i),sx:l,ownerState:c,children:[P.jsx(Mve,L({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:c},u,{classes:L({},d,{root:d.switchBase})})),P.jsx($ve,{className:d.track,ownerState:c})]})}),Uve=Bve;function jve(e){return At("MuiTab",e)}const zve=_t("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Of=zve,Vve=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Hve=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:o,label:a,selected:s,disabled:l}=e,u={root:["root",o&&a&&"labelIcon",`textColor${nt(n)}`,r&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return kt(u,jve,t)},Wve=Se(hs,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${nt(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>L({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Of.iconWrapper}`]:L({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Of.selected}`]:{opacity:1},[`&.${Of.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Of.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Of.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Of.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Of.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),Qve=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiTab"}),{className:i,disabled:o=!1,disableFocusRipple:a=!1,fullWidth:s,icon:l,iconPosition:u="top",indicator:c,label:d,onChange:p,onClick:h,onFocus:m,selected:b,selectionFollowsFocus:O,textColor:y="inherit",value:v,wrapped:S=!1}=r,k=Ge(r,Vve),C=L({},r,{disabled:o,disableFocusRipple:a,selected:b,icon:!!l,iconPosition:u,label:!!d,fullWidth:s,textColor:y,wrapped:S}),w=Hve(C),E=l&&d&&I.isValidElement(l)?I.cloneElement(l,{className:Je(w.iconWrapper,l.props.className)}):l,$=R=>{!b&&p&&p(R,v),h&&h(R)},N=R=>{O&&!b&&p&&p(R,v),m&&m(R)};return P.jsxs(Wve,L({focusRipple:!a,className:Je(w.root,i),ref:n,role:"tab","aria-selected":b,disabled:o,onClick:$,onFocus:N,ownerState:C,tabIndex:b?0:-1},k,{children:[u==="top"||u==="start"?P.jsxs(I.Fragment,{children:[E,d]}):P.jsxs(I.Fragment,{children:[d,E]}),c]}))}),U8=Qve;function Yve(e){return At("MuiToolbar",e)}_t("MuiToolbar",["root","gutters","regular","dense"]);const Gve=["className","component","disableGutters","variant"],qve=e=>{const{classes:t,disableGutters:n,variant:r}=e;return kt({root:["root",!n&&"gutters",r]},Yve,t)},Zve=Se("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})=>L({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),Xve=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:a=!1,variant:s="regular"}=r,l=Ge(r,Gve),u=L({},r,{component:o,disableGutters:a,variant:s}),c=qve(u);return P.jsx(Zve,L({as:o,className:Je(c.root,i),ref:n,ownerState:u},l))}),Kve=Xve,Jve=ki(P.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),eEe=ki(P.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function tEe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function nEe(e,t,n,r={},i=()=>{}){const{ease:o=tEe,duration:a=300}=r;let s=null;const l=t[e];let u=!1;const c=()=>{u=!0},d=p=>{if(u){i(new Error("Animation cancelled"));return}s===null&&(s=p);const h=Math.min(1,(p-s)/a);if(t[e]=o(h)*(n-l)+l,h>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(d)};return l===n?(i(new Error("Element already at target position")),c):(requestAnimationFrame(d),c)}const rEe=["onChange"],iEe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function oEe(e){const{onChange:t}=e,n=Ge(e,rEe),r=I.useRef(),i=I.useRef(null),o=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return Kr(()=>{const a=Eg(()=>{const l=r.current;o(),l!==r.current&&t(r.current)}),s=Js(i.current);return s.addEventListener("resize",a),()=>{a.clear(),s.removeEventListener("resize",a)}},[t]),I.useEffect(()=>{o(),t(r.current)},[t]),P.jsx("div",L({style:iEe,ref:i},n))}function aEe(e){return At("MuiTabScrollButton",e)}const sEe=_t("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),lEe=sEe,uEe=["className","slots","slotProps","direction","orientation","disabled"],cEe=e=>{const{classes:t,orientation:n,disabled:r}=e;return kt({root:["root",n,r&&"disabled"]},aEe,t)},dEe=Se(hs,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>L({width:40,flexShrink:0,opacity:.8,[`&.${lEe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),fEe=I.forwardRef(function(t,n){var r,i;const o=gt({props:t,name:"MuiTabScrollButton"}),{className:a,slots:s={},slotProps:l={},direction:u}=o,c=Ge(o,uEe),p=ci().direction==="rtl",h=L({isRtl:p},o),m=cEe(h),b=(r=s.StartScrollButtonIcon)!=null?r:Jve,O=(i=s.EndScrollButtonIcon)!=null?i:eEe,y=kn({elementType:b,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),v=kn({elementType:O,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return P.jsx(dEe,L({component:"div",className:Je(m.root,a),ref:n,role:null,ownerState:h,tabIndex:null},c,{children:u==="left"?P.jsx(b,L({},y)):P.jsx(O,L({},v))}))}),pEe=fEe;function hEe(e){return At("MuiTabs",e)}const mEe=_t("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),UE=mEe,gEe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],j8=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,z8=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,_v=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const o=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||o)i=n(e,i);else{i.focus();return}}},bEe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:o,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return kt({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},hEe,l)},yEe=Se("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${UE.scrollButtons}`]:t.scrollButtons},{[`& .${UE.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>L({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${UE.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),OEe=Se("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>L({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),vEe=Se("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>L({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),EEe=Se("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>L({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),SEe=Se(oEe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),V8={},TEe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiTabs"}),i=ci(),o=i.direction==="rtl",{"aria-label":a,"aria-labelledby":s,action:l,centered:u=!1,children:c,className:d,component:p="div",allowScrollButtonsMobile:h=!1,indicatorColor:m="primary",onChange:b,orientation:O="horizontal",ScrollButtonComponent:y=pEe,scrollButtons:v="auto",selectionFollowsFocus:S,slots:k={},slotProps:C={},TabIndicatorProps:w={},TabScrollButtonProps:E={},textColor:$="primary",value:N,variant:R="standard",visibleScrollbar:B=!1}=r,U=Ge(r,gEe),V=R==="scrollable",z=O==="vertical",W=z?"scrollTop":"scrollLeft",X=z?"top":"left",q=z?"bottom":"right",Y=z?"clientHeight":"clientWidth",Z=z?"height":"width",j=L({},r,{component:p,allowScrollButtonsMobile:h,indicatorColor:m,orientation:O,vertical:z,scrollButtons:v,textColor:$,variant:R,visibleScrollbar:B,fixed:!V,hideScrollbar:V&&!B,scrollableX:V&&!z,scrollableY:V&&z,centered:u&&!V,scrollButtonsHideMobile:!h}),se=bEe(j),ve=kn({elementType:k.StartScrollButtonIcon,externalSlotProps:C.startScrollButtonIcon,ownerState:j}),G=kn({elementType:k.EndScrollButtonIcon,externalSlotProps:C.endScrollButtonIcon,ownerState:j}),[ce,ge]=I.useState(!1),[ue,xe]=I.useState(V8),[Ne,Ve]=I.useState(!1),[Ke,Me]=I.useState(!1),[Ye,ye]=I.useState(!1),[ze,$e]=I.useState({overflow:"hidden",scrollbarWidth:0}),We=new Map,dt=I.useRef(null),Be=I.useRef(null),re=()=>{const qe=dt.current;let it;if(qe){const Nt=qe.getBoundingClientRect();it={clientWidth:qe.clientWidth,scrollLeft:qe.scrollLeft,scrollTop:qe.scrollTop,scrollLeftNormalized:Fue(qe,i.direction),scrollWidth:qe.scrollWidth,top:Nt.top,bottom:Nt.bottom,left:Nt.left,right:Nt.right}}let Et;if(qe&&N!==!1){const Nt=Be.current.children;if(Nt.length>0){const on=Nt[We.get(N)];Et=on?on.getBoundingClientRect():null}}return{tabsMeta:it,tabMeta:Et}},ee=jt(()=>{const{tabsMeta:qe,tabMeta:it}=re();let Et=0,Nt;if(z)Nt="top",it&&qe&&(Et=it.top-qe.top+qe.scrollTop);else if(Nt=o?"right":"left",it&&qe){const dn=o?qe.scrollLeftNormalized+qe.clientWidth-qe.scrollWidth:qe.scrollLeft;Et=(o?-1:1)*(it[Nt]-qe[Nt]+dn)}const on={[Nt]:Et,[Z]:it?it[Z]:0};if(isNaN(ue[Nt])||isNaN(ue[Z]))xe(on);else{const dn=Math.abs(ue[Nt]-on[Nt]),pn=Math.abs(ue[Z]-on[Z]);(dn>=1||pn>=1)&&xe(on)}}),J=(qe,{animation:it=!0}={})=>{it?nEe(W,dt.current,qe,{duration:i.transitions.duration.standard}):dt.current[W]=qe},Re=qe=>{let it=dt.current[W];z?it+=qe:(it+=qe*(o?-1:1),it*=o&&MQ()==="reverse"?-1:1),J(it)},Le=()=>{const qe=dt.current[Y];let it=0;const Et=Array.from(Be.current.children);for(let Nt=0;Ntqe){Nt===0&&(it=qe);break}it+=on[Y]}return it},De=()=>{Re(-1*Le())},ie=()=>{Re(Le())},fe=I.useCallback(qe=>{$e({overflow:null,scrollbarWidth:qe})},[]),de=()=>{const qe={};qe.scrollbarSizeListener=V?P.jsx(SEe,{onChange:fe,className:Je(se.scrollableX,se.hideScrollbar)}):null;const Et=V&&(v==="auto"&&(Ne||Ke)||v===!0);return qe.scrollButtonStart=Et?P.jsx(y,L({slots:{StartScrollButtonIcon:k.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ve},orientation:O,direction:o?"right":"left",onClick:De,disabled:!Ne},E,{className:Je(se.scrollButtons,E.className)})):null,qe.scrollButtonEnd=Et?P.jsx(y,L({slots:{EndScrollButtonIcon:k.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:G},orientation:O,direction:o?"left":"right",onClick:ie,disabled:!Ke},E,{className:Je(se.scrollButtons,E.className)})):null,qe},Oe=jt(qe=>{const{tabsMeta:it,tabMeta:Et}=re();if(!(!Et||!it)){if(Et[X]it[q]){const Nt=it[W]+(Et[q]-it[q]);J(Nt,{animation:qe})}}}),Te=jt(()=>{V&&v!==!1&&ye(!Ye)});I.useEffect(()=>{const qe=Eg(()=>{dt.current&&ee()});let it;const Et=dn=>{dn.forEach(pn=>{pn.removedNodes.forEach(zn=>{var Ee;(Ee=it)==null||Ee.unobserve(zn)}),pn.addedNodes.forEach(zn=>{var Ee;(Ee=it)==null||Ee.observe(zn)})}),qe(),Te()},Nt=Js(dt.current);Nt.addEventListener("resize",qe);let on;return typeof ResizeObserver<"u"&&(it=new ResizeObserver(qe),Array.from(Be.current.children).forEach(dn=>{it.observe(dn)})),typeof MutationObserver<"u"&&(on=new MutationObserver(Et),on.observe(Be.current,{childList:!0})),()=>{var dn,pn;qe.clear(),Nt.removeEventListener("resize",qe),(dn=on)==null||dn.disconnect(),(pn=it)==null||pn.disconnect()}},[ee,Te]),I.useEffect(()=>{const qe=Array.from(Be.current.children),it=qe.length;if(typeof IntersectionObserver<"u"&&it>0&&V&&v!==!1){const Et=qe[0],Nt=qe[it-1],on={root:dt.current,threshold:.99},dn=_e=>{Ve(!_e[0].isIntersecting)},pn=new IntersectionObserver(dn,on);pn.observe(Et);const zn=_e=>{Me(!_e[0].isIntersecting)},Ee=new IntersectionObserver(zn,on);return Ee.observe(Nt),()=>{pn.disconnect(),Ee.disconnect()}}},[V,v,Ye,c==null?void 0:c.length]),I.useEffect(()=>{ge(!0)},[]),I.useEffect(()=>{ee()}),I.useEffect(()=>{Oe(V8!==ue)},[Oe,ue]),I.useImperativeHandle(l,()=>({updateIndicator:ee,updateScrollButtons:Te}),[ee,Te]);const rt=P.jsx(EEe,L({},w,{className:Je(se.indicator,w.className),ownerState:j,style:L({},ue,w.style)}));let pt=0;const xt=I.Children.map(c,qe=>{if(!I.isValidElement(qe))return null;const it=qe.props.value===void 0?pt:qe.props.value;We.set(it,pt);const Et=it===N;return pt+=1,I.cloneElement(qe,L({fullWidth:R==="fullWidth",indicator:Et&&!ce&&rt,selected:Et,selectionFollowsFocus:S,onChange:b,textColor:$,value:it},pt===1&&N===!1&&!qe.props.tabIndex?{tabIndex:0}:{}))}),et=qe=>{const it=Be.current,Et=yr(it).activeElement;if(Et.getAttribute("role")!=="tab")return;let on=O==="horizontal"?"ArrowLeft":"ArrowUp",dn=O==="horizontal"?"ArrowRight":"ArrowDown";switch(O==="horizontal"&&o&&(on="ArrowRight",dn="ArrowLeft"),qe.key){case on:qe.preventDefault(),_v(it,Et,z8);break;case dn:qe.preventDefault(),_v(it,Et,j8);break;case"Home":qe.preventDefault(),_v(it,null,j8);break;case"End":qe.preventDefault(),_v(it,null,z8);break}},vt=de();return P.jsxs(yEe,L({className:Je(se.root,d),ownerState:j,ref:n,as:p},U,{children:[vt.scrollButtonStart,vt.scrollbarSizeListener,P.jsxs(OEe,{className:se.scroller,ownerState:j,style:{overflow:ze.overflow,[z?`margin${o?"Left":"Right"}`:"marginBottom"]:B?void 0:-ze.scrollbarWidth},ref:dt,children:[P.jsx(vEe,{"aria-label":a,"aria-labelledby":s,"aria-orientation":O==="vertical"?"vertical":null,className:se.flexContainer,ownerState:j,onKeyDown:et,ref:Be,role:"tablist",children:xt}),ce&&rt]}),vt.scrollButtonEnd]}))}),wEe=TEe;function kEe(e){return At("MuiTextField",e)}_t("MuiTextField",["root"]);const xEe=["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"],CEe={standard:AY,filled:TY,outlined:$Y},AEe=e=>{const{classes:t}=e;return kt({root:["root"]},kEe,t)},_Ee=Se(sf,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),REe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:a,className:s,color:l="primary",defaultValue:u,disabled:c=!1,error:d=!1,FormHelperTextProps:p,fullWidth:h=!1,helperText:m,id:b,InputLabelProps:O,inputProps:y,InputProps:v,inputRef:S,label:k,maxRows:C,minRows:w,multiline:E=!1,name:$,onBlur:N,onChange:R,onFocus:B,placeholder:U,required:V=!1,rows:z,select:W=!1,SelectProps:X,type:q,value:Y,variant:Z="outlined"}=r,j=Ge(r,xEe),se=L({},r,{autoFocus:o,color:l,disabled:c,error:d,fullWidth:h,multiline:E,required:V,select:W,variant:Z}),ve=AEe(se),G={};Z==="outlined"&&(O&&typeof O.shrink<"u"&&(G.notched=O.shrink),G.label=k),W&&((!X||!X.native)&&(G.id=void 0),G["aria-describedby"]=void 0);const ce=$l(b),ge=m&&ce?`${ce}-helper-text`:void 0,ue=k&&ce?`${ce}-label`:void 0,xe=CEe[Z],Ne=P.jsx(xe,L({"aria-describedby":ge,autoComplete:i,autoFocus:o,defaultValue:u,fullWidth:h,multiline:E,name:$,rows:z,maxRows:C,minRows:w,type:q,value:Y,id:ce,inputRef:S,onBlur:N,onChange:R,onFocus:B,placeholder:U,inputProps:y},G,v));return P.jsxs(_Ee,L({className:Je(ve.root,s),disabled:c,error:d,fullWidth:h,ref:n,required:V,color:l,variant:Z,ownerState:se},j,{children:[k!=null&&k!==""&&P.jsx(_Y,L({htmlFor:ce,id:ue},O,{children:k})),W?P.jsx(jY,L({"aria-describedby":ge,id:ce,labelId:ue,value:Y,input:Ne},X,{children:a})):Ne,m&&P.jsx(wg,L({id:ge},p,{children:m}))]}))}),Np=REe;function IEe(e){return At("MuiToggleButton",e)}const DEe=_t("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),Wh=DEe,NEe=I.createContext({}),zY=NEe,PEe=I.createContext(void 0),VY=PEe;function LEe(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.indexOf(e)>=0:e===t}const MEe=["value"],$Ee=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],FEe=e=>{const{classes:t,fullWidth:n,selected:r,disabled:i,size:o,color:a}=e,s={root:["root",r&&"selected",i&&"disabled",n&&"fullWidth",`size${nt(o)}`,a]};return kt(s,IEe,t)},BEe=Se(hs,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${nt(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),L({},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%"},{[`&.${Wh.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})`:cn(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Wh.selected}`]:{color:n,backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:cn(n,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${r} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:cn(n,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:cn(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)})}),UEe=I.forwardRef(function(t,n){const r=I.useContext(zY),{value:i}=r,o=Ge(r,MEe),a=I.useContext(VY),s=ok(L({},o,{selected:LEe(t.value,i)}),t),l=gt({props:s,name:"MuiToggleButton"}),{children:u,className:c,color:d="standard",disabled:p=!1,disableFocusRipple:h=!1,fullWidth:m=!1,onChange:b,onClick:O,selected:y,size:v="medium",value:S}=l,k=Ge(l,$Ee),C=L({},l,{color:d,disabled:p,disableFocusRipple:h,fullWidth:m,size:v}),w=FEe(C),E=N=>{O&&(O(N,S),N.defaultPrevented)||b&&b(N,S)},$=a||"";return P.jsx(BEe,L({className:Je(o.className,w.root,c,$),disabled:p,focusRipple:!h,ref:n,onClick:E,onChange:b,value:S,ownerState:C,"aria-pressed":y},k,{children:u}))}),YC=UEe;function jEe(e){return At("MuiToggleButtonGroup",e)}const zEe=_t("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),zr=zEe,VEe=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],HEe=e=>{const{classes:t,orientation:n,fullWidth:r,disabled:i}=e,o={root:["root",n==="vertical"&&"vertical",r&&"fullWidth"],grouped:["grouped",`grouped${nt(n)}`,i&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return kt(o,jEe,t)},WEe=Se("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${zr.grouped}`]:t.grouped},{[`& .${zr.grouped}`]:t[`grouped${nt(n.orientation)}`]},{[`& .${zr.firstButton}`]:t.firstButton},{[`& .${zr.lastButton}`]:t.lastButton},{[`& .${zr.middleButton}`]:t.middleButton},t.root,n.orientation==="vertical"&&t.vertical,n.fullWidth&&t.fullWidth]}})(({ownerState:e,theme:t})=>L({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},e.orientation==="vertical"&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${zr.grouped}`]:L({},e.orientation==="horizontal"?{[`&.${zr.selected} + .${zr.grouped}.${zr.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${zr.selected} + .${zr.grouped}.${zr.selected}`]:{borderTop:0,marginTop:0}})},e.orientation==="horizontal"?{[`& .${zr.firstButton},& .${zr.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${zr.lastButton},& .${zr.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${zr.firstButton},& .${zr.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${zr.lastButton},& .${zr.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},e.orientation==="horizontal"?{[`& .${zr.lastButton}.${Wh.disabled},& .${zr.middleButton}.${Wh.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${zr.lastButton}.${Wh.disabled},& .${zr.middleButton}.${Wh.disabled}`]:{borderTop:"1px solid transparent"}})),QEe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiToggleButtonGroup"}),{children:i,className:o,color:a="standard",disabled:s=!1,exclusive:l=!1,fullWidth:u=!1,onChange:c,orientation:d="horizontal",size:p="medium",value:h}=r,m=Ge(r,VEe),b=L({},r,{disabled:s,fullWidth:u,orientation:d,size:p}),O=HEe(b),y=I.useCallback((E,$)=>{if(!c)return;const N=h&&h.indexOf($);let R;h&&N>=0?(R=h.slice(),R.splice(N,1)):R=h?h.concat($):[$],c(E,R)},[c,h]),v=I.useCallback((E,$)=>{c&&c(E,h===$?null:$)},[c,h]),S=I.useMemo(()=>({className:O.grouped,onChange:l?v:y,value:h,size:p,fullWidth:u,color:a,disabled:s}),[O.grouped,l,v,y,h,p,u,a,s]),k=Uue(i),C=k.length,w=E=>{const $=E===0,N=E===C-1;return $&&N?"":$?O.firstButton:N?O.lastButton:O.middleButton};return P.jsx(WEe,L({role:"group",className:Je(O.root,o),ref:n,ownerState:b},m,{children:P.jsx(zY.Provider,{value:S,children:k.map((E,$)=>P.jsx(VY.Provider,{value:w($),children:E},$))})}))}),YEe=QEe;var HY={exports:{}},WY={};/** + `),P0e)),B0e=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:a=!1,size:s=40,style:l,thickness:u=3.6,value:c=0,variant:d="indeterminate"}=r,p=Ge(r,D0e),h=L({},r,{color:o,disableShrink:a,size:s,thickness:u,value:c,variant:d}),m=L0e(h),b={},O={},y={};if(d==="determinate"){const v=2*Math.PI*((Vc-u)/2);b.strokeDasharray=v.toFixed(3),y["aria-valuenow"]=Math.round(c),b.strokeDashoffset=`${((100-c)/100*v).toFixed(3)}px`,O.transform="rotate(-90deg)"}return N.jsx(M0e,L({className:Je(m.root,i),style:L({width:s,height:s},O,l),ownerState:h,ref:n,role:"progressbar"},y,p,{children:N.jsx($0e,{className:m.svg,ownerState:h,viewBox:`${Vc/2} ${Vc/2} ${Vc} ${Vc}`,children:N.jsx(F0e,{className:m.circle,style:b,ownerState:h,cx:Vc,cy:Vc,r:(Vc-u)/2,fill:"none",strokeWidth:u})})}))}),Dp=B0e,U0e=xde({createStyledComponent:Se("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${nt(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>gt({props:e,name:"MuiContainer"})}),j0e=U0e,z0e=(e,t)=>L({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),V0e=e=>L({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}}),H0e=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,s])=>{var l;r[e.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:(l=s.palette)==null?void 0:l.mode}});let i=L({html:z0e(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:L({margin:0},V0e(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const o=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return o&&(i=[i,o]),i};function W0e(e){const t=gt({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return N.jsxs(I.Fragment,{children:[N.jsx(wY,{styles:i=>H0e(i,r)}),n]})}function Q0e(e){return At("MuiModal",e)}_t("MuiModal",["root","hidden","backdrop"]);const Y0e=["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"],G0e=e=>{const{open:t,exited:n,classes:r}=e;return kt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Q0e,r)},q0e=Se("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})=>L({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Z0e=Se(Ak,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),X0e=I.forwardRef(function(t,n){var r,i,o,a,s,l;const u=gt({name:"MuiModal",props:t}),{BackdropComponent:c=Z0e,BackdropProps:d,className:p,closeAfterTransition:h=!1,children:m,container:b,component:O,components:y={},componentsProps:v={},disableAutoFocus:S=!1,disableEnforceFocus:k=!1,disableEscapeKeyDown:C=!1,disablePortal:w=!1,disableRestoreFocus:E=!1,disableScrollLock:$=!1,hideBackdrop:P=!1,keepMounted:R=!1,onBackdropClick:B,open:U,slotProps:V,slots:z}=u,W=Ge(u,Y0e),X=L({},u,{closeAfterTransition:h,disableAutoFocus:S,disableEnforceFocus:k,disableEscapeKeyDown:C,disablePortal:w,disableRestoreFocus:E,disableScrollLock:$,hideBackdrop:P,keepMounted:R}),{getRootProps:q,getBackdropProps:Y,getTransitionProps:Z,portalRef:j,isTopModal:se,exited:ve,hasTransition:G}=ome(L({},X,{rootRef:n})),ce=L({},X,{exited:ve}),ge=G0e(ce),ue={};if(m.props.tabIndex===void 0&&(ue.tabIndex="-1"),G){const{onEnter:ye,onExited:ze}=Z();ue.onEnter=ye,ue.onExited=ze}const xe=(r=(i=z==null?void 0:z.root)!=null?i:y.Root)!=null?r:q0e,Ne=(o=(a=z==null?void 0:z.backdrop)!=null?a:y.Backdrop)!=null?o:c,Ve=(s=V==null?void 0:V.root)!=null?s:v.root,Ke=(l=V==null?void 0:V.backdrop)!=null?l:v.backdrop,Me=kn({elementType:xe,externalSlotProps:Ve,externalForwardedProps:W,getSlotProps:q,additionalProps:{ref:n,as:O},ownerState:ce,className:Je(p,Ve==null?void 0:Ve.className,ge==null?void 0:ge.root,!ce.open&&ce.exited&&(ge==null?void 0:ge.hidden))}),Ye=kn({elementType:Ne,externalSlotProps:Ke,additionalProps:d,getSlotProps:ye=>Y(L({},ye,{onClick:ze=>{B&&B(ze),ye!=null&&ye.onClick&&ye.onClick(ze)}})),className:Je(Ke==null?void 0:Ke.className,d==null?void 0:d.className,ge==null?void 0:ge.backdrop),ownerState:ce});return!R&&!U&&(!G||ve)?null:N.jsx(OY,{ref:j,container:b,disablePortal:w,children:N.jsxs(xe,L({},Me,{children:[!P&&c?N.jsx(Ne,L({},Ye)):null,N.jsx(uY,{disableEnforceFocus:k,disableAutoFocus:S,disableRestoreFocus:E,isEnabled:se,open:U,children:I.cloneElement(m,ue)})]}))})}),kg=X0e;function K0e(e){return At("MuiDialog",e)}const Rb=_t("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),J0e=I.createContext({}),ebe=J0e,tbe=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],nbe=Se(Ak,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),rbe=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e,a={root:["root"],container:["container",`scroll${nt(n)}`],paper:["paper",`paperScroll${nt(n)}`,`paperWidth${nt(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return kt(a,K0e,t)},ibe=Se(kg,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),obe=Se("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${nt(n.scroll)}`]]}})(({ownerState:e})=>L({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),abe=Se(la,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${nt(n.scroll)}`],t[`paperWidth${nt(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>L({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Rb.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Rb.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Rb.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),sbe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDialog"}),i=ci(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,BackdropComponent:l,BackdropProps:u,children:c,className:d,disableEscapeKeyDown:p=!1,fullScreen:h=!1,fullWidth:m=!1,maxWidth:b="sm",onBackdropClick:O,onClose:y,open:v,PaperComponent:S=la,PaperProps:k={},scroll:C="paper",TransitionComponent:w=wg,transitionDuration:E=o,TransitionProps:$}=r,P=Ge(r,tbe),R=L({},r,{disableEscapeKeyDown:p,fullScreen:h,fullWidth:m,maxWidth:b,scroll:C}),B=rbe(R),U=I.useRef(),V=q=>{U.current=q.target===q.currentTarget},z=q=>{U.current&&(U.current=null,O&&O(q),y&&y(q,"backdropClick"))},W=$l(s),X=I.useMemo(()=>({titleId:W}),[W]);return N.jsx(ibe,L({className:Je(B.root,d),closeAfterTransition:!0,components:{Backdrop:nbe},componentsProps:{backdrop:L({transitionDuration:E,as:l},u)},disableEscapeKeyDown:p,onClose:y,open:v,ref:n,onClick:z,ownerState:R},P,{children:N.jsx(w,L({appear:!0,in:v,timeout:E,role:"presentation"},$,{children:N.jsx(obe,{className:Je(B.container),onMouseDown:V,ownerState:R,children:N.jsx(abe,L({as:S,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":W},k,{className:Je(B.paper,k.className),ownerState:R,children:N.jsx(ebe.Provider,{value:X,children:c})}))})}))}))}),lbe=sbe;function ube(e){return At("MuiDialogActions",e)}_t("MuiDialogActions",["root","spacing"]);const cbe=["className","disableSpacing"],dbe=e=>{const{classes:t,disableSpacing:n}=e;return kt({root:["root",!n&&"spacing"]},ube,t)},fbe=Se("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>L({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),pbe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1}=r,a=Ge(r,cbe),s=L({},r,{disableSpacing:o}),l=dbe(s);return N.jsx(fbe,L({className:Je(l.root,i),ownerState:s,ref:n},a))}),hbe=pbe;function mbe(e){return At("MuiDialogContent",e)}_t("MuiDialogContent",["root","dividers"]);const gbe=_t("MuiDialogTitle",["root"]),bbe=gbe,ybe=["className","dividers"],Obe=e=>{const{classes:t,dividers:n}=e;return kt({root:["root",n&&"dividers"]},mbe,t)},vbe=Se("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>L({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${bbe.root} + &`]:{paddingTop:0}})),Ebe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDialogContent"}),{className:i,dividers:o=!1}=r,a=Ge(r,ybe),s=L({},r,{dividers:o}),l=Obe(s);return N.jsx(vbe,L({className:Je(l.root,i),ownerState:s,ref:n},a))}),Sbe=Ebe;function Tbe(e){return At("MuiDivider",e)}const wbe=_t("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),A8=wbe,kbe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],xbe=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e;return kt({root:["root",t&&"absolute",l,o&&"light",a==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},Tbe,r)},Cbe=Se("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})=>L({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)`:cn(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})=>L({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>L({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>L({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>L({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Abe=Se("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>L({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)`})),AY=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDivider"}),{absolute:i=!1,children:o,className:a,component:s=o?"div":"hr",flexItem:l=!1,light:u=!1,orientation:c="horizontal",role:d=s!=="hr"?"separator":void 0,textAlign:p="center",variant:h="fullWidth"}=r,m=Ge(r,kbe),b=L({},r,{absolute:i,component:s,flexItem:l,light:u,orientation:c,role:d,textAlign:p,variant:h}),O=xbe(b);return N.jsx(Cbe,L({as:s,className:Je(O.root,a),role:d,ref:n,ownerState:b},m,{children:o?N.jsx(Abe,{className:O.wrapper,ownerState:b,children:o}):null}))});AY.muiSkipListHighlight=!0;const uc=AY,_be=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Rbe(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),o=Js(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const u=o.getComputedStyle(t);a=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let s=0,l=0;if(a&&a!=="none"&&typeof a=="string"){const u=a.split("(")[1].split(")")[0].split(",");s=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?i?`translateX(${i.right+s-r.left}px)`:`translateX(${o.innerWidth+s-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${o.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function Ibe(e){return typeof e=="function"?e():e}function Av(e,t,n){const r=Ibe(n),i=Rbe(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const Dbe=I.forwardRef(function(t,n){const r=ci(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,container:u,direction:c="down",easing:d=i,in:p,onEnter:h,onEntered:m,onEntering:b,onExit:O,onExited:y,onExiting:v,style:S,timeout:k=o,TransitionComponent:C=Q1}=t,w=Ge(t,_be),E=I.useRef(null),$=yn(l.ref,E,n),P=Y=>Z=>{Y&&(Z===void 0?Y(E.current):Y(E.current,Z))},R=P((Y,Z)=>{Av(c,Y,u),LN(Y),h&&h(Y,Z)}),B=P((Y,Z)=>{const j=Hd({timeout:k,style:S,easing:d},{mode:"enter"});Y.style.webkitTransition=r.transitions.create("-webkit-transform",L({},j)),Y.style.transition=r.transitions.create("transform",L({},j)),Y.style.webkitTransform="none",Y.style.transform="none",b&&b(Y,Z)}),U=P(m),V=P(v),z=P(Y=>{const Z=Hd({timeout:k,style:S,easing:d},{mode:"exit"});Y.style.webkitTransition=r.transitions.create("-webkit-transform",Z),Y.style.transition=r.transitions.create("transform",Z),Av(c,Y,u),O&&O(Y)}),W=P(Y=>{Y.style.webkitTransition="",Y.style.transition="",y&&y(Y)}),X=Y=>{a&&a(E.current,Y)},q=I.useCallback(()=>{E.current&&Av(c,E.current,u)},[c,u]);return I.useEffect(()=>{if(p||c==="down"||c==="right")return;const Y=Sg(()=>{E.current&&Av(c,E.current,u)}),Z=Js(E.current);return Z.addEventListener("resize",Y),()=>{Y.clear(),Z.removeEventListener("resize",Y)}},[c,p,u]),I.useEffect(()=>{p||q()},[p,q]),N.jsx(C,L({nodeRef:E,onEnter:R,onEntered:U,onEntering:B,onExit:z,onExited:W,onExiting:V,addEndListener:X,appear:s,in:p,timeout:k},w,{children:(Y,Z)=>I.cloneElement(l,L({ref:$,style:L({visibility:Y==="exited"&&!p?"hidden":void 0},S,l.props.style)},Z))}))}),_Y=Dbe;function Nbe(e){return At("MuiDrawer",e)}_t("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Pbe=["BackdropProps"],Lbe=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],RY=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},Mbe=e=>{const{classes:t,anchor:n,variant:r}=e,i={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${nt(n)}`,r!=="temporary"&&`paperAnchorDocked${nt(n)}`]};return kt(i,Nbe,t)},$be=Se(kg,{name:"MuiDrawer",slot:"Root",overridesResolver:RY})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),_8=Se("div",{shouldForwardProp:Ji,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:RY})({flex:"0 0 auto"}),Fbe=Se(la,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${nt(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${nt(n.anchor)}`]]}})(({theme:e,ownerState:t})=>L({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),IY={left:"right",right:"left",top:"down",bottom:"up"};function Bbe(e){return["left","right"].indexOf(e)!==-1}function Ube(e,t){return e.direction==="rtl"&&Bbe(t)?IY[t]:t}const jbe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDrawer"}),i=ci(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:s,children:l,className:u,elevation:c=16,hideBackdrop:d=!1,ModalProps:{BackdropProps:p}={},onClose:h,open:m=!1,PaperProps:b={},SlideProps:O,TransitionComponent:y=_Y,transitionDuration:v=o,variant:S="temporary"}=r,k=Ge(r.ModalProps,Pbe),C=Ge(r,Lbe),w=I.useRef(!1);I.useEffect(()=>{w.current=!0},[]);const E=Ube(i,a),P=L({},r,{anchor:a,elevation:c,open:m,variant:S},C),R=Mbe(P),B=N.jsx(Fbe,L({elevation:S==="temporary"?c:0,square:!0},b,{className:Je(R.paper,b.className),ownerState:P,children:l}));if(S==="permanent")return N.jsx(_8,L({className:Je(R.root,R.docked,u),ownerState:P,ref:n},C,{children:B}));const U=N.jsx(y,L({in:m,direction:IY[E],timeout:v,appear:w.current},O,{children:B}));return S==="persistent"?N.jsx(_8,L({className:Je(R.root,R.docked,u),ownerState:P,ref:n},C,{children:U})):N.jsx($be,L({BackdropProps:L({},s,p,{transitionDuration:v}),className:Je(R.root,R.modal,u),open:m,ownerState:P,onClose:h,hideBackdrop:d,ref:n},C,k,{children:U}))}),zbe=jbe,Vbe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Hbe=e=>{const{classes:t,disableUnderline:n}=e,i=kt({root:["root",!n&&"underline"],input:["input"]},Yme,t);return L({},t,i)},Wbe=Se(xk,{shouldForwardProp:e=>Ji(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...wk(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)",o=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return L({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,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:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${es.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${es.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!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"},[`&.${es.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${es.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(.${es.disabled}, .${es.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${es.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&L({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}))}),Qbe=Se(Ck,{name:"MuiFilledInput",slot:"Input",overridesResolver:kk})(({theme:e,ownerState:t})=>L({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})),DY=I.forwardRef(function(t,n){var r,i,o,a;const s=gt({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:h,slots:m={},type:b="text"}=s,O=Ge(s,Vbe),y=L({},s,{fullWidth:c,inputComponent:d,multiline:p,type:b}),v=Hbe(s),S={root:{ownerState:y},input:{ownerState:y}},k=h??u?Mo(S,h??u):S,C=(r=(i=m.root)!=null?i:l.Root)!=null?r:Wbe,w=(o=(a=m.input)!=null?a:l.Input)!=null?o:Qbe;return N.jsx(HN,L({slots:{root:C,input:w},componentsProps:k,fullWidth:c,inputComponent:d,multiline:p,ref:n,type:b},O,{classes:v}))});DY.muiName="Input";const NY=DY;function Ybe(e){return At("MuiFormControl",e)}_t("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Gbe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],qbe=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${nt(n)}`,r&&"fullWidth"]};return kt(i,Ybe,t)},Zbe=Se("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>L({},t.root,t[`margin${nt(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>L({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%"})),Xbe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiFormControl"}),{children:i,className:o,color:a="primary",component:s="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:d=!1,hiddenLabel:p=!1,margin:h="none",required:m=!1,size:b="medium",variant:O="outlined"}=r,y=Ge(r,Gbe),v=L({},r,{color:a,component:s,disabled:l,error:u,fullWidth:d,hiddenLabel:p,margin:h,required:m,size:b,variant:O}),S=qbe(v),[k,C]=I.useState(()=>{let V=!1;return i&&I.Children.forEach(i,z=>{if(!Tb(z,["Input","Select"]))return;const W=Tb(z,["Select"])?z.props.input:z;W&&Mme(W.props)&&(V=!0)}),V}),[w,E]=I.useState(()=>{let V=!1;return i&&I.Children.forEach(i,z=>{Tb(z,["Input","Select"])&&(oT(z.props,!0)||oT(z.props.inputProps,!0))&&(V=!0)}),V}),[$,P]=I.useState(!1);l&&$&&P(!1);const R=c!==void 0&&!l?c:$;let B;const U=I.useMemo(()=>({adornedStart:k,setAdornedStart:C,color:a,disabled:l,error:u,filled:w,focused:R,fullWidth:d,hiddenLabel:p,size:b,onBlur:()=>{P(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{P(!0)},registerEffect:B,required:m,variant:O}),[k,a,l,u,w,R,d,p,B,m,b,O]);return N.jsx(Tk.Provider,{value:U,children:N.jsx(Zbe,L({as:s,ownerState:v,className:Je(S.root,o),ref:n},y,{children:i}))})}),Rc=Xbe,Kbe=Pde({createStyledComponent:Se("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>gt({props:e,name:"MuiStack"})}),yr=Kbe;function Jbe(e){return At("MuiFormControlLabel",e)}const eye=_t("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),rb=eye,tye=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],nye=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:o}=e,a={root:["root",n&&"disabled",`labelPlacement${nt(r)}`,i&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return kt(a,Jbe,t)},rye=Se("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${rb.label}`]:t.label},t.root,t[`labelPlacement${nt(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>L({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${rb.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},{[`& .${rb.label}`]:{[`&.${rb.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),iye=Se("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${rb.error}`]:{color:(e.vars||e).palette.error.main}})),oye=I.forwardRef(function(t,n){var r,i;const o=gt({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:l,disabled:u,disableTypography:c,label:d,labelPlacement:p="end",required:h,slotProps:m={}}=o,b=Ge(o,tye),O=Du(),y=(r=u??l.props.disabled)!=null?r:O==null?void 0:O.disabled,v=h??l.props.required,S={disabled:y,required:v};["checked","name","onChange","value","inputRef"].forEach(P=>{typeof l.props[P]>"u"&&typeof o[P]<"u"&&(S[P]=o[P])});const k=sf({props:o,muiFormControl:O,states:["error"]}),C=L({},o,{disabled:y,labelPlacement:p,required:v,error:k.error}),w=nye(C),E=(i=m.typography)!=null?i:s.typography;let $=d;return $!=null&&$.type!==dr&&!c&&($=N.jsx(dr,L({component:"span"},E,{className:Je(w.label,E==null?void 0:E.className),children:$}))),N.jsxs(rye,L({className:Je(w.root,a),ownerState:C,ref:n},b,{children:[I.cloneElement(l,S),v?N.jsxs(yr,{display:"block",children:[$,N.jsxs(iye,{ownerState:C,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]}):$]}))}),_y=oye;function aye(e){return At("MuiFormGroup",e)}_t("MuiFormGroup",["root","row","error"]);const sye=["className","row"],lye=e=>{const{classes:t,row:n,error:r}=e;return kt({root:["root",n&&"row",r&&"error"]},aye,t)},uye=Se("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>L({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),cye=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiFormGroup"}),{className:i,row:o=!1}=r,a=Ge(r,sye),s=Du(),l=sf({props:r,muiFormControl:s,states:["error"]}),u=L({},r,{row:o,error:l.error}),c=lye(u);return N.jsx(uye,L({className:Je(c.root,i),ownerState:u,ref:n},a))}),QN=cye;function dye(e){return At("MuiFormHelperText",e)}const fye=_t("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),R8=fye;var I8;const pye=["children","className","component","disabled","error","filled","focused","margin","required","variant"],hye=e=>{const{classes:t,contained:n,size:r,disabled:i,error:o,filled:a,focused:s,required:l}=e,u={root:["root",i&&"disabled",o&&"error",r&&`size${nt(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return kt(u,dye,t)},mye=Se("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${nt(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>L({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${R8.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${R8.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),gye=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiFormHelperText"}),{children:i,className:o,component:a="p"}=r,s=Ge(r,pye),l=Du(),u=sf({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=L({},r,{component:a,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}),d=hye(c);return N.jsx(mye,L({as:a,ownerState:c,className:Je(d.root,o),ref:n},s,{children:i===" "?I8||(I8=N.jsx("span",{className:"notranslate",children:"​"})):i}))}),xg=gye;function bye(e){return At("MuiFormLabel",e)}const Ib=_t("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),yye=["children","className","color","component","disabled","error","filled","focused","required"],Oye=e=>{const{classes:t,color:n,focused:r,disabled:i,error:o,filled:a,required:s}=e,l={root:["root",`color${nt(n)}`,i&&"disabled",o&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]};return kt(l,bye,t)},vye=Se("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>L({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>L({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Ib.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Ib.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ib.error}`]:{color:(e.vars||e).palette.error.main}})),Eye=Se("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ib.error}`]:{color:(e.vars||e).palette.error.main}})),Sye=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiFormLabel"}),{children:i,className:o,component:a="label"}=r,s=Ge(r,yye),l=Du(),u=sf({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=L({},r,{color:u.color||"primary",component:a,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=Oye(c);return N.jsxs(vye,L({as:a,ownerState:c,className:Je(d.root,o),ref:n},s,{children:[i,u.required&&N.jsxs(Eye,{ownerState:c,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),Ik=Sye,Tye=I.createContext(),D8=Tye;function wye(e){return At("MuiGrid",e)}const kye=[0,1,2,3,4,5,6,7,8,9,10],xye=["column-reverse","column","row-reverse","row"],Cye=["nowrap","wrap-reverse","wrap"],O0=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Ry=_t("MuiGrid",["root","container","item","zeroMinWidth",...kye.map(e=>`spacing-xs-${e}`),...xye.map(e=>`direction-xs-${e}`),...Cye.map(e=>`wrap-xs-${e}`),...O0.map(e=>`grid-xs-${e}`),...O0.map(e=>`grid-sm-${e}`),...O0.map(e=>`grid-md-${e}`),...O0.map(e=>`grid-lg-${e}`),...O0.map(e=>`grid-xl-${e}`)]),Aye=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function um(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function _ye({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,i)=>{let o={};if(t[i]&&(n=t[i]),!n)return r;if(n===!0)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=op({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof a=="object"?a[i]:a;if(s==null)return r;const l=`${Math.round(n/s*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const c=e.spacing(t.columnSpacing);if(c!=="0px"){const d=`calc(${l} + ${um(c)})`;u={flexBasis:d,maxWidth:d}}}o=L({flexBasis:l,flexGrow:0,maxWidth:l},u)}return e.breakpoints.values[i]===0?Object.assign(r,o):r[e.breakpoints.up(i)]=o,r},{})}function Rye({theme:e,ownerState:t}){const n=op({values:t.direction,breakpoints:e.breakpoints.values});return Da({theme:e},n,r=>{const i={flexDirection:r};return r.indexOf("column")===0&&(i[`& > .${Ry.item}`]={maxWidth:"none"}),i})}function PY({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(i=>{n===""&&t[i]!==0&&(n=i)});const r=Object.keys(e).sort((i,o)=>e[i]-e[o]);return r.slice(0,r.indexOf(n))}function Iye({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let i={};if(n&&r!==0){const o=op({values:r,breakpoints:e.breakpoints.values});let a;typeof o=="object"&&(a=PY({breakpoints:e.breakpoints.values,values:o})),i=Da({theme:e},o,(s,l)=>{var u;const c=e.spacing(s);return c!=="0px"?{marginTop:`-${um(c)}`,[`& > .${Ry.item}`]:{paddingTop:um(c)}}:(u=a)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${Ry.item}`]:{paddingTop:0}}})}return i}function Dye({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let i={};if(n&&r!==0){const o=op({values:r,breakpoints:e.breakpoints.values});let a;typeof o=="object"&&(a=PY({breakpoints:e.breakpoints.values,values:o})),i=Da({theme:e},o,(s,l)=>{var u;const c=e.spacing(s);return c!=="0px"?{width:`calc(100% + ${um(c)})`,marginLeft:`-${um(c)}`,[`& > .${Ry.item}`]:{paddingLeft:um(c)}}:(u=a)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${Ry.item}`]:{paddingLeft:0}}})}return i}function Nye(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 o=e[i];Number(o)>0&&r.push(n[`spacing-${i}-${String(o)}`])}),r}const Pye=Se("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:i,item:o,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:u}=n;let c=[];r&&(c=Nye(a,u,t));const d=[];return u.forEach(p=>{const h=n[p];h&&d.push(t[`grid-${p}-${String(h)}`])}),[t.root,r&&t.container,o&&t.item,l&&t.zeroMinWidth,...c,i!=="row"&&t[`direction-xs-${String(i)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...d]}})(({ownerState:e})=>L({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}),Rye,Iye,Dye,_ye);function Lye(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 o=`spacing-${r}-${String(i)}`;n.push(o)}}),n}const Mye=e=>{const{classes:t,container:n,direction:r,item:i,spacing:o,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let u=[];n&&(u=Lye(o,l));const c=[];l.forEach(p=>{const h=e[p];h&&c.push(`grid-${p}-${String(h)}`)});const d={root:["root",n&&"container",i&&"item",s&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,a!=="wrap"&&`wrap-xs-${String(a)}`,...c]};return kt(d,wye,t)},$ye=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiGrid"}),{breakpoints:i}=ci(),o=gk(r),{className:a,columns:s,columnSpacing:l,component:u="div",container:c=!1,direction:d="row",item:p=!1,rowSpacing:h,spacing:m=0,wrap:b="wrap",zeroMinWidth:O=!1}=o,y=Ge(o,Aye),v=h||m,S=l||m,k=I.useContext(D8),C=c?s||12:k,w={},E=L({},y);i.keys.forEach(R=>{y[R]!=null&&(w[R]=y[R],delete E[R])});const $=L({},o,{columns:C,container:c,direction:d,item:p,rowSpacing:v,columnSpacing:S,wrap:b,zeroMinWidth:O,spacing:m},w,{breakpoints:i.keys}),P=Mye($);return N.jsx(D8.Provider,{value:C,children:N.jsx(Pye,L({ownerState:$,className:Je(P.root,a),as:u,ref:n},E))})}),Hh=$ye,Fye=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function j_(e){return`scale(${e}, ${e**2})`}const Bye={entering:{opacity:1,transform:j_(1)},entered:{opacity:1,transform:"none"}},WC=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),LY=I.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:o,easing:a,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:h,style:m,timeout:b="auto",TransitionComponent:O=Q1}=t,y=Ge(t,Fye),v=I.useRef(),S=I.useRef(),k=ci(),C=I.useRef(null),w=yn(C,o.ref,n),E=W=>X=>{if(W){const q=C.current;X===void 0?W(q):W(q,X)}},$=E(c),P=E((W,X)=>{LN(W);const{duration:q,delay:Y,easing:Z}=Hd({style:m,timeout:b,easing:a},{mode:"enter"});let j;b==="auto"?(j=k.transitions.getAutoHeightDuration(W.clientHeight),S.current=j):j=q,W.style.transition=[k.transitions.create("opacity",{duration:j,delay:Y}),k.transitions.create("transform",{duration:WC?j:j*.666,delay:Y,easing:Z})].join(","),l&&l(W,X)}),R=E(u),B=E(h),U=E(W=>{const{duration:X,delay:q,easing:Y}=Hd({style:m,timeout:b,easing:a},{mode:"exit"});let Z;b==="auto"?(Z=k.transitions.getAutoHeightDuration(W.clientHeight),S.current=Z):Z=X,W.style.transition=[k.transitions.create("opacity",{duration:Z,delay:q}),k.transitions.create("transform",{duration:WC?Z:Z*.666,delay:WC?q:q||Z*.333,easing:Y})].join(","),W.style.opacity=0,W.style.transform=j_(.75),d&&d(W)}),V=E(p),z=W=>{b==="auto"&&(v.current=setTimeout(W,S.current||0)),r&&r(C.current,W)};return I.useEffect(()=>()=>{clearTimeout(v.current)},[]),N.jsx(O,L({appear:i,in:s,nodeRef:C,onEnter:P,onEntered:R,onEntering:$,onExit:U,onExited:V,onExiting:B,addEndListener:z,timeout:b==="auto"?null:b},y,{children:(W,X)=>I.cloneElement(o,L({style:L({opacity:0,transform:j_(.75),visibility:W==="exited"&&!s?"hidden":void 0},Bye[W],m,o.props.style),ref:w},X))}))});LY.muiSupportAuto=!0;const aT=LY;function Uye(e,t,n,r,i){const[o,a]=I.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return Jr(()=>{let s=!0;if(!n)return;const l=n(e),u=()=>{s&&a(l.matches)};return u(),l.addListener(u),()=>{s=!1,l.removeListener(u)}},[e,n]),o}const MY=I.useSyncExternalStore;function jye(e,t,n,r,i){const o=I.useCallback(()=>t,[t]),a=I.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:c}=r(e);return()=>c}return o},[o,e,r,i,n]),[s,l]=I.useMemo(()=>{if(n===null)return[o,()=>()=>{}];const c=n(e);return[()=>c.matches,d=>(c.addListener(d),()=>{c.removeListener(d)})]},[o,n,e]);return MY(l,s,a)}function Cg(e,t={}){const n=mk(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:o=r?window.matchMedia:null,ssrMatchMedia:a=null,noSsr:s=!1}=tY({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(MY!==void 0?jye:Uye)(l,i,o,a,s)}const zye=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Vye=e=>{const{classes:t,disableUnderline:n}=e,i=kt({root:["root",!n&&"underline"],input:["input"]},Vme,t);return L({},t,i)},Hye=Se(xk,{shouldForwardProp:e=>Ji(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...wk(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})`),L({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"},[`&.${id.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${id.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(.${id.disabled}, .${id.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${id.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Wye=Se(Ck,{name:"MuiInput",slot:"Input",overridesResolver:kk})({}),$Y=I.forwardRef(function(t,n){var r,i,o,a;const s=gt({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:d=!1,inputComponent:p="input",multiline:h=!1,slotProps:m,slots:b={},type:O="text"}=s,y=Ge(s,zye),v=Vye(s),k={root:{ownerState:{disableUnderline:l}}},C=m??c?Mo(m??c,k):k,w=(r=(i=b.root)!=null?i:u.Root)!=null?r:Hye,E=(o=(a=b.input)!=null?a:u.Input)!=null?o:Wye;return N.jsx(HN,L({slots:{root:w,input:E},slotProps:C,fullWidth:d,inputComponent:p,multiline:h,ref:n,type:O},y,{classes:v}))});$Y.muiName="Input";const FY=$Y;function Qye(e){return At("MuiInputAdornment",e)}const Yye=_t("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),N8=Yye;var P8;const Gye=["children","className","component","disablePointerEvents","disableTypography","position","variant"],qye=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${nt(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},Zye=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:o,variant:a}=e,s={root:["root",n&&"disablePointerEvents",i&&`position${nt(i)}`,a,r&&"hiddenLabel",o&&`size${nt(o)}`]};return kt(s,Qye,t)},Xye=Se("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:qye})(({theme:e,ownerState:t})=>L({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${N8.positionStart}&:not(.${N8.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Kye=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiInputAdornment"}),{children:i,className:o,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:u,variant:c}=r,d=Ge(r,Gye),p=Du()||{};let h=c;c&&p.variant,p&&!h&&(h=p.variant);const m=L({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:u,variant:h}),b=Zye(m);return N.jsx(Tk.Provider,{value:null,children:N.jsx(Xye,L({as:a,ownerState:m,className:Je(b.root,o),ref:n},d,{children:typeof i=="string"&&!l?N.jsx(dr,{color:"text.secondary",children:i}):N.jsxs(I.Fragment,{children:[u==="start"?P8||(P8=N.jsx("span",{className:"notranslate",children:"​"})):null,i]})}))})}),YN=Kye;function Jye(e){return At("MuiInputLabel",e)}_t("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const e1e=["disableAnimation","margin","shrink","variant","className"],t1e=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:o,variant:a,required:s}=e,l={root:["root",n&&"formControl",!o&&"animated",i&&"shrink",r&&r!=="normal"&&`size${nt(r)}`,a],asterisk:[s&&"asterisk"]},u=kt(l,Jye,t);return L({},t,u)},n1e=Se(Ik,{shouldForwardProp:e=>Ji(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ib.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})=>L({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"&&L({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&&L({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"&&L({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)"}))),r1e=I.forwardRef(function(t,n){const r=gt({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:o,className:a}=r,s=Ge(r,e1e),l=Du();let u=o;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=sf({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),d=L({},r,{disableAnimation:i,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),p=t1e(d);return N.jsx(n1e,L({"data-shrink":u,ownerState:d,ref:n,className:Je(p.root,a)},s,{classes:p}))}),BY=r1e,i1e=I.createContext({}),Qs=i1e;function o1e(e){return At("MuiList",e)}_t("MuiList",["root","padding","dense","subheader"]);const a1e=["children","className","component","dense","disablePadding","subheader"],s1e=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return kt({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},o1e,t)},l1e=Se("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})=>L({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),u1e=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiList"}),{children:i,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=r,c=Ge(r,a1e),d=I.useMemo(()=>({dense:s}),[s]),p=L({},r,{component:a,dense:s,disablePadding:l}),h=s1e(p);return N.jsx(Qs.Provider,{value:d,children:N.jsxs(l1e,L({as:a,className:Je(h.root,o),ref:n,ownerState:p},c,{children:[u,i]}))})}),UY=u1e;function c1e(e){return At("MuiListItem",e)}const d1e=_t("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Eh=d1e;function f1e(e){return At("MuiListItemButton",e)}const p1e=_t("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Sh=p1e,h1e=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],m1e=(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]},g1e=e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:a,selected:s}=e,u=kt({root:["root",r&&"dense",!o&&"gutters",a&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",s&&"selected"]},f1e,n);return L({},n,u)},b1e=Se(hs,{shouldForwardProp:e=>Ji(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:m1e})(({theme:e,ownerState:t})=>L({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"}},[`&.${Sh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Sh.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Sh.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:cn(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})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Sh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Sh.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})),y1e=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:o=!1,component:a="div",children:s,dense:l=!1,disableGutters:u=!1,divider:c=!1,focusVisibleClassName:d,selected:p=!1,className:h}=r,m=Ge(r,h1e),b=I.useContext(Qs),O=I.useMemo(()=>({dense:l||b.dense||!1,alignItems:i,disableGutters:u}),[i,b.dense,l,u]),y=I.useRef(null);Jr(()=>{o&&y.current&&y.current.focus()},[o]);const v=L({},r,{alignItems:i,dense:O.dense,disableGutters:u,divider:c,selected:p}),S=g1e(v),k=yn(y,n);return N.jsx(Qs.Provider,{value:O,children:N.jsx(b1e,L({ref:k,href:m.href||m.to,component:(m.href||m.to)&&a==="div"?"button":a,focusVisibleClassName:Je(S.focusVisible,d),ownerState:v,className:Je(S.root,h)},m,{classes:S,children:s}))})}),QC=y1e;function O1e(e){return At("MuiListItemSecondaryAction",e)}_t("MuiListItemSecondaryAction",["root","disableGutters"]);const v1e=["className"],E1e=e=>{const{disableGutters:t,classes:n}=e;return kt({root:["root",t&&"disableGutters"]},O1e,n)},S1e=Se("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>L({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),jY=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=r,o=Ge(r,v1e),a=I.useContext(Qs),s=L({},r,{disableGutters:a.disableGutters}),l=E1e(s);return N.jsx(S1e,L({className:Je(l.root,i),ownerState:s,ref:n},o))});jY.muiName="ListItemSecondaryAction";const sT=jY,T1e=["className"],w1e=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],k1e=(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]},x1e=e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:o,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return kt({root:["root",i&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",o&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},c1e,r)},C1e=Se("div",{name:"MuiListItem",slot:"Root",overridesResolver:k1e})(({theme:e,ownerState:t})=>L({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&L({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Sh.root}`]:{paddingRight:48}},{[`&.${Eh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Eh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Eh.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Eh.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"}},[`&.${Eh.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:cn(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})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),A1e=Se("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),_1e=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:o=!1,button:a=!1,children:s,className:l,component:u,components:c={},componentsProps:d={},ContainerComponent:p="li",ContainerProps:{className:h}={},dense:m=!1,disabled:b=!1,disableGutters:O=!1,disablePadding:y=!1,divider:v=!1,focusVisibleClassName:S,secondaryAction:k,selected:C=!1,slotProps:w={},slots:E={}}=r,$=Ge(r.ContainerProps,T1e),P=Ge(r,w1e),R=I.useContext(Qs),B=I.useMemo(()=>({dense:m||R.dense||!1,alignItems:i,disableGutters:O}),[i,R.dense,m,O]),U=I.useRef(null);Jr(()=>{o&&U.current&&U.current.focus()},[o]);const V=I.Children.toArray(s),z=V.length&&Tb(V[V.length-1],["ListItemSecondaryAction"]),W=L({},r,{alignItems:i,autoFocus:o,button:a,dense:B.dense,disabled:b,disableGutters:O,disablePadding:y,divider:v,hasSecondaryAction:z,selected:C}),X=x1e(W),q=yn(U,n),Y=E.root||c.Root||C1e,Z=w.root||d.root||{},j=L({className:Je(X.root,Z.className,l),disabled:b},P);let se=u||"li";return a&&(j.component=u||"div",j.focusVisibleClassName=Je(Eh.focusVisible,S),se=hs),z?(se=!j.component&&!u?"div":se,p==="li"&&(se==="li"?se="div":j.component==="li"&&(j.component="div")),N.jsx(Qs.Provider,{value:B,children:N.jsxs(A1e,L({as:p,className:Je(X.container,h),ref:q,ownerState:W},$,{children:[N.jsx(Y,L({},Z,!ku(Y)&&{as:se,ownerState:L({},W,Z.ownerState)},j,{children:V})),V.pop()]}))})):N.jsx(Qs.Provider,{value:B,children:N.jsxs(Y,L({},Z,{as:se,ref:q},!ku(Y)&&{ownerState:L({},W,Z.ownerState)},j,{children:[V,k&&N.jsx(sT,{children:k})]}))})}),Th=_1e;function R1e(e){return At("MuiListItemAvatar",e)}_t("MuiListItemAvatar",["root","alignItemsFlexStart"]);const I1e=["className"],D1e=e=>{const{alignItems:t,classes:n}=e;return kt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},R1e,n)},N1e=Se("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>L({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),P1e=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiListItemAvatar"}),{className:i}=r,o=Ge(r,I1e),a=I.useContext(Qs),s=L({},r,{alignItems:a.alignItems}),l=D1e(s);return N.jsx(N1e,L({className:Je(l.root,i),ownerState:s,ref:n},o))}),L1e=P1e;function M1e(e){return At("MuiListItemIcon",e)}const $1e=_t("MuiListItemIcon",["root","alignItemsFlexStart"]),L8=$1e,F1e=["className"],B1e=e=>{const{alignItems:t,classes:n}=e;return kt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},M1e,n)},U1e=Se("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})=>L({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),j1e=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiListItemIcon"}),{className:i}=r,o=Ge(r,F1e),a=I.useContext(Qs),s=L({},r,{alignItems:a.alignItems}),l=B1e(s);return N.jsx(U1e,L({className:Je(l.root,i),ownerState:s,ref:n},o))}),GN=j1e;function z1e(e){return At("MuiListItemText",e)}const V1e=_t("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),lT=V1e,H1e=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],W1e=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return kt({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},z1e,t)},Q1e=Se("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${lT.primary}`]:t.primary},{[`& .${lT.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>L({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Y1e=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiListItemText"}),{children:i,className:o,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:d}=r,p=Ge(r,H1e),{dense:h}=I.useContext(Qs);let m=l??i,b=c;const O=L({},r,{disableTypography:a,inset:s,primary:!!m,secondary:!!b,dense:h}),y=W1e(O);return m!=null&&m.type!==dr&&!a&&(m=N.jsx(dr,L({variant:h?"body2":"body1",className:y.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:m}))),b!=null&&b.type!==dr&&!a&&(b=N.jsx(dr,L({variant:"body2",className:y.secondary,color:"text.secondary",display:"block"},d,{children:b}))),N.jsxs(Q1e,L({className:Je(y.root,o),ownerState:O,ref:n},p,{children:[m,b]}))}),sp=Y1e,G1e=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function YC(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function M8(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function zY(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 v0(e,t,n,r,i,o){let a=!1,s=i(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!zY(s,o)||l)s=i(e,s,n);else return s.focus(),!0}return!1}const q1e=I.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=t,p=Ge(t,G1e),h=I.useRef(null),m=I.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Jr(()=>{i&&h.current.focus()},[i]),I.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(S,k)=>{const C=!h.current.style.width;if(S.clientHeight{const k=h.current,C=S.key,w=Or(k).activeElement;if(C==="ArrowDown")S.preventDefault(),v0(k,w,u,l,YC);else if(C==="ArrowUp")S.preventDefault(),v0(k,w,u,l,M8);else if(C==="Home")S.preventDefault(),v0(k,null,u,l,YC);else if(C==="End")S.preventDefault(),v0(k,null,u,l,M8);else if(C.length===1){const E=m.current,$=C.toLowerCase(),P=performance.now();E.keys.length>0&&(P-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&$!==E.keys[0]&&(E.repeating=!1)),E.lastTime=P,E.keys.push($);const R=w&&!E.repeating&&zY(w,E);E.previousKeyMatched&&(R||v0(k,w,!1,l,YC,E))?S.preventDefault():E.previousKeyMatched=!1}c&&c(S)},O=yn(h,n);let y=-1;I.Children.forEach(a,(S,k)=>{if(!I.isValidElement(S)){y===k&&(y+=1,y>=a.length&&(y=-1));return}S.props.disabled||(d==="selectedMenu"&&S.props.selected||y===-1)&&(y=k),y===k&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(y+=1,y>=a.length&&(y=-1))});const v=I.Children.map(a,(S,k)=>{if(k===y){const C={};return o&&(C.autoFocus=!0),S.props.tabIndex===void 0&&d==="selectedMenu"&&(C.tabIndex=0),I.cloneElement(S,C)}return S});return N.jsx(UY,L({role:"menu",ref:O,className:s,onKeyDown:b,tabIndex:i?0:-1},p,{children:v}))}),Z1=q1e;function Z1e(e){return At("MuiPopover",e)}_t("MuiPopover",["root","paper"]);const X1e=["onEntering"],K1e=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],J1e=["slotProps"];function $8(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function F8(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function B8(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function GC(e){return typeof e=="function"?e():e}const eOe=e=>{const{classes:t}=e;return kt({root:["root"],paper:["paper"]},Z1e,t)},tOe=Se(kg,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),VY=Se(la,{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}),nOe=I.forwardRef(function(t,n){var r,i,o;const a=gt({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:h,container:m,elevation:b=8,marginThreshold:O=16,open:y,PaperProps:v={},slots:S,slotProps:k,transformOrigin:C={vertical:"top",horizontal:"left"},TransitionComponent:w=aT,transitionDuration:E="auto",TransitionProps:{onEntering:$}={},disableScrollLock:P=!1}=a,R=Ge(a.TransitionProps,X1e),B=Ge(a,K1e),U=(r=k==null?void 0:k.paper)!=null?r:v,V=I.useRef(),z=yn(V,U.ref),W=L({},a,{anchorOrigin:u,anchorReference:d,elevation:b,marginThreshold:O,externalPaperSlotProps:U,transformOrigin:C,TransitionComponent:w,transitionDuration:E,TransitionProps:R}),X=eOe(W),q=I.useCallback(()=>{if(d==="anchorPosition")return c;const ye=GC(l),$e=(ye&&ye.nodeType===1?ye:Or(V.current).body).getBoundingClientRect();return{top:$e.top+$8($e,u.vertical),left:$e.left+F8($e,u.horizontal)}},[l,u.horizontal,u.vertical,c,d]),Y=I.useCallback(ye=>({vertical:$8(ye,C.vertical),horizontal:F8(ye,C.horizontal)}),[C.horizontal,C.vertical]),Z=I.useCallback(ye=>{const ze={width:ye.offsetWidth,height:ye.offsetHeight},$e=Y(ze);if(d==="none")return{top:null,left:null,transformOrigin:B8($e)};const We=q();let dt=We.top-$e.vertical,Be=We.left-$e.horizontal;const re=dt+ze.height,ee=Be+ze.width,J=Js(GC(l)),Re=J.innerHeight-O,Le=J.innerWidth-O;if(O!==null&&dtRe){const De=re-Re;dt-=De,$e.vertical+=De}if(O!==null&&BeLe){const De=ee-Le;Be-=De,$e.horizontal+=De}return{top:`${Math.round(dt)}px`,left:`${Math.round(Be)}px`,transformOrigin:B8($e)}},[l,d,q,Y,O]),[j,se]=I.useState(y),ve=I.useCallback(()=>{const ye=V.current;if(!ye)return;const ze=Z(ye);ze.top!==null&&(ye.style.top=ze.top),ze.left!==null&&(ye.style.left=ze.left),ye.style.transformOrigin=ze.transformOrigin,se(!0)},[Z]);I.useEffect(()=>(P&&window.addEventListener("scroll",ve),()=>window.removeEventListener("scroll",ve)),[l,P,ve]);const G=(ye,ze)=>{$&&$(ye,ze),ve()},ce=()=>{se(!1)};I.useEffect(()=>{y&&ve()}),I.useImperativeHandle(s,()=>y?{updatePosition:()=>{ve()}}:null,[y,ve]),I.useEffect(()=>{if(!y)return;const ye=Sg(()=>{ve()}),ze=Js(l);return ze.addEventListener("resize",ye),()=>{ye.clear(),ze.removeEventListener("resize",ye)}},[l,y,ve]);let ge=E;E==="auto"&&!w.muiSupportAuto&&(ge=void 0);const ue=m||(l?Or(GC(l)).body:void 0),xe=(i=S==null?void 0:S.root)!=null?i:tOe,Ne=(o=S==null?void 0:S.paper)!=null?o:VY,Ve=kn({elementType:Ne,externalSlotProps:L({},U,{style:j?U.style:L({},U.style,{opacity:0})}),additionalProps:{elevation:b,ref:z},ownerState:W,className:Je(X.paper,U==null?void 0:U.className)}),Ke=kn({elementType:xe,externalSlotProps:(k==null?void 0:k.root)||{},externalForwardedProps:B,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:ue,open:y},ownerState:W,className:Je(X.root,h)}),{slotProps:Me}=Ke,Ye=Ge(Ke,J1e);return N.jsx(xe,L({},Ye,!ku(xe)&&{slotProps:Me,disableScrollLock:P},{children:N.jsx(w,L({appear:!0,in:y,onEntering:G,onExited:ce,timeout:ge},R,{children:N.jsx(Ne,L({},Ve,{children:p}))}))}))}),qN=nOe;function rOe(e){return At("MuiMenu",e)}_t("MuiMenu",["root","paper","list"]);const iOe=["onEntering"],oOe=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],aOe={vertical:"top",horizontal:"right"},sOe={vertical:"top",horizontal:"left"},lOe=e=>{const{classes:t}=e;return kt({root:["root"],paper:["paper"],list:["list"]},rOe,t)},uOe=Se(qN,{shouldForwardProp:e=>Ji(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),cOe=Se(VY,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),dOe=Se(Z1,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),fOe=I.forwardRef(function(t,n){var r,i;const o=gt({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:h={},PopoverClasses:m,transitionDuration:b="auto",TransitionProps:{onEntering:O}={},variant:y="selectedMenu",slots:v={},slotProps:S={}}=o,k=Ge(o.TransitionProps,iOe),C=Ge(o,oOe),w=ci(),E=w.direction==="rtl",$=L({},o,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:O,PaperProps:h,transitionDuration:b,TransitionProps:k,variant:y}),P=lOe($),R=a&&!u&&p,B=I.useRef(null),U=(Z,j)=>{B.current&&B.current.adjustStyleForScrollbar(Z,w),O&&O(Z,j)},V=Z=>{Z.key==="Tab"&&(Z.preventDefault(),d&&d(Z,"tabKeyDown"))};let z=-1;I.Children.map(s,(Z,j)=>{I.isValidElement(Z)&&(Z.props.disabled||(y==="selectedMenu"&&Z.props.selected||z===-1)&&(z=j))});const W=(r=v.paper)!=null?r:cOe,X=(i=S.paper)!=null?i:h,q=kn({elementType:v.root,externalSlotProps:S.root,ownerState:$,className:[P.root,l]}),Y=kn({elementType:W,externalSlotProps:X,ownerState:$,className:P.paper});return N.jsx(uOe,L({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?aOe:sOe,slots:{paper:W,root:v.root},slotProps:{root:q,paper:Y},open:p,ref:n,transitionDuration:b,TransitionProps:L({onEntering:U},k),ownerState:$},C,{classes:m,children:N.jsx(dOe,L({onKeyDown:V,actions:B,autoFocus:a&&(z===-1||u),autoFocusItem:R,variant:y},c,{className:Je(P.list,c.className),children:s}))}))}),pOe=fOe;function hOe(e){return At("MuiMenuItem",e)}const mOe=_t("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),E0=mOe,gOe=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],bOe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},yOe=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:a}=e,l=kt({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},hOe,a);return L({},a,l)},OOe=Se(hs,{shouldForwardProp:e=>Ji(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:bOe})(({theme:e,ownerState:t})=>L({},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"}},[`&.${E0.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${E0.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${E0.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:cn(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})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${E0.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${E0.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${A8.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${A8.inset}`]:{marginLeft:52},[`& .${lT.root}`]:{marginTop:0,marginBottom:0},[`& .${lT.inset}`]:{paddingLeft:36},[`& .${L8.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&L({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${L8.root} svg`]:{fontSize:"1.25rem"}}))),vOe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:o="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:p}=r,h=Ge(r,gOe),m=I.useContext(Qs),b=I.useMemo(()=>({dense:a||m.dense||!1,disableGutters:l}),[m.dense,a,l]),O=I.useRef(null);Jr(()=>{i&&O.current&&O.current.focus()},[i]);const y=L({},r,{dense:b.dense,divider:s,disableGutters:l}),v=yOe(r),S=yn(O,n);let k;return r.disabled||(k=d!==void 0?d:-1),N.jsx(Qs.Provider,{value:b,children:N.jsx(OOe,L({ref:S,role:c,tabIndex:k,component:o,focusVisibleClassName:Je(v.focusVisible,u),className:Je(v.root,p)},h,{ownerState:y,classes:v}))})}),yp=vOe;function EOe(e){return At("MuiNativeSelect",e)}const SOe=_t("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),ZN=SOe,TOe=["className","disabled","error","IconComponent","inputRef","variant"],wOe=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e,s={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${nt(n)}`,o&&"iconOpen",r&&"disabled"]};return kt(s,EOe,t)},HY=({ownerState:e,theme:t})=>L({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":L({},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"},[`&.${ZN.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}}),kOe=Se("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ji,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${ZN.multiple}`]:t.multiple}]}})(HY),WY=({ownerState:e,theme:t})=>L({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${ZN.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),xOe=Se("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${nt(n.variant)}`],n.open&&t.iconOpen]}})(WY),COe=I.forwardRef(function(t,n){const{className:r,disabled:i,error:o,IconComponent:a,inputRef:s,variant:l="standard"}=t,u=Ge(t,TOe),c=L({},t,{disabled:i,variant:l,error:o}),d=wOe(c);return N.jsxs(I.Fragment,{children:[N.jsx(kOe,L({ownerState:c,className:Je(d.select,r),disabled:i,ref:s||n},u)),t.multiple?null:N.jsx(xOe,{as:a,ownerState:c,className:d.icon})]})}),AOe=COe;var U8;const _Oe=["children","classes","className","label","notched"],ROe=Se("fieldset",{shouldForwardProp:Ji})({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%"}),IOe=Se("legend",{shouldForwardProp:Ji})(({ownerState:e,theme:t})=>L({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&&L({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 DOe(e){const{className:t,label:n,notched:r}=e,i=Ge(e,_Oe),o=n!=null&&n!=="",a=L({},e,{notched:r,withLabel:o});return N.jsx(ROe,L({"aria-hidden":!0,className:t,ownerState:a},i,{children:N.jsx(IOe,{ownerState:a,children:o?N.jsx("span",{children:n}):U8||(U8=N.jsx("span",{className:"notranslate",children:"​"}))})}))}const NOe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],POe=e=>{const{classes:t}=e,r=kt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Wme,t);return L({},t,r)},LOe=Se(xk,{shouldForwardProp:e=>Ji(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:wk})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return L({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ru.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ru.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${ru.focused} .${ru.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ru.error} .${ru.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ru.disabled} .${ru.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&L({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),MOe=Se(DOe,{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}}),$Oe=Se(Ck,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:kk})(({theme:e,ownerState:t})=>L({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})),QY=I.forwardRef(function(t,n){var r,i,o,a,s;const l=gt({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:p,multiline:h=!1,notched:m,slots:b={},type:O="text"}=l,y=Ge(l,NOe),v=POe(l),S=Du(),k=sf({props:l,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),C=L({},l,{color:k.color||"primary",disabled:k.disabled,error:k.error,focused:k.focused,formControl:S,fullWidth:c,hiddenLabel:k.hiddenLabel,multiline:h,size:k.size,type:O}),w=(r=(i=b.root)!=null?i:u.Root)!=null?r:LOe,E=(o=(a=b.input)!=null?a:u.Input)!=null?o:$Oe;return N.jsx(HN,L({slots:{root:w,input:E},renderSuffix:$=>N.jsx(MOe,{ownerState:C,className:v.notchedOutline,label:p!=null&&p!==""&&k.required?s||(s=N.jsxs(I.Fragment,{children:[p," ","*"]})):p,notched:typeof m<"u"?m:!!($.startAdornment||$.filled||$.focused)}),fullWidth:c,inputComponent:d,multiline:h,ref:n,type:O},y,{classes:L({},v,{notchedOutline:null})}))});QY.muiName="Input";const YY=QY,FOe=ki(N.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"),BOe=ki(N.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"),UOe=Se("span",{shouldForwardProp:Ji})({position:"relative",display:"flex"}),jOe=Se(FOe)({transform:"scale(1)"}),zOe=Se(BOe)(({theme:e,ownerState:t})=>L({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 GY(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i=L({},e,{checked:t});return N.jsxs(UOe,{className:n.root,ownerState:i,children:[N.jsx(jOe,{fontSize:r,className:n.background,ownerState:i}),N.jsx(zOe,{fontSize:r,className:n.dot,ownerState:i})]})}const VOe=I.createContext(void 0),qY=VOe;function HOe(){return I.useContext(qY)}function WOe(e){return At("MuiRadio",e)}const j8=_t("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),QOe=["checked","checkedIcon","color","icon","name","onChange","size","className"],YOe=e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${nt(n)}`,r!=="medium"&&`size${nt(r)}`]};return L({},t,kt(i,WOe,t))},GOe=Se(WN,{shouldForwardProp:e=>Ji(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${nt(n.size)}`],t[`color${nt(n.color)}`]]}})(({theme:e,ownerState:t})=>L({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})`:cn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${j8.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${j8.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function qOe(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const z8=N.jsx(GY,{checked:!0}),V8=N.jsx(GY,{}),ZOe=I.forwardRef(function(t,n){var r,i;const o=gt({props:t,name:"MuiRadio"}),{checked:a,checkedIcon:s=z8,color:l="primary",icon:u=V8,name:c,onChange:d,size:p="medium",className:h}=o,m=Ge(o,QOe),b=L({},o,{color:l,size:p}),O=YOe(b),y=HOe();let v=a;const S=KS(d,y&&y.onChange);let k=c;return y&&(typeof v>"u"&&(v=qOe(y.value,o.value)),typeof k>"u"&&(k=y.name)),N.jsx(GOe,L({type:"radio",icon:I.cloneElement(u,{fontSize:(r=V8.props.fontSize)!=null?r:p}),checkedIcon:I.cloneElement(s,{fontSize:(i=z8.props.fontSize)!=null?i:p}),ownerState:b,classes:O,name:k,checked:v,onChange:S,ref:n,className:Je(O.root,h)},m))}),H8=ZOe,XOe=["actions","children","defaultValue","name","onChange","value"],KOe=I.forwardRef(function(t,n){const{actions:r,children:i,defaultValue:o,name:a,onChange:s,value:l}=t,u=Ge(t,XOe),c=I.useRef(null),[d,p]=Xi({controlled:l,default:o,name:"RadioGroup"});I.useImperativeHandle(r,()=>({focus:()=>{let O=c.current.querySelector("input:not(:disabled):checked");O||(O=c.current.querySelector("input:not(:disabled)")),O&&O.focus()}}),[]);const h=yn(n,c),m=$l(a),b=I.useMemo(()=>({name:m,onChange(O){p(O.target.value),s&&s(O,O.target.value)},value:d}),[m,s,p,d]);return N.jsx(qY.Provider,{value:b,children:N.jsx(QN,L({role:"radiogroup",ref:h},u,{children:i}))})}),JOe=KOe;function eve(e){return At("MuiSelect",e)}const S0=_t("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var W8;const tve=["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"],nve=Se("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${S0.select}`]:t.select},{[`&.${S0.select}`]:t[n.variant]},{[`&.${S0.error}`]:t.error},{[`&.${S0.multiple}`]:t.multiple}]}})(HY,{[`&.${S0.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),rve=Se("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${nt(n.variant)}`],n.open&&t.iconOpen]}})(WY),ive=Se("input",{shouldForwardProp:e=>_N(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 Q8(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function ove(e){return e==null||typeof e=="string"&&!e.trim()}const ave=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e,s={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${nt(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return kt(s,eve,t)},sve=I.forwardRef(function(t,n){var r;const{"aria-describedby":i,"aria-label":o,autoFocus:a,autoWidth:s,children:l,className:u,defaultOpen:c,defaultValue:d,disabled:p,displayEmpty:h,error:m=!1,IconComponent:b,inputRef:O,labelId:y,MenuProps:v={},multiple:S,name:k,onBlur:C,onChange:w,onClose:E,onFocus:$,onOpen:P,open:R,readOnly:B,renderValue:U,SelectDisplayProps:V={},tabIndex:z,value:W,variant:X="standard"}=t,q=Ge(t,tve),[Y,Z]=Xi({controlled:W,default:d,name:"Select"}),[j,se]=Xi({controlled:R,default:c,name:"Select"}),ve=I.useRef(null),G=I.useRef(null),[ce,ge]=I.useState(null),{current:ue}=I.useRef(R!=null),[xe,Ne]=I.useState(),Ve=yn(n,O),Ke=I.useCallback(et=>{G.current=et,et&&ge(et)},[]),Me=ce==null?void 0:ce.parentNode;I.useImperativeHandle(Ve,()=>({focus:()=>{G.current.focus()},node:ve.current,value:Y}),[Y]),I.useEffect(()=>{c&&j&&ce&&!ue&&(Ne(s?null:Me.clientWidth),G.current.focus())},[ce,s]),I.useEffect(()=>{a&&G.current.focus()},[a]),I.useEffect(()=>{if(!y)return;const et=Or(G.current).getElementById(y);if(et){const vt=()=>{getSelection().isCollapsed&&G.current.focus()};return et.addEventListener("click",vt),()=>{et.removeEventListener("click",vt)}}},[y]);const Ye=(et,vt)=>{et?P&&P(vt):E&&E(vt),ue||(Ne(s?null:Me.clientWidth),se(et))},ye=et=>{et.button===0&&(et.preventDefault(),G.current.focus(),Ye(!0,et))},ze=et=>{Ye(!1,et)},$e=I.Children.toArray(l),We=et=>{const vt=$e.find(qe=>qe.props.value===et.target.value);vt!==void 0&&(Z(vt.props.value),w&&w(et,vt))},dt=et=>vt=>{let qe;if(vt.currentTarget.hasAttribute("tabindex")){if(S){qe=Array.isArray(Y)?Y.slice():[];const it=Y.indexOf(et.props.value);it===-1?qe.push(et.props.value):qe.splice(it,1)}else qe=et.props.value;if(et.props.onClick&&et.props.onClick(vt),Y!==qe&&(Z(qe),w)){const it=vt.nativeEvent||vt,Et=new it.constructor(it.type,it);Object.defineProperty(Et,"target",{writable:!0,value:{value:qe,name:k}}),w(Et,et)}S||Ye(!1,vt)}},Be=et=>{B||[" ","ArrowUp","ArrowDown","Enter"].indexOf(et.key)!==-1&&(et.preventDefault(),Ye(!0,et))},re=ce!==null&&j,ee=et=>{!re&&C&&(Object.defineProperty(et,"target",{writable:!0,value:{value:Y,name:k}}),C(et))};delete q["aria-invalid"];let J,Re;const Le=[];let De=!1;(oT({value:Y})||h)&&(U?J=U(Y):De=!0);const ie=$e.map(et=>{if(!I.isValidElement(et))return null;let vt;if(S){if(!Array.isArray(Y))throw new Error(zd(2));vt=Y.some(qe=>Q8(qe,et.props.value)),vt&&De&&Le.push(et.props.children)}else vt=Q8(Y,et.props.value),vt&&De&&(Re=et.props.children);return I.cloneElement(et,{"aria-selected":vt?"true":"false",onClick:dt(et),onKeyUp:qe=>{qe.key===" "&&qe.preventDefault(),et.props.onKeyUp&&et.props.onKeyUp(qe)},role:"option",selected:vt,value:void 0,"data-value":et.props.value})});De&&(S?Le.length===0?J=null:J=Le.reduce((et,vt,qe)=>(et.push(vt),qe{const{classes:t}=e;return t},XN={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ji(e)&&e!=="variant",slot:"Root"},fve=Se(FY,XN)(""),pve=Se(YY,XN)(""),hve=Se(NY,XN)(""),ZY=I.forwardRef(function(t,n){const r=gt({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=kY,id:d,input:p,inputProps:h,label:m,labelId:b,MenuProps:O,multiple:y=!1,native:v=!1,onClose:S,onOpen:k,open:C,renderValue:w,SelectDisplayProps:E,variant:$="outlined"}=r,P=Ge(r,uve),R=v?AOe:lve,B=Du(),U=sf({props:r,muiFormControl:B,states:["variant","error"]}),V=U.variant||$,z=L({},r,{variant:V,classes:a}),W=dve(z),X=Ge(W,cve),q=p||{standard:N.jsx(fve,{ownerState:z}),outlined:N.jsx(pve,{label:m,ownerState:z}),filled:N.jsx(hve,{ownerState:z})}[V],Y=yn(n,q.ref);return N.jsx(I.Fragment,{children:I.cloneElement(q,L({inputComponent:R,inputProps:L({children:o,error:U.error,IconComponent:c,variant:V,type:void 0,multiple:y},v?{id:d}:{autoWidth:i,defaultOpen:l,displayEmpty:u,labelId:b,MenuProps:O,onClose:S,onOpen:k,open:C,renderValue:w,SelectDisplayProps:L({id:d},E)},h,{classes:h?Mo(X,h.classes):X},p?p.props.inputProps:{})},y&&v&&V==="outlined"?{notched:!0}:{},{ref:Y,className:Je(q.props.className,s,W.root)},!p&&{variant:V},P))})});ZY.muiName="Select";const XY=ZY,mve=e=>!e||!ku(e);function gve(e){return At("MuiSlider",e)}const wl=_t("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"]),bve=e=>{const{open:t}=e;return{offset:Je(t&&wl.valueLabelOpen),circle:wl.valueLabelCircle,label:wl.valueLabelLabel}};function yve(e){const{children:t,className:n,value:r}=e,i=bve(e);return t?I.cloneElement(t,{className:Je(t.props.className)},N.jsxs(I.Fragment,{children:[t.props.children,N.jsx("span",{className:Je(i.offset,n),"aria-hidden":!0,children:N.jsx("span",{className:i.circle,children:N.jsx("span",{className:i.label,children:r})})})]})):null}const Ove=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function Y8(e){return e}const vve=Se("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${nt(n.color)}`],n.size!=="medium"&&t[`size${nt(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>L({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&L({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&L({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${wl.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${wl.dragging}`]:{[`& .${wl.thumb}, & .${wl.track}`]:{transition:"none"}}})),Eve=Se("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>L({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),Sve=Se("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?Ok(e.palette[t.color].main,.62):yk(e.palette[t.color].main,.5);return L({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})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),Tve=Se("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${nt(n.color)}`],n.size!=="medium"&&t[`thumbSize${nt(n.size)}`]]}})(({theme:e,ownerState:t})=>L({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})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&::before":L({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${wl.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:cn(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${wl.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:cn(e.palette[t.color].main,.16)}`},[`&.${wl.disabled}`]:{"&:hover":{boxShadow:"none"}}})),wve=Se(yve,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>L({[`&.${wl.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,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"},t.orientation==="horizontal"&&{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%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"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%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),kve=Se("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>_N(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>L({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),xve=Se("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>_N(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>L({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),Cve=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:o,classes:a,color:s,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",o==="inverted"&&"trackInverted",o===!1&&"trackFalse",s&&`color${nt(s)}`,l&&`size${nt(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${nt(l)}`,s&&`thumbColor${nt(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return kt(u,gve,a)},Ave=({children:e})=>e,_ve=I.forwardRef(function(t,n){var r,i,o,a,s,l,u,c,d,p,h,m,b,O,y,v,S,k,C,w,E,$,P,R;const B=gt({props:t,name:"MuiSlider"}),V=ci().direction==="rtl",{"aria-label":z,"aria-valuetext":W,"aria-labelledby":X,component:q="span",components:Y={},componentsProps:Z={},color:j="primary",classes:se,className:ve,disableSwap:G=!1,disabled:ce=!1,getAriaLabel:ge,getAriaValueText:ue,marks:xe=!1,max:Ne=100,min:Ve=0,orientation:Ke="horizontal",size:Me="medium",step:Ye=1,scale:ye=Y8,slotProps:ze,slots:$e,track:We="normal",valueLabelDisplay:dt="off",valueLabelFormat:Be=Y8}=B,re=Ge(B,Ove),ee=L({},B,{isRtl:V,max:Ne,min:Ve,classes:se,disabled:ce,disableSwap:G,orientation:Ke,marks:xe,color:j,size:Me,step:Ye,scale:ye,track:We,valueLabelDisplay:dt,valueLabelFormat:Be}),{axisProps:J,getRootProps:Re,getHiddenInputProps:Le,getThumbProps:De,open:ie,active:fe,axis:de,focusedThumbIndex:Oe,range:Te,dragging:rt,marks:pt,values:xt,trackOffset:et,trackLeap:vt,getThumbStyle:qe}=fme(L({},ee,{rootRef:n}));ee.marked=pt.length>0&&pt.some(Ue=>Ue.label),ee.dragging=rt,ee.focusedThumbIndex=Oe;const it=Cve(ee),Et=(r=(i=$e==null?void 0:$e.root)!=null?i:Y.Root)!=null?r:vve,Nt=(o=(a=$e==null?void 0:$e.rail)!=null?a:Y.Rail)!=null?o:Eve,on=(s=(l=$e==null?void 0:$e.track)!=null?l:Y.Track)!=null?s:Sve,dn=(u=(c=$e==null?void 0:$e.thumb)!=null?c:Y.Thumb)!=null?u:Tve,pn=(d=(p=$e==null?void 0:$e.valueLabel)!=null?p:Y.ValueLabel)!=null?d:wve,zn=(h=(m=$e==null?void 0:$e.mark)!=null?m:Y.Mark)!=null?h:kve,Ee=(b=(O=$e==null?void 0:$e.markLabel)!=null?O:Y.MarkLabel)!=null?b:xve,_e=(y=(v=$e==null?void 0:$e.input)!=null?v:Y.Input)!=null?y:"input",pe=(S=ze==null?void 0:ze.root)!=null?S:Z.root,lt=(k=ze==null?void 0:ze.rail)!=null?k:Z.rail,at=(C=ze==null?void 0:ze.track)!=null?C:Z.track,Mt=(w=ze==null?void 0:ze.thumb)!=null?w:Z.thumb,$t=(E=ze==null?void 0:ze.valueLabel)!=null?E:Z.valueLabel,It=($=ze==null?void 0:ze.mark)!=null?$:Z.mark,Ct=(P=ze==null?void 0:ze.markLabel)!=null?P:Z.markLabel,Zt=(R=ze==null?void 0:ze.input)!=null?R:Z.input,Ie=kn({elementType:Et,getSlotProps:Re,externalSlotProps:pe,externalForwardedProps:re,additionalProps:L({},mve(Et)&&{as:q}),ownerState:L({},ee,pe==null?void 0:pe.ownerState),className:[it.root,ve]}),we=kn({elementType:Nt,externalSlotProps:lt,ownerState:ee,className:it.rail}),Qe=kn({elementType:on,externalSlotProps:at,additionalProps:{style:L({},J[de].offset(et),J[de].leap(vt))},ownerState:L({},ee,at==null?void 0:at.ownerState),className:it.track}),ot=kn({elementType:dn,getSlotProps:De,externalSlotProps:Mt,ownerState:L({},ee,Mt==null?void 0:Mt.ownerState),className:it.thumb}),rn=kn({elementType:pn,externalSlotProps:$t,ownerState:L({},ee,$t==null?void 0:$t.ownerState),className:it.valueLabel}),Wt=kn({elementType:zn,externalSlotProps:It,ownerState:ee,className:it.mark}),mn=kn({elementType:Ee,externalSlotProps:Ct,ownerState:ee,className:it.markLabel}),nr=kn({elementType:_e,getSlotProps:Le,externalSlotProps:Zt,ownerState:ee});return N.jsxs(Et,L({},Ie,{children:[N.jsx(Nt,L({},we)),N.jsx(on,L({},Qe)),pt.filter(Ue=>Ue.value>=Ve&&Ue.value<=Ne).map((Ue,Ce)=>{const mt=iT(Ue.value,Ve,Ne),Dt=J[de].offset(mt);let tn;return We===!1?tn=xt.indexOf(Ue.value)!==-1:tn=We==="normal"&&(Te?Ue.value>=xt[0]&&Ue.value<=xt[xt.length-1]:Ue.value<=xt[0])||We==="inverted"&&(Te?Ue.value<=xt[0]||Ue.value>=xt[xt.length-1]:Ue.value>=xt[0]),N.jsxs(I.Fragment,{children:[N.jsx(zn,L({"data-index":Ce},Wt,!ku(zn)&&{markActive:tn},{style:L({},Dt,Wt.style),className:Je(Wt.className,tn&&it.markActive)})),Ue.label!=null?N.jsx(Ee,L({"aria-hidden":!0,"data-index":Ce},mn,!ku(Ee)&&{markLabelActive:tn},{style:L({},Dt,mn.style),className:Je(it.markLabel,mn.className,tn&&it.markLabelActive),children:Ue.label})):null]},Ce)}),xt.map((Ue,Ce)=>{const mt=iT(Ue,Ve,Ne),Dt=J[de].offset(mt),tn=dt==="off"?Ave:pn;return N.jsx(tn,L({},!ku(tn)&&{valueLabelFormat:Be,valueLabelDisplay:dt,value:typeof Be=="function"?Be(ye(Ue),Ce):Be,index:Ce,open:ie===Ce||fe===Ce||dt==="on",disabled:ce},rn,{children:N.jsx(dn,L({"data-index":Ce},ot,{className:Je(it.thumb,ot.className,fe===Ce&&it.active,Oe===Ce&&it.focusVisible),style:L({},Dt,qe(Ce),ot.style),children:N.jsx(_e,L({"data-index":Ce,"aria-label":ge?ge(Ce):z,"aria-valuenow":ye(Ue),"aria-labelledby":X,"aria-valuetext":ue?ue(ye(Ue),Ce):W,value:xt[Ce]},nr))}))}),Ce)})]}))}),Rve=_ve;function Ive(e){return At("MuiTooltip",e)}const Dve=_t("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),bd=Dve,Nve=["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 Pve(e){return Math.round(e*1e5)/1e5}const Lve=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${nt(o.split("-")[0])}`],arrow:["arrow"]};return kt(a,Ive,t)},Mve=Se(q1,{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})=>L({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${bd.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${bd.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${bd.arrow}`]:L({},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"] .${bd.arrow}`]:L({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),$ve=Se("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${nt(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>L({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:cn(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:`${Pve(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${bd.popper}[data-popper-placement*="left"] &`]:L({transformOrigin:"right center"},t.isRtl?L({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):L({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${bd.popper}[data-popper-placement*="right"] &`]:L({transformOrigin:"left center"},t.isRtl?L({marginRight:"14px"},t.touch&&{marginRight:"24px"}):L({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${bd.popper}[data-popper-placement*="top"] &`]:L({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${bd.popper}[data-popper-placement*="bottom"] &`]:L({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Fve=Se("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:cn(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let _v=!1,qC=null,T0={x:0,y:0};function Rv(e,t){return n=>{t&&t(n),e(n)}}const Bve=I.forwardRef(function(t,n){var r,i,o,a,s,l,u,c,d,p,h,m,b,O,y,v,S,k,C;const w=gt({props:t,name:"MuiTooltip"}),{arrow:E=!1,children:$,components:P={},componentsProps:R={},describeChild:B=!1,disableFocusListener:U=!1,disableHoverListener:V=!1,disableInteractive:z=!1,disableTouchListener:W=!1,enterDelay:X=100,enterNextDelay:q=0,enterTouchDelay:Y=700,followCursor:Z=!1,id:j,leaveDelay:se=0,leaveTouchDelay:ve=1500,onClose:G,onOpen:ce,open:ge,placement:ue="bottom",PopperComponent:xe,PopperProps:Ne={},slotProps:Ve={},slots:Ke={},title:Me,TransitionComponent:Ye=aT,TransitionProps:ye}=w,ze=Ge(w,Nve),$e=I.isValidElement($)?$:N.jsx("span",{children:$}),We=ci(),dt=We.direction==="rtl",[Be,re]=I.useState(),[ee,J]=I.useState(null),Re=I.useRef(!1),Le=z||Z,De=I.useRef(),ie=I.useRef(),fe=I.useRef(),de=I.useRef(),[Oe,Te]=Xi({controlled:ge,default:!1,name:"Tooltip",state:"open"});let rt=Oe;const pt=$l(j),xt=I.useRef(),et=I.useCallback(()=>{xt.current!==void 0&&(document.body.style.WebkitUserSelect=xt.current,xt.current=void 0),clearTimeout(de.current)},[]);I.useEffect(()=>()=>{clearTimeout(De.current),clearTimeout(ie.current),clearTimeout(fe.current),et()},[et]);const vt=Kt=>{clearTimeout(qC),_v=!0,Te(!0),ce&&!rt&&ce(Kt)},qe=jt(Kt=>{clearTimeout(qC),qC=setTimeout(()=>{_v=!1},800+se),Te(!1),G&&rt&&G(Kt),clearTimeout(De.current),De.current=setTimeout(()=>{Re.current=!1},We.transitions.duration.shortest)}),it=Kt=>{Re.current&&Kt.type!=="touchstart"||(Be&&Be.removeAttribute("title"),clearTimeout(ie.current),clearTimeout(fe.current),X||_v&&q?ie.current=setTimeout(()=>{vt(Kt)},_v?q:X):vt(Kt))},Et=Kt=>{clearTimeout(ie.current),clearTimeout(fe.current),fe.current=setTimeout(()=>{qe(Kt)},se)},{isFocusVisibleRef:Nt,onBlur:on,onFocus:dn,ref:pn}=ak(),[,zn]=I.useState(!1),Ee=Kt=>{on(Kt),Nt.current===!1&&(zn(!1),Et(Kt))},_e=Kt=>{Be||re(Kt.currentTarget),dn(Kt),Nt.current===!0&&(zn(!0),it(Kt))},pe=Kt=>{Re.current=!0;const bn=$e.props;bn.onTouchStart&&bn.onTouchStart(Kt)},lt=it,at=Et,Mt=Kt=>{pe(Kt),clearTimeout(fe.current),clearTimeout(De.current),et(),xt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",de.current=setTimeout(()=>{document.body.style.WebkitUserSelect=xt.current,it(Kt)},Y)},$t=Kt=>{$e.props.onTouchEnd&&$e.props.onTouchEnd(Kt),et(),clearTimeout(fe.current),fe.current=setTimeout(()=>{qe(Kt)},ve)};I.useEffect(()=>{if(!rt)return;function Kt(bn){(bn.key==="Escape"||bn.key==="Esc")&&qe(bn)}return document.addEventListener("keydown",Kt),()=>{document.removeEventListener("keydown",Kt)}},[qe,rt]);const It=yn($e.ref,pn,re,n);!Me&&Me!==0&&(rt=!1);const Ct=I.useRef(),Zt=Kt=>{const bn=$e.props;bn.onMouseMove&&bn.onMouseMove(Kt),T0={x:Kt.clientX,y:Kt.clientY},Ct.current&&Ct.current.update()},Ie={},we=typeof Me=="string";B?(Ie.title=!rt&&we&&!V?Me:null,Ie["aria-describedby"]=rt?pt:null):(Ie["aria-label"]=we?Me:null,Ie["aria-labelledby"]=rt&&!we?pt:null);const Qe=L({},Ie,ze,$e.props,{className:Je(ze.className,$e.props.className),onTouchStart:pe,ref:It},Z?{onMouseMove:Zt}:{}),ot={};W||(Qe.onTouchStart=Mt,Qe.onTouchEnd=$t),V||(Qe.onMouseOver=Rv(lt,Qe.onMouseOver),Qe.onMouseLeave=Rv(at,Qe.onMouseLeave),Le||(ot.onMouseOver=lt,ot.onMouseLeave=at)),U||(Qe.onFocus=Rv(_e,Qe.onFocus),Qe.onBlur=Rv(Ee,Qe.onBlur),Le||(ot.onFocus=_e,ot.onBlur=Ee));const rn=I.useMemo(()=>{var Kt;let bn=[{name:"arrow",enabled:!!ee,options:{element:ee,padding:4}}];return(Kt=Ne.popperOptions)!=null&&Kt.modifiers&&(bn=bn.concat(Ne.popperOptions.modifiers)),L({},Ne.popperOptions,{modifiers:bn})},[ee,Ne]),Wt=L({},w,{isRtl:dt,arrow:E,disableInteractive:Le,placement:ue,PopperComponentProp:xe,touch:Re.current}),mn=Lve(Wt),nr=(r=(i=Ke.popper)!=null?i:P.Popper)!=null?r:Mve,Ue=(o=(a=(s=Ke.transition)!=null?s:P.Transition)!=null?a:Ye)!=null?o:aT,Ce=(l=(u=Ke.tooltip)!=null?u:P.Tooltip)!=null?l:$ve,mt=(c=(d=Ke.arrow)!=null?d:P.Arrow)!=null?c:Fve,Dt=nb(nr,L({},Ne,(p=Ve.popper)!=null?p:R.popper,{className:Je(mn.popper,Ne==null?void 0:Ne.className,(h=(m=Ve.popper)!=null?m:R.popper)==null?void 0:h.className)}),Wt),tn=nb(Ue,L({},ye,(b=Ve.transition)!=null?b:R.transition),Wt),Mn=nb(Ce,L({},(O=Ve.tooltip)!=null?O:R.tooltip,{className:Je(mn.tooltip,(y=(v=Ve.tooltip)!=null?v:R.tooltip)==null?void 0:y.className)}),Wt),Dn=nb(mt,L({},(S=Ve.arrow)!=null?S:R.arrow,{className:Je(mn.arrow,(k=(C=Ve.arrow)!=null?C:R.arrow)==null?void 0:k.className)}),Wt);return N.jsxs(I.Fragment,{children:[I.cloneElement($e,Qe),N.jsx(nr,L({as:xe??q1,placement:ue,anchorEl:Z?{getBoundingClientRect:()=>({top:T0.y,left:T0.x,right:T0.x,bottom:T0.y,width:0,height:0})}:Be,popperRef:Ct,open:Be?rt:!1,id:pt,transition:!0},ot,Dt,{popperOptions:rn,children:({TransitionProps:Kt})=>N.jsx(Ue,L({timeout:We.transitions.duration.shorter},Kt,tn,{children:N.jsxs(Ce,L({},Mn,{children:[Me,E?N.jsx(mt,L({},Dn,{ref:J})):null]}))}))}))]})}),Db=Bve;function Uve(e){return At("MuiSwitch",e)}const jve=_t("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Xo=jve,zve=["className","color","edge","size","sx"],Vve=e=>{const{classes:t,edge:n,size:r,color:i,checked:o,disabled:a}=e,s={root:["root",n&&`edge${nt(n)}`,`size${nt(r)}`],switchBase:["switchBase",`color${nt(i)}`,o&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=kt(s,Uve,t);return L({},t,l)},Hve=Se("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${nt(n.edge)}`],t[`size${nt(n.size)}`]]}})(({ownerState:e})=>L({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"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${Xo.thumb}`]:{width:16,height:16},[`& .${Xo.switchBase}`]:{padding:4,[`&.${Xo.checked}`]:{transform:"translateX(16px)"}}})),Wve=Se(WN,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Xo.input}`]:t.input},n.color!=="default"&&t[`color${nt(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}),[`&.${Xo.checked}`]:{transform:"translateX(20px)"},[`&.${Xo.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Xo.checked} + .${Xo.track}`]:{opacity:.5},[`&.${Xo.disabled} + .${Xo.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Xo.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>L({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Xo.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Xo.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?Ok(e.palette[t.color].main,.62):yk(e.palette[t.color].main,.55)}`}},[`&.${Xo.checked} + .${Xo.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),Qve=Se("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}`})),Yve=Se("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%"})),Gve=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiSwitch"}),{className:i,color:o="primary",edge:a=!1,size:s="medium",sx:l}=r,u=Ge(r,zve),c=L({},r,{color:o,edge:a,size:s}),d=Vve(c),p=N.jsx(Yve,{className:d.thumb,ownerState:c});return N.jsxs(Hve,{className:Je(d.root,i),sx:l,ownerState:c,children:[N.jsx(Wve,L({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:c},u,{classes:L({},d,{root:d.switchBase})})),N.jsx(Qve,{className:d.track,ownerState:c})]})}),qve=Gve;function Zve(e){return At("MuiTab",e)}const Xve=_t("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Of=Xve,Kve=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Jve=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:o,label:a,selected:s,disabled:l}=e,u={root:["root",o&&a&&"labelIcon",`textColor${nt(n)}`,r&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return kt(u,Zve,t)},eEe=Se(hs,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${nt(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>L({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Of.iconWrapper}`]:L({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Of.selected}`]:{opacity:1},[`&.${Of.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Of.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Of.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Of.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Of.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),tEe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiTab"}),{className:i,disabled:o=!1,disableFocusRipple:a=!1,fullWidth:s,icon:l,iconPosition:u="top",indicator:c,label:d,onChange:p,onClick:h,onFocus:m,selected:b,selectionFollowsFocus:O,textColor:y="inherit",value:v,wrapped:S=!1}=r,k=Ge(r,Kve),C=L({},r,{disabled:o,disableFocusRipple:a,selected:b,icon:!!l,iconPosition:u,label:!!d,fullWidth:s,textColor:y,wrapped:S}),w=Jve(C),E=l&&d&&I.isValidElement(l)?I.cloneElement(l,{className:Je(w.iconWrapper,l.props.className)}):l,$=R=>{!b&&p&&p(R,v),h&&h(R)},P=R=>{O&&!b&&p&&p(R,v),m&&m(R)};return N.jsxs(eEe,L({focusRipple:!a,className:Je(w.root,i),ref:n,role:"tab","aria-selected":b,disabled:o,onClick:$,onFocus:P,ownerState:C,tabIndex:b?0:-1},k,{children:[u==="top"||u==="start"?N.jsxs(I.Fragment,{children:[E,d]}):N.jsxs(I.Fragment,{children:[d,E]}),c]}))}),G8=tEe;function nEe(e){return At("MuiToolbar",e)}_t("MuiToolbar",["root","gutters","regular","dense"]);const rEe=["className","component","disableGutters","variant"],iEe=e=>{const{classes:t,disableGutters:n,variant:r}=e;return kt({root:["root",!n&&"gutters",r]},nEe,t)},oEe=Se("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})=>L({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),aEe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:a=!1,variant:s="regular"}=r,l=Ge(r,rEe),u=L({},r,{component:o,disableGutters:a,variant:s}),c=iEe(u);return N.jsx(oEe,L({as:o,className:Je(c.root,i),ref:n,ownerState:u},l))}),sEe=aEe,lEe=ki(N.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),uEe=ki(N.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function cEe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function dEe(e,t,n,r={},i=()=>{}){const{ease:o=cEe,duration:a=300}=r;let s=null;const l=t[e];let u=!1;const c=()=>{u=!0},d=p=>{if(u){i(new Error("Animation cancelled"));return}s===null&&(s=p);const h=Math.min(1,(p-s)/a);if(t[e]=o(h)*(n-l)+l,h>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(d)};return l===n?(i(new Error("Element already at target position")),c):(requestAnimationFrame(d),c)}const fEe=["onChange"],pEe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function hEe(e){const{onChange:t}=e,n=Ge(e,fEe),r=I.useRef(),i=I.useRef(null),o=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return Jr(()=>{const a=Sg(()=>{const l=r.current;o(),l!==r.current&&t(r.current)}),s=Js(i.current);return s.addEventListener("resize",a),()=>{a.clear(),s.removeEventListener("resize",a)}},[t]),I.useEffect(()=>{o(),t(r.current)},[t]),N.jsx("div",L({style:pEe,ref:i},n))}function mEe(e){return At("MuiTabScrollButton",e)}const gEe=_t("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),bEe=gEe,yEe=["className","slots","slotProps","direction","orientation","disabled"],OEe=e=>{const{classes:t,orientation:n,disabled:r}=e;return kt({root:["root",n,r&&"disabled"]},mEe,t)},vEe=Se(hs,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>L({width:40,flexShrink:0,opacity:.8,[`&.${bEe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),EEe=I.forwardRef(function(t,n){var r,i;const o=gt({props:t,name:"MuiTabScrollButton"}),{className:a,slots:s={},slotProps:l={},direction:u}=o,c=Ge(o,yEe),p=ci().direction==="rtl",h=L({isRtl:p},o),m=OEe(h),b=(r=s.StartScrollButtonIcon)!=null?r:lEe,O=(i=s.EndScrollButtonIcon)!=null?i:uEe,y=kn({elementType:b,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),v=kn({elementType:O,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return N.jsx(vEe,L({component:"div",className:Je(m.root,a),ref:n,role:null,ownerState:h,tabIndex:null},c,{children:u==="left"?N.jsx(b,L({},y)):N.jsx(O,L({},v))}))}),SEe=EEe;function TEe(e){return At("MuiTabs",e)}const wEe=_t("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),zE=wEe,kEe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],q8=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,Z8=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Iv=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const o=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||o)i=n(e,i);else{i.focus();return}}},xEe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:o,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return kt({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},TEe,l)},CEe=Se("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${zE.scrollButtons}`]:t.scrollButtons},{[`& .${zE.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>L({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${zE.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),AEe=Se("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>L({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),_Ee=Se("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>L({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),REe=Se("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>L({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),IEe=Se(hEe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),X8={},DEe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiTabs"}),i=ci(),o=i.direction==="rtl",{"aria-label":a,"aria-labelledby":s,action:l,centered:u=!1,children:c,className:d,component:p="div",allowScrollButtonsMobile:h=!1,indicatorColor:m="primary",onChange:b,orientation:O="horizontal",ScrollButtonComponent:y=SEe,scrollButtons:v="auto",selectionFollowsFocus:S,slots:k={},slotProps:C={},TabIndicatorProps:w={},TabScrollButtonProps:E={},textColor:$="primary",value:P,variant:R="standard",visibleScrollbar:B=!1}=r,U=Ge(r,kEe),V=R==="scrollable",z=O==="vertical",W=z?"scrollTop":"scrollLeft",X=z?"top":"left",q=z?"bottom":"right",Y=z?"clientHeight":"clientWidth",Z=z?"height":"width",j=L({},r,{component:p,allowScrollButtonsMobile:h,indicatorColor:m,orientation:O,vertical:z,scrollButtons:v,textColor:$,variant:R,visibleScrollbar:B,fixed:!V,hideScrollbar:V&&!B,scrollableX:V&&!z,scrollableY:V&&z,centered:u&&!V,scrollButtonsHideMobile:!h}),se=xEe(j),ve=kn({elementType:k.StartScrollButtonIcon,externalSlotProps:C.startScrollButtonIcon,ownerState:j}),G=kn({elementType:k.EndScrollButtonIcon,externalSlotProps:C.endScrollButtonIcon,ownerState:j}),[ce,ge]=I.useState(!1),[ue,xe]=I.useState(X8),[Ne,Ve]=I.useState(!1),[Ke,Me]=I.useState(!1),[Ye,ye]=I.useState(!1),[ze,$e]=I.useState({overflow:"hidden",scrollbarWidth:0}),We=new Map,dt=I.useRef(null),Be=I.useRef(null),re=()=>{const qe=dt.current;let it;if(qe){const Nt=qe.getBoundingClientRect();it={clientWidth:qe.clientWidth,scrollLeft:qe.scrollLeft,scrollTop:qe.scrollTop,scrollLeftNormalized:Yue(qe,i.direction),scrollWidth:qe.scrollWidth,top:Nt.top,bottom:Nt.bottom,left:Nt.left,right:Nt.right}}let Et;if(qe&&P!==!1){const Nt=Be.current.children;if(Nt.length>0){const on=Nt[We.get(P)];Et=on?on.getBoundingClientRect():null}}return{tabsMeta:it,tabMeta:Et}},ee=jt(()=>{const{tabsMeta:qe,tabMeta:it}=re();let Et=0,Nt;if(z)Nt="top",it&&qe&&(Et=it.top-qe.top+qe.scrollTop);else if(Nt=o?"right":"left",it&&qe){const dn=o?qe.scrollLeftNormalized+qe.clientWidth-qe.scrollWidth:qe.scrollLeft;Et=(o?-1:1)*(it[Nt]-qe[Nt]+dn)}const on={[Nt]:Et,[Z]:it?it[Z]:0};if(isNaN(ue[Nt])||isNaN(ue[Z]))xe(on);else{const dn=Math.abs(ue[Nt]-on[Nt]),pn=Math.abs(ue[Z]-on[Z]);(dn>=1||pn>=1)&&xe(on)}}),J=(qe,{animation:it=!0}={})=>{it?dEe(W,dt.current,qe,{duration:i.transitions.duration.standard}):dt.current[W]=qe},Re=qe=>{let it=dt.current[W];z?it+=qe:(it+=qe*(o?-1:1),it*=o&&QQ()==="reverse"?-1:1),J(it)},Le=()=>{const qe=dt.current[Y];let it=0;const Et=Array.from(Be.current.children);for(let Nt=0;Ntqe){Nt===0&&(it=qe);break}it+=on[Y]}return it},De=()=>{Re(-1*Le())},ie=()=>{Re(Le())},fe=I.useCallback(qe=>{$e({overflow:null,scrollbarWidth:qe})},[]),de=()=>{const qe={};qe.scrollbarSizeListener=V?N.jsx(IEe,{onChange:fe,className:Je(se.scrollableX,se.hideScrollbar)}):null;const Et=V&&(v==="auto"&&(Ne||Ke)||v===!0);return qe.scrollButtonStart=Et?N.jsx(y,L({slots:{StartScrollButtonIcon:k.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ve},orientation:O,direction:o?"right":"left",onClick:De,disabled:!Ne},E,{className:Je(se.scrollButtons,E.className)})):null,qe.scrollButtonEnd=Et?N.jsx(y,L({slots:{EndScrollButtonIcon:k.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:G},orientation:O,direction:o?"left":"right",onClick:ie,disabled:!Ke},E,{className:Je(se.scrollButtons,E.className)})):null,qe},Oe=jt(qe=>{const{tabsMeta:it,tabMeta:Et}=re();if(!(!Et||!it)){if(Et[X]it[q]){const Nt=it[W]+(Et[q]-it[q]);J(Nt,{animation:qe})}}}),Te=jt(()=>{V&&v!==!1&&ye(!Ye)});I.useEffect(()=>{const qe=Sg(()=>{dt.current&&ee()});let it;const Et=dn=>{dn.forEach(pn=>{pn.removedNodes.forEach(zn=>{var Ee;(Ee=it)==null||Ee.unobserve(zn)}),pn.addedNodes.forEach(zn=>{var Ee;(Ee=it)==null||Ee.observe(zn)})}),qe(),Te()},Nt=Js(dt.current);Nt.addEventListener("resize",qe);let on;return typeof ResizeObserver<"u"&&(it=new ResizeObserver(qe),Array.from(Be.current.children).forEach(dn=>{it.observe(dn)})),typeof MutationObserver<"u"&&(on=new MutationObserver(Et),on.observe(Be.current,{childList:!0})),()=>{var dn,pn;qe.clear(),Nt.removeEventListener("resize",qe),(dn=on)==null||dn.disconnect(),(pn=it)==null||pn.disconnect()}},[ee,Te]),I.useEffect(()=>{const qe=Array.from(Be.current.children),it=qe.length;if(typeof IntersectionObserver<"u"&&it>0&&V&&v!==!1){const Et=qe[0],Nt=qe[it-1],on={root:dt.current,threshold:.99},dn=_e=>{Ve(!_e[0].isIntersecting)},pn=new IntersectionObserver(dn,on);pn.observe(Et);const zn=_e=>{Me(!_e[0].isIntersecting)},Ee=new IntersectionObserver(zn,on);return Ee.observe(Nt),()=>{pn.disconnect(),Ee.disconnect()}}},[V,v,Ye,c==null?void 0:c.length]),I.useEffect(()=>{ge(!0)},[]),I.useEffect(()=>{ee()}),I.useEffect(()=>{Oe(X8!==ue)},[Oe,ue]),I.useImperativeHandle(l,()=>({updateIndicator:ee,updateScrollButtons:Te}),[ee,Te]);const rt=N.jsx(REe,L({},w,{className:Je(se.indicator,w.className),ownerState:j,style:L({},ue,w.style)}));let pt=0;const xt=I.Children.map(c,qe=>{if(!I.isValidElement(qe))return null;const it=qe.props.value===void 0?pt:qe.props.value;We.set(it,pt);const Et=it===P;return pt+=1,I.cloneElement(qe,L({fullWidth:R==="fullWidth",indicator:Et&&!ce&&rt,selected:Et,selectionFollowsFocus:S,onChange:b,textColor:$,value:it},pt===1&&P===!1&&!qe.props.tabIndex?{tabIndex:0}:{}))}),et=qe=>{const it=Be.current,Et=Or(it).activeElement;if(Et.getAttribute("role")!=="tab")return;let on=O==="horizontal"?"ArrowLeft":"ArrowUp",dn=O==="horizontal"?"ArrowRight":"ArrowDown";switch(O==="horizontal"&&o&&(on="ArrowRight",dn="ArrowLeft"),qe.key){case on:qe.preventDefault(),Iv(it,Et,Z8);break;case dn:qe.preventDefault(),Iv(it,Et,q8);break;case"Home":qe.preventDefault(),Iv(it,null,q8);break;case"End":qe.preventDefault(),Iv(it,null,Z8);break}},vt=de();return N.jsxs(CEe,L({className:Je(se.root,d),ownerState:j,ref:n,as:p},U,{children:[vt.scrollButtonStart,vt.scrollbarSizeListener,N.jsxs(AEe,{className:se.scroller,ownerState:j,style:{overflow:ze.overflow,[z?`margin${o?"Left":"Right"}`:"marginBottom"]:B?void 0:-ze.scrollbarWidth},ref:dt,children:[N.jsx(_Ee,{"aria-label":a,"aria-labelledby":s,"aria-orientation":O==="vertical"?"vertical":null,className:se.flexContainer,ownerState:j,onKeyDown:et,ref:Be,role:"tablist",children:xt}),ce&&rt]}),vt.scrollButtonEnd]}))}),NEe=DEe;function PEe(e){return At("MuiTextField",e)}_t("MuiTextField",["root"]);const LEe=["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"],MEe={standard:FY,filled:NY,outlined:YY},$Ee=e=>{const{classes:t}=e;return kt({root:["root"]},PEe,t)},FEe=Se(Rc,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),BEe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:a,className:s,color:l="primary",defaultValue:u,disabled:c=!1,error:d=!1,FormHelperTextProps:p,fullWidth:h=!1,helperText:m,id:b,InputLabelProps:O,inputProps:y,InputProps:v,inputRef:S,label:k,maxRows:C,minRows:w,multiline:E=!1,name:$,onBlur:P,onChange:R,onFocus:B,placeholder:U,required:V=!1,rows:z,select:W=!1,SelectProps:X,type:q,value:Y,variant:Z="outlined"}=r,j=Ge(r,LEe),se=L({},r,{autoFocus:o,color:l,disabled:c,error:d,fullWidth:h,multiline:E,required:V,select:W,variant:Z}),ve=$Ee(se),G={};Z==="outlined"&&(O&&typeof O.shrink<"u"&&(G.notched=O.shrink),G.label=k),W&&((!X||!X.native)&&(G.id=void 0),G["aria-describedby"]=void 0);const ce=$l(b),ge=m&&ce?`${ce}-helper-text`:void 0,ue=k&&ce?`${ce}-label`:void 0,xe=MEe[Z],Ne=N.jsx(xe,L({"aria-describedby":ge,autoComplete:i,autoFocus:o,defaultValue:u,fullWidth:h,multiline:E,name:$,rows:z,maxRows:C,minRows:w,type:q,value:Y,id:ce,inputRef:S,onBlur:P,onChange:R,onFocus:B,placeholder:U,inputProps:y},G,v));return N.jsxs(FEe,L({className:Je(ve.root,s),disabled:c,error:d,fullWidth:h,ref:n,required:V,color:l,variant:Z,ownerState:se},j,{children:[k!=null&&k!==""&&N.jsx(BY,L({htmlFor:ce,id:ue},O,{children:k})),W?N.jsx(XY,L({"aria-describedby":ge,id:ce,labelId:ue,value:Y,input:Ne},X,{children:a})):Ne,m&&N.jsx(xg,L({id:ge},p,{children:m}))]}))}),Np=BEe;function UEe(e){return At("MuiToggleButton",e)}const jEe=_t("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),Wh=jEe,zEe=I.createContext({}),KY=zEe,VEe=I.createContext(void 0),JY=VEe;function HEe(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.indexOf(e)>=0:e===t}const WEe=["value"],QEe=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],YEe=e=>{const{classes:t,fullWidth:n,selected:r,disabled:i,size:o,color:a}=e,s={root:["root",r&&"selected",i&&"disabled",n&&"fullWidth",`size${nt(o)}`,a]};return kt(s,UEe,t)},GEe=Se(hs,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${nt(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),L({},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%"},{[`&.${Wh.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})`:cn(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Wh.selected}`]:{color:n,backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:cn(n,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${r} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:cn(n,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:cn(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)})}),qEe=I.forwardRef(function(t,n){const r=I.useContext(KY),{value:i}=r,o=Ge(r,WEe),a=I.useContext(JY),s=sk(L({},o,{selected:HEe(t.value,i)}),t),l=gt({props:s,name:"MuiToggleButton"}),{children:u,className:c,color:d="standard",disabled:p=!1,disableFocusRipple:h=!1,fullWidth:m=!1,onChange:b,onClick:O,selected:y,size:v="medium",value:S}=l,k=Ge(l,QEe),C=L({},l,{color:d,disabled:p,disableFocusRipple:h,fullWidth:m,size:v}),w=YEe(C),E=P=>{O&&(O(P,S),P.defaultPrevented)||b&&b(P,S)},$=a||"";return N.jsx(GEe,L({className:Je(o.className,w.root,c,$),disabled:p,focusRipple:!h,ref:n,onClick:E,onChange:b,value:S,ownerState:C,"aria-pressed":y},k,{children:u}))}),ZC=qEe;function ZEe(e){return At("MuiToggleButtonGroup",e)}const XEe=_t("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),Vr=XEe,KEe=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],JEe=e=>{const{classes:t,orientation:n,fullWidth:r,disabled:i}=e,o={root:["root",n==="vertical"&&"vertical",r&&"fullWidth"],grouped:["grouped",`grouped${nt(n)}`,i&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return kt(o,ZEe,t)},eSe=Se("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Vr.grouped}`]:t.grouped},{[`& .${Vr.grouped}`]:t[`grouped${nt(n.orientation)}`]},{[`& .${Vr.firstButton}`]:t.firstButton},{[`& .${Vr.lastButton}`]:t.lastButton},{[`& .${Vr.middleButton}`]:t.middleButton},t.root,n.orientation==="vertical"&&t.vertical,n.fullWidth&&t.fullWidth]}})(({ownerState:e,theme:t})=>L({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},e.orientation==="vertical"&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${Vr.grouped}`]:L({},e.orientation==="horizontal"?{[`&.${Vr.selected} + .${Vr.grouped}.${Vr.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${Vr.selected} + .${Vr.grouped}.${Vr.selected}`]:{borderTop:0,marginTop:0}})},e.orientation==="horizontal"?{[`& .${Vr.firstButton},& .${Vr.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Vr.lastButton},& .${Vr.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${Vr.firstButton},& .${Vr.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${Vr.lastButton},& .${Vr.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},e.orientation==="horizontal"?{[`& .${Vr.lastButton}.${Wh.disabled},& .${Vr.middleButton}.${Wh.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${Vr.lastButton}.${Wh.disabled},& .${Vr.middleButton}.${Wh.disabled}`]:{borderTop:"1px solid transparent"}})),tSe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiToggleButtonGroup"}),{children:i,className:o,color:a="standard",disabled:s=!1,exclusive:l=!1,fullWidth:u=!1,onChange:c,orientation:d="horizontal",size:p="medium",value:h}=r,m=Ge(r,KEe),b=L({},r,{disabled:s,fullWidth:u,orientation:d,size:p}),O=JEe(b),y=I.useCallback((E,$)=>{if(!c)return;const P=h&&h.indexOf($);let R;h&&P>=0?(R=h.slice(),R.splice(P,1)):R=h?h.concat($):[$],c(E,R)},[c,h]),v=I.useCallback((E,$)=>{c&&c(E,h===$?null:$)},[c,h]),S=I.useMemo(()=>({className:O.grouped,onChange:l?v:y,value:h,size:p,fullWidth:u,color:a,disabled:s}),[O.grouped,l,v,y,h,p,u,a,s]),k=que(i),C=k.length,w=E=>{const $=E===0,P=E===C-1;return $&&P?"":$?O.firstButton:P?O.lastButton:O.middleButton};return N.jsx(eSe,L({role:"group",className:Je(O.root,o),ref:n,ownerState:b},m,{children:N.jsx(KY.Provider,{value:S,children:k.map((E,$)=>N.jsx(JY.Provider,{value:w($),children:E},$))})}))}),nSe=tSe;var eG={exports:{}},tG={};/** * @license React * use-sync-external-store-with-selector.production.min.js * @@ -161,7 +161,7 @@ Error generating stack: `+o.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var q1=I;function GEe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qEe=typeof Object.is=="function"?Object.is:GEe,ZEe=q1.useSyncExternalStore,XEe=q1.useRef,KEe=q1.useEffect,JEe=q1.useMemo,eSe=q1.useDebugValue;WY.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=XEe(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=JEe(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),i!==void 0&&a.hasValue){var m=a.value;if(i(m,h))return d=m}return d=h}if(m=d,qEe(c,h))return m;var b=r(h);return i!==void 0&&i(m,b)?m:(c=h,d=b)}var u=!1,c,d,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,i]);var s=ZEe(e,o[0],o[1]);return KEe(function(){a.hasValue=!0,a.value=s},[s]),eSe(s),s};HY.exports=WY;var tSe=HY.exports,ss="default"in Um?Qt:Um,H8=Symbol.for("react-redux-context"),W8=typeof globalThis<"u"?globalThis:{};function nSe(){if(!ss.createContext)return{};const e=W8[H8]??(W8[H8]=new Map);let t=e.get(ss.createContext);return t||(t=ss.createContext(null),e.set(ss.createContext,t)),t}var Hd=nSe(),rSe=()=>{throw new Error("uSES not initialized!")};function GN(e=Hd){return function(){return ss.useContext(e)}}var QY=GN(),YY=rSe,iSe=e=>{YY=e},oSe=(e,t)=>e===t;function aSe(e=Hd){const t=e===Hd?QY:GN(e),n=(r,i={})=>{const{equalityFn:o=oSe,devModeChecks:a={}}=typeof i=="function"?{equalityFn:i}:i,{store:s,subscription:l,getServerState:u,stabilityCheck:c,identityFunctionCheck:d}=t();ss.useRef(!0);const p=ss.useCallback({[r.name](m){return r(m)}}[r.name],[r,c,a.stabilityCheck]),h=YY(l.addNestedSub,s.getState,u||s.getState,p,o);return ss.useDebugValue(h),h};return Object.assign(n,{withTypes:()=>n}),n}var _c=aSe();function sSe(e){e()}function lSe(){let e=null,t=null;return{clear(){e=null,t=null},notify(){sSe(()=>{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 Q8={notify(){},get:()=>[]};function uSe(e,t){let n,r=Q8,i=0,o=!1;function a(b){c();const O=r.subscribe(b);let y=!1;return()=>{y||(y=!0,O(),d())}}function s(){r.notify()}function l(){m.onStateChange&&m.onStateChange()}function u(){return o}function c(){i++,n||(n=t?t.addNestedSub(l):e.subscribe(l),r=lSe())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Q8)}function p(){o||(o=!0,c())}function h(){o&&(o=!1,d())}const m={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:u,trySubscribe:p,tryUnsubscribe:h,getListeners:()=>r};return m}var cSe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",dSe=cSe?ss.useLayoutEffect:ss.useEffect;function fSe({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const a=ss.useMemo(()=>{const u=uSe(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:o}},[e,r,i,o]),s=ss.useMemo(()=>e.getState(),[e]);dSe(()=>{const{subscription:u}=a;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),s!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[a,s]);const l=t||Hd;return ss.createElement(l.Provider,{value:a},n)}var pSe=fSe;function GY(e=Hd){const t=e===Hd?QY:GN(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var hSe=GY();function mSe(e=Hd){const t=e===Hd?hSe:GY(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var xg=mSe();iSe(tSe.useSyncExternalStoreWithSelector);/** + */var X1=I;function rSe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var iSe=typeof Object.is=="function"?Object.is:rSe,oSe=X1.useSyncExternalStore,aSe=X1.useRef,sSe=X1.useEffect,lSe=X1.useMemo,uSe=X1.useDebugValue;tG.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=aSe(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=lSe(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),i!==void 0&&a.hasValue){var m=a.value;if(i(m,h))return d=m}return d=h}if(m=d,iSe(c,h))return m;var b=r(h);return i!==void 0&&i(m,b)?m:(c=h,d=b)}var u=!1,c,d,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,i]);var s=oSe(e,o[0],o[1]);return sSe(function(){a.hasValue=!0,a.value=s},[s]),uSe(s),s};eG.exports=tG;var cSe=eG.exports,ss="default"in jm?Qt:jm,K8=Symbol.for("react-redux-context"),J8=typeof globalThis<"u"?globalThis:{};function dSe(){if(!ss.createContext)return{};const e=J8[K8]??(J8[K8]=new Map);let t=e.get(ss.createContext);return t||(t=ss.createContext(null),e.set(ss.createContext,t)),t}var Wd=dSe(),fSe=()=>{throw new Error("uSES not initialized!")};function KN(e=Wd){return function(){return ss.useContext(e)}}var nG=KN(),rG=fSe,pSe=e=>{rG=e},hSe=(e,t)=>e===t;function mSe(e=Wd){const t=e===Wd?nG:KN(e),n=(r,i={})=>{const{equalityFn:o=hSe,devModeChecks:a={}}=typeof i=="function"?{equalityFn:i}:i,{store:s,subscription:l,getServerState:u,stabilityCheck:c,identityFunctionCheck:d}=t();ss.useRef(!0);const p=ss.useCallback({[r.name](m){return r(m)}}[r.name],[r,c,a.stabilityCheck]),h=rG(l.addNestedSub,s.getState,u||s.getState,p,o);return ss.useDebugValue(h),h};return Object.assign(n,{withTypes:()=>n}),n}var Ic=mSe();function gSe(e){e()}function bSe(){let e=null,t=null;return{clear(){e=null,t=null},notify(){gSe(()=>{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 e7={notify(){},get:()=>[]};function ySe(e,t){let n,r=e7,i=0,o=!1;function a(b){c();const O=r.subscribe(b);let y=!1;return()=>{y||(y=!0,O(),d())}}function s(){r.notify()}function l(){m.onStateChange&&m.onStateChange()}function u(){return o}function c(){i++,n||(n=t?t.addNestedSub(l):e.subscribe(l),r=bSe())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=e7)}function p(){o||(o=!0,c())}function h(){o&&(o=!1,d())}const m={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:u,trySubscribe:p,tryUnsubscribe:h,getListeners:()=>r};return m}var OSe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",vSe=OSe?ss.useLayoutEffect:ss.useEffect;function ESe({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const a=ss.useMemo(()=>{const u=ySe(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:o}},[e,r,i,o]),s=ss.useMemo(()=>e.getState(),[e]);vSe(()=>{const{subscription:u}=a;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),s!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[a,s]);const l=t||Wd;return ss.createElement(l.Provider,{value:a},n)}var SSe=ESe;function iG(e=Wd){const t=e===Wd?nG:KN(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var TSe=iG();function wSe(e=Wd){const t=e===Wd?TSe:iG(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Ag=wSe();pSe(cSe.useSyncExternalStoreWithSelector);/** * @remix-run/router v1.14.2 * * Copyright (c) Remix Software Inc. @@ -170,8 +170,8 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function si(){return si=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Op(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function bSe(){return Math.random().toString(36).substr(2,8)}function G8(e,t){return{usr:e.state,key:e.key,idx:t}}function Ay(e,t,n,r){return n===void 0&&(n=null),si({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Rc(t):t,{state:n,key:t&&t.key||r||bSe()})}function Z1(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 Rc(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 ySe(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=hi.Pop,l=null,u=c();u==null&&(u=0,a.replaceState(si({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function d(){s=hi.Pop;let O=c(),y=O==null?null:O-u;u=O,l&&l({action:s,location:b.location,delta:y})}function p(O,y){s=hi.Push;let v=Ay(b.location,O,y);n&&n(v,O),u=c()+1;let S=G8(v,u),k=b.createHref(v);try{a.pushState(S,"",k)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(k)}o&&l&&l({action:s,location:b.location,delta:1})}function h(O,y){s=hi.Replace;let v=Ay(b.location,O,y);n&&n(v,O),u=c();let S=G8(v,u),k=b.createHref(v);a.replaceState(S,"",k),o&&l&&l({action:s,location:b.location,delta:0})}function m(O){let y=i.location.origin!=="null"?i.location.origin:i.location.href,v=typeof O=="string"?O:Z1(O);return Bn(y,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,y)}let b={get action(){return s},get location(){return e(i,a)},listen(O){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Y8,d),l=O,()=>{i.removeEventListener(Y8,d),l=null}},createHref(O){return t(i,O)},createURL:m,encodeLocation(O){let y=m(O);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:p,replace:h,go(O){return a.go(O)}};return b}var oi;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(oi||(oi={}));const OSe=new Set(["lazy","caseSensitive","path","id","index","children"]);function vSe(e){return e.index===!0}function U_(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,o)=>{let a=[...n,o],s=typeof i.id=="string"?i.id:a.join("-");if(Bn(i.index!==!0||!i.children,"Cannot specify children on an index route"),Bn(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),vSe(i)){let l=si({},i,t(i),{id:s});return r[s]=l,l}else{let l=si({},i,t(i),{id:s,children:void 0});return r[s]=l,i.children&&(l.children=U_(i.children,t,a,r)),l}})}function Qh(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Rc(t):t,i=X1(r.pathname||"/",n);if(i==null)return null;let o=qY(e);SSe(o);let a=null;for(let s=0;a==null&&s{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(Bn(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=Id([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(Bn(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),qY(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:_Se(u,o.index),routesMeta:c})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of ZY(o.path))i(o,a,l)}),t}function ZY(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=ZY(r.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function SSe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:RSe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const TSe=/^:[\w-]+$/,wSe=3,kSe=2,xSe=1,CSe=10,ASe=-2,q8=e=>e==="*";function _Se(e,t){let n=e.split("/"),r=n.length;return n.some(q8)&&(r+=ASe),t&&(r+=kSe),n.filter(i=>!q8(i)).reduce((i,o)=>i+(TSe.test(o)?wSe:o===""?xSe:CSe),r)}function RSe(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 ISe(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let a=0;a{let{paramName:p,isOptional:h}=c;if(p==="*"){let b=s[d]||"";a=o.slice(0,o.length-b.length).replace(/(.)\/+$/,"$1")}const m=s[d];return h&&!m?u[p]=void 0:u[p]=LSe(m||"",p),u},{}),pathname:o,pathnameBase:a,pattern:e}}function NSe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Op(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,(a,s,l)=>(r.push({paramName:s,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 PSe(e){try{return decodeURI(e)}catch(t){return Op(!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 LSe(e,t){try{return decodeURIComponent(e)}catch(n){return Op(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function X1(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 MSe(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Rc(e):e;return{pathname:n?n.startsWith("/")?n:$Se(n,t):t,search:BSe(r),hash:USe(i)}}function $Se(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 GC(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 XY(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function qN(e,t){let n=XY(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function ZN(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Rc(e):(i=si({},e),Bn(!i.pathname||!i.pathname.includes("?"),GC("?","pathname","search",i)),Bn(!i.pathname||!i.pathname.includes("#"),GC("#","pathname","hash",i)),Bn(!i.search||!i.search.includes("#"),GC("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=n;else{let d=t.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),d-=1;i.pathname=p.join("/")}s=d>=0?t[d]:"/"}let l=MSe(i,s),u=a&&a!=="/"&&a.endsWith("/"),c=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Id=e=>e.join("/").replace(/\/\/+/g,"/"),FSe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),BSe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,USe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class XN{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 KN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const KY=["post","put","patch","delete"],jSe=new Set(KY),zSe=["get",...KY],VSe=new Set(zSe),HSe=new Set([301,302,303,307,308]),WSe=new Set([307,308]),qC={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},QSe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},E0={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},JY=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,YSe=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),eG="remix-router-transitions";function GSe(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;Bn(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 Ee=e.detectErrorBoundary;i=_e=>({hasErrorBoundary:Ee(_e)})}else i=YSe;let o={},a=U_(e.routes,i,void 0,o),s,l=e.basename||"/",u=si({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),c=null,d=new Set,p=null,h=null,m=null,b=e.hydrationData!=null,O=Qh(a,e.history.location,l),y=null;if(O==null){let Ee=Rs(404,{pathname:e.history.location.pathname}),{matches:_e,route:pe}=r7(a);O=_e,y={[pe.id]:Ee}}let v,S=O.some(Ee=>Ee.route.lazy),k=O.some(Ee=>Ee.route.loader);if(S)v=!1;else if(!k)v=!0;else if(u.v7_partialHydration){let Ee=e.hydrationData?e.hydrationData.loaderData:null,_e=e.hydrationData?e.hydrationData.errors:null;v=O.every(pe=>pe.route.loader&&pe.route.loader.hydrate!==!0&&(Ee&&Ee[pe.route.id]!==void 0||_e&&_e[pe.route.id]!==void 0))}else v=e.hydrationData!=null;let C,w={historyAction:e.history.action,location:e.history.location,matches:O,initialized:v,navigation:qC,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||y,fetchers:new Map,blockers:new Map},E=hi.Pop,$=!1,N,R=!1,B=new Map,U=null,V=!1,z=!1,W=[],X=[],q=new Map,Y=0,Z=-1,j=new Map,se=new Set,ve=new Map,G=new Map,ce=new Set,ge=new Map,ue=new Map,xe=!1;function Ne(){if(c=e.history.listen(Ee=>{let{action:_e,location:pe,delta:lt}=Ee;if(xe){xe=!1;return}Op(ue.size===0||lt!=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 at=it({currentLocation:w.location,nextLocation:pe,historyAction:_e});if(at&<!=null){xe=!0,e.history.go(lt*-1),qe(at,{state:"blocked",location:pe,proceed(){qe(at,{state:"proceeding",proceed:void 0,reset:void 0,location:pe}),e.history.go(lt)},reset(){let Mt=new Map(w.blockers);Mt.set(at,E0),Me({blockers:Mt})}});return}return $e(_e,pe)}),n){oTe(t,B);let Ee=()=>aTe(t,B);t.addEventListener("pagehide",Ee),U=()=>t.removeEventListener("pagehide",Ee)}return w.initialized||$e(hi.Pop,w.location,{initialHydration:!0}),C}function Ve(){c&&c(),U&&U(),d.clear(),N&&N.abort(),w.fetchers.forEach((Ee,_e)=>de(_e)),w.blockers.forEach((Ee,_e)=>vt(_e))}function Ke(Ee){return d.add(Ee),()=>d.delete(Ee)}function Me(Ee,_e){_e===void 0&&(_e={}),w=si({},w,Ee);let pe=[],lt=[];u.v7_fetcherPersist&&w.fetchers.forEach((at,Mt)=>{at.state==="idle"&&(ce.has(Mt)?lt.push(Mt):pe.push(Mt))}),[...d].forEach(at=>at(w,{deletedFetchers:lt,unstable_viewTransitionOpts:_e.viewTransitionOpts,unstable_flushSync:_e.flushSync===!0})),u.v7_fetcherPersist&&(pe.forEach(at=>w.fetchers.delete(at)),lt.forEach(at=>de(at)))}function Ye(Ee,_e,pe){var lt,at;let{flushSync:Mt}=pe===void 0?{}:pe,$t=w.actionData!=null&&w.navigation.formMethod!=null&&hl(w.navigation.formMethod)&&w.navigation.state==="loading"&&((lt=Ee.state)==null?void 0:lt._isRedirect)!==!0,It;_e.actionData?Object.keys(_e.actionData).length>0?It=_e.actionData:It=null:$t?It=w.actionData:It=null;let Ct=_e.loaderData?n7(w.loaderData,_e.loaderData,_e.matches||[],_e.errors):w.loaderData,Zt=w.blockers;Zt.size>0&&(Zt=new Map(Zt),Zt.forEach((Qe,ot)=>Zt.set(ot,E0)));let Ie=$===!0||w.navigation.formMethod!=null&&hl(w.navigation.formMethod)&&((at=Ee.state)==null?void 0:at._isRedirect)!==!0;s&&(a=s,s=void 0),V||E===hi.Pop||(E===hi.Push?e.history.push(Ee,Ee.state):E===hi.Replace&&e.history.replace(Ee,Ee.state));let we;if(E===hi.Pop){let Qe=B.get(w.location.pathname);Qe&&Qe.has(Ee.pathname)?we={currentLocation:w.location,nextLocation:Ee}:B.has(Ee.pathname)&&(we={currentLocation:Ee,nextLocation:w.location})}else if(R){let Qe=B.get(w.location.pathname);Qe?Qe.add(Ee.pathname):(Qe=new Set([Ee.pathname]),B.set(w.location.pathname,Qe)),we={currentLocation:w.location,nextLocation:Ee}}Me(si({},_e,{actionData:It,loaderData:Ct,historyAction:E,location:Ee,initialized:!0,navigation:qC,revalidation:"idle",restoreScrollPosition:pn(Ee,_e.matches||w.matches),preventScrollReset:Ie,blockers:Zt}),{viewTransitionOpts:we,flushSync:Mt===!0}),E=hi.Pop,$=!1,R=!1,V=!1,z=!1,W=[],X=[]}async function ye(Ee,_e){if(typeof Ee=="number"){e.history.go(Ee);return}let pe=j_(w.location,w.matches,l,u.v7_prependBasename,Ee,u.v7_relativeSplatPath,_e==null?void 0:_e.fromRouteId,_e==null?void 0:_e.relative),{path:lt,submission:at,error:Mt}=Z8(u.v7_normalizeFormMethod,!1,pe,_e),$t=w.location,It=Ay(w.location,lt,_e&&_e.state);It=si({},It,e.history.encodeLocation(It));let Ct=_e&&_e.replace!=null?_e.replace:void 0,Zt=hi.Push;Ct===!0?Zt=hi.Replace:Ct===!1||at!=null&&hl(at.formMethod)&&at.formAction===w.location.pathname+w.location.search&&(Zt=hi.Replace);let Ie=_e&&"preventScrollReset"in _e?_e.preventScrollReset===!0:void 0,we=(_e&&_e.unstable_flushSync)===!0,Qe=it({currentLocation:$t,nextLocation:It,historyAction:Zt});if(Qe){qe(Qe,{state:"blocked",location:It,proceed(){qe(Qe,{state:"proceeding",proceed:void 0,reset:void 0,location:It}),ye(Ee,_e)},reset(){let ot=new Map(w.blockers);ot.set(Qe,E0),Me({blockers:ot})}});return}return await $e(Zt,It,{submission:at,pendingError:Mt,preventScrollReset:Ie,replace:_e&&_e.replace,enableViewTransition:_e&&_e.unstable_viewTransition,flushSync:we})}function ze(){if(Le(),Me({revalidation:"loading"}),w.navigation.state!=="submitting"){if(w.navigation.state==="idle"){$e(w.historyAction,w.location,{startUninterruptedRevalidation:!0});return}$e(E||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation})}}async function $e(Ee,_e,pe){N&&N.abort(),N=null,E=Ee,V=(pe&&pe.startUninterruptedRevalidation)===!0,dn(w.location,w.matches),$=(pe&&pe.preventScrollReset)===!0,R=(pe&&pe.enableViewTransition)===!0;let lt=s||a,at=pe&&pe.overrideNavigation,Mt=Qh(lt,_e,l),$t=(pe&&pe.flushSync)===!0;if(!Mt){let ot=Rs(404,{pathname:_e.pathname}),{matches:rn,route:Wt}=r7(lt);Et(),Ye(_e,{matches:rn,loaderData:{},errors:{[Wt.id]:ot}},{flushSync:$t});return}if(w.initialized&&!z&&JSe(w.location,_e)&&!(pe&&pe.submission&&hl(pe.submission.formMethod))){Ye(_e,{matches:Mt},{flushSync:$t});return}N=new AbortController;let It=T0(e.history,_e,N.signal,pe&&pe.submission),Ct,Zt;if(pe&&pe.pendingError)Zt={[Rb(Mt).route.id]:pe.pendingError};else if(pe&&pe.submission&&hl(pe.submission.formMethod)){let ot=await We(It,_e,pe.submission,Mt,{replace:pe.replace,flushSync:$t});if(ot.shortCircuited)return;Ct=ot.pendingActionData,Zt=ot.pendingActionError,at=ZC(_e,pe.submission),$t=!1,It=new Request(It.url,{signal:It.signal})}let{shortCircuited:Ie,loaderData:we,errors:Qe}=await dt(It,_e,Mt,at,pe&&pe.submission,pe&&pe.fetcherSubmission,pe&&pe.replace,pe&&pe.initialHydration===!0,$t,Ct,Zt);Ie||(N=null,Ye(_e,si({matches:Mt},Ct?{actionData:Ct}:{},{loaderData:we,errors:Qe})))}async function We(Ee,_e,pe,lt,at){at===void 0&&(at={}),Le();let Mt=rTe(_e,pe);Me({navigation:Mt},{flushSync:at.flushSync===!0});let $t,It=V_(lt,_e);if(!It.route.action&&!It.route.lazy)$t={type:oi.error,error:Rs(405,{method:Ee.method,pathname:_e.pathname,routeId:It.route.id})};else if($t=await S0("action",Ee,It,lt,o,i,l,u.v7_relativeSplatPath),Ee.signal.aborted)return{shortCircuited:!0};if(jf($t)){let Ct;return at&&at.replace!=null?Ct=at.replace:Ct=$t.location===w.location.pathname+w.location.search,await J(w,$t,{submission:pe,replace:Ct}),{shortCircuited:!0}}if(Yh($t)){let Ct=Rb(lt,It.route.id);return(at&&at.replace)!==!0&&(E=hi.Push),{pendingActionData:{},pendingActionError:{[Ct.route.id]:$t.error}}}if(Uf($t))throw Rs(400,{type:"defer-action"});return{pendingActionData:{[It.route.id]:$t.data}}}async function dt(Ee,_e,pe,lt,at,Mt,$t,It,Ct,Zt,Ie){let we=lt||ZC(_e,at),Qe=at||Mt||a7(we),ot=s||a,[rn,Wt]=X8(e.history,w,pe,Qe,_e,u.v7_partialHydration&&It===!0,z,W,X,ce,ve,se,ot,l,Zt,Ie);if(Et(bn=>!(pe&&pe.some(Wn=>Wn.route.id===bn))||rn&&rn.some(Wn=>Wn.route.id===bn)),Z=++Y,rn.length===0&&Wt.length===0){let bn=pt();return Ye(_e,si({matches:pe,loaderData:{},errors:Ie||null},Zt?{actionData:Zt}:{},bn?{fetchers:new Map(w.fetchers)}:{}),{flushSync:Ct}),{shortCircuited:!0}}if(!V&&(!u.v7_partialHydration||!It)){Wt.forEach(Wn=>{let Qn=w.fetchers.get(Wn.key),ht=w0(void 0,Qn?Qn.data:void 0);w.fetchers.set(Wn.key,ht)});let bn=Zt||w.actionData;Me(si({navigation:we},bn?Object.keys(bn).length===0?{actionData:null}:{actionData:bn}:{},Wt.length>0?{fetchers:new Map(w.fetchers)}:{}),{flushSync:Ct})}Wt.forEach(bn=>{q.has(bn.key)&&Te(bn.key),bn.controller&&q.set(bn.key,bn.controller)});let mn=()=>Wt.forEach(bn=>Te(bn.key));N&&N.signal.addEventListener("abort",mn);let{results:tr,loaderResults:Ue,fetcherResults:Ce}=await Re(w.matches,pe,rn,Wt,Ee);if(Ee.signal.aborted)return{shortCircuited:!0};N&&N.signal.removeEventListener("abort",mn),Wt.forEach(bn=>q.delete(bn.key));let mt=i7(tr);if(mt){if(mt.idx>=rn.length){let bn=Wt[mt.idx-rn.length].key;se.add(bn)}return await J(w,mt.result,{replace:$t}),{shortCircuited:!0}}let{loaderData:Dt,errors:tn}=t7(w,pe,rn,Ue,Ie,Wt,Ce,ge);ge.forEach((bn,Wn)=>{bn.subscribe(Qn=>{(Qn||bn.done)&&ge.delete(Wn)})});let Mn=pt(),Dn=xt(Z),Kt=Mn||Dn||Wt.length>0;return si({loaderData:Dt,errors:tn},Kt?{fetchers:new Map(w.fetchers)}:{})}function Be(Ee,_e,pe,lt){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.");q.has(Ee)&&Te(Ee);let at=(lt&<.unstable_flushSync)===!0,Mt=s||a,$t=j_(w.location,w.matches,l,u.v7_prependBasename,pe,u.v7_relativeSplatPath,_e,lt==null?void 0:lt.relative),It=Qh(Mt,$t,l);if(!It){ie(Ee,_e,Rs(404,{pathname:$t}),{flushSync:at});return}let{path:Ct,submission:Zt,error:Ie}=Z8(u.v7_normalizeFormMethod,!0,$t,lt);if(Ie){ie(Ee,_e,Ie,{flushSync:at});return}let we=V_(It,Ct);if($=(lt&<.preventScrollReset)===!0,Zt&&hl(Zt.formMethod)){re(Ee,_e,Ct,we,It,at,Zt);return}ve.set(Ee,{routeId:_e,path:Ct}),ee(Ee,_e,Ct,we,It,at,Zt)}async function re(Ee,_e,pe,lt,at,Mt,$t){if(Le(),ve.delete(Ee),!lt.route.action&&!lt.route.lazy){let Wn=Rs(405,{method:$t.formMethod,pathname:pe,routeId:_e});ie(Ee,_e,Wn,{flushSync:Mt});return}let It=w.fetchers.get(Ee);De(Ee,iTe($t,It),{flushSync:Mt});let Ct=new AbortController,Zt=T0(e.history,pe,Ct.signal,$t);q.set(Ee,Ct);let Ie=Y,we=await S0("action",Zt,lt,at,o,i,l,u.v7_relativeSplatPath);if(Zt.signal.aborted){q.get(Ee)===Ct&&q.delete(Ee);return}if(u.v7_fetcherPersist&&ce.has(Ee)){if(jf(we)||Yh(we)){De(Ee,Wc(void 0));return}}else{if(jf(we))if(q.delete(Ee),Z>Ie){De(Ee,Wc(void 0));return}else return se.add(Ee),De(Ee,w0($t)),J(w,we,{fetcherSubmission:$t});if(Yh(we)){ie(Ee,_e,we.error);return}}if(Uf(we))throw Rs(400,{type:"defer-action"});let Qe=w.navigation.location||w.location,ot=T0(e.history,Qe,Ct.signal),rn=s||a,Wt=w.navigation.state!=="idle"?Qh(rn,w.navigation.location,l):w.matches;Bn(Wt,"Didn't find any matches after fetcher action");let mn=++Y;j.set(Ee,mn);let tr=w0($t,we.data);w.fetchers.set(Ee,tr);let[Ue,Ce]=X8(e.history,w,Wt,$t,Qe,!1,z,W,X,ce,ve,se,rn,l,{[lt.route.id]:we.data},void 0);Ce.filter(Wn=>Wn.key!==Ee).forEach(Wn=>{let Qn=Wn.key,ht=w.fetchers.get(Qn),Yr=w0(void 0,ht?ht.data:void 0);w.fetchers.set(Qn,Yr),q.has(Qn)&&Te(Qn),Wn.controller&&q.set(Qn,Wn.controller)}),Me({fetchers:new Map(w.fetchers)});let mt=()=>Ce.forEach(Wn=>Te(Wn.key));Ct.signal.addEventListener("abort",mt);let{results:Dt,loaderResults:tn,fetcherResults:Mn}=await Re(w.matches,Wt,Ue,Ce,ot);if(Ct.signal.aborted)return;Ct.signal.removeEventListener("abort",mt),j.delete(Ee),q.delete(Ee),Ce.forEach(Wn=>q.delete(Wn.key));let Dn=i7(Dt);if(Dn){if(Dn.idx>=Ue.length){let Wn=Ce[Dn.idx-Ue.length].key;se.add(Wn)}return J(w,Dn.result)}let{loaderData:Kt,errors:bn}=t7(w,w.matches,Ue,tn,void 0,Ce,Mn,ge);if(w.fetchers.has(Ee)){let Wn=Wc(we.data);w.fetchers.set(Ee,Wn)}xt(mn),w.navigation.state==="loading"&&mn>Z?(Bn(E,"Expected pending action"),N&&N.abort(),Ye(w.navigation.location,{matches:Wt,loaderData:Kt,errors:bn,fetchers:new Map(w.fetchers)})):(Me({errors:bn,loaderData:n7(w.loaderData,Kt,Wt,bn),fetchers:new Map(w.fetchers)}),z=!1)}async function ee(Ee,_e,pe,lt,at,Mt,$t){let It=w.fetchers.get(Ee);De(Ee,w0($t,It?It.data:void 0),{flushSync:Mt});let Ct=new AbortController,Zt=T0(e.history,pe,Ct.signal);q.set(Ee,Ct);let Ie=Y,we=await S0("loader",Zt,lt,at,o,i,l,u.v7_relativeSplatPath);if(Uf(we)&&(we=await rG(we,Zt.signal,!0)||we),q.get(Ee)===Ct&&q.delete(Ee),!Zt.signal.aborted){if(ce.has(Ee)){De(Ee,Wc(void 0));return}if(jf(we))if(Z>Ie){De(Ee,Wc(void 0));return}else{se.add(Ee),await J(w,we);return}if(Yh(we)){ie(Ee,_e,we.error);return}Bn(!Uf(we),"Unhandled fetcher deferred data"),De(Ee,Wc(we.data))}}async function J(Ee,_e,pe){let{submission:lt,fetcherSubmission:at,replace:Mt}=pe===void 0?{}:pe;_e.revalidate&&(z=!0);let $t=Ay(Ee.location,_e.location,{_isRedirect:!0});if(Bn($t,"Expected a location on the redirect navigation"),n){let Qe=!1;if(_e.reloadDocument)Qe=!0;else if(JY.test(_e.location)){const ot=e.history.createURL(_e.location);Qe=ot.origin!==t.location.origin||X1(ot.pathname,l)==null}if(Qe){Mt?t.location.replace(_e.location):t.location.assign(_e.location);return}}N=null;let It=Mt===!0?hi.Replace:hi.Push,{formMethod:Ct,formAction:Zt,formEncType:Ie}=Ee.navigation;!lt&&!at&&Ct&&Zt&&Ie&&(lt=a7(Ee.navigation));let we=lt||at;if(WSe.has(_e.status)&&we&&hl(we.formMethod))await $e(It,$t,{submission:si({},we,{formAction:_e.location}),preventScrollReset:$});else{let Qe=ZC($t,lt);await $e(It,$t,{overrideNavigation:Qe,fetcherSubmission:at,preventScrollReset:$})}}async function Re(Ee,_e,pe,lt,at){let Mt=await Promise.all([...pe.map(Ct=>S0("loader",at,Ct,_e,o,i,l,u.v7_relativeSplatPath)),...lt.map(Ct=>Ct.matches&&Ct.match&&Ct.controller?S0("loader",T0(e.history,Ct.path,Ct.controller.signal),Ct.match,Ct.matches,o,i,l,u.v7_relativeSplatPath):{type:oi.error,error:Rs(404,{pathname:Ct.path})})]),$t=Mt.slice(0,pe.length),It=Mt.slice(pe.length);return await Promise.all([o7(Ee,pe,$t,$t.map(()=>at.signal),!1,w.loaderData),o7(Ee,lt.map(Ct=>Ct.match),It,lt.map(Ct=>Ct.controller?Ct.controller.signal:null),!0)]),{results:Mt,loaderResults:$t,fetcherResults:It}}function Le(){z=!0,W.push(...Et()),ve.forEach((Ee,_e)=>{q.has(_e)&&(X.push(_e),Te(_e))})}function De(Ee,_e,pe){pe===void 0&&(pe={}),w.fetchers.set(Ee,_e),Me({fetchers:new Map(w.fetchers)},{flushSync:(pe&&pe.flushSync)===!0})}function ie(Ee,_e,pe,lt){lt===void 0&&(lt={});let at=Rb(w.matches,_e);de(Ee),Me({errors:{[at.route.id]:pe},fetchers:new Map(w.fetchers)},{flushSync:(lt&<.flushSync)===!0})}function fe(Ee){return u.v7_fetcherPersist&&(G.set(Ee,(G.get(Ee)||0)+1),ce.has(Ee)&&ce.delete(Ee)),w.fetchers.get(Ee)||QSe}function de(Ee){let _e=w.fetchers.get(Ee);q.has(Ee)&&!(_e&&_e.state==="loading"&&j.has(Ee))&&Te(Ee),ve.delete(Ee),j.delete(Ee),se.delete(Ee),ce.delete(Ee),w.fetchers.delete(Ee)}function Oe(Ee){if(u.v7_fetcherPersist){let _e=(G.get(Ee)||0)-1;_e<=0?(G.delete(Ee),ce.add(Ee)):G.set(Ee,_e)}else de(Ee);Me({fetchers:new Map(w.fetchers)})}function Te(Ee){let _e=q.get(Ee);Bn(_e,"Expected fetch controller: "+Ee),_e.abort(),q.delete(Ee)}function rt(Ee){for(let _e of Ee){let pe=fe(_e),lt=Wc(pe.data);w.fetchers.set(_e,lt)}}function pt(){let Ee=[],_e=!1;for(let pe of se){let lt=w.fetchers.get(pe);Bn(lt,"Expected fetcher: "+pe),lt.state==="loading"&&(se.delete(pe),Ee.push(pe),_e=!0)}return rt(Ee),_e}function xt(Ee){let _e=[];for(let[pe,lt]of j)if(lt0}function et(Ee,_e){let pe=w.blockers.get(Ee)||E0;return ue.get(Ee)!==_e&&ue.set(Ee,_e),pe}function vt(Ee){w.blockers.delete(Ee),ue.delete(Ee)}function qe(Ee,_e){let pe=w.blockers.get(Ee)||E0;Bn(pe.state==="unblocked"&&_e.state==="blocked"||pe.state==="blocked"&&_e.state==="blocked"||pe.state==="blocked"&&_e.state==="proceeding"||pe.state==="blocked"&&_e.state==="unblocked"||pe.state==="proceeding"&&_e.state==="unblocked","Invalid blocker state transition: "+pe.state+" -> "+_e.state);let lt=new Map(w.blockers);lt.set(Ee,_e),Me({blockers:lt})}function it(Ee){let{currentLocation:_e,nextLocation:pe,historyAction:lt}=Ee;if(ue.size===0)return;ue.size>1&&Op(!1,"A router only supports one blocker at a time");let at=Array.from(ue.entries()),[Mt,$t]=at[at.length-1],It=w.blockers.get(Mt);if(!(It&&It.state==="proceeding")&&$t({currentLocation:_e,nextLocation:pe,historyAction:lt}))return Mt}function Et(Ee){let _e=[];return ge.forEach((pe,lt)=>{(!Ee||Ee(lt))&&(pe.cancel(),_e.push(lt),ge.delete(lt))}),_e}function Nt(Ee,_e,pe){if(p=Ee,m=_e,h=pe||null,!b&&w.navigation===qC){b=!0;let lt=pn(w.location,w.matches);lt!=null&&Me({restoreScrollPosition:lt})}return()=>{p=null,m=null,h=null}}function on(Ee,_e){return h&&h(Ee,_e.map(lt=>ESe(lt,w.loaderData)))||Ee.key}function dn(Ee,_e){if(p&&m){let pe=on(Ee,_e);p[pe]=m()}}function pn(Ee,_e){if(p){let pe=on(Ee,_e),lt=p[pe];if(typeof lt=="number")return lt}return null}function zn(Ee){o={},s=U_(Ee,i,void 0,o)}return C={get basename(){return l},get future(){return u},get state(){return w},get routes(){return a},get window(){return t},initialize:Ne,subscribe:Ke,enableScrollRestoration:Nt,navigate:ye,fetch:Be,revalidate:ze,createHref:Ee=>e.history.createHref(Ee),encodeLocation:Ee=>e.history.encodeLocation(Ee),getFetcher:fe,deleteFetcher:Oe,dispose:Ve,getBlocker:et,deleteBlocker:vt,_internalFetchControllers:q,_internalActiveDeferreds:ge,_internalSetRoutes:zn},C}function qSe(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function j_(e,t,n,r,i,o,a,s){let l,u;if(a){l=[];for(let d of t)if(l.push(d),d.route.id===a){u=d;break}}else l=t,u=t[t.length-1];let c=ZN(i||".",qN(l,o),X1(e.pathname,n)||e.pathname,s==="path");return i==null&&(c.search=e.search,c.hash=e.hash),(i==null||i===""||i===".")&&u&&u.route.index&&!JN(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:Id([n,c.pathname])),Z1(c)}function Z8(e,t,n,r){if(!r||!qSe(r))return{path:n};if(r.formMethod&&!nTe(r.formMethod))return{path:n,error:Rs(405,{method:r.formMethod})};let i=()=>({path:n,error:Rs(400,{type:"invalid-body"})}),o=r.formMethod||"get",a=e?o.toUpperCase():o.toLowerCase(),s=nG(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!hl(a))return i();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((h,m)=>{let[b,O]=m;return""+h+b+"="+O+` -`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!hl(a))return i();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return i()}}}Bn(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=z_(r.formData),u=r.formData;else if(r.body instanceof FormData)l=z_(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=e7(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=e7(l)}catch{return i()}let c={formMethod:a,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(hl(c.formMethod))return{path:n,submission:c};let d=Rc(n);return t&&d.search&&JN(d.search)&&l.append("index",""),d.search="?"+l,{path:Z1(d),submission:c}}function ZSe(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 X8(e,t,n,r,i,o,a,s,l,u,c,d,p,h,m,b){let O=b?Object.values(b)[0]:m?Object.values(m)[0]:void 0,y=e.createURL(t.location),v=e.createURL(i),S=b?Object.keys(b)[0]:void 0,C=ZSe(n,S).filter((E,$)=>{let{route:N}=E;if(N.lazy)return!0;if(N.loader==null)return!1;if(o)return N.loader.hydrate?!0:t.loaderData[N.id]===void 0&&(!t.errors||t.errors[N.id]===void 0);if(XSe(t.loaderData,t.matches[$],E)||s.some(U=>U===E.route.id))return!0;let R=t.matches[$],B=E;return K8(E,si({currentUrl:y,currentParams:R.params,nextUrl:v,nextParams:B.params},r,{actionResult:O,defaultShouldRevalidate:a||y.pathname+y.search===v.pathname+v.search||y.search!==v.search||tG(R,B)}))}),w=[];return c.forEach((E,$)=>{if(o||!n.some(V=>V.route.id===E.routeId)||u.has($))return;let N=Qh(p,E.path,h);if(!N){w.push({key:$,routeId:E.routeId,path:E.path,matches:null,match:null,controller:null});return}let R=t.fetchers.get($),B=V_(N,E.path),U=!1;d.has($)?U=!1:l.includes($)?U=!0:R&&R.state!=="idle"&&R.data===void 0?U=a:U=K8(B,si({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:v,nextParams:n[n.length-1].params},r,{actionResult:O,defaultShouldRevalidate:a})),U&&w.push({key:$,routeId:E.routeId,path:E.path,matches:N,match:B,controller:new AbortController})}),[C,w]}function XSe(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function tG(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function K8(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function J8(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];Bn(i,"No route found in manifest");let o={};for(let a in r){let l=i[a]!==void 0&&a!=="hasErrorBoundary";Op(!l,'Route "'+i.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!l&&!OSe.has(a)&&(o[a]=r[a])}Object.assign(i,o),Object.assign(i,si({},t(i),{lazy:void 0}))}async function S0(e,t,n,r,i,o,a,s,l){l===void 0&&(l={});let u,c,d,p=b=>{let O,y=new Promise((v,S)=>O=S);return d=()=>O(),t.signal.addEventListener("abort",d),Promise.race([b({request:t,params:n.params,context:l.requestContext}),y])};try{let b=n.route[e];if(n.route.lazy)if(b){let O,y=await Promise.all([p(b).catch(v=>{O=v}),J8(n.route,o,i)]);if(O)throw O;c=y[0]}else if(await J8(n.route,o,i),b=n.route[e],b)c=await p(b);else if(e==="action"){let O=new URL(t.url),y=O.pathname+O.search;throw Rs(405,{method:t.method,pathname:y,routeId:n.route.id})}else return{type:oi.data,data:void 0};else if(b)c=await p(b);else{let O=new URL(t.url),y=O.pathname+O.search;throw Rs(404,{pathname:y})}Bn(c!==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(b){u=oi.error,c=b}finally{d&&t.signal.removeEventListener("abort",d)}if(tTe(c)){let b=c.status;if(HSe.has(b)){let y=c.headers.get("Location");if(Bn(y,"Redirects returned/thrown from loaders/actions must have a Location header"),!JY.test(y))y=j_(new URL(t.url),r.slice(0,r.indexOf(n)+1),a,!0,y,s);else if(!l.isStaticRequest){let v=new URL(t.url),S=y.startsWith("//")?new URL(v.protocol+y):new URL(y),k=X1(S.pathname,a)!=null;S.origin===v.origin&&k&&(y=S.pathname+S.search+S.hash)}if(l.isStaticRequest)throw c.headers.set("Location",y),c;return{type:oi.redirect,status:b,location:y,revalidate:c.headers.get("X-Remix-Revalidate")!==null,reloadDocument:c.headers.get("X-Remix-Reload-Document")!==null}}if(l.isRouteRequest)throw{type:u===oi.error?oi.error:oi.data,response:c};let O;try{let y=c.headers.get("Content-Type");y&&/\bapplication\/json\b/.test(y)?c.body==null?O=null:O=await c.json():O=await c.text()}catch(y){return{type:oi.error,error:y}}return u===oi.error?{type:u,error:new XN(b,c.statusText,O),headers:c.headers}:{type:oi.data,data:O,statusCode:c.status,headers:c.headers}}if(u===oi.error)return{type:u,error:c};if(eTe(c)){var h,m;return{type:oi.deferred,deferredData:c,statusCode:(h=c.init)==null?void 0:h.status,headers:((m=c.init)==null?void 0:m.headers)&&new Headers(c.init.headers)}}return{type:oi.data,data:c}}function T0(e,t,n,r){let i=e.createURL(nG(t)).toString(),o={signal:n};if(r&&hl(r.formMethod)){let{formMethod:a,formEncType:s}=r;o.method=a.toUpperCase(),s==="application/json"?(o.headers=new Headers({"Content-Type":s}),o.body=JSON.stringify(r.json)):s==="text/plain"?o.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?o.body=z_(r.formData):o.body=r.formData}return new Request(i,o)}function z_(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function e7(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function KSe(e,t,n,r,i){let o={},a=null,s,l=!1,u={};return n.forEach((c,d)=>{let p=t[d].route.id;if(Bn(!jf(c),"Cannot handle redirect results in processLoaderData"),Yh(c)){let h=Rb(e,p),m=c.error;r&&(m=Object.values(r)[0],r=void 0),a=a||{},a[h.route.id]==null&&(a[h.route.id]=m),o[p]=void 0,l||(l=!0,s=KN(c.error)?c.error.status:500),c.headers&&(u[p]=c.headers)}else Uf(c)?(i.set(p,c.deferredData),o[p]=c.deferredData.data):o[p]=c.data,c.statusCode!=null&&c.statusCode!==200&&!l&&(s=c.statusCode),c.headers&&(u[p]=c.headers)}),r&&(a=r,o[Object.keys(r)[0]]=void 0),{loaderData:o,errors:a,statusCode:s||200,loaderHeaders:u}}function t7(e,t,n,r,i,o,a,s){let{loaderData:l,errors:u}=KSe(t,n,r,i,s);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function r7(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 Rs(e,t){let{pathname:n,routeId:r,method:i,type:o}=t===void 0?{}:t,a="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(a="Bad Request",i&&n&&r?s="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.":o==="defer-action"?s="defer() is not supported in actions":o==="invalid-body"&&(s="Unable to encode submission body")):e===403?(a="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",s='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",i&&n&&r?s="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&&(s='Invalid request method "'+i.toUpperCase()+'"')),new XN(e||500,a,new Error(s),!0)}function i7(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(jf(n))return{result:n,idx:t}}}function nG(e){let t=typeof e=="string"?Rc(e):e;return Z1(si({},t,{hash:""}))}function JSe(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Uf(e){return e.type===oi.deferred}function Yh(e){return e.type===oi.error}function jf(e){return(e&&e.type)===oi.redirect}function eTe(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 tTe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function nTe(e){return VSe.has(e.toLowerCase())}function hl(e){return jSe.has(e.toLowerCase())}async function o7(e,t,n,r,i,o){for(let a=0;ad.route.id===l.route.id),c=u!=null&&!tG(u,l)&&(o&&o[l.route.id])!==void 0;if(Uf(s)&&(i||c)){let d=r[a];Bn(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await rG(s,d,i).then(p=>{p&&(n[a]=p||n[a])})}}}async function rG(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:oi.data,data:e.deferredData.unwrappedData}}catch(i){return{type:oi.error,error:i}}return{type:oi.data,data:e.deferredData.data}}}function JN(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function V_(e,t){let n=typeof t=="string"?Rc(t).search:t.search;if(e[e.length-1].route.index&&JN(n||""))return e[e.length-1];let r=XY(e);return r[r.length-1]}function a7(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:o,json:a}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function ZC(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 rTe(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 w0(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 iTe(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 Wc(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 oTe(e,t){try{let n=e.sessionStorage.getItem(eG);if(n){let r=JSON.parse(n);for(let[i,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(i,new Set(o||[]))}}catch{}}function aTe(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(eG,JSON.stringify(n))}catch(r){Op(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + */function li(){return li=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Op(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function xSe(){return Math.random().toString(36).substr(2,8)}function n7(e,t){return{usr:e.state,key:e.key,idx:t}}function Iy(e,t,n,r){return n===void 0&&(n=null),li({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Dc(t):t,{state:n,key:t&&t.key||r||xSe()})}function K1(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 Dc(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 CSe(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=hi.Pop,l=null,u=c();u==null&&(u=0,a.replaceState(li({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function d(){s=hi.Pop;let O=c(),y=O==null?null:O-u;u=O,l&&l({action:s,location:b.location,delta:y})}function p(O,y){s=hi.Push;let v=Iy(b.location,O,y);n&&n(v,O),u=c()+1;let S=n7(v,u),k=b.createHref(v);try{a.pushState(S,"",k)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(k)}o&&l&&l({action:s,location:b.location,delta:1})}function h(O,y){s=hi.Replace;let v=Iy(b.location,O,y);n&&n(v,O),u=c();let S=n7(v,u),k=b.createHref(v);a.replaceState(S,"",k),o&&l&&l({action:s,location:b.location,delta:0})}function m(O){let y=i.location.origin!=="null"?i.location.origin:i.location.href,v=typeof O=="string"?O:K1(O);return Bn(y,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,y)}let b={get action(){return s},get location(){return e(i,a)},listen(O){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(t7,d),l=O,()=>{i.removeEventListener(t7,d),l=null}},createHref(O){return t(i,O)},createURL:m,encodeLocation(O){let y=m(O);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:p,replace:h,go(O){return a.go(O)}};return b}var ai;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ai||(ai={}));const ASe=new Set(["lazy","caseSensitive","path","id","index","children"]);function _Se(e){return e.index===!0}function z_(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,o)=>{let a=[...n,o],s=typeof i.id=="string"?i.id:a.join("-");if(Bn(i.index!==!0||!i.children,"Cannot specify children on an index route"),Bn(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),_Se(i)){let l=li({},i,t(i),{id:s});return r[s]=l,l}else{let l=li({},i,t(i),{id:s,children:void 0});return r[s]=l,i.children&&(l.children=z_(i.children,t,a,r)),l}})}function Qh(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Dc(t):t,i=J1(r.pathname||"/",n);if(i==null)return null;let o=oG(e);ISe(o);let a=null;for(let s=0;a==null&&s{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(Bn(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=Dd([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(Bn(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),oG(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:FSe(u,o.index),routesMeta:c})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of aG(o.path))i(o,a,l)}),t}function aG(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=aG(r.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function ISe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:BSe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const DSe=/^:[\w-]+$/,NSe=3,PSe=2,LSe=1,MSe=10,$Se=-2,r7=e=>e==="*";function FSe(e,t){let n=e.split("/"),r=n.length;return n.some(r7)&&(r+=$Se),t&&(r+=PSe),n.filter(i=>!r7(i)).reduce((i,o)=>i+(DSe.test(o)?NSe:o===""?LSe:MSe),r)}function BSe(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 USe(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let a=0;a{let{paramName:p,isOptional:h}=c;if(p==="*"){let b=s[d]||"";a=o.slice(0,o.length-b.length).replace(/(.)\/+$/,"$1")}const m=s[d];return h&&!m?u[p]=void 0:u[p]=HSe(m||"",p),u},{}),pathname:o,pathnameBase:a,pattern:e}}function zSe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Op(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,(a,s,l)=>(r.push({paramName:s,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 VSe(e){try{return decodeURI(e)}catch(t){return Op(!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 HSe(e,t){try{return decodeURIComponent(e)}catch(n){return Op(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function J1(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 WSe(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Dc(e):e;return{pathname:n?n.startsWith("/")?n:QSe(n,t):t,search:GSe(r),hash:qSe(i)}}function QSe(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 XC(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 sG(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function JN(e,t){let n=sG(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function eP(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Dc(e):(i=li({},e),Bn(!i.pathname||!i.pathname.includes("?"),XC("?","pathname","search",i)),Bn(!i.pathname||!i.pathname.includes("#"),XC("#","pathname","hash",i)),Bn(!i.search||!i.search.includes("#"),XC("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=n;else{let d=t.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),d-=1;i.pathname=p.join("/")}s=d>=0?t[d]:"/"}let l=WSe(i,s),u=a&&a!=="/"&&a.endsWith("/"),c=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Dd=e=>e.join("/").replace(/\/\/+/g,"/"),YSe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),GSe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,qSe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class tP{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 nP(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const lG=["post","put","patch","delete"],ZSe=new Set(lG),XSe=["get",...lG],KSe=new Set(XSe),JSe=new Set([301,302,303,307,308]),eTe=new Set([307,308]),KC={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},tTe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},w0={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},uG=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,nTe=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),cG="remix-router-transitions";function rTe(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;Bn(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 Ee=e.detectErrorBoundary;i=_e=>({hasErrorBoundary:Ee(_e)})}else i=nTe;let o={},a=z_(e.routes,i,void 0,o),s,l=e.basename||"/",u=li({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),c=null,d=new Set,p=null,h=null,m=null,b=e.hydrationData!=null,O=Qh(a,e.history.location,l),y=null;if(O==null){let Ee=Rs(404,{pathname:e.history.location.pathname}),{matches:_e,route:pe}=d7(a);O=_e,y={[pe.id]:Ee}}let v,S=O.some(Ee=>Ee.route.lazy),k=O.some(Ee=>Ee.route.loader);if(S)v=!1;else if(!k)v=!0;else if(u.v7_partialHydration){let Ee=e.hydrationData?e.hydrationData.loaderData:null,_e=e.hydrationData?e.hydrationData.errors:null;v=O.every(pe=>pe.route.loader&&pe.route.loader.hydrate!==!0&&(Ee&&Ee[pe.route.id]!==void 0||_e&&_e[pe.route.id]!==void 0))}else v=e.hydrationData!=null;let C,w={historyAction:e.history.action,location:e.history.location,matches:O,initialized:v,navigation:KC,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||y,fetchers:new Map,blockers:new Map},E=hi.Pop,$=!1,P,R=!1,B=new Map,U=null,V=!1,z=!1,W=[],X=[],q=new Map,Y=0,Z=-1,j=new Map,se=new Set,ve=new Map,G=new Map,ce=new Set,ge=new Map,ue=new Map,xe=!1;function Ne(){if(c=e.history.listen(Ee=>{let{action:_e,location:pe,delta:lt}=Ee;if(xe){xe=!1;return}Op(ue.size===0||lt!=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 at=it({currentLocation:w.location,nextLocation:pe,historyAction:_e});if(at&<!=null){xe=!0,e.history.go(lt*-1),qe(at,{state:"blocked",location:pe,proceed(){qe(at,{state:"proceeding",proceed:void 0,reset:void 0,location:pe}),e.history.go(lt)},reset(){let Mt=new Map(w.blockers);Mt.set(at,w0),Me({blockers:Mt})}});return}return $e(_e,pe)}),n){hTe(t,B);let Ee=()=>mTe(t,B);t.addEventListener("pagehide",Ee),U=()=>t.removeEventListener("pagehide",Ee)}return w.initialized||$e(hi.Pop,w.location,{initialHydration:!0}),C}function Ve(){c&&c(),U&&U(),d.clear(),P&&P.abort(),w.fetchers.forEach((Ee,_e)=>de(_e)),w.blockers.forEach((Ee,_e)=>vt(_e))}function Ke(Ee){return d.add(Ee),()=>d.delete(Ee)}function Me(Ee,_e){_e===void 0&&(_e={}),w=li({},w,Ee);let pe=[],lt=[];u.v7_fetcherPersist&&w.fetchers.forEach((at,Mt)=>{at.state==="idle"&&(ce.has(Mt)?lt.push(Mt):pe.push(Mt))}),[...d].forEach(at=>at(w,{deletedFetchers:lt,unstable_viewTransitionOpts:_e.viewTransitionOpts,unstable_flushSync:_e.flushSync===!0})),u.v7_fetcherPersist&&(pe.forEach(at=>w.fetchers.delete(at)),lt.forEach(at=>de(at)))}function Ye(Ee,_e,pe){var lt,at;let{flushSync:Mt}=pe===void 0?{}:pe,$t=w.actionData!=null&&w.navigation.formMethod!=null&&hl(w.navigation.formMethod)&&w.navigation.state==="loading"&&((lt=Ee.state)==null?void 0:lt._isRedirect)!==!0,It;_e.actionData?Object.keys(_e.actionData).length>0?It=_e.actionData:It=null:$t?It=w.actionData:It=null;let Ct=_e.loaderData?c7(w.loaderData,_e.loaderData,_e.matches||[],_e.errors):w.loaderData,Zt=w.blockers;Zt.size>0&&(Zt=new Map(Zt),Zt.forEach((Qe,ot)=>Zt.set(ot,w0)));let Ie=$===!0||w.navigation.formMethod!=null&&hl(w.navigation.formMethod)&&((at=Ee.state)==null?void 0:at._isRedirect)!==!0;s&&(a=s,s=void 0),V||E===hi.Pop||(E===hi.Push?e.history.push(Ee,Ee.state):E===hi.Replace&&e.history.replace(Ee,Ee.state));let we;if(E===hi.Pop){let Qe=B.get(w.location.pathname);Qe&&Qe.has(Ee.pathname)?we={currentLocation:w.location,nextLocation:Ee}:B.has(Ee.pathname)&&(we={currentLocation:Ee,nextLocation:w.location})}else if(R){let Qe=B.get(w.location.pathname);Qe?Qe.add(Ee.pathname):(Qe=new Set([Ee.pathname]),B.set(w.location.pathname,Qe)),we={currentLocation:w.location,nextLocation:Ee}}Me(li({},_e,{actionData:It,loaderData:Ct,historyAction:E,location:Ee,initialized:!0,navigation:KC,revalidation:"idle",restoreScrollPosition:pn(Ee,_e.matches||w.matches),preventScrollReset:Ie,blockers:Zt}),{viewTransitionOpts:we,flushSync:Mt===!0}),E=hi.Pop,$=!1,R=!1,V=!1,z=!1,W=[],X=[]}async function ye(Ee,_e){if(typeof Ee=="number"){e.history.go(Ee);return}let pe=V_(w.location,w.matches,l,u.v7_prependBasename,Ee,u.v7_relativeSplatPath,_e==null?void 0:_e.fromRouteId,_e==null?void 0:_e.relative),{path:lt,submission:at,error:Mt}=i7(u.v7_normalizeFormMethod,!1,pe,_e),$t=w.location,It=Iy(w.location,lt,_e&&_e.state);It=li({},It,e.history.encodeLocation(It));let Ct=_e&&_e.replace!=null?_e.replace:void 0,Zt=hi.Push;Ct===!0?Zt=hi.Replace:Ct===!1||at!=null&&hl(at.formMethod)&&at.formAction===w.location.pathname+w.location.search&&(Zt=hi.Replace);let Ie=_e&&"preventScrollReset"in _e?_e.preventScrollReset===!0:void 0,we=(_e&&_e.unstable_flushSync)===!0,Qe=it({currentLocation:$t,nextLocation:It,historyAction:Zt});if(Qe){qe(Qe,{state:"blocked",location:It,proceed(){qe(Qe,{state:"proceeding",proceed:void 0,reset:void 0,location:It}),ye(Ee,_e)},reset(){let ot=new Map(w.blockers);ot.set(Qe,w0),Me({blockers:ot})}});return}return await $e(Zt,It,{submission:at,pendingError:Mt,preventScrollReset:Ie,replace:_e&&_e.replace,enableViewTransition:_e&&_e.unstable_viewTransition,flushSync:we})}function ze(){if(Le(),Me({revalidation:"loading"}),w.navigation.state!=="submitting"){if(w.navigation.state==="idle"){$e(w.historyAction,w.location,{startUninterruptedRevalidation:!0});return}$e(E||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation})}}async function $e(Ee,_e,pe){P&&P.abort(),P=null,E=Ee,V=(pe&&pe.startUninterruptedRevalidation)===!0,dn(w.location,w.matches),$=(pe&&pe.preventScrollReset)===!0,R=(pe&&pe.enableViewTransition)===!0;let lt=s||a,at=pe&&pe.overrideNavigation,Mt=Qh(lt,_e,l),$t=(pe&&pe.flushSync)===!0;if(!Mt){let ot=Rs(404,{pathname:_e.pathname}),{matches:rn,route:Wt}=d7(lt);Et(),Ye(_e,{matches:rn,loaderData:{},errors:{[Wt.id]:ot}},{flushSync:$t});return}if(w.initialized&&!z&&lTe(w.location,_e)&&!(pe&&pe.submission&&hl(pe.submission.formMethod))){Ye(_e,{matches:Mt},{flushSync:$t});return}P=new AbortController;let It=x0(e.history,_e,P.signal,pe&&pe.submission),Ct,Zt;if(pe&&pe.pendingError)Zt={[Nb(Mt).route.id]:pe.pendingError};else if(pe&&pe.submission&&hl(pe.submission.formMethod)){let ot=await We(It,_e,pe.submission,Mt,{replace:pe.replace,flushSync:$t});if(ot.shortCircuited)return;Ct=ot.pendingActionData,Zt=ot.pendingActionError,at=JC(_e,pe.submission),$t=!1,It=new Request(It.url,{signal:It.signal})}let{shortCircuited:Ie,loaderData:we,errors:Qe}=await dt(It,_e,Mt,at,pe&&pe.submission,pe&&pe.fetcherSubmission,pe&&pe.replace,pe&&pe.initialHydration===!0,$t,Ct,Zt);Ie||(P=null,Ye(_e,li({matches:Mt},Ct?{actionData:Ct}:{},{loaderData:we,errors:Qe})))}async function We(Ee,_e,pe,lt,at){at===void 0&&(at={}),Le();let Mt=fTe(_e,pe);Me({navigation:Mt},{flushSync:at.flushSync===!0});let $t,It=W_(lt,_e);if(!It.route.action&&!It.route.lazy)$t={type:ai.error,error:Rs(405,{method:Ee.method,pathname:_e.pathname,routeId:It.route.id})};else if($t=await k0("action",Ee,It,lt,o,i,l,u.v7_relativeSplatPath),Ee.signal.aborted)return{shortCircuited:!0};if(jf($t)){let Ct;return at&&at.replace!=null?Ct=at.replace:Ct=$t.location===w.location.pathname+w.location.search,await J(w,$t,{submission:pe,replace:Ct}),{shortCircuited:!0}}if(Yh($t)){let Ct=Nb(lt,It.route.id);return(at&&at.replace)!==!0&&(E=hi.Push),{pendingActionData:{},pendingActionError:{[Ct.route.id]:$t.error}}}if(Uf($t))throw Rs(400,{type:"defer-action"});return{pendingActionData:{[It.route.id]:$t.data}}}async function dt(Ee,_e,pe,lt,at,Mt,$t,It,Ct,Zt,Ie){let we=lt||JC(_e,at),Qe=at||Mt||h7(we),ot=s||a,[rn,Wt]=o7(e.history,w,pe,Qe,_e,u.v7_partialHydration&&It===!0,z,W,X,ce,ve,se,ot,l,Zt,Ie);if(Et(bn=>!(pe&&pe.some(Wn=>Wn.route.id===bn))||rn&&rn.some(Wn=>Wn.route.id===bn)),Z=++Y,rn.length===0&&Wt.length===0){let bn=pt();return Ye(_e,li({matches:pe,loaderData:{},errors:Ie||null},Zt?{actionData:Zt}:{},bn?{fetchers:new Map(w.fetchers)}:{}),{flushSync:Ct}),{shortCircuited:!0}}if(!V&&(!u.v7_partialHydration||!It)){Wt.forEach(Wn=>{let Qn=w.fetchers.get(Wn.key),ht=C0(void 0,Qn?Qn.data:void 0);w.fetchers.set(Wn.key,ht)});let bn=Zt||w.actionData;Me(li({navigation:we},bn?Object.keys(bn).length===0?{actionData:null}:{actionData:bn}:{},Wt.length>0?{fetchers:new Map(w.fetchers)}:{}),{flushSync:Ct})}Wt.forEach(bn=>{q.has(bn.key)&&Te(bn.key),bn.controller&&q.set(bn.key,bn.controller)});let mn=()=>Wt.forEach(bn=>Te(bn.key));P&&P.signal.addEventListener("abort",mn);let{results:nr,loaderResults:Ue,fetcherResults:Ce}=await Re(w.matches,pe,rn,Wt,Ee);if(Ee.signal.aborted)return{shortCircuited:!0};P&&P.signal.removeEventListener("abort",mn),Wt.forEach(bn=>q.delete(bn.key));let mt=f7(nr);if(mt){if(mt.idx>=rn.length){let bn=Wt[mt.idx-rn.length].key;se.add(bn)}return await J(w,mt.result,{replace:$t}),{shortCircuited:!0}}let{loaderData:Dt,errors:tn}=u7(w,pe,rn,Ue,Ie,Wt,Ce,ge);ge.forEach((bn,Wn)=>{bn.subscribe(Qn=>{(Qn||bn.done)&&ge.delete(Wn)})});let Mn=pt(),Dn=xt(Z),Kt=Mn||Dn||Wt.length>0;return li({loaderData:Dt,errors:tn},Kt?{fetchers:new Map(w.fetchers)}:{})}function Be(Ee,_e,pe,lt){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.");q.has(Ee)&&Te(Ee);let at=(lt&<.unstable_flushSync)===!0,Mt=s||a,$t=V_(w.location,w.matches,l,u.v7_prependBasename,pe,u.v7_relativeSplatPath,_e,lt==null?void 0:lt.relative),It=Qh(Mt,$t,l);if(!It){ie(Ee,_e,Rs(404,{pathname:$t}),{flushSync:at});return}let{path:Ct,submission:Zt,error:Ie}=i7(u.v7_normalizeFormMethod,!0,$t,lt);if(Ie){ie(Ee,_e,Ie,{flushSync:at});return}let we=W_(It,Ct);if($=(lt&<.preventScrollReset)===!0,Zt&&hl(Zt.formMethod)){re(Ee,_e,Ct,we,It,at,Zt);return}ve.set(Ee,{routeId:_e,path:Ct}),ee(Ee,_e,Ct,we,It,at,Zt)}async function re(Ee,_e,pe,lt,at,Mt,$t){if(Le(),ve.delete(Ee),!lt.route.action&&!lt.route.lazy){let Wn=Rs(405,{method:$t.formMethod,pathname:pe,routeId:_e});ie(Ee,_e,Wn,{flushSync:Mt});return}let It=w.fetchers.get(Ee);De(Ee,pTe($t,It),{flushSync:Mt});let Ct=new AbortController,Zt=x0(e.history,pe,Ct.signal,$t);q.set(Ee,Ct);let Ie=Y,we=await k0("action",Zt,lt,at,o,i,l,u.v7_relativeSplatPath);if(Zt.signal.aborted){q.get(Ee)===Ct&&q.delete(Ee);return}if(u.v7_fetcherPersist&&ce.has(Ee)){if(jf(we)||Yh(we)){De(Ee,Yc(void 0));return}}else{if(jf(we))if(q.delete(Ee),Z>Ie){De(Ee,Yc(void 0));return}else return se.add(Ee),De(Ee,C0($t)),J(w,we,{fetcherSubmission:$t});if(Yh(we)){ie(Ee,_e,we.error);return}}if(Uf(we))throw Rs(400,{type:"defer-action"});let Qe=w.navigation.location||w.location,ot=x0(e.history,Qe,Ct.signal),rn=s||a,Wt=w.navigation.state!=="idle"?Qh(rn,w.navigation.location,l):w.matches;Bn(Wt,"Didn't find any matches after fetcher action");let mn=++Y;j.set(Ee,mn);let nr=C0($t,we.data);w.fetchers.set(Ee,nr);let[Ue,Ce]=o7(e.history,w,Wt,$t,Qe,!1,z,W,X,ce,ve,se,rn,l,{[lt.route.id]:we.data},void 0);Ce.filter(Wn=>Wn.key!==Ee).forEach(Wn=>{let Qn=Wn.key,ht=w.fetchers.get(Qn),Gr=C0(void 0,ht?ht.data:void 0);w.fetchers.set(Qn,Gr),q.has(Qn)&&Te(Qn),Wn.controller&&q.set(Qn,Wn.controller)}),Me({fetchers:new Map(w.fetchers)});let mt=()=>Ce.forEach(Wn=>Te(Wn.key));Ct.signal.addEventListener("abort",mt);let{results:Dt,loaderResults:tn,fetcherResults:Mn}=await Re(w.matches,Wt,Ue,Ce,ot);if(Ct.signal.aborted)return;Ct.signal.removeEventListener("abort",mt),j.delete(Ee),q.delete(Ee),Ce.forEach(Wn=>q.delete(Wn.key));let Dn=f7(Dt);if(Dn){if(Dn.idx>=Ue.length){let Wn=Ce[Dn.idx-Ue.length].key;se.add(Wn)}return J(w,Dn.result)}let{loaderData:Kt,errors:bn}=u7(w,w.matches,Ue,tn,void 0,Ce,Mn,ge);if(w.fetchers.has(Ee)){let Wn=Yc(we.data);w.fetchers.set(Ee,Wn)}xt(mn),w.navigation.state==="loading"&&mn>Z?(Bn(E,"Expected pending action"),P&&P.abort(),Ye(w.navigation.location,{matches:Wt,loaderData:Kt,errors:bn,fetchers:new Map(w.fetchers)})):(Me({errors:bn,loaderData:c7(w.loaderData,Kt,Wt,bn),fetchers:new Map(w.fetchers)}),z=!1)}async function ee(Ee,_e,pe,lt,at,Mt,$t){let It=w.fetchers.get(Ee);De(Ee,C0($t,It?It.data:void 0),{flushSync:Mt});let Ct=new AbortController,Zt=x0(e.history,pe,Ct.signal);q.set(Ee,Ct);let Ie=Y,we=await k0("loader",Zt,lt,at,o,i,l,u.v7_relativeSplatPath);if(Uf(we)&&(we=await pG(we,Zt.signal,!0)||we),q.get(Ee)===Ct&&q.delete(Ee),!Zt.signal.aborted){if(ce.has(Ee)){De(Ee,Yc(void 0));return}if(jf(we))if(Z>Ie){De(Ee,Yc(void 0));return}else{se.add(Ee),await J(w,we);return}if(Yh(we)){ie(Ee,_e,we.error);return}Bn(!Uf(we),"Unhandled fetcher deferred data"),De(Ee,Yc(we.data))}}async function J(Ee,_e,pe){let{submission:lt,fetcherSubmission:at,replace:Mt}=pe===void 0?{}:pe;_e.revalidate&&(z=!0);let $t=Iy(Ee.location,_e.location,{_isRedirect:!0});if(Bn($t,"Expected a location on the redirect navigation"),n){let Qe=!1;if(_e.reloadDocument)Qe=!0;else if(uG.test(_e.location)){const ot=e.history.createURL(_e.location);Qe=ot.origin!==t.location.origin||J1(ot.pathname,l)==null}if(Qe){Mt?t.location.replace(_e.location):t.location.assign(_e.location);return}}P=null;let It=Mt===!0?hi.Replace:hi.Push,{formMethod:Ct,formAction:Zt,formEncType:Ie}=Ee.navigation;!lt&&!at&&Ct&&Zt&&Ie&&(lt=h7(Ee.navigation));let we=lt||at;if(eTe.has(_e.status)&&we&&hl(we.formMethod))await $e(It,$t,{submission:li({},we,{formAction:_e.location}),preventScrollReset:$});else{let Qe=JC($t,lt);await $e(It,$t,{overrideNavigation:Qe,fetcherSubmission:at,preventScrollReset:$})}}async function Re(Ee,_e,pe,lt,at){let Mt=await Promise.all([...pe.map(Ct=>k0("loader",at,Ct,_e,o,i,l,u.v7_relativeSplatPath)),...lt.map(Ct=>Ct.matches&&Ct.match&&Ct.controller?k0("loader",x0(e.history,Ct.path,Ct.controller.signal),Ct.match,Ct.matches,o,i,l,u.v7_relativeSplatPath):{type:ai.error,error:Rs(404,{pathname:Ct.path})})]),$t=Mt.slice(0,pe.length),It=Mt.slice(pe.length);return await Promise.all([p7(Ee,pe,$t,$t.map(()=>at.signal),!1,w.loaderData),p7(Ee,lt.map(Ct=>Ct.match),It,lt.map(Ct=>Ct.controller?Ct.controller.signal:null),!0)]),{results:Mt,loaderResults:$t,fetcherResults:It}}function Le(){z=!0,W.push(...Et()),ve.forEach((Ee,_e)=>{q.has(_e)&&(X.push(_e),Te(_e))})}function De(Ee,_e,pe){pe===void 0&&(pe={}),w.fetchers.set(Ee,_e),Me({fetchers:new Map(w.fetchers)},{flushSync:(pe&&pe.flushSync)===!0})}function ie(Ee,_e,pe,lt){lt===void 0&&(lt={});let at=Nb(w.matches,_e);de(Ee),Me({errors:{[at.route.id]:pe},fetchers:new Map(w.fetchers)},{flushSync:(lt&<.flushSync)===!0})}function fe(Ee){return u.v7_fetcherPersist&&(G.set(Ee,(G.get(Ee)||0)+1),ce.has(Ee)&&ce.delete(Ee)),w.fetchers.get(Ee)||tTe}function de(Ee){let _e=w.fetchers.get(Ee);q.has(Ee)&&!(_e&&_e.state==="loading"&&j.has(Ee))&&Te(Ee),ve.delete(Ee),j.delete(Ee),se.delete(Ee),ce.delete(Ee),w.fetchers.delete(Ee)}function Oe(Ee){if(u.v7_fetcherPersist){let _e=(G.get(Ee)||0)-1;_e<=0?(G.delete(Ee),ce.add(Ee)):G.set(Ee,_e)}else de(Ee);Me({fetchers:new Map(w.fetchers)})}function Te(Ee){let _e=q.get(Ee);Bn(_e,"Expected fetch controller: "+Ee),_e.abort(),q.delete(Ee)}function rt(Ee){for(let _e of Ee){let pe=fe(_e),lt=Yc(pe.data);w.fetchers.set(_e,lt)}}function pt(){let Ee=[],_e=!1;for(let pe of se){let lt=w.fetchers.get(pe);Bn(lt,"Expected fetcher: "+pe),lt.state==="loading"&&(se.delete(pe),Ee.push(pe),_e=!0)}return rt(Ee),_e}function xt(Ee){let _e=[];for(let[pe,lt]of j)if(lt0}function et(Ee,_e){let pe=w.blockers.get(Ee)||w0;return ue.get(Ee)!==_e&&ue.set(Ee,_e),pe}function vt(Ee){w.blockers.delete(Ee),ue.delete(Ee)}function qe(Ee,_e){let pe=w.blockers.get(Ee)||w0;Bn(pe.state==="unblocked"&&_e.state==="blocked"||pe.state==="blocked"&&_e.state==="blocked"||pe.state==="blocked"&&_e.state==="proceeding"||pe.state==="blocked"&&_e.state==="unblocked"||pe.state==="proceeding"&&_e.state==="unblocked","Invalid blocker state transition: "+pe.state+" -> "+_e.state);let lt=new Map(w.blockers);lt.set(Ee,_e),Me({blockers:lt})}function it(Ee){let{currentLocation:_e,nextLocation:pe,historyAction:lt}=Ee;if(ue.size===0)return;ue.size>1&&Op(!1,"A router only supports one blocker at a time");let at=Array.from(ue.entries()),[Mt,$t]=at[at.length-1],It=w.blockers.get(Mt);if(!(It&&It.state==="proceeding")&&$t({currentLocation:_e,nextLocation:pe,historyAction:lt}))return Mt}function Et(Ee){let _e=[];return ge.forEach((pe,lt)=>{(!Ee||Ee(lt))&&(pe.cancel(),_e.push(lt),ge.delete(lt))}),_e}function Nt(Ee,_e,pe){if(p=Ee,m=_e,h=pe||null,!b&&w.navigation===KC){b=!0;let lt=pn(w.location,w.matches);lt!=null&&Me({restoreScrollPosition:lt})}return()=>{p=null,m=null,h=null}}function on(Ee,_e){return h&&h(Ee,_e.map(lt=>RSe(lt,w.loaderData)))||Ee.key}function dn(Ee,_e){if(p&&m){let pe=on(Ee,_e);p[pe]=m()}}function pn(Ee,_e){if(p){let pe=on(Ee,_e),lt=p[pe];if(typeof lt=="number")return lt}return null}function zn(Ee){o={},s=z_(Ee,i,void 0,o)}return C={get basename(){return l},get future(){return u},get state(){return w},get routes(){return a},get window(){return t},initialize:Ne,subscribe:Ke,enableScrollRestoration:Nt,navigate:ye,fetch:Be,revalidate:ze,createHref:Ee=>e.history.createHref(Ee),encodeLocation:Ee=>e.history.encodeLocation(Ee),getFetcher:fe,deleteFetcher:Oe,dispose:Ve,getBlocker:et,deleteBlocker:vt,_internalFetchControllers:q,_internalActiveDeferreds:ge,_internalSetRoutes:zn},C}function iTe(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function V_(e,t,n,r,i,o,a,s){let l,u;if(a){l=[];for(let d of t)if(l.push(d),d.route.id===a){u=d;break}}else l=t,u=t[t.length-1];let c=eP(i||".",JN(l,o),J1(e.pathname,n)||e.pathname,s==="path");return i==null&&(c.search=e.search,c.hash=e.hash),(i==null||i===""||i===".")&&u&&u.route.index&&!rP(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:Dd([n,c.pathname])),K1(c)}function i7(e,t,n,r){if(!r||!iTe(r))return{path:n};if(r.formMethod&&!dTe(r.formMethod))return{path:n,error:Rs(405,{method:r.formMethod})};let i=()=>({path:n,error:Rs(400,{type:"invalid-body"})}),o=r.formMethod||"get",a=e?o.toUpperCase():o.toLowerCase(),s=fG(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!hl(a))return i();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((h,m)=>{let[b,O]=m;return""+h+b+"="+O+` +`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!hl(a))return i();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return i()}}}Bn(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=H_(r.formData),u=r.formData;else if(r.body instanceof FormData)l=H_(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=l7(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=l7(l)}catch{return i()}let c={formMethod:a,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(hl(c.formMethod))return{path:n,submission:c};let d=Dc(n);return t&&d.search&&rP(d.search)&&l.append("index",""),d.search="?"+l,{path:K1(d),submission:c}}function oTe(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 o7(e,t,n,r,i,o,a,s,l,u,c,d,p,h,m,b){let O=b?Object.values(b)[0]:m?Object.values(m)[0]:void 0,y=e.createURL(t.location),v=e.createURL(i),S=b?Object.keys(b)[0]:void 0,C=oTe(n,S).filter((E,$)=>{let{route:P}=E;if(P.lazy)return!0;if(P.loader==null)return!1;if(o)return P.loader.hydrate?!0:t.loaderData[P.id]===void 0&&(!t.errors||t.errors[P.id]===void 0);if(aTe(t.loaderData,t.matches[$],E)||s.some(U=>U===E.route.id))return!0;let R=t.matches[$],B=E;return a7(E,li({currentUrl:y,currentParams:R.params,nextUrl:v,nextParams:B.params},r,{actionResult:O,defaultShouldRevalidate:a||y.pathname+y.search===v.pathname+v.search||y.search!==v.search||dG(R,B)}))}),w=[];return c.forEach((E,$)=>{if(o||!n.some(V=>V.route.id===E.routeId)||u.has($))return;let P=Qh(p,E.path,h);if(!P){w.push({key:$,routeId:E.routeId,path:E.path,matches:null,match:null,controller:null});return}let R=t.fetchers.get($),B=W_(P,E.path),U=!1;d.has($)?U=!1:l.includes($)?U=!0:R&&R.state!=="idle"&&R.data===void 0?U=a:U=a7(B,li({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:v,nextParams:n[n.length-1].params},r,{actionResult:O,defaultShouldRevalidate:a})),U&&w.push({key:$,routeId:E.routeId,path:E.path,matches:P,match:B,controller:new AbortController})}),[C,w]}function aTe(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function dG(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function a7(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function s7(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];Bn(i,"No route found in manifest");let o={};for(let a in r){let l=i[a]!==void 0&&a!=="hasErrorBoundary";Op(!l,'Route "'+i.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!l&&!ASe.has(a)&&(o[a]=r[a])}Object.assign(i,o),Object.assign(i,li({},t(i),{lazy:void 0}))}async function k0(e,t,n,r,i,o,a,s,l){l===void 0&&(l={});let u,c,d,p=b=>{let O,y=new Promise((v,S)=>O=S);return d=()=>O(),t.signal.addEventListener("abort",d),Promise.race([b({request:t,params:n.params,context:l.requestContext}),y])};try{let b=n.route[e];if(n.route.lazy)if(b){let O,y=await Promise.all([p(b).catch(v=>{O=v}),s7(n.route,o,i)]);if(O)throw O;c=y[0]}else if(await s7(n.route,o,i),b=n.route[e],b)c=await p(b);else if(e==="action"){let O=new URL(t.url),y=O.pathname+O.search;throw Rs(405,{method:t.method,pathname:y,routeId:n.route.id})}else return{type:ai.data,data:void 0};else if(b)c=await p(b);else{let O=new URL(t.url),y=O.pathname+O.search;throw Rs(404,{pathname:y})}Bn(c!==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(b){u=ai.error,c=b}finally{d&&t.signal.removeEventListener("abort",d)}if(cTe(c)){let b=c.status;if(JSe.has(b)){let y=c.headers.get("Location");if(Bn(y,"Redirects returned/thrown from loaders/actions must have a Location header"),!uG.test(y))y=V_(new URL(t.url),r.slice(0,r.indexOf(n)+1),a,!0,y,s);else if(!l.isStaticRequest){let v=new URL(t.url),S=y.startsWith("//")?new URL(v.protocol+y):new URL(y),k=J1(S.pathname,a)!=null;S.origin===v.origin&&k&&(y=S.pathname+S.search+S.hash)}if(l.isStaticRequest)throw c.headers.set("Location",y),c;return{type:ai.redirect,status:b,location:y,revalidate:c.headers.get("X-Remix-Revalidate")!==null,reloadDocument:c.headers.get("X-Remix-Reload-Document")!==null}}if(l.isRouteRequest)throw{type:u===ai.error?ai.error:ai.data,response:c};let O;try{let y=c.headers.get("Content-Type");y&&/\bapplication\/json\b/.test(y)?c.body==null?O=null:O=await c.json():O=await c.text()}catch(y){return{type:ai.error,error:y}}return u===ai.error?{type:u,error:new tP(b,c.statusText,O),headers:c.headers}:{type:ai.data,data:O,statusCode:c.status,headers:c.headers}}if(u===ai.error)return{type:u,error:c};if(uTe(c)){var h,m;return{type:ai.deferred,deferredData:c,statusCode:(h=c.init)==null?void 0:h.status,headers:((m=c.init)==null?void 0:m.headers)&&new Headers(c.init.headers)}}return{type:ai.data,data:c}}function x0(e,t,n,r){let i=e.createURL(fG(t)).toString(),o={signal:n};if(r&&hl(r.formMethod)){let{formMethod:a,formEncType:s}=r;o.method=a.toUpperCase(),s==="application/json"?(o.headers=new Headers({"Content-Type":s}),o.body=JSON.stringify(r.json)):s==="text/plain"?o.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?o.body=H_(r.formData):o.body=r.formData}return new Request(i,o)}function H_(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function l7(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function sTe(e,t,n,r,i){let o={},a=null,s,l=!1,u={};return n.forEach((c,d)=>{let p=t[d].route.id;if(Bn(!jf(c),"Cannot handle redirect results in processLoaderData"),Yh(c)){let h=Nb(e,p),m=c.error;r&&(m=Object.values(r)[0],r=void 0),a=a||{},a[h.route.id]==null&&(a[h.route.id]=m),o[p]=void 0,l||(l=!0,s=nP(c.error)?c.error.status:500),c.headers&&(u[p]=c.headers)}else Uf(c)?(i.set(p,c.deferredData),o[p]=c.deferredData.data):o[p]=c.data,c.statusCode!=null&&c.statusCode!==200&&!l&&(s=c.statusCode),c.headers&&(u[p]=c.headers)}),r&&(a=r,o[Object.keys(r)[0]]=void 0),{loaderData:o,errors:a,statusCode:s||200,loaderHeaders:u}}function u7(e,t,n,r,i,o,a,s){let{loaderData:l,errors:u}=sTe(t,n,r,i,s);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function d7(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 Rs(e,t){let{pathname:n,routeId:r,method:i,type:o}=t===void 0?{}:t,a="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(a="Bad Request",i&&n&&r?s="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.":o==="defer-action"?s="defer() is not supported in actions":o==="invalid-body"&&(s="Unable to encode submission body")):e===403?(a="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",s='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",i&&n&&r?s="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&&(s='Invalid request method "'+i.toUpperCase()+'"')),new tP(e||500,a,new Error(s),!0)}function f7(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(jf(n))return{result:n,idx:t}}}function fG(e){let t=typeof e=="string"?Dc(e):e;return K1(li({},t,{hash:""}))}function lTe(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Uf(e){return e.type===ai.deferred}function Yh(e){return e.type===ai.error}function jf(e){return(e&&e.type)===ai.redirect}function uTe(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 cTe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function dTe(e){return KSe.has(e.toLowerCase())}function hl(e){return ZSe.has(e.toLowerCase())}async function p7(e,t,n,r,i,o){for(let a=0;ad.route.id===l.route.id),c=u!=null&&!dG(u,l)&&(o&&o[l.route.id])!==void 0;if(Uf(s)&&(i||c)){let d=r[a];Bn(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await pG(s,d,i).then(p=>{p&&(n[a]=p||n[a])})}}}async function pG(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:ai.data,data:e.deferredData.unwrappedData}}catch(i){return{type:ai.error,error:i}}return{type:ai.data,data:e.deferredData.data}}}function rP(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function W_(e,t){let n=typeof t=="string"?Dc(t).search:t.search;if(e[e.length-1].route.index&&rP(n||""))return e[e.length-1];let r=sG(e);return r[r.length-1]}function h7(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:o,json:a}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function JC(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 fTe(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 C0(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 pTe(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 Yc(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 hTe(e,t){try{let n=e.sessionStorage.getItem(cG);if(n){let r=JSON.parse(n);for(let[i,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(i,new Set(o||[]))}}catch{}}function mTe(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(cG,JSON.stringify(n))}catch(r){Op(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.21.3 * * Copyright (c) Remix Software Inc. @@ -180,7 +180,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function _y(){return _y=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),I.useCallback(function(u,c){if(c===void 0&&(c={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let d=ZN(u,JSON.parse(a),o,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Id([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,a,o,e])}const lTe=I.createContext(null);function uTe(e){let t=I.useContext(Ic).outlet;return t&&I.createElement(lTe.Provider,{value:e},t)}function Ag(){let{matches:e}=I.useContext(Ic),t=e[e.length-1];return t?t.params:{}}function cTe(e,t,n,r){J1()||Bn(!1);let{navigator:i}=I.useContext(K1),{matches:o}=I.useContext(Ic),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let u=Cg(),c;if(t){var d;let O=typeof t=="string"?Rc(t):t;l==="/"||(d=O.pathname)!=null&&d.startsWith(l)||Bn(!1),c=O}else c=u;let p=c.pathname||"/",h=l==="/"?p:p.slice(l.length)||"/",m=Qh(e,{pathname:h}),b=mTe(m&&m.map(O=>Object.assign({},O,{params:Object.assign({},s,O.params),pathname:Id([l,i.encodeLocation?i.encodeLocation(O.pathname).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?l:Id([l,i.encodeLocation?i.encodeLocation(O.pathnameBase).pathname:O.pathnameBase])})),o,n,r);return t&&b?I.createElement(Ik.Provider,{value:{location:_y({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:hi.Pop}},b):b}function dTe(){let e=uG(),t=KN(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 I.createElement(I.Fragment,null,I.createElement("h2",null,"Unexpected Application Error!"),I.createElement("h3",{style:{fontStyle:"italic"}},t),n?I.createElement("pre",{style:i},n):null,null)}const fTe=I.createElement(dTe,null);class pTe extends I.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?I.createElement(Ic.Provider,{value:this.props.routeContext},I.createElement(oG.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function hTe(e){let{routeContext:t,match:n,children:r}=e,i=I.useContext(Rk);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),I.createElement(Ic.Provider,{value:t},r)}function mTe(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let a=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let c=a.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id]));c>=0||Bn(!1),a=a.slice(0,Math.min(a.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((c,d,p)=>{let h,m=!1,b=null,O=null;n&&(h=s&&d.route.id?s[d.route.id]:void 0,b=d.route.errorElement||fTe,l&&(u<0&&p===0?(vTe("route-fallback",!1),m=!0,O=null):u===p&&(m=!0,O=d.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,p+1)),v=()=>{let S;return h?S=b:m?S=O:d.route.Component?S=I.createElement(d.route.Component,null):d.route.element?S=d.route.element:S=c,I.createElement(hTe,{match:d,routeContext:{outlet:c,matches:y,isDataRoute:n!=null},children:S})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?I.createElement(pTe,{location:n.location,revalidation:n.revalidation,component:b,error:h,children:v(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):v()},null)}var sG=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(sG||{}),sT=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}(sT||{});function gTe(e){let t=I.useContext(Rk);return t||Bn(!1),t}function bTe(e){let t=I.useContext(iG);return t||Bn(!1),t}function yTe(e){let t=I.useContext(Ic);return t||Bn(!1),t}function lG(e){let t=yTe(),n=t.matches[t.matches.length-1];return n.route.id||Bn(!1),n.route.id}function uG(){var e;let t=I.useContext(oG),n=bTe(sT.UseRouteError),r=lG(sT.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function OTe(){let{router:e}=gTe(sG.UseNavigateStable),t=lG(sT.UseNavigateStable),n=I.useRef(!1);return aG(()=>{n.current=!0}),I.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,_y({fromRouteId:t},o)))},[e,t])}const s7={};function vTe(e,t,n){!t&&!s7[e]&&(s7[e]=!0)}function cG(e){let{to:t,replace:n,state:r,relative:i}=e;J1()||Bn(!1);let{future:o,static:a}=I.useContext(K1),{matches:s}=I.useContext(Ic),{pathname:l}=Cg(),u=Pp(),c=ZN(t,qN(s,o.v7_relativeSplatPath),l,i==="path"),d=JSON.stringify(c);return I.useEffect(()=>u(JSON.parse(d),{replace:n,state:r,relative:i}),[u,d,i,n,r]),null}function eP(e){return uTe(e.context)}function ETe(e){let{basename:t="/",children:n=null,location:r,navigationType:i=hi.Pop,navigator:o,static:a=!1,future:s}=e;J1()&&Bn(!1);let l=t.replace(/^\/*/,"/"),u=I.useMemo(()=>({basename:l,navigator:o,static:a,future:_y({v7_relativeSplatPath:!1},s)}),[l,s,o,a]);typeof r=="string"&&(r=Rc(r));let{pathname:c="/",search:d="",hash:p="",state:h=null,key:m="default"}=r,b=I.useMemo(()=>{let O=X1(c,l);return O==null?null:{location:{pathname:O,search:d,hash:p,state:h,key:m},navigationType:i}},[l,c,d,p,h,m,i]);return b==null?null:I.createElement(K1.Provider,{value:u},I.createElement(Ik.Provider,{children:n,value:b}))}new Promise(()=>{});function STe(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:I.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:I.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:I.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function Dy(){return Dy=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),I.useCallback(function(u,c){if(c===void 0&&(c={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let d=eP(u,JSON.parse(a),o,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Dd([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,a,o,e])}const bTe=I.createContext(null);function yTe(e){let t=I.useContext(Nc).outlet;return t&&I.createElement(bTe.Provider,{value:e},t)}function Pp(){let{matches:e}=I.useContext(Nc),t=e[e.length-1];return t?t.params:{}}function OTe(e,t,n,r){tO()||Bn(!1);let{navigator:i}=I.useContext(eO),{matches:o}=I.useContext(Nc),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let u=_g(),c;if(t){var d;let O=typeof t=="string"?Dc(t):t;l==="/"||(d=O.pathname)!=null&&d.startsWith(l)||Bn(!1),c=O}else c=u;let p=c.pathname||"/",h=l==="/"?p:p.slice(l.length)||"/",m=Qh(e,{pathname:h}),b=wTe(m&&m.map(O=>Object.assign({},O,{params:Object.assign({},s,O.params),pathname:Dd([l,i.encodeLocation?i.encodeLocation(O.pathname).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?l:Dd([l,i.encodeLocation?i.encodeLocation(O.pathnameBase).pathname:O.pathnameBase])})),o,n,r);return t&&b?I.createElement(Nk.Provider,{value:{location:Dy({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:hi.Pop}},b):b}function vTe(){let e=OG(),t=nP(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 I.createElement(I.Fragment,null,I.createElement("h2",null,"Unexpected Application Error!"),I.createElement("h3",{style:{fontStyle:"italic"}},t),n?I.createElement("pre",{style:i},n):null,null)}const ETe=I.createElement(vTe,null);class STe extends I.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?I.createElement(Nc.Provider,{value:this.props.routeContext},I.createElement(mG.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function TTe(e){let{routeContext:t,match:n,children:r}=e,i=I.useContext(Dk);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),I.createElement(Nc.Provider,{value:t},r)}function wTe(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let a=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let c=a.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id]));c>=0||Bn(!1),a=a.slice(0,Math.min(a.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((c,d,p)=>{let h,m=!1,b=null,O=null;n&&(h=s&&d.route.id?s[d.route.id]:void 0,b=d.route.errorElement||ETe,l&&(u<0&&p===0?(_Te("route-fallback",!1),m=!0,O=null):u===p&&(m=!0,O=d.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,p+1)),v=()=>{let S;return h?S=b:m?S=O:d.route.Component?S=I.createElement(d.route.Component,null):d.route.element?S=d.route.element:S=c,I.createElement(TTe,{match:d,routeContext:{outlet:c,matches:y,isDataRoute:n!=null},children:S})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?I.createElement(STe,{location:n.location,revalidation:n.revalidation,component:b,error:h,children:v(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):v()},null)}var bG=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(bG||{}),uT=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}(uT||{});function kTe(e){let t=I.useContext(Dk);return t||Bn(!1),t}function xTe(e){let t=I.useContext(hG);return t||Bn(!1),t}function CTe(e){let t=I.useContext(Nc);return t||Bn(!1),t}function yG(e){let t=CTe(),n=t.matches[t.matches.length-1];return n.route.id||Bn(!1),n.route.id}function OG(){var e;let t=I.useContext(mG),n=xTe(uT.UseRouteError),r=yG(uT.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function ATe(){let{router:e}=kTe(bG.UseNavigateStable),t=yG(uT.UseNavigateStable),n=I.useRef(!1);return gG(()=>{n.current=!0}),I.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Dy({fromRouteId:t},o)))},[e,t])}const m7={};function _Te(e,t,n){!t&&!m7[e]&&(m7[e]=!0)}function iP(e){let{to:t,replace:n,state:r,relative:i}=e;tO()||Bn(!1);let{future:o,static:a}=I.useContext(eO),{matches:s}=I.useContext(Nc),{pathname:l}=_g(),u=Rg(),c=eP(t,JN(s,o.v7_relativeSplatPath),l,i==="path"),d=JSON.stringify(c);return I.useEffect(()=>u(JSON.parse(d),{replace:n,state:r,relative:i}),[u,d,i,n,r]),null}function oP(e){return yTe(e.context)}function RTe(e){let{basename:t="/",children:n=null,location:r,navigationType:i=hi.Pop,navigator:o,static:a=!1,future:s}=e;tO()&&Bn(!1);let l=t.replace(/^\/*/,"/"),u=I.useMemo(()=>({basename:l,navigator:o,static:a,future:Dy({v7_relativeSplatPath:!1},s)}),[l,s,o,a]);typeof r=="string"&&(r=Dc(r));let{pathname:c="/",search:d="",hash:p="",state:h=null,key:m="default"}=r,b=I.useMemo(()=>{let O=J1(c,l);return O==null?null:{location:{pathname:O,search:d,hash:p,state:h,key:m},navigationType:i}},[l,c,d,p,h,m,i]);return b==null?null:I.createElement(eO.Provider,{value:u},I.createElement(Nk.Provider,{children:n,value:b}))}new Promise(()=>{});function ITe(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:I.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:I.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:I.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.21.3 * * Copyright (c) Remix Software Inc. @@ -189,38 +189,56 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function lT(){return lT=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 TTe(e,t){let n=H_(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(o=>{n.append(i,o)})}),n}function wTe(e,t){return GSe({basename:t==null?void 0:t.basename,future:lT({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:gSe({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||kTe(),routes:e,mapRouteProperties:STe,window:t==null?void 0:t.window}).initialize()}function kTe(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=lT({},t,{errors:xTe(t.errors)})),t}function xTe(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 XN(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let o=window[i.__subType];if(typeof o=="function")try{let a=new o(i.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let o=new Error(i.message);o.stack="",n[r]=o}}else n[r]=i;return n}const CTe=I.createContext({isTransitioning:!1}),ATe=I.createContext(new Map),_Te="startTransition",l7=Um[_Te],RTe="flushSync",u7=sle[RTe];function ITe(e){l7?l7(e):e()}function k0(e){u7?u7(e):e()}class DTe{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 NTe(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=I.useState(n.state),[a,s]=I.useState(),[l,u]=I.useState({isTransitioning:!1}),[c,d]=I.useState(),[p,h]=I.useState(),[m,b]=I.useState(),O=I.useRef(new Map),{v7_startTransition:y}=r||{},v=I.useCallback(E=>{y?ITe(E):E()},[y]),S=I.useCallback((E,$)=>{let{deletedFetchers:N,unstable_flushSync:R,unstable_viewTransitionOpts:B}=$;N.forEach(V=>O.current.delete(V)),E.fetchers.forEach((V,z)=>{V.data!==void 0&&O.current.set(z,V.data)});let U=n.window==null||typeof n.window.document.startViewTransition!="function";if(!B||U){R?k0(()=>o(E)):v(()=>o(E));return}if(R){k0(()=>{p&&(c&&c.resolve(),p.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:B.currentLocation,nextLocation:B.nextLocation})});let V=n.window.document.startViewTransition(()=>{k0(()=>o(E))});V.finished.finally(()=>{k0(()=>{d(void 0),h(void 0),s(void 0),u({isTransitioning:!1})})}),k0(()=>h(V));return}p?(c&&c.resolve(),p.skipTransition(),b({state:E,currentLocation:B.currentLocation,nextLocation:B.nextLocation})):(s(E),u({isTransitioning:!0,flushSync:!1,currentLocation:B.currentLocation,nextLocation:B.nextLocation}))},[n.window,p,c,O,v]);I.useLayoutEffect(()=>n.subscribe(S),[n,S]),I.useEffect(()=>{l.isTransitioning&&!l.flushSync&&d(new DTe)},[l]),I.useEffect(()=>{if(c&&a&&n.window){let E=a,$=c.promise,N=n.window.document.startViewTransition(async()=>{v(()=>o(E)),await $});N.finished.finally(()=>{d(void 0),h(void 0),s(void 0),u({isTransitioning:!1})}),h(N)}},[v,a,c,n.window]),I.useEffect(()=>{c&&a&&i.location.key===a.location.key&&c.resolve()},[c,p,i.location,a]),I.useEffect(()=>{!l.isTransitioning&&m&&(s(m.state),u({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),b(void 0))},[l.isTransitioning,m]),I.useEffect(()=>{},[]);let k=I.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:E=>n.navigate(E),push:(E,$,N)=>n.navigate(E,{state:$,preventScrollReset:N==null?void 0:N.preventScrollReset}),replace:(E,$,N)=>n.navigate(E,{replace:!0,state:$,preventScrollReset:N==null?void 0:N.preventScrollReset})}),[n]),C=n.basename||"/",w=I.useMemo(()=>({router:n,navigator:k,static:!1,basename:C}),[n,k,C]);return I.createElement(I.Fragment,null,I.createElement(Rk.Provider,{value:w},I.createElement(iG.Provider,{value:i},I.createElement(ATe.Provider,{value:O.current},I.createElement(CTe.Provider,{value:l},I.createElement(ETe,{basename:C,location:i.location,navigationType:i.historyAction,navigator:k,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},i.initialized||n.future.v7_partialHydration?I.createElement(PTe,{routes:n.routes,future:n.future,state:i}):t))))),null)}function PTe(e){let{routes:t,future:n,state:r}=e;return cTe(t,void 0,r,n)}var c7;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(c7||(c7={}));var d7;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(d7||(d7={}));function LTe(e){let t=I.useRef(H_(e)),n=I.useRef(!1),r=Cg(),i=I.useMemo(()=>TTe(r.search,n.current?null:t.current),[r.search]),o=Pp(),a=I.useCallback((s,l)=>{const u=H_(typeof s=="function"?s(i):s);n.current=!0,o("?"+u,l)},[o,i]);return[i,a]}function so(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 MTe=typeof Symbol=="function"&&Symbol.observable||"@@observable",f7=MTe,XC=()=>Math.random().toString(36).substring(7).split("").join("."),$Te={INIT:`@@redux/INIT${XC()}`,REPLACE:`@@redux/REPLACE${XC()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${XC()}`},uT=$Te;function tP(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 nP(e,t,n){if(typeof e!="function")throw new Error(so(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(so(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(so(1));return n(nP)(e,t)}let r=e,i=t,o=new Map,a=o,s=0,l=!1;function u(){a===o&&(a=new Map,o.forEach((O,y)=>{a.set(y,O)}))}function c(){if(l)throw new Error(so(3));return i}function d(O){if(typeof O!="function")throw new Error(so(4));if(l)throw new Error(so(5));let y=!0;u();const v=s++;return a.set(v,O),function(){if(y){if(l)throw new Error(so(6));y=!1,u(),a.delete(v),o=null}}}function p(O){if(!tP(O))throw new Error(so(7));if(typeof O.type>"u")throw new Error(so(8));if(typeof O.type!="string")throw new Error(so(17));if(l)throw new Error(so(9));try{l=!0,i=r(i,O)}finally{l=!1}return(o=a).forEach(v=>{v()}),O}function h(O){if(typeof O!="function")throw new Error(so(10));r=O,p({type:uT.REPLACE})}function m(){const O=d;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error(so(11));function v(){const k=y;k.next&&k.next(c())}return v(),{unsubscribe:O(v)}},[f7](){return this}}}return p({type:uT.INIT}),{dispatch:p,subscribe:d,getState:c,replaceReducer:h,[f7]:m}}function FTe(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:uT.INIT})>"u")throw new Error(so(12));if(typeof n(void 0,{type:uT.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(so(13))})}function dG(e){const t=Object.keys(e),n={};for(let o=0;o"u")throw s&&s.type,new Error(so(14));u[d]=m,l=l||m!==h}return l=l||r.length!==Object.keys(a).length,l?u:a}}function cT(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function BTe(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(so(15))};const a={getState:i.getState,dispatch:(l,...u)=>o(l,...u)},s=e.map(l=>l(a));return o=cT(...s)(i.dispatch),{...i,dispatch:o}}}function UTe(e){return tP(e)&&"type"in e&&typeof e.type=="string"}var fG=Symbol.for("immer-nothing"),p7=Symbol.for("immer-draftable"),gs=Symbol.for("immer-state");function Sl(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Jm=Object.getPrototypeOf;function Wd(e){return!!e&&!!e[gs]}function Ec(e){var t;return e?pG(e)||Array.isArray(e)||!!e[p7]||!!((t=e.constructor)!=null&&t[p7])||Nk(e)||Pk(e):!1}var jTe=Object.prototype.constructor.toString();function pG(e){if(!e||typeof e!="object")return!1;const t=Jm(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)===jTe}function Ry(e,t){Dk(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function Dk(e){const t=e[gs];return t?t.type_:Array.isArray(e)?1:Nk(e)?2:Pk(e)?3:0}function W_(e,t){return Dk(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function hG(e,t,n){const r=Dk(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function zTe(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Nk(e){return e instanceof Map}function Pk(e){return e instanceof Set}function If(e){return e.copy_||e.base_}function Q_(e,t){if(Nk(e))return new Map(e);if(Pk(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&pG(e))return Jm(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[gs];let r=Reflect.ownKeys(n);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=VTe),Object.freeze(e),t&&Ry(e,(n,r)=>rP(r,!0))),e}function VTe(){Sl(2)}function Lk(e){return Object.isFrozen(e)}var HTe={};function vp(e){const t=HTe[e];return t||Sl(0,e),t}var Iy;function mG(){return Iy}function WTe(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function h7(e,t){t&&(vp("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Y_(e){G_(e),e.drafts_.forEach(QTe),e.drafts_=null}function G_(e){e===Iy&&(Iy=e.parent_)}function m7(e){return Iy=WTe(Iy,e)}function QTe(e){const t=e[gs];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function g7(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[gs].modified_&&(Y_(t),Sl(4)),Ec(e)&&(e=dT(t,e),t.parent_||fT(t,e)),t.patches_&&vp("Patches").generateReplacementPatches_(n[gs].base_,e,t.patches_,t.inversePatches_)):e=dT(t,n,[]),Y_(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==fG?e:void 0}function dT(e,t,n){if(Lk(t))return t;const r=t[gs];if(!r)return Ry(t,(i,o)=>b7(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return fT(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,a=!1;r.type_===3&&(o=new Set(i),i.clear(),a=!0),Ry(o,(s,l)=>b7(e,r,i,s,l,n,a)),fT(e,i,!1),n&&e.patches_&&vp("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function b7(e,t,n,r,i,o,a){if(Wd(i)){const s=o&&t&&t.type_!==3&&!W_(t.assigned_,r)?o.concat(r):void 0,l=dT(e,i,s);if(hG(n,r,l),Wd(l))e.canAutoFreeze_=!1;else return}else a&&n.add(i);if(Ec(i)&&!Lk(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;dT(e,i),(!t||!t.scope_.parent_)&&fT(e,i)}}function fT(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&rP(t,n)}function YTe(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:mG(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=iP;n&&(i=[r],o=Dy);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}var iP={get(e,t){if(t===gs)return e;const n=If(e);if(!W_(n,t))return GTe(e,n,t);const r=n[t];return e.finalized_||!Ec(r)?r:r===KC(e.base_,t)?(JC(e),e.copy_[t]=Z_(r,e)):r},has(e,t){return t in If(e)},ownKeys(e){return Reflect.ownKeys(If(e))},set(e,t,n){const r=gG(If(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=KC(If(e),t),o=i==null?void 0:i[gs];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(zTe(n,i)&&(n!==void 0||W_(e.base_,t)))return!0;JC(e),q_(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 KC(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,JC(e),q_(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=If(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Sl(11)},getPrototypeOf(e){return Jm(e.base_)},setPrototypeOf(){Sl(12)}},Dy={};Ry(iP,(e,t)=>{Dy[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Dy.deleteProperty=function(e,t){return Dy.set.call(this,e,t,void 0)};Dy.set=function(e,t,n){return iP.set.call(this,e[0],t,n,e[0])};function KC(e,t){const n=e[gs];return(n?If(n):e)[t]}function GTe(e,t,n){var i;const r=gG(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function gG(e,t){if(!(t in e))return;let n=Jm(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Jm(n)}}function q_(e){e.modified_||(e.modified_=!0,e.parent_&&q_(e.parent_))}function JC(e){e.copy_||(e.copy_=Q_(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var qTe=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const a=this;return function(l=o,...u){return a.produce(l,c=>n.call(this,c,...u))}}typeof n!="function"&&Sl(6),r!==void 0&&typeof r!="function"&&Sl(7);let i;if(Ec(t)){const o=m7(this),a=Z_(t,void 0);let s=!0;try{i=n(a),s=!1}finally{s?Y_(o):G_(o)}return h7(o,r),g7(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===fG&&(i=void 0),this.autoFreeze_&&rP(i,!0),r){const o=[],a=[];vp("Patches").generateReplacementPatches_(t,i,o,a),r(o,a)}return i}else Sl(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,l=>t(l,...s));let r,i;return[this.produce(t,n,(a,s)=>{r=a,i=s}),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){Ec(e)||Sl(8),Wd(e)&&(e=bG(e));const t=m7(this),n=Z_(e,void 0);return n[gs].isManual_=!0,G_(t),n}finishDraft(e,t){const n=e&&e[gs];(!n||!n.isManual_)&&Sl(9);const{scope_:r}=n;return h7(r,t),g7(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=vp("Patches").applyPatches_;return Wd(e)?r(e,t):this.produce(e,i=>r(i,t))}};function Z_(e,t){const n=Nk(e)?vp("MapSet").proxyMap_(e,t):Pk(e)?vp("MapSet").proxySet_(e,t):YTe(e,t);return(t?t.scope_:mG()).drafts_.push(n),n}function bG(e){return Wd(e)||Sl(10,e),yG(e)}function yG(e){if(!Ec(e)||Lk(e))return e;const t=e[gs];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Q_(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Q_(e,!0);return Ry(n,(r,i)=>{hG(n,r,yG(i))}),t&&(t.finalized_=!1),n}var bs=new qTe,OG=bs.produce;bs.produceWithPatches.bind(bs);bs.setAutoFreeze.bind(bs);bs.setUseStrictShallowCopy.bind(bs);bs.applyPatches.bind(bs);bs.createDraft.bind(bs);bs.finishDraft.bind(bs);function ZTe(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function XTe(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function KTe(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var y7=e=>Array.isArray(e)?e:[e];function JTe(e){const t=Array.isArray(e[0])?e[0]:e;return KTe(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function ewe(e,t){const n=[],{length:r}=e;for(let i=0;i{n=Rv(),a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}function vG(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let o=0,a=0,s,l={},u=i.pop();typeof u=="object"&&(l=u,u=i.pop()),ZTe(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const c={...n,...l},{memoize:d,memoizeOptions:p=[],argsMemoize:h=oP,argsMemoizeOptions:m=[],devModeChecks:b={}}=c,O=y7(p),y=y7(m),v=JTe(i),S=d(function(){return o++,u.apply(null,arguments)},...O),k=h(function(){a++;const w=ewe(v,arguments);return s=S.apply(null,w),s},...y);return Object.assign(k,{resultFunc:u,memoizedResultFunc:S,dependencies:v,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>s,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:d,argsMemoize:h})};return Object.assign(r,{withTypes:()=>r}),r}var iwe=vG(oP),owe=Object.assign((e,t=iwe)=>{XTe(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(o=>e[o]);return t(r,(...o)=>o.reduce((a,s,l)=>(a[n[l]]=s,a),{}))},{withTypes:()=>owe});function EG(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var awe=EG(),swe=EG,lwe=(...e)=>{const t=vG(...e);return(...n)=>{const r=t(...n),i=(o,...a)=>r(Wd(o)?bG(o):o,...a);return Object.assign(i,r),i}};lwe(oP);var uwe=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?cT:cT.apply(null,arguments)};function Ny(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(_l(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=>UTe(r)&&r.type===e,n}var SG=class nb extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,nb.prototype)}static get[Symbol.species](){return nb}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new nb(...t[0].concat(this)):new nb(...t.concat(this))}};function v7(e){return Ec(e)?OG(e,()=>{}):e}function E7(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(_l(10));const r=n.insert(t,e);return e.set(t,r),r}function cwe(e){return typeof e=="boolean"}var dwe=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let a=new SG;return n&&(cwe(n)?a.push(awe):a.push(swe(n.extraArgument))),a},fwe="RTK_autoBatch",TG=e=>t=>{setTimeout(t,e)},pwe=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:TG(10),hwe=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,a=!1;const s=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?pwe:e.type==="callback"?e.queueNotification:TG(e.timeout),u=()=>{a=!1,o&&(o=!1,s.forEach(c=>c()))};return Object.assign({},r,{subscribe(c){const d=()=>i&&c(),p=r.subscribe(d);return s.add(c),()=>{p(),s.delete(c)}},dispatch(c){var d;try{return i=!((d=c==null?void 0:c.meta)!=null&&d[fwe]),o=!i,o&&(a||(a=!0,l(u))),r.dispatch(c)}finally{i=!0}}})},mwe=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new SG(e);return r&&i.push(hwe(typeof r=="object"?r:void 0)),i},gwe=!0;function bwe(e){const t=dwe(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{};let s;if(typeof n=="function")s=n;else if(tP(n))s=dG(n);else throw new Error(_l(1));let l;typeof r=="function"?l=r(t):l=t();let u=cT;i&&(u=uwe({trace:!gwe,...typeof i=="object"&&i}));const c=BTe(...l),d=mwe(c);let p=typeof a=="function"?a(d):d();const h=u(...p);return nP(s,o,h)}function wG(e){const t={},n=[];let r;const i={addCase(o,a){const s=typeof o=="string"?o:o.type;if(!s)throw new Error(_l(28));if(s in t)throw new Error(_l(29));return t[s]=a,i},addMatcher(o,a){return n.push({matcher:o,reducer:a}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function ywe(e){return typeof e=="function"}function Owe(e,t){let[n,r,i]=wG(t),o;if(ywe(e))o=()=>v7(e());else{const s=v7(e);o=()=>s}function a(s=o(),l){let u=[n[l.type],...r.filter(({matcher:c})=>c(l)).map(({reducer:c})=>c)];return u.filter(c=>!!c).length===0&&(u=[i]),u.reduce((c,d)=>{if(d)if(Wd(c)){const h=d(c,l);return h===void 0?c:h}else{if(Ec(c))return OG(c,p=>d(p,l));{const p=d(c,l);if(p===void 0){if(c===null)return c;throw new Error(_l(9))}return p}}return c},s)}return a.getInitialState=o,a}var vwe=Symbol.for("rtk-slice-createasyncthunk");function Ewe(e,t){return`${e}/${t}`}function Swe({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[vwe];return function(i){const{name:o,reducerPath:a=o}=i;if(!o)throw new Error(_l(11));typeof process<"u";const s=(typeof i.reducers=="function"?i.reducers(wwe()):i.reducers)||{},l=Object.keys(s),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(O,y){const v=typeof O=="string"?O:O.type;if(!v)throw new Error(_l(12));if(v in u.sliceCaseReducersByType)throw new Error(_l(13));return u.sliceCaseReducersByType[v]=y,c},addMatcher(O,y){return u.sliceMatchers.push({matcher:O,reducer:y}),c},exposeAction(O,y){return u.actionCreators[O]=y,c},exposeCaseReducer(O,y){return u.sliceCaseReducersByName[O]=y,c}};l.forEach(O=>{const y=s[O],v={reducerName:O,type:Ewe(o,O),createNotation:typeof i.reducers=="function"};xwe(y)?Awe(v,y,c,t):kwe(v,y,c)});function d(){const[O={},y=[],v=void 0]=typeof i.extraReducers=="function"?wG(i.extraReducers):[i.extraReducers],S={...O,...u.sliceCaseReducersByType};return Owe(i.initialState,k=>{for(let C in S)k.addCase(C,S[C]);for(let C of u.sliceMatchers)k.addMatcher(C.matcher,C.reducer);for(let C of y)k.addMatcher(C.matcher,C.reducer);v&&k.addDefaultCase(v)})}const p=O=>O,h=new WeakMap;let m;const b={name:o,reducerPath:a,reducer(O,y){return m||(m=d()),m(O,y)},actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState(){return m||(m=d()),m.getInitialState()},getSelectors(O=p){const y=E7(h,this,{insert:()=>new WeakMap});return E7(y,O,{insert:()=>{const v={};for(const[S,k]of Object.entries(i.selectors??{}))v[S]=Twe(this,k,O,this!==b);return v}})},selectSlice(O){let y=O[this.reducerPath];return typeof y>"u"&&this!==b&&(y=this.getInitialState()),y},get selectors(){return this.getSelectors(this.selectSlice)},injectInto(O,{reducerPath:y,...v}={}){const S=y??this.reducerPath;return O.inject({reducerPath:S,reducer:this.reducer},v),{...this,reducerPath:S}}};return b}}function Twe(e,t,n,r){function i(o,...a){let s=n.call(e,o);return typeof s>"u"&&r&&(s=e.getInitialState()),t(s,...a)}return i.unwrapped=t,i}var Mk=Swe();function wwe(){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 kwe({type:e,reducerName:t,createNotation:n},r,i){let o,a;if("reducer"in r){if(n&&!Cwe(r))throw new Error(_l(17));o=r.reducer,a=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?Ny(e,a):Ny(e))}function xwe(e){return e._reducerDefinitionType==="asyncThunk"}function Cwe(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Awe({type:e,reducerName:t},n,r,i){if(!i)throw new Error(_l(18));const{payloadCreator:o,fulfilled:a,pending:s,rejected:l,settled:u,options:c}=n,d=i(e,o,c);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a),s&&r.addCase(d.pending,s),l&&r.addCase(d.rejected,l),u&&r.addMatcher(d.settled,u),r.exposeCaseReducer(t,{fulfilled:a||Iv,pending:s||Iv,rejected:l||Iv,settled:u||Iv})}function Iv(){}var aP="listenerMiddleware";Ny(`${aP}/add`);Ny(`${aP}/removeAll`);Ny(`${aP}/remove`);function _l(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 _we={theme:"default"},kG=Mk({name:"editor",initialState:_we,reducers:{setTheme:(e,t)=>{e.theme=t.payload}}}),{setTheme:Rwe}=kG.actions,xG=e=>e.config,Iwe=kG.reducer;function CG(e,t){return function(){return e.apply(t,arguments)}}const{toString:Dwe}=Object.prototype,{getPrototypeOf:sP}=Object,$k=(e=>t=>{const n=Dwe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Nu=e=>(e=e.toLowerCase(),t=>$k(t)===e),Fk=e=>t=>typeof t===e,{isArray:_g}=Array,Py=Fk("undefined");function Nwe(e){return e!==null&&!Py(e)&&e.constructor!==null&&!Py(e.constructor)&&Ys(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const AG=Nu("ArrayBuffer");function Pwe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&AG(e.buffer),t}const Lwe=Fk("string"),Ys=Fk("function"),_G=Fk("number"),Bk=e=>e!==null&&typeof e=="object",Mwe=e=>e===!0||e===!1,jE=e=>{if($k(e)!=="object")return!1;const t=sP(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},$we=Nu("Date"),Fwe=Nu("File"),Bwe=Nu("Blob"),Uwe=Nu("FileList"),jwe=e=>Bk(e)&&Ys(e.pipe),zwe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ys(e.append)&&((t=$k(e))==="formdata"||t==="object"&&Ys(e.toString)&&e.toString()==="[object FormData]"))},Vwe=Nu("URLSearchParams"),Hwe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function eO(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),_g(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const IG=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,DG=e=>!Py(e)&&e!==IG;function X_(){const{caseless:e}=DG(this)&&this||{},t={},n=(r,i)=>{const o=e&&RG(t,i)||i;jE(t[o])&&jE(r)?t[o]=X_(t[o],r):jE(r)?t[o]=X_({},r):_g(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(eO(t,(i,o)=>{n&&Ys(i)?e[o]=CG(i,n):e[o]=i},{allOwnKeys:r}),e),Qwe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ywe=(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)},Gwe=(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&sP(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},qwe=(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},Zwe=e=>{if(!e)return null;if(_g(e))return e;let t=e.length;if(!_G(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Xwe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&sP(Uint8Array)),Kwe=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},Jwe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},eke=Nu("HTMLFormElement"),tke=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),S7=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),nke=Nu("RegExp"),NG=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};eO(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},rke=e=>{NG(e,(t,n)=>{if(Ys(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ys(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+"'")})}})},ike=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return _g(e)?r(e):r(String(e).split(t)),n},oke=()=>{},ake=(e,t)=>(e=+e,Number.isFinite(e)?e:t),eA="abcdefghijklmnopqrstuvwxyz",T7="0123456789",PG={DIGIT:T7,ALPHA:eA,ALPHA_DIGIT:eA+eA.toUpperCase()+T7},ske=(e=16,t=PG.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function lke(e){return!!(e&&Ys(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const uke=e=>{const t=new Array(10),n=(r,i)=>{if(Bk(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=_g(r)?[]:{};return eO(r,(a,s)=>{const l=n(a,i+1);!Py(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},cke=Nu("AsyncFunction"),dke=e=>e&&(Bk(e)||Ys(e))&&Ys(e.then)&&Ys(e.catch),ut={isArray:_g,isArrayBuffer:AG,isBuffer:Nwe,isFormData:zwe,isArrayBufferView:Pwe,isString:Lwe,isNumber:_G,isBoolean:Mwe,isObject:Bk,isPlainObject:jE,isUndefined:Py,isDate:$we,isFile:Fwe,isBlob:Bwe,isRegExp:nke,isFunction:Ys,isStream:jwe,isURLSearchParams:Vwe,isTypedArray:Xwe,isFileList:Uwe,forEach:eO,merge:X_,extend:Wwe,trim:Hwe,stripBOM:Qwe,inherits:Ywe,toFlatObject:Gwe,kindOf:$k,kindOfTest:Nu,endsWith:qwe,toArray:Zwe,forEachEntry:Kwe,matchAll:Jwe,isHTMLForm:eke,hasOwnProperty:S7,hasOwnProp:S7,reduceDescriptors:NG,freezeMethods:rke,toObjectSet:ike,toCamelCase:tke,noop:oke,toFiniteNumber:ake,findKey:RG,global:IG,isContextDefined:DG,ALPHABET:PG,generateString:ske,isSpecCompliantForm:lke,toJSONObject:uke,isAsyncFn:cke,isThenable:dke};function Zn(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)}ut.inherits(Zn,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.response&&this.response.status?this.response.status:null}}});const LG=Zn.prototype,MG={};["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=>{MG[e]={value:e}});Object.defineProperties(Zn,MG);Object.defineProperty(LG,"isAxiosError",{value:!0});Zn.from=(e,t,n,r,i,o)=>{const a=Object.create(LG);return ut.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Zn.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const fke=null;function K_(e){return ut.isPlainObject(e)||ut.isArray(e)}function $G(e){return ut.endsWith(e,"[]")?e.slice(0,-2):e}function w7(e,t,n){return e?e.concat(t).map(function(i,o){return i=$G(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function pke(e){return ut.isArray(e)&&!e.some(K_)}const hke=ut.toFlatObject(ut,{},null,function(t){return/^is[A-Z]/.test(t)});function Uk(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(b,O){return!ut.isUndefined(O[b])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,a=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(m){if(m===null)return"";if(ut.isDate(m))return m.toISOString();if(!l&&ut.isBlob(m))throw new Zn("Blob is not supported. Use a Buffer instead.");return ut.isArrayBuffer(m)||ut.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,b,O){let y=m;if(m&&!O&&typeof m=="object"){if(ut.endsWith(b,"{}"))b=r?b:b.slice(0,-2),m=JSON.stringify(m);else if(ut.isArray(m)&&pke(m)||(ut.isFileList(m)||ut.endsWith(b,"[]"))&&(y=ut.toArray(m)))return b=$G(b),y.forEach(function(S,k){!(ut.isUndefined(S)||S===null)&&t.append(a===!0?w7([b],k,o):a===null?b:b+"[]",u(S))}),!1}return K_(m)?!0:(t.append(w7(O,b,o),u(m)),!1)}const d=[],p=Object.assign(hke,{defaultVisitor:c,convertValue:u,isVisitable:K_});function h(m,b){if(!ut.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+b.join("."));d.push(m),ut.forEach(m,function(y,v){(!(ut.isUndefined(y)||y===null)&&i.call(t,y,ut.isString(v)?v.trim():v,b,p))===!0&&h(y,b?b.concat(v):[v])}),d.pop()}}if(!ut.isObject(e))throw new TypeError("data must be an object");return h(e),t}function k7(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function lP(e,t){this._pairs=[],e&&Uk(e,this,t)}const FG=lP.prototype;FG.append=function(t,n){this._pairs.push([t,n])};FG.toString=function(t){const n=t?function(r){return t.call(this,r,k7)}:k7;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function mke(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function BG(e,t,n){if(!t)return e;const r=n&&n.encode||mke,i=n&&n.serialize;let o;if(i?o=i(t,n):o=ut.isURLSearchParams(t)?t.toString():new lP(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class x7{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 UG={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},gke=typeof URLSearchParams<"u"?URLSearchParams:lP,bke=typeof FormData<"u"?FormData:null,yke=typeof Blob<"u"?Blob:null,Oke={isBrowser:!0,classes:{URLSearchParams:gke,FormData:bke,Blob:yke},protocols:["http","https","file","blob","url","data"]},jG=typeof window<"u"&&typeof document<"u",vke=(e=>jG&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Eke=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ske=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:jG,hasStandardBrowserEnv:vke,hasStandardBrowserWebWorkerEnv:Eke},Symbol.toStringTag,{value:"Module"})),gu={...Ske,...Oke};function Tke(e,t){return Uk(e,new gu.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return gu.isNode&&ut.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function wke(e){return ut.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function kke(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return a=!a&&ut.isArray(i)?i.length:a,l?(ut.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!ut.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&ut.isArray(i[a])&&(i[a]=kke(i[a])),!s)}if(ut.isFormData(e)&&ut.isFunction(e.entries)){const n={};return ut.forEachEntry(e,(r,i)=>{t(wke(r),i,n,0)}),n}return null}function xke(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 uP={transitional:UG,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=ut.isObject(t);if(o&&ut.isHTMLForm(t)&&(t=new FormData(t)),ut.isFormData(t))return i&&i?JSON.stringify(zG(t)):t;if(ut.isArrayBuffer(t)||ut.isBuffer(t)||ut.isStream(t)||ut.isFile(t)||ut.isBlob(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 s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Tke(t,this.formSerializer).toString();if((s=ut.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Uk(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),xke(t)):t}],transformResponse:[function(t){const n=this.transitional||uP.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&ut.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?Zn.from(s,Zn.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gu.classes.FormData,Blob:gu.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=>{uP.headers[e]={}});const cP=uP,Cke=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"]),Ake=e=>{const t={};let n,r,i;return e&&e.split(` -`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&Cke[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},C7=Symbol("internals");function x0(e){return e&&String(e).trim().toLowerCase()}function zE(e){return e===!1||e==null?e:ut.isArray(e)?e.map(zE):String(e)}function _ke(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 Rke=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function tA(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 Ike(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Dke(e,t){const n=ut.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}class jk{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,u){const c=x0(l);if(!c)throw new Error("header name must be a non-empty string");const d=ut.findKey(i,c);(!d||i[d]===void 0||u===!0||u===void 0&&i[d]!==!1)&&(i[d||l]=zE(s))}const a=(s,l)=>ut.forEach(s,(u,c)=>o(u,c,l));return ut.isPlainObject(t)||t instanceof this.constructor?a(t,n):ut.isString(t)&&(t=t.trim())&&!Rke(t)?a(Ake(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=x0(t),t){const r=ut.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return _ke(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=x0(t),t){const r=ut.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||tA(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=x0(a),a){const s=ut.findKey(r,a);s&&(!n||tA(r,r[s],s,n))&&(delete r[s],i=!0)}}return ut.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||tA(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return ut.forEach(this,(i,o)=>{const a=ut.findKey(r,o);if(a){n[a]=zE(i),delete n[o];return}const s=t?Ike(o):String(o).trim();s!==o&&delete n[o],n[s]=zE(i),r[s]=!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[C7]=this[C7]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=x0(a);r[s]||(Dke(i,a),r[s]=!0)}return ut.isArray(t)?t.forEach(o):o(t),this}}jk.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ut.reduceDescriptors(jk.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ut.freezeMethods(jk);const fc=jk;function nA(e,t){const n=this||cP,r=t||n,i=fc.from(r.headers);let o=r.data;return ut.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function VG(e){return!!(e&&e.__CANCEL__)}function tO(e,t,n){Zn.call(this,e??"canceled",Zn.ERR_CANCELED,t,n),this.name="CanceledError"}ut.inherits(tO,Zn,{__CANCEL__:!0});function Nke(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Zn("Request failed with status code "+n.status,[Zn.ERR_BAD_REQUEST,Zn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Pke=gu.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];ut.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),ut.isString(r)&&a.push("path="+r),ut.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.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 Lke(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Mke(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function HG(e,t){return e&&!Lke(t)?Mke(e,t):t}const $ke=gu.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let a=o;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{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(a){const s=ut.isString(a)?i(a):a;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function Fke(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Bke(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[o];a||(a=u),n[i]=l,r[i]=u;let d=o,p=0;for(;d!==i;)p+=n[d++],d=d%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-a{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-n,l=r(s),u=o<=a;n=o;const c={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&u?(a-o)/l:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}const Uke=typeof XMLHttpRequest<"u",jke=Uke&&function(e){return new Promise(function(n,r){let i=e.data;const o=fc.from(e.headers).normalize();let{responseType:a,withXSRFToken:s}=e,l;function u(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let c;if(ut.isFormData(i)){if(gu.hasStandardBrowserEnv||gu.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((c=o.getContentType())!==!1){const[b,...O]=c?c.split(";").map(y=>y.trim()).filter(Boolean):[];o.setContentType([b||"multipart/form-data",...O].join("; "))}}let d=new XMLHttpRequest;if(e.auth){const b=e.auth.username||"",O=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(b+":"+O))}const p=HG(e.baseURL,e.url);d.open(e.method.toUpperCase(),BG(p,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function h(){if(!d)return;const b=fc.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),y={data:!a||a==="text"||a==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:b,config:e,request:d};Nke(function(S){n(S),u()},function(S){r(S),u()},y),d=null}if("onloadend"in d?d.onloadend=h:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(h)},d.onabort=function(){d&&(r(new Zn("Request aborted",Zn.ECONNABORTED,e,d)),d=null)},d.onerror=function(){r(new Zn("Network Error",Zn.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let O=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const y=e.transitional||UG;e.timeoutErrorMessage&&(O=e.timeoutErrorMessage),r(new Zn(O,y.clarifyTimeoutError?Zn.ETIMEDOUT:Zn.ECONNABORTED,e,d)),d=null},gu.hasStandardBrowserEnv&&(s&&ut.isFunction(s)&&(s=s(e)),s||s!==!1&&$ke(p))){const b=e.xsrfHeaderName&&e.xsrfCookieName&&Pke.read(e.xsrfCookieName);b&&o.set(e.xsrfHeaderName,b)}i===void 0&&o.setContentType(null),"setRequestHeader"in d&&ut.forEach(o.toJSON(),function(O,y){d.setRequestHeader(y,O)}),ut.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),a&&a!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",A7(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",A7(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=b=>{d&&(r(!b||b.type?new tO(null,e,d):b),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const m=Fke(p);if(m&&gu.protocols.indexOf(m)===-1){r(new Zn("Unsupported protocol "+m+":",Zn.ERR_BAD_REQUEST,e));return}d.send(i||null)})},J_={http:fke,xhr:jke};ut.forEach(J_,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const _7=e=>`- ${e}`,zke=e=>ut.isFunction(e)||e===null||e===!1,WG={getAdapter:e=>{e=ut.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since : -`+o.map(_7).join(` -`):" "+_7(o[0]):"as no adapter specified";throw new Zn("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:J_};function rA(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new tO(null,e)}function R7(e){return rA(e),e.headers=fc.from(e.headers),e.data=nA.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),WG.getAdapter(e.adapter||cP.adapter)(e).then(function(r){return rA(e),r.data=nA.call(e,e.transformResponse,r),r.headers=fc.from(r.headers),r},function(r){return VG(r)||(rA(e),r&&r.response&&(r.response.data=nA.call(e,e.transformResponse,r.response),r.response.headers=fc.from(r.response.headers))),Promise.reject(r)})}const I7=e=>e instanceof fc?e.toJSON():e;function eg(e,t){t=t||{};const n={};function r(u,c,d){return ut.isPlainObject(u)&&ut.isPlainObject(c)?ut.merge.call({caseless:d},u,c):ut.isPlainObject(c)?ut.merge({},c):ut.isArray(c)?c.slice():c}function i(u,c,d){if(ut.isUndefined(c)){if(!ut.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function o(u,c){if(!ut.isUndefined(c))return r(void 0,c)}function a(u,c){if(ut.isUndefined(c)){if(!ut.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(u,c)=>i(I7(u),I7(c),!0)};return ut.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=l[c]||i,p=d(e[c],t[c],c);ut.isUndefined(p)&&d!==s||(n[c]=p)}),n}const QG="1.6.5",dP={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{dP[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const D7={};dP.transitional=function(t,n,r){function i(o,a){return"[Axios v"+QG+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new Zn(i(a," has been removed"+(n?" in "+n:"")),Zn.ERR_DEPRECATED);return n&&!D7[a]&&(D7[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,s):!0}};function Vke(e,t,n){if(typeof e!="object")throw new Zn("options must be an object",Zn.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const s=e[o],l=s===void 0||a(s,o,e);if(l!==!0)throw new Zn("option "+o+" must be "+l,Zn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Zn("Unknown option "+o,Zn.ERR_BAD_OPTION)}}const eR={assertOptions:Vke,validators:dP},zc=eR.validators;class pT{constructor(t){this.defaults=t,this.interceptors={request:new x7,response:new x7}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=eg(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&eR.assertOptions(r,{silentJSONParsing:zc.transitional(zc.boolean),forcedJSONParsing:zc.transitional(zc.boolean),clarifyTimeoutError:zc.transitional(zc.boolean)},!1),i!=null&&(ut.isFunction(i)?n.paramsSerializer={serialize:i}:eR.assertOptions(i,{encode:zc.function,serialize:zc.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&ut.merge(o.common,o[n.method]);o&&ut.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=fc.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(n)===!1||(l=l&&b.synchronous,s.unshift(b.fulfilled,b.rejected))});const u=[];this.interceptors.response.forEach(function(b){u.push(b.fulfilled,b.rejected)});let c,d=0,p;if(!l){const m=[R7.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,u),p=m.length,c=Promise.resolve(n);d{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new tO(o,a,s),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)}static source(){let t;return{token:new fP(function(i){t=i}),cancel:t}}}const Hke=fP;function Wke(e){return function(n){return e.apply(null,n)}}function Qke(e){return ut.isObject(e)&&e.isAxiosError===!0}const tR={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(tR).forEach(([e,t])=>{tR[t]=e});const Yke=tR;function YG(e){const t=new VE(e),n=CG(VE.prototype.request,t);return ut.extend(n,VE.prototype,t,{allOwnKeys:!0}),ut.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return YG(eg(e,i))},n}const ir=YG(cP);ir.Axios=VE;ir.CanceledError=tO;ir.CancelToken=Hke;ir.isCancel=VG;ir.VERSION=QG;ir.toFormData=Uk;ir.AxiosError=Zn;ir.Cancel=ir.CanceledError;ir.all=function(t){return Promise.all(t)};ir.spread=Wke;ir.isAxiosError=Qke;ir.mergeConfig=eg;ir.AxiosHeaders=fc;ir.formToJSON=e=>zG(ut.isHTMLForm(e)?new FormData(e):e);ir.getAdapter=WG.getAdapter;ir.HttpStatusCode=Yke;ir.default=ir;var pP={},GG={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})(GG);var Oo=GG.exports,iA={};const Gke=Moe(rfe);var N7;function vo(){return N7||(N7=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Gke}(iA)),iA}var qke=Oo;Object.defineProperty(pP,"__esModule",{value:!0});var qG=pP.default=void 0,Zke=qke(vo()),Xke=P;qG=pP.default=(0,Zke.default)((0,Xke.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 hP={},Kke=Oo;Object.defineProperty(hP,"__esModule",{value:!0});var ZG=hP.default=void 0,Jke=Kke(vo()),exe=P;ZG=hP.default=(0,Jke.default)((0,exe.jsx)("path",{d:"M3 15h8v-2H3zm0 4h8v-2H3zm0-8h8V9H3zm0-6v2h8V5zm10 0h8v14h-8z"}),"VerticalSplit");var mP={},txe=Oo;Object.defineProperty(mP,"__esModule",{value:!0});var gP=mP.default=void 0,nxe=txe(vo()),rxe=P;gP=mP.default=(0,nxe.default)((0,rxe.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");var bP={},ixe=Oo;Object.defineProperty(bP,"__esModule",{value:!0});var zk=bP.default=void 0,oxe=ixe(vo()),axe=P;zk=bP.default=(0,oxe.default)((0,axe.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");const sxe={mode:"both",doc:null,client:null},XG=Mk({name:"editor",initialState:sxe,reducers:{setMode:(e,t)=>{e.mode=t.payload},setDoc:(e,t)=>{e.doc=t.payload},setClient:(e,t)=>{e.client=t.payload}}}),{setMode:lxe,setDoc:P7,setClient:L7}=XG.actions,Vk=e=>e.editor,uxe=XG.reducer;var yP={},cxe=Oo;Object.defineProperty(yP,"__esModule",{value:!0});var KG=yP.default=void 0,dxe=cxe(vo()),fxe=P;KG=yP.default=(0,dxe.default)((0,fxe.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 OP={},pxe=Oo;Object.defineProperty(OP,"__esModule",{value:!0});var JG=OP.default=void 0,hxe=pxe(vo()),mxe=P;JG=OP.default=(0,hxe.default)((0,mxe.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 vP(){const e=kg("(prefers-color-scheme: dark)"),t=_c(xG);return I.useMemo(()=>{const r=e?"dark":"light";return t.theme==="default"?r:t.theme},[t.theme,e])}function eq(){const e=xg(),t=vP(),n=()=>{e(Rwe(t=="light"?"dark":"light"))};return P.jsx(oa,{onClick:n,color:"inherit",children:t==="light"?P.jsx(JG,{}):P.jsx(KG,{})})}function gxe(){return Math.random().toString(36).substring(7)}function bxe(){const e=xg(),t=_c(Vk),n=Pp(),r=o=>{e(lxe(o))},i=()=>{n(`/${gxe()}`)};return P.jsx(hpe,{position:"static",sx:{zIndex:100},children:P.jsx(Kve,{children:P.jsxs(ui,{width:"100%",direction:"row",justifyContent:"space-between",children:[P.jsxs(ui,{direction:"row",spacing:1,children:[P.jsx(Na,{children:P.jsxs(YEe,{value:t.mode,exclusive:!0,onChange:(o,a)=>r(a),size:"small",children:[P.jsx(YC,{value:"edit","aria-label":"edit",children:P.jsx(tb,{title:"Edit Mode",children:P.jsx(qG,{})})}),P.jsx(YC,{value:"both","aria-label":"both",children:P.jsx(tb,{title:"Both Mode",children:P.jsx(ZG,{})})}),P.jsx(YC,{value:"read","aria-label":"read",children:P.jsx(tb,{title:"Read Mode",children:P.jsx(gP,{})})})]})}),P.jsx(tb,{title:"Create New Note",children:P.jsx(oa,{color:"inherit",onClick:i,children:P.jsx(zk,{})})})]}),P.jsx(eq,{})]})})})}function yxe(){return P.jsxs(_a,{sx:{flexGrow:1},height:"100vh",children:[P.jsx(bxe,{}),P.jsx(eP,{})]})}class rr{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]=tg(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),fu.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]=tg(this,t,n);let r=[];return this.decompose(t,n,r,0),fu.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 Ib(this),o=new Ib(t);for(let a=n,s=n;;){if(i.next(a),o.next(a),a=0,i.lineBreak!=o.lineBreak||i.done!=o.done||i.value!=o.value)return!1;if(s+=i.value.length,i.done||s>=r)return!0}}iter(t=1){return new Ib(this,t)}iterRange(t,n=this.length){return new tq(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 nq(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]?rr.empty:t.length<=32?new gi(t):fu.from(gi.split(t,[]))}}class gi extends rr{constructor(t,n=Oxe(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 o=0;;o++){let a=this.text[o],s=i+a.length;if((n?r:s)>=t)return new vxe(i,s,r,a);i=s+1,r++}}decompose(t,n,r,i){let o=t<=0&&n>=this.length?this:new gi(M7(this.text,t,n),Math.min(n,this.length)-Math.max(0,t));if(i&1){let a=r.pop(),s=HE(o.text,a.text.slice(),0,o.length);if(s.length<=32)r.push(new gi(s,a.length+o.length));else{let l=s.length>>1;r.push(new gi(s.slice(0,l)),new gi(s.slice(l)))}}else r.push(o)}replace(t,n,r){if(!(r instanceof gi))return super.replace(t,n,r);[t,n]=tg(this,t,n);let i=HE(this.text,HE(r.text,M7(this.text,0,t)),n),o=this.length+r.length-(n-t);return i.length<=32?new gi(i,o):fu.from(gi.split(i,[]),o)}sliceString(t,n=this.length,r=` -`){[t,n]=tg(this,t,n);let i="";for(let o=0,a=0;o<=n&&at&&a&&(i+=r),to&&(i+=s.slice(Math.max(0,t-o),n-o)),o=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 o of t)r.push(o),i+=o.length+1,r.length==32&&(n.push(new gi(r,i)),r=[],i=-1);return i>-1&&n.push(new gi(r,i)),n}}class fu extends rr{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 o=0;;o++){let a=this.children[o],s=i+a.length,l=r+a.lines-1;if((n?l:s)>=t)return a.lineInner(t,n,r,i);i=s+1,r=l+1}}decompose(t,n,r,i){for(let o=0,a=0;a<=n&&o=a){let u=i&((a<=t?1:0)|(l>=n?2:0));a>=t&&l<=n&&!u?r.push(s):s.decompose(t-a,n-a,r,u)}a=l+1}}replace(t,n,r){if([t,n]=tg(this,t,n),r.lines=o&&n<=s){let l=a.replace(t-o,n-o,r),u=this.lines-a.lines+l.lines;if(l.lines>4&&l.lines>u>>6){let c=this.children.slice();return c[i]=l,new fu(c,this.length-(n-t)+r.length)}return super.replace(o,s,l)}o=s+1}return super.replace(t,n,r)}sliceString(t,n=this.length,r=` -`){[t,n]=tg(this,t,n);let i="";for(let o=0,a=0;ot&&o&&(i+=r),ta&&(i+=s.sliceString(t-a,n-a,r)),a=l+1}return i}flatten(t){for(let n of this.children)n.flatten(t)}scanIdentical(t,n){if(!(t instanceof fu))return 0;let r=0,[i,o,a,s]=n>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;i+=n,o+=n){if(i==a||o==s)return r;let l=this.children[i],u=t.children[o];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 h of t)r+=h.lines;if(r<32){let h=[];for(let m of t)m.flatten(h);return new gi(h,n)}let i=Math.max(32,r>>5),o=i<<1,a=i>>1,s=[],l=0,u=-1,c=[];function d(h){let m;if(h.lines>o&&h instanceof fu)for(let b of h.children)d(b);else h.lines>a&&(l>a||!l)?(p(),s.push(h)):h instanceof gi&&l&&(m=c[c.length-1])instanceof gi&&h.lines+m.lines<=32?(l+=h.lines,u+=h.length+1,c[c.length-1]=new gi(m.text.concat(h.text),m.length+1+h.length)):(l+h.lines>i&&p(),l+=h.lines,u+=h.length+1,c.push(h))}function p(){l!=0&&(s.push(c.length==1?c[0]:fu.from(c,u)),u=-1,l=c.length=0)}for(let h of t)d(h);return p(),s.length==1?s[0]:new fu(s,n)}}rr.empty=new gi([""],0);function Oxe(e){let t=-1;for(let n of e)t+=n.length+1;return t}function HE(e,t,n=0,r=1e9){for(let i=0,o=0,a=!0;o=n&&(l>r&&(s=s.slice(0,r-i)),i0?1:(t instanceof gi?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],o=this.offsets[r],a=o>>1,s=i instanceof gi?i.text.length:i.children.length;if(a==(n>0?s: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((o&1)==(n>0?0:1)){if(this.offsets[r]+=n,t==0)return this.lineBreak=!0,this.value=` -`,this;t--}else if(i instanceof gi){let l=i.text[a+(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[a+(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 gi?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 tq{constructor(t,n,r){this.value="",this.done=!1,this.cursor=new Ib(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 nq{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"&&(rr.prototype[Symbol.iterator]=function(){return this.iter()},Ib.prototype[Symbol.iterator]=tq.prototype[Symbol.iterator]=nq.prototype[Symbol.iterator]=function(){return this});let vxe=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 tg(e,t,n){return t=Math.max(0,Math.min(e.length,t)),[t,Math.max(t,Math.min(e.length,n))]}let cm="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 cm[t-1]<=e;return!1}function $7(e){return e>=127462&&e<=127487}const F7=8205;function go(e,t,n=!0,r=!0){return(n?rq:Sxe)(e,t,r)}function rq(e,t,n){if(t==e.length)return t;t&&iq(e.charCodeAt(t))&&oq(e.charCodeAt(t-1))&&t--;let r=fo(e,t);for(t+=Bs(r);t=0&&$7(fo(e,a));)o++,a-=2;if(o%2==0)break;t+=2}else break}return t}function Sxe(e,t,n){for(;t>0;){let r=rq(e,t-2,n);if(r=56320&&e<57344}function oq(e){return e>=55296&&e<56320}function fo(e,t){let n=e.charCodeAt(t);if(!oq(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return iq(r)?(n-55296<<10)+(r-56320)+65536:n}function EP(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}function Bs(e){return e<65536?1:2}const nR=/\r\n?|\n/;var ho=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(ho||(ho={}));class Cu{constructor(t){this.sections=t}get length(){let t=0;for(let n=0;nt)return o+(t-i);o+=s}else{if(r!=ho.Simple&&u>=t&&(r==ho.TrackDel&&it||r==ho.TrackBefore&&it))return null;if(u>t||u==t&&n<0&&!s)return t==i||n<0?o:o+l;o+=l}i=u}if(t>i)throw new RangeError(`Position ${t} is out of range for changeset of length ${i}`);return o}touchesRange(t,n=t){for(let r=0,i=0;r=0&&i<=n&&s>=t)return in?"cover":!0;i=s}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 Cu(t)}static create(t){return new Cu(t)}}class Ni extends Cu{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 rR(this,(n,r,i,o,a)=>t=t.replace(i,i+(r-n),a),!1),t}mapDesc(t,n=!1){return iR(this,t,n,!0)}invert(t){let n=this.sections.slice(),r=[];for(let i=0,o=0;i=0){n[i]=s,n[i+1]=a;let l=i>>1;for(;r.length0&&bd(r,n,o.text),o.forward(c),s+=c}let u=t[a++];for(;s>1].toJSON()))}return t}static of(t,n,r){let i=[],o=[],a=0,s=null;function l(c=!1){if(!c&&!i.length)return;ap||d<0||p>n)throw new RangeError(`Invalid change range ${d} to ${p} (in doc of length ${n})`);let m=h?typeof h=="string"?rr.of(h.split(r||nR)):h:rr.empty,b=m.length;if(d==p&&b==0)return;da&&Io(i,d-a,-1),Io(i,p-d,b),bd(o,i,m),a=p}}return u(t),l(!s),s}static empty(t){return new Ni(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;is&&typeof a!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(o.length==1)n.push(o[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 bd(e,t,n){if(n.length==0)return;let r=t.length-2>>1;if(r>1])),!(n||a==e.sections.length||e.sections[a+1]<0);)s=e.sections[a++],l=e.sections[a++];t(i,u,o,c,d),i=u,o=c}}}function iR(e,t,n,r=!1){let i=[],o=r?[]:null,a=new Ly(e),s=new Ly(t);for(let l=-1;;)if(a.ins==-1&&s.ins==-1){let u=Math.min(a.len,s.len);Io(i,u,-1),a.forward(u),s.forward(u)}else if(s.ins>=0&&(a.ins<0||l==a.i||a.off==0&&(s.len=0&&l=0){let u=0,c=a.len;for(;c;)if(s.ins==-1){let d=Math.min(c,s.len);u+=d,c-=d,s.forward(d)}else if(s.ins==0&&s.lenl||a.ins>=0&&a.len>l)&&(s||r.length>u),o.forward2(l),a.forward(l)}}}}class Ly{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i>1;return n>=t.length?rr.empty:t[n]}textBit(t){let{inserted:n}=this.set,r=this.i-2>>1;return r>=n.length&&!t?rr.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 zf{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 zf(r,i,this.flags)}extend(t,n=t){if(t<=this.anchor&&n>=this.anchor)return tt.range(t,n);let r=Math.abs(t-this.anchor)>Math.abs(n-this.anchor)?t:n;return tt.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 tt.range(t.anchor,t.head)}static create(t,n,r){return new zf(t,n,r)}}class tt{constructor(t,n){this.ranges=t,this.mainIndex=n}map(t,n=-1){return t.empty?this:tt.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 tt(t.ranges.map(n=>zf.fromJSON(n)),t.main)}static single(t,n=t){return new tt([tt.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)|o)}static normalized(t,n=0){let r=t[n];t.sort((i,o)=>i.from-o.from),n=t.indexOf(r);for(let i=1;io.head?tt.range(l,s):tt.range(s,l))}}return new tt(t,n)}}function sq(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let SP=0;class qt{constructor(t,n,r,i,o){this.combine=t,this.compareInput=n,this.compare=r,this.isStatic=i,this.id=SP++,this.default=t([]),this.extensions=typeof o=="function"?o(this):o}get reader(){return this}static define(t={}){return new qt(t.combine||(n=>n),t.compareInput||((n,r)=>n===r),t.compare||(t.combine?(n,r)=>n===r:TP),!!t.static,t.enables)}of(t){return new WE([],this,0,t)}compute(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new WE(t,this,1,n)}computeN(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new WE(t,this,2,n)}from(t,n){return n||(n=r=>r),this.compute([t],r=>n(r.field(t)))}}function TP(e,t){return e==t||e.length==t.length&&e.every((n,r)=>n===t[r])}class WE{constructor(t,n,r,i){this.dependencies=t,this.facet=n,this.type=r,this.value=i,this.id=SP++}dynamicSlot(t){var n;let r=this.value,i=this.facet.compareInput,o=this.id,a=t[o]>>1,s=this.type==2,l=!1,u=!1,c=[];for(let d of this.dependencies)d=="doc"?l=!0:d=="selection"?u=!0:((n=t[d.id])!==null&&n!==void 0?n:1)&1||c.push(t[d.id]);return{create(d){return d.values[a]=r(d),1},update(d,p){if(l&&p.docChanged||u&&(p.docChanged||p.selection)||oR(d,c)){let h=r(d);if(s?!B7(h,d.values[a],i):!i(h,d.values[a]))return d.values[a]=h,1}return 0},reconfigure:(d,p)=>{let h,m=p.config.address[o];if(m!=null){let b=mT(p,m);if(this.dependencies.every(O=>O instanceof qt?p.facet(O)===d.facet(O):O instanceof eo?p.field(O,!1)==d.field(O,!1):!0)||(s?B7(h=r(d),b,i):i(h=r(d),b)))return d.values[a]=b,0}else h=r(d);return d.values[a]=h,1}}}}function B7(e,t,n){if(e.length!=t.length)return!1;for(let r=0;re[l.id]),i=n.map(l=>l.type),o=r.filter(l=>!(l&1)),a=e[t.id]>>1;function s(l){let u=[];for(let c=0;cr===i),t);return t.provide&&(n.provides=t.provide(n)),n}create(t){let n=t.facet(U7).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 o=r.values[n],a=this.updateF(o,i);return this.compareF(o,a)?0:(r.values[n]=a,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,U7.of({field:this,create:t})]}get extension(){return this}}const Df={lowest:4,low:3,default:2,high:1,highest:0};function C0(e){return t=>new lq(t,e)}const lf={highest:C0(Df.highest),high:C0(Df.high),default:C0(Df.default),low:C0(Df.low),lowest:C0(Df.lowest)};class lq{constructor(t,n){this.inner=t,this.prec=n}}class Hk{of(t){return new aR(this,t)}reconfigure(t){return Hk.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class aR{constructor(t,n){this.compartment=t,this.inner=n}}class hT{constructor(t,n,r,i,o,a){for(this.base=t,this.compartments=n,this.dynamicSlots=r,this.address=i,this.staticValues=o,this.facets=a,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(t,n,r){let i=[],o=Object.create(null),a=new Map;for(let p of wxe(t,n,a))p instanceof eo?i.push(p):(o[p.facet.id]||(o[p.facet.id]=[])).push(p);let s=Object.create(null),l=[],u=[];for(let p of i)s[p.id]=u.length<<1,u.push(h=>p.slot(h));let c=r==null?void 0:r.config.facets;for(let p in o){let h=o[p],m=h[0].facet,b=c&&c[p]||[];if(h.every(O=>O.type==0))if(s[m.id]=l.length<<1|1,TP(b,h))l.push(r.facet(m));else{let O=m.combine(h.map(y=>y.value));l.push(r&&m.compare(O,r.facet(m))?r.facet(m):O)}else{for(let O of h)O.type==0?(s[O.id]=l.length<<1|1,l.push(O.value)):(s[O.id]=u.length<<1,u.push(y=>O.dynamicSlot(y)));s[m.id]=u.length<<1,u.push(O=>Txe(O,m,h))}}let d=u.map(p=>p(s));return new hT(t,a,d,s,l,o)}}function wxe(e,t,n){let r=[[],[],[],[],[]],i=new Map;function o(a,s){let l=i.get(a);if(l!=null){if(l<=s)return;let u=r[l].indexOf(a);u>-1&&r[l].splice(u,1),a instanceof aR&&n.delete(a.compartment)}if(i.set(a,s),Array.isArray(a))for(let u of a)o(u,s);else if(a instanceof aR){if(n.has(a.compartment))throw new RangeError("Duplicate use of compartment in extensions");let u=t.get(a.compartment)||a.inner;n.set(a.compartment,u),o(u,s)}else if(a instanceof lq)o(a.inner,a.prec);else if(a instanceof eo)r[s].push(a),a.provides&&o(a.provides,s);else if(a instanceof WE)r[s].push(a),a.facet.extensions&&o(a.facet.extensions,Df.default);else{let u=a.extension;if(!u)throw new Error(`Unrecognized extension value in extension set (${a}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);o(u,s)}}return o(e,Df.default),r.reduce((a,s)=>a.concat(s))}function Db(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 mT(e,t){return t&1?e.config.staticValues[t>>1]:e.values[t>>1]}const uq=qt.define(),sR=qt.define({combine:e=>e.some(t=>t),static:!0}),cq=qt.define({combine:e=>e.length?e[0]:void 0,static:!0}),dq=qt.define(),fq=qt.define(),pq=qt.define(),hq=qt.define({combine:e=>e.length?e[0]:!1});class Fl{constructor(t,n){this.type=t,this.value=n}static define(){return new kxe}}class kxe{of(t){return new Fl(this,t)}}class xxe{constructor(t){this.map=t}of(t){return new xn(this,t)}}class xn{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 xn(this.type,n)}is(t){return this.type==t}static define(t={}){return new xxe(t.map||(n=>n))}static mapEffects(t,n){if(!t.length)return t;let r=[];for(let i of t){let o=i.map(n);o&&r.push(o)}return r}}xn.reconfigure=xn.define();xn.appendConfig=xn.define();class wi{constructor(t,n,r,i,o,a){this.startState=t,this.changes=n,this.selection=r,this.effects=i,this.annotations=o,this.scrollIntoView=a,this._doc=null,this._state=null,r&&sq(r,n.newLength),o.some(s=>s.type==wi.time)||(this.annotations=o.concat(wi.time.of(Date.now())))}static create(t,n,r,i,o,a){return new wi(t,n,r,i,o,a)}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(wi.userEvent);return!!(n&&(n==t||n.length>t.length&&n.slice(0,t.length)==t&&n[t.length]=="."))}}wi.time=Fl.define();wi.userEvent=Fl.define();wi.addToHistory=Fl.define();wi.remote=Fl.define();function Cxe(e,t){let n=[];for(let r=0,i=0;;){let o,a;if(r=e[r]))o=e[r++],a=e[r++];else if(i=0;i--){let o=r[i](e);o instanceof wi?e=o:Array.isArray(o)&&o.length==1&&o[0]instanceof wi?e=o[0]:e=gq(t,dm(o),!1)}return e}function _xe(e){let t=e.startState,n=t.facet(pq),r=e;for(let i=n.length-1;i>=0;i--){let o=n[i](e);o&&Object.keys(o).length&&(r=mq(r,lR(t,o,e.changes.newLength),!0))}return r==e?e:wi.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}const Rxe=[];function dm(e){return e==null?Rxe:Array.isArray(e)?e:[e]}var Qr=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(Qr||(Qr={}));const Ixe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let uR;try{uR=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function Dxe(e){if(uR)return uR.test(e);for(let t=0;t"€"&&(n.toUpperCase()!=n.toLowerCase()||Ixe.test(n)))return!0}return!1}function Nxe(e){return t=>{if(!/\S/.test(t))return Qr.Space;if(Dxe(t))return Qr.Word;for(let n=0;n-1)return Qr.Word;return Qr.Other}}class qn{constructor(t,n,r,i,o,a){this.config=t,this.doc=n,this.selection=r,this.values=i,this.status=t.statusTemplate.slice(),this.computeSlot=o,a&&(a._state=this);for(let s=0;si.set(u,l)),n=null),i.set(s.value.compartment,s.value.extension)):s.is(xn.reconfigure)?(n=null,r=s.value):s.is(xn.appendConfig)&&(n=null,r=dm(r).concat(s.value));let o;n?o=t.startState.values.slice():(n=hT.resolve(r,i,this),o=new qn(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(l,u)=>u.reconfigure(l,this),null).values);let a=t.startState.facet(sR)?t.newSelection:t.newSelection.asSingle();new qn(n,t.newDoc,a,o,(s,l)=>l.update(s,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:tt.cursor(n.from+t.length)}))}changeByRange(t){let n=this.selection,r=t(n.ranges[0]),i=this.changes(r.changes),o=[r.range],a=dm(r.effects);for(let s=1;sa.spec.fromJSON(s,l)))}}return qn.create({doc:t.doc,selection:tt.fromJSON(t.selection),extensions:n.extensions?i.concat([n.extensions]):i})}static create(t={}){let n=hT.resolve(t.extensions||[],new Map),r=t.doc instanceof rr?t.doc:rr.of((t.doc||"").split(n.staticFacet(qn.lineSeparator)||nR)),i=t.selection?t.selection instanceof tt?t.selection:tt.single(t.selection.anchor,t.selection.head):tt.single(0);return sq(i,r.length),n.staticFacet(sR)||(i=i.asSingle()),new qn(n,r,i,n.dynamicSlots.map(()=>null),(o,a)=>a.create(o),null)}get tabSize(){return this.facet(qn.tabSize)}get lineBreak(){return this.facet(qn.lineSeparator)||` -`}get readOnly(){return this.facet(hq)}phrase(t,...n){for(let r of this.facet(qn.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 o=+(i||1);return!o||o>n.length?r:n[o-1]})),t}languageDataAt(t,n,r=-1){let i=[];for(let o of this.facet(uq))for(let a of o(this,n,r))Object.prototype.hasOwnProperty.call(a,t)&&i.push(a[t]);return i}charCategorizer(t){return Nxe(this.languageDataAt("wordChars",t).join(""))}wordAt(t){let{text:n,from:r,length:i}=this.doc.lineAt(t),o=this.charCategorizer(t),a=t-r,s=t-r;for(;a>0;){let l=go(n,a,!1);if(o(n.slice(l,a))!=Qr.Word)break;a=l}for(;se.length?e[0]:4});qn.lineSeparator=cq;qn.readOnly=hq;qn.phrases=qt.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])}});qn.languageData=uq;qn.changeFilter=dq;qn.transactionFilter=fq;qn.transactionExtender=pq;Hk.reconfigure=xn.define();function Pu(e,t,n={}){let r={};for(let i of e)for(let o of Object.keys(i)){let a=i[o],s=r[o];if(s===void 0)r[o]=a;else if(!(s===a||a===void 0))if(Object.hasOwnProperty.call(n,o))r[o]=n[o](s,a);else throw new Error("Config merge conflict for field "+o)}for(let i in t)r[i]===void 0&&(r[i]=t[i]);return r}class Ep{eq(t){return this==t}range(t,n=t){return cR.create(t,n,this)}}Ep.prototype.startSide=Ep.prototype.endSide=0;Ep.prototype.point=!1;Ep.prototype.mapMode=ho.TrackDel;let cR=class bq{constructor(t,n,r){this.from=t,this.to=n,this.value=r}static create(t,n,r){return new bq(t,n,r)}};function dR(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class wP{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 o=r?this.to:this.from;for(let a=i,s=o.length;;){if(a==s)return a;let l=a+s>>1,u=o[l]-t||(r?this.value[l].endSide:this.value[l].startSide)-n;if(l==a)return u>=0?a:s;u>=0?s=l:a=l+1}}between(t,n,r,i){for(let o=this.findIndex(n,-1e9,!0),a=this.findIndex(r,1e9,!1,o);oh||p==h&&u.startSide>0&&u.endSide<=0)continue;(h-p||u.endSide-u.startSide)<0||(a<0&&(a=p),u.point&&(s=Math.max(s,h-p)),r.push(u),i.push(p-a),o.push(h-a))}return{mapped:r.length?new wP(i,o,r,s):null,pos:a}}}class Xn{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 Xn(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:o=this.length}=t,a=t.filter;if(n.length==0&&!a)return this;if(r&&(n=n.slice().sort(dR)),this.isEmpty)return n.length?Xn.of(n):this;let s=new yq(this,null,-1).goto(0),l=0,u=[],c=new Qd;for(;s.value||l=0){let d=n[l++];c.addInner(d.from,d.to,d.value)||u.push(d)}else s.rangeIndex==1&&s.chunkIndexthis.chunkEnd(s.chunkIndex)||os.to||o=o&&t<=o+a.length&&a.between(o,t-o,n-o,r)===!1)return}this.nextLayer.between(t,n,r)}}iter(t=0){return My.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,n=0){return My.from(t).goto(n)}static compare(t,n,r,i,o=-1){let a=t.filter(d=>d.maxPoint>0||!d.isEmpty&&d.maxPoint>=o),s=n.filter(d=>d.maxPoint>0||!d.isEmpty&&d.maxPoint>=o),l=j7(a,s,r),u=new A0(a,l,o),c=new A0(s,l,o);r.iterGaps((d,p,h)=>z7(u,d,c,p,h,i)),r.empty&&r.length==0&&z7(u,0,c,0,0,i)}static eq(t,n,r=0,i){i==null&&(i=999999999);let o=t.filter(c=>!c.isEmpty&&n.indexOf(c)<0),a=n.filter(c=>!c.isEmpty&&t.indexOf(c)<0);if(o.length!=a.length)return!1;if(!o.length)return!0;let s=j7(o,a),l=new A0(o,s,0).goto(r),u=new A0(a,s,0).goto(r);for(;;){if(l.to!=u.to||!fR(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,o=-1){let a=new A0(t,null,o).goto(n),s=n,l=a.openStart;for(;;){let u=Math.min(a.to,r);if(a.point){let c=a.activeForPoint(a.to),d=a.pointFroms&&(i.span(s,u,a.active,l),l=a.openEnd(u));if(a.to>r)return l+(a.point&&a.to>r?1:0);s=a.to,a.next()}}static of(t,n=!1){let r=new Qd;for(let i of t instanceof cR?[t]:n?Pxe(t):t)r.add(i.from,i.to,i.value);return r.finish()}static join(t){if(!t.length)return Xn.empty;let n=t[t.length-1];for(let r=t.length-2;r>=0;r--)for(let i=t[r];i!=Xn.empty;i=i.nextLayer)n=new Xn(i.chunkPos,i.chunk,n,Math.max(i.maxPoint,n.maxPoint));return n}}Xn.empty=new Xn([],[],null,-1);function Pxe(e){if(e.length>1)for(let t=e[0],n=1;n0)return e.slice().sort(dR);t=r}return e}Xn.empty.nextLayer=Xn.empty;class Qd{finishChunk(t){this.chunks.push(new wP(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 Qd)).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(Xn.empty)}finishInner(t){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return t;let n=Xn.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,n}}function j7(e,t,n){let r=new Map;for(let o of e)for(let a=0;a=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 yq(a,n,r,o));return i.length==1?i[0]:new My(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--)oA(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--)oA(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(),oA(this.heap,0)}}}function oA(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 A0{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=My.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){Dv(this.active,t),Dv(this.activeTo,t),Dv(this.activeRank,t),this.minActive=V7(this.active,this.activeTo)}addActive(t){let n=0,{value:r,to:i,rank:o}=this.cursor;for(;n0;)n++;Nv(this.active,n,r),Nv(this.activeTo,n,i),Nv(this.activeRank,n,o),t&&Nv(t,n,this.cursor.from),this.minActive=V7(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&&Dv(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 o=this.cursor.value;if(!o.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 z7(e,t,n,r,i,o){e.goto(t),n.goto(r);let a=r+i,s=r,l=r-t;for(;;){let u=e.to+l-n.to||e.endSide-n.endSide,c=u<0?e.to+l:n.to,d=Math.min(c,a);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&fR(e.activeForPoint(e.to),n.activeForPoint(n.to))||o.comparePoint(s,d,e.point,n.point):d>s&&!fR(e.active,n.active)&&o.compareRange(s,d,e.active,n.active),c>a)break;s=c,u<=0&&e.next(),u>=0&&n.next()}}function fR(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 V7(e,t){let n=-1,r=1e9;for(let i=0;i=t)return i;if(i==e.length)break;o+=e.charCodeAt(i)==9?n-o%n:1,i=go(e,i)}return r===!0?-1:e.length}const hR="ͼ",H7=typeof Symbol>"u"?"__"+hR:Symbol.for(hR),mR=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),W7=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class Yd{constructor(t,n){this.rules=[];let{finish:r}=n||{};function i(a){return/^@/.test(a)?[a]:a.split(/,\s*/)}function o(a,s,l,u){let c=[],d=/^@(\w+)\b/.exec(a[0]),p=d&&d[1]=="keyframes";if(d&&s==null)return l.push(a[0]+";");for(let h in s){let m=s[h];if(/&/.test(h))o(h.split(/,\s*/).map(b=>a.map(O=>b.replace(/&/,O))).reduce((b,O)=>b.concat(O)),m,l);else if(m&&typeof m=="object"){if(!d)throw new RangeError("The value of a property ("+h+") should be a primitive value.");o(i(h),m,c,p)}else m!=null&&c.push(h.replace(/_.*/,"").replace(/[A-Z]/g,b=>"-"+b.toLowerCase())+": "+m+";")}(c.length||p)&&l.push((r&&!d&&!u?a.map(r):a).join(", ")+" {"+c.join(" ")+"}")}for(let a in t)o(i(a),t[a],this.rules)}getRules(){return this.rules.join(` -`)}static newName(){let t=W7[H7]||1;return W7[H7]=t+1,hR+t.toString(36)}static mount(t,n,r){let i=t[mR],o=r&&r.nonce;i?o&&i.setNonce(o):i=new Lxe(t,o),i.mount(Array.isArray(n)?n:[n])}}let Q7=new Map;class Lxe{constructor(t,n){let r=t.ownerDocument||t,i=r.defaultView;if(!t.head&&t.adoptedStyleSheets&&i.CSSStyleSheet){let o=Q7.get(r);if(o)return t.adoptedStyleSheets=[o.sheet,...t.adoptedStyleSheets],t[mR]=o;this.sheet=new i.CSSStyleSheet,t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets],Q7.set(r,this)}else{this.styleTag=r.createElement("style"),n&&this.styleTag.setAttribute("nonce",n);let o=t.head||t;o.insertBefore(this.styleTag,o.firstChild)}this.modules=[],t[mR]=this}mount(t){let n=this.sheet,r=0,i=0;for(let o=0;o-1&&(this.modules.splice(s,1),i--,s=-1),s==-1){if(this.modules.splice(i++,0,a),n)for(let l=0;l",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Mxe=typeof navigator<"u"&&/Mac/.test(navigator.platform),$xe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var po=0;po<10;po++)Gd[48+po]=Gd[96+po]=String(po);for(var po=1;po<=24;po++)Gd[po+111]="F"+po;for(var po=65;po<=90;po++)Gd[po]=String.fromCharCode(po+32),$y[po]=String.fromCharCode(po);for(var aA in Gd)$y.hasOwnProperty(aA)||($y[aA]=Gd[aA]);function Fxe(e){var t=Mxe&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||$xe&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?$y:Gd)[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 gT(e){let t;return e.nodeType==11?t=e.getSelection?e:e.ownerDocument:t=e,t.getSelection()}function gR(e,t){return t?e==t||e.contains(t.nodeType!=1?t.parentNode:t):!1}function Bxe(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function QE(e,t){if(!t.anchorNode)return!1;try{return gR(e,t.anchorNode)}catch{return!1}}function Fy(e){return e.nodeType==3?Sp(e,0,e.nodeValue.length).getClientRects():e.nodeType==1?e.getClientRects():[]}function Nb(e,t,n,r){return n?Y7(e,t,n,r,-1)||Y7(e,t,n,r,1):!1}function By(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t}function Y7(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:Sc(e))){if(e.nodeName=="DIV")return!1;let o=e.parentNode;if(!o||o.nodeType!=1)return!1;t=By(e)+(i<0?0:1),e=o}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?Sc(e):0}else return!1}}function Sc(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function kP(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function Uxe(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function Oq(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 jxe(e,t,n,r,i,o,a,s){let l=e.ownerDocument,u=l.defaultView||window;for(let c=e,d=!1;c&&!d;)if(c.nodeType==1){let p,h=c==l.body,m=1,b=1;if(h)p=Uxe(u);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(d=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let v=c.getBoundingClientRect();({scaleX:m,scaleY:b}=Oq(c,v)),p={left:v.left,right:v.left+c.clientWidth*m,top:v.top,bottom:v.top+c.clientHeight*b}}let O=0,y=0;if(i=="nearest")t.top0&&t.bottom>p.bottom+y&&(y=t.bottom-p.bottom+y+a)):t.bottom>p.bottom&&(y=t.bottom-p.bottom+a,n<0&&t.top-y0&&t.right>p.right+O&&(O=t.right-p.right+O+o)):t.right>p.right&&(O=t.right-p.right+o,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 Vxe{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?Sc(n):0),r,Math.min(t.focusOffset,r?Sc(r):0))}set(t,n,r,i){this.anchorNode=t,this.anchorOffset=n,this.focusNode=r,this.focusOffset=i}}let fh=null;function vq(e){if(e.setActive)return e.setActive();if(fh)return e.focus(fh);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(fh==null?{get preventScroll(){return fh={preventScroll:!0},!0}}:void 0),!fh){fh=!1;for(let n=0;nMath.max(1,e.scrollHeight-e.clientHeight-4)}class No{constructor(t,n,r=!0){this.node=t,this.offset=n,this.precise=r}static before(t,n){return new No(t.parentNode,By(t),n)}static after(t,n){return new No(t.parentNode,By(t)+1,n)}}const xP=[];class Pr{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,o;for(let a of this.children){if(a.flags&7){if(!a.dom&&(o=i?i.nextSibling:r.firstChild)){let s=Pr.get(o);(!s||!s.parent&&s.canReuseDOM(a))&&a.reuseDOM(o)}a.sync(t,n),a.flags&=-8}if(o=i?i.nextSibling:r.firstChild,n&&!n.written&&n.node==r&&o!=a.dom&&(n.written=!0),a.dom.parentNode==r)for(;o&&o!=a.dom;)o=q7(o);else r.insertBefore(a.dom,o);i=a.dom}for(o=i?i.nextSibling:r.firstChild,o&&n&&n.node==r&&(n.written=!0);o;)o=q7(o)}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=Sc(t)==0?0:n==0?-1:1;for(;;){let o=t.parentNode;if(o==this.dom)break;i==0&&o.firstChild!=o.lastChild&&(t==o.firstChild?i=-1:i=1),t=o}i<0?r=t:r=t.nextSibling}if(r==this.dom.firstChild)return 0;for(;r&&!Pr.get(r);)r=r.nextSibling;if(!r)return this.length;for(let i=0,o=0;;i++){let a=this.children[i];if(a.dom==r)return o;o+=a.length+a.breakAfter}}domBoundsAround(t,n,r=0){let i=-1,o=-1,a=-1,s=-1;for(let l=0,u=r,c=r;ln)return d.domBoundsAround(t,n,u);if(p>=t&&i==-1&&(i=l,o=u),u>n&&d.dom.parentNode==this.dom){a=l,s=c;break}c=p,u=p+d.breakAfter}return{from:o,to:s<0?r+this.length:s,startDOM:(i?this.children[i-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:a=0?this.children[a].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=xP){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 wq(e,t,n,r,i,o,a,s,l){let{children:u}=e,c=u.length?u[t]:null,d=o.length?o[o.length-1]:null,p=d?d.breakAfter:a;if(!(t==r&&c&&!a&&!p&&o.length<2&&c.merge(n,i,o.length?d:null,n==0,s,l))){if(r0&&(!a&&o.length&&c.merge(n,c.length,o[0],!1,s,0)?c.breakAfter=o.shift().breakAfter:(n2);var en={mac:K7||/Mac/.test(is.platform),windows:/Win/.test(is.platform),linux:/Linux|X11/.test(is.platform),ie:Wk,ie_version:xq?bR.documentMode||6:OR?+OR[1]:yR?+yR[1]:0,gecko:Z7,gecko_version:Z7?+(/Firefox\/(\d+)/.exec(is.userAgent)||[0,0])[1]:0,chrome:!!sA,chrome_version:sA?+sA[1]:0,ios:K7,android:/Android\b/.test(is.userAgent),webkit:X7,safari:Cq,webkit_version:X7?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:bR.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const Qxe=256;class Tc extends Pr{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 Tc)||this.length-(n-t)+r.length>Qxe||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 Tc(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 No(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 Yxe(this.dom,t,n)}}class wc extends Pr{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(Eq(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,o,a){return r&&(!(r instanceof wc&&r.mark.eq(this.mark))||t&&o<=0||nt&&n.push(r=t&&(i=o),r=l,o++}let a=this.length-t;return this.length=t,i>-1&&(this.children.length=i,this.markDirty()),new wc(this.mark,n,a)}domAtPos(t){return Aq(this,t)}coordsAt(t,n){return Rq(this,t,n)}}function Yxe(e,t,n){let r=e.nodeValue.length;t>r&&(t=r);let i=t,o=t,a=0;t==0&&n<0||t==r&&n>=0?en.chrome||en.gecko||(t?(i--,a=1):o=0)?0:s.length-1];return en.safari&&!a&&l.width==0&&(l=Array.prototype.find.call(s,u=>u.width)||l),a?kP(l,a<0):l||null}class yd extends Pr{static create(t,n,r){return new yd(t,n,r)}constructor(t,n,r){super(),this.widget=t,this.length=n,this.side=r,this.prevWidget=null}split(t){let n=yd.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,o,a){return r&&(!(r instanceof yd)||!this.widget.compare(r.widget)||t>0&&o<=0||n0)?No.before(this.dom):No.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(),o=null;if(!i.length)return null;let a=this.side?this.side<0:t>0;for(let s=a?i.length-1:0;o=i[s],!(t>0?s==0:s==i.length-1||o.top0?No.before(this.dom):No.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(t){return this.dom.getBoundingClientRect()}get overrideDOMText(){return rr.empty}get isHidden(){return!0}}Tc.prototype.children=yd.prototype.children=ng.prototype.children=xP;function Aq(e,t){let n=e.dom,{children:r}=e,i=0;for(let o=0;io&&t0;o--){let a=r[o-1];if(a.dom.parentNode==n)return a.domAtPos(a.length)}for(let o=i;o0&&t instanceof wc&&i.length&&(r=i[i.length-1])instanceof wc&&r.mark.eq(t.mark)?_q(r,t.children[0],n-1):(i.push(t),t.setParent(e)),e.length+=t.length}function Rq(e,t,n){let r=null,i=-1,o=null,a=-1;function s(u,c){for(let d=0,p=0;d=c&&(h.children.length?s(h,c-p):(!o||o.isHidden&&n>0)&&(m>c||p==m&&h.getSide()>0)?(o=h,a=c-p):(p-1?1:0)!=i.length-(n&&i.indexOf(n)>-1?1:0))return!1;for(let o of r)if(o!=n&&(i.indexOf(o)==-1||e[o]!==t[o]))return!1;return!0}function ER(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 qxe(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){CP(this.attrs,t)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}append(t,n){_q(this,t,n)}addLineDeco(t){let n=t.spec.attributes,r=t.spec.class;n&&(this.attrs=vR(n,this.attrs||{})),r&&(this.attrs=vR({class:r},this.attrs||{}))}domAtPos(t){return Aq(this,t)}reuseDOM(t){t.nodeName=="DIV"&&(this.setDOM(t),this.flags|=6)}sync(t,n){var r;this.dom?this.flags&4&&(Eq(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&&(ER(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&&Pr.get(i)instanceof wc;)i=i.lastChild;if(!i||!this.length||i.nodeName!="BR"&&((r=Pr.get(i))===null||r===void 0?void 0:r.isEditable)==!1&&(!en.ios||!this.children.some(o=>o instanceof Tc))){let o=document.createElement("BR");o.cmIgnore=!0,this.dom.appendChild(o)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let t=0,n;for(let r of this.children){if(!(r instanceof Tc)||/[^ -~]/.test(r.text))return null;let i=Fy(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=Rq(this,t,n);if(!this.children.length&&r&&this.parent){let{heightOracle:i}=this.parent.view.viewState,o=r.bottom-r.top;if(Math.abs(o-i.lineHeight)<2&&i.textHeight=n){if(o instanceof Ii)return o;if(a>n)break}i=a+o.breakAfter}return null}}class Dd extends Pr{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,o,a){return r&&(!(r instanceof Dd)||!this.widget.compare(r.widget)||t>0&&o<=0||n0}}class Lu{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 ra=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(ra||(ra={}));class ln extends Ep{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 nO(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 qd(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:o,end:a}=Iq(t,n);r=(o?n?-3e8:-1:5e8)-1,i=(a?n?2e8:1:-6e8)+1}return new qd(t,r,i,n,t.widget||null,!0)}static line(t){return new rO(t)}static set(t,n=!1){return Xn.of(t,n)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}ln.none=Xn.empty;class nO extends ln{constructor(t){let{start:n,end:r}=Iq(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 nO&&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))&&CP(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)}}nO.prototype.point=!1;class rO extends ln{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof rO&&this.spec.class==t.spec.class&&CP(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)}}rO.prototype.mapMode=ho.TrackBefore;rO.prototype.point=!0;class qd extends ln{constructor(t,n,r,i,o,a){super(n,r,o,t),this.block=i,this.isReplace=a,this.mapMode=i?n<=0?ho.TrackBefore:ho.TrackAfter:ho.TrackDel}get type(){return this.startSide!=this.endSide?ra.WidgetRange:this.startSide<=0?ra.WidgetBefore:ra.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){return t instanceof qd&&Zxe(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)}}qd.prototype.point=!0;function Iq(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 Zxe(e,t){return e==t||!!(e&&t&&e.compare(t))}function SR(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 Pb{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 Dd&&t.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new Ii),this.atCursorPos=!0),this.curLine}flushBuffer(t=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(Pv(new ng(-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 Dd)&&this.getLine()}buildText(t,n,r){for(;t>0;){if(this.textOff==this.text.length){let{value:o,lineBreak:a,done:s}=this.cursor.next(this.skip);if(this.skip=0,s)throw new Error("Ran out of text content when drawing inline views");if(a){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=o,this.textOff=0}let i=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(n.slice(n.length-r)),this.getLine().append(Pv(new Tc(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,o,a){if(this.disallowBlockEffectsFor[a]&&r instanceof qd){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 s=n-t;if(r instanceof qd)if(r.block)r.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Dd(r.widget||new eU("div"),s,r));else{let l=yd.create(r.widget||new eU("span"),s,s?0:r.startSide),u=this.atCursorPos&&!l.isEditable&&o<=i.length&&(t0),c=!l.isEditable&&(ti.length||r.startSide<=0),d=this.getLine();this.pendingBuffer==2&&!u&&!l.isEditable&&(this.pendingBuffer=0),this.flushBuffer(i),u&&(d.append(Pv(new ng(1),i),o),o=i.length+Math.max(0,o-i.length)),d.append(Pv(l,i),o),this.atCursorPos=c,this.pendingBuffer=c?ti.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=i.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(r);s&&(this.textOff+s<=this.text.length?this.textOff+=s:(this.skip+=s-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=n),this.openStart<0&&(this.openStart=o)}static build(t,n,r,i,o){let a=new Pb(t,n,r,o);return a.openEnd=Xn.spans(i,n,r,a),a.openStart<0&&(a.openStart=a.openEnd),a.finish(a.openEnd),a}}function Pv(e,t){for(let n of t)e=new wc(n,[e],e.length);return e}class eU extends Lu{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 Mr=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(Mr||(Mr={}));const Tp=Mr.LTR,AP=Mr.RTL;function Dq(e){let t=[];for(let n=0;n=n){if(s.level==r)return a;(o<0||(i!=0?i<0?s.fromn:t[o].level>s.level))&&(o=a)}}if(o<0)throw new RangeError("Index out of range");return o}}function Pq(e,t){if(e.length!=t.length)return!1;for(let n=0;n=0;b-=3)if(Kl[b+1]==-h){let O=Kl[b+2],y=O&2?i:O&4?O&1?o:i:0;y&&(gr[d]=gr[Kl[b]]=y),s=b;break}}else{if(Kl.length==189)break;Kl[s++]=d,Kl[s++]=p,Kl[s++]=l}else if((m=gr[d])==2||m==1){let b=m==i;l=b?0:1;for(let O=s-3;O>=0;O-=3){let y=Kl[O+2];if(y&2)break;if(b)Kl[O+2]|=2;else{if(y&4)break;Kl[O+2]|=4}}}}}function nCe(e,t,n,r){for(let i=0,o=r;i<=n.length;i++){let a=i?n[i-1].to:e,s=il;)m==O&&(m=n[--b].from,O=b?n[b-1].to:e),gr[--m]=h;l=c}else o=u,l++}}}function wR(e,t,n,r,i,o,a){let s=r%2?2:1;if(r%2==i%2)for(let l=t,u=0;ll&&a.push(new Od(l,b.from,h));let O=b.direction==Tp!=!(h%2);kR(e,O?r+1:r,i,b.inner,b.from,b.to,a),l=b.to}m=b.to}else{if(m==n||(c?gr[m]!=s:gr[m]==s))break;m++}p?wR(e,l,m,r+1,i,p,a):lt;){let c=!0,d=!1;if(!u||l>o[u-1].to){let b=gr[l-1];b!=s&&(c=!1,d=b==16)}let p=!c&&s==1?[]:null,h=c?r:r+1,m=l;e:for(;;)if(u&&m==o[u-1].to){if(d)break e;let b=o[--u];if(!c)for(let O=b.from,y=u;;){if(O==t)break e;if(y&&o[y-1].to==O)O=o[--y].from;else{if(gr[O-1]==s)break e;break}}if(p)p.push(b);else{b.togr.length;)gr[gr.length]=256;let r=[],i=t==Tp?0:1;return kR(e,i,i,n,0,e.length,r),r}function Lq(e){return[new Od(0,e,0)]}let Mq="";function iCe(e,t,n,r,i){var o;let a=r.head-e.from,s=Od.find(t,a,(o=r.bidiLevel)!==null&&o!==void 0?o:-1,r.assoc),l=t[s],u=l.side(i,n);if(a==u){let p=s+=i?1:-1;if(p<0||p>=t.length)return null;l=t[s=p],a=l.side(!i,n),u=l.side(i,n)}let c=go(e.text,a,l.forward(i,n));(cl.to)&&(c=u),Mq=e.text.slice(Math.min(a,c),Math.max(a,c));let d=s==(i?t.length-1:0)?null:t[s+(i?1:-1)];return d&&c==u&&d.level+(i?0:1)e.some(t=>t)}),Hq=qt.define({combine:e=>e.some(t=>t)});class pm{constructor(t,n="nearest",r="nearest",i=5,o=5,a=!1){this.range=t,this.y=n,this.x=r,this.yMargin=i,this.xMargin=o,this.isSnapshot=a}map(t){return t.empty?this:new pm(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 pm(tt.cursor(t.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const Lv=xn.define({map:(e,t)=>e.map(t)});function Gs(e,t,n){let r=e.facet(Uq);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 Qk=qt.define({combine:e=>e.length?e[0]:!0});let aCe=0;const rb=qt.define();class Jr{constructor(t,n,r,i,o){this.id=t,this.create=n,this.domEventHandlers=r,this.domEventObservers=i,this.extension=o(this)}static define(t,n){const{eventHandlers:r,eventObservers:i,provide:o,decorations:a}=n||{};return new Jr(aCe++,t,r,i,s=>{let l=[rb.of(s)];return a&&l.push(Uy.of(u=>{let c=u.plugin(s);return c?a(c):ln.none})),o&&l.push(o(s)),l})}static fromClass(t,n){return Jr.define(r=>new t(r),n)}}class lA{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(Gs(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){Gs(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){Gs(t.state,r,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Wq=qt.define(),_P=qt.define(),Uy=qt.define(),Qq=qt.define(),RP=qt.define(),Yq=qt.define();function tU(e,t){let n=e.state.facet(Yq);if(!n.length)return n;let r=n.map(o=>o instanceof Function?o(e):o),i=[];return Xn.spans(r,t.from,t.to,{point(){},span(o,a,s,l){let u=o-t.from,c=a-t.from,d=i;for(let p=s.length-1;p>=0;p--,l--){let h=s[p].spec.bidiIsolate,m;if(h==null&&(h=oCe(t.text,u,c)),l>0&&d.length&&(m=d[d.length-1]).to==u&&m.direction==h)m.to=c,d=m.inner;else{let b={from:u,to:c,direction:h,inner:[]};d.push(b),d=b.inner}}}}),i}const Gq=qt.define();function qq(e){let t=0,n=0,r=0,i=0;for(let o of e.state.facet(Gq)){let a=o(e);a&&(a.left!=null&&(t=Math.max(t,a.left)),a.right!=null&&(n=Math.max(n,a.right)),a.top!=null&&(r=Math.max(r,a.top)),a.bottom!=null&&(i=Math.max(i,a.bottom)))}return{left:t,right:n,top:r,bottom:i}}const ib=qt.define();class qs{constructor(t,n,r,i){this.fromA=t,this.toA=n,this.fromB=r,this.toB=i}join(t){return new qs(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.toAc)break;o+=2}if(!l)return r;new qs(l.fromA,l.toA,l.fromB,l.toB).addToSet(r),a=l.toA,s=l.toB}}}class bT{constructor(t,n,r){this.view=t,this.state=n,this.transactions=r,this.flags=0,this.startState=t.state,this.changes=Ni.empty(this.startState.doc.length);for(let o of r)this.changes=this.changes.compose(o.changes);let i=[];this.changes.iterChangedRanges((o,a,s,l)=>i.push(new qs(o,a,s,l))),this.changedRanges=i}static create(t,n,r){return new bT(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 nU extends Pr{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 Ii],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new qs(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:c})=>cthis.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:!pCe(t.changes,this.hasComposition)&&!t.selectionSet&&(i=t.state.selection.main.head));let o=i>-1?lCe(this.view,t.changes,i):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:u,to:c}=this.hasComposition;r=new qs(u,c,t.changes.mapPos(u,-1),t.changes.mapPos(c,1)).addToSet(r.slice())}this.hasComposition=o?{from:o.range.fromB,to:o.range.toB}:null,(en.ie||en.chrome)&&!o&&t&&t.state.doc.lines!=t.startState.doc.lines&&(this.forceSelection=!0);let a=this.decorations,s=this.updateDeco(),l=dCe(a,s,t.changes);return r=qs.extendWithRanges(r,l),!(this.flags&7)&&r.length==0?!1:(this.updateInner(r,t.startState.doc.length,o),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 a=en.chrome||en.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,a),this.flags&=-8,a&&(a.written||i.selectionRange.focusNode!=a.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(a=>a.flags&=-9);let o=[];if(this.view.viewport.from||this.view.viewport.to=0?i[a]:null;if(!s)break;let{fromA:l,toA:u,fromB:c,toB:d}=s,p,h,m,b;if(r&&r.range.fromBc){let k=Pb.build(this.view.state.doc,c,r.range.fromB,this.decorations,this.dynamicDecorationMap),C=Pb.build(this.view.state.doc,r.range.toB,d,this.decorations,this.dynamicDecorationMap);h=k.breakAtStart,m=k.openStart,b=C.openEnd;let w=this.compositionView(r);C.breakAtStart?w.breakAfter=1:C.content.length&&w.merge(w.length,w.length,C.content[0],!1,C.openStart,0)&&(w.breakAfter=C.content[0].breakAfter,C.content.shift()),k.content.length&&w.merge(0,0,k.content[k.content.length-1],!0,0,k.openEnd)&&k.content.pop(),p=k.content.concat(w).concat(C.content)}else({content:p,breakAtStart:h,openStart:m,openEnd:b}=Pb.build(this.view.state.doc,c,d,this.decorations,this.dynamicDecorationMap));let{i:O,off:y}=o.findPos(u,1),{i:v,off:S}=o.findPos(l,-1);wq(this,v,S,O,y,p,h,m,b)}r&&this.fixCompositionDOM(r)}compositionView(t){let n=new Tc(t.text.nodeValue);n.flags|=8;for(let{deco:i}of t.marks)n=new wc(i,[n],n.length);let r=new Ii;return r.append(n,0),r}fixCompositionDOM(t){let n=(o,a)=>{a.flags|=8|(a.children.some(l=>l.flags&7)?1:0),this.markedForComposition.add(a);let s=Pr.get(o);s&&s!=a&&(s.dom=null),a.setDOM(o)},r=this.childPos(t.range.fromB,1),i=this.children[r.i];n(t.line,i);for(let o=t.marks.length-1;o>=-1;o--)r=i.childPos(r.off,1),i=i.children[r.i],n(o>=0?t.marks[o].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,o=!i&&QE(this.dom,this.view.observer.selectionRange)&&!(r&&this.dom.contains(r));if(!(i||n||o))return;let a=this.forceSelection;this.forceSelection=!1;let s=this.view.state.selection.main,l=this.moveToLine(this.domAtPos(s.anchor)),u=s.empty?l:this.moveToLine(this.domAtPos(s.head));if(en.gecko&&s.empty&&!this.hasComposition&&sCe(l)){let d=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(d,l.node.childNodes[l.offset]||null)),l=u=new No(d,0),a=!0}let c=this.view.observer.selectionRange;(a||!c.focusNode||(!Nb(l.node,l.offset,c.anchorNode,c.anchorOffset)||!Nb(u.node,u.offset,c.focusNode,c.focusOffset))&&!this.suppressWidgetCursorChange(c,s))&&(this.view.observer.ignore(()=>{en.android&&en.chrome&&this.dom.contains(c.focusNode)&&fCe(c.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let d=gT(this.view.root);if(d)if(s.empty){if(en.gecko){let p=uCe(l.node,l.offset);if(p&&p!=3){let h=Xq(l.node,l.offset,p==1?1:-1);h&&(l=new No(h.node,h.offset))}}d.collapse(l.node,l.offset),s.bidiLevel!=null&&d.caretBidiLevel!==void 0&&(d.caretBidiLevel=s.bidiLevel)}else if(d.extend){d.collapse(l.node,l.offset);try{d.extend(u.node,u.offset)}catch{}}else{let p=document.createRange();s.anchor>s.head&&([l,u]=[u,l]),p.setEnd(u.node,u.offset),p.setStart(l.node,l.offset),d.removeAllRanges(),d.addRange(p)}o&&this.view.root.activeElement==this.dom&&(this.dom.blur(),r&&r.focus())}),this.view.observer.setSelectionRange(l,u)),this.impreciseAnchor=l.precise?null:new No(c.anchorNode,c.anchorOffset),this.impreciseHead=u.precise?null:new No(c.focusNode,c.focusOffset)}suppressWidgetCursorChange(t,n){return this.hasComposition&&n.empty&&Nb(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=gT(t.root),{anchorNode:i,anchorOffset:o}=t.observer.selectionRange;if(!r||!n.empty||!n.assoc||!r.modify)return;let a=Ii.find(this,n.head);if(!a)return;let s=a.posAtStart;if(n.head==s||n.head==s+a.length)return;let l=this.coordsAt(n.head,-1),u=this.coordsAt(n.head,1);if(!l||!u||l.bottom>u.top)return;let c=this.domAtPos(n.head+n.assoc);r.collapse(c.node,c.offset),r.modify("move",n.assoc<0?"forward":"backward","lineboundary"),t.observer.readSelectionRange();let d=t.observer.selectionRange;t.docView.posFromDOM(d.anchorNode,d.anchorOffset)!=n.from&&r.collapse(i,o)}moveToLine(t){let n=this.dom,r;if(t.node!=n)return t;for(let i=t.offset;!r&&i=0;i--){let o=Pr.get(n.childNodes[i]);o instanceof Ii&&(r=o.domAtPos(o.length))}return r?new No(r.node,r.offset,!0):t}nearest(t){for(let n=t;n;){let r=Pr.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;a--){let s=this.children[a],l=o-s.breakAfter,u=l-s.length;if(lt||s.covers(1))&&(!r||s instanceof Ii&&!(r instanceof Ii&&n>=0))&&(r=s,i=u),o=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 Ii))return null;for(;i.children.length;){let{i:s,off:l}=i.childPos(r,1);for(;;s++){if(s==i.children.length)return null;if((i=i.children[s]).length)break}r=l}if(!(i instanceof Tc))return null;let o=go(i.text,r);if(o==r)return null;let a=Sp(i.dom,r,o).getClientRects();for(let s=0;sMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,s=-1,l=this.view.textDirection==Mr.LTR;for(let u=0,c=0;ci)break;if(u>=r){let h=d.dom.getBoundingClientRect();if(n.push(h.height),a){let m=d.dom.lastChild,b=m?Fy(m):[];if(b.length){let O=b[b.length-1],y=l?O.right-h.left:h.right-O.left;y>s&&(s=y,this.minWidth=o,this.minWidthFrom=u,this.minWidthTo=p)}}}u=p+d.breakAfter}return n}textDirectionAt(t){let{i:n}=this.childPos(t,1);return getComputedStyle(this.children[n].dom).direction=="rtl"?Mr.RTL:Mr.LTR}measureTextSize(){for(let o of this.children)if(o instanceof Ii){let a=o.measureTextSize();if(a)return a}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 o=Fy(t.firstChild)[0];n=t.getBoundingClientRect().height,r=o?o.width/27:7,i=o?o.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 Tq(this.children,t,n)}computeBlockGapDeco(){let t=[],n=this.view.viewState;for(let r=0,i=0;;i++){let o=i==n.viewports.length?null:n.viewports[i],a=o?o.from-1:this.length;if(a>r){let s=(n.lineBlockAt(a).bottom-n.lineBlockAt(r).top)/this.view.scaleY;t.push(ln.replace({widget:new rU(s),block:!0,inclusive:!0,isBlockGap:!0}).range(r,a))}if(!o)break;r=o.to+1}return ln.set(t)}updateDeco(){let t=this.view.state.facet(Uy).map((i,o)=>(this.dynamicDecorationMap[o]=typeof i=="function")?i(this.view):i),n=!1,r=this.view.state.facet(Qq).map((i,o)=>{let a=typeof i=="function";return a&&(n=!0),a?i(this.view):i});r.length&&(this.dynamicDecorationMap[t.length]=n,t.push(Xn.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 o=qq(this.view),a={left:r.left-o.left,top:r.top-o.top,right:r.right+o.right,bottom:r.bottom+o.bottom},{offsetWidth:s,offsetHeight:l}=this.view.scrollDOM;jxe(this.view.scrollDOM,a,n.head0)r=r.childNodes[i-1],i=Sc(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 uCe(e,t){return e.nodeType!=1?0:(t&&e.childNodes[t-1].contentEditable=="false"?1:0)|(t{rt.from&&(n=!0)}),n}function hCe(e,t,n=1){let r=e.charCategorizer(t),i=e.doc.lineAt(t),o=t-i.from;if(i.length==0)return tt.cursor(t);o==0?n=1:o==i.length&&(n=-1);let a=o,s=o;n<0?a=go(i.text,o,!1):s=go(i.text,o);let l=r(i.text.slice(a,s));for(;a>0;){let u=go(i.text,a,!1);if(r(i.text.slice(u,a))!=l)break;a=u}for(;se?t.left-e:Math.max(0,e-t.right)}function gCe(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function uA(e,t){return e.topt.top+1}function iU(e,t){return te.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function CR(e,t,n){let r,i,o,a,s=!1,l,u,c,d;for(let m=e.firstChild;m;m=m.nextSibling){let b=Fy(m);for(let O=0;OS||a==S&&o>v){r=m,i=y,o=v,a=S;let k=S?n0?O0)}v==0?n>y.bottom&&(!c||c.bottomy.top)&&(u=m,d=y):c&&uA(c,y)?c=oU(c,y.bottom):d&&uA(d,y)&&(d=iU(d,y.top))}}if(c&&c.bottom>=n?(r=l,i=c):d&&d.top<=n&&(r=u,i=d),!r)return{node:e,offset:0};let p=Math.max(i.left,Math.min(i.right,t));if(r.nodeType==3)return aU(r,p,n);if(s&&r.contentEditable!="false")return CR(r,p,n);let h=Array.prototype.indexOf.call(e.childNodes,r)+(t>=(i.left+i.right)/2?1:0);return{node:e,offset:h}}function aU(e,t,n){let r=e.nodeValue.length,i=-1,o=1e9,a=0;for(let s=0;sn?c.top-n:n-c.bottom)-1;if(c.left-1<=t&&c.right+1>=t&&d=(c.left+c.right)/2,h=p;if((en.chrome||en.gecko)&&Sp(e,s).getBoundingClientRect().left==c.right&&(h=!p),d<=0)return{node:e,offset:s+(h?1:0)};i=s+(h?1:0),o=d}}}return{node:e,offset:i>-1?i:a>0?e.nodeValue.length:0}}function Kq(e,t,n,r=-1){var i,o;let a=e.contentDOM.getBoundingClientRect(),s=a.top+e.viewState.paddingTop,l,{docHeight:u}=e.viewState,{x:c,y:d}=t,p=d-s;if(p<0)return 0;if(p>u)return e.state.doc.length;for(let k=e.viewState.heightOracle.textHeight/2,C=!1;l=e.elementAtHeight(p),l.type!=ra.Text;)for(;p=r>0?l.bottom+k:l.top-k,!(p>=0&&p<=u);){if(C)return n?null:0;C=!0,r=-r}d=s+p;let h=l.from;if(he.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:sU(e,a,l,c,d);let m=e.dom.ownerDocument,b=e.root.elementFromPoint?e.root:m,O=b.elementFromPoint(c,d);O&&!e.contentDOM.contains(O)&&(O=null),O||(c=Math.max(a.left+1,Math.min(a.right-1,c)),O=b.elementFromPoint(c,d),O&&!e.contentDOM.contains(O)&&(O=null));let y,v=-1;if(O&&((i=e.docView.nearest(O))===null||i===void 0?void 0:i.isEditable)!=!1){if(m.caretPositionFromPoint){let k=m.caretPositionFromPoint(c,d);k&&({offsetNode:y,offset:v}=k)}else if(m.caretRangeFromPoint){let k=m.caretRangeFromPoint(c,d);k&&({startContainer:y,startOffset:v}=k,(!e.contentDOM.contains(y)||en.safari&&bCe(y,v,c)||en.chrome&&yCe(y,v,c))&&(y=void 0))}}if(!y||!e.docView.dom.contains(y)){let k=Ii.find(e.docView,h);if(!k)return p>l.top+l.height/2?l.to:l.from;({node:y,offset:v}=CR(k.dom,c,d))}let S=e.docView.nearest(y);if(!S)return null;if(S.isWidget&&((o=S.dom)===null||o===void 0?void 0:o.nodeType)==1){let k=S.dom.getBoundingClientRect();return t.ye.defaultLineHeight*1.5){let s=e.viewState.heightOracle.textHeight,l=Math.floor((i-n.top-(e.defaultLineHeight-s)*.5)/s);o+=l*e.viewState.heightOracle.lineLength}let a=e.state.sliceDoc(n.from,n.to);return n.from+pR(a,o,e.state.tabSize)}function bCe(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 Sp(e,r-1,r).getBoundingClientRect().left>n}function yCe(e,t,n){if(t!=0)return!1;for(let i=e;;){let o=i.parentNode;if(!o||o.nodeType!=1||o.firstChild!=i)return!1;if(o.classList.contains("cm-line"))break;i=o}let r=e.nodeType==1?e.getBoundingClientRect():Sp(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect();return n-r.left>5}function AR(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==ra.Text))return r}return n}function OCe(e,t,n,r){let i=AR(e,t.head),o=!r||i.type!=ra.Text||!(e.lineWrapping||i.widgetLineBreaks)?null:e.coordsAtPos(t.assoc<0&&t.head>i.from?t.head-1:t.head);if(o){let a=e.dom.getBoundingClientRect(),s=e.textDirectionAt(i.from),l=e.posAtCoords({x:n==(s==Mr.LTR)?a.right-1:a.left+1,y:(o.top+o.bottom)/2});if(l!=null)return tt.cursor(l,n?-1:1)}return tt.cursor(n?i.to:i.from,n?-1:1)}function lU(e,t,n,r){let i=e.state.doc.lineAt(t.head),o=e.bidiSpans(i),a=e.textDirectionAt(i.from);for(let s=t,l=null;;){let u=iCe(i,o,a,s,n),c=Mq;if(!u){if(i.number==(n?e.state.doc.lines:1))return s;c=` -`,i=e.state.doc.line(i.number+(n?1:-1)),o=e.bidiSpans(i),u=e.visualLineSide(i,!n)}if(l){if(!l(c))return s}else{if(!r)return u;l=r(c)}s=u}}function vCe(e,t,n){let r=e.state.charCategorizer(t),i=r(n);return o=>{let a=r(o);return i==Qr.Space&&(i=a),i==a}}function ECe(e,t,n,r){let i=t.head,o=n?1:-1;if(i==(n?e.state.doc.length:0))return tt.cursor(i,t.assoc);let a=t.goalColumn,s,l=e.contentDOM.getBoundingClientRect(),u=e.coordsAtPos(i,t.assoc||-1),c=e.documentTop;if(u)a==null&&(a=u.left-l.left),s=o<0?u.top:u.bottom;else{let h=e.viewState.lineBlockAt(i);a==null&&(a=Math.min(l.right-l.left,e.defaultCharacterWidth*(i-h.from))),s=(o<0?h.top:h.bottom)+c}let d=l.left+a,p=r??e.viewState.heightOracle.textHeight>>1;for(let h=0;;h+=10){let m=s+(p+h)*o,b=Kq(e,{x:d,y:m},!1,o);if(ml.bottom||(o<0?bi)){let O=e.docView.coordsForChar(b),y=!O||m{if(t>o&&ti(e)),n.from,t.head>n.from?-1:1);return r==n.from?n:tt.cursor(r,rnull),en.gecko&&FCe(t.contentDOM.ownerDocument)}handleEvent(t){!RCe(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=TCe(t),r=this.handlers,i=this.view.contentDOM;for(let o in n)if(o!="scroll"){let a=!n[o].handlers.length,s=r[o];s&&a!=!s.handlers.length&&(i.removeEventListener(o,this.handleEvent),s=null),s||i.addEventListener(o,this.handleEvent,{passive:a})}for(let o in r)o!="scroll"&&!n[o]&&i.removeEventListener(o,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||wCe.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,fm(this.view.contentDOM,t.key,t.keyCode)):!1}ignoreDuringComposition(t){return/^key/.test(t.type)?this.composing>0?!0:en.safari&&!en.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 uU(e,t){return(n,r)=>{try{return t.call(e,r,n)}catch(i){Gs(n.state,i)}}}function TCe(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 o in i.domEventHandlers){let a=i.domEventHandlers[o];a&&n(o).handlers.push(uU(r.value,a))}if(i&&i.domEventObservers)for(let o in i.domEventObservers){let a=i.domEventObservers[o];a&&n(o).observers.push(uU(r.value,a))}}for(let r in Nl)n(r).handlers.push(Nl[r]);for(let r in Pl)n(r).observers.push(Pl[r]);return t}const Jq=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],wCe="dthko",eZ=[16,17,18,20,91,92,224,225],Mv=6;function $v(e){return Math.max(0,e)*.7+8}function kCe(e,t){return Math.max(Math.abs(e.clientX-t.clientX),Math.abs(e.clientY-t.clientY))}class xCe{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=zxe(t.contentDOM),this.atoms=t.state.facet(RP).map(a=>a(t));let o=t.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=n.shiftKey,this.multiple=t.state.facet(qn.allowMultipleSelections)&&CCe(t,n),this.dragging=_Ce(t,n)&&iZ(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&&kCe(this.startEvent,t)<10)return;this.select(this.lastEvent=t);let r=0,i=0,o=((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},a=qq(this.view);t.clientX-a.left<=o.left+Mv?r=-$v(o.left-t.clientX):t.clientX+a.right>=o.right-Mv&&(r=$v(t.clientX-o.right)),t.clientY-a.top<=o.top+Mv?i=-$v(o.top-t.clientY):t.clientY+a.bottom>=o.bottom-Mv&&(i=$v(t.clientY-o.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 CCe(e,t){let n=e.state.facet($q);return n.length?n[0](t):en.mac?t.metaKey:t.ctrlKey}function ACe(e,t){let n=e.state.facet(Fq);return n.length?n[0](t):en.mac?!t.altKey:!t.ctrlKey}function _Ce(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=gT(e.root);if(!r||r.rangeCount==0)return!0;let i=r.getRangeAt(0).getClientRects();for(let o=0;o=t.clientX&&a.top<=t.clientY&&a.bottom>=t.clientY)return!0}return!1}function RCe(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=Pr.get(n))&&r.ignoreEvent(t))return!1;return!0}const Nl=Object.create(null),Pl=Object.create(null),tZ=en.ie&&en.ie_version<15||en.ios&&en.webkit_version<604;function ICe(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(),nZ(e,n.value)},50)}function nZ(e,t){let{state:n}=e,r,i=1,o=n.toText(t),a=o.lines==n.selection.ranges.length;if(_R!=null&&n.selection.ranges.every(l=>l.empty)&&_R==o.toString()){let l=-1;r=n.changeByRange(u=>{let c=n.doc.lineAt(u.from);if(c.from==l)return{range:u};l=c.from;let d=n.toText((a?o.line(i++).text:t)+n.lineBreak);return{changes:{from:c.from,insert:d},range:tt.cursor(u.from+d.length)}})}else a?r=n.changeByRange(l=>{let u=o.line(i++);return{changes:{from:l.from,to:l.to,insert:u.text},range:tt.cursor(l.from+u.length)}}):r=n.replaceSelection(o);e.dispatch(r,{userEvent:"input.paste",scrollIntoView:!0})}Pl.scroll=e=>{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft};Nl.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),t.keyCode==27&&(e.inputState.lastEscPress=Date.now()),!1);Pl.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")};Pl.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")};Nl.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(Bq))if(n=r(e,t),n)break;if(!n&&t.button==0&&(n=PCe(e,t)),n){let r=!e.hasFocus;e.inputState.startMouseSelection(new xCe(e,t,n,r)),r&&e.observer.ignore(()=>vq(e.contentDOM));let i=e.inputState.mouseSelection;if(i)return i.start(t),i.dragging===!1}return!1};function cU(e,t,n,r){if(r==1)return tt.cursor(t,n);if(r==2)return hCe(e.state,t,n);{let i=Ii.find(e.docView,t),o=e.state.doc.lineAt(i?i.posAtEnd:t),a=i?i.posAtStart:o.from,s=i?i.posAtEnd:o.to;return se>=t.top&&e<=t.bottom,dU=(e,t,n)=>rZ(t,n)&&e>=n.left&&e<=n.right;function DCe(e,t,n,r){let i=Ii.find(e.docView,t);if(!i)return 1;let o=t-i.posAtStart;if(o==0)return 1;if(o==i.length)return-1;let a=i.coordsAt(o,-1);if(a&&dU(n,r,a))return-1;let s=i.coordsAt(o,1);return s&&dU(n,r,s)?1:a&&rZ(r,a)?-1:1}function fU(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:DCe(e,n,t.clientX,t.clientY)}}const NCe=en.ie&&en.ie_version<=11;let pU=null,hU=0,mU=0;function iZ(e){if(!NCe)return e.detail;let t=pU,n=mU;return pU=e,mU=Date.now(),hU=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(hU+1)%3:1}function PCe(e,t){let n=fU(e,t),r=iZ(t),i=e.state.selection;return{update(o){o.docChanged&&(n.pos=o.changes.mapPos(n.pos),i=i.map(o.changes))},get(o,a,s){let l=fU(e,o),u,c=cU(e,l.pos,l.bias,r);if(n.pos!=l.pos&&!a){let d=cU(e,n.pos,n.bias,r),p=Math.min(d.from,c.from),h=Math.max(d.to,c.to);c=p1&&(u=LCe(i,l.pos))?u:s?i.addRange(c):tt.create([c])}}}function LCe(e,t){for(let n=0;n=t)return tt.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}Nl.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 o=i.posAtStart,a=o+i.length;(o>=n.to||a<=n.from)&&(n=tt.range(o,a))}}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};Nl.dragend=e=>(e.inputState.draggedContent=null,!1);function gU(e,t,n,r){if(!n)return;let i=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:o}=e.inputState,a=r&&o&&ACe(e,t)?{from:o.from,to:o.to}:null,s={from:i,insert:n},l=e.state.changes(a?[a,s]:s);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:a?"move.drop":"input.drop"}),e.inputState.draggedContent=null}Nl.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,o=()=>{++i==n.length&&gU(e,t,r.filter(a=>a!=null).join(e.state.lineBreak),!1)};for(let a=0;a{/[\x00-\x08\x0e-\x1f]{2}/.test(s.result)||(r[a]=s.result),o()},s.readAsText(n[a])}return!0}else{let r=t.dataTransfer.getData("Text");if(r)return gU(e,t,r,!0),!0}return!1};Nl.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let n=tZ?null:t.clipboardData;return n?(nZ(e,n.getData("text/plain")||n.getData("text/uri-text")),!0):(ICe(e),!1)};function MCe(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 $Ce(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:o}of e.selection.ranges){let a=e.doc.lineAt(o);a.number>i&&(t.push(a.text),n.push({from:a.from,to:Math.min(e.doc.length,a.to+1)})),i=a.number}r=!0}return{text:t.join(e.lineBreak),ranges:n,linewise:r}}let _R=null;Nl.copy=Nl.cut=(e,t)=>{let{text:n,ranges:r,linewise:i}=$Ce(e.state);if(!n&&!i)return!1;_R=i?n:null,t.type=="cut"&&!e.state.readOnly&&e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let o=tZ?null:t.clipboardData;return o?(o.clearData(),o.setData("text/plain",n),!0):(MCe(e,n),!1)};const oZ=Fl.define();function aZ(e,t){let n=[];for(let r of e.facet(zq)){let i=r(e,t);i&&n.push(i)}return n?e.update({effects:n,annotations:oZ.of(!0)}):null}function sZ(e){setTimeout(()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=aZ(e.state,t);n?e.dispatch(n):e.update([])}},10)}Pl.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),sZ(e)};Pl.blur=e=>{e.observer.clearSelectionRange(),sZ(e)};Pl.compositionstart=Pl.compositionupdate=e=>{e.inputState.compositionFirstChange==null&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0)};Pl.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,en.chrome&&en.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then(()=>e.observer.flush()):setTimeout(()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])},50)};Pl.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()};Nl.beforeinput=(e,t)=>{var n;let r;if(en.chrome&&en.android&&(r=Jq.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 o;(((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0)>i+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())},100)}return!1};const bU=new Set;function FCe(e){bU.has(e)||(bU.add(e),e.addEventListener("copy",()=>{}),e.addEventListener("cut",()=>{}))}const yU=["pre-wrap","normal","pre-line","break-spaces"];class BCe{constructor(t){this.lineWrapping=t,this.doc=rr.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 yU.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!=s;if(this.lineWrapping=s,this.lineHeight=n,this.charWidth=r,this.textHeight=i,this.lineLength=o,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)>GE&&(t.heightChanged=!0),this.height=n)}replace(t,n,r){return ia.of(r)}decomposeLeft(t,n){n.push(this)}decomposeRight(t,n){n.push(this)}applyChanges(t,n,r,i){let o=this,a=r.doc;for(let s=i.length-1;s>=0;s--){let{fromA:l,toA:u,fromB:c,toB:d}=i[s],p=o.lineAt(l,Nr.ByPosNoHeight,r.setDoc(n),0,0),h=p.to>=u?p:o.lineAt(u,Nr.ByPosNoHeight,r,0,0);for(d+=h.to-u,u=h.to;s>0&&p.from<=i[s-1].toA;)l=i[s-1].fromA,c=i[s-1].fromB,s--,lo*2){let s=t[n-1];s.break?t.splice(--n,1,s.left,null,s.right):t.splice(--n,1,s.left,s.right),r+=1+s.break,i-=s.size}else if(o>i*2){let s=t[r];s.break?t.splice(r,1,s.left,null,s.right):t.splice(r,1,s.left,s.right),r+=2+s.break,o-=s.size}else break;else if(i=o&&a(this.blockAt(0,r,i,o))}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 Xa extends lZ{constructor(t,n){super(t,n,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(t,n,r,i){return new pu(i,this.length,r,this.height,this.breaks)}replace(t,n,r){let i=r[0];return r.length==1&&(i instanceof Xa||i instanceof uo&&i.flags&4)&&Math.abs(this.length-i.length)<10?(i instanceof uo?i=new Xa(i.length,this.height):i.height=this.height,this.outdated||(i.outdated=!1),i):ia.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 uo extends ia{constructor(t){super(t,0)}heightMetrics(t,n){let r=t.doc.lineAt(n).number,i=t.doc.lineAt(n+this.length).number,o=i-r+1,a,s=0;if(t.lineWrapping){let l=Math.min(this.height,t.lineHeight*o);a=l/o,this.length>o+1&&(s=(this.height-l)/(this.length-o-1))}else a=this.height/o;return{firstLine:r,lastLine:i,perLine:a,perChar:s}}blockAt(t,n,r,i){let{firstLine:o,lastLine:a,perLine:s,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),c=n.doc.lineAt(u),d=s+c.length*l,p=Math.max(r,t-d/2);return new pu(c.from,c.length,p,d,0)}else{let u=Math.max(0,Math.min(a-o,Math.floor((t-r)/s))),{from:c,length:d}=n.doc.line(o+u);return new pu(c,d,r+s*u,s,0)}}lineAt(t,n,r,i,o){if(n==Nr.ByHeight)return this.blockAt(t,r,i,o);if(n==Nr.ByPosNoHeight){let{from:h,to:m}=r.doc.lineAt(t);return new pu(h,m-h,0,0,0)}let{firstLine:a,perLine:s,perChar:l}=this.heightMetrics(r,o),u=r.doc.lineAt(t),c=s+u.length*l,d=u.number-a,p=i+s*d+l*(u.from-o-d);return new pu(u.from,u.length,Math.max(i,Math.min(p,i+this.height-c)),c,0)}forEachLine(t,n,r,i,o,a){t=Math.max(t,o),n=Math.min(n,o+this.length);let{firstLine:s,perLine:l,perChar:u}=this.heightMetrics(r,o);for(let c=t,d=i;c<=n;){let p=r.doc.lineAt(c);if(c==t){let m=p.number-s;d+=l*m+u*(t-o-m)}let h=l+u*p.length;a(new pu(p.from,p.length,d,h,0)),d+=h,c=p.to+1}}replace(t,n,r){let i=this.length-n;if(i>0){let o=r[r.length-1];o instanceof uo?r[r.length-1]=new uo(o.length+i):r.push(null,new uo(i-1))}if(t>0){let o=r[0];o instanceof uo?r[0]=new uo(t+o.length):r.unshift(new uo(t-1),null)}return ia.of(r)}decomposeLeft(t,n){n.push(new uo(t-1),null)}decomposeRight(t,n){n.push(null,new uo(this.length-t-1))}updateHeight(t,n=0,r=!1,i){let o=n+this.length;if(i&&i.from<=n+this.length&&i.more){let a=[],s=Math.max(n,i.from),l=-1;for(i.from>n&&a.push(new uo(i.from-n-1).updateHeight(t,n));s<=o&&i.more;){let c=t.doc.lineAt(s).length;a.length&&a.push(null);let d=i.heights[i.index++];l==-1?l=d:Math.abs(d-l)>=GE&&(l=-2);let p=new Xa(c,d);p.outdated=!1,a.push(p),s+=c+1}s<=o&&a.push(null,new uo(o-s).updateHeight(t,s));let u=ia.of(a);return(l<0||Math.abs(u.height-this.height)>=GE||Math.abs(l-this.heightMetrics(t,n).perLine)>=GE)&&(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 jCe extends ia{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 o=r+this.left.height;return ts))return u;let c=n==Nr.ByPosNoHeight?Nr.ByPosNoHeight:Nr.ByPos;return l?u.join(this.right.lineAt(s,c,r,a,s)):this.left.lineAt(s,c,r,i,o).join(u)}forEachLine(t,n,r,i,o,a){let s=i+this.left.height,l=o+this.left.length+this.break;if(this.break)t=l&&this.right.forEachLine(t,n,r,s,l,a);else{let u=this.lineAt(l,Nr.ByPos,r,i,o);t=t&&u.from<=n&&a(u),n>u.to&&this.right.forEachLine(u.to+1,n,r,s,l,a)}}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 o=[];t>0&&this.decomposeLeft(t,o);let a=o.length;for(let s of r)o.push(s);if(t>0&&OU(o,a-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?ia.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:o,right:a}=this,s=n+o.length+this.break,l=null;return i&&i.from<=n+o.length&&i.more?l=o=o.updateHeight(t,n,r,i):o.updateHeight(t,n,r),i&&i.from<=s+a.length&&i.more?l=a=a.updateHeight(t,s,r,i):a.updateHeight(t,s,r),l?this.balanced(o,a):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function OU(e,t){let n,r;e[t]==null&&(n=e[t-1])instanceof uo&&(r=e[t+1])instanceof uo&&e.splice(t-1,3,new uo(n.length+1+r.length))}const zCe=5;class IP{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 Xa?i.length+=r-this.pos:(r>this.pos||!this.isCovered)&&this.nodes.push(new Xa(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=zCe)&&this.addLineDeco(i,o,a)}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 Xa(this.pos-t,-1)),this.writtenTo=this.pos}blankContent(t,n){let r=new uo(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 Xa)return t;let n=new Xa(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 Xa)&&!this.isCovered?this.nodes.push(new Xa(0,-1)):(this.writtenToc.clientHeight||c.scrollWidth>c.clientWidth)&&d.overflow!="visible"){let p=c.getBoundingClientRect();o=Math.max(o,p.left),a=Math.min(a,p.right),s=Math.max(s,p.top),l=u==e.parentNode?p.bottom:Math.min(l,p.bottom)}u=d.position=="absolute"||d.position=="fixed"?c.offsetParent:c.parentNode}else if(u.nodeType==11)u=u.host;else break;return{left:o-n.left,right:Math.max(o,a)-n.left,top:s-(n.top+t),bottom:Math.max(s,l)-(n.top+t)}}function QCe(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class dA{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 BCe(n),this.stateDeco=t.facet(Uy).filter(r=>typeof r!="function"),this.heightMap=ia.empty().applyChanges(this.stateDeco,rr.empty,this.heightOracle.setDoc(t.doc),[new qs(0,0,0,t.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=ln.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:o,to:a})=>i>=o&&i<=a)){let{from:o,to:a}=this.lineBlockAt(i);t.push(new Fv(o,a))}}this.viewports=t.sort((r,i)=>r.from-i.from),this.scaler=this.heightMap.height<=7e6?EU:new ZCe(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:ob(t,this.scaler))})}update(t,n=null){this.state=t.state;let r=this.stateDeco;this.stateDeco=this.state.facet(Uy).filter(c=>typeof c!="function");let i=t.changedRanges,o=qs.extendWithRanges(i,VCe(r,this.stateDeco,t?t.changes:Ni.empty(this.state.doc.length))),a=this.heightMap.height,s=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),o),this.heightMap.height!=a&&(t.flags|=2),s?(this.scrollAnchorPos=t.changes.mapPos(s.from,-1),this.scrollAnchorHeight=s.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let l=o.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(Hq)&&(this.mustEnforceCursorAssoc=!0)}measure(t){let n=t.contentDOM,r=window.getComputedStyle(n),i=this.heightOracle,o=r.whiteSpace;this.defaultTextDirection=r.direction=="rtl"?Mr.RTL:Mr.LTR;let a=this.heightOracle.mustRefreshForWrapping(o),s=n.getBoundingClientRect(),l=a||this.mustMeasureContent||this.contentDOMHeight!=s.height;this.contentDOMHeight=s.height,this.mustMeasureContent=!1;let u=0,c=0;if(s.width&&s.height){let{scaleX:k,scaleY:C}=Oq(n,s);(this.scaleX!=k||this.scaleY!=C)&&(this.scaleX=k,this.scaleY=C,u|=8,a=l=!0)}let d=(parseInt(r.paddingTop)||0)*this.scaleY,p=(parseInt(r.paddingBottom)||0)*this.scaleY;(this.paddingTop!=d||this.paddingBottom!=p)&&(this.paddingTop=d,this.paddingBottom=p,u|=10),this.editorWidth!=t.scrollDOM.clientWidth&&(i.lineWrapping&&(l=!0),this.editorWidth=t.scrollDOM.clientWidth,u|=8);let h=t.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=h&&(this.scrollAnchorHeight=-1,this.scrollTop=h),this.scrolledToBottom=Sq(t.scrollDOM);let m=(this.printing?QCe:WCe)(n,this.paddingTop),b=m.top-this.pixelViewport.top,O=m.bottom-this.pixelViewport.bottom;this.pixelViewport=m;let y=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(y!=this.inView&&(this.inView=y,y&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;let v=s.width;if((this.contentDOMWidth!=v||this.editorHeight!=t.scrollDOM.clientHeight)&&(this.contentDOMWidth=s.width,this.editorHeight=t.scrollDOM.clientHeight,u|=8),l){let k=t.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(k)&&(a=!0),a||i.lineWrapping&&Math.abs(v-this.contentDOMWidth)>i.charWidth){let{lineHeight:C,charWidth:w,textHeight:E}=t.docView.measureTextSize();a=C>0&&i.refresh(o,C,w,E,v/w,k),a&&(t.docView.minWidth=0,u|=8)}b>0&&O>0?c=Math.max(b,O):b<0&&O<0&&(c=Math.min(b,O)),i.heightChanged=!1;for(let C of this.viewports){let w=C.from==this.viewport.from?k:t.docView.measureVisibleLineHeights(C);this.heightMap=(a?ia.empty().applyChanges(this.stateDeco,rr.empty,this.heightOracle,[new qs(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(i,0,a,new UCe(C.from,w))}i.heightChanged&&(u|=2)}let S=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return S&&(this.viewport=this.getViewport(c,this.scrollTarget)),this.updateForViewport(),(u&2||S)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(a?[]: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,o=this.heightOracle,{visibleTop:a,visibleBottom:s}=this,l=new Fv(i.lineAt(a-r*1e3,Nr.ByHeight,o,0,0).from,i.lineAt(s+(1-r)*1e3,Nr.ByHeight,o,0,0).to);if(n){let{head:u}=n.range;if(ul.to){let c=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),d=i.lineAt(u,Nr.ByPos,o,0,0),p;n.y=="center"?p=(d.top+d.bottom)/2-c/2:n.y=="start"||n.y=="nearest"&&u=s+Math.max(10,Math.min(r,250)))&&i>a-2*1e3&&o>1,a=i<<1;if(this.defaultTextDirection!=Mr.LTR&&!r)return[];let s=[],l=(u,c,d,p)=>{if(c-uu&&OO.from>=d.from&&O.to<=d.to&&Math.abs(O.from-u)O.fromy));if(!b){if(cO.from<=c&&O.to>=c)){let O=n.moveToLineBoundary(tt.cursor(c),!1,!0).head;O>u&&(c=O)}b=new dA(u,c,this.gapSize(d,u,c,p))}s.push(b)};for(let u of this.viewportLines){if(u.lengthu.from&&l(u.from,p,u,c),hn.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let n=[];Xn.spans(t,this.viewport.from,this.viewport.to,{span(i,o){n.push({from:i,to:o})},point(){}},20);let r=n.length!=this.visibleRanges.length||this.visibleRanges.some((i,o)=>i.from!=n[o].from||i.to!=n[o].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)||ob(this.heightMap.lineAt(t,Nr.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return ob(this.heightMap.lineAt(this.scaler.fromDOM(t),Nr.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 ob(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 Fv{constructor(t,n){this.from=t,this.to=n}}function GCe(e,t,n){let r=[],i=e,o=0;return Xn.spans(n,e,t,{span(){},point(a,s){a>i&&(r.push({from:i,to:a}),o+=a-i),i=s}},20),i=1)return t[t.length-1].to;let r=Math.floor(e*n);for(let i=0;;i++){let{from:o,to:a}=t[i],s=a-o;if(r<=s)return o+r;r-=s}}function Uv(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 qCe(e,t){for(let n of e)if(t(n))return n}const EU={toDOM(e){return e},fromDOM(e){return e},scale:1};class ZCe{constructor(t,n,r){let i=0,o=0,a=0;this.viewports=r.map(({from:s,to:l})=>{let u=n.lineAt(s,Nr.ByPos,t,0,0).top,c=n.lineAt(l,Nr.ByPos,t,0,0).bottom;return i+=c-u,{from:s,to:l,top:u,bottom:c,domTop:0,domBottom:0}}),this.scale=(7e6-i)/(n.height-i);for(let s of this.viewports)s.domTop=a+(s.top-o)*this.scale,a=s.domBottom=s.domTop+(s.bottom-s.top),o=s.bottom}toDOM(t){for(let n=0,r=0,i=0;;n++){let o=nob(i,t)):e._content)}const jv=qt.define({combine:e=>e.join(" ")}),RR=qt.define({combine:e=>e.indexOf(!0)>-1}),IR=Yd.newName(),uZ=Yd.newName(),cZ=Yd.newName(),dZ={"&light":"."+uZ,"&dark":"."+cZ};function DR(e,t,n){return new Yd(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 XCe=DR("."+IR,{"&":{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"}},dZ),ab="￿";class KCe{constructor(t,n){this.points=t,this.text="",this.lineSeparator=n.facet(qn.lineSeparator)}append(t){this.text+=t}lineBreak(){this.text+=ab}readRange(t,n){if(!t)return this;let r=t.parentNode;for(let i=t;;){this.findPointBefore(r,i);let o=this.text.length;this.readNode(i);let a=i.nextSibling;if(a==n)break;let s=Pr.get(i),l=Pr.get(a);(s&&l?s.breakAfter:(s?s.breakAfter:SU(i))||SU(a)&&(i.nodeName!="BR"||i.cmIgnore)&&this.text.length>o)&&this.lineBreak(),i=a}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 o=-1,a=1,s;if(this.lineSeparator?(o=n.indexOf(this.lineSeparator,r),a=this.lineSeparator.length):(s=i.exec(n))&&(o=s.index,a=s[0].length),this.append(n.slice(r,o<0?n.length:o)),o<0)break;if(this.lineBreak(),a>1)for(let l of this.points)l.node==t&&l.pos>this.text.length&&(l.pos-=a-1);r=o+a}}readNode(t){if(t.cmIgnore)return;let n=Pr.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+(JCe(t,r.node,r.offset)?n:0))}}function JCe(e,t,n){for(;;){if(!t||n-1)this.newSel=null;else if(n>-1&&(this.bounds=t.docView.domBoundsAround(n,r,0))){let s=o||a?[]:rAe(t),l=new KCe(s,t.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=iAe(s,this.bounds.from)}else{let s=t.observer.selectionRange,l=o&&o.node==s.focusNode&&o.offset==s.focusOffset||!gR(t.contentDOM,s.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(s.focusNode,s.focusOffset),u=a&&a.node==s.anchorNode&&a.offset==s.anchorOffset||!gR(t.contentDOM,s.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(s.anchorNode,s.anchorOffset),c=t.viewport;if(en.ios&&t.state.selection.main.empty&&l!=u&&(c.from>0||c.toDate.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:a,to:s}=t.bounds,l=i.from,u=null;(o===8||en.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))}:(en.mac||en.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=tt.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:rr.of([" "])}):en.chrome&&n&&n.from==n.to&&n.from==i.head&&n.insert.toString()==` - `&&e.lineWrapping&&(r&&(r=tt.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:rr.of([" "])}),n){if(en.ios&&e.inputState.flushIOSKey()||en.android&&(n.from==i.from&&n.to==i.to&&n.insert.length==1&&n.insert.lines==2&&fm(e.contentDOM,"Enter",13)||(n.from==i.from-1&&n.to==i.to&&n.insert.length==0||o==8&&n.insert.lengthi.head)&&fm(e.contentDOM,"Backspace",8)||n.from==i.from&&n.to==i.to+1&&n.insert.length==0&&fm(e.contentDOM,"Delete",46)))return!0;let a=n.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let s,l=()=>s||(s=tAe(e,n,r));return e.state.facet(jq).some(u=>u(e,n.from,n.to,a,l))||e.dispatch(l()),!0}else if(r&&!r.main.eq(i)){let a=!1,s="select";return e.inputState.lastSelectionTime>Date.now()-50&&(e.inputState.lastSelectionOrigin=="select"&&(a=!0),s=e.inputState.lastSelectionOrigin),e.dispatch({selection:r,scrollIntoView:a,userEvent:s}),!0}else return!1}function tAe(e,t,n){let r,i=e.state,o=i.selection.main;if(t.from>=o.from&&t.to<=o.to&&t.to-t.from>=(o.to-o.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let s=o.fromt.to?i.sliceDoc(t.to,o.to):"";r=i.replaceSelection(e.state.toText(s+t.insert.sliceString(0,void 0,e.state.lineBreak)+l))}else{let s=i.changes(t),l=n&&n.main.to<=s.newLength?n.main:void 0;if(i.selection.ranges.length>1&&e.inputState.composing>=0&&t.to<=o.to&&t.to>=o.to-10){let u=e.state.sliceDoc(t.from,t.to),c,d=n&&Zq(e,n.main.head);if(d){let m=t.insert.length-(t.to-t.from);c={from:d.from,to:d.to-m}}else c=e.state.doc.lineAt(o.head);let p=o.to-t.to,h=o.to-o.from;r=i.changeByRange(m=>{if(m.from==o.from&&m.to==o.to)return{changes:s,range:l||m.map(s)};let b=m.to-p,O=b-u.length;if(m.to-m.from!=h||e.state.sliceDoc(O,b)!=u||m.to>=c.from&&m.from<=c.to)return{range:m};let y=i.changes({from:O,to:b,insert:t.insert}),v=m.to-o.to;return{changes:y,range:l?tt.range(Math.max(0,l.anchor+v),Math.max(0,l.head+v)):m.map(y)}})}else r={changes:s,selection:l&&i.selection.replaceRange(l)}}let a="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,a+=".compose",e.inputState.compositionFirstChange&&(a+=".start",e.inputState.compositionFirstChange=!1)),i.update(r,{userEvent:a,scrollIntoView:!0})}function nAe(e,t,n,r){let i=Math.min(e.length,t.length),o=0;for(;o0&&s>0&&e.charCodeAt(a-1)==t.charCodeAt(s-1);)a--,s--;if(r=="end"){let l=Math.max(0,o-Math.min(a,s));n-=a+l-o}if(a=a?o-n:0;o-=l,s=o+(s-a),a=o}else if(s=s?o-n:0;o-=l,a=o+(a-s),s=o}return{from:o,toA:a,toB:s}}function rAe(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}=e.observer.selectionRange;return n&&(t.push(new TU(n,r)),(i!=n||o!=r)&&t.push(new TU(i,o))),t}function iAe(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?tt.single(n+t,r+t):null}const oAe={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},fA=en.ie&&en.ie_version<=11;class aAe{constructor(t){this.view=t,this.active=!1,this.selectionRange=new Vxe,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);(en.ie&&en.ie_version<=11||en.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()}),fA&&(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(Qk)?r.root.activeElement!=this.dom:!QE(r.dom,i))return;let o=i.anchorNode&&r.docView.nearest(i.anchorNode);if(o&&o.ignoreEvent(t)){n||(this.selectionChanged=!1);return}(en.ie&&en.ie_version<=11||en.android&&en.chrome)&&!r.state.selection.main.empty&&i.focusNode&&Nb(i.focusNode,i.focusOffset,i.anchorNode,i.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:t}=this,n=en.safari&&t.root.nodeType==11&&Bxe(this.dom.ownerDocument)==this.dom&&sAe(this.view)||gT(t.root);if(!n||this.selectionRange.eq(n))return!1;let r=QE(this.dom,n);return r&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime{let o=this.delayedAndroidKey;o&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=o.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&o.force&&fm(this.dom,o.key,o.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 o of t){let a=this.readMutation(o);a&&(a.typeOver&&(i=!0),n==-1?{from:n,to:r}=a:(n=Math.min(a.from,n),r=Math.max(a.to,r)))}return{from:n,to:r,typeOver:i}}readChange(){let{from:t,to:n,typeOver:r}=this.processRecords(),i=this.selectionChanged&&QE(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 o=new eAe(this.view,t,n,r);return this.view.docView.domChanged={newSel:o.newSel?o.newSel.main:null},o}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=fZ(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=wU(n,t.previousSibling||t.target.previousSibling,-1),i=wU(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 wU(e,t,n){for(;t;){let r=Pr.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 sAe(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,o=t.endContainer,a=t.endOffset,s=e.docView.domAtPos(e.state.selection.main.anchor);return Nb(s.node,s.offset,o,a)&&([r,i,o,a]=[o,a,r,i]),{anchorNode:r,anchorOffset:i,focusNode:o,focusOffset:a}}class Ht{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||Hxe(t.parent)||document,this.viewState=new vU(t.state||qn.create(t)),t.scrollTo&&t.scrollTo.is(Lv)&&(this.viewState.scrollTarget=t.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(rb).map(r=>new lA(r));for(let r of this.plugins)r.update(this);this.observer=new aAe(this),this.inputState=new SCe(this),this.inputState.ensureHandlers(this.plugins),this.docView=new nU(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...t){let n=t.length==1&&t[0]instanceof wi?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,o=this.state;for(let p of t){if(p.startState!=o)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");o=p.state}if(this.destroyed){this.viewState.state=o;return}let a=this.hasFocus,s=0,l=null;t.some(p=>p.annotation(oZ))?(this.inputState.notifiedFocused=a,s=1):a!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=a,l=aZ(o,a),l||(s=1));let u=this.observer.delayedAndroidKey,c=null;if(u?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(o.doc)||!this.state.selection.eq(o.selection))&&(c=null)):this.observer.clear(),o.facet(qn.phrases)!=this.state.facet(qn.phrases))return this.setState(o);i=bT.create(this,o,t),i.flags|=s;let d=this.viewState.scrollTarget;try{this.updateState=2;for(let p of t){if(d&&(d=d.map(p.changes)),p.scrollIntoView){let{main:h}=p.state.selection;d=new pm(h.empty?h:tt.cursor(h.head,h.head>h.anchor?-1:1))}for(let h of p.effects)h.is(Lv)&&(d=h.value.clip(this.state))}this.viewState.update(i,d),this.bidiCache=yT.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),n=this.docView.update(i),this.state.facet(ib)!=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(jv)!=i.state.facet(jv)&&(this.viewState.mustMeasureContent=!0),(n||r||d||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!i.empty)for(let p of this.state.facet(xR))try{p(i)}catch(h){Gs(this.state,h,"update listener")}(l||c)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),c&&!fZ(this,c)&&u.force&&fm(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 vU(t),this.plugins=t.facet(rb).map(r=>new lA(r)),this.pluginMap.clear();for(let r of this.plugins)r.update(this);this.docView.destroy(),this.docView=new nU(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(rb),r=t.state.facet(rb);if(n!=r){let i=[];for(let o of r){let a=n.indexOf(o);if(a<0)i.push(new lA(o));else{let s=this.plugins[a];s.mustUpdate=t,i.push(s)}}for(let o of this.plugins)o.mustUpdate!=t&&o.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:o,scrollAnchorHeight:a}=this.viewState;Math.abs(i-this.viewState.scrollTop)>1&&(a=-1),this.viewState.scrollAnchorHeight=-1;try{for(let s=0;;s++){if(a<0)if(Sq(r))o=-1,a=this.viewState.heightMap.height;else{let h=this.viewState.scrollAnchorAt(i);o=h.from,a=h.top}this.updateState=1;let l=this.viewState.measure(this);if(!l&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(s>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 c=u.map(h=>{try{return h.read(this)}catch(m){return Gs(this.state,m),kU}}),d=bT.create(this,this.state,[]),p=!1;d.flags|=l,n?n.flags|=l:n=d,this.updateState=2,d.empty||(this.updatePlugins(d),this.inputState.update(d),this.updateAttrs(),p=this.docView.update(d));for(let h=0;h1||m<-1){i=i+m,r.scrollTop=i/this.scaleY,a=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(n&&!n.empty)for(let s of this.state.facet(xR))s(n)}get themeClasses(){return IR+" "+(this.state.facet(RR)?cZ:uZ)+" "+this.state.facet(jv)}updateAttrs(){let t=xU(this,Wq,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Qk)?"true":"false",class:"cm-content",style:`${en.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),xU(this,_P,n);let r=this.observer.ignore(()=>{let i=ER(this.contentDOM,this.contentAttrs,n),o=ER(this.dom,this.editorAttrs,t);return i||o});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(Ht.announce)){n&&(this.announceDOM.textContent=""),n=!1;let o=this.announceDOM.appendChild(document.createElement("div"));o.textContent=i.value}}mountStyles(){this.styleModules=this.state.facet(ib);let t=this.state.facet(Ht.cspNonce);Yd.mount(this.root,this.styleModules.concat(XCe).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 cA(this,t,lU(this,t,n,r))}moveByGroup(t,n){return cA(this,t,lU(this,t,n,r=>vCe(this,t.head,r)))}visualLineSide(t,n){let r=this.bidiSpans(t),i=this.textDirectionAt(t.from),o=r[n?r.length-1:0];return tt.cursor(o.side(n,i)+t.from,o.forward(!n,i)?1:-1)}moveToLineBoundary(t,n,r=!0){return OCe(this,t,n,r)}moveVertically(t,n,r){return cA(this,t,ECe(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(),Kq(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),o=this.bidiSpans(i),a=o[Od.find(o,t-i.from,-1,n)];return kP(r,a.dir==Mr.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(Vq)||tthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>lAe)return Lq(t.length);let n=this.textDirectionAt(t.from),r;for(let o of this.bidiCache)if(o.from==t.from&&o.dir==n&&(o.fresh||Pq(o.isolates,r=tU(this,t))))return o.order;r||(r=tU(this,t));let i=rCe(t.text,n,r);return this.bidiCache.push(new yT(t.from,t.to,n,r,!0,i)),i}get hasFocus(){var t;return(this.dom.ownerDocument.hasFocus()||en.safari&&((t=this.inputState)===null||t===void 0?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{vq(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 Lv.of(new pm(typeof t=="number"?tt.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 Lv.of(new pm(tt.cursor(r.from),"start","start",r.top-t,n,!0))}static domEventHandlers(t){return Jr.define(()=>({}),{eventHandlers:t})}static domEventObservers(t){return Jr.define(()=>({}),{eventObservers:t})}static theme(t,n){let r=Yd.newName(),i=[jv.of(r),ib.of(DR(`.${r}`,t))];return n&&n.dark&&i.push(RR.of(!0)),i}static baseTheme(t){return lf.lowest(ib.of(DR("."+IR,t,dZ)))}static findFromDOM(t){var n;let r=t.querySelector(".cm-content"),i=r&&Pr.get(r)||Pr.get(t);return((n=i==null?void 0:i.rootView)===null||n===void 0?void 0:n.view)||null}}Ht.styleModule=ib;Ht.inputHandler=jq;Ht.focusChangeEffect=zq;Ht.perLineTextDirection=Vq;Ht.exceptionSink=Uq;Ht.updateListener=xR;Ht.editable=Qk;Ht.mouseSelectionStyle=Bq;Ht.dragMovesSelection=Fq;Ht.clickAddsSelectionRange=$q;Ht.decorations=Uy;Ht.outerDecorations=Qq;Ht.atomicRanges=RP;Ht.bidiIsolatedRanges=Yq;Ht.scrollMargins=Gq;Ht.darkTheme=RR;Ht.cspNonce=qt.define({combine:e=>e.length?e[0]:""});Ht.contentAttributes=_P;Ht.editorAttributes=Wq;Ht.lineWrapping=Ht.contentAttributes.of({class:"cm-lineWrapping"});Ht.announce=xn.define();const lAe=4096,kU={};class yT{constructor(t,n,r,i,o,a){this.from=t,this.to=n,this.dir=r,this.isolates=i,this.fresh=o,this.order=a}static update(t,n){if(n.empty&&!t.some(o=>o.fresh))return t;let r=[],i=t.length?t[t.length-1].dir:Mr.LTR;for(let o=Math.max(0,t.length-10);o=0;i--){let o=r[i],a=typeof o=="function"?o(e):o;a&&vR(a,n)}return n}const uAe=en.mac?"mac":en.windows?"win":en.linux?"linux":"key";function cAe(e,t){const n=e.split(/-(?!$)/);let r=n[n.length-1];r=="Space"&&(r=" ");let i,o,a,s;for(let l=0;lr.concat(i),[]))),n}function fAe(e,t,n){return hZ(pZ(e.state),t,e,n)}let rd=null;const pAe=4e3;function hAe(e,t=uAe){let n=Object.create(null),r=Object.create(null),i=(a,s)=>{let l=r[a];if(l==null)r[a]=s;else if(l!=s)throw new Error("Key binding "+a+" is used both as a regular binding and as a multi-stroke prefix")},o=(a,s,l,u,c)=>{var d,p;let h=n[a]||(n[a]=Object.create(null)),m=s.split(/ (?!$)/).map(y=>cAe(y,t));for(let y=1;y{let k=rd={view:S,prefix:v,scope:a};return setTimeout(()=>{rd==k&&(rd=null)},pAe),!0}]})}let b=m.join(" ");i(b,!1);let O=h[b]||(h[b]={preventDefault:!1,stopPropagation:!1,run:((p=(d=h._any)===null||d===void 0?void 0:d.run)===null||p===void 0?void 0:p.slice())||[]});l&&O.run.push(l),u&&(O.preventDefault=!0),c&&(O.stopPropagation=!0)};for(let a of e){let s=a.scope?a.scope.split(" "):["editor"];if(a.any)for(let u of s){let c=n[u]||(n[u]=Object.create(null));c._any||(c._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let d in c)c[d].run.push(a.any)}let l=a[t]||a.key;if(l)for(let u of s)o(u,l,a.run,a.preventDefault,a.stopPropagation),a.shift&&o(u,"Shift-"+l,a.shift,a.preventDefault,a.stopPropagation)}return n}function hZ(e,t,n,r){let i=Fxe(t),o=fo(i,0),a=Bs(o)==i.length&&i!=" ",s="",l=!1,u=!1,c=!1;rd&&rd.view==n&&rd.scope==r&&(s=rd.prefix+" ",eZ.indexOf(t.keyCode)<0&&(u=!0,rd=null));let d=new Set,p=O=>{if(O){for(let y of O.run)if(!d.has(y)&&(d.add(y),y(n,t)))return O.stopPropagation&&(c=!0),!0;O.preventDefault&&(O.stopPropagation&&(c=!0),u=!0)}return!1},h=e[r],m,b;return h&&(p(h[s+zv(i,t,!a)])?l=!0:a&&(t.altKey||t.metaKey||t.ctrlKey)&&!(en.windows&&t.ctrlKey&&t.altKey)&&(m=Gd[t.keyCode])&&m!=i?(p(h[s+zv(m,t,!0)])||t.shiftKey&&(b=$y[t.keyCode])!=i&&b!=m&&p(h[s+zv(b,t,!1)]))&&(l=!0):a&&t.shiftKey&&p(h[s+zv(i,t,!0)])&&(l=!0),!l&&p(h._any)&&(l=!0)),u&&(l=!0),l&&c&&t.stopPropagation(),l}class iO{constructor(t,n,r,i,o){this.className=t,this.left=n,this.top=r,this.width=i,this.height=o}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 o=mZ(t);return[new iO(n,i.left-o.left,i.top-o.top,null,i.bottom-i.top)]}else return mAe(t,n,r)}}function mZ(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==Mr.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function AU(e,t,n){let r=tt.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:ra.Text}}function mAe(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),o=e.textDirection==Mr.LTR,a=e.contentDOM,s=a.getBoundingClientRect(),l=mZ(e),u=a.querySelector(".cm-line"),c=u&&window.getComputedStyle(u),d=s.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),p=s.right-(c?parseInt(c.paddingRight):0),h=AR(e,r),m=AR(e,i),b=h.type==ra.Text?h:null,O=m.type==ra.Text?m:null;if(b&&(e.lineWrapping||h.widgetLineBreaks)&&(b=AU(e,r,b)),O&&(e.lineWrapping||m.widgetLineBreaks)&&(O=AU(e,i,O)),b&&O&&b.from==O.from)return v(S(n.from,n.to,b));{let C=b?S(n.from,null,b):k(h,!1),w=O?S(null,n.to,O):k(m,!0),E=[];return(b||h).to<(O||m).from-(b&&O?1:0)||h.widgetLineBreaks>1&&C.bottom+e.defaultLineHeight/2U&&z.from=X)break;j>W&&B(Math.max(Z,W),C==null&&Z<=U,Math.min(j,X),w==null&&j>=V,Y.dir)}if(W=q.to+1,W>=X)break}return R.length==0&&B(U,C==null,V,w==null,e.textDirection),{top:$,bottom:N,horizontal:R}}function k(C,w){let E=s.top+(w?C.top:C.bottom);return{top:E,bottom:E,horizontal:[]}}}function gAe(e,t){return e.constructor==t.constructor&&e.eq(t)}class bAe{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(qE)!=t.state.facet(qE)&&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(qE);for(;n!gAe(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 qE=qt.define();function gZ(e){return[Jr.define(t=>new bAe(t,e)),qE.of(e)]}const bZ=!en.ios,jy=qt.define({combine(e){return Pu(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(t,n)=>Math.min(t,n),drawRangeCursor:(t,n)=>t||n})}});function yAe(e={}){return[jy.of(e),OAe,vAe,EAe,Hq.of(!0)]}function yZ(e){return e.startState.facet(jy)!=e.state.facet(jy)}const OAe=gZ({above:!0,markers(e){let{state:t}=e,n=t.facet(jy),r=[];for(let i of t.selection.ranges){let o=i==t.selection.main;if(i.empty?!o||bZ:n.drawRangeCursor){let a=o?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",s=i.empty?i:tt.cursor(i.head,i.head>i.anchor?-1:1);for(let l of iO.forRange(e,a,s))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=yZ(e);return n&&_U(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){_U(t.state,e)},class:"cm-cursorLayer"});function _U(e,t){t.style.animationDuration=e.facet(jy).cursorBlinkRate+"ms"}const vAe=gZ({above:!1,markers(e){return e.state.selection.ranges.map(t=>t.empty?[]:iO.forRange(e,"cm-selectionBackground",t)).reduce((t,n)=>t.concat(n))},update(e,t){return e.docChanged||e.selectionSet||e.viewportChanged||yZ(e)},class:"cm-selectionLayer"}),NR={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};bZ&&(NR[".cm-line"].caretColor="transparent !important",NR[".cm-content"]={caretColor:"transparent !important"});const EAe=lf.highest(Ht.theme(NR)),OZ=xn.define({map(e,t){return e==null?null:t.mapPos(e)}}),sb=eo.define({create(){return null},update(e,t){return e!=null&&(e=t.changes.mapPos(e)),t.effects.reduce((n,r)=>r.is(OZ)?r.value:n,e)}}),SAe=Jr.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(sb);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(sb)!=n||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:e}=this,t=e.state.field(sb),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(sb)!=e&&this.view.dispatch({effects:OZ.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 TAe(){return[sb,SAe]}function RU(e,t,n,r,i){t.lastIndex=0;for(let o=e.iterRange(n,r),a=n,s;!o.next().done;a+=o.value.length)if(!o.lineBreak)for(;s=t.exec(o.value);)i(a+s.index,s)}function wAe(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:o}of n)i=Math.max(e.state.doc.lineAt(i).from,i-t),o=Math.min(e.state.doc.lineAt(o).to,o+t),r.length&&r[r.length-1].to>=i?r[r.length-1].to=o:r.push({from:i,to:o});return r}class kAe{constructor(t){const{regexp:n,decoration:r,decorate:i,boundary:o,maxLength:a=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=(s,l,u,c)=>i(c,u,u+s[0].length,s,l);else if(typeof r=="function")this.addMatch=(s,l,u,c)=>{let d=r(s,l,u);d&&c(u,u+s[0].length,d)};else if(r)this.addMatch=(s,l,u,c)=>c(u,u+s[0].length,r);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=o,this.maxLength=a}createDeco(t){let n=new Qd,r=n.add.bind(n);for(let{from:i,to:o}of wAe(t,this.maxLength))RU(t.state.doc,this.regexp,i,o,(a,s)=>this.addMatch(s,t,a,r));return n.finish()}updateDeco(t,n){let r=1e9,i=-1;return t.docChanged&&t.changes.iterChanges((o,a,s,l)=>{l>t.view.viewport.from&&s1e3?this.createDeco(t.view):i>-1?this.updateRange(t.view,n.map(t.changes),r,i):n}updateRange(t,n,r,i){for(let o of t.visibleRanges){let a=Math.max(o.from,r),s=Math.min(o.to,i);if(s>a){let l=t.state.doc.lineAt(a),u=l.tol.from;a--)if(this.boundary.test(l.text[a-1-l.from])){c=a;break}for(;sp.push(y.range(b,O));if(l==u)for(this.regexp.lastIndex=c-l.from;(h=this.regexp.exec(l.text))&&h.indexthis.addMatch(O,t,b,m));n=n.update({filterFrom:c,filterTo:d,filter:(b,O)=>bd,add:p})}}return n}}const PR=/x/.unicode!=null?"gu":"g",xAe=new RegExp(`[\0-\b ---Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,PR),CAe={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 pA=null;function AAe(){var e;if(pA==null&&typeof document<"u"&&document.body){let t=document.body.style;pA=((e=t.tabSize)!==null&&e!==void 0?e:t.MozTabSize)!=null}return pA||!1}const ZE=qt.define({combine(e){let t=Pu(e,{render:null,specialChars:xAe,addSpecialChars:null});return(t.replaceTabs=!AAe())&&(t.specialChars=new RegExp(" |"+t.specialChars.source,PR)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,PR)),t}});function _Ae(e={}){return[ZE.of(e),RAe()]}let IU=null;function RAe(){return IU||(IU=Jr.fromClass(class{constructor(e){this.view=e,this.decorations=ln.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(ZE)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new kAe({regexp:e.specialChars,decoration:(t,n,r)=>{let{doc:i}=n.state,o=fo(t[0],0);if(o==9){let a=i.lineAt(r),s=n.state.tabSize,l=Dl(a.text,s,r-a.from);return ln.replace({widget:new PAe((s-l%s)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[o]||(this.decorationCache[o]=ln.replace({widget:new NAe(e,o)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(ZE);e.startState.facet(ZE)!=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 IAe="•";function DAe(e){return e>=32?IAe:e==10?"␤":String.fromCharCode(9216+e)}class NAe extends Lu{constructor(t,n){super(),this.options=t,this.code=n}eq(t){return t.code==this.code}toDOM(t){let n=DAe(this.code),r=t.state.phrase("Control character")+" "+(CAe[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,r,n);if(i)return i;let o=document.createElement("span");return o.textContent=n,o.title=r,o.setAttribute("aria-label",r),o.className="cm-specialChar",o}ignoreEvent(){return!1}}class PAe extends Lu{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 LAe(){return $Ae}const MAe=ln.line({class:"cm-activeLine"}),$Ae=Jr.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(MAe.range(i.from)),t=i.from)}return ln.set(n)}},{decorations:e=>e.decorations}),LR=2e3;function FAe(e,t,n){let r=Math.min(t.line,n.line),i=Math.max(t.line,n.line),o=[];if(t.off>LR||n.off>LR||t.col<0||n.col<0){let a=Math.min(t.off,n.off),s=Math.max(t.off,n.off);for(let l=r;l<=i;l++){let u=e.doc.line(l);u.length<=s&&o.push(tt.range(u.from+a,u.to+s))}}else{let a=Math.min(t.col,n.col),s=Math.max(t.col,n.col);for(let l=r;l<=i;l++){let u=e.doc.line(l),c=pR(u.text,a,e.tabSize,!0);if(c<0)o.push(tt.cursor(u.to));else{let d=pR(u.text,s,e.tabSize);o.push(tt.range(u.from+c,u.from+d))}}}return o}function BAe(e,t){let n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}function DU(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1),r=e.state.doc.lineAt(n),i=n-r.from,o=i>LR?-1:i==r.length?BAe(e,t.clientX):Dl(r.text,e.state.tabSize,n-r.from);return{line:r.number,col:o,off:i}}function UAe(e,t){let n=DU(e,t),r=e.state.selection;return n?{update(i){if(i.docChanged){let o=i.changes.mapPos(i.startState.doc.line(n.line).from),a=i.state.doc.lineAt(o);n={line:a.number,col:n.col,off:Math.min(n.off,a.length)},r=r.map(i.changes)}},get(i,o,a){let s=DU(e,i);if(!s)return r;let l=FAe(e.state,n,s);return l.length?a?tt.create(l.concat(r.ranges)):tt.create(l):r}}:null}function jAe(e){let t=(e==null?void 0:e.eventFilter)||(n=>n.altKey&&n.button==0);return Ht.mouseSelectionStyle.of((n,r)=>t(r)?UAe(n,r):null)}const zAe={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},VAe={style:"cursor: crosshair"};function HAe(e={}){let[t,n]=zAe[e.key||"Alt"],r=Jr.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,Ht.contentAttributes.of(i=>{var o;return!((o=i.plugin(r))===null||o===void 0)&&o.isDown?VAe:null})]}const _0="-10000px";class vZ{constructor(t,n,r){this.facet=n,this.createTooltipView=r,this.input=t.state.facet(n),this.tooltips=this.input.filter(i=>i),this.tooltipViews=this.tooltips.map(r)}update(t,n){var r;let i=t.state.facet(this.facet),o=i.filter(l=>l);if(i===this.input){for(let l of this.tooltipViews)l.update&&l.update(t);return!1}let a=[],s=n?[]:null;for(let l=0;ln[u]=l),n.length=s.length),this.input=i,this.tooltips=o,this.tooltipViews=a,!0}}function WAe(e){let{win:t}=e;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}const hA=qt.define({combine:e=>{var t,n,r;return{position:en.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)||WAe}}}),NU=new WeakMap,DP=Jr.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(hA);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.manager=new vZ(e,NP,n=>this.createTooltip(n)),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(hA);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=_0,t.dom.style.left="0px",this.container.appendChild(t.dom),t.mount&&t.mount(this.view),t}destroy(){var e,t;this.view.win.removeEventListener("resize",this.measureSoon);for(let n of this.manager.tooltipViews)n.dom.remove(),(e=n.destroy)===null||e===void 0||e.call(n);this.parent&&this.container.remove(),(t=this.intersectionObserver)===null||t===void 0||t.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(en.gecko)r=i.offsetParent!=this.container.ownerDocument.body;else if(i.style.top==_0&&i.style.left=="0px"){let o=i.getBoundingClientRect();r=Math.abs(o.top+1e4)>1||Math.abs(o.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,o)=>{let a=this.manager.tooltipViews[o];return a.getCoords?a.getCoords(i.pos):this.view.coordsAtPos(i.pos)}),size:this.manager.tooltipViews.map(({dom:i})=>i.getBoundingClientRect()),space:this.view.state.facet(hA).tooltipSpace(this.view),scaleX:t,scaleY:n,makeAbsolute:r}}writeMeasure(e){var t;if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let s of this.manager.tooltipViews)s.dom.style.position="absolute"}let{editor:n,space:r,scaleX:i,scaleY:o}=e,a=[];for(let s=0;s=Math.min(n.bottom,r.bottom)||d.rightMath.min(n.right,r.right)+.1){c.style.top=_0;continue}let h=l.arrow?u.dom.querySelector(".cm-tooltip-arrow"):null,m=h?7:0,b=p.right-p.left,O=(t=NU.get(u))!==null&&t!==void 0?t:p.bottom-p.top,y=u.offset||YAe,v=this.view.textDirection==Mr.LTR,S=p.width>r.right-r.left?v?r.left:r.right-p.width:v?Math.min(d.left-(h?14:0)+y.x,r.right-b):Math.max(r.left,d.left-b+(h?14:0)-y.x),k=this.above[s];!l.strictSide&&(k?d.top-(p.bottom-p.top)-y.yr.bottom)&&k==r.bottom-d.bottom>d.top-r.top&&(k=this.above[s]=!k);let C=(k?d.top-r.top:r.bottom-d.bottom)-m;if(CS&&$.topw&&(w=k?$.top-O-2-m:$.bottom+m+2);if(this.position=="absolute"?(c.style.top=(w-e.parent.top)/o+"px",c.style.left=(S-e.parent.left)/i+"px"):(c.style.top=w/o+"px",c.style.left=S/i+"px"),h){let $=d.left+(v?y.x:-y.x)-(S+14-7);h.style.left=$/i+"px"}u.overlap!==!0&&a.push({left:S,top:w,right:E,bottom:w+O}),c.classList.toggle("cm-tooltip-above",k),c.classList.toggle("cm-tooltip-below",!k),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=_0}},{eventObservers:{scroll(){this.maybeMeasure()}}}),QAe=Ht.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"}}}),YAe={x:0,y:0},NP=qt.define({enables:[DP,QAe]}),OT=qt.define();class Yk{static create(t){return new Yk(t)}constructor(t){this.view=t,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new vZ(t,OT,n=>this.createHostedView(n))}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 GAe=NP.compute([OT],e=>{let t=e.facet(OT).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:Yk.create,above:t[0].above,arrow:t.some(n=>n.arrow)}});class qAe{constructor(t,n,r,i,o){this.view=t,this.source=n,this.field=r,this.setHover=i,this.hoverTime=o,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;ts.bottom||n.xs.right+t.defaultCharacterWidth)return;let l=t.bidiSpans(t.state.doc.lineAt(i)).find(c=>c.from<=i&&c.to>=i),u=l&&l.dir==Mr.RTL?-1:1;o=n.x{this.pending==s&&(this.pending=null,l&&t.dispatch({effects:this.setHover.of(l)}))},l=>Gs(t.state,l,"hover tooltip"))}else a&&t.dispatch({effects:this.setHover.of(a)})}get tooltip(){let t=this.view.plugin(DP),n=t?t.manager.tooltips.findIndex(r=>r.create==Yk.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&&!ZAe(i.dom,t)||this.pending){let{pos:o}=r||this.pending,a=(n=r==null?void 0:r.end)!==null&&n!==void 0?n:o;(o==a?this.view.posAtCoords(this.lastMove)!=o:!XAe(this.view,o,a,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 Vv=4;function ZAe(e,t){let n=e.getBoundingClientRect();return t.clientX>=n.left-Vv&&t.clientX<=n.right+Vv&&t.clientY>=n.top-Vv&&t.clientY<=n.bottom+Vv}function XAe(e,t,n,r,i,o){let a=e.scrollDOM.getBoundingClientRect(),s=e.documentTop+e.documentPadding.top+e.contentHeight;if(a.left>r||a.righti||Math.min(a.bottom,s)=t&&l<=n}function KAe(e,t={}){let n=xn.define(),r=eo.define({create(){return null},update(i,o){if(i&&(t.hideOnChange&&(o.docChanged||o.selection)||t.hideOn&&t.hideOn(o,i)))return null;if(i&&o.docChanged){let a=o.changes.mapPos(i.pos,-1,ho.TrackDel);if(a==null)return null;let s=Object.assign(Object.create(null),i);s.pos=a,i.end!=null&&(s.end=o.changes.mapPos(i.end)),i=s}for(let a of o.effects)a.is(n)&&(i=a.value),a.is(JAe)&&(i=null);return i},provide:i=>OT.from(i)});return[r,Jr.define(i=>new qAe(i,e,r,n,t.hoverTime||300)),GAe]}function EZ(e,t){let n=e.plugin(DP);if(!n)return null;let r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}const JAe=xn.define(),PU=qt.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 zy(e,t){let n=e.plugin(SZ),r=n?n.specs.indexOf(t):-1;return r>-1?n.panels[r]:null}const SZ=Jr.fromClass(class{constructor(e){this.input=e.state.facet(Vy),this.specs=this.input.filter(n=>n),this.panels=this.specs.map(n=>n(e));let t=e.state.facet(PU);this.top=new Hv(e,!0,t.topContainer),this.bottom=new Hv(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(PU);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new Hv(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new Hv(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(Vy);if(n!=this.input){let r=n.filter(l=>l),i=[],o=[],a=[],s=[];for(let l of r){let u=this.specs.indexOf(l),c;u<0?(c=l(e.view),s.push(c)):(c=this.panels[u],c.update&&c.update(e)),i.push(c),(c.top?o:a).push(c)}this.specs=r,this.panels=i,this.top.sync(o),this.bottom.sync(a);for(let l of s)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=>Ht.scrollMargins.of(t=>{let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class Hv{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=LU(t);t=t.nextSibling}else this.dom.insertBefore(n.dom,t);for(;t;)t=LU(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 LU(e){let t=e.nextSibling;return e.remove(),t}const Vy=qt.define({enables:SZ});class kc extends Ep{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}}kc.prototype.elementClass="";kc.prototype.toDOM=void 0;kc.prototype.mapMode=ho.TrackBefore;kc.prototype.startSide=kc.prototype.endSide=-1;kc.prototype.point=!0;const XE=qt.define(),e2e={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Xn.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},Lb=qt.define();function t2e(e){return[TZ(),Lb.of(Object.assign(Object.assign({},e2e),e))]}const MR=qt.define({combine:e=>e.some(t=>t)});function TZ(e){let t=[n2e];return e&&e.fixed===!1&&t.push(MR.of(!0)),t}const n2e=Jr.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(Lb).map(t=>new $U(e,t));for(let t of this.gutters)this.dom.appendChild(t.dom);this.fixed=!e.state.facet(MR),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(MR)!=!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=Xn.iter(this.view.state.facet(XE),this.view.viewport.from),r=[],i=this.gutters.map(o=>new r2e(o,this.view.viewport,-this.view.documentPadding.top));for(let o of this.view.viewportLineBlocks)if(r.length&&(r=[]),Array.isArray(o.type)){let a=!0;for(let s of o.type)if(s.type==ra.Text&&a){$R(n,r,s.from);for(let l of i)l.line(this.view,s,r);a=!1}else if(s.widget)for(let l of i)l.widget(this.view,s)}else if(o.type==ra.Text){$R(n,r,o.from);for(let a of i)a.line(this.view,o,r)}else if(o.widget)for(let a of i)a.widget(this.view,o);for(let o of i)o.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet(Lb),n=e.state.facet(Lb),r=e.docChanged||e.heightChanged||e.viewportChanged||!Xn.eq(e.startState.facet(XE),e.state.facet(XE),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 o of n){let a=t.indexOf(o);a<0?i.push(new $U(this.view,o)):(this.gutters[a].update(e),i.push(this.gutters[a]))}for(let o of this.gutters)o.dom.remove(),i.indexOf(o)<0&&o.destroy();for(let o of i)this.dom.appendChild(o.dom);this.gutters=i}return r}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>Ht.scrollMargins.of(t=>{let n=t.plugin(e);return!n||n.gutters.length==0||!n.fixed?null:t.textDirection==Mr.LTR?{left:n.dom.offsetWidth*t.scaleX}:{right:n.dom.offsetWidth*t.scaleX}})});function MU(e){return Array.isArray(e)?e:[e]}function $R(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class r2e{constructor(t,n,r){this.gutter=t,this.height=r,this.i=0,this.cursor=Xn.iter(t.markers,n.from)}addElement(t,n,r){let{gutter:i}=this,o=(n.top-this.height)/t.scaleY,a=n.height/t.scaleY;if(this.i==i.elements.length){let s=new wZ(t,a,o,r);i.elements.push(s),i.dom.appendChild(s.dom)}else i.elements[this.i].update(t,a,o,r);this.height=n.bottom,this.i++}line(t,n,r){let i=[];$R(this.cursor,i,n.from),r.length&&(i=i.concat(r));let o=this.gutter.config.lineMarker(t,n,i);o&&i.unshift(o);let a=this.gutter;i.length==0&&!a.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 $U{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 o=i.target,a;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let l=o.getBoundingClientRect();a=(l.top+l.bottom)/2}else a=i.clientY;let s=t.lineBlockAtHeight(a-t.documentTop);n.domEventHandlers[r](t,s,i)&&i.preventDefault()});this.markers=MU(n.markers(t)),n.initialSpacer&&(this.spacer=new wZ(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=MU(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!Xn.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 wZ{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":""),i2e(this.markers,i)||this.setMarkers(t,i)}setMarkers(t,n){let r="cm-gutterElement",i=this.dom.firstChild;for(let o=0,a=0;;){let s=a,l=oo(s,l,u)||a(s,l,u):a}return r}})}});class mA extends kc{constructor(t){super(),this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function gA(e,t){return e.state.facet(Gh).formatNumber(t,e.state)}const a2e=Lb.compute([Gh],e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(t){return t.state.facet(o2e)},lineMarker(t,n,r){return r.some(i=>i.toDOM)?null:new mA(gA(t,t.state.doc.lineAt(n.from).number))},widgetMarker:()=>null,lineMarkerChange:t=>t.startState.facet(Gh)!=t.state.facet(Gh),initialSpacer(t){return new mA(gA(t,FU(t.state.doc.lines)))},updateSpacer(t,n){let r=gA(n.view,FU(n.view.state.doc.lines));return r==t.number?t:new mA(r)},domEventHandlers:e.facet(Gh).domEventHandlers}));function s2e(e={}){return[Gh.of(e),TZ(),a2e]}function FU(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(l2e.range(i)))}return Xn.of(t)});function c2e(){return u2e}const kZ=1024;let d2e=0;class js{constructor(t,n){this.from=t,this.to=n}}class vn{constructor(t={}){this.id=d2e++,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=$i.match(t)),n=>{let r=t(n);return r===void 0?null:[this,r]}}}vn.closedBy=new vn({deserialize:e=>e.split(" ")});vn.openedBy=new vn({deserialize:e=>e.split(" ")});vn.group=new vn({deserialize:e=>e.split(" ")});vn.isolate=new vn({deserialize:e=>{if(e&&e!="rtl"&&e!="ltr"&&e!="auto")throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}});vn.contextHash=new vn({perNode:!0});vn.lookAhead=new vn({perNode:!0});vn.mounted=new vn({perNode:!0});class Hy{constructor(t,n,r){this.tree=t,this.overlay=n,this.parser=r}static get(t){return t&&t.props&&t.props[vn.mounted.id]}}const f2e=Object.create(null);class $i{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):f2e,r=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),i=new $i(t.name||"",n,t.id,r);if(t.props){for(let o of t.props)if(Array.isArray(o)||(o=o(i)),o){if(o[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[o[0].id]=o[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(vn.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(vn.group),o=-1;o<(i?i.length:0);o++){let a=n[o<0?r.name:i[o]];if(a)return a}}}}$i.none=new $i("",Object.create(null),0,8);class oO{constructor(t){this.types=t;for(let n=0;n0;for(let l=this.cursor(a|kr.IncludeAnonymous);;){let u=!1;if(l.from<=o&&l.to>=i&&(!s&&l.type.isAnonymous||n(l)!==!1)){if(l.firstChild())continue;u=!0}for(;u&&r&&(s||!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:MP($i.none,this.children,this.positions,0,this.children.length,0,this.length,(n,r,i)=>new cr(this.type,n,r,i,this.propValues),t.makeTree||((n,r,i)=>new cr($i.none,n,r,i)))}static build(t){return g2e(t)}}cr.empty=new cr($i.none,[],[],0);class PP{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 PP(this.buffer,this.index)}}class Zd{constructor(t,n,r){this.buffer=t,this.length=n,this.set=r}get type(){return $i.none}toString(){let t=[];for(let n=0;n0));l=a[l+3]);return s}slice(t,n,r){let i=this.buffer,o=new Uint16Array(n-t),a=0;for(let s=t,l=0;s=t&&nt;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function Wy(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?s.length:-1;t!=u;t+=n){let c=s[t],d=l[t]+a.from;if(xZ(i,r,d,d+c.length)){if(c instanceof Zd){if(o&kr.ExcludeBuffers)continue;let p=c.findChild(0,c.buffer.length,n,r-d,i);if(p>-1)return new bu(new p2e(a,c,t,d),null,p)}else if(o&kr.IncludeAnonymous||!c.type.isAnonymous||LP(c)){let p;if(!(o&kr.IgnoreMounts)&&(p=Hy.get(c))&&!p.overlay)return new Mo(p.tree,d,t,a);let h=new Mo(c,d,t,a);return o&kr.IncludeAnonymous||!h.type.isAnonymous?h:h.nextChild(n<0?c.children.length-1:0,n,r,i)}}}if(o&kr.IncludeAnonymous||!a.type.isAnonymous||(a.index>=0?t=a.index+n:t=n<0?-1:a._parent._tree.children.length,a=a._parent,!a))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&kr.IgnoreOverlays)&&(i=Hy.get(this._tree))&&i.overlay){let o=t-this.from;for(let{from:a,to:s}of i.overlay)if((n>0?a<=o:a=o:s>o))return new Mo(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 UU(e,t,n,r){let i=e.cursor(),o=[];if(!i.firstChild())return o;if(n!=null){for(let a=!1;!a;)if(a=i.type.is(n),!i.nextSibling())return o}for(;;){if(r!=null&&i.type.is(r))return o;if(i.type.is(t)&&o.push(i.node),!i.nextSibling())return r==null?o:[]}}function FR(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 p2e{constructor(t,n,r,i){this.parent=t,this.buffer=n,this.index=r,this.start=i}}class bu extends CZ{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,o=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.context.start,r);return o<0?null:new bu(this.context,this,o)}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&kr.ExcludeBuffers)return null;let{buffer:i}=this.context,o=i.findChild(this.index+4,i.buffer[this.index+3],n>0?1:-1,t-this.context.start,n);return o<0?null:new bu(this.context,this,o)}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 bu(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 bu(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,o=r.buffer[this.index+3];if(o>i){let a=r.buffer[this.index+1];t.push(r.slice(i,o,a)),n.push(0)}return new cr(this.type,t,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function AZ(e){if(!e.length)return null;let t=0,n=e[0];for(let o=1;on.from||a.to=t){let s=new Mo(a.tree,a.overlay[0].from+o.from,-1,o);(i||(i=[r])).push(Wy(s,t,n,!1))}}return i?AZ(i):r}class vT{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 Mo)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 Mo?(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,o=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.buffer.start,r);return o<0?!1:(this.stack.push(this.index),this.yieldBuf(o))}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&kr.ExcludeBuffers?!1:this.enterChild(1,t,n):this.yield(this._tree.enter(t,n,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&kr.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&kr.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 o=n+t,a=t<0?-1:r._tree.children.length;o!=a;o+=t){let s=r._tree.children[o];if(this.mode&kr.IncludeAnonymous||s instanceof Zd||!s.type.isAnonymous||LP(s))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 a=t;a;a=a._parent)if(a.index==i){if(i==this.index)return a;n=a,r=o+1;break e}i=this.stack[--o]}for(let i=r;i=0;o--){if(o<0)return FR(this.node,t,i);let a=r[n.buffer[this.stack[o]]];if(!a.isAnonymous){if(t[i]&&t[i]!=a.name)return!1;i--}}return!0}}function LP(e){return e.children.some(t=>t instanceof Zd||!t.type.isAnonymous||LP(t))}function g2e(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:i=kZ,reused:o=[],minRepeatType:a=r.types.length}=e,s=Array.isArray(n)?new PP(n,n.length):n,l=r.types,u=0,c=0;function d(C,w,E,$,N,R){let{id:B,start:U,end:V,size:z}=s,W=c;for(;z<0;)if(s.next(),z==-1){let j=o[B];E.push(j),$.push(U-C);return}else if(z==-3){u=B;return}else if(z==-4){c=B;return}else throw new RangeError(`Unrecognized record size: ${z}`);let X=l[B],q,Y,Z=U-C;if(V-U<=i&&(Y=O(s.pos-w,N))){let j=new Uint16Array(Y.size-Y.skip),se=s.pos-Y.size,ve=j.length;for(;s.pos>se;)ve=y(Y.start,j,ve);q=new Zd(j,V-Y.start,r),Z=Y.start-C}else{let j=s.pos-z;s.next();let se=[],ve=[],G=B>=a?B:-1,ce=0,ge=V;for(;s.pos>j;)G>=0&&s.id==G&&s.size>=0?(s.end<=ge-i&&(m(se,ve,U,ce,s.end,ge,G,W),ce=se.length,ge=s.end),s.next()):R>2500?p(U,j,se,ve):d(U,j,se,ve,G,R+1);if(G>=0&&ce>0&&ce-1&&ce>0){let ue=h(X);q=MP(X,se,ve,0,se.length,0,V-U,ue,ue)}else q=b(X,se,ve,V-U,W-V)}E.push(q),$.push(Z)}function p(C,w,E,$){let N=[],R=0,B=-1;for(;s.pos>w;){let{id:U,start:V,end:z,size:W}=s;if(W>4)s.next();else{if(B>-1&&V=0;z-=3)U[W++]=N[z],U[W++]=N[z+1]-V,U[W++]=N[z+2]-V,U[W++]=W;E.push(new Zd(U,N[2]-V,r)),$.push(V-C)}}function h(C){return(w,E,$)=>{let N=0,R=w.length-1,B,U;if(R>=0&&(B=w[R])instanceof cr){if(!R&&B.type==C&&B.length==$)return B;(U=B.prop(vn.lookAhead))&&(N=E[R]+B.length+U)}return b(C,w,E,$,N)}}function m(C,w,E,$,N,R,B,U){let V=[],z=[];for(;C.length>$;)V.push(C.pop()),z.push(w.pop()+E-N);C.push(b(r.types[B],V,z,R-N,U-R)),w.push(N-E)}function b(C,w,E,$,N=0,R){if(u){let B=[vn.contextHash,u];R=R?[B].concat(R):[B]}if(N>25){let B=[vn.lookAhead,N];R=R?[B].concat(R):[B]}return new cr(C,w,E,$,R)}function O(C,w){let E=s.fork(),$=0,N=0,R=0,B=E.end-i,U={size:0,start:0,skip:0};e:for(let V=E.pos-C;E.pos>V;){let z=E.size;if(E.id==w&&z>=0){U.size=$,U.start=N,U.skip=R,R+=4,$+=4,E.next();continue}let W=E.pos-z;if(z<0||W=a?4:0,q=E.start;for(E.next();E.pos>W;){if(E.size<0)if(E.size==-3)X+=4;else break e;else E.id>=a&&(X+=4);E.next()}N=q,$+=z,R+=X}return(w<0||$==C)&&(U.size=$,U.start=N,U.skip=R),U.size>4?U:void 0}function y(C,w,E){let{id:$,start:N,end:R,size:B}=s;if(s.next(),B>=0&&$4){let V=s.pos-(B-4);for(;s.pos>V;)E=y(C,w,E)}w[--E]=U,w[--E]=R-C,w[--E]=N-C,w[--E]=$}else B==-3?u=$:B==-4&&(c=$);return E}let v=[],S=[];for(;s.pos>0;)d(e.start||0,e.bufferStart||0,v,S,-1,0);let k=(t=e.length)!==null&&t!==void 0?t:v.length?S[0]+v[0].length:0;return new cr(l[e.topID],v.reverse(),S.reverse(),k)}const jU=new WeakMap;function KE(e,t){if(!e.isAnonymous||t instanceof Zd||t.type!=e)return 1;let n=jU.get(t);if(n==null){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof cr)){n=1;break}n+=KE(e,r)}jU.set(t,n)}return n}function MP(e,t,n,r,i,o,a,s,l){let u=0;for(let m=r;m=c)break;w+=E}if(S==k+1){if(w>c){let E=m[k];h(E.children,E.positions,0,E.children.length,b[k]+v);continue}d.push(m[k])}else{let E=b[S-1]+m[S-1].length-C;d.push(MP(e,m,b,k,S,C,E,null,l))}p.push(C+v-o)}}return h(t,n,r,i,0),(s||l)(d,p,a)}class _Z{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 bu?this.setBuffer(t.context.buffer,t.index,n):t instanceof Mo&&this.map.set(t.tree,n)}get(t){return t instanceof bu?this.getBuffer(t.context.buffer,t.index):t instanceof Mo?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 pc{constructor(t,n,r,i,o=!1,a=!1){this.from=t,this.to=n,this.tree=r,this.offset=i,this.open=(o?1:0)|(a?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 pc(0,t.length,t,0,!1,r)];for(let o of n)o.to>t.length&&i.push(o);return i}static applyChanges(t,n,r=128){if(!n.length)return t;let i=[],o=1,a=t.length?t[0]:null;for(let s=0,l=0,u=0;;s++){let c=s=r)for(;a&&a.from=p.from||d<=p.to||u){let h=Math.max(p.from,l)-u,m=Math.min(p.to,d)-u;p=h>=m?null:new pc(h,m,p.tree,p.offset+u,s>0,!!c)}if(p&&i.push(p),a.to>d)break;a=onew js(i.from,i.to)):[new js(0,0)]:[new js(0,t.length)],this.createParse(t,n||[],r)}parse(t,n,r){let i=this.startParse(t,n,r);for(;;){let o=i.advance();if(o)return o}}};class b2e{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 RZ(e){return(t,n,r,i)=>new O2e(t,e,n,r,i)}class zU{constructor(t,n,r,i,o){this.parser=t,this.parse=n,this.overlay=r,this.target=i,this.from=o}}function VU(e){if(!e.length||e.some(t=>t.from>=t.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(e))}class y2e{constructor(t,n,r,i,o,a,s){this.parser=t,this.predicate=n,this.mounts=r,this.index=i,this.start=o,this.target=a,this.prev=s,this.depth=0,this.ranges=[]}}const BR=new vn({perNode:!0});class O2e{constructor(t,n,r,i,o){this.nest=n,this.input=r,this.fragments=i,this.ranges=o,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 cr(r.type,r.children,r.positions,r.length,r.propValues.concat([[BR,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[vn.mounted.id]=new Hy(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)s=!1;else if(t.hasNode(i)){if(n){let u=n.mounts.find(c=>c.frag.from<=i.from&&c.frag.to>=i.to&&c.mount.overlay);if(u)for(let c of u.mount.overlay){let d=c.from+u.pos,p=c.to+u.pos;d>=i.from&&p<=i.to&&!n.ranges.some(h=>h.fromd)&&n.ranges.push({from:d,to:p})}}s=!1}else if(r&&(a=v2e(r.ranges,i.from,i.to)))s=a!=2;else if(!i.type.isAnonymous&&(o=this.nest(i,this.input))&&(i.fromnew js(d.from-i.from,d.to-i.from)):null,i.tree,c.length?c[0].from:i.from)),o.overlay?c.length&&(r={ranges:c,depth:0,prev:r}):s=!1}}else n&&(l=n.predicate(i))&&(l===!0&&(l=new js(i.from,i.to)),l.fromnew js(c.from-n.start,c.to-n.start)),n.target,u[0].from))),n=n.prev}r&&!--r.depth&&(r=r.prev)}}}}function v2e(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 HU(e,t,n,r,i,o){if(t=t&&n.enter(r,1,kr.IgnoreOverlays|kr.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 cr)n=n.children[0];else break}return!1}}let S2e=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(BR))!==null&&n!==void 0?n:r.to,this.inner=new WU(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(BR))!==null&&t!==void 0?t:n.to,this.inner=new WU(n.tree,-n.offset)}}findMounts(t,n){var r;let i=[];if(this.inner){this.inner.cursor.moveTo(t,1);for(let o=this.inner.cursor.node;o;o=o.parent){let a=(r=o.tree)===null||r===void 0?void 0:r.prop(vn.mounted);if(a&&a.parser==n)for(let s=this.fragI;s=o.to)break;l.tree==this.curFrag.tree&&i.push({frag:l,pos:o.from-l.offset,mount:a})}}}return i}};function QU(e,t){let n=null,r=t;for(let i=1,o=0;i=s)break;l.to<=a||(n||(r=n=t.slice()),l.froms&&n.splice(o+1,0,new js(s,l.to))):l.to>s?n[o--]=new js(s,l.to):n.splice(o--,1))}}return r}function T2e(e,t,n,r){let i=0,o=0,a=!1,s=!1,l=-1e9,u=[];for(;;){let c=i==e.length?1e9:a?e[i].to:e[i].from,d=o==t.length?1e9:s?t[o].to:t[o].from;if(a!=s){let p=Math.max(l,n),h=Math.min(c,d,r);pnew js(p.from+r,p.to+r)),d=T2e(t,c,l,u);for(let p=0,h=l;;p++){let m=p==d.length,b=m?u:d[p].from;if(b>h&&n.push(new pc(h,b,i.tree,-a,o.from>=h||o.openStart,o.to<=b||o.openEnd)),m)break;h=d[p].to}}else n.push(new pc(l,u,i.tree,-a,o.from>=a||o.openStart,o.to<=s||o.openEnd))}return n}let w2e=0;class bl{constructor(t,n,r){this.set=t,this.base=n,this.modified=r,this.id=w2e++}static define(t){if(t!=null&&t.base)throw new Error("Can not derive from a modified tag");let n=new bl([],null,[]);if(n.set.push(n),t)for(let r of t.set)n.set.push(r);return n}static defineModifier(){let t=new ET;return n=>n.modified.indexOf(t)>-1?n:ET.get(n.base||n,n.modified.concat(t).sort((r,i)=>r.id-i.id))}}let k2e=0;class ET{constructor(){this.instances=[],this.id=k2e++}static get(t,n){if(!n.length)return t;let r=n[0].instances.find(s=>s.base==t&&x2e(n,s.modified));if(r)return r;let i=[],o=new bl(i,t,n);for(let s of n)s.instances.push(o);let a=C2e(n);for(let s of t.set)if(!s.modified.length)for(let l of a)i.push(ET.get(s,l));return o}}function x2e(e,t){return e.length==t.length&&e.every((n,r)=>n==t[r])}function C2e(e){let t=[[]];for(let n=0;nr.length-n.length)}function Ig(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 o=[],a=2,s=i;for(let d=0;;){if(s=="..."&&d>0&&d+3==i.length){a=1;break}let p=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(s);if(!p)throw new RangeError("Invalid path: "+i);if(o.push(p[0]=="*"?"":p[0][0]=='"'?JSON.parse(p[0]):p[0]),d+=p[0].length,d==i.length)break;let h=i[d++];if(d==i.length&&h=="!"){a=0;break}if(h!="/")throw new RangeError("Invalid path: "+i);s=i.slice(d)}let l=o.length-1,u=o[l];if(!u)throw new RangeError("Invalid path: "+i);let c=new ST(r,a,l>0?o.slice(0,l):null);t[u]=c.sort(t[u])}}return IZ.add(t)}const IZ=new vn;class ST{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 a=i;for(let s of o)for(let l of s.set){let u=n[l.id];if(u){a=a?a+" "+u:u;break}}return a},scope:r}}function A2e(e,t){let n=null;for(let r of e){let i=r.style(t);i&&(n=n?n+" "+i:i)}return n}function _2e(e,t,n,r=0,i=e.length){let o=new R2e(r,Array.isArray(t)?t:[t],n);o.highlightRange(e.cursor(),r,i,"",o.highlighters),o.flush(i)}class R2e{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,o){let{type:a,from:s,to:l}=t;if(s>=r||l<=n)return;a.isTop&&(o=this.highlighters.filter(h=>!h.scope||h.scope(a)));let u=i,c=I2e(t)||ST.empty,d=A2e(o,c.tags);if(d&&(u&&(u+=" "),u+=d,c.mode==1&&(i+=(i?" ":"")+d)),this.startSpan(Math.max(n,s),u),c.opaque)return;let p=t.tree&&t.tree.prop(vn.mounted);if(p&&p.overlay){let h=t.node.enter(p.overlay[0].from+s,1),m=this.highlighters.filter(O=>!O.scope||O.scope(p.tree.type)),b=t.firstChild();for(let O=0,y=s;;O++){let v=O=S||!t.nextSibling())););if(!v||S>r)break;y=v.to+s,y>n&&(this.highlightRange(h.cursor(),Math.max(n,v.from+s),Math.min(r,y),"",m),this.startSpan(Math.min(r,y),u))}b&&t.parent()}else if(t.firstChild()){p&&(i="");do if(!(t.to<=n)){if(t.from>=r)break;this.highlightRange(t,n,r,i,o),this.startSpan(Math.min(r,t.to),u)}while(t.nextSibling());t.parent()}}}function I2e(e){let t=e.type.prop(IZ);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}const Lt=bl.define,Qv=Lt(),Kc=Lt(),GU=Lt(Kc),qU=Lt(Kc),Jc=Lt(),Yv=Lt(Jc),bA=Lt(Jc),tu=Lt(),vf=Lt(tu),Jl=Lt(),eu=Lt(),UR=Lt(),R0=Lt(UR),Gv=Lt(),he={comment:Qv,lineComment:Lt(Qv),blockComment:Lt(Qv),docComment:Lt(Qv),name:Kc,variableName:Lt(Kc),typeName:GU,tagName:Lt(GU),propertyName:qU,attributeName:Lt(qU),className:Lt(Kc),labelName:Lt(Kc),namespace:Lt(Kc),macroName:Lt(Kc),literal:Jc,string:Yv,docString:Lt(Yv),character:Lt(Yv),attributeValue:Lt(Yv),number:bA,integer:Lt(bA),float:Lt(bA),bool:Lt(Jc),regexp:Lt(Jc),escape:Lt(Jc),color:Lt(Jc),url:Lt(Jc),keyword:Jl,self:Lt(Jl),null:Lt(Jl),atom:Lt(Jl),unit:Lt(Jl),modifier:Lt(Jl),operatorKeyword:Lt(Jl),controlKeyword:Lt(Jl),definitionKeyword:Lt(Jl),moduleKeyword:Lt(Jl),operator:eu,derefOperator:Lt(eu),arithmeticOperator:Lt(eu),logicOperator:Lt(eu),bitwiseOperator:Lt(eu),compareOperator:Lt(eu),updateOperator:Lt(eu),definitionOperator:Lt(eu),typeOperator:Lt(eu),controlOperator:Lt(eu),punctuation:UR,separator:Lt(UR),bracket:R0,angleBracket:Lt(R0),squareBracket:Lt(R0),paren:Lt(R0),brace:Lt(R0),content:tu,heading:vf,heading1:Lt(vf),heading2:Lt(vf),heading3:Lt(vf),heading4:Lt(vf),heading5:Lt(vf),heading6:Lt(vf),contentSeparator:Lt(tu),list:Lt(tu),quote:Lt(tu),emphasis:Lt(tu),strong:Lt(tu),link:Lt(tu),monospace:Lt(tu),strikethrough:Lt(tu),inserted:Lt(),deleted:Lt(),changed:Lt(),invalid:Lt(),meta:Gv,documentMeta:Lt(Gv),annotation:Lt(Gv),processingInstruction:Lt(Gv),definition:bl.defineModifier(),constant:bl.defineModifier(),function:bl.defineModifier(),standard:bl.defineModifier(),local:bl.defineModifier(),special:bl.defineModifier()};DZ([{tag:he.link,class:"tok-link"},{tag:he.heading,class:"tok-heading"},{tag:he.emphasis,class:"tok-emphasis"},{tag:he.strong,class:"tok-strong"},{tag:he.keyword,class:"tok-keyword"},{tag:he.atom,class:"tok-atom"},{tag:he.bool,class:"tok-bool"},{tag:he.url,class:"tok-url"},{tag:he.labelName,class:"tok-labelName"},{tag:he.inserted,class:"tok-inserted"},{tag:he.deleted,class:"tok-deleted"},{tag:he.literal,class:"tok-literal"},{tag:he.string,class:"tok-string"},{tag:he.number,class:"tok-number"},{tag:[he.regexp,he.escape,he.special(he.string)],class:"tok-string2"},{tag:he.variableName,class:"tok-variableName"},{tag:he.local(he.variableName),class:"tok-variableName tok-local"},{tag:he.definition(he.variableName),class:"tok-variableName tok-definition"},{tag:he.special(he.variableName),class:"tok-variableName2"},{tag:he.definition(he.propertyName),class:"tok-propertyName tok-definition"},{tag:he.typeName,class:"tok-typeName"},{tag:he.namespace,class:"tok-namespace"},{tag:he.className,class:"tok-className"},{tag:he.macroName,class:"tok-macroName"},{tag:he.propertyName,class:"tok-propertyName"},{tag:he.operator,class:"tok-operator"},{tag:he.comment,class:"tok-comment"},{tag:he.meta,class:"tok-meta"},{tag:he.invalid,class:"tok-invalid"},{tag:he.punctuation,class:"tok-punctuation"}]);var yA;const Vf=new vn;function FP(e){return qt.define({combine:e?t=>t.concat(e):void 0})}const BP=new vn;class zs{constructor(t,n,r=[],i=""){this.data=t,this.name=i,qn.prototype.hasOwnProperty("tree")||Object.defineProperty(qn.prototype,"tree",{get(){return Cr(this)}}),this.parser=n,this.extension=[Xd.of(this),qn.languageData.of((o,a,s)=>{let l=ZU(o,a,s),u=l.type.prop(Vf);if(!u)return[];let c=o.facet(u),d=l.type.prop(BP);if(d){let p=l.resolve(a-l.from,s);for(let h of d)if(h.test(p,o)){let m=o.facet(h.facet);return h.type=="replace"?m:m.concat(c)}}return c})].concat(r)}isActiveAt(t,n,r=-1){return ZU(t,n,r).type.prop(Vf)==this.data}findRegions(t){let n=t.facet(Xd);if((n==null?void 0:n.data)==this.data)return[{from:0,to:t.doc.length}];if(!n||!n.allowsNesting)return[];let r=[],i=(o,a)=>{if(o.prop(Vf)==this.data){r.push({from:a,to:a+o.length});return}let s=o.prop(vn.mounted);if(s){if(s.tree.prop(Vf)==this.data){if(s.overlay)for(let l of s.overlay)r.push({from:l.from+a,to:l.to+a});else r.push({from:a,to:a+o.length});return}else if(s.overlay){let l=r.length;if(i(s.tree,s.overlay[0].from+a),r.length>l)return}}for(let l=0;lr.isTop?n:void 0)]}),t.name)}configure(t,n){return new rg(this.data,this.parser.configure(t),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Cr(e){let t=e.field(zs.state,!1);return t?t.tree:cr.empty}class D2e{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 I0=null;class Qy{constructor(t,n,r=[],i,o,a,s,l){this.parser=t,this.state=n,this.fragments=r,this.tree=i,this.treeLen=o,this.viewport=a,this.skipped=s,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(t,n,r){return new Qy(t,n,[],cr.empty,0,r,[],null)}startParse(){return this.parser.startParse(new D2e(this.state.doc),this.fragments)}work(t,n){return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=cr.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(pc.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let n=I0;I0=this;try{return t()}finally{I0=n}}withoutTempSkipped(t){for(let n;n=this.tempSkipped.pop();)t=XU(t,n.from,n.to);return t}changes(t,n){let{fragments:r,tree:i,treeLen:o,viewport:a,skipped:s}=this;if(this.takeTree(),!t.empty){let l=[];if(t.iterChangedRanges((u,c,d,p)=>l.push({fromA:u,toA:c,fromB:d,toB:p})),r=pc.applyChanges(r,l),i=cr.empty,o=0,a={from:t.mapPos(a.from,-1),to:t.mapPos(a.to,1)},this.skipped.length){s=[];for(let u of this.skipped){let c=t.mapPos(u.from,1),d=t.mapPos(u.to,-1);ct.from&&(this.fragments=XU(this.fragments,i,o),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 $P{createParse(n,r,i){let o=i[0].from,a=i[i.length-1].to;return{parsedPos:o,advance(){let l=I0;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=a,new cr($i.none,[],[],a-o)},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 I0}}function XU(e,t,n){return pc.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class ig{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 ig(n)}static init(t){let n=Math.min(3e3,t.doc.length),r=Qy.create(t.facet(Xd).parser,t,{from:0,to:n});return r.work(20,n)||r.takeTree(),new ig(r)}}zs.state=eo.define({create:ig.init,update(e,t){for(let n of t.effects)if(n.is(zs.setState))return n.value;return t.startState.facet(Xd)!=t.state.facet(Xd)?ig.init(t.state):e.apply(t)}});let NZ=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};typeof requestIdleCallback<"u"&&(NZ=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const OA=typeof navigator<"u"&&(!((yA=navigator.scheduling)===null||yA===void 0)&&yA.isInputPending)?()=>navigator.scheduling.isInputPending():null,N2e=Jr.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(zs.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(zs.state);(n.tree!=n.context.tree||!n.context.isDone(t.doc.length))&&(this.working=NZ(this.work))}work(t){this.working=null;let n=Date.now();if(this.chunkEndi+1e3,l=o.context.work(()=>OA&&OA()||Date.now()>a,i+(s?0:1e5));this.chunkBudget-=Date.now()-n,(l||this.chunkBudget<=0)&&(o.context.takeTree(),this.view.dispatch({effects:zs.setState.of(new ig(o.context))})),this.chunkBudget>0&&!(l&&!s)&&this.scheduleWork(),this.checkAsyncSchedule(o.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(()=>this.scheduleWork()).catch(n=>Gs(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()}}}),Xd=qt.define({combine(e){return e.length?e[0]:null},enables:e=>[zs.state,N2e,Ht.contentAttributes.compute([e],t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]});class Yy{constructor(t,n=[]){this.language=t,this.support=n,this.extension=[t,n]}}class TT{constructor(t,n,r,i,o,a=void 0){this.name=t,this.alias=n,this.extensions=r,this.filename=i,this.loadFunc=o,this.support=a,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 TT(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(o=>o==n))return i;if(r)for(let i of t)for(let o of i.alias){let a=n.indexOf(o);if(a>-1&&(o.length>2||!/\w/.test(n[a-1])&&!/\w/.test(n[a+o.length])))return i}return null}}const P2e=qt.define(),aO=qt.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 wT(e){let t=e.facet(aO);return t.charCodeAt(0)==9?e.tabSize*t.length:t.length}function Gy(e,t){let n="",r=e.tabSize,i=e.facet(aO)[0];if(i==" "){for(;t>=r;)n+=" ",t-=r;i=" "}for(let o=0;o=t?L2e(e,n,t):null}class Gk{constructor(t,n={}){this.state=t,this.options=n,this.unit=wT(t)}lineAt(t,n=1){let r=this.state.doc.lineAt(t),{simulateBreak:i,simulateDoubleBreak:o}=this.options;return i!=null&&i>=r.from&&i<=r.to?o&&i==t?{text:"",from:t}:(n<0?i-1&&(o+=a-this.countColumn(r,r.search(/\S|$/))),o}countColumn(t,n=t.length){return Dl(t,this.state.tabSize,n)}lineIndent(t,n=1){let{text:r,from:i}=this.lineAt(t,n),o=this.options.overrideIndentation;if(o){let a=o(i);if(a>-1)return a}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const sO=new vn;function L2e(e,t,n){let r=t.resolveStack(n),i=r.node.enterUnfinishedNodesBefore(n);if(i!=r.node){let o=[];for(let a=i;a!=r.node;a=a.parent)o.push(a);for(let a=o.length-1;a>=0;a--)r={node:o[a],next:r}}return PZ(r,e,n)}function PZ(e,t,n){for(let r=e;r;r=r.next){let i=$2e(r.node);if(i)return i(jP.create(t,n,r))}return 0}function M2e(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}function $2e(e){let t=e.type.prop(sO);if(t)return t;let n=e.firstChild,r;if(n&&(r=n.type.prop(vn.closedBy))){let i=e.lastChild,o=i&&r.indexOf(i.name)>-1;return a=>LZ(a,!0,1,void 0,o&&!M2e(a)?i.from:void 0)}return e.parent==null?F2e:null}function F2e(){return 0}class jP extends Gk{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 jP(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(B2e(r,t))break;n=this.state.doc.lineAt(r.from)}return this.lineIndent(n.from)}continue(){return PZ(this.context.next,this.base,this.pos)}}function B2e(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function U2e(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let i=e.options.simulateBreak,o=e.state.doc.lineAt(n.from),a=i==null||i<=o.from?o.to:Math.min(o.to,i);for(let s=n.to;;){let l=t.childAfter(s);if(!l||l==r)return null;if(!l.type.isSkipped)return l.fromLZ(r,t,n,e)}function LZ(e,t,n,r,i){let o=e.textAfter,a=o.match(/^\s*/)[0].length,s=r&&o.slice(a,a+r.length)==r||i==e.pos+a,l=t?U2e(e):null;return l?s?e.column(l.from):e.column(l.to):e.baseIndent+(s?0:e.unit*n)}const z2e=e=>e.baseIndent;function JE({except:e,units:t=1}={}){return n=>{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}const V2e=200;function H2e(){return qn.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+V2e)return e;let o=n.sliceString(i.from,r);if(!t.some(u=>u.test(o)))return e;let{state:a}=e,s=-1,l=[];for(let{head:u}of a.selection.ranges){let c=a.doc.lineAt(u);if(c.from==s)continue;s=c.from;let d=UP(a,c.from);if(d==null)continue;let p=/^\s*/.exec(c.text)[0],h=Gy(a,d);p!=h&&l.push({from:c.from,to:c.from+p.length,insert:h})}return l.length?[e,{changes:l,sequential:!0}]:e})}const MZ=qt.define(),Dg=new vn;function $Z(e){let t=e.firstChild,n=e.lastChild;return t&&t.ton)continue;if(o&&s.from=t&&u.to>n&&(o=u)}}return o}function Q2e(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}function kT(e,t,n){for(let r of e.facet(MZ)){let i=r(e,t,n);if(i)return i}return W2e(e,t,n)}function FZ(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 qk=xn.define({map:FZ}),lO=xn.define({map:FZ});function BZ(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 wp=eo.define({create(){return ln.none},update(e,t){e=e.map(t.changes);for(let n of t.effects)if(n.is(qk)&&!Y2e(e,n.value.from,n.value.to)){let{preparePlaceholder:r}=t.state.facet(zP),i=r?ln.replace({widget:new e_e(r(t.state,n.value))}):KU;e=e.update({add:[i.range(n.value.from,n.value.to)]})}else n.is(lO)&&(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,o)=>{ir&&(n=!0)}),n&&(e=e.update({filterFrom:r,filterTo:r,filter:(i,o)=>o<=r||i>=r}))}return e},provide:e=>Ht.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>o)&&(i={from:o,to:a})}),i}function Y2e(e,t,n){let r=!1;return e.between(t,t,(i,o)=>{i==t&&o==n&&(r=!0)}),r}function UZ(e,t){return e.field(wp,!1)?t:t.concat(xn.appendConfig.of(zZ()))}const G2e=e=>{for(let t of BZ(e)){let n=kT(e.state,t.from,t.to);if(n)return e.dispatch({effects:UZ(e.state,[qk.of(n),jZ(e,n)])}),!0}return!1},q2e=e=>{if(!e.state.field(wp,!1))return!1;let t=[];for(let n of BZ(e)){let r=xT(e.state,n.from,n.to);r&&t.push(lO.of(r),jZ(e,r,!1))}return t.length&&e.dispatch({effects:t}),t.length>0};function jZ(e,t,n=!0){let r=e.state.doc.lineAt(t.from).number,i=e.state.doc.lineAt(t.to).number;return Ht.announce.of(`${e.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${e.state.phrase("to")} ${i}.`)}const Z2e=e=>{let{state:t}=e,n=[];for(let r=0;r{let t=e.state.field(wp,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,(r,i)=>{n.push(lO.of({from:r,to:i}))}),e.dispatch({effects:n}),!0},K2e=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:G2e},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:q2e},{key:"Ctrl-Alt-[",run:Z2e},{key:"Ctrl-Alt-]",run:X2e}],J2e={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},zP=qt.define({combine(e){return Pu(e,J2e)}});function zZ(e){let t=[wp,r_e];return e&&t.push(zP.of(e)),t}function VZ(e,t){let{state:n}=e,r=n.facet(zP),i=a=>{let s=e.lineBlockAt(e.posAtDOM(a.target)),l=xT(e.state,s.from,s.to);l&&e.dispatch({effects:lO.of(l)}),a.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(e,i,t);let o=document.createElement("span");return o.textContent=r.placeholderText,o.setAttribute("aria-label",n.phrase("folded code")),o.title=n.phrase("unfold"),o.className="cm-foldPlaceholder",o.onclick=i,o}const KU=ln.replace({widget:new class extends Lu{toDOM(e){return VZ(e,null)}}});class e_e extends Lu{constructor(t){super(),this.value=t}eq(t){return this.value==t.value}toDOM(t){return VZ(t,this.value)}}const t_e={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class vA extends kc{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 n_e(e={}){let t=Object.assign(Object.assign({},t_e),e),n=new vA(t,!0),r=new vA(t,!1),i=Jr.fromClass(class{constructor(a){this.from=a.viewport.from,this.markers=this.buildMarkers(a)}update(a){(a.docChanged||a.viewportChanged||a.startState.facet(Xd)!=a.state.facet(Xd)||a.startState.field(wp,!1)!=a.state.field(wp,!1)||Cr(a.startState)!=Cr(a.state)||t.foldingChanged(a))&&(this.markers=this.buildMarkers(a.view))}buildMarkers(a){let s=new Qd;for(let l of a.viewportLineBlocks){let u=xT(a.state,l.from,l.to)?r:kT(a.state,l.from,l.to)?n:null;u&&s.add(l.from,l.from,u)}return s.finish()}}),{domEventHandlers:o}=t;return[i,t2e({class:"cm-foldGutter",markers(a){var s;return((s=a.plugin(i))===null||s===void 0?void 0:s.markers)||Xn.empty},initialSpacer(){return new vA(t,!1)},domEventHandlers:Object.assign(Object.assign({},o),{click:(a,s,l)=>{if(o.click&&o.click(a,s,l))return!0;let u=xT(a.state,s.from,s.to);if(u)return a.dispatch({effects:lO.of(u)}),!0;let c=kT(a.state,s.from,s.to);return c?(a.dispatch({effects:qk.of(c)}),!0):!1}})}),zZ()]}const r_e=Ht.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 uO{constructor(t,n){this.specs=t;let r;function i(s){let l=Yd.newName();return(r||(r=Object.create(null)))["."+l]=s,l}const o=typeof n.all=="string"?n.all:n.all?i(n.all):void 0,a=n.scope;this.scope=a instanceof zs?s=>s.prop(Vf)==a.data:a?s=>s==a:void 0,this.style=DZ(t.map(s=>({tag:s.tag,class:s.class||i(Object.assign({},s,{tag:null}))})),{all:o}).style,this.module=r?new Yd(r):null,this.themeType=n.themeType}static define(t,n){return new uO(t,n||{})}}const jR=qt.define(),HZ=qt.define({combine(e){return e.length?[e[0]]:null}});function EA(e){let t=e.facet(jR);return t.length?t:e.facet(HZ)}function WZ(e,t){let n=[o_e],r;return e instanceof uO&&(e.module&&n.push(Ht.styleModule.of(e.module)),r=e.themeType),t!=null&&t.fallback?n.push(HZ.of(e)):r?n.push(jR.computeN([Ht.darkTheme],i=>i.facet(Ht.darkTheme)==(r=="dark")?[e]:[])):n.push(jR.of(e)),n}class i_e{constructor(t){this.markCache=Object.create(null),this.tree=Cr(t.state),this.decorations=this.buildDeco(t,EA(t.state))}update(t){let n=Cr(t.state),r=EA(t.state),i=r!=EA(t.startState);n.length{r.add(a,s,this.markCache[l]||(this.markCache[l]=ln.mark({class:l})))},i,o);return r.finish()}}const o_e=lf.high(Jr.fromClass(i_e,{decorations:e=>e.decorations})),a_e=uO.define([{tag:he.meta,color:"#404740"},{tag:he.link,textDecoration:"underline"},{tag:he.heading,textDecoration:"underline",fontWeight:"bold"},{tag:he.emphasis,fontStyle:"italic"},{tag:he.strong,fontWeight:"bold"},{tag:he.strikethrough,textDecoration:"line-through"},{tag:he.keyword,color:"#708"},{tag:[he.atom,he.bool,he.url,he.contentSeparator,he.labelName],color:"#219"},{tag:[he.literal,he.inserted],color:"#164"},{tag:[he.string,he.deleted],color:"#a11"},{tag:[he.regexp,he.escape,he.special(he.string)],color:"#e40"},{tag:he.definition(he.variableName),color:"#00f"},{tag:he.local(he.variableName),color:"#30a"},{tag:[he.typeName,he.namespace],color:"#085"},{tag:he.className,color:"#167"},{tag:[he.special(he.variableName),he.macroName],color:"#256"},{tag:he.definition(he.propertyName),color:"#00c"},{tag:he.comment,color:"#940"},{tag:he.invalid,color:"#f00"}]),s_e=Ht.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),QZ=1e4,YZ="()[]{}",GZ=qt.define({combine(e){return Pu(e,{afterCursor:!0,brackets:YZ,maxScanDistance:QZ,renderMatch:c_e})}}),l_e=ln.mark({class:"cm-matchingBracket"}),u_e=ln.mark({class:"cm-nonmatchingBracket"});function c_e(e){let t=[],n=e.matched?l_e:u_e;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 d_e=eo.define({create(){return ln.none},update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],r=t.state.facet(GZ);for(let i of t.state.selection.ranges){if(!i.empty)continue;let o=yu(t.state,i.head,-1,r)||i.head>0&&yu(t.state,i.head-1,1,r)||r.afterCursor&&(yu(t.state,i.head,1,r)||i.headHt.decorations.from(e)}),f_e=[d_e,s_e];function p_e(e={}){return[GZ.of(e),f_e]}const qZ=new vn;function zR(e,t,n){let r=e.prop(t<0?vn.openedBy:vn.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 VR(e){let t=e.type.prop(qZ);return t?t(e.node):e}function yu(e,t,n,r={}){let i=r.maxScanDistance||QZ,o=r.brackets||YZ,a=Cr(e),s=a.resolveInner(t,n);for(let l=s;l;l=l.parent){let u=zR(l.type,n,o);if(u&&l.from0?t>=c.from&&tc.from&&t<=c.to))return h_e(e,t,n,l,c,u,o)}}return m_e(e,t,n,a,s.type,i,o)}function h_e(e,t,n,r,i,o,a){let s=r.parent,l={from:i.from,to:i.to},u=0,c=s==null?void 0:s.cursor();if(c&&(n<0?c.childBefore(r.from):c.childAfter(r.to)))do if(n<0?c.to<=r.from:c.from>=r.to){if(u==0&&o.indexOf(c.type.name)>-1&&c.from0)return null;let u={from:n<0?t-1:t,to:n>0?t+1:t},c=e.doc.iterRange(t,n>0?e.doc.length:0),d=0;for(let p=0;!c.next().done&&p<=o;){let h=c.value;n<0&&(p+=h.length);let m=t+p*n;for(let b=n>0?0:h.length-1,O=n>0?h.length:-1;b!=O;b+=n){let y=a.indexOf(h[b]);if(!(y<0||r.resolveInner(m+b,1).type!=i))if(y%2==0==n>0)d++;else{if(d==1)return{start:u,end:{from:m+b,to:m+b+1},matched:y>>1==l>>1};d--}}n>0&&(p+=h.length)}return c.done?{start:u,matched:!1}:null}const g_e=Object.create(null),JU=[$i.none],e9=[],t9=Object.create(null),b_e=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"]])b_e[e]=y_e(g_e,t);function SA(e,t){e9.indexOf(e)>-1||(e9.push(e),console.warn(t))}function y_e(e,t){let n=[];for(let s of t.split(" ")){let l=[];for(let u of s.split(".")){let c=e[u]||he[u];c?typeof c=="function"?l.length?l=l.map(c):SA(u,`Modifier ${u} used at start of tag`):l.length?SA(u,`Tag ${u} used as modifier`):l=Array.isArray(c)?c:[c]:SA(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(s=>s.id),o=t9[i];if(o)return o.id;let a=t9[i]=$i.define({id:JU.length,name:r,props:[Ig({[r]:n})]});return JU.push(a),a.id}Mr.RTL,Mr.LTR;const O_e=e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=HP(e.state,n.from);return r.line?v_e(e):r.block?S_e(e):!1};function VP(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 v_e=VP(k_e,0),E_e=VP(ZZ,0),S_e=VP((e,t)=>ZZ(e,t,w_e(t)),0);function HP(e,t){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}const D0=50;function T_e(e,{open:t,close:n},r,i){let o=e.sliceDoc(r-D0,r),a=e.sliceDoc(i,i+D0),s=/\s*$/.exec(o)[0].length,l=/^\s*/.exec(a)[0].length,u=o.length-s;if(o.slice(u-t.length,u)==t&&a.slice(l,l+n.length)==n)return{open:{pos:r-s,margin:s&&1},close:{pos:i+l,margin:l&&1}};let c,d;i-r<=2*D0?c=d=e.sliceDoc(r,i):(c=e.sliceDoc(r,r+D0),d=e.sliceDoc(i-D0,i));let p=/^\s*/.exec(c)[0].length,h=/\s*$/.exec(d)[0].length,m=d.length-h-n.length;return c.slice(p,p+t.length)==t&&d.slice(m,m+n.length)==n?{open:{pos:r+p+t.length,margin:/\s/.test(c.charAt(p+t.length))?1:0},close:{pos:i-h-n.length,margin:/\s/.test(d.charAt(m-1))?1:0}}:null}function w_e(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),o=t.length-1;o>=0&&t[o].to>r.from?t[o].to=i.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return t}function ZZ(e,t,n=t.selection.ranges){let r=n.map(o=>HP(t,o.from).block);if(!r.every(o=>o))return null;let i=n.map((o,a)=>T_e(t,r[a],o.from,o.to));if(e!=2&&!i.every(o=>o))return{changes:t.changes(n.map((o,a)=>i[a]?[]:[{from:o.from,insert:r[a].open+" "},{from:o.to,insert:" "+r[a].close}]))};if(e!=1&&i.some(o=>o)){let o=[];for(let a=0,s;ai&&(o==a||a>d.from)){i=d.from;let p=/^\s*/.exec(d.text)[0].length,h=p==d.length,m=d.text.slice(p,p+u.length)==u?p:-1;po.comment<0&&(!o.empty||o.single))){let o=[];for(let{line:s,token:l,indent:u,empty:c,single:d}of r)(d||!c)&&o.push({from:s.from+u,insert:l+" "});let a=t.changes(o);return{changes:a,selection:t.selection.map(a,1)}}else if(e!=1&&r.some(o=>o.comment>=0)){let o=[];for(let{line:a,comment:s,token:l}of r)if(s>=0){let u=a.from+s,c=u+l.length;a.text[c-a.from]==" "&&c++,o.push({from:u,to:c})}return{changes:o}}return null}const HR=Fl.define(),x_e=Fl.define(),C_e=qt.define(),XZ=qt.define({combine(e){return Pu(e,{minDepth:100,newGroupDelay:500,joinToEvent:(t,n)=>n},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(t,n)=>(r,i)=>t(r,i)||n(r,i)})}}),KZ=eo.define({create(){return Ou.empty},update(e,t){let n=t.state.facet(XZ),r=t.annotation(HR);if(r){let l=Ta.fromTransaction(t,r.selection),u=r.side,c=u==0?e.undone:e.done;return l?c=CT(c,c.length,n.minDepth,l):c=tX(c,t.startState.selection),new Ou(u==0?r.rest:c,u==0?c:r.rest)}let i=t.annotation(x_e);if((i=="full"||i=="before")&&(e=e.isolate()),t.annotation(wi.addToHistory)===!1)return t.changes.empty?e:e.addMapping(t.changes.desc);let o=Ta.fromTransaction(t),a=t.annotation(wi.time),s=t.annotation(wi.userEvent);return o?e=e.addChanges(o,a,s,n,t):t.selection&&(e=e.addSelection(t.startState.selection,a,s,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 Ou(e.done.map(Ta.fromJSON),e.undone.map(Ta.fromJSON))}});function A_e(e={}){return[KZ,XZ.of(e),Ht.domEventHandlers({beforeinput(t,n){let r=t.inputType=="historyUndo"?JZ:t.inputType=="historyRedo"?WR:null;return r?(t.preventDefault(),r(n)):!1}})]}function Zk(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let i=n.field(KZ,!1);if(!i)return!1;let o=i.pop(e,n,t);return o?(r(o),!0):!1}}const JZ=Zk(0,!1),WR=Zk(1,!1),__e=Zk(0,!0),R_e=Zk(1,!0);class Ta{constructor(t,n,r,i,o){this.changes=t,this.effects=n,this.mapped=r,this.startSelection=i,this.selectionsAfter=o}setSelAfter(t){return new Ta(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 Ta(t.changes&&Ni.fromJSON(t.changes),[],t.mapped&&Cu.fromJSON(t.mapped),t.startSelection&&tt.fromJSON(t.startSelection),t.selectionsAfter.map(tt.fromJSON))}static fromTransaction(t,n){let r=Vs;for(let i of t.startState.facet(C_e)){let o=i(t);o.length&&(r=r.concat(o))}return!r.length&&t.changes.empty?null:new Ta(t.changes.invert(t.startState.doc),r,void 0,n||t.startState.selection,Vs)}static selection(t){return new Ta(void 0,Vs,void 0,void 0,t)}}function CT(e,t,n,r){let i=t+1>n+20?t-n-1:0,o=e.slice(i,t);return o.push(r),o}function I_e(e,t){let n=[],r=!1;return e.iterChangedRanges((i,o)=>n.push(i,o)),t.iterChangedRanges((i,o,a,s)=>{for(let l=0;l=u&&a<=c&&(r=!0)}}),r}function D_e(e,t){return e.ranges.length==t.ranges.length&&e.ranges.filter((n,r)=>n.empty!=t.ranges[r].empty).length===0}function eX(e,t){return e.length?t.length?e.concat(t):e:t}const Vs=[],N_e=200;function tX(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-N_e));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),CT(e,e.length-1,1e9,n.setSelAfter(r)))}else return[Ta.selection([t])]}function P_e(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 TA(e,t){if(!e.length)return e;let n=e.length,r=Vs;for(;n;){let i=L_e(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let o=e.slice(0,n);return o[n-1]=i,o}else t=i.mapped,n--,r=i.selectionsAfter}return r.length?[Ta.selection(r)]:Vs}function L_e(e,t,n){let r=eX(e.selectionsAfter.length?e.selectionsAfter.map(s=>s.map(t)):Vs,n);if(!e.changes)return Ta.selection(r);let i=e.changes.map(t),o=t.mapDesc(e.changes,!0),a=e.mapped?e.mapped.composeDesc(o):o;return new Ta(i,xn.mapEffects(e.effects,t),a,e.startSelection.map(o),r)}const M_e=/^(input\.type|delete)($|\.)/;class Ou{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 Ou(this.done,this.undone):this}addChanges(t,n,r,i,o){let a=this.done,s=a[a.length-1];return s&&s.changes&&!s.changes.empty&&t.changes&&(!r||M_e.test(r))&&(!s.selectionsAfter.length&&n-this.prevTime0&&n-this.prevTimen.empty?e.moveByChar(n,t):Xk(n,t))}function Uo(e){return e.textDirectionAt(e.state.selection.main.head)==Mr.LTR}const rX=e=>nX(e,!Uo(e)),iX=e=>nX(e,Uo(e));function oX(e,t){return Bl(e,n=>n.empty?e.moveByGroup(n,t):Xk(n,t))}const F_e=e=>oX(e,!Uo(e)),B_e=e=>oX(e,Uo(e));function U_e(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 Kk(e,t,n){let r=Cr(e).resolveInner(t.head),i=n?vn.closedBy:vn.openedBy;for(let l=t.head;;){let u=n?r.childAfter(l):r.childBefore(l);if(!u)break;U_e(e,u,i)?r=u:l=n?u.to:u.from}let o=r.type.prop(i),a,s;return o&&(a=n?yu(e,r.from,1):yu(e,r.to,-1))&&a.matched?s=n?a.end.to:a.end.from:s=n?r.to:r.from,tt.cursor(s,n?-1:1)}const j_e=e=>Bl(e,t=>Kk(e.state,t,!Uo(e))),z_e=e=>Bl(e,t=>Kk(e.state,t,Uo(e)));function aX(e,t){return Bl(e,n=>{if(!n.empty)return Xk(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)})}const sX=e=>aX(e,!1),lX=e=>aX(e,!0);function uX(e){let t=e.scrollDOM.clientHeighta.empty?e.moveVertically(a,t,n.height):Xk(a,t));if(i.eq(r.selection))return!1;let o;if(n.selfScroll){let a=e.coordsAtPos(r.selection.main.head),s=e.scrollDOM.getBoundingClientRect(),l=s.top+n.marginTop,u=s.bottom-n.marginBottom;a&&a.top>l&&a.bottomcX(e,!1),QR=e=>cX(e,!0);function uf(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 o=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;o&&t.head!=r.from+o&&(i=tt.cursor(r.from+o))}return i}const V_e=e=>Bl(e,t=>uf(e,t,!0)),H_e=e=>Bl(e,t=>uf(e,t,!1)),W_e=e=>Bl(e,t=>uf(e,t,!Uo(e))),Q_e=e=>Bl(e,t=>uf(e,t,Uo(e))),Y_e=e=>Bl(e,t=>tt.cursor(e.lineBlockAt(t.head).from,1)),G_e=e=>Bl(e,t=>tt.cursor(e.lineBlockAt(t.head).to,-1));function q_e(e,t,n){let r=!1,i=Ng(e.selection,o=>{let a=yu(e,o.head,-1)||yu(e,o.head,1)||o.head>0&&yu(e,o.head-1,1)||o.headq_e(e,t,!1);function il(e,t){let n=Ng(e.state.selection,r=>{let i=t(r);return tt.range(r.anchor,i.head,i.goalColumn,i.bidiLevel||void 0)});return n.eq(e.state.selection)?!1:(e.dispatch(Mu(e.state,n)),!0)}function dX(e,t){return il(e,n=>e.moveByChar(n,t))}const fX=e=>dX(e,!Uo(e)),pX=e=>dX(e,Uo(e));function hX(e,t){return il(e,n=>e.moveByGroup(n,t))}const X_e=e=>hX(e,!Uo(e)),K_e=e=>hX(e,Uo(e)),J_e=e=>il(e,t=>Kk(e.state,t,!Uo(e))),eRe=e=>il(e,t=>Kk(e.state,t,Uo(e)));function mX(e,t){return il(e,n=>e.moveVertically(n,t))}const gX=e=>mX(e,!1),bX=e=>mX(e,!0);function yX(e,t){return il(e,n=>e.moveVertically(n,t,uX(e).height))}const r9=e=>yX(e,!1),i9=e=>yX(e,!0),tRe=e=>il(e,t=>uf(e,t,!0)),nRe=e=>il(e,t=>uf(e,t,!1)),rRe=e=>il(e,t=>uf(e,t,!Uo(e))),iRe=e=>il(e,t=>uf(e,t,Uo(e))),oRe=e=>il(e,t=>tt.cursor(e.lineBlockAt(t.head).from)),aRe=e=>il(e,t=>tt.cursor(e.lineBlockAt(t.head).to)),o9=({state:e,dispatch:t})=>(t(Mu(e,{anchor:0})),!0),a9=({state:e,dispatch:t})=>(t(Mu(e,{anchor:e.doc.length})),!0),s9=({state:e,dispatch:t})=>(t(Mu(e,{anchor:e.selection.main.anchor,head:0})),!0),l9=({state:e,dispatch:t})=>(t(Mu(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0),sRe=({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0),lRe=({state:e,dispatch:t})=>{let n=Jk(e).map(({from:r,to:i})=>tt.range(r,Math.min(i+1,e.doc.length)));return t(e.update({selection:tt.create(n),userEvent:"select"})),!0},uRe=({state:e,dispatch:t})=>{let n=Ng(e.selection,r=>{var i;let o=Cr(e).resolveStack(r.from,1);for(let a=o;a;a=a.next){let{node:s}=a;if((s.from=r.to||s.to>r.to&&s.from<=r.from)&&(!((i=s.parent)===null||i===void 0)&&i.parent))return tt.range(s.to,s.from)}return r});return t(Mu(e,n)),!0},cRe=({state:e,dispatch:t})=>{let n=e.selection,r=null;return n.ranges.length>1?r=tt.create([n.main]):n.main.empty||(r=tt.create([tt.cursor(n.main.head)])),r?(t(Mu(e,r)),!0):!1};function cO(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:r}=e,i=r.changeByRange(o=>{let{from:a,to:s}=o;if(a==s){let l=t(o);la&&(n="delete.forward",l=qv(e,l,!0)),a=Math.min(a,l),s=Math.max(s,l)}else a=qv(e,a,!1),s=qv(e,s,!0);return a==s?{range:o}:{changes:{from:a,to:s},range:tt.cursor(a,ai(e)))r.between(t,t,(i,o)=>{it&&(t=n?o:i)});return t}const OX=(e,t)=>cO(e,n=>{let r=n.from,{state:i}=e,o=i.doc.lineAt(r),a,s;if(!t&&r>o.from&&rOX(e,!1),vX=e=>OX(e,!0),EX=(e,t)=>cO(e,n=>{let r=n.head,{state:i}=e,o=i.doc.lineAt(r),a=i.charCategorizer(r);for(let s=null;;){if(r==(t?o.to:o.from)){r==n.head&&o.number!=(t?i.doc.lines:1)&&(r+=t?1:-1);break}let l=go(o.text,r-o.from,t)+o.from,u=o.text.slice(Math.min(r,l)-o.from,Math.max(r,l)-o.from),c=a(u);if(s!=null&&c!=s)break;(u!=" "||r!=n.head)&&(s=c),r=l}return r}),SX=e=>EX(e,!1),dRe=e=>EX(e,!0),fRe=e=>cO(e,t=>{let n=e.lineBlockAt(t.head).to;return t.headcO(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}),hRe=e=>cO(e,t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head{if(e.readOnly)return!1;let n=e.changeByRange(r=>({changes:{from:r.from,to:r.to,insert:rr.of(["",""])},range:tt.cursor(r.from)}));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0},gRe=({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,o=e.doc.lineAt(i),a=i==o.from?i-1:go(o.text,i-o.from,!1)+o.from,s=i==o.to?i+1:go(o.text,i-o.from,!0)+o.from;return{changes:{from:a,to:s,insert:e.doc.slice(i,s).append(e.doc.slice(a,i))},range:tt.cursor(s)}});return n.changes.empty?!1:(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function Jk(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),o=e.doc.lineAt(r.to);if(!r.empty&&r.to==o.from&&(o=e.doc.lineAt(r.to-1)),n>=i.number){let a=t[t.length-1];a.to=o.to,a.ranges.push(r)}else t.push({from:i.from,to:o.to,ranges:[r]});n=o.number+1}return t}function TX(e,t,n){if(e.readOnly)return!1;let r=[],i=[];for(let o of Jk(e)){if(n?o.to==e.doc.length:o.from==0)continue;let a=e.doc.lineAt(n?o.to+1:o.from-1),s=a.length+1;if(n){r.push({from:o.to,to:a.to},{from:o.from,insert:a.text+e.lineBreak});for(let l of o.ranges)i.push(tt.range(Math.min(e.doc.length,l.anchor+s),Math.min(e.doc.length,l.head+s)))}else{r.push({from:a.from,to:o.from},{from:o.to,insert:e.lineBreak+a.text});for(let l of o.ranges)i.push(tt.range(l.anchor-s,l.head-s))}}return r.length?(t(e.update({changes:r,scrollIntoView:!0,selection:tt.create(i,e.selection.mainIndex),userEvent:"move.line"})),!0):!1}const bRe=({state:e,dispatch:t})=>TX(e,t,!1),yRe=({state:e,dispatch:t})=>TX(e,t,!0);function wX(e,t,n){if(e.readOnly)return!1;let r=[];for(let i of Jk(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 ORe=({state:e,dispatch:t})=>wX(e,t,!1),vRe=({state:e,dispatch:t})=>wX(e,t,!0),ERe=e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(Jk(t).map(({from:i,to:o})=>(i>0?i--:oe.moveVertically(i,!0)).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0};function SRe(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n=Cr(e).resolveInner(t),r=n.childBefore(t),i=n.childAfter(t),o;return r&&i&&r.to<=t&&i.from>=t&&(o=r.type.prop(vn.closedBy))&&o.indexOf(i.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(i.from).from&&!/\S/.test(e.sliceDoc(r.to,i.from))?{from:r.to,to:i.from}:null}const TRe=kX(!1),wRe=kX(!0);function kX(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=t.changeByRange(i=>{let{from:o,to:a}=i,s=t.doc.lineAt(o),l=!e&&o==a&&SRe(t,o);e&&(o=a=(a<=s.to?s:t.doc.lineAt(a)).to);let u=new Gk(t,{simulateBreak:o,simulateDoubleBreak:!!l}),c=UP(u,o);for(c==null&&(c=Dl(/^\s*/.exec(t.doc.lineAt(o).text)[0],t.tabSize));as.from&&o{let i=[];for(let a=r.from;a<=r.to;){let s=e.doc.lineAt(a);s.number>n&&(r.empty||r.to>s.from)&&(t(s,i,r),n=s.number),a=s.to+1}let o=e.changes(i);return{changes:i,range:tt.range(o.mapPos(r.anchor,1),o.mapPos(r.head,1))}})}const kRe=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new Gk(e,{overrideIndentation:o=>{let a=n[o];return a??-1}}),i=WP(e,(o,a,s)=>{let l=UP(r,o.from);if(l==null)return;/\S/.test(o.text)||(l=0);let u=/^\s*/.exec(o.text)[0],c=Gy(e,l);(u!=c||s.frome.readOnly?!1:(t(e.update(WP(e,(n,r)=>{r.push({from:n.from,insert:e.facet(aO)})}),{userEvent:"input.indent"})),!0),CX=({state:e,dispatch:t})=>e.readOnly?!1:(t(e.update(WP(e,(n,r)=>{let i=/^\s*/.exec(n.text)[0];if(!i)return;let o=Dl(i,e.tabSize),a=0,s=Gy(e,Math.max(0,o-wT(e)));for(;a({mac:e.key,run:e.run,shift:e.shift}))),ARe=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:j_e,shift:J_e},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:z_e,shift:eRe},{key:"Alt-ArrowUp",run:bRe},{key:"Shift-Alt-ArrowUp",run:ORe},{key:"Alt-ArrowDown",run:yRe},{key:"Shift-Alt-ArrowDown",run:vRe},{key:"Escape",run:cRe},{key:"Mod-Enter",run:wRe},{key:"Alt-l",mac:"Ctrl-l",run:lRe},{key:"Mod-i",run:uRe,preventDefault:!0},{key:"Mod-[",run:CX},{key:"Mod-]",run:xX},{key:"Mod-Alt-\\",run:kRe},{key:"Shift-Mod-k",run:ERe},{key:"Shift-Mod-\\",run:Z_e},{key:"Mod-/",run:O_e},{key:"Alt-A",run:E_e}].concat(CRe),_Re={key:"Tab",run:xX,shift:CX};function wr(){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 og{constructor(t,n,r=0,i=t.length,o,a){this.test=a,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=o?s=>o(u9(s)):u9,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 fo(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=EP(t),r=this.bufferStart+this.bufferPos;this.bufferPos+=Bs(t);let i=this.normalize(n);for(let o=0,a=r;;o++){let s=i.charCodeAt(o),l=this.match(s,a);if(o==i.length-1){if(l)return this.value=l,this;break}a==r&&othis.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=AT(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 s=new hm(n,t.sliceString(n,r));return wA.set(t,s),s}if(i.from==n&&i.to==r)return i;let{text:o,from:a}=i;return a>n&&(o=t.sliceString(n,a)+o,a=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=AT(this.text,i+(r==i?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=hm.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(RX.prototype[Symbol.iterator]=IX.prototype[Symbol.iterator]=function(){return this});function RRe(e){try{return new RegExp(e,QP),!0}catch{return!1}}function AT(e,t){if(t>=e.length)return t;let n=e.lineAt(t),r;for(;t=56320&&r<57344;)t++;return t}function GR(e){let t=String(e.state.doc.lineAt(e.state.selection.main.head).number),n=wr("input",{class:"cm-textfield",name:"line",value:t}),r=wr("form",{class:"cm-gotoLine",onkeydown:o=>{o.keyCode==27?(o.preventDefault(),e.dispatch({effects:_T.of(!1)}),e.focus()):o.keyCode==13&&(o.preventDefault(),i())},onsubmit:o=>{o.preventDefault(),i()}},wr("label",e.state.phrase("Go to line"),": ",n)," ",wr("button",{class:"cm-button",type:"submit"},e.state.phrase("go")));function i(){let o=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(!o)return;let{state:a}=e,s=a.doc.lineAt(a.selection.main.head),[,l,u,c,d]=o,p=c?+c.slice(1):0,h=u?+u:s.number;if(u&&d){let O=h/100;l&&(O=O*(l=="-"?-1:1)+s.number/a.doc.lines),h=Math.round(a.doc.lines*O)}else u&&l&&(h=h*(l=="-"?-1:1)+s.number);let m=a.doc.line(Math.max(1,Math.min(a.doc.lines,h))),b=tt.cursor(m.from+Math.max(0,Math.min(p,m.length)));e.dispatch({effects:[_T.of(!1),Ht.scrollIntoView(b.from,{y:"center"})],selection:b}),e.focus()}return{dom:r}}const _T=xn.define(),c9=eo.define({create(){return!0},update(e,t){for(let n of t.effects)n.is(_T)&&(e=n.value);return e},provide:e=>Vy.from(e,t=>t?GR:null)}),IRe=e=>{let t=zy(e,GR);if(!t){let n=[_T.of(!0)];e.state.field(c9,!1)==null&&n.push(xn.appendConfig.of([c9,DRe])),e.dispatch({effects:n}),t=zy(e,GR)}return t&&t.dom.querySelector("input").select(),!0},DRe=Ht.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),NRe={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},DX=qt.define({combine(e){return Pu(e,NRe,{highlightWordAroundCursor:(t,n)=>t||n,minSelectionLength:Math.min,maxMatches:Math.min})}});function PRe(e){let t=[BRe,FRe];return e&&t.push(DX.of(e)),t}const LRe=ln.mark({class:"cm-selectionMatch"}),MRe=ln.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function d9(e,t,n,r){return(n==0||e(t.sliceDoc(n-1,n))!=Qr.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=Qr.Word)}function $Re(e,t,n,r){return e(t.sliceDoc(n,n+1))==Qr.Word&&e(t.sliceDoc(r-1,r))==Qr.Word}const FRe=Jr.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(DX),{state:n}=e,r=n.selection;if(r.ranges.length>1)return ln.none;let i=r.main,o,a=null;if(i.empty){if(!t.highlightWordAroundCursor)return ln.none;let l=n.wordAt(i.head);if(!l)return ln.none;a=n.charCategorizer(i.head),o=n.sliceDoc(l.from,l.to)}else{let l=i.to-i.from;if(l200)return ln.none;if(t.wholeWords){if(o=n.sliceDoc(i.from,i.to),a=n.charCategorizer(i.head),!(d9(a,n,i.from,i.to)&&$Re(a,n,i.from,i.to)))return ln.none}else if(o=n.sliceDoc(i.from,i.to).trim(),!o)return ln.none}let s=[];for(let l of e.visibleRanges){let u=new og(n.doc,o,l.from,l.to);for(;!u.next().done;){let{from:c,to:d}=u.value;if((!a||d9(a,n,c,d))&&(i.empty&&c<=i.from&&d>=i.to?s.push(MRe.range(c,d)):(c>=i.to||d<=i.from)&&s.push(LRe.range(c,d)),s.length>t.maxMatches))return ln.none}}return ln.set(s)}},{decorations:e=>e.decorations}),BRe=Ht.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),URe=({state:e,dispatch:t})=>{let{selection:n}=e,r=tt.create(n.ranges.map(i=>e.wordAt(i.head)||tt.cursor(i.head)),n.mainIndex);return r.eq(n)?!1:(t(e.update({selection:r})),!0)};function jRe(e,t){let{main:n,ranges:r}=e.selection,i=e.wordAt(n.head),o=i&&i.from==n.from&&i.to==n.to;for(let a=!1,s=new og(e.doc,t,r[r.length-1].to);;)if(s.next(),s.done){if(a)return null;s=new og(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),a=!0}else{if(a&&r.some(l=>l.from==s.value.from))continue;if(o){let l=e.wordAt(s.value.from);if(!l||l.from!=s.value.from||l.to!=s.value.to)continue}return s.value}}const zRe=({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some(o=>o.from===o.to))return URe({state:e,dispatch:t});let r=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some(o=>e.sliceDoc(o.from,o.to)!=r))return!1;let i=jRe(e,r);return i?(t(e.update({selection:e.selection.addRange(tt.range(i.from,i.to),!1),effects:Ht.scrollIntoView(i.to)})),!0):!1},Pg=qt.define({combine(e){return Pu(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:t=>new eIe(t),scrollToMatch:t=>Ht.scrollIntoView(t)})}});class NX{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||RRe(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 QRe(this):new HRe(this)}getCursor(t,n=0,r){let i=t.doc?t:qn.create({doc:t});return r==null&&(r=i.doc.length),this.regexp?kh(this,i,n,r):wh(this,i,n,r)}}class PX{constructor(t){this.spec=t}}function wh(e,t,n,r){return new og(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:i=>i.toLowerCase(),e.wholeWord?VRe(t.doc,t.charCategorizer(t.selection.main.head)):void 0)}function VRe(e,t){return(n,r,i,o)=>((o>n||o+i.length=n)return null;i.push(r.value)}return i}highlight(t,n,r,i){let o=wh(this.spec,t,Math.max(0,n-this.spec.unquoted.length),Math.min(r+this.spec.unquoted.length,t.doc.length));for(;!o.next().done;)i(o.value.from,o.value.to)}}function kh(e,t,n,r){return new RX(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?WRe(t.charCategorizer(t.selection.main.head)):void 0},n,r)}function RT(e,t){return e.slice(go(e,t,!1),t)}function IT(e,t){return e.slice(t,go(e,t))}function WRe(e){return(t,n,r)=>!r[0].length||(e(RT(r.input,r.index))!=Qr.Word||e(IT(r.input,r.index))!=Qr.Word)&&(e(IT(r.input,r.index+r[0].length))!=Qr.Word||e(RT(r.input,r.index+r[0].length))!=Qr.Word)}class QRe extends PX{nextMatch(t,n,r){let i=kh(this.spec,t,r,t.doc.length).next();return i.done&&(i=kh(this.spec,t,0,n).next()),i.done?null:i.value}prevMatchInRange(t,n,r){for(let i=1;;i++){let o=Math.max(n,r-i*1e4),a=kh(this.spec,t,o,r),s=null;for(;!a.next().done;)s=a.value;if(s&&(o==n||s.from>o+10))return s;if(o==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 o=kh(this.spec,t,Math.max(0,n-250),Math.min(r+250,t.doc.length));for(;!o.next().done;)i(o.value.from,o.value.to)}}const qy=xn.define(),YP=xn.define(),Nd=eo.define({create(e){return new kA(qR(e).create(),null)},update(e,t){for(let n of t.effects)n.is(qy)?e=new kA(n.value.create(),e.panel):n.is(YP)&&(e=new kA(e.query,n.value?GP:null));return e},provide:e=>Vy.from(e,t=>t.panel)});class kA{constructor(t,n){this.query=t,this.panel=n}}const YRe=ln.mark({class:"cm-searchMatch"}),GRe=ln.mark({class:"cm-searchMatch cm-searchMatch-selected"}),qRe=Jr.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(Nd))}update(e){let t=e.state.field(Nd);(t!=e.startState.field(Nd)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return ln.none;let{view:n}=this,r=new Qd;for(let i=0,o=n.visibleRanges,a=o.length;io[i+1].from-2*250;)l=o[++i].to;e.highlight(n.state,s,l,(u,c)=>{let d=n.state.selection.ranges.some(p=>p.from==u&&p.to==c);r.add(u,c,d?GRe:YRe)})}return r.finish()}},{decorations:e=>e.decorations});function dO(e){return t=>{let n=t.state.field(Nd,!1);return n&&n.query.spec.valid?e(t,n):$X(t)}}const DT=dO((e,{query:t})=>{let{to:n}=e.state.selection.main,r=t.nextMatch(e.state,n,n);if(!r)return!1;let i=tt.single(r.from,r.to),o=e.state.facet(Pg);return e.dispatch({selection:i,effects:[qP(e,r),o.scrollToMatch(i.main,e)],userEvent:"select.search"}),MX(e),!0}),NT=dO((e,{query:t})=>{let{state:n}=e,{from:r}=n.selection.main,i=t.prevMatch(n,r,r);if(!i)return!1;let o=tt.single(i.from,i.to),a=e.state.facet(Pg);return e.dispatch({selection:o,effects:[qP(e,i),a.scrollToMatch(o.main,e)],userEvent:"select.search"}),MX(e),!0}),ZRe=dO((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!n||!n.length?!1:(e.dispatch({selection:tt.create(n.map(r=>tt.range(r.from,r.to))),userEvent:"select.search.matches"}),!0)}),XRe=({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,o=[],a=0;for(let s=new og(e.doc,e.sliceDoc(r,i));!s.next().done;){if(o.length>1e3)return!1;s.value.from==r&&(a=o.length),o.push(tt.range(s.value.from,s.value.to))}return t(e.update({selection:tt.create(o,a),userEvent:"select.search.matches"})),!0},f9=dO((e,{query:t})=>{let{state:n}=e,{from:r,to:i}=n.selection.main;if(n.readOnly)return!1;let o=t.nextMatch(n,r,r);if(!o)return!1;let a=[],s,l,u=[];if(o.from==r&&o.to==i&&(l=n.toText(t.getReplacement(o)),a.push({from:o.from,to:o.to,insert:l}),o=t.nextMatch(n,o.from,o.to),u.push(Ht.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(r).number)+"."))),o){let c=a.length==0||a[0].from>=o.to?0:o.to-o.from-l.length;s=tt.single(o.from-c,o.to-c),u.push(qP(e,o)),u.push(n.facet(Pg).scrollToMatch(s.main,e))}return e.dispatch({changes:a,selection:s,effects:u,userEvent:"input.replace"}),!0}),KRe=dO((e,{query:t})=>{if(e.state.readOnly)return!1;let n=t.matchAll(e.state,1e9).map(i=>{let{from:o,to:a}=i;return{from:o,to:a,insert:t.getReplacement(i)}});if(!n.length)return!1;let r=e.state.phrase("replaced $ matches",n.length)+".";return e.dispatch({changes:n,effects:Ht.announce.of(r),userEvent:"input.replace.all"}),!0});function GP(e){return e.state.facet(Pg).createPanel(e)}function qR(e,t){var n,r,i,o,a;let s=e.selection.main,l=s.empty||s.to>s.from+100?"":e.sliceDoc(s.from,s.to);if(t&&!l)return t;let u=e.facet(Pg);return new NX({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:(o=t==null?void 0:t.regexp)!==null&&o!==void 0?o:u.regexp,wholeWord:(a=t==null?void 0:t.wholeWord)!==null&&a!==void 0?a:u.wholeWord})}function LX(e){let t=zy(e,GP);return t&&t.dom.querySelector("[main-field]")}function MX(e){let t=LX(e);t&&t==e.root.activeElement&&t.select()}const $X=e=>{let t=e.state.field(Nd,!1);if(t&&t.panel){let n=LX(e);if(n&&n!=e.root.activeElement){let r=qR(e.state,t.query.spec);r.valid&&e.dispatch({effects:qy.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[YP.of(!0),t?qy.of(qR(e.state,t.query.spec)):xn.appendConfig.of(nIe)]});return!0},FX=e=>{let t=e.state.field(Nd,!1);if(!t||!t.panel)return!1;let n=zy(e,GP);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:YP.of(!1)}),!0},JRe=[{key:"Mod-f",run:$X,scope:"editor search-panel"},{key:"F3",run:DT,shift:NT,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:DT,shift:NT,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:FX,scope:"editor search-panel"},{key:"Mod-Shift-l",run:XRe},{key:"Mod-Alt-g",run:IRe},{key:"Mod-d",run:zRe,preventDefault:!0}];class eIe{constructor(t){this.view=t;let n=this.query=t.state.field(Nd).query.spec;this.commit=this.commit.bind(this),this.searchField=wr("input",{value:n.search,placeholder:Ha(t,"Find"),"aria-label":Ha(t,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=wr("input",{value:n.replace,placeholder:Ha(t,"Replace"),"aria-label":Ha(t,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=wr("input",{type:"checkbox",name:"case",form:"",checked:n.caseSensitive,onchange:this.commit}),this.reField=wr("input",{type:"checkbox",name:"re",form:"",checked:n.regexp,onchange:this.commit}),this.wordField=wr("input",{type:"checkbox",name:"word",form:"",checked:n.wholeWord,onchange:this.commit});function r(i,o,a){return wr("button",{class:"cm-button",name:i,onclick:o,type:"button"},a)}this.dom=wr("div",{onkeydown:i=>this.keydown(i),class:"cm-search"},[this.searchField,r("next",()=>DT(t),[Ha(t,"next")]),r("prev",()=>NT(t),[Ha(t,"previous")]),r("select",()=>ZRe(t),[Ha(t,"all")]),wr("label",null,[this.caseField,Ha(t,"match case")]),wr("label",null,[this.reField,Ha(t,"regexp")]),wr("label",null,[this.wordField,Ha(t,"by word")]),...t.state.readOnly?[]:[wr("br"),this.replaceField,r("replace",()=>f9(t),[Ha(t,"replace")]),r("replaceAll",()=>KRe(t),[Ha(t,"replace all")])],wr("button",{name:"close",onclick:()=>FX(t),"aria-label":Ha(t,"close"),type:"button"},["×"])])}commit(){let t=new NX({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:qy.of(t)}))}keydown(t){fAe(this.view,t,"search-panel")?t.preventDefault():t.keyCode==13&&t.target==this.searchField?(t.preventDefault(),(t.shiftKey?NT:DT)(this.view)):t.keyCode==13&&t.target==this.replaceField&&(t.preventDefault(),f9(this.view))}update(t){for(let n of t.transactions)for(let r of n.effects)r.is(qy)&&!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(Pg).top}}function Ha(e,t){return e.state.phrase(t)}const Zv=30,Xv=/[\s\.,:;?!]/;function qP(e,{from:t,to:n}){let r=e.state.doc.lineAt(t),i=e.state.doc.lineAt(n).to,o=Math.max(r.from,t-Zv),a=Math.min(i,n+Zv),s=e.state.sliceDoc(o,a);if(o!=r.from){for(let l=0;ls.length-Zv;l--)if(!Xv.test(s[l-1])&&Xv.test(s[l])){s=s.slice(0,l);break}}return Ht.announce.of(`${e.state.phrase("current match")}. ${s} ${e.state.phrase("on line")} ${r.number}.`)}const tIe=Ht.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"}}),nIe=[Nd,lf.low(qRe),tIe];class ZP{constructor(t,n,r){this.state=t,this.pos=n,this.explicit=r,this.abortListeners=[]}tokenBefore(t){let n=Cr(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),o=i.search(UX(t,!1));return o<0?null:{from:r+o,to:this.pos,text:i.slice(o)}}get aborted(){return this.abortListeners==null}addEventListener(t,n){t=="abort"&&this.abortListeners&&this.abortListeners.push(n)}}function p9(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 rIe(e){let t=Object.create(null),n=Object.create(null);for(let{label:i}of e){t[i[0]]=!0;for(let o=1;otypeof i=="string"?{label:i}:i),[n,r]=t.every(i=>/^\w+$/.test(i.label))?[/\w*$/,/\w+$/]:rIe(t);return i=>{let o=i.matchBefore(r);return o||i.explicit?{from:o?o.from:i.pos,options:t,validFor:n}:null}}function iIe(e,t){return n=>{for(let r=Cr(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 h9{constructor(t,n,r,i){this.completion=t,this.source=n,this.match=r,this.score=i}}function Pd(e){return e.selection.main.from}function UX(e,t){var n;let{source:r}=e,i=t&&r[0]!="^",o=r[r.length-1]!="$";return!i&&!o?e:new RegExp(`${i?"^":""}(?:${r})${o?"$":""}`,(n=e.flags)!==null&&n!==void 0?n:e.ignoreCase?"i":"")}const jX=Fl.define();function oIe(e,t,n,r){let{main:i}=e.selection,o=n-i.from,a=r-i.from;return Object.assign(Object.assign({},e.changeByRange(s=>s!=i&&n!=r&&e.sliceDoc(s.from+o,s.from+a)!=e.sliceDoc(n,r)?{range:s}:{changes:{from:s.from+o,to:r==i.from?s.to:s.from+a,insert:t},range:tt.cursor(s.from+o+t.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const m9=new WeakMap;function aIe(e){if(!Array.isArray(e))return e;let t=m9.get(e);return t||m9.set(e,t=BX(e)),t}const PT=xn.define(),Zy=xn.define();class sIe{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:(w=EP(C))!=w.toLowerCase()?1:w!=w.toUpperCase()?2:0;(!v||E==1&&O||k==0&&E!=0)&&(n[d]==C||r[d]==C&&(p=!0)?a[d++]=v:a.length&&(y=!1)),k=E,v+=Bs(C)}return d==l&&a[0]==0&&y?this.result(-100+(p?-200:0),a,t):h==l&&m==0?this.ret(-200-t.length+(b==t.length?0:-100),[0,b]):s>-1?this.ret(-700-t.length,[s,s+this.pattern.length]):h==l?this.ret(-900-t.length,[m,b]):d==l?this.result(-100+(p?-200:0)+-700+(y?0:-1100),a,t):n.length==2?!1:this.result((i[0]?-700:0)+-200+-1100,i,t)}result(t,n,r){let i=[],o=0;for(let a of n){let s=a+(this.astral?Bs(fo(r,a)):1);o&&i[o-1]==a?i[o-1]=s:(i[o++]=a,i[o++]=s)}return this.ret(t-r.length,i)}}const mo=qt.define({combine(e){return Pu(e,{activateOnTyping:!0,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:lIe,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=>g9(t(r),n(r)),optionClass:(t,n)=>r=>g9(t(r),n(r)),addToOptions:(t,n)=>t.concat(n)})}});function g9(e,t){return e?t?e+" "+t:e:t}function lIe(e,t,n,r,i,o){let a=e.textDirection==Mr.RTL,s=a,l=!1,u="top",c,d,p=t.left-i.left,h=i.right-t.right,m=r.right-r.left,b=r.bottom-r.top;if(s&&p=b||v>t.top?c=n.bottom-t.top:(u="bottom",c=t.bottom-n.top)}let O=(t.bottom-t.top)/o.offsetHeight,y=(t.right-t.left)/o.offsetWidth;return{style:`${u}: ${c/O}px; max-width: ${d/y}px`,class:"cm-completionInfo-"+(l?a?"left-narrow":"right-narrow":s?"left":"right")}}function uIe(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,o){let a=document.createElement("span");a.className="cm-completionLabel";let s=n.displayLabel||n.label,l=0;for(let u=0;ul&&a.appendChild(document.createTextNode(s.slice(l,c)));let p=a.appendChild(document.createElement("span"));p.appendChild(document.createTextNode(s.slice(c,d))),p.className="cm-completionMatchedText",l=d}return ln.position-r.position).map(n=>n.render)}function xA(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 cIe{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:o,selected:a}=i.open,s=t.state.facet(mo);this.optionContent=uIe(s),this.optionClass=s.optionClass,this.tooltipClass=s.tooltipClass,this.range=xA(o.length,a,s.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 c=l.target,d;c&&c!=this.dom;c=c.parentNode)if(c.nodeName=="LI"&&(d=/-(\d+)$/.exec(c.id))&&+d[1]{let u=t.state.field(this.stateField,!1);u&&u.tooltip&&t.state.facet(mo).closeOnBlur&&l.relatedTarget!=t.contentDOM&&t.dispatch({effects:Zy.of(null)})}),this.showOptions(o,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:o,selected:a,disabled:s}=r.open;(!i.open||i.open.options!=o)&&(this.range=xA(o.length,a,t.state.facet(mo).maxRenderedOptions),this.showOptions(o,r.id)),this.updateSel(),s!=((n=i.open)===null||n===void 0?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!s)}}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=xA(n.options.length,n.selected,this.view.state.facet(mo).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 o=typeof i=="string"?document.createTextNode(i):i(r);if(!o)return;"then"in o?o.then(a=>{a&&this.view.state.field(this.stateField,!1)==t&&this.addInfoPane(a,r)}).catch(a=>Gs(this.view.state,a,"completion info")):this.addInfoPane(o,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:o}=t;r.appendChild(i),this.infoDestroy=o||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&&fIe(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(),o=this.space;if(!o){let a=this.dom.ownerDocument.defaultView||window;o={left:0,top:0,right:a.innerWidth,bottom:a.innerHeight}}return i.top>Math.min(o.bottom,n.bottom)-10||i.bottomr.from||r.from==0))if(o=p,typeof u!="string"&&u.header)i.appendChild(u.header(u));else{let h=i.appendChild(document.createElement("completion-section"));h.textContent=p}}const c=i.appendChild(document.createElement("li"));c.id=n+"-"+a,c.setAttribute("role","option");let d=this.optionClass(s);d&&(c.className=d);for(let p of this.optionContent){let h=p(s,this.view.state,this.view,l);h&&c.appendChild(h)}}return r.from&&i.classList.add("cm-completionListIncompleteTop"),r.tonew cIe(n,e,t)}function fIe(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 b9(e){return(e.boost||0)*100+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}function pIe(e,t){let n=[],r=null,i=l=>{n.push(l);let{section:u}=l.completion;if(u){r||(r=[]);let c=typeof u=="string"?u:u.name;r.some(d=>d.name==c)||r.push(typeof u=="string"?{name:c}:u)}};for(let l of e)if(l.hasResult()){let u=l.result.getMatch;if(l.result.filter===!1)for(let c of l.result.options)i(new h9(c,l.source,u?u(c):[],1e9-n.length));else{let c=new sIe(t.sliceDoc(l.from,l.to));for(let d of l.result.options)if(c.match(d.label)){let p=d.displayLabel?u?u(d,c.matched):[]:c.matched;i(new h9(d,l.source,p,c.score+(d.boost||0)))}}}if(r){let l=Object.create(null),u=0,c=(d,p)=>{var h,m;return((h=d.rank)!==null&&h!==void 0?h:1e9)-((m=p.rank)!==null&&m!==void 0?m:1e9)||(d.namec.score-u.score||s(u.completion,c.completion))){let u=l.completion;!a||a.label!=u.label||a.detail!=u.detail||a.type!=null&&u.type!=null&&a.type!=u.type||a.apply!=u.apply||a.boost!=u.boost?o.push(l):b9(l.completion)>b9(a)&&(o[o.length-1]=l),a=l.completion}return o}class qh{constructor(t,n,r,i,o,a){this.options=t,this.attrs=n,this.tooltip=r,this.timestamp=i,this.selected=o,this.disabled=a}setSelected(t,n){return t==this.selected||t>=this.options.length?this:new qh(this.options,y9(n,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,n,r,i,o){let a=pIe(t,n);if(!a.length)return i&&t.some(l=>l.state==1)?new qh(i.options,i.attrs,i.tooltip,i.timestamp,i.selected,!0):null;let s=n.facet(mo).selectOnOpen?0:-1;if(i&&i.selected!=s&&i.selected!=-1){let l=i.options[i.selected].completion;for(let u=0;uu.hasResult()?Math.min(l,u.from):l,1e8),create:yIe,above:o.aboveCursor},i?i.timestamp:Date.now(),s,!1)}map(t){return new qh(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class LT{constructor(t,n,r){this.active=t,this.id=n,this.open=r}static start(){return new LT(gIe,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(t){let{state:n}=t,r=n.facet(mo),o=(r.override||n.languageDataAt("autocomplete",Pd(n)).map(aIe)).map(s=>(this.active.find(u=>u.source==s)||new va(s,this.active.some(u=>u.state!=0)?1:0)).update(t,r));o.length==this.active.length&&o.every((s,l)=>s==this.active[l])&&(o=this.active);let a=this.open;a&&t.docChanged&&(a=a.map(t.changes)),t.selection||o.some(s=>s.hasResult()&&t.changes.touchesRange(s.from,s.to))||!hIe(o,this.active)?a=qh.build(o,n,this.id,a,r):a&&a.disabled&&!o.some(s=>s.state==1)&&(a=null),!a&&o.every(s=>s.state!=1)&&o.some(s=>s.hasResult())&&(o=o.map(s=>s.hasResult()?new va(s.source,0):s));for(let s of t.effects)s.is(VX)&&(a=a&&a.setSelected(s.value,this.id));return o==this.active&&a==this.open?this:new LT(o,this.id,a)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:mIe}}function hIe(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;n-1&&(n["aria-activedescendant"]=e+"-"+t),n}const gIe=[];function ZR(e){return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null}class va{constructor(t,n,r=-1){this.source=t,this.state=n,this.explicitPos=r}hasResult(){return!1}update(t,n){let r=ZR(t),i=this;r?i=i.handleUserEvent(t,r,n):t.docChanged?i=i.handleChange(t):t.selection&&i.state!=0&&(i=new va(i.source,0));for(let o of t.effects)if(o.is(PT))i=new va(i.source,1,o.value?Pd(t.state):-1);else if(o.is(Zy))i=new va(i.source,0);else if(o.is(zX))for(let a of o.value)a.source==i.source&&(i=a);return i}handleUserEvent(t,n,r){return n=="delete"||!r.activateOnTyping?this.map(t.changes):new va(this.source,1)}handleChange(t){return t.changes.touchesRange(Pd(t.startState))?new va(this.source,0):this.map(t.changes)}map(t){return t.empty||this.explicitPos<0?this:new va(this.source,this.state,t.mapPos(this.explicitPos))}}class mm extends va{constructor(t,n,r,i,o){super(t,2,n),this.result=r,this.from=i,this.to=o}hasResult(){return!0}handleUserEvent(t,n,r){var i;let o=t.changes.mapPos(this.from),a=t.changes.mapPos(this.to,1),s=Pd(t.state);if((this.explicitPos<0?s<=o:sa||n=="delete"&&Pd(t.startState)==this.from)return new va(this.source,n=="input"&&r.activateOnTyping?1:0);let l=this.explicitPos<0?-1:t.changes.mapPos(this.explicitPos),u;return bIe(this.result.validFor,t.state,o,a)?new mm(this.source,l,this.result,o,a):this.result.update&&(u=this.result.update(this.result,o,a,new ZP(t.state,s,l>=0)))?new mm(this.source,l,u,u.from,(i=u.to)!==null&&i!==void 0?i:Pd(t.state)):new va(this.source,1,l)}handleChange(t){return t.changes.touchesRange(this.from,this.to)?new va(this.source,0):this.map(t.changes)}map(t){return t.empty?this:new mm(this.source,this.explicitPos<0?-1:t.mapPos(this.explicitPos),this.result,t.mapPos(this.from),t.mapPos(this.to,1))}}function bIe(e,t,n,r){if(!e)return!1;let i=t.sliceDoc(n,r);return typeof e=="function"?e(i,n,r,t):UX(e,!0).test(i)}const zX=xn.define({map(e,t){return e.map(n=>n.map(t))}}),VX=xn.define(),ts=eo.define({create(){return LT.start()},update(e,t){return e.update(t)},provide:e=>[NP.from(e,t=>t.tooltip),Ht.contentAttributes.from(e,t=>t.attrs)]});function HX(e,t){const n=t.completion.apply||t.completion.label;let r=e.state.field(ts).active.find(i=>i.source==t.source);return r instanceof mm?(typeof n=="string"?e.dispatch(Object.assign(Object.assign({},oIe(e.state,n,r.from,r.to)),{annotations:jX.of(t.completion)})):n(e,t.completion,r.from,r.to),!0):!1}const yIe=dIe(ts,HX);function Kv(e,t="option"){return n=>{let r=n.state.field(ts,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp-1?r.open.selected+i*(e?1:-1):e?0:a-1;return s<0?s=t=="page"?0:a-1:s>=a&&(s=t=="page"?a-1:0),n.dispatch({effects:VX.of(s)}),!0}}const OIe=e=>{let t=e.state.field(ts,!1);return e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestampe.state.field(ts,!1)?(e.dispatch({effects:PT.of(!0)}),!0):!1,EIe=e=>{let t=e.state.field(ts,!1);return!t||!t.active.some(n=>n.state!=0)?!1:(e.dispatch({effects:Zy.of(null)}),!0)};class SIe{constructor(t,n){this.active=t,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0}}const TIe=50,wIe=1e3,kIe=Jr.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(ts).active)t.state==1&&this.startQuery(t)}update(e){let t=e.state.field(ts);if(!e.selectionSet&&!e.docChanged&&e.startState.field(ts)==t)return;let n=e.transactions.some(i=>(i.selection||i.docChanged)&&!ZR(i));for(let i=0;iTIe&&Date.now()-o.time>wIe){for(let a of o.context.abortListeners)try{a()}catch(s){Gs(this.view.state,s)}o.context.abortListeners=null,this.running.splice(i--,1)}else o.updates.push(...e.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some(i=>i.effects.some(o=>o.is(PT)))&&(this.pendingStart=!0);let r=this.pendingStart?50:e.state.facet(mo).activateOnTypingDelay;if(this.debounceUpdate=t.active.some(i=>i.state==1&&!this.running.some(o=>o.active.source==i.source))?setTimeout(()=>this.startUpdate(),r):-1,this.composing!=0)for(let i of e.transactions)ZR(i)=="input"?this.composing=2:this.composing==2&&i.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:e}=this.view,t=e.field(ts);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=Pd(t),r=new ZP(t,n,e.explicitPos==n),i=new SIe(e,r);this.running.push(i),Promise.resolve(e.source(r)).then(o=>{i.context.aborted||(i.done=o||null,this.scheduleAccept())},o=>{this.view.dispatch({effects:Zy.of(null)}),Gs(this.view.state,o)})}scheduleAccept(){this.running.every(e=>e.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(mo).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(mo);for(let r=0;ra.source==i.active.source);if(o&&o.state==1)if(i.done==null){let a=new va(i.active.source,0);for(let s of i.updates)a=a.update(s,n);a.state!=1&&t.push(a)}else this.startQuery(o)}t.length&&this.view.dispatch({effects:zX.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(ts,!1);if(t&&t.tooltip&&this.view.state.facet(mo).closeOnBlur){let n=t.open&&EZ(this.view,t.open.tooltip);(!n||!n.dom.contains(e.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:Zy.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:PT.of(!1)}),20),this.composing=0}}}),WX=Ht.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"},".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 xIe{constructor(t,n,r,i){this.field=t,this.line=n,this.from=r,this.to=i}}class XP{constructor(t,n,r){this.field=t,this.from=n,this.to=r}map(t){let n=t.mapPos(this.from,-1,ho.TrackDel),r=t.mapPos(this.to,1,ho.TrackDel);return n==null||r==null?null:new XP(this.field,n,r)}}class KP{constructor(t,n){this.lines=t,this.fieldPositions=n}instantiate(t,n){let r=[],i=[n],o=t.doc.lineAt(n),a=/^\s*/.exec(o.text)[0];for(let l of this.lines){if(r.length){let u=a,c=/^\t*/.exec(l)[0].length;for(let d=0;dnew XP(l.field,i[l.line]+l.from,i[l.line]+l.to));return{text:r,ranges:s}}static parse(t){let n=[],r=[],i=[],o;for(let a of t.split(/\r\n?|\n/)){for(;o=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(a);){let s=o[1]?+o[1]:null,l=o[2]||o[3]||"",u=-1;for(let c=0;c=u&&d.field++}i.push(new xIe(u,r.length,o.index,o.index+l.length)),a=a.slice(0,o.index)+l+a.slice(o.index+o[0].length)}for(let s;s=/\\([{}])/.exec(a);){a=a.slice(0,s.index)+s[1]+a.slice(s.index+s[0].length);for(let l of i)l.line==r.length&&l.from>s.index&&(l.from--,l.to--)}r.push(a)}return new KP(r,i)}}let CIe=ln.widget({widget:new class extends Lu{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),AIe=ln.mark({class:"cm-snippetField"});class Lg{constructor(t,n){this.ranges=t,this.active=n,this.deco=ln.set(t.map(r=>(r.from==r.to?CIe:AIe).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 Lg(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 fO=xn.define({map(e,t){return e&&e.map(t)}}),_Ie=xn.define(),Xy=eo.define({create(){return null},update(e,t){for(let n of t.effects){if(n.is(fO))return n.value;if(n.is(_Ie)&&e)return new Lg(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=>Ht.decorations.from(e,t=>t?t.deco:ln.none)});function JP(e,t){return tt.create(e.filter(n=>n.field==t).map(n=>tt.range(n.from,n.to)))}function RIe(e){let t=KP.parse(e);return(n,r,i,o)=>{let{text:a,ranges:s}=t.instantiate(n.state,i),l={changes:{from:i,to:o,insert:rr.of(a)},scrollIntoView:!0,annotations:r?[jX.of(r),wi.userEvent.of("input.complete")]:void 0};if(s.length&&(l.selection=JP(s,0)),s.some(u=>u.field>0)){let u=new Lg(s,0),c=l.effects=[fO.of(u)];n.state.field(Xy,!1)===void 0&&c.push(xn.appendConfig.of([Xy,LIe,MIe,WX]))}n.dispatch(n.state.update(l))}}function QX(e){return({state:t,dispatch:n})=>{let r=t.field(Xy,!1);if(!r||e<0&&r.active==0)return!1;let i=r.active+e,o=e>0&&!r.ranges.some(a=>a.field==i+e);return n(t.update({selection:JP(r.ranges,i),effects:fO.of(o?null:new Lg(r.ranges,i)),scrollIntoView:!0})),!0}}const IIe=({state:e,dispatch:t})=>e.field(Xy,!1)?(t(e.update({effects:fO.of(null)})),!0):!1,DIe=QX(1),NIe=QX(-1),PIe=[{key:"Tab",run:DIe,shift:NIe},{key:"Escape",run:IIe}],O9=qt.define({combine(e){return e.length?e[0]:PIe}}),LIe=lf.highest(Rg.compute([O9],e=>e.facet(O9)));function ma(e,t){return Object.assign(Object.assign({},t),{apply:RIe(e)})}const MIe=Ht.domEventHandlers({mousedown(e,t){let n=t.state.field(Xy,!1),r;if(!n||(r=t.posAtCoords({x:e.clientX,y:e.clientY}))==null)return!1;let i=n.ranges.find(o=>o.from<=r&&o.to>=r);return!i||i.field==n.active?!1:(t.dispatch({selection:JP(n.ranges,i.field),effects:fO.of(n.ranges.some(o=>o.field>i.field)?new Lg(n.ranges,i.field):null),scrollIntoView:!0}),!0)}}),Ky={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Hf=xn.define({map(e,t){let n=t.mapPos(e,-1,ho.TrackAfter);return n??void 0}}),e3=new class extends Ep{};e3.startSide=1;e3.endSide=-1;const YX=eo.define({create(){return Xn.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(Hf)&&(e=e.update({add:[e3.range(n.value,n.value+1)]}));return e}});function $Ie(){return[BIe,YX]}const CA="()[]{}<>";function GX(e){for(let t=0;t{if((FIe?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let i=e.state.selection.main;if(r.length>2||r.length==2&&Bs(fo(r,0))==1||t!=i.from||n!=i.to)return!1;let o=zIe(e.state,r);return o?(e.dispatch(o),!0):!1}),UIe=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let r=qX(e,e.selection.main.head).brackets||Ky.brackets,i=null,o=e.changeByRange(a=>{if(a.empty){let s=VIe(e.doc,a.head);for(let l of r)if(l==s&&ex(e.doc,a.head)==GX(fo(l,0)))return{changes:{from:a.head-l.length,to:a.head+l.length},range:tt.cursor(a.head-l.length)}}return{range:i=a}});return i||t(e.update(o,{scrollIntoView:!0,userEvent:"delete.backward"})),!i},jIe=[{key:"Backspace",run:UIe}];function zIe(e,t){let n=qX(e,e.selection.main.head),r=n.brackets||Ky.brackets;for(let i of r){let o=GX(fo(i,0));if(t==i)return o==i?QIe(e,i,r.indexOf(i+i+i)>-1,n):HIe(e,i,o,n.before||Ky.before);if(t==o&&ZX(e,e.selection.main.from))return WIe(e,i,o)}return null}function ZX(e,t){let n=!1;return e.field(YX).between(0,e.doc.length,r=>{r==t&&(n=!0)}),n}function ex(e,t){let n=e.sliceString(t,t+2);return n.slice(0,Bs(fo(n,0)))}function VIe(e,t){let n=e.sliceString(t-2,t);return Bs(fo(n,0))==n.length?n:n.slice(1)}function HIe(e,t,n,r){let i=null,o=e.changeByRange(a=>{if(!a.empty)return{changes:[{insert:t,from:a.from},{insert:n,from:a.to}],effects:Hf.of(a.to+t.length),range:tt.range(a.anchor+t.length,a.head+t.length)};let s=ex(e.doc,a.head);return!s||/\s/.test(s)||r.indexOf(s)>-1?{changes:{insert:t+n,from:a.head},effects:Hf.of(a.head+t.length),range:tt.cursor(a.head+t.length)}:{range:i=a}});return i?null:e.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function WIe(e,t,n){let r=null,i=e.changeByRange(o=>o.empty&&ex(e.doc,o.head)==n?{changes:{from:o.head,to:o.head+n.length,insert:n},range:tt.cursor(o.head+n.length)}:r={range:o});return r?null:e.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function QIe(e,t,n,r){let i=r.stringPrefixes||Ky.stringPrefixes,o=null,a=e.changeByRange(s=>{if(!s.empty)return{changes:[{insert:t,from:s.from},{insert:t,from:s.to}],effects:Hf.of(s.to+t.length),range:tt.range(s.anchor+t.length,s.head+t.length)};let l=s.head,u=ex(e.doc,l),c;if(u==t){if(v9(e,l))return{changes:{insert:t+t,from:l},effects:Hf.of(l+t.length),range:tt.cursor(l+t.length)};if(ZX(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:tt.cursor(l+p.length)}}}else{if(n&&e.sliceDoc(l-2*t.length,l)==t+t&&(c=E9(e,l-2*t.length,i))>-1&&v9(e,c))return{changes:{insert:t+t+t+t,from:l},effects:Hf.of(l+t.length),range:tt.cursor(l+t.length)};if(e.charCategorizer(l)(u)!=Qr.Word&&E9(e,l,i)>-1&&!YIe(e,l,t,i))return{changes:{insert:t+t,from:l},effects:Hf.of(l+t.length),range:tt.cursor(l+t.length)}}return{range:o=s}});return o?null:e.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function v9(e,t){let n=Cr(e).resolveInner(t+1);return n.parent&&n.from==t}function YIe(e,t,n,r){let i=Cr(e).resolveInner(t,-1),o=r.reduce((a,s)=>Math.max(a,s.length),0);for(let a=0;a<5;a++){let s=e.sliceDoc(i.from,Math.min(i.to,i.from+n.length+o)),l=s.indexOf(n);if(!l||l>-1&&r.indexOf(s.slice(0,l))>-1){let c=i.firstChild;for(;c&&c.from==i.from&&c.to-c.from>n.length+l;){if(e.sliceDoc(c.to-n.length,c.to)==n)return!1;c=c.firstChild}return!0}let u=i.to==t&&i.parent;if(!u)break;i=u}return!1}function E9(e,t,n){let r=e.charCategorizer(t);if(r(e.sliceDoc(t-1,t))!=Qr.Word)return t;for(let i of n){let o=t-i.length;if(e.sliceDoc(o,t)==i&&r(e.sliceDoc(o-1,o))!=Qr.Word)return o}return-1}function GIe(e={}){return[ts,mo.of(e),kIe,qIe,WX]}const XX=[{key:"Ctrl-Space",run:vIe},{key:"Escape",run:EIe},{key:"ArrowDown",run:Kv(!0)},{key:"ArrowUp",run:Kv(!1)},{key:"PageDown",run:Kv(!0,"page")},{key:"PageUp",run:Kv(!1,"page")},{key:"Enter",run:OIe}],qIe=lf.highest(Rg.computeN([mo],e=>e.facet(mo).defaultKeymap?[XX]:[]));class ZIe{constructor(t,n,r){this.from=t,this.to=n,this.diagnostic=r}}class Nf{constructor(t,n,r){this.diagnostics=t,this.panel=n,this.selected=r}static init(t,n,r){let i=t,o=r.facet(eK).markerFilter;o&&(i=o(i));let a=ln.set(i.map(s=>s.from==s.to||s.from==s.to-1&&r.doc.lineAt(s.from).to==s.from?ln.widget({widget:new oDe(s),diagnostic:s}).range(s.from):ln.mark({attributes:{class:"cm-lintRange cm-lintRange-"+s.severity+(s.markClass?" "+s.markClass:"")},diagnostic:s}).range(s.from,s.to)),!0);return new Nf(a,n,ag(a))}}function ag(e,t=null,n=0){let r=null;return e.between(n,1e9,(i,o,{spec:a})=>{if(!(t&&a.diagnostic!=t))return r=new ZIe(i,o,a.diagnostic),!1}),r}function XIe(e,t){let n=e.startState.doc.lineAt(t.pos);return!!(e.effects.some(r=>r.is(KX))||e.changes.touchesRange(n.from,n.to))}function KIe(e,t){return e.field(ls,!1)?t:t.concat(xn.appendConfig.of(lDe))}const KX=xn.define(),t3=xn.define(),JX=xn.define(),ls=eo.define({create(){return new Nf(ln.none,null,null)},update(e,t){if(t.docChanged){let n=e.diagnostics.map(t.changes),r=null;if(e.selected){let i=t.changes.mapPos(e.selected.from,1);r=ag(n,e.selected.diagnostic,i)||ag(n,null,i)}e=new Nf(n,e.panel,r)}for(let n of t.effects)n.is(KX)?e=Nf.init(n.value,e.panel,t.state):n.is(t3)?e=new Nf(e.diagnostics,n.value?tx.open:null,e.selected):n.is(JX)&&(e=new Nf(e.diagnostics,e.panel,n.value));return e},provide:e=>[Vy.from(e,t=>t.panel),Ht.decorations.from(e,t=>t.diagnostics)]}),JIe=ln.mark({class:"cm-lintRange cm-lintRange-active"});function eDe(e,t,n){let{diagnostics:r}=e.state.field(ls),i=[],o=2e8,a=0;r.between(t-(n<0?1:0),t+(n>0?1:0),(l,u,{spec:c})=>{t>=l&&t<=u&&(l==u||(t>l||n>0)&&(tnK(e,n,!1)))}const nDe=e=>{let t=e.state.field(ls,!1);(!t||!t.panel)&&e.dispatch({effects:KIe(e.state,[t3.of(!0)])});let n=zy(e,tx.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},S9=e=>{let t=e.state.field(ls,!1);return!t||!t.panel?!1:(e.dispatch({effects:t3.of(!1)}),!0)},rDe=e=>{let t=e.state.field(ls,!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)},iDe=[{key:"Mod-Shift-m",run:nDe,preventDefault:!0},{key:"F8",run:rDe}],eK=qt.define({combine(e){return Object.assign({sources:e.map(t=>t.source)},Pu(e.map(t=>t.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(t,n)=>t?n?r=>t(r)||n(r):t:n}))}});function tK(e){let t=[];if(e)e:for(let{name:n}of e){for(let r=0;ro.toLowerCase()==i.toLowerCase())){t.push(i);continue e}}t.push("")}return t}function nK(e,t,n){var r;let i=n?tK(t.actions):[];return wr("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},wr("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage():t.message),(r=t.actions)===null||r===void 0?void 0:r.map((o,a)=>{let s=!1,l=p=>{if(p.preventDefault(),s)return;s=!0;let h=ag(e.state.field(ls).diagnostics,t);h&&o.apply(e,h.from,h.to)},{name:u}=o,c=i[a]?u.indexOf(i[a]):-1,d=c<0?u:[u.slice(0,c),wr("u",u.slice(c,c+1)),u.slice(c+1)];return wr("button",{type:"button",class:"cm-diagnosticAction",onclick:l,onmousedown:l,"aria-label":` Action: ${u}${c<0?"":` (access key "${i[a]})"`}.`},d)}),t.source&&wr("div",{class:"cm-diagnosticSource"},t.source))}class oDe extends Lu{constructor(t){super(),this.diagnostic=t}eq(t){return t.diagnostic==this.diagnostic}toDOM(){return wr("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class T9{constructor(t,n){this.diagnostic=n,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=nK(t,n,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class tx{constructor(t){this.view=t,this.items=[];let n=i=>{if(i.keyCode==27)S9(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:o}=this.items[this.selectedIndex],a=tK(o.actions);for(let s=0;s{for(let o=0;oS9(this.view)},"×")),this.update()}get selectedIndex(){let t=this.view.state.field(ls).selected;if(!t)return-1;for(let n=0;n{let u=-1,c;for(let d=r;dr&&(this.items.splice(r,u-r),i=!0)),n&&c.diagnostic==n.diagnostic?c.dom.hasAttribute("aria-selected")||(c.dom.setAttribute("aria-selected","true"),o=c):c.dom.hasAttribute("aria-selected")&&c.dom.removeAttribute("aria-selected"),r++});r({sel:o.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:a,panel:s})=>{let l=s.height/this.list.offsetHeight;a.tops.bottom&&(this.list.scrollTop+=(a.bottom-s.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(ls),r=ag(n.diagnostics,this.items[t].diagnostic);r&&this.view.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:JX.of(r)})}static open(t){return new tx(t)}}function aDe(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(e)}')`}function Jv(e){return aDe(``,'width="6" height="3"')}const sDe=Ht.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:Jv("#d11")},".cm-lintRange-warning":{backgroundImage:Jv("orange")},".cm-lintRange-info":{backgroundImage:Jv("#999")},".cm-lintRange-hint":{backgroundImage:Jv("#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}}}),lDe=[ls,Ht.decorations.compute([ls],e=>{let{selected:t,panel:n}=e.field(ls);return!t||!n||t.from==t.to?ln.none:ln.set([JIe.range(t.from,t.to)])}),KAe(eDe,{hideOn:XIe}),sDe],uDe=[s2e(),c2e(),_Ae(),A_e(),n_e(),yAe(),TAe(),qn.allowMultipleSelections.of(!0),H2e(),WZ(a_e,{fallback:!0}),p_e(),$Ie(),GIe(),jAe(),HAe(),LAe(),PRe(),Rg.of([...jIe,...ARe,...JRe,...$_e,...K2e,...XX,...iDe])];class MT{static create(t,n,r,i,o){let a=i+(i<<8)+t+(n<<4)|0;return new MT(t,n,r,a,o,[],[])}constructor(t,n,r,i,o,a,s){this.type=t,this.value=n,this.from=r,this.hash=i,this.end=o,this.children=a,this.positions=s,this.hashProp=[[vn.contextHash,i]]}addChild(t,n){t.prop(vn.contextHash)!=this.hash&&(t=new cr(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 cr(t.types[this.type],this.children,this.positions,n-this.from).balance({makeTree:(i,o,a)=>new cr($i.none,i,o,a,this.hashProp)})}}var Rt;(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"})(Rt||(Rt={}));class cDe{constructor(t,n){this.start=t,this.content=n,this.marks=[],this.parsers=[]}}class dDe{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 Mb(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==Rt.OrderedList?i3:r3)(n,t,!1);return r>0&&(e.type!=Rt.BulletList||n3(n,t,!1)<0)&&n.text.charCodeAt(n.pos+r-1)==e.value}const rK={[Rt.Blockquote](e,t,n){return n.next!=62?!1:(n.markers.push(Gn(Rt.QuoteMark,t.lineStart+n.pos,t.lineStart+n.pos+1)),n.moveBase(n.pos+(ol(n.text.charCodeAt(n.pos+1))?2:1)),e.end=t.lineStart+n.text.length,!0)},[Rt.ListItem](e,t,n){return n.indent-1?!1:(n.moveBaseColumn(n.baseIndent+e.value),!0)},[Rt.OrderedList]:w9,[Rt.BulletList]:w9,[Rt.Document](){return!0}};function ol(e){return e==32||e==9||e==10||e==13}function Mb(e,t=0){for(;tn&&ol(e.charCodeAt(t-1));)t--;return t}function iK(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 aK(e,t){for(let n=e.stack.length-1;n>=0;n--)if(e.stack[n].type==t)return!0;return!1}function r3(e,t,n){return(e.next==45||e.next==43||e.next==42)&&(e.pos==e.text.length-1||ol(e.text.charCodeAt(e.pos+1)))&&(!n||aK(t,Rt.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 sK(e){if(e.next!=35)return-1;let t=e.pos+1;for(;t6?-1:n}function lK(e){if(e.next!=45&&e.next!=61||e.indent>=e.baseIndent+4)return-1;let t=e.pos+1;for(;t/,cK=/\?>/,KR=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/,Zee=/\?>/,_I=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/i.exec(r);if(o)return e.append(Gn(Rt.Comment,n,n+1+o[0].length));let a=/^\?[^]*?\?>/.exec(r);if(a)return e.append(Gn(Rt.ProcessingInstruction,n,n+1+a[0].length));let s=/^(?:![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 s?e.append(Gn(Rt.HTMLTag,n,n+1+s[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),o=e.slice(r,r+1),a=e1.test(i),s=e1.test(o),l=/\s|^$/.test(i),u=/\s|^$/.test(o),c=!u&&(!s||l||a),d=!l&&(!a||u||s),p=c&&(t==42||!d||a),h=d&&(t==42||!c||s);return e.append(new yl(t==95?gK:bK,n,r,(p?1:0)|(h?2:0)))},HardBreak(e,t,n){if(t==92&&e.char(n+1)==10)return e.append(Gn(Rt.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(Gn(Rt.HardBreak,n,r+1))}return-1},Link(e,t,n){return t==91?e.append(new yl(P0,n,n+1,1)):-1},Image(e,t,n){return t==33&&e.char(n+1)==91?e.append(new yl(C9,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 yl&&(i.type==P0||i.type==C9)){if(!i.side||e.skipSpace(i.to)==n&&!/[(\[]/.test(e.slice(n+1,n+2)))return e.parts[r]=null,-1;let o=e.takeContent(r),a=e.parts[r]=yDe(e,o,i.type==P0?Rt.Link:Rt.Image,i.from,n+1);if(i.type==P0)for(let s=0;st?Gn(Rt.URL,t+n,o+n):o==e.length?null:!1}}function OK(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 o=t+1,a=!1;o=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,o){return this.append(new yl(t,n,r,(i?1:0)|(o?2:0)))}addElement(t){return this.append(t)}resolveMarkers(t){for(let r=t;r=t;l--){let b=this.parts[l];if(b instanceof yl&&b.side&1&&b.type==i.type&&!(o&&(i.side&1||b.side&2)&&(b.to-b.from+a)%3==0&&((b.to-b.from)%3||a%3))){s=b;break}}if(!s)continue;let u=i.type.resolve,c=[],d=s.from,p=i.to;if(o){let b=Math.min(2,s.to-s.from,a);d=s.to-b,p=i.from+b,u=b==1?"Emphasis":"StrongEmphasis"}s.type.mark&&c.push(this.elt(s.type.mark,d,s.to));for(let b=l+1;b=0;n--){let r=this.parts[n];if(r instanceof yl&&r.type==t)return n}return null}takeContent(t){let n=this.resolveMarkers(t);return this.parts.length=t,n}skipSpace(t){return Mb(this.text,t-this.offset)+this.offset}elt(t,n,r,i){return typeof t=="string"?Gn(this.parser.getNodeType(t),n,r,i):new mK(t,n)}}function eI(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 o=this.fragment.to;for(;o>0&&this.input.read(o-1,o)!=` -`;)o--;this.fragmentEnd=o?o-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(vn.contextHash)==t}takeNodes(t){let n=this.cursor,r=this.fragment.offset,i=this.fragmentEnd-(this.fragment.openEnd?1:0),o=t.absoluteLineStart,a=o,s=t.block.children.length,l=a,u=s;for(;;){if(n.to-r>i){if(n.type.isAnonymous&&n.firstChild())continue;break}let c=EK(n.from-r,t.ranges);if(n.to-r<=t.ranges[t.rangeI].to)t.addNode(n.tree,c);else{let d=new cr(t.parser.nodeSet.types[Rt.Paragraph],[],[],0,t.block.hashProp);t.reusePlaceholders.set(d,n.tree),t.addNode(d,c)}if(n.type.is("Block")&&(vDe.indexOf(n.type.id)<0?(a=n.to-r,s=t.block.children.length):(a=l,s=u,l=n.to-r,u=t.block.children.length)),!n.nextSibling())break}for(;t.block.children.length>s;)t.block.children.pop(),t.block.positions.pop();return a-o}};function EK(e,t){let n=e;for(let r=1;reE[e]),Object.keys(eE).map(e=>hDe[e]),Object.keys(eE),mDe,rK,Object.keys(_A).map(e=>_A[e]),Object.keys(_A),[]);function wDe(e,t,n){let r=[];for(let i=e.firstChild,o=t;;i=i.nextSibling){let a=i?i.from:n;if(a>o&&r.push({from:o,to:a}),!i)break;o=i.to}return r}function kDe(e){let{codeParser:t,htmlParser:n}=e;return{wrap:RZ((i,o)=>{let a=i.type.id;if(t&&(a==Rt.CodeBlock||a==Rt.FencedCode)){let s="";if(a==Rt.FencedCode){let u=i.node.getChild(Rt.CodeInfo);u&&(s=o.read(u.from,u.to))}let l=t(s);if(l)return{parser:l,overlay:u=>u.type.id==Rt.CodeText}}else if(n&&(a==Rt.HTMLBlock||a==Rt.HTMLTag))return{parser:n,overlay:wDe(i.node,i.from,i.to)};return null})}}const xDe={resolve:"Strikethrough",mark:"StrikethroughMark"},CDe={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":he.strikethrough}},{name:"StrikethroughMark",style:he.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),o=/\s|^$/.test(r),a=/\s|^$/.test(i),s=e1.test(r),l=e1.test(i);return e.addDelimiter(xDe,n,n+2,!a&&(!l||o||s),!o&&(!s||a||l))},after:"Emphasis"}]};function $b(e,t,n=0,r,i=0){let o=0,a=!0,s=-1,l=-1,u=!1,c=()=>{r.push(e.elt("TableCell",i+s,i+l,e.parser.parseInline(t.slice(s,l),i+s)))};for(let d=n;d-1)&&o++,a=!1,r&&(s>-1&&c(),r.push(e.elt("TableDelimiter",d+i,d+i+1))),s=l=-1):(u||p!=32&&p!=9)&&(s<0&&(s=d),l=d+1),u=!u&&p==92}return s>-1&&(o++,r&&c()),o}function _9(e,t){for(let n=t;ni instanceof R9)||!_9(t.text,t.basePos))return!1;let r=e.scanLine(e.absoluteLineEnd+1).text;return SK.test(r)&&$b(e,t.text,t.basePos)==$b(e,r,t.basePos)},before:"SetextHeading"}]};class _De{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 RDe={defineNodes:[{name:"Task",block:!0,style:he.list},{name:"TaskMarker",style:he.atom}],parseBlock:[{name:"TaskList",leaf(e,t){return/^\[[ xX]\][ \t]/.test(t.content)&&e.parentType().name=="ListItem"?new _De:null},after:"SetextHeading"}]},I9=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,D9=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,IDe=/[\w-]+\.[\w-]+($|\/)/,N9=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,P9=/\/[a-zA-Z\d@.]+/gy;function L9(e,t,n,r){let i=0;for(let o=t;o-1)return-1;let r=t+n[0].length;for(;;){let i=e[r-1],o;if(/[?!.,:*_~]/.test(i)||i==")"&&L9(e,t,r,")")>L9(e,t,r,"("))r--;else if(i==";"&&(o=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t,r))))r=t+o.index;else break}return r}function M9(e,t){N9.lastIndex=t;let n=N9.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 NDe={parseInline:[{name:"Autolink",parse(e,t,n){let r=n-e.offset;I9.lastIndex=r;let i=I9.exec(e.text),o=-1;return!i||(i[1]||i[2]?o=DDe(e.text,r+i[0].length):i[3]?o=M9(e.text,r):(o=M9(e.text,r+i[0].length),o>-1&&i[0]=="xmpp:"&&(P9.lastIndex=o,i=P9.exec(e.text),i&&(o=i.index+i[0].length))),o<0)?-1:(e.addElement(e.elt("URL",n,o+e.offset)),o+e.offset)}}]},PDe=[ADe,RDe,CDe,NDe];function TK(e,t,n){return(r,i,o)=>{if(i!=e||r.char(o+1)==e)return-1;let a=[r.elt(n,o,o+1)];for(let s=o+1;sn%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,n,r=0){let i=t.parser.context;return new $T(t,[],n,r,r,0,[],0,i?new F9(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:o}=this.p,a=o.dynamicPrecedence(i);if(a&&(this.score+=a),r==0){this.pushState(o.getGoto(this.state,i,!0),this.reducePos),i=2e3&&!(!((n=this.p.parser.nodeSet.types[i])===null||n===void 0)&&n.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSizes;)this.stack.pop();this.reduceContext(i,l)}storeNode(t,n,r,i=4,o=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&a.buffer[s-4]==0&&a.buffer[s-1]>-1){if(n==r)return;if(a.buffer[s-2]>=n){a.buffer[s-2]=r;return}}}if(!o||this.pos==r)this.buffer.push(t,n,r,i);else{let a=this.buffer.length;if(a>0&&this.buffer[a-4]!=0)for(;a>0&&this.buffer[a-2]>r;)this.buffer[a]=this.buffer[a-4],this.buffer[a+1]=this.buffer[a-3],this.buffer[a+2]=this.buffer[a-2],this.buffer[a+3]=this.buffer[a-1],a-=4,i>4&&(i-=4);this.buffer[a]=t,this.buffer[a+1]=n,this.buffer[a+2]=r,this.buffer[a+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 o=t,{parser:a}=this.p;(i>this.pos||n<=a.maxNode)&&(this.pos=i,a.stateFlag(o,1)||(this.reducePos=i)),this.pushState(o,r),this.shiftContext(n,r),n<=a.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 $T(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 FDe(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 o=0,a;ol&1&&s==a)||i.push(n[o],a)}n=i}let r=[];for(let i=0;i>19,i=n&65535,o=this.stack.length-r*3;if(o<0||t.getGoto(this.stack[o],i,!1)<0){let a=this.findForcedReduction();if(a==null)return!1;n=a}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,o)=>{if(!n.includes(i))return n.push(i),t.allActions(i,a=>{if(!(a&393216))if(a&65536){let s=(a>>19)-o;if(s>1){let l=a&65535,u=this.stack.length-s*3;if(u>=0&&t.getGoto(this.stack[u],l,!1)>=0)return s<<19|65536|l}}else{let s=r(a,o+1);if(s!=null)return s}})};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 F9{constructor(t,n){this.tracker=t,this.context=n,this.hash=t.strict?t.hash(n):0}}class FDe{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 FT{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 FT(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 FT(this.stack,this.pos,this.index)}}function lb(e,t=Uint16Array){if(typeof e!="string")return e;let n=null;for(let r=0,i=0;r=92&&a--,a>=34&&a--;let l=a-32;if(l>=46&&(l-=46,s=!0),o+=l,s)break;o*=46}n?n[i++]=o:n=new t(o)}return n}class eS{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const B9=new eS;class BDe{constructor(t,n){this.input=t,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=B9,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,o=this.pos+t;for(;or.to:o>=r.to;){if(i==this.ranges.length-1)return null;let a=this.ranges[++i];o+=a.from-r.to,r=a}return o}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&&rs.to&&(this.chunk2=this.chunk2.slice(0,s.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=B9,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 gm{constructor(t,n){this.data=t,this.id=n}token(t,n){let{parser:r}=n.p;wK(this.data,t,n,this.id,r.data,r.tokenPrecTable)}}gm.prototype.contextual=gm.prototype.fallback=gm.prototype.extend=!1;class BT{constructor(t,n,r){this.precTable=n,this.elseToken=r,this.data=typeof t=="string"?lb(t):t}token(t,n){let r=t.pos,i=0;for(;;){let o=t.next<0,a=t.resolveOffset(1,1);if(wK(this.data,t,n,0,this.data,this.precTable),t.token.value>-1)break;if(this.elseToken==null)return;if(o||i++,a==null)break;t.reset(a,t.token)}i&&(t.reset(r,t.token),t.acceptToken(this.elseToken,i))}}BT.prototype.contextual=gm.prototype.fallback=gm.prototype.extend=!1;class Ul{constructor(t,n={}){this.token=t,this.contextual=!!n.contextual,this.fallback=!!n.fallback,this.extend=!!n.extend}}function wK(e,t,n,r,i,o){let a=0,s=1<0){let m=e[h];if(l.allows(m)&&(t.token.value==-1||t.token.value==m||UDe(m,t.token.value,i,o))){t.acceptToken(m);break}}let c=t.next,d=0,p=e[a+2];if(t.next<0&&p>d&&e[u+p*3-3]==65535){a=e[u+p*3-1];continue e}for(;d>1,m=u+h+(h<<1),b=e[m],O=e[m+1]||65536;if(c=O)d=h+1;else{a=e[m+2],t.advance();continue e}}break}}function U9(e,t,n){for(let r=t,i;(i=e[r])!=65535;r++)if(i==n)return r-t;return-1}function UDe(e,t,n,r){let i=U9(n,r,t);return i<0||U9(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 jDe{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?j9(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?j9(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=a,null;if(o instanceof cr){if(a==t){if(a=Math.max(this.safeFrom,t)&&(this.trees.push(o),this.start.push(a),this.index.push(0))}else this.index[n]++,this.nextStart=a+o.length}}}class zDe{constructor(t,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(r=>new eS)}getActions(t){let n=0,r=null,{parser:i}=t.p,{tokenizers:o}=i,a=i.stateSlot(t.state,3),s=t.curContext?t.curContext.hash:0,l=0;for(let u=0;ud.end+25&&(l=Math.max(d.lookAhead,l)),d.value!=0)){let p=n;if(d.extended>-1&&(n=this.addActions(t,d.extended,d.end,n)),n=this.addActions(t,d.value,d.end,n),!c.extend&&(r=d,n>p))break}}for(;this.actions.length>n;)this.actions.pop();return l&&t.setLookAhead(l),!r&&t.pos==this.stream.end&&(r=new eS,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 eS,{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:o}=r.p;for(let a=0;a=0&&r.p.parser.dialect.allows(s>>1)){s&1?t.extended=s>>1:t.value=s>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,n,r,i){for(let o=0;ot.bufferLength*4?new jDe(r,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,n=this.minStackPos,r=this.stacks=[],i,o;if(this.bigReductionCount>300&&t.length==1){let[a]=t;for(;a.forceReduce()&&a.stack.length&&a.stack[a.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let a=0;an)r.push(s);else{if(this.advanceStack(s,r,t))continue;{i||(i=[],o=[]),i.push(s);let l=this.tokens.getMainToken(s);o.push(l.value,l.end)}}break}}if(!r.length){let a=i&&WDe(i);if(a)return Wa&&console.log("Finish with "+this.stackID(a)),this.stackToTree(a);if(this.parser.strict)throw Wa&&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 a=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,o,r);if(a)return Wa&&console.log("Force-finish "+this.stackID(a)),this.stackToTree(a.forceAll())}if(this.recovering){let a=this.recovering==1?1:this.recovering*3;if(r.length>a)for(r.sort((s,l)=>l.score-s.score);r.length>a;)r.pop();r.some(s=>s.reducePos>n)&&this.recovering--}else if(r.length>1){e:for(let a=0;a500&&u.buffer.length>500)if((s.score-u.score||s.buffer.length-u.buffer.length)>0)r.splice(l--,1);else{r.splice(a--,1);continue e}}}r.length>12&&r.splice(12,r.length-12)}this.minStackPos=r[0].pos;for(let a=1;a ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let u=t.curContext&&t.curContext.tracker.strict,c=u?t.curContext.hash:0;for(let d=this.fragments.nodeAt(i);d;){let p=this.parser.nodeSet.types[d.type.id]==d.type?o.getGoto(t.state,d.type.id):-1;if(p>-1&&d.length&&(!u||(d.prop(vn.contextHash)||0)==c))return t.useNode(d,p),Wa&&console.log(a+this.stackID(t)+` (via reuse of ${o.getName(d.type.id)})`),!0;if(!(d instanceof cr)||d.children.length==0||d.positions[0]>0)break;let h=d.children[0];if(h instanceof cr&&d.positions[0]==0)d=h;else break}}let s=o.stateSlot(t.state,4);if(s>0)return t.reduce(s),Wa&&console.log(a+this.stackID(t)+` (via always-reduce ${o.getName(s&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(m):r.push(m)}return!1}advanceFully(t,n){let r=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>r)return z9(t,n),!0}}runRecovery(t,n,r){let i=null,o=!1;for(let a=0;a ":"";if(s.deadEnd&&(o||(o=!0,s.restart(),Wa&&console.log(c+this.stackID(s)+" (restarted)"),this.advanceFully(s,r))))continue;let d=s.split(),p=c;for(let h=0;d.forceReduce()&&h<10&&(Wa&&console.log(p+this.stackID(d)+" (via force-reduce)"),!this.advanceFully(d,r));h++)Wa&&(p=this.stackID(d)+" -> ");for(let h of s.recoverByInsert(l))Wa&&console.log(c+this.stackID(h)+" (via recover-insert)"),this.advanceFully(h,r);this.stream.end>s.pos?(u==s.pos&&(u++,l=0),s.recoverByDelete(l,u),Wa&&console.log(c+this.stackID(s)+` (via recover-delete ${this.parser.getName(l)})`),z9(s,r)):(!i||i.scoree;class kK{constructor(t){this.start=t.start,this.shift=t.shift||IA,this.reduce=t.reduce||IA,this.reuse=t.reuse||IA,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class lg extends $P{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 s=0;st.topRules[s][1]),i=[];for(let s=0;s=0)o(c,l,s[u++]);else{let d=s[u+-c];for(let p=-c;p>0;p--)o(s[u++],l,d);u++}}}this.nodeSet=new oO(n.map((s,l)=>$i.define({name:l>=this.minRepeatTerm?void 0:s,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=kZ;let a=lb(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let s=0;stypeof s=="number"?new gm(a,s):s),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 VDe(this,t,n,r);for(let o of this.wrappers)i=o(i,t,n,r);return i}getGoto(t,n,r=!1){let i=this.goto;if(n>=i[0])return-1;for(let o=i[n+1];;){let a=i[o++],s=a&1,l=i[o++];if(s&&r)return l;for(let u=o+(a>>1);o0}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 o=this.stateSlot(t,1);i==null;o+=3){if(this.data[o]==65535)if(this.data[o+1]==1)o=nc(this.data,o+2);else break;i=n(nc(this.data,o+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=nc(this.data,r+2);else break;if(!(this.data[r+2]&1)){let i=this.data[r+1];n.some((o,a)=>a&1&&o==i)||n.push(this.data[r],i)}}return n}configure(t){let n=Object.assign(Object.create(lg.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(o=>o.from==r);return i?i.to:r})),t.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((r,i)=>{let o=t.specializers.find(s=>s.from==r.external);if(!o)return r;let a=Object.assign(Object.assign({},r),{external:o.to});return n.specializers[i]=V9(a),a})),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 o of t.split(" ")){let a=n.indexOf(o);a>=0&&(r[a]=!0)}let i=null;for(let o=0;or)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.scoree.external(n,r)<<1|t}return e.get}const QDe=54,YDe=1,GDe=55,qDe=2,ZDe=56,XDe=3,H9=4,KDe=5,UT=6,xK=7,CK=8,AK=9,_K=10,JDe=11,eNe=12,tNe=13,DA=57,nNe=14,W9=58,RK=20,rNe=22,IK=23,iNe=24,tI=26,DK=27,oNe=28,aNe=31,sNe=34,lNe=36,uNe=37,cNe=0,dNe=1,fNe={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},pNe={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},Q9={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 hNe(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function NK(e){return e==9||e==10||e==13||e==32}let Y9=null,G9=null,q9=0;function nI(e,t){let n=e.pos+t;if(q9==n&&G9==e)return Y9;let r=e.peek(t);for(;NK(r);)r=e.peek(++t);let i="";for(;hNe(r);)i+=String.fromCharCode(r),r=e.peek(++t);return G9=e,q9=n,Y9=i?i.toLowerCase():r==mNe||r==gNe?void 0:null}const PK=60,jT=62,o3=47,mNe=63,gNe=33,bNe=45;function Z9(e,t){this.name=e,this.parent=t,this.hash=t?t.hash:0;for(let n=0;n-1?new Z9(nI(r,1)||"",e):e},reduce(e,t){return t==RK&&e?e.parent:e},reuse(e,t,n,r){let i=t.type.id;return i==UT||i==lNe?new Z9(nI(r,1)||"",e):e},hash(e){return e?e.hash:0},strict:!1}),vNe=new Ul((e,t)=>{if(e.next!=PK){e.next<0&&t.context&&e.acceptToken(DA);return}e.advance();let n=e.next==o3;n&&e.advance();let r=nI(e,0);if(r===void 0)return;if(!r)return e.acceptToken(n?nNe:UT);let i=t.context?t.context.name:null;if(n){if(r==i)return e.acceptToken(JDe);if(i&&pNe[i])return e.acceptToken(DA,-2);if(t.dialectEnabled(cNe))return e.acceptToken(eNe);for(let o=t.context;o;o=o.parent)if(o.name==r)return;e.acceptToken(tNe)}else{if(r=="script")return e.acceptToken(xK);if(r=="style")return e.acceptToken(CK);if(r=="textarea")return e.acceptToken(AK);if(fNe.hasOwnProperty(r))return e.acceptToken(_K);i&&Q9[i]&&Q9[i][r]?e.acceptToken(DA,-1):e.acceptToken(UT)}},{contextual:!0}),ENe=new Ul(e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(W9);break}if(e.next==bNe)t++;else if(e.next==jT&&t>=2){n>=3&&e.acceptToken(W9,-2);break}else t=0;e.advance()}});function SNe(e){for(;e;e=e.parent)if(e.name=="svg"||e.name=="math")return!0;return!1}const TNe=new Ul((e,t)=>{if(e.next==o3&&e.peek(1)==jT){let n=t.dialectEnabled(dNe)||SNe(t.context);e.acceptToken(n?KDe:H9,2)}else e.next==jT&&e.acceptToken(H9,1)});function a3(e,t,n){let r=2+e.length;return new Ul(i=>{for(let o=0,a=0,s=0;;s++){if(i.next<0){s&&i.acceptToken(t);break}if(o==0&&i.next==PK||o==1&&i.next==o3||o>=2&&oa?i.acceptToken(t,-a):i.acceptToken(n,-(a-2));break}else if((i.next==10||i.next==13)&&s){i.acceptToken(t,1);break}else o=a=0;i.advance()}})}const wNe=a3("script",QDe,YDe),kNe=a3("style",GDe,qDe),xNe=a3("textarea",ZDe,XDe),CNe=Ig({"Text RawText":he.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":he.angleBracket,TagName:he.tagName,"MismatchedCloseTag/TagName":[he.tagName,he.invalid],AttributeName:he.attributeName,"AttributeValue UnquotedAttributeValue":he.attributeValue,Is:he.definitionOperator,"EntityReference CharacterReference":he.character,Comment:he.blockComment,ProcessingInst:he.processingInstruction,DoctypeDecl:he.documentMeta}),ANe=lg.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%WQ&rO,59fO%`Q&rO,59iO%hQ&rO,59lO%sQ&rO,59nOOOa'#D^'#D^O%{OaO'#CxO&WOaO,59[OOOb'#D_'#D_O&`ObO'#C{O&kObO,59[OOOd'#D`'#D`O&sOdO'#DOO'OOdO,59[OOO`'#Da'#DaO'WO!rO,59[O'_Q#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'dO$fO,59oOOO`,59o,59oO'lQ#|O,59qO'qQ#|O,59rOOO`-E7W-E7WO'vQ&rO'#CsOOQW'#DZ'#DZO(UQ&rO1G.wOOOa1G.w1G.wO(^Q&rO1G/QOOOb1G/Q1G/QO(fQ&rO1G/TOOOd1G/T1G/TO(nQ&rO1G/WOOO`1G/W1G/WOOO`1G/Y1G/YO(yQ&rO1G/YOOOa-E7[-E7[O)RQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)WQ#tO'#C|OOOd-E7^-E7^O)]Q#tO'#DPOOO`-E7_-E7_O)bQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O)gQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rOOO`7+$t7+$tO)rQ#|O,59eO)wQ#|O,59hO)|Q#|O,59kOOO`1G/X1G/XO*RO7[O'#CvO*dOMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O*uO7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+WOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:"+s~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|OhyO~OS!OOhyO~OS!QOhyO~OS!SOT!TOhyO~OS!TOhyO~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!dOSgXhgXTgX~OS!fOhyO~OS!gOhyO~OS!hOhyO~OS!iOT!jOhyO~OS!jOhyO~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{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!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:ONe,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:[CNe],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=s.type.id;if(u==oNe)return NA(s,l,n);if(u==aNe)return NA(s,l,r);if(u==sNe)return NA(s,l,i);if(u==RK&&o.length){let c=s.node,d=c.firstChild,p=d&&X9(d,l),h;if(p){for(let m of o)if(m.tag==p&&(!m.attrs||m.attrs(h||(h=LK(c,l))))){let b=c.lastChild,O=b.type.id==uNe?b.from:c.to;if(O>d.to)return{parser:m.parser,overlay:[{from:d.to,to:O}]}}}}if(a&&u==IK){let c=s.node,d;if(d=c.firstChild){let p=a[l.read(d.from,d.to)];if(p)for(let h of p){if(h.tagName&&h.tagName!=X9(c.parent,l))continue;let m=c.lastChild;if(m.type.id==tI){let b=m.from+1,O=m.lastChild,y=m.to-(O&&O.isError?0:1);if(y>b)return{parser:h.parser,overlay:[{from:b,to:y}]}}else if(m.type.id==DK)return{parser:h.parser,overlay:[{from:m.from,to:m.to}]}}}}return null})}const _Ne=99,K9=1,RNe=100,INe=101,J9=2,$K=[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],DNe=58,NNe=40,FK=95,PNe=91,tS=45,LNe=46,MNe=35,$Ne=37,FNe=38,BNe=92,UNe=10;function t1(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function jNe(e){return e>=48&&e<=57}const zNe=new Ul((e,t)=>{for(let n=!1,r=0,i=0;;i++){let{next:o}=e;if(t1(o)||o==tS||o==FK||n&&jNe(o))!n&&(o!=tS||i>0)&&(n=!0),r===i&&o==tS&&r++,e.advance();else if(o==BNe&&e.peek(1)!=UNe)e.advance(),e.next>-1&&e.advance(),n=!0;else{n&&e.acceptToken(o==NNe?RNe:r==2&&t.canShift(J9)?J9:INe);break}}}),VNe=new Ul(e=>{if($K.includes(e.peek(-1))){let{next:t}=e;(t1(t)||t==FK||t==MNe||t==LNe||t==PNe||t==DNe&&t1(e.peek(1))||t==tS||t==FNe)&&e.acceptToken(_Ne)}}),HNe=new Ul(e=>{if(!$K.includes(e.peek(-1))){let{next:t}=e;if(t==$Ne&&(e.advance(),e.acceptToken(K9)),t1(t)){do e.advance();while(t1(e.next));e.acceptToken(K9)}}}),WNe=Ig({"AtKeyword import charset namespace keyframes media supports":he.definitionKeyword,"from to selector":he.keyword,NamespaceName:he.namespace,KeyframeName:he.labelName,KeyframeRangeName:he.operatorKeyword,TagName:he.tagName,ClassName:he.className,PseudoClassName:he.constant(he.className),IdName:he.labelName,"FeatureName PropertyName":he.propertyName,AttributeName:he.attributeName,NumberLiteral:he.number,KeywordQuery:he.keyword,UnaryQueryOp:he.operatorKeyword,"CallTag ValueName":he.atom,VariableName:he.variableName,Callee:he.operatorKeyword,Unit:he.unit,"UniversalSelector NestingSelector":he.definitionOperator,MatchOp:he.compareOperator,"ChildOp SiblingOp, LogicOp":he.logicOperator,BinOp:he.arithmeticOperator,Important:he.modifier,Comment:he.blockComment,ColorLiteral:he.color,"ParenthesizedContent StringLiteral":he.string,":":he.punctuation,"PseudoOp #":he.derefOperator,"; ,":he.separator,"( )":he.paren,"[ ]":he.squareBracket,"{ }":he.brace}),QNe={__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},YNe={__proto__:null,"@import":118,"@media":142,"@charset":146,"@namespace":150,"@keyframes":156,"@supports":168},GNe={__proto__:null,not:132,only:132},qNe=lg.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:[VNe,HNe,zNe,1,2,3,4,new BT("m~RRYZ[z{a~~g~aO#^~~dP!P!Qg~lO#_~~",28,105)],topRules:{StyleSheet:[0,4],Styles:[1,86]},specialized:[{term:100,get:e=>QNe[e]||-1},{term:58,get:e=>YNe[e]||-1},{term:101,get:e=>GNe[e]||-1}],tokenPrec:1200});let PA=null;function LA(){if(!PA&&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)));PA=t.sort().map(r=>({type:"property",label:r}))}return PA||[]}const ej=["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})),tj=["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}))),ZNe=["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})),Vc=/^(\w[\w-]*|-\w[\w-]*|)$/,XNe=/^-(-[\w-]*)?$/;function KNe(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 nj=new _Z,JNe=["Declaration"];function ePe(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function BK(e,t,n){if(t.to-t.from>4096){let r=nj.get(t);if(r)return r;let i=[],o=new Set,a=t.cursor(kr.IncludeAnonymous);if(a.firstChild())do for(let s of BK(e,a.node,n))o.has(s.label)||(o.add(s.label),i.push(s));while(a.nextSibling());return nj.set(t,i),i}else{let r=[],i=new Set;return t.cursor().iterate(o=>{var a;if(n(o)&&o.matchContext(JNe)&&((a=o.node.nextSibling)===null||a===void 0?void 0:a.name)==":"){let s=e.sliceString(o.from,o.to);i.has(s)||(i.add(s),r.push({label:s,type:"variable"}))}}),r}}const tPe=e=>t=>{let{state:n,pos:r}=t,i=Cr(n).resolveInner(r,-1),o=i.type.isError&&i.from==i.to-1&&n.doc.sliceString(i.from,i.to)=="-";if(i.name=="PropertyName"||(o||i.name=="TagName")&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:LA(),validFor:Vc};if(i.name=="ValueName")return{from:i.from,options:tj,validFor:Vc};if(i.name=="PseudoClassName")return{from:i.from,options:ej,validFor:Vc};if(e(i)||(t.explicit||o)&&KNe(i,n.doc))return{from:e(i)||o?i.from:r,options:BK(n.doc,ePe(i),e),validFor:XNe};if(i.name=="TagName"){for(let{parent:l}=i;l;l=l.parent)if(l.name=="Block")return{from:i.from,options:LA(),validFor:Vc};return{from:i.from,options:ZNe,validFor:Vc}}if(!t.explicit)return null;let a=i.resolve(r),s=a.childBefore(r);return s&&s.name==":"&&a.name=="PseudoClassSelector"?{from:r,options:ej,validFor:Vc}:s&&s.name==":"&&a.name=="Declaration"||a.name=="ArgList"?{from:r,options:tj,validFor:Vc}:a.name=="Block"||a.name=="Styles"?{from:r,options:LA(),validFor:Vc}:null},nPe=tPe(e=>e.name=="VariableName"),zT=rg.define({name:"css",parser:qNe.configure({props:[sO.add({Declaration:JE()}),Dg.add({"Block KeyframeList":$Z})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function rPe(){return new Yy(zT,zT.data.of({autocomplete:nPe}))}const iPe=309,rj=1,oPe=2,aPe=3,sPe=310,lPe=312,uPe=313,cPe=4,dPe=5,fPe=0,rI=[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],UK=125,pPe=59,iI=47,hPe=42,mPe=43,gPe=45,bPe=60,yPe=44,OPe=new kK({start:!1,shift(e,t){return t==cPe||t==dPe||t==lPe?e:t==uPe},strict:!1}),vPe=new Ul((e,t)=>{let{next:n}=e;(n==UK||n==-1||t.context)&&e.acceptToken(sPe)},{contextual:!0,fallback:!0}),EPe=new Ul((e,t)=>{let{next:n}=e,r;rI.indexOf(n)>-1||n==iI&&((r=e.peek(1))==iI||r==hPe)||n!=UK&&n!=pPe&&n!=-1&&!t.context&&e.acceptToken(iPe)},{contextual:!0}),SPe=new Ul((e,t)=>{let{next:n}=e;if((n==mPe||n==gPe)&&(e.advance(),n==e.next)){e.advance();let r=!t.context&&t.canShift(rj);e.acceptToken(r?rj:oPe)}},{contextual:!0});function MA(e,t){return e>=65&&e<=90||e>=97&&e<=122||e==95||e>=192||!t&&e>=48&&e<=57}const TPe=new Ul((e,t)=>{if(e.next!=bPe||!t.dialectEnabled(fPe)||(e.advance(),e.next==iI))return;let n=0;for(;rI.indexOf(e.next)>-1;)e.advance(),n++;if(MA(e.next,!0)){for(e.advance(),n++;MA(e.next,!1);)e.advance(),n++;for(;rI.indexOf(e.next)>-1;)e.advance(),n++;if(e.next==yPe)return;for(let r=0;;r++){if(r==7){if(!MA(e.next,!0))return;break}if(e.next!="extends".charCodeAt(r))break;e.advance(),n++}}e.acceptToken(aPe,-n)}),wPe=Ig({"get set async static":he.modifier,"for while do if else switch try catch finally return throw break continue default case":he.controlKeyword,"in of await yield void typeof delete instanceof":he.operatorKeyword,"let var const using function class extends":he.definitionKeyword,"import export from":he.moduleKeyword,"with debugger as new":he.keyword,TemplateString:he.special(he.string),super:he.atom,BooleanLiteral:he.bool,this:he.self,null:he.null,Star:he.modifier,VariableName:he.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":he.function(he.variableName),VariableDefinition:he.definition(he.variableName),Label:he.labelName,PropertyName:he.propertyName,PrivatePropertyName:he.special(he.propertyName),"CallExpression/MemberExpression/PropertyName":he.function(he.propertyName),"FunctionDeclaration/VariableDefinition":he.function(he.definition(he.variableName)),"ClassDeclaration/VariableDefinition":he.definition(he.className),PropertyDefinition:he.definition(he.propertyName),PrivatePropertyDefinition:he.definition(he.special(he.propertyName)),UpdateOp:he.updateOperator,"LineComment Hashbang":he.lineComment,BlockComment:he.blockComment,Number:he.number,String:he.string,Escape:he.escape,ArithOp:he.arithmeticOperator,LogicOp:he.logicOperator,BitOp:he.bitwiseOperator,CompareOp:he.compareOperator,RegExp:he.regexp,Equals:he.definitionOperator,Arrow:he.function(he.punctuation),": Spread":he.punctuation,"( )":he.paren,"[ ]":he.squareBracket,"{ }":he.brace,"InterpolationStart InterpolationEnd":he.special(he.brace),".":he.derefOperator,", ;":he.separator,"@":he.meta,TypeName:he.typeName,TypeDefinition:he.definition(he.typeName),"type enum interface implements namespace module declare":he.definitionKeyword,"abstract global Privacy readonly override":he.modifier,"is keyof unique infer":he.operatorKeyword,JSXAttributeValue:he.attributeValue,JSXText:he.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":he.angleBracket,"JSXIdentifier JSXNameSpacedName":he.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":he.attributeName,"JSXBuiltin/JSXIdentifier":he.standard(he.tagName)}),kPe={__proto__:null,export:18,as:23,from:31,default:34,async:39,function:40,extends:52,this:56,true:64,false:64,null:76,void:80,typeof:84,super:102,new:136,delete:152,yield:161,await:165,class:170,public:227,private:227,protected:227,readonly:229,instanceof:248,satisfies:251,in:252,const:254,import:286,keyof:339,unique:343,infer:349,is:385,abstract:405,implements:407,type:409,let:412,var:414,using:417,interface:423,enum:427,namespace:433,module:435,declare:439,global:443,for:462,of:471,while:474,with:478,do:482,if:486,else:488,switch:492,case:498,try:504,catch:508,finally:512,return:516,throw:520,break:524,continue:528,debugger:532},xPe={__proto__:null,async:123,get:125,set:127,declare:187,public:189,private:189,protected:189,static:191,abstract:193,override:195,readonly:201,accessor:203,new:389},CPe={__proto__:null,"<":143},APe=lg.deserialize({version:14,states:"$RQWO'#CdO>cQWO'#H[O>kQWO'#HbO>kQWO'#HdO`Q^O'#HfO>kQWO'#HhO>kQWO'#HkO>pQWO'#HqO>uQ07iO'#HwO%[Q^O'#HyO?QQ07iO'#H{O?]Q07iO'#H}O9kQ07hO'#IPO?hQ08SO'#ChO@jQ`O'#DiQOQWOOO%[Q^O'#EPOAQQWO'#ESO:RQ7[O'#EjOA]QWO'#EjOAhQpO'#FbOOQU'#Cf'#CfOOQ07`'#Dn'#DnOOQ07`'#Jm'#JmO%[Q^O'#JmOOQO'#Jq'#JqOOQO'#Ib'#IbOBhQ`O'#EcOOQ07`'#Eb'#EbOCdQ07pO'#EcOCnQ`O'#EVOOQO'#Jp'#JpODSQ`O'#JqOEaQ`O'#EVOCnQ`O'#EcPEnO!0LbO'#CaPOOO)CDu)CDuOOOO'#IX'#IXOEyO!bO,59TOOQ07b,59T,59TOOOO'#IY'#IYOFXO#tO,59TO%[Q^O'#D`OOOO'#I['#I[OFgO?MpO,59xOOQ07b,59x,59xOFuQ^O'#I]OGYQWO'#JkOI[QrO'#JkO+}Q^O'#JkOIcQWO,5:OOIyQWO'#ElOJWQWO'#JyOJcQWO'#JxOJcQWO'#JxOJkQWO,5;YOJpQWO'#JwOOQ07f,5:Z,5:ZOJwQ^O,5:ZOLxQ08SO,5:eOMiQWO,5:mONSQ07hO'#JvONZQWO'#JuO9ZQWO'#JuONoQWO'#JuONwQWO,5;XON|QWO'#JuO!#UQrO'#JjOOQ07b'#Ch'#ChO%[Q^O'#ERO!#tQpO,5:rOOQO'#Jr'#JrOOQO-EmOOQU'#J`'#J`OOQU,5>n,5>nOOQU-EpQWO'#HQO9aQWO'#HSO!CgQWO'#HSO:RQ7[O'#HUO!ClQWO'#HUOOQU,5=j,5=jO!CqQWO'#HVO!DSQWO'#CnO!DXQWO,59OO!DcQWO,59OO!FhQ^O,59OOOQU,59O,59OO!FxQ07hO,59OO%[Q^O,59OO!ITQ^O'#H^OOQU'#H_'#H_OOQU'#H`'#H`O`Q^O,5=vO!IkQWO,5=vO`Q^O,5=|O`Q^O,5>OO!IpQWO,5>QO`Q^O,5>SO!IuQWO,5>VO!IzQ^O,5>]OOQU,5>c,5>cO%[Q^O,5>cO9kQ07hO,5>eOOQU,5>g,5>gO!NUQWO,5>gOOQU,5>i,5>iO!NUQWO,5>iOOQU,5>k,5>kO!NZQ`O'#D[O%[Q^O'#JmO!NxQ`O'#JmO# gQ`O'#DjO# xQ`O'#DjO#$ZQ^O'#DjO#$bQWO'#JlO#$jQWO,5:TO#$oQWO'#EpO#$}QWO'#JzO#%VQWO,5;ZO#%[Q`O'#DjO#%iQ`O'#EUOOQ07b,5:n,5:nO%[Q^O,5:nO#%pQWO,5:nO>pQWO,5;UO!@}Q`O,5;UO!AVQ7[O,5;UO:RQ7[O,5;UO#%xQWO,5@XO#%}Q$ISO,5:rOOQO-E<`-E<`O#'TQ07pO,5:}OCnQ`O,5:qO#'_Q`O,5:qOCnQ`O,5:}O!@rQ07hO,5:qOOQ07`'#Ef'#EfOOQO,5:},5:}O%[Q^O,5:}O#'lQ07hO,5:}O#'wQ07hO,5:}O!@}Q`O,5:qOOQO,5;T,5;TO#(VQ07hO,5:}POOO'#IV'#IVP#(kO!0LbO,58{POOO,58{,58{OOOO-EwO+}Q^O,5>wOOQO,5>},5>}O#)VQ^O'#I]OOQO-EjQ08SO1G0{O#>wQ08SO1G0{O#@uQ08SO1G0{O#CuQ(CYO'#ChO#EsQ(CYO1G1^O#EzQ(CYO'#JjO!,lQWO1G1dO#F[Q08SO,5?TOOQ07`-EkQWO1G3lO$2dQ^O1G3nO$6hQ^O'#HmOOQU1G3q1G3qO$6uQWO'#HsO>pQWO'#HuOOQU1G3w1G3wO$6}Q^O1G3wO9kQ07hO1G3}OOQU1G4P1G4POOQ07`'#GY'#GYO9kQ07hO1G4RO9kQ07hO1G4TO$;UQWO,5@XO!*fQ^O,5;[O9ZQWO,5;[O>pQWO,5:UO!*fQ^O,5:UO!@}Q`O,5:UO$;ZQ(CYO,5:UOOQO,5;[,5;[O$;eQ`O'#I^O$;{QWO,5@WOOQ07b1G/o1G/oO$pQWO1G0pO!@}Q`O1G0pO!AVQ7[O1G0pOOQ07`1G5s1G5sO!@rQ07hO1G0]OOQO1G0i1G0iO%[Q^O1G0iO$PQrO1G4cOOQO1G4i1G4iO%[Q^O,5>wO$>ZQWO1G5qO$>cQWO1G6OO$>kQrO1G6PO9ZQWO,5>}O$>uQ08SO1G5|O%[Q^O1G5|O$?VQ07hO1G5|O$?hQWO1G5{O$?hQWO1G5{O9ZQWO1G5{O$?pQWO,5?QO9ZQWO,5?QOOQO,5?Q,5?QO$@UQWO,5?QO$'ZQWO,5?QOOQO-EXOOQU,5>X,5>XO%[Q^O'#HnO%7dQWO'#HpOOQU,5>_,5>_O9ZQWO,5>_OOQU,5>a,5>aOOQU7+)c7+)cOOQU7+)i7+)iOOQU7+)m7+)mOOQU7+)o7+)oO%7iQ`O1G5sO%7}Q(CYO1G0vO%8XQWO1G0vOOQO1G/p1G/pO%8dQ(CYO1G/pO>pQWO1G/pO!*fQ^O'#DjOOQO,5>x,5>xOOQO-E<[-E<[OOQO,5?O,5?OOOQO-EpQWO7+&[O!@}Q`O7+&[OOQO7+%w7+%wO$=mQ08SO7+&TOOQO7+&T7+&TO%[Q^O7+&TO%8nQ07hO7+&TO!@rQ07hO7+%wO!@}Q`O7+%wO%8yQ07hO7+&TO%9XQ08SO7++hO%[Q^O7++hO%9iQWO7++gO%9iQWO7++gOOQO1G4l1G4lO9ZQWO1G4lO%9qQWO1G4lOOQO7+%|7+%|O#%sQWO<zQ08SO1G2ZO%A]Q08SO1G2mO%ChQ08SO1G2oO%EsQ7[O,5>yOOQO-E<]-E<]O%E}QrO,5>zO%[Q^O,5>zOOQO-E<^-E<^O%FXQWO1G5uOOQ07b<YOOQU,5>[,5>[O&5oQWO1G3yO9ZQWO7+&bO!*fQ^O7+&bOOQO7+%[7+%[O&5tQ(CYO1G6PO>pQWO7+%[OOQ07b<pQWO<pQWO7+)eO'&sQWO<}AN>}O%[Q^OAN?ZOOQO<qQ(CYOG26}O!*fQ^O'#DyO1PQWO'#EWO'@gQrO'#JiO!*fQ^O'#DqO'@nQ^O'#D}O'@uQrO'#ChO'C]QrO'#ChO!*fQ^O'#EPO'CmQ^O,5;VO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O'#IiO'EpQWO,5a#@O#@^#@d#Ax#BW#Cr#DQ#DW#D^#Dd#Dn#Dt#Dz#EU#Eh#EnPPPPPPPPPP#EtPPPPPPP#Fi#Ip#KP#KW#K`PPPP$!d$%Z$+r$+u$+x$,q$,t$,w$-O$-WPP$-^$-b$.Y$/X$/]$/qPP$/u$/{$0PP$0S$0W$0Z$1P$1h$2P$2T$2W$2Z$2a$2d$2h$2lR!{RoqOXst!Z#c%j&m&o&p&r,h,m1w1zY!uQ'Z-Y1[5]Q%pvQ%xyQ&P|Q&e!VS'R!e-QQ'a!iS'g!r!xS*c$|*hQ+f%yQ+s&RQ,X&_Q-W'YQ-b'bQ-j'hQ/|*jQ1f,YR;Y:g%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%j%p%}&f&i&m&o&p&r&v'O']'m'}(P(V(^(r(v(z)y+O+S,e,h,m-^-f-t-z.l.s0[0a0q1_1o1p1r1t1w1z1|2m2s3Z5Y5d5t5u5x6]7w7|8]8gS#p]:d!r)[$[$m'S)n,y,|.{2]3p5W6S9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]Q*u%ZQ+k%{Q,Z&bQ,b&jQ.c;QQ0h+^Q0l+`Q0w+lQ1n,`Q2{.[Q4v0rQ5k1gQ6i3PQ6u;RQ7h4wR8m6j&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%j%p%}&f&i&j&m&o&p&r&v'O'S']'m'}(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]t!nQ!r!u!x!y'R'Y'Z'g'h'i-Q-W-Y-j1[5]5_$v$si#u#w$c$d$x${%O%Q%[%]%a)u){)}*P*R*Y*`*p*q+]+`+w+z.Z.i/Z/j/k/m0Q0S0^1R1U1^3O3x4S4[4f4n4p5c6g7T7^7y8j8w9[9n:O:W:y:z:|:};O;P;S;T;U;V;W;X;_;`;a;b;c;d;g;h;i;j;k;l;m;n;q;r < 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 : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression 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 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 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:371,context:OPe,nodeProps:[["isolate",-8,4,5,13,33,35,48,50,52,""],["group",-26,8,16,18,65,201,205,209,210,212,215,218,228,230,236,238,240,242,245,251,257,259,261,263,265,267,268,"Statement",-32,12,13,28,31,32,38,48,51,52,54,59,67,75,79,81,83,84,106,107,116,117,134,137,139,140,141,142,144,145,164,165,167,"Expression",-23,27,29,33,37,39,41,168,170,172,173,175,176,177,179,180,181,183,184,185,195,197,199,200,"Type",-3,87,99,105,"ClassItem"],["openedBy",22,"<",34,"InterpolationStart",53,"[",57,"{",72,"(",157,"JSXStartCloseTag"],["closedBy",23,">",36,"InterpolationEnd",47,"]",58,"}",73,")",162,"JSXEndTag"]],propSources:[wPe],skippedNodes:[0,4,5,271],repeatNodeCount:37,tokenData:"$Fj(CSR!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#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Ns!`!a$#_!a!b$(l!b!c$,k!c!}Er!}#O$-u#O#P$/P#P#Q$4h#Q#R$5r#R#SEr#S#T$7P#T#o$8Z#o#p$q#r#s$?}#s$f%Z$f$g+g$g#BYEr#BY#BZ$AX#BZ$ISEr$IS$I_$AX$I_$I|Er$I|$I}$Dd$I}$JO$Dd$JO$JTEr$JT$JU$AX$JU$KVEr$KV$KW$AX$KW&FUEr&FU&FV$AX&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AX?HUOEr(n%d_$f&j(Op(R!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$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$f&j(R!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(R!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$f&j(OpOY(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(OpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Op(R!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z(CS+rq$f&j(Op(R!b't(;dOX%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%Z(CS.ST(P#S$f&j'u(;dO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c(CS.n_$f&j(Op(R!b'u(;dOY%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%#`/x`$f&j!o$Ip(Op(R!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%#S1V`#t$Id$f&j(Op(R!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%#S2d_#t$Id$f&j(Op(R!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$/|3l_'}$(n$f&j(R!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$f&j(R!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$f&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$a`$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$a``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$a`$f&j(R!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(R!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$a`(R!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k#%|:hh$f&j(Op(R!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXVS$f&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSVSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWVS(R!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]VS$f&j(OpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWVS(OpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYVS(Op(R!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%lQ^$f&j!USOY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@Y!_!}!=y!}#O!Bw#O#P!Dj#P#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!?Ta$f&j!USO!^&c!_#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&cS!@_X!USOY!@YZ!P!@Y!P!Q!@z!Q!}!@Y!}#O!Ac#O#P!Bb#P;'S!@Y;'S;=`!Bq<%lO!@YS!APU!US#Z#[!@z#]#^!@z#a#b!@z#g#h!@z#i#j!@z#m#n!@zS!AfVOY!AcZ#O!Ac#O#P!A{#P#Q!@Y#Q;'S!Ac;'S;=`!B[<%lO!AcS!BOSOY!AcZ;'S!Ac;'S;=`!B[<%lO!AcS!B_P;=`<%l!AcS!BeSOY!@YZ;'S!@Y;'S;=`!Bq<%lO!@YS!BtP;=`<%l!@Y&n!B|[$f&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#O!Bw#O#P!Cr#P#Q!=y#Q#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!CwX$f&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!DgP;=`<%l!Bw&n!DoX$f&jOY!=yYZ&cZ!^!=y!^!_!@Y!_#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!E_P;=`<%l!=y(Q!Eki$f&j(R!b!USOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#Z&}#Z#[!Eb#[#]&}#]#^!Eb#^#a&}#a#b!Eb#b#g&}#g#h!Eb#h#i&}#i#j!Eb#j#m&}#m#n!Eb#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!f!GaZ(R!b!USOY!GYZw!GYwx!@Yx!P!GY!P!Q!HS!Q!}!GY!}#O!Ic#O#P!Bb#P;'S!GY;'S;=`!JZ<%lO!GY!f!HZb(R!b!USOY'}Zw'}x#O'}#P#Z'}#Z#[!HS#[#]'}#]#^!HS#^#a'}#a#b!HS#b#g'}#g#h!HS#h#i'}#i#j!HS#j#m'}#m#n!HS#n;'S'};'S;=`(f<%lO'}!f!IhX(R!bOY!IcZw!Icwx!Acx#O!Ic#O#P!A{#P#Q!GY#Q;'S!Ic;'S;=`!JT<%lO!Ic!f!JWP;=`<%l!Ic!f!J^P;=`<%l!GY(Q!Jh^$f&j(R!bOY!JaYZ&cZw!Jawx!Bwx!^!Ja!^!_!Ic!_#O!Ja#O#P!Cr#P#Q!Q#V#X%Z#X#Y!4|#Y#b%Z#b#c#Zd$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#?tf$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#b%Z#b#c#kPe[e]||-1},{term:334,get:e=>xPe[e]||-1},{term:70,get:e=>CPe[e]||-1}],tokenPrec:14638}),jK=[ma("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),ma("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),ma("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),ma("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),ma("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),ma(`try { +`);r=i<0?n:n.slice(0,i)}return t+r.length>this.to?r.slice(0,this.to-t):r}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(t,n,r=0){this.block=JT.create(t,r,this.lineStart+n,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(t,n,r=0){this.startContext(this.parser.getNodeType(t),n,r)}addNode(t,n,r){typeof t=="number"&&(t=new cr(this.parser.nodeSet.types[t],dg,dg,(r??this.prevLineEnd())-n)),this.block.addChild(t,n-this.block.from)}addElement(t){this.block.addChild(t.toTree(this.parser.nodeSet),t.from-this.block.from)}addLeafElement(t,n){this.addNode(this.buffer.writeElements(II(n.children,t.marks),-n.from).finish(n.type,n.to-n.from),n.from)}finishContext(){let t=this.stack.pop(),n=this.stack[this.stack.length-1];n.addChild(t.toTree(this.parser.nodeSet),t.from-n.from),this.block=n}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(t){return this.ranges.length>1?Kee(this.ranges,0,t.topNode,this.ranges[0].from,this.reusePlaceholders):t}finishLeaf(t){for(let r of t.parsers)if(r.finish(this,t))return;let n=II(this.parser.parseInline(t.content,t.start),t.marks);this.addNode(this.buffer.writeElements(n,-t.start).finish(Rt.Paragraph,t.content.length),t.start)}elt(t,n,r,i){return typeof t=="string"?Gn(this.parser.getNodeType(t),n,r,i):new tte(t,n)}get buffer(){return new ete(this.parser.nodeSet)}}function Kee(e,t,n,r,i){let o=e[t].to,a=[],s=[],l=n.from+r;function u(c,d){for(;d?c>=o:c>o;){let p=e[t+1].from-o;r+=p,c+=p,t++,o=e[t].to}}for(let c=n.firstChild;c;c=c.nextSibling){u(c.from+r,!0);let d=c.from+r,p,h=i.get(c.tree);h?p=h:c.to+r>o?(p=Kee(e,t,c,r,i),u(c.to+r,!1)):p=c.toTree(),a.push(p),s.push(d-l)}return u(n.to+r,!1),new cr(n.type,a,s,n.to+r-l,n.tree?n.tree.propValues:void 0)}class wx extends H3{constructor(t,n,r,i,o,a,s,l,u){super(),this.nodeSet=t,this.blockParsers=n,this.leafBlockParsers=r,this.blockNames=i,this.endLeafBlock=o,this.skipContextMarkup=a,this.inlineParsers=s,this.inlineNames=l,this.wrappers=u,this.nodeTypes=Object.create(null);for(let c of t.types)this.nodeTypes[c.name]=c.id}createParse(t,n,r){let i=new LBe(this,t,n,r);for(let o of this.wrappers)i=o(i,t,n,r);return i}configure(t){let n=RI(t);if(!n)return this;let{nodeSet:r,skipContextMarkup:i}=this,o=this.blockParsers.slice(),a=this.leafBlockParsers.slice(),s=this.blockNames.slice(),l=this.inlineParsers.slice(),u=this.inlineNames.slice(),c=this.endLeafBlock.slice(),d=this.wrappers;if(j0(n.defineNodes)){i=Object.assign({},i);let p=r.types.slice(),h;for(let m of n.defineNodes){let{name:b,block:O,composite:y,style:v}=typeof m=="string"?{name:m}:m;if(p.some(C=>C.name==b))continue;y&&(i[p.length]=(C,w,E)=>y(w,E,C.value));let S=p.length,k=y?["Block","BlockContext"]:O?S>=Rt.ATXHeading1&&S<=Rt.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;p.push(Bi.define({id:S,name:b,props:k&&[[vn.group,k]]})),v&&(h||(h={}),Array.isArray(v)||v instanceof Ol?h[b]=v:Object.assign(h,v))}r=new yO(p),h&&(r=r.extend(Ug(h)))}if(j0(n.props)&&(r=r.extend(...n.props)),j0(n.remove))for(let p of n.remove){let h=this.blockNames.indexOf(p),m=this.inlineNames.indexOf(p);h>-1&&(o[h]=a[h]=void 0),m>-1&&(l[m]=void 0)}if(j0(n.parseBlock))for(let p of n.parseBlock){let h=s.indexOf(p.name);if(h>-1)o[h]=p.parse,a[h]=p.leaf;else{let m=p.before?cE(s,p.before):p.after?cE(s,p.after)+1:s.length-1;o.splice(m,0,p.parse),a.splice(m,0,p.leaf),s.splice(m,0,p.name)}p.endLeaf&&c.push(p.endLeaf)}if(j0(n.parseInline))for(let p of n.parseInline){let h=u.indexOf(p.name);if(h>-1)l[h]=p.parse;else{let m=p.before?cE(u,p.before):p.after?cE(u,p.after)+1:u.length-1;l.splice(m,0,p.parse),u.splice(m,0,p.name)}}return n.wrap&&(d=d.concat(n.wrap)),new wx(r,o,a,s,c,i,l,u,d)}getNodeType(t){let n=this.nodeTypes[t];if(n==null)throw new RangeError(`Unknown node type '${t}'`);return n}parseInline(t,n){let r=new $Be(this,t,n);e:for(let i=n;i=0){i=s;continue e}}i++}return r.resolveMarkers(0)}}function j0(e){return e!=null&&e.length>0}function RI(e){if(!Array.isArray(e))return e;if(e.length==0)return null;let t=RI(e[0]);if(e.length==1)return t;let n=RI(e.slice(1));if(!n||!t)return t||n;let r=(a,s)=>(a||dg).concat(s||dg),i=t.wrap,o=n.wrap;return{props:r(t.props,n.props),defineNodes:r(t.defineNodes,n.defineNodes),parseBlock:r(t.parseBlock,n.parseBlock),parseInline:r(t.parseInline,n.parseInline),remove:r(t.remove,n.remove),wrap:i?o?(a,s,l,u)=>i(o(a,s,l,u),s,l,u):i:o}}function cE(e,t){let n=e.indexOf(t);if(n<0)throw new RangeError(`Position specified relative to unknown parser ${t}`);return n}let Jee=[Bi.none];for(let e=1,t;t=Rt[e];e++)Jee[e]=Bi.define({id:e,name:t,props:e>=Rt.Escape?[]:[[vn.group,e in Vee?["Block","BlockContext"]:["Block","LeafBlock"]]],top:t=="Document"});const dg=[];let ete=class{constructor(t){this.nodeSet=t,this.content=[],this.nodes=[]}write(t,n,r,i=0){return this.content.push(t,n,r,4+i*4),this}writeElements(t,n=0){for(let r of t)r.writeTo(this,n);return this}finish(t,n){return cr.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:t,length:n})}},f1=class{constructor(t,n,r,i=dg){this.type=t,this.from=n,this.to=r,this.children=i}writeTo(t,n){let r=t.content.length;t.writeElements(this.children,n),t.content.push(this.type,this.from+n,this.to+n,t.content.length+4-r)}toTree(t){return new ete(t).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}};class tte{constructor(t,n){this.tree=t,this.from=n}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return dg}writeTo(t,n){t.nodes.push(this.tree),t.content.push(t.nodes.length-1,this.from+n,this.to+n,-1)}toTree(){return this.tree}}function Gn(e,t,n,r){return new f1(e,t,n,r)}const nte={resolve:"Emphasis",mark:"EmphasisMark"},rte={resolve:"Emphasis",mark:"EmphasisMark"},z0={},Sj={};class vl{constructor(t,n,r,i){this.type=t,this.from=n,this.to=r,this.side=i}}const Tj="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";let p1=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{p1=new RegExp("[\\p{Pc}|\\p{Pd}|\\p{Pe}|\\p{Pf}|\\p{Pi}|\\p{Po}|\\p{Ps}]","u")}catch{}const QA={Escape(e,t,n){if(t!=92||n==e.end-1)return-1;let r=e.char(n+1);for(let i=0;i]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(r);if(i)return e.append(Gn(Rt.Autolink,n,n+1+i[0].length,[Gn(Rt.LinkMark,n,n+1),Gn(Rt.URL,n+1,n+i[0].length),Gn(Rt.LinkMark,n+i[0].length,n+1+i[0].length)]));let o=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(r);if(o)return e.append(Gn(Rt.Comment,n,n+1+o[0].length));let a=/^\?[^]*?\?>/.exec(r);if(a)return e.append(Gn(Rt.ProcessingInstruction,n,n+1+a[0].length));let s=/^(?:![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 s?e.append(Gn(Rt.HTMLTag,n,n+1+s[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),o=e.slice(r,r+1),a=p1.test(i),s=p1.test(o),l=/\s|^$/.test(i),u=/\s|^$/.test(o),c=!u&&(!s||l||a),d=!l&&(!a||u||s),p=c&&(t==42||!d||a),h=d&&(t==42||!c||s);return e.append(new vl(t==95?nte:rte,n,r,(p?1:0)|(h?2:0)))},HardBreak(e,t,n){if(t==92&&e.char(n+1)==10)return e.append(Gn(Rt.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(Gn(Rt.HardBreak,n,r+1))}return-1},Link(e,t,n){return t==91?e.append(new vl(z0,n,n+1,1)):-1},Image(e,t,n){return t==33&&e.char(n+1)==91?e.append(new vl(Sj,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 vl&&(i.type==z0||i.type==Sj)){if(!i.side||e.skipSpace(i.to)==n&&!/[(\[]/.test(e.slice(n+1,n+2)))return e.parts[r]=null,-1;let o=e.takeContent(r),a=e.parts[r]=MBe(e,o,i.type==z0?Rt.Link:Rt.Image,i.from,n+1);if(i.type==z0)for(let s=0;st?Gn(Rt.URL,t+n,o+n):o==e.length?null:!1}}function ote(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 o=t+1,a=!1;o=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,o){return this.append(new vl(t,n,r,(i?1:0)|(o?2:0)))}addElement(t){return this.append(t)}resolveMarkers(t){for(let r=t;r=t;l--){let b=this.parts[l];if(b instanceof vl&&b.side&1&&b.type==i.type&&!(o&&(i.side&1||b.side&2)&&(b.to-b.from+a)%3==0&&((b.to-b.from)%3||a%3))){s=b;break}}if(!s)continue;let u=i.type.resolve,c=[],d=s.from,p=i.to;if(o){let b=Math.min(2,s.to-s.from,a);d=s.to-b,p=i.from+b,u=b==1?"Emphasis":"StrongEmphasis"}s.type.mark&&c.push(this.elt(s.type.mark,d,s.to));for(let b=l+1;b=0;n--){let r=this.parts[n];if(r instanceof vl&&r.type==t)return n}return null}takeContent(t){let n=this.resolveMarkers(t);return this.parts.length=t,n}skipSpace(t){return Wb(this.text,t-this.offset)+this.offset}elt(t,n,r,i){return typeof t=="string"?Gn(this.parser.getNodeType(t),n,r,i):new tte(t,n)}}function II(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 o=this.fragment.to;for(;o>0&&this.input.read(o-1,o)!=` +`;)o--;this.fragmentEnd=o?o-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(vn.contextHash)==t}takeNodes(t){let n=this.cursor,r=this.fragment.offset,i=this.fragmentEnd-(this.fragment.openEnd?1:0),o=t.absoluteLineStart,a=o,s=t.block.children.length,l=a,u=s;for(;;){if(n.to-r>i){if(n.type.isAnonymous&&n.firstChild())continue;break}let c=ste(n.from-r,t.ranges);if(n.to-r<=t.ranges[t.rangeI].to)t.addNode(n.tree,c);else{let d=new cr(t.parser.nodeSet.types[Rt.Paragraph],[],[],0,t.block.hashProp);t.reusePlaceholders.set(d,n.tree),t.addNode(d,c)}if(n.type.is("Block")&&(FBe.indexOf(n.type.id)<0?(a=n.to-r,s=t.block.children.length):(a=l,s=u,l=n.to-r,u=t.block.children.length)),!n.nextSibling())break}for(;t.block.children.length>s;)t.block.children.pop(),t.block.positions.pop();return a-o}};function ste(e,t){let n=e;for(let r=1;ruE[e]),Object.keys(uE).map(e=>DBe[e]),Object.keys(uE),NBe,Vee,Object.keys(QA).map(e=>QA[e]),Object.keys(QA),[]);function zBe(e,t,n){let r=[];for(let i=e.firstChild,o=t;;i=i.nextSibling){let a=i?i.from:n;if(a>o&&r.push({from:o,to:a}),!i)break;o=i.to}return r}function VBe(e){let{codeParser:t,htmlParser:n}=e;return{wrap:gJ((i,o)=>{let a=i.type.id;if(t&&(a==Rt.CodeBlock||a==Rt.FencedCode)){let s="";if(a==Rt.FencedCode){let u=i.node.getChild(Rt.CodeInfo);u&&(s=o.read(u.from,u.to))}let l=t(s);if(l)return{parser:l,overlay:u=>u.type.id==Rt.CodeText}}else if(n&&(a==Rt.HTMLBlock||a==Rt.HTMLTag))return{parser:n,overlay:zBe(i.node,i.from,i.to)};return null})}}const HBe={resolve:"Strikethrough",mark:"StrikethroughMark"},WBe={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":he.strikethrough}},{name:"StrikethroughMark",style:he.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),o=/\s|^$/.test(r),a=/\s|^$/.test(i),s=p1.test(r),l=p1.test(i);return e.addDelimiter(HBe,n,n+2,!a&&(!l||o||s),!o&&(!s||a||l))},after:"Emphasis"}]};function Qb(e,t,n=0,r,i=0){let o=0,a=!0,s=-1,l=-1,u=!1,c=()=>{r.push(e.elt("TableCell",i+s,i+l,e.parser.parseInline(t.slice(s,l),i+s)))};for(let d=n;d-1)&&o++,a=!1,r&&(s>-1&&c(),r.push(e.elt("TableDelimiter",d+i,d+i+1))),s=l=-1):(u||p!=32&&p!=9)&&(s<0&&(s=d),l=d+1),u=!u&&p==92}return s>-1&&(o++,r&&c()),o}function wj(e,t){for(let n=t;ni instanceof kj)||!wj(t.text,t.basePos))return!1;let r=e.scanLine(e.absoluteLineEnd+1).text;return lte.test(r)&&Qb(e,t.text,t.basePos)==Qb(e,r,t.basePos)},before:"SetextHeading"}]};class YBe{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 GBe={defineNodes:[{name:"Task",block:!0,style:he.list},{name:"TaskMarker",style:he.atom}],parseBlock:[{name:"TaskList",leaf(e,t){return/^\[[ xX]\][ \t]/.test(t.content)&&e.parentType().name=="ListItem"?new YBe:null},after:"SetextHeading"}]},xj=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,Cj=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,qBe=/[\w-]+\.[\w-]+($|\/)/,Aj=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,_j=/\/[a-zA-Z\d@.]+/gy;function Rj(e,t,n,r){let i=0;for(let o=t;o-1)return-1;let r=t+n[0].length;for(;;){let i=e[r-1],o;if(/[?!.,:*_~]/.test(i)||i==")"&&Rj(e,t,r,")")>Rj(e,t,r,"("))r--;else if(i==";"&&(o=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t,r))))r=t+o.index;else break}return r}function Ij(e,t){Aj.lastIndex=t;let n=Aj.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 XBe={parseInline:[{name:"Autolink",parse(e,t,n){let r=n-e.offset;xj.lastIndex=r;let i=xj.exec(e.text),o=-1;return!i||(i[1]||i[2]?o=ZBe(e.text,r+i[0].length):i[3]?o=Ij(e.text,r):(o=Ij(e.text,r+i[0].length),o>-1&&i[0]=="xmpp:"&&(_j.lastIndex=o,i=_j.exec(e.text),i&&(o=i.index+i[0].length))),o<0)?-1:(e.addElement(e.elt("URL",n,o+e.offset)),o+e.offset)}}]},KBe=[QBe,GBe,WBe,XBe];function ute(e,t,n){return(r,i,o)=>{if(i!=e||r.char(o+1)==e)return-1;let a=[r.elt(n,o,o+1)];for(let s=o+1;sn%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,n,r=0){let i=t.parser.context;return new ew(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:o}=this.p,a=o.dynamicPrecedence(i);if(a&&(this.score+=a),r==0){this.pushState(o.getGoto(this.state,i,!0),this.reducePos),i=2e3&&!(!((n=this.p.parser.nodeSet.types[i])===null||n===void 0)&&n.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSizes;)this.stack.pop();this.reduceContext(i,l)}storeNode(t,n,r,i=4,o=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&a.buffer[s-4]==0&&a.buffer[s-1]>-1){if(n==r)return;if(a.buffer[s-2]>=n){a.buffer[s-2]=r;return}}}if(!o||this.pos==r)this.buffer.push(t,n,r,i);else{let a=this.buffer.length;if(a>0&&this.buffer[a-4]!=0)for(;a>0&&this.buffer[a-2]>r;)this.buffer[a]=this.buffer[a-4],this.buffer[a+1]=this.buffer[a-3],this.buffer[a+2]=this.buffer[a-2],this.buffer[a+3]=this.buffer[a-1],a-=4,i>4&&(i-=4);this.buffer[a]=t,this.buffer[a+1]=n,this.buffer[a+2]=r,this.buffer[a+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 o=t,{parser:a}=this.p;(i>this.pos||n<=a.maxNode)&&(this.pos=i,a.stateFlag(o,1)||(this.reducePos=i)),this.pushState(o,r),this.shiftContext(n,r),n<=a.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 ew(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 n8e(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 o=0,a;ol&1&&s==a)||i.push(n[o],a)}n=i}let r=[];for(let i=0;i>19,i=n&65535,o=this.stack.length-r*3;if(o<0||t.getGoto(this.stack[o],i,!1)<0){let a=this.findForcedReduction();if(a==null)return!1;n=a}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,o)=>{if(!n.includes(i))return n.push(i),t.allActions(i,a=>{if(!(a&393216))if(a&65536){let s=(a>>19)-o;if(s>1){let l=a&65535,u=this.stack.length-s*3;if(u>=0&&t.getGoto(this.stack[u],l,!1)>=0)return s<<19|65536|l}}else{let s=r(a,o+1);if(s!=null)return s}})};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 n8e{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 tw{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 tw(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 tw(this.stack,this.pos,this.index)}}function fb(e,t=Uint16Array){if(typeof e!="string")return e;let n=null;for(let r=0,i=0;r=92&&a--,a>=34&&a--;let l=a-32;if(l>=46&&(l-=46,s=!0),o+=l,s)break;o*=46}n?n[i++]=o:n=new t(o)}return n}class cS{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const Pj=new cS;class r8e{constructor(t,n){this.input=t,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Pj,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,o=this.pos+t;for(;or.to:o>=r.to;){if(i==this.ranges.length-1)return null;let a=this.ranges[++i];o+=a.from-r.to,r=a}return o}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&&rs.to&&(this.chunk2=this.chunk2.slice(0,s.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=Pj,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 Tm{constructor(t,n){this.data=t,this.id=n}token(t,n){let{parser:r}=n.p;cte(this.data,t,n,this.id,r.data,r.tokenPrecTable)}}Tm.prototype.contextual=Tm.prototype.fallback=Tm.prototype.extend=!1;class nw{constructor(t,n,r){this.precTable=n,this.elseToken=r,this.data=typeof t=="string"?fb(t):t}token(t,n){let r=t.pos,i=0;for(;;){let o=t.next<0,a=t.resolveOffset(1,1);if(cte(this.data,t,n,0,this.data,this.precTable),t.token.value>-1)break;if(this.elseToken==null)return;if(o||i++,a==null)break;t.reset(a,t.token)}i&&(t.reset(r,t.token),t.acceptToken(this.elseToken,i))}}nw.prototype.contextual=Tm.prototype.fallback=Tm.prototype.extend=!1;class zl{constructor(t,n={}){this.token=t,this.contextual=!!n.contextual,this.fallback=!!n.fallback,this.extend=!!n.extend}}function cte(e,t,n,r,i,o){let a=0,s=1<0){let m=e[h];if(l.allows(m)&&(t.token.value==-1||t.token.value==m||i8e(m,t.token.value,i,o))){t.acceptToken(m);break}}let c=t.next,d=0,p=e[a+2];if(t.next<0&&p>d&&e[u+p*3-3]==65535){a=e[u+p*3-1];continue e}for(;d>1,m=u+h+(h<<1),b=e[m],O=e[m+1]||65536;if(c=O)d=h+1;else{a=e[m+2],t.advance();continue e}}break}}function Lj(e,t,n){for(let r=t,i;(i=e[r])!=65535;r++)if(i==n)return r-t;return-1}function i8e(e,t,n,r){let i=Lj(n,r,t);return i<0||Lj(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 o8e{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?Mj(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?Mj(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=a,null;if(o instanceof cr){if(a==t){if(a=Math.max(this.safeFrom,t)&&(this.trees.push(o),this.start.push(a),this.index.push(0))}else this.index[n]++,this.nextStart=a+o.length}}}class a8e{constructor(t,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(r=>new cS)}getActions(t){let n=0,r=null,{parser:i}=t.p,{tokenizers:o}=i,a=i.stateSlot(t.state,3),s=t.curContext?t.curContext.hash:0,l=0;for(let u=0;ud.end+25&&(l=Math.max(d.lookAhead,l)),d.value!=0)){let p=n;if(d.extended>-1&&(n=this.addActions(t,d.extended,d.end,n)),n=this.addActions(t,d.value,d.end,n),!c.extend&&(r=d,n>p))break}}for(;this.actions.length>n;)this.actions.pop();return l&&t.setLookAhead(l),!r&&t.pos==this.stream.end&&(r=new cS,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 cS,{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:o}=r.p;for(let a=0;a=0&&r.p.parser.dialect.allows(s>>1)){s&1?t.extended=s>>1:t.value=s>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,n,r,i){for(let o=0;ot.bufferLength*4?new o8e(r,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,n=this.minStackPos,r=this.stacks=[],i,o;if(this.bigReductionCount>300&&t.length==1){let[a]=t;for(;a.forceReduce()&&a.stack.length&&a.stack[a.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let a=0;an)r.push(s);else{if(this.advanceStack(s,r,t))continue;{i||(i=[],o=[]),i.push(s);let l=this.tokens.getMainToken(s);o.push(l.value,l.end)}}break}}if(!r.length){let a=i&&u8e(i);if(a)return Wa&&console.log("Finish with "+this.stackID(a)),this.stackToTree(a);if(this.parser.strict)throw Wa&&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 a=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,o,r);if(a)return Wa&&console.log("Force-finish "+this.stackID(a)),this.stackToTree(a.forceAll())}if(this.recovering){let a=this.recovering==1?1:this.recovering*3;if(r.length>a)for(r.sort((s,l)=>l.score-s.score);r.length>a;)r.pop();r.some(s=>s.reducePos>n)&&this.recovering--}else if(r.length>1){e:for(let a=0;a500&&u.buffer.length>500)if((s.score-u.score||s.buffer.length-u.buffer.length)>0)r.splice(l--,1);else{r.splice(a--,1);continue e}}}r.length>12&&r.splice(12,r.length-12)}this.minStackPos=r[0].pos;for(let a=1;a ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let u=t.curContext&&t.curContext.tracker.strict,c=u?t.curContext.hash:0;for(let d=this.fragments.nodeAt(i);d;){let p=this.parser.nodeSet.types[d.type.id]==d.type?o.getGoto(t.state,d.type.id):-1;if(p>-1&&d.length&&(!u||(d.prop(vn.contextHash)||0)==c))return t.useNode(d,p),Wa&&console.log(a+this.stackID(t)+` (via reuse of ${o.getName(d.type.id)})`),!0;if(!(d instanceof cr)||d.children.length==0||d.positions[0]>0)break;let h=d.children[0];if(h instanceof cr&&d.positions[0]==0)d=h;else break}}let s=o.stateSlot(t.state,4);if(s>0)return t.reduce(s),Wa&&console.log(a+this.stackID(t)+` (via always-reduce ${o.getName(s&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(m):r.push(m)}return!1}advanceFully(t,n){let r=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>r)return $j(t,n),!0}}runRecovery(t,n,r){let i=null,o=!1;for(let a=0;a ":"";if(s.deadEnd&&(o||(o=!0,s.restart(),Wa&&console.log(c+this.stackID(s)+" (restarted)"),this.advanceFully(s,r))))continue;let d=s.split(),p=c;for(let h=0;d.forceReduce()&&h<10&&(Wa&&console.log(p+this.stackID(d)+" (via force-reduce)"),!this.advanceFully(d,r));h++)Wa&&(p=this.stackID(d)+" -> ");for(let h of s.recoverByInsert(l))Wa&&console.log(c+this.stackID(h)+" (via recover-insert)"),this.advanceFully(h,r);this.stream.end>s.pos?(u==s.pos&&(u++,l=0),s.recoverByDelete(l,u),Wa&&console.log(c+this.stackID(s)+` (via recover-delete ${this.parser.getName(l)})`),$j(s,r)):(!i||i.scoree;class dte{constructor(t){this.start=t.start,this.shift=t.shift||GA,this.reduce=t.reduce||GA,this.reuse=t.reuse||GA,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class fg extends H3{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 s=0;st.topRules[s][1]),i=[];for(let s=0;s=0)o(c,l,s[u++]);else{let d=s[u+-c];for(let p=-c;p>0;p--)o(s[u++],l,d);u++}}}this.nodeSet=new yO(n.map((s,l)=>Bi.define({name:l>=this.minRepeatTerm?void 0:s,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=dJ;let a=fb(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let s=0;stypeof s=="number"?new Tm(a,s):s),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 s8e(this,t,n,r);for(let o of this.wrappers)i=o(i,t,n,r);return i}getGoto(t,n,r=!1){let i=this.goto;if(n>=i[0])return-1;for(let o=i[n+1];;){let a=i[o++],s=a&1,l=i[o++];if(s&&r)return l;for(let u=o+(a>>1);o0}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 o=this.stateSlot(t,1);i==null;o+=3){if(this.data[o]==65535)if(this.data[o+1]==1)o=nc(this.data,o+2);else break;i=n(nc(this.data,o+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=nc(this.data,r+2);else break;if(!(this.data[r+2]&1)){let i=this.data[r+1];n.some((o,a)=>a&1&&o==i)||n.push(this.data[r],i)}}return n}configure(t){let n=Object.assign(Object.create(fg.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(o=>o.from==r);return i?i.to:r})),t.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((r,i)=>{let o=t.specializers.find(s=>s.from==r.external);if(!o)return r;let a=Object.assign(Object.assign({},r),{external:o.to});return n.specializers[i]=Fj(a),a})),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 o of t.split(" ")){let a=n.indexOf(o);a>=0&&(r[a]=!0)}let i=null;for(let o=0;or)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.scoree.external(n,r)<<1|t}return e.get}const c8e=54,d8e=1,f8e=55,p8e=2,h8e=56,m8e=3,Bj=4,g8e=5,rw=6,fte=7,pte=8,hte=9,mte=10,b8e=11,y8e=12,O8e=13,qA=57,v8e=14,Uj=58,gte=20,E8e=22,bte=23,S8e=24,DI=26,yte=27,T8e=28,w8e=31,k8e=34,x8e=36,C8e=37,A8e=0,_8e=1,R8e={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},I8e={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},jj={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 D8e(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function Ote(e){return e==9||e==10||e==13||e==32}let zj=null,Vj=null,Hj=0;function NI(e,t){let n=e.pos+t;if(Hj==n&&Vj==e)return zj;let r=e.peek(t);for(;Ote(r);)r=e.peek(++t);let i="";for(;D8e(r);)i+=String.fromCharCode(r),r=e.peek(++t);return Vj=e,Hj=n,zj=i?i.toLowerCase():r==N8e||r==P8e?void 0:null}const vte=60,iw=62,fL=47,N8e=63,P8e=33,L8e=45;function Wj(e,t){this.name=e,this.parent=t,this.hash=t?t.hash:0;for(let n=0;n-1?new Wj(NI(r,1)||"",e):e},reduce(e,t){return t==gte&&e?e.parent:e},reuse(e,t,n,r){let i=t.type.id;return i==rw||i==x8e?new Wj(NI(r,1)||"",e):e},hash(e){return e?e.hash:0},strict:!1}),F8e=new zl((e,t)=>{if(e.next!=vte){e.next<0&&t.context&&e.acceptToken(qA);return}e.advance();let n=e.next==fL;n&&e.advance();let r=NI(e,0);if(r===void 0)return;if(!r)return e.acceptToken(n?v8e:rw);let i=t.context?t.context.name:null;if(n){if(r==i)return e.acceptToken(b8e);if(i&&I8e[i])return e.acceptToken(qA,-2);if(t.dialectEnabled(A8e))return e.acceptToken(y8e);for(let o=t.context;o;o=o.parent)if(o.name==r)return;e.acceptToken(O8e)}else{if(r=="script")return e.acceptToken(fte);if(r=="style")return e.acceptToken(pte);if(r=="textarea")return e.acceptToken(hte);if(R8e.hasOwnProperty(r))return e.acceptToken(mte);i&&jj[i]&&jj[i][r]?e.acceptToken(qA,-1):e.acceptToken(rw)}},{contextual:!0}),B8e=new zl(e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(Uj);break}if(e.next==L8e)t++;else if(e.next==iw&&t>=2){n>=3&&e.acceptToken(Uj,-2);break}else t=0;e.advance()}});function U8e(e){for(;e;e=e.parent)if(e.name=="svg"||e.name=="math")return!0;return!1}const j8e=new zl((e,t)=>{if(e.next==fL&&e.peek(1)==iw){let n=t.dialectEnabled(_8e)||U8e(t.context);e.acceptToken(n?g8e:Bj,2)}else e.next==iw&&e.acceptToken(Bj,1)});function pL(e,t,n){let r=2+e.length;return new zl(i=>{for(let o=0,a=0,s=0;;s++){if(i.next<0){s&&i.acceptToken(t);break}if(o==0&&i.next==vte||o==1&&i.next==fL||o>=2&&oa?i.acceptToken(t,-a):i.acceptToken(n,-(a-2));break}else if((i.next==10||i.next==13)&&s){i.acceptToken(t,1);break}else o=a=0;i.advance()}})}const z8e=pL("script",c8e,d8e),V8e=pL("style",f8e,p8e),H8e=pL("textarea",h8e,m8e),W8e=Ug({"Text RawText":he.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":he.angleBracket,TagName:he.tagName,"MismatchedCloseTag/TagName":[he.tagName,he.invalid],AttributeName:he.attributeName,"AttributeValue UnquotedAttributeValue":he.attributeValue,Is:he.definitionOperator,"EntityReference CharacterReference":he.character,Comment:he.blockComment,ProcessingInst:he.processingInstruction,DoctypeDecl:he.documentMeta}),Q8e=fg.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%WQ&rO,59fO%`Q&rO,59iO%hQ&rO,59lO%sQ&rO,59nOOOa'#D^'#D^O%{OaO'#CxO&WOaO,59[OOOb'#D_'#D_O&`ObO'#C{O&kObO,59[OOOd'#D`'#D`O&sOdO'#DOO'OOdO,59[OOO`'#Da'#DaO'WO!rO,59[O'_Q#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'dO$fO,59oOOO`,59o,59oO'lQ#|O,59qO'qQ#|O,59rOOO`-E7W-E7WO'vQ&rO'#CsOOQW'#DZ'#DZO(UQ&rO1G.wOOOa1G.w1G.wO(^Q&rO1G/QOOOb1G/Q1G/QO(fQ&rO1G/TOOOd1G/T1G/TO(nQ&rO1G/WOOO`1G/W1G/WOOO`1G/Y1G/YO(yQ&rO1G/YOOOa-E7[-E7[O)RQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)WQ#tO'#C|OOOd-E7^-E7^O)]Q#tO'#DPOOO`-E7_-E7_O)bQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O)gQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rOOO`7+$t7+$tO)rQ#|O,59eO)wQ#|O,59hO)|Q#|O,59kOOO`1G/X1G/XO*RO7[O'#CvO*dOMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O*uO7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+WOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:"+s~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|OhyO~OS!OOhyO~OS!QOhyO~OS!SOT!TOhyO~OS!TOhyO~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!dOSgXhgXTgX~OS!fOhyO~OS!gOhyO~OS!hOhyO~OS!iOT!jOhyO~OS!jOhyO~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{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!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:$8e,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:[W8e],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=s.type.id;if(u==T8e)return ZA(s,l,n);if(u==w8e)return ZA(s,l,r);if(u==k8e)return ZA(s,l,i);if(u==gte&&o.length){let c=s.node,d=c.firstChild,p=d&&Qj(d,l),h;if(p){for(let m of o)if(m.tag==p&&(!m.attrs||m.attrs(h||(h=Ete(c,l))))){let b=c.lastChild,O=b.type.id==C8e?b.from:c.to;if(O>d.to)return{parser:m.parser,overlay:[{from:d.to,to:O}]}}}}if(a&&u==bte){let c=s.node,d;if(d=c.firstChild){let p=a[l.read(d.from,d.to)];if(p)for(let h of p){if(h.tagName&&h.tagName!=Qj(c.parent,l))continue;let m=c.lastChild;if(m.type.id==DI){let b=m.from+1,O=m.lastChild,y=m.to-(O&&O.isError?0:1);if(y>b)return{parser:h.parser,overlay:[{from:b,to:y}]}}else if(m.type.id==yte)return{parser:h.parser,overlay:[{from:m.from,to:m.to}]}}}}return null})}const Y8e=99,Yj=1,G8e=100,q8e=101,Gj=2,Tte=[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],Z8e=58,X8e=40,wte=95,K8e=91,dS=45,J8e=46,e7e=35,t7e=37,n7e=38,r7e=92,i7e=10;function h1(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function o7e(e){return e>=48&&e<=57}const a7e=new zl((e,t)=>{for(let n=!1,r=0,i=0;;i++){let{next:o}=e;if(h1(o)||o==dS||o==wte||n&&o7e(o))!n&&(o!=dS||i>0)&&(n=!0),r===i&&o==dS&&r++,e.advance();else if(o==r7e&&e.peek(1)!=i7e)e.advance(),e.next>-1&&e.advance(),n=!0;else{n&&e.acceptToken(o==X8e?G8e:r==2&&t.canShift(Gj)?Gj:q8e);break}}}),s7e=new zl(e=>{if(Tte.includes(e.peek(-1))){let{next:t}=e;(h1(t)||t==wte||t==e7e||t==J8e||t==K8e||t==Z8e&&h1(e.peek(1))||t==dS||t==n7e)&&e.acceptToken(Y8e)}}),l7e=new zl(e=>{if(!Tte.includes(e.peek(-1))){let{next:t}=e;if(t==t7e&&(e.advance(),e.acceptToken(Yj)),h1(t)){do e.advance();while(h1(e.next));e.acceptToken(Yj)}}}),u7e=Ug({"AtKeyword import charset namespace keyframes media supports":he.definitionKeyword,"from to selector":he.keyword,NamespaceName:he.namespace,KeyframeName:he.labelName,KeyframeRangeName:he.operatorKeyword,TagName:he.tagName,ClassName:he.className,PseudoClassName:he.constant(he.className),IdName:he.labelName,"FeatureName PropertyName":he.propertyName,AttributeName:he.attributeName,NumberLiteral:he.number,KeywordQuery:he.keyword,UnaryQueryOp:he.operatorKeyword,"CallTag ValueName":he.atom,VariableName:he.variableName,Callee:he.operatorKeyword,Unit:he.unit,"UniversalSelector NestingSelector":he.definitionOperator,MatchOp:he.compareOperator,"ChildOp SiblingOp, LogicOp":he.logicOperator,BinOp:he.arithmeticOperator,Important:he.modifier,Comment:he.blockComment,ColorLiteral:he.color,"ParenthesizedContent StringLiteral":he.string,":":he.punctuation,"PseudoOp #":he.derefOperator,"; ,":he.separator,"( )":he.paren,"[ ]":he.squareBracket,"{ }":he.brace}),c7e={__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},d7e={__proto__:null,"@import":118,"@media":142,"@charset":146,"@namespace":150,"@keyframes":156,"@supports":168},f7e={__proto__:null,not:132,only:132},p7e=fg.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:[s7e,l7e,a7e,1,2,3,4,new nw("m~RRYZ[z{a~~g~aO#^~~dP!P!Qg~lO#_~~",28,105)],topRules:{StyleSheet:[0,4],Styles:[1,86]},specialized:[{term:100,get:e=>c7e[e]||-1},{term:58,get:e=>d7e[e]||-1},{term:101,get:e=>f7e[e]||-1}],tokenPrec:1200});let XA=null;function KA(){if(!XA&&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)));XA=t.sort().map(r=>({type:"property",label:r}))}return XA||[]}const qj=["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})),Zj=["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}))),h7e=["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})),Wc=/^(\w[\w-]*|-\w[\w-]*|)$/,m7e=/^-(-[\w-]*)?$/;function g7e(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 Xj=new mJ,b7e=["Declaration"];function y7e(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function kte(e,t,n){if(t.to-t.from>4096){let r=Xj.get(t);if(r)return r;let i=[],o=new Set,a=t.cursor(xr.IncludeAnonymous);if(a.firstChild())do for(let s of kte(e,a.node,n))o.has(s.label)||(o.add(s.label),i.push(s));while(a.nextSibling());return Xj.set(t,i),i}else{let r=[],i=new Set;return t.cursor().iterate(o=>{var a;if(n(o)&&o.matchContext(b7e)&&((a=o.node.nextSibling)===null||a===void 0?void 0:a.name)==":"){let s=e.sliceString(o.from,o.to);i.has(s)||(i.add(s),r.push({label:s,type:"variable"}))}}),r}}const O7e=e=>t=>{let{state:n,pos:r}=t,i=Ar(n).resolveInner(r,-1),o=i.type.isError&&i.from==i.to-1&&n.doc.sliceString(i.from,i.to)=="-";if(i.name=="PropertyName"||(o||i.name=="TagName")&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:KA(),validFor:Wc};if(i.name=="ValueName")return{from:i.from,options:Zj,validFor:Wc};if(i.name=="PseudoClassName")return{from:i.from,options:qj,validFor:Wc};if(e(i)||(t.explicit||o)&&g7e(i,n.doc))return{from:e(i)||o?i.from:r,options:kte(n.doc,y7e(i),e),validFor:m7e};if(i.name=="TagName"){for(let{parent:l}=i;l;l=l.parent)if(l.name=="Block")return{from:i.from,options:KA(),validFor:Wc};return{from:i.from,options:h7e,validFor:Wc}}if(!t.explicit)return null;let a=i.resolve(r),s=a.childBefore(r);return s&&s.name==":"&&a.name=="PseudoClassSelector"?{from:r,options:qj,validFor:Wc}:s&&s.name==":"&&a.name=="Declaration"||a.name=="ArgList"?{from:r,options:Zj,validFor:Wc}:a.name=="Block"||a.name=="Styles"?{from:r,options:KA(),validFor:Wc}:null},v7e=O7e(e=>e.name=="VariableName"),ow=sg.define({name:"css",parser:p7e.configure({props:[vO.add({Declaration:uS()}),jg.add({"Block KeyframeList":TJ})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function E7e(){return new a1(ow,ow.data.of({autocomplete:v7e}))}const S7e=309,Kj=1,T7e=2,w7e=3,k7e=310,x7e=312,C7e=313,A7e=4,_7e=5,R7e=0,PI=[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],xte=125,I7e=59,LI=47,D7e=42,N7e=43,P7e=45,L7e=60,M7e=44,$7e=new dte({start:!1,shift(e,t){return t==A7e||t==_7e||t==x7e?e:t==C7e},strict:!1}),F7e=new zl((e,t)=>{let{next:n}=e;(n==xte||n==-1||t.context)&&e.acceptToken(k7e)},{contextual:!0,fallback:!0}),B7e=new zl((e,t)=>{let{next:n}=e,r;PI.indexOf(n)>-1||n==LI&&((r=e.peek(1))==LI||r==D7e)||n!=xte&&n!=I7e&&n!=-1&&!t.context&&e.acceptToken(S7e)},{contextual:!0}),U7e=new zl((e,t)=>{let{next:n}=e;if((n==N7e||n==P7e)&&(e.advance(),n==e.next)){e.advance();let r=!t.context&&t.canShift(Kj);e.acceptToken(r?Kj:T7e)}},{contextual:!0});function JA(e,t){return e>=65&&e<=90||e>=97&&e<=122||e==95||e>=192||!t&&e>=48&&e<=57}const j7e=new zl((e,t)=>{if(e.next!=L7e||!t.dialectEnabled(R7e)||(e.advance(),e.next==LI))return;let n=0;for(;PI.indexOf(e.next)>-1;)e.advance(),n++;if(JA(e.next,!0)){for(e.advance(),n++;JA(e.next,!1);)e.advance(),n++;for(;PI.indexOf(e.next)>-1;)e.advance(),n++;if(e.next==M7e)return;for(let r=0;;r++){if(r==7){if(!JA(e.next,!0))return;break}if(e.next!="extends".charCodeAt(r))break;e.advance(),n++}}e.acceptToken(w7e,-n)}),z7e=Ug({"get set async static":he.modifier,"for while do if else switch try catch finally return throw break continue default case":he.controlKeyword,"in of await yield void typeof delete instanceof":he.operatorKeyword,"let var const using function class extends":he.definitionKeyword,"import export from":he.moduleKeyword,"with debugger as new":he.keyword,TemplateString:he.special(he.string),super:he.atom,BooleanLiteral:he.bool,this:he.self,null:he.null,Star:he.modifier,VariableName:he.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":he.function(he.variableName),VariableDefinition:he.definition(he.variableName),Label:he.labelName,PropertyName:he.propertyName,PrivatePropertyName:he.special(he.propertyName),"CallExpression/MemberExpression/PropertyName":he.function(he.propertyName),"FunctionDeclaration/VariableDefinition":he.function(he.definition(he.variableName)),"ClassDeclaration/VariableDefinition":he.definition(he.className),PropertyDefinition:he.definition(he.propertyName),PrivatePropertyDefinition:he.definition(he.special(he.propertyName)),UpdateOp:he.updateOperator,"LineComment Hashbang":he.lineComment,BlockComment:he.blockComment,Number:he.number,String:he.string,Escape:he.escape,ArithOp:he.arithmeticOperator,LogicOp:he.logicOperator,BitOp:he.bitwiseOperator,CompareOp:he.compareOperator,RegExp:he.regexp,Equals:he.definitionOperator,Arrow:he.function(he.punctuation),": Spread":he.punctuation,"( )":he.paren,"[ ]":he.squareBracket,"{ }":he.brace,"InterpolationStart InterpolationEnd":he.special(he.brace),".":he.derefOperator,", ;":he.separator,"@":he.meta,TypeName:he.typeName,TypeDefinition:he.definition(he.typeName),"type enum interface implements namespace module declare":he.definitionKeyword,"abstract global Privacy readonly override":he.modifier,"is keyof unique infer":he.operatorKeyword,JSXAttributeValue:he.attributeValue,JSXText:he.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":he.angleBracket,"JSXIdentifier JSXNameSpacedName":he.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":he.attributeName,"JSXBuiltin/JSXIdentifier":he.standard(he.tagName)}),V7e={__proto__:null,export:18,as:23,from:31,default:34,async:39,function:40,extends:52,this:56,true:64,false:64,null:76,void:80,typeof:84,super:102,new:136,delete:152,yield:161,await:165,class:170,public:227,private:227,protected:227,readonly:229,instanceof:248,satisfies:251,in:252,const:254,import:286,keyof:339,unique:343,infer:349,is:385,abstract:405,implements:407,type:409,let:412,var:414,using:417,interface:423,enum:427,namespace:433,module:435,declare:439,global:443,for:462,of:471,while:474,with:478,do:482,if:486,else:488,switch:492,case:498,try:504,catch:508,finally:512,return:516,throw:520,break:524,continue:528,debugger:532},H7e={__proto__:null,async:123,get:125,set:127,declare:187,public:189,private:189,protected:189,static:191,abstract:193,override:195,readonly:201,accessor:203,new:389},W7e={__proto__:null,"<":143},Q7e=fg.deserialize({version:14,states:"$RQWO'#CdO>cQWO'#H[O>kQWO'#HbO>kQWO'#HdO`Q^O'#HfO>kQWO'#HhO>kQWO'#HkO>pQWO'#HqO>uQ07iO'#HwO%[Q^O'#HyO?QQ07iO'#H{O?]Q07iO'#H}O9kQ07hO'#IPO?hQ08SO'#ChO@jQ`O'#DiQOQWOOO%[Q^O'#EPOAQQWO'#ESO:RQ7[O'#EjOA]QWO'#EjOAhQpO'#FbOOQU'#Cf'#CfOOQ07`'#Dn'#DnOOQ07`'#Jm'#JmO%[Q^O'#JmOOQO'#Jq'#JqOOQO'#Ib'#IbOBhQ`O'#EcOOQ07`'#Eb'#EbOCdQ07pO'#EcOCnQ`O'#EVOOQO'#Jp'#JpODSQ`O'#JqOEaQ`O'#EVOCnQ`O'#EcPEnO!0LbO'#CaPOOO)CDu)CDuOOOO'#IX'#IXOEyO!bO,59TOOQ07b,59T,59TOOOO'#IY'#IYOFXO#tO,59TO%[Q^O'#D`OOOO'#I['#I[OFgO?MpO,59xOOQ07b,59x,59xOFuQ^O'#I]OGYQWO'#JkOI[QrO'#JkO+}Q^O'#JkOIcQWO,5:OOIyQWO'#ElOJWQWO'#JyOJcQWO'#JxOJcQWO'#JxOJkQWO,5;YOJpQWO'#JwOOQ07f,5:Z,5:ZOJwQ^O,5:ZOLxQ08SO,5:eOMiQWO,5:mONSQ07hO'#JvONZQWO'#JuO9ZQWO'#JuONoQWO'#JuONwQWO,5;XON|QWO'#JuO!#UQrO'#JjOOQ07b'#Ch'#ChO%[Q^O'#ERO!#tQpO,5:rOOQO'#Jr'#JrOOQO-EmOOQU'#J`'#J`OOQU,5>n,5>nOOQU-EpQWO'#HQO9aQWO'#HSO!CgQWO'#HSO:RQ7[O'#HUO!ClQWO'#HUOOQU,5=j,5=jO!CqQWO'#HVO!DSQWO'#CnO!DXQWO,59OO!DcQWO,59OO!FhQ^O,59OOOQU,59O,59OO!FxQ07hO,59OO%[Q^O,59OO!ITQ^O'#H^OOQU'#H_'#H_OOQU'#H`'#H`O`Q^O,5=vO!IkQWO,5=vO`Q^O,5=|O`Q^O,5>OO!IpQWO,5>QO`Q^O,5>SO!IuQWO,5>VO!IzQ^O,5>]OOQU,5>c,5>cO%[Q^O,5>cO9kQ07hO,5>eOOQU,5>g,5>gO!NUQWO,5>gOOQU,5>i,5>iO!NUQWO,5>iOOQU,5>k,5>kO!NZQ`O'#D[O%[Q^O'#JmO!NxQ`O'#JmO# gQ`O'#DjO# xQ`O'#DjO#$ZQ^O'#DjO#$bQWO'#JlO#$jQWO,5:TO#$oQWO'#EpO#$}QWO'#JzO#%VQWO,5;ZO#%[Q`O'#DjO#%iQ`O'#EUOOQ07b,5:n,5:nO%[Q^O,5:nO#%pQWO,5:nO>pQWO,5;UO!@}Q`O,5;UO!AVQ7[O,5;UO:RQ7[O,5;UO#%xQWO,5@XO#%}Q$ISO,5:rOOQO-E<`-E<`O#'TQ07pO,5:}OCnQ`O,5:qO#'_Q`O,5:qOCnQ`O,5:}O!@rQ07hO,5:qOOQ07`'#Ef'#EfOOQO,5:},5:}O%[Q^O,5:}O#'lQ07hO,5:}O#'wQ07hO,5:}O!@}Q`O,5:qOOQO,5;T,5;TO#(VQ07hO,5:}POOO'#IV'#IVP#(kO!0LbO,58{POOO,58{,58{OOOO-EwO+}Q^O,5>wOOQO,5>},5>}O#)VQ^O'#I]OOQO-EjQ08SO1G0{O#>wQ08SO1G0{O#@uQ08SO1G0{O#CuQ(CYO'#ChO#EsQ(CYO1G1^O#EzQ(CYO'#JjO!,lQWO1G1dO#F[Q08SO,5?TOOQ07`-EkQWO1G3lO$2dQ^O1G3nO$6hQ^O'#HmOOQU1G3q1G3qO$6uQWO'#HsO>pQWO'#HuOOQU1G3w1G3wO$6}Q^O1G3wO9kQ07hO1G3}OOQU1G4P1G4POOQ07`'#GY'#GYO9kQ07hO1G4RO9kQ07hO1G4TO$;UQWO,5@XO!*fQ^O,5;[O9ZQWO,5;[O>pQWO,5:UO!*fQ^O,5:UO!@}Q`O,5:UO$;ZQ(CYO,5:UOOQO,5;[,5;[O$;eQ`O'#I^O$;{QWO,5@WOOQ07b1G/o1G/oO$pQWO1G0pO!@}Q`O1G0pO!AVQ7[O1G0pOOQ07`1G5s1G5sO!@rQ07hO1G0]OOQO1G0i1G0iO%[Q^O1G0iO$PQrO1G4cOOQO1G4i1G4iO%[Q^O,5>wO$>ZQWO1G5qO$>cQWO1G6OO$>kQrO1G6PO9ZQWO,5>}O$>uQ08SO1G5|O%[Q^O1G5|O$?VQ07hO1G5|O$?hQWO1G5{O$?hQWO1G5{O9ZQWO1G5{O$?pQWO,5?QO9ZQWO,5?QOOQO,5?Q,5?QO$@UQWO,5?QO$'ZQWO,5?QOOQO-EXOOQU,5>X,5>XO%[Q^O'#HnO%7dQWO'#HpOOQU,5>_,5>_O9ZQWO,5>_OOQU,5>a,5>aOOQU7+)c7+)cOOQU7+)i7+)iOOQU7+)m7+)mOOQU7+)o7+)oO%7iQ`O1G5sO%7}Q(CYO1G0vO%8XQWO1G0vOOQO1G/p1G/pO%8dQ(CYO1G/pO>pQWO1G/pO!*fQ^O'#DjOOQO,5>x,5>xOOQO-E<[-E<[OOQO,5?O,5?OOOQO-EpQWO7+&[O!@}Q`O7+&[OOQO7+%w7+%wO$=mQ08SO7+&TOOQO7+&T7+&TO%[Q^O7+&TO%8nQ07hO7+&TO!@rQ07hO7+%wO!@}Q`O7+%wO%8yQ07hO7+&TO%9XQ08SO7++hO%[Q^O7++hO%9iQWO7++gO%9iQWO7++gOOQO1G4l1G4lO9ZQWO1G4lO%9qQWO1G4lOOQO7+%|7+%|O#%sQWO<zQ08SO1G2ZO%A]Q08SO1G2mO%ChQ08SO1G2oO%EsQ7[O,5>yOOQO-E<]-E<]O%E}QrO,5>zO%[Q^O,5>zOOQO-E<^-E<^O%FXQWO1G5uOOQ07b<YOOQU,5>[,5>[O&5oQWO1G3yO9ZQWO7+&bO!*fQ^O7+&bOOQO7+%[7+%[O&5tQ(CYO1G6PO>pQWO7+%[OOQ07b<pQWO<pQWO7+)eO'&sQWO<}AN>}O%[Q^OAN?ZOOQO<qQ(CYOG26}O!*fQ^O'#DyO1PQWO'#EWO'@gQrO'#JiO!*fQ^O'#DqO'@nQ^O'#D}O'@uQrO'#ChO'C]QrO'#ChO!*fQ^O'#EPO'CmQ^O,5;VO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O'#IiO'EpQWO,5a#@O#@^#@d#Ax#BW#Cr#DQ#DW#D^#Dd#Dn#Dt#Dz#EU#Eh#EnPPPPPPPPPP#EtPPPPPPP#Fi#Ip#KP#KW#K`PPPP$!d$%Z$+r$+u$+x$,q$,t$,w$-O$-WPP$-^$-b$.Y$/X$/]$/qPP$/u$/{$0PP$0S$0W$0Z$1P$1h$2P$2T$2W$2Z$2a$2d$2h$2lR!{RoqOXst!Z#c%j&m&o&p&r,h,m1w1zY!uQ'Z-Y1[5]Q%pvQ%xyQ&P|Q&e!VS'R!e-QQ'a!iS'g!r!xS*c$|*hQ+f%yQ+s&RQ,X&_Q-W'YQ-b'bQ-j'hQ/|*jQ1f,YR;Y:g%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%j%p%}&f&i&m&o&p&r&v'O']'m'}(P(V(^(r(v(z)y+O+S,e,h,m-^-f-t-z.l.s0[0a0q1_1o1p1r1t1w1z1|2m2s3Z5Y5d5t5u5x6]7w7|8]8gS#p]:d!r)[$[$m'S)n,y,|.{2]3p5W6S9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]Q*u%ZQ+k%{Q,Z&bQ,b&jQ.c;QQ0h+^Q0l+`Q0w+lQ1n,`Q2{.[Q4v0rQ5k1gQ6i3PQ6u;RQ7h4wR8m6j&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%j%p%}&f&i&j&m&o&p&r&v'O'S']'m'}(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]t!nQ!r!u!x!y'R'Y'Z'g'h'i-Q-W-Y-j1[5]5_$v$si#u#w$c$d$x${%O%Q%[%]%a)u){)}*P*R*Y*`*p*q+]+`+w+z.Z.i/Z/j/k/m0Q0S0^1R1U1^3O3x4S4[4f4n4p5c6g7T7^7y8j8w9[9n:O:W:y:z:|:};O;P;S;T;U;V;W;X;_;`;a;b;c;d;g;h;i;j;k;l;m;n;q;r < 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 : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression 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 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 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:371,context:$7e,nodeProps:[["isolate",-8,4,5,13,33,35,48,50,52,""],["group",-26,8,16,18,65,201,205,209,210,212,215,218,228,230,236,238,240,242,245,251,257,259,261,263,265,267,268,"Statement",-32,12,13,28,31,32,38,48,51,52,54,59,67,75,79,81,83,84,106,107,116,117,134,137,139,140,141,142,144,145,164,165,167,"Expression",-23,27,29,33,37,39,41,168,170,172,173,175,176,177,179,180,181,183,184,185,195,197,199,200,"Type",-3,87,99,105,"ClassItem"],["openedBy",22,"<",34,"InterpolationStart",53,"[",57,"{",72,"(",157,"JSXStartCloseTag"],["closedBy",23,">",36,"InterpolationEnd",47,"]",58,"}",73,")",162,"JSXEndTag"]],propSources:[z7e],skippedNodes:[0,4,5,271],repeatNodeCount:37,tokenData:"$Fj(CSR!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#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Ns!`!a$#_!a!b$(l!b!c$,k!c!}Er!}#O$-u#O#P$/P#P#Q$4h#Q#R$5r#R#SEr#S#T$7P#T#o$8Z#o#p$q#r#s$?}#s$f%Z$f$g+g$g#BYEr#BY#BZ$AX#BZ$ISEr$IS$I_$AX$I_$I|Er$I|$I}$Dd$I}$JO$Dd$JO$JTEr$JT$JU$AX$JU$KVEr$KV$KW$AX$KW&FUEr&FU&FV$AX&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AX?HUOEr(n%d_$f&j(Op(R!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$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$f&j(R!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(R!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$f&j(OpOY(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(OpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Op(R!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z(CS+rq$f&j(Op(R!b't(;dOX%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%Z(CS.ST(P#S$f&j'u(;dO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c(CS.n_$f&j(Op(R!b'u(;dOY%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%#`/x`$f&j!o$Ip(Op(R!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%#S1V`#t$Id$f&j(Op(R!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%#S2d_#t$Id$f&j(Op(R!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$/|3l_'}$(n$f&j(R!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$f&j(R!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$f&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$a`$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$a``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$a`$f&j(R!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(R!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$a`(R!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k#%|:hh$f&j(Op(R!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXVS$f&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSVSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWVS(R!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]VS$f&j(OpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWVS(OpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYVS(Op(R!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%lQ^$f&j!USOY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@Y!_!}!=y!}#O!Bw#O#P!Dj#P#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!?Ta$f&j!USO!^&c!_#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&cS!@_X!USOY!@YZ!P!@Y!P!Q!@z!Q!}!@Y!}#O!Ac#O#P!Bb#P;'S!@Y;'S;=`!Bq<%lO!@YS!APU!US#Z#[!@z#]#^!@z#a#b!@z#g#h!@z#i#j!@z#m#n!@zS!AfVOY!AcZ#O!Ac#O#P!A{#P#Q!@Y#Q;'S!Ac;'S;=`!B[<%lO!AcS!BOSOY!AcZ;'S!Ac;'S;=`!B[<%lO!AcS!B_P;=`<%l!AcS!BeSOY!@YZ;'S!@Y;'S;=`!Bq<%lO!@YS!BtP;=`<%l!@Y&n!B|[$f&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#O!Bw#O#P!Cr#P#Q!=y#Q#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!CwX$f&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!DgP;=`<%l!Bw&n!DoX$f&jOY!=yYZ&cZ!^!=y!^!_!@Y!_#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!E_P;=`<%l!=y(Q!Eki$f&j(R!b!USOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#Z&}#Z#[!Eb#[#]&}#]#^!Eb#^#a&}#a#b!Eb#b#g&}#g#h!Eb#h#i&}#i#j!Eb#j#m&}#m#n!Eb#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!f!GaZ(R!b!USOY!GYZw!GYwx!@Yx!P!GY!P!Q!HS!Q!}!GY!}#O!Ic#O#P!Bb#P;'S!GY;'S;=`!JZ<%lO!GY!f!HZb(R!b!USOY'}Zw'}x#O'}#P#Z'}#Z#[!HS#[#]'}#]#^!HS#^#a'}#a#b!HS#b#g'}#g#h!HS#h#i'}#i#j!HS#j#m'}#m#n!HS#n;'S'};'S;=`(f<%lO'}!f!IhX(R!bOY!IcZw!Icwx!Acx#O!Ic#O#P!A{#P#Q!GY#Q;'S!Ic;'S;=`!JT<%lO!Ic!f!JWP;=`<%l!Ic!f!J^P;=`<%l!GY(Q!Jh^$f&j(R!bOY!JaYZ&cZw!Jawx!Bwx!^!Ja!^!_!Ic!_#O!Ja#O#P!Cr#P#Q!Q#V#X%Z#X#Y!4|#Y#b%Z#b#c#Zd$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#?tf$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#b%Z#b#c#V7e[e]||-1},{term:334,get:e=>H7e[e]||-1},{term:70,get:e=>W7e[e]||-1}],tokenPrec:14638}),Cte=[ya("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),ya("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),ya("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),ya("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),ya("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),ya(`try { \${} } catch (\${error}) { \${} -}`,{label:"try",detail:"/ catch block",type:"keyword"}),ma("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),ma(`if (\${}) { +}`,{label:"try",detail:"/ catch block",type:"keyword"}),ya("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),ya(`if (\${}) { \${} } else { \${} -}`,{label:"if",detail:"/ else block",type:"keyword"}),ma(`class \${name} { +}`,{label:"if",detail:"/ else block",type:"keyword"}),ya(`class \${name} { constructor(\${params}) { \${} } -}`,{label:"class",detail:"definition",type:"keyword"}),ma('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),ma('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],_Pe=jK.concat([ma("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),ma("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),ma("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),ij=new _Z,zK=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function L0(e){return(t,n)=>{let r=t.node.getChild("VariableDefinition");return r&&n(r,e),!0}}const RPe=["FunctionDeclaration"],IPe={FunctionDeclaration:L0("function"),ClassDeclaration:L0("class"),ClassExpression:()=>!0,EnumDeclaration:L0("constant"),TypeAliasDeclaration:L0("type"),NamespaceDeclaration:L0("namespace"),VariableDefinition(e,t){e.matchContext(RPe)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function VK(e,t){let n=ij.get(t);if(n)return n;let r=[],i=!0;function o(a,s){let l=e.sliceString(a.from,a.to);r.push({label:l,type:s})}return t.cursor(kr.IncludeAnonymous).iterate(a=>{if(i)i=!1;else if(a.name){let s=IPe[a.name];if(s&&s(a,o)||zK.has(a.name))return!1}else if(a.to-a.from>8192){for(let s of VK(e,a.node))r.push(s);return!1}}),ij.set(t,r),r}const oj=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,HK=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function DPe(e){let t=Cr(e.state).resolveInner(e.pos,-1);if(HK.indexOf(t.name)>-1)return null;let n=t.name=="VariableName"||t.to-t.from<20&&oj.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let i=t;i;i=i.parent)zK.has(i.name)&&(r=r.concat(VK(e.state.doc,i)));return{options:r,from:n?t.from:e.pos,validFor:oj}}const Au=rg.define({name:"javascript",parser:APe.configure({props:[sO.add({IfStatement:JE({except:/^\s*({|else\b)/}),TryStatement:JE({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:z2e,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:j2e({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":JE({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}}),Dg.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":$Z,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),WK={test:e=>/^JSX/.test(e.name),facet:FP({commentTokens:{block:{open:"{/*",close:"*/}"}}})},QK=Au.configure({dialect:"ts"},"typescript"),YK=Au.configure({dialect:"jsx",props:[BP.add(e=>e.isTop?[WK]:void 0)]}),GK=Au.configure({dialect:"jsx ts",props:[BP.add(e=>e.isTop?[WK]:void 0)]},"typescript");let qK=e=>({label:e,type:"keyword"});const ZK="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(qK),NPe=ZK.concat(["declare","implements","private","protected","public"].map(qK));function PPe(e={}){let t=e.jsx?e.typescript?GK:YK:e.typescript?QK:Au,n=e.typescript?_Pe.concat(NPe):jK.concat(ZK);return new Yy(t,[Au.data.of({autocomplete:iIe(HK,BX(n))}),Au.data.of({autocomplete:DPe}),e.jsx?$Pe:[]])}function LPe(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 aj(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 MPe=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),$Pe=Ht.inputHandler.of((e,t,n,r,i)=>{if((MPe?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||r!=">"&&r!="/"||!Au.isActiveAt(e.state,t,-1))return!1;let o=i(),{state:a}=o,s=a.changeByRange(l=>{var u;let{head:c}=l,d=Cr(a).resolveInner(c-1,-1),p;if(d.name=="JSXStartTag"&&(d=d.parent),!(a.doc.sliceString(c-1,c)!=r||d.name=="JSXAttributeValue"&&d.to>c)){if(r==">"&&d.name=="JSXFragmentTag")return{range:l,changes:{from:c,insert:""}};if(r=="/"&&d.name=="JSXStartCloseTag"){let h=d.parent,m=h.parent;if(m&&h.from==c-2&&((p=aj(a.doc,m.firstChild,c))||((u=m.firstChild)===null||u===void 0?void 0:u.name)=="JSXFragmentTag")){let b=`${p}>`;return{range:tt.cursor(c+b.length,-1),changes:{from:c,insert:b}}}}else if(r==">"){let h=LPe(d);if(h&&!/^\/?>|^<\//.test(a.doc.sliceString(c,c+2))&&(p=aj(a.doc,h,c)))return{range:l,changes:{from:c,insert:``}}}}return{range:l}});return s.changes.empty?!1:(e.dispatch([o,a.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),M0=["_blank","_self","_top","_parent"],$A=["ascii","utf-8","utf-16","latin1","latin1"],FA=["get","post","put","delete"],BA=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Qa=["true","false"],an={},FPe={a:{attrs:{href:null,ping:null,type:null,media:null,target:M0,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:M0}},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:BA,formmethod:FA,formnovalidate:["novalidate"],formtarget:M0,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":$A,autocomplete:["on","off"],enctype:BA,method:FA,novalidate:["novalidate"],target:M0}},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:BA,formmethod:FA,formnovalidate:["novalidate"],formtarget:M0,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:$A,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:$A}},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},XK={accesskey:null,class:null,contenteditable:Qa,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:Qa,autocorrect:Qa,autocapitalize:Qa,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":Qa,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Qa,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Qa,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Qa,"aria-hidden":Qa,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Qa,"aria-multiselectable":Qa,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Qa,"aria-relevant":null,"aria-required":Qa,"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},KK="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 KK)XK[e]=null;let n1=class{constructor(t,n){this.tags=Object.assign(Object.assign({},FPe),t),this.globalAttrs=Object.assign(Object.assign({},XK),n),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};n1.default=new n1;function ug(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 cg(e,t=!1){for(;e;e=e.parent)if(e.name=="Element")if(t)t=!1;else return e;return null}function JK(e,t,n){let r=n.tags[ug(e,cg(t))];return(r==null?void 0:r.children)||n.allTags}function s3(e,t){let n=[];for(let r=cg(t);r&&!r.type.isTop;r=cg(r.parent)){let i=ug(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 eJ=/^[:\-\.\w\u00b7-\uffff]*$/;function sj(e,t,n,r,i){let o=/\s*>/.test(e.sliceDoc(i,i+5))?"":">",a=cg(n,!0);return{from:r,to:i,options:JK(e.doc,a,t).map(s=>({label:s,type:"type"})).concat(s3(e.doc,n).map((s,l)=>({label:"/"+s,apply:"/"+s+o,type:"type",boost:99-l}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function lj(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:n,to:r,options:s3(e.doc,t).map((o,a)=>({label:o,apply:o+i,type:"type",boost:99-a})),validFor:eJ}}function BPe(e,t,n,r){let i=[],o=0;for(let a of JK(e.doc,n,t))i.push({label:"<"+a,type:"type"});for(let a of s3(e.doc,n))i.push({label:"",type:"type",boost:99-o++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function UPe(e,t,n,r,i){let o=cg(n),a=o?t.tags[ug(e.doc,o)]:null,s=a&&a.attrs?Object.keys(a.attrs):[],l=a&&a.globalAttrs===!1?s:s.length?s.concat(t.globalAttrNames):t.globalAttrNames;return{from:r,to:i,options:l.map(u=>({label:u,type:"property"})),validFor:eJ}}function jPe(e,t,n,r,i){var o;let a=(o=n.parent)===null||o===void 0?void 0:o.getChild("AttributeName"),s=[],l;if(a){let u=e.sliceDoc(a.from,a.to),c=t.globalAttrs[u];if(!c){let d=cg(n),p=d?t.tags[ug(e.doc,d)]:null;c=(p==null?void 0:p.attrs)&&p.attrs[u]}if(c){let d=e.sliceDoc(r,i).toLowerCase(),p='"',h='"';/^['"]/.test(d)?(l=d[0]=='"'?/^[^"]*$/:/^[^']*$/,p="",h=e.sliceDoc(i,i+1)==d[0]?"":d[0],d=d.slice(1),r++):l=/^[^\s<>='"]*$/;for(let m of c)s.push({label:m,apply:p+m+h,type:"constant"})}}return{from:r,to:i,options:s,validFor:l}}function tJ(e,t){let{state:n,pos:r}=t,i=Cr(n).resolveInner(r,-1),o=i.resolve(r);for(let a=r,s;o==i&&(s=i.childBefore(a));){let l=s.lastChild;if(!l||!l.type.isError||l.fromtJ(r,i)}const HPe=Au.parser.configure({top:"SingleExpression"}),nJ=[{tag:"script",attrs:e=>e.type=="text/typescript"||e.lang=="ts",parser:QK.parser},{tag:"script",attrs:e=>e.type=="text/babel"||e.type=="text/jsx",parser:YK.parser},{tag:"script",attrs:e=>e.type=="text/typescript-jsx",parser:GK.parser},{tag:"script",attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:HPe},{tag:"script",attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:Au.parser},{tag:"style",attrs(e){return(!e.lang||e.lang=="css")&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:zT.parser}],rJ=[{name:"style",parser:zT.parser.configure({top:"Styles"})}].concat(KK.map(e=>({name:e,parser:Au.parser}))),iJ=rg.define({name:"html",parser:ANe.configure({props:[sO.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:"-._"}}),nS=iJ.configure({wrap:MK(nJ,rJ)});function WPe(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=MK((e.nestedLanguages||[]).concat(nJ),(e.nestedAttributes||[]).concat(rJ)));let r=n?iJ.configure({wrap:n,dialect:t}):t?nS.configure({dialect:t}):nS;return new Yy(r,[nS.data.of({autocomplete:VPe(e)}),e.autoCloseTags!==!1?QPe:[],PPe().support,rPe().support])}const uj=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),QPe=Ht.inputHandler.of((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||r!=">"&&r!="/"||!nS.isActiveAt(e.state,t,-1))return!1;let o=i(),{state:a}=o,s=a.changeByRange(l=>{var u,c,d;let p=a.doc.sliceString(l.from-1,l.to)==r,{head:h}=l,m=Cr(a).resolveInner(h-1,-1),b;if((m.name=="TagName"||m.name=="StartTag")&&(m=m.parent),p&&r==">"&&m.name=="OpenTag"){if(((c=(u=m.parent)===null||u===void 0?void 0:u.lastChild)===null||c===void 0?void 0:c.name)!="CloseTag"&&(b=ug(a.doc,m.parent,h))&&!uj.has(b)){let O=h+(a.doc.sliceString(h,h+1)===">"?1:0),y=``;return{range:l,changes:{from:h,to:O,insert:y}}}}else if(p&&r=="/"&&m.name=="IncompleteCloseTag"){let O=m.parent;if(m.from==h-2&&((d=O.lastChild)===null||d===void 0?void 0:d.name)!="CloseTag"&&(b=ug(a.doc,O,h))&&!uj.has(b)){let y=h+(a.doc.sliceString(h,h+1)===">"?1:0),v=`${b}>`;return{range:tt.cursor(h+v.length,-1),changes:{from:h,to:y,insert:v}}}}return{range:l}});return s.changes.empty?!1:(e.dispatch([o,a.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),oJ=FP({commentTokens:{block:{open:""}}}),aJ=new vn,sJ=TDe.configure({props:[Dg.add(e=>!e.is("Block")||e.is("Document")||oI(e)!=null?void 0:(t,n)=>({from:n.doc.lineAt(t.from).to,to:t.to})),aJ.add(oI),sO.add({Document:()=>null}),Vf.add({Document:oJ})]});function oI(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function YPe(e,t){let n=e;for(;;){let r=n.nextSibling,i;if(!r||(i=oI(r.type))!=null&&i<=t)break;n=r}return n.to}const GPe=MZ.of((e,t,n)=>{for(let r=Cr(e).resolveInner(n,-1);r&&!(r.fromn)return{from:n,to:o}}return null});function l3(e){return new zs(oJ,e,[GPe],"markdown")}const qPe=l3(sJ),ZPe=sJ.configure([PDe,MDe,LDe,$De,{props:[Dg.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]),lJ=l3(ZPe);function XPe(e,t){return n=>{if(n&&e){let r=null;if(n=/\S*/.exec(n)[0],typeof e=="function"?r=e(n):r=TT.matchLanguageName(e,n,!0),r instanceof TT)return r.support?r.support.language.parser:Qy.getSkippingParser(r.load());if(r)return r.parser}return t?t.parser:null}}class nE{constructor(t,n,r,i,o,a,s){this.node=t,this.from=n,this.to=r,this.spaceBefore=i,this.spaceAfter=o,this.type=a,this.item=s}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(+cJ(this.item,t)[2]+n):"";return this.spaceBefore+r+this.type+this.spaceAfter}}function uJ(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 o=n[i],a,s=t.lineAt(o.from),l=o.from-s.from;if(o.name=="FencedCode")r.push(new nE(o,l,l,"","","",null));else if(o.name=="Blockquote"&&(a=/^ *>( ?)/.exec(s.text.slice(l))))r.push(new nE(o,l,l+a[0].length,"",a[1],">",null));else if(o.name=="ListItem"&&o.parent.name=="OrderedList"&&(a=/^( *)\d+([.)])( *)/.exec(s.text.slice(l)))){let u=a[3],c=a[0].length;u.length>=4&&(u=u.slice(0,u.length-4),c-=4),r.push(new nE(o.parent,l,l+c,a[1],u,a[2],o))}else if(o.name=="ListItem"&&o.parent.name=="BulletList"&&(a=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(s.text.slice(l)))){let u=a[4],c=a[0].length;u.length>4&&(u=u.slice(0,u.length-4),c-=4);let d=a[2];a[3]&&(d+=a[3].replace(/[xX]/," ")),r.push(new nE(o.parent,l,l+c,a[1],u,d,o))}}return r}function cJ(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function UA(e,t,n,r=0){for(let i=-1,o=e;;){if(o.name=="ListItem"){let s=cJ(o,t),l=+s[2];if(i>=0){if(l!=i+1)return;n.push({from:o.from+s[1].length,to:o.from+s[0].length,insert:String(i+2+r)})}i=l}let a=o.nextSibling;if(!a)break;o=a}}function u3(e,t){let n=/^[ \t]*/.exec(e)[0].length;if(!n||t.facet(aO)!=" ")return e;let r=Dl(e,4,n),i="";for(let o=r;o>0;)o>=4?(i+=" ",o-=4):(i+=" ",o--);return i+e.slice(n)}const KPe=({state:e,dispatch:t})=>{let n=Cr(e),{doc:r}=e,i=null,o=e.changeByRange(a=>{if(!a.empty||!lJ.isActiveAt(e,a.from))return i={range:a};let s=a.from,l=r.lineAt(s),u=uJ(n.resolveInner(s,-1),r);for(;u.length&&u[u.length-1].from>s-l.from;)u.pop();if(!u.length)return i={range:a};let c=u[u.length-1];if(c.to-c.spaceAfter.length>s-l.from)return i={range:a};let d=s>=c.to-c.spaceAfter.length&&!/\S/.test(l.text.slice(c.to));if(c.item&&d){let O=c.node.firstChild,y=c.node.getChild("ListItem","ListItem");if(O.to>=s||y&&y.to0&&!/[^\s>]/.test(r.lineAt(l.from-1).text)){let v=u.length>1?u[u.length-2]:null,S,k="";v&&v.item?(S=l.from+v.from,k=v.marker(r,1)):S=l.from+(v?v.to:0);let C=[{from:S,to:s,insert:k}];return c.node.name=="OrderedList"&&UA(c.item,r,C,-2),v&&v.node.name=="OrderedList"&&UA(v.item,r,C),{range:tt.cursor(S+k.length),changes:C}}else{let v=dj(u,e,l);return{range:tt.cursor(s+v.length+1),changes:{from:l.from,insert:v+e.lineBreak}}}}if(c.node.name=="Blockquote"&&d&&l.from){let O=r.lineAt(l.from-1),y=/>\s*$/.exec(O.text);if(y&&y.index==c.from){let v=e.changes([{from:O.from+y.index,to:O.to},{from:l.from+c.from,to:l.to}]);return{range:a.map(v),changes:v}}}let p=[];c.node.name=="OrderedList"&&UA(c.item,r,p);let h=c.item&&c.item.from]*/.exec(l.text)[0].length>=c.to)for(let O=0,y=u.length-1;O<=y;O++)m+=O==y&&!h?u[O].marker(r,1):u[O].blank(Ol.from&&/\s/.test(l.text.charAt(b-l.from-1));)b--;return m=u3(m,e),JPe(c.node,e.doc)&&(m=dj(u,e,l)+e.lineBreak+m),p.push({from:b,to:s,insert:e.lineBreak+m}),{range:tt.cursor(b+m.length+1),changes:p}});return i?!1:(t(e.update(o,{scrollIntoView:!0,userEvent:"input"})),!0)};function cj(e){return e.name=="QuoteMark"||e.name=="ListMark"}function JPe(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),o=t.lineAt(r.from),a=/^[\s>]*$/.test(i.text);return i.number+(a?0:1){let n=Cr(e),r=null,i=e.changeByRange(o=>{let a=o.from,{doc:s}=e;if(o.empty&&lJ.isActiveAt(e,o.from)){let l=s.lineAt(a),u=uJ(e3e(n,a),s);if(u.length){let c=u[u.length-1],d=c.to-c.spaceAfter.length+(c.spaceAfter?1:0);if(a-l.from>d&&!/\S/.test(l.text.slice(d,a-l.from)))return{range:tt.cursor(l.from+d),changes:{from:l.from+d,to:a}};if(a-l.from==d&&(!c.item||l.from<=c.item.from||!/\S/.test(l.text.slice(0,c.to)))){let p=l.from+c.from;if(c.item&&c.node.from{let r=t.node.getChild("VariableDefinition");return r&&n(r,e),!0}}const G7e=["FunctionDeclaration"],q7e={FunctionDeclaration:V0("function"),ClassDeclaration:V0("class"),ClassExpression:()=>!0,EnumDeclaration:V0("constant"),TypeAliasDeclaration:V0("type"),NamespaceDeclaration:V0("namespace"),VariableDefinition(e,t){e.matchContext(G7e)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function _te(e,t){let n=Jj.get(t);if(n)return n;let r=[],i=!0;function o(a,s){let l=e.sliceString(a.from,a.to);r.push({label:l,type:s})}return t.cursor(xr.IncludeAnonymous).iterate(a=>{if(i)i=!1;else if(a.name){let s=q7e[a.name];if(s&&s(a,o)||Ate.has(a.name))return!1}else if(a.to-a.from>8192){for(let s of _te(e,a.node))r.push(s);return!1}}),Jj.set(t,r),r}const ez=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,Rte=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function Z7e(e){let t=Ar(e.state).resolveInner(e.pos,-1);if(Rte.indexOf(t.name)>-1)return null;let n=t.name=="VariableName"||t.to-t.from<20&&ez.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let i=t;i;i=i.parent)Ate.has(i.name)&&(r=r.concat(_te(e.state.doc,i)));return{options:r,from:n?t.from:e.pos,validFor:ez}}const _u=sg.define({name:"javascript",parser:Q7e.configure({props:[vO.add({IfStatement:uS({except:/^\s*({|else\b)/}),TryStatement:uS({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:a$e,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:o$e({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":uS({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}}),jg.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":TJ,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),Ite={test:e=>/^JSX/.test(e.name),facet:W3({commentTokens:{block:{open:"{/*",close:"*/}"}}})},Dte=_u.configure({dialect:"ts"},"typescript"),Nte=_u.configure({dialect:"jsx",props:[Q3.add(e=>e.isTop?[Ite]:void 0)]}),Pte=_u.configure({dialect:"jsx ts",props:[Q3.add(e=>e.isTop?[Ite]:void 0)]},"typescript");let Lte=e=>({label:e,type:"keyword"});const Mte="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(Lte),X7e=Mte.concat(["declare","implements","private","protected","public"].map(Lte));function K7e(e={}){let t=e.jsx?e.typescript?Pte:Nte:e.typescript?Dte:_u,n=e.typescript?Y7e.concat(X7e):Cte.concat(Mte);return new a1(t,[_u.data.of({autocomplete:S6e(Rte,kee(n))}),_u.data.of({autocomplete:Z7e}),e.jsx?tUe:[]])}function J7e(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 tz(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 eUe=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),tUe=Ht.inputHandler.of((e,t,n,r,i)=>{if((eUe?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||r!=">"&&r!="/"||!_u.isActiveAt(e.state,t,-1))return!1;let o=i(),{state:a}=o,s=a.changeByRange(l=>{var u;let{head:c}=l,d=Ar(a).resolveInner(c-1,-1),p;if(d.name=="JSXStartTag"&&(d=d.parent),!(a.doc.sliceString(c-1,c)!=r||d.name=="JSXAttributeValue"&&d.to>c)){if(r==">"&&d.name=="JSXFragmentTag")return{range:l,changes:{from:c,insert:""}};if(r=="/"&&d.name=="JSXStartCloseTag"){let h=d.parent,m=h.parent;if(m&&h.from==c-2&&((p=tz(a.doc,m.firstChild,c))||((u=m.firstChild)===null||u===void 0?void 0:u.name)=="JSXFragmentTag")){let b=`${p}>`;return{range:tt.cursor(c+b.length,-1),changes:{from:c,insert:b}}}}else if(r==">"){let h=J7e(d);if(h&&!/^\/?>|^<\//.test(a.doc.sliceString(c,c+2))&&(p=tz(a.doc,h,c)))return{range:l,changes:{from:c,insert:``}}}}return{range:l}});return s.changes.empty?!1:(e.dispatch([o,a.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),H0=["_blank","_self","_top","_parent"],e2=["ascii","utf-8","utf-16","latin1","latin1"],t2=["get","post","put","delete"],n2=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Qa=["true","false"],an={},nUe={a:{attrs:{href:null,ping:null,type:null,media:null,target:H0,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:H0}},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:n2,formmethod:t2,formnovalidate:["novalidate"],formtarget:H0,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":e2,autocomplete:["on","off"],enctype:n2,method:t2,novalidate:["novalidate"],target:H0}},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:n2,formmethod:t2,formnovalidate:["novalidate"],formtarget:H0,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:e2,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:e2}},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},$te={accesskey:null,class:null,contenteditable:Qa,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:Qa,autocorrect:Qa,autocapitalize:Qa,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":Qa,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Qa,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Qa,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Qa,"aria-hidden":Qa,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Qa,"aria-multiselectable":Qa,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Qa,"aria-relevant":null,"aria-required":Qa,"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},Fte="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 Fte)$te[e]=null;let m1=class{constructor(t,n){this.tags=Object.assign(Object.assign({},nUe),t),this.globalAttrs=Object.assign(Object.assign({},$te),n),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};m1.default=new m1;function pg(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 hg(e,t=!1){for(;e;e=e.parent)if(e.name=="Element")if(t)t=!1;else return e;return null}function Bte(e,t,n){let r=n.tags[pg(e,hg(t))];return(r==null?void 0:r.children)||n.allTags}function hL(e,t){let n=[];for(let r=hg(t);r&&!r.type.isTop;r=hg(r.parent)){let i=pg(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 Ute=/^[:\-\.\w\u00b7-\uffff]*$/;function nz(e,t,n,r,i){let o=/\s*>/.test(e.sliceDoc(i,i+5))?"":">",a=hg(n,!0);return{from:r,to:i,options:Bte(e.doc,a,t).map(s=>({label:s,type:"type"})).concat(hL(e.doc,n).map((s,l)=>({label:"/"+s,apply:"/"+s+o,type:"type",boost:99-l}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function rz(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:n,to:r,options:hL(e.doc,t).map((o,a)=>({label:o,apply:o+i,type:"type",boost:99-a})),validFor:Ute}}function rUe(e,t,n,r){let i=[],o=0;for(let a of Bte(e.doc,n,t))i.push({label:"<"+a,type:"type"});for(let a of hL(e.doc,n))i.push({label:"",type:"type",boost:99-o++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function iUe(e,t,n,r,i){let o=hg(n),a=o?t.tags[pg(e.doc,o)]:null,s=a&&a.attrs?Object.keys(a.attrs):[],l=a&&a.globalAttrs===!1?s:s.length?s.concat(t.globalAttrNames):t.globalAttrNames;return{from:r,to:i,options:l.map(u=>({label:u,type:"property"})),validFor:Ute}}function oUe(e,t,n,r,i){var o;let a=(o=n.parent)===null||o===void 0?void 0:o.getChild("AttributeName"),s=[],l;if(a){let u=e.sliceDoc(a.from,a.to),c=t.globalAttrs[u];if(!c){let d=hg(n),p=d?t.tags[pg(e.doc,d)]:null;c=(p==null?void 0:p.attrs)&&p.attrs[u]}if(c){let d=e.sliceDoc(r,i).toLowerCase(),p='"',h='"';/^['"]/.test(d)?(l=d[0]=='"'?/^[^"]*$/:/^[^']*$/,p="",h=e.sliceDoc(i,i+1)==d[0]?"":d[0],d=d.slice(1),r++):l=/^[^\s<>='"]*$/;for(let m of c)s.push({label:m,apply:p+m+h,type:"constant"})}}return{from:r,to:i,options:s,validFor:l}}function jte(e,t){let{state:n,pos:r}=t,i=Ar(n).resolveInner(r,-1),o=i.resolve(r);for(let a=r,s;o==i&&(s=i.childBefore(a));){let l=s.lastChild;if(!l||!l.type.isError||l.fromjte(r,i)}const lUe=_u.parser.configure({top:"SingleExpression"}),zte=[{tag:"script",attrs:e=>e.type=="text/typescript"||e.lang=="ts",parser:Dte.parser},{tag:"script",attrs:e=>e.type=="text/babel"||e.type=="text/jsx",parser:Nte.parser},{tag:"script",attrs:e=>e.type=="text/typescript-jsx",parser:Pte.parser},{tag:"script",attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:lUe},{tag:"script",attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:_u.parser},{tag:"style",attrs(e){return(!e.lang||e.lang=="css")&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:ow.parser}],Vte=[{name:"style",parser:ow.parser.configure({top:"Styles"})}].concat(Fte.map(e=>({name:e,parser:_u.parser}))),Hte=sg.define({name:"html",parser:Q8e.configure({props:[vO.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:"-._"}}),fS=Hte.configure({wrap:Ste(zte,Vte)});function uUe(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=Ste((e.nestedLanguages||[]).concat(zte),(e.nestedAttributes||[]).concat(Vte)));let r=n?Hte.configure({wrap:n,dialect:t}):t?fS.configure({dialect:t}):fS;return new a1(r,[fS.data.of({autocomplete:sUe(e)}),e.autoCloseTags!==!1?cUe:[],K7e().support,E7e().support])}const iz=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),cUe=Ht.inputHandler.of((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||r!=">"&&r!="/"||!fS.isActiveAt(e.state,t,-1))return!1;let o=i(),{state:a}=o,s=a.changeByRange(l=>{var u,c,d;let p=a.doc.sliceString(l.from-1,l.to)==r,{head:h}=l,m=Ar(a).resolveInner(h-1,-1),b;if((m.name=="TagName"||m.name=="StartTag")&&(m=m.parent),p&&r==">"&&m.name=="OpenTag"){if(((c=(u=m.parent)===null||u===void 0?void 0:u.lastChild)===null||c===void 0?void 0:c.name)!="CloseTag"&&(b=pg(a.doc,m.parent,h))&&!iz.has(b)){let O=h+(a.doc.sliceString(h,h+1)===">"?1:0),y=``;return{range:l,changes:{from:h,to:O,insert:y}}}}else if(p&&r=="/"&&m.name=="IncompleteCloseTag"){let O=m.parent;if(m.from==h-2&&((d=O.lastChild)===null||d===void 0?void 0:d.name)!="CloseTag"&&(b=pg(a.doc,O,h))&&!iz.has(b)){let y=h+(a.doc.sliceString(h,h+1)===">"?1:0),v=`${b}>`;return{range:tt.cursor(h+v.length,-1),changes:{from:h,to:y,insert:v}}}}return{range:l}});return s.changes.empty?!1:(e.dispatch([o,a.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),Wte=W3({commentTokens:{block:{open:""}}}),Qte=new vn,Yte=jBe.configure({props:[jg.add(e=>!e.is("Block")||e.is("Document")||MI(e)!=null?void 0:(t,n)=>({from:n.doc.lineAt(t.from).to,to:t.to})),Qte.add(MI),vO.add({Document:()=>null}),Qf.add({Document:Wte})]});function MI(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function dUe(e,t){let n=e;for(;;){let r=n.nextSibling,i;if(!r||(i=MI(r.type))!=null&&i<=t)break;n=r}return n.to}const fUe=SJ.of((e,t,n)=>{for(let r=Ar(e).resolveInner(n,-1);r&&!(r.fromn)return{from:n,to:o}}return null});function mL(e){return new zs(Wte,e,[fUe],"markdown")}const pUe=mL(Yte),hUe=Yte.configure([KBe,e8e,JBe,t8e,{props:[jg.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]),Gte=mL(hUe);function mUe(e,t){return n=>{if(n&&e){let r=null;if(n=/\S*/.exec(n)[0],typeof e=="function"?r=e(n):r=UT.matchLanguageName(e,n,!0),r instanceof UT)return r.support?r.support.language.parser:o1.getSkippingParser(r.load());if(r)return r.parser}return t?t.parser:null}}class dE{constructor(t,n,r,i,o,a,s){this.node=t,this.from=n,this.to=r,this.spaceBefore=i,this.spaceAfter=o,this.type=a,this.item=s}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(+Zte(this.item,t)[2]+n):"";return this.spaceBefore+r+this.type+this.spaceAfter}}function qte(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 o=n[i],a,s=t.lineAt(o.from),l=o.from-s.from;if(o.name=="FencedCode")r.push(new dE(o,l,l,"","","",null));else if(o.name=="Blockquote"&&(a=/^ *>( ?)/.exec(s.text.slice(l))))r.push(new dE(o,l,l+a[0].length,"",a[1],">",null));else if(o.name=="ListItem"&&o.parent.name=="OrderedList"&&(a=/^( *)\d+([.)])( *)/.exec(s.text.slice(l)))){let u=a[3],c=a[0].length;u.length>=4&&(u=u.slice(0,u.length-4),c-=4),r.push(new dE(o.parent,l,l+c,a[1],u,a[2],o))}else if(o.name=="ListItem"&&o.parent.name=="BulletList"&&(a=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(s.text.slice(l)))){let u=a[4],c=a[0].length;u.length>4&&(u=u.slice(0,u.length-4),c-=4);let d=a[2];a[3]&&(d+=a[3].replace(/[xX]/," ")),r.push(new dE(o.parent,l,l+c,a[1],u,d,o))}}return r}function Zte(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function r2(e,t,n,r=0){for(let i=-1,o=e;;){if(o.name=="ListItem"){let s=Zte(o,t),l=+s[2];if(i>=0){if(l!=i+1)return;n.push({from:o.from+s[1].length,to:o.from+s[0].length,insert:String(i+2+r)})}i=l}let a=o.nextSibling;if(!a)break;o=a}}function gL(e,t){let n=/^[ \t]*/.exec(e)[0].length;if(!n||t.facet(OO)!=" ")return e;let r=Pl(e,4,n),i="";for(let o=r;o>0;)o>=4?(i+=" ",o-=4):(i+=" ",o--);return i+e.slice(n)}const gUe=({state:e,dispatch:t})=>{let n=Ar(e),{doc:r}=e,i=null,o=e.changeByRange(a=>{if(!a.empty||!Gte.isActiveAt(e,a.from))return i={range:a};let s=a.from,l=r.lineAt(s),u=qte(n.resolveInner(s,-1),r);for(;u.length&&u[u.length-1].from>s-l.from;)u.pop();if(!u.length)return i={range:a};let c=u[u.length-1];if(c.to-c.spaceAfter.length>s-l.from)return i={range:a};let d=s>=c.to-c.spaceAfter.length&&!/\S/.test(l.text.slice(c.to));if(c.item&&d){let O=c.node.firstChild,y=c.node.getChild("ListItem","ListItem");if(O.to>=s||y&&y.to0&&!/[^\s>]/.test(r.lineAt(l.from-1).text)){let v=u.length>1?u[u.length-2]:null,S,k="";v&&v.item?(S=l.from+v.from,k=v.marker(r,1)):S=l.from+(v?v.to:0);let C=[{from:S,to:s,insert:k}];return c.node.name=="OrderedList"&&r2(c.item,r,C,-2),v&&v.node.name=="OrderedList"&&r2(v.item,r,C),{range:tt.cursor(S+k.length),changes:C}}else{let v=az(u,e,l);return{range:tt.cursor(s+v.length+1),changes:{from:l.from,insert:v+e.lineBreak}}}}if(c.node.name=="Blockquote"&&d&&l.from){let O=r.lineAt(l.from-1),y=/>\s*$/.exec(O.text);if(y&&y.index==c.from){let v=e.changes([{from:O.from+y.index,to:O.to},{from:l.from+c.from,to:l.to}]);return{range:a.map(v),changes:v}}}let p=[];c.node.name=="OrderedList"&&r2(c.item,r,p);let h=c.item&&c.item.from]*/.exec(l.text)[0].length>=c.to)for(let O=0,y=u.length-1;O<=y;O++)m+=O==y&&!h?u[O].marker(r,1):u[O].blank(Ol.from&&/\s/.test(l.text.charAt(b-l.from-1));)b--;return m=gL(m,e),bUe(c.node,e.doc)&&(m=az(u,e,l)+e.lineBreak+m),p.push({from:b,to:s,insert:e.lineBreak+m}),{range:tt.cursor(b+m.length+1),changes:p}});return i?!1:(t(e.update(o,{scrollIntoView:!0,userEvent:"input"})),!0)};function oz(e){return e.name=="QuoteMark"||e.name=="ListMark"}function bUe(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),o=t.lineAt(r.from),a=/^[\s>]*$/.test(i.text);return i.number+(a?0:1){let n=Ar(e),r=null,i=e.changeByRange(o=>{let a=o.from,{doc:s}=e;if(o.empty&&Gte.isActiveAt(e,o.from)){let l=s.lineAt(a),u=qte(yUe(n,a),s);if(u.length){let c=u[u.length-1],d=c.to-c.spaceAfter.length+(c.spaceAfter?1:0);if(a-l.from>d&&!/\S/.test(l.text.slice(d,a-l.from)))return{range:tt.cursor(l.from+d),changes:{from:l.from+d,to:a}};if(a-l.from==d&&(!c.item||l.from<=c.item.from||!/\S/.test(l.text.slice(0,c.to)))){let p=l.from+c.from;if(c.item&&c.node.from(()=>{var r={646:(s,l,u)=>{Object.defineProperty(l,"__esModule",{value:!0});const{proto3:c,StringValue:d,Timestamp:p}=u(532),h=c.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"}]),m=c.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"}]),b=c.makeMessageType("yorkie.v1.Snapshot",()=>[{no:1,name:"root",kind:"message",T:W},{no:2,name:"presences",kind:"map",K:9,V:{kind:"message",T:Be}}]),O=c.makeMessageType("yorkie.v1.ChangePack",()=>[{no:1,name:"document_key",kind:"scalar",T:9},{no:2,name:"checkpoint",kind:"message",T:re},{no:3,name:"snapshot",kind:"scalar",T:12},{no:4,name:"changes",kind:"message",T:y,repeated:!0},{no:5,name:"min_synced_ticket",kind:"message",T:J},{no:6,name:"is_removed",kind:"scalar",T:8}]),y=c.makeMessageType("yorkie.v1.Change",()=>[{no:1,name:"id",kind:"message",T:v},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"operations",kind:"message",T:S,repeated:!0},{no:4,name:"presence_change",kind:"message",T:We}]),v=c.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}]),S=c.makeMessageType("yorkie.v1.Operation",()=>[{no:1,name:"set",kind:"message",T:k,oneof:"body"},{no:2,name:"add",kind:"message",T:C,oneof:"body"},{no:3,name:"move",kind:"message",T:w,oneof:"body"},{no:4,name:"remove",kind:"message",T:E,oneof:"body"},{no:5,name:"edit",kind:"message",T:$,oneof:"body"},{no:6,name:"select",kind:"message",T:N,oneof:"body"},{no:7,name:"style",kind:"message",T:R,oneof:"body"},{no:8,name:"increase",kind:"message",T:B,oneof:"body"},{no:9,name:"tree_edit",kind:"message",T:U,oneof:"body"},{no:10,name:"tree_style",kind:"message",T:V,oneof:"body"}]),k=c.makeMessageType("yorkie.v1.Operation.Set",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"value",kind:"message",T:z},{no:4,name:"executed_at",kind:"message",T:J}],{localName:"Operation_Set"}),C=c.makeMessageType("yorkie.v1.Operation.Add",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"prev_created_at",kind:"message",T:J},{no:3,name:"value",kind:"message",T:z},{no:4,name:"executed_at",kind:"message",T:J}],{localName:"Operation_Add"}),w=c.makeMessageType("yorkie.v1.Operation.Move",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"prev_created_at",kind:"message",T:J},{no:3,name:"created_at",kind:"message",T:J},{no:4,name:"executed_at",kind:"message",T:J}],{localName:"Operation_Move"}),E=c.makeMessageType("yorkie.v1.Operation.Remove",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"created_at",kind:"message",T:J},{no:3,name:"executed_at",kind:"message",T:J}],{localName:"Operation_Remove"}),$=c.makeMessageType("yorkie.v1.Operation.Edit",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"from",kind:"message",T:ee},{no:3,name:"to",kind:"message",T:ee},{no:4,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:J}},{no:5,name:"content",kind:"scalar",T:9},{no:6,name:"executed_at",kind:"message",T:J},{no:7,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}}],{localName:"Operation_Edit"}),N=c.makeMessageType("yorkie.v1.Operation.Select",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"from",kind:"message",T:ee},{no:3,name:"to",kind:"message",T:ee},{no:4,name:"executed_at",kind:"message",T:J}],{localName:"Operation_Select"}),R=c.makeMessageType("yorkie.v1.Operation.Style",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"from",kind:"message",T:ee},{no:3,name:"to",kind:"message",T:ee},{no:4,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:5,name:"executed_at",kind:"message",T:J},{no:6,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:J}}],{localName:"Operation_Style"}),B=c.makeMessageType("yorkie.v1.Operation.Increase",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"value",kind:"message",T:z},{no:3,name:"executed_at",kind:"message",T:J}],{localName:"Operation_Increase"}),U=c.makeMessageType("yorkie.v1.Operation.TreeEdit",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"from",kind:"message",T:Ke},{no:3,name:"to",kind:"message",T:Ke},{no:4,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:J}},{no:5,name:"contents",kind:"message",T:Ne,repeated:!0},{no:7,name:"split_level",kind:"scalar",T:5},{no:6,name:"executed_at",kind:"message",T:J}],{localName:"Operation_TreeEdit"}),V=c.makeMessageType("yorkie.v1.Operation.TreeStyle",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"from",kind:"message",T:Ke},{no:3,name:"to",kind:"message",T:Ke},{no:4,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:5,name:"executed_at",kind:"message",T:J}],{localName:"Operation_TreeStyle"}),z=c.makeMessageType("yorkie.v1.JSONElementSimple",()=>[{no:1,name:"created_at",kind:"message",T:J},{no:2,name:"moved_at",kind:"message",T:J},{no:3,name:"removed_at",kind:"message",T:J},{no:4,name:"type",kind:"enum",T:c.getEnumType(h)},{no:5,name:"value",kind:"scalar",T:12}]),W=c.makeMessageType("yorkie.v1.JSONElement",()=>[{no:1,name:"json_object",kind:"message",T:X,oneof:"body"},{no:2,name:"json_array",kind:"message",T:q,oneof:"body"},{no:3,name:"primitive",kind:"message",T:Y,oneof:"body"},{no:5,name:"text",kind:"message",T:Z,oneof:"body"},{no:6,name:"counter",kind:"message",T:j,oneof:"body"},{no:7,name:"tree",kind:"message",T:se,oneof:"body"}]),X=c.makeMessageType("yorkie.v1.JSONElement.JSONObject",()=>[{no:1,name:"nodes",kind:"message",T:ve,repeated:!0},{no:2,name:"created_at",kind:"message",T:J},{no:3,name:"moved_at",kind:"message",T:J},{no:4,name:"removed_at",kind:"message",T:J}],{localName:"JSONElement_JSONObject"}),q=c.makeMessageType("yorkie.v1.JSONElement.JSONArray",()=>[{no:1,name:"nodes",kind:"message",T:G,repeated:!0},{no:2,name:"created_at",kind:"message",T:J},{no:3,name:"moved_at",kind:"message",T:J},{no:4,name:"removed_at",kind:"message",T:J}],{localName:"JSONElement_JSONArray"}),Y=c.makeMessageType("yorkie.v1.JSONElement.Primitive",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType(h)},{no:2,name:"value",kind:"scalar",T:12},{no:3,name:"created_at",kind:"message",T:J},{no:4,name:"moved_at",kind:"message",T:J},{no:5,name:"removed_at",kind:"message",T:J}],{localName:"JSONElement_Primitive"}),Z=c.makeMessageType("yorkie.v1.JSONElement.Text",()=>[{no:1,name:"nodes",kind:"message",T:ge,repeated:!0},{no:2,name:"created_at",kind:"message",T:J},{no:3,name:"moved_at",kind:"message",T:J},{no:4,name:"removed_at",kind:"message",T:J}],{localName:"JSONElement_Text"}),j=c.makeMessageType("yorkie.v1.JSONElement.Counter",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType(h)},{no:2,name:"value",kind:"scalar",T:12},{no:3,name:"created_at",kind:"message",T:J},{no:4,name:"moved_at",kind:"message",T:J},{no:5,name:"removed_at",kind:"message",T:J}],{localName:"JSONElement_Counter"}),se=c.makeMessageType("yorkie.v1.JSONElement.Tree",()=>[{no:1,name:"nodes",kind:"message",T:xe,repeated:!0},{no:2,name:"created_at",kind:"message",T:J},{no:3,name:"moved_at",kind:"message",T:J},{no:4,name:"removed_at",kind:"message",T:J}],{localName:"JSONElement_Tree"}),ve=c.makeMessageType("yorkie.v1.RHTNode",()=>[{no:1,name:"key",kind:"scalar",T:9},{no:2,name:"element",kind:"message",T:W}]),G=c.makeMessageType("yorkie.v1.RGANode",()=>[{no:1,name:"next",kind:"message",T:G},{no:2,name:"element",kind:"message",T:W}]),ce=c.makeMessageType("yorkie.v1.NodeAttr",()=>[{no:1,name:"value",kind:"scalar",T:9},{no:2,name:"updated_at",kind:"message",T:J}]),ge=c.makeMessageType("yorkie.v1.TextNode",()=>[{no:1,name:"id",kind:"message",T:ue},{no:2,name:"value",kind:"scalar",T:9},{no:3,name:"removed_at",kind:"message",T:J},{no:4,name:"ins_prev_id",kind:"message",T:ue},{no:5,name:"attributes",kind:"map",K:9,V:{kind:"message",T:ce}}]),ue=c.makeMessageType("yorkie.v1.TextNodeID",()=>[{no:1,name:"created_at",kind:"message",T:J},{no:2,name:"offset",kind:"scalar",T:5}]),xe=c.makeMessageType("yorkie.v1.TreeNode",()=>[{no:1,name:"id",kind:"message",T:Ve},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"value",kind:"scalar",T:9},{no:4,name:"removed_at",kind:"message",T:J},{no:5,name:"ins_prev_id",kind:"message",T:Ve},{no:6,name:"ins_next_id",kind:"message",T:Ve},{no:7,name:"depth",kind:"scalar",T:5},{no:8,name:"attributes",kind:"map",K:9,V:{kind:"message",T:ce}}]),Ne=c.makeMessageType("yorkie.v1.TreeNodes",()=>[{no:1,name:"content",kind:"message",T:xe,repeated:!0}]),Ve=c.makeMessageType("yorkie.v1.TreeNodeID",()=>[{no:1,name:"created_at",kind:"message",T:J},{no:2,name:"offset",kind:"scalar",T:5}]),Ke=c.makeMessageType("yorkie.v1.TreePos",()=>[{no:1,name:"parent_id",kind:"message",T:Ve},{no:2,name:"left_sibling_id",kind:"message",T:Ve}]),Me=c.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:p}]),Ye=c.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:p},{no:9,name:"updated_at",kind:"message",T:p}]),ye=c.makeMessageType("yorkie.v1.UpdatableProjectFields",()=>[{no:1,name:"name",kind:"message",T:d},{no:2,name:"auth_webhook_url",kind:"message",T:d},{no:3,name:"auth_webhook_methods",kind:"message",T:ze},{no:4,name:"client_deactivate_threshold",kind:"message",T:d}]),ze=c.makeMessageType("yorkie.v1.UpdatableProjectFields.AuthWebhookMethods",()=>[{no:1,name:"methods",kind:"scalar",T:9,repeated:!0}],{localName:"UpdatableProjectFields_AuthWebhookMethods"}),$e=c.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:p},{no:5,name:"accessed_at",kind:"message",T:p},{no:6,name:"updated_at",kind:"message",T:p}]),We=c.makeMessageType("yorkie.v1.PresenceChange",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType(dt)},{no:2,name:"presence",kind:"message",T:Be}]),dt=c.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"}]),Be=c.makeMessageType("yorkie.v1.Presence",()=>[{no:1,name:"data",kind:"map",K:9,V:{kind:"scalar",T:9}}]),re=c.makeMessageType("yorkie.v1.Checkpoint",()=>[{no:1,name:"server_seq",kind:"scalar",T:3,L:1},{no:2,name:"client_seq",kind:"scalar",T:13}]),ee=c.makeMessageType("yorkie.v1.TextNodePos",()=>[{no:1,name:"created_at",kind:"message",T:J},{no:2,name:"offset",kind:"scalar",T:5},{no:3,name:"relative_offset",kind:"scalar",T:5}]),J=c.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}]),Re=c.makeMessageType("yorkie.v1.DocEventBody",()=>[{no:1,name:"topic",kind:"scalar",T:9},{no:2,name:"payload",kind:"scalar",T:12}]),Le=c.makeMessageType("yorkie.v1.DocEvent",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType(m)},{no:2,name:"publisher",kind:"scalar",T:9},{no:3,name:"body",kind:"message",T:Re}]);l.ValueType=h,l.DocEventType=m,l.Snapshot=b,l.ChangePack=O,l.Change=y,l.ChangeID=v,l.Operation=S,l.Operation_Set=k,l.Operation_Add=C,l.Operation_Move=w,l.Operation_Remove=E,l.Operation_Edit=$,l.Operation_Select=N,l.Operation_Style=R,l.Operation_Increase=B,l.Operation_TreeEdit=U,l.Operation_TreeStyle=V,l.JSONElementSimple=z,l.JSONElement=W,l.JSONElement_JSONObject=X,l.JSONElement_JSONArray=q,l.JSONElement_Primitive=Y,l.JSONElement_Text=Z,l.JSONElement_Counter=j,l.JSONElement_Tree=se,l.RHTNode=ve,l.RGANode=G,l.NodeAttr=ce,l.TextNode=ge,l.TextNodeID=ue,l.TreeNode=xe,l.TreeNodes=Ne,l.TreeNodeID=Ve,l.TreePos=Ke,l.User=Me,l.Project=Ye,l.UpdatableProjectFields=ye,l.UpdatableProjectFields_AuthWebhookMethods=ze,l.DocumentSummary=$e,l.PresenceChange=We,l.PresenceChange_ChangeType=dt,l.Presence=Be,l.Checkpoint=re,l.TextNodePos=ee,l.TimeTicket=J,l.DocEventBody=Re,l.DocEvent=Le},295:(s,l,u)=>{const{ActivateClientRequest:c,ActivateClientResponse:d,AttachDocumentRequest:p,AttachDocumentResponse:h,BroadcastRequest:m,BroadcastResponse:b,DeactivateClientRequest:O,DeactivateClientResponse:y,DetachDocumentRequest:v,DetachDocumentResponse:S,PushPullChangesRequest:k,PushPullChangesResponse:C,RemoveDocumentRequest:w,RemoveDocumentResponse:E,WatchDocumentRequest:$,WatchDocumentResponse:N}=u(176),{MethodKind:R}=u(532),B={typeName:"yorkie.v1.YorkieService",methods:{activateClient:{name:"ActivateClient",I:c,O:d,kind:R.Unary},deactivateClient:{name:"DeactivateClient",I:O,O:y,kind:R.Unary},attachDocument:{name:"AttachDocument",I:p,O:h,kind:R.Unary},detachDocument:{name:"DetachDocument",I:v,O:S,kind:R.Unary},removeDocument:{name:"RemoveDocument",I:w,O:E,kind:R.Unary},pushPullChanges:{name:"PushPullChanges",I:k,O:C,kind:R.Unary},watchDocument:{name:"WatchDocument",I:$,O:N,kind:R.ServerStreaming},broadcast:{name:"Broadcast",I:m,O:b,kind:R.Unary}}};l.V=B},176:(s,l,u)=>{Object.defineProperty(l,"__esModule",{value:!0});const{proto3:c}=u(532),{ChangePack:d,DocEvent:p}=u(646),h=c.makeMessageType("yorkie.v1.ActivateClientRequest",()=>[{no:1,name:"client_key",kind:"scalar",T:9}]),m=c.makeMessageType("yorkie.v1.ActivateClientResponse",()=>[{no:1,name:"client_id",kind:"scalar",T:9}]),b=c.makeMessageType("yorkie.v1.DeactivateClientRequest",()=>[{no:2,name:"client_key",kind:"scalar",T:9},{no:1,name:"client_id",kind:"scalar",T:9}]),O=c.makeMessageType("yorkie.v1.DeactivateClientResponse",[]),y=c.makeMessageType("yorkie.v1.AttachDocumentRequest",()=>[{no:3,name:"client_key",kind:"scalar",T:9},{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"change_pack",kind:"message",T:d}]),v=c.makeMessageType("yorkie.v1.AttachDocumentResponse",()=>[{no:1,name:"document_id",kind:"scalar",T:9},{no:2,name:"change_pack",kind:"message",T:d}]),S=c.makeMessageType("yorkie.v1.DetachDocumentRequest",()=>[{no:5,name:"client_key",kind:"scalar",T:9},{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:d},{no:4,name:"remove_if_not_attached",kind:"scalar",T:8}]),k=c.makeMessageType("yorkie.v1.DetachDocumentResponse",()=>[{no:2,name:"change_pack",kind:"message",T:d}]),C=c.makeMessageType("yorkie.v1.WatchDocumentRequest",()=>[{no:4,name:"client_key",kind:"scalar",T:9},{no:1,name:"client_id",kind:"scalar",T:9},{no:3,name:"document_key",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9}]),w=c.makeMessageType("yorkie.v1.WatchDocumentResponse",()=>[{no:1,name:"initialization",kind:"message",T:E,oneof:"body"},{no:2,name:"event",kind:"message",T:p,oneof:"body"}]),E=c.makeMessageType("yorkie.v1.WatchDocumentResponse.Initialization",()=>[{no:1,name:"client_ids",kind:"scalar",T:9,repeated:!0}],{localName:"WatchDocumentResponse_Initialization"}),$=c.makeMessageType("yorkie.v1.RemoveDocumentRequest",()=>[{no:4,name:"client_key",kind:"scalar",T:9},{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:d}]),N=c.makeMessageType("yorkie.v1.RemoveDocumentResponse",()=>[{no:1,name:"change_pack",kind:"message",T:d}]),R=c.makeMessageType("yorkie.v1.PushPullChangesRequest",()=>[{no:5,name:"client_key",kind:"scalar",T:9},{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:d},{no:4,name:"push_only",kind:"scalar",T:8}]),B=c.makeMessageType("yorkie.v1.PushPullChangesResponse",()=>[{no:1,name:"change_pack",kind:"message",T:d}]),U=c.makeMessageType("yorkie.v1.BroadcastRequest",()=>[{no:6,name:"client_key",kind:"scalar",T:9},{no:1,name:"client_id",kind:"scalar",T:9},{no:5,name:"document_key",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}]),V=c.makeMessageType("yorkie.v1.BroadcastResponse",[]);l.ActivateClientRequest=h,l.ActivateClientResponse=m,l.DeactivateClientRequest=b,l.DeactivateClientResponse=O,l.AttachDocumentRequest=y,l.AttachDocumentResponse=v,l.DetachDocumentRequest=S,l.DetachDocumentResponse=k,l.WatchDocumentRequest=C,l.WatchDocumentResponse=w,l.WatchDocumentResponse_Initialization=E,l.RemoveDocumentRequest=$,l.RemoveDocumentResponse=N,l.PushPullChangesRequest=R,l.PushPullChangesResponse=B,l.BroadcastRequest=U,l.BroadcastResponse=V},79:(s,l,u)=>{u.d(l,{Lt:()=>m,TD:()=>h,oP:()=>b});var c=u(818),d=u(120),p=u(210),h;(function(O){O[O.Varint=0]="Varint",O[O.Bit64=1]="Bit64",O[O.LengthDelimited=2]="LengthDelimited",O[O.StartGroup=3]="StartGroup",O[O.EndGroup=4]="EndGroup",O[O.Bit32=5]="Bit32"})(h||(h={}));class m{constructor(y){this.stack=[],this.textEncoder=y??new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let y=0;for(let k=0;k>>0)}raw(y){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(y),this}uint32(y){for((0,d.fp)(y);y>127;)this.buf.push(y&127|128),y=y>>>7;return this.buf.push(y),this}int32(y){return(0,d.ug)(y),(0,c.fC)(y,this.buf),this}bool(y){return this.buf.push(y?1:0),this}bytes(y){return this.uint32(y.byteLength),this.raw(y)}string(y){let v=this.textEncoder.encode(y);return this.uint32(v.byteLength),this.raw(v)}float(y){(0,d.E_)(y);let v=new Uint8Array(4);return new DataView(v.buffer).setFloat32(0,y,!0),this.raw(v)}double(y){let v=new Uint8Array(8);return new DataView(v.buffer).setFloat64(0,y,!0),this.raw(v)}fixed32(y){(0,d.fp)(y);let v=new Uint8Array(4);return new DataView(v.buffer).setUint32(0,y,!0),this.raw(v)}sfixed32(y){(0,d.ug)(y);let v=new Uint8Array(4);return new DataView(v.buffer).setInt32(0,y,!0),this.raw(v)}sint32(y){return(0,d.ug)(y),y=(y<<1^y>>31)>>>0,(0,c.fC)(y,this.buf),this}sfixed64(y){let v=new Uint8Array(8),S=new DataView(v.buffer),k=p.q.enc(y);return S.setInt32(0,k.lo,!0),S.setInt32(4,k.hi,!0),this.raw(v)}fixed64(y){let v=new Uint8Array(8),S=new DataView(v.buffer),k=p.q.uEnc(y);return S.setInt32(0,k.lo,!0),S.setInt32(4,k.hi,!0),this.raw(v)}int64(y){let v=p.q.enc(y);return(0,c._y)(v.lo,v.hi,this.buf),this}sint64(y){let v=p.q.enc(y),S=v.hi>>31,k=v.lo<<1^S,C=(v.hi<<1|v.lo>>>31)^S;return(0,c._y)(k,C,this.buf),this}uint64(y){let v=p.q.uEnc(y);return(0,c._y)(v.lo,v.hi,this.buf),this}}class b{constructor(y,v){this.varint64=c.sg,this.uint32=c.jI,this.buf=y,this.len=y.length,this.pos=0,this.view=new DataView(y.buffer,y.byteOffset,y.byteLength),this.textDecoder=v??new TextDecoder}tag(){let y=this.uint32(),v=y>>>3,S=y&7;if(v<=0||S<0||S>5)throw new Error("illegal tag: field no "+v+" wire type "+S);return[v,S]}skip(y){let v=this.pos;switch(y){case h.Varint:for(;this.buf[this.pos++]&128;);break;case h.Bit64:this.pos+=4;case h.Bit32:this.pos+=4;break;case h.LengthDelimited:let S=this.uint32();this.pos+=S;break;case h.StartGroup:let k;for(;(k=this.tag()[1])!==h.EndGroup;)this.skip(k);break;default:throw new Error("cant skip wire type "+y)}return this.assertBounds(),this.buf.subarray(v,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let y=this.uint32();return y>>>1^-(y&1)}int64(){return p.q.dec(...this.varint64())}uint64(){return p.q.uDec(...this.varint64())}sint64(){let[y,v]=this.varint64(),S=-(y&1);return y=(y>>>1|(v&1)<<31)^S,v=v>>>1^S,p.q.dec(y,v)}bool(){let[y,v]=this.varint64();return y!==0||v!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return p.q.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return p.q.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 y=this.uint32(),v=this.pos;return this.pos+=y,this.assertBounds(),this.buf.subarray(v,v+y)}string(){return this.textDecoder.decode(this.bytes())}}},465:(s,l,u)=>{u.d(l,{p:()=>d,w:()=>c});var c;(function(p){p[p.DOUBLE=1]="DOUBLE",p[p.FLOAT=2]="FLOAT",p[p.INT64=3]="INT64",p[p.UINT64=4]="UINT64",p[p.INT32=5]="INT32",p[p.FIXED64=6]="FIXED64",p[p.FIXED32=7]="FIXED32",p[p.BOOL=8]="BOOL",p[p.STRING=9]="STRING",p[p.BYTES=12]="BYTES",p[p.UINT32=13]="UINT32",p[p.SFIXED32=15]="SFIXED32",p[p.SFIXED64=16]="SFIXED64",p[p.SINT32=17]="SINT32",p[p.SINT64=18]="SINT64"})(c||(c={}));var d;(function(p){p[p.BIGINT=0]="BIGINT",p[p.STRING=1]="STRING"})(d||(d={}))},733:(s,l,u)=>{u.d(l,{I:()=>p});var c=u(561),d=u(850);class p extends c.v{constructor(m){super(),this.typeUrl="",this.value=new Uint8Array(0),d.w.util.initPartial(m,this)}toJson(m){var b;if(this.typeUrl==="")return{};const O=this.typeUrlToName(this.typeUrl),y=(b=m==null?void 0:m.typeRegistry)===null||b===void 0?void 0:b.findMessage(O);if(!y)throw new Error(`cannot encode message google.protobuf.Any to JSON: "${this.typeUrl}" is not in the type registry`);let S=y.fromBinary(this.value).toJson(m);return(O.startsWith("google.protobuf.")||S===null||Array.isArray(S)||typeof S!="object")&&(S={value:S}),S["@type"]=this.typeUrl,S}fromJson(m,b){var O;if(m===null||Array.isArray(m)||typeof m!="object")throw new Error(`cannot decode message google.protobuf.Any from JSON: expected object but got ${m===null?"null":Array.isArray(m)?"array":typeof m}`);if(Object.keys(m).length==0)return this;const y=m["@type"];if(typeof y!="string"||y=="")throw new Error('cannot decode message google.protobuf.Any from JSON: "@type" is empty');const v=this.typeUrlToName(y),S=(O=b==null?void 0:b.typeRegistry)===null||O===void 0?void 0:O.findMessage(v);if(!S)throw new Error(`cannot decode message google.protobuf.Any from JSON: ${y} is not in the type registry`);let k;if(v.startsWith("google.protobuf.")&&Object.prototype.hasOwnProperty.call(m,"value"))k=S.fromJson(m.value,b);else{const C=Object.assign({},m);delete C["@type"],k=S.fromJson(C,b)}return this.packFrom(k),this}packFrom(m){this.value=m.toBinary(),this.typeUrl=this.typeNameToUrl(m.getType().typeName)}unpackTo(m){return this.is(m.getType())?(m.fromBinary(this.value),!0):!1}unpack(m){if(this.typeUrl==="")return;const b=m.findMessage(this.typeUrlToName(this.typeUrl));if(b)return b.fromBinary(this.value)}is(m){if(this.typeUrl==="")return!1;const b=this.typeUrlToName(this.typeUrl);let O="";return typeof m=="string"?O=m:O=m.typeName,b===O}typeNameToUrl(m){return`type.googleapis.com/${m}`}typeUrlToName(m){if(!m.length)throw new Error(`invalid type url: ${m}`);const b=m.lastIndexOf("/"),O=b>=0?m.substring(b+1):m;if(!O.length)throw new Error(`invalid type url: ${m}`);return O}static pack(m){const b=new p;return b.packFrom(m),b}static fromBinary(m,b){return new p().fromBinary(m,b)}static fromJson(m,b){return new p().fromJson(m,b)}static fromJsonString(m,b){return new p().fromJsonString(m,b)}static equals(m,b){return d.w.util.equals(p,m,b)}}p.runtime=d.w,p.typeName="google.protobuf.Any",p.fields=d.w.util.newFieldList(()=>[{no:1,name:"type_url",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:12}])},818:(s,l,u)=>{u.d(l,{Ak:()=>m,CZ:()=>h,Fd:()=>b,_y:()=>d,fC:()=>k,jI:()=>C,sg:()=>c});function c(){let w=0,E=0;for(let N=0;N<28;N+=7){let R=this.buf[this.pos++];if(w|=(R&127)<>4,!($&128))return this.assertBounds(),[w,E];for(let N=3;N<=31;N+=7){let R=this.buf[this.pos++];if(E|=(R&127)<>>B,V=!(!(U>>>7)&&E==0),z=(V?U|128:U)&255;if($.push(z),!V)return}const N=w>>>28&15|(E&7)<<4,R=!!(E>>3);if($.push((R?N|128:N)&255),!!R){for(let B=3;B<31;B=B+7){const U=E>>>B,V=!!(U>>>7),z=(V?U|128:U)&255;if($.push(z),!V)return}$.push(E>>>31&1)}}const p=4294967296;function h(w){const E=w[0]==="-";E&&(w=w.slice(1));const $=1e6;let N=0,R=0;function B(U,V){const z=Number(w.slice(U,V));R*=$,N=N*$+z,N>=p&&(R=R+(N/p|0),N=N%p)}return B(-24,-18),B(-18,-12),B(-12,-6),B(-6),E?v(N,R):y(N,R)}function m(w,E){let $=y(w,E);const N=$.hi&2147483648;N&&($=v($.lo,$.hi));const R=b($.lo,$.hi);return N?"-"+R:R}function b(w,E){if({lo:w,hi:E}=O(w,E),E<=2097151)return String(p*E+w);const $=w&16777215,N=(w>>>24|E<<8)&16777215,R=E>>16&65535;let B=$+N*6777216+R*6710656,U=N+R*8147497,V=R*2;const z=1e7;return B>=z&&(U+=Math.floor(B/z),B%=z),U>=z&&(V+=Math.floor(U/z),U%=z),V.toString()+S(U)+S(B)}function O(w,E){return{lo:w>>>0,hi:E>>>0}}function y(w,E){return{lo:w|0,hi:E|0}}function v(w,E){return E=~E,w?w=~w+1:E+=1,y(w,E)}const S=w=>{const E=String(w);return"0000000".slice(E.length)+E};function k(w,E){if(w>=0){for(;w>127;)E.push(w&127|128),w=w>>>7;E.push(w)}else{for(let $=0;$<9;$++)E.push(w&127|128),w=w>>7;E.push(1)}}function C(){let w=this.buf[this.pos++],E=w&127;if(!(w&128))return this.assertBounds(),E;if(w=this.buf[this.pos++],E|=(w&127)<<7,!(w&128))return this.assertBounds(),E;if(w=this.buf[this.pos++],E|=(w&127)<<14,!(w&128))return this.assertBounds(),E;if(w=this.buf[this.pos++],E|=(w&127)<<21,!(w&128))return this.assertBounds(),E;w=this.buf[this.pos++],E|=(w&15)<<28;for(let $=5;w&128&&$<10;$++)w=this.buf[this.pos++];if(w&128)throw new Error("invalid varint");return this.assertBounds(),E>>>0}},532:(s,l,u)=>{u.r(l),u.d(l,{Any:()=>Gp.I,Api:()=>Ba,BinaryReader:()=>U.oP,BinaryWriter:()=>U.Lt,BoolValue:()=>Ho,BytesValue:()=>Jt,CodeGeneratorRequest:()=>Yo,CodeGeneratorResponse:()=>fi,CodeGeneratorResponse_Feature:()=>Gl,CodeGeneratorResponse_File:()=>xo,DescriptorProto:()=>ue,DescriptorProto_ExtensionRange:()=>xe,DescriptorProto_ReservedRange:()=>Ne,DoubleValue:()=>Vo,Duration:()=>vr,Edition:()=>G,Empty:()=>Ts,Enum:()=>Yn,EnumDescriptorProto:()=>We,EnumDescriptorProto_EnumReservedRange:()=>dt,EnumOptions:()=>pt,EnumValue:()=>Fa,EnumValueDescriptorProto:()=>Be,EnumValueOptions:()=>xt,ExtensionRangeOptions:()=>Ve,ExtensionRangeOptions_Declaration:()=>Me,ExtensionRangeOptions_VerificationState:()=>Ke,FeatureSet:()=>Nt,FeatureSetDefaults:()=>pe,FeatureSetDefaults_FeatureSetEditionDefault:()=>lt,FeatureSet_EnumType:()=>dn,FeatureSet_FieldPresence:()=>on,FeatureSet_JsonFormat:()=>_e,FeatureSet_MessageEncoding:()=>Ee,FeatureSet_RepeatedFieldEncoding:()=>pn,FeatureSet_Utf8Validation:()=>zn,Field:()=>Go,FieldDescriptorProto:()=>Ye,FieldDescriptorProto_Label:()=>ze,FieldDescriptorProto_Type:()=>ye,FieldMask:()=>ws,FieldOptions:()=>De,FieldOptions_CType:()=>ie,FieldOptions_EditionDefault:()=>Te,FieldOptions_JSType:()=>fe,FieldOptions_OptionRetention:()=>de,FieldOptions_OptionTargetType:()=>Oe,Field_Cardinality:()=>Mc,Field_Kind:()=>Lc,FileDescriptorProto:()=>ge,FileDescriptorSet:()=>ce,FileOptions:()=>J,FileOptions_OptimizeMode:()=>Re,FloatValue:()=>ko,GeneratedCodeInfo:()=>$t,GeneratedCodeInfo_Annotation:()=>It,GeneratedCodeInfo_Annotation_Semantic:()=>Ct,Int32Value:()=>Ar,Int64Value:()=>ji,ListValue:()=>io,LongType:()=>p.p,Message:()=>se.v,MessageOptions:()=>Le,Method:()=>fa,MethodDescriptorProto:()=>ee,MethodIdempotency:()=>ve.w,MethodKind:()=>ve.t,MethodOptions:()=>vt,MethodOptions_IdempotencyLevel:()=>qe,Mixin:()=>Ua,NullValue:()=>ro,OneofDescriptorProto:()=>$e,OneofOptions:()=>rt,Option:()=>Ci,ScalarType:()=>p.w,ServiceDescriptorProto:()=>re,ServiceOptions:()=>et,SourceCodeInfo:()=>at,SourceCodeInfo_Location:()=>Mt,SourceContext:()=>ca,StringValue:()=>zi,Struct:()=>wo,Syntax:()=>da,Timestamp:()=>ua,Type:()=>xi,UInt32Value:()=>Ur,UInt64Value:()=>mr,UninterpretedOption:()=>it,UninterpretedOption_NamePart:()=>Et,Value:()=>Br,Version:()=>Qo,WireType:()=>U.TD,codegenInfo:()=>j,createDescriptorSet:()=>Wt,createRegistry:()=>jO,createRegistryFromDescriptors:()=>pf,proto2:()=>E,proto3:()=>c.w,protoBase64:()=>B.W,protoDelimited:()=>X,protoDouble:()=>N,protoInt64:()=>R.q,toPlainMessage:()=>Zp});var c=u(850),d=u(493),p=u(465),h=u(744);function m(){return Object.assign(Object.assign({},(0,h.gY)()),{writeMessage(F,x,M){const le=F.getType();let be;try{for(be of le.fields.byNumber()){let Pe,je=be.repeated,ct=be.localName;if(be.oneof){const Ze=F[be.oneof.localName];if(Ze.case!==ct)continue;Pe=Ze.value}else if(Pe=F[ct],Pe===void 0&&!be.oneof&&!be.opt)throw new Error(`cannot encode field ${le.typeName}.${be.name} to binary: required field not set`);switch(be.kind){case"scalar":case"enum":let Ze=be.kind=="enum"?p.w.INT32:be.T;if(je)if(be.packed)(0,h.Jj)(x,Ze,be.no,Pe);else for(const Ot of Pe)(0,h.NN)(x,Ze,be.no,Ot,!0);else Pe!==void 0&&(0,h.NN)(x,Ze,be.no,Pe,!0);break;case"message":if(je)for(const Ot of Pe)(0,h.oQ)(x,M,be,Ot);else(0,h.oQ)(x,M,be,Pe);break;case"map":for(const[Ot,Pt]of Object.entries(Pe))(0,h.gQ)(x,M,be,Ot,Pt);break}}}catch(Pe){let je=be?`cannot encode field ${le.typeName}.${be==null?void 0:be.name} to binary`:`cannot encode message ${le.typeName} to binary`,ct=Pe instanceof Error?Pe.message:String(Pe);throw new Error(je+(ct.length>0?`: ${ct}`:""))}return M.writeUnknownFields&&this.writeUnknownFields(F,x),x}})}var b=u(433),O=u(501),y=u(215),v=u(504),S=u(432),k=u(120),C=u(814);function w(){return(0,C.b)((F,x)=>function(le,be,Pe){if(le.kind=="map"){const je={};switch(le.V.kind){case"scalar":for(const[Ze,Ot]of Object.entries(be)){const Pt=x(le.V.T,Ot,!0);(0,k.hu)(Pt!==void 0),je[Ze.toString()]=Pt}break;case"message":for(const[Ze,Ot]of Object.entries(be))je[Ze.toString()]=Ot.toJson(Pe);break;case"enum":const ct=le.V.T;for(const[Ze,Ot]of Object.entries(be)){(0,k.hu)(Ot===void 0||typeof Ot=="number");const Pt=F(ct,Ot,!0,Pe.enumAsInteger);(0,k.hu)(Pt!==void 0),je[Ze.toString()]=Pt}break}return Pe.emitDefaultValues||Object.keys(je).length>0?je:void 0}else if(le.repeated){const je=[];switch(le.kind){case"scalar":for(let ct=0;ct0?je:void 0}else{if(be===void 0){if(!le.oneof&&!le.opt)throw"required field not set";return}switch(le.kind){case"scalar":return x(le.T,be,!0);case"enum":return F(le.T,be,!0,Pe.enumAsInteger);case"message":return(0,S.E)(le.T,be).toJson(Pe)}}})}const E=(0,d.F)("proto2",w(),m(),Object.assign(Object.assign({},(0,b.f)()),{newFieldList(F){return new O.i(F,$)},initFields(F){for(const x of F.getType().fields.byMember()){const M=x.localName,le=F;if(x.repeated){le[M]=[];continue}switch(x.kind){case"oneof":le[M]={case:void 0};break;case"map":le[M]={};break}}}}));function $(F){var x,M,le,be,Pe;const je=[];let ct;for(const Ze of typeof F=="function"?F():F){const Ot=Ze;if(Ot.localName=(0,v.Rz)(Ze.name,Ze.oneof!==void 0),Ot.jsonName=(x=Ze.jsonName)!==null&&x!==void 0?x:(0,v.x1)(Ze.name),Ot.repeated=(M=Ze.repeated)!==null&&M!==void 0?M:!1,Ze.kind=="scalar"&&(Ot.L=(le=Ze.L)!==null&&le!==void 0?le:p.p.BIGINT),Ze.oneof!==void 0){const Pt=typeof Ze.oneof=="string"?Ze.oneof:Ze.oneof.name;(!ct||ct.name!=Pt)&&(ct=new y.o(Pt)),Ot.oneof=ct,ct.addField(Ot)}Ze.kind=="message"&&(Ot.delimited=(be=Ze.delimited)!==null&&be!==void 0?be:!1),Ot.packed=(Pe=Ze.packed)!==null&&Pe!==void 0?Pe:!1,je.push(Ot)}return je}const N={NaN:Number.NaN,POSITIVE_INFINITY:Number.POSITIVE_INFINITY,NEGATIVE_INFINITY:Number.NEGATIVE_INFINITY};var R=u(210),B=u(236),U=u(79),V=function(F){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var x=F[Symbol.asyncIterator],M;return x?x.call(F):(F=typeof __values=="function"?__values(F):F[Symbol.iterator](),M={},le("next"),le("throw"),le("return"),M[Symbol.asyncIterator]=function(){return this},M);function le(Pe){M[Pe]=F[Pe]&&function(je){return new Promise(function(ct,Ze){je=F[Pe](je),be(ct,Ze,je.done,je.value)})}}function be(Pe,je,ct,Ze){Promise.resolve(Ze).then(function(Ot){Pe({value:Ot,done:ct})},je)}},z=function(F){return this instanceof z?(this.v=F,this):new z(F)},W=function(F,x,M){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var le=M.apply(F,x||[]),be,Pe=[];return be={},ct("next"),ct("throw"),ct("return",je),be[Symbol.asyncIterator]=function(){return this},be;function je(Sn){return function(Vi){return Promise.resolve(Vi).then(Sn,On)}}function ct(Sn,Vi){le[Sn]&&(be[Sn]=function(ja){return new Promise(function(Kx,mf){Pe.push([Sn,ja,Kx,mf])>1||Ze(Sn,ja)})},Vi&&(be[Sn]=Vi(be[Sn])))}function Ze(Sn,Vi){try{Ot(le[Sn](Vi))}catch(ja){Er(Pe[0][3],ja)}}function Ot(Sn){Sn.value instanceof z?Promise.resolve(Sn.value.v).then(Pt,On):Er(Pe[0][2],Sn)}function Pt(Sn){Ze("next",Sn)}function On(Sn){Ze("throw",Sn)}function Er(Sn,Vi){Sn(Vi),Pe.shift(),Pe.length&&Ze(Pe[0][0],Pe[0][1])}};const X={enc(F,x){const M=(0,h.gY)().makeWriteOptions(x);return M.writerFactory().bytes(F.toBinary(M)).finish()},dec(F,x,M){const le=(0,h.gY)().makeReadOptions(M);return F.fromBinary(le.readerFactory(x).bytes(),le)},decStream(F,x){return W(this,arguments,function*(){var le,be,Pe,je;function ct(Er,Sn){const Vi=new Uint8Array(Er.byteLength+Sn.byteLength);return Vi.set(Er),Vi.set(Sn,Er.length),Vi}let Ze=new Uint8Array(0);try{for(var Ot=!0,Pt=V(x),On;On=yield z(Pt.next()),le=On.done,!le;Ot=!0)for(je=On.value,Ot=!1,Ze=ct(Ze,je);;){const Sn=X.peekSize(Ze);if(Sn.eof||Sn.offset+Sn.size>Ze.byteLength)break;yield yield z(X.dec(F,Ze)),Ze=Ze.subarray(Sn.offset+Sn.size)}}catch(Er){be={error:Er}}finally{try{!Ot&&!le&&(Pe=Pt.return)&&(yield z(Pe.call(Pt)))}finally{if(be)throw be.error}}if(Ze.byteLength>0)throw new Error("incomplete data")})},peekSize(F){const x={eof:!0,size:null,offset:null};for(let M=0;M<10;M++){if(M>F.byteLength)return x;if(!(F[M]&128)){const le=new U.oP(F);let be;try{be=le.uint32()}catch(Pe){if(Pe instanceof RangeError)return x;throw Pe}return{eof:!1,size:be,offset:le.pos}}}throw new Error("invalid varint")}};var q=u(781);function Y(F){switch(F.typeName){case"google.protobuf.Any":{const x=F.fields.find(le=>le.number==1&&le.fieldKind=="scalar"&&le.scalar===p.w.STRING),M=F.fields.find(le=>le.number==2&&le.fieldKind=="scalar"&&le.scalar===p.w.BYTES);if(x&&M)return{typeName:F.typeName,typeUrl:x,value:M};break}case"google.protobuf.Timestamp":{const x=F.fields.find(le=>le.number==1&&le.fieldKind=="scalar"&&le.scalar===p.w.INT64),M=F.fields.find(le=>le.number==2&&le.fieldKind=="scalar"&&le.scalar===p.w.INT32);if(x&&M)return{typeName:F.typeName,seconds:x,nanos:M};break}case"google.protobuf.Duration":{const x=F.fields.find(le=>le.number==1&&le.fieldKind=="scalar"&&le.scalar===p.w.INT64),M=F.fields.find(le=>le.number==2&&le.fieldKind=="scalar"&&le.scalar===p.w.INT32);if(x&&M)return{typeName:F.typeName,seconds:x,nanos:M};break}case"google.protobuf.Struct":{const x=F.fields.find(M=>M.number==1&&!M.repeated);if((x==null?void 0:x.fieldKind)!=="map"||x.mapValue.kind!=="message"||x.mapValue.message.typeName!=="google.protobuf.Value")break;return{typeName:F.typeName,fields:x}}case"google.protobuf.Value":{const x=F.oneofs.find(Ze=>Ze.name==="kind"),M=F.fields.find(Ze=>Ze.number==1&&Ze.oneof===x);if((M==null?void 0:M.fieldKind)!=="enum"||M.enum.typeName!=="google.protobuf.NullValue")return;const le=F.fields.find(Ze=>Ze.number==2&&Ze.fieldKind=="scalar"&&Ze.scalar===p.w.DOUBLE&&Ze.oneof===x),be=F.fields.find(Ze=>Ze.number==3&&Ze.fieldKind=="scalar"&&Ze.scalar===p.w.STRING&&Ze.oneof===x),Pe=F.fields.find(Ze=>Ze.number==4&&Ze.fieldKind=="scalar"&&Ze.scalar===p.w.BOOL&&Ze.oneof===x),je=F.fields.find(Ze=>Ze.number==5&&Ze.oneof===x);if((je==null?void 0:je.fieldKind)!=="message"||je.message.typeName!=="google.protobuf.Struct")return;const ct=F.fields.find(Ze=>Ze.number==6&&Ze.oneof===x);if((ct==null?void 0:ct.fieldKind)!=="message"||ct.message.typeName!=="google.protobuf.ListValue")return;if(x&&le&&be&&Pe)return{typeName:F.typeName,kind:x,nullValue:M,numberValue:le,stringValue:be,boolValue:Pe,structValue:je,listValue:ct};break}case"google.protobuf.ListValue":{const x=F.fields.find(M=>M.number==1&&M.repeated);if((x==null?void 0:x.fieldKind)!="message"||x.message.typeName!=="google.protobuf.Value")break;return{typeName:F.typeName,values:x}}case"google.protobuf.FieldMask":{const x=F.fields.find(M=>M.number==1&&M.fieldKind=="scalar"&&M.scalar===p.w.STRING&&M.repeated);if(x)return{typeName:F.typeName,paths:x};break}case"google.protobuf.DoubleValue":case"google.protobuf.FloatValue":case"google.protobuf.Int64Value":case"google.protobuf.UInt64Value":case"google.protobuf.Int32Value":case"google.protobuf.UInt32Value":case"google.protobuf.BoolValue":case"google.protobuf.StringValue":case"google.protobuf.BytesValue":{const x=F.fields.find(M=>M.number==1&&M.name=="value");if(!x||x.fieldKind!=="scalar")break;return{typeName:F.typeName,value:x}}}}const Z="@bufbuild/protobuf",j={packageName:"@bufbuild/protobuf",localName:v.r1,reifyWkt:Y,getUnwrappedFieldType:S.w,scalarDefaultValue:q.kY,safeIdentifier:v.GD,safeObjectProperty:v.ll,symbols:{proto2:{typeOnly:!1,privateImportPath:"./proto2.js",publicImportPath:Z},proto3:{typeOnly:!1,privateImportPath:"./proto3.js",publicImportPath:Z},Message:{typeOnly:!1,privateImportPath:"./message.js",publicImportPath:Z},PartialMessage:{typeOnly:!0,privateImportPath:"./message.js",publicImportPath:Z},PlainMessage:{typeOnly:!0,privateImportPath:"./message.js",publicImportPath:Z},FieldList:{typeOnly:!0,privateImportPath:"./field-list.js",publicImportPath:Z},MessageType:{typeOnly:!0,privateImportPath:"./message-type.js",publicImportPath:Z},BinaryReadOptions:{typeOnly:!0,privateImportPath:"./binary-format.js",publicImportPath:Z},BinaryWriteOptions:{typeOnly:!0,privateImportPath:"./binary-format.js",publicImportPath:Z},JsonReadOptions:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:Z},JsonWriteOptions:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:Z},JsonValue:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:Z},JsonObject:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:Z},protoDouble:{typeOnly:!1,privateImportPath:"./proto-double.js",publicImportPath:Z},protoInt64:{typeOnly:!1,privateImportPath:"./proto-int64.js",publicImportPath:Z},ScalarType:{typeOnly:!1,privateImportPath:"./field.js",publicImportPath:Z},LongType:{typeOnly:!1,privateImportPath:"./field.js",publicImportPath:Z},MethodKind:{typeOnly:!1,privateImportPath:"./service-type.js",publicImportPath:Z},MethodIdempotency:{typeOnly:!1,privateImportPath:"./service-type.js",publicImportPath:Z},IMessageTypeRegistry:{typeOnly:!0,privateImportPath:"./type-registry.js",publicImportPath:Z}},wktSourceFiles:["google/protobuf/compiler/plugin.proto","google/protobuf/any.proto","google/protobuf/api.proto","google/protobuf/descriptor.proto","google/protobuf/duration.proto","google/protobuf/empty.proto","google/protobuf/field_mask.proto","google/protobuf/source_context.proto","google/protobuf/struct.proto","google/protobuf/timestamp.proto","google/protobuf/type.proto","google/protobuf/wrappers.proto"]};var se=u(561),ve=u(328),G;(function(F){F[F.EDITION_UNKNOWN=0]="EDITION_UNKNOWN",F[F.EDITION_PROTO2=998]="EDITION_PROTO2",F[F.EDITION_PROTO3=999]="EDITION_PROTO3",F[F.EDITION_2023=1e3]="EDITION_2023",F[F.EDITION_1_TEST_ONLY=1]="EDITION_1_TEST_ONLY",F[F.EDITION_2_TEST_ONLY=2]="EDITION_2_TEST_ONLY",F[F.EDITION_99997_TEST_ONLY=99997]="EDITION_99997_TEST_ONLY",F[F.EDITION_99998_TEST_ONLY=99998]="EDITION_99998_TEST_ONLY",F[F.EDITION_99999_TEST_ONLY=99999]="EDITION_99999_TEST_ONLY"})(G||(G={})),E.util.setEnumType(G,"google.protobuf.Edition",[{no:0,name:"EDITION_UNKNOWN"},{no:998,name:"EDITION_PROTO2"},{no:999,name:"EDITION_PROTO3"},{no:1e3,name:"EDITION_2023"},{no:1,name:"EDITION_1_TEST_ONLY"},{no:2,name:"EDITION_2_TEST_ONLY"},{no:99997,name:"EDITION_99997_TEST_ONLY"},{no:99998,name:"EDITION_99998_TEST_ONLY"},{no:99999,name:"EDITION_99999_TEST_ONLY"}]);class ce extends se.v{constructor(x){super(),this.file=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new ce().fromBinary(x,M)}static fromJson(x,M){return new ce().fromJson(x,M)}static fromJsonString(x,M){return new ce().fromJsonString(x,M)}static equals(x,M){return E.util.equals(ce,x,M)}}ce.runtime=E,ce.typeName="google.protobuf.FileDescriptorSet",ce.fields=E.util.newFieldList(()=>[{no:1,name:"file",kind:"message",T:ge,repeated:!0}]);class ge extends se.v{constructor(x){super(),this.dependency=[],this.publicDependency=[],this.weakDependency=[],this.messageType=[],this.enumType=[],this.service=[],this.extension=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new ge().fromBinary(x,M)}static fromJson(x,M){return new ge().fromJson(x,M)}static fromJsonString(x,M){return new ge().fromJsonString(x,M)}static equals(x,M){return E.util.equals(ge,x,M)}}ge.runtime=E,ge.typeName="google.protobuf.FileDescriptorProto",ge.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"package",kind:"scalar",T:9,opt:!0},{no:3,name:"dependency",kind:"scalar",T:9,repeated:!0},{no:10,name:"public_dependency",kind:"scalar",T:5,repeated:!0},{no:11,name:"weak_dependency",kind:"scalar",T:5,repeated:!0},{no:4,name:"message_type",kind:"message",T:ue,repeated:!0},{no:5,name:"enum_type",kind:"message",T:We,repeated:!0},{no:6,name:"service",kind:"message",T:re,repeated:!0},{no:7,name:"extension",kind:"message",T:Ye,repeated:!0},{no:8,name:"options",kind:"message",T:J,opt:!0},{no:9,name:"source_code_info",kind:"message",T:at,opt:!0},{no:12,name:"syntax",kind:"scalar",T:9,opt:!0},{no:14,name:"edition",kind:"enum",T:E.getEnumType(G),opt:!0}]);class ue extends se.v{constructor(x){super(),this.field=[],this.extension=[],this.nestedType=[],this.enumType=[],this.extensionRange=[],this.oneofDecl=[],this.reservedRange=[],this.reservedName=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new ue().fromBinary(x,M)}static fromJson(x,M){return new ue().fromJson(x,M)}static fromJsonString(x,M){return new ue().fromJsonString(x,M)}static equals(x,M){return E.util.equals(ue,x,M)}}ue.runtime=E,ue.typeName="google.protobuf.DescriptorProto",ue.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"field",kind:"message",T:Ye,repeated:!0},{no:6,name:"extension",kind:"message",T:Ye,repeated:!0},{no:3,name:"nested_type",kind:"message",T:ue,repeated:!0},{no:4,name:"enum_type",kind:"message",T:We,repeated:!0},{no:5,name:"extension_range",kind:"message",T:xe,repeated:!0},{no:8,name:"oneof_decl",kind:"message",T:$e,repeated:!0},{no:7,name:"options",kind:"message",T:Le,opt:!0},{no:9,name:"reserved_range",kind:"message",T:Ne,repeated:!0},{no:10,name:"reserved_name",kind:"scalar",T:9,repeated:!0}]);class xe extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new xe().fromBinary(x,M)}static fromJson(x,M){return new xe().fromJson(x,M)}static fromJsonString(x,M){return new xe().fromJsonString(x,M)}static equals(x,M){return E.util.equals(xe,x,M)}}xe.runtime=E,xe.typeName="google.protobuf.DescriptorProto.ExtensionRange",xe.fields=E.util.newFieldList(()=>[{no:1,name:"start",kind:"scalar",T:5,opt:!0},{no:2,name:"end",kind:"scalar",T:5,opt:!0},{no:3,name:"options",kind:"message",T:Ve,opt:!0}]);class Ne extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new Ne().fromBinary(x,M)}static fromJson(x,M){return new Ne().fromJson(x,M)}static fromJsonString(x,M){return new Ne().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Ne,x,M)}}Ne.runtime=E,Ne.typeName="google.protobuf.DescriptorProto.ReservedRange",Ne.fields=E.util.newFieldList(()=>[{no:1,name:"start",kind:"scalar",T:5,opt:!0},{no:2,name:"end",kind:"scalar",T:5,opt:!0}]);class Ve extends se.v{constructor(x){super(),this.uninterpretedOption=[],this.declaration=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new Ve().fromBinary(x,M)}static fromJson(x,M){return new Ve().fromJson(x,M)}static fromJsonString(x,M){return new Ve().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Ve,x,M)}}Ve.runtime=E,Ve.typeName="google.protobuf.ExtensionRangeOptions",Ve.fields=E.util.newFieldList(()=>[{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0},{no:2,name:"declaration",kind:"message",T:Me,repeated:!0},{no:50,name:"features",kind:"message",T:Nt,opt:!0},{no:3,name:"verification",kind:"enum",T:E.getEnumType(Ke),opt:!0,default:Ke.UNVERIFIED}]);var Ke;(function(F){F[F.DECLARATION=0]="DECLARATION",F[F.UNVERIFIED=1]="UNVERIFIED"})(Ke||(Ke={})),E.util.setEnumType(Ke,"google.protobuf.ExtensionRangeOptions.VerificationState",[{no:0,name:"DECLARATION"},{no:1,name:"UNVERIFIED"}]);class Me extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new Me().fromBinary(x,M)}static fromJson(x,M){return new Me().fromJson(x,M)}static fromJsonString(x,M){return new Me().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Me,x,M)}}Me.runtime=E,Me.typeName="google.protobuf.ExtensionRangeOptions.Declaration",Me.fields=E.util.newFieldList(()=>[{no:1,name:"number",kind:"scalar",T:5,opt:!0},{no:2,name:"full_name",kind:"scalar",T:9,opt:!0},{no:3,name:"type",kind:"scalar",T:9,opt:!0},{no:5,name:"reserved",kind:"scalar",T:8,opt:!0},{no:6,name:"repeated",kind:"scalar",T:8,opt:!0}]);class Ye extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new Ye().fromBinary(x,M)}static fromJson(x,M){return new Ye().fromJson(x,M)}static fromJsonString(x,M){return new Ye().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Ye,x,M)}}Ye.runtime=E,Ye.typeName="google.protobuf.FieldDescriptorProto",Ye.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:3,name:"number",kind:"scalar",T:5,opt:!0},{no:4,name:"label",kind:"enum",T:E.getEnumType(ze),opt:!0},{no:5,name:"type",kind:"enum",T:E.getEnumType(ye),opt:!0},{no:6,name:"type_name",kind:"scalar",T:9,opt:!0},{no:2,name:"extendee",kind:"scalar",T:9,opt:!0},{no:7,name:"default_value",kind:"scalar",T:9,opt:!0},{no:9,name:"oneof_index",kind:"scalar",T:5,opt:!0},{no:10,name:"json_name",kind:"scalar",T:9,opt:!0},{no:8,name:"options",kind:"message",T:De,opt:!0},{no:17,name:"proto3_optional",kind:"scalar",T:8,opt:!0}]);var ye;(function(F){F[F.DOUBLE=1]="DOUBLE",F[F.FLOAT=2]="FLOAT",F[F.INT64=3]="INT64",F[F.UINT64=4]="UINT64",F[F.INT32=5]="INT32",F[F.FIXED64=6]="FIXED64",F[F.FIXED32=7]="FIXED32",F[F.BOOL=8]="BOOL",F[F.STRING=9]="STRING",F[F.GROUP=10]="GROUP",F[F.MESSAGE=11]="MESSAGE",F[F.BYTES=12]="BYTES",F[F.UINT32=13]="UINT32",F[F.ENUM=14]="ENUM",F[F.SFIXED32=15]="SFIXED32",F[F.SFIXED64=16]="SFIXED64",F[F.SINT32=17]="SINT32",F[F.SINT64=18]="SINT64"})(ye||(ye={})),E.util.setEnumType(ye,"google.protobuf.FieldDescriptorProto.Type",[{no:1,name:"TYPE_DOUBLE"},{no:2,name:"TYPE_FLOAT"},{no:3,name:"TYPE_INT64"},{no:4,name:"TYPE_UINT64"},{no:5,name:"TYPE_INT32"},{no:6,name:"TYPE_FIXED64"},{no:7,name:"TYPE_FIXED32"},{no:8,name:"TYPE_BOOL"},{no:9,name:"TYPE_STRING"},{no:10,name:"TYPE_GROUP"},{no:11,name:"TYPE_MESSAGE"},{no:12,name:"TYPE_BYTES"},{no:13,name:"TYPE_UINT32"},{no:14,name:"TYPE_ENUM"},{no:15,name:"TYPE_SFIXED32"},{no:16,name:"TYPE_SFIXED64"},{no:17,name:"TYPE_SINT32"},{no:18,name:"TYPE_SINT64"}]);var ze;(function(F){F[F.OPTIONAL=1]="OPTIONAL",F[F.REPEATED=3]="REPEATED",F[F.REQUIRED=2]="REQUIRED"})(ze||(ze={})),E.util.setEnumType(ze,"google.protobuf.FieldDescriptorProto.Label",[{no:1,name:"LABEL_OPTIONAL"},{no:3,name:"LABEL_REPEATED"},{no:2,name:"LABEL_REQUIRED"}]);class $e extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new $e().fromBinary(x,M)}static fromJson(x,M){return new $e().fromJson(x,M)}static fromJsonString(x,M){return new $e().fromJsonString(x,M)}static equals(x,M){return E.util.equals($e,x,M)}}$e.runtime=E,$e.typeName="google.protobuf.OneofDescriptorProto",$e.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"options",kind:"message",T:rt,opt:!0}]);class We extends se.v{constructor(x){super(),this.value=[],this.reservedRange=[],this.reservedName=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new We().fromBinary(x,M)}static fromJson(x,M){return new We().fromJson(x,M)}static fromJsonString(x,M){return new We().fromJsonString(x,M)}static equals(x,M){return E.util.equals(We,x,M)}}We.runtime=E,We.typeName="google.protobuf.EnumDescriptorProto",We.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"value",kind:"message",T:Be,repeated:!0},{no:3,name:"options",kind:"message",T:pt,opt:!0},{no:4,name:"reserved_range",kind:"message",T:dt,repeated:!0},{no:5,name:"reserved_name",kind:"scalar",T:9,repeated:!0}]);class dt extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new dt().fromBinary(x,M)}static fromJson(x,M){return new dt().fromJson(x,M)}static fromJsonString(x,M){return new dt().fromJsonString(x,M)}static equals(x,M){return E.util.equals(dt,x,M)}}dt.runtime=E,dt.typeName="google.protobuf.EnumDescriptorProto.EnumReservedRange",dt.fields=E.util.newFieldList(()=>[{no:1,name:"start",kind:"scalar",T:5,opt:!0},{no:2,name:"end",kind:"scalar",T:5,opt:!0}]);class Be extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new Be().fromBinary(x,M)}static fromJson(x,M){return new Be().fromJson(x,M)}static fromJsonString(x,M){return new Be().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Be,x,M)}}Be.runtime=E,Be.typeName="google.protobuf.EnumValueDescriptorProto",Be.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"number",kind:"scalar",T:5,opt:!0},{no:3,name:"options",kind:"message",T:xt,opt:!0}]);class re extends se.v{constructor(x){super(),this.method=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new re().fromBinary(x,M)}static fromJson(x,M){return new re().fromJson(x,M)}static fromJsonString(x,M){return new re().fromJsonString(x,M)}static equals(x,M){return E.util.equals(re,x,M)}}re.runtime=E,re.typeName="google.protobuf.ServiceDescriptorProto",re.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"method",kind:"message",T:ee,repeated:!0},{no:3,name:"options",kind:"message",T:et,opt:!0}]);class ee extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new ee().fromBinary(x,M)}static fromJson(x,M){return new ee().fromJson(x,M)}static fromJsonString(x,M){return new ee().fromJsonString(x,M)}static equals(x,M){return E.util.equals(ee,x,M)}}ee.runtime=E,ee.typeName="google.protobuf.MethodDescriptorProto",ee.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"input_type",kind:"scalar",T:9,opt:!0},{no:3,name:"output_type",kind:"scalar",T:9,opt:!0},{no:4,name:"options",kind:"message",T:vt,opt:!0},{no:5,name:"client_streaming",kind:"scalar",T:8,opt:!0,default:!1},{no:6,name:"server_streaming",kind:"scalar",T:8,opt:!0,default:!1}]);class J extends se.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new J().fromBinary(x,M)}static fromJson(x,M){return new J().fromJson(x,M)}static fromJsonString(x,M){return new J().fromJsonString(x,M)}static equals(x,M){return E.util.equals(J,x,M)}}J.runtime=E,J.typeName="google.protobuf.FileOptions",J.fields=E.util.newFieldList(()=>[{no:1,name:"java_package",kind:"scalar",T:9,opt:!0},{no:8,name:"java_outer_classname",kind:"scalar",T:9,opt:!0},{no:10,name:"java_multiple_files",kind:"scalar",T:8,opt:!0,default:!1},{no:20,name:"java_generate_equals_and_hash",kind:"scalar",T:8,opt:!0},{no:27,name:"java_string_check_utf8",kind:"scalar",T:8,opt:!0,default:!1},{no:9,name:"optimize_for",kind:"enum",T:E.getEnumType(Re),opt:!0,default:Re.SPEED},{no:11,name:"go_package",kind:"scalar",T:9,opt:!0},{no:16,name:"cc_generic_services",kind:"scalar",T:8,opt:!0,default:!1},{no:17,name:"java_generic_services",kind:"scalar",T:8,opt:!0,default:!1},{no:18,name:"py_generic_services",kind:"scalar",T:8,opt:!0,default:!1},{no:42,name:"php_generic_services",kind:"scalar",T:8,opt:!0,default:!1},{no:23,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:31,name:"cc_enable_arenas",kind:"scalar",T:8,opt:!0,default:!0},{no:36,name:"objc_class_prefix",kind:"scalar",T:9,opt:!0},{no:37,name:"csharp_namespace",kind:"scalar",T:9,opt:!0},{no:39,name:"swift_prefix",kind:"scalar",T:9,opt:!0},{no:40,name:"php_class_prefix",kind:"scalar",T:9,opt:!0},{no:41,name:"php_namespace",kind:"scalar",T:9,opt:!0},{no:44,name:"php_metadata_namespace",kind:"scalar",T:9,opt:!0},{no:45,name:"ruby_package",kind:"scalar",T:9,opt:!0},{no:50,name:"features",kind:"message",T:Nt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);var Re;(function(F){F[F.SPEED=1]="SPEED",F[F.CODE_SIZE=2]="CODE_SIZE",F[F.LITE_RUNTIME=3]="LITE_RUNTIME"})(Re||(Re={})),E.util.setEnumType(Re,"google.protobuf.FileOptions.OptimizeMode",[{no:1,name:"SPEED"},{no:2,name:"CODE_SIZE"},{no:3,name:"LITE_RUNTIME"}]);class Le extends se.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new Le().fromBinary(x,M)}static fromJson(x,M){return new Le().fromJson(x,M)}static fromJsonString(x,M){return new Le().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Le,x,M)}}Le.runtime=E,Le.typeName="google.protobuf.MessageOptions",Le.fields=E.util.newFieldList(()=>[{no:1,name:"message_set_wire_format",kind:"scalar",T:8,opt:!0,default:!1},{no:2,name:"no_standard_descriptor_accessor",kind:"scalar",T:8,opt:!0,default:!1},{no:3,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:7,name:"map_entry",kind:"scalar",T:8,opt:!0},{no:11,name:"deprecated_legacy_json_field_conflicts",kind:"scalar",T:8,opt:!0},{no:12,name:"features",kind:"message",T:Nt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);class De extends se.v{constructor(x){super(),this.targets=[],this.editionDefaults=[],this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new De().fromBinary(x,M)}static fromJson(x,M){return new De().fromJson(x,M)}static fromJsonString(x,M){return new De().fromJsonString(x,M)}static equals(x,M){return E.util.equals(De,x,M)}}De.runtime=E,De.typeName="google.protobuf.FieldOptions",De.fields=E.util.newFieldList(()=>[{no:1,name:"ctype",kind:"enum",T:E.getEnumType(ie),opt:!0,default:ie.STRING},{no:2,name:"packed",kind:"scalar",T:8,opt:!0},{no:6,name:"jstype",kind:"enum",T:E.getEnumType(fe),opt:!0,default:fe.JS_NORMAL},{no:5,name:"lazy",kind:"scalar",T:8,opt:!0,default:!1},{no:15,name:"unverified_lazy",kind:"scalar",T:8,opt:!0,default:!1},{no:3,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:10,name:"weak",kind:"scalar",T:8,opt:!0,default:!1},{no:16,name:"debug_redact",kind:"scalar",T:8,opt:!0,default:!1},{no:17,name:"retention",kind:"enum",T:E.getEnumType(de),opt:!0},{no:19,name:"targets",kind:"enum",T:E.getEnumType(Oe),repeated:!0},{no:20,name:"edition_defaults",kind:"message",T:Te,repeated:!0},{no:21,name:"features",kind:"message",T:Nt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);var ie;(function(F){F[F.STRING=0]="STRING",F[F.CORD=1]="CORD",F[F.STRING_PIECE=2]="STRING_PIECE"})(ie||(ie={})),E.util.setEnumType(ie,"google.protobuf.FieldOptions.CType",[{no:0,name:"STRING"},{no:1,name:"CORD"},{no:2,name:"STRING_PIECE"}]);var fe;(function(F){F[F.JS_NORMAL=0]="JS_NORMAL",F[F.JS_STRING=1]="JS_STRING",F[F.JS_NUMBER=2]="JS_NUMBER"})(fe||(fe={})),E.util.setEnumType(fe,"google.protobuf.FieldOptions.JSType",[{no:0,name:"JS_NORMAL"},{no:1,name:"JS_STRING"},{no:2,name:"JS_NUMBER"}]);var de;(function(F){F[F.RETENTION_UNKNOWN=0]="RETENTION_UNKNOWN",F[F.RETENTION_RUNTIME=1]="RETENTION_RUNTIME",F[F.RETENTION_SOURCE=2]="RETENTION_SOURCE"})(de||(de={})),E.util.setEnumType(de,"google.protobuf.FieldOptions.OptionRetention",[{no:0,name:"RETENTION_UNKNOWN"},{no:1,name:"RETENTION_RUNTIME"},{no:2,name:"RETENTION_SOURCE"}]);var Oe;(function(F){F[F.TARGET_TYPE_UNKNOWN=0]="TARGET_TYPE_UNKNOWN",F[F.TARGET_TYPE_FILE=1]="TARGET_TYPE_FILE",F[F.TARGET_TYPE_EXTENSION_RANGE=2]="TARGET_TYPE_EXTENSION_RANGE",F[F.TARGET_TYPE_MESSAGE=3]="TARGET_TYPE_MESSAGE",F[F.TARGET_TYPE_FIELD=4]="TARGET_TYPE_FIELD",F[F.TARGET_TYPE_ONEOF=5]="TARGET_TYPE_ONEOF",F[F.TARGET_TYPE_ENUM=6]="TARGET_TYPE_ENUM",F[F.TARGET_TYPE_ENUM_ENTRY=7]="TARGET_TYPE_ENUM_ENTRY",F[F.TARGET_TYPE_SERVICE=8]="TARGET_TYPE_SERVICE",F[F.TARGET_TYPE_METHOD=9]="TARGET_TYPE_METHOD"})(Oe||(Oe={})),E.util.setEnumType(Oe,"google.protobuf.FieldOptions.OptionTargetType",[{no:0,name:"TARGET_TYPE_UNKNOWN"},{no:1,name:"TARGET_TYPE_FILE"},{no:2,name:"TARGET_TYPE_EXTENSION_RANGE"},{no:3,name:"TARGET_TYPE_MESSAGE"},{no:4,name:"TARGET_TYPE_FIELD"},{no:5,name:"TARGET_TYPE_ONEOF"},{no:6,name:"TARGET_TYPE_ENUM"},{no:7,name:"TARGET_TYPE_ENUM_ENTRY"},{no:8,name:"TARGET_TYPE_SERVICE"},{no:9,name:"TARGET_TYPE_METHOD"}]);class Te extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new Te().fromBinary(x,M)}static fromJson(x,M){return new Te().fromJson(x,M)}static fromJsonString(x,M){return new Te().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Te,x,M)}}Te.runtime=E,Te.typeName="google.protobuf.FieldOptions.EditionDefault",Te.fields=E.util.newFieldList(()=>[{no:3,name:"edition",kind:"enum",T:E.getEnumType(G),opt:!0},{no:2,name:"value",kind:"scalar",T:9,opt:!0}]);class rt extends se.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new rt().fromBinary(x,M)}static fromJson(x,M){return new rt().fromJson(x,M)}static fromJsonString(x,M){return new rt().fromJsonString(x,M)}static equals(x,M){return E.util.equals(rt,x,M)}}rt.runtime=E,rt.typeName="google.protobuf.OneofOptions",rt.fields=E.util.newFieldList(()=>[{no:1,name:"features",kind:"message",T:Nt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);class pt extends se.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new pt().fromBinary(x,M)}static fromJson(x,M){return new pt().fromJson(x,M)}static fromJsonString(x,M){return new pt().fromJsonString(x,M)}static equals(x,M){return E.util.equals(pt,x,M)}}pt.runtime=E,pt.typeName="google.protobuf.EnumOptions",pt.fields=E.util.newFieldList(()=>[{no:2,name:"allow_alias",kind:"scalar",T:8,opt:!0},{no:3,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:6,name:"deprecated_legacy_json_field_conflicts",kind:"scalar",T:8,opt:!0},{no:7,name:"features",kind:"message",T:Nt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);class xt extends se.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new xt().fromBinary(x,M)}static fromJson(x,M){return new xt().fromJson(x,M)}static fromJsonString(x,M){return new xt().fromJsonString(x,M)}static equals(x,M){return E.util.equals(xt,x,M)}}xt.runtime=E,xt.typeName="google.protobuf.EnumValueOptions",xt.fields=E.util.newFieldList(()=>[{no:1,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:2,name:"features",kind:"message",T:Nt,opt:!0},{no:3,name:"debug_redact",kind:"scalar",T:8,opt:!0,default:!1},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);class et extends se.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new et().fromBinary(x,M)}static fromJson(x,M){return new et().fromJson(x,M)}static fromJsonString(x,M){return new et().fromJsonString(x,M)}static equals(x,M){return E.util.equals(et,x,M)}}et.runtime=E,et.typeName="google.protobuf.ServiceOptions",et.fields=E.util.newFieldList(()=>[{no:34,name:"features",kind:"message",T:Nt,opt:!0},{no:33,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);class vt extends se.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new vt().fromBinary(x,M)}static fromJson(x,M){return new vt().fromJson(x,M)}static fromJsonString(x,M){return new vt().fromJsonString(x,M)}static equals(x,M){return E.util.equals(vt,x,M)}}vt.runtime=E,vt.typeName="google.protobuf.MethodOptions",vt.fields=E.util.newFieldList(()=>[{no:33,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:34,name:"idempotency_level",kind:"enum",T:E.getEnumType(qe),opt:!0,default:qe.IDEMPOTENCY_UNKNOWN},{no:35,name:"features",kind:"message",T:Nt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);var qe;(function(F){F[F.IDEMPOTENCY_UNKNOWN=0]="IDEMPOTENCY_UNKNOWN",F[F.NO_SIDE_EFFECTS=1]="NO_SIDE_EFFECTS",F[F.IDEMPOTENT=2]="IDEMPOTENT"})(qe||(qe={})),E.util.setEnumType(qe,"google.protobuf.MethodOptions.IdempotencyLevel",[{no:0,name:"IDEMPOTENCY_UNKNOWN"},{no:1,name:"NO_SIDE_EFFECTS"},{no:2,name:"IDEMPOTENT"}]);class it extends se.v{constructor(x){super(),this.name=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new it().fromBinary(x,M)}static fromJson(x,M){return new it().fromJson(x,M)}static fromJsonString(x,M){return new it().fromJsonString(x,M)}static equals(x,M){return E.util.equals(it,x,M)}}it.runtime=E,it.typeName="google.protobuf.UninterpretedOption",it.fields=E.util.newFieldList(()=>[{no:2,name:"name",kind:"message",T:Et,repeated:!0},{no:3,name:"identifier_value",kind:"scalar",T:9,opt:!0},{no:4,name:"positive_int_value",kind:"scalar",T:4,opt:!0},{no:5,name:"negative_int_value",kind:"scalar",T:3,opt:!0},{no:6,name:"double_value",kind:"scalar",T:1,opt:!0},{no:7,name:"string_value",kind:"scalar",T:12,opt:!0},{no:8,name:"aggregate_value",kind:"scalar",T:9,opt:!0}]);class Et extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new Et().fromBinary(x,M)}static fromJson(x,M){return new Et().fromJson(x,M)}static fromJsonString(x,M){return new Et().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Et,x,M)}}Et.runtime=E,Et.typeName="google.protobuf.UninterpretedOption.NamePart",Et.fields=E.util.newFieldList(()=>[{no:1,name:"name_part",kind:"scalar",T:9},{no:2,name:"is_extension",kind:"scalar",T:8}]);class Nt extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new Nt().fromBinary(x,M)}static fromJson(x,M){return new Nt().fromJson(x,M)}static fromJsonString(x,M){return new Nt().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Nt,x,M)}}Nt.runtime=E,Nt.typeName="google.protobuf.FeatureSet",Nt.fields=E.util.newFieldList(()=>[{no:1,name:"field_presence",kind:"enum",T:E.getEnumType(on),opt:!0},{no:2,name:"enum_type",kind:"enum",T:E.getEnumType(dn),opt:!0},{no:3,name:"repeated_field_encoding",kind:"enum",T:E.getEnumType(pn),opt:!0},{no:4,name:"utf8_validation",kind:"enum",T:E.getEnumType(zn),opt:!0},{no:5,name:"message_encoding",kind:"enum",T:E.getEnumType(Ee),opt:!0},{no:6,name:"json_format",kind:"enum",T:E.getEnumType(_e),opt:!0}]);var on;(function(F){F[F.FIELD_PRESENCE_UNKNOWN=0]="FIELD_PRESENCE_UNKNOWN",F[F.EXPLICIT=1]="EXPLICIT",F[F.IMPLICIT=2]="IMPLICIT",F[F.LEGACY_REQUIRED=3]="LEGACY_REQUIRED"})(on||(on={})),E.util.setEnumType(on,"google.protobuf.FeatureSet.FieldPresence",[{no:0,name:"FIELD_PRESENCE_UNKNOWN"},{no:1,name:"EXPLICIT"},{no:2,name:"IMPLICIT"},{no:3,name:"LEGACY_REQUIRED"}]);var dn;(function(F){F[F.ENUM_TYPE_UNKNOWN=0]="ENUM_TYPE_UNKNOWN",F[F.OPEN=1]="OPEN",F[F.CLOSED=2]="CLOSED"})(dn||(dn={})),E.util.setEnumType(dn,"google.protobuf.FeatureSet.EnumType",[{no:0,name:"ENUM_TYPE_UNKNOWN"},{no:1,name:"OPEN"},{no:2,name:"CLOSED"}]);var pn;(function(F){F[F.REPEATED_FIELD_ENCODING_UNKNOWN=0]="REPEATED_FIELD_ENCODING_UNKNOWN",F[F.PACKED=1]="PACKED",F[F.EXPANDED=2]="EXPANDED"})(pn||(pn={})),E.util.setEnumType(pn,"google.protobuf.FeatureSet.RepeatedFieldEncoding",[{no:0,name:"REPEATED_FIELD_ENCODING_UNKNOWN"},{no:1,name:"PACKED"},{no:2,name:"EXPANDED"}]);var zn;(function(F){F[F.UTF8_VALIDATION_UNKNOWN=0]="UTF8_VALIDATION_UNKNOWN",F[F.NONE=1]="NONE",F[F.VERIFY=2]="VERIFY"})(zn||(zn={})),E.util.setEnumType(zn,"google.protobuf.FeatureSet.Utf8Validation",[{no:0,name:"UTF8_VALIDATION_UNKNOWN"},{no:1,name:"NONE"},{no:2,name:"VERIFY"}]);var Ee;(function(F){F[F.MESSAGE_ENCODING_UNKNOWN=0]="MESSAGE_ENCODING_UNKNOWN",F[F.LENGTH_PREFIXED=1]="LENGTH_PREFIXED",F[F.DELIMITED=2]="DELIMITED"})(Ee||(Ee={})),E.util.setEnumType(Ee,"google.protobuf.FeatureSet.MessageEncoding",[{no:0,name:"MESSAGE_ENCODING_UNKNOWN"},{no:1,name:"LENGTH_PREFIXED"},{no:2,name:"DELIMITED"}]);var _e;(function(F){F[F.JSON_FORMAT_UNKNOWN=0]="JSON_FORMAT_UNKNOWN",F[F.ALLOW=1]="ALLOW",F[F.LEGACY_BEST_EFFORT=2]="LEGACY_BEST_EFFORT"})(_e||(_e={})),E.util.setEnumType(_e,"google.protobuf.FeatureSet.JsonFormat",[{no:0,name:"JSON_FORMAT_UNKNOWN"},{no:1,name:"ALLOW"},{no:2,name:"LEGACY_BEST_EFFORT"}]);class pe extends se.v{constructor(x){super(),this.defaults=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new pe().fromBinary(x,M)}static fromJson(x,M){return new pe().fromJson(x,M)}static fromJsonString(x,M){return new pe().fromJsonString(x,M)}static equals(x,M){return E.util.equals(pe,x,M)}}pe.runtime=E,pe.typeName="google.protobuf.FeatureSetDefaults",pe.fields=E.util.newFieldList(()=>[{no:1,name:"defaults",kind:"message",T:lt,repeated:!0},{no:4,name:"minimum_edition",kind:"enum",T:E.getEnumType(G),opt:!0},{no:5,name:"maximum_edition",kind:"enum",T:E.getEnumType(G),opt:!0}]);class lt extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new lt().fromBinary(x,M)}static fromJson(x,M){return new lt().fromJson(x,M)}static fromJsonString(x,M){return new lt().fromJsonString(x,M)}static equals(x,M){return E.util.equals(lt,x,M)}}lt.runtime=E,lt.typeName="google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault",lt.fields=E.util.newFieldList(()=>[{no:3,name:"edition",kind:"enum",T:E.getEnumType(G),opt:!0},{no:2,name:"features",kind:"message",T:Nt,opt:!0}]);class at extends se.v{constructor(x){super(),this.location=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new at().fromBinary(x,M)}static fromJson(x,M){return new at().fromJson(x,M)}static fromJsonString(x,M){return new at().fromJsonString(x,M)}static equals(x,M){return E.util.equals(at,x,M)}}at.runtime=E,at.typeName="google.protobuf.SourceCodeInfo",at.fields=E.util.newFieldList(()=>[{no:1,name:"location",kind:"message",T:Mt,repeated:!0}]);class Mt extends se.v{constructor(x){super(),this.path=[],this.span=[],this.leadingDetachedComments=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new Mt().fromBinary(x,M)}static fromJson(x,M){return new Mt().fromJson(x,M)}static fromJsonString(x,M){return new Mt().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Mt,x,M)}}Mt.runtime=E,Mt.typeName="google.protobuf.SourceCodeInfo.Location",Mt.fields=E.util.newFieldList(()=>[{no:1,name:"path",kind:"scalar",T:5,repeated:!0,packed:!0},{no:2,name:"span",kind:"scalar",T:5,repeated:!0,packed:!0},{no:3,name:"leading_comments",kind:"scalar",T:9,opt:!0},{no:4,name:"trailing_comments",kind:"scalar",T:9,opt:!0},{no:6,name:"leading_detached_comments",kind:"scalar",T:9,repeated:!0}]);class $t extends se.v{constructor(x){super(),this.annotation=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new $t().fromBinary(x,M)}static fromJson(x,M){return new $t().fromJson(x,M)}static fromJsonString(x,M){return new $t().fromJsonString(x,M)}static equals(x,M){return E.util.equals($t,x,M)}}$t.runtime=E,$t.typeName="google.protobuf.GeneratedCodeInfo",$t.fields=E.util.newFieldList(()=>[{no:1,name:"annotation",kind:"message",T:It,repeated:!0}]);class It extends se.v{constructor(x){super(),this.path=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new It().fromBinary(x,M)}static fromJson(x,M){return new It().fromJson(x,M)}static fromJsonString(x,M){return new It().fromJsonString(x,M)}static equals(x,M){return E.util.equals(It,x,M)}}It.runtime=E,It.typeName="google.protobuf.GeneratedCodeInfo.Annotation",It.fields=E.util.newFieldList(()=>[{no:1,name:"path",kind:"scalar",T:5,repeated:!0,packed:!0},{no:2,name:"source_file",kind:"scalar",T:9,opt:!0},{no:3,name:"begin",kind:"scalar",T:5,opt:!0},{no:4,name:"end",kind:"scalar",T:5,opt:!0},{no:5,name:"semantic",kind:"enum",T:E.getEnumType(Ct),opt:!0}]);var Ct;(function(F){F[F.NONE=0]="NONE",F[F.SET=1]="SET",F[F.ALIAS=2]="ALIAS"})(Ct||(Ct={})),E.util.setEnumType(Ct,"google.protobuf.GeneratedCodeInfo.Annotation.Semantic",[{no:0,name:"NONE"},{no:1,name:"SET"},{no:2,name:"ALIAS"}]);function Zt(F,x){const M=F.values.find(le=>le.name===x);return(0,k.hu)(M,`cannot parse ${F.name} default value: ${x}`),M.number}function Ie(F,x){switch(F){case p.w.STRING:return x;case p.w.BYTES:{const M=we(x);if(M===!1)throw new Error(`cannot parse ${p.w[F]} default value: ${x}`);return M}case p.w.INT64:case p.w.SFIXED64:case p.w.SINT64:return R.q.parse(x);case p.w.UINT64:case p.w.FIXED64:return R.q.uParse(x);case p.w.DOUBLE:case p.w.FLOAT:switch(x){case"inf":return Number.POSITIVE_INFINITY;case"-inf":return Number.NEGATIVE_INFINITY;case"nan":return Number.NaN;default:return parseFloat(x)}case p.w.BOOL:return x==="true";case p.w.INT32:case p.w.UINT32:case p.w.SINT32:case p.w.FIXED32:case p.w.SFIXED32:return parseInt(x,10)}}function we(F){const x=[],M={tail:F,c:"",next(){return this.tail.length==0?!1:(this.c=this.tail[0],this.tail=this.tail.substring(1),!0)},take(le){if(this.tail.length>=le){const be=this.tail.substring(0,le);return this.tail=this.tail.substring(le),be}return!1}};for(;M.next();)switch(M.c){case"\\":if(M.next())switch(M.c){case"\\":x.push(M.c.charCodeAt(0));break;case"b":x.push(8);break;case"f":x.push(12);break;case"n":x.push(10);break;case"r":x.push(13);break;case"t":x.push(9);break;case"v":x.push(11);break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":{const le=M.c,be=M.take(2);if(be===!1)return!1;const Pe=parseInt(le+be,8);if(isNaN(Pe))return!1;x.push(Pe);break}case"x":{const le=M.c,be=M.take(2);if(be===!1)return!1;const Pe=parseInt(le+be,16);if(isNaN(Pe))return!1;x.push(Pe);break}case"u":{const le=M.c,be=M.take(4);if(be===!1)return!1;const Pe=parseInt(le+be,16);if(isNaN(Pe))return!1;const je=new Uint8Array(4);new DataView(je.buffer).setInt32(0,Pe,!0),x.push(je[0],je[1],je[2],je[3]);break}case"U":{const le=M.c,be=M.take(8);if(be===!1)return!1;const Pe=R.q.uEnc(le+be),je=new Uint8Array(8),ct=new DataView(je.buffer);ct.setInt32(0,Pe.lo,!0),ct.setInt32(4,Pe.hi,!0),x.push(je[0],je[1],je[2],je[3],je[4],je[5],je[6],je[7]);break}}break;default:x.push(M.c.charCodeAt(0))}return new Uint8Array(x)}const Qe=pe.fromBinary(B.W.dec("ChESDAgBEAIYAiABKAEwAhjmBwoREgwIAhABGAEgAigBMAEY5wcKERIMCAEQARgBIAIoATABGOgHIOYHKOgH"));function ot(F){const x=F.minimumEdition,M=F.maximumEdition;if(x===void 0||M===void 0||F.defaults.some(be=>be.edition===void 0))throw new Error("Invalid FeatureSetDefaults");const le=new Map;return(be,...Pe)=>{var je,ct;let Ze=le.get(be);if(Ze===void 0){if(bebe||Pt!==void 0&&Pt.e>Er||(Pt={e:Er,f:(ct=On.features)!==null&&ct!==void 0?ct:new Nt})}if(Pt===void 0)throw new Error(`No valid default found for edition ${G[be]}`);Ze=Pt.f.toBinary(),le.set(be,Ze)}const Ot=Nt.fromBinary(Ze);for(const Pt of Pe)Pt!==void 0&&Ot.fromBinary(Pt.toBinary());if(!rn(Ot))throw new Error(`Invalid FeatureSet for edition ${G[be]}`);return Ot}}function rn(F){for(const x of Nt.fields.list()){const M=F[x.localName];if(M===void 0||x.kind=="enum"&&M===0)return!1}return!0}function Wt(F,x){var M;const le={enums:new Map,messages:new Map,services:new Map,extensions:new Map,mapEntries:new Map,resolveFeatures:ot((M=x==null?void 0:x.featureSetDefaults)!==null&&M!==void 0?M:Qe)},Pe=(F instanceof ce?F.file:F instanceof Uint8Array?ce.fromBinary(F).file:F).map(je=>mn(je,le));return Object.assign({files:Pe},le)}function mn(F,x){var M,le;(0,k.hu)(F.name,"invalid FileDescriptorProto: missing name");const be=Object.assign(Object.assign({kind:"file",proto:F,deprecated:(le=(M=F.options)===null||M===void 0?void 0:M.deprecated)!==null&&le!==void 0?le:!1},bn(F.syntax,F.edition)),{name:F.name.replace(/\.proto/,""),enums:[],messages:[],extensions:[],services:[],toString(){return`file ${this.proto.name}`},getSyntaxComments(){return no(this.proto.sourceCodeInfo,[di.FileDescriptorProto_Syntax])},getPackageComments(){return no(this.proto.sourceCodeInfo,[di.FileDescriptorProto_Package])},getFeatures(){var Pe;return x.resolveFeatures(this.edition,(Pe=this.proto.options)===null||Pe===void 0?void 0:Pe.features)}});x.mapEntries.clear();for(const Pe of F.enumType)Ce(Pe,be,void 0,x);for(const Pe of F.messageType)mt(Pe,be,void 0,x);for(const Pe of F.service)Dt(Pe,be,x);tr(be,x);for(const Pe of x.mapEntries.values())Ue(Pe,x);for(const Pe of be.messages)Ue(Pe,x),tr(Pe,x);return x.mapEntries.clear(),be}function tr(F,x){switch(F.kind){case"file":for(const M of F.proto.extension){const le=Kt(M,F,void 0,x);F.extensions.push(le),x.extensions.set(le.typeName,le)}break;case"message":for(const M of F.proto.extension){const le=Kt(M,F.file,F,x);F.nestedExtensions.push(le),x.extensions.set(le.typeName,le)}for(const M of F.nestedMessages)tr(M,x);break}}function Ue(F,x){const M=F.proto.oneofDecl.map(be=>Mn(be,F,x)),le=new Set;for(const be of F.proto.field){const Pe=Yr(be,M),je=Dn(be,F.file,F,Pe,x);F.fields.push(je),Pe===void 0?F.members.push(je):(Pe.fields.push(je),le.has(Pe)||(le.add(Pe),F.members.push(Pe)))}for(const be of M.filter(Pe=>le.has(Pe)))F.oneofs.push(be);for(const be of F.nestedMessages)Ue(be,x)}function Ce(F,x,M,le){var be,Pe,je;(0,k.hu)(F.name,"invalid EnumDescriptorProto: missing name");const ct={kind:"enum",proto:F,deprecated:(Pe=(be=F.options)===null||be===void 0?void 0:be.deprecated)!==null&&Pe!==void 0?Pe:!1,file:x,parent:M,name:F.name,typeName:Wn(F,M,x),values:[],sharedPrefix:(0,v.Sm)(F.name,F.value.map(Ze=>{var Ot;return(Ot=Ze.name)!==null&&Ot!==void 0?Ot:""})),toString(){return`enum ${this.typeName}`},getComments(){const Ze=this.parent?[...this.parent.getComments().sourcePath,di.DescriptorProto_EnumType,this.parent.proto.enumType.indexOf(this.proto)]:[di.FileDescriptorProto_EnumType,this.file.proto.enumType.indexOf(this.proto)];return no(x.proto.sourceCodeInfo,Ze)},getFeatures(){var Ze,Ot,Pt;const On=(Ot=(Ze=this.parent)===null||Ze===void 0?void 0:Ze.getFeatures())!==null&&Ot!==void 0?Ot:this.file.getFeatures();return le.resolveFeatures(this.file.edition,On,(Pt=this.proto.options)===null||Pt===void 0?void 0:Pt.features)}};le.enums.set(ct.typeName,ct),F.value.forEach(Ze=>{var Ot,Pt;(0,k.hu)(Ze.name,"invalid EnumValueDescriptorProto: missing name"),(0,k.hu)(Ze.number!==void 0,"invalid EnumValueDescriptorProto: missing number"),ct.values.push({kind:"enum_value",proto:Ze,deprecated:(Pt=(Ot=Ze.options)===null||Ot===void 0?void 0:Ot.deprecated)!==null&&Pt!==void 0?Pt:!1,parent:ct,name:Ze.name,number:Ze.number,toString(){return`enum value ${ct.typeName}.${this.name}`},declarationString(){var On;let Er=`${this.name} = ${this.number}`;return((On=this.proto.options)===null||On===void 0?void 0:On.deprecated)===!0&&(Er+=" [deprecated = true]"),Er},getComments(){const On=[...this.parent.getComments().sourcePath,di.EnumDescriptorProto_Value,this.parent.proto.value.indexOf(this.proto)];return no(x.proto.sourceCodeInfo,On)},getFeatures(){var On;return le.resolveFeatures(this.parent.file.edition,this.parent.getFeatures(),(On=this.proto.options)===null||On===void 0?void 0:On.features)}})}),((je=M==null?void 0:M.nestedEnums)!==null&&je!==void 0?je:x.enums).push(ct)}function mt(F,x,M,le){var be,Pe,je,ct;(0,k.hu)(F.name,"invalid DescriptorProto: missing name");const Ze={kind:"message",proto:F,deprecated:(Pe=(be=F.options)===null||be===void 0?void 0:be.deprecated)!==null&&Pe!==void 0?Pe:!1,file:x,parent:M,name:F.name,typeName:Wn(F,M,x),fields:[],oneofs:[],members:[],nestedEnums:[],nestedMessages:[],nestedExtensions:[],toString(){return`message ${this.typeName}`},getComments(){const Ot=this.parent?[...this.parent.getComments().sourcePath,di.DescriptorProto_NestedType,this.parent.proto.nestedType.indexOf(this.proto)]:[di.FileDescriptorProto_MessageType,this.file.proto.messageType.indexOf(this.proto)];return no(x.proto.sourceCodeInfo,Ot)},getFeatures(){var Ot,Pt,On;const Er=(Pt=(Ot=this.parent)===null||Ot===void 0?void 0:Ot.getFeatures())!==null&&Pt!==void 0?Pt:this.file.getFeatures();return le.resolveFeatures(this.file.edition,Er,(On=this.proto.options)===null||On===void 0?void 0:On.features)}};((je=F.options)===null||je===void 0?void 0:je.mapEntry)===!0?le.mapEntries.set(Ze.typeName,Ze):(((ct=M==null?void 0:M.nestedMessages)!==null&&ct!==void 0?ct:x.messages).push(Ze),le.messages.set(Ze.typeName,Ze));for(const Ot of F.enumType)Ce(Ot,x,Ze,le);for(const Ot of F.nestedType)mt(Ot,x,Ze,le)}function Dt(F,x,M){var le,be;(0,k.hu)(F.name,"invalid ServiceDescriptorProto: missing name");const Pe={kind:"service",proto:F,deprecated:(be=(le=F.options)===null||le===void 0?void 0:le.deprecated)!==null&&be!==void 0?be:!1,file:x,name:F.name,typeName:Wn(F,void 0,x),methods:[],toString(){return`service ${this.typeName}`},getComments(){const je=[di.FileDescriptorProto_Service,this.file.proto.service.indexOf(this.proto)];return no(x.proto.sourceCodeInfo,je)},getFeatures(){var je;return M.resolveFeatures(this.file.edition,this.file.getFeatures(),(je=this.proto.options)===null||je===void 0?void 0:je.features)}};x.services.push(Pe),M.services.set(Pe.typeName,Pe);for(const je of F.method)Pe.methods.push(tn(je,Pe,M))}function tn(F,x,M){var le,be,Pe;(0,k.hu)(F.name,"invalid MethodDescriptorProto: missing name"),(0,k.hu)(F.inputType,"invalid MethodDescriptorProto: missing input_type"),(0,k.hu)(F.outputType,"invalid MethodDescriptorProto: missing output_type");let je;F.clientStreaming===!0&&F.serverStreaming===!0?je=ve.t.BiDiStreaming:F.clientStreaming===!0?je=ve.t.ClientStreaming:F.serverStreaming===!0?je=ve.t.ServerStreaming:je=ve.t.Unary;let ct;switch((le=F.options)===null||le===void 0?void 0:le.idempotencyLevel){case qe.IDEMPOTENT:ct=ve.w.Idempotent;break;case qe.NO_SIDE_EFFECTS:ct=ve.w.NoSideEffects;break;case qe.IDEMPOTENCY_UNKNOWN:case void 0:ct=void 0;break}const Ze=M.messages.get(Qn(F.inputType)),Ot=M.messages.get(Qn(F.outputType));(0,k.hu)(Ze,`invalid MethodDescriptorProto: input_type ${F.inputType} not found`),(0,k.hu)(Ot,`invalid MethodDescriptorProto: output_type ${F.inputType} not found`);const Pt=F.name;return{kind:"rpc",proto:F,deprecated:(Pe=(be=F.options)===null||be===void 0?void 0:be.deprecated)!==null&&Pe!==void 0?Pe:!1,parent:x,name:Pt,methodKind:je,input:Ze,output:Ot,idempotency:ct,toString(){return`rpc ${x.typeName}.${Pt}`},getComments(){const On=[...this.parent.getComments().sourcePath,di.ServiceDescriptorProto_Method,this.parent.proto.method.indexOf(this.proto)];return no(x.file.proto.sourceCodeInfo,On)},getFeatures(){var On;return M.resolveFeatures(this.parent.file.edition,this.parent.getFeatures(),(On=this.proto.options)===null||On===void 0?void 0:On.features)}}}function Mn(F,x,M){return(0,k.hu)(F.name,"invalid OneofDescriptorProto: missing name"),{kind:"oneof",proto:F,deprecated:!1,parent:x,fields:[],name:F.name,toString(){return`oneof ${x.typeName}.${this.name}`},getComments(){const le=[...this.parent.getComments().sourcePath,di.DescriptorProto_OneofDecl,this.parent.proto.oneofDecl.indexOf(this.proto)];return no(x.file.proto.sourceCodeInfo,le)},getFeatures(){var le;return M.resolveFeatures(this.parent.file.edition,this.parent.getFeatures(),(le=this.proto.options)===null||le===void 0?void 0:le.features)}}}function Dn(F,x,M,le,be){var Pe,je,ct;(0,k.hu)(F.name,"invalid FieldDescriptorProto: missing name"),(0,k.hu)(F.number,"invalid FieldDescriptorProto: missing number"),(0,k.hu)(F.type,"invalid FieldDescriptorProto: missing type");const Ze={proto:F,deprecated:(je=(Pe=F.options)===null||Pe===void 0?void 0:Pe.deprecated)!==null&&je!==void 0?je:!1,name:F.name,number:F.number,parent:M,oneof:le,optional:En(F,x.syntax),packedByDefault:An(x,F,be.resolveFeatures),packed:la(x,M,F,be.resolveFeatures),jsonName:F.jsonName===(0,v.x1)(F.name)?void 0:F.jsonName,scalar:void 0,longType:void 0,message:void 0,enum:void 0,mapKey:void 0,mapValue:void 0,declarationString:Ma,toString(){return`field ${this.parent.typeName}.${this.name}`},getComments(){const Pt=[...this.parent.getComments().sourcePath,di.DescriptorProto_Field,this.parent.proto.field.indexOf(this.proto)];return no(x.proto.sourceCodeInfo,Pt)},getFeatures(){var Pt;return be.resolveFeatures(x.edition,this.parent.getFeatures(),(Pt=this.proto.options)===null||Pt===void 0?void 0:Pt.features)}},Ot=F.label===ze.REPEATED;switch(F.type){case ye.MESSAGE:case ye.GROUP:{(0,k.hu)(F.typeName,"invalid FieldDescriptorProto: missing type_name");const Pt=be.mapEntries.get(Qn(F.typeName));if(Pt!==void 0)return(0,k.hu)(Ot,"invalid FieldDescriptorProto: expected map entry to be repeated"),Object.assign(Object.assign(Object.assign({},Ze),{kind:"field",fieldKind:"map",repeated:!1}),ht(Pt));const On=be.messages.get(Qn(F.typeName));return(0,k.hu)(On!==void 0,`invalid FieldDescriptorProto: type_name ${F.typeName} not found`),Object.assign(Object.assign({},Ze),{kind:"field",fieldKind:"message",repeated:Ot,message:On})}case ye.ENUM:{(0,k.hu)(F.typeName,"invalid FieldDescriptorProto: missing type_name");const Pt=be.enums.get(Qn(F.typeName));return(0,k.hu)(Pt!==void 0,`invalid FieldDescriptorProto: type_name ${F.typeName} not found`),Object.assign(Object.assign({},Ze),{kind:"field",fieldKind:"enum",getDefaultValue:Yp,repeated:Ot,enum:Pt})}default:{const Pt=Qp[F.type];return(0,k.hu)(Pt,`invalid FieldDescriptorProto: unknown type ${F.type}`),Object.assign(Object.assign({},Ze),{kind:"field",fieldKind:"scalar",getDefaultValue:Yp,repeated:Ot,scalar:Pt,longType:((ct=F.options)===null||ct===void 0?void 0:ct.jstype)==fe.JS_STRING?p.p.STRING:p.p.BIGINT})}}}function Kt(F,x,M,le){(0,k.hu)(F.extendee,"invalid FieldDescriptorProto: missing extendee");const be=Dn(F,x,null,void 0,le),Pe=le.messages.get(Qn(F.extendee));return(0,k.hu)(Pe,`invalid FieldDescriptorProto: extendee ${F.extendee} not found`),Object.assign(Object.assign({},be),{kind:"extension",typeName:Wn(F,M,x),parent:M,file:x,extendee:Pe,toString(){return`extension ${this.typeName}`},getComments(){const je=this.parent?[...this.parent.getComments().sourcePath,di.DescriptorProto_Extension,this.parent.proto.extension.indexOf(F)]:[di.FileDescriptorProto_Extension,this.file.proto.extension.indexOf(F)];return no(x.proto.sourceCodeInfo,je)},getFeatures(){var je,ct;return le.resolveFeatures(this.file.edition,((je=this.parent)!==null&&je!==void 0?je:this.file).getFeatures(),(ct=this.proto.options)===null||ct===void 0?void 0:ct.features)}})}function bn(F,x){let M,le;switch(F){case void 0:case"proto2":le="proto2",M=G.EDITION_PROTO2;break;case"proto3":le="proto3",M=G.EDITION_PROTO3;break;case"editions":switch(le="editions",x){case void 0:case G.EDITION_1_TEST_ONLY:case G.EDITION_2_TEST_ONLY:case G.EDITION_99997_TEST_ONLY:case G.EDITION_99998_TEST_ONLY:case G.EDITION_99999_TEST_ONLY:case G.EDITION_UNKNOWN:M=G.EDITION_UNKNOWN;break;default:M=x;break}break;default:throw new Error(`invalid FileDescriptorProto: unsupported syntax: ${F}`)}if(F==="editions"&&x===G.EDITION_UNKNOWN)throw new Error(`invalid FileDescriptorProto: syntax ${F} cannot have edition ${String(x)}`);return{syntax:le,edition:M}}function Wn(F,x,M){(0,k.hu)(F.name,`invalid ${F.getType().typeName}: missing name`);let le;return x?le=`${x.typeName}.${F.name}`:M.proto.package!==void 0?le=`${M.proto.package}.${F.name}`:le=`${F.name}`,le}function Qn(F){return F.startsWith(".")?F.substring(1):F}function ht(F){var x,M;(0,k.hu)((x=F.proto.options)===null||x===void 0?void 0:x.mapEntry,`invalid DescriptorProto: expected ${F.toString()} to be a map entry`),(0,k.hu)(F.fields.length===2,`invalid DescriptorProto: map entry ${F.toString()} has ${F.fields.length} fields`);const le=F.fields.find(je=>je.proto.number===1);(0,k.hu)(le,`invalid DescriptorProto: map entry ${F.toString()} is missing key field`);const be=le.scalar;(0,k.hu)(be!==void 0&&be!==p.w.BYTES&&be!==p.w.FLOAT&&be!==p.w.DOUBLE,`invalid DescriptorProto: map entry ${F.toString()} has unexpected key type ${(M=le.proto.type)!==null&&M!==void 0?M:-1}`);const Pe=F.fields.find(je=>je.proto.number===2);switch((0,k.hu)(Pe,`invalid DescriptorProto: map entry ${F.toString()} is missing value field`),Pe.fieldKind){case"scalar":return{mapKey:be,mapValue:Object.assign(Object.assign({},Pe),{kind:"scalar"})};case"message":return{mapKey:be,mapValue:Object.assign(Object.assign({},Pe),{kind:"message"})};case"enum":return{mapKey:be,mapValue:Object.assign(Object.assign({},Pe),{kind:"enum"})};default:throw new Error("invalid DescriptorProto: unsupported map entry value field")}}function Yr(F,x){var M;const le=F.oneofIndex;if(le===void 0)return;let be;return F.proto3Optional!==!0&&(be=x[le],(0,k.hu)(be,`invalid FieldDescriptorProto: oneof #${le} for field #${(M=F.number)!==null&&M!==void 0?M:-1} not found`)),be}function En(F,x){switch(x){case"proto2":return F.oneofIndex===void 0&&F.label===ze.OPTIONAL;case"proto3":return F.proto3Optional===!0;case"editions":return!1}}function An(F,x,M){const{repeatedFieldEncoding:le}=M(F.edition);if(le!=pn.PACKED)return!1;switch(x.type){case ye.STRING:case ye.BYTES:case ye.GROUP:case ye.MESSAGE:return!1;default:return!0}}function la(F,x,M,le){var be,Pe,je,ct,Ze,Ot;switch(M.type){case ye.STRING:case ye.BYTES:case ye.GROUP:case ye.MESSAGE:return!1;default:switch(F.edition){case G.EDITION_PROTO2:return(Pe=(be=M.options)===null||be===void 0?void 0:be.packed)!==null&&Pe!==void 0?Pe:!1;case G.EDITION_PROTO3:return(ct=(je=M.options)===null||je===void 0?void 0:je.packed)!==null&&ct!==void 0?ct:!0;default:{const{repeatedFieldEncoding:Pt}=le(F.edition,(Ze=x==null?void 0:x.getFeatures())!==null&&Ze!==void 0?Ze:F.getFeatures(),(Ot=M.options)===null||Ot===void 0?void 0:Ot.features);return Pt==pn.PACKED}}}}const Qp={[ye.DOUBLE]:p.w.DOUBLE,[ye.FLOAT]:p.w.FLOAT,[ye.INT64]:p.w.INT64,[ye.UINT64]:p.w.UINT64,[ye.INT32]:p.w.INT32,[ye.FIXED64]:p.w.FIXED64,[ye.FIXED32]:p.w.FIXED32,[ye.BOOL]:p.w.BOOL,[ye.STRING]:p.w.STRING,[ye.GROUP]:void 0,[ye.MESSAGE]:void 0,[ye.BYTES]:p.w.BYTES,[ye.UINT32]:p.w.UINT32,[ye.ENUM]:void 0,[ye.SFIXED32]:p.w.SFIXED32,[ye.SFIXED64]:p.w.SFIXED64,[ye.SINT32]:p.w.SINT32,[ye.SINT64]:p.w.SINT64};function no(F,x){if(!F)return{leadingDetached:[],sourcePath:x};for(const M of F.location)if(M.path.length===x.length&&!M.path.some((le,be)=>x[be]!==le))return{leadingDetached:M.leadingDetachedComments,leading:M.leadingComments,trailing:M.trailingComments,sourcePath:x};return{leadingDetached:[],sourcePath:x}}var di;(function(F){F[F.FileDescriptorProto_Package=2]="FileDescriptorProto_Package",F[F.FileDescriptorProto_MessageType=4]="FileDescriptorProto_MessageType",F[F.FileDescriptorProto_EnumType=5]="FileDescriptorProto_EnumType",F[F.FileDescriptorProto_Service=6]="FileDescriptorProto_Service",F[F.FileDescriptorProto_Extension=7]="FileDescriptorProto_Extension",F[F.FileDescriptorProto_Syntax=12]="FileDescriptorProto_Syntax",F[F.DescriptorProto_Field=2]="DescriptorProto_Field",F[F.DescriptorProto_NestedType=3]="DescriptorProto_NestedType",F[F.DescriptorProto_EnumType=4]="DescriptorProto_EnumType",F[F.DescriptorProto_Extension=6]="DescriptorProto_Extension",F[F.DescriptorProto_OneofDecl=8]="DescriptorProto_OneofDecl",F[F.EnumDescriptorProto_Value=2]="EnumDescriptorProto_Value",F[F.ServiceDescriptorProto_Method=2]="ServiceDescriptorProto_Method"})(di||(di={}));function Ma(){var F,x,M;const le=[];this.repeated&&le.push("repeated"),this.optional&&le.push("optional"),(this.kind==="extension"?this.file:this.parent.file).syntax=="proto2"&&this.proto.label===ze.REQUIRED&&le.push("required");let Pe;switch(this.fieldKind){case"scalar":Pe=p.w[this.scalar].toLowerCase();break;case"enum":Pe=this.enum.typeName;break;case"message":Pe=this.message.typeName;break;case"map":{const Ze=p.w[this.mapKey].toLowerCase();let Ot;switch(this.mapValue.kind){case"scalar":Ot=p.w[this.mapValue.scalar].toLowerCase();break;case"enum":Ot=this.mapValue.enum.typeName;break;case"message":Ot=this.mapValue.message.typeName;break}Pe=`map<${Ze}, ${Ot}>`;break}}le.push(`${Pe} ${this.name} = ${this.number}`);const je=[];((F=this.proto.options)===null||F===void 0?void 0:F.packed)!==void 0&&je.push(`packed = ${this.proto.options.packed.toString()}`);let ct=this.proto.defaultValue;return ct!==void 0&&((this.proto.type==ye.BYTES||this.proto.type==ye.STRING)&&(ct='"'+ct.replace('"','\\"')+'"'),je.push(`default = ${ct}`)),this.jsonName!==void 0&&je.push(`json_name = "${this.jsonName}"`),((x=this.proto.options)===null||x===void 0?void 0:x.jstype)!==void 0&&je.push(`jstype = ${fe[this.proto.options.jstype]}`),((M=this.proto.options)===null||M===void 0?void 0:M.deprecated)===!0&&je.push("deprecated = true"),je.length>0&&le.push("["+je.join(", ")+"]"),le.join(" ")}function Yp(){const F=this.proto.defaultValue;if(F!==void 0)switch(this.fieldKind){case"enum":return Zt(this.enum,F);case"scalar":return Ie(this.scalar,F);default:return}}function jO(...F){const x={},M={},le={},be={add(Pe){if("fields"in Pe){if(!this.findMessage(Pe.typeName)){x[Pe.typeName]=Pe;for(const je of Pe.fields.list())je.kind=="message"?this.add(je.T):je.kind=="map"&&je.V.kind=="message"?this.add(je.V.T):je.kind=="enum"&&this.add(je.T)}}else if("methods"in Pe){if(!this.findService(Pe.typeName)){le[Pe.typeName]=Pe;for(const je of Object.values(Pe.methods))this.add(je.I),this.add(je.O)}}else M[Pe.typeName]=Pe},findMessage(Pe){return x[Pe]},findEnum(Pe){return M[Pe]},findService(Pe){return le[Pe]}};for(const Pe of F)be.add(Pe);return be}class ua extends se.v{constructor(x){super(),this.seconds=R.q.zero,this.nanos=0,c.w.util.initPartial(x,this)}fromJson(x,M){if(typeof x!="string")throw new Error(`cannot decode google.protobuf.Timestamp from JSON: ${c.w.json.debug(x)}`);const le=x.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(!le)throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");const be=Date.parse(le[1]+"-"+le[2]+"-"+le[3]+"T"+le[4]+":"+le[5]+":"+le[6]+(le[8]?le[8]:"Z"));if(Number.isNaN(be))throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");if(beDate.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=R.q.parse(be/1e3),this.nanos=0,le[7]&&(this.nanos=parseInt("1"+le[7]+"0".repeat(9-le[7].length))-1e9),this}toJson(x){const M=Number(this.seconds)*1e3;if(MDate.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 le="Z";if(this.nanos>0){const be=(this.nanos+1e9).toString().substring(1);be.substring(3)==="000000"?le="."+be.substring(0,3)+"Z":be.substring(6)==="000"?le="."+be.substring(0,6)+"Z":le="."+be+"Z"}return new Date(M).toISOString().replace(".000Z",le)}toDate(){return new Date(Number(this.seconds)*1e3+Math.ceil(this.nanos/1e6))}static now(){return ua.fromDate(new Date)}static fromDate(x){const M=x.getTime();return new ua({seconds:R.q.parse(Math.floor(M/1e3)),nanos:M%1e3*1e6})}static fromBinary(x,M){return new ua().fromBinary(x,M)}static fromJson(x,M){return new ua().fromJson(x,M)}static fromJsonString(x,M){return new ua().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(ua,x,M)}}ua.runtime=c.w,ua.typeName="google.protobuf.Timestamp",ua.fields=c.w.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);class vr extends se.v{constructor(x){super(),this.seconds=R.q.zero,this.nanos=0,c.w.util.initPartial(x,this)}fromJson(x,M){if(typeof x!="string")throw new Error(`cannot decode google.protobuf.Duration from JSON: ${c.w.json.debug(x)}`);const le=x.match(/^(-?[0-9]+)(?:\.([0-9]+))?s/);if(le===null)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${c.w.json.debug(x)}`);const be=Number(le[1]);if(be>315576e6||be<-315576e6)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${c.w.json.debug(x)}`);if(this.seconds=R.q.parse(be),typeof le[2]=="string"){const Pe=le[2]+"0".repeat(9-le[2].length);this.nanos=parseInt(Pe),(be<0||Object.is(be,-0))&&(this.nanos=-this.nanos)}return this}toJson(x){if(Number(this.seconds)>315576e6||Number(this.seconds)<-315576e6)throw new Error("cannot encode google.protobuf.Duration to JSON: value out of range");let M=this.seconds.toString();if(this.nanos!==0){let le=Math.abs(this.nanos).toString();le="0".repeat(9-le.length)+le,le.substring(3)==="000000"?le=le.substring(0,3):le.substring(6)==="000"&&(le=le.substring(0,6)),M+="."+le,this.nanos<0&&Number(this.seconds)==0&&(M="-"+M)}return M+"s"}static fromBinary(x,M){return new vr().fromBinary(x,M)}static fromJson(x,M){return new vr().fromJson(x,M)}static fromJsonString(x,M){return new vr().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(vr,x,M)}}vr.runtime=c.w,vr.typeName="google.protobuf.Duration",vr.fields=c.w.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);var Gp=u(733);class Ts extends se.v{constructor(x){super(),c.w.util.initPartial(x,this)}static fromBinary(x,M){return new Ts().fromBinary(x,M)}static fromJson(x,M){return new Ts().fromJson(x,M)}static fromJsonString(x,M){return new Ts().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Ts,x,M)}}Ts.runtime=c.w,Ts.typeName="google.protobuf.Empty",Ts.fields=c.w.util.newFieldList(()=>[]);class ws extends se.v{constructor(x){super(),this.paths=[],c.w.util.initPartial(x,this)}toJson(x){function M(le){let be=!1;const Pe=[];for(let je=0;je{if(le.match(/_[0-9]?_/g)||le.match(/[A-Z]/g))throw new Error('cannot encode google.protobuf.FieldMask to JSON: lowerCamelCase of path name "'+le+'" is irreversible');return M(le)}).join(",")}fromJson(x,M){if(typeof x!="string")throw new Error("cannot decode google.protobuf.FieldMask from JSON: "+c.w.json.debug(x));if(x==="")return this;function le(be){if(be.includes("_"))throw new Error("cannot decode google.protobuf.FieldMask from JSON: path names must be lowerCamelCase");const Pe=be.replace(/[A-Z]/g,je=>"_"+je.toLowerCase());return Pe[0]==="_"?Pe.substring(1):Pe}return this.paths=x.split(",").map(le),this}static fromBinary(x,M){return new ws().fromBinary(x,M)}static fromJson(x,M){return new ws().fromJson(x,M)}static fromJsonString(x,M){return new ws().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(ws,x,M)}}ws.runtime=c.w,ws.typeName="google.protobuf.FieldMask",ws.fields=c.w.util.newFieldList(()=>[{no:1,name:"paths",kind:"scalar",T:9,repeated:!0}]);var ro;(function(F){F[F.NULL_VALUE=0]="NULL_VALUE"})(ro||(ro={})),c.w.util.setEnumType(ro,"google.protobuf.NullValue",[{no:0,name:"NULL_VALUE"}]);class wo extends se.v{constructor(x){super(),this.fields={},c.w.util.initPartial(x,this)}toJson(x){const M={};for(const[le,be]of Object.entries(this.fields))M[le]=be.toJson(x);return M}fromJson(x,M){if(typeof x!="object"||x==null||Array.isArray(x))throw new Error("cannot decode google.protobuf.Struct from JSON "+c.w.json.debug(x));for(const[le,be]of Object.entries(x))this.fields[le]=Br.fromJson(be);return this}static fromBinary(x,M){return new wo().fromBinary(x,M)}static fromJson(x,M){return new wo().fromJson(x,M)}static fromJsonString(x,M){return new wo().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(wo,x,M)}}wo.runtime=c.w,wo.typeName="google.protobuf.Struct",wo.fields=c.w.util.newFieldList(()=>[{no:1,name:"fields",kind:"map",K:9,V:{kind:"message",T:Br}}]);class Br extends se.v{constructor(x){super(),this.kind={case:void 0},c.w.util.initPartial(x,this)}toJson(x){switch(this.kind.case){case"nullValue":return null;case"numberValue":if(!Number.isFinite(this.kind.value))throw new Error("google.protobuf.Value cannot be NaN or Infinity");return this.kind.value;case"boolValue":return this.kind.value;case"stringValue":return this.kind.value;case"structValue":case"listValue":return this.kind.value.toJson(Object.assign(Object.assign({},x),{emitDefaultValues:!0}))}throw new Error("google.protobuf.Value must have a value")}fromJson(x,M){switch(typeof x){case"number":this.kind={case:"numberValue",value:x};break;case"string":this.kind={case:"stringValue",value:x};break;case"boolean":this.kind={case:"boolValue",value:x};break;case"object":x===null?this.kind={case:"nullValue",value:ro.NULL_VALUE}:Array.isArray(x)?this.kind={case:"listValue",value:io.fromJson(x)}:this.kind={case:"structValue",value:wo.fromJson(x)};break;default:throw new Error("cannot decode google.protobuf.Value from JSON "+c.w.json.debug(x))}return this}static fromBinary(x,M){return new Br().fromBinary(x,M)}static fromJson(x,M){return new Br().fromJson(x,M)}static fromJsonString(x,M){return new Br().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Br,x,M)}}Br.runtime=c.w,Br.typeName="google.protobuf.Value",Br.fields=c.w.util.newFieldList(()=>[{no:1,name:"null_value",kind:"enum",T:c.w.getEnumType(ro),oneof:"kind"},{no:2,name:"number_value",kind:"scalar",T:1,oneof:"kind"},{no:3,name:"string_value",kind:"scalar",T:9,oneof:"kind"},{no:4,name:"bool_value",kind:"scalar",T:8,oneof:"kind"},{no:5,name:"struct_value",kind:"message",T:wo,oneof:"kind"},{no:6,name:"list_value",kind:"message",T:io,oneof:"kind"}]);class io extends se.v{constructor(x){super(),this.values=[],c.w.util.initPartial(x,this)}toJson(x){return this.values.map(M=>M.toJson())}fromJson(x,M){if(!Array.isArray(x))throw new Error("cannot decode google.protobuf.ListValue from JSON "+c.w.json.debug(x));for(let le of x)this.values.push(Br.fromJson(le));return this}static fromBinary(x,M){return new io().fromBinary(x,M)}static fromJson(x,M){return new io().fromJson(x,M)}static fromJsonString(x,M){return new io().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(io,x,M)}}io.runtime=c.w,io.typeName="google.protobuf.ListValue",io.fields=c.w.util.newFieldList(()=>[{no:1,name:"values",kind:"message",T:Br,repeated:!0}]);var Wl=u(609);class Vo extends se.v{constructor(x){super(),this.value=0,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.DOUBLE,this.value,!0)}fromJson(x,M){try{this.value=c.w.json.readScalar(p.w.DOUBLE,x)}catch(le){let be='cannot decode message google.protobuf.DoubleValue from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,M){return new Vo().fromBinary(x,M)}static fromJson(x,M){return new Vo().fromJson(x,M)}static fromJsonString(x,M){return new Vo().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Vo,x,M)}}Vo.runtime=c.w,Vo.typeName="google.protobuf.DoubleValue",Vo.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:1}]),Vo.fieldWrapper={wrapField(F){return new Vo({value:F})},unwrapField(F){return F.value}};class ko extends se.v{constructor(x){super(),this.value=0,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.FLOAT,this.value,!0)}fromJson(x,M){try{this.value=c.w.json.readScalar(p.w.FLOAT,x)}catch(le){let be='cannot decode message google.protobuf.FloatValue from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,M){return new ko().fromBinary(x,M)}static fromJson(x,M){return new ko().fromJson(x,M)}static fromJsonString(x,M){return new ko().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(ko,x,M)}}ko.runtime=c.w,ko.typeName="google.protobuf.FloatValue",ko.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:2}]),ko.fieldWrapper={wrapField(F){return new ko({value:F})},unwrapField(F){return F.value}};class ji extends se.v{constructor(x){super(),this.value=R.q.zero,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.INT64,this.value,!0)}fromJson(x,M){try{this.value=c.w.json.readScalar(p.w.INT64,x)}catch(le){let be='cannot decode message google.protobuf.Int64Value from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,M){return new ji().fromBinary(x,M)}static fromJson(x,M){return new ji().fromJson(x,M)}static fromJsonString(x,M){return new ji().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(ji,x,M)}}ji.runtime=c.w,ji.typeName="google.protobuf.Int64Value",ji.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:3}]),ji.fieldWrapper={wrapField(F){return new ji({value:F})},unwrapField(F){return F.value}};class mr extends se.v{constructor(x){super(),this.value=R.q.zero,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.UINT64,this.value,!0)}fromJson(x,M){try{this.value=c.w.json.readScalar(p.w.UINT64,x)}catch(le){let be='cannot decode message google.protobuf.UInt64Value from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,M){return new mr().fromBinary(x,M)}static fromJson(x,M){return new mr().fromJson(x,M)}static fromJsonString(x,M){return new mr().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(mr,x,M)}}mr.runtime=c.w,mr.typeName="google.protobuf.UInt64Value",mr.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:4}]),mr.fieldWrapper={wrapField(F){return new mr({value:F})},unwrapField(F){return F.value}};class Ar extends se.v{constructor(x){super(),this.value=0,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.INT32,this.value,!0)}fromJson(x,M){try{this.value=c.w.json.readScalar(p.w.INT32,x)}catch(le){let be='cannot decode message google.protobuf.Int32Value from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,M){return new Ar().fromBinary(x,M)}static fromJson(x,M){return new Ar().fromJson(x,M)}static fromJsonString(x,M){return new Ar().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Ar,x,M)}}Ar.runtime=c.w,Ar.typeName="google.protobuf.Int32Value",Ar.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:5}]),Ar.fieldWrapper={wrapField(F){return new Ar({value:F})},unwrapField(F){return F.value}};class Ur extends se.v{constructor(x){super(),this.value=0,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.UINT32,this.value,!0)}fromJson(x,M){try{this.value=c.w.json.readScalar(p.w.UINT32,x)}catch(le){let be='cannot decode message google.protobuf.UInt32Value from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,M){return new Ur().fromBinary(x,M)}static fromJson(x,M){return new Ur().fromJson(x,M)}static fromJsonString(x,M){return new Ur().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Ur,x,M)}}Ur.runtime=c.w,Ur.typeName="google.protobuf.UInt32Value",Ur.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:13}]),Ur.fieldWrapper={wrapField(F){return new Ur({value:F})},unwrapField(F){return F.value}};class Ho extends se.v{constructor(x){super(),this.value=!1,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.BOOL,this.value,!0)}fromJson(x,M){try{this.value=c.w.json.readScalar(p.w.BOOL,x)}catch(le){let be='cannot decode message google.protobuf.BoolValue from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,M){return new Ho().fromBinary(x,M)}static fromJson(x,M){return new Ho().fromJson(x,M)}static fromJsonString(x,M){return new Ho().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Ho,x,M)}}Ho.runtime=c.w,Ho.typeName="google.protobuf.BoolValue",Ho.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:8}]),Ho.fieldWrapper={wrapField(F){return new Ho({value:F})},unwrapField(F){return F.value}};class zi extends se.v{constructor(x){super(),this.value="",c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.STRING,this.value,!0)}fromJson(x,M){try{this.value=c.w.json.readScalar(p.w.STRING,x)}catch(le){let be='cannot decode message google.protobuf.StringValue from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,M){return new zi().fromBinary(x,M)}static fromJson(x,M){return new zi().fromJson(x,M)}static fromJsonString(x,M){return new zi().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(zi,x,M)}}zi.runtime=c.w,zi.typeName="google.protobuf.StringValue",zi.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:9}]),zi.fieldWrapper={wrapField(F){return new zi({value:F})},unwrapField(F){return F.value}};class Jt extends se.v{constructor(x){super(),this.value=new Uint8Array(0),c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.BYTES,this.value,!0)}fromJson(x,M){try{this.value=c.w.json.readScalar(p.w.BYTES,x)}catch(le){let be='cannot decode message google.protobuf.BytesValue from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,M){return new Jt().fromBinary(x,M)}static fromJson(x,M){return new Jt().fromJson(x,M)}static fromJsonString(x,M){return new Jt().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Jt,x,M)}}Jt.runtime=c.w,Jt.typeName="google.protobuf.BytesValue",Jt.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:12}]),Jt.fieldWrapper={wrapField(F){return new Jt({value:F})},unwrapField(F){return F.value}};const _r=[Gp.I,vr,Ts,ws,wo,Br,io,ua,vr,Vo,ko,ji,Ar,Ur,mr,Ho,zi,Jt],qp=[(0,Wl.V3)(ro)];function pf(F,x=!0){const M=F instanceof Uint8Array||F instanceof ce?Wt(F):F,le={},be={},Pe={};if(x){for(const je of _r)be[je.typeName]=je;for(const je of qp)le[je.typeName]=je}return{findEnum(je){const ct=le[je];if(ct)return ct;const Ze=M.enums.get(je);if(!Ze)return;const Pt=(Ze.file.syntax=="proto3"?c.w:E).makeEnumType(je,Ze.values.map(On=>({no:On.number,name:On.name,localName:(0,v.r1)(On)})),{});return le[je]=Pt,Pt},findMessage(je){const ct=be[je];if(ct)return ct;const Ze=M.messages.get(je);if(!Ze)return;const Ot=Ze.file.syntax=="proto3"?c.w:E,Pt=[],On=Ot.makeMessageType(je,()=>Pt,{localName:(0,v.r1)(Ze)});be[je]=On;for(const Er of Ze.fields){const Sn=Wo(Er,this);Pt.push(Sn)}return On},findService(je){const ct=Pe[je];if(ct)return ct;const Ze=M.services.get(je);if(!Ze)return;const Ot={};for(const Pt of Ze.methods){const On=this.findMessage(Pt.input.typeName),Er=this.findMessage(Pt.output.typeName);(0,k.hu)(On,`message "${Pt.input.typeName}" for ${Pt.toString()} not found`),(0,k.hu)(Er,`output message "${Pt.output.typeName}" for ${Pt.toString()} not found`),Ot[(0,v.r1)(Pt)]={name:Pt.name,I:On,O:Er,kind:Pt.methodKind,idempotency:Pt.idempotency}}return Pe[je]={typeName:Ze.typeName,methods:Ot}}}}function Wo(F,x){switch(F.fieldKind){case"map":return Ql(F,x);case"message":return hf(F,x);case"enum":{const M=Yl(F,x);return M.default=F.getDefaultValue(),M}case"scalar":{const M=Hu(F);return M.default=F.getDefaultValue(),M}}}function Ql(F,x){const M={kind:"map",no:F.number,name:F.name,jsonName:F.jsonName,K:F.mapKey};if(F.mapValue.message){const le=x.findMessage(F.mapValue.message.typeName);return(0,k.hu)(le,`message "${F.mapValue.message.typeName}" for ${F.toString()} not found`),Object.assign(Object.assign({},M),{V:{kind:"message",T:le}})}if(F.mapValue.enum){const le=x.findEnum(F.mapValue.enum.typeName);return(0,k.hu)(le,`enum "${F.mapValue.enum.typeName}" for ${F.toString()} not found`),Object.assign(Object.assign({},M),{V:{kind:"enum",T:le}})}return Object.assign(Object.assign({},M),{V:{kind:"scalar",T:F.mapValue.scalar}})}function Hu(F){const x=F.longType==p.p.STRING?{L:p.p.STRING}:{},M=Object.assign({kind:"scalar",no:F.number,name:F.name,jsonName:F.jsonName,T:F.scalar},x);return F.repeated?Object.assign(Object.assign({},M),{repeated:!0,packed:F.packed,oneof:void 0,T:F.scalar}):F.oneof?Object.assign(Object.assign({},M),{oneof:F.oneof.name}):F.optional?Object.assign(Object.assign({},M),{opt:!0}):M}function hf(F,x){const M=x.findMessage(F.message.typeName);(0,k.hu)(M,`message "${F.message.typeName}" for ${F.toString()} not found`);const le={kind:"message",no:F.number,name:F.name,jsonName:F.jsonName,T:M,delimited:F.proto.type==ye.GROUP};return F.repeated?Object.assign(Object.assign({},le),{repeated:!0,packed:F.packed,oneof:void 0}):F.oneof?Object.assign(Object.assign({},le),{oneof:F.oneof.name}):F.optional?Object.assign(Object.assign({},le),{opt:!0}):le}function Yl(F,x){const M=x.findEnum(F.enum.typeName);(0,k.hu)(M,`enum "${F.enum.typeName}" for ${F.toString()} not found`);const le={kind:"enum",no:F.number,name:F.name,jsonName:F.jsonName,T:M};return F.repeated?Object.assign(Object.assign({},le),{repeated:!0,packed:F.packed,oneof:void 0}):F.oneof?Object.assign(Object.assign({},le),{oneof:F.oneof.name}):F.optional?Object.assign(Object.assign({},le),{opt:!0}):le}function Zp(F){if(!(F instanceof se.v))return F;const x=F.getType(),M={};for(const le of x.fields.byMember()){const be=F[le.localName];let Pe;if(le.repeated)Pe=be.map(je=>$a(je));else if(le.kind=="map"){Pe={};for(const[je,ct]of Object.entries(be))Pe[je]=$a(ct)}else le.kind=="oneof"?Pe=le.findField(be.case)?{case:be.case,value:$a(be.value)}:{case:void 0}:Pe=$a(be);M[le.localName]=Pe}return M}function $a(F){if(F===void 0)return F;if(F instanceof se.v)return Zp(F);if(F instanceof Uint8Array){const x=new Uint8Array(F.byteLength);return x.set(F),x}return F}class Qo extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new Qo().fromBinary(x,M)}static fromJson(x,M){return new Qo().fromJson(x,M)}static fromJsonString(x,M){return new Qo().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Qo,x,M)}}Qo.runtime=E,Qo.typeName="google.protobuf.compiler.Version",Qo.fields=E.util.newFieldList(()=>[{no:1,name:"major",kind:"scalar",T:5,opt:!0},{no:2,name:"minor",kind:"scalar",T:5,opt:!0},{no:3,name:"patch",kind:"scalar",T:5,opt:!0},{no:4,name:"suffix",kind:"scalar",T:9,opt:!0}]);class Yo extends se.v{constructor(x){super(),this.fileToGenerate=[],this.protoFile=[],this.sourceFileDescriptors=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new Yo().fromBinary(x,M)}static fromJson(x,M){return new Yo().fromJson(x,M)}static fromJsonString(x,M){return new Yo().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Yo,x,M)}}Yo.runtime=E,Yo.typeName="google.protobuf.compiler.CodeGeneratorRequest",Yo.fields=E.util.newFieldList(()=>[{no:1,name:"file_to_generate",kind:"scalar",T:9,repeated:!0},{no:2,name:"parameter",kind:"scalar",T:9,opt:!0},{no:15,name:"proto_file",kind:"message",T:ge,repeated:!0},{no:17,name:"source_file_descriptors",kind:"message",T:ge,repeated:!0},{no:3,name:"compiler_version",kind:"message",T:Qo,opt:!0}]);class fi extends se.v{constructor(x){super(),this.file=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new fi().fromBinary(x,M)}static fromJson(x,M){return new fi().fromJson(x,M)}static fromJsonString(x,M){return new fi().fromJsonString(x,M)}static equals(x,M){return E.util.equals(fi,x,M)}}fi.runtime=E,fi.typeName="google.protobuf.compiler.CodeGeneratorResponse",fi.fields=E.util.newFieldList(()=>[{no:1,name:"error",kind:"scalar",T:9,opt:!0},{no:2,name:"supported_features",kind:"scalar",T:4,opt:!0},{no:15,name:"file",kind:"message",T:xo,repeated:!0}]);var Gl;(function(F){F[F.NONE=0]="NONE",F[F.PROTO3_OPTIONAL=1]="PROTO3_OPTIONAL",F[F.SUPPORTS_EDITIONS=2]="SUPPORTS_EDITIONS"})(Gl||(Gl={})),E.util.setEnumType(Gl,"google.protobuf.compiler.CodeGeneratorResponse.Feature",[{no:0,name:"FEATURE_NONE"},{no:1,name:"FEATURE_PROTO3_OPTIONAL"},{no:2,name:"FEATURE_SUPPORTS_EDITIONS"}]);class xo extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new xo().fromBinary(x,M)}static fromJson(x,M){return new xo().fromJson(x,M)}static fromJsonString(x,M){return new xo().fromJsonString(x,M)}static equals(x,M){return E.util.equals(xo,x,M)}}xo.runtime=E,xo.typeName="google.protobuf.compiler.CodeGeneratorResponse.File",xo.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"insertion_point",kind:"scalar",T:9,opt:!0},{no:15,name:"content",kind:"scalar",T:9,opt:!0},{no:16,name:"generated_code_info",kind:"message",T:$t,opt:!0}]);class ca extends se.v{constructor(x){super(),this.fileName="",c.w.util.initPartial(x,this)}static fromBinary(x,M){return new ca().fromBinary(x,M)}static fromJson(x,M){return new ca().fromJson(x,M)}static fromJsonString(x,M){return new ca().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(ca,x,M)}}ca.runtime=c.w,ca.typeName="google.protobuf.SourceContext",ca.fields=c.w.util.newFieldList(()=>[{no:1,name:"file_name",kind:"scalar",T:9}]);var da;(function(F){F[F.PROTO2=0]="PROTO2",F[F.PROTO3=1]="PROTO3",F[F.EDITIONS=2]="EDITIONS"})(da||(da={})),c.w.util.setEnumType(da,"google.protobuf.Syntax",[{no:0,name:"SYNTAX_PROTO2"},{no:1,name:"SYNTAX_PROTO3"},{no:2,name:"SYNTAX_EDITIONS"}]);class xi extends se.v{constructor(x){super(),this.name="",this.fields=[],this.oneofs=[],this.options=[],this.syntax=da.PROTO2,this.edition="",c.w.util.initPartial(x,this)}static fromBinary(x,M){return new xi().fromBinary(x,M)}static fromJson(x,M){return new xi().fromJson(x,M)}static fromJsonString(x,M){return new xi().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(xi,x,M)}}xi.runtime=c.w,xi.typeName="google.protobuf.Type",xi.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"fields",kind:"message",T:Go,repeated:!0},{no:3,name:"oneofs",kind:"scalar",T:9,repeated:!0},{no:4,name:"options",kind:"message",T:Ci,repeated:!0},{no:5,name:"source_context",kind:"message",T:ca},{no:6,name:"syntax",kind:"enum",T:c.w.getEnumType(da)},{no:7,name:"edition",kind:"scalar",T:9}]);class Go extends se.v{constructor(x){super(),this.kind=Lc.TYPE_UNKNOWN,this.cardinality=Mc.UNKNOWN,this.number=0,this.name="",this.typeUrl="",this.oneofIndex=0,this.packed=!1,this.options=[],this.jsonName="",this.defaultValue="",c.w.util.initPartial(x,this)}static fromBinary(x,M){return new Go().fromBinary(x,M)}static fromJson(x,M){return new Go().fromJson(x,M)}static fromJsonString(x,M){return new Go().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Go,x,M)}}Go.runtime=c.w,Go.typeName="google.protobuf.Field",Go.fields=c.w.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:c.w.getEnumType(Lc)},{no:2,name:"cardinality",kind:"enum",T:c.w.getEnumType(Mc)},{no:3,name:"number",kind:"scalar",T:5},{no:4,name:"name",kind:"scalar",T:9},{no:6,name:"type_url",kind:"scalar",T:9},{no:7,name:"oneof_index",kind:"scalar",T:5},{no:8,name:"packed",kind:"scalar",T:8},{no:9,name:"options",kind:"message",T:Ci,repeated:!0},{no:10,name:"json_name",kind:"scalar",T:9},{no:11,name:"default_value",kind:"scalar",T:9}]);var Lc;(function(F){F[F.TYPE_UNKNOWN=0]="TYPE_UNKNOWN",F[F.TYPE_DOUBLE=1]="TYPE_DOUBLE",F[F.TYPE_FLOAT=2]="TYPE_FLOAT",F[F.TYPE_INT64=3]="TYPE_INT64",F[F.TYPE_UINT64=4]="TYPE_UINT64",F[F.TYPE_INT32=5]="TYPE_INT32",F[F.TYPE_FIXED64=6]="TYPE_FIXED64",F[F.TYPE_FIXED32=7]="TYPE_FIXED32",F[F.TYPE_BOOL=8]="TYPE_BOOL",F[F.TYPE_STRING=9]="TYPE_STRING",F[F.TYPE_GROUP=10]="TYPE_GROUP",F[F.TYPE_MESSAGE=11]="TYPE_MESSAGE",F[F.TYPE_BYTES=12]="TYPE_BYTES",F[F.TYPE_UINT32=13]="TYPE_UINT32",F[F.TYPE_ENUM=14]="TYPE_ENUM",F[F.TYPE_SFIXED32=15]="TYPE_SFIXED32",F[F.TYPE_SFIXED64=16]="TYPE_SFIXED64",F[F.TYPE_SINT32=17]="TYPE_SINT32",F[F.TYPE_SINT64=18]="TYPE_SINT64"})(Lc||(Lc={})),c.w.util.setEnumType(Lc,"google.protobuf.Field.Kind",[{no:0,name:"TYPE_UNKNOWN"},{no:1,name:"TYPE_DOUBLE"},{no:2,name:"TYPE_FLOAT"},{no:3,name:"TYPE_INT64"},{no:4,name:"TYPE_UINT64"},{no:5,name:"TYPE_INT32"},{no:6,name:"TYPE_FIXED64"},{no:7,name:"TYPE_FIXED32"},{no:8,name:"TYPE_BOOL"},{no:9,name:"TYPE_STRING"},{no:10,name:"TYPE_GROUP"},{no:11,name:"TYPE_MESSAGE"},{no:12,name:"TYPE_BYTES"},{no:13,name:"TYPE_UINT32"},{no:14,name:"TYPE_ENUM"},{no:15,name:"TYPE_SFIXED32"},{no:16,name:"TYPE_SFIXED64"},{no:17,name:"TYPE_SINT32"},{no:18,name:"TYPE_SINT64"}]);var Mc;(function(F){F[F.UNKNOWN=0]="UNKNOWN",F[F.OPTIONAL=1]="OPTIONAL",F[F.REQUIRED=2]="REQUIRED",F[F.REPEATED=3]="REPEATED"})(Mc||(Mc={})),c.w.util.setEnumType(Mc,"google.protobuf.Field.Cardinality",[{no:0,name:"CARDINALITY_UNKNOWN"},{no:1,name:"CARDINALITY_OPTIONAL"},{no:2,name:"CARDINALITY_REQUIRED"},{no:3,name:"CARDINALITY_REPEATED"}]);class Yn extends se.v{constructor(x){super(),this.name="",this.enumvalue=[],this.options=[],this.syntax=da.PROTO2,this.edition="",c.w.util.initPartial(x,this)}static fromBinary(x,M){return new Yn().fromBinary(x,M)}static fromJson(x,M){return new Yn().fromJson(x,M)}static fromJsonString(x,M){return new Yn().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Yn,x,M)}}Yn.runtime=c.w,Yn.typeName="google.protobuf.Enum",Yn.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"enumvalue",kind:"message",T:Fa,repeated:!0},{no:3,name:"options",kind:"message",T:Ci,repeated:!0},{no:4,name:"source_context",kind:"message",T:ca},{no:5,name:"syntax",kind:"enum",T:c.w.getEnumType(da)},{no:6,name:"edition",kind:"scalar",T:9}]);class Fa extends se.v{constructor(x){super(),this.name="",this.number=0,this.options=[],c.w.util.initPartial(x,this)}static fromBinary(x,M){return new Fa().fromBinary(x,M)}static fromJson(x,M){return new Fa().fromJson(x,M)}static fromJsonString(x,M){return new Fa().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Fa,x,M)}}Fa.runtime=c.w,Fa.typeName="google.protobuf.EnumValue",Fa.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"number",kind:"scalar",T:5},{no:3,name:"options",kind:"message",T:Ci,repeated:!0}]);class Ci extends se.v{constructor(x){super(),this.name="",c.w.util.initPartial(x,this)}static fromBinary(x,M){return new Ci().fromBinary(x,M)}static fromJson(x,M){return new Ci().fromJson(x,M)}static fromJsonString(x,M){return new Ci().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Ci,x,M)}}Ci.runtime=c.w,Ci.typeName="google.protobuf.Option",Ci.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"value",kind:"message",T:Gp.I}]);class Ba extends se.v{constructor(x){super(),this.name="",this.methods=[],this.options=[],this.version="",this.mixins=[],this.syntax=da.PROTO2,c.w.util.initPartial(x,this)}static fromBinary(x,M){return new Ba().fromBinary(x,M)}static fromJson(x,M){return new Ba().fromJson(x,M)}static fromJsonString(x,M){return new Ba().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Ba,x,M)}}Ba.runtime=c.w,Ba.typeName="google.protobuf.Api",Ba.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"methods",kind:"message",T:fa,repeated:!0},{no:3,name:"options",kind:"message",T:Ci,repeated:!0},{no:4,name:"version",kind:"scalar",T:9},{no:5,name:"source_context",kind:"message",T:ca},{no:6,name:"mixins",kind:"message",T:Ua,repeated:!0},{no:7,name:"syntax",kind:"enum",T:c.w.getEnumType(da)}]);class fa extends se.v{constructor(x){super(),this.name="",this.requestTypeUrl="",this.requestStreaming=!1,this.responseTypeUrl="",this.responseStreaming=!1,this.options=[],this.syntax=da.PROTO2,c.w.util.initPartial(x,this)}static fromBinary(x,M){return new fa().fromBinary(x,M)}static fromJson(x,M){return new fa().fromJson(x,M)}static fromJsonString(x,M){return new fa().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(fa,x,M)}}fa.runtime=c.w,fa.typeName="google.protobuf.Method",fa.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"request_type_url",kind:"scalar",T:9},{no:3,name:"request_streaming",kind:"scalar",T:8},{no:4,name:"response_type_url",kind:"scalar",T:9},{no:5,name:"response_streaming",kind:"scalar",T:8},{no:6,name:"options",kind:"message",T:Ci,repeated:!0},{no:7,name:"syntax",kind:"enum",T:c.w.getEnumType(da)}]);class Ua extends se.v{constructor(x){super(),this.name="",this.root="",c.w.util.initPartial(x,this)}static fromBinary(x,M){return new Ua().fromBinary(x,M)}static fromJson(x,M){return new Ua().fromJson(x,M)}static fromJsonString(x,M){return new Ua().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Ua,x,M)}}Ua.runtime=c.w,Ua.typeName="google.protobuf.Mixin",Ua.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"root",kind:"scalar",T:9}])},561:(s,l,u)=>{u.d(l,{v:()=>c});class c{equals(p){return this.getType().runtime.util.equals(this.getType(),this,p)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(p,h){const m=this.getType(),b=m.runtime.bin,O=b.makeReadOptions(h);return b.readMessage(this,O.readerFactory(p),p.byteLength,O),this}fromJson(p,h){const m=this.getType(),b=m.runtime.json,O=b.makeReadOptions(h);return b.readMessage(m,p,O,this),this}fromJsonString(p,h){let m;try{m=JSON.parse(p)}catch(b){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${b instanceof Error?b.message:String(b)}`)}return this.fromJson(m,h)}toBinary(p){const h=this.getType(),m=h.runtime.bin,b=m.makeWriteOptions(p),O=b.writerFactory();return m.writeMessage(this,O,b),O.finish()}toJson(p){const h=this.getType(),m=h.runtime.json,b=m.makeWriteOptions(p);return m.writeMessage(this,b)}toJsonString(p){var h;const m=this.toJson(p);return JSON.stringify(m,null,(h=p==null?void 0:p.prettySpaces)!==null&&h!==void 0?h:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}}},120:(s,l,u)=>{u.d(l,{E_:()=>v,fp:()=>y,hu:()=>c,ug:()=>O});function c(S,k){if(!S)throw new Error(k)}const d=34028234663852886e22,p=-34028234663852886e22,h=4294967295,m=2147483647,b=-2147483648;function O(S){if(typeof S!="number")throw new Error("invalid int 32: "+typeof S);if(!Number.isInteger(S)||S>m||Sh||S<0)throw new Error("invalid uint 32: "+S)}function v(S){if(typeof S!="number")throw new Error("invalid float 32: "+typeof S);if(Number.isFinite(S)&&(S>d||S{u.d(l,{Jj:()=>V,NN:()=>U,gQ:()=>R,gY:()=>C,oQ:()=>B});var c=u(79),d=u(561),p=u(465),h=u(432),m=u(781),b=u(120);const O=Symbol("@bufbuild/protobuf/unknown-fields"),y={readUnknownFields:!0,readerFactory:z=>new c.oP(z)},v={writeUnknownFields:!0,writerFactory:()=>new c.Lt};function S(z){return z?Object.assign(Object.assign({},y),z):y}function k(z){return z?Object.assign(Object.assign({},v),z):v}function C(){return{makeReadOptions:S,makeWriteOptions:k,listUnknownFields(z){var W;return(W=z[O])!==null&&W!==void 0?W:[]},discardUnknownFields(z){delete z[O]},writeUnknownFields(z,W){const q=z[O];if(q)for(const Y of q)W.tag(Y.no,Y.wireType).raw(Y.data)},onUnknownField(z,W,X,q){const Y=z;Array.isArray(Y[O])||(Y[O]=[]),Y[O].push({no:W,wireType:X,data:q})},readMessage(z,W,X,q,Y){const Z=z.getType(),j=Y?W.len:W.pos+X;let se,ve;for(;W.pos0&&(Ne=$),ge){let Ye=ce[ue];if(ve==c.TD.LengthDelimited&&xe!=p.w.STRING&&xe!=p.w.BYTES){let ye=W.uint32()+W.pos;for(;W.pos{u.d(l,{V3:()=>p,be:()=>m,ut:()=>b,zg:()=>h});var c=u(120);const d=Symbol("@bufbuild/protobuf/enum-type");function p(y){const v=y[d];return(0,c.hu)(v,"missing enum type on enum object"),v}function h(y,v,S,k){y[d]=m(v,S.map(C=>({no:C.no,name:C.name,localName:y[C.no]})))}function m(y,v,S){const k=Object.create(null),C=Object.create(null),w=[];for(const E of v){const $=O(E);w.push($),k[E.name]=$,C[E.no]=$}return{typeName:y,values:w,findName(E){return k[E]},findNumber(E){return C[E]}}}function b(y,v,S){const k={};for(const C of v){const w=O(C);k[w.localName]=w.no,k[w.no]=w.localName}return h(k,y,v),k}function O(y){return"localName"in y?y:Object.assign(Object.assign({},y),{localName:y.name})}},501:(s,l,u)=>{u.d(l,{i:()=>c});class c{constructor(p,h){this._fields=p,this._normalizer=h}findJsonName(p){if(!this.jsonNames){const h={};for(const m of this.list())h[m.jsonName]=h[m.name]=m;this.jsonNames=h}return this.jsonNames[p]}find(p){if(!this.numbers){const h={};for(const m of this.list())h[m.no]=m;this.numbers=h}return this.numbers[p]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((p,h)=>p.no-h.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];const p=this.members;let h;for(const m of this.list())m.oneof?m.oneof!==h&&(h=m.oneof,p.push(h)):p.push(m)}return this.members}}},432:(s,l,u)=>{u.d(l,{E:()=>p,w:()=>h});var c=u(561),d=u(465);function p(b,O){return O instanceof c.v||!b.fieldWrapper?O:b.fieldWrapper.wrapField(O)}function h(b){if(b.fieldKind==="message"&&!b.repeated&&b.oneof==null)return m[b.message.typeName]}const m={"google.protobuf.DoubleValue":d.w.DOUBLE,"google.protobuf.FloatValue":d.w.FLOAT,"google.protobuf.Int64Value":d.w.INT64,"google.protobuf.UInt64Value":d.w.UINT64,"google.protobuf.Int32Value":d.w.INT32,"google.protobuf.UInt32Value":d.w.UINT32,"google.protobuf.BoolValue":d.w.BOOL,"google.protobuf.StringValue":d.w.STRING,"google.protobuf.BytesValue":d.w.BYTES}},215:(s,l,u)=>{u.d(l,{o:()=>p});var c=u(504),d=u(120);class p{constructor(m){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.default=void 0,this.fields=[],this.name=m,this.localName=(0,c.uA)(m)}addField(m){(0,d.hu)(m.oneof===this,`field ${m.name} not one of ${this.name}`),this.fields.push(m)}findField(m){if(!this._lookup){this._lookup=Object.create(null);for(let b=0;b{u.d(l,{b:()=>S});var c=u(561),d=u(465),p=u(120),h=u(210),m=u(236);const b={ignoreUnknownFields:!1},O={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function y(N){return N?Object.assign(Object.assign({},b),N):b}function v(N){return N?Object.assign(Object.assign({},O),N):O}function S(N){const R=N(E,$);return{makeReadOptions:y,makeWriteOptions:v,readMessage(B,U,V,z){if(U==null||Array.isArray(U)||typeof U!="object")throw new Error(`cannot decode message ${B.typeName} from JSON: ${this.debug(U)}`);z=z??new B;const W={};for(const[X,q]of Object.entries(U)){const Y=B.fields.findJsonName(X);if(!Y){if(!V.ignoreUnknownFields)throw new Error(`cannot decode message ${B.typeName} from JSON: key "${X}" is unknown`);continue}let Z=Y.localName,j=z;if(Y.oneof){if(q===null&&Y.kind=="scalar")continue;const se=W[Y.oneof.localName];if(se)throw new Error(`cannot decode message ${B.typeName} from JSON: multiple keys for oneof "${Y.oneof.name}" present: "${se}", "${X}"`);W[Y.oneof.localName]=X,j=j[Y.oneof.localName]={case:Z},Z="value"}if(Y.repeated){if(q===null)continue;if(!Array.isArray(q))throw new Error(`cannot decode field ${B.typeName}.${Y.name} from JSON: ${this.debug(q)}`);const se=j[Z];for(const ve of q){if(ve===null)throw new Error(`cannot decode field ${B.typeName}.${Y.name} from JSON: ${this.debug(ve)}`);let G;switch(Y.kind){case"message":G=Y.T.fromJson(ve,V);break;case"enum":if(G=w(Y.T,ve,V.ignoreUnknownFields),G===void 0)continue;break;case"scalar":try{G=C(Y.T,ve,Y.L)}catch(ce){let ge=`cannot decode field ${B.typeName}.${Y.name} from JSON: ${this.debug(ve)}`;throw ce instanceof Error&&ce.message.length>0&&(ge+=`: ${ce.message}`),new Error(ge)}break}se.push(G)}}else if(Y.kind=="map"){if(q===null)continue;if(Array.isArray(q)||typeof q!="object")throw new Error(`cannot decode field ${B.typeName}.${Y.name} from JSON: ${this.debug(q)}`);const se=j[Z];for(const[ve,G]of Object.entries(q)){if(G===null)throw new Error(`cannot decode field ${B.typeName}.${Y.name} from JSON: map value null`);let ce;switch(Y.V.kind){case"message":ce=Y.V.T.fromJson(G,V);break;case"enum":if(ce=w(Y.V.T,G,V.ignoreUnknownFields),ce===void 0)continue;break;case"scalar":try{ce=C(Y.V.T,G,d.p.BIGINT)}catch(ge){let ue=`cannot decode map value for field ${B.typeName}.${Y.name} from JSON: ${this.debug(q)}`;throw ge instanceof Error&&ge.message.length>0&&(ue+=`: ${ge.message}`),new Error(ue)}break}try{se[C(Y.K,Y.K==d.w.BOOL?ve=="true"?!0:ve=="false"?!1:ve:ve,d.p.BIGINT).toString()]=ce}catch(ge){let ue=`cannot decode map key for field ${B.typeName}.${Y.name} from JSON: ${this.debug(q)}`;throw ge instanceof Error&&ge.message.length>0&&(ue+=`: ${ge.message}`),new Error(ue)}}}else switch(Y.kind){case"message":const se=Y.T;if(q===null&&se.typeName!="google.protobuf.Value"){if(Y.oneof)throw new Error(`cannot decode field ${B.typeName}.${Y.name} from JSON: null is invalid for oneof field "${X}"`);continue}j[Z]instanceof c.v?j[Z].fromJson(q,V):(j[Z]=se.fromJson(q,V),se.fieldWrapper&&!Y.oneof&&(j[Z]=se.fieldWrapper.unwrapField(j[Z])));break;case"enum":const ve=w(Y.T,q,V.ignoreUnknownFields);ve!==void 0&&(j[Z]=ve);break;case"scalar":try{j[Z]=C(Y.T,q,Y.L)}catch(G){let ce=`cannot decode field ${B.typeName}.${Y.name} from JSON: ${this.debug(q)}`;throw G instanceof Error&&G.message.length>0&&(ce+=`: ${G.message}`),new Error(ce)}break}}return z},writeMessage(B,U){const V=B.getType(),z={};let W;try{for(const X of V.fields.byMember()){let q;if(X.kind=="oneof"){const Y=B[X.localName];if(Y.value===void 0)continue;if(W=X.findField(Y.case),!W)throw"oneof case not found: "+Y.case;q=R(W,Y.value,U)}else W=X,q=R(W,B[W.localName],U);q!==void 0&&(z[U.useProtoFieldName?W.name:W.jsonName]=q)}}catch(X){const q=W?`cannot encode field ${V.typeName}.${W.name} to JSON`:`cannot encode message ${V.typeName} to JSON`,Y=X instanceof Error?X.message:String(X);throw new Error(q+(Y.length>0?`: ${Y}`:""))}return z},readScalar:C,writeScalar:$,debug:k}}function k(N){if(N===null)return"null";switch(typeof N){case"object":return Array.isArray(N)?"array":"object";case"string":return N.length>100?"string":`"${N.split('"').join('\\"')}"`;default:return String(N)}}function C(N,R,B){switch(N){case d.w.DOUBLE:case d.w.FLOAT:if(R===null)return 0;if(R==="NaN")return Number.NaN;if(R==="Infinity")return Number.POSITIVE_INFINITY;if(R==="-Infinity")return Number.NEGATIVE_INFINITY;if(R===""||typeof R=="string"&&R.trim().length!==R.length||typeof R!="string"&&typeof R!="number")break;const U=Number(R);if(Number.isNaN(U)||!Number.isFinite(U))break;return N==d.w.FLOAT&&(0,p.E_)(U),U;case d.w.INT32:case d.w.FIXED32:case d.w.SFIXED32:case d.w.SINT32:case d.w.UINT32:if(R===null)return 0;let V;if(typeof R=="number"?V=R:typeof R=="string"&&R.length>0&&R.trim().length===R.length&&(V=Number(R)),V===void 0)break;return N==d.w.UINT32?(0,p.fp)(V):(0,p.ug)(V),V;case d.w.INT64:case d.w.SFIXED64:case d.w.SINT64:if(R===null)return h.q.zero;if(typeof R!="number"&&typeof R!="string")break;const z=h.q.parse(R);return B?z.toString():z;case d.w.FIXED64:case d.w.UINT64:if(R===null)return h.q.zero;if(typeof R!="number"&&typeof R!="string")break;const W=h.q.uParse(R);return B?W.toString():W;case d.w.BOOL:if(R===null)return!1;if(typeof R!="boolean")break;return R;case d.w.STRING:if(R===null)return"";if(typeof R!="string")break;try{encodeURIComponent(R)}catch{throw new Error("invalid UTF8")}return R;case d.w.BYTES:if(R===null||R==="")return new Uint8Array(0);if(typeof R!="string")break;return m.W.dec(R)}throw new Error}function w(N,R,B){if(R===null)return 0;switch(typeof R){case"number":if(Number.isInteger(R))return R;break;case"string":const U=N.findName(R);if(U||B)return U==null?void 0:U.no;break}throw new Error(`cannot decode enum ${N.typeName} from JSON: ${k(R)}`)}function E(N,R,B,U){var V;if(R===void 0)return R;if(R===0&&!B)return;if(U)return R;if(N.typeName=="google.protobuf.NullValue")return null;const z=N.findNumber(R);return(V=z==null?void 0:z.name)!==null&&V!==void 0?V:R}function $(N,R,B){if(R!==void 0)switch(N){case d.w.INT32:case d.w.SFIXED32:case d.w.SINT32:case d.w.FIXED32:case d.w.UINT32:return(0,p.hu)(typeof R=="number"),R!=0||B?R:void 0;case d.w.FLOAT:case d.w.DOUBLE:return(0,p.hu)(typeof R=="number"),Number.isNaN(R)?"NaN":R===Number.POSITIVE_INFINITY?"Infinity":R===Number.NEGATIVE_INFINITY?"-Infinity":R!==0||B?R:void 0;case d.w.STRING:return(0,p.hu)(typeof R=="string"),R.length>0||B?R:void 0;case d.w.BOOL:return(0,p.hu)(typeof R=="boolean"),R||B?R:void 0;case d.w.UINT64:case d.w.FIXED64:case d.w.INT64:case d.w.SFIXED64:case d.w.SINT64:return(0,p.hu)(typeof R=="bigint"||typeof R=="string"||typeof R=="number"),B||R!=0?R.toString(10):void 0;case d.w.BYTES:return(0,p.hu)(R instanceof Uint8Array),B||R.byteLength>0?m.W.enc(R):void 0}}},504:(s,l,u)=>{u.d(l,{GD:()=>E,Rz:()=>d,Sm:()=>m,ll:()=>w,r1:()=>c,uA:()=>p,x1:()=>h});function c($){switch($.kind){case"field":return d($.name,$.oneof!==void 0);case"oneof":return p($.name);case"enum":case"message":case"service":{const N=$.file.proto.package,R=N===void 0?0:N.length+1,B=$.typeName.substring(R).replace(/\./g,"_");return w(E(B))}case"enum_value":{const N=$.parent.sharedPrefix;if(N===void 0)return $.name;const R=$.name.substring(N.length);return w(R)}case"rpc":{let N=$.name;return N.length==0?N:(N=N[0].toLowerCase()+N.substring(1),w(N))}}}function d($,N){const R=O($);return N?R:w(C(R))}function p($){return d($,!1)}const h=O;function m($,N){const R=b($)+"_";for(const B of N){if(!B.toLowerCase().startsWith(R))return;const U=B.substring(R.length);if(U.length==0||/^\d/.test(U))return}return R}function b($){return($.substring(0,1)+$.substring(1).replace(/[A-Z]/g,N=>"_"+N)).toLowerCase()}function O($){let N=!1;const R=[];for(let B=0;B<$.length;B++){let U=$.charAt(B);switch(U){case"_":N=!0;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":R.push(U),N=!1;break;default:N&&(N=!1,U=U.toUpperCase()),R.push(U);break}}return R.join("")}const y=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with","yield","enum","implements","interface","let","package","private","protected","public","static","Object","bigint","number","boolean","string","object","globalThis","Uint8Array","Partial"]),v=new Set(["constructor","toString","toJSON","valueOf"]),S=new Set(["getType","clone","equals","fromBinary","fromJson","fromJsonString","toBinary","toJson","toJsonString","toObject"]),k=$=>`${$}$`,C=$=>S.has($)?k($):$,w=$=>v.has($)?k($):$,E=$=>y.has($)?k($):$},493:(s,l,u)=>{u.d(l,{F:()=>h});var c=u(609),d=u(561);function p(m,b,O,y){var v;const S=(v=y==null?void 0:y.localName)!==null&&v!==void 0?v:b.substring(b.lastIndexOf(".")+1),k={[S]:function(C){m.util.initFields(this),m.util.initPartial(C,this)}}[S];return Object.setPrototypeOf(k.prototype,new d.v),Object.assign(k,{runtime:m,typeName:b,fields:m.util.newFieldList(O),fromBinary(C,w){return new k().fromBinary(C,w)},fromJson(C,w){return new k().fromJson(C,w)},fromJsonString(C,w){return new k().fromJsonString(C,w)},equals(C,w){return m.util.equals(k,C,w)}}),k}function h(m,b,O,y){return{syntax:m,json:b,bin:O,util:y,makeMessageType(v,S,k){return p(this,v,S,k)},makeEnum:c.ut,makeEnumType:c.be,getEnumType:c.V3}}},781:(s,l,u)=>{u.d(l,{AA:()=>h,T1:()=>b,kY:()=>m});var c=u(465),d=u(79),p=u(210);function h(O,y,v){if(y===v)return!0;if(O==c.w.BYTES){if(!(y instanceof Uint8Array)||!(v instanceof Uint8Array)||y.length!==v.length)return!1;for(let S=0;S{u.d(l,{f:()=>m});var c=u(609),d=u(561),p=u(465),h=u(781);function m(){return{setEnumType:c.zg,initPartial(y,v){if(y===void 0)return;const S=v.getType();for(const k of S.fields.byMember()){const C=k.localName,w=v,E=y;if(E[C]!==void 0)switch(k.kind){case"oneof":const $=E[C].case;if($===void 0)continue;const N=k.findField($);let R=E[C].value;N&&N.kind=="message"&&!(R instanceof N.T)?R=new N.T(R):N&&N.kind==="scalar"&&N.T===p.w.BYTES&&(R=O(R)),w[C]={case:$,value:R};break;case"scalar":case"enum":let B=E[C];k.T===p.w.BYTES&&(B=k.repeated?B.map(O):O(B)),w[C]=B;break;case"map":switch(k.V.kind){case"scalar":case"enum":if(k.V.T===p.w.BYTES)for(const[z,W]of Object.entries(E[C]))w[C][z]=O(W);else Object.assign(w[C],E[C]);break;case"message":const V=k.V.T;for(const z of Object.keys(E[C])){let W=E[C][z];V.fieldWrapper||(W=new V(W)),w[C][z]=W}break}break;case"message":const U=k.T;if(k.repeated)w[C]=E[C].map(V=>V instanceof U?V:new U(V));else if(E[C]!==void 0){const V=E[C];U.fieldWrapper?U.typeName==="google.protobuf.BytesValue"?w[C]=O(V):w[C]=V:w[C]=V instanceof U?V:new U(V)}break}}},equals(y,v,S){return v===S?!0:!v||!S?!1:y.fields.byMember().every(k=>{const C=v[k.localName],w=S[k.localName];if(k.repeated){if(C.length!==w.length)return!1;switch(k.kind){case"message":return C.every((E,$)=>k.T.equals(E,w[$]));case"scalar":return C.every((E,$)=>(0,h.AA)(k.T,E,w[$]));case"enum":return C.every((E,$)=>(0,h.AA)(p.w.INT32,E,w[$]))}throw new Error(`repeated cannot contain ${k.kind}`)}switch(k.kind){case"message":return k.T.equals(C,w);case"enum":return(0,h.AA)(p.w.INT32,C,w);case"scalar":return(0,h.AA)(k.T,C,w);case"oneof":if(C.case!==w.case)return!1;const E=k.findField(C.case);if(E===void 0)return!0;switch(E.kind){case"message":return E.T.equals(C.value,w.value);case"enum":return(0,h.AA)(p.w.INT32,C.value,w.value);case"scalar":return(0,h.AA)(E.T,C.value,w.value)}throw new Error(`oneof cannot contain ${E.kind}`);case"map":const $=Object.keys(C).concat(Object.keys(w));switch(k.V.kind){case"message":const N=k.V.T;return $.every(B=>N.equals(C[B],w[B]));case"enum":return $.every(B=>(0,h.AA)(p.w.INT32,C[B],w[B]));case"scalar":const R=k.V.T;return $.every(B=>(0,h.AA)(R,C[B],w[B]))}break}})},clone(y){const v=y.getType(),S=new v,k=S;for(const C of v.fields.byMember()){const w=y[C.localName];let E;if(C.repeated)E=w.map(b);else if(C.kind=="map"){E=k[C.localName];for(const[$,N]of Object.entries(w))E[$]=b(N)}else C.kind=="oneof"?E=C.findField(w.case)?{case:w.case,value:b(w.value)}:{case:void 0}:E=b(w);k[C.localName]=E}return S}}}function b(y){if(y===void 0)return y;if(y instanceof d.v)return y.clone();if(y instanceof Uint8Array){const v=new Uint8Array(y.byteLength);return v.set(y),v}return y}function O(y){return y instanceof Uint8Array?y:new Uint8Array(y)}},236:(s,l,u)=>{u.d(l,{W:()=>p});let c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),d=[];for(let h=0;h>4,S=v,y=2;break;case 2:b[O++]=(S&15)<<4|(v&60)>>2,S=v,y=3;break;case 3:b[O++]=(S&3)<<6|v,y=0;break}}if(y==1)throw Error("invalid base64 string.");return b.subarray(0,O)},enc(h){let m="",b=0,O,y=0;for(let v=0;v>2],y=(O&3)<<4,b=1;break;case 1:m+=c[y|O>>4],y=(O&15)<<2,b=2;break;case 2:m+=c[y|O>>6],m+=c[O&63],b=0;break}return b&&(m+=c[y],m+="=",b==1&&(m+="=")),m}}},210:(s,l,u)=>{u.d(l,{q:()=>h});var c=u(120),d=u(818);function p(){const m=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof m.getBigInt64=="function"&&typeof m.getBigUint64=="function"&&typeof m.setBigInt64=="function"&&typeof m.setBigUint64=="function"&&(typeof process!="object"||typeof n!="object"||n.BUF_BIGINT_DISABLE!=="1")){const v=BigInt("-9223372036854775808"),S=BigInt("9223372036854775807"),k=BigInt("0"),C=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(w){const E=typeof w=="bigint"?w:BigInt(w);if(E>S||EC||E(0,c.hu)(/^-?[0-9]+$/.test(v),`int64 invalid: ${v}`),y=v=>(0,c.hu)(/^[0-9]+$/.test(v),`uint64 invalid: ${v}`);return{zero:"0",supported:!1,parse(v){return typeof v!="string"&&(v=v.toString()),O(v),v},uParse(v){return typeof v!="string"&&(v=v.toString()),y(v),v},enc(v){return typeof v!="string"&&(v=v.toString()),O(v),(0,d.CZ)(v)},uEnc(v){return typeof v!="string"&&(v=v.toString()),y(v),(0,d.CZ)(v)},dec(v,S){return(0,d.Ak)(v,S)},uDec(v,S){return(0,d.Fd)(v,S)}}}const h=p()},850:(s,l,u)=>{u.d(l,{w:()=>E});var c=u(493),d=u(465),p=u(744);function h(){return Object.assign(Object.assign({},(0,p.gY)()),{writeMessage(N,R,B){const U=N.getType();for(const V of U.fields.byNumber()){let z,W=V.repeated,X=V.localName;if(V.oneof){const q=N[V.oneof.localName];if(q.case!==X)continue;z=q.value}else z=N[X];switch(V.kind){case"scalar":case"enum":let q=V.kind=="enum"?d.w.INT32:V.T;if(W)if(V.packed)(0,p.Jj)(R,q,V.no,z);else for(const Y of z)(0,p.NN)(R,q,V.no,Y,!0);else z!==void 0&&(0,p.NN)(R,q,V.no,z,!!V.oneof||V.opt);break;case"message":if(W)for(const Y of z)(0,p.oQ)(R,B,V,Y);else(0,p.oQ)(R,B,V,z);break;case"map":for(const[Y,Z]of Object.entries(z))(0,p.gQ)(R,B,V,Y,Z);break}}return B.writeUnknownFields&&this.writeUnknownFields(N,R),R}})}var m=u(432),b=u(120),O=u(814);function y(){return(0,O.b)((N,R)=>function(U,V,z){if(U.kind=="map"){const W={};switch(U.V.kind){case"scalar":for(const[q,Y]of Object.entries(V)){const Z=R(U.V.T,Y,!0);(0,b.hu)(Z!==void 0),W[q.toString()]=Z}break;case"message":for(const[q,Y]of Object.entries(V))W[q.toString()]=Y.toJson(z);break;case"enum":const X=U.V.T;for(const[q,Y]of Object.entries(V)){(0,b.hu)(Y===void 0||typeof Y=="number");const Z=N(X,Y,!0,z.enumAsInteger);(0,b.hu)(Z!==void 0),W[q.toString()]=Z}break}return z.emitDefaultValues||Object.keys(W).length>0?W:void 0}else if(U.repeated){const W=[];switch(U.kind){case"scalar":for(let X=0;X0?W:void 0}else switch(U.kind){case"scalar":return R(U.T,V,!!U.oneof||U.opt||z.emitDefaultValues);case"enum":return N(U.T,V,!!U.oneof||U.opt||z.emitDefaultValues,z.enumAsInteger);case"message":return V!==void 0?(0,m.E)(U.T,V).toJson(z):void 0}})}var v=u(433),S=u(501),k=u(781),C=u(215),w=u(504);const E=(0,c.F)("proto3",y(),h(),Object.assign(Object.assign({},(0,v.f)()),{newFieldList(N){return new S.i(N,$)},initFields(N){for(const R of N.getType().fields.byMember()){if(R.opt)continue;const B=R.localName,U=N;if(R.repeated){U[B]=[];continue}switch(R.kind){case"oneof":U[B]={case:void 0};break;case"enum":U[B]=0;break;case"map":U[B]={};break;case"scalar":U[B]=(0,k.kY)(R.T,R.L);break}}}}));function $(N){var R,B,U,V;const z=[];let W;for(const X of typeof N=="function"?N():N){const q=X;if(q.localName=(0,w.Rz)(X.name,X.oneof!==void 0),q.jsonName=(R=X.jsonName)!==null&&R!==void 0?R:(0,w.x1)(X.name),q.repeated=(B=X.repeated)!==null&&B!==void 0?B:!1,X.kind=="scalar"&&(q.L=(U=X.L)!==null&&U!==void 0?U:d.p.BIGINT),X.oneof!==void 0){const Y=typeof X.oneof=="string"?X.oneof:X.oneof.name;(!W||W.name!=Y)&&(W=new C.o(Y)),q.oneof=W,W.addField(q)}X.kind=="message"&&(q.delimited=!1),q.packed=(V=X.packed)!==null&&V!==void 0?V:X.kind=="enum"||X.kind=="scalar"&&X.T!=d.w.BYTES&&X.T!=d.w.STRING,z.push(q)}return z}},328:(s,l,u)=>{u.d(l,{t:()=>c,w:()=>d});var c;(function(p){p[p.Unary=0]="Unary",p[p.ServerStreaming=1]="ServerStreaming",p[p.ClientStreaming=2]="ClientStreaming",p[p.BiDiStreaming=3]="BiDiStreaming"})(c||(c={}));var d;(function(p){p[p.NoSideEffects=1]="NoSideEffects",p[p.Idempotent=2]="Idempotent"})(d||(d={}))}},i={};function o(s){var l=i[s];if(l!==void 0)return l.exports;var u=i[s]={exports:{}};return r[s](u,u.exports,o),u.exports}o.d=(s,l)=>{for(var u in l)o.o(l,u)&&!o.o(s,u)&&Object.defineProperty(s,u,{enumerable:!0,get:l[u]})},o.o=(s,l)=>Object.prototype.hasOwnProperty.call(s,l),o.r=s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var a={};return(()=>{o.r(a),o.d(a,{Change:()=>mf,Client:()=>i6,ClientEventType:()=>Va,ClientStatus:()=>Bc,Counter:()=>qO,DocEventType:()=>Ln,Document:()=>n6,DocumentSyncResultType:()=>nh,EventSourceDevPanel:()=>xoe,EventSourceSDK:()=>Coe,Primitive:()=>_r,StreamConnectionStatus:()=>bf,SyncMode:()=>Wu,Text:()=>GO,TimeTicket:()=>vr,Tree:()=>ZO,converter:()=>Zl,default:()=>Roe});var s;(function(A){A[A.Trivial=0]="Trivial",A[A.Debug=1]="Debug",A[A.Info=2]="Info",A[A.Warn=3]="Warn",A[A.Error=4]="Error",A[A.Fatal=5]="Fatal"})(s||(s={}));let l=s.Info;const u={trivial:(...A)=>{l>s.Trivial||typeof console<"u"&&console.log("YORKIE T:",...A)},debug:(...A)=>{l>s.Debug||typeof console<"u"&&console.log("YORKIE D:",...A)},info:(...A)=>{l>s.Info||typeof console<"u"&&console.log("YORKIE I:",...A)},warn:(...A)=>{l>s.Warn||typeof console<"u"&&(typeof console.warn<"u"?console.warn("YORKIE W:",...A):console.log("YORKIE W:",...A))},error:(...A)=>{l>s.Error||typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE E:",...A):console.log("YORKIE E:",...A))},fatal:(A,...f)=>{throw typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE F:",...f):console.log("YORKIE F:",...f)),new Error(`YORKIE F: ${A}`)},isEnabled:A=>l<=A};function c(){return"xxxxxxxx-xxxx-4xxxy-xxxx-xxxxxxxxxxx".replace(/[xy]/g,A=>{const f=Math.random()*16|0;return(A==="x"?f:f&3|8).toString(16)})}const d=()=>{};class p{constructor(f){this.finalized=!1,this.observers=[];try{f(this)}catch(g){this.error(g)}}next(f){this.forEachObserver(g=>{g.next(f)})}error(f){this.forEachObserver(g=>{g.error(f)}),this.close(f)}complete(){this.forEachObserver(f=>{f.complete()}),this.close()}subscribe(f,g,T){let _;f||u.fatal("missing observer"),this.finalized&&u.fatal("observable is finalized due to previous error"),typeof f=="object"?_=f:_={next:f,error:g,complete:T},_.next===void 0&&(_.next=d),_.error===void 0&&(_.error=d),_.complete===void 0&&(_.complete=d);const H=c(),K=this.unsubscribeOne.bind(this,H);if(this.observers.push({subscriptionID:H,observer:_}),this.finalized)try{this.finalError?_.error(this.finalError):_.complete()}catch(oe){u.warn(oe)}return K}unsubscribeOne(f){var g;this.observers=(g=this.observers)===null||g===void 0?void 0:g.filter(T=>T.subscriptionID!==f)}forEachObserver(f){if(!this.finalized)for(let g=0;gf}}var m=o(328);function b(A,f){const g={};for(const[T,_]of Object.entries(A.methods)){const H=f(Object.assign(Object.assign({},_),{localName:T,service:A}));H!=null&&(g[T]=H)}return g}var O;(function(A){A[A.Canceled=1]="Canceled",A[A.Unknown=2]="Unknown",A[A.InvalidArgument=3]="InvalidArgument",A[A.DeadlineExceeded=4]="DeadlineExceeded",A[A.NotFound=5]="NotFound",A[A.AlreadyExists=6]="AlreadyExists",A[A.PermissionDenied=7]="PermissionDenied",A[A.ResourceExhausted=8]="ResourceExhausted",A[A.FailedPrecondition=9]="FailedPrecondition",A[A.Aborted=10]="Aborted",A[A.OutOfRange=11]="OutOfRange",A[A.Unimplemented=12]="Unimplemented",A[A.Internal=13]="Internal",A[A.Unavailable=14]="Unavailable",A[A.DataLoss=15]="DataLoss",A[A.Unauthenticated=16]="Unauthenticated"})(O||(O={}));var y=o(561);function v(A){const f=O[A];return typeof f!="string"?A.toString():f[0].toLowerCase()+f.substring(1).replace(/[A-Z]/g,g=>"_"+g.toLowerCase())}class S extends Error{constructor(f,g=O.Unknown,T,_,H){super(k(f,g)),this.name="ConnectError",Object.setPrototypeOf(this,new.target.prototype),this.rawMessage=f,this.code=g,this.metadata=new Headers(T??{}),this.details=_??[],this.cause=H}static from(f,g=O.Unknown){return f instanceof S?f:f instanceof Error?f.name=="AbortError"?new S(f.message,O.Canceled):new S(f.message,g,void 0,void 0,f):new S(String(f),g,void 0,void 0,f)}findDetails(f){const g="typeName"in f?{findMessage:_=>_===f.typeName?f:void 0}:f,T=[];for(const _ of this.details){if(_ instanceof y.v){g.findMessage(_.getType().typeName)&&T.push(_);continue}const H=g.findMessage(_.type);if(H)try{T.push(H.fromBinary(_.value))}catch{}}return T}}function k(A,f){return A.length?`[${v(f)}] ${A}`:`[${v(f)}]`}var C=function(A){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var f=A[Symbol.asyncIterator],g;return f?f.call(A):(A=typeof __values=="function"?__values(A):A[Symbol.iterator](),g={},T("next"),T("throw"),T("return"),g[Symbol.asyncIterator]=function(){return this},g);function T(H){g[H]=A[H]&&function(K){return new Promise(function(oe,Ae){K=A[H](K),_(oe,Ae,K.done,K.value)})}}function _(H,K,oe,Ae){Promise.resolve(Ae).then(function(He){H({value:He,done:oe})},K)}},w=function(A){return this instanceof w?(this.v=A,this):new w(A)},E=function(A,f,g){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var T=g.apply(A,f||[]),_,H=[];return _={},K("next"),K("throw"),K("return"),_[Symbol.asyncIterator]=function(){return this},_;function K(ft){T[ft]&&(_[ft]=function(sn){return new Promise(function(In,Nn){H.push([ft,sn,In,Nn])>1||oe(ft,sn)})})}function oe(ft,sn){try{Ae(T[ft](sn))}catch(In){Ft(H[0][3],In)}}function Ae(ft){ft.value instanceof w?Promise.resolve(ft.value.v).then(He,yt):Ft(H[0][2],ft)}function He(ft){oe("next",ft)}function yt(ft){oe("throw",ft)}function Ft(ft,sn){ft(sn),H.shift(),H.length&&oe(H[0][0],H[0][1])}},$=function(A){var f,g;return f={},T("next"),T("throw",function(_){throw _}),T("return"),f[Symbol.iterator]=function(){return this},f;function T(_,H){f[_]=A[_]?function(K){return(g=!g)?{value:w(A[_](K)),done:!1}:H?H(K):K}:H}};function N(A){return E(this,arguments,function*(){yield w(yield*$(C(A)))})}var R=function(A){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var f=A[Symbol.asyncIterator],g;return f?f.call(A):(A=typeof __values=="function"?__values(A):A[Symbol.iterator](),g={},T("next"),T("throw"),T("return"),g[Symbol.asyncIterator]=function(){return this},g);function T(H){g[H]=A[H]&&function(K){return new Promise(function(oe,Ae){K=A[H](K),_(oe,Ae,K.done,K.value)})}}function _(H,K,oe,Ae){Promise.resolve(Ae).then(function(He){H({value:He,done:oe})},K)}},B=function(A){return this instanceof B?(this.v=A,this):new B(A)},U=function(A){var f,g;return f={},T("next"),T("throw",function(_){throw _}),T("return"),f[Symbol.iterator]=function(){return this},f;function T(_,H){f[_]=A[_]?function(K){return(g=!g)?{value:B(A[_](K)),done:!1}:H?H(K):K}:H}},V=function(A,f,g){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var T=g.apply(A,f||[]),_,H=[];return _={},K("next"),K("throw"),K("return"),_[Symbol.asyncIterator]=function(){return this},_;function K(ft){T[ft]&&(_[ft]=function(sn){return new Promise(function(In,Nn){H.push([ft,sn,In,Nn])>1||oe(ft,sn)})})}function oe(ft,sn){try{Ae(T[ft](sn))}catch(In){Ft(H[0][3],In)}}function Ae(ft){ft.value instanceof B?Promise.resolve(ft.value.v).then(He,yt):Ft(H[0][2],ft)}function He(ft){oe("next",ft)}function yt(ft){oe("throw",ft)}function Ft(ft,sn){ft(sn),H.shift(),H.length&&oe(H[0][0],H[0][1])}};function z(A,f){return b(A,g=>{switch(g.kind){case m.t.Unary:return W(f,A,g);case m.t.ServerStreaming:return X(f,A,g);case m.t.ClientStreaming:return q(f,A,g);case m.t.BiDiStreaming:return Y(f,A,g);default:return null}})}function W(A,f,g){return async function(T,_){var H,K;const oe=await A.unary(f,g,_==null?void 0:_.signal,_==null?void 0:_.timeoutMs,_==null?void 0:_.headers,T,_==null?void 0:_.contextValues);return(H=_==null?void 0:_.onHeader)===null||H===void 0||H.call(_,oe.header),(K=_==null?void 0:_.onTrailer)===null||K===void 0||K.call(_,oe.trailer),oe.message}}function X(A,f,g){return function(T,_){return Z(A.stream(f,g,_==null?void 0:_.signal,_==null?void 0:_.timeoutMs,_==null?void 0:_.headers,N([T]),_==null?void 0:_.contextValues),_)}}function q(A,f,g){return async function(T,_){var H,K,oe,Ae,He,yt;const Ft=await A.stream(f,g,_==null?void 0:_.signal,_==null?void 0:_.timeoutMs,_==null?void 0:_.headers,T,_==null?void 0:_.contextValues);(He=_==null?void 0:_.onHeader)===null||He===void 0||He.call(_,Ft.header);let ft;try{for(var sn=!0,In=R(Ft.message),Nn;Nn=await In.next(),H=Nn.done,!H;sn=!0)Ae=Nn.value,sn=!1,ft=Ae}catch(sr){K={error:sr}}finally{try{!sn&&!H&&(oe=In.return)&&await oe.call(In)}finally{if(K)throw K.error}}if(!ft)throw new S("protocol error: missing response message",O.Internal);return(yt=_==null?void 0:_.onTrailer)===null||yt===void 0||yt.call(_,Ft.trailer),ft}}function Y(A,f,g){return function(T,_){return Z(A.stream(f,g,_==null?void 0:_.signal,_==null?void 0:_.timeoutMs,_==null?void 0:_.headers,T,_==null?void 0:_.contextValues),_)}}function Z(A,f){const g=function(){var T,_;return V(this,arguments,function*(){const H=yield B(A);(T=f==null?void 0:f.onHeader)===null||T===void 0||T.call(f,H.header),yield B(yield*U(R(H.message))),(_=f==null?void 0:f.onTrailer)===null||_===void 0||_.call(f,H.trailer)})}()[Symbol.asyncIterator]();return{[Symbol.asyncIterator]:()=>({next:()=>g.next()})}}function j(){return{get(A){return A.id in this?this[A.id]:A.defaultValue},set(A,f){return this[A.id]=f,this},delete(A){return delete this[A.id],this}}}function se(A){var f;const g=Object.assign({},A);return(f=g.ignoreUnknownFields)!==null&&f!==void 0||(g.ignoreUnknownFields=!0),g}function ve(A,f,g,T){const _=f?G(A.I,T):ce(A.I,g);return{parse:(f?G(A.O,T):ce(A.O,g)).parse,serialize:_.serialize}}function G(A,f){return{parse(g){try{return A.fromBinary(g,f)}catch(T){const _=T instanceof Error?T.message:String(T);throw new S(`parse binary: ${_}`,O.InvalidArgument)}},serialize(g){try{return g.toBinary(f)}catch(T){const _=T instanceof Error?T.message:String(T);throw new S(`serialize binary: ${_}`,O.Internal)}}}}function ce(A,f){var g,T;const _=(g=f==null?void 0:f.textEncoder)!==null&&g!==void 0?g:new TextEncoder,H=(T=f==null?void 0:f.textDecoder)!==null&&T!==void 0?T:new TextDecoder,K=se(f);return{parse(oe){try{const Ae=H.decode(oe);return A.fromJsonString(Ae,K)}catch(Ae){throw S.from(Ae,O.InvalidArgument)}},serialize(oe){try{const Ae=oe.toJsonString(K);return _.encode(Ae)}catch(Ae){throw S.from(Ae,O.Internal)}}}}function ge(...A){const f=new AbortController,g=A.filter(_=>_!==void 0).concat(f.signal);for(const _ of g){if(_.aborted){T.apply(_);break}_.addEventListener("abort",T)}function T(){f.signal.aborted||f.abort(xe(this));for(const _ of g)_.removeEventListener("abort",T)}return f}function ue(A){const f=new AbortController,g=()=>{f.abort(new S("the operation timed out",O.DeadlineExceeded))};let T;return A!==void 0&&(A<=0?g():T=setTimeout(g,A)),{signal:f.signal,cleanup:()=>clearTimeout(T)}}function xe(A){if(!A.aborted)return;if(A.reason!==void 0)return A.reason;const f=new Error("This operation was aborted");return f.name="AbortError",f}function Ne(A,f){return f instanceof y.v?f:new A(f)}function Ve(A,f){function g(T){return T.done===!0?T:{done:T.done,value:Ne(A,T.value)}}return{[Symbol.asyncIterator](){const T=f[Symbol.asyncIterator](),_={next:()=>T.next().then(g)};return T.throw!==void 0&&(_.throw=H=>T.throw(H).then(g)),T.return!==void 0&&(_.return=H=>T.return(H).then(g)),_}}}function Ke(A){const f=ye(A.next,A.interceptors),[g,T,_]=Ye(A),H=Object.assign(Object.assign({},A.req),{message:Ne(A.req.method.I,A.req.message),signal:g});return f(H).then(K=>(_(),K),T)}function Me(A){const f=ye(A.next,A.interceptors),[g,T,_]=Ye(A),H=Object.assign(Object.assign({},A.req),{message:Ve(A.req.method.I,A.req.message),signal:g});let K=!1;return g.addEventListener("abort",function(){var oe,Ae;const He=A.req.message[Symbol.asyncIterator]();K||(oe=He.throw)===null||oe===void 0||oe.call(He,this.reason).catch(()=>{}),(Ae=He.return)===null||Ae===void 0||Ae.call(He).catch(()=>{})}),f(H).then(oe=>Object.assign(Object.assign({},oe),{message:{[Symbol.asyncIterator](){const Ae=oe.message[Symbol.asyncIterator]();return{next(){return Ae.next().then(He=>(He.done==!0&&(K=!0,_()),He),T)}}}}}),T)}function Ye(A){const{signal:f,cleanup:g}=ue(A.timeoutMs),T=ge(A.signal,f);return[T.signal,function(H){const K=S.from(f.aborted?xe(f):H);return T.abort(K),g(),Promise.reject(K)},function(){g(),T.abort()}]}function ye(A,f){var g;return(g=f==null?void 0:f.concat().reverse().reduce((T,_)=>_(T),A))!==null&&g!==void 0?g:A}function ze(A,f,g){const T=typeof f=="string"?f:f.typeName,_=typeof g=="string"?g:g.name;return A.toString().replace(/\/?$/,`/${T}/${_}`)}function $e(A){let f,g=new Uint8Array(0);function T(_){const H=new Uint8Array(g.length+_.length);H.set(g),H.set(_,g.length),g=H}return new ReadableStream({start(){f=A.getReader()},async pull(_){let H;for(;;){if(H===void 0&&g.byteLength>=5){let Ae=0;for(let He=1;He<5;He++)Ae=(Ae<<8)+g[He];H={flags:g[0],length:Ae}}if(H!==void 0&&g.byteLength>=H.length+5)break;const oe=await f.read();if(oe.done)break;T(oe.value)}if(H===void 0){if(g.byteLength==0){_.close();return}_.error(new S("premature end of stream",O.DataLoss));return}const K=g.subarray(5,5+H.length);g=g.subarray(5+H.length),_.enqueue({flags:H.flags,data:K})}})}function We(A,f){const g=new Uint8Array(f.length+5);g.set(f,5);const T=new DataView(g.buffer,g.byteOffset,g.byteLength);return T.setUint8(0,A),T.setUint32(1,f.length),g}const dt="Content-Type",Be="Grpc-Timeout",re="Grpc-Status",ee="Grpc-Message",J="Grpc-Status-Details-Bin",Re="User-Agent",Le="X-User-Agent",De="X-Grpc-Web",ie="application/grpc-web+proto",fe="application/grpc-web+json";function de(A,f,g,T){const _=new Headers(g??{});return _.set(dt,A?ie:fe),_.set(De,"1"),_.set(Le,"connect-es/1.2.0"),T&&_.set(Re,"connect-es/1.2.0"),f!==void 0&&_.set(Be,`${f}m`),_}function Oe(A){switch(A){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}}var Te=o(850),rt=o(733);class pt extends y.v{constructor(f){super(),this.code=0,this.message="",this.details=[],Te.w.util.initPartial(f,this)}static fromBinary(f,g){return new pt().fromBinary(f,g)}static fromJson(f,g){return new pt().fromJson(f,g)}static fromJsonString(f,g){return new pt().fromJsonString(f,g)}static equals(f,g){return Te.w.util.equals(pt,f,g)}}pt.runtime=Te.w,pt.typeName="google.rpc.Status",pt.fields=Te.w.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:rt.I,repeated:!0}]);var xt=o(236);function et(A,f,g){try{const T=xt.W.dec(A);return f?f.fromBinary(T,g):T}catch(T){throw S.from(T,O.DataLoss)}}const vt="0";function qe(A){var f;const g=A.get(J);if(g!=null){const _=et(g,pt);if(_.code==0)return;const H=new S(_.message,_.code,A);return H.details=_.details.map(K=>({type:K.typeUrl.substring(K.typeUrl.lastIndexOf("/")+1),value:K.value})),H}const T=A.get(re);if(T!=null){if(T===vt)return;const _=parseInt(T,10);return _ in O?new S(decodeURIComponent((f=A.get(ee))!==null&&f!==void 0?f:""),_,A):new S(`invalid grpc-status: ${T}`,O.Internal,A)}}function it(A,f){var g;if(A>=200&&A<300){const T=qe(f);if(T)throw T;return{foundStatus:f.has(re)}}throw new S(decodeURIComponent((g=f.get(ee))!==null&&g!==void 0?g:`HTTP ${A}`),Oe(A),f)}const Et=128;function Nt(A){const f=new Headers,g=new TextDecoder().decode(A).split(`\r -`);for(const T of g){if(T==="")continue;const _=T.indexOf(":");if(_>0){const H=T.substring(0,_).trim(),K=T.substring(_+1).trim();f.append(H,K)}}return f}function on(A,f){const g=qe(A);if(g)throw f.forEach((T,_)=>{g.metadata.append(_,T)}),g}function dn(){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.")}}var pn=function(A){return this instanceof pn?(this.v=A,this):new pn(A)},zn=function(A,f,g){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var T=g.apply(A,f||[]),_,H=[];return _={},K("next"),K("throw"),K("return"),_[Symbol.asyncIterator]=function(){return this},_;function K(ft){T[ft]&&(_[ft]=function(sn){return new Promise(function(In,Nn){H.push([ft,sn,In,Nn])>1||oe(ft,sn)})})}function oe(ft,sn){try{Ae(T[ft](sn))}catch(In){Ft(H[0][3],In)}}function Ae(ft){ft.value instanceof pn?Promise.resolve(ft.value.v).then(He,yt):Ft(H[0][2],ft)}function He(ft){oe("next",ft)}function yt(ft){oe("throw",ft)}function Ft(ft,sn){ft(sn),H.shift(),H.length&&oe(H[0][0],H[0][1])}};function Ee(A){var f;dn();const g=(f=A.useBinaryFormat)!==null&&f!==void 0?f:!0;return{async unary(T,_,H,K,oe,Ae,He){var yt;const{serialize:Ft,parse:ft}=ve(_,g,A.jsonOptions,A.binaryOptions);return K=K===void 0?A.defaultTimeoutMs:K<=0?void 0:K,await Ke({interceptors:A.interceptors,signal:H,timeoutMs:K,req:{stream:!1,service:T,method:_,url:ze(A.baseUrl,T,_),init:{method:"POST",credentials:(yt=A.credentials)!==null&&yt!==void 0?yt:"same-origin",redirect:"error",mode:"cors"},header:de(g,K,oe,!1),contextValues:He??j(),message:Ae},next:async sn=>{var In;const sr=await((In=A.fetch)!==null&&In!==void 0?In:globalThis.fetch)(sn.url,Object.assign(Object.assign({},sn.init),{headers:sn.header,signal:sn.signal,body:We(0,Ft(sn.message))}));if(it(sr.status,sr.headers),!sr.body)throw"missing response body";const oo=$e(sr.body).getReader();let $n,ti;for(;;){const Gr=await oo.read();if(Gr.done)break;const{flags:vi,data:yf}=Gr.value;if(vi===Et){if($n!==void 0)throw"extra trailer";$n=Nt(yf);continue}if(ti!==void 0)throw"extra message";ti=ft(yf)}if($n===void 0)throw"missing trailer";if(on($n,sr.headers),ti===void 0)throw"missing message";return{stream:!1,header:sr.headers,message:ti,trailer:$n}}})},async stream(T,_,H,K,oe,Ae,He){var yt;const{serialize:Ft,parse:ft}=ve(_,g,A.jsonOptions,A.binaryOptions);function sn(Nn,sr,oo,$n){return zn(this,arguments,function*(){const Gr=$e(Nn).getReader();if(sr){if(!(yield pn(Gr.read())).done)throw"extra data for trailers-only";return yield pn(void 0)}let vi=!1;for(;;){const yf=yield pn(Gr.read());if(yf.done)break;const{flags:rh,data:i0}=yf.value;if((rh&Et)===Et){if(vi)throw"extra trailer";vi=!0;const o6=Nt(i0);on(o6,$n),o6.forEach((Ioe,Doe)=>oo.set(Doe,Ioe));continue}if(vi)throw"extra message";yield yield pn(ft(i0))}if(!vi)throw"missing trailer"})}async function In(Nn){if(_.kind!=m.t.ServerStreaming)throw"The fetch API does not support streaming request bodies";const sr=await Nn[Symbol.asyncIterator]().next();if(sr.done==!0)throw"missing request message";return We(0,Ft(sr.value))}return K=K===void 0?A.defaultTimeoutMs:K<=0?void 0:K,Me({interceptors:A.interceptors,signal:H,timeoutMs:K,req:{stream:!0,service:T,method:_,url:ze(A.baseUrl,T,_),init:{method:"POST",credentials:(yt=A.credentials)!==null&&yt!==void 0?yt:"same-origin",redirect:"error",mode:"cors"},header:de(g,K,oe,!1),contextValues:He??j(),message:Ae},next:async Nn=>{var sr;const $n=await((sr=A.fetch)!==null&&sr!==void 0?sr:globalThis.fetch)(Nn.url,Object.assign(Object.assign({},Nn.init),{headers:Nn.header,signal:Nn.signal,body:await In(Nn.message)})),{foundStatus:ti}=it($n.status,$n.headers);if(!$n.body)throw"missing response body";const Gr=new Headers;return Object.assign(Object.assign({},Nn),{header:$n.headers,trailer:Gr,message:sn($n.body,ti,Gr,$n.headers)})}})}}}var _e=o(295),pe=o(646);/** + */(function(i,o){e.exports=o()})(xS,()=>(()=>{var r={646:(s,l,u)=>{Object.defineProperty(l,"__esModule",{value:!0});const{proto3:c,StringValue:d,Timestamp:p}=u(532),h=c.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"}]),m=c.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"}]),b=c.makeMessageType("yorkie.v1.Snapshot",()=>[{no:1,name:"root",kind:"message",T:W},{no:2,name:"presences",kind:"map",K:9,V:{kind:"message",T:Be}}]),O=c.makeMessageType("yorkie.v1.ChangePack",()=>[{no:1,name:"document_key",kind:"scalar",T:9},{no:2,name:"checkpoint",kind:"message",T:re},{no:3,name:"snapshot",kind:"scalar",T:12},{no:4,name:"changes",kind:"message",T:y,repeated:!0},{no:5,name:"min_synced_ticket",kind:"message",T:J},{no:6,name:"is_removed",kind:"scalar",T:8}]),y=c.makeMessageType("yorkie.v1.Change",()=>[{no:1,name:"id",kind:"message",T:v},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"operations",kind:"message",T:S,repeated:!0},{no:4,name:"presence_change",kind:"message",T:We}]),v=c.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}]),S=c.makeMessageType("yorkie.v1.Operation",()=>[{no:1,name:"set",kind:"message",T:k,oneof:"body"},{no:2,name:"add",kind:"message",T:C,oneof:"body"},{no:3,name:"move",kind:"message",T:w,oneof:"body"},{no:4,name:"remove",kind:"message",T:E,oneof:"body"},{no:5,name:"edit",kind:"message",T:$,oneof:"body"},{no:6,name:"select",kind:"message",T:P,oneof:"body"},{no:7,name:"style",kind:"message",T:R,oneof:"body"},{no:8,name:"increase",kind:"message",T:B,oneof:"body"},{no:9,name:"tree_edit",kind:"message",T:U,oneof:"body"},{no:10,name:"tree_style",kind:"message",T:V,oneof:"body"}]),k=c.makeMessageType("yorkie.v1.Operation.Set",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"value",kind:"message",T:z},{no:4,name:"executed_at",kind:"message",T:J}],{localName:"Operation_Set"}),C=c.makeMessageType("yorkie.v1.Operation.Add",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"prev_created_at",kind:"message",T:J},{no:3,name:"value",kind:"message",T:z},{no:4,name:"executed_at",kind:"message",T:J}],{localName:"Operation_Add"}),w=c.makeMessageType("yorkie.v1.Operation.Move",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"prev_created_at",kind:"message",T:J},{no:3,name:"created_at",kind:"message",T:J},{no:4,name:"executed_at",kind:"message",T:J}],{localName:"Operation_Move"}),E=c.makeMessageType("yorkie.v1.Operation.Remove",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"created_at",kind:"message",T:J},{no:3,name:"executed_at",kind:"message",T:J}],{localName:"Operation_Remove"}),$=c.makeMessageType("yorkie.v1.Operation.Edit",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"from",kind:"message",T:ee},{no:3,name:"to",kind:"message",T:ee},{no:4,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:J}},{no:5,name:"content",kind:"scalar",T:9},{no:6,name:"executed_at",kind:"message",T:J},{no:7,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}}],{localName:"Operation_Edit"}),P=c.makeMessageType("yorkie.v1.Operation.Select",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"from",kind:"message",T:ee},{no:3,name:"to",kind:"message",T:ee},{no:4,name:"executed_at",kind:"message",T:J}],{localName:"Operation_Select"}),R=c.makeMessageType("yorkie.v1.Operation.Style",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"from",kind:"message",T:ee},{no:3,name:"to",kind:"message",T:ee},{no:4,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:5,name:"executed_at",kind:"message",T:J},{no:6,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:J}}],{localName:"Operation_Style"}),B=c.makeMessageType("yorkie.v1.Operation.Increase",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"value",kind:"message",T:z},{no:3,name:"executed_at",kind:"message",T:J}],{localName:"Operation_Increase"}),U=c.makeMessageType("yorkie.v1.Operation.TreeEdit",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"from",kind:"message",T:Ke},{no:3,name:"to",kind:"message",T:Ke},{no:4,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:J}},{no:5,name:"contents",kind:"message",T:Ne,repeated:!0},{no:7,name:"split_level",kind:"scalar",T:5},{no:6,name:"executed_at",kind:"message",T:J}],{localName:"Operation_TreeEdit"}),V=c.makeMessageType("yorkie.v1.Operation.TreeStyle",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"from",kind:"message",T:Ke},{no:3,name:"to",kind:"message",T:Ke},{no:4,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:5,name:"executed_at",kind:"message",T:J}],{localName:"Operation_TreeStyle"}),z=c.makeMessageType("yorkie.v1.JSONElementSimple",()=>[{no:1,name:"created_at",kind:"message",T:J},{no:2,name:"moved_at",kind:"message",T:J},{no:3,name:"removed_at",kind:"message",T:J},{no:4,name:"type",kind:"enum",T:c.getEnumType(h)},{no:5,name:"value",kind:"scalar",T:12}]),W=c.makeMessageType("yorkie.v1.JSONElement",()=>[{no:1,name:"json_object",kind:"message",T:X,oneof:"body"},{no:2,name:"json_array",kind:"message",T:q,oneof:"body"},{no:3,name:"primitive",kind:"message",T:Y,oneof:"body"},{no:5,name:"text",kind:"message",T:Z,oneof:"body"},{no:6,name:"counter",kind:"message",T:j,oneof:"body"},{no:7,name:"tree",kind:"message",T:se,oneof:"body"}]),X=c.makeMessageType("yorkie.v1.JSONElement.JSONObject",()=>[{no:1,name:"nodes",kind:"message",T:ve,repeated:!0},{no:2,name:"created_at",kind:"message",T:J},{no:3,name:"moved_at",kind:"message",T:J},{no:4,name:"removed_at",kind:"message",T:J}],{localName:"JSONElement_JSONObject"}),q=c.makeMessageType("yorkie.v1.JSONElement.JSONArray",()=>[{no:1,name:"nodes",kind:"message",T:G,repeated:!0},{no:2,name:"created_at",kind:"message",T:J},{no:3,name:"moved_at",kind:"message",T:J},{no:4,name:"removed_at",kind:"message",T:J}],{localName:"JSONElement_JSONArray"}),Y=c.makeMessageType("yorkie.v1.JSONElement.Primitive",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType(h)},{no:2,name:"value",kind:"scalar",T:12},{no:3,name:"created_at",kind:"message",T:J},{no:4,name:"moved_at",kind:"message",T:J},{no:5,name:"removed_at",kind:"message",T:J}],{localName:"JSONElement_Primitive"}),Z=c.makeMessageType("yorkie.v1.JSONElement.Text",()=>[{no:1,name:"nodes",kind:"message",T:ge,repeated:!0},{no:2,name:"created_at",kind:"message",T:J},{no:3,name:"moved_at",kind:"message",T:J},{no:4,name:"removed_at",kind:"message",T:J}],{localName:"JSONElement_Text"}),j=c.makeMessageType("yorkie.v1.JSONElement.Counter",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType(h)},{no:2,name:"value",kind:"scalar",T:12},{no:3,name:"created_at",kind:"message",T:J},{no:4,name:"moved_at",kind:"message",T:J},{no:5,name:"removed_at",kind:"message",T:J}],{localName:"JSONElement_Counter"}),se=c.makeMessageType("yorkie.v1.JSONElement.Tree",()=>[{no:1,name:"nodes",kind:"message",T:xe,repeated:!0},{no:2,name:"created_at",kind:"message",T:J},{no:3,name:"moved_at",kind:"message",T:J},{no:4,name:"removed_at",kind:"message",T:J}],{localName:"JSONElement_Tree"}),ve=c.makeMessageType("yorkie.v1.RHTNode",()=>[{no:1,name:"key",kind:"scalar",T:9},{no:2,name:"element",kind:"message",T:W}]),G=c.makeMessageType("yorkie.v1.RGANode",()=>[{no:1,name:"next",kind:"message",T:G},{no:2,name:"element",kind:"message",T:W}]),ce=c.makeMessageType("yorkie.v1.NodeAttr",()=>[{no:1,name:"value",kind:"scalar",T:9},{no:2,name:"updated_at",kind:"message",T:J}]),ge=c.makeMessageType("yorkie.v1.TextNode",()=>[{no:1,name:"id",kind:"message",T:ue},{no:2,name:"value",kind:"scalar",T:9},{no:3,name:"removed_at",kind:"message",T:J},{no:4,name:"ins_prev_id",kind:"message",T:ue},{no:5,name:"attributes",kind:"map",K:9,V:{kind:"message",T:ce}}]),ue=c.makeMessageType("yorkie.v1.TextNodeID",()=>[{no:1,name:"created_at",kind:"message",T:J},{no:2,name:"offset",kind:"scalar",T:5}]),xe=c.makeMessageType("yorkie.v1.TreeNode",()=>[{no:1,name:"id",kind:"message",T:Ve},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"value",kind:"scalar",T:9},{no:4,name:"removed_at",kind:"message",T:J},{no:5,name:"ins_prev_id",kind:"message",T:Ve},{no:6,name:"ins_next_id",kind:"message",T:Ve},{no:7,name:"depth",kind:"scalar",T:5},{no:8,name:"attributes",kind:"map",K:9,V:{kind:"message",T:ce}}]),Ne=c.makeMessageType("yorkie.v1.TreeNodes",()=>[{no:1,name:"content",kind:"message",T:xe,repeated:!0}]),Ve=c.makeMessageType("yorkie.v1.TreeNodeID",()=>[{no:1,name:"created_at",kind:"message",T:J},{no:2,name:"offset",kind:"scalar",T:5}]),Ke=c.makeMessageType("yorkie.v1.TreePos",()=>[{no:1,name:"parent_id",kind:"message",T:Ve},{no:2,name:"left_sibling_id",kind:"message",T:Ve}]),Me=c.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:p}]),Ye=c.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:p},{no:9,name:"updated_at",kind:"message",T:p}]),ye=c.makeMessageType("yorkie.v1.UpdatableProjectFields",()=>[{no:1,name:"name",kind:"message",T:d},{no:2,name:"auth_webhook_url",kind:"message",T:d},{no:3,name:"auth_webhook_methods",kind:"message",T:ze},{no:4,name:"client_deactivate_threshold",kind:"message",T:d}]),ze=c.makeMessageType("yorkie.v1.UpdatableProjectFields.AuthWebhookMethods",()=>[{no:1,name:"methods",kind:"scalar",T:9,repeated:!0}],{localName:"UpdatableProjectFields_AuthWebhookMethods"}),$e=c.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:p},{no:5,name:"accessed_at",kind:"message",T:p},{no:6,name:"updated_at",kind:"message",T:p}]),We=c.makeMessageType("yorkie.v1.PresenceChange",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType(dt)},{no:2,name:"presence",kind:"message",T:Be}]),dt=c.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"}]),Be=c.makeMessageType("yorkie.v1.Presence",()=>[{no:1,name:"data",kind:"map",K:9,V:{kind:"scalar",T:9}}]),re=c.makeMessageType("yorkie.v1.Checkpoint",()=>[{no:1,name:"server_seq",kind:"scalar",T:3,L:1},{no:2,name:"client_seq",kind:"scalar",T:13}]),ee=c.makeMessageType("yorkie.v1.TextNodePos",()=>[{no:1,name:"created_at",kind:"message",T:J},{no:2,name:"offset",kind:"scalar",T:5},{no:3,name:"relative_offset",kind:"scalar",T:5}]),J=c.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}]),Re=c.makeMessageType("yorkie.v1.DocEventBody",()=>[{no:1,name:"topic",kind:"scalar",T:9},{no:2,name:"payload",kind:"scalar",T:12}]),Le=c.makeMessageType("yorkie.v1.DocEvent",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType(m)},{no:2,name:"publisher",kind:"scalar",T:9},{no:3,name:"body",kind:"message",T:Re}]);l.ValueType=h,l.DocEventType=m,l.Snapshot=b,l.ChangePack=O,l.Change=y,l.ChangeID=v,l.Operation=S,l.Operation_Set=k,l.Operation_Add=C,l.Operation_Move=w,l.Operation_Remove=E,l.Operation_Edit=$,l.Operation_Select=P,l.Operation_Style=R,l.Operation_Increase=B,l.Operation_TreeEdit=U,l.Operation_TreeStyle=V,l.JSONElementSimple=z,l.JSONElement=W,l.JSONElement_JSONObject=X,l.JSONElement_JSONArray=q,l.JSONElement_Primitive=Y,l.JSONElement_Text=Z,l.JSONElement_Counter=j,l.JSONElement_Tree=se,l.RHTNode=ve,l.RGANode=G,l.NodeAttr=ce,l.TextNode=ge,l.TextNodeID=ue,l.TreeNode=xe,l.TreeNodes=Ne,l.TreeNodeID=Ve,l.TreePos=Ke,l.User=Me,l.Project=Ye,l.UpdatableProjectFields=ye,l.UpdatableProjectFields_AuthWebhookMethods=ze,l.DocumentSummary=$e,l.PresenceChange=We,l.PresenceChange_ChangeType=dt,l.Presence=Be,l.Checkpoint=re,l.TextNodePos=ee,l.TimeTicket=J,l.DocEventBody=Re,l.DocEvent=Le},295:(s,l,u)=>{const{ActivateClientRequest:c,ActivateClientResponse:d,AttachDocumentRequest:p,AttachDocumentResponse:h,BroadcastRequest:m,BroadcastResponse:b,DeactivateClientRequest:O,DeactivateClientResponse:y,DetachDocumentRequest:v,DetachDocumentResponse:S,PushPullChangesRequest:k,PushPullChangesResponse:C,RemoveDocumentRequest:w,RemoveDocumentResponse:E,WatchDocumentRequest:$,WatchDocumentResponse:P}=u(176),{MethodKind:R}=u(532),B={typeName:"yorkie.v1.YorkieService",methods:{activateClient:{name:"ActivateClient",I:c,O:d,kind:R.Unary},deactivateClient:{name:"DeactivateClient",I:O,O:y,kind:R.Unary},attachDocument:{name:"AttachDocument",I:p,O:h,kind:R.Unary},detachDocument:{name:"DetachDocument",I:v,O:S,kind:R.Unary},removeDocument:{name:"RemoveDocument",I:w,O:E,kind:R.Unary},pushPullChanges:{name:"PushPullChanges",I:k,O:C,kind:R.Unary},watchDocument:{name:"WatchDocument",I:$,O:P,kind:R.ServerStreaming},broadcast:{name:"Broadcast",I:m,O:b,kind:R.Unary}}};l.V=B},176:(s,l,u)=>{Object.defineProperty(l,"__esModule",{value:!0});const{proto3:c}=u(532),{ChangePack:d,DocEvent:p}=u(646),h=c.makeMessageType("yorkie.v1.ActivateClientRequest",()=>[{no:1,name:"client_key",kind:"scalar",T:9}]),m=c.makeMessageType("yorkie.v1.ActivateClientResponse",()=>[{no:1,name:"client_id",kind:"scalar",T:9}]),b=c.makeMessageType("yorkie.v1.DeactivateClientRequest",()=>[{no:2,name:"client_key",kind:"scalar",T:9},{no:1,name:"client_id",kind:"scalar",T:9}]),O=c.makeMessageType("yorkie.v1.DeactivateClientResponse",[]),y=c.makeMessageType("yorkie.v1.AttachDocumentRequest",()=>[{no:3,name:"client_key",kind:"scalar",T:9},{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"change_pack",kind:"message",T:d}]),v=c.makeMessageType("yorkie.v1.AttachDocumentResponse",()=>[{no:1,name:"document_id",kind:"scalar",T:9},{no:2,name:"change_pack",kind:"message",T:d}]),S=c.makeMessageType("yorkie.v1.DetachDocumentRequest",()=>[{no:5,name:"client_key",kind:"scalar",T:9},{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:d},{no:4,name:"remove_if_not_attached",kind:"scalar",T:8}]),k=c.makeMessageType("yorkie.v1.DetachDocumentResponse",()=>[{no:2,name:"change_pack",kind:"message",T:d}]),C=c.makeMessageType("yorkie.v1.WatchDocumentRequest",()=>[{no:4,name:"client_key",kind:"scalar",T:9},{no:1,name:"client_id",kind:"scalar",T:9},{no:3,name:"document_key",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9}]),w=c.makeMessageType("yorkie.v1.WatchDocumentResponse",()=>[{no:1,name:"initialization",kind:"message",T:E,oneof:"body"},{no:2,name:"event",kind:"message",T:p,oneof:"body"}]),E=c.makeMessageType("yorkie.v1.WatchDocumentResponse.Initialization",()=>[{no:1,name:"client_ids",kind:"scalar",T:9,repeated:!0}],{localName:"WatchDocumentResponse_Initialization"}),$=c.makeMessageType("yorkie.v1.RemoveDocumentRequest",()=>[{no:4,name:"client_key",kind:"scalar",T:9},{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:d}]),P=c.makeMessageType("yorkie.v1.RemoveDocumentResponse",()=>[{no:1,name:"change_pack",kind:"message",T:d}]),R=c.makeMessageType("yorkie.v1.PushPullChangesRequest",()=>[{no:5,name:"client_key",kind:"scalar",T:9},{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:d},{no:4,name:"push_only",kind:"scalar",T:8}]),B=c.makeMessageType("yorkie.v1.PushPullChangesResponse",()=>[{no:1,name:"change_pack",kind:"message",T:d}]),U=c.makeMessageType("yorkie.v1.BroadcastRequest",()=>[{no:6,name:"client_key",kind:"scalar",T:9},{no:1,name:"client_id",kind:"scalar",T:9},{no:5,name:"document_key",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}]),V=c.makeMessageType("yorkie.v1.BroadcastResponse",[]);l.ActivateClientRequest=h,l.ActivateClientResponse=m,l.DeactivateClientRequest=b,l.DeactivateClientResponse=O,l.AttachDocumentRequest=y,l.AttachDocumentResponse=v,l.DetachDocumentRequest=S,l.DetachDocumentResponse=k,l.WatchDocumentRequest=C,l.WatchDocumentResponse=w,l.WatchDocumentResponse_Initialization=E,l.RemoveDocumentRequest=$,l.RemoveDocumentResponse=P,l.PushPullChangesRequest=R,l.PushPullChangesResponse=B,l.BroadcastRequest=U,l.BroadcastResponse=V},79:(s,l,u)=>{u.d(l,{Lt:()=>m,TD:()=>h,oP:()=>b});var c=u(818),d=u(120),p=u(210),h;(function(O){O[O.Varint=0]="Varint",O[O.Bit64=1]="Bit64",O[O.LengthDelimited=2]="LengthDelimited",O[O.StartGroup=3]="StartGroup",O[O.EndGroup=4]="EndGroup",O[O.Bit32=5]="Bit32"})(h||(h={}));class m{constructor(y){this.stack=[],this.textEncoder=y??new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let y=0;for(let k=0;k>>0)}raw(y){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(y),this}uint32(y){for((0,d.fp)(y);y>127;)this.buf.push(y&127|128),y=y>>>7;return this.buf.push(y),this}int32(y){return(0,d.ug)(y),(0,c.fC)(y,this.buf),this}bool(y){return this.buf.push(y?1:0),this}bytes(y){return this.uint32(y.byteLength),this.raw(y)}string(y){let v=this.textEncoder.encode(y);return this.uint32(v.byteLength),this.raw(v)}float(y){(0,d.E_)(y);let v=new Uint8Array(4);return new DataView(v.buffer).setFloat32(0,y,!0),this.raw(v)}double(y){let v=new Uint8Array(8);return new DataView(v.buffer).setFloat64(0,y,!0),this.raw(v)}fixed32(y){(0,d.fp)(y);let v=new Uint8Array(4);return new DataView(v.buffer).setUint32(0,y,!0),this.raw(v)}sfixed32(y){(0,d.ug)(y);let v=new Uint8Array(4);return new DataView(v.buffer).setInt32(0,y,!0),this.raw(v)}sint32(y){return(0,d.ug)(y),y=(y<<1^y>>31)>>>0,(0,c.fC)(y,this.buf),this}sfixed64(y){let v=new Uint8Array(8),S=new DataView(v.buffer),k=p.q.enc(y);return S.setInt32(0,k.lo,!0),S.setInt32(4,k.hi,!0),this.raw(v)}fixed64(y){let v=new Uint8Array(8),S=new DataView(v.buffer),k=p.q.uEnc(y);return S.setInt32(0,k.lo,!0),S.setInt32(4,k.hi,!0),this.raw(v)}int64(y){let v=p.q.enc(y);return(0,c._y)(v.lo,v.hi,this.buf),this}sint64(y){let v=p.q.enc(y),S=v.hi>>31,k=v.lo<<1^S,C=(v.hi<<1|v.lo>>>31)^S;return(0,c._y)(k,C,this.buf),this}uint64(y){let v=p.q.uEnc(y);return(0,c._y)(v.lo,v.hi,this.buf),this}}class b{constructor(y,v){this.varint64=c.sg,this.uint32=c.jI,this.buf=y,this.len=y.length,this.pos=0,this.view=new DataView(y.buffer,y.byteOffset,y.byteLength),this.textDecoder=v??new TextDecoder}tag(){let y=this.uint32(),v=y>>>3,S=y&7;if(v<=0||S<0||S>5)throw new Error("illegal tag: field no "+v+" wire type "+S);return[v,S]}skip(y){let v=this.pos;switch(y){case h.Varint:for(;this.buf[this.pos++]&128;);break;case h.Bit64:this.pos+=4;case h.Bit32:this.pos+=4;break;case h.LengthDelimited:let S=this.uint32();this.pos+=S;break;case h.StartGroup:let k;for(;(k=this.tag()[1])!==h.EndGroup;)this.skip(k);break;default:throw new Error("cant skip wire type "+y)}return this.assertBounds(),this.buf.subarray(v,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let y=this.uint32();return y>>>1^-(y&1)}int64(){return p.q.dec(...this.varint64())}uint64(){return p.q.uDec(...this.varint64())}sint64(){let[y,v]=this.varint64(),S=-(y&1);return y=(y>>>1|(v&1)<<31)^S,v=v>>>1^S,p.q.dec(y,v)}bool(){let[y,v]=this.varint64();return y!==0||v!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return p.q.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return p.q.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 y=this.uint32(),v=this.pos;return this.pos+=y,this.assertBounds(),this.buf.subarray(v,v+y)}string(){return this.textDecoder.decode(this.bytes())}}},465:(s,l,u)=>{u.d(l,{p:()=>d,w:()=>c});var c;(function(p){p[p.DOUBLE=1]="DOUBLE",p[p.FLOAT=2]="FLOAT",p[p.INT64=3]="INT64",p[p.UINT64=4]="UINT64",p[p.INT32=5]="INT32",p[p.FIXED64=6]="FIXED64",p[p.FIXED32=7]="FIXED32",p[p.BOOL=8]="BOOL",p[p.STRING=9]="STRING",p[p.BYTES=12]="BYTES",p[p.UINT32=13]="UINT32",p[p.SFIXED32=15]="SFIXED32",p[p.SFIXED64=16]="SFIXED64",p[p.SINT32=17]="SINT32",p[p.SINT64=18]="SINT64"})(c||(c={}));var d;(function(p){p[p.BIGINT=0]="BIGINT",p[p.STRING=1]="STRING"})(d||(d={}))},733:(s,l,u)=>{u.d(l,{I:()=>p});var c=u(561),d=u(850);class p extends c.v{constructor(m){super(),this.typeUrl="",this.value=new Uint8Array(0),d.w.util.initPartial(m,this)}toJson(m){var b;if(this.typeUrl==="")return{};const O=this.typeUrlToName(this.typeUrl),y=(b=m==null?void 0:m.typeRegistry)===null||b===void 0?void 0:b.findMessage(O);if(!y)throw new Error(`cannot encode message google.protobuf.Any to JSON: "${this.typeUrl}" is not in the type registry`);let S=y.fromBinary(this.value).toJson(m);return(O.startsWith("google.protobuf.")||S===null||Array.isArray(S)||typeof S!="object")&&(S={value:S}),S["@type"]=this.typeUrl,S}fromJson(m,b){var O;if(m===null||Array.isArray(m)||typeof m!="object")throw new Error(`cannot decode message google.protobuf.Any from JSON: expected object but got ${m===null?"null":Array.isArray(m)?"array":typeof m}`);if(Object.keys(m).length==0)return this;const y=m["@type"];if(typeof y!="string"||y=="")throw new Error('cannot decode message google.protobuf.Any from JSON: "@type" is empty');const v=this.typeUrlToName(y),S=(O=b==null?void 0:b.typeRegistry)===null||O===void 0?void 0:O.findMessage(v);if(!S)throw new Error(`cannot decode message google.protobuf.Any from JSON: ${y} is not in the type registry`);let k;if(v.startsWith("google.protobuf.")&&Object.prototype.hasOwnProperty.call(m,"value"))k=S.fromJson(m.value,b);else{const C=Object.assign({},m);delete C["@type"],k=S.fromJson(C,b)}return this.packFrom(k),this}packFrom(m){this.value=m.toBinary(),this.typeUrl=this.typeNameToUrl(m.getType().typeName)}unpackTo(m){return this.is(m.getType())?(m.fromBinary(this.value),!0):!1}unpack(m){if(this.typeUrl==="")return;const b=m.findMessage(this.typeUrlToName(this.typeUrl));if(b)return b.fromBinary(this.value)}is(m){if(this.typeUrl==="")return!1;const b=this.typeUrlToName(this.typeUrl);let O="";return typeof m=="string"?O=m:O=m.typeName,b===O}typeNameToUrl(m){return`type.googleapis.com/${m}`}typeUrlToName(m){if(!m.length)throw new Error(`invalid type url: ${m}`);const b=m.lastIndexOf("/"),O=b>=0?m.substring(b+1):m;if(!O.length)throw new Error(`invalid type url: ${m}`);return O}static pack(m){const b=new p;return b.packFrom(m),b}static fromBinary(m,b){return new p().fromBinary(m,b)}static fromJson(m,b){return new p().fromJson(m,b)}static fromJsonString(m,b){return new p().fromJsonString(m,b)}static equals(m,b){return d.w.util.equals(p,m,b)}}p.runtime=d.w,p.typeName="google.protobuf.Any",p.fields=d.w.util.newFieldList(()=>[{no:1,name:"type_url",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:12}])},818:(s,l,u)=>{u.d(l,{Ak:()=>m,CZ:()=>h,Fd:()=>b,_y:()=>d,fC:()=>k,jI:()=>C,sg:()=>c});function c(){let w=0,E=0;for(let P=0;P<28;P+=7){let R=this.buf[this.pos++];if(w|=(R&127)<>4,!($&128))return this.assertBounds(),[w,E];for(let P=3;P<=31;P+=7){let R=this.buf[this.pos++];if(E|=(R&127)<>>B,V=!(!(U>>>7)&&E==0),z=(V?U|128:U)&255;if($.push(z),!V)return}const P=w>>>28&15|(E&7)<<4,R=!!(E>>3);if($.push((R?P|128:P)&255),!!R){for(let B=3;B<31;B=B+7){const U=E>>>B,V=!!(U>>>7),z=(V?U|128:U)&255;if($.push(z),!V)return}$.push(E>>>31&1)}}const p=4294967296;function h(w){const E=w[0]==="-";E&&(w=w.slice(1));const $=1e6;let P=0,R=0;function B(U,V){const z=Number(w.slice(U,V));R*=$,P=P*$+z,P>=p&&(R=R+(P/p|0),P=P%p)}return B(-24,-18),B(-18,-12),B(-12,-6),B(-6),E?v(P,R):y(P,R)}function m(w,E){let $=y(w,E);const P=$.hi&2147483648;P&&($=v($.lo,$.hi));const R=b($.lo,$.hi);return P?"-"+R:R}function b(w,E){if({lo:w,hi:E}=O(w,E),E<=2097151)return String(p*E+w);const $=w&16777215,P=(w>>>24|E<<8)&16777215,R=E>>16&65535;let B=$+P*6777216+R*6710656,U=P+R*8147497,V=R*2;const z=1e7;return B>=z&&(U+=Math.floor(B/z),B%=z),U>=z&&(V+=Math.floor(U/z),U%=z),V.toString()+S(U)+S(B)}function O(w,E){return{lo:w>>>0,hi:E>>>0}}function y(w,E){return{lo:w|0,hi:E|0}}function v(w,E){return E=~E,w?w=~w+1:E+=1,y(w,E)}const S=w=>{const E=String(w);return"0000000".slice(E.length)+E};function k(w,E){if(w>=0){for(;w>127;)E.push(w&127|128),w=w>>>7;E.push(w)}else{for(let $=0;$<9;$++)E.push(w&127|128),w=w>>7;E.push(1)}}function C(){let w=this.buf[this.pos++],E=w&127;if(!(w&128))return this.assertBounds(),E;if(w=this.buf[this.pos++],E|=(w&127)<<7,!(w&128))return this.assertBounds(),E;if(w=this.buf[this.pos++],E|=(w&127)<<14,!(w&128))return this.assertBounds(),E;if(w=this.buf[this.pos++],E|=(w&127)<<21,!(w&128))return this.assertBounds(),E;w=this.buf[this.pos++],E|=(w&15)<<28;for(let $=5;w&128&&$<10;$++)w=this.buf[this.pos++];if(w&128)throw new Error("invalid varint");return this.assertBounds(),E>>>0}},532:(s,l,u)=>{u.r(l),u.d(l,{Any:()=>Gp.I,Api:()=>Ba,BinaryReader:()=>U.oP,BinaryWriter:()=>U.Lt,BoolValue:()=>Wo,BytesValue:()=>Jt,CodeGeneratorRequest:()=>Go,CodeGeneratorResponse:()=>fi,CodeGeneratorResponse_Feature:()=>Gl,CodeGeneratorResponse_File:()=>Co,DescriptorProto:()=>ue,DescriptorProto_ExtensionRange:()=>xe,DescriptorProto_ReservedRange:()=>Ne,DoubleValue:()=>Ho,Duration:()=>Er,Edition:()=>G,Empty:()=>Ts,Enum:()=>Yn,EnumDescriptorProto:()=>We,EnumDescriptorProto_EnumReservedRange:()=>dt,EnumOptions:()=>pt,EnumValue:()=>Fa,EnumValueDescriptorProto:()=>Be,EnumValueOptions:()=>xt,ExtensionRangeOptions:()=>Ve,ExtensionRangeOptions_Declaration:()=>Me,ExtensionRangeOptions_VerificationState:()=>Ke,FeatureSet:()=>Nt,FeatureSetDefaults:()=>pe,FeatureSetDefaults_FeatureSetEditionDefault:()=>lt,FeatureSet_EnumType:()=>dn,FeatureSet_FieldPresence:()=>on,FeatureSet_JsonFormat:()=>_e,FeatureSet_MessageEncoding:()=>Ee,FeatureSet_RepeatedFieldEncoding:()=>pn,FeatureSet_Utf8Validation:()=>zn,Field:()=>qo,FieldDescriptorProto:()=>Ye,FieldDescriptorProto_Label:()=>ze,FieldDescriptorProto_Type:()=>ye,FieldMask:()=>ws,FieldOptions:()=>De,FieldOptions_CType:()=>ie,FieldOptions_EditionDefault:()=>Te,FieldOptions_JSType:()=>fe,FieldOptions_OptionRetention:()=>de,FieldOptions_OptionTargetType:()=>Oe,Field_Cardinality:()=>Fc,Field_Kind:()=>$c,FileDescriptorProto:()=>ge,FileDescriptorSet:()=>ce,FileOptions:()=>J,FileOptions_OptimizeMode:()=>Re,FloatValue:()=>xo,GeneratedCodeInfo:()=>$t,GeneratedCodeInfo_Annotation:()=>It,GeneratedCodeInfo_Annotation_Semantic:()=>Ct,Int32Value:()=>_r,Int64Value:()=>ji,ListValue:()=>ao,LongType:()=>p.p,Message:()=>se.v,MessageOptions:()=>Le,Method:()=>pa,MethodDescriptorProto:()=>ee,MethodIdempotency:()=>ve.w,MethodKind:()=>ve.t,MethodOptions:()=>vt,MethodOptions_IdempotencyLevel:()=>qe,Mixin:()=>Ua,NullValue:()=>oo,OneofDescriptorProto:()=>$e,OneofOptions:()=>rt,Option:()=>Ci,ScalarType:()=>p.w,ServiceDescriptorProto:()=>re,ServiceOptions:()=>et,SourceCodeInfo:()=>at,SourceCodeInfo_Location:()=>Mt,SourceContext:()=>da,StringValue:()=>zi,Struct:()=>ko,Syntax:()=>fa,Timestamp:()=>ca,Type:()=>xi,UInt32Value:()=>jr,UInt64Value:()=>gr,UninterpretedOption:()=>it,UninterpretedOption_NamePart:()=>Et,Value:()=>Ur,Version:()=>Yo,WireType:()=>U.TD,codegenInfo:()=>j,createDescriptorSet:()=>Wt,createRegistry:()=>VO,createRegistryFromDescriptors:()=>pf,proto2:()=>E,proto3:()=>c.w,protoBase64:()=>B.W,protoDelimited:()=>X,protoDouble:()=>P,protoInt64:()=>R.q,toPlainMessage:()=>Zp});var c=u(850),d=u(493),p=u(465),h=u(744);function m(){return Object.assign(Object.assign({},(0,h.gY)()),{writeMessage(F,x,M){const le=F.getType();let be;try{for(be of le.fields.byNumber()){let Pe,je=be.repeated,ct=be.localName;if(be.oneof){const Ze=F[be.oneof.localName];if(Ze.case!==ct)continue;Pe=Ze.value}else if(Pe=F[ct],Pe===void 0&&!be.oneof&&!be.opt)throw new Error(`cannot encode field ${le.typeName}.${be.name} to binary: required field not set`);switch(be.kind){case"scalar":case"enum":let Ze=be.kind=="enum"?p.w.INT32:be.T;if(je)if(be.packed)(0,h.Jj)(x,Ze,be.no,Pe);else for(const Ot of Pe)(0,h.NN)(x,Ze,be.no,Ot,!0);else Pe!==void 0&&(0,h.NN)(x,Ze,be.no,Pe,!0);break;case"message":if(je)for(const Ot of Pe)(0,h.oQ)(x,M,be,Ot);else(0,h.oQ)(x,M,be,Pe);break;case"map":for(const[Ot,Pt]of Object.entries(Pe))(0,h.gQ)(x,M,be,Ot,Pt);break}}}catch(Pe){let je=be?`cannot encode field ${le.typeName}.${be==null?void 0:be.name} to binary`:`cannot encode message ${le.typeName} to binary`,ct=Pe instanceof Error?Pe.message:String(Pe);throw new Error(je+(ct.length>0?`: ${ct}`:""))}return M.writeUnknownFields&&this.writeUnknownFields(F,x),x}})}var b=u(433),O=u(501),y=u(215),v=u(504),S=u(432),k=u(120),C=u(814);function w(){return(0,C.b)((F,x)=>function(le,be,Pe){if(le.kind=="map"){const je={};switch(le.V.kind){case"scalar":for(const[Ze,Ot]of Object.entries(be)){const Pt=x(le.V.T,Ot,!0);(0,k.hu)(Pt!==void 0),je[Ze.toString()]=Pt}break;case"message":for(const[Ze,Ot]of Object.entries(be))je[Ze.toString()]=Ot.toJson(Pe);break;case"enum":const ct=le.V.T;for(const[Ze,Ot]of Object.entries(be)){(0,k.hu)(Ot===void 0||typeof Ot=="number");const Pt=F(ct,Ot,!0,Pe.enumAsInteger);(0,k.hu)(Pt!==void 0),je[Ze.toString()]=Pt}break}return Pe.emitDefaultValues||Object.keys(je).length>0?je:void 0}else if(le.repeated){const je=[];switch(le.kind){case"scalar":for(let ct=0;ct0?je:void 0}else{if(be===void 0){if(!le.oneof&&!le.opt)throw"required field not set";return}switch(le.kind){case"scalar":return x(le.T,be,!0);case"enum":return F(le.T,be,!0,Pe.enumAsInteger);case"message":return(0,S.E)(le.T,be).toJson(Pe)}}})}const E=(0,d.F)("proto2",w(),m(),Object.assign(Object.assign({},(0,b.f)()),{newFieldList(F){return new O.i(F,$)},initFields(F){for(const x of F.getType().fields.byMember()){const M=x.localName,le=F;if(x.repeated){le[M]=[];continue}switch(x.kind){case"oneof":le[M]={case:void 0};break;case"map":le[M]={};break}}}}));function $(F){var x,M,le,be,Pe;const je=[];let ct;for(const Ze of typeof F=="function"?F():F){const Ot=Ze;if(Ot.localName=(0,v.Rz)(Ze.name,Ze.oneof!==void 0),Ot.jsonName=(x=Ze.jsonName)!==null&&x!==void 0?x:(0,v.x1)(Ze.name),Ot.repeated=(M=Ze.repeated)!==null&&M!==void 0?M:!1,Ze.kind=="scalar"&&(Ot.L=(le=Ze.L)!==null&&le!==void 0?le:p.p.BIGINT),Ze.oneof!==void 0){const Pt=typeof Ze.oneof=="string"?Ze.oneof:Ze.oneof.name;(!ct||ct.name!=Pt)&&(ct=new y.o(Pt)),Ot.oneof=ct,ct.addField(Ot)}Ze.kind=="message"&&(Ot.delimited=(be=Ze.delimited)!==null&&be!==void 0?be:!1),Ot.packed=(Pe=Ze.packed)!==null&&Pe!==void 0?Pe:!1,je.push(Ot)}return je}const P={NaN:Number.NaN,POSITIVE_INFINITY:Number.POSITIVE_INFINITY,NEGATIVE_INFINITY:Number.NEGATIVE_INFINITY};var R=u(210),B=u(236),U=u(79),V=function(F){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var x=F[Symbol.asyncIterator],M;return x?x.call(F):(F=typeof __values=="function"?__values(F):F[Symbol.iterator](),M={},le("next"),le("throw"),le("return"),M[Symbol.asyncIterator]=function(){return this},M);function le(Pe){M[Pe]=F[Pe]&&function(je){return new Promise(function(ct,Ze){je=F[Pe](je),be(ct,Ze,je.done,je.value)})}}function be(Pe,je,ct,Ze){Promise.resolve(Ze).then(function(Ot){Pe({value:Ot,done:ct})},je)}},z=function(F){return this instanceof z?(this.v=F,this):new z(F)},W=function(F,x,M){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var le=M.apply(F,x||[]),be,Pe=[];return be={},ct("next"),ct("throw"),ct("return",je),be[Symbol.asyncIterator]=function(){return this},be;function je(Sn){return function(Vi){return Promise.resolve(Vi).then(Sn,On)}}function ct(Sn,Vi){le[Sn]&&(be[Sn]=function(ja){return new Promise(function(tC,mf){Pe.push([Sn,ja,tC,mf])>1||Ze(Sn,ja)})},Vi&&(be[Sn]=Vi(be[Sn])))}function Ze(Sn,Vi){try{Ot(le[Sn](Vi))}catch(ja){Sr(Pe[0][3],ja)}}function Ot(Sn){Sn.value instanceof z?Promise.resolve(Sn.value.v).then(Pt,On):Sr(Pe[0][2],Sn)}function Pt(Sn){Ze("next",Sn)}function On(Sn){Ze("throw",Sn)}function Sr(Sn,Vi){Sn(Vi),Pe.shift(),Pe.length&&Ze(Pe[0][0],Pe[0][1])}};const X={enc(F,x){const M=(0,h.gY)().makeWriteOptions(x);return M.writerFactory().bytes(F.toBinary(M)).finish()},dec(F,x,M){const le=(0,h.gY)().makeReadOptions(M);return F.fromBinary(le.readerFactory(x).bytes(),le)},decStream(F,x){return W(this,arguments,function*(){var le,be,Pe,je;function ct(Sr,Sn){const Vi=new Uint8Array(Sr.byteLength+Sn.byteLength);return Vi.set(Sr),Vi.set(Sn,Sr.length),Vi}let Ze=new Uint8Array(0);try{for(var Ot=!0,Pt=V(x),On;On=yield z(Pt.next()),le=On.done,!le;Ot=!0)for(je=On.value,Ot=!1,Ze=ct(Ze,je);;){const Sn=X.peekSize(Ze);if(Sn.eof||Sn.offset+Sn.size>Ze.byteLength)break;yield yield z(X.dec(F,Ze)),Ze=Ze.subarray(Sn.offset+Sn.size)}}catch(Sr){be={error:Sr}}finally{try{!Ot&&!le&&(Pe=Pt.return)&&(yield z(Pe.call(Pt)))}finally{if(be)throw be.error}}if(Ze.byteLength>0)throw new Error("incomplete data")})},peekSize(F){const x={eof:!0,size:null,offset:null};for(let M=0;M<10;M++){if(M>F.byteLength)return x;if(!(F[M]&128)){const le=new U.oP(F);let be;try{be=le.uint32()}catch(Pe){if(Pe instanceof RangeError)return x;throw Pe}return{eof:!1,size:be,offset:le.pos}}}throw new Error("invalid varint")}};var q=u(781);function Y(F){switch(F.typeName){case"google.protobuf.Any":{const x=F.fields.find(le=>le.number==1&&le.fieldKind=="scalar"&&le.scalar===p.w.STRING),M=F.fields.find(le=>le.number==2&&le.fieldKind=="scalar"&&le.scalar===p.w.BYTES);if(x&&M)return{typeName:F.typeName,typeUrl:x,value:M};break}case"google.protobuf.Timestamp":{const x=F.fields.find(le=>le.number==1&&le.fieldKind=="scalar"&&le.scalar===p.w.INT64),M=F.fields.find(le=>le.number==2&&le.fieldKind=="scalar"&&le.scalar===p.w.INT32);if(x&&M)return{typeName:F.typeName,seconds:x,nanos:M};break}case"google.protobuf.Duration":{const x=F.fields.find(le=>le.number==1&&le.fieldKind=="scalar"&&le.scalar===p.w.INT64),M=F.fields.find(le=>le.number==2&&le.fieldKind=="scalar"&&le.scalar===p.w.INT32);if(x&&M)return{typeName:F.typeName,seconds:x,nanos:M};break}case"google.protobuf.Struct":{const x=F.fields.find(M=>M.number==1&&!M.repeated);if((x==null?void 0:x.fieldKind)!=="map"||x.mapValue.kind!=="message"||x.mapValue.message.typeName!=="google.protobuf.Value")break;return{typeName:F.typeName,fields:x}}case"google.protobuf.Value":{const x=F.oneofs.find(Ze=>Ze.name==="kind"),M=F.fields.find(Ze=>Ze.number==1&&Ze.oneof===x);if((M==null?void 0:M.fieldKind)!=="enum"||M.enum.typeName!=="google.protobuf.NullValue")return;const le=F.fields.find(Ze=>Ze.number==2&&Ze.fieldKind=="scalar"&&Ze.scalar===p.w.DOUBLE&&Ze.oneof===x),be=F.fields.find(Ze=>Ze.number==3&&Ze.fieldKind=="scalar"&&Ze.scalar===p.w.STRING&&Ze.oneof===x),Pe=F.fields.find(Ze=>Ze.number==4&&Ze.fieldKind=="scalar"&&Ze.scalar===p.w.BOOL&&Ze.oneof===x),je=F.fields.find(Ze=>Ze.number==5&&Ze.oneof===x);if((je==null?void 0:je.fieldKind)!=="message"||je.message.typeName!=="google.protobuf.Struct")return;const ct=F.fields.find(Ze=>Ze.number==6&&Ze.oneof===x);if((ct==null?void 0:ct.fieldKind)!=="message"||ct.message.typeName!=="google.protobuf.ListValue")return;if(x&&le&&be&&Pe)return{typeName:F.typeName,kind:x,nullValue:M,numberValue:le,stringValue:be,boolValue:Pe,structValue:je,listValue:ct};break}case"google.protobuf.ListValue":{const x=F.fields.find(M=>M.number==1&&M.repeated);if((x==null?void 0:x.fieldKind)!="message"||x.message.typeName!=="google.protobuf.Value")break;return{typeName:F.typeName,values:x}}case"google.protobuf.FieldMask":{const x=F.fields.find(M=>M.number==1&&M.fieldKind=="scalar"&&M.scalar===p.w.STRING&&M.repeated);if(x)return{typeName:F.typeName,paths:x};break}case"google.protobuf.DoubleValue":case"google.protobuf.FloatValue":case"google.protobuf.Int64Value":case"google.protobuf.UInt64Value":case"google.protobuf.Int32Value":case"google.protobuf.UInt32Value":case"google.protobuf.BoolValue":case"google.protobuf.StringValue":case"google.protobuf.BytesValue":{const x=F.fields.find(M=>M.number==1&&M.name=="value");if(!x||x.fieldKind!=="scalar")break;return{typeName:F.typeName,value:x}}}}const Z="@bufbuild/protobuf",j={packageName:"@bufbuild/protobuf",localName:v.r1,reifyWkt:Y,getUnwrappedFieldType:S.w,scalarDefaultValue:q.kY,safeIdentifier:v.GD,safeObjectProperty:v.ll,symbols:{proto2:{typeOnly:!1,privateImportPath:"./proto2.js",publicImportPath:Z},proto3:{typeOnly:!1,privateImportPath:"./proto3.js",publicImportPath:Z},Message:{typeOnly:!1,privateImportPath:"./message.js",publicImportPath:Z},PartialMessage:{typeOnly:!0,privateImportPath:"./message.js",publicImportPath:Z},PlainMessage:{typeOnly:!0,privateImportPath:"./message.js",publicImportPath:Z},FieldList:{typeOnly:!0,privateImportPath:"./field-list.js",publicImportPath:Z},MessageType:{typeOnly:!0,privateImportPath:"./message-type.js",publicImportPath:Z},BinaryReadOptions:{typeOnly:!0,privateImportPath:"./binary-format.js",publicImportPath:Z},BinaryWriteOptions:{typeOnly:!0,privateImportPath:"./binary-format.js",publicImportPath:Z},JsonReadOptions:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:Z},JsonWriteOptions:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:Z},JsonValue:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:Z},JsonObject:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:Z},protoDouble:{typeOnly:!1,privateImportPath:"./proto-double.js",publicImportPath:Z},protoInt64:{typeOnly:!1,privateImportPath:"./proto-int64.js",publicImportPath:Z},ScalarType:{typeOnly:!1,privateImportPath:"./field.js",publicImportPath:Z},LongType:{typeOnly:!1,privateImportPath:"./field.js",publicImportPath:Z},MethodKind:{typeOnly:!1,privateImportPath:"./service-type.js",publicImportPath:Z},MethodIdempotency:{typeOnly:!1,privateImportPath:"./service-type.js",publicImportPath:Z},IMessageTypeRegistry:{typeOnly:!0,privateImportPath:"./type-registry.js",publicImportPath:Z}},wktSourceFiles:["google/protobuf/compiler/plugin.proto","google/protobuf/any.proto","google/protobuf/api.proto","google/protobuf/descriptor.proto","google/protobuf/duration.proto","google/protobuf/empty.proto","google/protobuf/field_mask.proto","google/protobuf/source_context.proto","google/protobuf/struct.proto","google/protobuf/timestamp.proto","google/protobuf/type.proto","google/protobuf/wrappers.proto"]};var se=u(561),ve=u(328),G;(function(F){F[F.EDITION_UNKNOWN=0]="EDITION_UNKNOWN",F[F.EDITION_PROTO2=998]="EDITION_PROTO2",F[F.EDITION_PROTO3=999]="EDITION_PROTO3",F[F.EDITION_2023=1e3]="EDITION_2023",F[F.EDITION_1_TEST_ONLY=1]="EDITION_1_TEST_ONLY",F[F.EDITION_2_TEST_ONLY=2]="EDITION_2_TEST_ONLY",F[F.EDITION_99997_TEST_ONLY=99997]="EDITION_99997_TEST_ONLY",F[F.EDITION_99998_TEST_ONLY=99998]="EDITION_99998_TEST_ONLY",F[F.EDITION_99999_TEST_ONLY=99999]="EDITION_99999_TEST_ONLY"})(G||(G={})),E.util.setEnumType(G,"google.protobuf.Edition",[{no:0,name:"EDITION_UNKNOWN"},{no:998,name:"EDITION_PROTO2"},{no:999,name:"EDITION_PROTO3"},{no:1e3,name:"EDITION_2023"},{no:1,name:"EDITION_1_TEST_ONLY"},{no:2,name:"EDITION_2_TEST_ONLY"},{no:99997,name:"EDITION_99997_TEST_ONLY"},{no:99998,name:"EDITION_99998_TEST_ONLY"},{no:99999,name:"EDITION_99999_TEST_ONLY"}]);class ce extends se.v{constructor(x){super(),this.file=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new ce().fromBinary(x,M)}static fromJson(x,M){return new ce().fromJson(x,M)}static fromJsonString(x,M){return new ce().fromJsonString(x,M)}static equals(x,M){return E.util.equals(ce,x,M)}}ce.runtime=E,ce.typeName="google.protobuf.FileDescriptorSet",ce.fields=E.util.newFieldList(()=>[{no:1,name:"file",kind:"message",T:ge,repeated:!0}]);class ge extends se.v{constructor(x){super(),this.dependency=[],this.publicDependency=[],this.weakDependency=[],this.messageType=[],this.enumType=[],this.service=[],this.extension=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new ge().fromBinary(x,M)}static fromJson(x,M){return new ge().fromJson(x,M)}static fromJsonString(x,M){return new ge().fromJsonString(x,M)}static equals(x,M){return E.util.equals(ge,x,M)}}ge.runtime=E,ge.typeName="google.protobuf.FileDescriptorProto",ge.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"package",kind:"scalar",T:9,opt:!0},{no:3,name:"dependency",kind:"scalar",T:9,repeated:!0},{no:10,name:"public_dependency",kind:"scalar",T:5,repeated:!0},{no:11,name:"weak_dependency",kind:"scalar",T:5,repeated:!0},{no:4,name:"message_type",kind:"message",T:ue,repeated:!0},{no:5,name:"enum_type",kind:"message",T:We,repeated:!0},{no:6,name:"service",kind:"message",T:re,repeated:!0},{no:7,name:"extension",kind:"message",T:Ye,repeated:!0},{no:8,name:"options",kind:"message",T:J,opt:!0},{no:9,name:"source_code_info",kind:"message",T:at,opt:!0},{no:12,name:"syntax",kind:"scalar",T:9,opt:!0},{no:14,name:"edition",kind:"enum",T:E.getEnumType(G),opt:!0}]);class ue extends se.v{constructor(x){super(),this.field=[],this.extension=[],this.nestedType=[],this.enumType=[],this.extensionRange=[],this.oneofDecl=[],this.reservedRange=[],this.reservedName=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new ue().fromBinary(x,M)}static fromJson(x,M){return new ue().fromJson(x,M)}static fromJsonString(x,M){return new ue().fromJsonString(x,M)}static equals(x,M){return E.util.equals(ue,x,M)}}ue.runtime=E,ue.typeName="google.protobuf.DescriptorProto",ue.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"field",kind:"message",T:Ye,repeated:!0},{no:6,name:"extension",kind:"message",T:Ye,repeated:!0},{no:3,name:"nested_type",kind:"message",T:ue,repeated:!0},{no:4,name:"enum_type",kind:"message",T:We,repeated:!0},{no:5,name:"extension_range",kind:"message",T:xe,repeated:!0},{no:8,name:"oneof_decl",kind:"message",T:$e,repeated:!0},{no:7,name:"options",kind:"message",T:Le,opt:!0},{no:9,name:"reserved_range",kind:"message",T:Ne,repeated:!0},{no:10,name:"reserved_name",kind:"scalar",T:9,repeated:!0}]);class xe extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new xe().fromBinary(x,M)}static fromJson(x,M){return new xe().fromJson(x,M)}static fromJsonString(x,M){return new xe().fromJsonString(x,M)}static equals(x,M){return E.util.equals(xe,x,M)}}xe.runtime=E,xe.typeName="google.protobuf.DescriptorProto.ExtensionRange",xe.fields=E.util.newFieldList(()=>[{no:1,name:"start",kind:"scalar",T:5,opt:!0},{no:2,name:"end",kind:"scalar",T:5,opt:!0},{no:3,name:"options",kind:"message",T:Ve,opt:!0}]);class Ne extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new Ne().fromBinary(x,M)}static fromJson(x,M){return new Ne().fromJson(x,M)}static fromJsonString(x,M){return new Ne().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Ne,x,M)}}Ne.runtime=E,Ne.typeName="google.protobuf.DescriptorProto.ReservedRange",Ne.fields=E.util.newFieldList(()=>[{no:1,name:"start",kind:"scalar",T:5,opt:!0},{no:2,name:"end",kind:"scalar",T:5,opt:!0}]);class Ve extends se.v{constructor(x){super(),this.uninterpretedOption=[],this.declaration=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new Ve().fromBinary(x,M)}static fromJson(x,M){return new Ve().fromJson(x,M)}static fromJsonString(x,M){return new Ve().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Ve,x,M)}}Ve.runtime=E,Ve.typeName="google.protobuf.ExtensionRangeOptions",Ve.fields=E.util.newFieldList(()=>[{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0},{no:2,name:"declaration",kind:"message",T:Me,repeated:!0},{no:50,name:"features",kind:"message",T:Nt,opt:!0},{no:3,name:"verification",kind:"enum",T:E.getEnumType(Ke),opt:!0,default:Ke.UNVERIFIED}]);var Ke;(function(F){F[F.DECLARATION=0]="DECLARATION",F[F.UNVERIFIED=1]="UNVERIFIED"})(Ke||(Ke={})),E.util.setEnumType(Ke,"google.protobuf.ExtensionRangeOptions.VerificationState",[{no:0,name:"DECLARATION"},{no:1,name:"UNVERIFIED"}]);class Me extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new Me().fromBinary(x,M)}static fromJson(x,M){return new Me().fromJson(x,M)}static fromJsonString(x,M){return new Me().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Me,x,M)}}Me.runtime=E,Me.typeName="google.protobuf.ExtensionRangeOptions.Declaration",Me.fields=E.util.newFieldList(()=>[{no:1,name:"number",kind:"scalar",T:5,opt:!0},{no:2,name:"full_name",kind:"scalar",T:9,opt:!0},{no:3,name:"type",kind:"scalar",T:9,opt:!0},{no:5,name:"reserved",kind:"scalar",T:8,opt:!0},{no:6,name:"repeated",kind:"scalar",T:8,opt:!0}]);class Ye extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new Ye().fromBinary(x,M)}static fromJson(x,M){return new Ye().fromJson(x,M)}static fromJsonString(x,M){return new Ye().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Ye,x,M)}}Ye.runtime=E,Ye.typeName="google.protobuf.FieldDescriptorProto",Ye.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:3,name:"number",kind:"scalar",T:5,opt:!0},{no:4,name:"label",kind:"enum",T:E.getEnumType(ze),opt:!0},{no:5,name:"type",kind:"enum",T:E.getEnumType(ye),opt:!0},{no:6,name:"type_name",kind:"scalar",T:9,opt:!0},{no:2,name:"extendee",kind:"scalar",T:9,opt:!0},{no:7,name:"default_value",kind:"scalar",T:9,opt:!0},{no:9,name:"oneof_index",kind:"scalar",T:5,opt:!0},{no:10,name:"json_name",kind:"scalar",T:9,opt:!0},{no:8,name:"options",kind:"message",T:De,opt:!0},{no:17,name:"proto3_optional",kind:"scalar",T:8,opt:!0}]);var ye;(function(F){F[F.DOUBLE=1]="DOUBLE",F[F.FLOAT=2]="FLOAT",F[F.INT64=3]="INT64",F[F.UINT64=4]="UINT64",F[F.INT32=5]="INT32",F[F.FIXED64=6]="FIXED64",F[F.FIXED32=7]="FIXED32",F[F.BOOL=8]="BOOL",F[F.STRING=9]="STRING",F[F.GROUP=10]="GROUP",F[F.MESSAGE=11]="MESSAGE",F[F.BYTES=12]="BYTES",F[F.UINT32=13]="UINT32",F[F.ENUM=14]="ENUM",F[F.SFIXED32=15]="SFIXED32",F[F.SFIXED64=16]="SFIXED64",F[F.SINT32=17]="SINT32",F[F.SINT64=18]="SINT64"})(ye||(ye={})),E.util.setEnumType(ye,"google.protobuf.FieldDescriptorProto.Type",[{no:1,name:"TYPE_DOUBLE"},{no:2,name:"TYPE_FLOAT"},{no:3,name:"TYPE_INT64"},{no:4,name:"TYPE_UINT64"},{no:5,name:"TYPE_INT32"},{no:6,name:"TYPE_FIXED64"},{no:7,name:"TYPE_FIXED32"},{no:8,name:"TYPE_BOOL"},{no:9,name:"TYPE_STRING"},{no:10,name:"TYPE_GROUP"},{no:11,name:"TYPE_MESSAGE"},{no:12,name:"TYPE_BYTES"},{no:13,name:"TYPE_UINT32"},{no:14,name:"TYPE_ENUM"},{no:15,name:"TYPE_SFIXED32"},{no:16,name:"TYPE_SFIXED64"},{no:17,name:"TYPE_SINT32"},{no:18,name:"TYPE_SINT64"}]);var ze;(function(F){F[F.OPTIONAL=1]="OPTIONAL",F[F.REPEATED=3]="REPEATED",F[F.REQUIRED=2]="REQUIRED"})(ze||(ze={})),E.util.setEnumType(ze,"google.protobuf.FieldDescriptorProto.Label",[{no:1,name:"LABEL_OPTIONAL"},{no:3,name:"LABEL_REPEATED"},{no:2,name:"LABEL_REQUIRED"}]);class $e extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new $e().fromBinary(x,M)}static fromJson(x,M){return new $e().fromJson(x,M)}static fromJsonString(x,M){return new $e().fromJsonString(x,M)}static equals(x,M){return E.util.equals($e,x,M)}}$e.runtime=E,$e.typeName="google.protobuf.OneofDescriptorProto",$e.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"options",kind:"message",T:rt,opt:!0}]);class We extends se.v{constructor(x){super(),this.value=[],this.reservedRange=[],this.reservedName=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new We().fromBinary(x,M)}static fromJson(x,M){return new We().fromJson(x,M)}static fromJsonString(x,M){return new We().fromJsonString(x,M)}static equals(x,M){return E.util.equals(We,x,M)}}We.runtime=E,We.typeName="google.protobuf.EnumDescriptorProto",We.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"value",kind:"message",T:Be,repeated:!0},{no:3,name:"options",kind:"message",T:pt,opt:!0},{no:4,name:"reserved_range",kind:"message",T:dt,repeated:!0},{no:5,name:"reserved_name",kind:"scalar",T:9,repeated:!0}]);class dt extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new dt().fromBinary(x,M)}static fromJson(x,M){return new dt().fromJson(x,M)}static fromJsonString(x,M){return new dt().fromJsonString(x,M)}static equals(x,M){return E.util.equals(dt,x,M)}}dt.runtime=E,dt.typeName="google.protobuf.EnumDescriptorProto.EnumReservedRange",dt.fields=E.util.newFieldList(()=>[{no:1,name:"start",kind:"scalar",T:5,opt:!0},{no:2,name:"end",kind:"scalar",T:5,opt:!0}]);class Be extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new Be().fromBinary(x,M)}static fromJson(x,M){return new Be().fromJson(x,M)}static fromJsonString(x,M){return new Be().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Be,x,M)}}Be.runtime=E,Be.typeName="google.protobuf.EnumValueDescriptorProto",Be.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"number",kind:"scalar",T:5,opt:!0},{no:3,name:"options",kind:"message",T:xt,opt:!0}]);class re extends se.v{constructor(x){super(),this.method=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new re().fromBinary(x,M)}static fromJson(x,M){return new re().fromJson(x,M)}static fromJsonString(x,M){return new re().fromJsonString(x,M)}static equals(x,M){return E.util.equals(re,x,M)}}re.runtime=E,re.typeName="google.protobuf.ServiceDescriptorProto",re.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"method",kind:"message",T:ee,repeated:!0},{no:3,name:"options",kind:"message",T:et,opt:!0}]);class ee extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new ee().fromBinary(x,M)}static fromJson(x,M){return new ee().fromJson(x,M)}static fromJsonString(x,M){return new ee().fromJsonString(x,M)}static equals(x,M){return E.util.equals(ee,x,M)}}ee.runtime=E,ee.typeName="google.protobuf.MethodDescriptorProto",ee.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"input_type",kind:"scalar",T:9,opt:!0},{no:3,name:"output_type",kind:"scalar",T:9,opt:!0},{no:4,name:"options",kind:"message",T:vt,opt:!0},{no:5,name:"client_streaming",kind:"scalar",T:8,opt:!0,default:!1},{no:6,name:"server_streaming",kind:"scalar",T:8,opt:!0,default:!1}]);class J extends se.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new J().fromBinary(x,M)}static fromJson(x,M){return new J().fromJson(x,M)}static fromJsonString(x,M){return new J().fromJsonString(x,M)}static equals(x,M){return E.util.equals(J,x,M)}}J.runtime=E,J.typeName="google.protobuf.FileOptions",J.fields=E.util.newFieldList(()=>[{no:1,name:"java_package",kind:"scalar",T:9,opt:!0},{no:8,name:"java_outer_classname",kind:"scalar",T:9,opt:!0},{no:10,name:"java_multiple_files",kind:"scalar",T:8,opt:!0,default:!1},{no:20,name:"java_generate_equals_and_hash",kind:"scalar",T:8,opt:!0},{no:27,name:"java_string_check_utf8",kind:"scalar",T:8,opt:!0,default:!1},{no:9,name:"optimize_for",kind:"enum",T:E.getEnumType(Re),opt:!0,default:Re.SPEED},{no:11,name:"go_package",kind:"scalar",T:9,opt:!0},{no:16,name:"cc_generic_services",kind:"scalar",T:8,opt:!0,default:!1},{no:17,name:"java_generic_services",kind:"scalar",T:8,opt:!0,default:!1},{no:18,name:"py_generic_services",kind:"scalar",T:8,opt:!0,default:!1},{no:42,name:"php_generic_services",kind:"scalar",T:8,opt:!0,default:!1},{no:23,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:31,name:"cc_enable_arenas",kind:"scalar",T:8,opt:!0,default:!0},{no:36,name:"objc_class_prefix",kind:"scalar",T:9,opt:!0},{no:37,name:"csharp_namespace",kind:"scalar",T:9,opt:!0},{no:39,name:"swift_prefix",kind:"scalar",T:9,opt:!0},{no:40,name:"php_class_prefix",kind:"scalar",T:9,opt:!0},{no:41,name:"php_namespace",kind:"scalar",T:9,opt:!0},{no:44,name:"php_metadata_namespace",kind:"scalar",T:9,opt:!0},{no:45,name:"ruby_package",kind:"scalar",T:9,opt:!0},{no:50,name:"features",kind:"message",T:Nt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);var Re;(function(F){F[F.SPEED=1]="SPEED",F[F.CODE_SIZE=2]="CODE_SIZE",F[F.LITE_RUNTIME=3]="LITE_RUNTIME"})(Re||(Re={})),E.util.setEnumType(Re,"google.protobuf.FileOptions.OptimizeMode",[{no:1,name:"SPEED"},{no:2,name:"CODE_SIZE"},{no:3,name:"LITE_RUNTIME"}]);class Le extends se.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new Le().fromBinary(x,M)}static fromJson(x,M){return new Le().fromJson(x,M)}static fromJsonString(x,M){return new Le().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Le,x,M)}}Le.runtime=E,Le.typeName="google.protobuf.MessageOptions",Le.fields=E.util.newFieldList(()=>[{no:1,name:"message_set_wire_format",kind:"scalar",T:8,opt:!0,default:!1},{no:2,name:"no_standard_descriptor_accessor",kind:"scalar",T:8,opt:!0,default:!1},{no:3,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:7,name:"map_entry",kind:"scalar",T:8,opt:!0},{no:11,name:"deprecated_legacy_json_field_conflicts",kind:"scalar",T:8,opt:!0},{no:12,name:"features",kind:"message",T:Nt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);class De extends se.v{constructor(x){super(),this.targets=[],this.editionDefaults=[],this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new De().fromBinary(x,M)}static fromJson(x,M){return new De().fromJson(x,M)}static fromJsonString(x,M){return new De().fromJsonString(x,M)}static equals(x,M){return E.util.equals(De,x,M)}}De.runtime=E,De.typeName="google.protobuf.FieldOptions",De.fields=E.util.newFieldList(()=>[{no:1,name:"ctype",kind:"enum",T:E.getEnumType(ie),opt:!0,default:ie.STRING},{no:2,name:"packed",kind:"scalar",T:8,opt:!0},{no:6,name:"jstype",kind:"enum",T:E.getEnumType(fe),opt:!0,default:fe.JS_NORMAL},{no:5,name:"lazy",kind:"scalar",T:8,opt:!0,default:!1},{no:15,name:"unverified_lazy",kind:"scalar",T:8,opt:!0,default:!1},{no:3,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:10,name:"weak",kind:"scalar",T:8,opt:!0,default:!1},{no:16,name:"debug_redact",kind:"scalar",T:8,opt:!0,default:!1},{no:17,name:"retention",kind:"enum",T:E.getEnumType(de),opt:!0},{no:19,name:"targets",kind:"enum",T:E.getEnumType(Oe),repeated:!0},{no:20,name:"edition_defaults",kind:"message",T:Te,repeated:!0},{no:21,name:"features",kind:"message",T:Nt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);var ie;(function(F){F[F.STRING=0]="STRING",F[F.CORD=1]="CORD",F[F.STRING_PIECE=2]="STRING_PIECE"})(ie||(ie={})),E.util.setEnumType(ie,"google.protobuf.FieldOptions.CType",[{no:0,name:"STRING"},{no:1,name:"CORD"},{no:2,name:"STRING_PIECE"}]);var fe;(function(F){F[F.JS_NORMAL=0]="JS_NORMAL",F[F.JS_STRING=1]="JS_STRING",F[F.JS_NUMBER=2]="JS_NUMBER"})(fe||(fe={})),E.util.setEnumType(fe,"google.protobuf.FieldOptions.JSType",[{no:0,name:"JS_NORMAL"},{no:1,name:"JS_STRING"},{no:2,name:"JS_NUMBER"}]);var de;(function(F){F[F.RETENTION_UNKNOWN=0]="RETENTION_UNKNOWN",F[F.RETENTION_RUNTIME=1]="RETENTION_RUNTIME",F[F.RETENTION_SOURCE=2]="RETENTION_SOURCE"})(de||(de={})),E.util.setEnumType(de,"google.protobuf.FieldOptions.OptionRetention",[{no:0,name:"RETENTION_UNKNOWN"},{no:1,name:"RETENTION_RUNTIME"},{no:2,name:"RETENTION_SOURCE"}]);var Oe;(function(F){F[F.TARGET_TYPE_UNKNOWN=0]="TARGET_TYPE_UNKNOWN",F[F.TARGET_TYPE_FILE=1]="TARGET_TYPE_FILE",F[F.TARGET_TYPE_EXTENSION_RANGE=2]="TARGET_TYPE_EXTENSION_RANGE",F[F.TARGET_TYPE_MESSAGE=3]="TARGET_TYPE_MESSAGE",F[F.TARGET_TYPE_FIELD=4]="TARGET_TYPE_FIELD",F[F.TARGET_TYPE_ONEOF=5]="TARGET_TYPE_ONEOF",F[F.TARGET_TYPE_ENUM=6]="TARGET_TYPE_ENUM",F[F.TARGET_TYPE_ENUM_ENTRY=7]="TARGET_TYPE_ENUM_ENTRY",F[F.TARGET_TYPE_SERVICE=8]="TARGET_TYPE_SERVICE",F[F.TARGET_TYPE_METHOD=9]="TARGET_TYPE_METHOD"})(Oe||(Oe={})),E.util.setEnumType(Oe,"google.protobuf.FieldOptions.OptionTargetType",[{no:0,name:"TARGET_TYPE_UNKNOWN"},{no:1,name:"TARGET_TYPE_FILE"},{no:2,name:"TARGET_TYPE_EXTENSION_RANGE"},{no:3,name:"TARGET_TYPE_MESSAGE"},{no:4,name:"TARGET_TYPE_FIELD"},{no:5,name:"TARGET_TYPE_ONEOF"},{no:6,name:"TARGET_TYPE_ENUM"},{no:7,name:"TARGET_TYPE_ENUM_ENTRY"},{no:8,name:"TARGET_TYPE_SERVICE"},{no:9,name:"TARGET_TYPE_METHOD"}]);class Te extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new Te().fromBinary(x,M)}static fromJson(x,M){return new Te().fromJson(x,M)}static fromJsonString(x,M){return new Te().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Te,x,M)}}Te.runtime=E,Te.typeName="google.protobuf.FieldOptions.EditionDefault",Te.fields=E.util.newFieldList(()=>[{no:3,name:"edition",kind:"enum",T:E.getEnumType(G),opt:!0},{no:2,name:"value",kind:"scalar",T:9,opt:!0}]);class rt extends se.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new rt().fromBinary(x,M)}static fromJson(x,M){return new rt().fromJson(x,M)}static fromJsonString(x,M){return new rt().fromJsonString(x,M)}static equals(x,M){return E.util.equals(rt,x,M)}}rt.runtime=E,rt.typeName="google.protobuf.OneofOptions",rt.fields=E.util.newFieldList(()=>[{no:1,name:"features",kind:"message",T:Nt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);class pt extends se.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new pt().fromBinary(x,M)}static fromJson(x,M){return new pt().fromJson(x,M)}static fromJsonString(x,M){return new pt().fromJsonString(x,M)}static equals(x,M){return E.util.equals(pt,x,M)}}pt.runtime=E,pt.typeName="google.protobuf.EnumOptions",pt.fields=E.util.newFieldList(()=>[{no:2,name:"allow_alias",kind:"scalar",T:8,opt:!0},{no:3,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:6,name:"deprecated_legacy_json_field_conflicts",kind:"scalar",T:8,opt:!0},{no:7,name:"features",kind:"message",T:Nt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);class xt extends se.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new xt().fromBinary(x,M)}static fromJson(x,M){return new xt().fromJson(x,M)}static fromJsonString(x,M){return new xt().fromJsonString(x,M)}static equals(x,M){return E.util.equals(xt,x,M)}}xt.runtime=E,xt.typeName="google.protobuf.EnumValueOptions",xt.fields=E.util.newFieldList(()=>[{no:1,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:2,name:"features",kind:"message",T:Nt,opt:!0},{no:3,name:"debug_redact",kind:"scalar",T:8,opt:!0,default:!1},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);class et extends se.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new et().fromBinary(x,M)}static fromJson(x,M){return new et().fromJson(x,M)}static fromJsonString(x,M){return new et().fromJsonString(x,M)}static equals(x,M){return E.util.equals(et,x,M)}}et.runtime=E,et.typeName="google.protobuf.ServiceOptions",et.fields=E.util.newFieldList(()=>[{no:34,name:"features",kind:"message",T:Nt,opt:!0},{no:33,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);class vt extends se.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new vt().fromBinary(x,M)}static fromJson(x,M){return new vt().fromJson(x,M)}static fromJsonString(x,M){return new vt().fromJsonString(x,M)}static equals(x,M){return E.util.equals(vt,x,M)}}vt.runtime=E,vt.typeName="google.protobuf.MethodOptions",vt.fields=E.util.newFieldList(()=>[{no:33,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:34,name:"idempotency_level",kind:"enum",T:E.getEnumType(qe),opt:!0,default:qe.IDEMPOTENCY_UNKNOWN},{no:35,name:"features",kind:"message",T:Nt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);var qe;(function(F){F[F.IDEMPOTENCY_UNKNOWN=0]="IDEMPOTENCY_UNKNOWN",F[F.NO_SIDE_EFFECTS=1]="NO_SIDE_EFFECTS",F[F.IDEMPOTENT=2]="IDEMPOTENT"})(qe||(qe={})),E.util.setEnumType(qe,"google.protobuf.MethodOptions.IdempotencyLevel",[{no:0,name:"IDEMPOTENCY_UNKNOWN"},{no:1,name:"NO_SIDE_EFFECTS"},{no:2,name:"IDEMPOTENT"}]);class it extends se.v{constructor(x){super(),this.name=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new it().fromBinary(x,M)}static fromJson(x,M){return new it().fromJson(x,M)}static fromJsonString(x,M){return new it().fromJsonString(x,M)}static equals(x,M){return E.util.equals(it,x,M)}}it.runtime=E,it.typeName="google.protobuf.UninterpretedOption",it.fields=E.util.newFieldList(()=>[{no:2,name:"name",kind:"message",T:Et,repeated:!0},{no:3,name:"identifier_value",kind:"scalar",T:9,opt:!0},{no:4,name:"positive_int_value",kind:"scalar",T:4,opt:!0},{no:5,name:"negative_int_value",kind:"scalar",T:3,opt:!0},{no:6,name:"double_value",kind:"scalar",T:1,opt:!0},{no:7,name:"string_value",kind:"scalar",T:12,opt:!0},{no:8,name:"aggregate_value",kind:"scalar",T:9,opt:!0}]);class Et extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new Et().fromBinary(x,M)}static fromJson(x,M){return new Et().fromJson(x,M)}static fromJsonString(x,M){return new Et().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Et,x,M)}}Et.runtime=E,Et.typeName="google.protobuf.UninterpretedOption.NamePart",Et.fields=E.util.newFieldList(()=>[{no:1,name:"name_part",kind:"scalar",T:9},{no:2,name:"is_extension",kind:"scalar",T:8}]);class Nt extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new Nt().fromBinary(x,M)}static fromJson(x,M){return new Nt().fromJson(x,M)}static fromJsonString(x,M){return new Nt().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Nt,x,M)}}Nt.runtime=E,Nt.typeName="google.protobuf.FeatureSet",Nt.fields=E.util.newFieldList(()=>[{no:1,name:"field_presence",kind:"enum",T:E.getEnumType(on),opt:!0},{no:2,name:"enum_type",kind:"enum",T:E.getEnumType(dn),opt:!0},{no:3,name:"repeated_field_encoding",kind:"enum",T:E.getEnumType(pn),opt:!0},{no:4,name:"utf8_validation",kind:"enum",T:E.getEnumType(zn),opt:!0},{no:5,name:"message_encoding",kind:"enum",T:E.getEnumType(Ee),opt:!0},{no:6,name:"json_format",kind:"enum",T:E.getEnumType(_e),opt:!0}]);var on;(function(F){F[F.FIELD_PRESENCE_UNKNOWN=0]="FIELD_PRESENCE_UNKNOWN",F[F.EXPLICIT=1]="EXPLICIT",F[F.IMPLICIT=2]="IMPLICIT",F[F.LEGACY_REQUIRED=3]="LEGACY_REQUIRED"})(on||(on={})),E.util.setEnumType(on,"google.protobuf.FeatureSet.FieldPresence",[{no:0,name:"FIELD_PRESENCE_UNKNOWN"},{no:1,name:"EXPLICIT"},{no:2,name:"IMPLICIT"},{no:3,name:"LEGACY_REQUIRED"}]);var dn;(function(F){F[F.ENUM_TYPE_UNKNOWN=0]="ENUM_TYPE_UNKNOWN",F[F.OPEN=1]="OPEN",F[F.CLOSED=2]="CLOSED"})(dn||(dn={})),E.util.setEnumType(dn,"google.protobuf.FeatureSet.EnumType",[{no:0,name:"ENUM_TYPE_UNKNOWN"},{no:1,name:"OPEN"},{no:2,name:"CLOSED"}]);var pn;(function(F){F[F.REPEATED_FIELD_ENCODING_UNKNOWN=0]="REPEATED_FIELD_ENCODING_UNKNOWN",F[F.PACKED=1]="PACKED",F[F.EXPANDED=2]="EXPANDED"})(pn||(pn={})),E.util.setEnumType(pn,"google.protobuf.FeatureSet.RepeatedFieldEncoding",[{no:0,name:"REPEATED_FIELD_ENCODING_UNKNOWN"},{no:1,name:"PACKED"},{no:2,name:"EXPANDED"}]);var zn;(function(F){F[F.UTF8_VALIDATION_UNKNOWN=0]="UTF8_VALIDATION_UNKNOWN",F[F.NONE=1]="NONE",F[F.VERIFY=2]="VERIFY"})(zn||(zn={})),E.util.setEnumType(zn,"google.protobuf.FeatureSet.Utf8Validation",[{no:0,name:"UTF8_VALIDATION_UNKNOWN"},{no:1,name:"NONE"},{no:2,name:"VERIFY"}]);var Ee;(function(F){F[F.MESSAGE_ENCODING_UNKNOWN=0]="MESSAGE_ENCODING_UNKNOWN",F[F.LENGTH_PREFIXED=1]="LENGTH_PREFIXED",F[F.DELIMITED=2]="DELIMITED"})(Ee||(Ee={})),E.util.setEnumType(Ee,"google.protobuf.FeatureSet.MessageEncoding",[{no:0,name:"MESSAGE_ENCODING_UNKNOWN"},{no:1,name:"LENGTH_PREFIXED"},{no:2,name:"DELIMITED"}]);var _e;(function(F){F[F.JSON_FORMAT_UNKNOWN=0]="JSON_FORMAT_UNKNOWN",F[F.ALLOW=1]="ALLOW",F[F.LEGACY_BEST_EFFORT=2]="LEGACY_BEST_EFFORT"})(_e||(_e={})),E.util.setEnumType(_e,"google.protobuf.FeatureSet.JsonFormat",[{no:0,name:"JSON_FORMAT_UNKNOWN"},{no:1,name:"ALLOW"},{no:2,name:"LEGACY_BEST_EFFORT"}]);class pe extends se.v{constructor(x){super(),this.defaults=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new pe().fromBinary(x,M)}static fromJson(x,M){return new pe().fromJson(x,M)}static fromJsonString(x,M){return new pe().fromJsonString(x,M)}static equals(x,M){return E.util.equals(pe,x,M)}}pe.runtime=E,pe.typeName="google.protobuf.FeatureSetDefaults",pe.fields=E.util.newFieldList(()=>[{no:1,name:"defaults",kind:"message",T:lt,repeated:!0},{no:4,name:"minimum_edition",kind:"enum",T:E.getEnumType(G),opt:!0},{no:5,name:"maximum_edition",kind:"enum",T:E.getEnumType(G),opt:!0}]);class lt extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new lt().fromBinary(x,M)}static fromJson(x,M){return new lt().fromJson(x,M)}static fromJsonString(x,M){return new lt().fromJsonString(x,M)}static equals(x,M){return E.util.equals(lt,x,M)}}lt.runtime=E,lt.typeName="google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault",lt.fields=E.util.newFieldList(()=>[{no:3,name:"edition",kind:"enum",T:E.getEnumType(G),opt:!0},{no:2,name:"features",kind:"message",T:Nt,opt:!0}]);class at extends se.v{constructor(x){super(),this.location=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new at().fromBinary(x,M)}static fromJson(x,M){return new at().fromJson(x,M)}static fromJsonString(x,M){return new at().fromJsonString(x,M)}static equals(x,M){return E.util.equals(at,x,M)}}at.runtime=E,at.typeName="google.protobuf.SourceCodeInfo",at.fields=E.util.newFieldList(()=>[{no:1,name:"location",kind:"message",T:Mt,repeated:!0}]);class Mt extends se.v{constructor(x){super(),this.path=[],this.span=[],this.leadingDetachedComments=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new Mt().fromBinary(x,M)}static fromJson(x,M){return new Mt().fromJson(x,M)}static fromJsonString(x,M){return new Mt().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Mt,x,M)}}Mt.runtime=E,Mt.typeName="google.protobuf.SourceCodeInfo.Location",Mt.fields=E.util.newFieldList(()=>[{no:1,name:"path",kind:"scalar",T:5,repeated:!0,packed:!0},{no:2,name:"span",kind:"scalar",T:5,repeated:!0,packed:!0},{no:3,name:"leading_comments",kind:"scalar",T:9,opt:!0},{no:4,name:"trailing_comments",kind:"scalar",T:9,opt:!0},{no:6,name:"leading_detached_comments",kind:"scalar",T:9,repeated:!0}]);class $t extends se.v{constructor(x){super(),this.annotation=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new $t().fromBinary(x,M)}static fromJson(x,M){return new $t().fromJson(x,M)}static fromJsonString(x,M){return new $t().fromJsonString(x,M)}static equals(x,M){return E.util.equals($t,x,M)}}$t.runtime=E,$t.typeName="google.protobuf.GeneratedCodeInfo",$t.fields=E.util.newFieldList(()=>[{no:1,name:"annotation",kind:"message",T:It,repeated:!0}]);class It extends se.v{constructor(x){super(),this.path=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new It().fromBinary(x,M)}static fromJson(x,M){return new It().fromJson(x,M)}static fromJsonString(x,M){return new It().fromJsonString(x,M)}static equals(x,M){return E.util.equals(It,x,M)}}It.runtime=E,It.typeName="google.protobuf.GeneratedCodeInfo.Annotation",It.fields=E.util.newFieldList(()=>[{no:1,name:"path",kind:"scalar",T:5,repeated:!0,packed:!0},{no:2,name:"source_file",kind:"scalar",T:9,opt:!0},{no:3,name:"begin",kind:"scalar",T:5,opt:!0},{no:4,name:"end",kind:"scalar",T:5,opt:!0},{no:5,name:"semantic",kind:"enum",T:E.getEnumType(Ct),opt:!0}]);var Ct;(function(F){F[F.NONE=0]="NONE",F[F.SET=1]="SET",F[F.ALIAS=2]="ALIAS"})(Ct||(Ct={})),E.util.setEnumType(Ct,"google.protobuf.GeneratedCodeInfo.Annotation.Semantic",[{no:0,name:"NONE"},{no:1,name:"SET"},{no:2,name:"ALIAS"}]);function Zt(F,x){const M=F.values.find(le=>le.name===x);return(0,k.hu)(M,`cannot parse ${F.name} default value: ${x}`),M.number}function Ie(F,x){switch(F){case p.w.STRING:return x;case p.w.BYTES:{const M=we(x);if(M===!1)throw new Error(`cannot parse ${p.w[F]} default value: ${x}`);return M}case p.w.INT64:case p.w.SFIXED64:case p.w.SINT64:return R.q.parse(x);case p.w.UINT64:case p.w.FIXED64:return R.q.uParse(x);case p.w.DOUBLE:case p.w.FLOAT:switch(x){case"inf":return Number.POSITIVE_INFINITY;case"-inf":return Number.NEGATIVE_INFINITY;case"nan":return Number.NaN;default:return parseFloat(x)}case p.w.BOOL:return x==="true";case p.w.INT32:case p.w.UINT32:case p.w.SINT32:case p.w.FIXED32:case p.w.SFIXED32:return parseInt(x,10)}}function we(F){const x=[],M={tail:F,c:"",next(){return this.tail.length==0?!1:(this.c=this.tail[0],this.tail=this.tail.substring(1),!0)},take(le){if(this.tail.length>=le){const be=this.tail.substring(0,le);return this.tail=this.tail.substring(le),be}return!1}};for(;M.next();)switch(M.c){case"\\":if(M.next())switch(M.c){case"\\":x.push(M.c.charCodeAt(0));break;case"b":x.push(8);break;case"f":x.push(12);break;case"n":x.push(10);break;case"r":x.push(13);break;case"t":x.push(9);break;case"v":x.push(11);break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":{const le=M.c,be=M.take(2);if(be===!1)return!1;const Pe=parseInt(le+be,8);if(isNaN(Pe))return!1;x.push(Pe);break}case"x":{const le=M.c,be=M.take(2);if(be===!1)return!1;const Pe=parseInt(le+be,16);if(isNaN(Pe))return!1;x.push(Pe);break}case"u":{const le=M.c,be=M.take(4);if(be===!1)return!1;const Pe=parseInt(le+be,16);if(isNaN(Pe))return!1;const je=new Uint8Array(4);new DataView(je.buffer).setInt32(0,Pe,!0),x.push(je[0],je[1],je[2],je[3]);break}case"U":{const le=M.c,be=M.take(8);if(be===!1)return!1;const Pe=R.q.uEnc(le+be),je=new Uint8Array(8),ct=new DataView(je.buffer);ct.setInt32(0,Pe.lo,!0),ct.setInt32(4,Pe.hi,!0),x.push(je[0],je[1],je[2],je[3],je[4],je[5],je[6],je[7]);break}}break;default:x.push(M.c.charCodeAt(0))}return new Uint8Array(x)}const Qe=pe.fromBinary(B.W.dec("ChESDAgBEAIYAiABKAEwAhjmBwoREgwIAhABGAEgAigBMAEY5wcKERIMCAEQARgBIAIoATABGOgHIOYHKOgH"));function ot(F){const x=F.minimumEdition,M=F.maximumEdition;if(x===void 0||M===void 0||F.defaults.some(be=>be.edition===void 0))throw new Error("Invalid FeatureSetDefaults");const le=new Map;return(be,...Pe)=>{var je,ct;let Ze=le.get(be);if(Ze===void 0){if(bebe||Pt!==void 0&&Pt.e>Sr||(Pt={e:Sr,f:(ct=On.features)!==null&&ct!==void 0?ct:new Nt})}if(Pt===void 0)throw new Error(`No valid default found for edition ${G[be]}`);Ze=Pt.f.toBinary(),le.set(be,Ze)}const Ot=Nt.fromBinary(Ze);for(const Pt of Pe)Pt!==void 0&&Ot.fromBinary(Pt.toBinary());if(!rn(Ot))throw new Error(`Invalid FeatureSet for edition ${G[be]}`);return Ot}}function rn(F){for(const x of Nt.fields.list()){const M=F[x.localName];if(M===void 0||x.kind=="enum"&&M===0)return!1}return!0}function Wt(F,x){var M;const le={enums:new Map,messages:new Map,services:new Map,extensions:new Map,mapEntries:new Map,resolveFeatures:ot((M=x==null?void 0:x.featureSetDefaults)!==null&&M!==void 0?M:Qe)},Pe=(F instanceof ce?F.file:F instanceof Uint8Array?ce.fromBinary(F).file:F).map(je=>mn(je,le));return Object.assign({files:Pe},le)}function mn(F,x){var M,le;(0,k.hu)(F.name,"invalid FileDescriptorProto: missing name");const be=Object.assign(Object.assign({kind:"file",proto:F,deprecated:(le=(M=F.options)===null||M===void 0?void 0:M.deprecated)!==null&&le!==void 0?le:!1},bn(F.syntax,F.edition)),{name:F.name.replace(/\.proto/,""),enums:[],messages:[],extensions:[],services:[],toString(){return`file ${this.proto.name}`},getSyntaxComments(){return io(this.proto.sourceCodeInfo,[di.FileDescriptorProto_Syntax])},getPackageComments(){return io(this.proto.sourceCodeInfo,[di.FileDescriptorProto_Package])},getFeatures(){var Pe;return x.resolveFeatures(this.edition,(Pe=this.proto.options)===null||Pe===void 0?void 0:Pe.features)}});x.mapEntries.clear();for(const Pe of F.enumType)Ce(Pe,be,void 0,x);for(const Pe of F.messageType)mt(Pe,be,void 0,x);for(const Pe of F.service)Dt(Pe,be,x);nr(be,x);for(const Pe of x.mapEntries.values())Ue(Pe,x);for(const Pe of be.messages)Ue(Pe,x),nr(Pe,x);return x.mapEntries.clear(),be}function nr(F,x){switch(F.kind){case"file":for(const M of F.proto.extension){const le=Kt(M,F,void 0,x);F.extensions.push(le),x.extensions.set(le.typeName,le)}break;case"message":for(const M of F.proto.extension){const le=Kt(M,F.file,F,x);F.nestedExtensions.push(le),x.extensions.set(le.typeName,le)}for(const M of F.nestedMessages)nr(M,x);break}}function Ue(F,x){const M=F.proto.oneofDecl.map(be=>Mn(be,F,x)),le=new Set;for(const be of F.proto.field){const Pe=Gr(be,M),je=Dn(be,F.file,F,Pe,x);F.fields.push(je),Pe===void 0?F.members.push(je):(Pe.fields.push(je),le.has(Pe)||(le.add(Pe),F.members.push(Pe)))}for(const be of M.filter(Pe=>le.has(Pe)))F.oneofs.push(be);for(const be of F.nestedMessages)Ue(be,x)}function Ce(F,x,M,le){var be,Pe,je;(0,k.hu)(F.name,"invalid EnumDescriptorProto: missing name");const ct={kind:"enum",proto:F,deprecated:(Pe=(be=F.options)===null||be===void 0?void 0:be.deprecated)!==null&&Pe!==void 0?Pe:!1,file:x,parent:M,name:F.name,typeName:Wn(F,M,x),values:[],sharedPrefix:(0,v.Sm)(F.name,F.value.map(Ze=>{var Ot;return(Ot=Ze.name)!==null&&Ot!==void 0?Ot:""})),toString(){return`enum ${this.typeName}`},getComments(){const Ze=this.parent?[...this.parent.getComments().sourcePath,di.DescriptorProto_EnumType,this.parent.proto.enumType.indexOf(this.proto)]:[di.FileDescriptorProto_EnumType,this.file.proto.enumType.indexOf(this.proto)];return io(x.proto.sourceCodeInfo,Ze)},getFeatures(){var Ze,Ot,Pt;const On=(Ot=(Ze=this.parent)===null||Ze===void 0?void 0:Ze.getFeatures())!==null&&Ot!==void 0?Ot:this.file.getFeatures();return le.resolveFeatures(this.file.edition,On,(Pt=this.proto.options)===null||Pt===void 0?void 0:Pt.features)}};le.enums.set(ct.typeName,ct),F.value.forEach(Ze=>{var Ot,Pt;(0,k.hu)(Ze.name,"invalid EnumValueDescriptorProto: missing name"),(0,k.hu)(Ze.number!==void 0,"invalid EnumValueDescriptorProto: missing number"),ct.values.push({kind:"enum_value",proto:Ze,deprecated:(Pt=(Ot=Ze.options)===null||Ot===void 0?void 0:Ot.deprecated)!==null&&Pt!==void 0?Pt:!1,parent:ct,name:Ze.name,number:Ze.number,toString(){return`enum value ${ct.typeName}.${this.name}`},declarationString(){var On;let Sr=`${this.name} = ${this.number}`;return((On=this.proto.options)===null||On===void 0?void 0:On.deprecated)===!0&&(Sr+=" [deprecated = true]"),Sr},getComments(){const On=[...this.parent.getComments().sourcePath,di.EnumDescriptorProto_Value,this.parent.proto.value.indexOf(this.proto)];return io(x.proto.sourceCodeInfo,On)},getFeatures(){var On;return le.resolveFeatures(this.parent.file.edition,this.parent.getFeatures(),(On=this.proto.options)===null||On===void 0?void 0:On.features)}})}),((je=M==null?void 0:M.nestedEnums)!==null&&je!==void 0?je:x.enums).push(ct)}function mt(F,x,M,le){var be,Pe,je,ct;(0,k.hu)(F.name,"invalid DescriptorProto: missing name");const Ze={kind:"message",proto:F,deprecated:(Pe=(be=F.options)===null||be===void 0?void 0:be.deprecated)!==null&&Pe!==void 0?Pe:!1,file:x,parent:M,name:F.name,typeName:Wn(F,M,x),fields:[],oneofs:[],members:[],nestedEnums:[],nestedMessages:[],nestedExtensions:[],toString(){return`message ${this.typeName}`},getComments(){const Ot=this.parent?[...this.parent.getComments().sourcePath,di.DescriptorProto_NestedType,this.parent.proto.nestedType.indexOf(this.proto)]:[di.FileDescriptorProto_MessageType,this.file.proto.messageType.indexOf(this.proto)];return io(x.proto.sourceCodeInfo,Ot)},getFeatures(){var Ot,Pt,On;const Sr=(Pt=(Ot=this.parent)===null||Ot===void 0?void 0:Ot.getFeatures())!==null&&Pt!==void 0?Pt:this.file.getFeatures();return le.resolveFeatures(this.file.edition,Sr,(On=this.proto.options)===null||On===void 0?void 0:On.features)}};((je=F.options)===null||je===void 0?void 0:je.mapEntry)===!0?le.mapEntries.set(Ze.typeName,Ze):(((ct=M==null?void 0:M.nestedMessages)!==null&&ct!==void 0?ct:x.messages).push(Ze),le.messages.set(Ze.typeName,Ze));for(const Ot of F.enumType)Ce(Ot,x,Ze,le);for(const Ot of F.nestedType)mt(Ot,x,Ze,le)}function Dt(F,x,M){var le,be;(0,k.hu)(F.name,"invalid ServiceDescriptorProto: missing name");const Pe={kind:"service",proto:F,deprecated:(be=(le=F.options)===null||le===void 0?void 0:le.deprecated)!==null&&be!==void 0?be:!1,file:x,name:F.name,typeName:Wn(F,void 0,x),methods:[],toString(){return`service ${this.typeName}`},getComments(){const je=[di.FileDescriptorProto_Service,this.file.proto.service.indexOf(this.proto)];return io(x.proto.sourceCodeInfo,je)},getFeatures(){var je;return M.resolveFeatures(this.file.edition,this.file.getFeatures(),(je=this.proto.options)===null||je===void 0?void 0:je.features)}};x.services.push(Pe),M.services.set(Pe.typeName,Pe);for(const je of F.method)Pe.methods.push(tn(je,Pe,M))}function tn(F,x,M){var le,be,Pe;(0,k.hu)(F.name,"invalid MethodDescriptorProto: missing name"),(0,k.hu)(F.inputType,"invalid MethodDescriptorProto: missing input_type"),(0,k.hu)(F.outputType,"invalid MethodDescriptorProto: missing output_type");let je;F.clientStreaming===!0&&F.serverStreaming===!0?je=ve.t.BiDiStreaming:F.clientStreaming===!0?je=ve.t.ClientStreaming:F.serverStreaming===!0?je=ve.t.ServerStreaming:je=ve.t.Unary;let ct;switch((le=F.options)===null||le===void 0?void 0:le.idempotencyLevel){case qe.IDEMPOTENT:ct=ve.w.Idempotent;break;case qe.NO_SIDE_EFFECTS:ct=ve.w.NoSideEffects;break;case qe.IDEMPOTENCY_UNKNOWN:case void 0:ct=void 0;break}const Ze=M.messages.get(Qn(F.inputType)),Ot=M.messages.get(Qn(F.outputType));(0,k.hu)(Ze,`invalid MethodDescriptorProto: input_type ${F.inputType} not found`),(0,k.hu)(Ot,`invalid MethodDescriptorProto: output_type ${F.inputType} not found`);const Pt=F.name;return{kind:"rpc",proto:F,deprecated:(Pe=(be=F.options)===null||be===void 0?void 0:be.deprecated)!==null&&Pe!==void 0?Pe:!1,parent:x,name:Pt,methodKind:je,input:Ze,output:Ot,idempotency:ct,toString(){return`rpc ${x.typeName}.${Pt}`},getComments(){const On=[...this.parent.getComments().sourcePath,di.ServiceDescriptorProto_Method,this.parent.proto.method.indexOf(this.proto)];return io(x.file.proto.sourceCodeInfo,On)},getFeatures(){var On;return M.resolveFeatures(this.parent.file.edition,this.parent.getFeatures(),(On=this.proto.options)===null||On===void 0?void 0:On.features)}}}function Mn(F,x,M){return(0,k.hu)(F.name,"invalid OneofDescriptorProto: missing name"),{kind:"oneof",proto:F,deprecated:!1,parent:x,fields:[],name:F.name,toString(){return`oneof ${x.typeName}.${this.name}`},getComments(){const le=[...this.parent.getComments().sourcePath,di.DescriptorProto_OneofDecl,this.parent.proto.oneofDecl.indexOf(this.proto)];return io(x.file.proto.sourceCodeInfo,le)},getFeatures(){var le;return M.resolveFeatures(this.parent.file.edition,this.parent.getFeatures(),(le=this.proto.options)===null||le===void 0?void 0:le.features)}}}function Dn(F,x,M,le,be){var Pe,je,ct;(0,k.hu)(F.name,"invalid FieldDescriptorProto: missing name"),(0,k.hu)(F.number,"invalid FieldDescriptorProto: missing number"),(0,k.hu)(F.type,"invalid FieldDescriptorProto: missing type");const Ze={proto:F,deprecated:(je=(Pe=F.options)===null||Pe===void 0?void 0:Pe.deprecated)!==null&&je!==void 0?je:!1,name:F.name,number:F.number,parent:M,oneof:le,optional:En(F,x.syntax),packedByDefault:An(x,F,be.resolveFeatures),packed:ua(x,M,F,be.resolveFeatures),jsonName:F.jsonName===(0,v.x1)(F.name)?void 0:F.jsonName,scalar:void 0,longType:void 0,message:void 0,enum:void 0,mapKey:void 0,mapValue:void 0,declarationString:Ma,toString(){return`field ${this.parent.typeName}.${this.name}`},getComments(){const Pt=[...this.parent.getComments().sourcePath,di.DescriptorProto_Field,this.parent.proto.field.indexOf(this.proto)];return io(x.proto.sourceCodeInfo,Pt)},getFeatures(){var Pt;return be.resolveFeatures(x.edition,this.parent.getFeatures(),(Pt=this.proto.options)===null||Pt===void 0?void 0:Pt.features)}},Ot=F.label===ze.REPEATED;switch(F.type){case ye.MESSAGE:case ye.GROUP:{(0,k.hu)(F.typeName,"invalid FieldDescriptorProto: missing type_name");const Pt=be.mapEntries.get(Qn(F.typeName));if(Pt!==void 0)return(0,k.hu)(Ot,"invalid FieldDescriptorProto: expected map entry to be repeated"),Object.assign(Object.assign(Object.assign({},Ze),{kind:"field",fieldKind:"map",repeated:!1}),ht(Pt));const On=be.messages.get(Qn(F.typeName));return(0,k.hu)(On!==void 0,`invalid FieldDescriptorProto: type_name ${F.typeName} not found`),Object.assign(Object.assign({},Ze),{kind:"field",fieldKind:"message",repeated:Ot,message:On})}case ye.ENUM:{(0,k.hu)(F.typeName,"invalid FieldDescriptorProto: missing type_name");const Pt=be.enums.get(Qn(F.typeName));return(0,k.hu)(Pt!==void 0,`invalid FieldDescriptorProto: type_name ${F.typeName} not found`),Object.assign(Object.assign({},Ze),{kind:"field",fieldKind:"enum",getDefaultValue:Yp,repeated:Ot,enum:Pt})}default:{const Pt=Qp[F.type];return(0,k.hu)(Pt,`invalid FieldDescriptorProto: unknown type ${F.type}`),Object.assign(Object.assign({},Ze),{kind:"field",fieldKind:"scalar",getDefaultValue:Yp,repeated:Ot,scalar:Pt,longType:((ct=F.options)===null||ct===void 0?void 0:ct.jstype)==fe.JS_STRING?p.p.STRING:p.p.BIGINT})}}}function Kt(F,x,M,le){(0,k.hu)(F.extendee,"invalid FieldDescriptorProto: missing extendee");const be=Dn(F,x,null,void 0,le),Pe=le.messages.get(Qn(F.extendee));return(0,k.hu)(Pe,`invalid FieldDescriptorProto: extendee ${F.extendee} not found`),Object.assign(Object.assign({},be),{kind:"extension",typeName:Wn(F,M,x),parent:M,file:x,extendee:Pe,toString(){return`extension ${this.typeName}`},getComments(){const je=this.parent?[...this.parent.getComments().sourcePath,di.DescriptorProto_Extension,this.parent.proto.extension.indexOf(F)]:[di.FileDescriptorProto_Extension,this.file.proto.extension.indexOf(F)];return io(x.proto.sourceCodeInfo,je)},getFeatures(){var je,ct;return le.resolveFeatures(this.file.edition,((je=this.parent)!==null&&je!==void 0?je:this.file).getFeatures(),(ct=this.proto.options)===null||ct===void 0?void 0:ct.features)}})}function bn(F,x){let M,le;switch(F){case void 0:case"proto2":le="proto2",M=G.EDITION_PROTO2;break;case"proto3":le="proto3",M=G.EDITION_PROTO3;break;case"editions":switch(le="editions",x){case void 0:case G.EDITION_1_TEST_ONLY:case G.EDITION_2_TEST_ONLY:case G.EDITION_99997_TEST_ONLY:case G.EDITION_99998_TEST_ONLY:case G.EDITION_99999_TEST_ONLY:case G.EDITION_UNKNOWN:M=G.EDITION_UNKNOWN;break;default:M=x;break}break;default:throw new Error(`invalid FileDescriptorProto: unsupported syntax: ${F}`)}if(F==="editions"&&x===G.EDITION_UNKNOWN)throw new Error(`invalid FileDescriptorProto: syntax ${F} cannot have edition ${String(x)}`);return{syntax:le,edition:M}}function Wn(F,x,M){(0,k.hu)(F.name,`invalid ${F.getType().typeName}: missing name`);let le;return x?le=`${x.typeName}.${F.name}`:M.proto.package!==void 0?le=`${M.proto.package}.${F.name}`:le=`${F.name}`,le}function Qn(F){return F.startsWith(".")?F.substring(1):F}function ht(F){var x,M;(0,k.hu)((x=F.proto.options)===null||x===void 0?void 0:x.mapEntry,`invalid DescriptorProto: expected ${F.toString()} to be a map entry`),(0,k.hu)(F.fields.length===2,`invalid DescriptorProto: map entry ${F.toString()} has ${F.fields.length} fields`);const le=F.fields.find(je=>je.proto.number===1);(0,k.hu)(le,`invalid DescriptorProto: map entry ${F.toString()} is missing key field`);const be=le.scalar;(0,k.hu)(be!==void 0&&be!==p.w.BYTES&&be!==p.w.FLOAT&&be!==p.w.DOUBLE,`invalid DescriptorProto: map entry ${F.toString()} has unexpected key type ${(M=le.proto.type)!==null&&M!==void 0?M:-1}`);const Pe=F.fields.find(je=>je.proto.number===2);switch((0,k.hu)(Pe,`invalid DescriptorProto: map entry ${F.toString()} is missing value field`),Pe.fieldKind){case"scalar":return{mapKey:be,mapValue:Object.assign(Object.assign({},Pe),{kind:"scalar"})};case"message":return{mapKey:be,mapValue:Object.assign(Object.assign({},Pe),{kind:"message"})};case"enum":return{mapKey:be,mapValue:Object.assign(Object.assign({},Pe),{kind:"enum"})};default:throw new Error("invalid DescriptorProto: unsupported map entry value field")}}function Gr(F,x){var M;const le=F.oneofIndex;if(le===void 0)return;let be;return F.proto3Optional!==!0&&(be=x[le],(0,k.hu)(be,`invalid FieldDescriptorProto: oneof #${le} for field #${(M=F.number)!==null&&M!==void 0?M:-1} not found`)),be}function En(F,x){switch(x){case"proto2":return F.oneofIndex===void 0&&F.label===ze.OPTIONAL;case"proto3":return F.proto3Optional===!0;case"editions":return!1}}function An(F,x,M){const{repeatedFieldEncoding:le}=M(F.edition);if(le!=pn.PACKED)return!1;switch(x.type){case ye.STRING:case ye.BYTES:case ye.GROUP:case ye.MESSAGE:return!1;default:return!0}}function ua(F,x,M,le){var be,Pe,je,ct,Ze,Ot;switch(M.type){case ye.STRING:case ye.BYTES:case ye.GROUP:case ye.MESSAGE:return!1;default:switch(F.edition){case G.EDITION_PROTO2:return(Pe=(be=M.options)===null||be===void 0?void 0:be.packed)!==null&&Pe!==void 0?Pe:!1;case G.EDITION_PROTO3:return(ct=(je=M.options)===null||je===void 0?void 0:je.packed)!==null&&ct!==void 0?ct:!0;default:{const{repeatedFieldEncoding:Pt}=le(F.edition,(Ze=x==null?void 0:x.getFeatures())!==null&&Ze!==void 0?Ze:F.getFeatures(),(Ot=M.options)===null||Ot===void 0?void 0:Ot.features);return Pt==pn.PACKED}}}}const Qp={[ye.DOUBLE]:p.w.DOUBLE,[ye.FLOAT]:p.w.FLOAT,[ye.INT64]:p.w.INT64,[ye.UINT64]:p.w.UINT64,[ye.INT32]:p.w.INT32,[ye.FIXED64]:p.w.FIXED64,[ye.FIXED32]:p.w.FIXED32,[ye.BOOL]:p.w.BOOL,[ye.STRING]:p.w.STRING,[ye.GROUP]:void 0,[ye.MESSAGE]:void 0,[ye.BYTES]:p.w.BYTES,[ye.UINT32]:p.w.UINT32,[ye.ENUM]:void 0,[ye.SFIXED32]:p.w.SFIXED32,[ye.SFIXED64]:p.w.SFIXED64,[ye.SINT32]:p.w.SINT32,[ye.SINT64]:p.w.SINT64};function io(F,x){if(!F)return{leadingDetached:[],sourcePath:x};for(const M of F.location)if(M.path.length===x.length&&!M.path.some((le,be)=>x[be]!==le))return{leadingDetached:M.leadingDetachedComments,leading:M.leadingComments,trailing:M.trailingComments,sourcePath:x};return{leadingDetached:[],sourcePath:x}}var di;(function(F){F[F.FileDescriptorProto_Package=2]="FileDescriptorProto_Package",F[F.FileDescriptorProto_MessageType=4]="FileDescriptorProto_MessageType",F[F.FileDescriptorProto_EnumType=5]="FileDescriptorProto_EnumType",F[F.FileDescriptorProto_Service=6]="FileDescriptorProto_Service",F[F.FileDescriptorProto_Extension=7]="FileDescriptorProto_Extension",F[F.FileDescriptorProto_Syntax=12]="FileDescriptorProto_Syntax",F[F.DescriptorProto_Field=2]="DescriptorProto_Field",F[F.DescriptorProto_NestedType=3]="DescriptorProto_NestedType",F[F.DescriptorProto_EnumType=4]="DescriptorProto_EnumType",F[F.DescriptorProto_Extension=6]="DescriptorProto_Extension",F[F.DescriptorProto_OneofDecl=8]="DescriptorProto_OneofDecl",F[F.EnumDescriptorProto_Value=2]="EnumDescriptorProto_Value",F[F.ServiceDescriptorProto_Method=2]="ServiceDescriptorProto_Method"})(di||(di={}));function Ma(){var F,x,M;const le=[];this.repeated&&le.push("repeated"),this.optional&&le.push("optional"),(this.kind==="extension"?this.file:this.parent.file).syntax=="proto2"&&this.proto.label===ze.REQUIRED&&le.push("required");let Pe;switch(this.fieldKind){case"scalar":Pe=p.w[this.scalar].toLowerCase();break;case"enum":Pe=this.enum.typeName;break;case"message":Pe=this.message.typeName;break;case"map":{const Ze=p.w[this.mapKey].toLowerCase();let Ot;switch(this.mapValue.kind){case"scalar":Ot=p.w[this.mapValue.scalar].toLowerCase();break;case"enum":Ot=this.mapValue.enum.typeName;break;case"message":Ot=this.mapValue.message.typeName;break}Pe=`map<${Ze}, ${Ot}>`;break}}le.push(`${Pe} ${this.name} = ${this.number}`);const je=[];((F=this.proto.options)===null||F===void 0?void 0:F.packed)!==void 0&&je.push(`packed = ${this.proto.options.packed.toString()}`);let ct=this.proto.defaultValue;return ct!==void 0&&((this.proto.type==ye.BYTES||this.proto.type==ye.STRING)&&(ct='"'+ct.replace('"','\\"')+'"'),je.push(`default = ${ct}`)),this.jsonName!==void 0&&je.push(`json_name = "${this.jsonName}"`),((x=this.proto.options)===null||x===void 0?void 0:x.jstype)!==void 0&&je.push(`jstype = ${fe[this.proto.options.jstype]}`),((M=this.proto.options)===null||M===void 0?void 0:M.deprecated)===!0&&je.push("deprecated = true"),je.length>0&&le.push("["+je.join(", ")+"]"),le.join(" ")}function Yp(){const F=this.proto.defaultValue;if(F!==void 0)switch(this.fieldKind){case"enum":return Zt(this.enum,F);case"scalar":return Ie(this.scalar,F);default:return}}function VO(...F){const x={},M={},le={},be={add(Pe){if("fields"in Pe){if(!this.findMessage(Pe.typeName)){x[Pe.typeName]=Pe;for(const je of Pe.fields.list())je.kind=="message"?this.add(je.T):je.kind=="map"&&je.V.kind=="message"?this.add(je.V.T):je.kind=="enum"&&this.add(je.T)}}else if("methods"in Pe){if(!this.findService(Pe.typeName)){le[Pe.typeName]=Pe;for(const je of Object.values(Pe.methods))this.add(je.I),this.add(je.O)}}else M[Pe.typeName]=Pe},findMessage(Pe){return x[Pe]},findEnum(Pe){return M[Pe]},findService(Pe){return le[Pe]}};for(const Pe of F)be.add(Pe);return be}class ca extends se.v{constructor(x){super(),this.seconds=R.q.zero,this.nanos=0,c.w.util.initPartial(x,this)}fromJson(x,M){if(typeof x!="string")throw new Error(`cannot decode google.protobuf.Timestamp from JSON: ${c.w.json.debug(x)}`);const le=x.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(!le)throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");const be=Date.parse(le[1]+"-"+le[2]+"-"+le[3]+"T"+le[4]+":"+le[5]+":"+le[6]+(le[8]?le[8]:"Z"));if(Number.isNaN(be))throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");if(beDate.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=R.q.parse(be/1e3),this.nanos=0,le[7]&&(this.nanos=parseInt("1"+le[7]+"0".repeat(9-le[7].length))-1e9),this}toJson(x){const M=Number(this.seconds)*1e3;if(MDate.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 le="Z";if(this.nanos>0){const be=(this.nanos+1e9).toString().substring(1);be.substring(3)==="000000"?le="."+be.substring(0,3)+"Z":be.substring(6)==="000"?le="."+be.substring(0,6)+"Z":le="."+be+"Z"}return new Date(M).toISOString().replace(".000Z",le)}toDate(){return new Date(Number(this.seconds)*1e3+Math.ceil(this.nanos/1e6))}static now(){return ca.fromDate(new Date)}static fromDate(x){const M=x.getTime();return new ca({seconds:R.q.parse(Math.floor(M/1e3)),nanos:M%1e3*1e6})}static fromBinary(x,M){return new ca().fromBinary(x,M)}static fromJson(x,M){return new ca().fromJson(x,M)}static fromJsonString(x,M){return new ca().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(ca,x,M)}}ca.runtime=c.w,ca.typeName="google.protobuf.Timestamp",ca.fields=c.w.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);class Er extends se.v{constructor(x){super(),this.seconds=R.q.zero,this.nanos=0,c.w.util.initPartial(x,this)}fromJson(x,M){if(typeof x!="string")throw new Error(`cannot decode google.protobuf.Duration from JSON: ${c.w.json.debug(x)}`);const le=x.match(/^(-?[0-9]+)(?:\.([0-9]+))?s/);if(le===null)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${c.w.json.debug(x)}`);const be=Number(le[1]);if(be>315576e6||be<-315576e6)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${c.w.json.debug(x)}`);if(this.seconds=R.q.parse(be),typeof le[2]=="string"){const Pe=le[2]+"0".repeat(9-le[2].length);this.nanos=parseInt(Pe),(be<0||Object.is(be,-0))&&(this.nanos=-this.nanos)}return this}toJson(x){if(Number(this.seconds)>315576e6||Number(this.seconds)<-315576e6)throw new Error("cannot encode google.protobuf.Duration to JSON: value out of range");let M=this.seconds.toString();if(this.nanos!==0){let le=Math.abs(this.nanos).toString();le="0".repeat(9-le.length)+le,le.substring(3)==="000000"?le=le.substring(0,3):le.substring(6)==="000"&&(le=le.substring(0,6)),M+="."+le,this.nanos<0&&Number(this.seconds)==0&&(M="-"+M)}return M+"s"}static fromBinary(x,M){return new Er().fromBinary(x,M)}static fromJson(x,M){return new Er().fromJson(x,M)}static fromJsonString(x,M){return new Er().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Er,x,M)}}Er.runtime=c.w,Er.typeName="google.protobuf.Duration",Er.fields=c.w.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);var Gp=u(733);class Ts extends se.v{constructor(x){super(),c.w.util.initPartial(x,this)}static fromBinary(x,M){return new Ts().fromBinary(x,M)}static fromJson(x,M){return new Ts().fromJson(x,M)}static fromJsonString(x,M){return new Ts().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Ts,x,M)}}Ts.runtime=c.w,Ts.typeName="google.protobuf.Empty",Ts.fields=c.w.util.newFieldList(()=>[]);class ws extends se.v{constructor(x){super(),this.paths=[],c.w.util.initPartial(x,this)}toJson(x){function M(le){let be=!1;const Pe=[];for(let je=0;je{if(le.match(/_[0-9]?_/g)||le.match(/[A-Z]/g))throw new Error('cannot encode google.protobuf.FieldMask to JSON: lowerCamelCase of path name "'+le+'" is irreversible');return M(le)}).join(",")}fromJson(x,M){if(typeof x!="string")throw new Error("cannot decode google.protobuf.FieldMask from JSON: "+c.w.json.debug(x));if(x==="")return this;function le(be){if(be.includes("_"))throw new Error("cannot decode google.protobuf.FieldMask from JSON: path names must be lowerCamelCase");const Pe=be.replace(/[A-Z]/g,je=>"_"+je.toLowerCase());return Pe[0]==="_"?Pe.substring(1):Pe}return this.paths=x.split(",").map(le),this}static fromBinary(x,M){return new ws().fromBinary(x,M)}static fromJson(x,M){return new ws().fromJson(x,M)}static fromJsonString(x,M){return new ws().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(ws,x,M)}}ws.runtime=c.w,ws.typeName="google.protobuf.FieldMask",ws.fields=c.w.util.newFieldList(()=>[{no:1,name:"paths",kind:"scalar",T:9,repeated:!0}]);var oo;(function(F){F[F.NULL_VALUE=0]="NULL_VALUE"})(oo||(oo={})),c.w.util.setEnumType(oo,"google.protobuf.NullValue",[{no:0,name:"NULL_VALUE"}]);class ko extends se.v{constructor(x){super(),this.fields={},c.w.util.initPartial(x,this)}toJson(x){const M={};for(const[le,be]of Object.entries(this.fields))M[le]=be.toJson(x);return M}fromJson(x,M){if(typeof x!="object"||x==null||Array.isArray(x))throw new Error("cannot decode google.protobuf.Struct from JSON "+c.w.json.debug(x));for(const[le,be]of Object.entries(x))this.fields[le]=Ur.fromJson(be);return this}static fromBinary(x,M){return new ko().fromBinary(x,M)}static fromJson(x,M){return new ko().fromJson(x,M)}static fromJsonString(x,M){return new ko().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(ko,x,M)}}ko.runtime=c.w,ko.typeName="google.protobuf.Struct",ko.fields=c.w.util.newFieldList(()=>[{no:1,name:"fields",kind:"map",K:9,V:{kind:"message",T:Ur}}]);class Ur extends se.v{constructor(x){super(),this.kind={case:void 0},c.w.util.initPartial(x,this)}toJson(x){switch(this.kind.case){case"nullValue":return null;case"numberValue":if(!Number.isFinite(this.kind.value))throw new Error("google.protobuf.Value cannot be NaN or Infinity");return this.kind.value;case"boolValue":return this.kind.value;case"stringValue":return this.kind.value;case"structValue":case"listValue":return this.kind.value.toJson(Object.assign(Object.assign({},x),{emitDefaultValues:!0}))}throw new Error("google.protobuf.Value must have a value")}fromJson(x,M){switch(typeof x){case"number":this.kind={case:"numberValue",value:x};break;case"string":this.kind={case:"stringValue",value:x};break;case"boolean":this.kind={case:"boolValue",value:x};break;case"object":x===null?this.kind={case:"nullValue",value:oo.NULL_VALUE}:Array.isArray(x)?this.kind={case:"listValue",value:ao.fromJson(x)}:this.kind={case:"structValue",value:ko.fromJson(x)};break;default:throw new Error("cannot decode google.protobuf.Value from JSON "+c.w.json.debug(x))}return this}static fromBinary(x,M){return new Ur().fromBinary(x,M)}static fromJson(x,M){return new Ur().fromJson(x,M)}static fromJsonString(x,M){return new Ur().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Ur,x,M)}}Ur.runtime=c.w,Ur.typeName="google.protobuf.Value",Ur.fields=c.w.util.newFieldList(()=>[{no:1,name:"null_value",kind:"enum",T:c.w.getEnumType(oo),oneof:"kind"},{no:2,name:"number_value",kind:"scalar",T:1,oneof:"kind"},{no:3,name:"string_value",kind:"scalar",T:9,oneof:"kind"},{no:4,name:"bool_value",kind:"scalar",T:8,oneof:"kind"},{no:5,name:"struct_value",kind:"message",T:ko,oneof:"kind"},{no:6,name:"list_value",kind:"message",T:ao,oneof:"kind"}]);class ao extends se.v{constructor(x){super(),this.values=[],c.w.util.initPartial(x,this)}toJson(x){return this.values.map(M=>M.toJson())}fromJson(x,M){if(!Array.isArray(x))throw new Error("cannot decode google.protobuf.ListValue from JSON "+c.w.json.debug(x));for(let le of x)this.values.push(Ur.fromJson(le));return this}static fromBinary(x,M){return new ao().fromBinary(x,M)}static fromJson(x,M){return new ao().fromJson(x,M)}static fromJsonString(x,M){return new ao().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(ao,x,M)}}ao.runtime=c.w,ao.typeName="google.protobuf.ListValue",ao.fields=c.w.util.newFieldList(()=>[{no:1,name:"values",kind:"message",T:Ur,repeated:!0}]);var Wl=u(609);class Ho extends se.v{constructor(x){super(),this.value=0,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.DOUBLE,this.value,!0)}fromJson(x,M){try{this.value=c.w.json.readScalar(p.w.DOUBLE,x)}catch(le){let be='cannot decode message google.protobuf.DoubleValue from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,M){return new Ho().fromBinary(x,M)}static fromJson(x,M){return new Ho().fromJson(x,M)}static fromJsonString(x,M){return new Ho().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Ho,x,M)}}Ho.runtime=c.w,Ho.typeName="google.protobuf.DoubleValue",Ho.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:1}]),Ho.fieldWrapper={wrapField(F){return new Ho({value:F})},unwrapField(F){return F.value}};class xo extends se.v{constructor(x){super(),this.value=0,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.FLOAT,this.value,!0)}fromJson(x,M){try{this.value=c.w.json.readScalar(p.w.FLOAT,x)}catch(le){let be='cannot decode message google.protobuf.FloatValue from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,M){return new xo().fromBinary(x,M)}static fromJson(x,M){return new xo().fromJson(x,M)}static fromJsonString(x,M){return new xo().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(xo,x,M)}}xo.runtime=c.w,xo.typeName="google.protobuf.FloatValue",xo.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:2}]),xo.fieldWrapper={wrapField(F){return new xo({value:F})},unwrapField(F){return F.value}};class ji extends se.v{constructor(x){super(),this.value=R.q.zero,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.INT64,this.value,!0)}fromJson(x,M){try{this.value=c.w.json.readScalar(p.w.INT64,x)}catch(le){let be='cannot decode message google.protobuf.Int64Value from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,M){return new ji().fromBinary(x,M)}static fromJson(x,M){return new ji().fromJson(x,M)}static fromJsonString(x,M){return new ji().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(ji,x,M)}}ji.runtime=c.w,ji.typeName="google.protobuf.Int64Value",ji.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:3}]),ji.fieldWrapper={wrapField(F){return new ji({value:F})},unwrapField(F){return F.value}};class gr extends se.v{constructor(x){super(),this.value=R.q.zero,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.UINT64,this.value,!0)}fromJson(x,M){try{this.value=c.w.json.readScalar(p.w.UINT64,x)}catch(le){let be='cannot decode message google.protobuf.UInt64Value from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,M){return new gr().fromBinary(x,M)}static fromJson(x,M){return new gr().fromJson(x,M)}static fromJsonString(x,M){return new gr().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(gr,x,M)}}gr.runtime=c.w,gr.typeName="google.protobuf.UInt64Value",gr.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:4}]),gr.fieldWrapper={wrapField(F){return new gr({value:F})},unwrapField(F){return F.value}};class _r extends se.v{constructor(x){super(),this.value=0,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.INT32,this.value,!0)}fromJson(x,M){try{this.value=c.w.json.readScalar(p.w.INT32,x)}catch(le){let be='cannot decode message google.protobuf.Int32Value from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,M){return new _r().fromBinary(x,M)}static fromJson(x,M){return new _r().fromJson(x,M)}static fromJsonString(x,M){return new _r().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(_r,x,M)}}_r.runtime=c.w,_r.typeName="google.protobuf.Int32Value",_r.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:5}]),_r.fieldWrapper={wrapField(F){return new _r({value:F})},unwrapField(F){return F.value}};class jr extends se.v{constructor(x){super(),this.value=0,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.UINT32,this.value,!0)}fromJson(x,M){try{this.value=c.w.json.readScalar(p.w.UINT32,x)}catch(le){let be='cannot decode message google.protobuf.UInt32Value from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,M){return new jr().fromBinary(x,M)}static fromJson(x,M){return new jr().fromJson(x,M)}static fromJsonString(x,M){return new jr().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(jr,x,M)}}jr.runtime=c.w,jr.typeName="google.protobuf.UInt32Value",jr.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:13}]),jr.fieldWrapper={wrapField(F){return new jr({value:F})},unwrapField(F){return F.value}};class Wo extends se.v{constructor(x){super(),this.value=!1,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.BOOL,this.value,!0)}fromJson(x,M){try{this.value=c.w.json.readScalar(p.w.BOOL,x)}catch(le){let be='cannot decode message google.protobuf.BoolValue from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,M){return new Wo().fromBinary(x,M)}static fromJson(x,M){return new Wo().fromJson(x,M)}static fromJsonString(x,M){return new Wo().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Wo,x,M)}}Wo.runtime=c.w,Wo.typeName="google.protobuf.BoolValue",Wo.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:8}]),Wo.fieldWrapper={wrapField(F){return new Wo({value:F})},unwrapField(F){return F.value}};class zi extends se.v{constructor(x){super(),this.value="",c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.STRING,this.value,!0)}fromJson(x,M){try{this.value=c.w.json.readScalar(p.w.STRING,x)}catch(le){let be='cannot decode message google.protobuf.StringValue from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,M){return new zi().fromBinary(x,M)}static fromJson(x,M){return new zi().fromJson(x,M)}static fromJsonString(x,M){return new zi().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(zi,x,M)}}zi.runtime=c.w,zi.typeName="google.protobuf.StringValue",zi.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:9}]),zi.fieldWrapper={wrapField(F){return new zi({value:F})},unwrapField(F){return F.value}};class Jt extends se.v{constructor(x){super(),this.value=new Uint8Array(0),c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.BYTES,this.value,!0)}fromJson(x,M){try{this.value=c.w.json.readScalar(p.w.BYTES,x)}catch(le){let be='cannot decode message google.protobuf.BytesValue from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,M){return new Jt().fromBinary(x,M)}static fromJson(x,M){return new Jt().fromJson(x,M)}static fromJsonString(x,M){return new Jt().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Jt,x,M)}}Jt.runtime=c.w,Jt.typeName="google.protobuf.BytesValue",Jt.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:12}]),Jt.fieldWrapper={wrapField(F){return new Jt({value:F})},unwrapField(F){return F.value}};const Rr=[Gp.I,Er,Ts,ws,ko,Ur,ao,ca,Er,Ho,xo,ji,_r,jr,gr,Wo,zi,Jt],qp=[(0,Wl.V3)(oo)];function pf(F,x=!0){const M=F instanceof Uint8Array||F instanceof ce?Wt(F):F,le={},be={},Pe={};if(x){for(const je of Rr)be[je.typeName]=je;for(const je of qp)le[je.typeName]=je}return{findEnum(je){const ct=le[je];if(ct)return ct;const Ze=M.enums.get(je);if(!Ze)return;const Pt=(Ze.file.syntax=="proto3"?c.w:E).makeEnumType(je,Ze.values.map(On=>({no:On.number,name:On.name,localName:(0,v.r1)(On)})),{});return le[je]=Pt,Pt},findMessage(je){const ct=be[je];if(ct)return ct;const Ze=M.messages.get(je);if(!Ze)return;const Ot=Ze.file.syntax=="proto3"?c.w:E,Pt=[],On=Ot.makeMessageType(je,()=>Pt,{localName:(0,v.r1)(Ze)});be[je]=On;for(const Sr of Ze.fields){const Sn=Qo(Sr,this);Pt.push(Sn)}return On},findService(je){const ct=Pe[je];if(ct)return ct;const Ze=M.services.get(je);if(!Ze)return;const Ot={};for(const Pt of Ze.methods){const On=this.findMessage(Pt.input.typeName),Sr=this.findMessage(Pt.output.typeName);(0,k.hu)(On,`message "${Pt.input.typeName}" for ${Pt.toString()} not found`),(0,k.hu)(Sr,`output message "${Pt.output.typeName}" for ${Pt.toString()} not found`),Ot[(0,v.r1)(Pt)]={name:Pt.name,I:On,O:Sr,kind:Pt.methodKind,idempotency:Pt.idempotency}}return Pe[je]={typeName:Ze.typeName,methods:Ot}}}}function Qo(F,x){switch(F.fieldKind){case"map":return Ql(F,x);case"message":return hf(F,x);case"enum":{const M=Yl(F,x);return M.default=F.getDefaultValue(),M}case"scalar":{const M=Hu(F);return M.default=F.getDefaultValue(),M}}}function Ql(F,x){const M={kind:"map",no:F.number,name:F.name,jsonName:F.jsonName,K:F.mapKey};if(F.mapValue.message){const le=x.findMessage(F.mapValue.message.typeName);return(0,k.hu)(le,`message "${F.mapValue.message.typeName}" for ${F.toString()} not found`),Object.assign(Object.assign({},M),{V:{kind:"message",T:le}})}if(F.mapValue.enum){const le=x.findEnum(F.mapValue.enum.typeName);return(0,k.hu)(le,`enum "${F.mapValue.enum.typeName}" for ${F.toString()} not found`),Object.assign(Object.assign({},M),{V:{kind:"enum",T:le}})}return Object.assign(Object.assign({},M),{V:{kind:"scalar",T:F.mapValue.scalar}})}function Hu(F){const x=F.longType==p.p.STRING?{L:p.p.STRING}:{},M=Object.assign({kind:"scalar",no:F.number,name:F.name,jsonName:F.jsonName,T:F.scalar},x);return F.repeated?Object.assign(Object.assign({},M),{repeated:!0,packed:F.packed,oneof:void 0,T:F.scalar}):F.oneof?Object.assign(Object.assign({},M),{oneof:F.oneof.name}):F.optional?Object.assign(Object.assign({},M),{opt:!0}):M}function hf(F,x){const M=x.findMessage(F.message.typeName);(0,k.hu)(M,`message "${F.message.typeName}" for ${F.toString()} not found`);const le={kind:"message",no:F.number,name:F.name,jsonName:F.jsonName,T:M,delimited:F.proto.type==ye.GROUP};return F.repeated?Object.assign(Object.assign({},le),{repeated:!0,packed:F.packed,oneof:void 0}):F.oneof?Object.assign(Object.assign({},le),{oneof:F.oneof.name}):F.optional?Object.assign(Object.assign({},le),{opt:!0}):le}function Yl(F,x){const M=x.findEnum(F.enum.typeName);(0,k.hu)(M,`enum "${F.enum.typeName}" for ${F.toString()} not found`);const le={kind:"enum",no:F.number,name:F.name,jsonName:F.jsonName,T:M};return F.repeated?Object.assign(Object.assign({},le),{repeated:!0,packed:F.packed,oneof:void 0}):F.oneof?Object.assign(Object.assign({},le),{oneof:F.oneof.name}):F.optional?Object.assign(Object.assign({},le),{opt:!0}):le}function Zp(F){if(!(F instanceof se.v))return F;const x=F.getType(),M={};for(const le of x.fields.byMember()){const be=F[le.localName];let Pe;if(le.repeated)Pe=be.map(je=>$a(je));else if(le.kind=="map"){Pe={};for(const[je,ct]of Object.entries(be))Pe[je]=$a(ct)}else le.kind=="oneof"?Pe=le.findField(be.case)?{case:be.case,value:$a(be.value)}:{case:void 0}:Pe=$a(be);M[le.localName]=Pe}return M}function $a(F){if(F===void 0)return F;if(F instanceof se.v)return Zp(F);if(F instanceof Uint8Array){const x=new Uint8Array(F.byteLength);return x.set(F),x}return F}class Yo extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new Yo().fromBinary(x,M)}static fromJson(x,M){return new Yo().fromJson(x,M)}static fromJsonString(x,M){return new Yo().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Yo,x,M)}}Yo.runtime=E,Yo.typeName="google.protobuf.compiler.Version",Yo.fields=E.util.newFieldList(()=>[{no:1,name:"major",kind:"scalar",T:5,opt:!0},{no:2,name:"minor",kind:"scalar",T:5,opt:!0},{no:3,name:"patch",kind:"scalar",T:5,opt:!0},{no:4,name:"suffix",kind:"scalar",T:9,opt:!0}]);class Go extends se.v{constructor(x){super(),this.fileToGenerate=[],this.protoFile=[],this.sourceFileDescriptors=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new Go().fromBinary(x,M)}static fromJson(x,M){return new Go().fromJson(x,M)}static fromJsonString(x,M){return new Go().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Go,x,M)}}Go.runtime=E,Go.typeName="google.protobuf.compiler.CodeGeneratorRequest",Go.fields=E.util.newFieldList(()=>[{no:1,name:"file_to_generate",kind:"scalar",T:9,repeated:!0},{no:2,name:"parameter",kind:"scalar",T:9,opt:!0},{no:15,name:"proto_file",kind:"message",T:ge,repeated:!0},{no:17,name:"source_file_descriptors",kind:"message",T:ge,repeated:!0},{no:3,name:"compiler_version",kind:"message",T:Yo,opt:!0}]);class fi extends se.v{constructor(x){super(),this.file=[],E.util.initPartial(x,this)}static fromBinary(x,M){return new fi().fromBinary(x,M)}static fromJson(x,M){return new fi().fromJson(x,M)}static fromJsonString(x,M){return new fi().fromJsonString(x,M)}static equals(x,M){return E.util.equals(fi,x,M)}}fi.runtime=E,fi.typeName="google.protobuf.compiler.CodeGeneratorResponse",fi.fields=E.util.newFieldList(()=>[{no:1,name:"error",kind:"scalar",T:9,opt:!0},{no:2,name:"supported_features",kind:"scalar",T:4,opt:!0},{no:15,name:"file",kind:"message",T:Co,repeated:!0}]);var Gl;(function(F){F[F.NONE=0]="NONE",F[F.PROTO3_OPTIONAL=1]="PROTO3_OPTIONAL",F[F.SUPPORTS_EDITIONS=2]="SUPPORTS_EDITIONS"})(Gl||(Gl={})),E.util.setEnumType(Gl,"google.protobuf.compiler.CodeGeneratorResponse.Feature",[{no:0,name:"FEATURE_NONE"},{no:1,name:"FEATURE_PROTO3_OPTIONAL"},{no:2,name:"FEATURE_SUPPORTS_EDITIONS"}]);class Co extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,M){return new Co().fromBinary(x,M)}static fromJson(x,M){return new Co().fromJson(x,M)}static fromJsonString(x,M){return new Co().fromJsonString(x,M)}static equals(x,M){return E.util.equals(Co,x,M)}}Co.runtime=E,Co.typeName="google.protobuf.compiler.CodeGeneratorResponse.File",Co.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"insertion_point",kind:"scalar",T:9,opt:!0},{no:15,name:"content",kind:"scalar",T:9,opt:!0},{no:16,name:"generated_code_info",kind:"message",T:$t,opt:!0}]);class da extends se.v{constructor(x){super(),this.fileName="",c.w.util.initPartial(x,this)}static fromBinary(x,M){return new da().fromBinary(x,M)}static fromJson(x,M){return new da().fromJson(x,M)}static fromJsonString(x,M){return new da().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(da,x,M)}}da.runtime=c.w,da.typeName="google.protobuf.SourceContext",da.fields=c.w.util.newFieldList(()=>[{no:1,name:"file_name",kind:"scalar",T:9}]);var fa;(function(F){F[F.PROTO2=0]="PROTO2",F[F.PROTO3=1]="PROTO3",F[F.EDITIONS=2]="EDITIONS"})(fa||(fa={})),c.w.util.setEnumType(fa,"google.protobuf.Syntax",[{no:0,name:"SYNTAX_PROTO2"},{no:1,name:"SYNTAX_PROTO3"},{no:2,name:"SYNTAX_EDITIONS"}]);class xi extends se.v{constructor(x){super(),this.name="",this.fields=[],this.oneofs=[],this.options=[],this.syntax=fa.PROTO2,this.edition="",c.w.util.initPartial(x,this)}static fromBinary(x,M){return new xi().fromBinary(x,M)}static fromJson(x,M){return new xi().fromJson(x,M)}static fromJsonString(x,M){return new xi().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(xi,x,M)}}xi.runtime=c.w,xi.typeName="google.protobuf.Type",xi.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"fields",kind:"message",T:qo,repeated:!0},{no:3,name:"oneofs",kind:"scalar",T:9,repeated:!0},{no:4,name:"options",kind:"message",T:Ci,repeated:!0},{no:5,name:"source_context",kind:"message",T:da},{no:6,name:"syntax",kind:"enum",T:c.w.getEnumType(fa)},{no:7,name:"edition",kind:"scalar",T:9}]);class qo extends se.v{constructor(x){super(),this.kind=$c.TYPE_UNKNOWN,this.cardinality=Fc.UNKNOWN,this.number=0,this.name="",this.typeUrl="",this.oneofIndex=0,this.packed=!1,this.options=[],this.jsonName="",this.defaultValue="",c.w.util.initPartial(x,this)}static fromBinary(x,M){return new qo().fromBinary(x,M)}static fromJson(x,M){return new qo().fromJson(x,M)}static fromJsonString(x,M){return new qo().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(qo,x,M)}}qo.runtime=c.w,qo.typeName="google.protobuf.Field",qo.fields=c.w.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:c.w.getEnumType($c)},{no:2,name:"cardinality",kind:"enum",T:c.w.getEnumType(Fc)},{no:3,name:"number",kind:"scalar",T:5},{no:4,name:"name",kind:"scalar",T:9},{no:6,name:"type_url",kind:"scalar",T:9},{no:7,name:"oneof_index",kind:"scalar",T:5},{no:8,name:"packed",kind:"scalar",T:8},{no:9,name:"options",kind:"message",T:Ci,repeated:!0},{no:10,name:"json_name",kind:"scalar",T:9},{no:11,name:"default_value",kind:"scalar",T:9}]);var $c;(function(F){F[F.TYPE_UNKNOWN=0]="TYPE_UNKNOWN",F[F.TYPE_DOUBLE=1]="TYPE_DOUBLE",F[F.TYPE_FLOAT=2]="TYPE_FLOAT",F[F.TYPE_INT64=3]="TYPE_INT64",F[F.TYPE_UINT64=4]="TYPE_UINT64",F[F.TYPE_INT32=5]="TYPE_INT32",F[F.TYPE_FIXED64=6]="TYPE_FIXED64",F[F.TYPE_FIXED32=7]="TYPE_FIXED32",F[F.TYPE_BOOL=8]="TYPE_BOOL",F[F.TYPE_STRING=9]="TYPE_STRING",F[F.TYPE_GROUP=10]="TYPE_GROUP",F[F.TYPE_MESSAGE=11]="TYPE_MESSAGE",F[F.TYPE_BYTES=12]="TYPE_BYTES",F[F.TYPE_UINT32=13]="TYPE_UINT32",F[F.TYPE_ENUM=14]="TYPE_ENUM",F[F.TYPE_SFIXED32=15]="TYPE_SFIXED32",F[F.TYPE_SFIXED64=16]="TYPE_SFIXED64",F[F.TYPE_SINT32=17]="TYPE_SINT32",F[F.TYPE_SINT64=18]="TYPE_SINT64"})($c||($c={})),c.w.util.setEnumType($c,"google.protobuf.Field.Kind",[{no:0,name:"TYPE_UNKNOWN"},{no:1,name:"TYPE_DOUBLE"},{no:2,name:"TYPE_FLOAT"},{no:3,name:"TYPE_INT64"},{no:4,name:"TYPE_UINT64"},{no:5,name:"TYPE_INT32"},{no:6,name:"TYPE_FIXED64"},{no:7,name:"TYPE_FIXED32"},{no:8,name:"TYPE_BOOL"},{no:9,name:"TYPE_STRING"},{no:10,name:"TYPE_GROUP"},{no:11,name:"TYPE_MESSAGE"},{no:12,name:"TYPE_BYTES"},{no:13,name:"TYPE_UINT32"},{no:14,name:"TYPE_ENUM"},{no:15,name:"TYPE_SFIXED32"},{no:16,name:"TYPE_SFIXED64"},{no:17,name:"TYPE_SINT32"},{no:18,name:"TYPE_SINT64"}]);var Fc;(function(F){F[F.UNKNOWN=0]="UNKNOWN",F[F.OPTIONAL=1]="OPTIONAL",F[F.REQUIRED=2]="REQUIRED",F[F.REPEATED=3]="REPEATED"})(Fc||(Fc={})),c.w.util.setEnumType(Fc,"google.protobuf.Field.Cardinality",[{no:0,name:"CARDINALITY_UNKNOWN"},{no:1,name:"CARDINALITY_OPTIONAL"},{no:2,name:"CARDINALITY_REQUIRED"},{no:3,name:"CARDINALITY_REPEATED"}]);class Yn extends se.v{constructor(x){super(),this.name="",this.enumvalue=[],this.options=[],this.syntax=fa.PROTO2,this.edition="",c.w.util.initPartial(x,this)}static fromBinary(x,M){return new Yn().fromBinary(x,M)}static fromJson(x,M){return new Yn().fromJson(x,M)}static fromJsonString(x,M){return new Yn().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Yn,x,M)}}Yn.runtime=c.w,Yn.typeName="google.protobuf.Enum",Yn.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"enumvalue",kind:"message",T:Fa,repeated:!0},{no:3,name:"options",kind:"message",T:Ci,repeated:!0},{no:4,name:"source_context",kind:"message",T:da},{no:5,name:"syntax",kind:"enum",T:c.w.getEnumType(fa)},{no:6,name:"edition",kind:"scalar",T:9}]);class Fa extends se.v{constructor(x){super(),this.name="",this.number=0,this.options=[],c.w.util.initPartial(x,this)}static fromBinary(x,M){return new Fa().fromBinary(x,M)}static fromJson(x,M){return new Fa().fromJson(x,M)}static fromJsonString(x,M){return new Fa().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Fa,x,M)}}Fa.runtime=c.w,Fa.typeName="google.protobuf.EnumValue",Fa.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"number",kind:"scalar",T:5},{no:3,name:"options",kind:"message",T:Ci,repeated:!0}]);class Ci extends se.v{constructor(x){super(),this.name="",c.w.util.initPartial(x,this)}static fromBinary(x,M){return new Ci().fromBinary(x,M)}static fromJson(x,M){return new Ci().fromJson(x,M)}static fromJsonString(x,M){return new Ci().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Ci,x,M)}}Ci.runtime=c.w,Ci.typeName="google.protobuf.Option",Ci.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"value",kind:"message",T:Gp.I}]);class Ba extends se.v{constructor(x){super(),this.name="",this.methods=[],this.options=[],this.version="",this.mixins=[],this.syntax=fa.PROTO2,c.w.util.initPartial(x,this)}static fromBinary(x,M){return new Ba().fromBinary(x,M)}static fromJson(x,M){return new Ba().fromJson(x,M)}static fromJsonString(x,M){return new Ba().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Ba,x,M)}}Ba.runtime=c.w,Ba.typeName="google.protobuf.Api",Ba.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"methods",kind:"message",T:pa,repeated:!0},{no:3,name:"options",kind:"message",T:Ci,repeated:!0},{no:4,name:"version",kind:"scalar",T:9},{no:5,name:"source_context",kind:"message",T:da},{no:6,name:"mixins",kind:"message",T:Ua,repeated:!0},{no:7,name:"syntax",kind:"enum",T:c.w.getEnumType(fa)}]);class pa extends se.v{constructor(x){super(),this.name="",this.requestTypeUrl="",this.requestStreaming=!1,this.responseTypeUrl="",this.responseStreaming=!1,this.options=[],this.syntax=fa.PROTO2,c.w.util.initPartial(x,this)}static fromBinary(x,M){return new pa().fromBinary(x,M)}static fromJson(x,M){return new pa().fromJson(x,M)}static fromJsonString(x,M){return new pa().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(pa,x,M)}}pa.runtime=c.w,pa.typeName="google.protobuf.Method",pa.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"request_type_url",kind:"scalar",T:9},{no:3,name:"request_streaming",kind:"scalar",T:8},{no:4,name:"response_type_url",kind:"scalar",T:9},{no:5,name:"response_streaming",kind:"scalar",T:8},{no:6,name:"options",kind:"message",T:Ci,repeated:!0},{no:7,name:"syntax",kind:"enum",T:c.w.getEnumType(fa)}]);class Ua extends se.v{constructor(x){super(),this.name="",this.root="",c.w.util.initPartial(x,this)}static fromBinary(x,M){return new Ua().fromBinary(x,M)}static fromJson(x,M){return new Ua().fromJson(x,M)}static fromJsonString(x,M){return new Ua().fromJsonString(x,M)}static equals(x,M){return c.w.util.equals(Ua,x,M)}}Ua.runtime=c.w,Ua.typeName="google.protobuf.Mixin",Ua.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"root",kind:"scalar",T:9}])},561:(s,l,u)=>{u.d(l,{v:()=>c});class c{equals(p){return this.getType().runtime.util.equals(this.getType(),this,p)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(p,h){const m=this.getType(),b=m.runtime.bin,O=b.makeReadOptions(h);return b.readMessage(this,O.readerFactory(p),p.byteLength,O),this}fromJson(p,h){const m=this.getType(),b=m.runtime.json,O=b.makeReadOptions(h);return b.readMessage(m,p,O,this),this}fromJsonString(p,h){let m;try{m=JSON.parse(p)}catch(b){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${b instanceof Error?b.message:String(b)}`)}return this.fromJson(m,h)}toBinary(p){const h=this.getType(),m=h.runtime.bin,b=m.makeWriteOptions(p),O=b.writerFactory();return m.writeMessage(this,O,b),O.finish()}toJson(p){const h=this.getType(),m=h.runtime.json,b=m.makeWriteOptions(p);return m.writeMessage(this,b)}toJsonString(p){var h;const m=this.toJson(p);return JSON.stringify(m,null,(h=p==null?void 0:p.prettySpaces)!==null&&h!==void 0?h:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}}},120:(s,l,u)=>{u.d(l,{E_:()=>v,fp:()=>y,hu:()=>c,ug:()=>O});function c(S,k){if(!S)throw new Error(k)}const d=34028234663852886e22,p=-34028234663852886e22,h=4294967295,m=2147483647,b=-2147483648;function O(S){if(typeof S!="number")throw new Error("invalid int 32: "+typeof S);if(!Number.isInteger(S)||S>m||Sh||S<0)throw new Error("invalid uint 32: "+S)}function v(S){if(typeof S!="number")throw new Error("invalid float 32: "+typeof S);if(Number.isFinite(S)&&(S>d||S{u.d(l,{Jj:()=>V,NN:()=>U,gQ:()=>R,gY:()=>C,oQ:()=>B});var c=u(79),d=u(561),p=u(465),h=u(432),m=u(781),b=u(120);const O=Symbol("@bufbuild/protobuf/unknown-fields"),y={readUnknownFields:!0,readerFactory:z=>new c.oP(z)},v={writeUnknownFields:!0,writerFactory:()=>new c.Lt};function S(z){return z?Object.assign(Object.assign({},y),z):y}function k(z){return z?Object.assign(Object.assign({},v),z):v}function C(){return{makeReadOptions:S,makeWriteOptions:k,listUnknownFields(z){var W;return(W=z[O])!==null&&W!==void 0?W:[]},discardUnknownFields(z){delete z[O]},writeUnknownFields(z,W){const q=z[O];if(q)for(const Y of q)W.tag(Y.no,Y.wireType).raw(Y.data)},onUnknownField(z,W,X,q){const Y=z;Array.isArray(Y[O])||(Y[O]=[]),Y[O].push({no:W,wireType:X,data:q})},readMessage(z,W,X,q,Y){const Z=z.getType(),j=Y?W.len:W.pos+X;let se,ve;for(;W.pos0&&(Ne=$),ge){let Ye=ce[ue];if(ve==c.TD.LengthDelimited&&xe!=p.w.STRING&&xe!=p.w.BYTES){let ye=W.uint32()+W.pos;for(;W.pos{u.d(l,{V3:()=>p,be:()=>m,ut:()=>b,zg:()=>h});var c=u(120);const d=Symbol("@bufbuild/protobuf/enum-type");function p(y){const v=y[d];return(0,c.hu)(v,"missing enum type on enum object"),v}function h(y,v,S,k){y[d]=m(v,S.map(C=>({no:C.no,name:C.name,localName:y[C.no]})))}function m(y,v,S){const k=Object.create(null),C=Object.create(null),w=[];for(const E of v){const $=O(E);w.push($),k[E.name]=$,C[E.no]=$}return{typeName:y,values:w,findName(E){return k[E]},findNumber(E){return C[E]}}}function b(y,v,S){const k={};for(const C of v){const w=O(C);k[w.localName]=w.no,k[w.no]=w.localName}return h(k,y,v),k}function O(y){return"localName"in y?y:Object.assign(Object.assign({},y),{localName:y.name})}},501:(s,l,u)=>{u.d(l,{i:()=>c});class c{constructor(p,h){this._fields=p,this._normalizer=h}findJsonName(p){if(!this.jsonNames){const h={};for(const m of this.list())h[m.jsonName]=h[m.name]=m;this.jsonNames=h}return this.jsonNames[p]}find(p){if(!this.numbers){const h={};for(const m of this.list())h[m.no]=m;this.numbers=h}return this.numbers[p]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((p,h)=>p.no-h.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];const p=this.members;let h;for(const m of this.list())m.oneof?m.oneof!==h&&(h=m.oneof,p.push(h)):p.push(m)}return this.members}}},432:(s,l,u)=>{u.d(l,{E:()=>p,w:()=>h});var c=u(561),d=u(465);function p(b,O){return O instanceof c.v||!b.fieldWrapper?O:b.fieldWrapper.wrapField(O)}function h(b){if(b.fieldKind==="message"&&!b.repeated&&b.oneof==null)return m[b.message.typeName]}const m={"google.protobuf.DoubleValue":d.w.DOUBLE,"google.protobuf.FloatValue":d.w.FLOAT,"google.protobuf.Int64Value":d.w.INT64,"google.protobuf.UInt64Value":d.w.UINT64,"google.protobuf.Int32Value":d.w.INT32,"google.protobuf.UInt32Value":d.w.UINT32,"google.protobuf.BoolValue":d.w.BOOL,"google.protobuf.StringValue":d.w.STRING,"google.protobuf.BytesValue":d.w.BYTES}},215:(s,l,u)=>{u.d(l,{o:()=>p});var c=u(504),d=u(120);class p{constructor(m){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.default=void 0,this.fields=[],this.name=m,this.localName=(0,c.uA)(m)}addField(m){(0,d.hu)(m.oneof===this,`field ${m.name} not one of ${this.name}`),this.fields.push(m)}findField(m){if(!this._lookup){this._lookup=Object.create(null);for(let b=0;b{u.d(l,{b:()=>S});var c=u(561),d=u(465),p=u(120),h=u(210),m=u(236);const b={ignoreUnknownFields:!1},O={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function y(P){return P?Object.assign(Object.assign({},b),P):b}function v(P){return P?Object.assign(Object.assign({},O),P):O}function S(P){const R=P(E,$);return{makeReadOptions:y,makeWriteOptions:v,readMessage(B,U,V,z){if(U==null||Array.isArray(U)||typeof U!="object")throw new Error(`cannot decode message ${B.typeName} from JSON: ${this.debug(U)}`);z=z??new B;const W={};for(const[X,q]of Object.entries(U)){const Y=B.fields.findJsonName(X);if(!Y){if(!V.ignoreUnknownFields)throw new Error(`cannot decode message ${B.typeName} from JSON: key "${X}" is unknown`);continue}let Z=Y.localName,j=z;if(Y.oneof){if(q===null&&Y.kind=="scalar")continue;const se=W[Y.oneof.localName];if(se)throw new Error(`cannot decode message ${B.typeName} from JSON: multiple keys for oneof "${Y.oneof.name}" present: "${se}", "${X}"`);W[Y.oneof.localName]=X,j=j[Y.oneof.localName]={case:Z},Z="value"}if(Y.repeated){if(q===null)continue;if(!Array.isArray(q))throw new Error(`cannot decode field ${B.typeName}.${Y.name} from JSON: ${this.debug(q)}`);const se=j[Z];for(const ve of q){if(ve===null)throw new Error(`cannot decode field ${B.typeName}.${Y.name} from JSON: ${this.debug(ve)}`);let G;switch(Y.kind){case"message":G=Y.T.fromJson(ve,V);break;case"enum":if(G=w(Y.T,ve,V.ignoreUnknownFields),G===void 0)continue;break;case"scalar":try{G=C(Y.T,ve,Y.L)}catch(ce){let ge=`cannot decode field ${B.typeName}.${Y.name} from JSON: ${this.debug(ve)}`;throw ce instanceof Error&&ce.message.length>0&&(ge+=`: ${ce.message}`),new Error(ge)}break}se.push(G)}}else if(Y.kind=="map"){if(q===null)continue;if(Array.isArray(q)||typeof q!="object")throw new Error(`cannot decode field ${B.typeName}.${Y.name} from JSON: ${this.debug(q)}`);const se=j[Z];for(const[ve,G]of Object.entries(q)){if(G===null)throw new Error(`cannot decode field ${B.typeName}.${Y.name} from JSON: map value null`);let ce;switch(Y.V.kind){case"message":ce=Y.V.T.fromJson(G,V);break;case"enum":if(ce=w(Y.V.T,G,V.ignoreUnknownFields),ce===void 0)continue;break;case"scalar":try{ce=C(Y.V.T,G,d.p.BIGINT)}catch(ge){let ue=`cannot decode map value for field ${B.typeName}.${Y.name} from JSON: ${this.debug(q)}`;throw ge instanceof Error&&ge.message.length>0&&(ue+=`: ${ge.message}`),new Error(ue)}break}try{se[C(Y.K,Y.K==d.w.BOOL?ve=="true"?!0:ve=="false"?!1:ve:ve,d.p.BIGINT).toString()]=ce}catch(ge){let ue=`cannot decode map key for field ${B.typeName}.${Y.name} from JSON: ${this.debug(q)}`;throw ge instanceof Error&&ge.message.length>0&&(ue+=`: ${ge.message}`),new Error(ue)}}}else switch(Y.kind){case"message":const se=Y.T;if(q===null&&se.typeName!="google.protobuf.Value"){if(Y.oneof)throw new Error(`cannot decode field ${B.typeName}.${Y.name} from JSON: null is invalid for oneof field "${X}"`);continue}j[Z]instanceof c.v?j[Z].fromJson(q,V):(j[Z]=se.fromJson(q,V),se.fieldWrapper&&!Y.oneof&&(j[Z]=se.fieldWrapper.unwrapField(j[Z])));break;case"enum":const ve=w(Y.T,q,V.ignoreUnknownFields);ve!==void 0&&(j[Z]=ve);break;case"scalar":try{j[Z]=C(Y.T,q,Y.L)}catch(G){let ce=`cannot decode field ${B.typeName}.${Y.name} from JSON: ${this.debug(q)}`;throw G instanceof Error&&G.message.length>0&&(ce+=`: ${G.message}`),new Error(ce)}break}}return z},writeMessage(B,U){const V=B.getType(),z={};let W;try{for(const X of V.fields.byMember()){let q;if(X.kind=="oneof"){const Y=B[X.localName];if(Y.value===void 0)continue;if(W=X.findField(Y.case),!W)throw"oneof case not found: "+Y.case;q=R(W,Y.value,U)}else W=X,q=R(W,B[W.localName],U);q!==void 0&&(z[U.useProtoFieldName?W.name:W.jsonName]=q)}}catch(X){const q=W?`cannot encode field ${V.typeName}.${W.name} to JSON`:`cannot encode message ${V.typeName} to JSON`,Y=X instanceof Error?X.message:String(X);throw new Error(q+(Y.length>0?`: ${Y}`:""))}return z},readScalar:C,writeScalar:$,debug:k}}function k(P){if(P===null)return"null";switch(typeof P){case"object":return Array.isArray(P)?"array":"object";case"string":return P.length>100?"string":`"${P.split('"').join('\\"')}"`;default:return String(P)}}function C(P,R,B){switch(P){case d.w.DOUBLE:case d.w.FLOAT:if(R===null)return 0;if(R==="NaN")return Number.NaN;if(R==="Infinity")return Number.POSITIVE_INFINITY;if(R==="-Infinity")return Number.NEGATIVE_INFINITY;if(R===""||typeof R=="string"&&R.trim().length!==R.length||typeof R!="string"&&typeof R!="number")break;const U=Number(R);if(Number.isNaN(U)||!Number.isFinite(U))break;return P==d.w.FLOAT&&(0,p.E_)(U),U;case d.w.INT32:case d.w.FIXED32:case d.w.SFIXED32:case d.w.SINT32:case d.w.UINT32:if(R===null)return 0;let V;if(typeof R=="number"?V=R:typeof R=="string"&&R.length>0&&R.trim().length===R.length&&(V=Number(R)),V===void 0)break;return P==d.w.UINT32?(0,p.fp)(V):(0,p.ug)(V),V;case d.w.INT64:case d.w.SFIXED64:case d.w.SINT64:if(R===null)return h.q.zero;if(typeof R!="number"&&typeof R!="string")break;const z=h.q.parse(R);return B?z.toString():z;case d.w.FIXED64:case d.w.UINT64:if(R===null)return h.q.zero;if(typeof R!="number"&&typeof R!="string")break;const W=h.q.uParse(R);return B?W.toString():W;case d.w.BOOL:if(R===null)return!1;if(typeof R!="boolean")break;return R;case d.w.STRING:if(R===null)return"";if(typeof R!="string")break;try{encodeURIComponent(R)}catch{throw new Error("invalid UTF8")}return R;case d.w.BYTES:if(R===null||R==="")return new Uint8Array(0);if(typeof R!="string")break;return m.W.dec(R)}throw new Error}function w(P,R,B){if(R===null)return 0;switch(typeof R){case"number":if(Number.isInteger(R))return R;break;case"string":const U=P.findName(R);if(U||B)return U==null?void 0:U.no;break}throw new Error(`cannot decode enum ${P.typeName} from JSON: ${k(R)}`)}function E(P,R,B,U){var V;if(R===void 0)return R;if(R===0&&!B)return;if(U)return R;if(P.typeName=="google.protobuf.NullValue")return null;const z=P.findNumber(R);return(V=z==null?void 0:z.name)!==null&&V!==void 0?V:R}function $(P,R,B){if(R!==void 0)switch(P){case d.w.INT32:case d.w.SFIXED32:case d.w.SINT32:case d.w.FIXED32:case d.w.UINT32:return(0,p.hu)(typeof R=="number"),R!=0||B?R:void 0;case d.w.FLOAT:case d.w.DOUBLE:return(0,p.hu)(typeof R=="number"),Number.isNaN(R)?"NaN":R===Number.POSITIVE_INFINITY?"Infinity":R===Number.NEGATIVE_INFINITY?"-Infinity":R!==0||B?R:void 0;case d.w.STRING:return(0,p.hu)(typeof R=="string"),R.length>0||B?R:void 0;case d.w.BOOL:return(0,p.hu)(typeof R=="boolean"),R||B?R:void 0;case d.w.UINT64:case d.w.FIXED64:case d.w.INT64:case d.w.SFIXED64:case d.w.SINT64:return(0,p.hu)(typeof R=="bigint"||typeof R=="string"||typeof R=="number"),B||R!=0?R.toString(10):void 0;case d.w.BYTES:return(0,p.hu)(R instanceof Uint8Array),B||R.byteLength>0?m.W.enc(R):void 0}}},504:(s,l,u)=>{u.d(l,{GD:()=>E,Rz:()=>d,Sm:()=>m,ll:()=>w,r1:()=>c,uA:()=>p,x1:()=>h});function c($){switch($.kind){case"field":return d($.name,$.oneof!==void 0);case"oneof":return p($.name);case"enum":case"message":case"service":{const P=$.file.proto.package,R=P===void 0?0:P.length+1,B=$.typeName.substring(R).replace(/\./g,"_");return w(E(B))}case"enum_value":{const P=$.parent.sharedPrefix;if(P===void 0)return $.name;const R=$.name.substring(P.length);return w(R)}case"rpc":{let P=$.name;return P.length==0?P:(P=P[0].toLowerCase()+P.substring(1),w(P))}}}function d($,P){const R=O($);return P?R:w(C(R))}function p($){return d($,!1)}const h=O;function m($,P){const R=b($)+"_";for(const B of P){if(!B.toLowerCase().startsWith(R))return;const U=B.substring(R.length);if(U.length==0||/^\d/.test(U))return}return R}function b($){return($.substring(0,1)+$.substring(1).replace(/[A-Z]/g,P=>"_"+P)).toLowerCase()}function O($){let P=!1;const R=[];for(let B=0;B<$.length;B++){let U=$.charAt(B);switch(U){case"_":P=!0;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":R.push(U),P=!1;break;default:P&&(P=!1,U=U.toUpperCase()),R.push(U);break}}return R.join("")}const y=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with","yield","enum","implements","interface","let","package","private","protected","public","static","Object","bigint","number","boolean","string","object","globalThis","Uint8Array","Partial"]),v=new Set(["constructor","toString","toJSON","valueOf"]),S=new Set(["getType","clone","equals","fromBinary","fromJson","fromJsonString","toBinary","toJson","toJsonString","toObject"]),k=$=>`${$}$`,C=$=>S.has($)?k($):$,w=$=>v.has($)?k($):$,E=$=>y.has($)?k($):$},493:(s,l,u)=>{u.d(l,{F:()=>h});var c=u(609),d=u(561);function p(m,b,O,y){var v;const S=(v=y==null?void 0:y.localName)!==null&&v!==void 0?v:b.substring(b.lastIndexOf(".")+1),k={[S]:function(C){m.util.initFields(this),m.util.initPartial(C,this)}}[S];return Object.setPrototypeOf(k.prototype,new d.v),Object.assign(k,{runtime:m,typeName:b,fields:m.util.newFieldList(O),fromBinary(C,w){return new k().fromBinary(C,w)},fromJson(C,w){return new k().fromJson(C,w)},fromJsonString(C,w){return new k().fromJsonString(C,w)},equals(C,w){return m.util.equals(k,C,w)}}),k}function h(m,b,O,y){return{syntax:m,json:b,bin:O,util:y,makeMessageType(v,S,k){return p(this,v,S,k)},makeEnum:c.ut,makeEnumType:c.be,getEnumType:c.V3}}},781:(s,l,u)=>{u.d(l,{AA:()=>h,T1:()=>b,kY:()=>m});var c=u(465),d=u(79),p=u(210);function h(O,y,v){if(y===v)return!0;if(O==c.w.BYTES){if(!(y instanceof Uint8Array)||!(v instanceof Uint8Array)||y.length!==v.length)return!1;for(let S=0;S{u.d(l,{f:()=>m});var c=u(609),d=u(561),p=u(465),h=u(781);function m(){return{setEnumType:c.zg,initPartial(y,v){if(y===void 0)return;const S=v.getType();for(const k of S.fields.byMember()){const C=k.localName,w=v,E=y;if(E[C]!==void 0)switch(k.kind){case"oneof":const $=E[C].case;if($===void 0)continue;const P=k.findField($);let R=E[C].value;P&&P.kind=="message"&&!(R instanceof P.T)?R=new P.T(R):P&&P.kind==="scalar"&&P.T===p.w.BYTES&&(R=O(R)),w[C]={case:$,value:R};break;case"scalar":case"enum":let B=E[C];k.T===p.w.BYTES&&(B=k.repeated?B.map(O):O(B)),w[C]=B;break;case"map":switch(k.V.kind){case"scalar":case"enum":if(k.V.T===p.w.BYTES)for(const[z,W]of Object.entries(E[C]))w[C][z]=O(W);else Object.assign(w[C],E[C]);break;case"message":const V=k.V.T;for(const z of Object.keys(E[C])){let W=E[C][z];V.fieldWrapper||(W=new V(W)),w[C][z]=W}break}break;case"message":const U=k.T;if(k.repeated)w[C]=E[C].map(V=>V instanceof U?V:new U(V));else if(E[C]!==void 0){const V=E[C];U.fieldWrapper?U.typeName==="google.protobuf.BytesValue"?w[C]=O(V):w[C]=V:w[C]=V instanceof U?V:new U(V)}break}}},equals(y,v,S){return v===S?!0:!v||!S?!1:y.fields.byMember().every(k=>{const C=v[k.localName],w=S[k.localName];if(k.repeated){if(C.length!==w.length)return!1;switch(k.kind){case"message":return C.every((E,$)=>k.T.equals(E,w[$]));case"scalar":return C.every((E,$)=>(0,h.AA)(k.T,E,w[$]));case"enum":return C.every((E,$)=>(0,h.AA)(p.w.INT32,E,w[$]))}throw new Error(`repeated cannot contain ${k.kind}`)}switch(k.kind){case"message":return k.T.equals(C,w);case"enum":return(0,h.AA)(p.w.INT32,C,w);case"scalar":return(0,h.AA)(k.T,C,w);case"oneof":if(C.case!==w.case)return!1;const E=k.findField(C.case);if(E===void 0)return!0;switch(E.kind){case"message":return E.T.equals(C.value,w.value);case"enum":return(0,h.AA)(p.w.INT32,C.value,w.value);case"scalar":return(0,h.AA)(E.T,C.value,w.value)}throw new Error(`oneof cannot contain ${E.kind}`);case"map":const $=Object.keys(C).concat(Object.keys(w));switch(k.V.kind){case"message":const P=k.V.T;return $.every(B=>P.equals(C[B],w[B]));case"enum":return $.every(B=>(0,h.AA)(p.w.INT32,C[B],w[B]));case"scalar":const R=k.V.T;return $.every(B=>(0,h.AA)(R,C[B],w[B]))}break}})},clone(y){const v=y.getType(),S=new v,k=S;for(const C of v.fields.byMember()){const w=y[C.localName];let E;if(C.repeated)E=w.map(b);else if(C.kind=="map"){E=k[C.localName];for(const[$,P]of Object.entries(w))E[$]=b(P)}else C.kind=="oneof"?E=C.findField(w.case)?{case:w.case,value:b(w.value)}:{case:void 0}:E=b(w);k[C.localName]=E}return S}}}function b(y){if(y===void 0)return y;if(y instanceof d.v)return y.clone();if(y instanceof Uint8Array){const v=new Uint8Array(y.byteLength);return v.set(y),v}return y}function O(y){return y instanceof Uint8Array?y:new Uint8Array(y)}},236:(s,l,u)=>{u.d(l,{W:()=>p});let c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),d=[];for(let h=0;h>4,S=v,y=2;break;case 2:b[O++]=(S&15)<<4|(v&60)>>2,S=v,y=3;break;case 3:b[O++]=(S&3)<<6|v,y=0;break}}if(y==1)throw Error("invalid base64 string.");return b.subarray(0,O)},enc(h){let m="",b=0,O,y=0;for(let v=0;v>2],y=(O&3)<<4,b=1;break;case 1:m+=c[y|O>>4],y=(O&15)<<2,b=2;break;case 2:m+=c[y|O>>6],m+=c[O&63],b=0;break}return b&&(m+=c[y],m+="=",b==1&&(m+="=")),m}}},210:(s,l,u)=>{u.d(l,{q:()=>h});var c=u(120),d=u(818);function p(){const m=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof m.getBigInt64=="function"&&typeof m.getBigUint64=="function"&&typeof m.setBigInt64=="function"&&typeof m.setBigUint64=="function"&&(typeof process!="object"||typeof n!="object"||n.BUF_BIGINT_DISABLE!=="1")){const v=BigInt("-9223372036854775808"),S=BigInt("9223372036854775807"),k=BigInt("0"),C=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(w){const E=typeof w=="bigint"?w:BigInt(w);if(E>S||EC||E(0,c.hu)(/^-?[0-9]+$/.test(v),`int64 invalid: ${v}`),y=v=>(0,c.hu)(/^[0-9]+$/.test(v),`uint64 invalid: ${v}`);return{zero:"0",supported:!1,parse(v){return typeof v!="string"&&(v=v.toString()),O(v),v},uParse(v){return typeof v!="string"&&(v=v.toString()),y(v),v},enc(v){return typeof v!="string"&&(v=v.toString()),O(v),(0,d.CZ)(v)},uEnc(v){return typeof v!="string"&&(v=v.toString()),y(v),(0,d.CZ)(v)},dec(v,S){return(0,d.Ak)(v,S)},uDec(v,S){return(0,d.Fd)(v,S)}}}const h=p()},850:(s,l,u)=>{u.d(l,{w:()=>E});var c=u(493),d=u(465),p=u(744);function h(){return Object.assign(Object.assign({},(0,p.gY)()),{writeMessage(P,R,B){const U=P.getType();for(const V of U.fields.byNumber()){let z,W=V.repeated,X=V.localName;if(V.oneof){const q=P[V.oneof.localName];if(q.case!==X)continue;z=q.value}else z=P[X];switch(V.kind){case"scalar":case"enum":let q=V.kind=="enum"?d.w.INT32:V.T;if(W)if(V.packed)(0,p.Jj)(R,q,V.no,z);else for(const Y of z)(0,p.NN)(R,q,V.no,Y,!0);else z!==void 0&&(0,p.NN)(R,q,V.no,z,!!V.oneof||V.opt);break;case"message":if(W)for(const Y of z)(0,p.oQ)(R,B,V,Y);else(0,p.oQ)(R,B,V,z);break;case"map":for(const[Y,Z]of Object.entries(z))(0,p.gQ)(R,B,V,Y,Z);break}}return B.writeUnknownFields&&this.writeUnknownFields(P,R),R}})}var m=u(432),b=u(120),O=u(814);function y(){return(0,O.b)((P,R)=>function(U,V,z){if(U.kind=="map"){const W={};switch(U.V.kind){case"scalar":for(const[q,Y]of Object.entries(V)){const Z=R(U.V.T,Y,!0);(0,b.hu)(Z!==void 0),W[q.toString()]=Z}break;case"message":for(const[q,Y]of Object.entries(V))W[q.toString()]=Y.toJson(z);break;case"enum":const X=U.V.T;for(const[q,Y]of Object.entries(V)){(0,b.hu)(Y===void 0||typeof Y=="number");const Z=P(X,Y,!0,z.enumAsInteger);(0,b.hu)(Z!==void 0),W[q.toString()]=Z}break}return z.emitDefaultValues||Object.keys(W).length>0?W:void 0}else if(U.repeated){const W=[];switch(U.kind){case"scalar":for(let X=0;X0?W:void 0}else switch(U.kind){case"scalar":return R(U.T,V,!!U.oneof||U.opt||z.emitDefaultValues);case"enum":return P(U.T,V,!!U.oneof||U.opt||z.emitDefaultValues,z.enumAsInteger);case"message":return V!==void 0?(0,m.E)(U.T,V).toJson(z):void 0}})}var v=u(433),S=u(501),k=u(781),C=u(215),w=u(504);const E=(0,c.F)("proto3",y(),h(),Object.assign(Object.assign({},(0,v.f)()),{newFieldList(P){return new S.i(P,$)},initFields(P){for(const R of P.getType().fields.byMember()){if(R.opt)continue;const B=R.localName,U=P;if(R.repeated){U[B]=[];continue}switch(R.kind){case"oneof":U[B]={case:void 0};break;case"enum":U[B]=0;break;case"map":U[B]={};break;case"scalar":U[B]=(0,k.kY)(R.T,R.L);break}}}}));function $(P){var R,B,U,V;const z=[];let W;for(const X of typeof P=="function"?P():P){const q=X;if(q.localName=(0,w.Rz)(X.name,X.oneof!==void 0),q.jsonName=(R=X.jsonName)!==null&&R!==void 0?R:(0,w.x1)(X.name),q.repeated=(B=X.repeated)!==null&&B!==void 0?B:!1,X.kind=="scalar"&&(q.L=(U=X.L)!==null&&U!==void 0?U:d.p.BIGINT),X.oneof!==void 0){const Y=typeof X.oneof=="string"?X.oneof:X.oneof.name;(!W||W.name!=Y)&&(W=new C.o(Y)),q.oneof=W,W.addField(q)}X.kind=="message"&&(q.delimited=!1),q.packed=(V=X.packed)!==null&&V!==void 0?V:X.kind=="enum"||X.kind=="scalar"&&X.T!=d.w.BYTES&&X.T!=d.w.STRING,z.push(q)}return z}},328:(s,l,u)=>{u.d(l,{t:()=>c,w:()=>d});var c;(function(p){p[p.Unary=0]="Unary",p[p.ServerStreaming=1]="ServerStreaming",p[p.ClientStreaming=2]="ClientStreaming",p[p.BiDiStreaming=3]="BiDiStreaming"})(c||(c={}));var d;(function(p){p[p.NoSideEffects=1]="NoSideEffects",p[p.Idempotent=2]="Idempotent"})(d||(d={}))}},i={};function o(s){var l=i[s];if(l!==void 0)return l.exports;var u=i[s]={exports:{}};return r[s](u,u.exports,o),u.exports}o.d=(s,l)=>{for(var u in l)o.o(l,u)&&!o.o(s,u)&&Object.defineProperty(s,u,{enumerable:!0,get:l[u]})},o.o=(s,l)=>Object.prototype.hasOwnProperty.call(s,l),o.r=s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var a={};return(()=>{o.r(a),o.d(a,{Change:()=>mf,Client:()=>f6,ClientEventType:()=>Va,ClientStatus:()=>jc,Counter:()=>XO,DocEventType:()=>Ln,Document:()=>c6,DocumentSyncResultType:()=>nh,EventSourceDevPanel:()=>Loe,EventSourceSDK:()=>Moe,Primitive:()=>Rr,StreamConnectionStatus:()=>bf,SyncMode:()=>Wu,Text:()=>ZO,TimeTicket:()=>Er,Tree:()=>KO,converter:()=>Zl,default:()=>Boe});var s;(function(A){A[A.Trivial=0]="Trivial",A[A.Debug=1]="Debug",A[A.Info=2]="Info",A[A.Warn=3]="Warn",A[A.Error=4]="Error",A[A.Fatal=5]="Fatal"})(s||(s={}));let l=s.Info;const u={trivial:(...A)=>{l>s.Trivial||typeof console<"u"&&console.log("YORKIE T:",...A)},debug:(...A)=>{l>s.Debug||typeof console<"u"&&console.log("YORKIE D:",...A)},info:(...A)=>{l>s.Info||typeof console<"u"&&console.log("YORKIE I:",...A)},warn:(...A)=>{l>s.Warn||typeof console<"u"&&(typeof console.warn<"u"?console.warn("YORKIE W:",...A):console.log("YORKIE W:",...A))},error:(...A)=>{l>s.Error||typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE E:",...A):console.log("YORKIE E:",...A))},fatal:(A,...f)=>{throw typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE F:",...f):console.log("YORKIE F:",...f)),new Error(`YORKIE F: ${A}`)},isEnabled:A=>l<=A};function c(){return"xxxxxxxx-xxxx-4xxxy-xxxx-xxxxxxxxxxx".replace(/[xy]/g,A=>{const f=Math.random()*16|0;return(A==="x"?f:f&3|8).toString(16)})}const d=()=>{};class p{constructor(f){this.finalized=!1,this.observers=[];try{f(this)}catch(g){this.error(g)}}next(f){this.forEachObserver(g=>{g.next(f)})}error(f){this.forEachObserver(g=>{g.error(f)}),this.close(f)}complete(){this.forEachObserver(f=>{f.complete()}),this.close()}subscribe(f,g,T){let _;f||u.fatal("missing observer"),this.finalized&&u.fatal("observable is finalized due to previous error"),typeof f=="object"?_=f:_={next:f,error:g,complete:T},_.next===void 0&&(_.next=d),_.error===void 0&&(_.error=d),_.complete===void 0&&(_.complete=d);const H=c(),K=this.unsubscribeOne.bind(this,H);if(this.observers.push({subscriptionID:H,observer:_}),this.finalized)try{this.finalError?_.error(this.finalError):_.complete()}catch(oe){u.warn(oe)}return K}unsubscribeOne(f){var g;this.observers=(g=this.observers)===null||g===void 0?void 0:g.filter(T=>T.subscriptionID!==f)}forEachObserver(f){if(!this.finalized)for(let g=0;gf}}var m=o(328);function b(A,f){const g={};for(const[T,_]of Object.entries(A.methods)){const H=f(Object.assign(Object.assign({},_),{localName:T,service:A}));H!=null&&(g[T]=H)}return g}var O;(function(A){A[A.Canceled=1]="Canceled",A[A.Unknown=2]="Unknown",A[A.InvalidArgument=3]="InvalidArgument",A[A.DeadlineExceeded=4]="DeadlineExceeded",A[A.NotFound=5]="NotFound",A[A.AlreadyExists=6]="AlreadyExists",A[A.PermissionDenied=7]="PermissionDenied",A[A.ResourceExhausted=8]="ResourceExhausted",A[A.FailedPrecondition=9]="FailedPrecondition",A[A.Aborted=10]="Aborted",A[A.OutOfRange=11]="OutOfRange",A[A.Unimplemented=12]="Unimplemented",A[A.Internal=13]="Internal",A[A.Unavailable=14]="Unavailable",A[A.DataLoss=15]="DataLoss",A[A.Unauthenticated=16]="Unauthenticated"})(O||(O={}));var y=o(561);function v(A){const f=O[A];return typeof f!="string"?A.toString():f[0].toLowerCase()+f.substring(1).replace(/[A-Z]/g,g=>"_"+g.toLowerCase())}class S extends Error{constructor(f,g=O.Unknown,T,_,H){super(k(f,g)),this.name="ConnectError",Object.setPrototypeOf(this,new.target.prototype),this.rawMessage=f,this.code=g,this.metadata=new Headers(T??{}),this.details=_??[],this.cause=H}static from(f,g=O.Unknown){return f instanceof S?f:f instanceof Error?f.name=="AbortError"?new S(f.message,O.Canceled):new S(f.message,g,void 0,void 0,f):new S(String(f),g,void 0,void 0,f)}findDetails(f){const g="typeName"in f?{findMessage:_=>_===f.typeName?f:void 0}:f,T=[];for(const _ of this.details){if(_ instanceof y.v){g.findMessage(_.getType().typeName)&&T.push(_);continue}const H=g.findMessage(_.type);if(H)try{T.push(H.fromBinary(_.value))}catch{}}return T}}function k(A,f){return A.length?`[${v(f)}] ${A}`:`[${v(f)}]`}var C=function(A){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var f=A[Symbol.asyncIterator],g;return f?f.call(A):(A=typeof __values=="function"?__values(A):A[Symbol.iterator](),g={},T("next"),T("throw"),T("return"),g[Symbol.asyncIterator]=function(){return this},g);function T(H){g[H]=A[H]&&function(K){return new Promise(function(oe,Ae){K=A[H](K),_(oe,Ae,K.done,K.value)})}}function _(H,K,oe,Ae){Promise.resolve(Ae).then(function(He){H({value:He,done:oe})},K)}},w=function(A){return this instanceof w?(this.v=A,this):new w(A)},E=function(A,f,g){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var T=g.apply(A,f||[]),_,H=[];return _={},K("next"),K("throw"),K("return"),_[Symbol.asyncIterator]=function(){return this},_;function K(ft){T[ft]&&(_[ft]=function(sn){return new Promise(function(In,Nn){H.push([ft,sn,In,Nn])>1||oe(ft,sn)})})}function oe(ft,sn){try{Ae(T[ft](sn))}catch(In){Ft(H[0][3],In)}}function Ae(ft){ft.value instanceof w?Promise.resolve(ft.value.v).then(He,yt):Ft(H[0][2],ft)}function He(ft){oe("next",ft)}function yt(ft){oe("throw",ft)}function Ft(ft,sn){ft(sn),H.shift(),H.length&&oe(H[0][0],H[0][1])}},$=function(A){var f,g;return f={},T("next"),T("throw",function(_){throw _}),T("return"),f[Symbol.iterator]=function(){return this},f;function T(_,H){f[_]=A[_]?function(K){return(g=!g)?{value:w(A[_](K)),done:!1}:H?H(K):K}:H}};function P(A){return E(this,arguments,function*(){yield w(yield*$(C(A)))})}var R=function(A){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var f=A[Symbol.asyncIterator],g;return f?f.call(A):(A=typeof __values=="function"?__values(A):A[Symbol.iterator](),g={},T("next"),T("throw"),T("return"),g[Symbol.asyncIterator]=function(){return this},g);function T(H){g[H]=A[H]&&function(K){return new Promise(function(oe,Ae){K=A[H](K),_(oe,Ae,K.done,K.value)})}}function _(H,K,oe,Ae){Promise.resolve(Ae).then(function(He){H({value:He,done:oe})},K)}},B=function(A){return this instanceof B?(this.v=A,this):new B(A)},U=function(A){var f,g;return f={},T("next"),T("throw",function(_){throw _}),T("return"),f[Symbol.iterator]=function(){return this},f;function T(_,H){f[_]=A[_]?function(K){return(g=!g)?{value:B(A[_](K)),done:!1}:H?H(K):K}:H}},V=function(A,f,g){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var T=g.apply(A,f||[]),_,H=[];return _={},K("next"),K("throw"),K("return"),_[Symbol.asyncIterator]=function(){return this},_;function K(ft){T[ft]&&(_[ft]=function(sn){return new Promise(function(In,Nn){H.push([ft,sn,In,Nn])>1||oe(ft,sn)})})}function oe(ft,sn){try{Ae(T[ft](sn))}catch(In){Ft(H[0][3],In)}}function Ae(ft){ft.value instanceof B?Promise.resolve(ft.value.v).then(He,yt):Ft(H[0][2],ft)}function He(ft){oe("next",ft)}function yt(ft){oe("throw",ft)}function Ft(ft,sn){ft(sn),H.shift(),H.length&&oe(H[0][0],H[0][1])}};function z(A,f){return b(A,g=>{switch(g.kind){case m.t.Unary:return W(f,A,g);case m.t.ServerStreaming:return X(f,A,g);case m.t.ClientStreaming:return q(f,A,g);case m.t.BiDiStreaming:return Y(f,A,g);default:return null}})}function W(A,f,g){return async function(T,_){var H,K;const oe=await A.unary(f,g,_==null?void 0:_.signal,_==null?void 0:_.timeoutMs,_==null?void 0:_.headers,T,_==null?void 0:_.contextValues);return(H=_==null?void 0:_.onHeader)===null||H===void 0||H.call(_,oe.header),(K=_==null?void 0:_.onTrailer)===null||K===void 0||K.call(_,oe.trailer),oe.message}}function X(A,f,g){return function(T,_){return Z(A.stream(f,g,_==null?void 0:_.signal,_==null?void 0:_.timeoutMs,_==null?void 0:_.headers,P([T]),_==null?void 0:_.contextValues),_)}}function q(A,f,g){return async function(T,_){var H,K,oe,Ae,He,yt;const Ft=await A.stream(f,g,_==null?void 0:_.signal,_==null?void 0:_.timeoutMs,_==null?void 0:_.headers,T,_==null?void 0:_.contextValues);(He=_==null?void 0:_.onHeader)===null||He===void 0||He.call(_,Ft.header);let ft;try{for(var sn=!0,In=R(Ft.message),Nn;Nn=await In.next(),H=Nn.done,!H;sn=!0)Ae=Nn.value,sn=!1,ft=Ae}catch(sr){K={error:sr}}finally{try{!sn&&!H&&(oe=In.return)&&await oe.call(In)}finally{if(K)throw K.error}}if(!ft)throw new S("protocol error: missing response message",O.Internal);return(yt=_==null?void 0:_.onTrailer)===null||yt===void 0||yt.call(_,Ft.trailer),ft}}function Y(A,f,g){return function(T,_){return Z(A.stream(f,g,_==null?void 0:_.signal,_==null?void 0:_.timeoutMs,_==null?void 0:_.headers,T,_==null?void 0:_.contextValues),_)}}function Z(A,f){const g=function(){var T,_;return V(this,arguments,function*(){const H=yield B(A);(T=f==null?void 0:f.onHeader)===null||T===void 0||T.call(f,H.header),yield B(yield*U(R(H.message))),(_=f==null?void 0:f.onTrailer)===null||_===void 0||_.call(f,H.trailer)})}()[Symbol.asyncIterator]();return{[Symbol.asyncIterator]:()=>({next:()=>g.next()})}}function j(){return{get(A){return A.id in this?this[A.id]:A.defaultValue},set(A,f){return this[A.id]=f,this},delete(A){return delete this[A.id],this}}}function se(A){var f;const g=Object.assign({},A);return(f=g.ignoreUnknownFields)!==null&&f!==void 0||(g.ignoreUnknownFields=!0),g}function ve(A,f,g,T){const _=f?G(A.I,T):ce(A.I,g);return{parse:(f?G(A.O,T):ce(A.O,g)).parse,serialize:_.serialize}}function G(A,f){return{parse(g){try{return A.fromBinary(g,f)}catch(T){const _=T instanceof Error?T.message:String(T);throw new S(`parse binary: ${_}`,O.InvalidArgument)}},serialize(g){try{return g.toBinary(f)}catch(T){const _=T instanceof Error?T.message:String(T);throw new S(`serialize binary: ${_}`,O.Internal)}}}}function ce(A,f){var g,T;const _=(g=f==null?void 0:f.textEncoder)!==null&&g!==void 0?g:new TextEncoder,H=(T=f==null?void 0:f.textDecoder)!==null&&T!==void 0?T:new TextDecoder,K=se(f);return{parse(oe){try{const Ae=H.decode(oe);return A.fromJsonString(Ae,K)}catch(Ae){throw S.from(Ae,O.InvalidArgument)}},serialize(oe){try{const Ae=oe.toJsonString(K);return _.encode(Ae)}catch(Ae){throw S.from(Ae,O.Internal)}}}}function ge(...A){const f=new AbortController,g=A.filter(_=>_!==void 0).concat(f.signal);for(const _ of g){if(_.aborted){T.apply(_);break}_.addEventListener("abort",T)}function T(){f.signal.aborted||f.abort(xe(this));for(const _ of g)_.removeEventListener("abort",T)}return f}function ue(A){const f=new AbortController,g=()=>{f.abort(new S("the operation timed out",O.DeadlineExceeded))};let T;return A!==void 0&&(A<=0?g():T=setTimeout(g,A)),{signal:f.signal,cleanup:()=>clearTimeout(T)}}function xe(A){if(!A.aborted)return;if(A.reason!==void 0)return A.reason;const f=new Error("This operation was aborted");return f.name="AbortError",f}function Ne(A,f){return f instanceof y.v?f:new A(f)}function Ve(A,f){function g(T){return T.done===!0?T:{done:T.done,value:Ne(A,T.value)}}return{[Symbol.asyncIterator](){const T=f[Symbol.asyncIterator](),_={next:()=>T.next().then(g)};return T.throw!==void 0&&(_.throw=H=>T.throw(H).then(g)),T.return!==void 0&&(_.return=H=>T.return(H).then(g)),_}}}function Ke(A){const f=ye(A.next,A.interceptors),[g,T,_]=Ye(A),H=Object.assign(Object.assign({},A.req),{message:Ne(A.req.method.I,A.req.message),signal:g});return f(H).then(K=>(_(),K),T)}function Me(A){const f=ye(A.next,A.interceptors),[g,T,_]=Ye(A),H=Object.assign(Object.assign({},A.req),{message:Ve(A.req.method.I,A.req.message),signal:g});let K=!1;return g.addEventListener("abort",function(){var oe,Ae;const He=A.req.message[Symbol.asyncIterator]();K||(oe=He.throw)===null||oe===void 0||oe.call(He,this.reason).catch(()=>{}),(Ae=He.return)===null||Ae===void 0||Ae.call(He).catch(()=>{})}),f(H).then(oe=>Object.assign(Object.assign({},oe),{message:{[Symbol.asyncIterator](){const Ae=oe.message[Symbol.asyncIterator]();return{next(){return Ae.next().then(He=>(He.done==!0&&(K=!0,_()),He),T)}}}}}),T)}function Ye(A){const{signal:f,cleanup:g}=ue(A.timeoutMs),T=ge(A.signal,f);return[T.signal,function(H){const K=S.from(f.aborted?xe(f):H);return T.abort(K),g(),Promise.reject(K)},function(){g(),T.abort()}]}function ye(A,f){var g;return(g=f==null?void 0:f.concat().reverse().reduce((T,_)=>_(T),A))!==null&&g!==void 0?g:A}function ze(A,f,g){const T=typeof f=="string"?f:f.typeName,_=typeof g=="string"?g:g.name;return A.toString().replace(/\/?$/,`/${T}/${_}`)}function $e(A){let f,g=new Uint8Array(0);function T(_){const H=new Uint8Array(g.length+_.length);H.set(g),H.set(_,g.length),g=H}return new ReadableStream({start(){f=A.getReader()},async pull(_){let H;for(;;){if(H===void 0&&g.byteLength>=5){let Ae=0;for(let He=1;He<5;He++)Ae=(Ae<<8)+g[He];H={flags:g[0],length:Ae}}if(H!==void 0&&g.byteLength>=H.length+5)break;const oe=await f.read();if(oe.done)break;T(oe.value)}if(H===void 0){if(g.byteLength==0){_.close();return}_.error(new S("premature end of stream",O.DataLoss));return}const K=g.subarray(5,5+H.length);g=g.subarray(5+H.length),_.enqueue({flags:H.flags,data:K})}})}function We(A,f){const g=new Uint8Array(f.length+5);g.set(f,5);const T=new DataView(g.buffer,g.byteOffset,g.byteLength);return T.setUint8(0,A),T.setUint32(1,f.length),g}const dt="Content-Type",Be="Grpc-Timeout",re="Grpc-Status",ee="Grpc-Message",J="Grpc-Status-Details-Bin",Re="User-Agent",Le="X-User-Agent",De="X-Grpc-Web",ie="application/grpc-web+proto",fe="application/grpc-web+json";function de(A,f,g,T){const _=new Headers(g??{});return _.set(dt,A?ie:fe),_.set(De,"1"),_.set(Le,"connect-es/1.2.0"),T&&_.set(Re,"connect-es/1.2.0"),f!==void 0&&_.set(Be,`${f}m`),_}function Oe(A){switch(A){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}}var Te=o(850),rt=o(733);class pt extends y.v{constructor(f){super(),this.code=0,this.message="",this.details=[],Te.w.util.initPartial(f,this)}static fromBinary(f,g){return new pt().fromBinary(f,g)}static fromJson(f,g){return new pt().fromJson(f,g)}static fromJsonString(f,g){return new pt().fromJsonString(f,g)}static equals(f,g){return Te.w.util.equals(pt,f,g)}}pt.runtime=Te.w,pt.typeName="google.rpc.Status",pt.fields=Te.w.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:rt.I,repeated:!0}]);var xt=o(236);function et(A,f,g){try{const T=xt.W.dec(A);return f?f.fromBinary(T,g):T}catch(T){throw S.from(T,O.DataLoss)}}const vt="0";function qe(A){var f;const g=A.get(J);if(g!=null){const _=et(g,pt);if(_.code==0)return;const H=new S(_.message,_.code,A);return H.details=_.details.map(K=>({type:K.typeUrl.substring(K.typeUrl.lastIndexOf("/")+1),value:K.value})),H}const T=A.get(re);if(T!=null){if(T===vt)return;const _=parseInt(T,10);return _ in O?new S(decodeURIComponent((f=A.get(ee))!==null&&f!==void 0?f:""),_,A):new S(`invalid grpc-status: ${T}`,O.Internal,A)}}function it(A,f){var g;if(A>=200&&A<300){const T=qe(f);if(T)throw T;return{foundStatus:f.has(re)}}throw new S(decodeURIComponent((g=f.get(ee))!==null&&g!==void 0?g:`HTTP ${A}`),Oe(A),f)}const Et=128;function Nt(A){const f=new Headers,g=new TextDecoder().decode(A).split(`\r +`);for(const T of g){if(T==="")continue;const _=T.indexOf(":");if(_>0){const H=T.substring(0,_).trim(),K=T.substring(_+1).trim();f.append(H,K)}}return f}function on(A,f){const g=qe(A);if(g)throw f.forEach((T,_)=>{g.metadata.append(_,T)}),g}function dn(){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.")}}var pn=function(A){return this instanceof pn?(this.v=A,this):new pn(A)},zn=function(A,f,g){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var T=g.apply(A,f||[]),_,H=[];return _={},K("next"),K("throw"),K("return"),_[Symbol.asyncIterator]=function(){return this},_;function K(ft){T[ft]&&(_[ft]=function(sn){return new Promise(function(In,Nn){H.push([ft,sn,In,Nn])>1||oe(ft,sn)})})}function oe(ft,sn){try{Ae(T[ft](sn))}catch(In){Ft(H[0][3],In)}}function Ae(ft){ft.value instanceof pn?Promise.resolve(ft.value.v).then(He,yt):Ft(H[0][2],ft)}function He(ft){oe("next",ft)}function yt(ft){oe("throw",ft)}function Ft(ft,sn){ft(sn),H.shift(),H.length&&oe(H[0][0],H[0][1])}};function Ee(A){var f;dn();const g=(f=A.useBinaryFormat)!==null&&f!==void 0?f:!0;return{async unary(T,_,H,K,oe,Ae,He){var yt;const{serialize:Ft,parse:ft}=ve(_,g,A.jsonOptions,A.binaryOptions);return K=K===void 0?A.defaultTimeoutMs:K<=0?void 0:K,await Ke({interceptors:A.interceptors,signal:H,timeoutMs:K,req:{stream:!1,service:T,method:_,url:ze(A.baseUrl,T,_),init:{method:"POST",credentials:(yt=A.credentials)!==null&&yt!==void 0?yt:"same-origin",redirect:"error",mode:"cors"},header:de(g,K,oe,!1),contextValues:He??j(),message:Ae},next:async sn=>{var In;const sr=await((In=A.fetch)!==null&&In!==void 0?In:globalThis.fetch)(sn.url,Object.assign(Object.assign({},sn.init),{headers:sn.header,signal:sn.signal,body:We(0,Ft(sn.message))}));if(it(sr.status,sr.headers),!sr.body)throw"missing response body";const so=$e(sr.body).getReader();let $n,ni;for(;;){const qr=await so.read();if(qr.done)break;const{flags:vi,data:yf}=qr.value;if(vi===Et){if($n!==void 0)throw"extra trailer";$n=Nt(yf);continue}if(ni!==void 0)throw"extra message";ni=ft(yf)}if($n===void 0)throw"missing trailer";if(on($n,sr.headers),ni===void 0)throw"missing message";return{stream:!1,header:sr.headers,message:ni,trailer:$n}}})},async stream(T,_,H,K,oe,Ae,He){var yt;const{serialize:Ft,parse:ft}=ve(_,g,A.jsonOptions,A.binaryOptions);function sn(Nn,sr,so,$n){return zn(this,arguments,function*(){const qr=$e(Nn).getReader();if(sr){if(!(yield pn(qr.read())).done)throw"extra data for trailers-only";return yield pn(void 0)}let vi=!1;for(;;){const yf=yield pn(qr.read());if(yf.done)break;const{flags:rh,data:s0}=yf.value;if((rh&Et)===Et){if(vi)throw"extra trailer";vi=!0;const p6=Nt(s0);on(p6,$n),p6.forEach((Uoe,joe)=>so.set(joe,Uoe));continue}if(vi)throw"extra message";yield yield pn(ft(s0))}if(!vi)throw"missing trailer"})}async function In(Nn){if(_.kind!=m.t.ServerStreaming)throw"The fetch API does not support streaming request bodies";const sr=await Nn[Symbol.asyncIterator]().next();if(sr.done==!0)throw"missing request message";return We(0,Ft(sr.value))}return K=K===void 0?A.defaultTimeoutMs:K<=0?void 0:K,Me({interceptors:A.interceptors,signal:H,timeoutMs:K,req:{stream:!0,service:T,method:_,url:ze(A.baseUrl,T,_),init:{method:"POST",credentials:(yt=A.credentials)!==null&&yt!==void 0?yt:"same-origin",redirect:"error",mode:"cors"},header:de(g,K,oe,!1),contextValues:He??j(),message:Ae},next:async Nn=>{var sr;const $n=await((sr=A.fetch)!==null&&sr!==void 0?sr:globalThis.fetch)(Nn.url,Object.assign(Object.assign({},Nn.init),{headers:Nn.header,signal:Nn.signal,body:await In(Nn.message)})),{foundStatus:ni}=it($n.status,$n.headers);if(!$n.body)throw"missing response body";const qr=new Headers;return Object.assign(Object.assign({},Nn),{header:$n.headers,trailer:qr,message:sn($n.body,ni,qr,$n.headers)})}})}}}var _e=o(295),pe=o(646);/** * @license * Copyright 2009 The Closure Library Authors * Copyright 2020 Daniel Wirtz / The long.js Authors. @@ -261,62 +279,44 @@ Error generating stack: `+o.message+` * limitations under the License. * * SPDX-License-Identifier: Apache-2.0 - */var lt=null;try{lt=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 at(A,f,g){this.low=A|0,this.high=f|0,this.unsigned=!!g}at.prototype.__isLong__,Object.defineProperty(at.prototype,"__isLong__",{value:!0});function Mt(A){return(A&&A.__isLong__)===!0}function $t(A){var f=Math.clz32(A&-A);return A?31-f:f}at.isLong=Mt;var It={},Ct={};function Zt(A,f){var g,T,_;return f?(A>>>=0,(_=0<=A&&A<256)&&(T=Ct[A],T)?T:(g=we(A,0,!0),_&&(Ct[A]=g),g)):(A|=0,(_=-128<=A&&A<128)&&(T=It[A],T)?T:(g=we(A,A<0?-1:0,!1),_&&(It[A]=g),g))}at.fromInt=Zt;function Ie(A,f){if(isNaN(A))return f?tn:Dt;if(f){if(A<0)return tn;if(A>=Ue)return Wn}else{if(A<=-Ce)return Qn;if(A+1>=Ce)return bn}return A<0?Ie(-A,f).neg():we(A%tr|0,A/tr|0,f)}at.fromNumber=Ie;function we(A,f,g){return new at(A,f,g)}at.fromBits=we;var Qe=Math.pow;function ot(A,f,g){if(A.length===0)throw Error("empty string");if(typeof f=="number"?(g=f,f=!1):f=!!f,A==="NaN"||A==="Infinity"||A==="+Infinity"||A==="-Infinity")return f?tn:Dt;if(g=g||10,g<2||360)throw Error("interior hyphen");if(T===0)return ot(A.substring(1),f,g).neg();for(var _=Ie(Qe(g,8)),H=Dt,K=0;K>>0:this.low},ht.toNumber=function(){return this.unsigned?(this.high>>>0)*tr+(this.low>>>0):this.high*tr+(this.low>>>0)},ht.toString=function(f){if(f=f||10,f<2||36>>0,yt=He.toString(f);if(K=Ae,K.isZero())return yt+oe;for(;yt.length<6;)yt="0"+yt;oe=""+yt+oe}},ht.getHighBits=function(){return this.high},ht.getHighBitsUnsigned=function(){return this.high>>>0},ht.getLowBits=function(){return this.low},ht.getLowBitsUnsigned=function(){return this.low>>>0},ht.getNumBitsAbs=function(){if(this.isNegative())return this.eq(Qn)?64:this.neg().getNumBitsAbs();for(var f=this.high!=0?this.high:this.low,g=31;g>0&&!(f&1<=0},ht.isOdd=function(){return(this.low&1)===1},ht.isEven=function(){return(this.low&1)===0},ht.equals=function(f){return Mt(f)||(f=rn(f)),this.unsigned!==f.unsigned&&this.high>>>31===1&&f.high>>>31===1?!1:this.high===f.high&&this.low===f.low},ht.eq=ht.equals,ht.notEquals=function(f){return!this.eq(f)},ht.neq=ht.notEquals,ht.ne=ht.notEquals,ht.lessThan=function(f){return this.comp(f)<0},ht.lt=ht.lessThan,ht.lessThanOrEqual=function(f){return this.comp(f)<=0},ht.lte=ht.lessThanOrEqual,ht.le=ht.lessThanOrEqual,ht.greaterThan=function(f){return this.comp(f)>0},ht.gt=ht.greaterThan,ht.greaterThanOrEqual=function(f){return this.comp(f)>=0},ht.gte=ht.greaterThanOrEqual,ht.ge=ht.greaterThanOrEqual,ht.compare=function(f){if(Mt(f)||(f=rn(f)),this.eq(f))return 0;var g=this.isNegative(),T=f.isNegative();return g&&!T?-1:!g&&T?1:this.unsigned?f.high>>>0>this.high>>>0||f.high===this.high&&f.low>>>0>this.low>>>0?-1:1:this.sub(f).isNegative()?-1:1},ht.comp=ht.compare,ht.negate=function(){return!this.unsigned&&this.eq(Qn)?Qn:this.not().add(Mn)},ht.neg=ht.negate,ht.add=function(f){Mt(f)||(f=rn(f));var g=this.high>>>16,T=this.high&65535,_=this.low>>>16,H=this.low&65535,K=f.high>>>16,oe=f.high&65535,Ae=f.low>>>16,He=f.low&65535,yt=0,Ft=0,ft=0,sn=0;return sn+=H+He,ft+=sn>>>16,sn&=65535,ft+=_+Ae,Ft+=ft>>>16,ft&=65535,Ft+=T+oe,yt+=Ft>>>16,Ft&=65535,yt+=g+K,yt&=65535,we(ft<<16|sn,yt<<16|Ft,this.unsigned)},ht.subtract=function(f){return Mt(f)||(f=rn(f)),this.add(f.neg())},ht.sub=ht.subtract,ht.multiply=function(f){if(this.isZero())return this;if(Mt(f)||(f=rn(f)),lt){var g=lt.mul(this.low,this.high,f.low,f.high);return we(g,lt.get_high(),this.unsigned)}if(f.isZero())return this.unsigned?tn:Dt;if(this.eq(Qn))return f.isOdd()?Qn:Dt;if(f.eq(Qn))return this.isOdd()?Qn:Dt;if(this.isNegative())return f.isNegative()?this.neg().mul(f.neg()):this.neg().mul(f).neg();if(f.isNegative())return this.mul(f.neg()).neg();if(this.lt(mt)&&f.lt(mt))return Ie(this.toNumber()*f.toNumber(),this.unsigned);var T=this.high>>>16,_=this.high&65535,H=this.low>>>16,K=this.low&65535,oe=f.high>>>16,Ae=f.high&65535,He=f.low>>>16,yt=f.low&65535,Ft=0,ft=0,sn=0,In=0;return In+=K*yt,sn+=In>>>16,In&=65535,sn+=H*yt,ft+=sn>>>16,sn&=65535,sn+=K*He,ft+=sn>>>16,sn&=65535,ft+=_*yt,Ft+=ft>>>16,ft&=65535,ft+=H*He,Ft+=ft>>>16,ft&=65535,ft+=K*Ae,Ft+=ft>>>16,ft&=65535,Ft+=T*yt+_*He+H*Ae+K*oe,Ft&=65535,we(sn<<16|In,Ft<<16|ft,this.unsigned)},ht.mul=ht.multiply,ht.divide=function(f){if(Mt(f)||(f=rn(f)),f.isZero())throw Error("division by zero");if(lt){if(!this.unsigned&&this.high===-2147483648&&f.low===-1&&f.high===-1)return this;var g=(this.unsigned?lt.div_u:lt.div_s)(this.low,this.high,f.low,f.high);return we(g,lt.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?tn:Dt;var T,_,H;if(this.unsigned){if(f.unsigned||(f=f.toUnsigned()),f.gt(this))return tn;if(f.gt(this.shru(1)))return Dn;H=tn}else{if(this.eq(Qn)){if(f.eq(Mn)||f.eq(Kt))return Qn;if(f.eq(Qn))return Mn;var K=this.shr(1);return T=K.div(f).shl(1),T.eq(Dt)?f.isNegative()?Mn:Kt:(_=this.sub(f.mul(T)),H=T.add(_.div(f)),H)}else if(f.eq(Qn))return this.unsigned?tn:Dt;if(this.isNegative())return f.isNegative()?this.neg().div(f.neg()):this.neg().div(f).neg();if(f.isNegative())return this.div(f.neg()).neg();H=Dt}for(_=this;_.gte(f);){T=Math.max(1,Math.floor(_.toNumber()/f.toNumber()));for(var oe=Math.ceil(Math.log(T)/Math.LN2),Ae=oe<=48?1:Qe(2,oe-48),He=Ie(T),yt=He.mul(f);yt.isNegative()||yt.gt(_);)T-=Ae,He=Ie(T,this.unsigned),yt=He.mul(f);He.isZero()&&(He=Mn),H=H.add(He),_=_.sub(yt)}return H},ht.div=ht.divide,ht.modulo=function(f){if(Mt(f)||(f=rn(f)),lt){var g=(this.unsigned?lt.rem_u:lt.rem_s)(this.low,this.high,f.low,f.high);return we(g,lt.get_high(),this.unsigned)}return this.sub(this.div(f).mul(f))},ht.mod=ht.modulo,ht.rem=ht.modulo,ht.not=function(){return we(~this.low,~this.high,this.unsigned)},ht.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},ht.clz=ht.countLeadingZeros,ht.countTrailingZeros=function(){return this.low?$t(this.low):$t(this.high)+32},ht.ctz=ht.countTrailingZeros,ht.and=function(f){return Mt(f)||(f=rn(f)),we(this.low&f.low,this.high&f.high,this.unsigned)},ht.or=function(f){return Mt(f)||(f=rn(f)),we(this.low|f.low,this.high|f.high,this.unsigned)},ht.xor=function(f){return Mt(f)||(f=rn(f)),we(this.low^f.low,this.high^f.high,this.unsigned)},ht.shiftLeft=function(f){return Mt(f)&&(f=f.toInt()),(f&=63)===0?this:f<32?we(this.low<>>32-f,this.unsigned):we(0,this.low<>>f|this.high<<32-f,this.high>>f,this.unsigned):we(this.high>>f-32,this.high>=0?0:-1,this.unsigned)},ht.shr=ht.shiftRight,ht.shiftRightUnsigned=function(f){return Mt(f)&&(f=f.toInt()),(f&=63)===0?this:f<32?we(this.low>>>f|this.high<<32-f,this.high>>>f,this.unsigned):f===32?we(this.high,0,this.unsigned):we(this.high>>>f-32,0,this.unsigned)},ht.shru=ht.shiftRightUnsigned,ht.shr_u=ht.shiftRightUnsigned,ht.rotateLeft=function(f){var g;return Mt(f)&&(f=f.toInt()),(f&=63)===0?this:f===32?we(this.high,this.low,this.unsigned):f<32?(g=32-f,we(this.low<>>g,this.high<>>g,this.unsigned)):(f-=32,g=32-f,we(this.high<>>g,this.low<>>g,this.unsigned))},ht.rotl=ht.rotateLeft,ht.rotateRight=function(f){var g;return Mt(f)&&(f=f.toInt()),(f&=63)===0?this:f===32?we(this.high,this.low,this.unsigned):f<32?(g=32-f,we(this.high<>>f,this.low<>>f,this.unsigned)):(f-=32,g=32-f,we(this.low<>>f,this.high<>>f,this.unsigned))},ht.rotr=ht.rotateRight,ht.toSigned=function(){return this.unsigned?we(this.low,this.high,!1):this},ht.toUnsigned=function(){return this.unsigned?this:we(this.low,this.high,!0)},ht.toBytes=function(f){return f?this.toBytesLE():this.toBytesBE()},ht.toBytesLE=function(){var f=this.high,g=this.low;return[g&255,g>>>8&255,g>>>16&255,g>>>24,f&255,f>>>8&255,f>>>16&255,f>>>24]},ht.toBytesBE=function(){var f=this.high,g=this.low;return[f>>>24,f>>>16&255,f>>>8&255,f&255,g>>>24,g>>>16&255,g>>>8&255,g&255]},at.fromBytes=function(f,g,T){return T?at.fromBytesLE(f,g):at.fromBytesBE(f,g)},at.fromBytesLE=function(f,g){return new at(f[0]|f[1]<<8|f[2]<<16|f[3]<<24,f[4]|f[5]<<8|f[6]<<16|f[7]<<24,g)},at.fromBytesBE=function(f,g){return new at(f[4]<<24|f[5]<<16|f[6]<<8|f[7],f[0]<<24|f[1]<<16|f[2]<<8|f[3],g)};const Yr=at;var En;(function(A){A.Ok="ok",A.ClientNotActive="client-not-active",A.Unimplemented="unimplemented",A.Unsupported="unsupported",A.DocumentNotAttached="document-not-attached",A.DocumentNotDetached="document-not-detached",A.DocumentRemoved="document-removed",A.InvalidObjectKey="invalid-object-key",A.InvalidArgument="invalid-argument"})(En||(En={}));class An extends Error{constructor(f,g){super(g),this.code=f,this.message=g,this.name="YorkieError",this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}function la(A){if(A instanceof Map){const f=Array.from(A);return new Map(JSON.parse(JSON.stringify(f)))}return JSON.parse(JSON.stringify(A))}const Qp=A=>A?Object.entries(A).length===0:!0,no=A=>{const f={};for(const[g,T]of Object.entries(A))f[g]=JSON.stringify(T);return f},di=A=>{const f={};for(const[g,T]of Object.entries(A))f[g]=JSON.parse(T);return f};var Ma;(function(A){A.Put="put",A.Clear="clear"})(Ma||(Ma={}));class Yp{constructor(f,g){this.context=f,this.presence=g}set(f,g){for(const T of Object.keys(f))this.presence[T]=f[T];this.context.setPresenceChange({type:Ma.Put,presence:la(this.presence)}),this.context.setReversePresence(f,g)}get(f){return this.presence[f]}clear(){this.presence={},this.context.setPresenceChange({type:Ma.Clear})}}const jO="000000000000000000000000",ua="FFFFFFFFFFFFFFFFFFFFFFFF";class vr{constructor(f,g,T){this.lamport=f,this.delimiter=g,this.actorID=T}static of(f,g,T){return new vr(f,g,T)}static fromStruct(f){return vr.of(Yr.fromString(f.lamport,!0),f.delimiter,f.actorID)}toIDString(){return this.actorID?`${this.lamport.toString()}:${this.actorID}:${this.delimiter}`:`${this.lamport.toString()}:nil:${this.delimiter}`}toStruct(){return{lamport:this.getLamportAsString(),delimiter:this.getDelimiter(),actorID:this.getActorID()}}toTestString(){return this.actorID?`${this.lamport.toString()}:${this.actorID.slice(-2)}:${this.delimiter}`:`${this.lamport.toString()}:nil:${this.delimiter}`}setActor(f){return new vr(this.lamport,this.delimiter,f)}getLamportAsString(){return this.lamport.toString()}getLamport(){return this.lamport}getDelimiter(){return this.delimiter}getActorID(){return this.actorID}after(f){return this.compare(f)>0}equals(f){return this.compare(f)===0}compare(f){if(this.lamport.greaterThan(f.lamport))return 1;if(f.lamport.greaterThan(this.lamport))return-1;const g=this.actorID.localeCompare(f.actorID);return g!==0?g:this.delimiter>f.delimiter?1:f.delimiter>this.delimiter?-1:0}}const Gp=0,Ts=4294967295,ws=Yr.MAX_VALUE,ro=new vr(Yr.fromNumber(0),Gp,jO),wo=new vr(ws,Ts,ua);function Br(A){return A.replace(/["'\\\n\r\f\b\t\u2028\u2029]/g,function(f){switch(f){case'"':case"\\":return"\\"+f;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 f}})}class io{constructor(f){this.createdAt=f}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(f){return!this.movedAt||f&&f.after(this.movedAt)?(this.movedAt=f,!0):!1}setRemovedAt(f){this.removedAt=f}remove(f){return f&&f.after(this.getPositionedAt())&&(!this.removedAt||f.after(this.removedAt))?(this.removedAt=f,!0):!1}isRemoved(){return!!this.removedAt}}class Wl extends io{constructor(f){super(f)}}class Vo extends io{}class ko{constructor(f,g){this.strKey=f,this.value=g}static of(f,g){return new ko(f,g)}isRemoved(){return this.value.isRemoved()}getStrKey(){return this.strKey}getValue(){return this.value}remove(f){return this.value.remove(f)}}class ji{constructor(){this.nodeMapByKey=new Map,this.nodeMapByCreatedAt=new Map}static create(){return new ji}set(f,g,T){let _;const H=this.nodeMapByKey.get(f);H!=null&&!H.isRemoved()&&H.remove(T)&&(_=H.getValue());const K=ko.of(f,g);return this.nodeMapByCreatedAt.set(g.getCreatedAt().toIDString(),K),(H==null||T.after(H.getValue().getPositionedAt()))&&(this.nodeMapByKey.set(f,K),g.setMovedAt(T)),_}delete(f,g){this.nodeMapByCreatedAt.has(f.toIDString())||u.fatal(`fail to find ${f.toIDString()}`);const T=this.nodeMapByCreatedAt.get(f.toIDString());return T.remove(g),T.getValue()}subPathOf(f){const g=this.nodeMapByCreatedAt.get(f.toIDString());if(g)return g.getStrKey()}purge(f){const g=this.nodeMapByCreatedAt.get(f.getCreatedAt().toIDString());if(!g){u.fatal(`fail to find ${f.getCreatedAt().toIDString()}`);return}const T=this.nodeMapByKey.get(g.getStrKey());g===T&&this.nodeMapByKey.delete(T.getStrKey()),this.nodeMapByCreatedAt.delete(g.getValue().getCreatedAt().toIDString())}deleteByKey(f,g){const T=this.nodeMapByKey.get(f);if(T!=null&&T.remove(g))return T.getValue()}has(f){const g=this.nodeMapByKey.get(f);return g==null?!1:!g.isRemoved()}getByID(f){return this.nodeMapByCreatedAt.get(f.toIDString())}get(f){const g=this.nodeMapByKey.get(f);if(!(!g||g.isRemoved()))return g}*[Symbol.iterator](){for(const[,f]of this.nodeMapByKey)yield f}}class mr extends Wl{constructor(f,g){super(f),this.memberNodes=g}static create(f,g){if(!g)return new mr(f,ji.create());const T=ji.create();for(const[_,H]of Object.entries(g))T.set(_,H.deepcopy(),H.getCreatedAt());return new mr(f,T)}subPathOf(f){return this.memberNodes.subPathOf(f)}purge(f){this.memberNodes.purge(f)}set(f,g,T){return this.memberNodes.set(f,g,T)}delete(f,g){return this.memberNodes.delete(f,g)}deleteByKey(f,g){return this.memberNodes.deleteByKey(f,g)}get(f){const g=this.memberNodes.get(f);return g==null?void 0:g.getValue()}getByID(f){const g=this.memberNodes.getByID(f);return g==null?void 0:g.getValue()}has(f){return this.memberNodes.has(f)}toJSON(){const f=[];for(const[g,T]of this)f.push(`"${Br(g)}":${T.toJSON()}`);return`{${f.join(",")}}`}toJS(){return JSON.parse(this.toJSON())}toJSForTest(){const f={};for(const[g,T]of this){const{createdAt:_,value:H,type:K}=T.toJSForTest();f[g]={key:g,createdAt:_,value:H,type:K}}return{createdAt:this.getCreatedAt().toTestString(),value:f,type:"YORKIE_OBJECT"}}getKeys(){const f=Array();for(const[g]of this)f.push(g);return f}toSortedJSON(){var f;const g=Array();for(const[_]of this)g.push(_);const T=[];for(const _ of g.sort()){const H=(f=this.memberNodes.get(_))===null||f===void 0?void 0:f.getValue();T.push(`"${Br(_)}":${H.toSortedJSON()}`)}return`{${T.join(",")}}`}getRHT(){return this.memberNodes}deepcopy(){const f=mr.create(this.getCreatedAt());for(const g of this.memberNodes)f.memberNodes.set(g.getStrKey(),g.getValue().deepcopy(),this.getPositionedAt());return f.remove(this.getRemovedAt()),f}getDescendants(f){for(const g of this.memberNodes){const T=g.getValue();if(f(T,this))return;T instanceof Wl&&T.getDescendants(f)}}*[Symbol.iterator](){const f=new Set;for(const g of this.memberNodes)f.has(g.getStrKey())||(f.add(g.getStrKey()),g.isRemoved()||(yield[g.getStrKey(),g.getValue()]))}}var Ar;(function(A){A.Local="local",A.Remote="remote",A.UndoRedo="undoredo"})(Ar||(Ar={}));class Ur{constructor(f,g){this.parentCreatedAt=f,this.executedAt=g}getParentCreatedAt(){return this.parentCreatedAt}getExecutedAt(){if(!this.executedAt)throw new Error("executedAt has not been set yet");return this.executedAt}setActor(f){this.executedAt&&(this.executedAt=this.executedAt.setActor(f))}setExecutedAt(f){this.executedAt=f}}class Ho{constructor(f){this.value=f,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(f){this.left=f}setRight(f){this.right=f}setParent(f){this.parent=f}unlink(){this.parent=void 0,this.right=void 0,this.left=void 0}hasLinks(){return this.hasParent()||this.hasLeft()||this.hasRight()}increaseWeight(f){this.weight+=f}initWeight(){this.weight=this.getLength()}}class zi{constructor(f){this.root=f}get length(){return this.root?this.root.getWeight():0}find(f){if(!this.root||f<0)return[void 0,0];let g=this.root;for(;;)if(g.hasLeft()&&f<=g.getLeftWeight())g=g.getLeft();else if(g.hasRight()&&g.getLeftWeight()+g.getLength()g.getLength()&&u.fatal(`out of index range: pos: ${f} > node.length: ${g.getLength()}`),[g,f]}indexOf(f){if(!f||f!==this.root&&!f.hasLinks())return-1;let g=0,T=f,_;for(;T;)(!_||_===T.getRight())&&(g+=T.getLength()+(T.hasLeft()?T.getLeftWeight():0)),_=T,T=T.getParent();return g-f.getLength()}getRoot(){return this.root}insert(f){return this.insertAfter(this.root,f)}insertAfter(f,g){return f?(this.splayNode(f),this.root=g,g.setRight(f.getRight()),f.hasRight()&&f.getRight().setParent(g),g.setLeft(f),f.setParent(g),f.setRight(),this.updateWeight(f),this.updateWeight(g),g):(this.root=g,g)}updateWeight(f){f.initWeight(),f.hasLeft()&&f.increaseWeight(f.getLeftWeight()),f.hasRight()&&f.increaseWeight(f.getRightWeight())}updateTreeWeight(f){for(;f;)this.updateWeight(f),f=f.getParent()}splayNode(f){if(f)for(;;)if(this.isLeftChild(f.getParent())&&this.isRightChild(f))this.rotateLeft(f),this.rotateRight(f);else if(this.isRightChild(f.getParent())&&this.isLeftChild(f))this.rotateRight(f),this.rotateLeft(f);else if(this.isLeftChild(f.getParent())&&this.isLeftChild(f))this.rotateRight(f.getParent()),this.rotateRight(f);else if(this.isRightChild(f.getParent())&&this.isRightChild(f))this.rotateLeft(f.getParent()),this.rotateLeft(f);else{this.isLeftChild(f)?this.rotateRight(f):this.isRightChild(f)&&this.rotateLeft(f),this.updateWeight(f);return}}delete(f){this.splayNode(f);const g=new zi(f.getLeft());g.root&&g.root.setParent();const T=new zi(f.getRight());if(T.root&&T.root.setParent(),g.root){const _=g.getRightmost();g.splayNode(_),g.root.setRight(T.root),T.root&&T.root.setParent(g.root),this.root=g.root}else this.root=T.root;f.unlink(),this.root&&this.updateWeight(this.root)}deleteRange(f,g){if(!g){this.splayNode(f),this.cutOffRight(f);return}this.splayNode(f),this.splayNode(g),g.getLeft()!=f&&this.rotateRight(f),this.cutOffRight(f)}cutOffRight(f){const g=[];this.traversePostorder(f.getRight(),g);for(const T of g)T.initWeight();this.updateTreeWeight(f)}toTestString(){const f=[];return this.traverseInorder(this.root,f),f.map(g=>`[${g.getWeight()},${g.getLength()}]${g.getValue()||""}`).join("")}checkWeight(){const f=[];this.traverseInorder(this.root,f);for(const g of f)if(g.getWeight()!=g.getLength()+g.getLeftWeight()+g.getRightWeight())return!1;return!0}getRightmost(){let f=this.root;for(;f.hasRight();)f=f.getRight();return f}traverseInorder(f,g){f&&(this.traverseInorder(f.getLeft(),g),g.push(f),this.traverseInorder(f.getRight(),g))}traversePostorder(f,g){f&&(this.traversePostorder(f.getLeft(),g),this.traversePostorder(f.getRight(),g),g.push(f))}rotateLeft(f){const g=f.getParent();g.hasParent()?g===g.getParent().getLeft()?g.getParent().setLeft(f):g.getParent().setRight(f):this.root=f,f.setParent(g.getParent()),g.setRight(f.getLeft()),g.hasRight()&&g.getRight().setParent(g),f.setLeft(g),f.getLeft().setParent(f),this.updateWeight(g),this.updateWeight(f)}rotateRight(f){const g=f.getParent();g.hasParent()?g===g.getParent().getLeft()?g.getParent().setLeft(f):g.getParent().setRight(f):this.root=f,f.setParent(g.getParent()),g.setLeft(f.getRight()),g.hasLeft()&&g.getLeft().setParent(g),f.setRight(g),f.getRight().setParent(f),this.updateWeight(g),this.updateWeight(f)}isLeftChild(f){return f&&f.hasParent()?f.getParent().getLeft()===f:!1}isRightChild(f){return f&&f.hasParent()?f.getParent().getRight()===f:!1}}var Jt;(function(A){A[A.Null=0]="Null",A[A.Boolean=1]="Boolean",A[A.Integer=2]="Integer",A[A.Long=3]="Long",A[A.Double=4]="Double",A[A.String=5]="String",A[A.Bytes=6]="Bytes",A[A.Date=7]="Date"})(Jt||(Jt={}));class _r extends io{constructor(f,g){super(g),this.valueType=_r.getPrimitiveType(f),this.value=f===void 0?null:f}static of(f,g){return new _r(f,g)}static valueFromBytes(f,g){switch(f){case Jt.Null:return null;case Jt.Boolean:return!!g[0];case Jt.Integer:return g[0]|g[1]<<8|g[2]<<16|g[3]<<24;case Jt.Double:{const T=new DataView(g.buffer);return g.forEach(function(_,H){T.setUint8(H,_)}),T.getFloat64(0,!0)}case Jt.String:return new TextDecoder("utf-8").decode(g);case Jt.Long:return Yr.fromBytesLE(Array.from(g));case Jt.Bytes:return g;case Jt.Date:return new Date(Yr.fromBytesLE(Array.from(g),!0).toNumber());default:throw new An(En.Unimplemented,`unimplemented type: ${f}`)}}toJSON(){return this.valueType===Jt.String?`"${Br(this.value)}"`:`${this.value}`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:this.value,type:"YORKIE_PRIMITIVE"}}deepcopy(){const f=_r.of(this.value,this.getCreatedAt());return f.setMovedAt(this.getMovedAt()),f.setRemovedAt(this.getRemovedAt()),f}getType(){return this.valueType}static getPrimitiveType(f){switch(typeof f){case"undefined":return Jt.Null;case"boolean":return Jt.Boolean;case"number":return this.isInteger(f)?Jt.Integer:Jt.Double;case"string":return Jt.String;case"object":if(f===null)return Jt.Null;if(f instanceof Yr)return Jt.Long;if(f instanceof Uint8Array)return Jt.Bytes;if(f instanceof Date)return Jt.Date}}static isSupport(f){return _r.getPrimitiveType(f)!==void 0}static isInteger(f){return f%1===0}isNumericType(){const f=this.valueType;return f===Jt.Integer||f===Jt.Long||f===Jt.Double}getValue(){return this.value}toBytes(){switch(this.valueType){case Jt.Null:return new Uint8Array;case Jt.Boolean:return this.value?new Uint8Array([1]):new Uint8Array([0]);case Jt.Integer:{const f=this.value;return new Uint8Array([f&255,f>>8&255,f>>16&255,f>>24&255])}case Jt.Double:{const f=this.value,g=new Uint8Array(8);return new DataView(g.buffer).setFloat64(0,f,!0),g}case Jt.String:return new TextEncoder().encode(this.value);case Jt.Long:{const g=this.value.toBytesLE();return Uint8Array.from(g)}case Jt.Bytes:return this.value;case Jt.Date:{const f=this.value,g=Yr.fromNumber(f.getTime(),!0).toBytesLE();return Uint8Array.from(g)}default:throw new An(En.Unimplemented,`unimplemented type: ${this.valueType}`)}}}class qp extends Ho{constructor(f){super(f),this.value=f}static createAfter(f,g){const T=new qp(g),_=f.next;return f.next=T,T.prev=f,T.next=_,_&&(_.prev=T),T}remove(f){return this.value.remove(f)}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 pf{constructor(){const f=_r.of(0,ro);f.setRemovedAt(ro),this.dummyHead=new qp(f),this.last=this.dummyHead,this.nodeMapByIndex=new zi,this.nodeMapByCreatedAt=new Map,this.nodeMapByIndex.insert(this.dummyHead),this.nodeMapByCreatedAt.set(this.dummyHead.getCreatedAt().toIDString(),this.dummyHead)}static create(){return new pf}get length(){return this.nodeMapByIndex.length}findNextBeforeExecutedAt(f,g){let T=this.nodeMapByCreatedAt.get(f.toIDString());for(T||u.fatal(`cant find the given node: ${f.toIDString()}`);T.getNext()&&T.getNext().getPositionedAt().after(g);)T=T.getNext();return T}release(f){this.last===f&&(this.last=f.getPrev()),f.release(),this.nodeMapByIndex.delete(f),this.nodeMapByCreatedAt.delete(f.getValue().getCreatedAt().toIDString())}insertAfter(f,g,T=g.getCreatedAt()){const _=this.findNextBeforeExecutedAt(f,T),H=qp.createAfter(_,g);_===this.last&&(this.last=H),this.nodeMapByIndex.insertAfter(_,H),this.nodeMapByCreatedAt.set(H.getCreatedAt().toIDString(),H)}moveAfter(f,g,T){const _=this.nodeMapByCreatedAt.get(f.toIDString());_||u.fatal(`cant find the given node: ${f.toIDString()}`);const H=this.nodeMapByCreatedAt.get(g.toIDString());H||u.fatal(`cant find the given node: ${g.toIDString()}`),_!==H&&(!H.getValue().getMovedAt()||T.after(H.getValue().getMovedAt()))&&(this.release(H),this.insertAfter(_.getCreatedAt(),H.getValue(),T),H.getValue().setMovedAt(T))}insert(f){this.insertAfter(this.last.getCreatedAt(),f)}getByID(f){return this.nodeMapByCreatedAt.get(f.toIDString())}subPathOf(f){const g=this.nodeMapByCreatedAt.get(f.toIDString());if(g)return String(this.nodeMapByIndex.indexOf(g))}purge(f){const g=this.nodeMapByCreatedAt.get(f.getCreatedAt().toIDString());g||u.fatal(`fail to find the given createdAt: ${f.getCreatedAt().toIDString()}`),this.release(g)}getByIndex(f){if(f>=this.length)return;const[g,T]=this.nodeMapByIndex.find(f);let _=g;if(f===0&&g===this.dummyHead||T>0)do _&&(_=_.getNext());while(_&&_.isRemoved());return _}getPrevCreatedAt(f){let g=this.nodeMapByCreatedAt.get(f.toIDString());do g=g.getPrev();while(this.dummyHead!==g&&g.isRemoved());return g.getValue().getCreatedAt()}delete(f,g){const T=this.nodeMapByCreatedAt.get(f.toIDString()),_=T.isRemoved();return T.remove(g)&&!_&&this.nodeMapByIndex.splayNode(T),T.getValue()}deleteByIndex(f,g){const T=this.getByIndex(f);if(T)return T.remove(g)&&this.nodeMapByIndex.splayNode(T),T.getValue()}getHead(){return this.dummyHead.getValue()}getLast(){return this.last.getValue()}getLastCreatedAt(){return this.last.getCreatedAt()}toTestString(){const f=[];for(const g of this){const T=`${g.getCreatedAt().toIDString()}:${g.getValue().toJSON()}`;g.isRemoved()?f.push(`{${T}}`):f.push(`[${T}]`)}return f.join("")}*[Symbol.iterator](){let f=this.dummyHead.getNext();for(;f;)yield f,f=f.getNext()}}class Wo extends Wl{constructor(f,g){super(f),this.elements=g}static create(f,g){if(!g)return new Wo(f,pf.create());const T=pf.create();for(const _ of g)T.insertAfter(T.getLastCreatedAt(),_.deepcopy());return new Wo(f,T)}subPathOf(f){return this.elements.subPathOf(f)}purge(f){this.elements.purge(f)}insertAfter(f,g){this.elements.insertAfter(f,g)}moveAfter(f,g,T){this.elements.moveAfter(f,g,T)}get(f){const g=this.elements.getByIndex(f);return g==null?void 0:g.getValue()}getByID(f){const g=this.elements.getByID(f);return g==null?void 0:g.getValue()}getHead(){return this.elements.getHead()}getLast(){return this.elements.getLast()}getPrevCreatedAt(f){return this.elements.getPrevCreatedAt(f)}delete(f,g){return this.elements.delete(f,g)}deleteByIndex(f,g){return this.elements.deleteByIndex(f,g)}getLastCreatedAt(){return this.elements.getLastCreatedAt()}get length(){return this.elements.length}*[Symbol.iterator](){for(const f of this.elements)f.isRemoved()||(yield f.getValue())}toTestString(){return this.elements.toTestString()}getDescendants(f){for(const g of this.elements){const T=g.getValue();if(f(T,this))return;T instanceof Wl&&T.getDescendants(f)}}toJSON(){const f=[];for(const g of this)f.push(g.toJSON());return`[${f.join(",")}]`}toJS(){return JSON.parse(this.toJSON())}toJSForTest(){const f={};for(let g=0;g`${f}="${JSON.parse(g.getValue())}"`).join(" ")}`:""}size(){return this.nodeMapByKey.size}toObject(){const f={};for(const[g,T]of this.nodeMapByKey)f[g]=T.getValue();return f}*[Symbol.iterator](){for(const[,f]of this.nodeMapByKey)yield f}}var Qo;(function(A){A.Content="content",A.Style="style"})(Qo||(Qo={}));class Yo{constructor(f){this.attributes=$a.create(),this.content=f}static create(f){return new Yo(f)}get length(){return this.content.length}substring(f,g){const T=new Yo(this.content.substring(f,g));return T.attributes=this.attributes.deepcopy(),T}setAttr(f,g,T){this.attributes.set(f,g,T)}getAttrs(){return this.attributes}toString(){return this.content}toJSON(){const f=Br(this.content),g=this.attributes.toObject(),T=[];for(const[_,H]of Object.entries(g)){const K=JSON.parse(H),oe=typeof K=="string"?`"${Br(_)}":"${Br(K)}"`:`"${Br(_)}":${String(K)}`;T.push(oe)}return T.sort(),T.length===0?`{"val":"${f}"}`:`{"attrs":{${T.join(",")}},"val":"${f}"}`}getAttributes(){return this.attributes.toObject()}getContent(){return this.content}}class fi extends Vo{constructor(f,g){super(g),this.rgaTreeSplit=f}static create(f,g){return new fi(f,g)}edit(f,g,T,_,H){const K=g?Yo.create(g):void 0;if(K&&_)for(const[Ft,ft]of Object.entries(_))K.setAttr(Ft,ft,T);const[oe,Ae,He]=this.rgaTreeSplit.edit(f,T,K,H),yt=He.map(Ft=>({...Ft,value:Ft.value?{attributes:di(Ft.value.getAttributes()),content:Ft.value.getContent()}:{attributes:void 0,content:""},type:Qo.Content}));return[Ae,yt,[oe,oe]]}setStyle(f,g,T,_){const[,H]=this.rgaTreeSplit.findNodeWithSplit(f[1],T),[,K]=this.rgaTreeSplit.findNodeWithSplit(f[0],T),oe=[],Ae=this.rgaTreeSplit.findBetween(K,H),He=new Map,yt=[];for(const Ft of Ae){const ft=Ft.getCreatedAt().getActorID(),sn=_!=null&&_.size?_.has(ft)?_.get(ft):ro:wo;if(Ft.canStyle(T,sn)){const In=He.get(ft),Nn=Ft.getCreatedAt();(!In||Nn.after(In))&&He.set(ft,Nn),yt.push(Ft)}}for(const Ft of yt){if(Ft.isRemoved())continue;const[ft,sn]=this.rgaTreeSplit.findIndexesFromRange(Ft.createPosRange());oe.push({type:Qo.Style,actor:T.getActorID(),from:ft,to:sn,value:{attributes:di(g)}});for(const[In,Nn]of Object.entries(g))Ft.getValue().setAttr(In,Nn,T)}return[He,oe]}indexRangeToPosRange(f,g){const T=this.rgaTreeSplit.indexToPos(f);return f===g?[T,T]:[T,this.rgaTreeSplit.indexToPos(g)]}get length(){return this.rgaTreeSplit.length}checkWeight(){return this.rgaTreeSplit.checkWeight()}toJSON(){const f=[];for(const g of this.rgaTreeSplit)g.isRemoved()||f.push(g.getValue().toJSON());return`[${f.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 f=[];for(const g of this.rgaTreeSplit)if(!g.isRemoved()){const T=g.getValue();f.push({attributes:di(T.getAttributes()),content:T.getContent()})}return f}getRGATreeSplit(){return this.rgaTreeSplit}toTestString(){return this.rgaTreeSplit.toTestString()}getRemovedNodesLen(){return this.rgaTreeSplit.getRemovedNodesLen()}purgeRemovedNodesBefore(f){return this.rgaTreeSplit.purgeRemovedNodesBefore(f)}deepcopy(){const f=new fi(this.rgaTreeSplit.deepcopy(),this.getCreatedAt());return f.remove(this.getRemovedAt()),f}findIndexesFromRange(f){return this.rgaTreeSplit.findIndexesFromRange(f)}}class Gl extends Ur{constructor(f,g,T,_,H,K,oe){super(f,oe),this.fromPos=g,this.toPos=T,this.maxCreatedAtMapByActor=_,this.content=H,this.attributes=K}static create(f,g,T,_,H,K,oe){return new Gl(f,g,T,_,H,K,oe)}execute(f){const g=f.findByCreatedAt(this.getParentCreatedAt());g||u.fatal(`fail to find ${this.getParentCreatedAt()}`),g instanceof fi||u.fatal("fail to execute, only Text can execute edit");const T=g,[,_]=T.edit([this.fromPos,this.toPos],this.content,this.getExecutedAt(),Object.fromEntries(this.attributes),this.maxCreatedAtMapByActor);return this.fromPos.equals(this.toPos)||f.registerElementHasRemovedNodes(T),{opInfos:_.map(({from:H,to:K,value:oe})=>({type:"edit",from:H,to:K,value:oe,path:f.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const f=this.getParentCreatedAt().toTestString(),g=this.fromPos.toTestString(),T=this.toPos.toTestString(),_=this.content;return`${f}.EDIT(${g},${T},${_})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getContent(){return this.content}getAttributes(){return this.attributes||new Map}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}class xo extends Ur{constructor(f,g,T,_,H,K){super(f,K),this.fromPos=g,this.toPos=T,this.maxCreatedAtMapByActor=_,this.attributes=H}static create(f,g,T,_,H,K){return new xo(f,g,T,_,H,K)}execute(f){const g=f.findByCreatedAt(this.getParentCreatedAt());g||u.fatal(`fail to find ${this.getParentCreatedAt()}`),g instanceof fi||u.fatal("fail to execute, only Text can execute edit");const T=g,[,_]=T.setStyle([this.fromPos,this.toPos],this.attributes?Object.fromEntries(this.attributes):{},this.getExecutedAt(),this.maxCreatedAtMapByActor);return{opInfos:_.map(({from:H,to:K,value:oe})=>({type:"style",from:H,to:K,value:oe,path:f.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const f=this.getParentCreatedAt().toTestString(),g=this.fromPos.toTestString(),T=this.toPos.toTestString(),_=this.attributes;return`${f}.STYL(${g},${T},${JSON.stringify(_)})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getAttributes(){return this.attributes}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}const ca=2,da="root",xi="text";function Go(A,f){let g=0;const T=A.children;for(let _=0;_0)throw new Error(`Text node cannot have children: ${this.type}`)}updateAncestorsSize(){let f=this.parent;const g=this.isRemoved?-1:1;for(;f;)f.size+=this.paddedSize*g,f=f.parent}get isText(){return this.type===xi}get paddedSize(){return this.size+(this.isText?0:ca)}isAncestorOf(f){return Mc(this,f)}get nextSibling(){const f=this.parent.findOffset(this),g=this.parent.children[f+1];if(g)return g}splitText(f,g){if(f===0||f===this.size)return;const T=this.value.slice(0,f),_=this.value.slice(f);if(!_.length)return;this.value=T;const H=this.cloneText(f+g);return H.value=_,this.parent.insertAfterInternal(H,this),H}get children(){return this._children.filter(f=>!f.isRemoved)}get allChildren(){return[...this._children]}hasTextChild(){return this.children.some(f=>f.isText)}append(...f){if(this.isText)throw new Error("Text node cannot have children");this._children.push(...f);for(const g of f)g.parent=this,g.updateAncestorsSize()}prepend(...f){if(this.isText)throw new Error("Text node cannot have children");this._children.unshift(...f);for(const g of f)g.parent=this,g.isRemoved||g.updateAncestorsSize()}insertBefore(f,g){if(this.isText)throw new Error("Text node cannot have children");const T=this._children.indexOf(g);if(T===-1)throw new Error("child not found");this.insertAtInternal(f,T),f.updateAncestorsSize()}insertAfter(f,g){if(this.isText)throw new Error("Text node cannot have children");const T=this._children.indexOf(g);if(T===-1)throw new Error("child not found");this.insertAtInternal(f,T+1),f.updateAncestorsSize()}insertAt(f,g){if(this.isText)throw new Error("Text node cannot have children");this.insertAtInternal(f,g),f.updateAncestorsSize()}removeChild(f){if(this.isText)throw new Error("Text node cannot have children");const g=this._children.indexOf(f);if(g===-1)throw new Error("child not found");this._children.splice(g,1),f.parent=void 0}splitElement(f,g){const T=this.cloneElement(g);this.parent.insertAfterInternal(T,this),T.updateAncestorsSize();const _=this.children.slice(0,f),H=this.children.slice(f);this._children=_,T._children=H,this.size=this._children.reduce((K,oe)=>K+oe.paddedSize,0),T.size=T._children.reduce((K,oe)=>K+oe.paddedSize,0);for(const K of T._children)K.parent=T;return T}insertAfterInternal(f,g){if(this.isText)throw new Error("Text node cannot have children");const T=this._children.indexOf(g);if(T===-1)throw new Error("child not found");this.insertAtInternal(f,T+1)}insertAtInternal(f,g){if(this.isText)throw new Error("Text node cannot have children");this._children.splice(g,0,f),f.parent=this}findOffset(f){if(this.isText)throw new Error("Text node cannot have children");if(f.isRemoved){const g=this._children.indexOf(f);return this.allChildren.splice(0,g).filter(_=>!_.isRemoved).length}return this.children.indexOf(f)}findBranchOffset(f){if(this.isText)throw new Error("Text node cannot have children");let g=f;for(;g;){const T=this._children.indexOf(g);if(T!==-1)return T;g=g.parent}return-1}}function Mc(A,f){if(A===f)return!1;for(;f.parent;){if(f.parent===A)return!0;f=f.parent}return!1}var Yn;(function(A){A.Start="Start",A.End="End",A.Text="Text"})(Yn||(Yn={}));function Fa(A,f,g,T){if(f>g)throw new Error(`from is greater than to: ${f} > ${g}`);if(f>A.size)throw new Error(`from is out of range: ${f} > ${A.size}`);if(g>A.size)throw new Error(`to is out of range: ${g} > ${A.size}`);if(f===g)return;let _=0;for(const H of A.children){if(f-H.paddedSize<_&&_H.size;(H.isText||Ae)&&T([H,H.isText?Yn.Text:Yn.Start],He),Fa(H,Math.max(0,K),Math.min(oe,H.size),T),He&&T([H,Yn.End],He)}_+=H.paddedSize}}function Ci(A,f,g=0){for(const T of A.children)Ci(T,f,g+1);f(A,g)}function Ba(A,f,g=0){for(const T of A._children)Ba(T,f,g+1);f(A,g)}function fa(A,f,g=!0){if(f>A.size)throw new Error(`index is out of range: ${f} > ${A.size}`);if(A.isText)return{node:A,offset:f};let T=0,_=0;for(const H of A.children){if(g&&H.isText&&H.size>=f-_)return fa(H,f-_,g);if(f===_)return{node:A,offset:T};if(!g&&H.paddedSize===f-_)return{node:A,offset:T+1};if(H.paddedSize>f-_)return fa(H,f-_-1,g);_+=H.paddedSize,T+=1}return{node:A,offset:T}}function Ua(A){return A.isText||A.children.length===0?A:Ua(A.children[0])}function F(A,f){if(A.sizeA===f?0:A0)if(g.right)g.right.parent=g,g=g.right;else return g;else if(T<0)if(g.left)g.left.parent=g,g=g.left;else{let _=g.parent,H=g;for(;_&&H===_.left;)H=_,_=_.parent;return _}else return g}}lastEntry(){if(!this.root)return this.root;let f=this.root;for(;f.right;)f=f.right;return f}size(){return this.counter}isEmpty(){return this.counter===0}getInternal(f,g){for(;g;){const T=this.comparator(f,g.key);if(T===0)return g;T<0?g=g.left:T>0&&(g=g.right)}}putInternal(f,g,T){if(!T)return this.counter+=1,new le(f,g,!0);const _=this.comparator(f,T.key);return _<0?T.left=this.putInternal(f,g,T.left):_>0?T.right=this.putInternal(f,g,T.right):T.value=g,this.isRed(T.right)&&!this.isRed(T.left)&&(T=this.rotateLeft(T)),this.isRed(T.left)&&this.isRed(T.left.left)&&(T=this.rotateRight(T)),this.isRed(T.left)&&this.isRed(T.right)&&this.flipColors(T),T}removeInternal(f,g){if(this.comparator(g,f.key)<0)!this.isRed(f.left)&&!this.isRed(f.left.left)&&(f=this.moveRedLeft(f)),f.left=this.removeInternal(f.left,g);else{if(this.isRed(f.left)&&(f=this.rotateRight(f)),this.comparator(g,f.key)===0&&!f.right){this.counter-=1;return}if(!this.isRed(f.right)&&!this.isRed(f.right.left)&&(f=this.moveRedRight(f)),this.comparator(g,f.key)===0){this.counter-=1;const T=this.min(f.right);f.value=T.value,f.key=T.key,f.right=this.removeMin(f.right)}else f.right=this.removeInternal(f.right,g)}return this.fixUp(f)}min(f){return f.left?this.min(f.left):f}removeMin(f){if(f.left)return!this.isRed(f.left)&&!this.isRed(f.left.left)&&(f=this.moveRedLeft(f)),f.left=this.removeMin(f.left),this.fixUp(f)}fixUp(f){return this.isRed(f.right)&&(f=this.rotateLeft(f)),this.isRed(f.left)&&this.isRed(f.left.left)&&(f=this.rotateRight(f)),this.isRed(f.left)&&this.isRed(f.right)&&this.flipColors(f),f}moveRedLeft(f){return this.flipColors(f),this.isRed(f.right.left)&&(f.right=this.rotateRight(f.right),f=this.rotateLeft(f),this.flipColors(f)),f}moveRedRight(f){return this.flipColors(f),this.isRed(f.left.left)&&(f=this.rotateRight(f),this.flipColors(f)),f}isRed(f){return f&&f.isRed}rotateLeft(f){const g=f.right;return f.right=g.left,g.left=f,g.isRed=g.left.isRed,g.left.isRed=!0,g}rotateRight(f){const g=f.left;return f.left=g.right,g.right=f,g.isRed=g.right.isRed,g.right.isRed=!0,g}flipColors(f){f.isRed=!f.isRed,f.left.isRed=!f.left.isRed,f.right.isRed=!f.right.isRed}}var je;(function(A){A.Content="content",A.Style="style"})(je||(je={}));class ct{constructor(f,g){this.parentID=f,this.leftSiblingID=g}static of(f,g){return new ct(f,g)}static fromTreePos(f){const{offset:g}=f;let{node:T}=f,_;return T.isText?(T.parent.children[0]===T&&g===0?_=T.parent:_=T,T=T.parent):g===0?_=T:_=T.children[g-1],ct.of(T.id,Ze.of(_.getCreatedAt(),_.getOffset()+g))}getParentID(){return this.parentID}static fromStruct(f){return ct.of(Ze.of(vr.fromStruct(f.parentID.createdAt),f.parentID.offset),Ze.of(vr.fromStruct(f.leftSiblingID.createdAt),f.leftSiblingID.offset))}toStruct(){return{parentID:{createdAt:this.getParentID().getCreatedAt().toStruct(),offset:this.getParentID().getOffset()},leftSiblingID:{createdAt:this.getLeftSiblingID().getCreatedAt().toStruct(),offset:this.getLeftSiblingID().getOffset()}}}toTreeNodes(f){const g=this.getParentID(),T=this.getLeftSiblingID(),_=f.findFloorNode(g);let H=f.findFloorNode(T);if(!_||!H)throw new Error(`cannot find node at ${this}`);return!T.equals(g)&&T.getOffset()>0&&T.getOffset()===H.id.getOffset()&&H.insPrevID&&(H=f.findFloorNode(H.insPrevID)),[_,H]}getLeftSiblingID(){return this.leftSiblingID}equals(f){return this.getParentID().getCreatedAt().equals(f.getParentID().getCreatedAt())&&this.getParentID().getOffset()===f.getParentID().getOffset()&&this.getLeftSiblingID().getCreatedAt().equals(f.getLeftSiblingID().getCreatedAt())&&this.getLeftSiblingID().getOffset()===f.getLeftSiblingID().getOffset()}}class Ze{constructor(f,g){this.createdAt=f,this.offset=g}static of(f,g){return new Ze(f,g)}static fromStruct(f){return Ze.of(vr.fromStruct(f.createdAt),f.offset)}static createComparator(){return(f,g)=>{const T=f.getCreatedAt().compare(g.getCreatedAt());return T!==0?T:f.getOffset()>g.getOffset()?1:f.getOffset(){const _=T.deepcopy();return _.parent=g,_}),g}get value(){if(!this.isText)throw new Error(`cannot get value of element node: ${this.type}`);return this._value}set value(f){if(!this.isText)throw new Error(`cannot set value of element node: ${this.type}`);this._value=f,this.size=f.length}get isRemoved(){return!!this.removedAt}remove(f){const g=!this.removedAt;(!this.removedAt||this.removedAt.compare(f)>0)&&(this.removedAt=f),g&&(this.parent.removedAt?this.parent.size-=this.paddedSize:this.updateAncestorsSize())}cloneText(f){return new Ot(Ze.of(this.id.getCreatedAt(),f),this.type,void 0,void 0,this.removedAt)}cloneElement(f){return new Ot(Ze.of(f(),0),this.type,void 0,void 0,this.removedAt)}split(f,g,T){const _=this.isText?this.splitText(g,this.id.getOffset()):this.splitElement(g,T);if(_){if(_.insPrevID=this.id,this.insNextID){const H=f.findFloorNode(this.insNextID);H.insPrevID=_.id,_.insNextID=this.insNextID}this.insNextID=_.id,f.registerNode(_)}return _}getCreatedAt(){return this.id.getCreatedAt()}getOffset(){return this.id.getOffset()}canDelete(f,g){return!this.getCreatedAt().after(g)&&(!this.removedAt||f.after(this.removedAt))}}function Pt(A){var f;if(A.isText){const g=A;return{type:g.type,value:g.value}}return{type:A.type,children:A.children.map(Pt),attributes:A.attrs?di((f=A.attrs)===null||f===void 0?void 0:f.toObject()):void 0}}function On(A){var f;return A.isText?A.value:`<${A.type}${((f=A.attrs)===null||f===void 0?void 0:f.toXML())||""}>${A.children.map(g=>On(g)).join("")}`}function Er(A){if(A.isText){const f=A;return{type:f.type,value:f.value,size:f.size,isRemoved:f.isRemoved}}return{type:A.type,children:A.children.map(Er),size:A.size,isRemoved:A.isRemoved}}class Sn extends Vo{constructor(f,g){super(g),this.indexTree=new x(f),this.nodeMapByID=new Pe(Ze.createComparator()),this.removedNodeMap=new Map,this.indexTree.traverse(T=>{this.nodeMapByID.put(T.id,T)})}static create(f,g){return new Sn(f,g)}findFloorNode(f){const g=this.nodeMapByID.floorEntry(f);if(!(!g||!g.key.getCreatedAt().equals(f.getCreatedAt())))return g.value}registerNode(f){this.nodeMapByID.put(f.id,f)}findNodesAndSplitText(f,g){const[T,_]=f.toTreeNodes(this);let H=_;const K=T===H,oe=H.parent&&!K?H.parent:T;H.isText&&H.split(this,f.getLeftSiblingID().getOffset()-H.id.getOffset());const Ae=oe.allChildren,He=K?0:Ae.indexOf(H)+1;for(let yt=He;yt{if(!He.isRemoved&&!He.isText&&g){He.attrs||(He.attrs=new $a);for(const[yt,Ft]of Object.entries(g))He.attrs.set(yt,Ft,T)}}),Ae}edit(f,g,T,_,H,K){const[oe,Ae]=this.findNodesAndSplitText(f[0],_),[He,yt]=this.findNodesAndSplitText(f[1],_),Ft=this.toIndex(oe,Ae),ft=this.toPath(oe,Ae),sn=[],In=[],Nn=[],sr=new Map;this.traverseInPosRange(oe,Ae,He,yt,([$n,ti],Gr)=>{if(ti===Yn.Start&&!Gr)for(const rh of $n.children)Nn.push(rh);const vi=$n.getCreatedAt().getActorID(),yf=K?K.has(vi)?K.get(vi):ro:wo;if($n.canDelete(_,yf)||sn.includes($n.parent)){const rh=sr.get(vi),i0=$n.getCreatedAt();(!rh||i0.after(rh))&&sr.set(vi,i0),(ti===Yn.Text||ti===Yn.Start)&&sn.push($n),In.push([$n,ti])}});const oo=this.makeDeletionChanges(In,_);for(const $n of sn)$n.remove(_),$n.isRemoved&&this.removedNodeMap.set($n.id.toIDString(),$n);for(const $n of Nn)$n.removedAt||oe.append($n);if(T>0){let $n=0,ti=oe,Gr=Ae;for(;$n{oe.isRemoved&&(vi.remove(_),this.removedNodeMap.set(vi.id.toIDString(),vi)),this.nodeMapByID.put(vi.id,vi)}),Gr.isRemoved||$n.push(Gr);if($n.length){const Gr=$n.map(vi=>Pt(vi));oo.length&&oo[oo.length-1].from===Ft?oo[oo.length-1].value=Gr:oo.push({type:je.Content,from:Ft,to:Ft,fromPath:ft,toPath:ft,actor:_.getActorID(),value:Gr})}}return[oo,sr]}editT(f,g,T,_,H){const K=this.findPos(f[0]),oe=this.findPos(f[1]);this.edit([K,oe],g,T,_,H)}move(f,g,T){throw new Error(`not implemented: ${f}, ${g}, ${T}`)}purgeRemovedNodesBefore(f){var g;const T=new Set;let _=0;for(const[,H]of this.removedNodeMap)H.removedAt&&f.compare(H.removedAt)>=0&&(T.add(H),_++);for(const H of T)(g=H.parent)===null||g===void 0||g.removeChild(H),this.nodeMapByID.remove(H.id),this.purge(H),this.removedNodeMap.delete(H.id.toIDString());return _}purge(f){const g=f.insPrevID,T=f.insNextID;if(g){const _=this.findFloorNode(g);_.insNextID=T}if(T){const _=this.findFloorNode(T);_.insPrevID=g}f.insPrevID=void 0,f.insNextID=void 0}findPos(f,g=!0){const T=this.indexTree.findTreePos(f,g);return ct.fromTreePos(T)}getRemovedNodesLen(){return this.removedNodeMap.size}pathToPosRange(f){const g=this.pathToIndex(f);return[this.findPos(g),this.findPos(g+1)]}pathToPos(f){const g=this.indexTree.pathToIndex(f);return this.findPos(g)}getRoot(){return this.indexTree.getRoot()}getSize(){return this.indexTree.size}getIndexTree(){return this.indexTree}toXML(){return On(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 f=this.indexTree.getRoot(),g=(T,_=void 0,H=0)=>{var K,oe,Ae;const He={type:T.type,parent:_,size:T.size,id:T.id.toTestString(),removedAt:(K=T.removedAt)===null||K===void 0?void 0:K.toTestString(),insPrev:(oe=T.insPrevID)===null||oe===void 0?void 0:oe.toTestString(),insNext:(Ae=T.insNextID)===null||Ae===void 0?void 0:Ae.toTestString(),value:T.isText?T.value:void 0,isRemoved:T.isRemoved,children:[],depth:H};for(const yt of T.children)He.children.push(g(yt,He.id,H+1));return He};return g(f)}getRootTreeNode(){return Pt(this.indexTree.getRoot())}toTestTreeNode(){return Er(this.indexTree.getRoot())}toSortedJSON(){return this.toJSON()}deepcopy(){const f=this.getRoot();return new Sn(f.deepcopy(),this.getCreatedAt())}toPath(f,g){const T=this.toTreePos(f,g);return T?this.indexTree.treePosToPath(T):[]}toIndex(f,g){const T=this.toTreePos(f,g);return T?this.indexTree.indexOf(T):-1}indexToPath(f){return this.indexTree.indexToPath(f)}pathToIndex(f){return this.indexTree.pathToIndex(f)}indexRangeToPosRange(f){const g=this.findPos(f[0]);return f[0]===f[1]?[g,g]:[g,this.findPos(f[1])]}indexRangeToPosStructRange(f){const[g,T]=f,_=this.findPos(g);return g===T?[_.toStruct(),_.toStruct()]:[_.toStruct(),this.findPos(T).toStruct()]}posRangeToPathRange(f,g){const[T,_]=this.findNodesAndSplitText(f[0],g),[H,K]=this.findNodesAndSplitText(f[1],g);return[this.toPath(T,_),this.toPath(H,K)]}posRangeToIndexRange(f,g){const[T,_]=this.findNodesAndSplitText(f[0],g),[H,K]=this.findNodesAndSplitText(f[1],g);return[this.toIndex(T,_),this.toIndex(H,K)]}traverseInPosRange(f,g,T,_,H){const K=this.toIndex(f,g),oe=this.toIndex(T,_);return this.indexTree.tokensBetween(K,oe,H)}toTreePos(f,g){if(!f||!g)return;if(f.isRemoved){let _;for(;f.isRemoved;)_=f,f=_.parent;const H=f.findOffset(_);return{node:f,offset:H}}if(f===g)return{node:f,offset:0};let T=f.findOffset(g);if(!g.isRemoved){if(g.isText)return{node:g,offset:g.paddedSize};T++}return{node:f,offset:T}}makeDeletionChanges(f,g){const T=[],_=[];let H=null,K=null;for(let oe=0;oe0&&sr===T[T.length-1].to?(T[T.length-1].to=oo,T[T.length-1].toPath=this.toPath(Nn,ft)):T.push({type:je.Content,from:sr,to:oo,fromPath:this.toPath(In,yt),toPath:this.toPath(Nn,ft),actor:g.getActorID()}))}return T}findRightToken([f,g]){if(g===Yn.Start){const oe=f.allChildren;return oe.length>0?[oe[0],oe[0].isText?Yn.Text:Yn.Start]:[f,Yn.End]}const T=f.parent,_=T.allChildren,H=_.indexOf(f);if(T&&H===_.length-1)return[T,Yn.End];const K=_[H+1];return[K,K.isText?Yn.Text:Yn.Start]}findLeftToken([f,g]){if(g===Yn.End){const oe=f.allChildren;if(oe.length>0){const Ae=oe[oe.length-1];return[Ae,Ae.isText?Yn.Text:Yn.End]}return[f,Yn.Start]}const T=f.parent,_=T.allChildren,H=_.indexOf(f);if(T&&H===0)return[T,Yn.Start];const K=_[H-1];return[K,K.isText?Yn.Text:Yn.End]}}class Vi extends Ur{constructor(f,g,T,_,H,K,oe){super(f,oe),this.fromPos=g,this.toPos=T,this.contents=_,this.splitLevel=H,this.maxCreatedAtMapByActor=K}static create(f,g,T,_,H,K,oe){return new Vi(f,g,T,_,H,K,oe)}execute(f){var g;const T=f.findByCreatedAt(this.getParentCreatedAt());T||u.fatal(`fail to find ${this.getParentCreatedAt()}`),T instanceof Sn||u.fatal("fail to execute, only Tree can execute edit");const _=this.getExecutedAt(),H=T,[K]=H.edit([this.fromPos,this.toPos],(g=this.contents)===null||g===void 0?void 0:g.map(oe=>oe.deepcopy()),this.splitLevel,_,(()=>{let oe=_.getDelimiter();return this.contents!==void 0&&(oe+=this.contents.length),()=>vr.of(_.getLamport(),++oe,_.getActorID())})(),this.maxCreatedAtMapByActor);return this.fromPos.equals(this.toPos)||f.registerElementHasRemovedNodes(H),{opInfos:K.map(({from:oe,to:Ae,value:He,splitLevel:yt,fromPath:Ft,toPath:ft})=>({type:"tree-edit",path:f.createPath(this.getParentCreatedAt()),from:oe,to:Ae,value:He,splitLevel:yt,fromPath:Ft,toPath:ft}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const f=this.getParentCreatedAt().toTestString(),g=`${this.fromPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.fromPos.getLeftSiblingID().getOffset()}`,T=`${this.toPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.toPos.getLeftSiblingID().getOffset()}`,_=this.contents;return`${f}.EDIT(${g},${T},${_==null?void 0:_.join("")})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getContents(){return this.contents}getSplitLevel(){return this.splitLevel}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}class ja{constructor(f,g,T){this.clientSeq=f,this.lamport=g,this.actor=T}static of(f,g,T){return new ja(f,g,T)}next(){return new ja(this.clientSeq+1,this.lamport.add(1),this.actor)}syncLamport(f){return f.greaterThan(this.lamport)?new ja(this.clientSeq,f,this.actor):new ja(this.clientSeq,this.lamport.add(1),this.actor)}createTimeTicket(f){return vr.of(this.lamport,f,this.actor)}setActor(f){return new ja(this.clientSeq,this.lamport,f)}getClientSeq(){return this.clientSeq}getLamport(){return this.lamport}getLamportAsString(){return this.lamport.toString()}getActorID(){return this.actor}toTestString(){return this.actor?`${this.lamport.toString()}:${this.actor.substring(22,24)}:${this.clientSeq}`:`${this.lamport.toString()}:nil:${this.clientSeq}`}}const Kx=new ja(0,Yr.fromInt(0,!0),jO);class mf{constructor({id:f,operations:g,presenceChange:T,message:_}){this.id=f,this.operations=g||[],this.presenceChange=T,this.message=_}static create({id:f,operations:g,presenceChange:T,message:_}){return new mf({id:f,operations:g,presenceChange:T,message:_})}getID(){return this.id}getMessage(){return this.message}hasOperations(){return this.operations.length>0}getOperations(){return this.operations}setActor(f){for(const g of this.operations)g.setActor(f);this.id=this.id.setActor(f)}hasPresenceChange(){return this.presenceChange!==void 0}getPresenceChange(){return this.presenceChange}execute(f,g,T){const _=[],H=[];for(const K of this.operations){const oe=K.execute(f,T);if(!oe)continue;const{opInfos:Ae,reverseOp:He}=oe;_.push(...Ae),He&&H.unshift(He)}return this.presenceChange&&(this.presenceChange.type===Ma.Put?g.set(this.id.getActorID(),la(this.presenceChange.presence)):g.delete(this.id.getActorID())),{opInfos:_,reverseOps:H}}toTestString(){return`${this.operations.map(f=>f.toTestString()).join(",")}`}}class zO{constructor(f,g,T,_,H,K){this.documentKey=f,this.checkpoint=g,this.isRemoved=T,this.changes=_,this.snapshot=H,this.minSyncedTicket=K}static create(f,g,T,_,H,K){return new zO(f,g,T,_,H,K)}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 Xp{constructor(f,g){this.serverSeq=f,this.clientSeq=g}static of(f,g){return new Xp(f,g)}increaseClientSeq(f){return f===0?this:new Xp(this.serverSeq,this.clientSeq+f)}forward(f){if(this.equals(f))return this;const g=this.serverSeq.greaterThan(f.serverSeq)?this.serverSeq:f.serverSeq,T=Math.max(this.clientSeq,f.clientSeq);return Xp.of(g,T)}getServerSeqAsString(){return this.serverSeq.toString()}getClientSeq(){return this.clientSeq}getServerSeq(){return this.serverSeq}equals(f){return this.clientSeq===f.clientSeq&&this.serverSeq.equals(f.serverSeq)}toTestString(){return`serverSeq=${this.serverSeq}, clientSeq=${this.clientSeq}`}}const Lie=new Xp(Yr.fromInt(0,!0),0);class ql{constructor(f,g){this.createdAt=f,this.offset=g}static of(f,g){return new ql(f,g)}static fromStruct(f){return ql.of(vr.fromStruct(f.createdAt),f.offset)}getCreatedAt(){return this.createdAt}getOffset(){return this.offset}equals(f){return this.createdAt.compare(f.createdAt)===0&&this.offset===f.offset}hasSameCreatedAt(f){return this.createdAt.compare(f.createdAt)===0}split(f){return new ql(this.createdAt,this.offset+f)}toStruct(){return{createdAt:this.createdAt.toStruct(),offset:this.offset}}toTestString(){return`${this.createdAt.toTestString()}:${this.offset}`}toIDString(){return`${this.createdAt.toIDString()}:${this.offset}`}}const Mie=ql.of(ro,0);class ul{constructor(f,g){this.id=f,this.relativeOffset=g}static of(f,g){return new ul(f,g)}static fromStruct(f){const g=ql.fromStruct(f.id);return ul.of(g,f.relativeOffset)}getID(){return this.id}getRelativeOffset(){return this.relativeOffset}getAbsoluteID(){return ql.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(f){return this.id.equals(f.id)?this.relativeOffset===f.relativeOffset:!1}}class $c extends Ho{constructor(f,g,T){super(g),this.id=f,this.removedAt=T}static create(f,g){return new $c(f,g)}static createComparator(){return(f,g)=>{const T=f.getCreatedAt().compare(g.getCreatedAt());return T!==0?T:f.getOffset()>g.getOffset()?1:f.getOffset()0&&g.getID().getOffset()==f.getOffset()){if(!g.hasInsPrev())return g;g=g.getInsPrev()}return g}findFloorNode(f){const g=this.treeByID.floorEntry(f);if(g&&!(!g.key.equals(f)&&!g.key.hasSameCreatedAt(f)))return g.value}findBetween(f,g){const T=[];let _=f;for(;_&&_!==g;)T.push(_),_=_.getNext();return T}splitNode(f,g){if(g>f.getContentLength()&&u.fatal("offset should be less than or equal to length"),g===0)return f;if(g===f.getContentLength())return f.getNext();const T=f.split(g);this.treeByIndex.updateWeight(T),this.insertAfter(f,T);const _=f.getInsNext();return _&&_.setInsPrev(T),T.setInsPrev(f),T}deleteNodes(f,g,T){if(!f.length)return[[],new Map,new Map];const[_,H]=this.filterNodes(f,g,T),K=new Map,oe=new Map,Ae=this.makeChanges(H,g);for(const He of _){const yt=He.getCreatedAt().getActorID();(!K.has(yt)||He.getID().getCreatedAt().after(K.get(yt)))&&K.set(yt,He.getID().getCreatedAt()),oe.set(He.getID().toIDString(),He),He.remove(g)}return this.deleteIndexNodes(H),[Ae,K,oe]}filterNodes(f,g,T){const _=!!T,H=[],K=[],[oe,Ae]=this.findEdgesOfCandidates(f);K.push(oe);for(const He of f){const yt=He.getCreatedAt().getActorID(),Ft=_?T.has(yt)?T.get(yt):ro:wo;He.canDelete(g,Ft)?H.push(He):K.push(He)}return K.push(Ae),[H,K]}findEdgesOfCandidates(f){return[f[0].getPrev(),f[f.length-1].getNext()]}makeChanges(f,g){const T=[];let _,H;for(let K=0;K=0&&(this.treeByIndex.delete(T),this.purge(T),this.treeByID.remove(T.getID()),this.removedNodeMap.delete(T.getID().toIDString()),g++);return g}purge(f){const g=f.getPrev(),T=f.getNext(),_=f.getInsPrev(),H=f.getInsNext();g&&g.setNext(T),T&&T.setPrev(g),f.setPrev(void 0),f.setNext(void 0),_&&_.setInsNext(H),H&&H.setInsPrev(_),f.setInsPrev(void 0),f.setInsNext(void 0)}}const MF=A=>A<0?Math.ceil(A):Math.floor(A);var pi;(function(A){A[A.IntegerCnt=0]="IntegerCnt",A[A.LongCnt=1]="LongCnt"})(pi||(pi={}));class za extends io{constructor(f,g,T){switch(super(T),this.valueType=f,f){case pi.IntegerCnt:typeof g=="number"?g>Math.pow(2,31)-1||g<-Math.pow(2,31)?this.value=Yr.fromNumber(g).toInt():this.value=MF(g):this.value=g.toInt();break;case pi.LongCnt:typeof g=="number"?this.value=Yr.fromNumber(g):this.value=g;break;default:throw new An(En.Unimplemented,`unimplemented type: ${f}`)}}static create(f,g,T){return new za(f,g,T)}static valueFromBytes(f,g){switch(f){case pi.IntegerCnt:return g[0]|g[1]<<8|g[2]<<16|g[3]<<24;case pi.LongCnt:return Yr.fromBytesLE(Array.from(g));default:throw new An(En.Unimplemented,`unimplemented type: ${f}`)}}toJSON(){return`${this.value}`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:this.value,type:"YORKIE_COUNTER"}}deepcopy(){const f=za.create(this.valueType,this.value,this.getCreatedAt());return f.setMovedAt(this.getMovedAt()),f}getType(){return this.valueType}static getCounterType(f){switch(typeof f){case"object":return f instanceof Yr?pi.LongCnt:void 0;case"number":return f>Math.pow(2,31)-1||f<-Math.pow(2,31)?pi.LongCnt:pi.IntegerCnt;default:return}}static isSupport(f){return!!za.getCounterType(f)}static isInteger(f){return f%1===0}isNumericType(){const f=this.valueType;return f===pi.IntegerCnt||f===pi.LongCnt}getValueType(){return this.valueType}getValue(){return this.value}toBytes(){switch(this.valueType){case pi.IntegerCnt:{const f=this.value;return new Uint8Array([f&255,f>>8&255,f>>16&255,f>>24&255])}case pi.LongCnt:{const g=this.value.toBytesLE();return Uint8Array.from(g)}default:throw new An(En.Unimplemented,`unimplemented type: ${this.valueType}`)}}increase(f){function g(T){if(!T.isNumericType())throw new TypeError(`Unsupported type of value: ${typeof T.getValue()}`)}return g(this),g(f),this.valueType===pi.LongCnt?this.value=this.value.add(f.getValue()):f.getType()===Jt.Long?this.value=this.value+f.getValue().toInt():this.value=Yr.fromNumber(this.value+MF(f.getValue())).toInt(),this}}class Jp extends Ur{constructor(f,g,T){super(f,T),this.value=g}static create(f,g,T){return new Jp(f,g,T)}execute(f){const g=f.findByCreatedAt(this.getParentCreatedAt());g||u.fatal(`fail to find ${this.getParentCreatedAt()}`),g instanceof za||u.fatal("fail to execute, only Counter can execute increase");const T=g,_=this.value.deepcopy();return T.increase(_),{opInfos:[{type:"increase",path:f.createPath(this.getParentCreatedAt()),value:_.getValue()}],reverseOp:this.toReverseOperation()}}toReverseOperation(){const f=this.value.deepcopy(),T=f.getType()===Jt.Long?f.getValue().multiply(-1):f.getValue()*-1;return Jp.create(this.getParentCreatedAt(),_r.of(T,f.getCreatedAt()))}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){return`${this.getParentCreatedAt().toTestString()}.INCREASE.${this.value.toJSON()}`}getValue(){return this.value}}class eh extends Ur{constructor(f,g,T,_,H){super(f,H),this.fromPos=g,this.toPos=T,this.attributes=_}static create(f,g,T,_,H){return new eh(f,g,T,_,H)}execute(f){const g=f.findByCreatedAt(this.getParentCreatedAt());g||u.fatal(`fail to find ${this.getParentCreatedAt()}`),g instanceof Sn||u.fatal("fail to execute, only Tree can execute edit");const T={};return[...this.attributes].forEach(([K,oe])=>T[K]=oe),{opInfos:g.style([this.fromPos,this.toPos],T,this.getExecutedAt()).map(({from:K,to:oe,value:Ae,fromPath:He})=>({type:"tree-style",from:K,to:oe,value:Ae,fromPath:He,path:f.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const f=this.getParentCreatedAt().toTestString(),g=`${this.fromPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.fromPos.getLeftSiblingID().getOffset()}`,T=`${this.toPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.toPos.getLeftSiblingID().getOffset()}`;return`${f}.STYLE(${g},${T},${Object.entries(this.attributes||{}).map(([_,H])=>`${_}:"${H}"`).join(" ")})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getAttributes(){return this.attributes}}function $ie(A){const f=new pe.Presence,g=f.data;for(const[T,_]of Object.entries(A))g[T]=JSON.stringify(_);return f}function Fie(A){if(A.type===Ma.Put)return new pe.PresenceChange({type:pe.PresenceChange_ChangeType.PUT,presence:$ie(A.presence)});if(A.type===Ma.Clear)return new pe.PresenceChange({type:pe.PresenceChange_ChangeType.CLEAR});throw new An(En.Unimplemented,"unimplemented type")}function Bie(A){return new pe.Checkpoint({serverSeq:A.getServerSeqAsString(),clientSeq:A.getClientSeq()})}function Uie(A){return new pe.ChangeID({clientSeq:A.getClientSeq(),lamport:A.getLamportAsString(),actorId:oC(A.getActorID())})}function un(A){if(A)return new pe.TimeTicket({lamport:A.getLamportAsString(),delimiter:A.getDelimiter(),actorId:oC(A.getActorID())})}function $F(A){switch(A){case Jt.Null:return pe.ValueType.NULL;case Jt.Boolean:return pe.ValueType.BOOLEAN;case Jt.Integer:return pe.ValueType.INTEGER;case Jt.Long:return pe.ValueType.LONG;case Jt.Double:return pe.ValueType.DOUBLE;case Jt.String:return pe.ValueType.STRING;case Jt.Bytes:return pe.ValueType.BYTES;case Jt.Date:return pe.ValueType.DATE;default:throw new An(En.Unsupported,`unsupported type: ${A}`)}}function FF(A){switch(A){case pi.IntegerCnt:return pe.ValueType.INTEGER_CNT;case pi.LongCnt:return pe.ValueType.LONG_CNT;default:throw new An(En.Unsupported,`unsupported type: ${A}`)}}function Jx(A){if(A instanceof mr)return new pe.JSONElementSimple({type:pe.ValueType.JSON_OBJECT,createdAt:un(A.getCreatedAt()),value:ZF(A)});if(A instanceof Wo)return new pe.JSONElementSimple({type:pe.ValueType.JSON_ARRAY,createdAt:un(A.getCreatedAt()),value:moe(A)});if(A instanceof fi)return new pe.JSONElementSimple({type:pe.ValueType.TEXT,createdAt:un(A.getCreatedAt())});if(A instanceof _r)return new pe.JSONElementSimple({type:$F(A.getType()),createdAt:un(A.getCreatedAt()),value:A.toBytes()});if(A instanceof za)return new pe.JSONElementSimple({type:FF(A.getType()),createdAt:un(A.getCreatedAt()),value:A.toBytes()});if(A instanceof Sn)return new pe.JSONElementSimple({type:pe.ValueType.TREE,createdAt:un(A.getCreatedAt()),value:boe(A)});throw new An(En.Unimplemented,"unimplemented element")}function jie(A){return new pe.TextNodeID({createdAt:un(A.getCreatedAt()),offset:A.getOffset()})}function VO(A){return new pe.TextNodePos({createdAt:un(A.getID().getCreatedAt()),offset:A.getID().getOffset(),relativeOffset:A.getRelativeOffset()})}function HO(A){return new pe.TreePos({parentId:e0(A.getParentID()),leftSiblingId:e0(A.getLeftSiblingID())})}function e0(A){return new pe.TreeNodeID({createdAt:un(A.getCreatedAt()),offset:A.getOffset()})}function zie(A){const f=new pe.Operation;if(A instanceof Hu){const g=A,T=new pe.Operation_Set;T.parentCreatedAt=un(g.getParentCreatedAt()),T.key=g.getKey(),T.value=Jx(g.getValue()),T.executedAt=un(g.getExecutedAt()),f.body.case="set",f.body.value=T}else if(A instanceof hf){const g=A,T=new pe.Operation_Add;T.parentCreatedAt=un(g.getParentCreatedAt()),T.prevCreatedAt=un(g.getPrevCreatedAt()),T.value=Jx(g.getValue()),T.executedAt=un(g.getExecutedAt()),f.body.case="add",f.body.value=T}else if(A instanceof Yl){const g=A,T=new pe.Operation_Move;T.parentCreatedAt=un(g.getParentCreatedAt()),T.prevCreatedAt=un(g.getPrevCreatedAt()),T.createdAt=un(g.getCreatedAt()),T.executedAt=un(g.getExecutedAt()),f.body.case="move",f.body.value=T}else if(A instanceof Ql){const g=A,T=new pe.Operation_Remove;T.parentCreatedAt=un(g.getParentCreatedAt()),T.createdAt=un(g.getCreatedAt()),T.executedAt=un(g.getExecutedAt()),f.body.case="remove",f.body.value=T}else if(A instanceof Gl){const g=A,T=new pe.Operation_Edit;T.parentCreatedAt=un(g.getParentCreatedAt()),T.from=VO(g.getFromPos()),T.to=VO(g.getToPos());const _=T.createdAtMapByActor;for(const[K,oe]of g.getMaxCreatedAtMapByActor())_[K]=un(oe);T.content=g.getContent();const H=T.attributes;for(const[K,oe]of g.getAttributes())H[K]=oe;T.executedAt=un(g.getExecutedAt()),f.body.case="edit",f.body.value=T}else if(A instanceof xo){const g=A,T=new pe.Operation_Style;T.parentCreatedAt=un(g.getParentCreatedAt()),T.from=VO(g.getFromPos()),T.to=VO(g.getToPos());const _=T.createdAtMapByActor;for(const[K,oe]of g.getMaxCreatedAtMapByActor())_[K]=un(oe);const H=T.attributes;for(const[K,oe]of g.getAttributes())H[K]=oe;T.executedAt=un(g.getExecutedAt()),f.body.case="style",f.body.value=T}else if(A instanceof Jp){const g=A,T=new pe.Operation_Increase;T.parentCreatedAt=un(g.getParentCreatedAt()),T.value=Jx(g.getValue()),T.executedAt=un(g.getExecutedAt()),f.body.case="increase",f.body.value=T}else if(A instanceof Vi){const g=A,T=new pe.Operation_TreeEdit,_=T.createdAtMapByActor;for(const[H,K]of g.getMaxCreatedAtMapByActor())_[H]=un(K);T.parentCreatedAt=un(g.getParentCreatedAt()),T.from=HO(g.getFromPos()),T.to=HO(g.getToPos()),T.contents=qie(g.getContents()),T.splitLevel=g.getSplitLevel(),T.executedAt=un(g.getExecutedAt()),f.body.case="treeEdit",f.body.value=T}else if(A instanceof eh){const g=A,T=new pe.Operation_TreeStyle;T.parentCreatedAt=un(g.getParentCreatedAt()),T.from=HO(g.getFromPos()),T.to=HO(g.getToPos());const _=T.attributes;for(const[H,K]of g.getAttributes())_[H]=K;T.executedAt=un(g.getExecutedAt()),f.body.case="treeStyle",f.body.value=T}else throw new An(En.Unimplemented,"unimplemented operation");return f}function Vie(A){const f=[];for(const g of A)f.push(zie(g));return f}function Hie(A){const f=new pe.Change({id:Uie(A.getID()),message:A.getMessage()});return A.hasOperations()&&(f.operations=Vie(A.getOperations())),A.hasPresenceChange()&&(f.presenceChange=Fie(A.getPresenceChange())),f}function Wie(A){const f=[];for(const g of A)f.push(Hie(g));return f}function Qie(A){const f=[];for(const g of A)f.push(new pe.RHTNode({key:g.getStrKey(),element:eC(g.getValue())}));return f}function Yie(A){const f=[];for(const g of A)f.push(new pe.RGANode({element:eC(g.getValue())}));return f}function Gie(A){const f=[];for(const g of A){const T=new pe.TextNode;T.id=jie(g.getID()),T.value=g.getValue().getContent(),T.removedAt=un(g.getRemovedAt());const _=T.attributes,H=g.getValue().getAttrs();for(const K of H){const oe=new pe.NodeAttr;oe.value=K.getValue(),oe.updatedAt=un(K.getUpdatedAt()),_[K.getKey()]=oe}f.push(T)}return f}function qie(A){const f=[];if(!A||!A.length)return f;for(const g of A)f.push(new pe.TreeNodes({content:BF(g)}));return f}function BF(A){if(!A)return[];const f=[];return Ci(A,(g,T)=>{const _=new pe.TreeNode({id:e0(g.id),type:g.type,removedAt:un(g.removedAt),depth:T});if(g.isText&&(_.value=g.value),g.insPrevID&&(_.insPrevId=e0(g.insPrevID)),g.insNextID&&(_.insNextId=e0(g.insNextID)),g.attrs)for(const H of g.attrs)_.attributes[H.getKey()]=new pe.NodeAttr({value:H.getValue(),updatedAt:un(H.getUpdatedAt())});f.push(_)}),f}function Zie(A){const f=new pe.JSONElement;return f.body.case="jsonObject",f.body.value=new pe.JSONElement_JSONObject({nodes:Qie(A.getRHT()),createdAt:un(A.getCreatedAt()),movedAt:un(A.getMovedAt()),removedAt:un(A.getRemovedAt())}),f}function UF(A){const f=new pe.JSONElement;return f.body.case="jsonArray",f.body.value=new pe.JSONElement_JSONArray({nodes:Yie(A.getElements()),createdAt:un(A.getCreatedAt()),movedAt:un(A.getMovedAt()),removedAt:un(A.getRemovedAt())}),f}function Xie(A){const f=new pe.JSONElement;return f.body.case="primitive",f.body.value=new pe.JSONElement_Primitive({type:$F(A.getType()),value:A.toBytes(),createdAt:un(A.getCreatedAt()),movedAt:un(A.getMovedAt()),removedAt:un(A.getRemovedAt())}),f}function Kie(A){const f=new pe.JSONElement;return f.body.case="text",f.body.value=new pe.JSONElement_Text({nodes:Gie(A.getRGATreeSplit()),createdAt:un(A.getCreatedAt()),movedAt:un(A.getMovedAt()),removedAt:un(A.getRemovedAt())}),f}function Jie(A){const f=new pe.JSONElement;return f.body.case="counter",f.body.value=new pe.JSONElement_Counter({type:FF(A.getType()),value:A.toBytes(),createdAt:un(A.getCreatedAt()),movedAt:un(A.getMovedAt()),removedAt:un(A.getRemovedAt())}),f}function jF(A){const f=new pe.JSONElement;return f.body.case="tree",f.body.value=new pe.JSONElement_Tree({nodes:BF(A.getRoot()),createdAt:un(A.getCreatedAt()),movedAt:un(A.getMovedAt()),removedAt:un(A.getRemovedAt())}),f}function eC(A){if(A instanceof mr)return Zie(A);if(A instanceof Wo)return UF(A);if(A instanceof _r)return Xie(A);if(A instanceof fi)return Kie(A);if(A instanceof za)return Jie(A);if(A instanceof Sn)return jF(A);throw new An(En.Unimplemented,"unimplemented element")}function eoe(A){return new pe.ChangePack({documentKey:A.getDocumentKey(),checkpoint:Bie(A.getCheckpoint()),isRemoved:A.getIsRemoved(),changes:Wie(A.getChanges()),snapshot:A.getSnapshot(),minSyncedTicket:un(A.getMinSyncedTicket())})}function toe(A){return ja.of(A.clientSeq,Yr.fromString(A.lamport,!0),iC(A.actorId))}function hn(A){if(A)return vr.of(Yr.fromString(A.lamport,!0),A.delimiter,iC(A.actorId))}function tC(A){const f={};return Object.entries(A.data).forEach(([g,T])=>{f[g]=JSON.parse(T)}),f}function noe(A){const f=A.type;if(f===pe.PresenceChange_ChangeType.PUT){const g=tC(A.presence);return{type:Ma.Put,presence:g}}if(f===pe.PresenceChange_ChangeType.CLEAR)return{type:Ma.Clear};throw new An(En.Unsupported,`unsupported type: ${f}`)}function roe(A){const f=new Map;return Object.entries(A).forEach(([g,T])=>{f.set(g,tC(T))}),f}function zF(A){switch(A){case pe.ValueType.NULL:return Jt.Null;case pe.ValueType.BOOLEAN:return Jt.Boolean;case pe.ValueType.INTEGER:return Jt.Integer;case pe.ValueType.LONG:return Jt.Long;case pe.ValueType.DOUBLE:return Jt.Double;case pe.ValueType.STRING:return Jt.String;case pe.ValueType.BYTES:return Jt.Bytes;case pe.ValueType.DATE:return Jt.Date}throw new An(En.Unimplemented,`unimplemented value type: ${A}`)}function WO(A){switch(A){case pe.ValueType.INTEGER_CNT:return pi.IntegerCnt;case pe.ValueType.LONG_CNT:return pi.LongCnt}throw new An(En.Unimplemented,`unimplemented value type: ${A}`)}function nC(A){switch(A.type){case pe.ValueType.JSON_OBJECT:return A.value?qF(A.value):mr.create(hn(A.createdAt));case pe.ValueType.JSON_ARRAY:return A.value?hoe(A.value):Wo.create(hn(A.createdAt));case pe.ValueType.TEXT:return fi.create(Kp.create(),hn(A.createdAt));case pe.ValueType.TREE:return goe(A.value);case pe.ValueType.NULL:case pe.ValueType.BOOLEAN:case pe.ValueType.INTEGER:case pe.ValueType.LONG:case pe.ValueType.DOUBLE:case pe.ValueType.STRING:case pe.ValueType.BYTES:case pe.ValueType.DATE:return _r.of(_r.valueFromBytes(zF(A.type),A.value),hn(A.createdAt));case pe.ValueType.INTEGER_CNT:case pe.ValueType.LONG_CNT:return za.create(WO(A.type),za.valueFromBytes(WO(A.type),A.value),hn(A.createdAt))}}function QO(A){return ul.of(ql.of(hn(A.createdAt),A.offset),A.relativeOffset)}function VF(A){return ql.of(hn(A.createdAt),A.offset)}function ioe(A){const f=Yo.create(A.value);Object.entries(A.attributes).forEach(([T,_])=>{f.setAttr(T,_.value,hn(_.updatedAt))});const g=$c.create(VF(A.id),f);return g.remove(hn(A.removedAt)),g}function YO(A){return ct.of(t0(A.parentId),t0(A.leftSiblingId))}function t0(A){return Ze.of(hn(A.createdAt),A.offset)}function ooe(A){if(!A.length)return;const f=[];return A.forEach(g=>{const T=HF(g.content);f.push(T)}),f}function HF(A){if(A.length===0)return;const f=[];for(const T of A)f.push(aoe(T));const g=f[f.length-1];for(let T=f.length-2;T>=0;T--){let _;for(let H=T+1;H{T.set(_,H.value,hn(H.updatedAt))}),g.attrs=T}return A.insPrevId&&(g.insPrevID=t0(A.insPrevId)),A.insNextId&&(g.insNextID=t0(A.insNextId)),g.removedAt=hn(A.removedAt),g}function soe(A){const f=[];for(const g of A){let T;if(g.body.case==="set"){const _=g.body.value;T=Hu.create(_.key,nC(_.value),hn(_.parentCreatedAt),hn(_.executedAt))}else if(g.body.case==="add"){const _=g.body.value;T=hf.create(hn(_.parentCreatedAt),hn(_.prevCreatedAt),nC(_.value),hn(_.executedAt))}else if(g.body.case==="move"){const _=g.body.value;T=Yl.create(hn(_.parentCreatedAt),hn(_.prevCreatedAt),hn(_.createdAt),hn(_.executedAt))}else if(g.body.case==="remove"){const _=g.body.value;T=Ql.create(hn(_.parentCreatedAt),hn(_.createdAt),hn(_.executedAt))}else if(g.body.case==="edit"){const _=g.body.value,H=new Map;Object.entries(_.createdAtMapByActor).forEach(([oe,Ae])=>{H.set(oe,hn(Ae))});const K=new Map;Object.entries(_.attributes).forEach(([oe,Ae])=>{K.set(oe,Ae)}),T=Gl.create(hn(_.parentCreatedAt),QO(_.from),QO(_.to),H,_.content,K,hn(_.executedAt))}else if(g.body.case==="style"){const _=g.body.value,H=new Map;Object.entries(_.createdAtMapByActor).forEach(([oe,Ae])=>{H.set(oe,hn(Ae))});const K=new Map;Object.entries(_.attributes).forEach(([oe,Ae])=>{K.set(oe,Ae)}),T=xo.create(hn(_.parentCreatedAt),QO(_.from),QO(_.to),H,K,hn(_.executedAt))}else{if(g.body.case==="select")continue;if(g.body.case==="increase"){const _=g.body.value;T=Jp.create(hn(_.parentCreatedAt),nC(_.value),hn(_.executedAt))}else if(g.body.case==="treeEdit"){const _=g.body.value,H=new Map;Object.entries(_.createdAtMapByActor).forEach(([K,oe])=>{H.set(K,hn(oe))}),T=Vi.create(hn(_.parentCreatedAt),YO(_.from),YO(_.to),ooe(_.contents),_.splitLevel,H,hn(_.executedAt))}else if(g.body.case==="treeStyle"){const _=g.body.value,H=new Map;Object.entries(_.attributes).forEach(([K,oe])=>{H.set(K,oe)}),T=eh.create(hn(_.parentCreatedAt),YO(_.from),YO(_.to),H,hn(_.executedAt))}else throw new An(En.Unimplemented,"unimplemented operation")}f.push(T)}return f}function WF(A){const f=[];for(const g of A)f.push(mf.create({id:toe(g.id),operations:soe(g.operations),presenceChange:g.presenceChange?noe(g.presenceChange):void 0,message:g.message}));return f}function loe(A){return Xp.of(Yr.fromString(A.serverSeq,!0),A.clientSeq)}function uoe(A){return zO.create(A.documentKey,loe(A.checkpoint),A.isRemoved,WF(A.changes),A.snapshot,hn(A.minSyncedTicket))}function QF(A){const f=new ji;for(const T of A.nodes){const _=rC(T.element);f.set(T.key,_,_.getPositionedAt())}const g=new mr(hn(A.createdAt),f);return g.setMovedAt(hn(A.movedAt)),g.setRemovedAt(hn(A.removedAt)),g}function YF(A){const f=new pf;for(const T of A.nodes)f.insert(rC(T.element));const g=new Wo(hn(A.createdAt),f);return g.setMovedAt(hn(A.movedAt)),g.setRemovedAt(hn(A.removedAt)),g}function coe(A){const f=_r.of(_r.valueFromBytes(zF(A.type),A.value),hn(A.createdAt));return f.setMovedAt(hn(A.movedAt)),f.setRemovedAt(hn(A.removedAt)),f}function doe(A){const f=new Kp;let g=f.getHead();for(const _ of A.nodes){const H=f.insertAfter(g,ioe(_));_.insPrevId&&H.setInsPrev(f.findNode(VF(_.insPrevId))),g=H}const T=new fi(f,hn(A.createdAt));return T.setMovedAt(hn(A.movedAt)),T.setRemovedAt(hn(A.removedAt)),T}function foe(A){const f=za.create(WO(A.type),za.valueFromBytes(WO(A.type),A.value),hn(A.createdAt));return f.setMovedAt(hn(A.movedAt)),f.setRemovedAt(hn(A.removedAt)),f}function GF(A){const f=HF(A.nodes);return Sn.create(f,hn(A.createdAt))}function rC(A){if(A.body.case==="jsonObject")return QF(A.body.value);if(A.body.case==="jsonArray")return YF(A.body.value);if(A.body.case==="primitive")return coe(A.body.value);if(A.body.case==="text")return doe(A.body.value);if(A.body.case==="counter")return foe(A.body.value);if(A.body.case==="tree")return GF(A.body.value);throw new An(En.Unimplemented,"unimplemented element")}function poe(A){if(!A)return{root:mr.create(ro),presences:new Map};const f=pe.Snapshot.fromBinary(A);return{root:rC(f.root),presences:roe(f.presences)}}function qF(A){if(!A)throw new Error("bytes is empty");const f=pe.JSONElement.fromBinary(A);return QF(f.body.value)}function ZF(A){return eC(A).toBinary()}function hoe(A){if(!A)throw new Error("bytes is empty");const f=pe.JSONElement.fromBinary(A);return YF(f.body.value)}function moe(A){return UF(A).toBinary()}function goe(A){if(!A)throw new Error("bytes is empty");const f=pe.JSONElement.fromBinary(A);return GF(f.body.value)}function boe(A){return jF(A).toBinary()}function yoe(A){return A?Array.from(A).map(f=>f.toString(16).padStart(2,"0")).join(""):""}function iC(A){return yoe(A)}function Ooe(A){return new Uint8Array(A.match(/.{1,2}/g).map(f=>parseInt(f,16)))}function oC(A){return Ooe(A)}const Zl={fromPresence:tC,toChangePack:eoe,fromChangePack:uoe,fromChanges:WF,objectToBytes:ZF,bytesToObject:qF,bytesToSnapshot:poe,toHexString:iC,toUint8Array:oC};class voe{constructor(f,g,T,_){this.reconnectStreamDelay=f,this.doc=g,this.docID=T,this.isRealtimeSync=_,this.syncMode=Wu.PushPull,this.remoteChangeEventReceived=!1}changeRealtimeSync(f){return this.isRealtimeSync===f?!1:f?(this.isRealtimeSync=!0,!0):(this.cancelWatchStream(),this.isRealtimeSync=!1,!0)}changeSyncMode(f){this.syncMode=f}needRealtimeSync(){return this.isRealtimeSync&&(this.doc.hasLocalChanges()||this.remoteChangeEventReceived)}async runWatchLoop(f){const g=async()=>{if(this.watchStream)return Promise.resolve();this.watchLoopTimerID&&(clearTimeout(this.watchLoopTimerID),this.watchLoopTimerID=void 0);try{[this.watchStream,this.watchAbortController]=await f(()=>{this.watchStream=void 0,this.watchAbortController=void 0,this.watchLoopTimerID=setTimeout(g,this.reconnectStreamDelay)})}catch{}};await g()}cancelWatchStream(){this.watchStream&&this.watchAbortController&&(this.watchAbortController.abort(),this.watchStream=void 0,this.watchAbortController=void 0),clearTimeout(this.watchLoopTimerID),this.watchLoopTimerID=void 0}}class th{constructor(f,g,T,_){this.id=f,this.delimiter=Gp,this.root=g,this.operations=[],this.previousPresence=la(T),this.presenceChange=void 0,this.reversePresenceKeys=new Set,this.message=_}static create(f,g,T,_){return new th(f,g,T,_)}push(f){this.operations.push(f)}registerElement(f,g){this.root.registerElement(f,g)}registerRemovedElement(f){this.root.registerRemovedElement(f)}registerElementHasRemovedNodes(f){this.root.registerElementHasRemovedNodes(f)}getChange(){return mf.create({id:this.id,operations:this.operations,presenceChange:this.presenceChange,message:this.message})}hasChange(){return this.operations.length>0||this.presenceChange!==void 0}setPresenceChange(f){this.presenceChange=f}setReversePresence(f,g){for(const T of Object.keys(f))g!=null&&g.addToHistory?this.reversePresenceKeys.add(T):this.reversePresenceKeys.delete(T)}getReversePresence(){if(this.reversePresenceKeys.size===0)return;const f={};for(const g of this.reversePresenceKeys)f[g]=this.previousPresence[g];return f}issueTimeTicket(){return this.delimiter+=1,this.id.createTimeTicket(this.delimiter)}getLastTimeTicket(){return this.id.createTimeTicket(this.delimiter)}}class n0{constructor(f){this.rootObject=f,this.elementPairMapByCreatedAt=new Map,this.removedElementSetByCreatedAt=new Set,this.elementHasRemovedNodesSetByCreatedAt=new Set,this.opsForTest=[],this.registerElement(f,void 0)}static create(){return new n0(mr.create(ro))}findByCreatedAt(f){const g=this.elementPairMapByCreatedAt.get(f.toIDString());if(g)return g.element}findElementPairByCreatedAt(f){return this.elementPairMapByCreatedAt.get(f.toIDString())}createSubPaths(f){let g=this.elementPairMapByCreatedAt.get(f.toIDString());if(!g)return[];const T=[];for(;g.parent;){const _=g.element.getCreatedAt(),H=g.parent.subPathOf(_);H===void 0&&u.fatal(`cant find the given element: ${_.toIDString()}`),T.unshift(H),g=this.elementPairMapByCreatedAt.get(g.parent.getCreatedAt().toIDString())}return T.unshift("$"),T}createPath(f){return this.createSubPaths(f).join(".")}registerElement(f,g){this.elementPairMapByCreatedAt.set(f.getCreatedAt().toIDString(),{parent:g,element:f}),f instanceof Wl&&f.getDescendants((T,_)=>(this.registerElement(T,_),!1))}deregisterElement(f){let g=0;const T=_=>{const H=_.getCreatedAt().toIDString();this.elementPairMapByCreatedAt.delete(H),this.removedElementSetByCreatedAt.delete(H),g++};return T(f),f instanceof Wl&&f.getDescendants(_=>(T(_),!1)),g}registerRemovedElement(f){this.removedElementSetByCreatedAt.add(f.getCreatedAt().toIDString())}registerElementHasRemovedNodes(f){this.elementHasRemovedNodesSetByCreatedAt.add(f.getCreatedAt().toIDString())}getElementMapSize(){return this.elementPairMapByCreatedAt.size}getRemovedElementSetSize(){return this.removedElementSetByCreatedAt.size}getObject(){return this.rootObject}getGarbageLen(){let f=0;const g=new Set;for(const T of this.removedElementSetByCreatedAt){g.add(T);const _=this.elementPairMapByCreatedAt.get(T);_.element instanceof Wl&&_.element.getDescendants(H=>(g.add(H.getCreatedAt().toIDString()),!1))}f+=g.size;for(const T of this.elementHasRemovedNodesSetByCreatedAt){const H=this.elementPairMapByCreatedAt.get(T).element;f+=H.getRemovedNodesLen()}return f}deepcopy(){return new n0(this.rootObject.deepcopy())}garbageCollect(f){let g=0;for(const T of this.removedElementSetByCreatedAt){const _=this.elementPairMapByCreatedAt.get(T);_.element.getRemovedAt()&&f.compare(_.element.getRemovedAt())>=0&&(_.parent.purge(_.element),g+=this.deregisterElement(_.element))}for(const T of this.elementHasRemovedNodesSetByCreatedAt){const H=this.elementPairMapByCreatedAt.get(T).element,K=H.purgeRemovedNodesBefore(f);K>0&&this.elementHasRemovedNodesSetByCreatedAt.delete(H.getCreatedAt().toIDString()),g+=K}return g}toJSON(){return this.rootObject.toJSON()}toSortedJSON(){return this.rootObject.toSortedJSON()}}function XF(A,f){const g=new r0(A);return new Proxy(f,g.getHandlers())}class r0{constructor(f){this.context=f,this.handlers={set:(g,T,_)=>(u.isEnabled(s.Trivial)&&u.trivial(`obj[${T}]=${JSON.stringify(_)}`),r0.setInternal(f,g,T,_),!0),get:(g,T)=>(u.isEnabled(s.Trivial)&&u.trivial(`obj[${T}]`),T==="getID"?()=>g.getCreatedAt():T==="toJSON"||T==="toString"?()=>g.toJSON():T==="toJS"?()=>g.toJS():T==="toJSForTest"?()=>g.toJSForTest():gf(f,g.get(T))),ownKeys:g=>g.getKeys(),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),deleteProperty:(g,T)=>(u.isEnabled(s.Trivial)&&u.trivial(`obj[${T}]`),r0.deleteInternal(f,g,T),!0)}}static setInternal(f,g,T,_){if(T.includes("."))throw new An(En.InvalidObjectKey,"key must not contain the '.'.");const H=f.issueTimeTicket(),K=XO(f,_,H),oe=g.set(T,K,H);f.registerElement(K,g),oe&&f.registerRemovedElement(oe),f.push(Hu.create(T,K.deepcopy(),g.getCreatedAt(),H))}static buildObjectMembers(f,g){const T={};for(const[_,H]of Object.entries(g)){if(_.includes("."))throw new An(En.InvalidObjectKey,"key must not contain the '.'.");const K=f.issueTimeTicket(),oe=XO(f,H,K);T[_]=oe}return T}static deleteInternal(f,g,T){const _=f.issueTimeTicket(),H=g.deleteByKey(T,_);H&&(f.push(Ql.create(g.getCreatedAt(),H.getCreatedAt(),_)),f.registerRemovedElement(H))}getHandlers(){return this.handlers}}function Eoe(A,f){const g=new ei(A,f);return new Proxy(f,g.getHandlers())}function Soe(A){return typeof A=="string"||A instanceof String?!isNaN(A):!1}function Toe(A){return["concat","entries","every","filter","find","findIndex","forEach","join","keys","map","reduce","reduceRight","slice","some","toLocaleString","toString","values"].includes(A)}class ei{constructor(f,g){this.context=f,this.array=g,this.handlers={get:(T,_,H)=>_==="getID"?()=>T.getCreatedAt():_==="getElementByID"?K=>{const oe=T.getByID(K);if(!(!oe||oe.isRemoved()))return Fc(f,oe)}:_==="getElementByIndex"?K=>{const oe=T.get(K);return Fc(f,oe)}:_==="getLast"?()=>Fc(f,T.getLast()):_==="deleteByID"?K=>{const oe=ei.deleteInternalByID(f,T,K);return Fc(f,oe)}:_==="insertAfter"?(K,oe)=>{const Ae=ei.insertAfterInternal(f,T,K,oe);return Fc(f,Ae)}:_==="insertBefore"?(K,oe)=>{const Ae=ei.insertBeforeInternal(f,T,K,oe);return Fc(f,Ae)}:_==="moveBefore"?(K,oe)=>{ei.moveBeforeInternal(f,T,K,oe)}:_==="moveAfter"?(K,oe)=>{ei.moveAfterInternal(f,T,K,oe)}:_==="moveFront"?K=>{ei.moveFrontInternal(f,T,K)}:_==="moveLast"?K=>{ei.moveLastInternal(f,T,K)}:Soe(_)?gf(f,T.get(Number(_))):_==="push"?K=>ei.pushInternal(f,T,K):_==="splice"?(K,oe,...Ae)=>ei.splice(f,T,K,oe,...Ae):_==="length"?T.length:typeof _=="symbol"&&_===Symbol.iterator?ei.iteratorInternal.bind(this,f,T):_==="includes"?(K,oe)=>ei.includes(f,T,K,oe):_==="indexOf"?(K,oe)=>ei.indexOf(f,T,K,oe):_==="lastIndexOf"?(K,oe)=>ei.lastIndexOf(f,T,K,oe):_==="toTestString"?()=>ei.toTestString(T):typeof _=="string"&&Toe(_)?(...K)=>{const oe=Array.from(T).map(Ae=>gf(f,Ae));return Array.prototype[_].apply(oe,K)}:Reflect.get(T,_,H),deleteProperty:(T,_)=>(u.isEnabled(s.Trivial)&&u.trivial(`array[${_}]`),ei.deleteInternalByIndex(f,T,Number.parseInt(_)),!0)}}static*iteratorInternal(f,g){for(const T of g)yield Fc(f,T)}static buildArrayElements(f,g){const T=[];for(const _ of g){const H=f.issueTimeTicket(),K=XO(f,_,H);T.push(K)}return T}static pushInternal(f,g,T){return ei.insertAfterInternal(f,g,g.getLastCreatedAt(),T),g.length}static moveBeforeInternal(f,g,T,_){const H=f.issueTimeTicket(),K=g.getPrevCreatedAt(T);g.moveAfter(K,_,H),f.push(Yl.create(g.getCreatedAt(),K,_,H))}static moveAfterInternal(f,g,T,_){const H=f.issueTimeTicket();g.moveAfter(T,_,H),f.push(Yl.create(g.getCreatedAt(),T,_,H))}static moveFrontInternal(f,g,T){const _=f.issueTimeTicket(),H=g.getHead();g.moveAfter(H.getCreatedAt(),T,_),f.push(Yl.create(g.getCreatedAt(),H.getCreatedAt(),T,_))}static moveLastInternal(f,g,T){const _=f.issueTimeTicket(),H=g.getLastCreatedAt();g.moveAfter(H,T,_),f.push(Yl.create(g.getCreatedAt(),H,T,_))}static insertAfterInternal(f,g,T,_){const H=f.issueTimeTicket(),K=XO(f,_,H);return g.insertAfter(T,K),f.registerElement(K,g),f.push(hf.create(g.getCreatedAt(),T,K.deepcopy(),H)),K}static insertBeforeInternal(f,g,T,_){return ei.insertAfterInternal(f,g,g.getPrevCreatedAt(T),_)}static deleteInternalByIndex(f,g,T){const _=f.issueTimeTicket(),H=g.deleteByIndex(T,_);if(H)return f.push(Ql.create(g.getCreatedAt(),H.getCreatedAt(),_)),f.registerRemovedElement(H),H}static deleteInternalByID(f,g,T){const _=f.issueTimeTicket(),H=g.delete(T,_);return f.push(Ql.create(g.getCreatedAt(),H.getCreatedAt(),_)),f.registerRemovedElement(H),H}static splice(f,g,T,_,...H){const K=g.length,oe=T>=0?Math.min(T,K):Math.max(K+T,0),Ae=_===void 0?K:_<0?oe:Math.min(oe+_,K),He=[];for(let yt=oe;yt=K)return!1;if(_r.isSupport(T))return Array.from(g).map(He=>gf(f,He)).includes(T,oe);for(let Ae=oe;Ae=K)return-1;if(_r.isSupport(T))return Array.from(g).map(He=>gf(f,He)).indexOf(T,oe);for(let Ae=oe;Ae=K?K-1:_<0?_+K:_;if(oe<0)return-1;if(_r.isSupport(T))return Array.from(g).map(He=>gf(f,He)).lastIndexOf(T,oe);for(let Ae=oe;Ae>0;Ae--)if(((H=g.get(Ae))===null||H===void 0?void 0:H.getID())===T.getID())return Ae;return-1}static toTestString(f){return f.toTestString()}getHandlers(){return this.handlers}}class GO{constructor(f,g){this.context=f,this.text=g}initialize(f,g){this.context=f,this.text=g}getID(){return this.text.getID()}edit(f,g,T,_){if(!this.context||!this.text){u.fatal("it is not initialized yet");return}if(f>g){u.fatal("from should be less than or equal to to");return}const H=this.text.indexRangeToPosRange(f,g);u.isEnabled(s.Debug)&&u.debug(`EDIT: f:${f}->${H[0].toTestString()}, t:${g}->${H[1].toTestString()} c:${T}`);const K=_?no(_):void 0,oe=this.context.issueTimeTicket(),[Ae,,He]=this.text.edit(H,T,oe,K);return this.context.push(new Gl(this.text.getCreatedAt(),H[0],H[1],Ae,T,K?new Map(Object.entries(K)):new Map,oe)),H[0].equals(H[1])||this.context.registerElementHasRemovedNodes(this.text),this.text.findIndexesFromRange(He)}delete(f,g){return this.edit(f,g,"")}empty(){return this.edit(0,this.length,"")}setStyle(f,g,T){if(!this.context||!this.text)return u.fatal("it is not initialized yet"),!1;if(f>g)return u.fatal("from should be less than or equal to to"),!1;const _=this.text.indexRangeToPosRange(f,g);u.isEnabled(s.Debug)&&u.debug(`STYL: f:${f}->${_[0].toTestString()}, t:${g}->${_[1].toTestString()} a:${JSON.stringify(T)}`);const H=no(T),K=this.context.issueTimeTicket(),[oe]=this.text.setStyle(_,H,K);return this.context.push(new xo(this.text.getCreatedAt(),_[0],_[1],oe,new Map(Object.entries(H)),K)),!0}indexRangeToPosRange(f){if(!this.context||!this.text){u.fatal("it is not initialized yet");return}const g=this.text.indexRangeToPosRange(f[0],f[1]);return[g[0].toStruct(),g[1].toStruct()]}posRangeToIndexRange(f){if(!this.context||!this.text){u.fatal("it is not initialized yet");return}const g=this.text.findIndexesFromRange([ul.fromStruct(f[0]),ul.fromStruct(f[1])]);return[g[0],g[1]]}toTestString(){if(!this.context||!this.text){u.fatal("it is not initialized yet");return}return this.text.toTestString()}values(){if(!this.context||!this.text){u.fatal("it is not initialized yet");return}return this.text.values()}get length(){return this.text.length}checkWeight(){return this.text.checkWeight()}toString(){return!this.context||!this.text?(u.fatal("it is not initialized yet"),""):this.text.toString()}createRangeForTest(f,g){if(!this.context||!this.text){u.fatal("it is not initialized yet");return}return this.text.indexRangeToPosRange(f,g)}}class qO{constructor(f,g){this.valueType=f,this.value=g}initialize(f,g){this.valueType=g.getValueType(),this.context=f,this.counter=g,this.value=g.getValue()}getID(){return this.counter.getID()}getValue(){return this.value}getValueType(){return this.valueType}increase(f){if(!this.context||!this.counter){u.fatal("it is not initialized yet");return}const g=this.context.issueTimeTicket(),T=_r.of(f,g);if(!T.isNumericType())throw new TypeError(`Unsupported type of value: ${typeof T.getValue()}`);return this.counter.increase(T),this.context.push(Jp.create(this.counter.getCreatedAt(),T,g)),this}}function aC(A,f,g){const{type:T}=A,_=g.issueTimeTicket();if(T===xi){KF(A);const{value:H}=A,K=Ot.create(Ze.of(_,0),T,H);f.append(K)}else{const{children:H=[]}=A;let{attributes:K}=A,oe;if(typeof K=="object"&&!Qp(K)){K=no(K),oe=new $a;for(const[He,yt]of Object.entries(K))oe.set(He,yt,_)}const Ae=Ot.create(Ze.of(_,0),T,void 0,oe);f.append(Ae);for(const He of H)aC(He,Ae,g)}}function woe(A,f){const{type:g}=f,T=A.issueTimeTicket();let _;if(f.type===xi){const{value:H}=f;_=Ot.create(Ze.of(T,0),g,H)}else if(f){const{children:H=[]}=f;let{attributes:K}=f,oe;if(typeof K=="object"&&!Qp(K)){K=no(K),oe=new $a;for(const[Ae,He]of Object.entries(K))oe.set(Ae,He,T)}_=Ot.create(Ze.of(A.issueTimeTicket(),0),g,void 0,oe);for(const Ae of H)aC(Ae,_,A)}return _}function KF(A){if(!A.value.length)throw new Error("text node cannot have empty value");return!0}function JF(A){if(!A.length)return!0;if(A[0].type===xi)for(const g of A){const{type:T}=g;if(T!==xi)throw new Error("element node and text node cannot be passed together");KF(g)}else for(const g of A){const{type:T}=g;if(T===xi)throw new Error("element node and text node cannot be passed together")}return!0}class ZO{constructor(f){this.initialRoot=f}initialize(f,g){this.context=f,this.tree=g}getID(){return this.tree.getID()}buildRoot(f){if(!this.initialRoot)return Ot.create(Ze.of(f.issueTimeTicket(),0),da);const g=Ot.create(Ze.of(f.issueTimeTicket(),0),this.initialRoot.type);for(const T of this.initialRoot.children)aC(T,g,f);return g}getSize(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getSize()}getIndexTree(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getIndexTree()}styleByPath(f,g){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(!f.length)throw new Error("path should not be empty");const[T,_]=this.tree.pathToPosRange(f),H=this.context.issueTimeTicket(),K=g?no(g):void 0;this.tree.style([T,_],K,H),this.context.push(eh.create(this.tree.getCreatedAt(),T,_,K?new Map(Object.entries(K)):new Map,H))}style(f,g,T){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(f>g)throw new Error("from should be less than or equal to to");const _=this.tree.findPos(f),H=this.tree.findPos(g),K=this.context.issueTimeTicket(),oe=T?no(T):void 0;this.tree.style([_,H],oe,K),this.context.push(eh.create(this.tree.getCreatedAt(),_,H,oe?new Map(Object.entries(oe)):new Map,K))}editInternal(f,g,T,_=0){var H;if(T.length!==0&&T[0]&&(JF(T),T[0].type!==xi))for(const He of T){const{children:yt=[]}=He;JF(yt)}const K=this.context.getLastTimeTicket();let oe=new Array;if(((H=T[0])===null||H===void 0?void 0:H.type)===xi){let He="";for(const yt of T){const{value:Ft}=yt;He+=Ft}oe.push(Ot.create(Ze.of(this.context.issueTimeTicket(),0),xi,He))}else oe=T.map(He=>He&&woe(this.context,He)).filter(He=>He);const[,Ae]=this.tree.edit([f,g],oe.length?oe.map(He=>He==null?void 0:He.deepcopy()):void 0,_,K,()=>this.context.issueTimeTicket());return this.context.push(Vi.create(this.tree.getCreatedAt(),f,g,oe.length?oe:void 0,_,Ae,K)),f.equals(g)||this.context.registerElementHasRemovedNodes(this.tree),!0}editByPath(f,g,T,_=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(f.length!==g.length)throw new Error("path length should be equal");if(!f.length||!g.length)throw new Error("path should not be empty");const H=this.tree.pathToPos(f),K=this.tree.pathToPos(g);return this.editInternal(H,K,T?[T]:[],_)}editBulkByPath(f,g,T,_=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(f.length!==g.length)throw new Error("path length should be equal");if(!f.length||!g.length)throw new Error("path should not be empty");const H=this.tree.pathToPos(f),K=this.tree.pathToPos(g);return this.editInternal(H,K,T,_)}edit(f,g,T,_=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(f>g)throw new Error("from should be less than or equal to to");const H=this.tree.findPos(f),K=this.tree.findPos(g);return this.editInternal(H,K,T?[T]:[],_)}editBulk(f,g,T,_=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(f>g)throw new Error("from should be less than or equal to to");const H=this.tree.findPos(f),K=this.tree.findPos(g);return this.editInternal(H,K,T,_)}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()}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(f){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.indexToPath(f)}pathToIndex(f){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.pathToIndex(f)}pathRangeToPosRange(f){if(!this.context||!this.tree){u.fatal("it is not initialized yet");return}const g=[this.tree.pathToIndex(f[0]),this.tree.pathToIndex(f[1])],T=this.tree.indexRangeToPosRange(g);return[T[0].toStruct(),T[1].toStruct()]}indexRangeToPosRange(f){if(!this.context||!this.tree){u.fatal("it is not initialized yet");return}return this.tree.indexRangeToPosStructRange(f)}posRangeToIndexRange(f){if(!this.context||!this.tree){u.fatal("it is not initialized yet");return}const g=[ct.fromStruct(f[0]),ct.fromStruct(f[1])];return this.tree.posRangeToIndexRange(g,this.context.getLastTimeTicket())}posRangeToPathRange(f){if(!this.context||!this.tree){u.fatal("it is not initialized yet");return}const g=[ct.fromStruct(f[0]),ct.fromStruct(f[1])];return this.tree.posRangeToPathRange(g,this.context.getLastTimeTicket())}}function e6(A,f){return XF(A,f)}function Fc(A,f){if(f){if(f instanceof _r)return f;if(f instanceof mr)return XF(A,f);if(f instanceof Wo)return Eoe(A,f);if(f instanceof fi)return new GO(A,f);if(f instanceof za){const g=new qO(pi.IntegerCnt,0);return g.initialize(A,f),g}else if(f instanceof Sn){const g=new ZO;return g.initialize(A,f),g}}else return;throw new TypeError(`Unsupported type of element: ${typeof f}`)}function gf(A,f){const g=Fc(A,f);return g instanceof _r?g.getValue():g}function XO(A,f,g){let T;if(_r.isSupport(f))T=_r.of(f,g);else if(Array.isArray(f))T=Wo.create(g,ei.buildArrayElements(A,f));else if(typeof f=="object")f instanceof GO?(T=fi.create(Kp.create(),g),f.initialize(A,T)):f instanceof qO?(T=za.create(f.getValueType(),f.getValue(),g),f.initialize(A,T)):f instanceof ZO?(T=Sn.create(f.buildRoot(A),g),f.initialize(A,T)):T=mr.create(g,r0.buildObjectMembers(A,f));else throw new TypeError(`Unsupported type of value: ${typeof f}`);return T}const t6=50;class koe{constructor(){this.undoStack=[],this.redoStack=[]}hasUndo(){return this.undoStack.length>0}hasRedo(){return this.redoStack.length>0}pushUndo(f){this.undoStack.length>=t6&&this.undoStack.shift(),this.undoStack.push(f)}popUndo(){return this.undoStack.pop()}pushRedo(f){this.redoStack.length>=t6&&this.redoStack.shift(),this.redoStack.push(f)}popRedo(){return this.redoStack.pop()}clearRedo(){this.redoStack=[]}getUndoStackForTest(){return this.undoStack}getRedoStackForTest(){return this.redoStack}}const xoe="yorkie-devtools-panel",Coe="yorkie-devtools-sdk";var ks;(function(A){A.Detached="detached",A.Attached="attached",A.Removed="removed"})(ks||(ks={}));var Ln;(function(A){A.Snapshot="snapshot",A.LocalChange="local-change",A.RemoteChange="remote-change",A.Initialized="initialized",A.Watched="watched",A.Unwatched="unwatched",A.PresenceChanged="presence-changed"})(Ln||(Ln={}));class n6{constructor(f,g){this.opts=g||{},this.key=f,this.status=ks.Detached,this.root=n0.create(),this.changeID=Kx,this.checkpoint=Lie,this.localChanges=[],this.eventStream=h(T=>{this.eventStreamObserver=T}),this.onlineClients=new Set,this.presences=new Map,this.isUpdating=!1,this.internalHistory=new koe,this.history={canUndo:this.canUndo.bind(this),canRedo:this.canRedo.bind(this),undo:this.undo.bind(this),redo:this.redo.bind(this)}}update(f,g){if(this.getStatus()===ks.Removed)throw new An(En.DocumentRemoved,`${this.key} is removed`);this.ensureClone();const T=this.changeID.getActorID(),_=th.create(this.changeID.next(),this.clone.root,this.clone.presences.get(T)||{},g);try{const H=e6(_,this.clone.root.getObject());this.presences.has(T)||this.clone.presences.set(T,{}),this.isUpdating=!0,f(H,new Yp(_,this.clone.presences.get(T)))}catch(H){throw this.clone=void 0,u.error(H),H}finally{this.isUpdating=!1}if(_.hasChange()){u.isEnabled(s.Trivial)&&u.trivial(`trying to update a local change: ${this.toJSON()}`);const H=_.getChange(),{opInfos:K,reverseOps:oe}=H.execute(this.root,this.presences,Ar.Local),Ae=_.getReversePresence();Ae&&oe.push({type:"presence",value:Ae}),this.localChanges.push(H),oe.length>0&&this.internalHistory.pushUndo(oe),K.length>0&&this.internalHistory.clearRedo(),this.changeID=H.getID(),K.length>0&&this.publish({type:Ln.LocalChange,value:{message:H.getMessage()||"",operations:K,actor:T}}),H.hasPresenceChange()&&this.publish({type:Ln.PresenceChanged,value:{clientID:T,presence:this.getPresence(T)}}),u.isEnabled(s.Trivial)&&u.trivial(`after update a local change: ${this.toJSON()}`)}}subscribe(f,g,T,_){if(typeof f=="string"){if(typeof g!="function")throw new Error("Second argument must be a callback function");if(f==="presence"){const oe=g;return this.eventStream.subscribe(Ae=>{Ae.type!==Ln.Initialized&&Ae.type!==Ln.Watched&&Ae.type!==Ln.Unwatched&&Ae.type!==Ln.PresenceChanged||oe(Ae)},T,_)}if(f==="my-presence"){const oe=g;return this.eventStream.subscribe(Ae=>{Ae.type!==Ln.Initialized&&Ae.type!==Ln.Watched&&Ae.type!==Ln.Unwatched&&Ae.type!==Ln.PresenceChanged||Ae.type!==Ln.Initialized&&Ae.value.clientID!==this.changeID.getActorID()||oe(Ae)},T,_)}if(f==="others"){const oe=g;return this.eventStream.subscribe(Ae=>{Ae.type!==Ln.Watched&&Ae.type!==Ln.Unwatched&&Ae.type!==Ln.PresenceChanged||Ae.value.clientID!==this.changeID.getActorID()&&oe(Ae)},T,_)}const H=f,K=g;return this.eventStream.subscribe(oe=>{if(oe.type===Ln.Initialized||oe.type===Ln.Watched||oe.type===Ln.Unwatched||oe.type===Ln.PresenceChanged)return;if(oe.type===Ln.Snapshot){H==="$"&&K(oe);return}const{message:Ae,operations:He,actor:yt}=oe.value,Ft=[];for(const ft of He)this.isSameElementOrChildOf(ft.path,H)&&Ft.push(ft);Ft.length&&K({type:oe.type,value:{message:Ae,operations:Ft,actor:yt}})},T,_)}if(typeof f=="function"){const H=f,K=g,oe=T;return this.eventStream.subscribe(Ae=>{Ae.type===Ln.Initialized||Ae.type===Ln.Watched||Ae.type===Ln.Unwatched||Ae.type===Ln.PresenceChanged||H(Ae)},K,oe)}throw new Error(`"${f}" is not a valid`)}publish(f){this.eventStreamObserver&&this.eventStreamObserver.next(f)}isSameElementOrChildOf(f,g){if(g===f)return!0;const T=f.split(".");return g.split(".").every((H,K)=>H===T[K])}applyChangePack(f){for(f.hasSnapshot()?this.applySnapshot(f.getCheckpoint().getServerSeq(),f.getSnapshot()):f.hasChanges()&&this.applyChanges(f.getChanges());this.localChanges.length&&!(this.localChanges[0].getID().getClientSeq()>f.getCheckpoint().getClientSeq());)this.localChanges.shift();this.checkpoint=this.checkpoint.forward(f.getCheckpoint()),this.garbageCollect(f.getMinSyncedTicket()),f.getIsRemoved()&&this.setStatus(ks.Removed),u.isEnabled(s.Trivial)&&u.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:la(this.presences)})}createChangePack(){const f=Array.from(this.localChanges),g=this.checkpoint.increaseClientSeq(f.length);return zO.create(this.key,g,!1,f)}setActor(f){for(const g of this.localChanges)g.setActor(f);this.changeID=this.changeID.setActor(f)}getKey(){return this.key}setStatus(f){this.status=f}getStatus(){return this.status}getCloneRoot(){if(this.clone)return this.clone.root.getObject()}getRoot(){this.ensureClone();const f=th.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});return e6(f,this.clone.root.getObject())}getOpsForTest(){return this.root.opsForTest}garbageCollect(f){return this.opts.disableGC?0:(this.clone&&this.clone.root.garbageCollect(f),this.root.garbageCollect(f))}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(f,g){const{root:T,presences:_}=Zl.bytesToSnapshot(g);this.root=new n0(T),this.presences=_,this.changeID=this.changeID.syncLamport(f),this.clone=void 0,this.publish({type:Ln.Snapshot,value:g})}applyChanges(f){u.isEnabled(s.Debug)&&u.debug(`trying to apply ${f.length} remote changes.elements:${this.root.getElementMapSize()}, removeds:${this.root.getRemovedElementSetSize()}`),u.isEnabled(s.Trivial)&&u.trivial(f.map(g=>`${g.getID().toTestString()} ${g.toTestString()}`).join(` -`)),this.ensureClone();for(const g of f){g.execute(this.clone.root,this.clone.presences,Ar.Remote);let T;const _=g.getID().getActorID();if(g.hasPresenceChange()&&this.onlineClients.has(_)){const K=g.getPresenceChange();switch(K.type){case Ma.Put:T={type:this.presences.has(_)?Ln.PresenceChanged:Ln.Watched,value:{clientID:_,presence:K.presence}};break;case Ma.Clear:T={type:Ln.Unwatched,value:{clientID:_,presence:this.getPresence(_)}},this.removeOnlineClient(_);break}}const{opInfos:H}=g.execute(this.root,this.presences,Ar.Remote);H.length>0&&this.publish({type:Ln.RemoteChange,value:{actor:_,message:g.getMessage()||"",operations:H}}),T&&this.publish(T),this.changeID=this.changeID.syncLamport(g.getID().getLamport())}u.isEnabled(s.Debug)&&u.debug(`after appling ${f.length} remote changes.elements:${this.root.getElementMapSize()}, removeds:${this.root.getRemovedElementSetSize()}`)}getValueByPath(f){if(!f.startsWith("$"))throw new An(En.InvalidArgument,'path must start with "$"');const g=f.split(".");g.shift();let T=this.getRoot();for(const _ of g)if(T=T[_],T===void 0)return;return T}setOnlineClients(f){this.onlineClients=f}addOnlineClient(f){this.onlineClients.add(f)}removeOnlineClient(f){this.onlineClients.delete(f)}hasPresence(f){return this.presences.has(f)}getMyPresence(){if(this.status!==ks.Attached)return{};const f=this.presences.get(this.changeID.getActorID());return la(f)}getPresence(f){if(!this.onlineClients.has(f))return;const g=this.presences.get(f);return g?la(g):void 0}getPresenceForTest(f){const g=this.presences.get(f);return g?la(g):void 0}getPresences(){const f=[];for(const g of this.onlineClients)this.presences.has(g)&&f.push({clientID:g,presence:la(this.presences.get(g))});return f}getSelfForTest(){return{clientID:this.getChangeID().getActorID(),presence:this.getMyPresence()}}getOthersForTest(){const f=this.getChangeID().getActorID();return this.getPresences().filter(g=>g.clientID!==f).sort((g,T)=>g.clientID>T.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 f=this.internalHistory.popUndo();if(f===void 0)throw new Error("There is no operation to be undone");this.ensureClone();const g=th.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const Ae of f){if(!(Ae instanceof Ur)){new Yp(g,la(this.clone.presences.get(this.changeID.getActorID()))).set(Ae.value,{addToHistory:!0});continue}const He=g.issueTimeTicket();Ae.setExecutedAt(He),g.push(Ae)}const T=g.getChange();T.execute(this.clone.root,this.clone.presences,Ar.UndoRedo);const{opInfos:_,reverseOps:H}=T.execute(this.root,this.presences,Ar.UndoRedo),K=g.getReversePresence();if(K&&H.push({type:"presence",value:K}),H.length>0&&this.internalHistory.pushRedo(H),!T.hasPresenceChange()&&_.length===0)return;this.localChanges.push(T),this.changeID=T.getID();const oe=this.changeID.getActorID();_.length>0&&this.publish({type:Ln.LocalChange,value:{message:T.getMessage()||"",operations:_,actor:oe}}),T.hasPresenceChange()&&this.publish({type:Ln.PresenceChanged,value:{clientID:oe,presence:this.getPresence(oe)}})}redo(){if(this.isUpdating)throw new Error("Redo is not allowed during an update");const f=this.internalHistory.popRedo();if(f===void 0)throw new Error("There is no operation to be redone");this.ensureClone();const g=th.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const Ae of f){if(!(Ae instanceof Ur)){new Yp(g,la(this.clone.presences.get(this.changeID.getActorID()))).set(Ae.value,{addToHistory:!0});continue}const He=g.issueTimeTicket();Ae.setExecutedAt(He),g.push(Ae)}const T=g.getChange();T.execute(this.clone.root,this.clone.presences,Ar.UndoRedo);const{opInfos:_,reverseOps:H}=T.execute(this.root,this.presences,Ar.UndoRedo),K=g.getReversePresence();if(K&&H.push({type:"presence",value:K}),H.length>0&&this.internalHistory.pushUndo(H),!T.hasPresenceChange()&&_.length===0)return;this.localChanges.push(T),this.changeID=T.getID();const oe=this.changeID.getActorID();_.length>0&&this.publish({type:Ln.LocalChange,value:{message:T.getMessage()||"",operations:_,actor:oe}}),T.hasPresenceChange()&&this.publish({type:Ln.PresenceChanged,value:{clientID:oe,presence:this.getPresence(oe)}})}getUndoStackForTest(){return this.internalHistory.getUndoStackForTest()}getRedoStackForTest(){return this.internalHistory.getRedoStackForTest()}}function Aoe(A,f){return g=>async T=>(A&&T.header.set("x-api-key",A),f&&T.header.set("authorization",f),await g(T))}const r6=JSON.parse('{"u2":"yorkie-js-sdk","i8":"0.4.13"}');function _oe(){return A=>async f=>(f.header.set("x-yorkie-user-agent",r6.u2+"/"+r6.i8),await A(f))}var Wu;(function(A){A.PushPull="pushpull",A.PushOnly="pushonly"})(Wu||(Wu={}));var Bc;(function(A){A.Deactivated="deactivated",A.Activated="activated"})(Bc||(Bc={}));var bf;(function(A){A.Connected="connected",A.Disconnected="disconnected"})(bf||(bf={}));var nh;(function(A){A.Synced="synced",A.SyncFailed="sync-failed"})(nh||(nh={}));var Va;(function(A){A.StatusChanged="status-changed",A.DocumentChanged="document-changed",A.StreamConnectionStatusChanged="stream-connection-status-changed",A.DocumentSynced="document-synced"})(Va||(Va={}));const KO={syncLoopDuration:50,retrySyncLoopDelay:1e3,reconnectStreamDelay:1e3};class i6{constructor(f,g){g=g||KO,this.key=g.key?g.key:c(),this.status=Bc.Deactivated,this.attachmentMap=new Map,this.apiKey=g.apiKey||"",this.syncLoopDuration=g.syncLoopDuration||KO.syncLoopDuration,this.reconnectStreamDelay=g.reconnectStreamDelay||KO.reconnectStreamDelay,this.retrySyncLoopDelay=g.retrySyncLoopDelay||KO.retrySyncLoopDelay,this.rpcClient=z(_e.V,Ee({baseUrl:f,interceptors:[Aoe(g.apiKey,g.token),_oe()]})),this.eventStream=h(T=>{this.eventStreamObserver=T})}activate(){return this.isActive()?Promise.resolve():this.rpcClient.activateClient({clientKey:this.key},{headers:{"x-shard-key":this.apiKey}}).then(f=>{this.id=f.clientId,this.status=Bc.Activated,this.runSyncLoop(),this.eventStreamObserver.next({type:Va.StatusChanged,value:this.status}),u.info(`[AC] c:"${this.getKey()}" activated, id:"${this.id}"`)}).catch(f=>{throw u.error(`[AC] c:"${this.getKey()}" err :`,f),f})}deactivate(){if(this.status===Bc.Deactivated)return Promise.resolve();for(const[f]of this.attachmentMap)this.detachInternal(f);return this.rpcClient.deactivateClient({clientKey:this.key,clientId:this.id},{headers:{"x-shard-key":this.apiKey}}).then(()=>{this.status=Bc.Deactivated,this.eventStreamObserver.next({type:Va.StatusChanged,value:this.status}),u.info(`[DC] c"${this.getKey()}" deactivated`)}).catch(f=>{throw u.error(`[DC] c:"${this.getKey()}" err :`,f),f})}attach(f,g={}){var T;if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);if(f.getStatus()!==ks.Detached)throw new An(En.DocumentNotDetached,`${f.getKey()} is not detached`);f.setActor(this.id),f.update((H,K)=>K.set(g.initialPresence||{}));const _=(T=g.isRealtimeSync)!==null&&T!==void 0?T:!0;return this.rpcClient.attachDocument({clientKey:this.key,clientId:this.id,changePack:Zl.toChangePack(f.createChangePack())},{headers:{"x-shard-key":`${this.apiKey}/${f.getKey()}`}}).then(async H=>{const K=Zl.fromChangePack(H.changePack);return f.applyChangePack(K),f.getStatus()===ks.Removed||(f.setStatus(ks.Attached),this.attachmentMap.set(f.getKey(),new voe(this.reconnectStreamDelay,f,H.documentId,_)),_&&await this.runWatchLoop(f.getKey()),u.info(`[AD] c:"${this.getKey()}" attaches d:"${f.getKey()}"`)),f}).catch(H=>{throw u.error(`[AD] c:"${this.getKey()}" err :`,H),H})}detach(f,g={}){var T;if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);const _=this.attachmentMap.get(f.getKey());if(!_)throw new An(En.DocumentNotAttached,`${f.getKey()} is not attached`);return f.update((H,K)=>K.clear()),this.rpcClient.detachDocument({clientKey:this.key,clientId:this.id,documentId:_.docID,changePack:Zl.toChangePack(f.createChangePack()),removeIfNotAttached:(T=g.removeIfNotAttached)!==null&&T!==void 0?T:!1},{headers:{"x-shard-key":`${this.apiKey}/${f.getKey()}`}}).then(H=>{const K=Zl.fromChangePack(H.changePack);return f.applyChangePack(K),f.getStatus()!==ks.Removed&&f.setStatus(ks.Detached),this.detachInternal(f.getKey()),u.info(`[DD] c:"${this.getKey()}" detaches d:"${f.getKey()}"`),f}).catch(H=>{throw u.error(`[DD] c:"${this.getKey()}" err :`,H),H})}pause(f){if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);return this.changeRealtimeSync(f,!1)}resume(f){if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);return this.changeRealtimeSync(f,!0)}pauseRemoteChanges(f){if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);const g=this.attachmentMap.get(f.getKey());if(!g)throw new An(En.DocumentNotAttached,`${f.getKey()} is not attached`);g.changeSyncMode(Wu.PushOnly)}resumeRemoteChanges(f){if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);const g=this.attachmentMap.get(f.getKey());if(!g)throw new An(En.DocumentNotAttached,`${f.getKey()} is not attached`);g.changeSyncMode(Wu.PushPull),g.remoteChangeEventReceived=!0}async changeRealtimeSync(f,g){const T=this.attachmentMap.get(f.getKey());if(!T)throw new An(En.DocumentNotAttached,`${f.getKey()} is not attached`);return T.changeRealtimeSync(g)?g?(T.remoteChangeEventReceived=!0,await this.runWatchLoop(f.getKey()),f):(this.eventStreamObserver.next({type:Va.StreamConnectionStatusChanged,value:bf.Disconnected}),u.debug(`[WD] c:"${this.getKey()}" unwatches`),f):f}sync(f,g=Wu.PushPull){if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);const T=[];if(f){const _=this.attachmentMap.get(f.getKey());if(!_)throw new An(En.DocumentNotAttached,`${f.getKey()} is not attached`);T.push(this.syncInternal(_,g))}else this.attachmentMap.forEach(_=>{T.push(this.syncInternal(_,_.syncMode))});return Promise.all(T).catch(_=>{throw this.eventStreamObserver.next({type:Va.DocumentSynced,value:nh.SyncFailed}),_})}remove(f){if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);const g=this.attachmentMap.get(f.getKey());if(!g)throw new An(En.DocumentNotAttached,`${f.getKey()} is not attached`);f.setActor(this.id);const T=Zl.toChangePack(f.createChangePack());return T.isRemoved=!0,this.rpcClient.removeDocument({clientKey:this.key,clientId:this.id,documentId:g.docID,changePack:T},{headers:{"x-shard-key":`${this.apiKey}/${f.getKey()}`}}).then(_=>{const H=Zl.fromChangePack(_.changePack);f.applyChangePack(H),this.detachInternal(f.getKey()),u.info(`[RD] c:"${this.getKey()}" removes d:"${f.getKey()}"`)}).catch(_=>{throw u.error(`[RD] c:"${this.getKey()}" err :`,_),_})}subscribe(f,g,T){return this.eventStream.subscribe(f,g,T)}getID(){return this.id}getKey(){return this.key}isActive(){return this.status===Bc.Activated}getStatus(){return this.status}runSyncLoop(){const f=()=>{if(!this.isActive()){u.debug(`[SL] c:"${this.getKey()}" exit sync loop`);return}const g=[];for(const[,T]of this.attachmentMap)T.needRealtimeSync()&&(T.remoteChangeEventReceived=!1,g.push(this.syncInternal(T,T.syncMode)));Promise.all(g).then(()=>setTimeout(f,this.syncLoopDuration)).catch(T=>{u.error(`[SL] c:"${this.getKey()}" sync failed:`,T),this.eventStreamObserver.next({type:Va.DocumentSynced,value:nh.SyncFailed}),setTimeout(f,this.retrySyncLoopDelay)})};u.debug(`[SL] c:"${this.getKey()}" run sync loop`),f()}async runWatchLoop(f){const g=this.attachmentMap.get(f);if(!g)throw new An(En.DocumentNotAttached,`${f} is not attached`);return g.runWatchLoop(T=>{if(!this.isActive())return Promise.reject(new An(En.ClientNotActive,`${this.key} is not active`));const _=new AbortController,H=this.rpcClient.watchDocument({clientKey:this.key,clientId:this.id,documentKey:f,documentId:g.docID},{headers:{"x-shard-key":`${this.apiKey}/${f}`},signal:_.signal});return this.eventStreamObserver.next({type:Va.StreamConnectionStatusChanged,value:bf.Connected}),u.info(`[WD] c:"${this.getKey()}" watches d:"${f}"`),new Promise((K,oe)=>{(async()=>{try{for await(const He of H)this.handleWatchDocumentsResponse(g,He),He.body.case==="initialization"&&K([H,_])}catch(He){this.eventStreamObserver.next({type:Va.StreamConnectionStatusChanged,value:bf.Disconnected}),u.debug(`[WD] c:"${this.getKey()}" unwatches`),T(),oe(He)}})()})})}handleWatchDocumentsResponse(f,g){const T=f.doc.getKey();if(g.body.case==="initialization"){const _=g.body.value.clientIds,H=new Set;for(const K of _)H.add(K);f.doc.setOnlineClients(H),f.doc.publish({type:Ln.Initialized,value:f.doc.getPresences()});return}else if(g.body.case==="event"){const _=g.body.value,H=_.type,K=_.publisher;switch(H){case pe.DocEventType.DOCUMENT_CHANGED:f.remoteChangeEventReceived=!0,this.eventStreamObserver.next({type:Va.DocumentChanged,value:[T]});break;case pe.DocEventType.DOCUMENT_WATCHED:f.doc.addOnlineClient(K),f.doc.hasPresence(K)&&f.doc.publish({type:Ln.Watched,value:{clientID:K,presence:f.doc.getPresence(K)}});break;case pe.DocEventType.DOCUMENT_UNWATCHED:{const oe=f.doc.getPresence(K);f.doc.removeOnlineClient(K),oe&&f.doc.publish({type:Ln.Unwatched,value:{clientID:K,presence:oe}});break}}}}detachInternal(f){const g=this.attachmentMap.get(f);g&&(g.cancelWatchStream(),u.debug(`[WD] c:"${this.getKey()}" unwatches`),this.eventStreamObserver.next({type:Va.StreamConnectionStatusChanged,value:bf.Disconnected}),this.attachmentMap.delete(f))}syncInternal(f,g){const{doc:T,docID:_}=f,H=T.createChangePack();return this.rpcClient.pushPullChanges({clientKey:this.key,clientId:this.id,documentId:_,changePack:Zl.toChangePack(H),pushOnly:g===Wu.PushOnly},{headers:{"x-shard-key":`${this.apiKey}/${T.getKey()}`}}).then(K=>{const oe=Zl.fromChangePack(K.changePack);if(oe.hasChanges()&&g===Wu.PushOnly)return T;T.applyChangePack(oe),this.eventStreamObserver.next({type:Va.DocumentSynced,value:nh.Synced}),T.getStatus()===ks.Removed&&this.detachInternal(T.getKey());const Ae=T.getKey(),He=oe.getChangeSize();return u.info(`[PP] c:"${this.getKey()}" sync d:"${Ae}", push:${H.getChangeSize()} pull:${He} cp:${oe.getCheckpoint().toTestString()}`),T}).catch(K=>{throw u.error(`[PP] c:"${this.getKey()}" err :`,K),K})}}const Roe={Client:i6,Document:n6,Primitive:_r,Text:GO,Counter:qO,Tree:ZO,IntType:pi.IntegerCnt,LongType:pi.LongCnt}})(),a})())})(dJ);var sI=dJ.exports;class a3e{constructor(t,n){qo(this,"doc");qo(this,"client");this.doc=t,this.client=n}}const c3=qt.define({combine(e){return e[e.length-1]}}),fj=Fl.define();class s3e{constructor(t){qo(this,"view");qo(this,"conf");qo(this,"_doc");qo(this,"_observer");qo(this,"_unsubscribe");this.view=t,this.conf=t.state.facet(c3),this._observer=n=>{if(n.type!=="remote-change")return;const{operations:r}=n.value;r.forEach(i=>{if(i.type==="edit"){const o=[{from:Math.max(0,i.from),to:Math.max(0,i.to),insert:i.value.content}];t.dispatch({changes:o,annotations:[fj.of(this.conf)]})}})},this._doc=this.conf.doc,this._unsubscribe=this._doc.subscribe("$.content",this._observer)}update(t){!t.docChanged||t.transactions.length>0&&t.transactions[0].annotation(fj)===this.conf||this._doc.update((n,r)=>{t.changes.iterChanges((i,o,a,s,l)=>{n.content||(n.content=new sI.Text);const u=l.sliceString(0,l.length,` -`),c=n.content.edit(i,o,u);c&&r.set({selection:n.content.indexRangeToPosRange(c)})})})}destroy(){this._unsubscribe()}}const l3e=Jr.fromClass(s3e);class u3e{constructor(t,n){this.left=t,this.right=n}}const rE=(e,t)=>new u3e(e,t),c3e=(e,t)=>e.forEach(n=>t(n.left,n.right)),$u=typeof document<"u"?document:{},d3e=e=>$u.createElement(e),f3e=()=>$u.createDocumentFragment(),p3e=e=>$u.createTextNode(e);typeof DOMParser<"u"&&new DOMParser;const h3e=(e,t)=>(c3e(t,(n,r)=>{r===!1?e.removeAttribute(n):r===!0?e.setAttribute(n,""):e.setAttribute(n,r)}),e),m3e=e=>{const t=f3e();for(let n=0;n(fJ(e,m3e(t)),e),zA=(e,t=[],n=[])=>g3e(h3e(d3e(e),t),n),iE=p3e,fJ=(e,t)=>e.appendChild(t);$u.ELEMENT_NODE;$u.TEXT_NODE;$u.CDATA_SECTION_NODE;$u.COMMENT_NODE;$u.DOCUMENT_NODE;$u.DOCUMENT_TYPE_NODE;$u.DOCUMENT_FRAGMENT_NODE;const b3e=Ht.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"}}),y3e=Fl.define();class O3e extends Lu{constructor(n,r){super();qo(this,"color");qo(this,"name");this.color=n,this.name=r}toDOM(){return zA("span",[rE("class","cm-ySelectionCaret"),rE("style",`background-color: ${this.color}; border-color: ${this.color}`)],[iE("⁠"),zA("div",[rE("class","cm-ySelectionCaretDot")]),iE("⁠"),zA("div",[rE("class","cm-ySelectionInfo")],[iE(this.name)]),iE("⁠")])}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 v3e{constructor(t){qo(this,"conf");qo(this,"decorations");qo(this,"unsubscribe");this.conf=t.state.facet(c3),this.unsubscribe=this.conf.doc.subscribe("others",n=>{const r=[];n.type==="presence-changed"&&(this.conf.doc.getPresences().forEach(i=>{if(i.clientID===this.conf.client.getID()||i.presence.selection==null)return;const o=this.conf.doc.getRoot().content.posRangeToIndexRange(i.presence.selection),a=i.presence.color,s=i.presence.name,l=Math.min(o[0],o[1]),u=Math.max(o[0],o[1]),c=t.state.doc.lineAt(l),d=t.state.doc.lineAt(u);if(c.number===d.number)r.push({from:l,to:u,value:ln.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})});else{r.push({from:l,to:c.from+c.length,value:ln.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})}),r.push({from:d.from,to:u,value:ln.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})});for(let p=c.number+1;p0?-1:1,block:!1,widget:new O3e(a,s)})})}),this.decorations=ln.set(r,!0),r.length>0&&t.dispatch({annotations:[y3e.of([])]}))}),this.decorations=Xn.of([])}destroy(){this.unsubscribe()}update(t){this.conf.doc.update((n,r)=>{const o=t.view.hasFocus&&t.view.dom.ownerDocument.hasFocus()?t.state.selection.main:null;if(o&&n.content){const a=n.content.indexRangeToPosRange([o.anchor,o.head]);r.set({selection:a})}})}}const E3e=Jr.fromClass(v3e,{decorations:e=>e.decorations});function S3e(e,t){const n=new a3e(e,t),r=[c3.of(n),l3e];return t&&r.push(b3e,E3e),r}function oE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const T3e=e=>{const t=window.document.createElement("span");return t.classList.add(`codemirror-toolbar__${e.type}`),t},w3e=e=>{const t=window.document.createElement("button");return t.classList.add("codemirror-toolbar__item"),t.dataset.item=e.key,t.title=e.label,t.innerHTML=`${e.icon||""}`,t},k3e=e=>{const t=window.document.createElement("div");t.classList.add("codemirror-toolbar");const n=window.document.createDocumentFragment();return n.append(...e.items.map(r=>"type"in r?T3e(r):w3e(r))),t.appendChild(n),t};class x3e{handleClick(t){const n=t.target;if(n&&n.tagName==="BUTTON"){const r=n.dataset.item;if(r){const i=this.handlers[r];if(i){t.preventDefault(),t.stopPropagation(),i(this.view);return}}}this.view.focus()}destroy(){this.element.remove()}constructor(t,n){oE(this,"view",void 0),oE(this,"element",void 0),oE(this,"config",void 0),oE(this,"handlers",void 0),this.view=t,this.handlers={},this.config={...n,items:n.items.map((i,o)=>{var s;if("type"in i)return{...i};const a=i.key||i.command.displayName||((s=i.command)==null?void 0:s.name)||`cmd_${o}`;return this.handlers[a]=i.command,{...i,key:a}})};const r=this.element=k3e(this.config);r.addEventListener("click",this.handleClick.bind(this)),this.view.dom.prepend(r)}}const C3e=e=>Jr.define(t=>new x3e(t,e)),A3e=Ht.baseTheme({".codemirror-toolbar":{display:"flex",padding:"4px 5px",backgroundColor:"rgb(245, 245, 245)",borderBottom:"1px solid rgb(221, 221, 221)"},".codemirror-toolbar__icon":{display:"inline-block",height:"1em",width:"1em",overflow:"visible"},".codemirror-toolbar__icon svg":{overflow:"visible",boxSizing:"content-box",height:"1em",width:"1em",verticalAlign:"-.125em"},".codemirror-toolbar__item":{display:"inline-flex",alignItems:"center",justifyContent:"center",background:"transparent",border:"none",outline:"none",cursor:"pointer",borderRadius:"2px",height:"20px",width:"20px",transition:"all .3s"},".codemirror-toolbar__item:hover":{color:"#1EA7FD",backgroundColor:"rgba(30,167,253,0.12)"},".codemirror-toolbar__item > *":{pointerEvents:"none"},".codemirror-toolbar__split":{display:"inline-block",width:"1px",height:"20px",margin:"0 6px",backgroundColor:"rgb(221, 221, 221)"},".codemirror-toolbar__space":{display:"inline-block",flex:1}}),_3e=e=>{const t=e.state.selection.main;if(t.from>=2){const n=e.state.sliceDoc(t.from-2,t.from),r=e.state.sliceDoc(t.to,t.to+2);if(n==="**"&&r==="**")return e.focus(),!1}return e.dispatch(e.state.changeByRange(n=>({changes:[{from:n.from,insert:"**"},{from:n.to,insert:"**"}],range:tt.range(n.from+2,n.to+2)}))),e.focus(),!0},R3e=e=>{const t=e.state.selection.main;if(t.from>=1){const n=e.state.sliceDoc(t.from-1,t.from),r=e.state.sliceDoc(t.to,t.to+1);if(n==="*"&&r==="*"&&(t.from<2||e.state.sliceDoc(t.from-1,t.from)!=="*"||e.state.sliceDoc(t.to,t.to+1)!=="*"||t.from>=3&&e.state.sliceDoc(t.from-3,t.from)==="***"&&e.state.sliceDoc(t.to,t.to+3)==="***"))return e.focus(),!1}return e.dispatch(e.state.changeByRange(n=>({changes:[{from:n.from,insert:"*"},{from:n.to,insert:"*"}],range:tt.range(n.from+1,n.to+1)}))),e.focus(),!0},I3e=e=>{const t=e.state.selection.main;if(t.from>=2){const n=e.state.sliceDoc(t.from-2,t.from),r=e.state.sliceDoc(t.to,t.to+2);if(n==="~~"&&r==="~~")return e.focus(),!1}return e.dispatch(e.state.changeByRange(n=>({changes:[{from:n.from,insert:"~~"},{from:n.to,insert:"~~"}],range:tt.range(n.from+2,n.to+2)}))),e.focus(),!0},D3e=e=>{const t=e.state.selection.main;if(t.from>=3){const n=e.state.sliceDoc(t.from-3,t.from),r=e.state.sliceDoc(t.to,t.to+4);if(n===""&&r==="")return e.focus(),!1}return e.dispatch(e.state.changeByRange(n=>({changes:[{from:n.from,insert:""},{from:n.to,insert:""}],range:tt.range(n.from+3,n.to+3)}))),e.focus(),!0},N3e=e=>{const{state:t}=e,{doc:n}=t;return e.dispatch(e.state.changeByRange(r=>{const i=n.lineAt(r.from),a=n.slice(r.from,r.to).lines,s=[];let l=r.from,u=r.to-r.from;return new Array(a).fill(0).forEach((c,d)=>{const p=n.line(i.number+d);p.text.startsWith("> ")||(s.push({from:p.from,insert:"> "}),d===0?l=l+2:u+=2)}),{changes:s,range:tt.range(l,l+u)}})),e.focus(),!0},P3e=e=>{const{state:t}=e,{doc:n}=t;return e.dispatch(t.changeByRange(r=>{const{from:i,to:o}=r,a=n.sliceString(i,o),s=`[${a}]()`,l=i+(a.length?3+a.length:1);return{changes:[{from:i,to:o,insert:s}],range:tt.range(l,l)}})),e.focus(),!0},L3e=e=>{const{state:t}=e,{doc:n}=t;return e.dispatch(t.changeByRange(r=>{const{from:i,to:o}=r,a=n.sliceString(i,o),s=`![${a}]()`,l=i+(a.length?3+a.length:2);return{changes:[{from:i,to:o,insert:s}],range:tt.range(l,l)}})),e.focus(),!0},Mg=e=>t=>{const n=t.state,r="#".repeat(e)+" ";return t.dispatch(n.changeByRange(i=>{const o=n.doc.lineAt(i.from),a=o.text.replace(/^((#+) )?/,r),s=a.length-o.length;return{changes:{from:o.from,to:o.to,insert:a},range:tt.range(i.anchor+s,i.head+s)}})),t.focus(),!0},M3e=e=>{if(e=e&&e.trimStart(),!e)return;if(e.startsWith("- "))return e.startsWith("- [ ] ")||e.startsWith("- [x] ")?["todo"]:["ul"];const t=e.match(/^(\d+)\. /);if(t)return["ol",Number.parseInt(t[1],10)]},d3=e=>t=>{const{state:n}=t,{doc:r}=n;let i=1;return t.dispatch(t.state.changeByRange(o=>{const a=r.lineAt(o.from),l=r.slice(o.from,o.to).lines,u=[];let c=o.from,d=o.to-o.from;return new Array(l).fill(0).forEach((p,h)=>{const m=r.line(a.number+h),b=M3e(m.text);if(b&&b[0]===e){b[0]==="ol"&&b[1]&&(i=b[1]);return}const O=m.text.replace(RegExp("^((? *)(-( \\[[x ]])?|\\d+\\.) )?"),(...v)=>{const S=v[v.length-1],{space:k=""}=S;let C="- ";return e==="ol"?(C=`${i}. `,i++):e==="todo"&&(C="- [ ] "),k+C}),y=O.length-m.length;u.push({from:m.from,to:m.to,insert:O}),h===0?c=c+y:d=d+y}),{changes:u,range:tt.range(c,c+d)}})),t.focus(),!0},$3e=Mg(1),F3e=Mg(2),B3e=Mg(3),U3e=Mg(4),j3e=Mg(5),z3e=Mg(6),V3e=d3("ul"),H3e=d3("ol"),W3e=d3("todo"),Q3e={label:"Bold",icon:'',command:_3e},Y3e={label:"Italic",icon:'',command:R3e},G3e={label:"Strike",icon:'',command:I3e},q3e={label:"Underline",icon:'',command:D3e},Z3e={label:"H1",icon:'',command:$3e},X3e={label:"H2",icon:'',command:F3e},K3e={label:"H3",icon:'',command:B3e},J3e={label:"H4",icon:'',command:U3e},eLe={label:"H5",icon:'',command:j3e},tLe={label:"H6",icon:'',command:z3e},nLe={label:"Block Quote",icon:'',command:N3e},rLe={label:"Unordered List",icon:'',command:V3e},iLe={label:"Ordered List",icon:'',command:H3e},oLe={label:"Todo List",icon:'',command:W3e},aLe={label:"Link",icon:'',command:P3e},sLe={label:"Image",icon:'',command:L3e},VA={type:"split"},lLe={type:"space"},uLe={label:"Full Screen",key:"fullScreen",icon:'',command:e=>(e.dom.ownerDocument.fullscreenElement?e.dom.ownerDocument.exitFullscreen():e.dom.requestFullscreen(),!0)},cLe=[Q3e,Y3e,G3e,q3e,VA,Z3e,X3e,K3e,J3e,eLe,tLe,VA,nLe,rLe,iLe,oLe,VA,aLe,sLe,lLe,uLe],dLe=e=>[C3e(e),A3e];var pJ=e=>{var{theme:t,settings:n={},styles:r=[]}=e,i={".cm-gutters":{}},o={};n.background&&(o.backgroundColor=n.background),n.backgroundImage&&(o.backgroundImage=n.backgroundImage),n.foreground&&(o.color=n.foreground),(n.background||n.foreground)&&(i["&"]=o),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 a={};n.gutterActiveForeground&&(a.color=n.gutterActiveForeground),n.lineHighlight&&(i[".cm-activeLine"]={backgroundColor:n.lineHighlight},a.backgroundColor=n.lineHighlight),i[".cm-activeLineGutter"]=a,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 s=Ht.theme(i,{dark:t==="dark"}),l=uO.define(r),u=[s,WZ(l)];return u},fLe={background:"#fff",foreground:"#3D3D3D",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#AFAFAF",lineHighlight:"#d5e6ff69"};function pLe(e){var{theme:t="light",settings:n={},styles:r=[]}=e||{};return pJ({theme:t,settings:L({},fLe,n),styles:[{tag:[he.comment,he.quote],color:"#707F8D"},{tag:[he.typeName,he.typeOperator],color:"#aa0d91"},{tag:[he.keyword],color:"#aa0d91",fontWeight:"bold"},{tag:[he.string,he.meta],color:"#D23423"},{tag:[he.name],color:"#032f62"},{tag:[he.typeName],color:"#522BB2"},{tag:[he.variableName],color:"#23575C"},{tag:[he.definition(he.variableName)],color:"#327A9E"},{tag:[he.regexp,he.link],color:"#0e0eff"},...r]})}var hLe=pLe(),mLe={background:"#292A30",foreground:"#CECFD0",caret:"#fff",selection:"#727377",selectionMatch:"#727377",lineHighlight:"#ffffff0f"},gLe=e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return pJ({theme:t,settings:L({},mLe,n),styles:[{tag:[he.comment,he.quote],color:"#7F8C98"},{tag:[he.keyword],color:"#FF7AB2",fontWeight:"bold"},{tag:[he.string,he.meta],color:"#FF8170"},{tag:[he.typeName],color:"#DABAFF"},{tag:[he.definition(he.variableName)],color:"#6BDFFF"},{tag:[he.name],color:"#6BAA9F"},{tag:[he.variableName],color:"#ACF2E4"},{tag:[he.regexp,he.link],color:"#FF8170"},...r]})},bLe=gLe();function pj(){const e=vP(),[t,n]=I.useState(),r=_c(Vk),i=I.useCallback(o=>{o&&n(o)},[]);return I.useEffect(()=>{var s;let o;if(!t||!r.doc||!r.client)return;const a=qn.create({doc:((s=r.doc.getRoot().content)==null?void 0:s.toString())??"",extensions:[uDe,r3e(),S3e(r.doc,r.client),dLe({items:cLe}),e=="light"?hLe:bLe,Ht.theme({"&":{width:"100%"}}),Ht.lineWrapping,Rg.of([_Re])]});return o=new Ht({state:a,parent:t}),()=>{o==null||o.destroy()}},[r.client,r.doc,t,e]),P.jsx("div",{ref:i,style:{display:"flex",alignItems:"stretch",height:"100%"}})}var lI={exports:{}};(function(e,t){(function(n,r){{var i=r();e&&e.exports&&(t=e.exports=i),t.randomColor=i}})(wS,function(){var n=null,r={};y();var i=[],o=function(E){if(E=E||{},E.seed!==void 0&&E.seed!==null&&E.seed===parseInt(E.seed,10))n=E.seed;else if(typeof E.seed=="string")n=C(E.seed);else{if(E.seed!==void 0&&E.seed!==null)throw new TypeError("The seed value must be an integer or string");n=null}var $,N,R;if(E.count!==null&&E.count!==void 0){for(var B=E.count,U=[],V=0;VU.length;){var z=o(E);n!==null&&(E.seed=n),U.push(z)}return E.count=B,U}return $=a(E),N=s($,E),R=l($,N,E),u([$,N,R],E)};function a(E){if(i.length>0){var $=w(E.hue),N=m($),R=($[1]-$[0])/i.length,B=parseInt((N-$[0])/R);i[B]===!0?B=(B+2)%i.length:i[B]=!0;var U=($[0]+B*R)%359,V=($[0]+(B+1)*R)%359;return $=[U,V],N=m($),N<0&&(N=360+N),N}else{var $=d(E.hue);return N=m($),N<0&&(N=360+N),N}}function s(E,$){if($.hue==="monochrome")return 0;if($.luminosity==="random")return m([0,100]);var N=p(E),R=N[0],B=N[1];switch($.luminosity){case"bright":R=55;break;case"dark":R=B-10;break;case"light":B=55;break}return m([R,B])}function l(E,$,N){var R=c(E,$),B=100;switch(N.luminosity){case"dark":B=R+20;break;case"light":R=(B+R)/2;break;case"random":R=0,B=100;break}return m([R,B])}function u(E,$){switch($.format){case"hsvArray":return E;case"hslArray":return k(E);case"hsl":var N=k(E);return"hsl("+N[0]+", "+N[1]+"%, "+N[2]+"%)";case"hsla":var R=k(E),V=$.alpha||Math.random();return"hsla("+R[0]+", "+R[1]+"%, "+R[2]+"%, "+V+")";case"rgbArray":return v(E);case"rgb":var B=v(E);return"rgb("+B.join(", ")+")";case"rgba":var U=v(E),V=$.alpha||Math.random();return"rgba("+U.join(", ")+", "+V+")";default:return b(E)}}function c(E,$){for(var N=h(E).lowerBounds,R=0;R=B&&$<=V){var W=(z-U)/(V-B),X=U-W*B;return W*$+X}}return 0}function d(E){if(typeof parseInt(E)=="number"){var $=parseInt(E);if($<360&&$>0)return[$,$]}if(typeof E=="string"){if(r[E]){var N=r[E];if(N.hueRange)return N.hueRange}else if(E.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var R=S(E)[0];return[R,R]}}return[0,360]}function p(E){return h(E).saturationRange}function h(E){E>=334&&E<=360&&(E-=360);for(var $ in r){var N=r[$];if(N.hueRange&&E>=N.hueRange[0]&&E<=N.hueRange[1])return r[$]}return"Color not found"}function m(E){if(n===null){var $=.618033988749895,N=Math.random();return N+=$,N%=1,Math.floor(E[0]+N*(E[1]+1-E[0]))}else{var R=E[1]||1,B=E[0]||0;n=(n*9301+49297)%233280;var U=n/233280;return Math.floor(B+U*(R-B))}}function b(E){var $=v(E);function N(B){var U=B.toString(16);return U.length==1?"0"+U:U}var R="#"+N($[0])+N($[1])+N($[2]);return R}function O(E,$,N){var R=N[0][0],B=N[N.length-1][0],U=N[N.length-1][1],V=N[0][1];r[E]={hueRange:$,lowerBounds:N,saturationRange:[R,B],brightnessRange:[U,V]}}function y(){O("monochrome",null,[[0,0],[100,0]]),O("red",[-26,18],[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]),O("orange",[18,46],[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]),O("yellow",[46,62],[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]),O("green",[62,178],[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]),O("blue",[178,257],[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]),O("purple",[257,282],[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]),O("pink",[282,334],[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]])}function v(E){var $=E[0];$===0&&($=1),$===360&&($=359),$=$/360;var N=E[1]/100,R=E[2]/100,B=Math.floor($*6),U=$*6-B,V=R*(1-N),z=R*(1-U*N),W=R*(1-(1-U)*N),X=256,q=256,Y=256;switch(B){case 0:X=R,q=W,Y=V;break;case 1:X=z,q=R,Y=V;break;case 2:X=V,q=R,Y=W;break;case 3:X=V,q=z,Y=R;break;case 4:X=W,q=V,Y=R;break;case 5:X=R,q=V,Y=z;break}var Z=[Math.floor(X*255),Math.floor(q*255),Math.floor(Y*255)];return Z}function S(E){E=E.replace(/^#/,""),E=E.length===3?E.replace(/(.)/g,"$1$1"):E;var $=parseInt(E.substr(0,2),16)/255,N=parseInt(E.substr(2,2),16)/255,R=parseInt(E.substr(4,2),16)/255,B=Math.max($,N,R),U=B-Math.min($,N,R),V=B?U/B:0;switch(B){case $:return[60*((N-R)/U%6)||0,V,B];case N:return[60*((R-$)/U+2)||0,V,B];case R:return[60*(($-N)/U+4)||0,V,B]}}function k(E){var $=E[0],N=E[1]/100,R=E[2]/100,B=(2-N)*R;return[$,Math.round(N*R/(B<1?B:2-B)*1e4)/100,B/2*100]}function C(E){for(var $=0,N=0;N!==E.length&&!($>=Number.MAX_SAFE_INTEGER);N++)$+=E.charCodeAt(N);return $}function w(E){if(isNaN(E)){if(typeof E=="string"){if(r[E]){var N=r[E];if(N.hueRange)return N.hueRange}else if(E.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var R=S(E)[0];return h(R).hueRange}}}else{var $=parseInt(E);if($<360&&$>0)return h(E).hueRange}return[0,360]}return o})})(lI,lI.exports);var yLe=lI.exports;const OLe=Jd(yLe);var hJ={exports:{}},vLe={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]},mJ={exports:{}},ELe=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")},SLe=ELe,TLe=Array.prototype.concat,wLe=Array.prototype.slice,hj=mJ.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+")"};us.to.keyword=function(e){return bJ[e.slice(0,3)]};function Ld(e,t,n){return Math.min(Math.max(t,e),n)}function aE(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var xLe=hJ.exports,CLe={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 r1=CLe,yJ={};for(const e of Object.keys(r1))yJ[r1[e]]=e;const nn={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 OJ=nn;for(const e of Object.keys(nn)){if(!("channels"in nn[e]))throw new Error("missing channels property: "+e);if(!("labels"in nn[e]))throw new Error("missing channel labels property: "+e);if(nn[e].labels.length!==nn[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=nn[e];delete nn[e].channels,delete nn[e].labels,Object.defineProperty(nn[e],"channels",{value:t}),Object.defineProperty(nn[e],"labels",{value:n})}nn.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=o-i;let s,l;o===i?s=0:t===o?s=(n-r)/a:n===o?s=2+(r-t)/a:r===o&&(s=4+(t-n)/a),s=Math.min(s*60,360),s<0&&(s+=360);const u=(i+o)/2;return o===i?l=0:u<=.5?l=a/(o+i):l=a/(2-o-i),[s,l*100,u*100]};nn.rgb.hsv=function(e){let t,n,r,i,o;const a=e[0]/255,s=e[1]/255,l=e[2]/255,u=Math.max(a,s,l),c=u-Math.min(a,s,l),d=function(p){return(u-p)/6/c+1/2};return c===0?(i=0,o=0):(o=c/u,t=d(a),n=d(s),r=d(l),a===u?i=r-n:s===u?i=1/3+t-r:l===u&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[i*360,o*100,u*100]};nn.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const i=nn.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,o*100,r*100]};nn.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),o=(1-t-i)/(1-i)||0,a=(1-n-i)/(1-i)||0,s=(1-r-i)/(1-i)||0;return[o*100,a*100,s*100,i*100]};function ALe(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}nn.rgb.keyword=function(e){const t=yJ[e];if(t)return t;let n=1/0,r;for(const i of Object.keys(r1)){const o=r1[i],a=ALe(e,o);a.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,o=t*.2126+n*.7152+r*.0722,a=t*.0193+n*.1192+r*.9505;return[i*100,o*100,a*100]};nn.rgb.lab=function(e){const t=nn.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 o=116*r-16,a=500*(n-r),s=200*(r-i);return[o,a,s]};nn.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let i,o,a;if(n===0)return a=r*255,[a,a,a];r<.5?i=r*(1+n):i=r+n-r*n;const s=2*r-i,l=[0,0,0];for(let u=0;u<3;u++)o=t+1/3*-(u-1),o<0&&o++,o>1&&o--,6*o<1?a=s+(i-s)*6*o:2*o<1?a=i:3*o<2?a=s+(i-s)*(2/3-o)*6:a=s,l[u]=a*255;return l};nn.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,i=n;const o=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=o<=1?o:2-o;const a=(r+n)/2,s=r===0?2*i/(o+i):2*n/(r+n);return[t,s*100,a*100]};nn.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const i=Math.floor(t)%6,o=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*o),l=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}};nn.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01);let o,a;a=(2-n)*r;const s=(2-n)*i;return o=n*i,o/=s<=1?s:2-s,o=o||0,a/=2,[t,o*100,a*100]};nn.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const i=n+r;let o;i>1&&(n/=i,r/=i);const a=Math.floor(6*t),s=1-r;o=6*t-a,a&1&&(o=1-o);const l=n+o*(s-n);let u,c,d;switch(a){default:case 6:case 0:u=s,c=l,d=n;break;case 1:u=l,c=s,d=n;break;case 2:u=n,c=s,d=l;break;case 3:u=n,c=l,d=s;break;case 4:u=l,c=n,d=s;break;case 5:u=s,c=n,d=l;break}return[u*255,c*255,d*255]};nn.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100,o=1-Math.min(1,t*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),s=1-Math.min(1,r*(1-i)+i);return[o*255,a*255,s*255]};nn.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let i,o,a;return i=t*3.2406+n*-1.5372+r*-.4986,o=t*-.9689+n*1.8758+r*.0415,a=t*.0557+n*-.204+r*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),[i*255,o*255,a*255]};nn.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,o=500*(t-n),a=200*(n-r);return[i,o,a]};nn.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let i,o,a;o=(t+16)/116,i=n/500+o,a=o-r/200;const s=o**3,l=i**3,u=a**3;return o=s>.008856?s:(o-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,a=u>.008856?u:(a-16/116)/7.787,i*=95.047,o*=100,a*=108.883,[i,o,a]};nn.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 a=Math.sqrt(n*n+r*r);return[t,a,i]};nn.lch.lab=function(e){const t=e[0],n=e[1],i=e[2]/360*2*Math.PI,o=n*Math.cos(i),a=n*Math.sin(i);return[t,o,a]};nn.rgb.ansi16=function(e,t=null){const[n,r,i]=e;let o=t===null?nn.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),o===0)return 30;let a=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return o===2&&(a+=60),a};nn.hsv.ansi16=function(e){return nn.rgb.ansi16(nn.hsv.rgb(e),e[2])};nn.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)};nn.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,o=(t>>2&1)*n*255;return[r,i,o]};nn.ansi256.rgb=function(e){if(e>=232){const o=(e-232)*10+8;return[o,o,o]}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]};nn.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};nn.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(s=>s+s).join(""));const r=parseInt(n,16),i=r>>16&255,o=r>>8&255,a=r&255;return[i,o,a]};nn.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),o=Math.min(Math.min(t,n),r),a=i-o;let s,l;return a<1?s=o/(1-a):s=0,a<=0?l=0:i===t?l=(n-r)/a%6:i===n?l=2+(r-t)/a:l=4+(t-n)/a,l/=6,l%=1,[l*360,a*100,s*100]};nn.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]};nn.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]};nn.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],o=t%1*6,a=o%1,s=1-a;let l=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return l=(1-n)*r,[(n*i[0]+l)*255,(n*i[1]+l)*255,(n*i[2]+l)*255]};nn.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]};nn.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]};nn.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]};nn.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,i=r-t;let o=0;return i<1&&(o=(r-i)/(1-i)),[e[0],i*100,o*100]};nn.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};nn.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};nn.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};nn.gray.hsl=function(e){return[0,0,e[0]]};nn.gray.hsv=nn.gray.hsl;nn.gray.hwb=function(e){return[0,100,e[0]]};nn.gray.cmyk=function(e){return[0,0,0,e[0]]};nn.gray.lab=function(e){return[e[0],0,0]};nn.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};nn.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const VT=OJ;function _Le(){const e={},t=Object.keys(VT);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function $Le(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 o=i.length,a=0;a{xh[e]={},Object.defineProperty(xh[e],"channels",{value:uI[e].channels}),Object.defineProperty(xh[e],"labels",{value:uI[e].labels});const t=PLe(e);Object.keys(t).forEach(r=>{const i=t[r];xh[e][r]=$Le(i),xh[e][r].raw=MLe(i)})});var FLe=xh;const Ch=xLe,os=FLe,vJ=["keyword","gray","hex"],cI={};for(const e of Object.keys(os))cI[[...os[e].labels].sort().join("")]=e;const HT={};function Gi(e,t){if(!(this instanceof Gi))return new Gi(e,t);if(t&&t in vJ&&(t=null),t&&!(t in os))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 Gi)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const i=Ch.get(e);if(i===null)throw new Error("Unable to parse color from string: "+e);this.model=i.model,r=os[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=os[this.model].channels;const i=Array.prototype.slice.call(e,0,r);this.color=dI(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 o=i.sort().join("");if(!(o in cI))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=cI[o];const{labels:a}=os[this.model],s=[];for(n=0;n(e%360+360)%360),saturationl:ni("hsl",1,Ai(100)),lightness:ni("hsl",2,Ai(100)),saturationv:ni("hsv",1,Ai(100)),value:ni("hsv",2,Ai(100)),chroma:ni("hcg",1,Ai(100)),gray:ni("hcg",2,Ai(100)),white:ni("hwb",1,Ai(100)),wblack:ni("hwb",2,Ai(100)),cyan:ni("cmyk",0,Ai(100)),magenta:ni("cmyk",1,Ai(100)),yellow:ni("cmyk",2,Ai(100)),black:ni("cmyk",3,Ai(100)),x:ni("xyz",0,Ai(95.047)),y:ni("xyz",1,Ai(100)),z:ni("xyz",2,Ai(108.833)),l:ni("lab",0,Ai(100)),a:ni("lab",1),b:ni("lab",2),keyword(e){return e!==void 0?new Gi(e):os[this.model].keyword(this.color)},hex(e){return e!==void 0?new Gi(e):Ch.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new Gi(e);const t=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),Ch.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 Gi.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,o=2*i-1,a=n.alpha()-r.alpha(),s=((o*a===-1?o:(o+a)/(1+o*a))+1)/2,l=1-s;return Gi.rgb(s*n.red()+l*r.red(),s*n.green()+l*r.green(),s*n.blue()+l*r.blue(),n.alpha()*i+r.alpha()*(1-i))}};for(const e of Object.keys(os)){if(vJ.includes(e))continue;const{channels:t}=os[e];Gi.prototype[e]=function(...n){return this.model===e?new Gi(this):n.length>0?new Gi(n,e):new Gi([...jLe(os[this.model][e].raw(this.color)),this.valpha],e)},Gi[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=dI(n,t)),new Gi(r,e)}}function BLe(e,t){return Number(e.toFixed(t))}function ULe(e){return function(t){return BLe(t,e)}}function ni(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(HT[r]||(HT[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 Ai(e){return function(t){return Math.max(0,Math.min(e,t))}}function jLe(e){return Array.isArray(e)?e:[e]}function dI(e,t){for(let n=0;nu?(N(u),R.current=u):(N(ce),R.current=ce),O&&O({position:R.current})}}},[r,t,b,m,p,c,$,s,u,O,o]),Z=I.useCallback(function(){r||(N(o),R.current=o)},[r,o]);return{position:$,endPosition:U,isDragging:C,separatorProps:WT({},z,{onPointerDown:q,onKeyDown:Y,onDoubleClick:Z}),setPosition:N,splitterProps:WT({},z,{onPointerDown:q,onKeyDown:Y,onDoubleClick:Z})}},GLe=function(e){var t=e.disabled,n=e.initial,r=e.min,i=e.max;return(0,e.children)(YLe({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 qLe=e=>{const t=I.useRef(e);return I.useEffect(()=>{t.current=e}),t},ZLe=(e,t=100,n=!1)=>{const r=qLe(e),i=I.useRef(),o=[t,n,r];function a(){i.current&&clearTimeout(i.current),i.current=void 0}I.useEffect(()=>a,o);function s(){i.current=void 0}return I.useCallback(function(){const l=arguments,{current:u}=i;if(u===void 0&&n)return i.current=setTimeout(s,t),r.current.apply(null,l);u&&clearTimeout(u),i.current=setTimeout(()=>{i.current=void 0,r.current.apply(null,l)},t)},o)},XLe=(e,t,n)=>{const r=I.useState(e);return[r[0],ZLe(r[1],t,n)]};function WA(e,t,n,r){const i=I.useRef(n),o=I.useRef(r);I.useEffect(()=>{i.current=n,o.current=r}),I.useEffect(()=>{const a=e&&"current"in e?e.current:e;if(!a)return;let s=0;function l(...c){s||i.current.apply(this,c)}a.addEventListener(t,l);const u=o.current;return()=>{s=1,a.removeEventListener(t,l),u&&u()}},[e,t])}const KLe={},Bb=typeof window>"u"?null:window,JLe=Bb&&typeof Bb.visualViewport<"u"?Bb.visualViewport:null,mj=()=>[document.documentElement.clientWidth,document.documentElement.clientHeight],eMe=function(e){e===void 0&&(e=KLe);const{wait:t,leading:n,initialWidth:r=0,initialHeight:i=0}=e,[o,a]=XLe(typeof document>"u"?[r,i]:mj,t,n),s=()=>a(mj);return WA(Bb,"resize",s),WA(JLe,"resize",s),WA(Bb,"orientationchange",s),o},tMe=e=>eMe(e)[0];function i1(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const a=n.slice(i,r).trim();(a||!o)&&t.push(a),i=r+1,r=n.indexOf(",",i)}return t}function f3(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const nMe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,rMe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,iMe={};function gj(e,t){return((t||iMe).jsx?rMe:nMe).test(e)}const oMe=/[ \t\n\f\r]/g;function TJ(e){return typeof e=="object"?e.type==="text"?bj(e.value):!1:bj(e)}function bj(e){return e.replace(oMe,"")===""}class hO{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}hO.prototype.property={};hO.prototype.normal={};hO.prototype.space=null;function wJ(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&cMe.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Oj,pMe);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Oj.test(o)){let a=o.replace(dMe,fMe);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=p3}return new i(r,t)}function fMe(e){return"-"+e.toLowerCase()}function pMe(e){return e.charAt(1).toUpperCase()}const hMe={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"},Mp=wJ([CJ,xJ,RJ,IJ,lMe],"html"),Fu=wJ([CJ,xJ,RJ,IJ,uMe],"svg");function o1(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function h3(e){return e.join(" ").trim()}var DJ={},vj=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,mMe=/\n/g,gMe=/^\s*/,bMe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,yMe=/^:\s*/,OMe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,vMe=/^[;\s]*/,EMe=/^\s+|\s+$/g,SMe=` -`,Ej="/",Sj="*",Pf="",TMe="comment",wMe="declaration",kMe=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(m){var b=m.match(mMe);b&&(n+=b.length);var O=m.lastIndexOf(SMe);r=~O?m.length-O:r+m.length}function o(){var m={line:n,column:r};return function(b){return b.position=new a(m),u(),b}}function a(m){this.start=m,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function s(m){var b=new Error(t.source+":"+n+":"+r+": "+m);if(b.reason=m,b.filename=t.source,b.line=n,b.column=r,b.source=e,!t.silent)throw b}function l(m){var b=m.exec(e);if(b){var O=b[0];return i(O),e=e.slice(O.length),b}}function u(){l(gMe)}function c(m){var b;for(m=m||[];b=d();)b!==!1&&m.push(b);return m}function d(){var m=o();if(!(Ej!=e.charAt(0)||Sj!=e.charAt(1))){for(var b=2;Pf!=e.charAt(b)&&(Sj!=e.charAt(b)||Ej!=e.charAt(b+1));)++b;if(b+=2,Pf===e.charAt(b-1))return s("End of comment missing");var O=e.slice(2,b-2);return r+=2,i(O),e=e.slice(b),r+=2,m({type:TMe,comment:O})}}function p(){var m=o(),b=l(bMe);if(b){if(d(),!l(yMe))return s("property missing ':'");var O=l(OMe),y=m({type:wMe,property:Tj(b[0].replace(vj,Pf)),value:O?Tj(O[0].replace(vj,Pf)):Pf});return l(vMe),y}}function h(){var m=[];c(m);for(var b;b=p();)b!==!1&&(m.push(b),c(m));return m}return u(),h()};function Tj(e){return e?e.replace(EMe,Pf):Pf}var xMe=wS&&wS.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(DJ,"__esModule",{value:!0});var CMe=xMe(kMe);function AMe(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,CMe.default)(e),i=typeof t=="function";return r.forEach(function(o){if(o.type==="declaration"){var a=o.property,s=o.value;i?t(a,s,o):s&&(n=n||{},n[a]=s)}}),n}var wj=DJ.default=AMe;const _Me=wj.default||wj,rx=NJ("end"),Bu=NJ("start");function NJ(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 RMe(e){const t=Bu(e),n=rx(e);if(t&&n)return{start:t,end:n}}function Ub(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?kj(e.position):"start"in e||"end"in e?kj(e):"line"in e||"column"in e?pI(e):""}function pI(e){return xj(e&&e.line)+":"+xj(e&&e.column)}function kj(e){return pI(e&&e.start)+"-"+pI(e&&e.end)}function xj(e){return e&&typeof e=="number"?e:1}class jo extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},a=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(a=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?o.ruleId=r:(o.source=r.slice(0,l),o.ruleId=r.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const s=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=Ub(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}jo.prototype.file="";jo.prototype.name="";jo.prototype.reason="";jo.prototype.message="";jo.prototype.stack="";jo.prototype.column=void 0;jo.prototype.line=void 0;jo.prototype.ancestors=void 0;jo.prototype.cause=void 0;jo.prototype.fatal=void 0;jo.prototype.place=void 0;jo.prototype.ruleId=void 0;jo.prototype.source=void 0;const m3={}.hasOwnProperty,IMe=new Map,DMe=/[A-Z]/g,NMe=/-([a-z])/g,PMe=new Set(["table","tbody","thead","tfoot","tr"]),LMe=new Set(["td","th"]),PJ="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function MMe(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=HMe(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=VMe(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Fu:Mp,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=LJ(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function LJ(e,t,n){if(t.type==="element")return $Me(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return FMe(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return UMe(e,t,n);if(t.type==="mdxjsEsm")return BMe(e,t);if(t.type==="root")return jMe(e,t,n);if(t.type==="text")return zMe(e,t)}function $Me(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Fu,e.schema=i),e.ancestors.push(t);const o=$J(e,t.tagName,!1),a=WMe(e,t);let s=b3(e,t);return PMe.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!TJ(l):!0})),MJ(e,a,o,t),g3(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function FMe(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)}a1(e,t.position)}function BMe(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);a1(e,t.position)}function UMe(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Fu,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:$J(e,t.name,!0),a=QMe(e,t),s=b3(e,t);return MJ(e,a,o,t),g3(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function jMe(e,t,n){const r={};return g3(r,b3(e,t)),e.create(t,e.Fragment,r,n)}function zMe(e,t){return t.value}function MJ(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function g3(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function VMe(e,t,n){return r;function r(i,o,a,s){const u=Array.isArray(a.children)?n:t;return s?u(o,a,s):u(o,a)}}function HMe(e,t){return n;function n(r,i,o,a){const s=Array.isArray(o.children),l=Bu(r);return t(i,o,a,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function WMe(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&m3.call(t.properties,i)){const o=YMe(e,i,t.properties[i]);if(o){const[a,s]=o;e.tableCellAlignToStyle&&a==="align"&&typeof s=="string"&&LMe.has(t.tagName)?r=s:n[a]=s}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function QMe(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const a=o.expression;a.type;const s=a.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else a1(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,o=e.evaluater.evaluateExpression(s.expression)}else a1(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function b3(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:IMe;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o0?(fs(e,e.length,0,t),e):t}const _j={}.hasOwnProperty;function BJ(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 Rl(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const r4e=cf(new RegExp("\\p{P}","u")),ta=cf(/[A-Za-z]/),Po=cf(/[\dA-Za-z]/),i4e=cf(/[#-'*+\--9=?A-Z^-~]/);function QT(e){return e!==null&&(e<32||e===127)}const hI=cf(/\d/),o4e=cf(/[\dA-Fa-f]/),jJ=cf(/[!-/:-@[-`{-~]/);function gn(e){return e!==null&&e<-2}function Or(e){return e!==null&&(e<0||e===32)}function Un(e){return e===-2||e===-1||e===32}function ix(e){return jJ(e)||r4e(e)}const xp=cf(/\s/);function cf(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Bg(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&o<57344){const s=e.charCodeAt(n+1);o<56320&&s>56319&&s<57344?(a=String.fromCharCode(o,s),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Kn(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return Un(l)?(e.enter(n),s(l)):t(l)}function s(l){return Un(l)&&o++a))return;const E=t.events.length;let $=E,N,R;for(;$--;)if(t.events[$][0]==="exit"&&t.events[$][1].type==="chunkFlow"){if(N){R=t.events[$][1].end;break}N=!0}for(y(r),w=E;wS;){const C=n[k];t.containerState=C[1],C[0].exit.call(t,e)}n.length=S}function v(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function c4e(e,t,n){return Kn(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function YT(e){if(e===null||Or(e)||xp(e))return 1;if(ix(e))return 2}function ox(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d=Object.assign({},e[r][1].end),p=Object.assign({},e[n][1].start);Ij(d,-l),Ij(p,l),a={type:l>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:p},o={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({},a.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},a.start),e[n][1].start=Object.assign({},s.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=$s(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=$s(u,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),u=$s(u,ox(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=$s(u,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=$s(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,fs(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n0&&Un(w)?Kn(e,v,"linePrefix",o+1)(w):v(w)}function v(w){return w===null||gn(w)?e.check(Dj,b,k)(w):(e.enter("codeFlowValue"),S(w))}function S(w){return w===null||gn(w)?(e.exit("codeFlowValue"),v(w)):(e.consume(w),S)}function k(w){return e.exit("codeFenced"),t(w)}function C(w,E,$){let N=0;return R;function R(W){return w.enter("lineEnding"),w.consume(W),w.exit("lineEnding"),B}function B(W){return w.enter("codeFencedFence"),Un(W)?Kn(w,U,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):U(W)}function U(W){return W===s?(w.enter("codeFencedFenceSequence"),V(W)):$(W)}function V(W){return W===s?(N++,w.consume(W),V):N>=a?(w.exit("codeFencedFenceSequence"),Un(W)?Kn(w,z,"whitespace")(W):z(W)):$(W)}function z(W){return W===null||gn(W)?(w.exit("codeFencedFence"),E(W)):$(W)}}}function S4e(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const GA={name:"codeIndented",tokenize:w4e},T4e={tokenize:k4e,partial:!0};function w4e(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),Kn(e,o,"linePrefix",5)(u)}function o(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?a(u):n(u)}function a(u){return u===null?l(u):gn(u)?e.attempt(T4e,a,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||gn(u)?(e.exit("codeFlowValue"),a(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function k4e(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):gn(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):Kn(e,o,"linePrefix",5)(a)}function o(a){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):gn(a)?i(a):n(a)}}const x4e={name:"codeText",tokenize:_4e,resolve:C4e,previous:A4e};function C4e(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=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function QJ(e,t,n,r,i,o,a,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return d;function d(y){return y===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(y),e.exit(o),p):y===null||y===32||y===41||QT(y)?n(y):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),b(y))}function p(y){return y===62?(e.enter(o),e.consume(y),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(e.exit("chunkString"),e.exit(s),p(y)):y===null||y===60||gn(y)?n(y):(e.consume(y),y===92?m:h)}function m(y){return y===60||y===62||y===92?(e.consume(y),h):h(y)}function b(y){return!c&&(y===null||y===41||Or(y))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(y)):c999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):gn(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===null||h===91||h===93||gn(h)||s++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!Un(h)),h===92?p:d)}function p(h){return h===91||h===92||h===93?(e.consume(h),s++,d):d(h)}}function GJ(e,t,n,r,i,o){let a;return s;function s(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),a=p===40?41:p,l):n(p)}function l(p){return p===a?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(o),u(p))}function u(p){return p===a?(e.exit(o),l(a)):p===null?n(p):gn(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Kn(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===a||p===null||gn(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?d:c)}function d(p){return p===a||p===92?(e.consume(p),c):c(p)}}function jb(e,t){let n;return r;function r(i){return gn(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Un(i)?Kn(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const M4e={name:"definition",tokenize:F4e},$4e={tokenize:B4e,partial:!0};function F4e(e,t,n){const r=this;let i;return o;function o(h){return e.enter("definition"),a(h)}function a(h){return YJ.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=Rl(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return Or(h)?jb(e,u)(h):u(h)}function u(h){return QJ(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt($4e,d,d)(h)}function d(h){return Un(h)?Kn(e,p,"whitespace")(h):p(h)}function p(h){return h===null||gn(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function B4e(e,t,n){return r;function r(s){return Or(s)?jb(e,i)(s):n(s)}function i(s){return GJ(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return Un(s)?Kn(e,a,"whitespace")(s):a(s)}function a(s){return s===null||gn(s)?t(s):n(s)}}const U4e={name:"hardBreakEscape",tokenize:j4e};function j4e(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return gn(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const z4e={name:"headingAtx",tokenize:H4e,resolve:V4e};function V4e(e,t){let n=e.length-2,r=3,i,o;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},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},fs(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function H4e(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),a(c)}function a(c){return c===35&&r++<6?(e.consume(c),a):c===null||Or(c)?(e.exit("atxHeadingSequence"),s(c)):n(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||gn(c)?(e.exit("atxHeading"),t(c)):Un(c)?Kn(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||Or(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const W4e=["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"],Pj=["pre","script","style","textarea"],Q4e={name:"htmlFlow",tokenize:Z4e,resolveTo:q4e,concrete:!0},Y4e={tokenize:K4e,partial:!0},G4e={tokenize:X4e,partial:!0};function q4e(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 Z4e(e,t,n){const r=this;let i,o,a,s,l;return u;function u(G){return c(G)}function c(G){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(G),d}function d(G){return G===33?(e.consume(G),p):G===47?(e.consume(G),o=!0,b):G===63?(e.consume(G),i=3,r.interrupt?t:j):ta(G)?(e.consume(G),a=String.fromCharCode(G),O):n(G)}function p(G){return G===45?(e.consume(G),i=2,h):G===91?(e.consume(G),i=5,s=0,m):ta(G)?(e.consume(G),i=4,r.interrupt?t:j):n(G)}function h(G){return G===45?(e.consume(G),r.interrupt?t:j):n(G)}function m(G){const ce="CDATA[";return G===ce.charCodeAt(s++)?(e.consume(G),s===ce.length?r.interrupt?t:U:m):n(G)}function b(G){return ta(G)?(e.consume(G),a=String.fromCharCode(G),O):n(G)}function O(G){if(G===null||G===47||G===62||Or(G)){const ce=G===47,ge=a.toLowerCase();return!ce&&!o&&Pj.includes(ge)?(i=1,r.interrupt?t(G):U(G)):W4e.includes(a.toLowerCase())?(i=6,ce?(e.consume(G),y):r.interrupt?t(G):U(G)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(G):o?v(G):S(G))}return G===45||Po(G)?(e.consume(G),a+=String.fromCharCode(G),O):n(G)}function y(G){return G===62?(e.consume(G),r.interrupt?t:U):n(G)}function v(G){return Un(G)?(e.consume(G),v):R(G)}function S(G){return G===47?(e.consume(G),R):G===58||G===95||ta(G)?(e.consume(G),k):Un(G)?(e.consume(G),S):R(G)}function k(G){return G===45||G===46||G===58||G===95||Po(G)?(e.consume(G),k):C(G)}function C(G){return G===61?(e.consume(G),w):Un(G)?(e.consume(G),C):S(G)}function w(G){return G===null||G===60||G===61||G===62||G===96?n(G):G===34||G===39?(e.consume(G),l=G,E):Un(G)?(e.consume(G),w):$(G)}function E(G){return G===l?(e.consume(G),l=null,N):G===null||gn(G)?n(G):(e.consume(G),E)}function $(G){return G===null||G===34||G===39||G===47||G===60||G===61||G===62||G===96||Or(G)?C(G):(e.consume(G),$)}function N(G){return G===47||G===62||Un(G)?S(G):n(G)}function R(G){return G===62?(e.consume(G),B):n(G)}function B(G){return G===null||gn(G)?U(G):Un(G)?(e.consume(G),B):n(G)}function U(G){return G===45&&i===2?(e.consume(G),X):G===60&&i===1?(e.consume(G),q):G===62&&i===4?(e.consume(G),se):G===63&&i===3?(e.consume(G),j):G===93&&i===5?(e.consume(G),Z):gn(G)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Y4e,ve,V)(G)):G===null||gn(G)?(e.exit("htmlFlowData"),V(G)):(e.consume(G),U)}function V(G){return e.check(G4e,z,ve)(G)}function z(G){return e.enter("lineEnding"),e.consume(G),e.exit("lineEnding"),W}function W(G){return G===null||gn(G)?V(G):(e.enter("htmlFlowData"),U(G))}function X(G){return G===45?(e.consume(G),j):U(G)}function q(G){return G===47?(e.consume(G),a="",Y):U(G)}function Y(G){if(G===62){const ce=a.toLowerCase();return Pj.includes(ce)?(e.consume(G),se):U(G)}return ta(G)&&a.length<8?(e.consume(G),a+=String.fromCharCode(G),Y):U(G)}function Z(G){return G===93?(e.consume(G),j):U(G)}function j(G){return G===62?(e.consume(G),se):G===45&&i===2?(e.consume(G),j):U(G)}function se(G){return G===null||gn(G)?(e.exit("htmlFlowData"),ve(G)):(e.consume(G),se)}function ve(G){return e.exit("htmlFlow"),t(G)}}function X4e(e,t,n){const r=this;return i;function i(a){return gn(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):n(a)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function K4e(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(mO,t,n)}}const J4e={name:"htmlText",tokenize:e5e};function e5e(e,t,n){const r=this;let i,o,a;return s;function s(j){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(j),l}function l(j){return j===33?(e.consume(j),u):j===47?(e.consume(j),C):j===63?(e.consume(j),S):ta(j)?(e.consume(j),$):n(j)}function u(j){return j===45?(e.consume(j),c):j===91?(e.consume(j),o=0,m):ta(j)?(e.consume(j),v):n(j)}function c(j){return j===45?(e.consume(j),h):n(j)}function d(j){return j===null?n(j):j===45?(e.consume(j),p):gn(j)?(a=d,q(j)):(e.consume(j),d)}function p(j){return j===45?(e.consume(j),h):d(j)}function h(j){return j===62?X(j):j===45?p(j):d(j)}function m(j){const se="CDATA[";return j===se.charCodeAt(o++)?(e.consume(j),o===se.length?b:m):n(j)}function b(j){return j===null?n(j):j===93?(e.consume(j),O):gn(j)?(a=b,q(j)):(e.consume(j),b)}function O(j){return j===93?(e.consume(j),y):b(j)}function y(j){return j===62?X(j):j===93?(e.consume(j),y):b(j)}function v(j){return j===null||j===62?X(j):gn(j)?(a=v,q(j)):(e.consume(j),v)}function S(j){return j===null?n(j):j===63?(e.consume(j),k):gn(j)?(a=S,q(j)):(e.consume(j),S)}function k(j){return j===62?X(j):S(j)}function C(j){return ta(j)?(e.consume(j),w):n(j)}function w(j){return j===45||Po(j)?(e.consume(j),w):E(j)}function E(j){return gn(j)?(a=E,q(j)):Un(j)?(e.consume(j),E):X(j)}function $(j){return j===45||Po(j)?(e.consume(j),$):j===47||j===62||Or(j)?N(j):n(j)}function N(j){return j===47?(e.consume(j),X):j===58||j===95||ta(j)?(e.consume(j),R):gn(j)?(a=N,q(j)):Un(j)?(e.consume(j),N):X(j)}function R(j){return j===45||j===46||j===58||j===95||Po(j)?(e.consume(j),R):B(j)}function B(j){return j===61?(e.consume(j),U):gn(j)?(a=B,q(j)):Un(j)?(e.consume(j),B):N(j)}function U(j){return j===null||j===60||j===61||j===62||j===96?n(j):j===34||j===39?(e.consume(j),i=j,V):gn(j)?(a=U,q(j)):Un(j)?(e.consume(j),U):(e.consume(j),z)}function V(j){return j===i?(e.consume(j),i=void 0,W):j===null?n(j):gn(j)?(a=V,q(j)):(e.consume(j),V)}function z(j){return j===null||j===34||j===39||j===60||j===61||j===96?n(j):j===47||j===62||Or(j)?N(j):(e.consume(j),z)}function W(j){return j===47||j===62||Or(j)?N(j):n(j)}function X(j){return j===62?(e.consume(j),e.exit("htmlTextData"),e.exit("htmlText"),t):n(j)}function q(j){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),Y}function Y(j){return Un(j)?Kn(e,Z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):Z(j)}function Z(j){return e.enter("htmlTextData"),a(j)}}const O3={name:"labelEnd",tokenize:a5e,resolveTo:o5e,resolveAll:i5e},t5e={tokenize:s5e},n5e={tokenize:l5e},r5e={tokenize:u5e};function i5e(e){let t=-1;for(;++t=3&&(u===null||gn(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),Un(u)?Kn(e,s,"whitespace")(u):s(u))}}const ha={name:"list",tokenize:y5e,continuation:{tokenize:O5e},exit:E5e},g5e={tokenize:S5e,partial:!0},b5e={tokenize:v5e,partial:!0};function y5e(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return s;function s(h){const m=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:hI(h)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(rS,n,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return hI(h)&&++a<10?(e.consume(h),l):(!r.interrupt||a<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(mO,r.interrupt?n:c,e.attempt(g5e,p,d))}function c(h){return r.containerState.initialBlankLine=!0,o++,p(h)}function d(h){return Un(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function O5e(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(mO,i,o);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Kn(e,t,"listItemIndent",r.containerState.size+1)(s)}function o(s){return r.containerState.furtherBlankLines||!Un(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(b5e,t,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Kn(e,e.attempt(ha,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function v5e(e,t,n){const r=this;return Kn(e,i,"listItemIndent",r.containerState.size+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(o):n(o)}}function E5e(e){e.exit(this.containerState.type)}function S5e(e,t,n){const r=this;return Kn(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const a=r.events[r.events.length-1];return!Un(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const Lj={name:"setextUnderline",tokenize:w5e,resolveTo:T5e};function T5e(e,t){let n=e.length,r,i,o;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),!o&&e[n][1].type==="definition"&&(o=n);const a={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[o][1].end)):e[r][1]=a,e.push(["exit",a,t]),e}function w5e(e,t,n){const r=this;let i;return o;function o(u){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=u,a(u)):n(u)}function a(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),Un(u)?Kn(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||gn(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const k5e={tokenize:x5e};function x5e(e){const t=this,n=e.attempt(mO,r,e.attempt(this.parser.constructs.flowInitial,i,Kn(e,e.attempt(this.parser.constructs.flow,i,e.attempt(I4e,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const C5e={resolveAll:ZJ()},A5e=qJ("string"),_5e=qJ("text");function qJ(e){return{tokenize:t,resolveAll:ZJ(e==="text"?R5e:void 0)};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,a,s);return a;function a(c){return u(c)?o(c):s(c)}function s(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),o(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const d=i[c];let p=-1;if(d)for(;++p-1){const s=a[0];typeof s=="string"?a[0]=s.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}function N5e(e,t){let n=-1;const r=[];let i;for(;++n>>=0,(_=0<=A&&A<256)&&(T=Ct[A],T)?T:(g=we(A,0,!0),_&&(Ct[A]=g),g)):(A|=0,(_=-128<=A&&A<128)&&(T=It[A],T)?T:(g=we(A,A<0?-1:0,!1),_&&(It[A]=g),g))}at.fromInt=Zt;function Ie(A,f){if(isNaN(A))return f?tn:Dt;if(f){if(A<0)return tn;if(A>=Ue)return Wn}else{if(A<=-Ce)return Qn;if(A+1>=Ce)return bn}return A<0?Ie(-A,f).neg():we(A%nr|0,A/nr|0,f)}at.fromNumber=Ie;function we(A,f,g){return new at(A,f,g)}at.fromBits=we;var Qe=Math.pow;function ot(A,f,g){if(A.length===0)throw Error("empty string");if(typeof f=="number"?(g=f,f=!1):f=!!f,A==="NaN"||A==="Infinity"||A==="+Infinity"||A==="-Infinity")return f?tn:Dt;if(g=g||10,g<2||360)throw Error("interior hyphen");if(T===0)return ot(A.substring(1),f,g).neg();for(var _=Ie(Qe(g,8)),H=Dt,K=0;K>>0:this.low},ht.toNumber=function(){return this.unsigned?(this.high>>>0)*nr+(this.low>>>0):this.high*nr+(this.low>>>0)},ht.toString=function(f){if(f=f||10,f<2||36>>0,yt=He.toString(f);if(K=Ae,K.isZero())return yt+oe;for(;yt.length<6;)yt="0"+yt;oe=""+yt+oe}},ht.getHighBits=function(){return this.high},ht.getHighBitsUnsigned=function(){return this.high>>>0},ht.getLowBits=function(){return this.low},ht.getLowBitsUnsigned=function(){return this.low>>>0},ht.getNumBitsAbs=function(){if(this.isNegative())return this.eq(Qn)?64:this.neg().getNumBitsAbs();for(var f=this.high!=0?this.high:this.low,g=31;g>0&&!(f&1<=0},ht.isOdd=function(){return(this.low&1)===1},ht.isEven=function(){return(this.low&1)===0},ht.equals=function(f){return Mt(f)||(f=rn(f)),this.unsigned!==f.unsigned&&this.high>>>31===1&&f.high>>>31===1?!1:this.high===f.high&&this.low===f.low},ht.eq=ht.equals,ht.notEquals=function(f){return!this.eq(f)},ht.neq=ht.notEquals,ht.ne=ht.notEquals,ht.lessThan=function(f){return this.comp(f)<0},ht.lt=ht.lessThan,ht.lessThanOrEqual=function(f){return this.comp(f)<=0},ht.lte=ht.lessThanOrEqual,ht.le=ht.lessThanOrEqual,ht.greaterThan=function(f){return this.comp(f)>0},ht.gt=ht.greaterThan,ht.greaterThanOrEqual=function(f){return this.comp(f)>=0},ht.gte=ht.greaterThanOrEqual,ht.ge=ht.greaterThanOrEqual,ht.compare=function(f){if(Mt(f)||(f=rn(f)),this.eq(f))return 0;var g=this.isNegative(),T=f.isNegative();return g&&!T?-1:!g&&T?1:this.unsigned?f.high>>>0>this.high>>>0||f.high===this.high&&f.low>>>0>this.low>>>0?-1:1:this.sub(f).isNegative()?-1:1},ht.comp=ht.compare,ht.negate=function(){return!this.unsigned&&this.eq(Qn)?Qn:this.not().add(Mn)},ht.neg=ht.negate,ht.add=function(f){Mt(f)||(f=rn(f));var g=this.high>>>16,T=this.high&65535,_=this.low>>>16,H=this.low&65535,K=f.high>>>16,oe=f.high&65535,Ae=f.low>>>16,He=f.low&65535,yt=0,Ft=0,ft=0,sn=0;return sn+=H+He,ft+=sn>>>16,sn&=65535,ft+=_+Ae,Ft+=ft>>>16,ft&=65535,Ft+=T+oe,yt+=Ft>>>16,Ft&=65535,yt+=g+K,yt&=65535,we(ft<<16|sn,yt<<16|Ft,this.unsigned)},ht.subtract=function(f){return Mt(f)||(f=rn(f)),this.add(f.neg())},ht.sub=ht.subtract,ht.multiply=function(f){if(this.isZero())return this;if(Mt(f)||(f=rn(f)),lt){var g=lt.mul(this.low,this.high,f.low,f.high);return we(g,lt.get_high(),this.unsigned)}if(f.isZero())return this.unsigned?tn:Dt;if(this.eq(Qn))return f.isOdd()?Qn:Dt;if(f.eq(Qn))return this.isOdd()?Qn:Dt;if(this.isNegative())return f.isNegative()?this.neg().mul(f.neg()):this.neg().mul(f).neg();if(f.isNegative())return this.mul(f.neg()).neg();if(this.lt(mt)&&f.lt(mt))return Ie(this.toNumber()*f.toNumber(),this.unsigned);var T=this.high>>>16,_=this.high&65535,H=this.low>>>16,K=this.low&65535,oe=f.high>>>16,Ae=f.high&65535,He=f.low>>>16,yt=f.low&65535,Ft=0,ft=0,sn=0,In=0;return In+=K*yt,sn+=In>>>16,In&=65535,sn+=H*yt,ft+=sn>>>16,sn&=65535,sn+=K*He,ft+=sn>>>16,sn&=65535,ft+=_*yt,Ft+=ft>>>16,ft&=65535,ft+=H*He,Ft+=ft>>>16,ft&=65535,ft+=K*Ae,Ft+=ft>>>16,ft&=65535,Ft+=T*yt+_*He+H*Ae+K*oe,Ft&=65535,we(sn<<16|In,Ft<<16|ft,this.unsigned)},ht.mul=ht.multiply,ht.divide=function(f){if(Mt(f)||(f=rn(f)),f.isZero())throw Error("division by zero");if(lt){if(!this.unsigned&&this.high===-2147483648&&f.low===-1&&f.high===-1)return this;var g=(this.unsigned?lt.div_u:lt.div_s)(this.low,this.high,f.low,f.high);return we(g,lt.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?tn:Dt;var T,_,H;if(this.unsigned){if(f.unsigned||(f=f.toUnsigned()),f.gt(this))return tn;if(f.gt(this.shru(1)))return Dn;H=tn}else{if(this.eq(Qn)){if(f.eq(Mn)||f.eq(Kt))return Qn;if(f.eq(Qn))return Mn;var K=this.shr(1);return T=K.div(f).shl(1),T.eq(Dt)?f.isNegative()?Mn:Kt:(_=this.sub(f.mul(T)),H=T.add(_.div(f)),H)}else if(f.eq(Qn))return this.unsigned?tn:Dt;if(this.isNegative())return f.isNegative()?this.neg().div(f.neg()):this.neg().div(f).neg();if(f.isNegative())return this.div(f.neg()).neg();H=Dt}for(_=this;_.gte(f);){T=Math.max(1,Math.floor(_.toNumber()/f.toNumber()));for(var oe=Math.ceil(Math.log(T)/Math.LN2),Ae=oe<=48?1:Qe(2,oe-48),He=Ie(T),yt=He.mul(f);yt.isNegative()||yt.gt(_);)T-=Ae,He=Ie(T,this.unsigned),yt=He.mul(f);He.isZero()&&(He=Mn),H=H.add(He),_=_.sub(yt)}return H},ht.div=ht.divide,ht.modulo=function(f){if(Mt(f)||(f=rn(f)),lt){var g=(this.unsigned?lt.rem_u:lt.rem_s)(this.low,this.high,f.low,f.high);return we(g,lt.get_high(),this.unsigned)}return this.sub(this.div(f).mul(f))},ht.mod=ht.modulo,ht.rem=ht.modulo,ht.not=function(){return we(~this.low,~this.high,this.unsigned)},ht.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},ht.clz=ht.countLeadingZeros,ht.countTrailingZeros=function(){return this.low?$t(this.low):$t(this.high)+32},ht.ctz=ht.countTrailingZeros,ht.and=function(f){return Mt(f)||(f=rn(f)),we(this.low&f.low,this.high&f.high,this.unsigned)},ht.or=function(f){return Mt(f)||(f=rn(f)),we(this.low|f.low,this.high|f.high,this.unsigned)},ht.xor=function(f){return Mt(f)||(f=rn(f)),we(this.low^f.low,this.high^f.high,this.unsigned)},ht.shiftLeft=function(f){return Mt(f)&&(f=f.toInt()),(f&=63)===0?this:f<32?we(this.low<>>32-f,this.unsigned):we(0,this.low<>>f|this.high<<32-f,this.high>>f,this.unsigned):we(this.high>>f-32,this.high>=0?0:-1,this.unsigned)},ht.shr=ht.shiftRight,ht.shiftRightUnsigned=function(f){return Mt(f)&&(f=f.toInt()),(f&=63)===0?this:f<32?we(this.low>>>f|this.high<<32-f,this.high>>>f,this.unsigned):f===32?we(this.high,0,this.unsigned):we(this.high>>>f-32,0,this.unsigned)},ht.shru=ht.shiftRightUnsigned,ht.shr_u=ht.shiftRightUnsigned,ht.rotateLeft=function(f){var g;return Mt(f)&&(f=f.toInt()),(f&=63)===0?this:f===32?we(this.high,this.low,this.unsigned):f<32?(g=32-f,we(this.low<>>g,this.high<>>g,this.unsigned)):(f-=32,g=32-f,we(this.high<>>g,this.low<>>g,this.unsigned))},ht.rotl=ht.rotateLeft,ht.rotateRight=function(f){var g;return Mt(f)&&(f=f.toInt()),(f&=63)===0?this:f===32?we(this.high,this.low,this.unsigned):f<32?(g=32-f,we(this.high<>>f,this.low<>>f,this.unsigned)):(f-=32,g=32-f,we(this.low<>>f,this.high<>>f,this.unsigned))},ht.rotr=ht.rotateRight,ht.toSigned=function(){return this.unsigned?we(this.low,this.high,!1):this},ht.toUnsigned=function(){return this.unsigned?this:we(this.low,this.high,!0)},ht.toBytes=function(f){return f?this.toBytesLE():this.toBytesBE()},ht.toBytesLE=function(){var f=this.high,g=this.low;return[g&255,g>>>8&255,g>>>16&255,g>>>24,f&255,f>>>8&255,f>>>16&255,f>>>24]},ht.toBytesBE=function(){var f=this.high,g=this.low;return[f>>>24,f>>>16&255,f>>>8&255,f&255,g>>>24,g>>>16&255,g>>>8&255,g&255]},at.fromBytes=function(f,g,T){return T?at.fromBytesLE(f,g):at.fromBytesBE(f,g)},at.fromBytesLE=function(f,g){return new at(f[0]|f[1]<<8|f[2]<<16|f[3]<<24,f[4]|f[5]<<8|f[6]<<16|f[7]<<24,g)},at.fromBytesBE=function(f,g){return new at(f[4]<<24|f[5]<<16|f[6]<<8|f[7],f[0]<<24|f[1]<<16|f[2]<<8|f[3],g)};const Gr=at;var En;(function(A){A.Ok="ok",A.ClientNotActive="client-not-active",A.Unimplemented="unimplemented",A.Unsupported="unsupported",A.DocumentNotAttached="document-not-attached",A.DocumentNotDetached="document-not-detached",A.DocumentRemoved="document-removed",A.InvalidObjectKey="invalid-object-key",A.InvalidArgument="invalid-argument"})(En||(En={}));class An extends Error{constructor(f,g){super(g),this.code=f,this.message=g,this.name="YorkieError",this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}function ua(A){if(A instanceof Map){const f=Array.from(A);return new Map(JSON.parse(JSON.stringify(f)))}return JSON.parse(JSON.stringify(A))}const Qp=A=>A?Object.entries(A).length===0:!0,io=A=>{const f={};for(const[g,T]of Object.entries(A))f[g]=JSON.stringify(T);return f},di=A=>{const f={};for(const[g,T]of Object.entries(A))f[g]=JSON.parse(T);return f};var Ma;(function(A){A.Put="put",A.Clear="clear"})(Ma||(Ma={}));class Yp{constructor(f,g){this.context=f,this.presence=g}set(f,g){for(const T of Object.keys(f))this.presence[T]=f[T];this.context.setPresenceChange({type:Ma.Put,presence:ua(this.presence)}),this.context.setReversePresence(f,g)}get(f){return this.presence[f]}clear(){this.presence={},this.context.setPresenceChange({type:Ma.Clear})}}const VO="000000000000000000000000",ca="FFFFFFFFFFFFFFFFFFFFFFFF";class Er{constructor(f,g,T){this.lamport=f,this.delimiter=g,this.actorID=T}static of(f,g,T){return new Er(f,g,T)}static fromStruct(f){return Er.of(Gr.fromString(f.lamport,!0),f.delimiter,f.actorID)}toIDString(){return this.actorID?`${this.lamport.toString()}:${this.actorID}:${this.delimiter}`:`${this.lamport.toString()}:nil:${this.delimiter}`}toStruct(){return{lamport:this.getLamportAsString(),delimiter:this.getDelimiter(),actorID:this.getActorID()}}toTestString(){return this.actorID?`${this.lamport.toString()}:${this.actorID.slice(-2)}:${this.delimiter}`:`${this.lamport.toString()}:nil:${this.delimiter}`}setActor(f){return new Er(this.lamport,this.delimiter,f)}getLamportAsString(){return this.lamport.toString()}getLamport(){return this.lamport}getDelimiter(){return this.delimiter}getActorID(){return this.actorID}after(f){return this.compare(f)>0}equals(f){return this.compare(f)===0}compare(f){if(this.lamport.greaterThan(f.lamport))return 1;if(f.lamport.greaterThan(this.lamport))return-1;const g=this.actorID.localeCompare(f.actorID);return g!==0?g:this.delimiter>f.delimiter?1:f.delimiter>this.delimiter?-1:0}}const Gp=0,Ts=4294967295,ws=Gr.MAX_VALUE,oo=new Er(Gr.fromNumber(0),Gp,VO),ko=new Er(ws,Ts,ca);function Ur(A){return A.replace(/["'\\\n\r\f\b\t\u2028\u2029]/g,function(f){switch(f){case'"':case"\\":return"\\"+f;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 f}})}class ao{constructor(f){this.createdAt=f}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(f){return!this.movedAt||f&&f.after(this.movedAt)?(this.movedAt=f,!0):!1}setRemovedAt(f){this.removedAt=f}remove(f){return f&&f.after(this.getPositionedAt())&&(!this.removedAt||f.after(this.removedAt))?(this.removedAt=f,!0):!1}isRemoved(){return!!this.removedAt}}class Wl extends ao{constructor(f){super(f)}}class Ho extends ao{}class xo{constructor(f,g){this.strKey=f,this.value=g}static of(f,g){return new xo(f,g)}isRemoved(){return this.value.isRemoved()}getStrKey(){return this.strKey}getValue(){return this.value}remove(f){return this.value.remove(f)}}class ji{constructor(){this.nodeMapByKey=new Map,this.nodeMapByCreatedAt=new Map}static create(){return new ji}set(f,g,T){let _;const H=this.nodeMapByKey.get(f);H!=null&&!H.isRemoved()&&H.remove(T)&&(_=H.getValue());const K=xo.of(f,g);return this.nodeMapByCreatedAt.set(g.getCreatedAt().toIDString(),K),(H==null||T.after(H.getValue().getPositionedAt()))&&(this.nodeMapByKey.set(f,K),g.setMovedAt(T)),_}delete(f,g){this.nodeMapByCreatedAt.has(f.toIDString())||u.fatal(`fail to find ${f.toIDString()}`);const T=this.nodeMapByCreatedAt.get(f.toIDString());return T.remove(g),T.getValue()}subPathOf(f){const g=this.nodeMapByCreatedAt.get(f.toIDString());if(g)return g.getStrKey()}purge(f){const g=this.nodeMapByCreatedAt.get(f.getCreatedAt().toIDString());if(!g){u.fatal(`fail to find ${f.getCreatedAt().toIDString()}`);return}const T=this.nodeMapByKey.get(g.getStrKey());g===T&&this.nodeMapByKey.delete(T.getStrKey()),this.nodeMapByCreatedAt.delete(g.getValue().getCreatedAt().toIDString())}deleteByKey(f,g){const T=this.nodeMapByKey.get(f);if(T!=null&&T.remove(g))return T.getValue()}has(f){const g=this.nodeMapByKey.get(f);return g==null?!1:!g.isRemoved()}getByID(f){return this.nodeMapByCreatedAt.get(f.toIDString())}get(f){const g=this.nodeMapByKey.get(f);if(!(!g||g.isRemoved()))return g}*[Symbol.iterator](){for(const[,f]of this.nodeMapByKey)yield f}}class gr extends Wl{constructor(f,g){super(f),this.memberNodes=g}static create(f,g){if(!g)return new gr(f,ji.create());const T=ji.create();for(const[_,H]of Object.entries(g))T.set(_,H.deepcopy(),H.getCreatedAt());return new gr(f,T)}subPathOf(f){return this.memberNodes.subPathOf(f)}purge(f){this.memberNodes.purge(f)}set(f,g,T){return this.memberNodes.set(f,g,T)}delete(f,g){return this.memberNodes.delete(f,g)}deleteByKey(f,g){return this.memberNodes.deleteByKey(f,g)}get(f){const g=this.memberNodes.get(f);return g==null?void 0:g.getValue()}getByID(f){const g=this.memberNodes.getByID(f);return g==null?void 0:g.getValue()}has(f){return this.memberNodes.has(f)}toJSON(){const f=[];for(const[g,T]of this)f.push(`"${Ur(g)}":${T.toJSON()}`);return`{${f.join(",")}}`}toJS(){return JSON.parse(this.toJSON())}toJSForTest(){const f={};for(const[g,T]of this){const{createdAt:_,value:H,type:K}=T.toJSForTest();f[g]={key:g,createdAt:_,value:H,type:K}}return{createdAt:this.getCreatedAt().toTestString(),value:f,type:"YORKIE_OBJECT"}}getKeys(){const f=Array();for(const[g]of this)f.push(g);return f}toSortedJSON(){var f;const g=Array();for(const[_]of this)g.push(_);const T=[];for(const _ of g.sort()){const H=(f=this.memberNodes.get(_))===null||f===void 0?void 0:f.getValue();T.push(`"${Ur(_)}":${H.toSortedJSON()}`)}return`{${T.join(",")}}`}getRHT(){return this.memberNodes}deepcopy(){const f=gr.create(this.getCreatedAt());for(const g of this.memberNodes)f.memberNodes.set(g.getStrKey(),g.getValue().deepcopy(),this.getPositionedAt());return f.remove(this.getRemovedAt()),f}getDescendants(f){for(const g of this.memberNodes){const T=g.getValue();if(f(T,this))return;T instanceof Wl&&T.getDescendants(f)}}*[Symbol.iterator](){const f=new Set;for(const g of this.memberNodes)f.has(g.getStrKey())||(f.add(g.getStrKey()),g.isRemoved()||(yield[g.getStrKey(),g.getValue()]))}}var _r;(function(A){A.Local="local",A.Remote="remote",A.UndoRedo="undoredo"})(_r||(_r={}));class jr{constructor(f,g){this.parentCreatedAt=f,this.executedAt=g}getParentCreatedAt(){return this.parentCreatedAt}getExecutedAt(){if(!this.executedAt)throw new Error("executedAt has not been set yet");return this.executedAt}setActor(f){this.executedAt&&(this.executedAt=this.executedAt.setActor(f))}setExecutedAt(f){this.executedAt=f}}class Wo{constructor(f){this.value=f,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(f){this.left=f}setRight(f){this.right=f}setParent(f){this.parent=f}unlink(){this.parent=void 0,this.right=void 0,this.left=void 0}hasLinks(){return this.hasParent()||this.hasLeft()||this.hasRight()}increaseWeight(f){this.weight+=f}initWeight(){this.weight=this.getLength()}}class zi{constructor(f){this.root=f}get length(){return this.root?this.root.getWeight():0}find(f){if(!this.root||f<0)return[void 0,0];let g=this.root;for(;;)if(g.hasLeft()&&f<=g.getLeftWeight())g=g.getLeft();else if(g.hasRight()&&g.getLeftWeight()+g.getLength()g.getLength()&&u.fatal(`out of index range: pos: ${f} > node.length: ${g.getLength()}`),[g,f]}indexOf(f){if(!f||f!==this.root&&!f.hasLinks())return-1;let g=0,T=f,_;for(;T;)(!_||_===T.getRight())&&(g+=T.getLength()+(T.hasLeft()?T.getLeftWeight():0)),_=T,T=T.getParent();return g-f.getLength()}getRoot(){return this.root}insert(f){return this.insertAfter(this.root,f)}insertAfter(f,g){return f?(this.splayNode(f),this.root=g,g.setRight(f.getRight()),f.hasRight()&&f.getRight().setParent(g),g.setLeft(f),f.setParent(g),f.setRight(),this.updateWeight(f),this.updateWeight(g),g):(this.root=g,g)}updateWeight(f){f.initWeight(),f.hasLeft()&&f.increaseWeight(f.getLeftWeight()),f.hasRight()&&f.increaseWeight(f.getRightWeight())}updateTreeWeight(f){for(;f;)this.updateWeight(f),f=f.getParent()}splayNode(f){if(f)for(;;)if(this.isLeftChild(f.getParent())&&this.isRightChild(f))this.rotateLeft(f),this.rotateRight(f);else if(this.isRightChild(f.getParent())&&this.isLeftChild(f))this.rotateRight(f),this.rotateLeft(f);else if(this.isLeftChild(f.getParent())&&this.isLeftChild(f))this.rotateRight(f.getParent()),this.rotateRight(f);else if(this.isRightChild(f.getParent())&&this.isRightChild(f))this.rotateLeft(f.getParent()),this.rotateLeft(f);else{this.isLeftChild(f)?this.rotateRight(f):this.isRightChild(f)&&this.rotateLeft(f),this.updateWeight(f);return}}delete(f){this.splayNode(f);const g=new zi(f.getLeft());g.root&&g.root.setParent();const T=new zi(f.getRight());if(T.root&&T.root.setParent(),g.root){const _=g.getRightmost();g.splayNode(_),g.root.setRight(T.root),T.root&&T.root.setParent(g.root),this.root=g.root}else this.root=T.root;f.unlink(),this.root&&this.updateWeight(this.root)}deleteRange(f,g){if(!g){this.splayNode(f),this.cutOffRight(f);return}this.splayNode(f),this.splayNode(g),g.getLeft()!=f&&this.rotateRight(f),this.cutOffRight(f)}cutOffRight(f){const g=[];this.traversePostorder(f.getRight(),g);for(const T of g)T.initWeight();this.updateTreeWeight(f)}toTestString(){const f=[];return this.traverseInorder(this.root,f),f.map(g=>`[${g.getWeight()},${g.getLength()}]${g.getValue()||""}`).join("")}checkWeight(){const f=[];this.traverseInorder(this.root,f);for(const g of f)if(g.getWeight()!=g.getLength()+g.getLeftWeight()+g.getRightWeight())return!1;return!0}getRightmost(){let f=this.root;for(;f.hasRight();)f=f.getRight();return f}traverseInorder(f,g){f&&(this.traverseInorder(f.getLeft(),g),g.push(f),this.traverseInorder(f.getRight(),g))}traversePostorder(f,g){f&&(this.traversePostorder(f.getLeft(),g),this.traversePostorder(f.getRight(),g),g.push(f))}rotateLeft(f){const g=f.getParent();g.hasParent()?g===g.getParent().getLeft()?g.getParent().setLeft(f):g.getParent().setRight(f):this.root=f,f.setParent(g.getParent()),g.setRight(f.getLeft()),g.hasRight()&&g.getRight().setParent(g),f.setLeft(g),f.getLeft().setParent(f),this.updateWeight(g),this.updateWeight(f)}rotateRight(f){const g=f.getParent();g.hasParent()?g===g.getParent().getLeft()?g.getParent().setLeft(f):g.getParent().setRight(f):this.root=f,f.setParent(g.getParent()),g.setLeft(f.getRight()),g.hasLeft()&&g.getLeft().setParent(g),f.setRight(g),f.getRight().setParent(f),this.updateWeight(g),this.updateWeight(f)}isLeftChild(f){return f&&f.hasParent()?f.getParent().getLeft()===f:!1}isRightChild(f){return f&&f.hasParent()?f.getParent().getRight()===f:!1}}var Jt;(function(A){A[A.Null=0]="Null",A[A.Boolean=1]="Boolean",A[A.Integer=2]="Integer",A[A.Long=3]="Long",A[A.Double=4]="Double",A[A.String=5]="String",A[A.Bytes=6]="Bytes",A[A.Date=7]="Date"})(Jt||(Jt={}));class Rr extends ao{constructor(f,g){super(g),this.valueType=Rr.getPrimitiveType(f),this.value=f===void 0?null:f}static of(f,g){return new Rr(f,g)}static valueFromBytes(f,g){switch(f){case Jt.Null:return null;case Jt.Boolean:return!!g[0];case Jt.Integer:return g[0]|g[1]<<8|g[2]<<16|g[3]<<24;case Jt.Double:{const T=new DataView(g.buffer);return g.forEach(function(_,H){T.setUint8(H,_)}),T.getFloat64(0,!0)}case Jt.String:return new TextDecoder("utf-8").decode(g);case Jt.Long:return Gr.fromBytesLE(Array.from(g));case Jt.Bytes:return g;case Jt.Date:return new Date(Gr.fromBytesLE(Array.from(g),!0).toNumber());default:throw new An(En.Unimplemented,`unimplemented type: ${f}`)}}toJSON(){return this.valueType===Jt.String?`"${Ur(this.value)}"`:`${this.value}`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:this.value,type:"YORKIE_PRIMITIVE"}}deepcopy(){const f=Rr.of(this.value,this.getCreatedAt());return f.setMovedAt(this.getMovedAt()),f.setRemovedAt(this.getRemovedAt()),f}getType(){return this.valueType}static getPrimitiveType(f){switch(typeof f){case"undefined":return Jt.Null;case"boolean":return Jt.Boolean;case"number":return this.isInteger(f)?Jt.Integer:Jt.Double;case"string":return Jt.String;case"object":if(f===null)return Jt.Null;if(f instanceof Gr)return Jt.Long;if(f instanceof Uint8Array)return Jt.Bytes;if(f instanceof Date)return Jt.Date}}static isSupport(f){return Rr.getPrimitiveType(f)!==void 0}static isInteger(f){return f%1===0}isNumericType(){const f=this.valueType;return f===Jt.Integer||f===Jt.Long||f===Jt.Double}getValue(){return this.value}toBytes(){switch(this.valueType){case Jt.Null:return new Uint8Array;case Jt.Boolean:return this.value?new Uint8Array([1]):new Uint8Array([0]);case Jt.Integer:{const f=this.value;return new Uint8Array([f&255,f>>8&255,f>>16&255,f>>24&255])}case Jt.Double:{const f=this.value,g=new Uint8Array(8);return new DataView(g.buffer).setFloat64(0,f,!0),g}case Jt.String:return new TextEncoder().encode(this.value);case Jt.Long:{const g=this.value.toBytesLE();return Uint8Array.from(g)}case Jt.Bytes:return this.value;case Jt.Date:{const f=this.value,g=Gr.fromNumber(f.getTime(),!0).toBytesLE();return Uint8Array.from(g)}default:throw new An(En.Unimplemented,`unimplemented type: ${this.valueType}`)}}}class qp extends Wo{constructor(f){super(f),this.value=f}static createAfter(f,g){const T=new qp(g),_=f.next;return f.next=T,T.prev=f,T.next=_,_&&(_.prev=T),T}remove(f){return this.value.remove(f)}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 pf{constructor(){const f=Rr.of(0,oo);f.setRemovedAt(oo),this.dummyHead=new qp(f),this.last=this.dummyHead,this.nodeMapByIndex=new zi,this.nodeMapByCreatedAt=new Map,this.nodeMapByIndex.insert(this.dummyHead),this.nodeMapByCreatedAt.set(this.dummyHead.getCreatedAt().toIDString(),this.dummyHead)}static create(){return new pf}get length(){return this.nodeMapByIndex.length}findNextBeforeExecutedAt(f,g){let T=this.nodeMapByCreatedAt.get(f.toIDString());for(T||u.fatal(`cant find the given node: ${f.toIDString()}`);T.getNext()&&T.getNext().getPositionedAt().after(g);)T=T.getNext();return T}release(f){this.last===f&&(this.last=f.getPrev()),f.release(),this.nodeMapByIndex.delete(f),this.nodeMapByCreatedAt.delete(f.getValue().getCreatedAt().toIDString())}insertAfter(f,g,T=g.getCreatedAt()){const _=this.findNextBeforeExecutedAt(f,T),H=qp.createAfter(_,g);_===this.last&&(this.last=H),this.nodeMapByIndex.insertAfter(_,H),this.nodeMapByCreatedAt.set(H.getCreatedAt().toIDString(),H)}moveAfter(f,g,T){const _=this.nodeMapByCreatedAt.get(f.toIDString());_||u.fatal(`cant find the given node: ${f.toIDString()}`);const H=this.nodeMapByCreatedAt.get(g.toIDString());H||u.fatal(`cant find the given node: ${g.toIDString()}`),_!==H&&(!H.getValue().getMovedAt()||T.after(H.getValue().getMovedAt()))&&(this.release(H),this.insertAfter(_.getCreatedAt(),H.getValue(),T),H.getValue().setMovedAt(T))}insert(f){this.insertAfter(this.last.getCreatedAt(),f)}getByID(f){return this.nodeMapByCreatedAt.get(f.toIDString())}subPathOf(f){const g=this.nodeMapByCreatedAt.get(f.toIDString());if(g)return String(this.nodeMapByIndex.indexOf(g))}purge(f){const g=this.nodeMapByCreatedAt.get(f.getCreatedAt().toIDString());g||u.fatal(`fail to find the given createdAt: ${f.getCreatedAt().toIDString()}`),this.release(g)}getByIndex(f){if(f>=this.length)return;const[g,T]=this.nodeMapByIndex.find(f);let _=g;if(f===0&&g===this.dummyHead||T>0)do _&&(_=_.getNext());while(_&&_.isRemoved());return _}getPrevCreatedAt(f){let g=this.nodeMapByCreatedAt.get(f.toIDString());do g=g.getPrev();while(this.dummyHead!==g&&g.isRemoved());return g.getValue().getCreatedAt()}delete(f,g){const T=this.nodeMapByCreatedAt.get(f.toIDString()),_=T.isRemoved();return T.remove(g)&&!_&&this.nodeMapByIndex.splayNode(T),T.getValue()}deleteByIndex(f,g){const T=this.getByIndex(f);if(T)return T.remove(g)&&this.nodeMapByIndex.splayNode(T),T.getValue()}getHead(){return this.dummyHead.getValue()}getLast(){return this.last.getValue()}getLastCreatedAt(){return this.last.getCreatedAt()}toTestString(){const f=[];for(const g of this){const T=`${g.getCreatedAt().toIDString()}:${g.getValue().toJSON()}`;g.isRemoved()?f.push(`{${T}}`):f.push(`[${T}]`)}return f.join("")}*[Symbol.iterator](){let f=this.dummyHead.getNext();for(;f;)yield f,f=f.getNext()}}class Qo extends Wl{constructor(f,g){super(f),this.elements=g}static create(f,g){if(!g)return new Qo(f,pf.create());const T=pf.create();for(const _ of g)T.insertAfter(T.getLastCreatedAt(),_.deepcopy());return new Qo(f,T)}subPathOf(f){return this.elements.subPathOf(f)}purge(f){this.elements.purge(f)}insertAfter(f,g){this.elements.insertAfter(f,g)}moveAfter(f,g,T){this.elements.moveAfter(f,g,T)}get(f){const g=this.elements.getByIndex(f);return g==null?void 0:g.getValue()}getByID(f){const g=this.elements.getByID(f);return g==null?void 0:g.getValue()}getHead(){return this.elements.getHead()}getLast(){return this.elements.getLast()}getPrevCreatedAt(f){return this.elements.getPrevCreatedAt(f)}delete(f,g){return this.elements.delete(f,g)}deleteByIndex(f,g){return this.elements.deleteByIndex(f,g)}getLastCreatedAt(){return this.elements.getLastCreatedAt()}get length(){return this.elements.length}*[Symbol.iterator](){for(const f of this.elements)f.isRemoved()||(yield f.getValue())}toTestString(){return this.elements.toTestString()}getDescendants(f){for(const g of this.elements){const T=g.getValue();if(f(T,this))return;T instanceof Wl&&T.getDescendants(f)}}toJSON(){const f=[];for(const g of this)f.push(g.toJSON());return`[${f.join(",")}]`}toJS(){return JSON.parse(this.toJSON())}toJSForTest(){const f={};for(let g=0;g`${f}="${JSON.parse(g.getValue())}"`).join(" ")}`:""}size(){return this.nodeMapByKey.size}toObject(){const f={};for(const[g,T]of this.nodeMapByKey)f[g]=T.getValue();return f}*[Symbol.iterator](){for(const[,f]of this.nodeMapByKey)yield f}}var Yo;(function(A){A.Content="content",A.Style="style"})(Yo||(Yo={}));class Go{constructor(f){this.attributes=$a.create(),this.content=f}static create(f){return new Go(f)}get length(){return this.content.length}substring(f,g){const T=new Go(this.content.substring(f,g));return T.attributes=this.attributes.deepcopy(),T}setAttr(f,g,T){this.attributes.set(f,g,T)}getAttrs(){return this.attributes}toString(){return this.content}toJSON(){const f=Ur(this.content),g=this.attributes.toObject(),T=[];for(const[_,H]of Object.entries(g)){const K=JSON.parse(H),oe=typeof K=="string"?`"${Ur(_)}":"${Ur(K)}"`:`"${Ur(_)}":${String(K)}`;T.push(oe)}return T.sort(),T.length===0?`{"val":"${f}"}`:`{"attrs":{${T.join(",")}},"val":"${f}"}`}getAttributes(){return this.attributes.toObject()}getContent(){return this.content}}class fi extends Ho{constructor(f,g){super(g),this.rgaTreeSplit=f}static create(f,g){return new fi(f,g)}edit(f,g,T,_,H){const K=g?Go.create(g):void 0;if(K&&_)for(const[Ft,ft]of Object.entries(_))K.setAttr(Ft,ft,T);const[oe,Ae,He]=this.rgaTreeSplit.edit(f,T,K,H),yt=He.map(Ft=>({...Ft,value:Ft.value?{attributes:di(Ft.value.getAttributes()),content:Ft.value.getContent()}:{attributes:void 0,content:""},type:Yo.Content}));return[Ae,yt,[oe,oe]]}setStyle(f,g,T,_){const[,H]=this.rgaTreeSplit.findNodeWithSplit(f[1],T),[,K]=this.rgaTreeSplit.findNodeWithSplit(f[0],T),oe=[],Ae=this.rgaTreeSplit.findBetween(K,H),He=new Map,yt=[];for(const Ft of Ae){const ft=Ft.getCreatedAt().getActorID(),sn=_!=null&&_.size?_.has(ft)?_.get(ft):oo:ko;if(Ft.canStyle(T,sn)){const In=He.get(ft),Nn=Ft.getCreatedAt();(!In||Nn.after(In))&&He.set(ft,Nn),yt.push(Ft)}}for(const Ft of yt){if(Ft.isRemoved())continue;const[ft,sn]=this.rgaTreeSplit.findIndexesFromRange(Ft.createPosRange());oe.push({type:Yo.Style,actor:T.getActorID(),from:ft,to:sn,value:{attributes:di(g)}});for(const[In,Nn]of Object.entries(g))Ft.getValue().setAttr(In,Nn,T)}return[He,oe]}indexRangeToPosRange(f,g){const T=this.rgaTreeSplit.indexToPos(f);return f===g?[T,T]:[T,this.rgaTreeSplit.indexToPos(g)]}get length(){return this.rgaTreeSplit.length}checkWeight(){return this.rgaTreeSplit.checkWeight()}toJSON(){const f=[];for(const g of this.rgaTreeSplit)g.isRemoved()||f.push(g.getValue().toJSON());return`[${f.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 f=[];for(const g of this.rgaTreeSplit)if(!g.isRemoved()){const T=g.getValue();f.push({attributes:di(T.getAttributes()),content:T.getContent()})}return f}getRGATreeSplit(){return this.rgaTreeSplit}toTestString(){return this.rgaTreeSplit.toTestString()}getRemovedNodesLen(){return this.rgaTreeSplit.getRemovedNodesLen()}purgeRemovedNodesBefore(f){return this.rgaTreeSplit.purgeRemovedNodesBefore(f)}deepcopy(){const f=new fi(this.rgaTreeSplit.deepcopy(),this.getCreatedAt());return f.remove(this.getRemovedAt()),f}findIndexesFromRange(f){return this.rgaTreeSplit.findIndexesFromRange(f)}}class Gl extends jr{constructor(f,g,T,_,H,K,oe){super(f,oe),this.fromPos=g,this.toPos=T,this.maxCreatedAtMapByActor=_,this.content=H,this.attributes=K}static create(f,g,T,_,H,K,oe){return new Gl(f,g,T,_,H,K,oe)}execute(f){const g=f.findByCreatedAt(this.getParentCreatedAt());g||u.fatal(`fail to find ${this.getParentCreatedAt()}`),g instanceof fi||u.fatal("fail to execute, only Text can execute edit");const T=g,[,_]=T.edit([this.fromPos,this.toPos],this.content,this.getExecutedAt(),Object.fromEntries(this.attributes),this.maxCreatedAtMapByActor);return this.fromPos.equals(this.toPos)||f.registerElementHasRemovedNodes(T),{opInfos:_.map(({from:H,to:K,value:oe})=>({type:"edit",from:H,to:K,value:oe,path:f.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const f=this.getParentCreatedAt().toTestString(),g=this.fromPos.toTestString(),T=this.toPos.toTestString(),_=this.content;return`${f}.EDIT(${g},${T},${_})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getContent(){return this.content}getAttributes(){return this.attributes||new Map}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}class Co extends jr{constructor(f,g,T,_,H,K){super(f,K),this.fromPos=g,this.toPos=T,this.maxCreatedAtMapByActor=_,this.attributes=H}static create(f,g,T,_,H,K){return new Co(f,g,T,_,H,K)}execute(f){const g=f.findByCreatedAt(this.getParentCreatedAt());g||u.fatal(`fail to find ${this.getParentCreatedAt()}`),g instanceof fi||u.fatal("fail to execute, only Text can execute edit");const T=g,[,_]=T.setStyle([this.fromPos,this.toPos],this.attributes?Object.fromEntries(this.attributes):{},this.getExecutedAt(),this.maxCreatedAtMapByActor);return{opInfos:_.map(({from:H,to:K,value:oe})=>({type:"style",from:H,to:K,value:oe,path:f.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const f=this.getParentCreatedAt().toTestString(),g=this.fromPos.toTestString(),T=this.toPos.toTestString(),_=this.attributes;return`${f}.STYL(${g},${T},${JSON.stringify(_)})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getAttributes(){return this.attributes}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}const da=2,fa="root",xi="text";function qo(A,f){let g=0;const T=A.children;for(let _=0;_0)throw new Error(`Text node cannot have children: ${this.type}`)}updateAncestorsSize(){let f=this.parent;const g=this.isRemoved?-1:1;for(;f;)f.size+=this.paddedSize*g,f=f.parent}get isText(){return this.type===xi}get paddedSize(){return this.size+(this.isText?0:da)}isAncestorOf(f){return Fc(this,f)}get nextSibling(){const f=this.parent.findOffset(this),g=this.parent.children[f+1];if(g)return g}splitText(f,g){if(f===0||f===this.size)return;const T=this.value.slice(0,f),_=this.value.slice(f);if(!_.length)return;this.value=T;const H=this.cloneText(f+g);return H.value=_,this.parent.insertAfterInternal(H,this),H}get children(){return this._children.filter(f=>!f.isRemoved)}get allChildren(){return[...this._children]}hasTextChild(){return this.children.some(f=>f.isText)}append(...f){if(this.isText)throw new Error("Text node cannot have children");this._children.push(...f);for(const g of f)g.parent=this,g.updateAncestorsSize()}prepend(...f){if(this.isText)throw new Error("Text node cannot have children");this._children.unshift(...f);for(const g of f)g.parent=this,g.isRemoved||g.updateAncestorsSize()}insertBefore(f,g){if(this.isText)throw new Error("Text node cannot have children");const T=this._children.indexOf(g);if(T===-1)throw new Error("child not found");this.insertAtInternal(f,T),f.updateAncestorsSize()}insertAfter(f,g){if(this.isText)throw new Error("Text node cannot have children");const T=this._children.indexOf(g);if(T===-1)throw new Error("child not found");this.insertAtInternal(f,T+1),f.updateAncestorsSize()}insertAt(f,g){if(this.isText)throw new Error("Text node cannot have children");this.insertAtInternal(f,g),f.updateAncestorsSize()}removeChild(f){if(this.isText)throw new Error("Text node cannot have children");const g=this._children.indexOf(f);if(g===-1)throw new Error("child not found");this._children.splice(g,1),f.parent=void 0}splitElement(f,g){const T=this.cloneElement(g);this.parent.insertAfterInternal(T,this),T.updateAncestorsSize();const _=this.children.slice(0,f),H=this.children.slice(f);this._children=_,T._children=H,this.size=this._children.reduce((K,oe)=>K+oe.paddedSize,0),T.size=T._children.reduce((K,oe)=>K+oe.paddedSize,0);for(const K of T._children)K.parent=T;return T}insertAfterInternal(f,g){if(this.isText)throw new Error("Text node cannot have children");const T=this._children.indexOf(g);if(T===-1)throw new Error("child not found");this.insertAtInternal(f,T+1)}insertAtInternal(f,g){if(this.isText)throw new Error("Text node cannot have children");this._children.splice(g,0,f),f.parent=this}findOffset(f){if(this.isText)throw new Error("Text node cannot have children");if(f.isRemoved){const g=this._children.indexOf(f);return this.allChildren.splice(0,g).filter(_=>!_.isRemoved).length}return this.children.indexOf(f)}findBranchOffset(f){if(this.isText)throw new Error("Text node cannot have children");let g=f;for(;g;){const T=this._children.indexOf(g);if(T!==-1)return T;g=g.parent}return-1}}function Fc(A,f){if(A===f)return!1;for(;f.parent;){if(f.parent===A)return!0;f=f.parent}return!1}var Yn;(function(A){A.Start="Start",A.End="End",A.Text="Text"})(Yn||(Yn={}));function Fa(A,f,g,T){if(f>g)throw new Error(`from is greater than to: ${f} > ${g}`);if(f>A.size)throw new Error(`from is out of range: ${f} > ${A.size}`);if(g>A.size)throw new Error(`to is out of range: ${g} > ${A.size}`);if(f===g)return;let _=0;for(const H of A.children){if(f-H.paddedSize<_&&_H.size;(H.isText||Ae)&&T([H,H.isText?Yn.Text:Yn.Start],He),Fa(H,Math.max(0,K),Math.min(oe,H.size),T),He&&T([H,Yn.End],He)}_+=H.paddedSize}}function Ci(A,f,g=0){for(const T of A.children)Ci(T,f,g+1);f(A,g)}function Ba(A,f,g=0){for(const T of A._children)Ba(T,f,g+1);f(A,g)}function pa(A,f,g=!0){if(f>A.size)throw new Error(`index is out of range: ${f} > ${A.size}`);if(A.isText)return{node:A,offset:f};let T=0,_=0;for(const H of A.children){if(g&&H.isText&&H.size>=f-_)return pa(H,f-_,g);if(f===_)return{node:A,offset:T};if(!g&&H.paddedSize===f-_)return{node:A,offset:T+1};if(H.paddedSize>f-_)return pa(H,f-_-1,g);_+=H.paddedSize,T+=1}return{node:A,offset:T}}function Ua(A){return A.isText||A.children.length===0?A:Ua(A.children[0])}function F(A,f){if(A.sizeA===f?0:A0)if(g.right)g.right.parent=g,g=g.right;else return g;else if(T<0)if(g.left)g.left.parent=g,g=g.left;else{let _=g.parent,H=g;for(;_&&H===_.left;)H=_,_=_.parent;return _}else return g}}lastEntry(){if(!this.root)return this.root;let f=this.root;for(;f.right;)f=f.right;return f}size(){return this.counter}isEmpty(){return this.counter===0}getInternal(f,g){for(;g;){const T=this.comparator(f,g.key);if(T===0)return g;T<0?g=g.left:T>0&&(g=g.right)}}putInternal(f,g,T){if(!T)return this.counter+=1,new le(f,g,!0);const _=this.comparator(f,T.key);return _<0?T.left=this.putInternal(f,g,T.left):_>0?T.right=this.putInternal(f,g,T.right):T.value=g,this.isRed(T.right)&&!this.isRed(T.left)&&(T=this.rotateLeft(T)),this.isRed(T.left)&&this.isRed(T.left.left)&&(T=this.rotateRight(T)),this.isRed(T.left)&&this.isRed(T.right)&&this.flipColors(T),T}removeInternal(f,g){if(this.comparator(g,f.key)<0)!this.isRed(f.left)&&!this.isRed(f.left.left)&&(f=this.moveRedLeft(f)),f.left=this.removeInternal(f.left,g);else{if(this.isRed(f.left)&&(f=this.rotateRight(f)),this.comparator(g,f.key)===0&&!f.right){this.counter-=1;return}if(!this.isRed(f.right)&&!this.isRed(f.right.left)&&(f=this.moveRedRight(f)),this.comparator(g,f.key)===0){this.counter-=1;const T=this.min(f.right);f.value=T.value,f.key=T.key,f.right=this.removeMin(f.right)}else f.right=this.removeInternal(f.right,g)}return this.fixUp(f)}min(f){return f.left?this.min(f.left):f}removeMin(f){if(f.left)return!this.isRed(f.left)&&!this.isRed(f.left.left)&&(f=this.moveRedLeft(f)),f.left=this.removeMin(f.left),this.fixUp(f)}fixUp(f){return this.isRed(f.right)&&(f=this.rotateLeft(f)),this.isRed(f.left)&&this.isRed(f.left.left)&&(f=this.rotateRight(f)),this.isRed(f.left)&&this.isRed(f.right)&&this.flipColors(f),f}moveRedLeft(f){return this.flipColors(f),this.isRed(f.right.left)&&(f.right=this.rotateRight(f.right),f=this.rotateLeft(f),this.flipColors(f)),f}moveRedRight(f){return this.flipColors(f),this.isRed(f.left.left)&&(f=this.rotateRight(f),this.flipColors(f)),f}isRed(f){return f&&f.isRed}rotateLeft(f){const g=f.right;return f.right=g.left,g.left=f,g.isRed=g.left.isRed,g.left.isRed=!0,g}rotateRight(f){const g=f.left;return f.left=g.right,g.right=f,g.isRed=g.right.isRed,g.right.isRed=!0,g}flipColors(f){f.isRed=!f.isRed,f.left.isRed=!f.left.isRed,f.right.isRed=!f.right.isRed}}var je;(function(A){A.Content="content",A.Style="style"})(je||(je={}));class ct{constructor(f,g){this.parentID=f,this.leftSiblingID=g}static of(f,g){return new ct(f,g)}static fromTreePos(f){const{offset:g}=f;let{node:T}=f,_;return T.isText?(T.parent.children[0]===T&&g===0?_=T.parent:_=T,T=T.parent):g===0?_=T:_=T.children[g-1],ct.of(T.id,Ze.of(_.getCreatedAt(),_.getOffset()+g))}getParentID(){return this.parentID}static fromStruct(f){return ct.of(Ze.of(Er.fromStruct(f.parentID.createdAt),f.parentID.offset),Ze.of(Er.fromStruct(f.leftSiblingID.createdAt),f.leftSiblingID.offset))}toStruct(){return{parentID:{createdAt:this.getParentID().getCreatedAt().toStruct(),offset:this.getParentID().getOffset()},leftSiblingID:{createdAt:this.getLeftSiblingID().getCreatedAt().toStruct(),offset:this.getLeftSiblingID().getOffset()}}}toTreeNodes(f){const g=this.getParentID(),T=this.getLeftSiblingID(),_=f.findFloorNode(g);let H=f.findFloorNode(T);if(!_||!H)throw new Error(`cannot find node at ${this}`);return!T.equals(g)&&T.getOffset()>0&&T.getOffset()===H.id.getOffset()&&H.insPrevID&&(H=f.findFloorNode(H.insPrevID)),[_,H]}getLeftSiblingID(){return this.leftSiblingID}equals(f){return this.getParentID().getCreatedAt().equals(f.getParentID().getCreatedAt())&&this.getParentID().getOffset()===f.getParentID().getOffset()&&this.getLeftSiblingID().getCreatedAt().equals(f.getLeftSiblingID().getCreatedAt())&&this.getLeftSiblingID().getOffset()===f.getLeftSiblingID().getOffset()}}class Ze{constructor(f,g){this.createdAt=f,this.offset=g}static of(f,g){return new Ze(f,g)}static fromStruct(f){return Ze.of(Er.fromStruct(f.createdAt),f.offset)}static createComparator(){return(f,g)=>{const T=f.getCreatedAt().compare(g.getCreatedAt());return T!==0?T:f.getOffset()>g.getOffset()?1:f.getOffset(){const _=T.deepcopy();return _.parent=g,_}),g}get value(){if(!this.isText)throw new Error(`cannot get value of element node: ${this.type}`);return this._value}set value(f){if(!this.isText)throw new Error(`cannot set value of element node: ${this.type}`);this._value=f,this.size=f.length}get isRemoved(){return!!this.removedAt}remove(f){const g=!this.removedAt;(!this.removedAt||this.removedAt.compare(f)>0)&&(this.removedAt=f),g&&(this.parent.removedAt?this.parent.size-=this.paddedSize:this.updateAncestorsSize())}cloneText(f){return new Ot(Ze.of(this.id.getCreatedAt(),f),this.type,void 0,void 0,this.removedAt)}cloneElement(f){return new Ot(Ze.of(f(),0),this.type,void 0,void 0,this.removedAt)}split(f,g,T){const _=this.isText?this.splitText(g,this.id.getOffset()):this.splitElement(g,T);if(_){if(_.insPrevID=this.id,this.insNextID){const H=f.findFloorNode(this.insNextID);H.insPrevID=_.id,_.insNextID=this.insNextID}this.insNextID=_.id,f.registerNode(_)}return _}getCreatedAt(){return this.id.getCreatedAt()}getOffset(){return this.id.getOffset()}canDelete(f,g){return!this.getCreatedAt().after(g)&&(!this.removedAt||f.after(this.removedAt))}}function Pt(A){var f;if(A.isText){const g=A;return{type:g.type,value:g.value}}return{type:A.type,children:A.children.map(Pt),attributes:A.attrs?di((f=A.attrs)===null||f===void 0?void 0:f.toObject()):void 0}}function On(A){var f;return A.isText?A.value:`<${A.type}${((f=A.attrs)===null||f===void 0?void 0:f.toXML())||""}>${A.children.map(g=>On(g)).join("")}`}function Sr(A){if(A.isText){const f=A;return{type:f.type,value:f.value,size:f.size,isRemoved:f.isRemoved}}return{type:A.type,children:A.children.map(Sr),size:A.size,isRemoved:A.isRemoved}}class Sn extends Ho{constructor(f,g){super(g),this.indexTree=new x(f),this.nodeMapByID=new Pe(Ze.createComparator()),this.removedNodeMap=new Map,this.indexTree.traverse(T=>{this.nodeMapByID.put(T.id,T)})}static create(f,g){return new Sn(f,g)}findFloorNode(f){const g=this.nodeMapByID.floorEntry(f);if(!(!g||!g.key.getCreatedAt().equals(f.getCreatedAt())))return g.value}registerNode(f){this.nodeMapByID.put(f.id,f)}findNodesAndSplitText(f,g){const[T,_]=f.toTreeNodes(this);let H=_;const K=T===H,oe=H.parent&&!K?H.parent:T;H.isText&&H.split(this,f.getLeftSiblingID().getOffset()-H.id.getOffset());const Ae=oe.allChildren,He=K?0:Ae.indexOf(H)+1;for(let yt=He;yt{if(!He.isRemoved&&!He.isText&&g){He.attrs||(He.attrs=new $a);for(const[yt,Ft]of Object.entries(g))He.attrs.set(yt,Ft,T)}}),Ae}edit(f,g,T,_,H,K){const[oe,Ae]=this.findNodesAndSplitText(f[0],_),[He,yt]=this.findNodesAndSplitText(f[1],_),Ft=this.toIndex(oe,Ae),ft=this.toPath(oe,Ae),sn=[],In=[],Nn=[],sr=new Map;this.traverseInPosRange(oe,Ae,He,yt,([$n,ni],qr)=>{if(ni===Yn.Start&&!qr)for(const rh of $n.children)Nn.push(rh);const vi=$n.getCreatedAt().getActorID(),yf=K?K.has(vi)?K.get(vi):oo:ko;if($n.canDelete(_,yf)||sn.includes($n.parent)){const rh=sr.get(vi),s0=$n.getCreatedAt();(!rh||s0.after(rh))&&sr.set(vi,s0),(ni===Yn.Text||ni===Yn.Start)&&sn.push($n),In.push([$n,ni])}});const so=this.makeDeletionChanges(In,_);for(const $n of sn)$n.remove(_),$n.isRemoved&&this.removedNodeMap.set($n.id.toIDString(),$n);for(const $n of Nn)$n.removedAt||oe.append($n);if(T>0){let $n=0,ni=oe,qr=Ae;for(;$n{oe.isRemoved&&(vi.remove(_),this.removedNodeMap.set(vi.id.toIDString(),vi)),this.nodeMapByID.put(vi.id,vi)}),qr.isRemoved||$n.push(qr);if($n.length){const qr=$n.map(vi=>Pt(vi));so.length&&so[so.length-1].from===Ft?so[so.length-1].value=qr:so.push({type:je.Content,from:Ft,to:Ft,fromPath:ft,toPath:ft,actor:_.getActorID(),value:qr})}}return[so,sr]}editT(f,g,T,_,H){const K=this.findPos(f[0]),oe=this.findPos(f[1]);this.edit([K,oe],g,T,_,H)}move(f,g,T){throw new Error(`not implemented: ${f}, ${g}, ${T}`)}purgeRemovedNodesBefore(f){var g;const T=new Set;let _=0;for(const[,H]of this.removedNodeMap)H.removedAt&&f.compare(H.removedAt)>=0&&(T.add(H),_++);for(const H of T)(g=H.parent)===null||g===void 0||g.removeChild(H),this.nodeMapByID.remove(H.id),this.purge(H),this.removedNodeMap.delete(H.id.toIDString());return _}purge(f){const g=f.insPrevID,T=f.insNextID;if(g){const _=this.findFloorNode(g);_.insNextID=T}if(T){const _=this.findFloorNode(T);_.insPrevID=g}f.insPrevID=void 0,f.insNextID=void 0}findPos(f,g=!0){const T=this.indexTree.findTreePos(f,g);return ct.fromTreePos(T)}getRemovedNodesLen(){return this.removedNodeMap.size}pathToPosRange(f){const g=this.pathToIndex(f);return[this.findPos(g),this.findPos(g+1)]}pathToPos(f){const g=this.indexTree.pathToIndex(f);return this.findPos(g)}getRoot(){return this.indexTree.getRoot()}getSize(){return this.indexTree.size}getIndexTree(){return this.indexTree}toXML(){return On(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 f=this.indexTree.getRoot(),g=(T,_=void 0,H=0)=>{var K,oe,Ae;const He={type:T.type,parent:_,size:T.size,id:T.id.toTestString(),removedAt:(K=T.removedAt)===null||K===void 0?void 0:K.toTestString(),insPrev:(oe=T.insPrevID)===null||oe===void 0?void 0:oe.toTestString(),insNext:(Ae=T.insNextID)===null||Ae===void 0?void 0:Ae.toTestString(),value:T.isText?T.value:void 0,isRemoved:T.isRemoved,children:[],depth:H};for(const yt of T.children)He.children.push(g(yt,He.id,H+1));return He};return g(f)}getRootTreeNode(){return Pt(this.indexTree.getRoot())}toTestTreeNode(){return Sr(this.indexTree.getRoot())}toSortedJSON(){return this.toJSON()}deepcopy(){const f=this.getRoot();return new Sn(f.deepcopy(),this.getCreatedAt())}toPath(f,g){const T=this.toTreePos(f,g);return T?this.indexTree.treePosToPath(T):[]}toIndex(f,g){const T=this.toTreePos(f,g);return T?this.indexTree.indexOf(T):-1}indexToPath(f){return this.indexTree.indexToPath(f)}pathToIndex(f){return this.indexTree.pathToIndex(f)}indexRangeToPosRange(f){const g=this.findPos(f[0]);return f[0]===f[1]?[g,g]:[g,this.findPos(f[1])]}indexRangeToPosStructRange(f){const[g,T]=f,_=this.findPos(g);return g===T?[_.toStruct(),_.toStruct()]:[_.toStruct(),this.findPos(T).toStruct()]}posRangeToPathRange(f,g){const[T,_]=this.findNodesAndSplitText(f[0],g),[H,K]=this.findNodesAndSplitText(f[1],g);return[this.toPath(T,_),this.toPath(H,K)]}posRangeToIndexRange(f,g){const[T,_]=this.findNodesAndSplitText(f[0],g),[H,K]=this.findNodesAndSplitText(f[1],g);return[this.toIndex(T,_),this.toIndex(H,K)]}traverseInPosRange(f,g,T,_,H){const K=this.toIndex(f,g),oe=this.toIndex(T,_);return this.indexTree.tokensBetween(K,oe,H)}toTreePos(f,g){if(!f||!g)return;if(f.isRemoved){let _;for(;f.isRemoved;)_=f,f=_.parent;const H=f.findOffset(_);return{node:f,offset:H}}if(f===g)return{node:f,offset:0};let T=f.findOffset(g);if(!g.isRemoved){if(g.isText)return{node:g,offset:g.paddedSize};T++}return{node:f,offset:T}}makeDeletionChanges(f,g){const T=[],_=[];let H=null,K=null;for(let oe=0;oe0&&sr===T[T.length-1].to?(T[T.length-1].to=so,T[T.length-1].toPath=this.toPath(Nn,ft)):T.push({type:je.Content,from:sr,to:so,fromPath:this.toPath(In,yt),toPath:this.toPath(Nn,ft),actor:g.getActorID()}))}return T}findRightToken([f,g]){if(g===Yn.Start){const oe=f.allChildren;return oe.length>0?[oe[0],oe[0].isText?Yn.Text:Yn.Start]:[f,Yn.End]}const T=f.parent,_=T.allChildren,H=_.indexOf(f);if(T&&H===_.length-1)return[T,Yn.End];const K=_[H+1];return[K,K.isText?Yn.Text:Yn.Start]}findLeftToken([f,g]){if(g===Yn.End){const oe=f.allChildren;if(oe.length>0){const Ae=oe[oe.length-1];return[Ae,Ae.isText?Yn.Text:Yn.End]}return[f,Yn.Start]}const T=f.parent,_=T.allChildren,H=_.indexOf(f);if(T&&H===0)return[T,Yn.Start];const K=_[H-1];return[K,K.isText?Yn.Text:Yn.End]}}class Vi extends jr{constructor(f,g,T,_,H,K,oe){super(f,oe),this.fromPos=g,this.toPos=T,this.contents=_,this.splitLevel=H,this.maxCreatedAtMapByActor=K}static create(f,g,T,_,H,K,oe){return new Vi(f,g,T,_,H,K,oe)}execute(f){var g;const T=f.findByCreatedAt(this.getParentCreatedAt());T||u.fatal(`fail to find ${this.getParentCreatedAt()}`),T instanceof Sn||u.fatal("fail to execute, only Tree can execute edit");const _=this.getExecutedAt(),H=T,[K]=H.edit([this.fromPos,this.toPos],(g=this.contents)===null||g===void 0?void 0:g.map(oe=>oe.deepcopy()),this.splitLevel,_,(()=>{let oe=_.getDelimiter();return this.contents!==void 0&&(oe+=this.contents.length),()=>Er.of(_.getLamport(),++oe,_.getActorID())})(),this.maxCreatedAtMapByActor);return this.fromPos.equals(this.toPos)||f.registerElementHasRemovedNodes(H),{opInfos:K.map(({from:oe,to:Ae,value:He,splitLevel:yt,fromPath:Ft,toPath:ft})=>({type:"tree-edit",path:f.createPath(this.getParentCreatedAt()),from:oe,to:Ae,value:He,splitLevel:yt,fromPath:Ft,toPath:ft}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const f=this.getParentCreatedAt().toTestString(),g=`${this.fromPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.fromPos.getLeftSiblingID().getOffset()}`,T=`${this.toPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.toPos.getLeftSiblingID().getOffset()}`,_=this.contents;return`${f}.EDIT(${g},${T},${_==null?void 0:_.join("")})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getContents(){return this.contents}getSplitLevel(){return this.splitLevel}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}class ja{constructor(f,g,T){this.clientSeq=f,this.lamport=g,this.actor=T}static of(f,g,T){return new ja(f,g,T)}next(){return new ja(this.clientSeq+1,this.lamport.add(1),this.actor)}syncLamport(f){return f.greaterThan(this.lamport)?new ja(this.clientSeq,f,this.actor):new ja(this.clientSeq,this.lamport.add(1),this.actor)}createTimeTicket(f){return Er.of(this.lamport,f,this.actor)}setActor(f){return new ja(this.clientSeq,this.lamport,f)}getClientSeq(){return this.clientSeq}getLamport(){return this.lamport}getLamportAsString(){return this.lamport.toString()}getActorID(){return this.actor}toTestString(){return this.actor?`${this.lamport.toString()}:${this.actor.substring(22,24)}:${this.clientSeq}`:`${this.lamport.toString()}:nil:${this.clientSeq}`}}const tC=new ja(0,Gr.fromInt(0,!0),VO);class mf{constructor({id:f,operations:g,presenceChange:T,message:_}){this.id=f,this.operations=g||[],this.presenceChange=T,this.message=_}static create({id:f,operations:g,presenceChange:T,message:_}){return new mf({id:f,operations:g,presenceChange:T,message:_})}getID(){return this.id}getMessage(){return this.message}hasOperations(){return this.operations.length>0}getOperations(){return this.operations}setActor(f){for(const g of this.operations)g.setActor(f);this.id=this.id.setActor(f)}hasPresenceChange(){return this.presenceChange!==void 0}getPresenceChange(){return this.presenceChange}execute(f,g,T){const _=[],H=[];for(const K of this.operations){const oe=K.execute(f,T);if(!oe)continue;const{opInfos:Ae,reverseOp:He}=oe;_.push(...Ae),He&&H.unshift(He)}return this.presenceChange&&(this.presenceChange.type===Ma.Put?g.set(this.id.getActorID(),ua(this.presenceChange.presence)):g.delete(this.id.getActorID())),{opInfos:_,reverseOps:H}}toTestString(){return`${this.operations.map(f=>f.toTestString()).join(",")}`}}class HO{constructor(f,g,T,_,H,K){this.documentKey=f,this.checkpoint=g,this.isRemoved=T,this.changes=_,this.snapshot=H,this.minSyncedTicket=K}static create(f,g,T,_,H,K){return new HO(f,g,T,_,H,K)}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 Xp{constructor(f,g){this.serverSeq=f,this.clientSeq=g}static of(f,g){return new Xp(f,g)}increaseClientSeq(f){return f===0?this:new Xp(this.serverSeq,this.clientSeq+f)}forward(f){if(this.equals(f))return this;const g=this.serverSeq.greaterThan(f.serverSeq)?this.serverSeq:f.serverSeq,T=Math.max(this.clientSeq,f.clientSeq);return Xp.of(g,T)}getServerSeqAsString(){return this.serverSeq.toString()}getClientSeq(){return this.clientSeq}getServerSeq(){return this.serverSeq}equals(f){return this.clientSeq===f.clientSeq&&this.serverSeq.equals(f.serverSeq)}toTestString(){return`serverSeq=${this.serverSeq}, clientSeq=${this.clientSeq}`}}const Hie=new Xp(Gr.fromInt(0,!0),0);class ql{constructor(f,g){this.createdAt=f,this.offset=g}static of(f,g){return new ql(f,g)}static fromStruct(f){return ql.of(Er.fromStruct(f.createdAt),f.offset)}getCreatedAt(){return this.createdAt}getOffset(){return this.offset}equals(f){return this.createdAt.compare(f.createdAt)===0&&this.offset===f.offset}hasSameCreatedAt(f){return this.createdAt.compare(f.createdAt)===0}split(f){return new ql(this.createdAt,this.offset+f)}toStruct(){return{createdAt:this.createdAt.toStruct(),offset:this.offset}}toTestString(){return`${this.createdAt.toTestString()}:${this.offset}`}toIDString(){return`${this.createdAt.toIDString()}:${this.offset}`}}const Wie=ql.of(oo,0);class ul{constructor(f,g){this.id=f,this.relativeOffset=g}static of(f,g){return new ul(f,g)}static fromStruct(f){const g=ql.fromStruct(f.id);return ul.of(g,f.relativeOffset)}getID(){return this.id}getRelativeOffset(){return this.relativeOffset}getAbsoluteID(){return ql.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(f){return this.id.equals(f.id)?this.relativeOffset===f.relativeOffset:!1}}class Bc extends Wo{constructor(f,g,T){super(g),this.id=f,this.removedAt=T}static create(f,g){return new Bc(f,g)}static createComparator(){return(f,g)=>{const T=f.getCreatedAt().compare(g.getCreatedAt());return T!==0?T:f.getOffset()>g.getOffset()?1:f.getOffset()0&&g.getID().getOffset()==f.getOffset()){if(!g.hasInsPrev())return g;g=g.getInsPrev()}return g}findFloorNode(f){const g=this.treeByID.floorEntry(f);if(g&&!(!g.key.equals(f)&&!g.key.hasSameCreatedAt(f)))return g.value}findBetween(f,g){const T=[];let _=f;for(;_&&_!==g;)T.push(_),_=_.getNext();return T}splitNode(f,g){if(g>f.getContentLength()&&u.fatal("offset should be less than or equal to length"),g===0)return f;if(g===f.getContentLength())return f.getNext();const T=f.split(g);this.treeByIndex.updateWeight(T),this.insertAfter(f,T);const _=f.getInsNext();return _&&_.setInsPrev(T),T.setInsPrev(f),T}deleteNodes(f,g,T){if(!f.length)return[[],new Map,new Map];const[_,H]=this.filterNodes(f,g,T),K=new Map,oe=new Map,Ae=this.makeChanges(H,g);for(const He of _){const yt=He.getCreatedAt().getActorID();(!K.has(yt)||He.getID().getCreatedAt().after(K.get(yt)))&&K.set(yt,He.getID().getCreatedAt()),oe.set(He.getID().toIDString(),He),He.remove(g)}return this.deleteIndexNodes(H),[Ae,K,oe]}filterNodes(f,g,T){const _=!!T,H=[],K=[],[oe,Ae]=this.findEdgesOfCandidates(f);K.push(oe);for(const He of f){const yt=He.getCreatedAt().getActorID(),Ft=_?T.has(yt)?T.get(yt):oo:ko;He.canDelete(g,Ft)?H.push(He):K.push(He)}return K.push(Ae),[H,K]}findEdgesOfCandidates(f){return[f[0].getPrev(),f[f.length-1].getNext()]}makeChanges(f,g){const T=[];let _,H;for(let K=0;K=0&&(this.treeByIndex.delete(T),this.purge(T),this.treeByID.remove(T.getID()),this.removedNodeMap.delete(T.getID().toIDString()),g++);return g}purge(f){const g=f.getPrev(),T=f.getNext(),_=f.getInsPrev(),H=f.getInsNext();g&&g.setNext(T),T&&T.setPrev(g),f.setPrev(void 0),f.setNext(void 0),_&&_.setInsNext(H),H&&H.setInsPrev(_),f.setInsPrev(void 0),f.setInsNext(void 0)}}const HF=A=>A<0?Math.ceil(A):Math.floor(A);var pi;(function(A){A[A.IntegerCnt=0]="IntegerCnt",A[A.LongCnt=1]="LongCnt"})(pi||(pi={}));class za extends ao{constructor(f,g,T){switch(super(T),this.valueType=f,f){case pi.IntegerCnt:typeof g=="number"?g>Math.pow(2,31)-1||g<-Math.pow(2,31)?this.value=Gr.fromNumber(g).toInt():this.value=HF(g):this.value=g.toInt();break;case pi.LongCnt:typeof g=="number"?this.value=Gr.fromNumber(g):this.value=g;break;default:throw new An(En.Unimplemented,`unimplemented type: ${f}`)}}static create(f,g,T){return new za(f,g,T)}static valueFromBytes(f,g){switch(f){case pi.IntegerCnt:return g[0]|g[1]<<8|g[2]<<16|g[3]<<24;case pi.LongCnt:return Gr.fromBytesLE(Array.from(g));default:throw new An(En.Unimplemented,`unimplemented type: ${f}`)}}toJSON(){return`${this.value}`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:this.value,type:"YORKIE_COUNTER"}}deepcopy(){const f=za.create(this.valueType,this.value,this.getCreatedAt());return f.setMovedAt(this.getMovedAt()),f}getType(){return this.valueType}static getCounterType(f){switch(typeof f){case"object":return f instanceof Gr?pi.LongCnt:void 0;case"number":return f>Math.pow(2,31)-1||f<-Math.pow(2,31)?pi.LongCnt:pi.IntegerCnt;default:return}}static isSupport(f){return!!za.getCounterType(f)}static isInteger(f){return f%1===0}isNumericType(){const f=this.valueType;return f===pi.IntegerCnt||f===pi.LongCnt}getValueType(){return this.valueType}getValue(){return this.value}toBytes(){switch(this.valueType){case pi.IntegerCnt:{const f=this.value;return new Uint8Array([f&255,f>>8&255,f>>16&255,f>>24&255])}case pi.LongCnt:{const g=this.value.toBytesLE();return Uint8Array.from(g)}default:throw new An(En.Unimplemented,`unimplemented type: ${this.valueType}`)}}increase(f){function g(T){if(!T.isNumericType())throw new TypeError(`Unsupported type of value: ${typeof T.getValue()}`)}return g(this),g(f),this.valueType===pi.LongCnt?this.value=this.value.add(f.getValue()):f.getType()===Jt.Long?this.value=this.value+f.getValue().toInt():this.value=Gr.fromNumber(this.value+HF(f.getValue())).toInt(),this}}class Jp extends jr{constructor(f,g,T){super(f,T),this.value=g}static create(f,g,T){return new Jp(f,g,T)}execute(f){const g=f.findByCreatedAt(this.getParentCreatedAt());g||u.fatal(`fail to find ${this.getParentCreatedAt()}`),g instanceof za||u.fatal("fail to execute, only Counter can execute increase");const T=g,_=this.value.deepcopy();return T.increase(_),{opInfos:[{type:"increase",path:f.createPath(this.getParentCreatedAt()),value:_.getValue()}],reverseOp:this.toReverseOperation()}}toReverseOperation(){const f=this.value.deepcopy(),T=f.getType()===Jt.Long?f.getValue().multiply(-1):f.getValue()*-1;return Jp.create(this.getParentCreatedAt(),Rr.of(T,f.getCreatedAt()))}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){return`${this.getParentCreatedAt().toTestString()}.INCREASE.${this.value.toJSON()}`}getValue(){return this.value}}class eh extends jr{constructor(f,g,T,_,H){super(f,H),this.fromPos=g,this.toPos=T,this.attributes=_}static create(f,g,T,_,H){return new eh(f,g,T,_,H)}execute(f){const g=f.findByCreatedAt(this.getParentCreatedAt());g||u.fatal(`fail to find ${this.getParentCreatedAt()}`),g instanceof Sn||u.fatal("fail to execute, only Tree can execute edit");const T={};return[...this.attributes].forEach(([K,oe])=>T[K]=oe),{opInfos:g.style([this.fromPos,this.toPos],T,this.getExecutedAt()).map(({from:K,to:oe,value:Ae,fromPath:He})=>({type:"tree-style",from:K,to:oe,value:Ae,fromPath:He,path:f.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const f=this.getParentCreatedAt().toTestString(),g=`${this.fromPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.fromPos.getLeftSiblingID().getOffset()}`,T=`${this.toPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.toPos.getLeftSiblingID().getOffset()}`;return`${f}.STYLE(${g},${T},${Object.entries(this.attributes||{}).map(([_,H])=>`${_}:"${H}"`).join(" ")})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getAttributes(){return this.attributes}}function Qie(A){const f=new pe.Presence,g=f.data;for(const[T,_]of Object.entries(A))g[T]=JSON.stringify(_);return f}function Yie(A){if(A.type===Ma.Put)return new pe.PresenceChange({type:pe.PresenceChange_ChangeType.PUT,presence:Qie(A.presence)});if(A.type===Ma.Clear)return new pe.PresenceChange({type:pe.PresenceChange_ChangeType.CLEAR});throw new An(En.Unimplemented,"unimplemented type")}function Gie(A){return new pe.Checkpoint({serverSeq:A.getServerSeqAsString(),clientSeq:A.getClientSeq()})}function qie(A){return new pe.ChangeID({clientSeq:A.getClientSeq(),lamport:A.getLamportAsString(),actorId:lC(A.getActorID())})}function un(A){if(A)return new pe.TimeTicket({lamport:A.getLamportAsString(),delimiter:A.getDelimiter(),actorId:lC(A.getActorID())})}function WF(A){switch(A){case Jt.Null:return pe.ValueType.NULL;case Jt.Boolean:return pe.ValueType.BOOLEAN;case Jt.Integer:return pe.ValueType.INTEGER;case Jt.Long:return pe.ValueType.LONG;case Jt.Double:return pe.ValueType.DOUBLE;case Jt.String:return pe.ValueType.STRING;case Jt.Bytes:return pe.ValueType.BYTES;case Jt.Date:return pe.ValueType.DATE;default:throw new An(En.Unsupported,`unsupported type: ${A}`)}}function QF(A){switch(A){case pi.IntegerCnt:return pe.ValueType.INTEGER_CNT;case pi.LongCnt:return pe.ValueType.LONG_CNT;default:throw new An(En.Unsupported,`unsupported type: ${A}`)}}function nC(A){if(A instanceof gr)return new pe.JSONElementSimple({type:pe.ValueType.JSON_OBJECT,createdAt:un(A.getCreatedAt()),value:i6(A)});if(A instanceof Qo)return new pe.JSONElementSimple({type:pe.ValueType.JSON_ARRAY,createdAt:un(A.getCreatedAt()),value:woe(A)});if(A instanceof fi)return new pe.JSONElementSimple({type:pe.ValueType.TEXT,createdAt:un(A.getCreatedAt())});if(A instanceof Rr)return new pe.JSONElementSimple({type:WF(A.getType()),createdAt:un(A.getCreatedAt()),value:A.toBytes()});if(A instanceof za)return new pe.JSONElementSimple({type:QF(A.getType()),createdAt:un(A.getCreatedAt()),value:A.toBytes()});if(A instanceof Sn)return new pe.JSONElementSimple({type:pe.ValueType.TREE,createdAt:un(A.getCreatedAt()),value:xoe(A)});throw new An(En.Unimplemented,"unimplemented element")}function Zie(A){return new pe.TextNodeID({createdAt:un(A.getCreatedAt()),offset:A.getOffset()})}function WO(A){return new pe.TextNodePos({createdAt:un(A.getID().getCreatedAt()),offset:A.getID().getOffset(),relativeOffset:A.getRelativeOffset()})}function QO(A){return new pe.TreePos({parentId:r0(A.getParentID()),leftSiblingId:r0(A.getLeftSiblingID())})}function r0(A){return new pe.TreeNodeID({createdAt:un(A.getCreatedAt()),offset:A.getOffset()})}function Xie(A){const f=new pe.Operation;if(A instanceof Hu){const g=A,T=new pe.Operation_Set;T.parentCreatedAt=un(g.getParentCreatedAt()),T.key=g.getKey(),T.value=nC(g.getValue()),T.executedAt=un(g.getExecutedAt()),f.body.case="set",f.body.value=T}else if(A instanceof hf){const g=A,T=new pe.Operation_Add;T.parentCreatedAt=un(g.getParentCreatedAt()),T.prevCreatedAt=un(g.getPrevCreatedAt()),T.value=nC(g.getValue()),T.executedAt=un(g.getExecutedAt()),f.body.case="add",f.body.value=T}else if(A instanceof Yl){const g=A,T=new pe.Operation_Move;T.parentCreatedAt=un(g.getParentCreatedAt()),T.prevCreatedAt=un(g.getPrevCreatedAt()),T.createdAt=un(g.getCreatedAt()),T.executedAt=un(g.getExecutedAt()),f.body.case="move",f.body.value=T}else if(A instanceof Ql){const g=A,T=new pe.Operation_Remove;T.parentCreatedAt=un(g.getParentCreatedAt()),T.createdAt=un(g.getCreatedAt()),T.executedAt=un(g.getExecutedAt()),f.body.case="remove",f.body.value=T}else if(A instanceof Gl){const g=A,T=new pe.Operation_Edit;T.parentCreatedAt=un(g.getParentCreatedAt()),T.from=WO(g.getFromPos()),T.to=WO(g.getToPos());const _=T.createdAtMapByActor;for(const[K,oe]of g.getMaxCreatedAtMapByActor())_[K]=un(oe);T.content=g.getContent();const H=T.attributes;for(const[K,oe]of g.getAttributes())H[K]=oe;T.executedAt=un(g.getExecutedAt()),f.body.case="edit",f.body.value=T}else if(A instanceof Co){const g=A,T=new pe.Operation_Style;T.parentCreatedAt=un(g.getParentCreatedAt()),T.from=WO(g.getFromPos()),T.to=WO(g.getToPos());const _=T.createdAtMapByActor;for(const[K,oe]of g.getMaxCreatedAtMapByActor())_[K]=un(oe);const H=T.attributes;for(const[K,oe]of g.getAttributes())H[K]=oe;T.executedAt=un(g.getExecutedAt()),f.body.case="style",f.body.value=T}else if(A instanceof Jp){const g=A,T=new pe.Operation_Increase;T.parentCreatedAt=un(g.getParentCreatedAt()),T.value=nC(g.getValue()),T.executedAt=un(g.getExecutedAt()),f.body.case="increase",f.body.value=T}else if(A instanceof Vi){const g=A,T=new pe.Operation_TreeEdit,_=T.createdAtMapByActor;for(const[H,K]of g.getMaxCreatedAtMapByActor())_[H]=un(K);T.parentCreatedAt=un(g.getParentCreatedAt()),T.from=QO(g.getFromPos()),T.to=QO(g.getToPos()),T.contents=ioe(g.getContents()),T.splitLevel=g.getSplitLevel(),T.executedAt=un(g.getExecutedAt()),f.body.case="treeEdit",f.body.value=T}else if(A instanceof eh){const g=A,T=new pe.Operation_TreeStyle;T.parentCreatedAt=un(g.getParentCreatedAt()),T.from=QO(g.getFromPos()),T.to=QO(g.getToPos());const _=T.attributes;for(const[H,K]of g.getAttributes())_[H]=K;T.executedAt=un(g.getExecutedAt()),f.body.case="treeStyle",f.body.value=T}else throw new An(En.Unimplemented,"unimplemented operation");return f}function Kie(A){const f=[];for(const g of A)f.push(Xie(g));return f}function Jie(A){const f=new pe.Change({id:qie(A.getID()),message:A.getMessage()});return A.hasOperations()&&(f.operations=Kie(A.getOperations())),A.hasPresenceChange()&&(f.presenceChange=Yie(A.getPresenceChange())),f}function eoe(A){const f=[];for(const g of A)f.push(Jie(g));return f}function toe(A){const f=[];for(const g of A)f.push(new pe.RHTNode({key:g.getStrKey(),element:rC(g.getValue())}));return f}function noe(A){const f=[];for(const g of A)f.push(new pe.RGANode({element:rC(g.getValue())}));return f}function roe(A){const f=[];for(const g of A){const T=new pe.TextNode;T.id=Zie(g.getID()),T.value=g.getValue().getContent(),T.removedAt=un(g.getRemovedAt());const _=T.attributes,H=g.getValue().getAttrs();for(const K of H){const oe=new pe.NodeAttr;oe.value=K.getValue(),oe.updatedAt=un(K.getUpdatedAt()),_[K.getKey()]=oe}f.push(T)}return f}function ioe(A){const f=[];if(!A||!A.length)return f;for(const g of A)f.push(new pe.TreeNodes({content:YF(g)}));return f}function YF(A){if(!A)return[];const f=[];return Ci(A,(g,T)=>{const _=new pe.TreeNode({id:r0(g.id),type:g.type,removedAt:un(g.removedAt),depth:T});if(g.isText&&(_.value=g.value),g.insPrevID&&(_.insPrevId=r0(g.insPrevID)),g.insNextID&&(_.insNextId=r0(g.insNextID)),g.attrs)for(const H of g.attrs)_.attributes[H.getKey()]=new pe.NodeAttr({value:H.getValue(),updatedAt:un(H.getUpdatedAt())});f.push(_)}),f}function ooe(A){const f=new pe.JSONElement;return f.body.case="jsonObject",f.body.value=new pe.JSONElement_JSONObject({nodes:toe(A.getRHT()),createdAt:un(A.getCreatedAt()),movedAt:un(A.getMovedAt()),removedAt:un(A.getRemovedAt())}),f}function GF(A){const f=new pe.JSONElement;return f.body.case="jsonArray",f.body.value=new pe.JSONElement_JSONArray({nodes:noe(A.getElements()),createdAt:un(A.getCreatedAt()),movedAt:un(A.getMovedAt()),removedAt:un(A.getRemovedAt())}),f}function aoe(A){const f=new pe.JSONElement;return f.body.case="primitive",f.body.value=new pe.JSONElement_Primitive({type:WF(A.getType()),value:A.toBytes(),createdAt:un(A.getCreatedAt()),movedAt:un(A.getMovedAt()),removedAt:un(A.getRemovedAt())}),f}function soe(A){const f=new pe.JSONElement;return f.body.case="text",f.body.value=new pe.JSONElement_Text({nodes:roe(A.getRGATreeSplit()),createdAt:un(A.getCreatedAt()),movedAt:un(A.getMovedAt()),removedAt:un(A.getRemovedAt())}),f}function loe(A){const f=new pe.JSONElement;return f.body.case="counter",f.body.value=new pe.JSONElement_Counter({type:QF(A.getType()),value:A.toBytes(),createdAt:un(A.getCreatedAt()),movedAt:un(A.getMovedAt()),removedAt:un(A.getRemovedAt())}),f}function qF(A){const f=new pe.JSONElement;return f.body.case="tree",f.body.value=new pe.JSONElement_Tree({nodes:YF(A.getRoot()),createdAt:un(A.getCreatedAt()),movedAt:un(A.getMovedAt()),removedAt:un(A.getRemovedAt())}),f}function rC(A){if(A instanceof gr)return ooe(A);if(A instanceof Qo)return GF(A);if(A instanceof Rr)return aoe(A);if(A instanceof fi)return soe(A);if(A instanceof za)return loe(A);if(A instanceof Sn)return qF(A);throw new An(En.Unimplemented,"unimplemented element")}function uoe(A){return new pe.ChangePack({documentKey:A.getDocumentKey(),checkpoint:Gie(A.getCheckpoint()),isRemoved:A.getIsRemoved(),changes:eoe(A.getChanges()),snapshot:A.getSnapshot(),minSyncedTicket:un(A.getMinSyncedTicket())})}function coe(A){return ja.of(A.clientSeq,Gr.fromString(A.lamport,!0),sC(A.actorId))}function hn(A){if(A)return Er.of(Gr.fromString(A.lamport,!0),A.delimiter,sC(A.actorId))}function iC(A){const f={};return Object.entries(A.data).forEach(([g,T])=>{f[g]=JSON.parse(T)}),f}function doe(A){const f=A.type;if(f===pe.PresenceChange_ChangeType.PUT){const g=iC(A.presence);return{type:Ma.Put,presence:g}}if(f===pe.PresenceChange_ChangeType.CLEAR)return{type:Ma.Clear};throw new An(En.Unsupported,`unsupported type: ${f}`)}function foe(A){const f=new Map;return Object.entries(A).forEach(([g,T])=>{f.set(g,iC(T))}),f}function ZF(A){switch(A){case pe.ValueType.NULL:return Jt.Null;case pe.ValueType.BOOLEAN:return Jt.Boolean;case pe.ValueType.INTEGER:return Jt.Integer;case pe.ValueType.LONG:return Jt.Long;case pe.ValueType.DOUBLE:return Jt.Double;case pe.ValueType.STRING:return Jt.String;case pe.ValueType.BYTES:return Jt.Bytes;case pe.ValueType.DATE:return Jt.Date}throw new An(En.Unimplemented,`unimplemented value type: ${A}`)}function YO(A){switch(A){case pe.ValueType.INTEGER_CNT:return pi.IntegerCnt;case pe.ValueType.LONG_CNT:return pi.LongCnt}throw new An(En.Unimplemented,`unimplemented value type: ${A}`)}function oC(A){switch(A.type){case pe.ValueType.JSON_OBJECT:return A.value?r6(A.value):gr.create(hn(A.createdAt));case pe.ValueType.JSON_ARRAY:return A.value?Toe(A.value):Qo.create(hn(A.createdAt));case pe.ValueType.TEXT:return fi.create(Kp.create(),hn(A.createdAt));case pe.ValueType.TREE:return koe(A.value);case pe.ValueType.NULL:case pe.ValueType.BOOLEAN:case pe.ValueType.INTEGER:case pe.ValueType.LONG:case pe.ValueType.DOUBLE:case pe.ValueType.STRING:case pe.ValueType.BYTES:case pe.ValueType.DATE:return Rr.of(Rr.valueFromBytes(ZF(A.type),A.value),hn(A.createdAt));case pe.ValueType.INTEGER_CNT:case pe.ValueType.LONG_CNT:return za.create(YO(A.type),za.valueFromBytes(YO(A.type),A.value),hn(A.createdAt))}}function GO(A){return ul.of(ql.of(hn(A.createdAt),A.offset),A.relativeOffset)}function XF(A){return ql.of(hn(A.createdAt),A.offset)}function poe(A){const f=Go.create(A.value);Object.entries(A.attributes).forEach(([T,_])=>{f.setAttr(T,_.value,hn(_.updatedAt))});const g=Bc.create(XF(A.id),f);return g.remove(hn(A.removedAt)),g}function qO(A){return ct.of(i0(A.parentId),i0(A.leftSiblingId))}function i0(A){return Ze.of(hn(A.createdAt),A.offset)}function hoe(A){if(!A.length)return;const f=[];return A.forEach(g=>{const T=KF(g.content);f.push(T)}),f}function KF(A){if(A.length===0)return;const f=[];for(const T of A)f.push(moe(T));const g=f[f.length-1];for(let T=f.length-2;T>=0;T--){let _;for(let H=T+1;H{T.set(_,H.value,hn(H.updatedAt))}),g.attrs=T}return A.insPrevId&&(g.insPrevID=i0(A.insPrevId)),A.insNextId&&(g.insNextID=i0(A.insNextId)),g.removedAt=hn(A.removedAt),g}function goe(A){const f=[];for(const g of A){let T;if(g.body.case==="set"){const _=g.body.value;T=Hu.create(_.key,oC(_.value),hn(_.parentCreatedAt),hn(_.executedAt))}else if(g.body.case==="add"){const _=g.body.value;T=hf.create(hn(_.parentCreatedAt),hn(_.prevCreatedAt),oC(_.value),hn(_.executedAt))}else if(g.body.case==="move"){const _=g.body.value;T=Yl.create(hn(_.parentCreatedAt),hn(_.prevCreatedAt),hn(_.createdAt),hn(_.executedAt))}else if(g.body.case==="remove"){const _=g.body.value;T=Ql.create(hn(_.parentCreatedAt),hn(_.createdAt),hn(_.executedAt))}else if(g.body.case==="edit"){const _=g.body.value,H=new Map;Object.entries(_.createdAtMapByActor).forEach(([oe,Ae])=>{H.set(oe,hn(Ae))});const K=new Map;Object.entries(_.attributes).forEach(([oe,Ae])=>{K.set(oe,Ae)}),T=Gl.create(hn(_.parentCreatedAt),GO(_.from),GO(_.to),H,_.content,K,hn(_.executedAt))}else if(g.body.case==="style"){const _=g.body.value,H=new Map;Object.entries(_.createdAtMapByActor).forEach(([oe,Ae])=>{H.set(oe,hn(Ae))});const K=new Map;Object.entries(_.attributes).forEach(([oe,Ae])=>{K.set(oe,Ae)}),T=Co.create(hn(_.parentCreatedAt),GO(_.from),GO(_.to),H,K,hn(_.executedAt))}else{if(g.body.case==="select")continue;if(g.body.case==="increase"){const _=g.body.value;T=Jp.create(hn(_.parentCreatedAt),oC(_.value),hn(_.executedAt))}else if(g.body.case==="treeEdit"){const _=g.body.value,H=new Map;Object.entries(_.createdAtMapByActor).forEach(([K,oe])=>{H.set(K,hn(oe))}),T=Vi.create(hn(_.parentCreatedAt),qO(_.from),qO(_.to),hoe(_.contents),_.splitLevel,H,hn(_.executedAt))}else if(g.body.case==="treeStyle"){const _=g.body.value,H=new Map;Object.entries(_.attributes).forEach(([K,oe])=>{H.set(K,oe)}),T=eh.create(hn(_.parentCreatedAt),qO(_.from),qO(_.to),H,hn(_.executedAt))}else throw new An(En.Unimplemented,"unimplemented operation")}f.push(T)}return f}function JF(A){const f=[];for(const g of A)f.push(mf.create({id:coe(g.id),operations:goe(g.operations),presenceChange:g.presenceChange?doe(g.presenceChange):void 0,message:g.message}));return f}function boe(A){return Xp.of(Gr.fromString(A.serverSeq,!0),A.clientSeq)}function yoe(A){return HO.create(A.documentKey,boe(A.checkpoint),A.isRemoved,JF(A.changes),A.snapshot,hn(A.minSyncedTicket))}function e6(A){const f=new ji;for(const T of A.nodes){const _=aC(T.element);f.set(T.key,_,_.getPositionedAt())}const g=new gr(hn(A.createdAt),f);return g.setMovedAt(hn(A.movedAt)),g.setRemovedAt(hn(A.removedAt)),g}function t6(A){const f=new pf;for(const T of A.nodes)f.insert(aC(T.element));const g=new Qo(hn(A.createdAt),f);return g.setMovedAt(hn(A.movedAt)),g.setRemovedAt(hn(A.removedAt)),g}function Ooe(A){const f=Rr.of(Rr.valueFromBytes(ZF(A.type),A.value),hn(A.createdAt));return f.setMovedAt(hn(A.movedAt)),f.setRemovedAt(hn(A.removedAt)),f}function voe(A){const f=new Kp;let g=f.getHead();for(const _ of A.nodes){const H=f.insertAfter(g,poe(_));_.insPrevId&&H.setInsPrev(f.findNode(XF(_.insPrevId))),g=H}const T=new fi(f,hn(A.createdAt));return T.setMovedAt(hn(A.movedAt)),T.setRemovedAt(hn(A.removedAt)),T}function Eoe(A){const f=za.create(YO(A.type),za.valueFromBytes(YO(A.type),A.value),hn(A.createdAt));return f.setMovedAt(hn(A.movedAt)),f.setRemovedAt(hn(A.removedAt)),f}function n6(A){const f=KF(A.nodes);return Sn.create(f,hn(A.createdAt))}function aC(A){if(A.body.case==="jsonObject")return e6(A.body.value);if(A.body.case==="jsonArray")return t6(A.body.value);if(A.body.case==="primitive")return Ooe(A.body.value);if(A.body.case==="text")return voe(A.body.value);if(A.body.case==="counter")return Eoe(A.body.value);if(A.body.case==="tree")return n6(A.body.value);throw new An(En.Unimplemented,"unimplemented element")}function Soe(A){if(!A)return{root:gr.create(oo),presences:new Map};const f=pe.Snapshot.fromBinary(A);return{root:aC(f.root),presences:foe(f.presences)}}function r6(A){if(!A)throw new Error("bytes is empty");const f=pe.JSONElement.fromBinary(A);return e6(f.body.value)}function i6(A){return rC(A).toBinary()}function Toe(A){if(!A)throw new Error("bytes is empty");const f=pe.JSONElement.fromBinary(A);return t6(f.body.value)}function woe(A){return GF(A).toBinary()}function koe(A){if(!A)throw new Error("bytes is empty");const f=pe.JSONElement.fromBinary(A);return n6(f.body.value)}function xoe(A){return qF(A).toBinary()}function Coe(A){return A?Array.from(A).map(f=>f.toString(16).padStart(2,"0")).join(""):""}function sC(A){return Coe(A)}function Aoe(A){return new Uint8Array(A.match(/.{1,2}/g).map(f=>parseInt(f,16)))}function lC(A){return Aoe(A)}const Zl={fromPresence:iC,toChangePack:uoe,fromChangePack:yoe,fromChanges:JF,objectToBytes:i6,bytesToObject:r6,bytesToSnapshot:Soe,toHexString:sC,toUint8Array:lC};class _oe{constructor(f,g,T,_){this.reconnectStreamDelay=f,this.doc=g,this.docID=T,this.isRealtimeSync=_,this.syncMode=Wu.PushPull,this.remoteChangeEventReceived=!1}changeRealtimeSync(f){return this.isRealtimeSync===f?!1:f?(this.isRealtimeSync=!0,!0):(this.cancelWatchStream(),this.isRealtimeSync=!1,!0)}changeSyncMode(f){this.syncMode=f}needRealtimeSync(){return this.isRealtimeSync&&(this.doc.hasLocalChanges()||this.remoteChangeEventReceived)}async runWatchLoop(f){const g=async()=>{if(this.watchStream)return Promise.resolve();this.watchLoopTimerID&&(clearTimeout(this.watchLoopTimerID),this.watchLoopTimerID=void 0);try{[this.watchStream,this.watchAbortController]=await f(()=>{this.watchStream=void 0,this.watchAbortController=void 0,this.watchLoopTimerID=setTimeout(g,this.reconnectStreamDelay)})}catch{}};await g()}cancelWatchStream(){this.watchStream&&this.watchAbortController&&(this.watchAbortController.abort(),this.watchStream=void 0,this.watchAbortController=void 0),clearTimeout(this.watchLoopTimerID),this.watchLoopTimerID=void 0}}class th{constructor(f,g,T,_){this.id=f,this.delimiter=Gp,this.root=g,this.operations=[],this.previousPresence=ua(T),this.presenceChange=void 0,this.reversePresenceKeys=new Set,this.message=_}static create(f,g,T,_){return new th(f,g,T,_)}push(f){this.operations.push(f)}registerElement(f,g){this.root.registerElement(f,g)}registerRemovedElement(f){this.root.registerRemovedElement(f)}registerElementHasRemovedNodes(f){this.root.registerElementHasRemovedNodes(f)}getChange(){return mf.create({id:this.id,operations:this.operations,presenceChange:this.presenceChange,message:this.message})}hasChange(){return this.operations.length>0||this.presenceChange!==void 0}setPresenceChange(f){this.presenceChange=f}setReversePresence(f,g){for(const T of Object.keys(f))g!=null&&g.addToHistory?this.reversePresenceKeys.add(T):this.reversePresenceKeys.delete(T)}getReversePresence(){if(this.reversePresenceKeys.size===0)return;const f={};for(const g of this.reversePresenceKeys)f[g]=this.previousPresence[g];return f}issueTimeTicket(){return this.delimiter+=1,this.id.createTimeTicket(this.delimiter)}getLastTimeTicket(){return this.id.createTimeTicket(this.delimiter)}}class o0{constructor(f){this.rootObject=f,this.elementPairMapByCreatedAt=new Map,this.removedElementSetByCreatedAt=new Set,this.elementHasRemovedNodesSetByCreatedAt=new Set,this.opsForTest=[],this.registerElement(f,void 0)}static create(){return new o0(gr.create(oo))}findByCreatedAt(f){const g=this.elementPairMapByCreatedAt.get(f.toIDString());if(g)return g.element}findElementPairByCreatedAt(f){return this.elementPairMapByCreatedAt.get(f.toIDString())}createSubPaths(f){let g=this.elementPairMapByCreatedAt.get(f.toIDString());if(!g)return[];const T=[];for(;g.parent;){const _=g.element.getCreatedAt(),H=g.parent.subPathOf(_);H===void 0&&u.fatal(`cant find the given element: ${_.toIDString()}`),T.unshift(H),g=this.elementPairMapByCreatedAt.get(g.parent.getCreatedAt().toIDString())}return T.unshift("$"),T}createPath(f){return this.createSubPaths(f).join(".")}registerElement(f,g){this.elementPairMapByCreatedAt.set(f.getCreatedAt().toIDString(),{parent:g,element:f}),f instanceof Wl&&f.getDescendants((T,_)=>(this.registerElement(T,_),!1))}deregisterElement(f){let g=0;const T=_=>{const H=_.getCreatedAt().toIDString();this.elementPairMapByCreatedAt.delete(H),this.removedElementSetByCreatedAt.delete(H),g++};return T(f),f instanceof Wl&&f.getDescendants(_=>(T(_),!1)),g}registerRemovedElement(f){this.removedElementSetByCreatedAt.add(f.getCreatedAt().toIDString())}registerElementHasRemovedNodes(f){this.elementHasRemovedNodesSetByCreatedAt.add(f.getCreatedAt().toIDString())}getElementMapSize(){return this.elementPairMapByCreatedAt.size}getRemovedElementSetSize(){return this.removedElementSetByCreatedAt.size}getObject(){return this.rootObject}getGarbageLen(){let f=0;const g=new Set;for(const T of this.removedElementSetByCreatedAt){g.add(T);const _=this.elementPairMapByCreatedAt.get(T);_.element instanceof Wl&&_.element.getDescendants(H=>(g.add(H.getCreatedAt().toIDString()),!1))}f+=g.size;for(const T of this.elementHasRemovedNodesSetByCreatedAt){const H=this.elementPairMapByCreatedAt.get(T).element;f+=H.getRemovedNodesLen()}return f}deepcopy(){return new o0(this.rootObject.deepcopy())}garbageCollect(f){let g=0;for(const T of this.removedElementSetByCreatedAt){const _=this.elementPairMapByCreatedAt.get(T);_.element.getRemovedAt()&&f.compare(_.element.getRemovedAt())>=0&&(_.parent.purge(_.element),g+=this.deregisterElement(_.element))}for(const T of this.elementHasRemovedNodesSetByCreatedAt){const H=this.elementPairMapByCreatedAt.get(T).element,K=H.purgeRemovedNodesBefore(f);K>0&&this.elementHasRemovedNodesSetByCreatedAt.delete(H.getCreatedAt().toIDString()),g+=K}return g}toJSON(){return this.rootObject.toJSON()}toSortedJSON(){return this.rootObject.toSortedJSON()}}function o6(A,f){const g=new a0(A);return new Proxy(f,g.getHandlers())}class a0{constructor(f){this.context=f,this.handlers={set:(g,T,_)=>(u.isEnabled(s.Trivial)&&u.trivial(`obj[${T}]=${JSON.stringify(_)}`),a0.setInternal(f,g,T,_),!0),get:(g,T)=>(u.isEnabled(s.Trivial)&&u.trivial(`obj[${T}]`),T==="getID"?()=>g.getCreatedAt():T==="toJSON"||T==="toString"?()=>g.toJSON():T==="toJS"?()=>g.toJS():T==="toJSForTest"?()=>g.toJSForTest():gf(f,g.get(T))),ownKeys:g=>g.getKeys(),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),deleteProperty:(g,T)=>(u.isEnabled(s.Trivial)&&u.trivial(`obj[${T}]`),a0.deleteInternal(f,g,T),!0)}}static setInternal(f,g,T,_){if(T.includes("."))throw new An(En.InvalidObjectKey,"key must not contain the '.'.");const H=f.issueTimeTicket(),K=JO(f,_,H),oe=g.set(T,K,H);f.registerElement(K,g),oe&&f.registerRemovedElement(oe),f.push(Hu.create(T,K.deepcopy(),g.getCreatedAt(),H))}static buildObjectMembers(f,g){const T={};for(const[_,H]of Object.entries(g)){if(_.includes("."))throw new An(En.InvalidObjectKey,"key must not contain the '.'.");const K=f.issueTimeTicket(),oe=JO(f,H,K);T[_]=oe}return T}static deleteInternal(f,g,T){const _=f.issueTimeTicket(),H=g.deleteByKey(T,_);H&&(f.push(Ql.create(g.getCreatedAt(),H.getCreatedAt(),_)),f.registerRemovedElement(H))}getHandlers(){return this.handlers}}function Roe(A,f){const g=new ti(A,f);return new Proxy(f,g.getHandlers())}function Ioe(A){return typeof A=="string"||A instanceof String?!isNaN(A):!1}function Doe(A){return["concat","entries","every","filter","find","findIndex","forEach","join","keys","map","reduce","reduceRight","slice","some","toLocaleString","toString","values"].includes(A)}class ti{constructor(f,g){this.context=f,this.array=g,this.handlers={get:(T,_,H)=>_==="getID"?()=>T.getCreatedAt():_==="getElementByID"?K=>{const oe=T.getByID(K);if(!(!oe||oe.isRemoved()))return Uc(f,oe)}:_==="getElementByIndex"?K=>{const oe=T.get(K);return Uc(f,oe)}:_==="getLast"?()=>Uc(f,T.getLast()):_==="deleteByID"?K=>{const oe=ti.deleteInternalByID(f,T,K);return Uc(f,oe)}:_==="insertAfter"?(K,oe)=>{const Ae=ti.insertAfterInternal(f,T,K,oe);return Uc(f,Ae)}:_==="insertBefore"?(K,oe)=>{const Ae=ti.insertBeforeInternal(f,T,K,oe);return Uc(f,Ae)}:_==="moveBefore"?(K,oe)=>{ti.moveBeforeInternal(f,T,K,oe)}:_==="moveAfter"?(K,oe)=>{ti.moveAfterInternal(f,T,K,oe)}:_==="moveFront"?K=>{ti.moveFrontInternal(f,T,K)}:_==="moveLast"?K=>{ti.moveLastInternal(f,T,K)}:Ioe(_)?gf(f,T.get(Number(_))):_==="push"?K=>ti.pushInternal(f,T,K):_==="splice"?(K,oe,...Ae)=>ti.splice(f,T,K,oe,...Ae):_==="length"?T.length:typeof _=="symbol"&&_===Symbol.iterator?ti.iteratorInternal.bind(this,f,T):_==="includes"?(K,oe)=>ti.includes(f,T,K,oe):_==="indexOf"?(K,oe)=>ti.indexOf(f,T,K,oe):_==="lastIndexOf"?(K,oe)=>ti.lastIndexOf(f,T,K,oe):_==="toTestString"?()=>ti.toTestString(T):typeof _=="string"&&Doe(_)?(...K)=>{const oe=Array.from(T).map(Ae=>gf(f,Ae));return Array.prototype[_].apply(oe,K)}:Reflect.get(T,_,H),deleteProperty:(T,_)=>(u.isEnabled(s.Trivial)&&u.trivial(`array[${_}]`),ti.deleteInternalByIndex(f,T,Number.parseInt(_)),!0)}}static*iteratorInternal(f,g){for(const T of g)yield Uc(f,T)}static buildArrayElements(f,g){const T=[];for(const _ of g){const H=f.issueTimeTicket(),K=JO(f,_,H);T.push(K)}return T}static pushInternal(f,g,T){return ti.insertAfterInternal(f,g,g.getLastCreatedAt(),T),g.length}static moveBeforeInternal(f,g,T,_){const H=f.issueTimeTicket(),K=g.getPrevCreatedAt(T);g.moveAfter(K,_,H),f.push(Yl.create(g.getCreatedAt(),K,_,H))}static moveAfterInternal(f,g,T,_){const H=f.issueTimeTicket();g.moveAfter(T,_,H),f.push(Yl.create(g.getCreatedAt(),T,_,H))}static moveFrontInternal(f,g,T){const _=f.issueTimeTicket(),H=g.getHead();g.moveAfter(H.getCreatedAt(),T,_),f.push(Yl.create(g.getCreatedAt(),H.getCreatedAt(),T,_))}static moveLastInternal(f,g,T){const _=f.issueTimeTicket(),H=g.getLastCreatedAt();g.moveAfter(H,T,_),f.push(Yl.create(g.getCreatedAt(),H,T,_))}static insertAfterInternal(f,g,T,_){const H=f.issueTimeTicket(),K=JO(f,_,H);return g.insertAfter(T,K),f.registerElement(K,g),f.push(hf.create(g.getCreatedAt(),T,K.deepcopy(),H)),K}static insertBeforeInternal(f,g,T,_){return ti.insertAfterInternal(f,g,g.getPrevCreatedAt(T),_)}static deleteInternalByIndex(f,g,T){const _=f.issueTimeTicket(),H=g.deleteByIndex(T,_);if(H)return f.push(Ql.create(g.getCreatedAt(),H.getCreatedAt(),_)),f.registerRemovedElement(H),H}static deleteInternalByID(f,g,T){const _=f.issueTimeTicket(),H=g.delete(T,_);return f.push(Ql.create(g.getCreatedAt(),H.getCreatedAt(),_)),f.registerRemovedElement(H),H}static splice(f,g,T,_,...H){const K=g.length,oe=T>=0?Math.min(T,K):Math.max(K+T,0),Ae=_===void 0?K:_<0?oe:Math.min(oe+_,K),He=[];for(let yt=oe;yt=K)return!1;if(Rr.isSupport(T))return Array.from(g).map(He=>gf(f,He)).includes(T,oe);for(let Ae=oe;Ae=K)return-1;if(Rr.isSupport(T))return Array.from(g).map(He=>gf(f,He)).indexOf(T,oe);for(let Ae=oe;Ae=K?K-1:_<0?_+K:_;if(oe<0)return-1;if(Rr.isSupport(T))return Array.from(g).map(He=>gf(f,He)).lastIndexOf(T,oe);for(let Ae=oe;Ae>0;Ae--)if(((H=g.get(Ae))===null||H===void 0?void 0:H.getID())===T.getID())return Ae;return-1}static toTestString(f){return f.toTestString()}getHandlers(){return this.handlers}}class ZO{constructor(f,g){this.context=f,this.text=g}initialize(f,g){this.context=f,this.text=g}getID(){return this.text.getID()}edit(f,g,T,_){if(!this.context||!this.text){u.fatal("it is not initialized yet");return}if(f>g){u.fatal("from should be less than or equal to to");return}const H=this.text.indexRangeToPosRange(f,g);u.isEnabled(s.Debug)&&u.debug(`EDIT: f:${f}->${H[0].toTestString()}, t:${g}->${H[1].toTestString()} c:${T}`);const K=_?io(_):void 0,oe=this.context.issueTimeTicket(),[Ae,,He]=this.text.edit(H,T,oe,K);return this.context.push(new Gl(this.text.getCreatedAt(),H[0],H[1],Ae,T,K?new Map(Object.entries(K)):new Map,oe)),H[0].equals(H[1])||this.context.registerElementHasRemovedNodes(this.text),this.text.findIndexesFromRange(He)}delete(f,g){return this.edit(f,g,"")}empty(){return this.edit(0,this.length,"")}setStyle(f,g,T){if(!this.context||!this.text)return u.fatal("it is not initialized yet"),!1;if(f>g)return u.fatal("from should be less than or equal to to"),!1;const _=this.text.indexRangeToPosRange(f,g);u.isEnabled(s.Debug)&&u.debug(`STYL: f:${f}->${_[0].toTestString()}, t:${g}->${_[1].toTestString()} a:${JSON.stringify(T)}`);const H=io(T),K=this.context.issueTimeTicket(),[oe]=this.text.setStyle(_,H,K);return this.context.push(new Co(this.text.getCreatedAt(),_[0],_[1],oe,new Map(Object.entries(H)),K)),!0}indexRangeToPosRange(f){if(!this.context||!this.text){u.fatal("it is not initialized yet");return}const g=this.text.indexRangeToPosRange(f[0],f[1]);return[g[0].toStruct(),g[1].toStruct()]}posRangeToIndexRange(f){if(!this.context||!this.text){u.fatal("it is not initialized yet");return}const g=this.text.findIndexesFromRange([ul.fromStruct(f[0]),ul.fromStruct(f[1])]);return[g[0],g[1]]}toTestString(){if(!this.context||!this.text){u.fatal("it is not initialized yet");return}return this.text.toTestString()}values(){if(!this.context||!this.text){u.fatal("it is not initialized yet");return}return this.text.values()}get length(){return this.text.length}checkWeight(){return this.text.checkWeight()}toString(){return!this.context||!this.text?(u.fatal("it is not initialized yet"),""):this.text.toString()}createRangeForTest(f,g){if(!this.context||!this.text){u.fatal("it is not initialized yet");return}return this.text.indexRangeToPosRange(f,g)}}class XO{constructor(f,g){this.valueType=f,this.value=g}initialize(f,g){this.valueType=g.getValueType(),this.context=f,this.counter=g,this.value=g.getValue()}getID(){return this.counter.getID()}getValue(){return this.value}getValueType(){return this.valueType}increase(f){if(!this.context||!this.counter){u.fatal("it is not initialized yet");return}const g=this.context.issueTimeTicket(),T=Rr.of(f,g);if(!T.isNumericType())throw new TypeError(`Unsupported type of value: ${typeof T.getValue()}`);return this.counter.increase(T),this.context.push(Jp.create(this.counter.getCreatedAt(),T,g)),this}}function uC(A,f,g){const{type:T}=A,_=g.issueTimeTicket();if(T===xi){a6(A);const{value:H}=A,K=Ot.create(Ze.of(_,0),T,H);f.append(K)}else{const{children:H=[]}=A;let{attributes:K}=A,oe;if(typeof K=="object"&&!Qp(K)){K=io(K),oe=new $a;for(const[He,yt]of Object.entries(K))oe.set(He,yt,_)}const Ae=Ot.create(Ze.of(_,0),T,void 0,oe);f.append(Ae);for(const He of H)uC(He,Ae,g)}}function Noe(A,f){const{type:g}=f,T=A.issueTimeTicket();let _;if(f.type===xi){const{value:H}=f;_=Ot.create(Ze.of(T,0),g,H)}else if(f){const{children:H=[]}=f;let{attributes:K}=f,oe;if(typeof K=="object"&&!Qp(K)){K=io(K),oe=new $a;for(const[Ae,He]of Object.entries(K))oe.set(Ae,He,T)}_=Ot.create(Ze.of(A.issueTimeTicket(),0),g,void 0,oe);for(const Ae of H)uC(Ae,_,A)}return _}function a6(A){if(!A.value.length)throw new Error("text node cannot have empty value");return!0}function s6(A){if(!A.length)return!0;if(A[0].type===xi)for(const g of A){const{type:T}=g;if(T!==xi)throw new Error("element node and text node cannot be passed together");a6(g)}else for(const g of A){const{type:T}=g;if(T===xi)throw new Error("element node and text node cannot be passed together")}return!0}class KO{constructor(f){this.initialRoot=f}initialize(f,g){this.context=f,this.tree=g}getID(){return this.tree.getID()}buildRoot(f){if(!this.initialRoot)return Ot.create(Ze.of(f.issueTimeTicket(),0),fa);const g=Ot.create(Ze.of(f.issueTimeTicket(),0),this.initialRoot.type);for(const T of this.initialRoot.children)uC(T,g,f);return g}getSize(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getSize()}getIndexTree(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getIndexTree()}styleByPath(f,g){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(!f.length)throw new Error("path should not be empty");const[T,_]=this.tree.pathToPosRange(f),H=this.context.issueTimeTicket(),K=g?io(g):void 0;this.tree.style([T,_],K,H),this.context.push(eh.create(this.tree.getCreatedAt(),T,_,K?new Map(Object.entries(K)):new Map,H))}style(f,g,T){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(f>g)throw new Error("from should be less than or equal to to");const _=this.tree.findPos(f),H=this.tree.findPos(g),K=this.context.issueTimeTicket(),oe=T?io(T):void 0;this.tree.style([_,H],oe,K),this.context.push(eh.create(this.tree.getCreatedAt(),_,H,oe?new Map(Object.entries(oe)):new Map,K))}editInternal(f,g,T,_=0){var H;if(T.length!==0&&T[0]&&(s6(T),T[0].type!==xi))for(const He of T){const{children:yt=[]}=He;s6(yt)}const K=this.context.getLastTimeTicket();let oe=new Array;if(((H=T[0])===null||H===void 0?void 0:H.type)===xi){let He="";for(const yt of T){const{value:Ft}=yt;He+=Ft}oe.push(Ot.create(Ze.of(this.context.issueTimeTicket(),0),xi,He))}else oe=T.map(He=>He&&Noe(this.context,He)).filter(He=>He);const[,Ae]=this.tree.edit([f,g],oe.length?oe.map(He=>He==null?void 0:He.deepcopy()):void 0,_,K,()=>this.context.issueTimeTicket());return this.context.push(Vi.create(this.tree.getCreatedAt(),f,g,oe.length?oe:void 0,_,Ae,K)),f.equals(g)||this.context.registerElementHasRemovedNodes(this.tree),!0}editByPath(f,g,T,_=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(f.length!==g.length)throw new Error("path length should be equal");if(!f.length||!g.length)throw new Error("path should not be empty");const H=this.tree.pathToPos(f),K=this.tree.pathToPos(g);return this.editInternal(H,K,T?[T]:[],_)}editBulkByPath(f,g,T,_=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(f.length!==g.length)throw new Error("path length should be equal");if(!f.length||!g.length)throw new Error("path should not be empty");const H=this.tree.pathToPos(f),K=this.tree.pathToPos(g);return this.editInternal(H,K,T,_)}edit(f,g,T,_=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(f>g)throw new Error("from should be less than or equal to to");const H=this.tree.findPos(f),K=this.tree.findPos(g);return this.editInternal(H,K,T?[T]:[],_)}editBulk(f,g,T,_=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(f>g)throw new Error("from should be less than or equal to to");const H=this.tree.findPos(f),K=this.tree.findPos(g);return this.editInternal(H,K,T,_)}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()}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(f){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.indexToPath(f)}pathToIndex(f){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.pathToIndex(f)}pathRangeToPosRange(f){if(!this.context||!this.tree){u.fatal("it is not initialized yet");return}const g=[this.tree.pathToIndex(f[0]),this.tree.pathToIndex(f[1])],T=this.tree.indexRangeToPosRange(g);return[T[0].toStruct(),T[1].toStruct()]}indexRangeToPosRange(f){if(!this.context||!this.tree){u.fatal("it is not initialized yet");return}return this.tree.indexRangeToPosStructRange(f)}posRangeToIndexRange(f){if(!this.context||!this.tree){u.fatal("it is not initialized yet");return}const g=[ct.fromStruct(f[0]),ct.fromStruct(f[1])];return this.tree.posRangeToIndexRange(g,this.context.getLastTimeTicket())}posRangeToPathRange(f){if(!this.context||!this.tree){u.fatal("it is not initialized yet");return}const g=[ct.fromStruct(f[0]),ct.fromStruct(f[1])];return this.tree.posRangeToPathRange(g,this.context.getLastTimeTicket())}}function l6(A,f){return o6(A,f)}function Uc(A,f){if(f){if(f instanceof Rr)return f;if(f instanceof gr)return o6(A,f);if(f instanceof Qo)return Roe(A,f);if(f instanceof fi)return new ZO(A,f);if(f instanceof za){const g=new XO(pi.IntegerCnt,0);return g.initialize(A,f),g}else if(f instanceof Sn){const g=new KO;return g.initialize(A,f),g}}else return;throw new TypeError(`Unsupported type of element: ${typeof f}`)}function gf(A,f){const g=Uc(A,f);return g instanceof Rr?g.getValue():g}function JO(A,f,g){let T;if(Rr.isSupport(f))T=Rr.of(f,g);else if(Array.isArray(f))T=Qo.create(g,ti.buildArrayElements(A,f));else if(typeof f=="object")f instanceof ZO?(T=fi.create(Kp.create(),g),f.initialize(A,T)):f instanceof XO?(T=za.create(f.getValueType(),f.getValue(),g),f.initialize(A,T)):f instanceof KO?(T=Sn.create(f.buildRoot(A),g),f.initialize(A,T)):T=gr.create(g,a0.buildObjectMembers(A,f));else throw new TypeError(`Unsupported type of value: ${typeof f}`);return T}const u6=50;class Poe{constructor(){this.undoStack=[],this.redoStack=[]}hasUndo(){return this.undoStack.length>0}hasRedo(){return this.redoStack.length>0}pushUndo(f){this.undoStack.length>=u6&&this.undoStack.shift(),this.undoStack.push(f)}popUndo(){return this.undoStack.pop()}pushRedo(f){this.redoStack.length>=u6&&this.redoStack.shift(),this.redoStack.push(f)}popRedo(){return this.redoStack.pop()}clearRedo(){this.redoStack=[]}getUndoStackForTest(){return this.undoStack}getRedoStackForTest(){return this.redoStack}}const Loe="yorkie-devtools-panel",Moe="yorkie-devtools-sdk";var ks;(function(A){A.Detached="detached",A.Attached="attached",A.Removed="removed"})(ks||(ks={}));var Ln;(function(A){A.Snapshot="snapshot",A.LocalChange="local-change",A.RemoteChange="remote-change",A.Initialized="initialized",A.Watched="watched",A.Unwatched="unwatched",A.PresenceChanged="presence-changed"})(Ln||(Ln={}));class c6{constructor(f,g){this.opts=g||{},this.key=f,this.status=ks.Detached,this.root=o0.create(),this.changeID=tC,this.checkpoint=Hie,this.localChanges=[],this.eventStream=h(T=>{this.eventStreamObserver=T}),this.onlineClients=new Set,this.presences=new Map,this.isUpdating=!1,this.internalHistory=new Poe,this.history={canUndo:this.canUndo.bind(this),canRedo:this.canRedo.bind(this),undo:this.undo.bind(this),redo:this.redo.bind(this)}}update(f,g){if(this.getStatus()===ks.Removed)throw new An(En.DocumentRemoved,`${this.key} is removed`);this.ensureClone();const T=this.changeID.getActorID(),_=th.create(this.changeID.next(),this.clone.root,this.clone.presences.get(T)||{},g);try{const H=l6(_,this.clone.root.getObject());this.presences.has(T)||this.clone.presences.set(T,{}),this.isUpdating=!0,f(H,new Yp(_,this.clone.presences.get(T)))}catch(H){throw this.clone=void 0,u.error(H),H}finally{this.isUpdating=!1}if(_.hasChange()){u.isEnabled(s.Trivial)&&u.trivial(`trying to update a local change: ${this.toJSON()}`);const H=_.getChange(),{opInfos:K,reverseOps:oe}=H.execute(this.root,this.presences,_r.Local),Ae=_.getReversePresence();Ae&&oe.push({type:"presence",value:Ae}),this.localChanges.push(H),oe.length>0&&this.internalHistory.pushUndo(oe),K.length>0&&this.internalHistory.clearRedo(),this.changeID=H.getID(),K.length>0&&this.publish({type:Ln.LocalChange,value:{message:H.getMessage()||"",operations:K,actor:T}}),H.hasPresenceChange()&&this.publish({type:Ln.PresenceChanged,value:{clientID:T,presence:this.getPresence(T)}}),u.isEnabled(s.Trivial)&&u.trivial(`after update a local change: ${this.toJSON()}`)}}subscribe(f,g,T,_){if(typeof f=="string"){if(typeof g!="function")throw new Error("Second argument must be a callback function");if(f==="presence"){const oe=g;return this.eventStream.subscribe(Ae=>{Ae.type!==Ln.Initialized&&Ae.type!==Ln.Watched&&Ae.type!==Ln.Unwatched&&Ae.type!==Ln.PresenceChanged||oe(Ae)},T,_)}if(f==="my-presence"){const oe=g;return this.eventStream.subscribe(Ae=>{Ae.type!==Ln.Initialized&&Ae.type!==Ln.Watched&&Ae.type!==Ln.Unwatched&&Ae.type!==Ln.PresenceChanged||Ae.type!==Ln.Initialized&&Ae.value.clientID!==this.changeID.getActorID()||oe(Ae)},T,_)}if(f==="others"){const oe=g;return this.eventStream.subscribe(Ae=>{Ae.type!==Ln.Watched&&Ae.type!==Ln.Unwatched&&Ae.type!==Ln.PresenceChanged||Ae.value.clientID!==this.changeID.getActorID()&&oe(Ae)},T,_)}const H=f,K=g;return this.eventStream.subscribe(oe=>{if(oe.type===Ln.Initialized||oe.type===Ln.Watched||oe.type===Ln.Unwatched||oe.type===Ln.PresenceChanged)return;if(oe.type===Ln.Snapshot){H==="$"&&K(oe);return}const{message:Ae,operations:He,actor:yt}=oe.value,Ft=[];for(const ft of He)this.isSameElementOrChildOf(ft.path,H)&&Ft.push(ft);Ft.length&&K({type:oe.type,value:{message:Ae,operations:Ft,actor:yt}})},T,_)}if(typeof f=="function"){const H=f,K=g,oe=T;return this.eventStream.subscribe(Ae=>{Ae.type===Ln.Initialized||Ae.type===Ln.Watched||Ae.type===Ln.Unwatched||Ae.type===Ln.PresenceChanged||H(Ae)},K,oe)}throw new Error(`"${f}" is not a valid`)}publish(f){this.eventStreamObserver&&this.eventStreamObserver.next(f)}isSameElementOrChildOf(f,g){if(g===f)return!0;const T=f.split(".");return g.split(".").every((H,K)=>H===T[K])}applyChangePack(f){for(f.hasSnapshot()?this.applySnapshot(f.getCheckpoint().getServerSeq(),f.getSnapshot()):f.hasChanges()&&this.applyChanges(f.getChanges());this.localChanges.length&&!(this.localChanges[0].getID().getClientSeq()>f.getCheckpoint().getClientSeq());)this.localChanges.shift();this.checkpoint=this.checkpoint.forward(f.getCheckpoint()),this.garbageCollect(f.getMinSyncedTicket()),f.getIsRemoved()&&this.setStatus(ks.Removed),u.isEnabled(s.Trivial)&&u.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:ua(this.presences)})}createChangePack(){const f=Array.from(this.localChanges),g=this.checkpoint.increaseClientSeq(f.length);return HO.create(this.key,g,!1,f)}setActor(f){for(const g of this.localChanges)g.setActor(f);this.changeID=this.changeID.setActor(f)}getKey(){return this.key}setStatus(f){this.status=f}getStatus(){return this.status}getCloneRoot(){if(this.clone)return this.clone.root.getObject()}getRoot(){this.ensureClone();const f=th.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});return l6(f,this.clone.root.getObject())}getOpsForTest(){return this.root.opsForTest}garbageCollect(f){return this.opts.disableGC?0:(this.clone&&this.clone.root.garbageCollect(f),this.root.garbageCollect(f))}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(f,g){const{root:T,presences:_}=Zl.bytesToSnapshot(g);this.root=new o0(T),this.presences=_,this.changeID=this.changeID.syncLamport(f),this.clone=void 0,this.publish({type:Ln.Snapshot,value:g})}applyChanges(f){u.isEnabled(s.Debug)&&u.debug(`trying to apply ${f.length} remote changes.elements:${this.root.getElementMapSize()}, removeds:${this.root.getRemovedElementSetSize()}`),u.isEnabled(s.Trivial)&&u.trivial(f.map(g=>`${g.getID().toTestString()} ${g.toTestString()}`).join(` +`)),this.ensureClone();for(const g of f){g.execute(this.clone.root,this.clone.presences,_r.Remote);let T;const _=g.getID().getActorID();if(g.hasPresenceChange()&&this.onlineClients.has(_)){const K=g.getPresenceChange();switch(K.type){case Ma.Put:T={type:this.presences.has(_)?Ln.PresenceChanged:Ln.Watched,value:{clientID:_,presence:K.presence}};break;case Ma.Clear:T={type:Ln.Unwatched,value:{clientID:_,presence:this.getPresence(_)}},this.removeOnlineClient(_);break}}const{opInfos:H}=g.execute(this.root,this.presences,_r.Remote);H.length>0&&this.publish({type:Ln.RemoteChange,value:{actor:_,message:g.getMessage()||"",operations:H}}),T&&this.publish(T),this.changeID=this.changeID.syncLamport(g.getID().getLamport())}u.isEnabled(s.Debug)&&u.debug(`after appling ${f.length} remote changes.elements:${this.root.getElementMapSize()}, removeds:${this.root.getRemovedElementSetSize()}`)}getValueByPath(f){if(!f.startsWith("$"))throw new An(En.InvalidArgument,'path must start with "$"');const g=f.split(".");g.shift();let T=this.getRoot();for(const _ of g)if(T=T[_],T===void 0)return;return T}setOnlineClients(f){this.onlineClients=f}addOnlineClient(f){this.onlineClients.add(f)}removeOnlineClient(f){this.onlineClients.delete(f)}hasPresence(f){return this.presences.has(f)}getMyPresence(){if(this.status!==ks.Attached)return{};const f=this.presences.get(this.changeID.getActorID());return ua(f)}getPresence(f){if(!this.onlineClients.has(f))return;const g=this.presences.get(f);return g?ua(g):void 0}getPresenceForTest(f){const g=this.presences.get(f);return g?ua(g):void 0}getPresences(){const f=[];for(const g of this.onlineClients)this.presences.has(g)&&f.push({clientID:g,presence:ua(this.presences.get(g))});return f}getSelfForTest(){return{clientID:this.getChangeID().getActorID(),presence:this.getMyPresence()}}getOthersForTest(){const f=this.getChangeID().getActorID();return this.getPresences().filter(g=>g.clientID!==f).sort((g,T)=>g.clientID>T.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 f=this.internalHistory.popUndo();if(f===void 0)throw new Error("There is no operation to be undone");this.ensureClone();const g=th.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const Ae of f){if(!(Ae instanceof jr)){new Yp(g,ua(this.clone.presences.get(this.changeID.getActorID()))).set(Ae.value,{addToHistory:!0});continue}const He=g.issueTimeTicket();Ae.setExecutedAt(He),g.push(Ae)}const T=g.getChange();T.execute(this.clone.root,this.clone.presences,_r.UndoRedo);const{opInfos:_,reverseOps:H}=T.execute(this.root,this.presences,_r.UndoRedo),K=g.getReversePresence();if(K&&H.push({type:"presence",value:K}),H.length>0&&this.internalHistory.pushRedo(H),!T.hasPresenceChange()&&_.length===0)return;this.localChanges.push(T),this.changeID=T.getID();const oe=this.changeID.getActorID();_.length>0&&this.publish({type:Ln.LocalChange,value:{message:T.getMessage()||"",operations:_,actor:oe}}),T.hasPresenceChange()&&this.publish({type:Ln.PresenceChanged,value:{clientID:oe,presence:this.getPresence(oe)}})}redo(){if(this.isUpdating)throw new Error("Redo is not allowed during an update");const f=this.internalHistory.popRedo();if(f===void 0)throw new Error("There is no operation to be redone");this.ensureClone();const g=th.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const Ae of f){if(!(Ae instanceof jr)){new Yp(g,ua(this.clone.presences.get(this.changeID.getActorID()))).set(Ae.value,{addToHistory:!0});continue}const He=g.issueTimeTicket();Ae.setExecutedAt(He),g.push(Ae)}const T=g.getChange();T.execute(this.clone.root,this.clone.presences,_r.UndoRedo);const{opInfos:_,reverseOps:H}=T.execute(this.root,this.presences,_r.UndoRedo),K=g.getReversePresence();if(K&&H.push({type:"presence",value:K}),H.length>0&&this.internalHistory.pushUndo(H),!T.hasPresenceChange()&&_.length===0)return;this.localChanges.push(T),this.changeID=T.getID();const oe=this.changeID.getActorID();_.length>0&&this.publish({type:Ln.LocalChange,value:{message:T.getMessage()||"",operations:_,actor:oe}}),T.hasPresenceChange()&&this.publish({type:Ln.PresenceChanged,value:{clientID:oe,presence:this.getPresence(oe)}})}getUndoStackForTest(){return this.internalHistory.getUndoStackForTest()}getRedoStackForTest(){return this.internalHistory.getRedoStackForTest()}}function $oe(A,f){return g=>async T=>(A&&T.header.set("x-api-key",A),f&&T.header.set("authorization",f),await g(T))}const d6=JSON.parse('{"u2":"yorkie-js-sdk","i8":"0.4.13"}');function Foe(){return A=>async f=>(f.header.set("x-yorkie-user-agent",d6.u2+"/"+d6.i8),await A(f))}var Wu;(function(A){A.PushPull="pushpull",A.PushOnly="pushonly"})(Wu||(Wu={}));var jc;(function(A){A.Deactivated="deactivated",A.Activated="activated"})(jc||(jc={}));var bf;(function(A){A.Connected="connected",A.Disconnected="disconnected"})(bf||(bf={}));var nh;(function(A){A.Synced="synced",A.SyncFailed="sync-failed"})(nh||(nh={}));var Va;(function(A){A.StatusChanged="status-changed",A.DocumentChanged="document-changed",A.StreamConnectionStatusChanged="stream-connection-status-changed",A.DocumentSynced="document-synced"})(Va||(Va={}));const ev={syncLoopDuration:50,retrySyncLoopDelay:1e3,reconnectStreamDelay:1e3};class f6{constructor(f,g){g=g||ev,this.key=g.key?g.key:c(),this.status=jc.Deactivated,this.attachmentMap=new Map,this.apiKey=g.apiKey||"",this.syncLoopDuration=g.syncLoopDuration||ev.syncLoopDuration,this.reconnectStreamDelay=g.reconnectStreamDelay||ev.reconnectStreamDelay,this.retrySyncLoopDelay=g.retrySyncLoopDelay||ev.retrySyncLoopDelay,this.rpcClient=z(_e.V,Ee({baseUrl:f,interceptors:[$oe(g.apiKey,g.token),Foe()]})),this.eventStream=h(T=>{this.eventStreamObserver=T})}activate(){return this.isActive()?Promise.resolve():this.rpcClient.activateClient({clientKey:this.key},{headers:{"x-shard-key":this.apiKey}}).then(f=>{this.id=f.clientId,this.status=jc.Activated,this.runSyncLoop(),this.eventStreamObserver.next({type:Va.StatusChanged,value:this.status}),u.info(`[AC] c:"${this.getKey()}" activated, id:"${this.id}"`)}).catch(f=>{throw u.error(`[AC] c:"${this.getKey()}" err :`,f),f})}deactivate(){if(this.status===jc.Deactivated)return Promise.resolve();for(const[f]of this.attachmentMap)this.detachInternal(f);return this.rpcClient.deactivateClient({clientKey:this.key,clientId:this.id},{headers:{"x-shard-key":this.apiKey}}).then(()=>{this.status=jc.Deactivated,this.eventStreamObserver.next({type:Va.StatusChanged,value:this.status}),u.info(`[DC] c"${this.getKey()}" deactivated`)}).catch(f=>{throw u.error(`[DC] c:"${this.getKey()}" err :`,f),f})}attach(f,g={}){var T;if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);if(f.getStatus()!==ks.Detached)throw new An(En.DocumentNotDetached,`${f.getKey()} is not detached`);f.setActor(this.id),f.update((H,K)=>K.set(g.initialPresence||{}));const _=(T=g.isRealtimeSync)!==null&&T!==void 0?T:!0;return this.rpcClient.attachDocument({clientKey:this.key,clientId:this.id,changePack:Zl.toChangePack(f.createChangePack())},{headers:{"x-shard-key":`${this.apiKey}/${f.getKey()}`}}).then(async H=>{const K=Zl.fromChangePack(H.changePack);return f.applyChangePack(K),f.getStatus()===ks.Removed||(f.setStatus(ks.Attached),this.attachmentMap.set(f.getKey(),new _oe(this.reconnectStreamDelay,f,H.documentId,_)),_&&await this.runWatchLoop(f.getKey()),u.info(`[AD] c:"${this.getKey()}" attaches d:"${f.getKey()}"`)),f}).catch(H=>{throw u.error(`[AD] c:"${this.getKey()}" err :`,H),H})}detach(f,g={}){var T;if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);const _=this.attachmentMap.get(f.getKey());if(!_)throw new An(En.DocumentNotAttached,`${f.getKey()} is not attached`);return f.update((H,K)=>K.clear()),this.rpcClient.detachDocument({clientKey:this.key,clientId:this.id,documentId:_.docID,changePack:Zl.toChangePack(f.createChangePack()),removeIfNotAttached:(T=g.removeIfNotAttached)!==null&&T!==void 0?T:!1},{headers:{"x-shard-key":`${this.apiKey}/${f.getKey()}`}}).then(H=>{const K=Zl.fromChangePack(H.changePack);return f.applyChangePack(K),f.getStatus()!==ks.Removed&&f.setStatus(ks.Detached),this.detachInternal(f.getKey()),u.info(`[DD] c:"${this.getKey()}" detaches d:"${f.getKey()}"`),f}).catch(H=>{throw u.error(`[DD] c:"${this.getKey()}" err :`,H),H})}pause(f){if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);return this.changeRealtimeSync(f,!1)}resume(f){if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);return this.changeRealtimeSync(f,!0)}pauseRemoteChanges(f){if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);const g=this.attachmentMap.get(f.getKey());if(!g)throw new An(En.DocumentNotAttached,`${f.getKey()} is not attached`);g.changeSyncMode(Wu.PushOnly)}resumeRemoteChanges(f){if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);const g=this.attachmentMap.get(f.getKey());if(!g)throw new An(En.DocumentNotAttached,`${f.getKey()} is not attached`);g.changeSyncMode(Wu.PushPull),g.remoteChangeEventReceived=!0}async changeRealtimeSync(f,g){const T=this.attachmentMap.get(f.getKey());if(!T)throw new An(En.DocumentNotAttached,`${f.getKey()} is not attached`);return T.changeRealtimeSync(g)?g?(T.remoteChangeEventReceived=!0,await this.runWatchLoop(f.getKey()),f):(this.eventStreamObserver.next({type:Va.StreamConnectionStatusChanged,value:bf.Disconnected}),u.debug(`[WD] c:"${this.getKey()}" unwatches`),f):f}sync(f,g=Wu.PushPull){if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);const T=[];if(f){const _=this.attachmentMap.get(f.getKey());if(!_)throw new An(En.DocumentNotAttached,`${f.getKey()} is not attached`);T.push(this.syncInternal(_,g))}else this.attachmentMap.forEach(_=>{T.push(this.syncInternal(_,_.syncMode))});return Promise.all(T).catch(_=>{throw this.eventStreamObserver.next({type:Va.DocumentSynced,value:nh.SyncFailed}),_})}remove(f){if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);const g=this.attachmentMap.get(f.getKey());if(!g)throw new An(En.DocumentNotAttached,`${f.getKey()} is not attached`);f.setActor(this.id);const T=Zl.toChangePack(f.createChangePack());return T.isRemoved=!0,this.rpcClient.removeDocument({clientKey:this.key,clientId:this.id,documentId:g.docID,changePack:T},{headers:{"x-shard-key":`${this.apiKey}/${f.getKey()}`}}).then(_=>{const H=Zl.fromChangePack(_.changePack);f.applyChangePack(H),this.detachInternal(f.getKey()),u.info(`[RD] c:"${this.getKey()}" removes d:"${f.getKey()}"`)}).catch(_=>{throw u.error(`[RD] c:"${this.getKey()}" err :`,_),_})}subscribe(f,g,T){return this.eventStream.subscribe(f,g,T)}getID(){return this.id}getKey(){return this.key}isActive(){return this.status===jc.Activated}getStatus(){return this.status}runSyncLoop(){const f=()=>{if(!this.isActive()){u.debug(`[SL] c:"${this.getKey()}" exit sync loop`);return}const g=[];for(const[,T]of this.attachmentMap)T.needRealtimeSync()&&(T.remoteChangeEventReceived=!1,g.push(this.syncInternal(T,T.syncMode)));Promise.all(g).then(()=>setTimeout(f,this.syncLoopDuration)).catch(T=>{u.error(`[SL] c:"${this.getKey()}" sync failed:`,T),this.eventStreamObserver.next({type:Va.DocumentSynced,value:nh.SyncFailed}),setTimeout(f,this.retrySyncLoopDelay)})};u.debug(`[SL] c:"${this.getKey()}" run sync loop`),f()}async runWatchLoop(f){const g=this.attachmentMap.get(f);if(!g)throw new An(En.DocumentNotAttached,`${f} is not attached`);return g.runWatchLoop(T=>{if(!this.isActive())return Promise.reject(new An(En.ClientNotActive,`${this.key} is not active`));const _=new AbortController,H=this.rpcClient.watchDocument({clientKey:this.key,clientId:this.id,documentKey:f,documentId:g.docID},{headers:{"x-shard-key":`${this.apiKey}/${f}`},signal:_.signal});return this.eventStreamObserver.next({type:Va.StreamConnectionStatusChanged,value:bf.Connected}),u.info(`[WD] c:"${this.getKey()}" watches d:"${f}"`),new Promise((K,oe)=>{(async()=>{try{for await(const He of H)this.handleWatchDocumentsResponse(g,He),He.body.case==="initialization"&&K([H,_])}catch(He){this.eventStreamObserver.next({type:Va.StreamConnectionStatusChanged,value:bf.Disconnected}),u.debug(`[WD] c:"${this.getKey()}" unwatches`),T(),oe(He)}})()})})}handleWatchDocumentsResponse(f,g){const T=f.doc.getKey();if(g.body.case==="initialization"){const _=g.body.value.clientIds,H=new Set;for(const K of _)H.add(K);f.doc.setOnlineClients(H),f.doc.publish({type:Ln.Initialized,value:f.doc.getPresences()});return}else if(g.body.case==="event"){const _=g.body.value,H=_.type,K=_.publisher;switch(H){case pe.DocEventType.DOCUMENT_CHANGED:f.remoteChangeEventReceived=!0,this.eventStreamObserver.next({type:Va.DocumentChanged,value:[T]});break;case pe.DocEventType.DOCUMENT_WATCHED:f.doc.addOnlineClient(K),f.doc.hasPresence(K)&&f.doc.publish({type:Ln.Watched,value:{clientID:K,presence:f.doc.getPresence(K)}});break;case pe.DocEventType.DOCUMENT_UNWATCHED:{const oe=f.doc.getPresence(K);f.doc.removeOnlineClient(K),oe&&f.doc.publish({type:Ln.Unwatched,value:{clientID:K,presence:oe}});break}}}}detachInternal(f){const g=this.attachmentMap.get(f);g&&(g.cancelWatchStream(),u.debug(`[WD] c:"${this.getKey()}" unwatches`),this.eventStreamObserver.next({type:Va.StreamConnectionStatusChanged,value:bf.Disconnected}),this.attachmentMap.delete(f))}syncInternal(f,g){const{doc:T,docID:_}=f,H=T.createChangePack();return this.rpcClient.pushPullChanges({clientKey:this.key,clientId:this.id,documentId:_,changePack:Zl.toChangePack(H),pushOnly:g===Wu.PushOnly},{headers:{"x-shard-key":`${this.apiKey}/${T.getKey()}`}}).then(K=>{const oe=Zl.fromChangePack(K.changePack);if(oe.hasChanges()&&g===Wu.PushOnly)return T;T.applyChangePack(oe),this.eventStreamObserver.next({type:Va.DocumentSynced,value:nh.Synced}),T.getStatus()===ks.Removed&&this.detachInternal(T.getKey());const Ae=T.getKey(),He=oe.getChangeSize();return u.info(`[PP] c:"${this.getKey()}" sync d:"${Ae}", push:${H.getChangeSize()} pull:${He} cp:${oe.getCheckpoint().toTestString()}`),T}).catch(K=>{throw u.error(`[PP] c:"${this.getKey()}" err :`,K),K})}}const Boe={Client:f6,Document:c6,Primitive:Rr,Text:ZO,Counter:XO,Tree:KO,IntType:pi.IntegerCnt,LongType:pi.LongCnt}})(),a})())})(Xte);var FI=Xte.exports;class wUe{constructor(t,n){Zo(this,"doc");Zo(this,"client");this.doc=t,this.client=n}}const bL=qt.define({combine(e){return e[e.length-1]}}),sz=Ul.define();class kUe{constructor(t){Zo(this,"view");Zo(this,"conf");Zo(this,"_doc");Zo(this,"_observer");Zo(this,"_unsubscribe");this.view=t,this.conf=t.state.facet(bL),this._observer=n=>{if(n.type!=="remote-change")return;const{operations:r}=n.value;r.forEach(i=>{if(i.type==="edit"){const o=[{from:Math.max(0,i.from),to:Math.max(0,i.to),insert:i.value.content}];t.dispatch({changes:o,annotations:[sz.of(this.conf)]})}})},this._doc=this.conf.doc,this._unsubscribe=this._doc.subscribe("$.content",this._observer)}update(t){!t.docChanged||t.transactions.length>0&&t.transactions[0].annotation(sz)===this.conf||this._doc.update((n,r)=>{t.changes.iterChanges((i,o,a,s,l)=>{n.content||(n.content=new FI.Text);const u=l.sliceString(0,l.length,` +`),c=n.content.edit(i,o,u);c&&r.set({selection:n.content.indexRangeToPosRange(c)})})})}destroy(){this._unsubscribe()}}const xUe=ei.fromClass(kUe);class CUe{constructor(t,n){this.left=t,this.right=n}}const fE=(e,t)=>new CUe(e,t),AUe=(e,t)=>e.forEach(n=>t(n.left,n.right)),Bu=typeof document<"u"?document:{},_Ue=e=>Bu.createElement(e),RUe=()=>Bu.createDocumentFragment(),IUe=e=>Bu.createTextNode(e);typeof DOMParser<"u"&&new DOMParser;const DUe=(e,t)=>(AUe(t,(n,r)=>{r===!1?e.removeAttribute(n):r===!0?e.setAttribute(n,""):e.setAttribute(n,r)}),e),NUe=e=>{const t=RUe();for(let n=0;n(Kte(e,NUe(t)),e),o2=(e,t=[],n=[])=>PUe(DUe(_Ue(e),t),n),pE=IUe,Kte=(e,t)=>e.appendChild(t);Bu.ELEMENT_NODE;Bu.TEXT_NODE;Bu.CDATA_SECTION_NODE;Bu.COMMENT_NODE;Bu.DOCUMENT_NODE;Bu.DOCUMENT_TYPE_NODE;Bu.DOCUMENT_FRAGMENT_NODE;const LUe=Ht.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"}}),MUe=Ul.define();class $Ue extends $u{constructor(n,r){super();Zo(this,"color");Zo(this,"name");this.color=n,this.name=r}toDOM(){return o2("span",[fE("class","cm-ySelectionCaret"),fE("style",`background-color: ${this.color}; border-color: ${this.color}`)],[pE("⁠"),o2("div",[fE("class","cm-ySelectionCaretDot")]),pE("⁠"),o2("div",[fE("class","cm-ySelectionInfo")],[pE(this.name)]),pE("⁠")])}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 FUe{constructor(t){Zo(this,"conf");Zo(this,"decorations");Zo(this,"unsubscribe");this.conf=t.state.facet(bL),this.unsubscribe=this.conf.doc.subscribe("others",n=>{const r=[];n.type==="presence-changed"&&(this.conf.doc.getPresences().forEach(i=>{if(i.clientID===this.conf.client.getID()||i.presence.selection==null)return;const o=this.conf.doc.getRoot().content.posRangeToIndexRange(i.presence.selection),a=i.presence.color,s=i.presence.name,l=Math.min(o[0],o[1]),u=Math.max(o[0],o[1]),c=t.state.doc.lineAt(l),d=t.state.doc.lineAt(u);if(c.number===d.number)r.push({from:l,to:u,value:ln.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})});else{r.push({from:l,to:c.from+c.length,value:ln.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})}),r.push({from:d.from,to:u,value:ln.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})});for(let p=c.number+1;p0?-1:1,block:!1,widget:new $Ue(a,s)})})}),this.decorations=ln.set(r,!0),r.length>0&&t.dispatch({annotations:[MUe.of([])]}))}),this.decorations=Xn.of([])}destroy(){this.unsubscribe()}update(t){this.conf.doc.update((n,r)=>{const o=t.view.hasFocus&&t.view.dom.ownerDocument.hasFocus()?t.state.selection.main:null;if(o&&n.content){const a=n.content.indexRangeToPosRange([o.anchor,o.head]);r.set({selection:a})}})}}const BUe=ei.fromClass(FUe,{decorations:e=>e.decorations});function UUe(e,t){const n=new wUe(e,t),r=[bL.of(n),xUe];return t&&r.push(LUe,BUe),r}function hE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const jUe=e=>{const t=window.document.createElement("span");return t.classList.add(`codemirror-toolbar__${e.type}`),t},zUe=e=>{const t=window.document.createElement("button");return t.classList.add("codemirror-toolbar__item"),t.dataset.item=e.key,t.title=e.label,t.innerHTML=`${e.icon||""}`,t},VUe=e=>{const t=window.document.createElement("div");t.classList.add("codemirror-toolbar");const n=window.document.createDocumentFragment();return n.append(...e.items.map(r=>"type"in r?jUe(r):zUe(r))),t.appendChild(n),t};class HUe{handleClick(t){const n=t.target;if(n&&n.tagName==="BUTTON"){const r=n.dataset.item;if(r){const i=this.handlers[r];if(i){t.preventDefault(),t.stopPropagation(),i(this.view);return}}}this.view.focus()}destroy(){this.element.remove()}constructor(t,n){hE(this,"view",void 0),hE(this,"element",void 0),hE(this,"config",void 0),hE(this,"handlers",void 0),this.view=t,this.handlers={},this.config={...n,items:n.items.map((i,o)=>{var s;if("type"in i)return{...i};const a=i.key||i.command.displayName||((s=i.command)==null?void 0:s.name)||`cmd_${o}`;return this.handlers[a]=i.command,{...i,key:a}})};const r=this.element=VUe(this.config);r.addEventListener("click",this.handleClick.bind(this)),this.view.dom.prepend(r)}}const WUe=e=>ei.define(t=>new HUe(t,e)),QUe=Ht.baseTheme({".codemirror-toolbar":{display:"flex",padding:"4px 5px",backgroundColor:"rgb(245, 245, 245)",borderBottom:"1px solid rgb(221, 221, 221)"},".codemirror-toolbar__icon":{display:"inline-block",height:"1em",width:"1em",overflow:"visible"},".codemirror-toolbar__icon svg":{overflow:"visible",boxSizing:"content-box",height:"1em",width:"1em",verticalAlign:"-.125em"},".codemirror-toolbar__item":{display:"inline-flex",alignItems:"center",justifyContent:"center",background:"transparent",border:"none",outline:"none",cursor:"pointer",borderRadius:"2px",height:"20px",width:"20px",transition:"all .3s"},".codemirror-toolbar__item:hover":{color:"#1EA7FD",backgroundColor:"rgba(30,167,253,0.12)"},".codemirror-toolbar__item > *":{pointerEvents:"none"},".codemirror-toolbar__split":{display:"inline-block",width:"1px",height:"20px",margin:"0 6px",backgroundColor:"rgb(221, 221, 221)"},".codemirror-toolbar__space":{display:"inline-block",flex:1}}),YUe=e=>{const t=e.state.selection.main;if(t.from>=2){const n=e.state.sliceDoc(t.from-2,t.from),r=e.state.sliceDoc(t.to,t.to+2);if(n==="**"&&r==="**")return e.focus(),!1}return e.dispatch(e.state.changeByRange(n=>({changes:[{from:n.from,insert:"**"},{from:n.to,insert:"**"}],range:tt.range(n.from+2,n.to+2)}))),e.focus(),!0},GUe=e=>{const t=e.state.selection.main;if(t.from>=1){const n=e.state.sliceDoc(t.from-1,t.from),r=e.state.sliceDoc(t.to,t.to+1);if(n==="*"&&r==="*"&&(t.from<2||e.state.sliceDoc(t.from-1,t.from)!=="*"||e.state.sliceDoc(t.to,t.to+1)!=="*"||t.from>=3&&e.state.sliceDoc(t.from-3,t.from)==="***"&&e.state.sliceDoc(t.to,t.to+3)==="***"))return e.focus(),!1}return e.dispatch(e.state.changeByRange(n=>({changes:[{from:n.from,insert:"*"},{from:n.to,insert:"*"}],range:tt.range(n.from+1,n.to+1)}))),e.focus(),!0},qUe=e=>{const t=e.state.selection.main;if(t.from>=2){const n=e.state.sliceDoc(t.from-2,t.from),r=e.state.sliceDoc(t.to,t.to+2);if(n==="~~"&&r==="~~")return e.focus(),!1}return e.dispatch(e.state.changeByRange(n=>({changes:[{from:n.from,insert:"~~"},{from:n.to,insert:"~~"}],range:tt.range(n.from+2,n.to+2)}))),e.focus(),!0},ZUe=e=>{const t=e.state.selection.main;if(t.from>=3){const n=e.state.sliceDoc(t.from-3,t.from),r=e.state.sliceDoc(t.to,t.to+4);if(n===""&&r==="")return e.focus(),!1}return e.dispatch(e.state.changeByRange(n=>({changes:[{from:n.from,insert:""},{from:n.to,insert:""}],range:tt.range(n.from+3,n.to+3)}))),e.focus(),!0},XUe=e=>{const{state:t}=e,{doc:n}=t;return e.dispatch(e.state.changeByRange(r=>{const i=n.lineAt(r.from),a=n.slice(r.from,r.to).lines,s=[];let l=r.from,u=r.to-r.from;return new Array(a).fill(0).forEach((c,d)=>{const p=n.line(i.number+d);p.text.startsWith("> ")||(s.push({from:p.from,insert:"> "}),d===0?l=l+2:u+=2)}),{changes:s,range:tt.range(l,l+u)}})),e.focus(),!0},KUe=e=>{const{state:t}=e,{doc:n}=t;return e.dispatch(t.changeByRange(r=>{const{from:i,to:o}=r,a=n.sliceString(i,o),s=`[${a}]()`,l=i+(a.length?3+a.length:1);return{changes:[{from:i,to:o,insert:s}],range:tt.range(l,l)}})),e.focus(),!0},JUe=e=>{const{state:t}=e,{doc:n}=t;return e.dispatch(t.changeByRange(r=>{const{from:i,to:o}=r,a=n.sliceString(i,o),s=`![${a}]()`,l=i+(a.length?3+a.length:2);return{changes:[{from:i,to:o,insert:s}],range:tt.range(l,l)}})),e.focus(),!0},Wg=e=>t=>{const n=t.state,r="#".repeat(e)+" ";return t.dispatch(n.changeByRange(i=>{const o=n.doc.lineAt(i.from),a=o.text.replace(/^((#+) )?/,r),s=a.length-o.length;return{changes:{from:o.from,to:o.to,insert:a},range:tt.range(i.anchor+s,i.head+s)}})),t.focus(),!0},e9e=e=>{if(e=e&&e.trimStart(),!e)return;if(e.startsWith("- "))return e.startsWith("- [ ] ")||e.startsWith("- [x] ")?["todo"]:["ul"];const t=e.match(/^(\d+)\. /);if(t)return["ol",Number.parseInt(t[1],10)]},yL=e=>t=>{const{state:n}=t,{doc:r}=n;let i=1;return t.dispatch(t.state.changeByRange(o=>{const a=r.lineAt(o.from),l=r.slice(o.from,o.to).lines,u=[];let c=o.from,d=o.to-o.from;return new Array(l).fill(0).forEach((p,h)=>{const m=r.line(a.number+h),b=e9e(m.text);if(b&&b[0]===e){b[0]==="ol"&&b[1]&&(i=b[1]);return}const O=m.text.replace(RegExp("^((? *)(-( \\[[x ]])?|\\d+\\.) )?"),(...v)=>{const S=v[v.length-1],{space:k=""}=S;let C="- ";return e==="ol"?(C=`${i}. `,i++):e==="todo"&&(C="- [ ] "),k+C}),y=O.length-m.length;u.push({from:m.from,to:m.to,insert:O}),h===0?c=c+y:d=d+y}),{changes:u,range:tt.range(c,c+d)}})),t.focus(),!0},t9e=Wg(1),n9e=Wg(2),r9e=Wg(3),i9e=Wg(4),o9e=Wg(5),a9e=Wg(6),s9e=yL("ul"),l9e=yL("ol"),u9e=yL("todo"),c9e={label:"Bold",icon:'',command:YUe},d9e={label:"Italic",icon:'',command:GUe},f9e={label:"Strike",icon:'',command:qUe},p9e={label:"Underline",icon:'',command:ZUe},h9e={label:"H1",icon:'',command:t9e},m9e={label:"H2",icon:'',command:n9e},g9e={label:"H3",icon:'',command:r9e},b9e={label:"H4",icon:'',command:i9e},y9e={label:"H5",icon:'',command:o9e},O9e={label:"H6",icon:'',command:a9e},v9e={label:"Block Quote",icon:'',command:XUe},E9e={label:"Unordered List",icon:'',command:s9e},S9e={label:"Ordered List",icon:'',command:l9e},T9e={label:"Todo List",icon:'',command:u9e},w9e={label:"Link",icon:'',command:KUe},k9e={label:"Image",icon:'',command:JUe},a2={type:"split"},x9e={type:"space"},C9e={label:"Full Screen",key:"fullScreen",icon:'',command:e=>(e.dom.ownerDocument.fullscreenElement?e.dom.ownerDocument.exitFullscreen():e.dom.requestFullscreen(),!0)},A9e=[c9e,d9e,f9e,p9e,a2,h9e,m9e,g9e,b9e,y9e,O9e,a2,v9e,E9e,S9e,T9e,a2,w9e,k9e,x9e,C9e],_9e=e=>[WUe(e),QUe];var Jte=e=>{var{theme:t,settings:n={},styles:r=[]}=e,i={".cm-gutters":{}},o={};n.background&&(o.backgroundColor=n.background),n.backgroundImage&&(o.backgroundImage=n.backgroundImage),n.foreground&&(o.color=n.foreground),(n.background||n.foreground)&&(i["&"]=o),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 a={};n.gutterActiveForeground&&(a.color=n.gutterActiveForeground),n.lineHighlight&&(i[".cm-activeLine"]={backgroundColor:n.lineHighlight},a.backgroundColor=n.lineHighlight),i[".cm-activeLineGutter"]=a,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 s=Ht.theme(i,{dark:t==="dark"}),l=SO.define(r),u=[s,IJ(l)];return u},R9e={background:"#fff",foreground:"#3D3D3D",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#AFAFAF",lineHighlight:"#d5e6ff69"};function I9e(e){var{theme:t="light",settings:n={},styles:r=[]}=e||{};return Jte({theme:t,settings:L({},R9e,n),styles:[{tag:[he.comment,he.quote],color:"#707F8D"},{tag:[he.typeName,he.typeOperator],color:"#aa0d91"},{tag:[he.keyword],color:"#aa0d91",fontWeight:"bold"},{tag:[he.string,he.meta],color:"#D23423"},{tag:[he.name],color:"#032f62"},{tag:[he.typeName],color:"#522BB2"},{tag:[he.variableName],color:"#23575C"},{tag:[he.definition(he.variableName)],color:"#327A9E"},{tag:[he.regexp,he.link],color:"#0e0eff"},...r]})}var D9e=I9e(),N9e={background:"#292A30",foreground:"#CECFD0",caret:"#fff",selection:"#727377",selectionMatch:"#727377",lineHighlight:"#ffffff0f"},P9e=e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return Jte({theme:t,settings:L({},N9e,n),styles:[{tag:[he.comment,he.quote],color:"#7F8C98"},{tag:[he.keyword],color:"#FF7AB2",fontWeight:"bold"},{tag:[he.string,he.meta],color:"#FF8170"},{tag:[he.typeName],color:"#DABAFF"},{tag:[he.definition(he.variableName)],color:"#6BDFFF"},{tag:[he.name],color:"#6BAA9F"},{tag:[he.variableName],color:"#ACF2E4"},{tag:[he.regexp,he.link],color:"#FF8170"},...r]})},L9e=P9e();function lz(){const e=kP(),[t,n]=I.useState(),r=Ic(Hk),i=I.useCallback(o=>{o&&n(o)},[]);return I.useEffect(()=>{var s;let o;if(!t||!r.doc||!r.client)return;const a=qn.create({doc:((s=r.doc.getRoot().content)==null?void 0:s.toString())??"",extensions:[CBe,EUe(),UUe(r.doc,r.client),_9e({items:A9e}),e=="light"?D9e:L9e,Ht.theme({"&":{width:"100%"}}),Ht.lineWrapping,Bg.of([YFe])]});return o=new Ht({state:a,parent:t}),()=>{o==null||o.destroy()}},[r.client,r.doc,t,e]),N.jsx("div",{ref:i,style:{display:"flex",alignItems:"stretch",height:"100%"}})}var BI={exports:{}};(function(e,t){(function(n,r){{var i=r();e&&e.exports&&(t=e.exports=i),t.randomColor=i}})(xS,function(){var n=null,r={};y();var i=[],o=function(E){if(E=E||{},E.seed!==void 0&&E.seed!==null&&E.seed===parseInt(E.seed,10))n=E.seed;else if(typeof E.seed=="string")n=C(E.seed);else{if(E.seed!==void 0&&E.seed!==null)throw new TypeError("The seed value must be an integer or string");n=null}var $,P,R;if(E.count!==null&&E.count!==void 0){for(var B=E.count,U=[],V=0;VU.length;){var z=o(E);n!==null&&(E.seed=n),U.push(z)}return E.count=B,U}return $=a(E),P=s($,E),R=l($,P,E),u([$,P,R],E)};function a(E){if(i.length>0){var $=w(E.hue),P=m($),R=($[1]-$[0])/i.length,B=parseInt((P-$[0])/R);i[B]===!0?B=(B+2)%i.length:i[B]=!0;var U=($[0]+B*R)%359,V=($[0]+(B+1)*R)%359;return $=[U,V],P=m($),P<0&&(P=360+P),P}else{var $=d(E.hue);return P=m($),P<0&&(P=360+P),P}}function s(E,$){if($.hue==="monochrome")return 0;if($.luminosity==="random")return m([0,100]);var P=p(E),R=P[0],B=P[1];switch($.luminosity){case"bright":R=55;break;case"dark":R=B-10;break;case"light":B=55;break}return m([R,B])}function l(E,$,P){var R=c(E,$),B=100;switch(P.luminosity){case"dark":B=R+20;break;case"light":R=(B+R)/2;break;case"random":R=0,B=100;break}return m([R,B])}function u(E,$){switch($.format){case"hsvArray":return E;case"hslArray":return k(E);case"hsl":var P=k(E);return"hsl("+P[0]+", "+P[1]+"%, "+P[2]+"%)";case"hsla":var R=k(E),V=$.alpha||Math.random();return"hsla("+R[0]+", "+R[1]+"%, "+R[2]+"%, "+V+")";case"rgbArray":return v(E);case"rgb":var B=v(E);return"rgb("+B.join(", ")+")";case"rgba":var U=v(E),V=$.alpha||Math.random();return"rgba("+U.join(", ")+", "+V+")";default:return b(E)}}function c(E,$){for(var P=h(E).lowerBounds,R=0;R=B&&$<=V){var W=(z-U)/(V-B),X=U-W*B;return W*$+X}}return 0}function d(E){if(typeof parseInt(E)=="number"){var $=parseInt(E);if($<360&&$>0)return[$,$]}if(typeof E=="string"){if(r[E]){var P=r[E];if(P.hueRange)return P.hueRange}else if(E.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var R=S(E)[0];return[R,R]}}return[0,360]}function p(E){return h(E).saturationRange}function h(E){E>=334&&E<=360&&(E-=360);for(var $ in r){var P=r[$];if(P.hueRange&&E>=P.hueRange[0]&&E<=P.hueRange[1])return r[$]}return"Color not found"}function m(E){if(n===null){var $=.618033988749895,P=Math.random();return P+=$,P%=1,Math.floor(E[0]+P*(E[1]+1-E[0]))}else{var R=E[1]||1,B=E[0]||0;n=(n*9301+49297)%233280;var U=n/233280;return Math.floor(B+U*(R-B))}}function b(E){var $=v(E);function P(B){var U=B.toString(16);return U.length==1?"0"+U:U}var R="#"+P($[0])+P($[1])+P($[2]);return R}function O(E,$,P){var R=P[0][0],B=P[P.length-1][0],U=P[P.length-1][1],V=P[0][1];r[E]={hueRange:$,lowerBounds:P,saturationRange:[R,B],brightnessRange:[U,V]}}function y(){O("monochrome",null,[[0,0],[100,0]]),O("red",[-26,18],[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]),O("orange",[18,46],[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]),O("yellow",[46,62],[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]),O("green",[62,178],[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]),O("blue",[178,257],[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]),O("purple",[257,282],[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]),O("pink",[282,334],[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]])}function v(E){var $=E[0];$===0&&($=1),$===360&&($=359),$=$/360;var P=E[1]/100,R=E[2]/100,B=Math.floor($*6),U=$*6-B,V=R*(1-P),z=R*(1-U*P),W=R*(1-(1-U)*P),X=256,q=256,Y=256;switch(B){case 0:X=R,q=W,Y=V;break;case 1:X=z,q=R,Y=V;break;case 2:X=V,q=R,Y=W;break;case 3:X=V,q=z,Y=R;break;case 4:X=W,q=V,Y=R;break;case 5:X=R,q=V,Y=z;break}var Z=[Math.floor(X*255),Math.floor(q*255),Math.floor(Y*255)];return Z}function S(E){E=E.replace(/^#/,""),E=E.length===3?E.replace(/(.)/g,"$1$1"):E;var $=parseInt(E.substr(0,2),16)/255,P=parseInt(E.substr(2,2),16)/255,R=parseInt(E.substr(4,2),16)/255,B=Math.max($,P,R),U=B-Math.min($,P,R),V=B?U/B:0;switch(B){case $:return[60*((P-R)/U%6)||0,V,B];case P:return[60*((R-$)/U+2)||0,V,B];case R:return[60*(($-P)/U+4)||0,V,B]}}function k(E){var $=E[0],P=E[1]/100,R=E[2]/100,B=(2-P)*R;return[$,Math.round(P*R/(B<1?B:2-B)*1e4)/100,B/2*100]}function C(E){for(var $=0,P=0;P!==E.length&&!($>=Number.MAX_SAFE_INTEGER);P++)$+=E.charCodeAt(P);return $}function w(E){if(isNaN(E)){if(typeof E=="string"){if(r[E]){var P=r[E];if(P.hueRange)return P.hueRange}else if(E.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var R=S(E)[0];return h(R).hueRange}}}else{var $=parseInt(E);if($<360&&$>0)return h(E).hueRange}return[0,360]}return o})})(BI,BI.exports);var M9e=BI.exports;const $9e=ef(M9e);var ene={exports:{}},F9e={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]},tne={exports:{}},B9e=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")},U9e=B9e,j9e=Array.prototype.concat,z9e=Array.prototype.slice,uz=tne.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+")"};us.to.keyword=function(e){return rne[e.slice(0,3)]};function Fd(e,t,n){return Math.min(Math.max(t,e),n)}function mE(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var H9e=ene.exports,W9e={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 g1=W9e,ine={};for(const e of Object.keys(g1))ine[g1[e]]=e;const nn={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 one=nn;for(const e of Object.keys(nn)){if(!("channels"in nn[e]))throw new Error("missing channels property: "+e);if(!("labels"in nn[e]))throw new Error("missing channel labels property: "+e);if(nn[e].labels.length!==nn[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=nn[e];delete nn[e].channels,delete nn[e].labels,Object.defineProperty(nn[e],"channels",{value:t}),Object.defineProperty(nn[e],"labels",{value:n})}nn.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=o-i;let s,l;o===i?s=0:t===o?s=(n-r)/a:n===o?s=2+(r-t)/a:r===o&&(s=4+(t-n)/a),s=Math.min(s*60,360),s<0&&(s+=360);const u=(i+o)/2;return o===i?l=0:u<=.5?l=a/(o+i):l=a/(2-o-i),[s,l*100,u*100]};nn.rgb.hsv=function(e){let t,n,r,i,o;const a=e[0]/255,s=e[1]/255,l=e[2]/255,u=Math.max(a,s,l),c=u-Math.min(a,s,l),d=function(p){return(u-p)/6/c+1/2};return c===0?(i=0,o=0):(o=c/u,t=d(a),n=d(s),r=d(l),a===u?i=r-n:s===u?i=1/3+t-r:l===u&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[i*360,o*100,u*100]};nn.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const i=nn.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,o*100,r*100]};nn.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),o=(1-t-i)/(1-i)||0,a=(1-n-i)/(1-i)||0,s=(1-r-i)/(1-i)||0;return[o*100,a*100,s*100,i*100]};function Q9e(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}nn.rgb.keyword=function(e){const t=ine[e];if(t)return t;let n=1/0,r;for(const i of Object.keys(g1)){const o=g1[i],a=Q9e(e,o);a.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,o=t*.2126+n*.7152+r*.0722,a=t*.0193+n*.1192+r*.9505;return[i*100,o*100,a*100]};nn.rgb.lab=function(e){const t=nn.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 o=116*r-16,a=500*(n-r),s=200*(r-i);return[o,a,s]};nn.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let i,o,a;if(n===0)return a=r*255,[a,a,a];r<.5?i=r*(1+n):i=r+n-r*n;const s=2*r-i,l=[0,0,0];for(let u=0;u<3;u++)o=t+1/3*-(u-1),o<0&&o++,o>1&&o--,6*o<1?a=s+(i-s)*6*o:2*o<1?a=i:3*o<2?a=s+(i-s)*(2/3-o)*6:a=s,l[u]=a*255;return l};nn.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,i=n;const o=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=o<=1?o:2-o;const a=(r+n)/2,s=r===0?2*i/(o+i):2*n/(r+n);return[t,s*100,a*100]};nn.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const i=Math.floor(t)%6,o=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*o),l=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}};nn.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01);let o,a;a=(2-n)*r;const s=(2-n)*i;return o=n*i,o/=s<=1?s:2-s,o=o||0,a/=2,[t,o*100,a*100]};nn.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const i=n+r;let o;i>1&&(n/=i,r/=i);const a=Math.floor(6*t),s=1-r;o=6*t-a,a&1&&(o=1-o);const l=n+o*(s-n);let u,c,d;switch(a){default:case 6:case 0:u=s,c=l,d=n;break;case 1:u=l,c=s,d=n;break;case 2:u=n,c=s,d=l;break;case 3:u=n,c=l,d=s;break;case 4:u=l,c=n,d=s;break;case 5:u=s,c=n,d=l;break}return[u*255,c*255,d*255]};nn.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100,o=1-Math.min(1,t*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),s=1-Math.min(1,r*(1-i)+i);return[o*255,a*255,s*255]};nn.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let i,o,a;return i=t*3.2406+n*-1.5372+r*-.4986,o=t*-.9689+n*1.8758+r*.0415,a=t*.0557+n*-.204+r*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),[i*255,o*255,a*255]};nn.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,o=500*(t-n),a=200*(n-r);return[i,o,a]};nn.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let i,o,a;o=(t+16)/116,i=n/500+o,a=o-r/200;const s=o**3,l=i**3,u=a**3;return o=s>.008856?s:(o-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,a=u>.008856?u:(a-16/116)/7.787,i*=95.047,o*=100,a*=108.883,[i,o,a]};nn.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 a=Math.sqrt(n*n+r*r);return[t,a,i]};nn.lch.lab=function(e){const t=e[0],n=e[1],i=e[2]/360*2*Math.PI,o=n*Math.cos(i),a=n*Math.sin(i);return[t,o,a]};nn.rgb.ansi16=function(e,t=null){const[n,r,i]=e;let o=t===null?nn.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),o===0)return 30;let a=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return o===2&&(a+=60),a};nn.hsv.ansi16=function(e){return nn.rgb.ansi16(nn.hsv.rgb(e),e[2])};nn.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)};nn.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,o=(t>>2&1)*n*255;return[r,i,o]};nn.ansi256.rgb=function(e){if(e>=232){const o=(e-232)*10+8;return[o,o,o]}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]};nn.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};nn.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(s=>s+s).join(""));const r=parseInt(n,16),i=r>>16&255,o=r>>8&255,a=r&255;return[i,o,a]};nn.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),o=Math.min(Math.min(t,n),r),a=i-o;let s,l;return a<1?s=o/(1-a):s=0,a<=0?l=0:i===t?l=(n-r)/a%6:i===n?l=2+(r-t)/a:l=4+(t-n)/a,l/=6,l%=1,[l*360,a*100,s*100]};nn.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]};nn.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]};nn.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],o=t%1*6,a=o%1,s=1-a;let l=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return l=(1-n)*r,[(n*i[0]+l)*255,(n*i[1]+l)*255,(n*i[2]+l)*255]};nn.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]};nn.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]};nn.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]};nn.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,i=r-t;let o=0;return i<1&&(o=(r-i)/(1-i)),[e[0],i*100,o*100]};nn.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};nn.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};nn.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};nn.gray.hsl=function(e){return[0,0,e[0]]};nn.gray.hsv=nn.gray.hsl;nn.gray.hwb=function(e){return[0,100,e[0]]};nn.gray.cmyk=function(e){return[0,0,0,e[0]]};nn.gray.lab=function(e){return[e[0],0,0]};nn.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};nn.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const aw=one;function Y9e(){const e={},t=Object.keys(aw);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function tje(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 o=i.length,a=0;a{Ah[e]={},Object.defineProperty(Ah[e],"channels",{value:UI[e].channels}),Object.defineProperty(Ah[e],"labels",{value:UI[e].labels});const t=K9e(e);Object.keys(t).forEach(r=>{const i=t[r];Ah[e][r]=tje(i),Ah[e][r].raw=eje(i)})});var nje=Ah;const _h=H9e,os=nje,ane=["keyword","gray","hex"],jI={};for(const e of Object.keys(os))jI[[...os[e].labels].sort().join("")]=e;const sw={};function Gi(e,t){if(!(this instanceof Gi))return new Gi(e,t);if(t&&t in ane&&(t=null),t&&!(t in os))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 Gi)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const i=_h.get(e);if(i===null)throw new Error("Unable to parse color from string: "+e);this.model=i.model,r=os[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=os[this.model].channels;const i=Array.prototype.slice.call(e,0,r);this.color=zI(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 o=i.sort().join("");if(!(o in jI))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=jI[o];const{labels:a}=os[this.model],s=[];for(n=0;n(e%360+360)%360),saturationl:ri("hsl",1,Ai(100)),lightness:ri("hsl",2,Ai(100)),saturationv:ri("hsv",1,Ai(100)),value:ri("hsv",2,Ai(100)),chroma:ri("hcg",1,Ai(100)),gray:ri("hcg",2,Ai(100)),white:ri("hwb",1,Ai(100)),wblack:ri("hwb",2,Ai(100)),cyan:ri("cmyk",0,Ai(100)),magenta:ri("cmyk",1,Ai(100)),yellow:ri("cmyk",2,Ai(100)),black:ri("cmyk",3,Ai(100)),x:ri("xyz",0,Ai(95.047)),y:ri("xyz",1,Ai(100)),z:ri("xyz",2,Ai(108.833)),l:ri("lab",0,Ai(100)),a:ri("lab",1),b:ri("lab",2),keyword(e){return e!==void 0?new Gi(e):os[this.model].keyword(this.color)},hex(e){return e!==void 0?new Gi(e):_h.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new Gi(e);const t=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),_h.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 Gi.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,o=2*i-1,a=n.alpha()-r.alpha(),s=((o*a===-1?o:(o+a)/(1+o*a))+1)/2,l=1-s;return Gi.rgb(s*n.red()+l*r.red(),s*n.green()+l*r.green(),s*n.blue()+l*r.blue(),n.alpha()*i+r.alpha()*(1-i))}};for(const e of Object.keys(os)){if(ane.includes(e))continue;const{channels:t}=os[e];Gi.prototype[e]=function(...n){return this.model===e?new Gi(this):n.length>0?new Gi(n,e):new Gi([...oje(os[this.model][e].raw(this.color)),this.valpha],e)},Gi[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=zI(n,t)),new Gi(r,e)}}function rje(e,t){return Number(e.toFixed(t))}function ije(e){return function(t){return rje(t,e)}}function ri(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(sw[r]||(sw[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 Ai(e){return function(t){return Math.max(0,Math.min(e,t))}}function oje(e){return Array.isArray(e)?e:[e]}function zI(e,t){for(let n=0;nu?(P(u),R.current=u):(P(ce),R.current=ce),O&&O({position:R.current})}}},[r,t,b,m,p,c,$,s,u,O,o]),Z=I.useCallback(function(){r||(P(o),R.current=o)},[r,o]);return{position:$,endPosition:U,isDragging:C,separatorProps:lw({},z,{onPointerDown:q,onKeyDown:Y,onDoubleClick:Z}),setPosition:P,splitterProps:lw({},z,{onPointerDown:q,onKeyDown:Y,onDoubleClick:Z})}},fje=function(e){var t=e.disabled,n=e.initial,r=e.min,i=e.max;return(0,e.children)(dje({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 pje=e=>{const t=I.useRef(e);return I.useEffect(()=>{t.current=e}),t},hje=(e,t=100,n=!1)=>{const r=pje(e),i=I.useRef(),o=[t,n,r];function a(){i.current&&clearTimeout(i.current),i.current=void 0}I.useEffect(()=>a,o);function s(){i.current=void 0}return I.useCallback(function(){const l=arguments,{current:u}=i;if(u===void 0&&n)return i.current=setTimeout(s,t),r.current.apply(null,l);u&&clearTimeout(u),i.current=setTimeout(()=>{i.current=void 0,r.current.apply(null,l)},t)},o)},mje=(e,t,n)=>{const r=I.useState(e);return[r[0],hje(r[1],t,n)]};function l2(e,t,n,r){const i=I.useRef(n),o=I.useRef(r);I.useEffect(()=>{i.current=n,o.current=r}),I.useEffect(()=>{const a=e&&"current"in e?e.current:e;if(!a)return;let s=0;function l(...c){s||i.current.apply(this,c)}a.addEventListener(t,l);const u=o.current;return()=>{s=1,a.removeEventListener(t,l),u&&u()}},[e,t])}const gje={},Gb=typeof window>"u"?null:window,bje=Gb&&typeof Gb.visualViewport<"u"?Gb.visualViewport:null,cz=()=>[document.documentElement.clientWidth,document.documentElement.clientHeight],yje=function(e){e===void 0&&(e=gje);const{wait:t,leading:n,initialWidth:r=0,initialHeight:i=0}=e,[o,a]=mje(typeof document>"u"?[r,i]:cz,t,n),s=()=>a(cz);return l2(Gb,"resize",s),l2(bje,"resize",s),l2(Gb,"orientationchange",s),o},Oje=e=>yje(e)[0];function b1(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const a=n.slice(i,r).trim();(a||!o)&&t.push(a),i=r+1,r=n.indexOf(",",i)}return t}function OL(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const vje=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Eje=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Sje={};function dz(e,t){return((t||Sje).jsx?Eje:vje).test(e)}const Tje=/[ \t\n\f\r]/g;function une(e){return typeof e=="object"?e.type==="text"?fz(e.value):!1:fz(e)}function fz(e){return e.replace(Tje,"")===""}class CO{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}CO.prototype.property={};CO.prototype.normal={};CO.prototype.space=null;function cne(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&Aje.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(hz,Ije);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!hz.test(o)){let a=o.replace(_je,Rje);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=vL}return new i(r,t)}function Rje(e){return"-"+e.toLowerCase()}function Ije(e){return e.charAt(1).toUpperCase()}const Dje={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"},Bp=cne([pne,fne,gne,bne,xje],"html"),Uu=cne([pne,fne,gne,bne,Cje],"svg");function y1(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function EL(e){return e.join(" ").trim()}var yne={},mz=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Nje=/\n/g,Pje=/^\s*/,Lje=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Mje=/^:\s*/,$je=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Fje=/^[;\s]*/,Bje=/^\s+|\s+$/g,Uje=` +`,gz="/",bz="*",Pf="",jje="comment",zje="declaration",Vje=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(m){var b=m.match(Nje);b&&(n+=b.length);var O=m.lastIndexOf(Uje);r=~O?m.length-O:r+m.length}function o(){var m={line:n,column:r};return function(b){return b.position=new a(m),u(),b}}function a(m){this.start=m,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function s(m){var b=new Error(t.source+":"+n+":"+r+": "+m);if(b.reason=m,b.filename=t.source,b.line=n,b.column=r,b.source=e,!t.silent)throw b}function l(m){var b=m.exec(e);if(b){var O=b[0];return i(O),e=e.slice(O.length),b}}function u(){l(Pje)}function c(m){var b;for(m=m||[];b=d();)b!==!1&&m.push(b);return m}function d(){var m=o();if(!(gz!=e.charAt(0)||bz!=e.charAt(1))){for(var b=2;Pf!=e.charAt(b)&&(bz!=e.charAt(b)||gz!=e.charAt(b+1));)++b;if(b+=2,Pf===e.charAt(b-1))return s("End of comment missing");var O=e.slice(2,b-2);return r+=2,i(O),e=e.slice(b),r+=2,m({type:jje,comment:O})}}function p(){var m=o(),b=l(Lje);if(b){if(d(),!l(Mje))return s("property missing ':'");var O=l($je),y=m({type:zje,property:yz(b[0].replace(mz,Pf)),value:O?yz(O[0].replace(mz,Pf)):Pf});return l(Fje),y}}function h(){var m=[];c(m);for(var b;b=p();)b!==!1&&(m.push(b),c(m));return m}return u(),h()};function yz(e){return e?e.replace(Bje,Pf):Pf}var Hje=xS&&xS.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yne,"__esModule",{value:!0});var Wje=Hje(Vje);function Qje(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,Wje.default)(e),i=typeof t=="function";return r.forEach(function(o){if(o.type==="declaration"){var a=o.property,s=o.value;i?t(a,s,o):s&&(n=n||{},n[a]=s)}}),n}var Oz=yne.default=Qje;const Yje=Oz.default||Oz,kx=One("end"),ju=One("start");function One(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 Gje(e){const t=ju(e),n=kx(e);if(t&&n)return{start:t,end:n}}function qb(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?vz(e.position):"start"in e||"end"in e?vz(e):"line"in e||"column"in e?HI(e):""}function HI(e){return Ez(e&&e.line)+":"+Ez(e&&e.column)}function vz(e){return HI(e&&e.start)+"-"+HI(e&&e.end)}function Ez(e){return e&&typeof e=="number"?e:1}class zo extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},a=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(a=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?o.ruleId=r:(o.source=r.slice(0,l),o.ruleId=r.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const s=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=qb(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}zo.prototype.file="";zo.prototype.name="";zo.prototype.reason="";zo.prototype.message="";zo.prototype.stack="";zo.prototype.column=void 0;zo.prototype.line=void 0;zo.prototype.ancestors=void 0;zo.prototype.cause=void 0;zo.prototype.fatal=void 0;zo.prototype.place=void 0;zo.prototype.ruleId=void 0;zo.prototype.source=void 0;const SL={}.hasOwnProperty,qje=new Map,Zje=/[A-Z]/g,Xje=/-([a-z])/g,Kje=new Set(["table","tbody","thead","tfoot","tr"]),Jje=new Set(["td","th"]),vne="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function eze(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=lze(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=sze(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"?Uu:Bp,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=Ene(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function Ene(e,t,n){if(t.type==="element")return tze(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return nze(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return ize(e,t,n);if(t.type==="mdxjsEsm")return rze(e,t);if(t.type==="root")return oze(e,t,n);if(t.type==="text")return aze(e,t)}function tze(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Uu,e.schema=i),e.ancestors.push(t);const o=Tne(e,t.tagName,!1),a=uze(e,t);let s=wL(e,t);return Kje.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!une(l):!0})),Sne(e,a,o,t),TL(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function nze(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)}O1(e,t.position)}function rze(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);O1(e,t.position)}function ize(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Uu,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:Tne(e,t.name,!0),a=cze(e,t),s=wL(e,t);return Sne(e,a,o,t),TL(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function oze(e,t,n){const r={};return TL(r,wL(e,t)),e.create(t,e.Fragment,r,n)}function aze(e,t){return t.value}function Sne(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function TL(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function sze(e,t,n){return r;function r(i,o,a,s){const u=Array.isArray(a.children)?n:t;return s?u(o,a,s):u(o,a)}}function lze(e,t){return n;function n(r,i,o,a){const s=Array.isArray(o.children),l=ju(r);return t(i,o,a,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function uze(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&SL.call(t.properties,i)){const o=dze(e,i,t.properties[i]);if(o){const[a,s]=o;e.tableCellAlignToStyle&&a==="align"&&typeof s=="string"&&Jje.has(t.tagName)?r=s:n[a]=s}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function cze(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const a=o.expression;a.type;const s=a.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else O1(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,o=e.evaluater.evaluateExpression(s.expression)}else O1(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function wL(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:qje;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o0?(fs(e,e.length,0,t),e):t}const wz={}.hasOwnProperty;function kne(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 Rl(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Eze=df(new RegExp("\\p{P}","u")),na=df(/[A-Za-z]/),Lo=df(/[\dA-Za-z]/),Sze=df(/[#-'*+\--9=?A-Z^-~]/);function uw(e){return e!==null&&(e<32||e===127)}const WI=df(/\d/),Tze=df(/[\dA-Fa-f]/),Cne=df(/[!-/:-@[-`{-~]/);function gn(e){return e!==null&&e<-2}function vr(e){return e!==null&&(e<0||e===32)}function Un(e){return e===-2||e===-1||e===32}function xx(e){return Cne(e)||Eze(e)}const Cp=df(/\s/);function df(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Gg(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&o<57344){const s=e.charCodeAt(n+1);o<56320&&s>56319&&s<57344?(a=String.fromCharCode(o,s),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Kn(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return Un(l)?(e.enter(n),s(l)):t(l)}function s(l){return Un(l)&&o++a))return;const E=t.events.length;let $=E,P,R;for(;$--;)if(t.events[$][0]==="exit"&&t.events[$][1].type==="chunkFlow"){if(P){R=t.events[$][1].end;break}P=!0}for(y(r),w=E;wS;){const C=n[k];t.containerState=C[1],C[0].exit.call(t,e)}n.length=S}function v(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Aze(e,t,n){return Kn(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function cw(e){if(e===null||vr(e)||Cp(e))return 1;if(xx(e))return 2}function Cx(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d=Object.assign({},e[r][1].end),p=Object.assign({},e[n][1].start);xz(d,-l),xz(p,l),a={type:l>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:p},o={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({},a.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},a.start),e[n][1].start=Object.assign({},s.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Fs(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Fs(u,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),u=Fs(u,Cx(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Fs(u,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=Fs(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,fs(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n0&&Un(w)?Kn(e,v,"linePrefix",o+1)(w):v(w)}function v(w){return w===null||gn(w)?e.check(Cz,b,k)(w):(e.enter("codeFlowValue"),S(w))}function S(w){return w===null||gn(w)?(e.exit("codeFlowValue"),v(w)):(e.consume(w),S)}function k(w){return e.exit("codeFenced"),t(w)}function C(w,E,$){let P=0;return R;function R(W){return w.enter("lineEnding"),w.consume(W),w.exit("lineEnding"),B}function B(W){return w.enter("codeFencedFence"),Un(W)?Kn(w,U,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):U(W)}function U(W){return W===s?(w.enter("codeFencedFenceSequence"),V(W)):$(W)}function V(W){return W===s?(P++,w.consume(W),V):P>=a?(w.exit("codeFencedFenceSequence"),Un(W)?Kn(w,z,"whitespace")(W):z(W)):$(W)}function z(W){return W===null||gn(W)?(w.exit("codeFencedFence"),E(W)):$(W)}}}function Uze(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const d2={name:"codeIndented",tokenize:zze},jze={tokenize:Vze,partial:!0};function zze(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),Kn(e,o,"linePrefix",5)(u)}function o(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?a(u):n(u)}function a(u){return u===null?l(u):gn(u)?e.attempt(jze,a,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||gn(u)?(e.exit("codeFlowValue"),a(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function Vze(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):gn(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):Kn(e,o,"linePrefix",5)(a)}function o(a){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):gn(a)?i(a):n(a)}}const Hze={name:"codeText",tokenize:Yze,resolve:Wze,previous:Qze};function Wze(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=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function Dne(e,t,n,r,i,o,a,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return d;function d(y){return y===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(y),e.exit(o),p):y===null||y===32||y===41||uw(y)?n(y):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),b(y))}function p(y){return y===62?(e.enter(o),e.consume(y),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(e.exit("chunkString"),e.exit(s),p(y)):y===null||y===60||gn(y)?n(y):(e.consume(y),y===92?m:h)}function m(y){return y===60||y===62||y===92?(e.consume(y),h):h(y)}function b(y){return!c&&(y===null||y===41||vr(y))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(y)):c999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):gn(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===null||h===91||h===93||gn(h)||s++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!Un(h)),h===92?p:d)}function p(h){return h===91||h===92||h===93?(e.consume(h),s++,d):d(h)}}function Pne(e,t,n,r,i,o){let a;return s;function s(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),a=p===40?41:p,l):n(p)}function l(p){return p===a?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(o),u(p))}function u(p){return p===a?(e.exit(o),l(a)):p===null?n(p):gn(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Kn(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===a||p===null||gn(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?d:c)}function d(p){return p===a||p===92?(e.consume(p),c):c(p)}}function Zb(e,t){let n;return r;function r(i){return gn(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Un(i)?Kn(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const eVe={name:"definition",tokenize:nVe},tVe={tokenize:rVe,partial:!0};function nVe(e,t,n){const r=this;let i;return o;function o(h){return e.enter("definition"),a(h)}function a(h){return Nne.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=Rl(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return vr(h)?Zb(e,u)(h):u(h)}function u(h){return Dne(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(tVe,d,d)(h)}function d(h){return Un(h)?Kn(e,p,"whitespace")(h):p(h)}function p(h){return h===null||gn(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function rVe(e,t,n){return r;function r(s){return vr(s)?Zb(e,i)(s):n(s)}function i(s){return Pne(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return Un(s)?Kn(e,a,"whitespace")(s):a(s)}function a(s){return s===null||gn(s)?t(s):n(s)}}const iVe={name:"hardBreakEscape",tokenize:oVe};function oVe(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return gn(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const aVe={name:"headingAtx",tokenize:lVe,resolve:sVe};function sVe(e,t){let n=e.length-2,r=3,i,o;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},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},fs(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function lVe(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),a(c)}function a(c){return c===35&&r++<6?(e.consume(c),a):c===null||vr(c)?(e.exit("atxHeadingSequence"),s(c)):n(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||gn(c)?(e.exit("atxHeading"),t(c)):Un(c)?Kn(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||vr(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const uVe=["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"],_z=["pre","script","style","textarea"],cVe={name:"htmlFlow",tokenize:hVe,resolveTo:pVe,concrete:!0},dVe={tokenize:gVe,partial:!0},fVe={tokenize:mVe,partial:!0};function pVe(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 hVe(e,t,n){const r=this;let i,o,a,s,l;return u;function u(G){return c(G)}function c(G){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(G),d}function d(G){return G===33?(e.consume(G),p):G===47?(e.consume(G),o=!0,b):G===63?(e.consume(G),i=3,r.interrupt?t:j):na(G)?(e.consume(G),a=String.fromCharCode(G),O):n(G)}function p(G){return G===45?(e.consume(G),i=2,h):G===91?(e.consume(G),i=5,s=0,m):na(G)?(e.consume(G),i=4,r.interrupt?t:j):n(G)}function h(G){return G===45?(e.consume(G),r.interrupt?t:j):n(G)}function m(G){const ce="CDATA[";return G===ce.charCodeAt(s++)?(e.consume(G),s===ce.length?r.interrupt?t:U:m):n(G)}function b(G){return na(G)?(e.consume(G),a=String.fromCharCode(G),O):n(G)}function O(G){if(G===null||G===47||G===62||vr(G)){const ce=G===47,ge=a.toLowerCase();return!ce&&!o&&_z.includes(ge)?(i=1,r.interrupt?t(G):U(G)):uVe.includes(a.toLowerCase())?(i=6,ce?(e.consume(G),y):r.interrupt?t(G):U(G)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(G):o?v(G):S(G))}return G===45||Lo(G)?(e.consume(G),a+=String.fromCharCode(G),O):n(G)}function y(G){return G===62?(e.consume(G),r.interrupt?t:U):n(G)}function v(G){return Un(G)?(e.consume(G),v):R(G)}function S(G){return G===47?(e.consume(G),R):G===58||G===95||na(G)?(e.consume(G),k):Un(G)?(e.consume(G),S):R(G)}function k(G){return G===45||G===46||G===58||G===95||Lo(G)?(e.consume(G),k):C(G)}function C(G){return G===61?(e.consume(G),w):Un(G)?(e.consume(G),C):S(G)}function w(G){return G===null||G===60||G===61||G===62||G===96?n(G):G===34||G===39?(e.consume(G),l=G,E):Un(G)?(e.consume(G),w):$(G)}function E(G){return G===l?(e.consume(G),l=null,P):G===null||gn(G)?n(G):(e.consume(G),E)}function $(G){return G===null||G===34||G===39||G===47||G===60||G===61||G===62||G===96||vr(G)?C(G):(e.consume(G),$)}function P(G){return G===47||G===62||Un(G)?S(G):n(G)}function R(G){return G===62?(e.consume(G),B):n(G)}function B(G){return G===null||gn(G)?U(G):Un(G)?(e.consume(G),B):n(G)}function U(G){return G===45&&i===2?(e.consume(G),X):G===60&&i===1?(e.consume(G),q):G===62&&i===4?(e.consume(G),se):G===63&&i===3?(e.consume(G),j):G===93&&i===5?(e.consume(G),Z):gn(G)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(dVe,ve,V)(G)):G===null||gn(G)?(e.exit("htmlFlowData"),V(G)):(e.consume(G),U)}function V(G){return e.check(fVe,z,ve)(G)}function z(G){return e.enter("lineEnding"),e.consume(G),e.exit("lineEnding"),W}function W(G){return G===null||gn(G)?V(G):(e.enter("htmlFlowData"),U(G))}function X(G){return G===45?(e.consume(G),j):U(G)}function q(G){return G===47?(e.consume(G),a="",Y):U(G)}function Y(G){if(G===62){const ce=a.toLowerCase();return _z.includes(ce)?(e.consume(G),se):U(G)}return na(G)&&a.length<8?(e.consume(G),a+=String.fromCharCode(G),Y):U(G)}function Z(G){return G===93?(e.consume(G),j):U(G)}function j(G){return G===62?(e.consume(G),se):G===45&&i===2?(e.consume(G),j):U(G)}function se(G){return G===null||gn(G)?(e.exit("htmlFlowData"),ve(G)):(e.consume(G),se)}function ve(G){return e.exit("htmlFlow"),t(G)}}function mVe(e,t,n){const r=this;return i;function i(a){return gn(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):n(a)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function gVe(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(AO,t,n)}}const bVe={name:"htmlText",tokenize:yVe};function yVe(e,t,n){const r=this;let i,o,a;return s;function s(j){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(j),l}function l(j){return j===33?(e.consume(j),u):j===47?(e.consume(j),C):j===63?(e.consume(j),S):na(j)?(e.consume(j),$):n(j)}function u(j){return j===45?(e.consume(j),c):j===91?(e.consume(j),o=0,m):na(j)?(e.consume(j),v):n(j)}function c(j){return j===45?(e.consume(j),h):n(j)}function d(j){return j===null?n(j):j===45?(e.consume(j),p):gn(j)?(a=d,q(j)):(e.consume(j),d)}function p(j){return j===45?(e.consume(j),h):d(j)}function h(j){return j===62?X(j):j===45?p(j):d(j)}function m(j){const se="CDATA[";return j===se.charCodeAt(o++)?(e.consume(j),o===se.length?b:m):n(j)}function b(j){return j===null?n(j):j===93?(e.consume(j),O):gn(j)?(a=b,q(j)):(e.consume(j),b)}function O(j){return j===93?(e.consume(j),y):b(j)}function y(j){return j===62?X(j):j===93?(e.consume(j),y):b(j)}function v(j){return j===null||j===62?X(j):gn(j)?(a=v,q(j)):(e.consume(j),v)}function S(j){return j===null?n(j):j===63?(e.consume(j),k):gn(j)?(a=S,q(j)):(e.consume(j),S)}function k(j){return j===62?X(j):S(j)}function C(j){return na(j)?(e.consume(j),w):n(j)}function w(j){return j===45||Lo(j)?(e.consume(j),w):E(j)}function E(j){return gn(j)?(a=E,q(j)):Un(j)?(e.consume(j),E):X(j)}function $(j){return j===45||Lo(j)?(e.consume(j),$):j===47||j===62||vr(j)?P(j):n(j)}function P(j){return j===47?(e.consume(j),X):j===58||j===95||na(j)?(e.consume(j),R):gn(j)?(a=P,q(j)):Un(j)?(e.consume(j),P):X(j)}function R(j){return j===45||j===46||j===58||j===95||Lo(j)?(e.consume(j),R):B(j)}function B(j){return j===61?(e.consume(j),U):gn(j)?(a=B,q(j)):Un(j)?(e.consume(j),B):P(j)}function U(j){return j===null||j===60||j===61||j===62||j===96?n(j):j===34||j===39?(e.consume(j),i=j,V):gn(j)?(a=U,q(j)):Un(j)?(e.consume(j),U):(e.consume(j),z)}function V(j){return j===i?(e.consume(j),i=void 0,W):j===null?n(j):gn(j)?(a=V,q(j)):(e.consume(j),V)}function z(j){return j===null||j===34||j===39||j===60||j===61||j===96?n(j):j===47||j===62||vr(j)?P(j):(e.consume(j),z)}function W(j){return j===47||j===62||vr(j)?P(j):n(j)}function X(j){return j===62?(e.consume(j),e.exit("htmlTextData"),e.exit("htmlText"),t):n(j)}function q(j){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),Y}function Y(j){return Un(j)?Kn(e,Z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):Z(j)}function Z(j){return e.enter("htmlTextData"),a(j)}}const xL={name:"labelEnd",tokenize:wVe,resolveTo:TVe,resolveAll:SVe},OVe={tokenize:kVe},vVe={tokenize:xVe},EVe={tokenize:CVe};function SVe(e){let t=-1;for(;++t=3&&(u===null||gn(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),Un(u)?Kn(e,s,"whitespace")(u):s(u))}}const ma={name:"list",tokenize:MVe,continuation:{tokenize:$Ve},exit:BVe},PVe={tokenize:UVe,partial:!0},LVe={tokenize:FVe,partial:!0};function MVe(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return s;function s(h){const m=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:WI(h)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(pS,n,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return WI(h)&&++a<10?(e.consume(h),l):(!r.interrupt||a<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(AO,r.interrupt?n:c,e.attempt(PVe,p,d))}function c(h){return r.containerState.initialBlankLine=!0,o++,p(h)}function d(h){return Un(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function $Ve(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(AO,i,o);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Kn(e,t,"listItemIndent",r.containerState.size+1)(s)}function o(s){return r.containerState.furtherBlankLines||!Un(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(LVe,t,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Kn(e,e.attempt(ma,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function FVe(e,t,n){const r=this;return Kn(e,i,"listItemIndent",r.containerState.size+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(o):n(o)}}function BVe(e){e.exit(this.containerState.type)}function UVe(e,t,n){const r=this;return Kn(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const a=r.events[r.events.length-1];return!Un(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const Rz={name:"setextUnderline",tokenize:zVe,resolveTo:jVe};function jVe(e,t){let n=e.length,r,i,o;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),!o&&e[n][1].type==="definition"&&(o=n);const a={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[o][1].end)):e[r][1]=a,e.push(["exit",a,t]),e}function zVe(e,t,n){const r=this;let i;return o;function o(u){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=u,a(u)):n(u)}function a(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),Un(u)?Kn(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||gn(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const VVe={tokenize:HVe};function HVe(e){const t=this,n=e.attempt(AO,r,e.attempt(this.parser.constructs.flowInitial,i,Kn(e,e.attempt(this.parser.constructs.flow,i,e.attempt(qze,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const WVe={resolveAll:Mne()},QVe=Lne("string"),YVe=Lne("text");function Lne(e){return{tokenize:t,resolveAll:Mne(e==="text"?GVe:void 0)};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,a,s);return a;function a(c){return u(c)?o(c):s(c)}function s(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),o(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const d=i[c];let p=-1;if(d)for(;++p-1){const s=a[0];typeof s=="string"?a[0]=s.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}function XVe(e,t){let n=-1;const r=[];let i;for(;++n0){const rt=de.tokenStack[de.tokenStack.length-1];(rt[1]||$j).call(de,void 0,rt[0])}for(fe.position={start:Hc(ie.length>0?ie[0][1].start:{line:1,column:1,offset:0}),end:Hc(ie.length>0?ie[ie.length-2][1].end:{line:1,column:1,offset:0})},Te=-1;++Te1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function a$e(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 s$e(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function JJ(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),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function l$e(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return JJ(e,t);const i={src:Bg(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function u$e(e,t){const n={src:Bg(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 c$e(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 d$e(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return JJ(e,t);const i={href:Bg(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function f$e(e,t){const n={href:Bg(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 p$e(e,t,n){const r=e.all(t),i=n?h$e(n):eee(t),o={},a=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s0){const rt=de.tokenStack[de.tokenStack.length-1];(rt[1]||Dz).call(de,void 0,rt[0])}for(fe.position={start:Qc(ie.length>0?ie[0][1].start:{line:1,column:1,offset:0}),end:Qc(ie.length>0?ie[ie.length-2][1].end:{line:1,column:1,offset:0})},Te=-1;++Te1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function wHe(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 kHe(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Bne(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),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function xHe(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Bne(e,t);const i={src:Gg(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function CHe(e,t){const n={src:Gg(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 AHe(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 _He(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Bne(e,t);const i={href:Gg(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function RHe(e,t){const n={href:Gg(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 IHe(e,t,n){const r=e.all(t),i=n?DHe(n):Une(t),o={},a=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s1}function m$e(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 a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=Bu(t.children[1]),l=rx(t.children[t.children.length-1]);s&&l&&(a.position={start:s,end:l}),i.push(a)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function v$e(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,s=a?a.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 o.push(Uj(t.slice(i),i>0,!1)),o.join("")}function Uj(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===Fj||o===Bj;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===Fj||o===Bj;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function T$e(e,t){const n={type:"text",value:S$e(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function w$e(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const k$e={blockquote:e$e,break:t$e,code:n$e,delete:r$e,emphasis:i$e,footnoteReference:o$e,heading:a$e,html:s$e,imageReference:l$e,image:u$e,inlineCode:c$e,linkReference:d$e,link:f$e,listItem:p$e,list:m$e,paragraph:g$e,root:b$e,strong:y$e,table:O$e,tableCell:E$e,tableRow:v$e,text:T$e,thematicBreak:w$e,toml:sE,yaml:sE,definition:sE,footnoteDefinition:sE};function sE(){}const tee=-1,ax=0,GT=1,qT=2,v3=3,E3=4,S3=5,T3=6,nee=7,ree=8,jj=typeof self=="object"?self:globalThis,x$e=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,a]=t[i];switch(o){case ax:case tee:return n(a,i);case GT:{const s=n([],i);for(const l of a)s.push(r(l));return s}case qT:{const s=n({},i);for(const[l,u]of a)s[r(l)]=r(u);return s}case v3:return n(new Date(a),i);case E3:{const{source:s,flags:l}=a;return n(new RegExp(s,l),i)}case S3:{const s=n(new Map,i);for(const[l,u]of a)s.set(r(l),r(u));return s}case T3:{const s=n(new Set,i);for(const l of a)s.add(r(l));return s}case nee:{const{name:s,message:l}=a;return n(new jj[s](l),i)}case ree:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i)}return n(new jj[o](a),i)};return r},zj=e=>x$e(new Map,e)(0),ph="",{toString:C$e}={},{keys:A$e}=Object,$0=e=>{const t=typeof e;if(t!=="object"||!e)return[ax,t];const n=C$e.call(e).slice(8,-1);switch(n){case"Array":return[GT,ph];case"Object":return[qT,ph];case"Date":return[v3,ph];case"RegExp":return[E3,ph];case"Map":return[S3,ph];case"Set":return[T3,ph]}return n.includes("Array")?[GT,n]:n.includes("Error")?[nee,n]:[qT,n]},lE=([e,t])=>e===ax&&(t==="function"||t==="symbol"),_$e=(e,t,n,r)=>{const i=(a,s)=>{const l=r.push(a)-1;return n.set(s,l),l},o=a=>{if(n.has(a))return n.get(a);let[s,l]=$0(a);switch(s){case ax:{let c=a;switch(l){case"bigint":s=ree,c=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([tee],a)}return i([s,c],a)}case GT:{if(l)return i([l,[...a]],a);const c=[],d=i([s,c],a);for(const p of a)c.push(o(p));return d}case qT:{if(l)switch(l){case"BigInt":return i([l,a.toString()],a);case"Boolean":case"Number":case"String":return i([l,a.valueOf()],a)}if(t&&"toJSON"in a)return o(a.toJSON());const c=[],d=i([s,c],a);for(const p of A$e(a))(e||!lE($0(a[p])))&&c.push([o(p),o(a[p])]);return d}case v3:return i([s,a.toISOString()],a);case E3:{const{source:c,flags:d}=a;return i([s,{source:c,flags:d}],a)}case S3:{const c=[],d=i([s,c],a);for(const[p,h]of a)(e||!(lE($0(p))||lE($0(h))))&&c.push([o(p),o(h)]);return d}case T3:{const c=[],d=i([s,c],a);for(const p of a)(e||!lE($0(p)))&&c.push(o(p));return d}}const{message:u}=a;return i([s,{name:l,message:u}],a)};return o},Vj=(e,{json:t,lossy:n}={})=>{const r=[];return _$e(!(t||n),!!t,new Map,r)(e),r},Cp=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?zj(Vj(e,t)):structuredClone(e):(e,t)=>zj(Vj(e,t));function R$e(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 I$e(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function D$e(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||R$e,r=e.options.footnoteBackLabel||I$e,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l0&&m.push({type:"text",value:" "});let v=typeof n=="string"?n:n(l,h);typeof v=="string"&&(v={type:"text",value:v}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,h),className:["data-footnote-backref"]},children:Array.isArray(v)?v:[v]})}const O=c[c.length-1];if(O&&O.type==="element"&&O.tagName==="p"){const v=O.children[O.children.length-1];v&&v.type==="text"?v.value+=" ":O.children.push({type:"text",value:" "}),O.children.push(...m)}else c.push(...m);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(c,!0)};e.patch(u,y),s.push(y)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Cp(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` +`});const u={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,u),e.applyData(t,u)}function DHe(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r1}function NHe(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 a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=ju(t.children[1]),l=kx(t.children[t.children.length-1]);s&&l&&(a.position={start:s,end:l}),i.push(a)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function FHe(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,s=a?a.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 o.push(Lz(t.slice(i),i>0,!1)),o.join("")}function Lz(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===Nz||o===Pz;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===Nz||o===Pz;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function jHe(e,t){const n={type:"text",value:UHe(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function zHe(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const VHe={blockquote:yHe,break:OHe,code:vHe,delete:EHe,emphasis:SHe,footnoteReference:THe,heading:wHe,html:kHe,imageReference:xHe,image:CHe,inlineCode:AHe,linkReference:_He,link:RHe,listItem:IHe,list:NHe,paragraph:PHe,root:LHe,strong:MHe,table:$He,tableCell:BHe,tableRow:FHe,text:jHe,thematicBreak:zHe,toml:gE,yaml:gE,definition:gE,footnoteDefinition:gE};function gE(){}const jne=-1,Ax=0,dw=1,fw=2,CL=3,AL=4,_L=5,RL=6,zne=7,Vne=8,Mz=typeof self=="object"?self:globalThis,HHe=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,a]=t[i];switch(o){case Ax:case jne:return n(a,i);case dw:{const s=n([],i);for(const l of a)s.push(r(l));return s}case fw:{const s=n({},i);for(const[l,u]of a)s[r(l)]=r(u);return s}case CL:return n(new Date(a),i);case AL:{const{source:s,flags:l}=a;return n(new RegExp(s,l),i)}case _L:{const s=n(new Map,i);for(const[l,u]of a)s.set(r(l),r(u));return s}case RL:{const s=n(new Set,i);for(const l of a)s.add(r(l));return s}case zne:{const{name:s,message:l}=a;return n(new Mz[s](l),i)}case Vne:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i)}return n(new Mz[o](a),i)};return r},$z=e=>HHe(new Map,e)(0),gh="",{toString:WHe}={},{keys:QHe}=Object,W0=e=>{const t=typeof e;if(t!=="object"||!e)return[Ax,t];const n=WHe.call(e).slice(8,-1);switch(n){case"Array":return[dw,gh];case"Object":return[fw,gh];case"Date":return[CL,gh];case"RegExp":return[AL,gh];case"Map":return[_L,gh];case"Set":return[RL,gh]}return n.includes("Array")?[dw,n]:n.includes("Error")?[zne,n]:[fw,n]},bE=([e,t])=>e===Ax&&(t==="function"||t==="symbol"),YHe=(e,t,n,r)=>{const i=(a,s)=>{const l=r.push(a)-1;return n.set(s,l),l},o=a=>{if(n.has(a))return n.get(a);let[s,l]=W0(a);switch(s){case Ax:{let c=a;switch(l){case"bigint":s=Vne,c=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([jne],a)}return i([s,c],a)}case dw:{if(l)return i([l,[...a]],a);const c=[],d=i([s,c],a);for(const p of a)c.push(o(p));return d}case fw:{if(l)switch(l){case"BigInt":return i([l,a.toString()],a);case"Boolean":case"Number":case"String":return i([l,a.valueOf()],a)}if(t&&"toJSON"in a)return o(a.toJSON());const c=[],d=i([s,c],a);for(const p of QHe(a))(e||!bE(W0(a[p])))&&c.push([o(p),o(a[p])]);return d}case CL:return i([s,a.toISOString()],a);case AL:{const{source:c,flags:d}=a;return i([s,{source:c,flags:d}],a)}case _L:{const c=[],d=i([s,c],a);for(const[p,h]of a)(e||!(bE(W0(p))||bE(W0(h))))&&c.push([o(p),o(h)]);return d}case RL:{const c=[],d=i([s,c],a);for(const p of a)(e||!bE(W0(p)))&&c.push(o(p));return d}}const{message:u}=a;return i([s,{name:l,message:u}],a)};return o},Fz=(e,{json:t,lossy:n}={})=>{const r=[];return YHe(!(t||n),!!t,new Map,r)(e),r},Ap=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?$z(Fz(e,t)):structuredClone(e):(e,t)=>$z(Fz(e,t));function GHe(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 qHe(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function ZHe(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||GHe,r=e.options.footnoteBackLabel||qHe,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l0&&m.push({type:"text",value:" "});let v=typeof n=="string"?n:n(l,h);typeof v=="string"&&(v={type:"text",value:v}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,h),className:["data-footnote-backref"]},children:Array.isArray(v)?v:[v]})}const O=c[c.length-1];if(O&&O.type==="element"&&O.tagName==="p"){const v=O.children[O.children.length-1];v&&v.type==="text"?v.value+=" ":O.children.push({type:"text",value:" "}),O.children.push(...m)}else c.push(...m);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(c,!0)};e.patch(u,y),s.push(y)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Ap(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:` -`}]}}const gO=function(e){if(e==null)return M$e;if(typeof e=="function")return sx(e);if(typeof e=="object")return Array.isArray(e)?N$e(e):P$e(e);if(typeof e=="string")return L$e(e);throw new Error("Expected function, string, or object as test")};function N$e(e){const t=[];let n=-1;for(;++n":""))+")"})}return p;function p(){let h=iee,m,b,O;if((!t||o(l,u,c[c.length-1]||void 0))&&(h=B$e(n(l,c)),h[0]===ZT))return h;if("children"in l&&l.children){const y=l;if(y.children&&h[0]!==zb)for(b=(r?y.children.length:-1)+a,O=c.concat(y);b>-1&&b":""))+")"})}return p;function p(){let h=Hne,m,b,O;if((!t||o(l,u,c[c.length-1]||void 0))&&(h=rWe(n(l,c)),h[0]===pw))return h;if("children"in l&&l.children){const y=l;if(y.children&&h[0]!==Xb)for(b=(r?y.children.length:-1)+a,O=c.concat(y);b>-1&&b0&&n.push({type:"text",value:` -`}),n}function Hj(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Wj(e,t){const n=j$e(e,t),r=n.one(e,void 0),i=D$e(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:` -`},i),o}function Q$e(e,t){return e&&"run"in e?async function(n,r){const i=Wj(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Wj(n,{file:r,...t||e})}}function Qj(e){if(e)throw e}var iS=Object.prototype.hasOwnProperty,aee=Object.prototype.toString,Yj=Object.defineProperty,Gj=Object.getOwnPropertyDescriptor,qj=function(t){return typeof Array.isArray=="function"?Array.isArray(t):aee.call(t)==="[object Array]"},Zj=function(t){if(!t||aee.call(t)!=="[object Object]")return!1;var n=iS.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&iS.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||iS.call(t,i)},Xj=function(t,n){Yj&&n.name==="__proto__"?Yj(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Kj=function(t,n){if(n==="__proto__")if(iS.call(t,n)){if(Gj)return Gj(t,n).value}else return;return t[n]},Y$e=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,u=arguments.length,c=!1;for(typeof s=="boolean"&&(c=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});la.length;let l;s&&a.push(i);try{l=e.apply(this,a)}catch(u){const c=u;if(s&&n)throw c;return i(c)}s||(l instanceof Promise?l.then(o,i):l instanceof Error?i(l):o(l))}function i(a,...s){n||(n=!0,t(a,...s))}function o(a){i(null,a)}}const iu={basename:Z$e,dirname:X$e,extname:K$e,join:J$e,sep:"/"};function Z$e(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');bO(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else a<0&&(o=!0,a=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function X$e(e){if(bO(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 K$e(e){bO(e);let t=e.length,n=-1,r=0,i=-1,o=0,a;for(;t--;){const s=e.codePointAt(t);if(s===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),s===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function J$e(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function tFe(e,t){let n="",r=0,i=-1,o=0,a=-1,s,l;for(;++a<=e.length;){if(a2){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=a,o=0;continue}}else if(n.length>0){n="",r=0,i=a,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o>-1?o++:o=-1}return n}function bO(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const nFe={cwd:rFe};function rFe(){return"/"}function yI(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function iFe(e){if(typeof e=="string")e=new URL(e);else if(!yI(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 oFe(e)}function oFe(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[h,...m]=c;const b=r[p][1];bI(b)&&bI(h)&&(h=ZA(!0,b,h)),r[p]=[u,h,...m]}}}}const uFe=new w3().freeze();function e2(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function t2(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function n2(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 ez(e){if(!bI(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function tz(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function uE(e){return cFe(e)?e:new see(e)}function cFe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function dFe(e){return typeof e=="string"||fFe(e)}function fFe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const pFe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",nz=[],rz={allowDangerousHtml:!0},hFe=/^(https?|ircs?|mailto|xmpp)$/i,mFe=[{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 gFe(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,a=e.disallowedElements,s=e.rehypePlugins||nz,l=e.remarkPlugins||nz,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...rz}:rz,c=e.skipHtml,d=e.unwrapDisallowed,p=e.urlTransform||bFe,h=uFe().use(J5e).use(l).use(Q$e,u).use(s),m=new see;typeof r=="string"&&(m.value=r);for(const v of mFe)Object.hasOwn(e,v.from)&&(""+v.from+(v.to?"use `"+v.to+"` instead":"remove it")+pFe+v.id,void 0);const b=h.parse(m);let O=h.runSync(b,m);return i&&(O={type:"element",tagName:"div",properties:{className:i},children:O.type==="root"?O.children:[O]}),Da(O,y),MMe(O,{Fragment:P.Fragment,components:o,ignoreInvalidStyle:!0,jsx:P.jsx,jsxs:P.jsxs,passKeys:!0,passNode:!0});function y(v,S,k){if(v.type==="raw"&&k&&typeof S=="number")return c?k.children.splice(S,1):k.children[S]={type:"text",value:v.value},S;if(v.type==="element"){let C;for(C in YA)if(Object.hasOwn(YA,C)&&Object.hasOwn(v.properties,C)){const w=v.properties[C],E=YA[C];(E===null||E.includes(v.tagName))&&(v.properties[C]=p(String(w||""),C,v))}}if(v.type==="element"){let C=t?!t.includes(v.tagName):a?a.includes(v.tagName):!1;if(!C&&n&&typeof S=="number"&&(C=!n(v,S,k)),C&&k&&typeof S=="number")return d&&v.children?k.children.splice(S,1,...v.children):k.children.splice(S,1),S}}}function bFe(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||hFe.test(e.slice(0,t))?e:""}function iz(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 yFe(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function OFe(e,t,n){const i=gO((n||{}).ignore||[]),o=vFe(t);let a=-1;for(;++a0?{type:"text",value:w}:void 0),w===!1?p.lastIndex=k+1:(m!==k&&v.push({type:"text",value:u.value.slice(m,k)}),Array.isArray(w)?v.push(...w):w&&v.push(w),m=k+S[0].length,y=!0),!p.global)break;S=p.exec(u.value)}return y?(m?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=iz(e,"(");let o=iz(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function lee(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||xp(n)||ix(n))&&(!t||n!==47)}uee.peek=WFe;function LFe(){return{enter:{gfmFootnoteDefinition:$Fe,gfmFootnoteDefinitionLabelString:FFe,gfmFootnoteCall:jFe,gfmFootnoteCallString:zFe},exit:{gfmFootnoteDefinition:UFe,gfmFootnoteDefinitionLabelString:BFe,gfmFootnoteCall:HFe,gfmFootnoteCallString:VFe}}}function MFe(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:QFe,footnoteReference:uee}}}function $Fe(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function FFe(){this.buffer()}function BFe(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=Rl(this.sliceSerialize(e)).toLowerCase()}function UFe(e){this.exit(e)}function jFe(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function zFe(){this.buffer()}function VFe(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=Rl(this.sliceSerialize(e)).toLowerCase()}function HFe(e){this.exit(e)}function uee(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),s(),a(),o+=i.move("]"),o}function WFe(){return"["}function QFe(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteDefinition"),s=n.enter("label");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),s(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(n.indentLines(n.containerFlow(e,i.current()),YFe)),a(),o}function YFe(e,t,n){return t===0?e:(n?"":" ")+e}const GFe=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];cee.peek=JFe;function qFe(){return{canContainEols:["delete"],enter:{strikethrough:XFe},exit:{strikethrough:KFe}}}function ZFe(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:GFe}],handlers:{delete:cee}}}function XFe(e){this.enter({type:"delete",children:[]},e)}function KFe(e){this.exit(e)}function cee(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function JFe(){return"~"}function e6e(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||n6e,i=[],o=[],a=[],s=[];let l=0,u=-1;for(;++ul&&(l=e[u].length);++Os[O])&&(s[O]=v)}m.push(y)}o[u]=m,a[u]=b}let c=-1;if(typeof n=="object"&&"length"in n)for(;++cs[c]&&(s[c]=y),p[c]=y),d[c]=v}o.splice(1,0,d),a.splice(1,0,p),u=-1;const h=[];for(;++u "),o.shift(2);const a=n.indentLines(n.containerFlow(e,o.current()),i6e);return i(),a}function i6e(e,t,n){return">"+(n?"":" ")+e}function o6e(e,t){return sz(e,t.inConstruct,!0)&&!sz(e,t.notInConstruct,!1)}function sz(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++ra&&(a=o):o=1,i=r+t.length,r=n.indexOf(t,i);return a}function s6e(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 l6e(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 u6e(e,t,n,r){const i=l6e(n),o=e.value||"",a=i==="`"?"GraveAccent":"Tilde";if(s6e(e,n)){const d=n.enter("codeIndented"),p=n.indentLines(o,c6e);return d(),p}const s=n.createTracker(r),l=i.repeat(Math.max(a6e(o,i)+1,3)),u=n.enter("codeFenced");let c=s.move(l);if(e.lang){const d=n.enter(`codeFencedLang${a}`);c+=s.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...s.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${a}`);c+=s.move(" "),c+=s.move(n.safe(e.meta,{before:c,after:` +`}),n}function Bz(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Uz(e,t){const n=oWe(e,t),r=n.one(e,void 0),i=ZHe(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:` +`},i),o}function cWe(e,t){return e&&"run"in e?async function(n,r){const i=Uz(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Uz(n,{file:r,...t||e})}}function jz(e){if(e)throw e}var hS=Object.prototype.hasOwnProperty,Qne=Object.prototype.toString,zz=Object.defineProperty,Vz=Object.getOwnPropertyDescriptor,Hz=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Qne.call(t)==="[object Array]"},Wz=function(t){if(!t||Qne.call(t)!=="[object Object]")return!1;var n=hS.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&hS.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||hS.call(t,i)},Qz=function(t,n){zz&&n.name==="__proto__"?zz(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Yz=function(t,n){if(n==="__proto__")if(hS.call(t,n)){if(Vz)return Vz(t,n).value}else return;return t[n]},dWe=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,u=arguments.length,c=!1;for(typeof s=="boolean"&&(c=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});la.length;let l;s&&a.push(i);try{l=e.apply(this,a)}catch(u){const c=u;if(s&&n)throw c;return i(c)}s||(l instanceof Promise?l.then(o,i):l instanceof Error?i(l):o(l))}function i(a,...s){n||(n=!0,t(a,...s))}function o(a){i(null,a)}}const iu={basename:hWe,dirname:mWe,extname:gWe,join:bWe,sep:"/"};function hWe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');RO(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else a<0&&(o=!0,a=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function mWe(e){if(RO(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 gWe(e){RO(e);let t=e.length,n=-1,r=0,i=-1,o=0,a;for(;t--;){const s=e.codePointAt(t);if(s===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),s===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function bWe(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function OWe(e,t){let n="",r=0,i=-1,o=0,a=-1,s,l;for(;++a<=e.length;){if(a2){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=a,o=0;continue}}else if(n.length>0){n="",r=0,i=a,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o>-1?o++:o=-1}return n}function RO(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const vWe={cwd:EWe};function EWe(){return"/"}function qI(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function SWe(e){if(typeof e=="string")e=new URL(e);else if(!qI(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 TWe(e)}function TWe(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[h,...m]=c;const b=r[p][1];GI(b)&&GI(h)&&(h=p2(!0,b,h)),r[p]=[u,h,...m]}}}}const CWe=new IL().freeze();function b2(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function y2(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function O2(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 qz(e){if(!GI(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Zz(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function yE(e){return AWe(e)?e:new Yne(e)}function AWe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function _We(e){return typeof e=="string"||RWe(e)}function RWe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const IWe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Xz=[],Kz={allowDangerousHtml:!0},DWe=/^(https?|ircs?|mailto|xmpp)$/i,NWe=[{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 PWe(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,a=e.disallowedElements,s=e.rehypePlugins||Xz,l=e.remarkPlugins||Xz,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Kz}:Kz,c=e.skipHtml,d=e.unwrapDisallowed,p=e.urlTransform||LWe,h=CWe().use(bHe).use(l).use(cWe,u).use(s),m=new Yne;typeof r=="string"&&(m.value=r);for(const v of NWe)Object.hasOwn(e,v.from)&&(""+v.from+(v.to?"use `"+v.to+"` instead":"remove it")+IWe+v.id,void 0);const b=h.parse(m);let O=h.runSync(b,m);return i&&(O={type:"element",tagName:"div",properties:{className:i},children:O.type==="root"?O.children:[O]}),Na(O,y),eze(O,{Fragment:N.Fragment,components:o,ignoreInvalidStyle:!0,jsx:N.jsx,jsxs:N.jsxs,passKeys:!0,passNode:!0});function y(v,S,k){if(v.type==="raw"&&k&&typeof S=="number")return c?k.children.splice(S,1):k.children[S]={type:"text",value:v.value},S;if(v.type==="element"){let C;for(C in c2)if(Object.hasOwn(c2,C)&&Object.hasOwn(v.properties,C)){const w=v.properties[C],E=c2[C];(E===null||E.includes(v.tagName))&&(v.properties[C]=p(String(w||""),C,v))}}if(v.type==="element"){let C=t?!t.includes(v.tagName):a?a.includes(v.tagName):!1;if(!C&&n&&typeof S=="number"&&(C=!n(v,S,k)),C&&k&&typeof S=="number")return d&&v.children?k.children.splice(S,1,...v.children):k.children.splice(S,1),S}}}function LWe(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||DWe.test(e.slice(0,t))?e:""}function Jz(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 MWe(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function $We(e,t,n){const i=_O((n||{}).ignore||[]),o=FWe(t);let a=-1;for(;++a0?{type:"text",value:w}:void 0),w===!1?p.lastIndex=k+1:(m!==k&&v.push({type:"text",value:u.value.slice(m,k)}),Array.isArray(w)?v.push(...w):w&&v.push(w),m=k+S[0].length,y=!0),!p.global)break;S=p.exec(u.value)}return y?(m?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Jz(e,"(");let o=Jz(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function Gne(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Cp(n)||xx(n))&&(!t||n!==47)}qne.peek=uQe;function JWe(){return{enter:{gfmFootnoteDefinition:tQe,gfmFootnoteDefinitionLabelString:nQe,gfmFootnoteCall:oQe,gfmFootnoteCallString:aQe},exit:{gfmFootnoteDefinition:iQe,gfmFootnoteDefinitionLabelString:rQe,gfmFootnoteCall:lQe,gfmFootnoteCallString:sQe}}}function eQe(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:cQe,footnoteReference:qne}}}function tQe(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function nQe(){this.buffer()}function rQe(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=Rl(this.sliceSerialize(e)).toLowerCase()}function iQe(e){this.exit(e)}function oQe(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function aQe(){this.buffer()}function sQe(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=Rl(this.sliceSerialize(e)).toLowerCase()}function lQe(e){this.exit(e)}function qne(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),s(),a(),o+=i.move("]"),o}function uQe(){return"["}function cQe(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteDefinition"),s=n.enter("label");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),s(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(n.indentLines(n.containerFlow(e,i.current()),dQe)),a(),o}function dQe(e,t,n){return t===0?e:(n?"":" ")+e}const fQe=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Zne.peek=bQe;function pQe(){return{canContainEols:["delete"],enter:{strikethrough:mQe},exit:{strikethrough:gQe}}}function hQe(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:fQe}],handlers:{delete:Zne}}}function mQe(e){this.enter({type:"delete",children:[]},e)}function gQe(e){this.exit(e)}function Zne(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function bQe(){return"~"}function yQe(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||vQe,i=[],o=[],a=[],s=[];let l=0,u=-1;for(;++ul&&(l=e[u].length);++Os[O])&&(s[O]=v)}m.push(y)}o[u]=m,a[u]=b}let c=-1;if(typeof n=="object"&&"length"in n)for(;++cs[c]&&(s[c]=y),p[c]=y),d[c]=v}o.splice(1,0,d),a.splice(1,0,p),u=-1;const h=[];for(;++u "),o.shift(2);const a=n.indentLines(n.containerFlow(e,o.current()),SQe);return i(),a}function SQe(e,t,n){return">"+(n?"":" ")+e}function TQe(e,t){return nV(e,t.inConstruct,!0)&&!nV(e,t.notInConstruct,!1)}function nV(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++ra&&(a=o):o=1,i=r+t.length,r=n.indexOf(t,i);return a}function kQe(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 xQe(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 CQe(e,t,n,r){const i=xQe(n),o=e.value||"",a=i==="`"?"GraveAccent":"Tilde";if(kQe(e,n)){const d=n.enter("codeIndented"),p=n.indentLines(o,AQe);return d(),p}const s=n.createTracker(r),l=i.repeat(Math.max(wQe(o,i)+1,3)),u=n.enter("codeFenced");let c=s.move(l);if(e.lang){const d=n.enter(`codeFencedLang${a}`);c+=s.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...s.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${a}`);c+=s.move(" "),c+=s.move(n.safe(e.meta,{before:c,after:` `,encode:["`"],...s.current()})),d()}return c+=s.move(` `),o&&(c+=s.move(o+` -`)),c+=s.move(l),u(),c}function c6e(e,t,n){return(n?"":" ")+e}function x3(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 d6e(e,t,n,r){const i=x3(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("definition");let s=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("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":` -`,...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),a(),u}function f6e(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}dee.peek=p6e;function dee(e,t,n,r){const i=f6e(n),o=n.enter("emphasis"),a=n.createTracker(r);let s=a.move(i);return s+=a.move(n.containerPhrasing(e,{before:s,after:i,...a.current()})),s+=a.move(i),o(),s}function p6e(e,t,n){return n.options.emphasis||"*"}function h6e(e,t){let n=!1;return Da(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,ZT}),!!((!e.depth||e.depth<3)&&y3(e)&&(t.options.setext||n))}function m6e(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(h6e(e,n)){const c=n.enter("headingSetext"),d=n.enter("phrasing"),p=n.containerPhrasing(e,{...o.current(),before:` +`)),c+=s.move(l),u(),c}function AQe(e,t,n){return(n?"":" ")+e}function NL(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 _Qe(e,t,n,r){const i=NL(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("definition");let s=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("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":` +`,...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),a(),u}function RQe(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}Xne.peek=IQe;function Xne(e,t,n,r){const i=RQe(n),o=n.enter("emphasis"),a=n.createTracker(r);let s=a.move(i);return s+=a.move(n.containerPhrasing(e,{before:s,after:i,...a.current()})),s+=a.move(i),o(),s}function IQe(e,t,n){return n.options.emphasis||"*"}function DQe(e,t){let n=!1;return Na(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,pw}),!!((!e.depth||e.depth<3)&&kL(e)&&(t.options.setext||n))}function NQe(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(DQe(e,n)){const c=n.enter("headingSetext"),d=n.enter("phrasing"),p=n.containerPhrasing(e,{...o.current(),before:` `,after:` `});return d(),c(),p+` `+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(` `))+1))}const a="#".repeat(i),s=n.enter("headingAtx"),l=n.enter("phrasing");o.move(a+" ");let u=n.containerPhrasing(e,{before:"# ",after:` -`,...o.current()});return/^[\t ]/.test(u)&&(u="&#x"+u.charCodeAt(0).toString(16).toUpperCase()+";"+u.slice(1)),u=u?a+" "+u:a,n.options.closeAtx&&(u+=" "+a),l(),s(),u}fee.peek=g6e;function fee(e){return e.value||""}function g6e(){return"<"}pee.peek=b6e;function pee(e,t,n,r){const i=x3(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("image");let s=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("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),u+=l.move(")"),a(),u}function b6e(){return"!"}hee.peek=y6e;function hee(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const u=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),a();const c=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=c,o(),i==="full"||!u||u!==d?l+=s.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function y6e(){return"!"}mee.peek=O6e;function mee(e,t,n){let r=e.value||"",i="`",o=-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+" ");++o\u007F]/.test(e.url))}bee.peek=v6e;function bee(e,t,n,r){const i=x3(n),o=i==='"'?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(gee(e,n)){const c=n.stack;n.stack=[],s=n.enter("autolink");let d=a.move("<");return d+=a.move(n.containerPhrasing(e,{before:d,after:">",...a.current()})),d+=a.move(">"),s(),n.stack=c,d}s=n.enter("link"),l=n.enter("label");let u=a.move("[");return u+=a.move(n.containerPhrasing(e,{before:u,after:"](",...a.current()})),u+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(l=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${o}`),u+=a.move(" "+i),u+=a.move(n.safe(e.title,{before:u,after:i,...a.current()})),u+=a.move(i),l()),u+=a.move(")"),s(),u}function v6e(e,t,n){return gee(e,n)?"<":"["}yee.peek=E6e;function yee(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),a();const c=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=c,o(),i==="full"||!u||u!==d?l+=s.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function E6e(){return"["}function C3(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 S6e(e){const t=C3(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 T6e(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 Oee(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 w6e(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let a=e.ordered?T6e(n):C3(n);const s=e.ordered?a==="."?")":".":S6e(n);let l=t&&n.bulletLastUsed?a===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),Oee(n)===a&&c){let d=-1;for(;++d-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let a=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),c);return l(),u;function c(d,p,h){return p?(h?"":" ".repeat(a))+d:(h?o:o+" ".repeat(a-o.length))+d}}function C6e(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),a=n.containerPhrasing(e,r);return o(),i(),a}const A6e=gO(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);function _6e(e,t,n,r){return(e.children.some(function(a){return A6e(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function R6e(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}vee.peek=I6e;function vee(e,t,n,r){const i=R6e(n),o=n.enter("strong"),a=n.createTracker(r);let s=a.move(i+i);return s+=a.move(n.containerPhrasing(e,{before:s,after:i,...a.current()})),s+=a.move(i+i),o(),s}function I6e(e,t,n){return n.options.strong||"*"}function D6e(e,t,n,r){return n.safe(e.value,r)}function N6e(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 P6e(e,t,n){const r=(Oee(n)+(n.options.ruleSpaces?" ":"")).repeat(N6e(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Eee={blockquote:r6e,break:lz,code:u6e,definition:d6e,emphasis:dee,hardBreak:lz,heading:m6e,html:fee,image:pee,imageReference:hee,inlineCode:mee,link:bee,linkReference:yee,list:w6e,listItem:x6e,paragraph:C6e,root:_6e,strong:vee,text:D6e,thematicBreak:P6e};function L6e(){return{enter:{table:M6e,tableData:uz,tableHeader:uz,tableRow:F6e},exit:{codeText:B6e,table:$6e,tableData:a2,tableHeader:a2,tableRow:a2}}}function M6e(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 $6e(e){this.exit(e),this.data.inTable=void 0}function F6e(e){this.enter({type:"tableRow",children:[]},e)}function a2(e){this.exit(e)}function uz(e){this.enter({type:"tableCell",children:[]},e)}function B6e(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,U6e));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function U6e(e,t){return t==="|"?t:e}function j6e(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` +`,...o.current()});return/^[\t ]/.test(u)&&(u="&#x"+u.charCodeAt(0).toString(16).toUpperCase()+";"+u.slice(1)),u=u?a+" "+u:a,n.options.closeAtx&&(u+=" "+a),l(),s(),u}Kne.peek=PQe;function Kne(e){return e.value||""}function PQe(){return"<"}Jne.peek=LQe;function Jne(e,t,n,r){const i=NL(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("image");let s=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("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),u+=l.move(")"),a(),u}function LQe(){return"!"}ere.peek=MQe;function ere(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const u=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),a();const c=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=c,o(),i==="full"||!u||u!==d?l+=s.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function MQe(){return"!"}tre.peek=$Qe;function tre(e,t,n){let r=e.value||"",i="`",o=-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+" ");++o\u007F]/.test(e.url))}rre.peek=FQe;function rre(e,t,n,r){const i=NL(n),o=i==='"'?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(nre(e,n)){const c=n.stack;n.stack=[],s=n.enter("autolink");let d=a.move("<");return d+=a.move(n.containerPhrasing(e,{before:d,after:">",...a.current()})),d+=a.move(">"),s(),n.stack=c,d}s=n.enter("link"),l=n.enter("label");let u=a.move("[");return u+=a.move(n.containerPhrasing(e,{before:u,after:"](",...a.current()})),u+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(l=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${o}`),u+=a.move(" "+i),u+=a.move(n.safe(e.title,{before:u,after:i,...a.current()})),u+=a.move(i),l()),u+=a.move(")"),s(),u}function FQe(e,t,n){return nre(e,n)?"<":"["}ire.peek=BQe;function ire(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),a();const c=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=c,o(),i==="full"||!u||u!==d?l+=s.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function BQe(){return"["}function PL(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 UQe(e){const t=PL(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 jQe(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 ore(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 zQe(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let a=e.ordered?jQe(n):PL(n);const s=e.ordered?a==="."?")":".":UQe(n);let l=t&&n.bulletLastUsed?a===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),ore(n)===a&&c){let d=-1;for(;++d-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let a=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),c);return l(),u;function c(d,p,h){return p?(h?"":" ".repeat(a))+d:(h?o:o+" ".repeat(a-o.length))+d}}function WQe(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),a=n.containerPhrasing(e,r);return o(),i(),a}const QQe=_O(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);function YQe(e,t,n,r){return(e.children.some(function(a){return QQe(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function GQe(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}are.peek=qQe;function are(e,t,n,r){const i=GQe(n),o=n.enter("strong"),a=n.createTracker(r);let s=a.move(i+i);return s+=a.move(n.containerPhrasing(e,{before:s,after:i,...a.current()})),s+=a.move(i+i),o(),s}function qQe(e,t,n){return n.options.strong||"*"}function ZQe(e,t,n,r){return n.safe(e.value,r)}function XQe(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 KQe(e,t,n){const r=(ore(n)+(n.options.ruleSpaces?" ":"")).repeat(XQe(n));return n.options.ruleSpaces?r.slice(0,-1):r}const sre={blockquote:EQe,break:rV,code:CQe,definition:_Qe,emphasis:Xne,hardBreak:rV,heading:NQe,html:Kne,image:Jne,imageReference:ere,inlineCode:tre,link:rre,linkReference:ire,list:zQe,listItem:HQe,paragraph:WQe,root:YQe,strong:are,text:ZQe,thematicBreak:KQe};function JQe(){return{enter:{table:eYe,tableData:iV,tableHeader:iV,tableRow:nYe},exit:{codeText:rYe,table:tYe,tableData:T2,tableHeader:T2,tableRow:T2}}}function eYe(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 tYe(e){this.exit(e),this.data.inTable=void 0}function nYe(e){this.enter({type:"tableRow",children:[]},e)}function T2(e){this.exit(e)}function iV(e){this.enter({type:"tableCell",children:[]},e)}function rYe(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,iYe));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function iYe(e,t){return t==="|"?t:e}function oYe(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=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:a,tableCell:l,tableRow:s}};function a(h,m,b,O){return u(c(h,b,O),h.align)}function s(h,m,b,O){const y=d(h,b,O),v=u([y]);return v.slice(0,v.indexOf(` -`))}function l(h,m,b,O){const y=b.enter("tableCell"),v=b.enter("phrasing"),S=b.containerPhrasing(h,{...O,before:o,after:o});return v(),y(),S}function u(h,m){return e6e(h,{align:m,alignDelimiters:r,padding:n,stringLength:i})}function c(h,m,b){const O=h.children;let y=-1;const v=[],S=m.enter("table");for(;++y0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const oBe={tokenize:pBe,partial:!0};function aBe(){return{document:{91:{tokenize:cBe,continuation:{tokenize:dBe},exit:fBe}},text:{91:{tokenize:uBe},93:{add:"after",tokenize:sBe,resolveTo:lBe}}}}function sBe(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){a=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!a||!a._balanced)return n(l);const u=Rl(r.sliceSerialize({start:a.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function lBe(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 o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function uBe(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,a;return s;function s(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(d){if(o>999||d===93&&!a||d===null||d===91||Or(d))return n(d);if(d===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(Rl(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Or(d)||(a=!0),o++,e.consume(d),d===92?c:u}function c(d){return d===91||d===92||d===93?(e.consume(d),o++,u):u(d)}}function cBe(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0,s;return l;function l(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(m)}function c(m){if(a>999||m===93&&!s||m===null||m===91||Or(m))return n(m);if(m===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return o=Rl(r.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return Or(m)||(s=!0),a++,e.consume(m),m===92?d:c}function d(m){return m===91||m===92||m===93?(e.consume(m),a++,c):c(m)}function p(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(o)||i.push(o),Kn(e,h,"gfmFootnoteDefinitionWhitespace")):n(m)}function h(m){return t(m)}}function dBe(e,t,n){return e.check(mO,t,e.attempt(oBe,t,n))}function fBe(e){e.exit("gfmFootnoteDefinition")}function pBe(e,t,n){const r=this;return Kn(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(o):n(o)}}function hBe(e){let n=(e||{}).singleTilde;const r={tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,s){let l=-1;for(;++l1?l(m):(a.consume(m),d++,h);if(d<2&&!n)return l(m);const O=a.exit("strikethroughSequenceTemporary"),y=YT(m);return O._open=!y||y===2&&!!b,O._close=!b||b===2&&!!y,s(m)}}}class mBe{constructor(){this.map=[]}add(t,n,r){gBe(this,t,n,r)}consume(t){if(this.map.sort(function(o,a){return o[0]-a[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 gBe(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const z=r.events[B][1].type;if(z==="lineEnding"||z==="linePrefix")B--;else break}const U=B>-1?r.events[B][1].type:null,V=U==="tableHead"||U==="tableRow"?w:l;return V===w&&r.parser.lazy[r.now().line]?n(R):V(R)}function l(R){return e.enter("tableHead"),e.enter("tableRow"),u(R)}function u(R){return R===124||(a=!0,o+=1),c(R)}function c(R){return R===null?n(R):gn(R)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),h):n(R):Un(R)?Kn(e,c,"whitespace")(R):(o+=1,a&&(a=!1,i+=1),R===124?(e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),a=!0,c):(e.enter("data"),d(R)))}function d(R){return R===null||R===124||Or(R)?(e.exit("data"),c(R)):(e.consume(R),R===92?p:d)}function p(R){return R===92||R===124?(e.consume(R),d):d(R)}function h(R){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(R):(e.enter("tableDelimiterRow"),a=!1,Un(R)?Kn(e,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):m(R))}function m(R){return R===45||R===58?O(R):R===124?(a=!0,e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),b):C(R)}function b(R){return Un(R)?Kn(e,O,"whitespace")(R):O(R)}function O(R){return R===58?(o+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(R),e.exit("tableDelimiterMarker"),y):R===45?(o+=1,y(R)):R===null||gn(R)?k(R):C(R)}function y(R){return R===45?(e.enter("tableDelimiterFiller"),v(R)):C(R)}function v(R){return R===45?(e.consume(R),v):R===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(R),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(R))}function S(R){return Un(R)?Kn(e,k,"whitespace")(R):k(R)}function k(R){return R===124?m(R):R===null||gn(R)?!a||i!==o?C(R):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(R)):C(R)}function C(R){return n(R)}function w(R){return e.enter("tableRow"),E(R)}function E(R){return R===124?(e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),E):R===null||gn(R)?(e.exit("tableRow"),t(R)):Un(R)?Kn(e,E,"whitespace")(R):(e.enter("data"),$(R))}function $(R){return R===null||R===124||Or(R)?(e.exit("data"),E(R)):(e.consume(R),R===92?N:$)}function N(R){return R===92||R===124?(e.consume(R),$):$(R)}}function vBe(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],a=[0,0,0,0],s=!1,l=0,u,c,d;const p=new mBe;for(;++nn[2]+1){const m=n[2]+1,b=n[3]-n[2]-1;e.add(m,b,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(o.end=Object.assign({},Ah(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function dz(e,t,n,r,i){const o=[],a=Ah(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function Ah(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const EBe={tokenize:TBe};function SBe(){return{text:{91:EBe}}}function TBe(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"),o)}function o(l){return Or(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),a):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),a):n(l)}function a(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return gn(l)?t(l):Un(l)?e.check({tokenize:wBe},t,n)(l):n(l)}}function wBe(e,t,n){return Kn(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function kBe(e){return BJ([Z6e(),aBe(),hBe(e),yBe(),SBe()])}const xBe={};function CBe(e){const t=this,n=e||xBe,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(kBe(n)),o.push(Q6e()),a.push(Y6e(n))}const fz=/[#.]/g;function ABe(e,t){const n=e||"",r={};let i=0,o,a;for(;i-1&&oo)return{line:a+1,column:o-(a>0?n[a-1]:0)+1,offset:o}}}function i(o){const a=o&&o.line,s=o&&o.column;if(typeof a=="number"&&typeof s=="number"&&!Number.isNaN(a)&&!Number.isNaN(s)&&a-1 in n){const l=(n[a-2]||0)+s-1||0;if(l>-1&&l=55296&&e<=57343}function e8e(e){return e>=56320&&e<=57343}function t8e(e,t){return(e-55296)*1024+9216+t}function Lee(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Mee(e){return e>=64976&&e<=65007||JBe.has(e)}var Xe;(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"})(Xe=Xe||(Xe={}));const n8e=65536;class r8e{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=n8e,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(e8e(n))return this.pos++,this._addGap(),t8e(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,ne.EOF;return this._err(Xe.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,ne.EOF;const r=this.html.charCodeAt(n);return r===ne.CARRIAGE_RETURN?ne.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,ne.EOF;let t=this.html.charCodeAt(this.pos);return t===ne.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,ne.LINE_FEED):t===ne.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Pee(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===ne.LINE_FEED||t===ne.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Lee(t)?this._err(Xe.controlCharacterInInputStream):Mee(t)&&this._err(Xe.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 Qc=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))),i8e=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var l2;const o8e=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]]),a8e=(l2=String.fromCodePoint)!==null&&l2!==void 0?l2: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 s8e(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=o8e.get(e))!==null&&t!==void 0?t:e}var qi;(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"})(qi||(qi={}));const l8e=32;var vu;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(vu||(vu={}));function SI(e){return e>=qi.ZERO&&e<=qi.NINE}function u8e(e){return e>=qi.UPPER_A&&e<=qi.UPPER_F||e>=qi.LOWER_A&&e<=qi.LOWER_F}function c8e(e){return e>=qi.UPPER_A&&e<=qi.UPPER_Z||e>=qi.LOWER_A&&e<=qi.LOWER_Z||SI(e)}function d8e(e){return e===qi.EQUALS||c8e(e)}var Hi;(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"})(Hi||(Hi={}));var Lf;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Lf||(Lf={}));class f8e{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Hi.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Lf.Strict}startEntity(t){this.decodeMode=t,this.state=Hi.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Hi.EntityStart:return t.charCodeAt(n)===qi.NUM?(this.state=Hi.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Hi.NamedEntity,this.stateNamedEntity(t,n));case Hi.NumericStart:return this.stateNumericStart(t,n);case Hi.NumericDecimal:return this.stateNumericDecimal(t,n);case Hi.NumericHex:return this.stateNumericHex(t,n);case Hi.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|l8e)===qi.LOWER_X?(this.state=Hi.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Hi.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const o=r-n;this.result=this.result*Math.pow(i,o)+parseInt(t.substr(n,o),i),this.consumed+=o}}stateNumericHex(t,n){const r=n;for(;n>14;for(;n>14,o!==0){if(a===qi.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Lf.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]&vu.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]&~vu.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case Hi.NamedEntity:return this.result!==0&&(this.decodeMode!==Lf.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Hi.NumericDecimal:return this.emitNumericEntity(0,2);case Hi.NumericHex:return this.emitNumericEntity(0,3);case Hi.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Hi.EntityStart:return 0}}}function Fee(e){let t="";const n=new f8e(e,r=>t+=a8e(r));return function(i,o){let a=0,s=0;for(;(s=i.indexOf("&",s))>=0;){t+=i.slice(a,s),n.startEntity(o);const u=n.write(i,s+1);if(u<0){a=s+n.end();break}a=s+u,s=u===0?a+1:a}const l=t+i.slice(a);return t="",l}}function Bee(e,t,n,r){const i=(t&vu.BRANCH_LENGTH)>>7,o=t&vu.JUMP_TABLE;if(i===0)return o!==0&&r===o?n:-1;if(o){const l=r-o;return l<0||l>=i?-1:e[n+l]-1}let a=n,s=a+i-1;for(;a<=s;){const l=a+s>>>1,u=e[l];if(ur)s=l-1;else return e[l+i]}return-1}Fee(Qc);Fee(i8e);var st;(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/"})(st=st||(st={}));var Md;(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"})(Md=Md||(Md={}));var ns;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(ns=ns||(ns={}));var Fe;(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"})(Fe=Fe||(Fe={}));var D;(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"})(D=D||(D={}));const p8e=new Map([[Fe.A,D.A],[Fe.ADDRESS,D.ADDRESS],[Fe.ANNOTATION_XML,D.ANNOTATION_XML],[Fe.APPLET,D.APPLET],[Fe.AREA,D.AREA],[Fe.ARTICLE,D.ARTICLE],[Fe.ASIDE,D.ASIDE],[Fe.B,D.B],[Fe.BASE,D.BASE],[Fe.BASEFONT,D.BASEFONT],[Fe.BGSOUND,D.BGSOUND],[Fe.BIG,D.BIG],[Fe.BLOCKQUOTE,D.BLOCKQUOTE],[Fe.BODY,D.BODY],[Fe.BR,D.BR],[Fe.BUTTON,D.BUTTON],[Fe.CAPTION,D.CAPTION],[Fe.CENTER,D.CENTER],[Fe.CODE,D.CODE],[Fe.COL,D.COL],[Fe.COLGROUP,D.COLGROUP],[Fe.DD,D.DD],[Fe.DESC,D.DESC],[Fe.DETAILS,D.DETAILS],[Fe.DIALOG,D.DIALOG],[Fe.DIR,D.DIR],[Fe.DIV,D.DIV],[Fe.DL,D.DL],[Fe.DT,D.DT],[Fe.EM,D.EM],[Fe.EMBED,D.EMBED],[Fe.FIELDSET,D.FIELDSET],[Fe.FIGCAPTION,D.FIGCAPTION],[Fe.FIGURE,D.FIGURE],[Fe.FONT,D.FONT],[Fe.FOOTER,D.FOOTER],[Fe.FOREIGN_OBJECT,D.FOREIGN_OBJECT],[Fe.FORM,D.FORM],[Fe.FRAME,D.FRAME],[Fe.FRAMESET,D.FRAMESET],[Fe.H1,D.H1],[Fe.H2,D.H2],[Fe.H3,D.H3],[Fe.H4,D.H4],[Fe.H5,D.H5],[Fe.H6,D.H6],[Fe.HEAD,D.HEAD],[Fe.HEADER,D.HEADER],[Fe.HGROUP,D.HGROUP],[Fe.HR,D.HR],[Fe.HTML,D.HTML],[Fe.I,D.I],[Fe.IMG,D.IMG],[Fe.IMAGE,D.IMAGE],[Fe.INPUT,D.INPUT],[Fe.IFRAME,D.IFRAME],[Fe.KEYGEN,D.KEYGEN],[Fe.LABEL,D.LABEL],[Fe.LI,D.LI],[Fe.LINK,D.LINK],[Fe.LISTING,D.LISTING],[Fe.MAIN,D.MAIN],[Fe.MALIGNMARK,D.MALIGNMARK],[Fe.MARQUEE,D.MARQUEE],[Fe.MATH,D.MATH],[Fe.MENU,D.MENU],[Fe.META,D.META],[Fe.MGLYPH,D.MGLYPH],[Fe.MI,D.MI],[Fe.MO,D.MO],[Fe.MN,D.MN],[Fe.MS,D.MS],[Fe.MTEXT,D.MTEXT],[Fe.NAV,D.NAV],[Fe.NOBR,D.NOBR],[Fe.NOFRAMES,D.NOFRAMES],[Fe.NOEMBED,D.NOEMBED],[Fe.NOSCRIPT,D.NOSCRIPT],[Fe.OBJECT,D.OBJECT],[Fe.OL,D.OL],[Fe.OPTGROUP,D.OPTGROUP],[Fe.OPTION,D.OPTION],[Fe.P,D.P],[Fe.PARAM,D.PARAM],[Fe.PLAINTEXT,D.PLAINTEXT],[Fe.PRE,D.PRE],[Fe.RB,D.RB],[Fe.RP,D.RP],[Fe.RT,D.RT],[Fe.RTC,D.RTC],[Fe.RUBY,D.RUBY],[Fe.S,D.S],[Fe.SCRIPT,D.SCRIPT],[Fe.SECTION,D.SECTION],[Fe.SELECT,D.SELECT],[Fe.SOURCE,D.SOURCE],[Fe.SMALL,D.SMALL],[Fe.SPAN,D.SPAN],[Fe.STRIKE,D.STRIKE],[Fe.STRONG,D.STRONG],[Fe.STYLE,D.STYLE],[Fe.SUB,D.SUB],[Fe.SUMMARY,D.SUMMARY],[Fe.SUP,D.SUP],[Fe.TABLE,D.TABLE],[Fe.TBODY,D.TBODY],[Fe.TEMPLATE,D.TEMPLATE],[Fe.TEXTAREA,D.TEXTAREA],[Fe.TFOOT,D.TFOOT],[Fe.TD,D.TD],[Fe.TH,D.TH],[Fe.THEAD,D.THEAD],[Fe.TITLE,D.TITLE],[Fe.TR,D.TR],[Fe.TRACK,D.TRACK],[Fe.TT,D.TT],[Fe.U,D.U],[Fe.UL,D.UL],[Fe.SVG,D.SVG],[Fe.VAR,D.VAR],[Fe.WBR,D.WBR],[Fe.XMP,D.XMP]]);function jg(e){var t;return(t=p8e.get(e))!==null&&t!==void 0?t:D.UNKNOWN}const bt=D,h8e={[st.HTML]:new Set([bt.ADDRESS,bt.APPLET,bt.AREA,bt.ARTICLE,bt.ASIDE,bt.BASE,bt.BASEFONT,bt.BGSOUND,bt.BLOCKQUOTE,bt.BODY,bt.BR,bt.BUTTON,bt.CAPTION,bt.CENTER,bt.COL,bt.COLGROUP,bt.DD,bt.DETAILS,bt.DIR,bt.DIV,bt.DL,bt.DT,bt.EMBED,bt.FIELDSET,bt.FIGCAPTION,bt.FIGURE,bt.FOOTER,bt.FORM,bt.FRAME,bt.FRAMESET,bt.H1,bt.H2,bt.H3,bt.H4,bt.H5,bt.H6,bt.HEAD,bt.HEADER,bt.HGROUP,bt.HR,bt.HTML,bt.IFRAME,bt.IMG,bt.INPUT,bt.LI,bt.LINK,bt.LISTING,bt.MAIN,bt.MARQUEE,bt.MENU,bt.META,bt.NAV,bt.NOEMBED,bt.NOFRAMES,bt.NOSCRIPT,bt.OBJECT,bt.OL,bt.P,bt.PARAM,bt.PLAINTEXT,bt.PRE,bt.SCRIPT,bt.SECTION,bt.SELECT,bt.SOURCE,bt.STYLE,bt.SUMMARY,bt.TABLE,bt.TBODY,bt.TD,bt.TEMPLATE,bt.TEXTAREA,bt.TFOOT,bt.TH,bt.THEAD,bt.TITLE,bt.TR,bt.TRACK,bt.UL,bt.WBR,bt.XMP]),[st.MATHML]:new Set([bt.MI,bt.MO,bt.MN,bt.MS,bt.MTEXT,bt.ANNOTATION_XML]),[st.SVG]:new Set([bt.TITLE,bt.FOREIGN_OBJECT,bt.DESC]),[st.XLINK]:new Set,[st.XML]:new Set,[st.XMLNS]:new Set};function Uee(e){return e===bt.H1||e===bt.H2||e===bt.H3||e===bt.H4||e===bt.H5||e===bt.H6}Fe.STYLE,Fe.SCRIPT,Fe.XMP,Fe.IFRAME,Fe.NOEMBED,Fe.NOFRAMES,Fe.PLAINTEXT;const m8e=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 ae;(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"})(ae||(ae={}));const yi={DATA:ae.DATA,RCDATA:ae.RCDATA,RAWTEXT:ae.RAWTEXT,SCRIPT_DATA:ae.SCRIPT_DATA,PLAINTEXT:ae.PLAINTEXT,CDATA_SECTION:ae.CDATA_SECTION};function Vb(e){return e>=ne.DIGIT_0&&e<=ne.DIGIT_9}function ub(e){return e>=ne.LATIN_CAPITAL_A&&e<=ne.LATIN_CAPITAL_Z}function g8e(e){return e>=ne.LATIN_SMALL_A&&e<=ne.LATIN_SMALL_Z}function Yc(e){return g8e(e)||ub(e)}function TI(e){return Yc(e)||Vb(e)}function jee(e){return e>=ne.LATIN_CAPITAL_A&&e<=ne.LATIN_CAPITAL_F}function zee(e){return e>=ne.LATIN_SMALL_A&&e<=ne.LATIN_SMALL_F}function b8e(e){return Vb(e)||jee(e)||zee(e)}function dE(e){return e+32}function Vee(e){return e===ne.SPACE||e===ne.LINE_FEED||e===ne.TABULATION||e===ne.FORM_FEED}function y8e(e){return e===ne.EQUALS_SIGN||TI(e)}function mz(e){return Vee(e)||e===ne.SOLIDUS||e===ne.GREATER_THAN_SIGN}class O8e{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=ae.DATA,this.returnState=ae.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new r8e(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(Xe.endTagWithAttributes),t.selfClosing&&this._err(Xe.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 Pn.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Pn.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Pn.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:Pn.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=Vee(t)?Pn.WHITESPACE_CHARACTER:t===ne.NULL?Pn.NULL_CHARACTER:Pn.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Pn.CHARACTER,t)}_matchNamedCharacterReference(t){let n=null,r=0,i=!1;for(let o=0,a=Qc[0];o>=0&&(o=Bee(Qc,a,o+1,t),!(o<0));t=this._consume()){r+=1,a=Qc[o];const s=a&vu.VALUE_LENGTH;if(s){const l=(s>>14)-1;if(t!==ne.SEMICOLON&&this._isCharacterReferenceInAttribute()&&y8e(this.preprocessor.peek(1))?(n=[ne.AMPERSAND],o+=l):(n=l===0?[Qc[o]&~vu.VALUE_LENGTH]:l===1?[Qc[++o]]:[Qc[++o],Qc[++o]],r=0,i=t!==ne.SEMICOLON),l===0){this._consume();break}}}return this._unconsume(r),i&&!this.preprocessor.endOfChunkHit&&this._err(Xe.missingSemicolonAfterCharacterReference),this._unconsume(1),n}_isCharacterReferenceInAttribute(){return this.returnState===ae.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===ae.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===ae.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case ae.DATA:{this._stateData(t);break}case ae.RCDATA:{this._stateRcdata(t);break}case ae.RAWTEXT:{this._stateRawtext(t);break}case ae.SCRIPT_DATA:{this._stateScriptData(t);break}case ae.PLAINTEXT:{this._statePlaintext(t);break}case ae.TAG_OPEN:{this._stateTagOpen(t);break}case ae.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case ae.TAG_NAME:{this._stateTagName(t);break}case ae.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case ae.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case ae.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case ae.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case ae.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case ae.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case ae.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case ae.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case ae.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case ae.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case ae.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case ae.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case ae.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case ae.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case ae.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case ae.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case ae.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case ae.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case ae.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case ae.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case ae.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case ae.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case ae.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case ae.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case ae.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case ae.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case ae.BOGUS_COMMENT:{this._stateBogusComment(t);break}case ae.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case ae.COMMENT_START:{this._stateCommentStart(t);break}case ae.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case ae.COMMENT:{this._stateComment(t);break}case ae.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case ae.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case ae.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case ae.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case ae.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case ae.COMMENT_END:{this._stateCommentEnd(t);break}case ae.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case ae.DOCTYPE:{this._stateDoctype(t);break}case ae.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case ae.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case ae.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case ae.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case ae.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case ae.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case ae.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case ae.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case ae.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case ae.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case ae.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case ae.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case ae.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case ae.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case ae.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case ae.CDATA_SECTION:{this._stateCdataSection(t);break}case ae.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case ae.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case ae.CHARACTER_REFERENCE:{this._stateCharacterReference(t);break}case ae.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(t);break}case ae.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}case ae.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(t);break}case ae.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(t);break}case ae.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(t);break}case ae.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(t);break}case ae.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case ne.LESS_THAN_SIGN:{this.state=ae.TAG_OPEN;break}case ne.AMPERSAND:{this.returnState=ae.DATA,this.state=ae.CHARACTER_REFERENCE;break}case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this._emitCodePoint(t);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case ne.AMPERSAND:{this.returnState=ae.RCDATA,this.state=ae.CHARACTER_REFERENCE;break}case ne.LESS_THAN_SIGN:{this.state=ae.RCDATA_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this._emitChars(Vr);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case ne.LESS_THAN_SIGN:{this.state=ae.RAWTEXT_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this._emitChars(Vr);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case ne.LESS_THAN_SIGN:{this.state=ae.SCRIPT_DATA_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this._emitChars(Vr);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this._emitChars(Vr);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Yc(t))this._createStartTagToken(),this.state=ae.TAG_NAME,this._stateTagName(t);else switch(t){case ne.EXCLAMATION_MARK:{this.state=ae.MARKUP_DECLARATION_OPEN;break}case ne.SOLIDUS:{this.state=ae.END_TAG_OPEN;break}case ne.QUESTION_MARK:{this._err(Xe.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=ae.BOGUS_COMMENT,this._stateBogusComment(t);break}case ne.EOF:{this._err(Xe.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Xe.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=ae.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Yc(t))this._createEndTagToken(),this.state=ae.TAG_NAME,this._stateTagName(t);else switch(t){case ne.GREATER_THAN_SIGN:{this._err(Xe.missingEndTagName),this.state=ae.DATA;break}case ne.EOF:{this._err(Xe.eofBeforeTagName),this._emitChars("");break}case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this.state=ae.SCRIPT_DATA_ESCAPED,this._emitChars(Vr);break}case ne.EOF:{this._err(Xe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ae.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===ne.SOLIDUS?this.state=ae.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Yc(t)?(this._emitChars("<"),this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=ae.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Yc(t)?(this.state=ae.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("");break}case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Vr);break}case ne.EOF:{this._err(Xe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===ne.SOLIDUS?(this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(pa.SCRIPT,!1)&&mz(this.preprocessor.peek(pa.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n1114111)this._err(Xe.characterReferenceOutsideUnicodeRange),this.charRefCode=ne.REPLACEMENT_CHARACTER;else if(Pee(this.charRefCode))this._err(Xe.surrogateCharacterReference),this.charRefCode=ne.REPLACEMENT_CHARACTER;else if(Mee(this.charRefCode))this._err(Xe.noncharacterCharacterReference);else if(Lee(this.charRefCode)||this.charRefCode===ne.CARRIAGE_RETURN){this._err(Xe.controlCharacterReference);const n=m8e.get(this.charRefCode);n!==void 0&&(this.charRefCode=n)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,t)}}const Hee=new Set([D.DD,D.DT,D.LI,D.OPTGROUP,D.OPTION,D.P,D.RB,D.RP,D.RT,D.RTC]),gz=new Set([...Hee,D.CAPTION,D.COLGROUP,D.TBODY,D.TD,D.TFOOT,D.TH,D.THEAD,D.TR]),fE=new Map([[D.APPLET,st.HTML],[D.CAPTION,st.HTML],[D.HTML,st.HTML],[D.MARQUEE,st.HTML],[D.OBJECT,st.HTML],[D.TABLE,st.HTML],[D.TD,st.HTML],[D.TEMPLATE,st.HTML],[D.TH,st.HTML],[D.ANNOTATION_XML,st.MATHML],[D.MI,st.MATHML],[D.MN,st.MATHML],[D.MO,st.MATHML],[D.MS,st.MATHML],[D.MTEXT,st.MATHML],[D.DESC,st.SVG],[D.FOREIGN_OBJECT,st.SVG],[D.TITLE,st.SVG]]),v8e=[D.H1,D.H2,D.H3,D.H4,D.H5,D.H6],E8e=[D.TR,D.TEMPLATE,D.HTML],S8e=[D.TBODY,D.TFOOT,D.THEAD,D.TEMPLATE,D.HTML],T8e=[D.TABLE,D.TEMPLATE,D.HTML],w8e=[D.TD,D.TH];class k8e{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=D.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===D.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===st.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])!==st.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(T8e,st.HTML)}clearBackToTableBodyContext(){this.clearBackTo(S8e,st.HTML)}clearBackToTableRowContext(){this.clearBackTo(E8e,st.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]===D.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]===D.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===st.HTML)return!0;if(fE.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(Uee(n)&&r===st.HTML)return!0;if(fE.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===st.HTML)return!0;if((r===D.UL||r===D.OL)&&i===st.HTML||fE.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===st.HTML)return!0;if(r===D.BUTTON&&i===st.HTML||fE.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])===st.HTML){if(r===t)return!0;if(r===D.TABLE||r===D.TEMPLATE||r===D.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])===st.HTML){if(n===D.TBODY||n===D.THEAD||n===D.TFOOT)return!0;if(n===D.TABLE||n===D.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])===st.HTML){if(r===t)return!0;if(r!==D.OPTION&&r!==D.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;Hee.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;gz.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&gz.has(this.currentTagId);)this.pop()}}const u2=3;var Ol;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Ol=Ol||(Ol={}));const bz={type:Ol.Marker};class x8e{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,o=this.treeAdapter.getTagName(t),a=this.treeAdapter.getNamespaceURI(t);for(let s=0;s[a.name,a.value]));let o=0;for(let a=0;ai.get(l.name)===l.value)&&(o+=1,o>=u2&&this.entries.splice(s.idx,1))}}insertMarker(){this.entries.unshift(bz)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Ol.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Ol.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(bz);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===Ol.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===Ol.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Ol.Element&&n.element===t)}}function yz(e){return{nodeName:"#text",value:e,parentNode:null}}const _h={createDocument(){return{nodeName:"#document",mode:ns.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(o=>o.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const o={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};_h.appendChild(e,o)}},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(_h.isTextNode(n)){n.value+=t;return}}_h.appendChild(e,yz(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&_h.isTextNode(r)?r.value+=t:_h.insertBefore(e,yz(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;re.startsWith(n))}function D8e(e){return e.name===Wee&&e.publicId===null&&(e.systemId===null||e.systemId===C8e)}function N8e(e){if(e.name!==Wee)return ns.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===A8e)return ns.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),R8e.has(n))return ns.QUIRKS;let r=t===null?_8e:Qee;if(Oz(n,r))return ns.QUIRKS;if(r=t===null?Yee:I8e,Oz(n,r))return ns.LIMITED_QUIRKS}return ns.NO_QUIRKS}const vz={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},P8e="definitionurl",L8e="definitionURL",M8e=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])),$8e=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:st.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:st.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:st.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:st.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:st.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:st.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:st.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:st.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:st.XML}],["xml:space",{prefix:"xml",name:"space",namespace:st.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:st.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:st.XMLNS}]]),F8e=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])),B8e=new Set([D.B,D.BIG,D.BLOCKQUOTE,D.BODY,D.BR,D.CENTER,D.CODE,D.DD,D.DIV,D.DL,D.DT,D.EM,D.EMBED,D.H1,D.H2,D.H3,D.H4,D.H5,D.H6,D.HEAD,D.HR,D.I,D.IMG,D.LI,D.LISTING,D.MENU,D.META,D.NOBR,D.OL,D.P,D.PRE,D.RUBY,D.S,D.SMALL,D.SPAN,D.STRONG,D.STRIKE,D.SUB,D.SUP,D.TABLE,D.TT,D.U,D.UL,D.VAR]);function U8e(e){const t=e.tagID;return t===D.FONT&&e.attrs.some(({name:r})=>r===Md.COLOR||r===Md.SIZE||r===Md.FACE)||B8e.has(t)}function Gee(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 o,a;this.openElements.stackTop===0&&this.fragmentContext?(o=this.fragmentContext,a=this.fragmentContextID):{current:o,currentTagId:a}=this.openElements,this._setContextModes(o,a)}}_setContextModes(t,n){const r=t===this.document||this.treeAdapter.getNamespaceURI(t)===st.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,st.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=me.TEXT}switchToPlaintextParsing(){this.insertionMode=me.TEXT,this.originalInsertionMode=me.IN_BODY,this.tokenizer.state=yi.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)===Fe.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==st.HTML))switch(this.fragmentContextID){case D.TITLE:case D.TEXTAREA:{this.tokenizer.state=yi.RCDATA;break}case D.STYLE:case D.XMP:case D.IFRAME:case D.NOEMBED:case D.NOFRAMES:case D.NOSCRIPT:{this.tokenizer.state=yi.RAWTEXT;break}case D.SCRIPT:{this.tokenizer.state=yi.SCRIPT_DATA;break}case D.PLAINTEXT:{this.tokenizer.state=yi.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 a=this.treeAdapter.getChildNodes(this.document).find(s=>this.treeAdapter.isDocumentTypeNode(s));a&&this.treeAdapter.setNodeSourceCodeLocation(a,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,st.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,st.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(Fe.HTML,st.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,D.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),o=r?i.lastIndexOf(r):i.length,a=i[o-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){const{endLine:l,endCol:u,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:l,endCol:u,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,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),o=n.type===Pn.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,o)}}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===D.SVG&&this.treeAdapter.getTagName(n)===Fe.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===st.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===D.MGLYPH||t.tagID===D.MALIGNMARK)&&!this._isIntegrationPoint(r,n,st.HTML)}_processToken(t){switch(t.type){case Pn.CHARACTER:{this.onCharacter(t);break}case Pn.NULL_CHARACTER:{this.onNullCharacter(t);break}case Pn.COMMENT:{this.onComment(t);break}case Pn.DOCTYPE:{this.onDoctype(t);break}case Pn.START_TAG:{this._processStartTag(t);break}case Pn.END_TAG:{this.onEndTag(t);break}case Pn.EOF:{this.onEof(t);break}case Pn.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),o=this.treeAdapter.getAttrList(n);return H8e(t,i,o,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===Ol.Marker||this.openElements.contains(i.element)),r=n<0?t-1:n-1;for(let i=r;i>=0;i--){const o=this.activeFormattingElements.entries[i];this._insertElement(o.token,this.treeAdapter.getNamespaceURI(o.element)),o.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=me.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(D.P),this.openElements.popUntilTagNamePopped(D.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case D.TR:{this.insertionMode=me.IN_ROW;return}case D.TBODY:case D.THEAD:case D.TFOOT:{this.insertionMode=me.IN_TABLE_BODY;return}case D.CAPTION:{this.insertionMode=me.IN_CAPTION;return}case D.COLGROUP:{this.insertionMode=me.IN_COLUMN_GROUP;return}case D.TABLE:{this.insertionMode=me.IN_TABLE;return}case D.BODY:{this.insertionMode=me.IN_BODY;return}case D.FRAMESET:{this.insertionMode=me.IN_FRAMESET;return}case D.SELECT:{this._resetInsertionModeForSelect(t);return}case D.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case D.HTML:{this.insertionMode=this.headElement?me.AFTER_HEAD:me.BEFORE_HEAD;return}case D.TD:case D.TH:{if(t>0){this.insertionMode=me.IN_CELL;return}break}case D.HEAD:{if(t>0){this.insertionMode=me.IN_HEAD;return}break}}this.insertionMode=me.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===D.TEMPLATE)break;if(r===D.TABLE){this.insertionMode=me.IN_SELECT_IN_TABLE;return}}this.insertionMode=me.IN_SELECT}_isElementCausesFosterParenting(t){return Zee.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 D.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===st.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case D.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 h8e[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){wUe(this,t);return}switch(this.insertionMode){case me.INITIAL:{F0(this,t);break}case me.BEFORE_HTML:{Hb(this,t);break}case me.BEFORE_HEAD:{Wb(this,t);break}case me.IN_HEAD:{Qb(this,t);break}case me.IN_HEAD_NO_SCRIPT:{Yb(this,t);break}case me.AFTER_HEAD:{Gb(this,t);break}case me.IN_BODY:case me.IN_CAPTION:case me.IN_CELL:case me.IN_TEMPLATE:{Kee(this,t);break}case me.TEXT:case me.IN_SELECT:case me.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case me.IN_TABLE:case me.IN_TABLE_BODY:case me.IN_ROW:{c2(this,t);break}case me.IN_TABLE_TEXT:{ite(this,t);break}case me.IN_COLUMN_GROUP:{XT(this,t);break}case me.AFTER_BODY:{KT(this,t);break}case me.AFTER_AFTER_BODY:{aS(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){TUe(this,t);return}switch(this.insertionMode){case me.INITIAL:{F0(this,t);break}case me.BEFORE_HTML:{Hb(this,t);break}case me.BEFORE_HEAD:{Wb(this,t);break}case me.IN_HEAD:{Qb(this,t);break}case me.IN_HEAD_NO_SCRIPT:{Yb(this,t);break}case me.AFTER_HEAD:{Gb(this,t);break}case me.TEXT:{this._insertCharacters(t);break}case me.IN_TABLE:case me.IN_TABLE_BODY:case me.IN_ROW:{c2(this,t);break}case me.IN_COLUMN_GROUP:{XT(this,t);break}case me.AFTER_BODY:{KT(this,t);break}case me.AFTER_AFTER_BODY:{aS(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){wI(this,t);return}switch(this.insertionMode){case me.INITIAL:case me.BEFORE_HTML:case me.BEFORE_HEAD:case me.IN_HEAD:case me.IN_HEAD_NO_SCRIPT:case me.AFTER_HEAD:case me.IN_BODY:case me.IN_TABLE:case me.IN_CAPTION:case me.IN_COLUMN_GROUP:case me.IN_TABLE_BODY:case me.IN_ROW:case me.IN_CELL:case me.IN_SELECT:case me.IN_SELECT_IN_TABLE:case me.IN_TEMPLATE:case me.IN_FRAMESET:case me.AFTER_FRAMESET:{wI(this,t);break}case me.IN_TABLE_TEXT:{B0(this,t);break}case me.AFTER_BODY:{t7e(this,t);break}case me.AFTER_AFTER_BODY:case me.AFTER_AFTER_FRAMESET:{n7e(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case me.INITIAL:{r7e(this,t);break}case me.BEFORE_HEAD:case me.IN_HEAD:case me.IN_HEAD_NO_SCRIPT:case me.AFTER_HEAD:{this._err(t,Xe.misplacedDoctype);break}case me.IN_TABLE_TEXT:{B0(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,Xe.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?kUe(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case me.INITIAL:{F0(this,t);break}case me.BEFORE_HTML:{i7e(this,t);break}case me.BEFORE_HEAD:{a7e(this,t);break}case me.IN_HEAD:{jl(this,t);break}case me.IN_HEAD_NO_SCRIPT:{u7e(this,t);break}case me.AFTER_HEAD:{d7e(this,t);break}case me.IN_BODY:{zo(this,t);break}case me.IN_TABLE:{dg(this,t);break}case me.IN_TABLE_TEXT:{B0(this,t);break}case me.IN_CAPTION:{sUe(this,t);break}case me.IN_COLUMN_GROUP:{P3(this,t);break}case me.IN_TABLE_BODY:{cx(this,t);break}case me.IN_ROW:{dx(this,t);break}case me.IN_CELL:{cUe(this,t);break}case me.IN_SELECT:{ste(this,t);break}case me.IN_SELECT_IN_TABLE:{fUe(this,t);break}case me.IN_TEMPLATE:{hUe(this,t);break}case me.AFTER_BODY:{gUe(this,t);break}case me.IN_FRAMESET:{bUe(this,t);break}case me.AFTER_FRAMESET:{OUe(this,t);break}case me.AFTER_AFTER_BODY:{EUe(this,t);break}case me.AFTER_AFTER_FRAMESET:{SUe(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?xUe(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case me.INITIAL:{F0(this,t);break}case me.BEFORE_HTML:{o7e(this,t);break}case me.BEFORE_HEAD:{s7e(this,t);break}case me.IN_HEAD:{l7e(this,t);break}case me.IN_HEAD_NO_SCRIPT:{c7e(this,t);break}case me.AFTER_HEAD:{f7e(this,t);break}case me.IN_BODY:{ux(this,t);break}case me.TEXT:{X7e(this,t);break}case me.IN_TABLE:{l1(this,t);break}case me.IN_TABLE_TEXT:{B0(this,t);break}case me.IN_CAPTION:{lUe(this,t);break}case me.IN_COLUMN_GROUP:{uUe(this,t);break}case me.IN_TABLE_BODY:{kI(this,t);break}case me.IN_ROW:{ate(this,t);break}case me.IN_CELL:{dUe(this,t);break}case me.IN_SELECT:{lte(this,t);break}case me.IN_SELECT_IN_TABLE:{pUe(this,t);break}case me.IN_TEMPLATE:{mUe(this,t);break}case me.AFTER_BODY:{cte(this,t);break}case me.IN_FRAMESET:{yUe(this,t);break}case me.AFTER_FRAMESET:{vUe(this,t);break}case me.AFTER_AFTER_BODY:{aS(this,t);break}}}onEof(t){switch(this.insertionMode){case me.INITIAL:{F0(this,t);break}case me.BEFORE_HTML:{Hb(this,t);break}case me.BEFORE_HEAD:{Wb(this,t);break}case me.IN_HEAD:{Qb(this,t);break}case me.IN_HEAD_NO_SCRIPT:{Yb(this,t);break}case me.AFTER_HEAD:{Gb(this,t);break}case me.IN_BODY:case me.IN_TABLE:case me.IN_CAPTION:case me.IN_COLUMN_GROUP:case me.IN_TABLE_BODY:case me.IN_ROW:case me.IN_CELL:case me.IN_SELECT:case me.IN_SELECT_IN_TABLE:{nte(this,t);break}case me.TEXT:{K7e(this,t);break}case me.IN_TABLE_TEXT:{B0(this,t);break}case me.IN_TEMPLATE:{ute(this,t);break}case me.AFTER_BODY:case me.IN_FRAMESET:case me.AFTER_FRAMESET:case me.AFTER_AFTER_BODY:case me.AFTER_AFTER_FRAMESET:{N3(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===ne.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 me.IN_HEAD:case me.IN_HEAD_NO_SCRIPT:case me.AFTER_HEAD:case me.TEXT:case me.IN_COLUMN_GROUP:case me.IN_SELECT:case me.IN_SELECT_IN_TABLE:case me.IN_FRAMESET:case me.AFTER_FRAMESET:{this._insertCharacters(t);break}case me.IN_BODY:case me.IN_CAPTION:case me.IN_CELL:case me.IN_TEMPLATE:case me.AFTER_BODY:case me.AFTER_AFTER_BODY:case me.AFTER_AFTER_FRAMESET:{Xee(this,t);break}case me.IN_TABLE:case me.IN_TABLE_BODY:case me.IN_ROW:{c2(this,t);break}case me.IN_TABLE_TEXT:{rte(this,t);break}}}}function q8e(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):tte(e,t),n}function Z8e(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 X8e(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let o=0,a=i;a!==n;o++,a=i){i=e.openElements.getCommonAncestor(a);const s=e.activeFormattingElements.getElementEntry(a),l=s&&o>=Y8e;!s||l?(l&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(a)):(a=K8e(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function K8e(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 J8e(e,t,n){const r=e.treeAdapter.getTagName(t),i=jg(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const o=e.treeAdapter.getNamespaceURI(t);i===D.TEMPLATE&&o===st.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function e7e(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,o=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o,i.tagID)}function D3(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 o=e.openElements.items[1],a=e.treeAdapter.getNodeSourceCodeLocation(o);a&&!a.endTag&&e._setEndLocation(o,t)}}}}function r7e(e,t){e._setDocumentType(t);const n=t.forceQuirks?ns.QUIRKS:N8e(t);D8e(t)||e._err(t,Xe.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=me.BEFORE_HTML}function F0(e,t){e._err(t,Xe.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,ns.QUIRKS),e.insertionMode=me.BEFORE_HTML,e._processToken(t)}function i7e(e,t){t.tagID===D.HTML?(e._insertElement(t,st.HTML),e.insertionMode=me.BEFORE_HEAD):Hb(e,t)}function o7e(e,t){const n=t.tagID;(n===D.HTML||n===D.HEAD||n===D.BODY||n===D.BR)&&Hb(e,t)}function Hb(e,t){e._insertFakeRootElement(),e.insertionMode=me.BEFORE_HEAD,e._processToken(t)}function a7e(e,t){switch(t.tagID){case D.HTML:{zo(e,t);break}case D.HEAD:{e._insertElement(t,st.HTML),e.headElement=e.openElements.current,e.insertionMode=me.IN_HEAD;break}default:Wb(e,t)}}function s7e(e,t){const n=t.tagID;n===D.HEAD||n===D.BODY||n===D.HTML||n===D.BR?Wb(e,t):e._err(t,Xe.endTagWithoutMatchingOpenElement)}function Wb(e,t){e._insertFakeElement(Fe.HEAD,D.HEAD),e.headElement=e.openElements.current,e.insertionMode=me.IN_HEAD,e._processToken(t)}function jl(e,t){switch(t.tagID){case D.HTML:{zo(e,t);break}case D.BASE:case D.BASEFONT:case D.BGSOUND:case D.LINK:case D.META:{e._appendElement(t,st.HTML),t.ackSelfClosing=!0;break}case D.TITLE:{e._switchToTextParsing(t,yi.RCDATA);break}case D.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,yi.RAWTEXT):(e._insertElement(t,st.HTML),e.insertionMode=me.IN_HEAD_NO_SCRIPT);break}case D.NOFRAMES:case D.STYLE:{e._switchToTextParsing(t,yi.RAWTEXT);break}case D.SCRIPT:{e._switchToTextParsing(t,yi.SCRIPT_DATA);break}case D.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=me.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(me.IN_TEMPLATE);break}case D.HEAD:{e._err(t,Xe.misplacedStartTagForHeadElement);break}default:Qb(e,t)}}function l7e(e,t){switch(t.tagID){case D.HEAD:{e.openElements.pop(),e.insertionMode=me.AFTER_HEAD;break}case D.BODY:case D.BR:case D.HTML:{Qb(e,t);break}case D.TEMPLATE:{$p(e,t);break}default:e._err(t,Xe.endTagWithoutMatchingOpenElement)}}function $p(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==D.TEMPLATE&&e._err(t,Xe.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(D.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Xe.endTagWithoutMatchingOpenElement)}function Qb(e,t){e.openElements.pop(),e.insertionMode=me.AFTER_HEAD,e._processToken(t)}function u7e(e,t){switch(t.tagID){case D.HTML:{zo(e,t);break}case D.BASEFONT:case D.BGSOUND:case D.HEAD:case D.LINK:case D.META:case D.NOFRAMES:case D.STYLE:{jl(e,t);break}case D.NOSCRIPT:{e._err(t,Xe.nestedNoscriptInHead);break}default:Yb(e,t)}}function c7e(e,t){switch(t.tagID){case D.NOSCRIPT:{e.openElements.pop(),e.insertionMode=me.IN_HEAD;break}case D.BR:{Yb(e,t);break}default:e._err(t,Xe.endTagWithoutMatchingOpenElement)}}function Yb(e,t){const n=t.type===Pn.EOF?Xe.openElementsLeftAfterEof:Xe.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=me.IN_HEAD,e._processToken(t)}function d7e(e,t){switch(t.tagID){case D.HTML:{zo(e,t);break}case D.BODY:{e._insertElement(t,st.HTML),e.framesetOk=!1,e.insertionMode=me.IN_BODY;break}case D.FRAMESET:{e._insertElement(t,st.HTML),e.insertionMode=me.IN_FRAMESET;break}case D.BASE:case D.BASEFONT:case D.BGSOUND:case D.LINK:case D.META:case D.NOFRAMES:case D.SCRIPT:case D.STYLE:case D.TEMPLATE:case D.TITLE:{e._err(t,Xe.abandonedHeadElementChild),e.openElements.push(e.headElement,D.HEAD),jl(e,t),e.openElements.remove(e.headElement);break}case D.HEAD:{e._err(t,Xe.misplacedStartTagForHeadElement);break}default:Gb(e,t)}}function f7e(e,t){switch(t.tagID){case D.BODY:case D.HTML:case D.BR:{Gb(e,t);break}case D.TEMPLATE:{$p(e,t);break}default:e._err(t,Xe.endTagWithoutMatchingOpenElement)}}function Gb(e,t){e._insertFakeElement(Fe.BODY,D.BODY),e.insertionMode=me.IN_BODY,lx(e,t)}function lx(e,t){switch(t.type){case Pn.CHARACTER:{Kee(e,t);break}case Pn.WHITESPACE_CHARACTER:{Xee(e,t);break}case Pn.COMMENT:{wI(e,t);break}case Pn.START_TAG:{zo(e,t);break}case Pn.END_TAG:{ux(e,t);break}case Pn.EOF:{nte(e,t);break}}}function Xee(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Kee(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function p7e(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function h7e(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function m7e(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,st.HTML),e.insertionMode=me.IN_FRAMESET)}function g7e(e,t){e.openElements.hasInButtonScope(D.P)&&e._closePElement(),e._insertElement(t,st.HTML)}function b7e(e,t){e.openElements.hasInButtonScope(D.P)&&e._closePElement(),Uee(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,st.HTML)}function y7e(e,t){e.openElements.hasInButtonScope(D.P)&&e._closePElement(),e._insertElement(t,st.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function O7e(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(D.P)&&e._closePElement(),e._insertElement(t,st.HTML),n||(e.formElement=e.openElements.current))}function v7e(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===D.LI&&i===D.LI||(n===D.DD||n===D.DT)&&(i===D.DD||i===D.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==D.ADDRESS&&i!==D.DIV&&i!==D.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(D.P)&&e._closePElement(),e._insertElement(t,st.HTML)}function E7e(e,t){e.openElements.hasInButtonScope(D.P)&&e._closePElement(),e._insertElement(t,st.HTML),e.tokenizer.state=yi.PLAINTEXT}function S7e(e,t){e.openElements.hasInScope(D.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(D.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML),e.framesetOk=!1}function T7e(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Fe.A);n&&(D3(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function w7e(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function k7e(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(D.NOBR)&&(D3(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,st.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function x7e(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function C7e(e,t){e.treeAdapter.getDocumentMode(e.document)!==ns.QUIRKS&&e.openElements.hasInButtonScope(D.P)&&e._closePElement(),e._insertElement(t,st.HTML),e.framesetOk=!1,e.insertionMode=me.IN_TABLE}function Jee(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,st.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function ete(e){const t=$ee(e,Md.TYPE);return t!=null&&t.toLowerCase()===W8e}function A7e(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,st.HTML),ete(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function _7e(e,t){e._appendElement(t,st.HTML),t.ackSelfClosing=!0}function R7e(e,t){e.openElements.hasInButtonScope(D.P)&&e._closePElement(),e._appendElement(t,st.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function I7e(e,t){t.tagName=Fe.IMG,t.tagID=D.IMG,Jee(e,t)}function D7e(e,t){e._insertElement(t,st.HTML),e.skipNextNewLine=!0,e.tokenizer.state=yi.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=me.TEXT}function N7e(e,t){e.openElements.hasInButtonScope(D.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,yi.RAWTEXT)}function P7e(e,t){e.framesetOk=!1,e._switchToTextParsing(t,yi.RAWTEXT)}function Tz(e,t){e._switchToTextParsing(t,yi.RAWTEXT)}function L7e(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===me.IN_TABLE||e.insertionMode===me.IN_CAPTION||e.insertionMode===me.IN_TABLE_BODY||e.insertionMode===me.IN_ROW||e.insertionMode===me.IN_CELL?me.IN_SELECT_IN_TABLE:me.IN_SELECT}function M7e(e,t){e.openElements.currentTagId===D.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML)}function $7e(e,t){e.openElements.hasInScope(D.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,st.HTML)}function F7e(e,t){e.openElements.hasInScope(D.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(D.RTC),e._insertElement(t,st.HTML)}function B7e(e,t){e._reconstructActiveFormattingElements(),Gee(t),I3(t),t.selfClosing?e._appendElement(t,st.MATHML):e._insertElement(t,st.MATHML),t.ackSelfClosing=!0}function U7e(e,t){e._reconstructActiveFormattingElements(),qee(t),I3(t),t.selfClosing?e._appendElement(t,st.SVG):e._insertElement(t,st.SVG),t.ackSelfClosing=!0}function wz(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML)}function zo(e,t){switch(t.tagID){case D.I:case D.S:case D.B:case D.U:case D.EM:case D.TT:case D.BIG:case D.CODE:case D.FONT:case D.SMALL:case D.STRIKE:case D.STRONG:{w7e(e,t);break}case D.A:{T7e(e,t);break}case D.H1:case D.H2:case D.H3:case D.H4:case D.H5:case D.H6:{b7e(e,t);break}case D.P:case D.DL:case D.OL:case D.UL:case D.DIV:case D.DIR:case D.NAV:case D.MAIN:case D.MENU:case D.ASIDE:case D.CENTER:case D.FIGURE:case D.FOOTER:case D.HEADER:case D.HGROUP:case D.DIALOG:case D.DETAILS:case D.ADDRESS:case D.ARTICLE:case D.SECTION:case D.SUMMARY:case D.FIELDSET:case D.BLOCKQUOTE:case D.FIGCAPTION:{g7e(e,t);break}case D.LI:case D.DD:case D.DT:{v7e(e,t);break}case D.BR:case D.IMG:case D.WBR:case D.AREA:case D.EMBED:case D.KEYGEN:{Jee(e,t);break}case D.HR:{R7e(e,t);break}case D.RB:case D.RTC:{$7e(e,t);break}case D.RT:case D.RP:{F7e(e,t);break}case D.PRE:case D.LISTING:{y7e(e,t);break}case D.XMP:{N7e(e,t);break}case D.SVG:{U7e(e,t);break}case D.HTML:{p7e(e,t);break}case D.BASE:case D.LINK:case D.META:case D.STYLE:case D.TITLE:case D.SCRIPT:case D.BGSOUND:case D.BASEFONT:case D.TEMPLATE:{jl(e,t);break}case D.BODY:{h7e(e,t);break}case D.FORM:{O7e(e,t);break}case D.NOBR:{k7e(e,t);break}case D.MATH:{B7e(e,t);break}case D.TABLE:{C7e(e,t);break}case D.INPUT:{A7e(e,t);break}case D.PARAM:case D.TRACK:case D.SOURCE:{_7e(e,t);break}case D.IMAGE:{I7e(e,t);break}case D.BUTTON:{S7e(e,t);break}case D.APPLET:case D.OBJECT:case D.MARQUEE:{x7e(e,t);break}case D.IFRAME:{P7e(e,t);break}case D.SELECT:{L7e(e,t);break}case D.OPTION:case D.OPTGROUP:{M7e(e,t);break}case D.NOEMBED:{Tz(e,t);break}case D.FRAMESET:{m7e(e,t);break}case D.TEXTAREA:{D7e(e,t);break}case D.NOSCRIPT:{e.options.scriptingEnabled?Tz(e,t):wz(e,t);break}case D.PLAINTEXT:{E7e(e,t);break}case D.COL:case D.TH:case D.TD:case D.TR:case D.HEAD:case D.FRAME:case D.TBODY:case D.TFOOT:case D.THEAD:case D.CAPTION:case D.COLGROUP:break;default:wz(e,t)}}function j7e(e,t){if(e.openElements.hasInScope(D.BODY)&&(e.insertionMode=me.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function z7e(e,t){e.openElements.hasInScope(D.BODY)&&(e.insertionMode=me.AFTER_BODY,cte(e,t))}function V7e(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function H7e(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(D.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(D.FORM):n&&e.openElements.remove(n))}function W7e(e){e.openElements.hasInButtonScope(D.P)||e._insertFakeElement(Fe.P,D.P),e._closePElement()}function Q7e(e){e.openElements.hasInListItemScope(D.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(D.LI),e.openElements.popUntilTagNamePopped(D.LI))}function Y7e(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function G7e(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function q7e(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Z7e(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Fe.BR,D.BR),e.openElements.pop(),e.framesetOk=!1}function tte(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const o=e.openElements.items[i],a=e.openElements.tagIDs[i];if(r===a&&(r!==D.UNKNOWN||e.treeAdapter.getTagName(o)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(o,a))break}}function ux(e,t){switch(t.tagID){case D.A:case D.B:case D.I:case D.S:case D.U:case D.EM:case D.TT:case D.BIG:case D.CODE:case D.FONT:case D.NOBR:case D.SMALL:case D.STRIKE:case D.STRONG:{D3(e,t);break}case D.P:{W7e(e);break}case D.DL:case D.UL:case D.OL:case D.DIR:case D.DIV:case D.NAV:case D.PRE:case D.MAIN:case D.MENU:case D.ASIDE:case D.BUTTON:case D.CENTER:case D.FIGURE:case D.FOOTER:case D.HEADER:case D.HGROUP:case D.DIALOG:case D.ADDRESS:case D.ARTICLE:case D.DETAILS:case D.SECTION:case D.SUMMARY:case D.LISTING:case D.FIELDSET:case D.BLOCKQUOTE:case D.FIGCAPTION:{V7e(e,t);break}case D.LI:{Q7e(e);break}case D.DD:case D.DT:{Y7e(e,t);break}case D.H1:case D.H2:case D.H3:case D.H4:case D.H5:case D.H6:{G7e(e);break}case D.BR:{Z7e(e);break}case D.BODY:{j7e(e,t);break}case D.HTML:{z7e(e,t);break}case D.FORM:{H7e(e);break}case D.APPLET:case D.OBJECT:case D.MARQUEE:{q7e(e,t);break}case D.TEMPLATE:{$p(e,t);break}default:tte(e,t)}}function nte(e,t){e.tmplInsertionModeStack.length>0?ute(e,t):N3(e,t)}function X7e(e,t){var n;t.tagID===D.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function K7e(e,t){e._err(t,Xe.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function c2(e,t){if(Zee.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=me.IN_TABLE_TEXT,t.type){case Pn.CHARACTER:{ite(e,t);break}case Pn.WHITESPACE_CHARACTER:{rte(e,t);break}}else yO(e,t)}function J7e(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,st.HTML),e.insertionMode=me.IN_CAPTION}function eUe(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,st.HTML),e.insertionMode=me.IN_COLUMN_GROUP}function tUe(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Fe.COLGROUP,D.COLGROUP),e.insertionMode=me.IN_COLUMN_GROUP,P3(e,t)}function nUe(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,st.HTML),e.insertionMode=me.IN_TABLE_BODY}function rUe(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Fe.TBODY,D.TBODY),e.insertionMode=me.IN_TABLE_BODY,cx(e,t)}function iUe(e,t){e.openElements.hasInTableScope(D.TABLE)&&(e.openElements.popUntilTagNamePopped(D.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function oUe(e,t){ete(t)?e._appendElement(t,st.HTML):yO(e,t),t.ackSelfClosing=!0}function aUe(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,st.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function dg(e,t){switch(t.tagID){case D.TD:case D.TH:case D.TR:{rUe(e,t);break}case D.STYLE:case D.SCRIPT:case D.TEMPLATE:{jl(e,t);break}case D.COL:{tUe(e,t);break}case D.FORM:{aUe(e,t);break}case D.TABLE:{iUe(e,t);break}case D.TBODY:case D.TFOOT:case D.THEAD:{nUe(e,t);break}case D.INPUT:{oUe(e,t);break}case D.CAPTION:{J7e(e,t);break}case D.COLGROUP:{eUe(e,t);break}default:yO(e,t)}}function l1(e,t){switch(t.tagID){case D.TABLE:{e.openElements.hasInTableScope(D.TABLE)&&(e.openElements.popUntilTagNamePopped(D.TABLE),e._resetInsertionMode());break}case D.TEMPLATE:{$p(e,t);break}case D.BODY:case D.CAPTION:case D.COL:case D.COLGROUP:case D.HTML:case D.TBODY:case D.TD:case D.TFOOT:case D.TH:case D.THEAD:case D.TR:break;default:yO(e,t)}}function yO(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,lx(e,t),e.fosterParentingEnabled=n}function rte(e,t){e.pendingCharacterTokens.push(t)}function ite(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function B0(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===D.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===D.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===D.OPTGROUP&&e.openElements.pop();break}case D.OPTION:{e.openElements.currentTagId===D.OPTION&&e.openElements.pop();break}case D.SELECT:{e.openElements.hasInSelectScope(D.SELECT)&&(e.openElements.popUntilTagNamePopped(D.SELECT),e._resetInsertionMode());break}case D.TEMPLATE:{$p(e,t);break}}}function fUe(e,t){const n=t.tagID;n===D.CAPTION||n===D.TABLE||n===D.TBODY||n===D.TFOOT||n===D.THEAD||n===D.TR||n===D.TD||n===D.TH?(e.openElements.popUntilTagNamePopped(D.SELECT),e._resetInsertionMode(),e._processStartTag(t)):ste(e,t)}function pUe(e,t){const n=t.tagID;n===D.CAPTION||n===D.TABLE||n===D.TBODY||n===D.TFOOT||n===D.THEAD||n===D.TR||n===D.TD||n===D.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(D.SELECT),e._resetInsertionMode(),e.onEndTag(t)):lte(e,t)}function hUe(e,t){switch(t.tagID){case D.BASE:case D.BASEFONT:case D.BGSOUND:case D.LINK:case D.META:case D.NOFRAMES:case D.SCRIPT:case D.STYLE:case D.TEMPLATE:case D.TITLE:{jl(e,t);break}case D.CAPTION:case D.COLGROUP:case D.TBODY:case D.TFOOT:case D.THEAD:{e.tmplInsertionModeStack[0]=me.IN_TABLE,e.insertionMode=me.IN_TABLE,dg(e,t);break}case D.COL:{e.tmplInsertionModeStack[0]=me.IN_COLUMN_GROUP,e.insertionMode=me.IN_COLUMN_GROUP,P3(e,t);break}case D.TR:{e.tmplInsertionModeStack[0]=me.IN_TABLE_BODY,e.insertionMode=me.IN_TABLE_BODY,cx(e,t);break}case D.TD:case D.TH:{e.tmplInsertionModeStack[0]=me.IN_ROW,e.insertionMode=me.IN_ROW,dx(e,t);break}default:e.tmplInsertionModeStack[0]=me.IN_BODY,e.insertionMode=me.IN_BODY,zo(e,t)}}function mUe(e,t){t.tagID===D.TEMPLATE&&$p(e,t)}function ute(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(D.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):N3(e,t)}function gUe(e,t){t.tagID===D.HTML?zo(e,t):KT(e,t)}function cte(e,t){var n;if(t.tagID===D.HTML){if(e.fragmentContext||(e.insertionMode=me.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===D.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 KT(e,t)}function KT(e,t){e.insertionMode=me.IN_BODY,lx(e,t)}function bUe(e,t){switch(t.tagID){case D.HTML:{zo(e,t);break}case D.FRAMESET:{e._insertElement(t,st.HTML);break}case D.FRAME:{e._appendElement(t,st.HTML),t.ackSelfClosing=!0;break}case D.NOFRAMES:{jl(e,t);break}}}function yUe(e,t){t.tagID===D.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==D.FRAMESET&&(e.insertionMode=me.AFTER_FRAMESET))}function OUe(e,t){switch(t.tagID){case D.HTML:{zo(e,t);break}case D.NOFRAMES:{jl(e,t);break}}}function vUe(e,t){t.tagID===D.HTML&&(e.insertionMode=me.AFTER_AFTER_FRAMESET)}function EUe(e,t){t.tagID===D.HTML?zo(e,t):aS(e,t)}function aS(e,t){e.insertionMode=me.IN_BODY,lx(e,t)}function SUe(e,t){switch(t.tagID){case D.HTML:{zo(e,t);break}case D.NOFRAMES:{jl(e,t);break}}}function TUe(e,t){t.chars=Vr,e._insertCharacters(t)}function wUe(e,t){e._insertCharacters(t),e.framesetOk=!1}function dte(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==st.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function kUe(e,t){if(U8e(t))dte(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===st.MATHML?Gee(t):r===st.SVG&&(j8e(t),qee(t)),I3(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function xUe(e,t){if(t.tagID===D.P||t.tagID===D.BR){dte(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)===st.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}Fe.AREA,Fe.BASE,Fe.BASEFONT,Fe.BGSOUND,Fe.BR,Fe.COL,Fe.EMBED,Fe.FRAME,Fe.HR,Fe.IMG,Fe.INPUT,Fe.KEYGEN,Fe.LINK,Fe.META,Fe.PARAM,Fe.SOURCE,Fe.TRACK,Fe.WBR;const CUe=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),kz={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function fte(e,t){const n=$Ue(e),r=k3("type",{handlers:{root:AUe,element:_Ue,text:RUe,comment:hte,doctype:IUe,raw:NUe},unknown:PUe}),i={parser:n?new Sz(kz):Sz.getFragmentParser(void 0,kz),handle(s){r(s,i)},stitches:!1,options:t||{}};r(e,i),zg(i,Bu());const o=n?i.parser.document:i.parser.getFragment(),a=BBe(o,{file:i.options.file});return i.stitches&&Da(a,"comment",function(s,l,u){const c=s;if(c.value.stitch&&u&&l!==void 0){const d=u.children;return d[l]=c.value.stitch,l}}),a.type==="root"&&a.children.length===1&&a.children[0].type===e.type?a.children[0]:a}function pte(e,t){let n=-1;if(e)for(;++n"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 bte(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?bte(t.parentElement):null}function UUe(e){var t=n=>{var r=bte(n.target);r&&(r.classList.add("active"),BUe(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};I.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 jUe=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],zUe=e=>e;const VUe=Qt.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:i,style:o,disableCopy:a=!1,skipHtml:s=!0,onScroll:l,onMouseOver:u,pluginsFilter:c,wrapperElement:d={},warpperElement:p={},urlTransform:h}=e,m=Ge(e,jUe),b=Qt.useRef(null);I.useImperativeHandle(t,()=>L({},e,{mdp:b}),[b,e]);var O=(n||"")+" "+(r||"");UUe(b);var y=[...m.rehypePlugins||[]],v={allowElement:(C,w,E)=>m.allowElement?m.allowElement(C,w,E):/^[A-Za-z0-9]+$/.test(C.tagName)};s&&y.push(gte);var S=[...m.remarkPlugins||[],CBe],k=L({},p,d);return P.jsx("div",L({ref:b,onScroll:l,onMouseOver:u},k,{className:O,style:o,children:P.jsx(gFe,L({},v,m,{skipHtml:s,urlTransform:h||zUe,rehypePlugins:c?c("rehype",y):y,remarkPlugins:c?c("remark",S):S,children:i||""}))}))});function Xh(e){return"children"in e?yte(e):"value"in e?e.value:""}function HUe(e){return e.type==="text"?e.value:"children"in e?yte(e):""}function yte(e){let t=-1;const n=[];for(;++t0&&c.length===0)return}const d={};let p;for(p in s)WUe.call(s,p)&&(d[p]=p==="children"?c:s[p]);return d}}function YUe(e){return"children"in e&&e.children!==void 0}var xI={exports:{}};(function(e,t){function n(r){let i=[],o;for(let a of r.split(",").map(s=>s.trim()))if(/^-?\d+$/.test(a))i.push(parseInt(a,10));else if(o=a.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[s,l,u,c]=o;if(l&&c){l=parseInt(l),c=parseInt(c);const d=l]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}zl.displayName="c";zl.aliases=[];function zl(e){e.register(jn),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}Fp.displayName="cpp";Fp.aliases=[];function Fp(e){e.register(zl),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)}fx.displayName="arduino";fx.aliases=["ino"];function fx(e){e.register(Fp),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}vO.displayName="bash";vO.aliases=["sh","shell"];function vO(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 o=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],a=i.variable[1].inside,s=0;s>/g,function(ve,G){return"(?:"+se[+G]+")"})}function r(j,se,ve){return RegExp(n(j,se),ve||"")}function i(j,se){for(var ve=0;ve>/g,function(){return"(?:"+j+")"});return j.replace(/<>/g,"[^\\s\\S]")}var o={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 a(j){return"\\b(?:"+j.trim().replace(/ /g,"|")+")\\b"}var s=a(o.typeDeclaration),l=RegExp(a(o.type+" "+o.typeDeclaration+" "+o.contextual+" "+o.other)),u=a(o.typeDeclaration+" "+o.contextual+" "+o.other),c=a(o.type+" "+o.typeDeclaration+" "+o.other),d=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),p=i(/\((?:[^()]|<>)*\)/.source,2),h=/@?\b[A-Za-z_]\w*\b/.source,m=n(/<<0>>(?:\s*<<1>>)?/.source,[h,d]),b=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[u,m]),O=/\[\s*(?:,\s*)*\]/.source,y=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[b,O]),v=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[d,p,O]),S=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[v]),k=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[S,b,O]),C={keyword:l,punctuation:/[<>()?,.:[\]]/},w=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,E=/"(?:\\.|[^\\"\r\n])*"/.source,$=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[$]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[E]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[b]),lookbehind:!0,inside:C},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[h,k]),lookbehind:!0,inside:C},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[h]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[s,m]),lookbehind:!0,inside:C},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[b]),lookbehind:!0,inside:C},{pattern:r(/(\bwhere\s+)<<0>>/.source,[h]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[y]),lookbehind:!0,inside:C},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[k,c,h]),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,[h]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[h]),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,[k,b]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[k]),lookbehind:!0,inside:C,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[h,d]),inside:{function:r(/^<<0>>/.source,[h]),generic:{pattern:RegExp(d),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,[s,m,h,k,l.source,p,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[m,p]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:l,"class-name":{pattern:RegExp(k),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 N=E+"|"+w,R=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[N]),B=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[R]),2),U=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,V=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[b,B]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[U,V]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[U]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[B]),inside:t.languages.csharp},"class-name":{pattern:RegExp(b),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var z=/:[^}\r\n]+/.source,W=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[R]),2),X=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[W,z]),q=i(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[N]),2),Y=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[q,z]);function Z(j,se){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[j]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[se,z]),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,[X]),lookbehind:!0,greedy:!0,inside:Z(X,W)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[Y]),lookbehind:!0,greedy:!0,inside:Z(Y,q)}],char:{pattern:RegExp(w),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(e)}to.displayName="markup";to.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function to(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 o={"included-cdata":{pattern://i,inside:i}};o["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var a={};a[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:o},e.languages.insertBefore("markup","cdata",a)}}),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}df.displayName="css";df.aliases=[];function df(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)}px.displayName="diff";px.aliases=[];function px(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],o=[];/^\w+$/.test(r)||o.push(/\w+/.exec(r)[0]),r==="diff"&&o.push("bold"),t.languages.diff[r]={pattern:RegExp("^(?:["+i+`].*(?:\r +`))}function l(h,m,b,O){const y=b.enter("tableCell"),v=b.enter("phrasing"),S=b.containerPhrasing(h,{...O,before:o,after:o});return v(),y(),S}function u(h,m){return yQe(h,{align:m,alignDelimiters:r,padding:n,stringLength:i})}function c(h,m,b){const O=h.children;let y=-1;const v=[],S=m.enter("table");for(;++y0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const TYe={tokenize:IYe,partial:!0};function wYe(){return{document:{91:{tokenize:AYe,continuation:{tokenize:_Ye},exit:RYe}},text:{91:{tokenize:CYe},93:{add:"after",tokenize:kYe,resolveTo:xYe}}}}function kYe(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){a=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!a||!a._balanced)return n(l);const u=Rl(r.sliceSerialize({start:a.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function xYe(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 o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function CYe(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,a;return s;function s(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(d){if(o>999||d===93&&!a||d===null||d===91||vr(d))return n(d);if(d===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(Rl(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return vr(d)||(a=!0),o++,e.consume(d),d===92?c:u}function c(d){return d===91||d===92||d===93?(e.consume(d),o++,u):u(d)}}function AYe(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0,s;return l;function l(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(m)}function c(m){if(a>999||m===93&&!s||m===null||m===91||vr(m))return n(m);if(m===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return o=Rl(r.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return vr(m)||(s=!0),a++,e.consume(m),m===92?d:c}function d(m){return m===91||m===92||m===93?(e.consume(m),a++,c):c(m)}function p(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(o)||i.push(o),Kn(e,h,"gfmFootnoteDefinitionWhitespace")):n(m)}function h(m){return t(m)}}function _Ye(e,t,n){return e.check(AO,t,e.attempt(TYe,t,n))}function RYe(e){e.exit("gfmFootnoteDefinition")}function IYe(e,t,n){const r=this;return Kn(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(o):n(o)}}function DYe(e){let n=(e||{}).singleTilde;const r={tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,s){let l=-1;for(;++l1?l(m):(a.consume(m),d++,h);if(d<2&&!n)return l(m);const O=a.exit("strikethroughSequenceTemporary"),y=cw(m);return O._open=!y||y===2&&!!b,O._close=!b||b===2&&!!y,s(m)}}}class NYe{constructor(){this.map=[]}add(t,n,r){PYe(this,t,n,r)}consume(t){if(this.map.sort(function(o,a){return o[0]-a[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 PYe(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const z=r.events[B][1].type;if(z==="lineEnding"||z==="linePrefix")B--;else break}const U=B>-1?r.events[B][1].type:null,V=U==="tableHead"||U==="tableRow"?w:l;return V===w&&r.parser.lazy[r.now().line]?n(R):V(R)}function l(R){return e.enter("tableHead"),e.enter("tableRow"),u(R)}function u(R){return R===124||(a=!0,o+=1),c(R)}function c(R){return R===null?n(R):gn(R)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),h):n(R):Un(R)?Kn(e,c,"whitespace")(R):(o+=1,a&&(a=!1,i+=1),R===124?(e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),a=!0,c):(e.enter("data"),d(R)))}function d(R){return R===null||R===124||vr(R)?(e.exit("data"),c(R)):(e.consume(R),R===92?p:d)}function p(R){return R===92||R===124?(e.consume(R),d):d(R)}function h(R){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(R):(e.enter("tableDelimiterRow"),a=!1,Un(R)?Kn(e,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):m(R))}function m(R){return R===45||R===58?O(R):R===124?(a=!0,e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),b):C(R)}function b(R){return Un(R)?Kn(e,O,"whitespace")(R):O(R)}function O(R){return R===58?(o+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(R),e.exit("tableDelimiterMarker"),y):R===45?(o+=1,y(R)):R===null||gn(R)?k(R):C(R)}function y(R){return R===45?(e.enter("tableDelimiterFiller"),v(R)):C(R)}function v(R){return R===45?(e.consume(R),v):R===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(R),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(R))}function S(R){return Un(R)?Kn(e,k,"whitespace")(R):k(R)}function k(R){return R===124?m(R):R===null||gn(R)?!a||i!==o?C(R):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(R)):C(R)}function C(R){return n(R)}function w(R){return e.enter("tableRow"),E(R)}function E(R){return R===124?(e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),E):R===null||gn(R)?(e.exit("tableRow"),t(R)):Un(R)?Kn(e,E,"whitespace")(R):(e.enter("data"),$(R))}function $(R){return R===null||R===124||vr(R)?(e.exit("data"),E(R)):(e.consume(R),R===92?P:$)}function P(R){return R===92||R===124?(e.consume(R),$):$(R)}}function FYe(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],a=[0,0,0,0],s=!1,l=0,u,c,d;const p=new NYe;for(;++nn[2]+1){const m=n[2]+1,b=n[3]-n[2]-1;e.add(m,b,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(o.end=Object.assign({},Rh(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function aV(e,t,n,r,i){const o=[],a=Rh(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function Rh(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const BYe={tokenize:jYe};function UYe(){return{text:{91:BYe}}}function jYe(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"),o)}function o(l){return vr(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),a):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),a):n(l)}function a(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return gn(l)?t(l):Un(l)?e.check({tokenize:zYe},t,n)(l):n(l)}}function zYe(e,t,n){return Kn(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function VYe(e){return kne([hYe(),wYe(),DYe(e),MYe(),UYe()])}const HYe={};function WYe(e){const t=this,n=e||HYe,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(VYe(n)),o.push(cYe()),a.push(dYe(n))}const sV=/[#.]/g;function QYe(e,t){const n=e||"",r={};let i=0,o,a;for(;i-1&&oo)return{line:a+1,column:o-(a>0?n[a-1]:0)+1,offset:o}}}function i(o){const a=o&&o.line,s=o&&o.column;if(typeof a=="number"&&typeof s=="number"&&!Number.isNaN(a)&&!Number.isNaN(s)&&a-1 in n){const l=(n[a-2]||0)+s-1||0;if(l>-1&&l=55296&&e<=57343}function yGe(e){return e>=56320&&e<=57343}function OGe(e,t){return(e-55296)*1024+9216+t}function Ere(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Sre(e){return e>=64976&&e<=65007||bGe.has(e)}var Xe;(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"})(Xe=Xe||(Xe={}));const vGe=65536;class EGe{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=vGe,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(yGe(n))return this.pos++,this._addGap(),OGe(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,ne.EOF;return this._err(Xe.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,ne.EOF;const r=this.html.charCodeAt(n);return r===ne.CARRIAGE_RETURN?ne.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,ne.EOF;let t=this.html.charCodeAt(this.pos);return t===ne.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,ne.LINE_FEED):t===ne.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,vre(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===ne.LINE_FEED||t===ne.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Ere(t)?this._err(Xe.controlCharacterInInputStream):Sre(t)&&this._err(Xe.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 Zc=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))),SGe=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var k2;const TGe=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]]),wGe=(k2=String.fromCodePoint)!==null&&k2!==void 0?k2: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 kGe(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=TGe.get(e))!==null&&t!==void 0?t:e}var qi;(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"})(qi||(qi={}));const xGe=32;var Eu;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Eu||(Eu={}));function JI(e){return e>=qi.ZERO&&e<=qi.NINE}function CGe(e){return e>=qi.UPPER_A&&e<=qi.UPPER_F||e>=qi.LOWER_A&&e<=qi.LOWER_F}function AGe(e){return e>=qi.UPPER_A&&e<=qi.UPPER_Z||e>=qi.LOWER_A&&e<=qi.LOWER_Z||JI(e)}function _Ge(e){return e===qi.EQUALS||AGe(e)}var Hi;(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"})(Hi||(Hi={}));var Lf;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Lf||(Lf={}));class RGe{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Hi.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Lf.Strict}startEntity(t){this.decodeMode=t,this.state=Hi.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Hi.EntityStart:return t.charCodeAt(n)===qi.NUM?(this.state=Hi.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Hi.NamedEntity,this.stateNamedEntity(t,n));case Hi.NumericStart:return this.stateNumericStart(t,n);case Hi.NumericDecimal:return this.stateNumericDecimal(t,n);case Hi.NumericHex:return this.stateNumericHex(t,n);case Hi.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|xGe)===qi.LOWER_X?(this.state=Hi.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Hi.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const o=r-n;this.result=this.result*Math.pow(i,o)+parseInt(t.substr(n,o),i),this.consumed+=o}}stateNumericHex(t,n){const r=n;for(;n>14;for(;n>14,o!==0){if(a===qi.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Lf.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]&Eu.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]&~Eu.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case Hi.NamedEntity:return this.result!==0&&(this.decodeMode!==Lf.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Hi.NumericDecimal:return this.emitNumericEntity(0,2);case Hi.NumericHex:return this.emitNumericEntity(0,3);case Hi.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Hi.EntityStart:return 0}}}function wre(e){let t="";const n=new RGe(e,r=>t+=wGe(r));return function(i,o){let a=0,s=0;for(;(s=i.indexOf("&",s))>=0;){t+=i.slice(a,s),n.startEntity(o);const u=n.write(i,s+1);if(u<0){a=s+n.end();break}a=s+u,s=u===0?a+1:a}const l=t+i.slice(a);return t="",l}}function kre(e,t,n,r){const i=(t&Eu.BRANCH_LENGTH)>>7,o=t&Eu.JUMP_TABLE;if(i===0)return o!==0&&r===o?n:-1;if(o){const l=r-o;return l<0||l>=i?-1:e[n+l]-1}let a=n,s=a+i-1;for(;a<=s;){const l=a+s>>>1,u=e[l];if(ur)s=l-1;else return e[l+i]}return-1}wre(Zc);wre(SGe);var st;(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/"})(st=st||(st={}));var Bd;(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"})(Bd=Bd||(Bd={}));var ns;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(ns=ns||(ns={}));var Fe;(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"})(Fe=Fe||(Fe={}));var D;(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"})(D=D||(D={}));const IGe=new Map([[Fe.A,D.A],[Fe.ADDRESS,D.ADDRESS],[Fe.ANNOTATION_XML,D.ANNOTATION_XML],[Fe.APPLET,D.APPLET],[Fe.AREA,D.AREA],[Fe.ARTICLE,D.ARTICLE],[Fe.ASIDE,D.ASIDE],[Fe.B,D.B],[Fe.BASE,D.BASE],[Fe.BASEFONT,D.BASEFONT],[Fe.BGSOUND,D.BGSOUND],[Fe.BIG,D.BIG],[Fe.BLOCKQUOTE,D.BLOCKQUOTE],[Fe.BODY,D.BODY],[Fe.BR,D.BR],[Fe.BUTTON,D.BUTTON],[Fe.CAPTION,D.CAPTION],[Fe.CENTER,D.CENTER],[Fe.CODE,D.CODE],[Fe.COL,D.COL],[Fe.COLGROUP,D.COLGROUP],[Fe.DD,D.DD],[Fe.DESC,D.DESC],[Fe.DETAILS,D.DETAILS],[Fe.DIALOG,D.DIALOG],[Fe.DIR,D.DIR],[Fe.DIV,D.DIV],[Fe.DL,D.DL],[Fe.DT,D.DT],[Fe.EM,D.EM],[Fe.EMBED,D.EMBED],[Fe.FIELDSET,D.FIELDSET],[Fe.FIGCAPTION,D.FIGCAPTION],[Fe.FIGURE,D.FIGURE],[Fe.FONT,D.FONT],[Fe.FOOTER,D.FOOTER],[Fe.FOREIGN_OBJECT,D.FOREIGN_OBJECT],[Fe.FORM,D.FORM],[Fe.FRAME,D.FRAME],[Fe.FRAMESET,D.FRAMESET],[Fe.H1,D.H1],[Fe.H2,D.H2],[Fe.H3,D.H3],[Fe.H4,D.H4],[Fe.H5,D.H5],[Fe.H6,D.H6],[Fe.HEAD,D.HEAD],[Fe.HEADER,D.HEADER],[Fe.HGROUP,D.HGROUP],[Fe.HR,D.HR],[Fe.HTML,D.HTML],[Fe.I,D.I],[Fe.IMG,D.IMG],[Fe.IMAGE,D.IMAGE],[Fe.INPUT,D.INPUT],[Fe.IFRAME,D.IFRAME],[Fe.KEYGEN,D.KEYGEN],[Fe.LABEL,D.LABEL],[Fe.LI,D.LI],[Fe.LINK,D.LINK],[Fe.LISTING,D.LISTING],[Fe.MAIN,D.MAIN],[Fe.MALIGNMARK,D.MALIGNMARK],[Fe.MARQUEE,D.MARQUEE],[Fe.MATH,D.MATH],[Fe.MENU,D.MENU],[Fe.META,D.META],[Fe.MGLYPH,D.MGLYPH],[Fe.MI,D.MI],[Fe.MO,D.MO],[Fe.MN,D.MN],[Fe.MS,D.MS],[Fe.MTEXT,D.MTEXT],[Fe.NAV,D.NAV],[Fe.NOBR,D.NOBR],[Fe.NOFRAMES,D.NOFRAMES],[Fe.NOEMBED,D.NOEMBED],[Fe.NOSCRIPT,D.NOSCRIPT],[Fe.OBJECT,D.OBJECT],[Fe.OL,D.OL],[Fe.OPTGROUP,D.OPTGROUP],[Fe.OPTION,D.OPTION],[Fe.P,D.P],[Fe.PARAM,D.PARAM],[Fe.PLAINTEXT,D.PLAINTEXT],[Fe.PRE,D.PRE],[Fe.RB,D.RB],[Fe.RP,D.RP],[Fe.RT,D.RT],[Fe.RTC,D.RTC],[Fe.RUBY,D.RUBY],[Fe.S,D.S],[Fe.SCRIPT,D.SCRIPT],[Fe.SECTION,D.SECTION],[Fe.SELECT,D.SELECT],[Fe.SOURCE,D.SOURCE],[Fe.SMALL,D.SMALL],[Fe.SPAN,D.SPAN],[Fe.STRIKE,D.STRIKE],[Fe.STRONG,D.STRONG],[Fe.STYLE,D.STYLE],[Fe.SUB,D.SUB],[Fe.SUMMARY,D.SUMMARY],[Fe.SUP,D.SUP],[Fe.TABLE,D.TABLE],[Fe.TBODY,D.TBODY],[Fe.TEMPLATE,D.TEMPLATE],[Fe.TEXTAREA,D.TEXTAREA],[Fe.TFOOT,D.TFOOT],[Fe.TD,D.TD],[Fe.TH,D.TH],[Fe.THEAD,D.THEAD],[Fe.TITLE,D.TITLE],[Fe.TR,D.TR],[Fe.TRACK,D.TRACK],[Fe.TT,D.TT],[Fe.U,D.U],[Fe.UL,D.UL],[Fe.SVG,D.SVG],[Fe.VAR,D.VAR],[Fe.WBR,D.WBR],[Fe.XMP,D.XMP]]);function Zg(e){var t;return(t=IGe.get(e))!==null&&t!==void 0?t:D.UNKNOWN}const bt=D,DGe={[st.HTML]:new Set([bt.ADDRESS,bt.APPLET,bt.AREA,bt.ARTICLE,bt.ASIDE,bt.BASE,bt.BASEFONT,bt.BGSOUND,bt.BLOCKQUOTE,bt.BODY,bt.BR,bt.BUTTON,bt.CAPTION,bt.CENTER,bt.COL,bt.COLGROUP,bt.DD,bt.DETAILS,bt.DIR,bt.DIV,bt.DL,bt.DT,bt.EMBED,bt.FIELDSET,bt.FIGCAPTION,bt.FIGURE,bt.FOOTER,bt.FORM,bt.FRAME,bt.FRAMESET,bt.H1,bt.H2,bt.H3,bt.H4,bt.H5,bt.H6,bt.HEAD,bt.HEADER,bt.HGROUP,bt.HR,bt.HTML,bt.IFRAME,bt.IMG,bt.INPUT,bt.LI,bt.LINK,bt.LISTING,bt.MAIN,bt.MARQUEE,bt.MENU,bt.META,bt.NAV,bt.NOEMBED,bt.NOFRAMES,bt.NOSCRIPT,bt.OBJECT,bt.OL,bt.P,bt.PARAM,bt.PLAINTEXT,bt.PRE,bt.SCRIPT,bt.SECTION,bt.SELECT,bt.SOURCE,bt.STYLE,bt.SUMMARY,bt.TABLE,bt.TBODY,bt.TD,bt.TEMPLATE,bt.TEXTAREA,bt.TFOOT,bt.TH,bt.THEAD,bt.TITLE,bt.TR,bt.TRACK,bt.UL,bt.WBR,bt.XMP]),[st.MATHML]:new Set([bt.MI,bt.MO,bt.MN,bt.MS,bt.MTEXT,bt.ANNOTATION_XML]),[st.SVG]:new Set([bt.TITLE,bt.FOREIGN_OBJECT,bt.DESC]),[st.XLINK]:new Set,[st.XML]:new Set,[st.XMLNS]:new Set};function xre(e){return e===bt.H1||e===bt.H2||e===bt.H3||e===bt.H4||e===bt.H5||e===bt.H6}Fe.STYLE,Fe.SCRIPT,Fe.XMP,Fe.IFRAME,Fe.NOEMBED,Fe.NOFRAMES,Fe.PLAINTEXT;const NGe=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 ae;(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"})(ae||(ae={}));const yi={DATA:ae.DATA,RCDATA:ae.RCDATA,RAWTEXT:ae.RAWTEXT,SCRIPT_DATA:ae.SCRIPT_DATA,PLAINTEXT:ae.PLAINTEXT,CDATA_SECTION:ae.CDATA_SECTION};function Kb(e){return e>=ne.DIGIT_0&&e<=ne.DIGIT_9}function pb(e){return e>=ne.LATIN_CAPITAL_A&&e<=ne.LATIN_CAPITAL_Z}function PGe(e){return e>=ne.LATIN_SMALL_A&&e<=ne.LATIN_SMALL_Z}function Xc(e){return PGe(e)||pb(e)}function eD(e){return Xc(e)||Kb(e)}function Cre(e){return e>=ne.LATIN_CAPITAL_A&&e<=ne.LATIN_CAPITAL_F}function Are(e){return e>=ne.LATIN_SMALL_A&&e<=ne.LATIN_SMALL_F}function LGe(e){return Kb(e)||Cre(e)||Are(e)}function vE(e){return e+32}function _re(e){return e===ne.SPACE||e===ne.LINE_FEED||e===ne.TABULATION||e===ne.FORM_FEED}function MGe(e){return e===ne.EQUALS_SIGN||eD(e)}function cV(e){return _re(e)||e===ne.SOLIDUS||e===ne.GREATER_THAN_SIGN}class $Ge{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=ae.DATA,this.returnState=ae.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new EGe(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(Xe.endTagWithAttributes),t.selfClosing&&this._err(Xe.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 Pn.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Pn.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Pn.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:Pn.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=_re(t)?Pn.WHITESPACE_CHARACTER:t===ne.NULL?Pn.NULL_CHARACTER:Pn.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Pn.CHARACTER,t)}_matchNamedCharacterReference(t){let n=null,r=0,i=!1;for(let o=0,a=Zc[0];o>=0&&(o=kre(Zc,a,o+1,t),!(o<0));t=this._consume()){r+=1,a=Zc[o];const s=a&Eu.VALUE_LENGTH;if(s){const l=(s>>14)-1;if(t!==ne.SEMICOLON&&this._isCharacterReferenceInAttribute()&&MGe(this.preprocessor.peek(1))?(n=[ne.AMPERSAND],o+=l):(n=l===0?[Zc[o]&~Eu.VALUE_LENGTH]:l===1?[Zc[++o]]:[Zc[++o],Zc[++o]],r=0,i=t!==ne.SEMICOLON),l===0){this._consume();break}}}return this._unconsume(r),i&&!this.preprocessor.endOfChunkHit&&this._err(Xe.missingSemicolonAfterCharacterReference),this._unconsume(1),n}_isCharacterReferenceInAttribute(){return this.returnState===ae.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===ae.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===ae.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case ae.DATA:{this._stateData(t);break}case ae.RCDATA:{this._stateRcdata(t);break}case ae.RAWTEXT:{this._stateRawtext(t);break}case ae.SCRIPT_DATA:{this._stateScriptData(t);break}case ae.PLAINTEXT:{this._statePlaintext(t);break}case ae.TAG_OPEN:{this._stateTagOpen(t);break}case ae.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case ae.TAG_NAME:{this._stateTagName(t);break}case ae.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case ae.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case ae.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case ae.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case ae.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case ae.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case ae.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case ae.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case ae.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case ae.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case ae.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case ae.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case ae.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case ae.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case ae.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case ae.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case ae.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case ae.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case ae.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case ae.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case ae.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case ae.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case ae.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case ae.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case ae.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case ae.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case ae.BOGUS_COMMENT:{this._stateBogusComment(t);break}case ae.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case ae.COMMENT_START:{this._stateCommentStart(t);break}case ae.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case ae.COMMENT:{this._stateComment(t);break}case ae.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case ae.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case ae.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case ae.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case ae.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case ae.COMMENT_END:{this._stateCommentEnd(t);break}case ae.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case ae.DOCTYPE:{this._stateDoctype(t);break}case ae.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case ae.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case ae.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case ae.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case ae.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case ae.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case ae.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case ae.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case ae.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case ae.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case ae.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case ae.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case ae.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case ae.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case ae.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case ae.CDATA_SECTION:{this._stateCdataSection(t);break}case ae.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case ae.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case ae.CHARACTER_REFERENCE:{this._stateCharacterReference(t);break}case ae.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(t);break}case ae.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}case ae.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(t);break}case ae.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(t);break}case ae.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(t);break}case ae.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(t);break}case ae.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case ne.LESS_THAN_SIGN:{this.state=ae.TAG_OPEN;break}case ne.AMPERSAND:{this.returnState=ae.DATA,this.state=ae.CHARACTER_REFERENCE;break}case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this._emitCodePoint(t);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case ne.AMPERSAND:{this.returnState=ae.RCDATA,this.state=ae.CHARACTER_REFERENCE;break}case ne.LESS_THAN_SIGN:{this.state=ae.RCDATA_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this._emitChars(Hr);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case ne.LESS_THAN_SIGN:{this.state=ae.RAWTEXT_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this._emitChars(Hr);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case ne.LESS_THAN_SIGN:{this.state=ae.SCRIPT_DATA_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this._emitChars(Hr);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this._emitChars(Hr);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Xc(t))this._createStartTagToken(),this.state=ae.TAG_NAME,this._stateTagName(t);else switch(t){case ne.EXCLAMATION_MARK:{this.state=ae.MARKUP_DECLARATION_OPEN;break}case ne.SOLIDUS:{this.state=ae.END_TAG_OPEN;break}case ne.QUESTION_MARK:{this._err(Xe.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=ae.BOGUS_COMMENT,this._stateBogusComment(t);break}case ne.EOF:{this._err(Xe.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Xe.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=ae.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Xc(t))this._createEndTagToken(),this.state=ae.TAG_NAME,this._stateTagName(t);else switch(t){case ne.GREATER_THAN_SIGN:{this._err(Xe.missingEndTagName),this.state=ae.DATA;break}case ne.EOF:{this._err(Xe.eofBeforeTagName),this._emitChars("");break}case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this.state=ae.SCRIPT_DATA_ESCAPED,this._emitChars(Hr);break}case ne.EOF:{this._err(Xe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ae.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===ne.SOLIDUS?this.state=ae.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Xc(t)?(this._emitChars("<"),this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=ae.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Xc(t)?(this.state=ae.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("");break}case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Hr);break}case ne.EOF:{this._err(Xe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===ne.SOLIDUS?(this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(ha.SCRIPT,!1)&&cV(this.preprocessor.peek(ha.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n1114111)this._err(Xe.characterReferenceOutsideUnicodeRange),this.charRefCode=ne.REPLACEMENT_CHARACTER;else if(vre(this.charRefCode))this._err(Xe.surrogateCharacterReference),this.charRefCode=ne.REPLACEMENT_CHARACTER;else if(Sre(this.charRefCode))this._err(Xe.noncharacterCharacterReference);else if(Ere(this.charRefCode)||this.charRefCode===ne.CARRIAGE_RETURN){this._err(Xe.controlCharacterReference);const n=NGe.get(this.charRefCode);n!==void 0&&(this.charRefCode=n)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,t)}}const Rre=new Set([D.DD,D.DT,D.LI,D.OPTGROUP,D.OPTION,D.P,D.RB,D.RP,D.RT,D.RTC]),dV=new Set([...Rre,D.CAPTION,D.COLGROUP,D.TBODY,D.TD,D.TFOOT,D.TH,D.THEAD,D.TR]),EE=new Map([[D.APPLET,st.HTML],[D.CAPTION,st.HTML],[D.HTML,st.HTML],[D.MARQUEE,st.HTML],[D.OBJECT,st.HTML],[D.TABLE,st.HTML],[D.TD,st.HTML],[D.TEMPLATE,st.HTML],[D.TH,st.HTML],[D.ANNOTATION_XML,st.MATHML],[D.MI,st.MATHML],[D.MN,st.MATHML],[D.MO,st.MATHML],[D.MS,st.MATHML],[D.MTEXT,st.MATHML],[D.DESC,st.SVG],[D.FOREIGN_OBJECT,st.SVG],[D.TITLE,st.SVG]]),FGe=[D.H1,D.H2,D.H3,D.H4,D.H5,D.H6],BGe=[D.TR,D.TEMPLATE,D.HTML],UGe=[D.TBODY,D.TFOOT,D.THEAD,D.TEMPLATE,D.HTML],jGe=[D.TABLE,D.TEMPLATE,D.HTML],zGe=[D.TD,D.TH];class VGe{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=D.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===D.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===st.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])!==st.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(jGe,st.HTML)}clearBackToTableBodyContext(){this.clearBackTo(UGe,st.HTML)}clearBackToTableRowContext(){this.clearBackTo(BGe,st.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]===D.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]===D.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===st.HTML)return!0;if(EE.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(xre(n)&&r===st.HTML)return!0;if(EE.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===st.HTML)return!0;if((r===D.UL||r===D.OL)&&i===st.HTML||EE.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===st.HTML)return!0;if(r===D.BUTTON&&i===st.HTML||EE.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])===st.HTML){if(r===t)return!0;if(r===D.TABLE||r===D.TEMPLATE||r===D.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])===st.HTML){if(n===D.TBODY||n===D.THEAD||n===D.TFOOT)return!0;if(n===D.TABLE||n===D.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])===st.HTML){if(r===t)return!0;if(r!==D.OPTION&&r!==D.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;Rre.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;dV.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&dV.has(this.currentTagId);)this.pop()}}const x2=3;var El;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(El=El||(El={}));const fV={type:El.Marker};class HGe{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,o=this.treeAdapter.getTagName(t),a=this.treeAdapter.getNamespaceURI(t);for(let s=0;s[a.name,a.value]));let o=0;for(let a=0;ai.get(l.name)===l.value)&&(o+=1,o>=x2&&this.entries.splice(s.idx,1))}}insertMarker(){this.entries.unshift(fV)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:El.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:El.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(fV);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===El.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===El.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===El.Element&&n.element===t)}}function pV(e){return{nodeName:"#text",value:e,parentNode:null}}const Ih={createDocument(){return{nodeName:"#document",mode:ns.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(o=>o.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const o={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Ih.appendChild(e,o)}},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(Ih.isTextNode(n)){n.value+=t;return}}Ih.appendChild(e,pV(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Ih.isTextNode(r)?r.value+=t:Ih.insertBefore(e,pV(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;re.startsWith(n))}function ZGe(e){return e.name===Ire&&e.publicId===null&&(e.systemId===null||e.systemId===WGe)}function XGe(e){if(e.name!==Ire)return ns.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===QGe)return ns.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),GGe.has(n))return ns.QUIRKS;let r=t===null?YGe:Dre;if(hV(n,r))return ns.QUIRKS;if(r=t===null?Nre:qGe,hV(n,r))return ns.LIMITED_QUIRKS}return ns.NO_QUIRKS}const mV={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},KGe="definitionurl",JGe="definitionURL",eqe=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])),tqe=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:st.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:st.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:st.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:st.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:st.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:st.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:st.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:st.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:st.XML}],["xml:space",{prefix:"xml",name:"space",namespace:st.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:st.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:st.XMLNS}]]),nqe=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])),rqe=new Set([D.B,D.BIG,D.BLOCKQUOTE,D.BODY,D.BR,D.CENTER,D.CODE,D.DD,D.DIV,D.DL,D.DT,D.EM,D.EMBED,D.H1,D.H2,D.H3,D.H4,D.H5,D.H6,D.HEAD,D.HR,D.I,D.IMG,D.LI,D.LISTING,D.MENU,D.META,D.NOBR,D.OL,D.P,D.PRE,D.RUBY,D.S,D.SMALL,D.SPAN,D.STRONG,D.STRIKE,D.SUB,D.SUP,D.TABLE,D.TT,D.U,D.UL,D.VAR]);function iqe(e){const t=e.tagID;return t===D.FONT&&e.attrs.some(({name:r})=>r===Bd.COLOR||r===Bd.SIZE||r===Bd.FACE)||rqe.has(t)}function Pre(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 o,a;this.openElements.stackTop===0&&this.fragmentContext?(o=this.fragmentContext,a=this.fragmentContextID):{current:o,currentTagId:a}=this.openElements,this._setContextModes(o,a)}}_setContextModes(t,n){const r=t===this.document||this.treeAdapter.getNamespaceURI(t)===st.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,st.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=me.TEXT}switchToPlaintextParsing(){this.insertionMode=me.TEXT,this.originalInsertionMode=me.IN_BODY,this.tokenizer.state=yi.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)===Fe.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==st.HTML))switch(this.fragmentContextID){case D.TITLE:case D.TEXTAREA:{this.tokenizer.state=yi.RCDATA;break}case D.STYLE:case D.XMP:case D.IFRAME:case D.NOEMBED:case D.NOFRAMES:case D.NOSCRIPT:{this.tokenizer.state=yi.RAWTEXT;break}case D.SCRIPT:{this.tokenizer.state=yi.SCRIPT_DATA;break}case D.PLAINTEXT:{this.tokenizer.state=yi.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 a=this.treeAdapter.getChildNodes(this.document).find(s=>this.treeAdapter.isDocumentTypeNode(s));a&&this.treeAdapter.setNodeSourceCodeLocation(a,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,st.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,st.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(Fe.HTML,st.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,D.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),o=r?i.lastIndexOf(r):i.length,a=i[o-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){const{endLine:l,endCol:u,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:l,endCol:u,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,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),o=n.type===Pn.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,o)}}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===D.SVG&&this.treeAdapter.getTagName(n)===Fe.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===st.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===D.MGLYPH||t.tagID===D.MALIGNMARK)&&!this._isIntegrationPoint(r,n,st.HTML)}_processToken(t){switch(t.type){case Pn.CHARACTER:{this.onCharacter(t);break}case Pn.NULL_CHARACTER:{this.onNullCharacter(t);break}case Pn.COMMENT:{this.onComment(t);break}case Pn.DOCTYPE:{this.onDoctype(t);break}case Pn.START_TAG:{this._processStartTag(t);break}case Pn.END_TAG:{this.onEndTag(t);break}case Pn.EOF:{this.onEof(t);break}case Pn.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),o=this.treeAdapter.getAttrList(n);return lqe(t,i,o,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===El.Marker||this.openElements.contains(i.element)),r=n<0?t-1:n-1;for(let i=r;i>=0;i--){const o=this.activeFormattingElements.entries[i];this._insertElement(o.token,this.treeAdapter.getNamespaceURI(o.element)),o.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=me.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(D.P),this.openElements.popUntilTagNamePopped(D.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case D.TR:{this.insertionMode=me.IN_ROW;return}case D.TBODY:case D.THEAD:case D.TFOOT:{this.insertionMode=me.IN_TABLE_BODY;return}case D.CAPTION:{this.insertionMode=me.IN_CAPTION;return}case D.COLGROUP:{this.insertionMode=me.IN_COLUMN_GROUP;return}case D.TABLE:{this.insertionMode=me.IN_TABLE;return}case D.BODY:{this.insertionMode=me.IN_BODY;return}case D.FRAMESET:{this.insertionMode=me.IN_FRAMESET;return}case D.SELECT:{this._resetInsertionModeForSelect(t);return}case D.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case D.HTML:{this.insertionMode=this.headElement?me.AFTER_HEAD:me.BEFORE_HEAD;return}case D.TD:case D.TH:{if(t>0){this.insertionMode=me.IN_CELL;return}break}case D.HEAD:{if(t>0){this.insertionMode=me.IN_HEAD;return}break}}this.insertionMode=me.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===D.TEMPLATE)break;if(r===D.TABLE){this.insertionMode=me.IN_SELECT_IN_TABLE;return}}this.insertionMode=me.IN_SELECT}_isElementCausesFosterParenting(t){return Mre.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 D.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===st.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case D.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 DGe[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){zZe(this,t);return}switch(this.insertionMode){case me.INITIAL:{Q0(this,t);break}case me.BEFORE_HTML:{Jb(this,t);break}case me.BEFORE_HEAD:{ey(this,t);break}case me.IN_HEAD:{ty(this,t);break}case me.IN_HEAD_NO_SCRIPT:{ny(this,t);break}case me.AFTER_HEAD:{ry(this,t);break}case me.IN_BODY:case me.IN_CAPTION:case me.IN_CELL:case me.IN_TEMPLATE:{Fre(this,t);break}case me.TEXT:case me.IN_SELECT:case me.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case me.IN_TABLE:case me.IN_TABLE_BODY:case me.IN_ROW:{C2(this,t);break}case me.IN_TABLE_TEXT:{Hre(this,t);break}case me.IN_COLUMN_GROUP:{hw(this,t);break}case me.AFTER_BODY:{mw(this,t);break}case me.AFTER_AFTER_BODY:{gS(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){jZe(this,t);return}switch(this.insertionMode){case me.INITIAL:{Q0(this,t);break}case me.BEFORE_HTML:{Jb(this,t);break}case me.BEFORE_HEAD:{ey(this,t);break}case me.IN_HEAD:{ty(this,t);break}case me.IN_HEAD_NO_SCRIPT:{ny(this,t);break}case me.AFTER_HEAD:{ry(this,t);break}case me.TEXT:{this._insertCharacters(t);break}case me.IN_TABLE:case me.IN_TABLE_BODY:case me.IN_ROW:{C2(this,t);break}case me.IN_COLUMN_GROUP:{hw(this,t);break}case me.AFTER_BODY:{mw(this,t);break}case me.AFTER_AFTER_BODY:{gS(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){tD(this,t);return}switch(this.insertionMode){case me.INITIAL:case me.BEFORE_HTML:case me.BEFORE_HEAD:case me.IN_HEAD:case me.IN_HEAD_NO_SCRIPT:case me.AFTER_HEAD:case me.IN_BODY:case me.IN_TABLE:case me.IN_CAPTION:case me.IN_COLUMN_GROUP:case me.IN_TABLE_BODY:case me.IN_ROW:case me.IN_CELL:case me.IN_SELECT:case me.IN_SELECT_IN_TABLE:case me.IN_TEMPLATE:case me.IN_FRAMESET:case me.AFTER_FRAMESET:{tD(this,t);break}case me.IN_TABLE_TEXT:{Y0(this,t);break}case me.AFTER_BODY:{Oqe(this,t);break}case me.AFTER_AFTER_BODY:case me.AFTER_AFTER_FRAMESET:{vqe(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case me.INITIAL:{Eqe(this,t);break}case me.BEFORE_HEAD:case me.IN_HEAD:case me.IN_HEAD_NO_SCRIPT:case me.AFTER_HEAD:{this._err(t,Xe.misplacedDoctype);break}case me.IN_TABLE_TEXT:{Y0(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,Xe.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?VZe(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case me.INITIAL:{Q0(this,t);break}case me.BEFORE_HTML:{Sqe(this,t);break}case me.BEFORE_HEAD:{wqe(this,t);break}case me.IN_HEAD:{Vl(this,t);break}case me.IN_HEAD_NO_SCRIPT:{Cqe(this,t);break}case me.AFTER_HEAD:{_qe(this,t);break}case me.IN_BODY:{Vo(this,t);break}case me.IN_TABLE:{mg(this,t);break}case me.IN_TABLE_TEXT:{Y0(this,t);break}case me.IN_CAPTION:{kZe(this,t);break}case me.IN_COLUMN_GROUP:{jL(this,t);break}case me.IN_TABLE_BODY:{Dx(this,t);break}case me.IN_ROW:{Nx(this,t);break}case me.IN_CELL:{AZe(this,t);break}case me.IN_SELECT:{Yre(this,t);break}case me.IN_SELECT_IN_TABLE:{RZe(this,t);break}case me.IN_TEMPLATE:{DZe(this,t);break}case me.AFTER_BODY:{PZe(this,t);break}case me.IN_FRAMESET:{LZe(this,t);break}case me.AFTER_FRAMESET:{$Ze(this,t);break}case me.AFTER_AFTER_BODY:{BZe(this,t);break}case me.AFTER_AFTER_FRAMESET:{UZe(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?HZe(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case me.INITIAL:{Q0(this,t);break}case me.BEFORE_HTML:{Tqe(this,t);break}case me.BEFORE_HEAD:{kqe(this,t);break}case me.IN_HEAD:{xqe(this,t);break}case me.IN_HEAD_NO_SCRIPT:{Aqe(this,t);break}case me.AFTER_HEAD:{Rqe(this,t);break}case me.IN_BODY:{Ix(this,t);break}case me.TEXT:{mZe(this,t);break}case me.IN_TABLE:{E1(this,t);break}case me.IN_TABLE_TEXT:{Y0(this,t);break}case me.IN_CAPTION:{xZe(this,t);break}case me.IN_COLUMN_GROUP:{CZe(this,t);break}case me.IN_TABLE_BODY:{nD(this,t);break}case me.IN_ROW:{Qre(this,t);break}case me.IN_CELL:{_Ze(this,t);break}case me.IN_SELECT:{Gre(this,t);break}case me.IN_SELECT_IN_TABLE:{IZe(this,t);break}case me.IN_TEMPLATE:{NZe(this,t);break}case me.AFTER_BODY:{Zre(this,t);break}case me.IN_FRAMESET:{MZe(this,t);break}case me.AFTER_FRAMESET:{FZe(this,t);break}case me.AFTER_AFTER_BODY:{gS(this,t);break}}}onEof(t){switch(this.insertionMode){case me.INITIAL:{Q0(this,t);break}case me.BEFORE_HTML:{Jb(this,t);break}case me.BEFORE_HEAD:{ey(this,t);break}case me.IN_HEAD:{ty(this,t);break}case me.IN_HEAD_NO_SCRIPT:{ny(this,t);break}case me.AFTER_HEAD:{ry(this,t);break}case me.IN_BODY:case me.IN_TABLE:case me.IN_CAPTION:case me.IN_COLUMN_GROUP:case me.IN_TABLE_BODY:case me.IN_ROW:case me.IN_CELL:case me.IN_SELECT:case me.IN_SELECT_IN_TABLE:{zre(this,t);break}case me.TEXT:{gZe(this,t);break}case me.IN_TABLE_TEXT:{Y0(this,t);break}case me.IN_TEMPLATE:{qre(this,t);break}case me.AFTER_BODY:case me.IN_FRAMESET:case me.AFTER_FRAMESET:case me.AFTER_AFTER_BODY:case me.AFTER_AFTER_FRAMESET:{UL(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===ne.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 me.IN_HEAD:case me.IN_HEAD_NO_SCRIPT:case me.AFTER_HEAD:case me.TEXT:case me.IN_COLUMN_GROUP:case me.IN_SELECT:case me.IN_SELECT_IN_TABLE:case me.IN_FRAMESET:case me.AFTER_FRAMESET:{this._insertCharacters(t);break}case me.IN_BODY:case me.IN_CAPTION:case me.IN_CELL:case me.IN_TEMPLATE:case me.AFTER_BODY:case me.AFTER_AFTER_BODY:case me.AFTER_AFTER_FRAMESET:{$re(this,t);break}case me.IN_TABLE:case me.IN_TABLE_BODY:case me.IN_ROW:{C2(this,t);break}case me.IN_TABLE_TEXT:{Vre(this,t);break}}}}function pqe(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):jre(e,t),n}function hqe(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 mqe(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let o=0,a=i;a!==n;o++,a=i){i=e.openElements.getCommonAncestor(a);const s=e.activeFormattingElements.getElementEntry(a),l=s&&o>=dqe;!s||l?(l&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(a)):(a=gqe(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function gqe(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 bqe(e,t,n){const r=e.treeAdapter.getTagName(t),i=Zg(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const o=e.treeAdapter.getNamespaceURI(t);i===D.TEMPLATE&&o===st.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function yqe(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,o=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o,i.tagID)}function BL(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 o=e.openElements.items[1],a=e.treeAdapter.getNodeSourceCodeLocation(o);a&&!a.endTag&&e._setEndLocation(o,t)}}}}function Eqe(e,t){e._setDocumentType(t);const n=t.forceQuirks?ns.QUIRKS:XGe(t);ZGe(t)||e._err(t,Xe.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=me.BEFORE_HTML}function Q0(e,t){e._err(t,Xe.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,ns.QUIRKS),e.insertionMode=me.BEFORE_HTML,e._processToken(t)}function Sqe(e,t){t.tagID===D.HTML?(e._insertElement(t,st.HTML),e.insertionMode=me.BEFORE_HEAD):Jb(e,t)}function Tqe(e,t){const n=t.tagID;(n===D.HTML||n===D.HEAD||n===D.BODY||n===D.BR)&&Jb(e,t)}function Jb(e,t){e._insertFakeRootElement(),e.insertionMode=me.BEFORE_HEAD,e._processToken(t)}function wqe(e,t){switch(t.tagID){case D.HTML:{Vo(e,t);break}case D.HEAD:{e._insertElement(t,st.HTML),e.headElement=e.openElements.current,e.insertionMode=me.IN_HEAD;break}default:ey(e,t)}}function kqe(e,t){const n=t.tagID;n===D.HEAD||n===D.BODY||n===D.HTML||n===D.BR?ey(e,t):e._err(t,Xe.endTagWithoutMatchingOpenElement)}function ey(e,t){e._insertFakeElement(Fe.HEAD,D.HEAD),e.headElement=e.openElements.current,e.insertionMode=me.IN_HEAD,e._processToken(t)}function Vl(e,t){switch(t.tagID){case D.HTML:{Vo(e,t);break}case D.BASE:case D.BASEFONT:case D.BGSOUND:case D.LINK:case D.META:{e._appendElement(t,st.HTML),t.ackSelfClosing=!0;break}case D.TITLE:{e._switchToTextParsing(t,yi.RCDATA);break}case D.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,yi.RAWTEXT):(e._insertElement(t,st.HTML),e.insertionMode=me.IN_HEAD_NO_SCRIPT);break}case D.NOFRAMES:case D.STYLE:{e._switchToTextParsing(t,yi.RAWTEXT);break}case D.SCRIPT:{e._switchToTextParsing(t,yi.SCRIPT_DATA);break}case D.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=me.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(me.IN_TEMPLATE);break}case D.HEAD:{e._err(t,Xe.misplacedStartTagForHeadElement);break}default:ty(e,t)}}function xqe(e,t){switch(t.tagID){case D.HEAD:{e.openElements.pop(),e.insertionMode=me.AFTER_HEAD;break}case D.BODY:case D.BR:case D.HTML:{ty(e,t);break}case D.TEMPLATE:{Up(e,t);break}default:e._err(t,Xe.endTagWithoutMatchingOpenElement)}}function Up(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==D.TEMPLATE&&e._err(t,Xe.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(D.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Xe.endTagWithoutMatchingOpenElement)}function ty(e,t){e.openElements.pop(),e.insertionMode=me.AFTER_HEAD,e._processToken(t)}function Cqe(e,t){switch(t.tagID){case D.HTML:{Vo(e,t);break}case D.BASEFONT:case D.BGSOUND:case D.HEAD:case D.LINK:case D.META:case D.NOFRAMES:case D.STYLE:{Vl(e,t);break}case D.NOSCRIPT:{e._err(t,Xe.nestedNoscriptInHead);break}default:ny(e,t)}}function Aqe(e,t){switch(t.tagID){case D.NOSCRIPT:{e.openElements.pop(),e.insertionMode=me.IN_HEAD;break}case D.BR:{ny(e,t);break}default:e._err(t,Xe.endTagWithoutMatchingOpenElement)}}function ny(e,t){const n=t.type===Pn.EOF?Xe.openElementsLeftAfterEof:Xe.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=me.IN_HEAD,e._processToken(t)}function _qe(e,t){switch(t.tagID){case D.HTML:{Vo(e,t);break}case D.BODY:{e._insertElement(t,st.HTML),e.framesetOk=!1,e.insertionMode=me.IN_BODY;break}case D.FRAMESET:{e._insertElement(t,st.HTML),e.insertionMode=me.IN_FRAMESET;break}case D.BASE:case D.BASEFONT:case D.BGSOUND:case D.LINK:case D.META:case D.NOFRAMES:case D.SCRIPT:case D.STYLE:case D.TEMPLATE:case D.TITLE:{e._err(t,Xe.abandonedHeadElementChild),e.openElements.push(e.headElement,D.HEAD),Vl(e,t),e.openElements.remove(e.headElement);break}case D.HEAD:{e._err(t,Xe.misplacedStartTagForHeadElement);break}default:ry(e,t)}}function Rqe(e,t){switch(t.tagID){case D.BODY:case D.HTML:case D.BR:{ry(e,t);break}case D.TEMPLATE:{Up(e,t);break}default:e._err(t,Xe.endTagWithoutMatchingOpenElement)}}function ry(e,t){e._insertFakeElement(Fe.BODY,D.BODY),e.insertionMode=me.IN_BODY,Rx(e,t)}function Rx(e,t){switch(t.type){case Pn.CHARACTER:{Fre(e,t);break}case Pn.WHITESPACE_CHARACTER:{$re(e,t);break}case Pn.COMMENT:{tD(e,t);break}case Pn.START_TAG:{Vo(e,t);break}case Pn.END_TAG:{Ix(e,t);break}case Pn.EOF:{zre(e,t);break}}}function $re(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Fre(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Iqe(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Dqe(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function Nqe(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,st.HTML),e.insertionMode=me.IN_FRAMESET)}function Pqe(e,t){e.openElements.hasInButtonScope(D.P)&&e._closePElement(),e._insertElement(t,st.HTML)}function Lqe(e,t){e.openElements.hasInButtonScope(D.P)&&e._closePElement(),xre(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,st.HTML)}function Mqe(e,t){e.openElements.hasInButtonScope(D.P)&&e._closePElement(),e._insertElement(t,st.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function $qe(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(D.P)&&e._closePElement(),e._insertElement(t,st.HTML),n||(e.formElement=e.openElements.current))}function Fqe(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===D.LI&&i===D.LI||(n===D.DD||n===D.DT)&&(i===D.DD||i===D.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==D.ADDRESS&&i!==D.DIV&&i!==D.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(D.P)&&e._closePElement(),e._insertElement(t,st.HTML)}function Bqe(e,t){e.openElements.hasInButtonScope(D.P)&&e._closePElement(),e._insertElement(t,st.HTML),e.tokenizer.state=yi.PLAINTEXT}function Uqe(e,t){e.openElements.hasInScope(D.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(D.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML),e.framesetOk=!1}function jqe(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Fe.A);n&&(BL(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function zqe(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Vqe(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(D.NOBR)&&(BL(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,st.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Hqe(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Wqe(e,t){e.treeAdapter.getDocumentMode(e.document)!==ns.QUIRKS&&e.openElements.hasInButtonScope(D.P)&&e._closePElement(),e._insertElement(t,st.HTML),e.framesetOk=!1,e.insertionMode=me.IN_TABLE}function Bre(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,st.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Ure(e){const t=Tre(e,Bd.TYPE);return t!=null&&t.toLowerCase()===uqe}function Qqe(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,st.HTML),Ure(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Yqe(e,t){e._appendElement(t,st.HTML),t.ackSelfClosing=!0}function Gqe(e,t){e.openElements.hasInButtonScope(D.P)&&e._closePElement(),e._appendElement(t,st.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function qqe(e,t){t.tagName=Fe.IMG,t.tagID=D.IMG,Bre(e,t)}function Zqe(e,t){e._insertElement(t,st.HTML),e.skipNextNewLine=!0,e.tokenizer.state=yi.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=me.TEXT}function Xqe(e,t){e.openElements.hasInButtonScope(D.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,yi.RAWTEXT)}function Kqe(e,t){e.framesetOk=!1,e._switchToTextParsing(t,yi.RAWTEXT)}function yV(e,t){e._switchToTextParsing(t,yi.RAWTEXT)}function Jqe(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===me.IN_TABLE||e.insertionMode===me.IN_CAPTION||e.insertionMode===me.IN_TABLE_BODY||e.insertionMode===me.IN_ROW||e.insertionMode===me.IN_CELL?me.IN_SELECT_IN_TABLE:me.IN_SELECT}function eZe(e,t){e.openElements.currentTagId===D.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML)}function tZe(e,t){e.openElements.hasInScope(D.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,st.HTML)}function nZe(e,t){e.openElements.hasInScope(D.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(D.RTC),e._insertElement(t,st.HTML)}function rZe(e,t){e._reconstructActiveFormattingElements(),Pre(t),FL(t),t.selfClosing?e._appendElement(t,st.MATHML):e._insertElement(t,st.MATHML),t.ackSelfClosing=!0}function iZe(e,t){e._reconstructActiveFormattingElements(),Lre(t),FL(t),t.selfClosing?e._appendElement(t,st.SVG):e._insertElement(t,st.SVG),t.ackSelfClosing=!0}function OV(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML)}function Vo(e,t){switch(t.tagID){case D.I:case D.S:case D.B:case D.U:case D.EM:case D.TT:case D.BIG:case D.CODE:case D.FONT:case D.SMALL:case D.STRIKE:case D.STRONG:{zqe(e,t);break}case D.A:{jqe(e,t);break}case D.H1:case D.H2:case D.H3:case D.H4:case D.H5:case D.H6:{Lqe(e,t);break}case D.P:case D.DL:case D.OL:case D.UL:case D.DIV:case D.DIR:case D.NAV:case D.MAIN:case D.MENU:case D.ASIDE:case D.CENTER:case D.FIGURE:case D.FOOTER:case D.HEADER:case D.HGROUP:case D.DIALOG:case D.DETAILS:case D.ADDRESS:case D.ARTICLE:case D.SECTION:case D.SUMMARY:case D.FIELDSET:case D.BLOCKQUOTE:case D.FIGCAPTION:{Pqe(e,t);break}case D.LI:case D.DD:case D.DT:{Fqe(e,t);break}case D.BR:case D.IMG:case D.WBR:case D.AREA:case D.EMBED:case D.KEYGEN:{Bre(e,t);break}case D.HR:{Gqe(e,t);break}case D.RB:case D.RTC:{tZe(e,t);break}case D.RT:case D.RP:{nZe(e,t);break}case D.PRE:case D.LISTING:{Mqe(e,t);break}case D.XMP:{Xqe(e,t);break}case D.SVG:{iZe(e,t);break}case D.HTML:{Iqe(e,t);break}case D.BASE:case D.LINK:case D.META:case D.STYLE:case D.TITLE:case D.SCRIPT:case D.BGSOUND:case D.BASEFONT:case D.TEMPLATE:{Vl(e,t);break}case D.BODY:{Dqe(e,t);break}case D.FORM:{$qe(e,t);break}case D.NOBR:{Vqe(e,t);break}case D.MATH:{rZe(e,t);break}case D.TABLE:{Wqe(e,t);break}case D.INPUT:{Qqe(e,t);break}case D.PARAM:case D.TRACK:case D.SOURCE:{Yqe(e,t);break}case D.IMAGE:{qqe(e,t);break}case D.BUTTON:{Uqe(e,t);break}case D.APPLET:case D.OBJECT:case D.MARQUEE:{Hqe(e,t);break}case D.IFRAME:{Kqe(e,t);break}case D.SELECT:{Jqe(e,t);break}case D.OPTION:case D.OPTGROUP:{eZe(e,t);break}case D.NOEMBED:{yV(e,t);break}case D.FRAMESET:{Nqe(e,t);break}case D.TEXTAREA:{Zqe(e,t);break}case D.NOSCRIPT:{e.options.scriptingEnabled?yV(e,t):OV(e,t);break}case D.PLAINTEXT:{Bqe(e,t);break}case D.COL:case D.TH:case D.TD:case D.TR:case D.HEAD:case D.FRAME:case D.TBODY:case D.TFOOT:case D.THEAD:case D.CAPTION:case D.COLGROUP:break;default:OV(e,t)}}function oZe(e,t){if(e.openElements.hasInScope(D.BODY)&&(e.insertionMode=me.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function aZe(e,t){e.openElements.hasInScope(D.BODY)&&(e.insertionMode=me.AFTER_BODY,Zre(e,t))}function sZe(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function lZe(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(D.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(D.FORM):n&&e.openElements.remove(n))}function uZe(e){e.openElements.hasInButtonScope(D.P)||e._insertFakeElement(Fe.P,D.P),e._closePElement()}function cZe(e){e.openElements.hasInListItemScope(D.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(D.LI),e.openElements.popUntilTagNamePopped(D.LI))}function dZe(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function fZe(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function pZe(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function hZe(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Fe.BR,D.BR),e.openElements.pop(),e.framesetOk=!1}function jre(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const o=e.openElements.items[i],a=e.openElements.tagIDs[i];if(r===a&&(r!==D.UNKNOWN||e.treeAdapter.getTagName(o)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(o,a))break}}function Ix(e,t){switch(t.tagID){case D.A:case D.B:case D.I:case D.S:case D.U:case D.EM:case D.TT:case D.BIG:case D.CODE:case D.FONT:case D.NOBR:case D.SMALL:case D.STRIKE:case D.STRONG:{BL(e,t);break}case D.P:{uZe(e);break}case D.DL:case D.UL:case D.OL:case D.DIR:case D.DIV:case D.NAV:case D.PRE:case D.MAIN:case D.MENU:case D.ASIDE:case D.BUTTON:case D.CENTER:case D.FIGURE:case D.FOOTER:case D.HEADER:case D.HGROUP:case D.DIALOG:case D.ADDRESS:case D.ARTICLE:case D.DETAILS:case D.SECTION:case D.SUMMARY:case D.LISTING:case D.FIELDSET:case D.BLOCKQUOTE:case D.FIGCAPTION:{sZe(e,t);break}case D.LI:{cZe(e);break}case D.DD:case D.DT:{dZe(e,t);break}case D.H1:case D.H2:case D.H3:case D.H4:case D.H5:case D.H6:{fZe(e);break}case D.BR:{hZe(e);break}case D.BODY:{oZe(e,t);break}case D.HTML:{aZe(e,t);break}case D.FORM:{lZe(e);break}case D.APPLET:case D.OBJECT:case D.MARQUEE:{pZe(e,t);break}case D.TEMPLATE:{Up(e,t);break}default:jre(e,t)}}function zre(e,t){e.tmplInsertionModeStack.length>0?qre(e,t):UL(e,t)}function mZe(e,t){var n;t.tagID===D.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function gZe(e,t){e._err(t,Xe.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function C2(e,t){if(Mre.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=me.IN_TABLE_TEXT,t.type){case Pn.CHARACTER:{Hre(e,t);break}case Pn.WHITESPACE_CHARACTER:{Vre(e,t);break}}else IO(e,t)}function bZe(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,st.HTML),e.insertionMode=me.IN_CAPTION}function yZe(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,st.HTML),e.insertionMode=me.IN_COLUMN_GROUP}function OZe(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Fe.COLGROUP,D.COLGROUP),e.insertionMode=me.IN_COLUMN_GROUP,jL(e,t)}function vZe(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,st.HTML),e.insertionMode=me.IN_TABLE_BODY}function EZe(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Fe.TBODY,D.TBODY),e.insertionMode=me.IN_TABLE_BODY,Dx(e,t)}function SZe(e,t){e.openElements.hasInTableScope(D.TABLE)&&(e.openElements.popUntilTagNamePopped(D.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function TZe(e,t){Ure(t)?e._appendElement(t,st.HTML):IO(e,t),t.ackSelfClosing=!0}function wZe(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,st.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function mg(e,t){switch(t.tagID){case D.TD:case D.TH:case D.TR:{EZe(e,t);break}case D.STYLE:case D.SCRIPT:case D.TEMPLATE:{Vl(e,t);break}case D.COL:{OZe(e,t);break}case D.FORM:{wZe(e,t);break}case D.TABLE:{SZe(e,t);break}case D.TBODY:case D.TFOOT:case D.THEAD:{vZe(e,t);break}case D.INPUT:{TZe(e,t);break}case D.CAPTION:{bZe(e,t);break}case D.COLGROUP:{yZe(e,t);break}default:IO(e,t)}}function E1(e,t){switch(t.tagID){case D.TABLE:{e.openElements.hasInTableScope(D.TABLE)&&(e.openElements.popUntilTagNamePopped(D.TABLE),e._resetInsertionMode());break}case D.TEMPLATE:{Up(e,t);break}case D.BODY:case D.CAPTION:case D.COL:case D.COLGROUP:case D.HTML:case D.TBODY:case D.TD:case D.TFOOT:case D.TH:case D.THEAD:case D.TR:break;default:IO(e,t)}}function IO(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Rx(e,t),e.fosterParentingEnabled=n}function Vre(e,t){e.pendingCharacterTokens.push(t)}function Hre(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Y0(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===D.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===D.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===D.OPTGROUP&&e.openElements.pop();break}case D.OPTION:{e.openElements.currentTagId===D.OPTION&&e.openElements.pop();break}case D.SELECT:{e.openElements.hasInSelectScope(D.SELECT)&&(e.openElements.popUntilTagNamePopped(D.SELECT),e._resetInsertionMode());break}case D.TEMPLATE:{Up(e,t);break}}}function RZe(e,t){const n=t.tagID;n===D.CAPTION||n===D.TABLE||n===D.TBODY||n===D.TFOOT||n===D.THEAD||n===D.TR||n===D.TD||n===D.TH?(e.openElements.popUntilTagNamePopped(D.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Yre(e,t)}function IZe(e,t){const n=t.tagID;n===D.CAPTION||n===D.TABLE||n===D.TBODY||n===D.TFOOT||n===D.THEAD||n===D.TR||n===D.TD||n===D.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(D.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Gre(e,t)}function DZe(e,t){switch(t.tagID){case D.BASE:case D.BASEFONT:case D.BGSOUND:case D.LINK:case D.META:case D.NOFRAMES:case D.SCRIPT:case D.STYLE:case D.TEMPLATE:case D.TITLE:{Vl(e,t);break}case D.CAPTION:case D.COLGROUP:case D.TBODY:case D.TFOOT:case D.THEAD:{e.tmplInsertionModeStack[0]=me.IN_TABLE,e.insertionMode=me.IN_TABLE,mg(e,t);break}case D.COL:{e.tmplInsertionModeStack[0]=me.IN_COLUMN_GROUP,e.insertionMode=me.IN_COLUMN_GROUP,jL(e,t);break}case D.TR:{e.tmplInsertionModeStack[0]=me.IN_TABLE_BODY,e.insertionMode=me.IN_TABLE_BODY,Dx(e,t);break}case D.TD:case D.TH:{e.tmplInsertionModeStack[0]=me.IN_ROW,e.insertionMode=me.IN_ROW,Nx(e,t);break}default:e.tmplInsertionModeStack[0]=me.IN_BODY,e.insertionMode=me.IN_BODY,Vo(e,t)}}function NZe(e,t){t.tagID===D.TEMPLATE&&Up(e,t)}function qre(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(D.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):UL(e,t)}function PZe(e,t){t.tagID===D.HTML?Vo(e,t):mw(e,t)}function Zre(e,t){var n;if(t.tagID===D.HTML){if(e.fragmentContext||(e.insertionMode=me.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===D.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 mw(e,t)}function mw(e,t){e.insertionMode=me.IN_BODY,Rx(e,t)}function LZe(e,t){switch(t.tagID){case D.HTML:{Vo(e,t);break}case D.FRAMESET:{e._insertElement(t,st.HTML);break}case D.FRAME:{e._appendElement(t,st.HTML),t.ackSelfClosing=!0;break}case D.NOFRAMES:{Vl(e,t);break}}}function MZe(e,t){t.tagID===D.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==D.FRAMESET&&(e.insertionMode=me.AFTER_FRAMESET))}function $Ze(e,t){switch(t.tagID){case D.HTML:{Vo(e,t);break}case D.NOFRAMES:{Vl(e,t);break}}}function FZe(e,t){t.tagID===D.HTML&&(e.insertionMode=me.AFTER_AFTER_FRAMESET)}function BZe(e,t){t.tagID===D.HTML?Vo(e,t):gS(e,t)}function gS(e,t){e.insertionMode=me.IN_BODY,Rx(e,t)}function UZe(e,t){switch(t.tagID){case D.HTML:{Vo(e,t);break}case D.NOFRAMES:{Vl(e,t);break}}}function jZe(e,t){t.chars=Hr,e._insertCharacters(t)}function zZe(e,t){e._insertCharacters(t),e.framesetOk=!1}function Xre(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==st.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function VZe(e,t){if(iqe(t))Xre(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===st.MATHML?Pre(t):r===st.SVG&&(oqe(t),Lre(t)),FL(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function HZe(e,t){if(t.tagID===D.P||t.tagID===D.BR){Xre(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)===st.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}Fe.AREA,Fe.BASE,Fe.BASEFONT,Fe.BGSOUND,Fe.BR,Fe.COL,Fe.EMBED,Fe.FRAME,Fe.HR,Fe.IMG,Fe.INPUT,Fe.KEYGEN,Fe.LINK,Fe.META,Fe.PARAM,Fe.SOURCE,Fe.TRACK,Fe.WBR;const WZe=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),vV={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Kre(e,t){const n=tXe(e),r=DL("type",{handlers:{root:QZe,element:YZe,text:GZe,comment:eie,doctype:qZe,raw:XZe},unknown:KZe}),i={parser:n?new bV(vV):bV.getFragmentParser(void 0,vV),handle(s){r(s,i)},stitches:!1,options:t||{}};r(e,i),Xg(i,ju());const o=n?i.parser.document:i.parser.getFragment(),a=rGe(o,{file:i.options.file});return i.stitches&&Na(a,"comment",function(s,l,u){const c=s;if(c.value.stitch&&u&&l!==void 0){const d=u.children;return d[l]=c.value.stitch,l}}),a.type==="root"&&a.children.length===1&&a.children[0].type===e.type?a.children[0]:a}function Jre(e,t){let n=-1;if(e)for(;++n"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 rie(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?rie(t.parentElement):null}function iXe(e){var t=n=>{var r=rie(n.target);r&&(r.classList.add("active"),rXe(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};I.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 oXe=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],aXe=e=>e;const sXe=Qt.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:i,style:o,disableCopy:a=!1,skipHtml:s=!0,onScroll:l,onMouseOver:u,pluginsFilter:c,wrapperElement:d={},warpperElement:p={},urlTransform:h}=e,m=Ge(e,oXe),b=Qt.useRef(null);I.useImperativeHandle(t,()=>L({},e,{mdp:b}),[b,e]);var O=(n||"")+" "+(r||"");iXe(b);var y=[...m.rehypePlugins||[]],v={allowElement:(C,w,E)=>m.allowElement?m.allowElement(C,w,E):/^[A-Za-z0-9]+$/.test(C.tagName)};s&&y.push(nie);var S=[...m.remarkPlugins||[],WYe],k=L({},p,d);return N.jsx("div",L({ref:b,onScroll:l,onMouseOver:u},k,{className:O,style:o,children:N.jsx(PWe,L({},v,m,{skipHtml:s,urlTransform:h||aXe,rehypePlugins:c?c("rehype",y):y,remarkPlugins:c?c("remark",S):S,children:i||""}))}))});function em(e){return"children"in e?iie(e):"value"in e?e.value:""}function lXe(e){return e.type==="text"?e.value:"children"in e?iie(e):""}function iie(e){let t=-1;const n=[];for(;++t0&&c.length===0)return}const d={};let p;for(p in s)uXe.call(s,p)&&(d[p]=p==="children"?c:s[p]);return d}}function dXe(e){return"children"in e&&e.children!==void 0}var rD={exports:{}};(function(e,t){function n(r){let i=[],o;for(let a of r.split(",").map(s=>s.trim()))if(/^-?\d+$/.test(a))i.push(parseInt(a,10));else if(o=a.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[s,l,u,c]=o;if(l&&c){l=parseInt(l),c=parseInt(c);const d=l]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}Hl.displayName="c";Hl.aliases=[];function Hl(e){e.register(jn),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}jp.displayName="cpp";jp.aliases=[];function jp(e){e.register(Hl),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)}Px.displayName="arduino";Px.aliases=["ino"];function Px(e){e.register(jp),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}NO.displayName="bash";NO.aliases=["sh","shell"];function NO(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 o=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],a=i.variable[1].inside,s=0;s>/g,function(ve,G){return"(?:"+se[+G]+")"})}function r(j,se,ve){return RegExp(n(j,se),ve||"")}function i(j,se){for(var ve=0;ve>/g,function(){return"(?:"+j+")"});return j.replace(/<>/g,"[^\\s\\S]")}var o={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 a(j){return"\\b(?:"+j.trim().replace(/ /g,"|")+")\\b"}var s=a(o.typeDeclaration),l=RegExp(a(o.type+" "+o.typeDeclaration+" "+o.contextual+" "+o.other)),u=a(o.typeDeclaration+" "+o.contextual+" "+o.other),c=a(o.type+" "+o.typeDeclaration+" "+o.other),d=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),p=i(/\((?:[^()]|<>)*\)/.source,2),h=/@?\b[A-Za-z_]\w*\b/.source,m=n(/<<0>>(?:\s*<<1>>)?/.source,[h,d]),b=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[u,m]),O=/\[\s*(?:,\s*)*\]/.source,y=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[b,O]),v=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[d,p,O]),S=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[v]),k=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[S,b,O]),C={keyword:l,punctuation:/[<>()?,.:[\]]/},w=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,E=/"(?:\\.|[^\\"\r\n])*"/.source,$=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[$]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[E]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[b]),lookbehind:!0,inside:C},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[h,k]),lookbehind:!0,inside:C},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[h]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[s,m]),lookbehind:!0,inside:C},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[b]),lookbehind:!0,inside:C},{pattern:r(/(\bwhere\s+)<<0>>/.source,[h]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[y]),lookbehind:!0,inside:C},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[k,c,h]),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,[h]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[h]),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,[k,b]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[k]),lookbehind:!0,inside:C,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[h,d]),inside:{function:r(/^<<0>>/.source,[h]),generic:{pattern:RegExp(d),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,[s,m,h,k,l.source,p,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[m,p]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:l,"class-name":{pattern:RegExp(k),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 P=E+"|"+w,R=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[P]),B=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[R]),2),U=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,V=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[b,B]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[U,V]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[U]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[B]),inside:t.languages.csharp},"class-name":{pattern:RegExp(b),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var z=/:[^}\r\n]+/.source,W=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[R]),2),X=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[W,z]),q=i(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[P]),2),Y=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[q,z]);function Z(j,se){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[j]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[se,z]),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,[X]),lookbehind:!0,greedy:!0,inside:Z(X,W)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[Y]),lookbehind:!0,greedy:!0,inside:Z(Y,q)}],char:{pattern:RegExp(w),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(e)}ro.displayName="markup";ro.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function ro(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 o={"included-cdata":{pattern://i,inside:i}};o["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var a={};a[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:o},e.languages.insertBefore("markup","cdata",a)}}),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}ff.displayName="css";ff.aliases=[];function ff(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)}Lx.displayName="diff";Lx.aliases=[];function Lx(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],o=[];/^\w+$/.test(r)||o.push(/\w+/.exec(r)[0]),r==="diff"&&o.push("bold"),t.languages.diff[r]={pattern:RegExp("^(?:["+i+`].*(?:\r ?| -|(?![\\s\\S])))+`,"m"),alias:o,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)}hx.displayName="go";hx.aliases=[];function hx(e){e.register(jn),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"]}mx.displayName="ini";mx.aliases=[];function mx(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:/=/}}Up.displayName="java";Up.aliases=[];function Up(e){e.register(jn),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)}gx.displayName="regex";gx.aliases=[];function gx(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"},o={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},a="(?:[^\\\\-]|"+r.source+")",s=RegExp(a+"-"+a),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:s,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":o,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}Vg.displayName="json";Vg.aliases=["webmanifest"];function Vg(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}bx.displayName="kotlin";bx.aliases=["kt","kts"];function bx(e){e.register(jn),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)}yx.displayName="less";yx.aliases=[];function yx(e){e.register(df),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"}})}EO.displayName="lua";EO.aliases=[];function EO(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:/[\[\](){},;]|\.+|:+/}}Ox.displayName="makefile";Ox.aliases=[];function Ox(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:/[:;(){}]/}}SO.displayName="yaml";SO.aliases=["yml"];function SO(e){(function(t){var n=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+r.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+r.source+")?)",o=/(?:[^\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}),a=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function s(l,u){u=(u||"").replace(/m/g,"")+"m";var c=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return l});return RegExp(c,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"(?:"+o+"|"+a+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:s(/\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:s(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:s(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:s(a),lookbehind:!0,greedy:!0},number:{pattern:s(/[+-]?(?: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)}vx.displayName="markdown";vx.aliases=["md"];function vx(e){e.register(to),function(t){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(s){return s=s.replace(//g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+s+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),a=/\|?[ \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("^"+o+a+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+a+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+a+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),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(s){["url","bold","italic","strike","code-snippet"].forEach(function(l){s!==l&&(t.languages.markdown[s].inside.content.inside[l]=t.languages.markdown[l])})}),t.hooks.add("after-tokenize",function(s){if(s.language!=="markdown"&&s.language!=="md")return;function l(u){if(!(!u||typeof u=="string"))for(var c=0,d=u.length;c]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}Sx.displayName="perl";Sx.aliases=[];function Sx(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)}So.displayName="markup-templating";So.aliases=[];function So(e){e.register(to),function(t){function n(r,i){return"___"+r.toUpperCase()+i+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,i,o,a){if(r.language===i){var s=r.tokenStack=[];r.code=r.code.replace(o,function(l){if(typeof a=="function"&&!a(l))return l;for(var u=s.length,c;r.code.indexOf(c=n(i,u))!==-1;)++u;return s[u]=l,c}),r.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(r,i){if(r.language!==i||!r.tokenStack)return;r.grammar=t.languages[i];var o=0,a=Object.keys(r.tokenStack);function s(l){for(var u=0;u=a.length);u++){var c=l[u];if(typeof c=="string"||c.content&&typeof c.content=="string"){var d=a[o],p=r.tokenStack[d],h=typeof c=="string"?c:c.content,m=n(i,d),b=h.indexOf(m);if(b>-1){++o;var O=h.substring(0,b),y=new t.Token(i,t.tokenize(p,r.grammar),"language-"+i,p),v=h.substring(b+m.length),S=[];O&&S.push.apply(S,s([O])),S.push(y),v&&S.push.apply(S,s([v])),typeof c=="string"?l.splice.apply(l,[u,1].concat(S)):c.content=S}}else c.content&&s(c.content)}return l}s(r.tokens)}}})}(e)}jp.displayName="php";jp.aliases=[];function jp(e){e.register(So),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,o=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,a=/[{}\[\](),:;]/;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:o,punctuation:a};var s={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:s}},{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:s}}];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:o,punctuation:a}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(u){if(/<\?/.test(u.code)){var c=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;t.languages["markup-templating"].buildPlaceholders(u,"php",c)}}),t.hooks.add("after-tokenize",function(u){t.languages["markup-templating"].tokenizePlaceholders(u,"php")})}(e)}TO.displayName="python";TO.aliases=["py"];function TO(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}Tx.displayName="r";Tx.aliases=[];function Tx(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:/[(){}\[\],;]/}}zp.displayName="ruby";zp.aliases=["rb"];function zp(e){e.register(jn),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)}wx.displayName="rust";wx.aliases=[];function wx(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)}kx.displayName="sass";kx.aliases=[];function kx(e){e.register(df),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)}xx.displayName="scss";xx.aliases=[];function xx(e){e.register(df),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}Hg.displayName="sql";Hg.aliases=[];function Hg(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:/[;[\]()`,.]/}}Cx.displayName="swift";Cx.aliases=[];function Cx(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})}Wg.displayName="typescript";Wg.aliases=["ts"];function Wg(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)}wO.displayName="basic";wO.aliases=[];function wO(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:/[,;:()]/}}kO.displayName="vbnet";kO.aliases=[];function kO(e){e.register(wO),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:/[,;:(){}]/})}const xz=/[#.]/g;function ZUe(e,t){const n=e||"",r={};let i=0,o,a;for(;i=48&&t<=57}function o9e(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function a9e(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function _z(e){return a9e(e)||Ote(e)}const hh=String.fromCharCode,s9e=["","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 l9e(e,t={}){const n=typeof t.additional=="string"?t.additional.charCodeAt(0):t.additional,r=[];let i=0,o=-1,a="",s,l;t.position&&("start"in t.position||"indent"in t.position?(l=t.position.indent,s=t.position.start):s=t.position);let u=(s?s.line:0)||1,c=(s?s.column:0)||1,d=h(),p;for(i--;++i<=e.length;)if(p===10&&(c=(l?l[o]:0)||1),p=e.charCodeAt(i),p===38){const O=e.charCodeAt(i+1);if(O===9||O===10||O===12||O===32||O===38||O===60||Number.isNaN(O)||n&&O===n){a+=hh(p),c++;continue}const y=i+1;let v=y,S=y,k;if(O===35){S=++v;const U=e.charCodeAt(S);U===88||U===120?(k="hexadecimal",S=++v):k="decimal"}else k="named";let C="",w="",E="";const $=k==="named"?_z:k==="decimal"?Ote:o9e;for(S--;++S<=e.length;){const U=e.charCodeAt(S);if(!$(U))break;E+=hh(U),k==="named"&&i9e.includes(E)&&(C=E,w=s1(E))}let N=e.charCodeAt(S)===59;if(N){S++;const U=k==="named"?s1(E):!1;U&&(C=E,w=U)}let R=1+S-y,B="";if(!(!N&&t.nonTerminated===!1))if(!E)k!=="named"&&m(4,R);else if(k==="named"){if(N&&!w)m(5,1);else if(C!==E&&(S=v+C.length,R=1+S-v,N=!1),!N){const U=C?1:3;if(t.attribute){const V=e.charCodeAt(S);V===61?(m(U,R),w=""):_z(V)?w="":m(U,R)}else m(U,R)}B=w}else{N||m(2,R);let U=Number.parseInt(E,k==="hexadecimal"?16:10);if(u9e(U))m(7,R),B=hh(65533);else if(U in Az)m(6,R),B=Az[U];else{let V="";c9e(U)&&m(6,R),U>65535&&(U-=65536,V+=hh(U>>>10|55296),U=56320|U&1023),B=V+hh(U)}}if(B){b(),d=h(),i=S-1,c+=S-y+1,r.push(B);const U=h();U.offset++,t.reference&&t.reference.call(t.referenceContext,B,{start:d,end:U},e.slice(y-1,S)),d=U}else E=e.slice(y-1,S),a+=E,c+=E.length,i=S-1}else p===10&&(u++,o++,c=0),Number.isNaN(p)?b():(a+=hh(p),c++);return r.join("");function h(){return{line:u,column:c,offset:i+((s?s.offset:0)||0)}}function m(O,y){let v;t.warning&&(v=h(),v.column+=y,v.offset+=y,t.warning.call(t.warningContext,s9e[O],v,O))}function b(){a&&(r.push(a),t.text&&t.text.call(t.textContext,a,{start:d,end:h()}),a="")}}function u9e(e){return e>=55296&&e<=57343||e>1114111}function c9e(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 d9e=0,pE={},Wi={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++d9e}),e.__id},clone:function e(t,n){n=n||{};var r,i;switch(Wi.util.type(t)){case"Object":if(i=Wi.util.objId(t),n[i])return n[i];r={},n[i]=r;for(var o in t)t.hasOwnProperty(o)&&(r[o]=e(t[o],n));return r;case"Array":return i=Wi.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(a,s){r[s]=e(a,n)}),r);default:return t}}},languages:{plain:pE,plaintext:pE,text:pE,txt:pE,extend:function(e,t){var n=Wi.util.clone(Wi.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||Wi.languages;var i=r[e],o={};for(var a in i)if(i.hasOwnProperty(a)){if(a==t)for(var s in n)n.hasOwnProperty(s)&&(o[s]=n[s]);n.hasOwnProperty(a)||(o[a]=i[a])}var l=r[e];return r[e]=o,Wi.languages.DFS(Wi.languages,function(u,c){c===l&&u!=e&&(this[u]=o)}),o},DFS:function e(t,n,r,i){i=i||{};var o=Wi.util.objId;for(var a in t)if(t.hasOwnProperty(a)){n.call(t,a,t[a],r||a);var s=t[a],l=Wi.util.type(s);l==="Object"&&!i[o(s)]?(i[o(s)]=!0,e(s,n,null,i)):l==="Array"&&!i[o(s)]&&(i[o(s)]=!0,e(s,n,a,i))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(Wi.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=Wi.tokenize(r.code,r.grammar),Wi.hooks.run("after-tokenize",r),qb.stringify(Wi.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 f9e;return sS(i,i.head,e),vte(e,i,t,i.head,0),h9e(i)},hooks:{all:{},add:function(e,t){var n=Wi.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=Wi.hooks.all[e];if(!(!n||!n.length))for(var r=0,i;i=n[r++];)i(t)}},Token:qb};function qb(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function Rz(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var o=i[1].length;i.index+=o,i[0]=i[0].slice(o)}return i}function vte(e,t,n,r,i,o){for(var a in n)if(!(!n.hasOwnProperty(a)||!n[a])){var s=n[a];s=Array.isArray(s)?s:[s];for(var l=0;l=o.reach);y+=O.value.length,O=O.next){var v=O.value;if(t.length>e.length)return;if(!(v instanceof qb)){var S=1,k;if(p){if(k=Rz(b,y,e,d),!k||k.index>=e.length)break;var $=k.index,C=k.index+k[0].length,w=y;for(w+=O.value.length;$>=w;)O=O.next,w+=O.value.length;if(w-=O.value.length,y=w,O.value instanceof qb)continue;for(var E=O;E!==t.tail&&(wo.reach&&(o.reach=U);var V=O.prev;R&&(V=sS(t,V,R),y+=R.length),p9e(t,V,S);var z=new qb(a,c?Wi.tokenize(N,c):N,h,N);if(O=sS(t,V,z),B&&sS(t,O,B),S>1){var W={cause:a+","+l,reach:U};vte(e,t,n,O.prev,y,W),o&&W.reach>o.reach&&(o.reach=W.reach)}}}}}}function f9e(){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 sS(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 p9e(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:/[,.:()]/}}M3.displayName="abnf";M3.aliases=[];function M3(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)}$3.displayName="actionscript";$3.aliases=[];function $3(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}})}F3.displayName="ada";F3.aliases=[];function F3(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}}B3.displayName="agda";B3.aliases=[];function B3(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)}U3.displayName="al";U3.aliases=[];function U3(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:/[()\[\]{}:.;,]/}}j3.displayName="antlr4";j3.aliases=["g4"];function j3(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}z3.displayName="apacheconf";z3.aliases=[];function z3(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:/\^?.*\$|\^.*\$?/}}V3.displayName="apex";V3.aliases=[];function V3(e){e.register(jn),e.register(Hg),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(a){return RegExp(a.replace(//g,function(){return r}),"i")}var o={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:o},{pattern:i(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:o},{pattern:i(/(?=\s*\w+\s*[;=,(){:])/.source),inside:o}],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)}H3.displayName="apl";H3.aliases=[];function H3(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"}}}W3.displayName="applescript";W3.aliases=[];function W3(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:/[{}():,¬«»《》]/}}Q3.displayName="aql";Q3.aliases=[];function Q3(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:/::|[?.:,;()[\]{}]/}}Y3.displayName="arff";Y3.aliases=[];function Y3(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:/[{},]/}}G3.displayName="armasm";G3.aliases=["arm-asm"];function G3(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}q3.displayName="arturo";q3.aliases=["art"];function q3(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)}Z3.displayName="asciidoc";Z3.aliases=["adoc"];function Z3(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(o){o=o.split(" ");for(var a={},s=0,l=o.length;s/,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||{}}})}K3.displayName="asm6502";K3.aliases=[];function K3(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:/[(),:]/}}J3.displayName="asmatmel";J3.aliases=[];function J3(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:/[(),:]/}}eL.displayName="autohotkey";eL.aliases=[];function eL(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:/[{}[\]():,]/}}tL.displayName="autoit";tL.aliases=[];function tL(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:/[\[\]().,:]/}}nL.displayName="avisynth";nL.aliases=["avs"];function nL(e){(function(t){function n(u,c){return u.replace(/<<(\d+)>>/g,function(d,p){return c[+p]})}function r(u,c,d){return RegExp(n(u,c),d||"")}var i=/bool|clip|float|int|string|val/.source,o=[/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("|"),a=[/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("|"),s=[/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=[o,a,s].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)}rL.displayName="avro-idl";rL.aliases=["avdl"];function rL(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"]}iL.displayName="awk";iL.aliases=["gawk"];function iL(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}oL.displayName="batch";oL.aliases=[];function oL(e){(function(t){var n=/%%?[~:\w]+%?|!\S+!/,r={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,o=/(?:\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:o,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:o,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:o,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:o,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(e)}aL.displayName="bbcode";aL.aliases=["shortcode"];function aL(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}sL.displayName="bbj";sL.aliases=[];function sL(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)}lL.displayName="bicep";lL.aliases=[];function lL(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}uL.displayName="birb";uL.aliases=[];function uL(e){e.register(jn),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"}})}cL.displayName="bison";cL.aliases=[];function cL(e){e.register(zl),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:/%[%?]|[|:;\[\]<>]/}}})}dL.displayName="bnf";dL.aliases=["rbnf"];function dL(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}fL.displayName="bqn";fL.aliases=[];function fL(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:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}pL.displayName="brainfuck";pL.aliases=[];function pL(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}hL.displayName="brightscript";hL.aliases=[];function hL(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}mL.displayName="bro";mL.aliases=[];function mL(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:/[{}[\];(),.:]/}}gL.displayName="bsl";gL.aliases=["oscript"];function gL(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}bL.displayName="cfscript";bL.aliases=["cfc"];function bL(e){e.register(jn),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}yL.displayName="chaiscript";yL.aliases=[];function yL(e){e.register(jn),e.register(Fp),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]+/}}})}OL.displayName="cil";OL.aliases=[];function OL(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]+/}}vL.displayName="cilkc";vL.aliases=["cilk-c"];function vL(e){e.register(zl),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}EL.displayName="cilkcpp";EL.aliases=["cilk","cilk-cpp"];function EL(e){e.register(Fp),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}SL.displayName="clojure";SL.aliases=[];function SL(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:/[{}\[\](),]/}}TL.displayName="cmake";TL.aliases=[];function TL(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:/[()>}]|\$[<{]/}}wL.displayName="cobol";wL.aliases=[];function wL(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:/[.:,()]/}}kL.displayName="coffeescript";kL.aliases=["coffee"];function kL(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)}xL.displayName="concurnas";xL.aliases=["conc"];function xL(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}CL.displayName="csp";CL.aliases=[];function CL(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)}AL.displayName="cooklang";AL.aliases=[];function AL(e){(function(t){var n=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,r=/[^{}@#]+/.source,i=/\{[^}#@]*\}/.source,o=r+i,a=/(?:h|hours|hrs|m|min|minutes)/.source,s={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("#(?:"+o+"|"+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("@(?:"+o+"|"+n+")"),inside:{ingredient:{pattern:new RegExp("(^@)(?:"+r+")"),lookbehind:!0,alias:"variable"},"ingredient-keyword":{pattern:/^@/,alias:"keyword"},"amount-group":s}},"timer-group":{pattern:/~(?!\s)[^@#~{}]*\{[^{}]*\}/,inside:{timer:{pattern:/(^~)[^{]+/,lookbehind:!0,alias:"variable"},"duration-group":{pattern:/\{[^{}]*\}/,inside:{punctuation:/[{}]/,unit:{pattern:new RegExp(/(%\s*)/.source+a+/\b/.source),lookbehind:!0,alias:"symbol"},operator:/%/,duration:{pattern:/\d+/,alias:"number"}}},"timer-keyword":{pattern:/^~/,alias:"keyword"}}}}})(e)}_L.displayName="coq";_L.aliases=[];function _L(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)}RL.displayName="crystal";RL.aliases=[];function RL(e){e.register(zp),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)}IL.displayName="css-extras";IL.aliases=[];function IL(e){e.register(df),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},o={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:o,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:o})}(e)}DL.displayName="csv";DL.aliases=[];function DL(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}NL.displayName="cue";NL.aliases=[];function NL(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)}PL.displayName="cypher";PL.aliases=[];function PL(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:/[()[\]{},;.]/}}LL.displayName="d";LL.aliases=[];function LL(e){e.register(jn),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"}})}ML.displayName="dart";ML.aliases=[];function ML(e){e.register(jn),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)}$L.displayName="dataweave";$L.aliases=[];function $L(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)}FL.displayName="dax";FL.aliases=[];function FL(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:/[;\[\](){}`,.]/}}BL.displayName="dhall";BL.aliases=[];function BL(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}UL.displayName="django";UL.aliases=["jinja2"];function UL(e){e.register(So),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)}jL.displayName="dns-zone-file";jL.aliases=["dns-zone"];function jL(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"]}zL.displayName="docker";zL.aliases=["dockerfile"];function zL(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,o=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return i}),a={pattern:RegExp(i),greedy:!0},s={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function l(u,c){return u=u.replace(//g,function(){return o}).replace(//g,function(){return r}),RegExp(u,c)}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:[a,{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:s,string:a,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:s},t.languages.dockerfile=t.languages.docker})(e)}VL.displayName="dot";VL.aliases=["gv"];function VL(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(o,a){return RegExp(o.replace(//g,function(){return n}),a)}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)}HL.displayName="ebnf";HL.aliases=[];function HL(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:/[-=|*/!]/}}WL.displayName="editorconfig";WL.aliases=[];function WL(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:/^=/}}}}QL.displayName="eiffel";QL.aliases=[];function QL(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:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}YL.displayName="ejs";YL.aliases=["eta"];function YL(e){e.register(Eo),e.register(So),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)}GL.displayName="elixir";GL.aliases=[];function GL(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}}}})}qL.displayName="elm";qL.aliases=[];function qL(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:/[{}[\]|(),.:]/}}ZL.displayName="etlua";ZL.aliases=[];function ZL(e){e.register(EO),e.register(So),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)}XL.displayName="erb";XL.aliases=[];function XL(e){e.register(So),e.register(zp),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)}KL.displayName="erlang";KL.aliases=[];function KL(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:/[()[\]{}:;,.#|]|<<|>>/}}JL.displayName="excel-formula";JL.aliases=["xls","xlsx"];function JL(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"]}eM.displayName="fsharp";eM.aliases=[];function eM(e){e.register(jn),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}})}tM.displayName="factor";tM.aliases=[];function tM(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}},o=function(u){return(u+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},a=function(u){return new RegExp("(^|\\s)(?:"+u.map(o).join("|")+")(?=\\s|$)")},s={"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(s).forEach(function(u){i[u].pattern=a(s[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=a(l),t.languages.factor=i})(e)}nM.displayName="false";nM.aliases=[];function nM(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:/,/}}})}iM.displayName="flow";iM.aliases=[];function iM(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)}oM.displayName="fortran";oM.aliases=[];function oM(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:/\(\/|\/\)|[(),;:&]/}}aM.displayName="ftl";aM.aliases=[];function aM(e){e.register(So),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(o){var a=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return n}),"gi");t.languages["markup-templating"].buildPlaceholders(o,"ftl",a)}),t.hooks.add("after-tokenize",function(o){t.languages["markup-templating"].tokenizePlaceholders(o,"ftl")})}(e)}sM.displayName="gml";sM.aliases=["gamemakerlanguage"];function sM(e){e.register(jn),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/})}lM.displayName="gap";lM.aliases=[];function lM(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}uM.displayName="gcode";uM.aliases=[];function uM(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:/[:*]/}}cM.displayName="gdscript";cM.aliases=[];function cM(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:/[.:,;()[\]{}]/}}dM.displayName="gedcom";dM.aliases=[];function dM(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"}}}fM.displayName="gettext";fM.aliases=["po"];function fM(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}pM.displayName="gherkin";pM.aliases=[];function pM(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)}hM.displayName="git";hM.aliases=[];function hM(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}}mM.displayName="glsl";mM.aliases=[];function mM(e){e.register(zl),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/})}gM.displayName="gn";gM.aliases=["gni"];function gM(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}bM.displayName="linker-script";bM.aliases=["ld"];function bM(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"]}yM.displayName="go-module";yM.aliases=["go-mod"];function yM(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:/[()[\],]/}}OM.displayName="gradle";OM.aliases=[];function OM(e){e.register(jn),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)}vM.displayName="graphql";vM.aliases=[];function vM(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(O){return typeof O!="string"&&O.type!=="comment"&&O.type!=="scalar"}),i=0;function o(O){return r[i+O]}function a(O,y){y=y||0;for(var v=0;v0)){var h=s(/^\{$/,/^\}$/);if(h===-1)continue;for(var m=i;m=0&&l(b,"variable-input")}}}}})}EM.displayName="groovy";EM.aliases=[];function EM(e){e.register(jn),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)}SM.displayName="textile";SM.aliases=[];function SM(e){e.register(to),function(t){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,r=/\)|\((?![^|()\n]+\))/.source;function i(d,p){return RegExp(d.replace(//g,function(){return"(?:"+n+")"}).replace(//g,function(){return"(?:"+r+")"}),p||"")}var o={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/},a=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:o},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)+/.source),lookbehind:!0,inside:o},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:o},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:o},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:o},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:o},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:/[()]/}}}}}),s=a.phrase.inside,l={inline:s.inline,link:s.link,image:s.image,footnote:s.footnote,acronym:s.acronym,mark:s.mark};a.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var u=s.inline.inside;u.bold.inside=l,u.italic.inside=l,u.inserted.inside=l,u.deleted.inside=l,u.span.inside=l;var c=s.table.inside;c.inline=l.inline,c.link=l.link,c.image=l.image,c.footnote=l.footnote,c.acronym=l.acronym,c.mark=l.mark}(e)}TM.displayName="haml";TM.aliases=[];function TM(e){e.register(zp),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={},o=0,a=r.length;o@\[\\\]^`{|}~]/,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)}xO.displayName="haskell";xO.aliases=["hs"];function xO(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}kM.displayName="haxe";kM.aliases=[];function kM(e){e.register(jn),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"}})}xM.displayName="hcl";xM.aliases=[];function xM(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:/[=\[\]{}]/}}CM.displayName="hlsl";CM.aliases=[];function CM(e){e.register(zl),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/})}AM.displayName="hoon";AM.aliases=[];function AM(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:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}_M.displayName="hpkp";_M.aliases=[];function _M(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}RM.displayName="hsts";RM.aliases=[];function RM(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}IM.displayName="uri";IM.aliases=["url"];function IM(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}DM.displayName="http";DM.aliases=[];function DM(e){(function(t){function n(c){return RegExp("(^(?:"+c+"):[ ]*(?![ ]))[^]+","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},o={"application/json":!0,"application/xml":!0};function a(c){var d=c.replace(/^[a-z]+\//,""),p="\\w+/(?:[\\w.-]+\\+)+"+d+"(?![+\\w.-])";return"(?:"+c+"|"+p+")"}var s;for(var l in i)if(i[l]){s=s||{};var u=o[l]?a(l):l;s[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]}}s&&t.languages.insertBefore("http","header",s)})(e)}NM.displayName="ichigojam";NM.aliases=[];function NM(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:/[\[,;:()\]]/}}PM.displayName="icon";PM.aliases=[];function PM(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:/[\[\](){},;]/}}LM.displayName="icu-message-format";LM.aliases=[];function LM(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"},o={pattern:r,greedy:!0,inside:{escape:i}},a=n(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return r.source}),8),s={pattern:RegExp(a),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};t.languages["icu-message-format"]={argument:{pattern:RegExp(a),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":s,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":s,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:o},s.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)}MM.displayName="idris";MM.aliases=["idr"];function MM(e){e.register(xO),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}$M.displayName="ignore";$M.aliases=["gitignore","hgignore","npmignore"];function $M(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)}FM.displayName="inform7";FM.aliases=[];function FM(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"}}BM.displayName="io";BM.aliases=[];function BM(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:/[()]/}}Yg.displayName="javadoclike";Yg.aliases=[];function Yg(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(o,a){var s="doc-comment",l=t.languages[o];if(l){var u=l[s];if(!u){var c={};c[s]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},l=t.languages.insertBefore(o,"comment",c),u=l[s]}if(u instanceof RegExp&&(u=l[s]={pattern:u}),Array.isArray(u))for(var d=0,p=u.length;d|\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}zM.displayName="javadoc";zM.aliases=[];function zM(e){e.register(Up),e.register(Yg),e.register(to),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)}VM.displayName="javastacktrace";VM.aliases=[];function VM(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/}}}}HM.displayName="jexl";HM.aliases=[];function HM(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:/[{}[\](),.]/}}WM.displayName="jolie";WM.aliases=[];function WM(e){e.register(jn),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]*:)/}})}QM.displayName="jq";QM.aliases=[];function QM(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:/^\\\(|\)$/}}},o=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=o})(e)}YM.displayName="js-templates";YM.aliases=[];function YM(e){e.register(Eo),function(t){var n=t.languages.javascript["template-string"],r=n.pattern.source,i=n.inside.interpolation,o=i.inside["interpolation-punctuation"],a=i.pattern.source;function s(m,b){if(t.languages[m])return{pattern:RegExp("((?:"+b+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:m}}}}t.languages.javascript["template-string"]=[s("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),s("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),s("svg",/\bsvg/.source),s("markdown",/\b(?:markdown|md)/.source),s("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),s("sql",/\bsql/.source),n].filter(Boolean);function l(m,b){return"___"+b.toUpperCase()+"_"+m+"___"}function u(m,b,O){var y={code:m,grammar:b,language:O};return t.hooks.run("before-tokenize",y),y.tokens=t.tokenize(y.code,y.grammar),t.hooks.run("after-tokenize",y),y.tokens}function c(m){var b={};b["interpolation-punctuation"]=o;var O=t.tokenize(m,b);if(O.length===3){var y=[1,1];y.push.apply(y,u(O[1],t.languages.javascript,"javascript")),O.splice.apply(O,y)}return new t.Token("interpolation",O,i.alias,m)}function d(m,b,O){var y=t.tokenize(m,{interpolation:{pattern:RegExp(a),lookbehind:!0}}),v=0,S={},k=y.map(function($){if(typeof $=="string")return $;for(var N=$.content,R;m.indexOf(R=l(v++,O))!==-1;);return S[R]=N,R}).join(""),C=u(k,b,O),w=Object.keys(S);v=0;function E($){for(var N=0;N<$.length;N++){if(v>=w.length)return;var R=$[N];if(typeof R=="string"||typeof R.content=="string"){var B=w[v],U=typeof R=="string"?R:R.content,V=U.indexOf(B);if(V!==-1){++v;var z=U.substring(0,V),W=c(S[B]),X=U.substring(V+B.length),q=[];if(z&&q.push(z),q.push(W),X){var Y=[X];E(Y),q.push.apply(q,Y)}typeof R=="string"?($.splice.apply($,[N,1].concat(q)),N+=q.length-1):R.content=q}}else{var Z=R.content;Array.isArray(Z)?E(Z):E([Z])}}}return E(C),new t.Token(O,C,"language-"+O,m)}var p={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};t.hooks.add("after-tokenize",function(m){if(!(m.language in p))return;function b(O){for(var y=0,v=O.length;y\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)}qM.displayName="n4js";qM.aliases=["n4jsd"];function qM(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}ZM.displayName="js-extras";ZM.aliases=[];function ZM(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:/:/}}}}}}e4.displayName="julia";e4.aliases=[];function e4(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|[πℯ]/}}t4.displayName="keepalived";t4.aliases=[];function t4(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:/[\{\}]/}}n4.displayName="keyman";n4.aliases=[];function n4(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:/[()=,]/}}r4.displayName="kumir";r4.aliases=["kum"];function r4(e){(function(t){var n=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function r(i,o){return RegExp(i.replace(//g,n),o)}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)}i4.displayName="kusto";i4.aliases=[];function i4(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:/[()\[\]{},;.:]/}}o4.displayName="latex";o4.aliases=["context","tex"];function o4(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)}a4.displayName="latte";a4.aliases=[];function a4(e){e.register(jn),e.register(So),e.register(jp),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)}CO.displayName="scheme";CO.aliases=[];function CO(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(o){return"(?:"+r[o].trim()+")"});return r[i]}})(e)}s4.displayName="lilypond";s4.aliases=["ly"];function s4(e){e.register(CO),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 o=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/};o["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=o,t.languages.ly=o}(e)}l4.displayName="liquid";l4.aliases=[];function l4(e){e.register(So),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 o=/^\{%-?\s*(\w+)/.exec(i);if(o){var a=o[1];if(a==="raw"&&!r)return r=!0,!0;if(a==="endraw")return r=!1,!0}return!r})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}u4.displayName="lisp";u4.aliases=["elisp","emacs","emacs-lisp"];function u4(e){(function(t){function n(m){return RegExp(/(\()/.source+"(?:"+m+")"+/(?=[\s\)])/.source)}function r(m){return RegExp(/([\s([])/.source+"(?:"+m+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,o="&"+i,a="(\\()",s="(?=\\))",l="(?=\\s)",u=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,c={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(a+"(?: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(a+"(?: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(a+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(a+/(?: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(a+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(a+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},d={"lisp-marker":RegExp(o),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+u+/\)/.source),inside:c},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:c},p="\\S+(?:\\s+\\S+)*",h={pattern:RegExp(a+u+s),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+p),inside:d},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+p),inside:d},keys:{pattern:RegExp("&key\\s+"+p+"(?:\\s+&allow-other-keys)?"),inside:d},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};c.lambda.inside.arguments=h,c.defun.inside.arguments=t.util.clone(h),c.defun.inside.arguments.inside.sublist=h,t.languages.lisp=c,t.languages.elisp=c,t.languages.emacs=c,t.languages["emacs-lisp"]=c})(e)}c4.displayName="livescript";c4.aliases=[];function c4(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}d4.displayName="llvm";d4.aliases=[];function d4(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)}f4.displayName="log";f4.aliases=[];function f4(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:/[\[\].,]/}}p4.displayName="lolcode";p4.aliases=[];function p4(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}|…|,|!/}}h4.displayName="magma";h4.aliases=[];function h4(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:/[()[\]{}<>,;.:]/}}Ax.displayName="mata";Ax.aliases=[];function Ax(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)}m4.displayName="matlab";m4.aliases=[];function m4(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}|[.,;\[\](){}!]/}}g4.displayName="maxscript";g4.aliases=[];function g4(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)}b4.displayName="mel";b4.aliases=[];function b4(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}y4.displayName="mermaid";y4.aliases=[];function y4(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:/[(){};]/}}O4.displayName="metafont";O4.aliases=[];function O4(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}}}v4.displayName="mizar";v4.aliases=[];function v4(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:/\(#|#\)|[,:;\[\](){}]/}}E4.displayName="mongodb";E4.aliases=[];function E4(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(o){return o.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)}S4.displayName="monkey";S4.aliases=[];function S4(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:/[.,:;()\[\]]/}}T4.displayName="moonscript";T4.aliases=["moon"];function T4(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}w4.displayName="n1ql";w4.aliases=[];function w4(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:/[;[\](),.{}:]/}}k4.displayName="nand2tetris-hdl";k4.aliases=[];function k4(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:/[{}[\];(),:]/}}x4.displayName="naniscript";x4.aliases=["nani"];function x4(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(a){var s=a.tokens;s.forEach(function(l){if(typeof l!="string"&&l.type==="generic-text"){var u=o(l);i(u)||(l.type="bad-line",l.content=u)}})});function i(a){for(var s="[]{}",l=[],u=0;u=&|$!]/}}A4.displayName="neon";A4.aliases=[];function A4(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:/[,:=[\]{}()-]/}}_4.displayName="nevod";_4.aliases=[];function _4(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\-.]+/}}R4.displayName="nginx";R4.aliases=[];function R4(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)}I4.displayName="nim";I4.aliases=[];function I4(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:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}D4.displayName="nix";D4.aliases=[];function D4(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}N4.displayName="nsis";N4.aliases=[];function N4(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}}}P4.displayName="ocaml";P4.aliases=[];function P4(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/}}L4.displayName="odin";L4.aliases=[];function L4(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)}M4.displayName="opencl";M4.aliases=[];function M4(e){e.register(zl),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)}$4.displayName="openqasm";$4.aliases=["qasm"];function $4(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}F4.displayName="oz";F4.aliases=[];function F4(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:/[\[\](){}.:;?]/}}B4.displayName="parigp";B4.aliases=[];function B4(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:/[\[\]{}().,:;|]/}}U4.displayName="parser";U4.aliases=[];function U4(e){e.register(to),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)}j4.displayName="pascal";j4.aliases=["objectpascal"];function j4(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}z4.displayName="pascaligo";z4.aliases=[];function z4(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:/\(\.|\.\)|[()\[\]:;,.{}]/},o=["comment","keyword","builtin","operator","punctuation"].reduce(function(a,s){return a[s]=i[s],a},{});i["class-name"].forEach(function(a){a.inside=o})})(e)}V4.displayName="psl";V4.aliases=[];function V4(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:/[(){}\[\];,]/}}H4.displayName="pcaxis";H4.aliases=["px"];function H4(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}W4.displayName="peoplecode";W4.aliases=["pcode"];function W4(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}Q4.displayName="phpdoc";Q4.aliases=[];function Q4(e){e.register(Yg),e.register(jp),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)}Y4.displayName="php-extras";Y4.aliases=[];function Y4(e){e.register(jp),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:/::|\\/}}})}G4.displayName="plant-uml";G4.aliases=["plantuml"];function G4(e){(function(t){var n=/\$\w+|%[a-z]+%/,r=/\[[^[\]]*\]/.source,i=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,o="(?:-+"+i+"-+|\\.+"+i+"\\.+|-+(?:"+r+"-*)?|"+r+"-+|\\.+(?:"+r+"\\.*)?|"+r+"\\.+)",a=/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source,s=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,l=/[[?]?[ox]?/.source,u=/[ox]?[\]?]?/.source,c=l+"(?:"+o+s+"|"+a+o+"(?:"+s+")?)"+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+c+/(?![-.<>?|\\\]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)}q4.displayName="plsql";q4.aliases=[];function q4(e){e.register(Hg),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"}})}Z4.displayName="powerquery";Z4.aliases=["mscript","pq"];function Z4(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}X4.displayName="powershell";X4.aliases=[];function X4(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)}K4.displayName="processing";K4.aliases=[];function K4(e){e.register(jn),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"}})}J4.displayName="prolog";J4.aliases=[];function J4(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:/[(){}\[\],]/}}e5.displayName="promql";e5.aliases=[];function e5(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"],o=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(?:"+o.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)}t5.displayName="properties";t5.aliases=[];function t5(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:/[=:]/}}n5.displayName="protobuf";n5.aliases=[];function n5(e){e.register(jn),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)}r5.displayName="stylus";r5.aliases=[];function r5(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)}i5.displayName="twig";i5.aliases=[];function i5(e){e.register(So),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")})}o5.displayName="pug";o5.aliases=[];function o5(e){e.register(Eo),e.register(to),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={},o=0,a=r.length;o",function(){return s.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[s.language,"language-"+s.language],inside:t.languages[s.language]}}})}t.languages.insertBefore("pug","filter",i)}(e)}a5.displayName="puppet";a5.aliases=[];function a5(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)}s5.displayName="pure";s5.aliases=[];function s5(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 o=i;if(typeof i!="string"&&(o=i.alias,i=i.lang),t.languages[o]){var a={};a["inline-lang-"+o]={pattern:RegExp(r.replace("",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:t.util.clone(t.languages.pure["inline-lang"].inside)},a["inline-lang-"+o].inside.rest=t.util.clone(t.languages[o]),t.languages.insertBefore("pure","inline-lang",a)}}),t.languages.c&&(t.languages.pure["inline-lang"].inside.rest=t.util.clone(t.languages.c))})(e)}l5.displayName="purebasic";l5.aliases=["pbfasm"];function l5(e){e.register(jn),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}u5.displayName="purescript";u5.aliases=["purs"];function u5(e){e.register(xO),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}c5.displayName="qsharp";c5.aliases=["qs"];function c5(e){e.register(jn),function(t){function n(h,m){return h.replace(/<<(\d+)>>/g,function(b,O){return"(?:"+m[+O]+")"})}function r(h,m,b){return RegExp(n(h,m),b||"")}function i(h,m){for(var b=0;b>/g,function(){return"(?:"+h+")"});return h.replace(/<>/g,"[^\\s\\S]")}var o={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 a(h){return"\\b(?:"+h.trim().replace(/ /g,"|")+")\\b"}var s=RegExp(a(o.type+" "+o.other)),l=/\b[A-Za-z_]\w*\b/.source,u=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[l]),c={keyword:s,punctuation:/[<>()?,.:[\]]/},d=/"(?:\\.|[^\\"])*"/.source;t.languages.qsharp=t.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[d]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[u]),lookbehind:!0,inside:c},{pattern:r(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[u]),lookbehind:!0,inside:c}],keyword:s,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,[d]),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}d5.displayName="q";d5.aliases=[];function d5(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:/[(){}\[\];.]/}}f5.displayName="qml";f5.aliases=[];function f5(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}),o=0;o<2;o++)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)}p5.displayName="qore";p5.aliases=[];function p5(e){e.register(jn),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/})}h5.displayName="racket";h5.aliases=["rkt"];function h5(e){e.register(CO),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}m5.displayName="cshtml";m5.aliases=["razor"];function m5(e){e.register(Bp),e.register(to),function(t){var n=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,r=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function i(v,S){for(var k=0;k/g,function(){return"(?:"+v+")"});return v.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+r+")").replace(//g,"(?:"+n+")")}var o=i(/\((?:[^()'"@/]|||)*\)/.source,2),a=i(/\[(?:[^\[\]'"@/]|||)*\]/.source,1),s=i(/\{(?:[^{}'"@/]|||)*\}/.source,2),l=i(/<(?:[^<>'"@/]||)*>/.source,1),u=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+o+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+l+")?"+o+"|"+a+")*"+/(?![?!\.(\[]|<(?!\/))/.source,c=/@(?![\w()])/.source+"|"+u,d="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+`|["'][^"'@]*(?:(?:`+c+`)[^"'@]*)+["'])`,p=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*|(?=[\s/>])))+)?/.source.replace(//,d),h=/(?!\d)[^\s>\/=$<%]+/.source+p+/\s*\/?>/.source,m=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+h+"|"+i(/<\1/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+h+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/*\.{3}(?:[^{}]|)*\})/.source;function a(u,c){return u=u.replace(//g,function(){return r}).replace(//g,function(){return i}).replace(//g,function(){return o}),RegExp(u,c)}o=a(o).source,t.languages.jsx=t.languages.extend("markup",n),t.languages.jsx.tag.pattern=a(/<\/?(?:[\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:a(//.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:a(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var s=function(u){return u?typeof u=="string"?u:typeof u.content=="string"?u.content:u.content.map(s).join(""):""},l=function(u){for(var c=[],d=0;d0&&c[c.length-1].tagName===s(p.content[0].content[1])&&c.pop():p.content[p.content.length-1].content==="/>"||c.push({tagName:s(p.content[0].content[1]),openedBraces:0}):c.length>0&&p.type==="punctuation"&&p.content==="{"?c[c.length-1].openedBraces++:c.length>0&&c[c.length-1].openedBraces>0&&p.type==="punctuation"&&p.content==="}"?c[c.length-1].openedBraces--:h=!0),(h||typeof p=="string")&&c.length>0&&c[c.length-1].openedBraces===0){var m=s(p);d0&&(typeof u[d-1]=="string"||u[d-1].type==="plain-text")&&(m=s(u[d-1])+m,u.splice(d-1,1),d--),u[d]=new t.Token("plain-text",m,null,m)}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)}g5.displayName="tsx";g5.aliases=[];function g5(e){e.register(_x),e.register(Wg),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)}b5.displayName="reason";b5.aliases=[];function b5(e){e.register(jn),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}y5.displayName="rego";y5.aliases=[];function y5(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:/[,;.\[\]{}()]/}}O5.displayName="renpy";O5.aliases=["rpy"];function O5(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}v5.displayName="rescript";v5.aliases=["res"];function v5(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}E5.displayName="rest";E5.aliases=[];function E5(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}}}S5.displayName="rip";S5.aliases=[];function S5(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`'",.:;#\/\\()<>\[\]{}]*/}}T5.displayName="roboconf";T5.aliases=[];function T5(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:/[{},.;:=]/}}w5.displayName="robotframework";w5.aliases=["robot"];function w5(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 c={};c["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var d in u)c[d]=u[d];return c.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},c.variable=r,c.comment=n,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return l}),"im"),alias:"section",inside:c}}var o={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},a={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:r}},s={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":a,documentation:o,property:s}),keywords:i("Keywords",{"keyword-name":a,documentation:o,property:s}),tasks:i("Tasks",{"task-name":a,documentation:o,property:s}),comment:n},t.languages.robot=t.languages.robotframework})(e)}k5.displayName="sas";k5.aliases=[];function k5(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"},o={pattern:/&[a-z_]\w*/i},a={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"},s={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},c=/[$%@.(){}\[\];,\\]/,d={pattern:/%?\b\w+(?=\()/,alias:"keyword"},p={function:d,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":o,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:r,"numeric-constant":i,punctuation:c,string:u},h={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},m={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},b={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"},O={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},y=/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,v={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return y}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return y}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:l,function:d,"arg-value":p["arg-value"],operator:p.operator,argument:p.arg,number:r,"numeric-constant":i,punctuation:c,string:u}},S={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":b,"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:c,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:S,"submit-statement":O,"global-statements":b,number:r,"numeric-constant":i,punctuation:c,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:S,"submit-statement":O,"global-statements":b,number:r,"numeric-constant":i,punctuation:c,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":v,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:p},step:s,keyword:S,function:d,format:h,altformat:m,"global-statements":b,number:r,"numeric-constant":i,punctuation:c,string:u}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,inside:p},"macro-keyword":a,"macro-variable":o,"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":a,"macro-variable":o,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:c}},"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":v,comment:l,function:d,format:h,altformat:m,"numeric-constant":i,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:u,step:s,keyword:S,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:r,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:c}})(e)}x5.displayName="shell-session";x5.aliases=["sh-session","shellsession"];function x5(e){e.register(vO),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)}C5.displayName="smali";C5.aliases=[];function C5(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:/[{}(),;:]/}}A5.displayName="smalltalk";A5.aliases=[];function A5(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:/[.;:?\[\](){}]/}}_5.displayName="smarty";_5.aliases=[];function _5(e){e.register(So),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 o="{literal}",a="{/literal}",s=!1;t.languages["markup-templating"].buildPlaceholders(i,"smarty",r,function(l){return l===a&&(s=!1),s?!1:(l===o&&(s=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"smarty")})}(e)}R5.displayName="sml";R5.aliases=["smlnj"];function R5(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)}I5.displayName="solidity";I5.aliases=["sol"];function I5(e){e.register(jn),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}D5.displayName="solution-file";D5.aliases=["sln"];function D5(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)}N5.displayName="soy";N5.aliases=[];function N5(e){e.register(So),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 o=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,a="{literal}",s="{/literal}",l=!1;t.languages["markup-templating"].buildPlaceholders(i,"soy",o,function(u){return u===s&&(l=!1),l?!1:(u===a&&(l=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"soy")})}(e)}Rx.displayName="turtle";Rx.aliases=["trig"];function Rx(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}P5.displayName="sparql";P5.aliases=["rq"];function P5(e){e.register(Rx),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}L5.displayName="splunk-spl";L5.aliases=[];function L5(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:/[()[\],]/}}M5.displayName="sqf";M5.aliases=[];function M5(e){e.register(jn),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"]}$5.displayName="squirrel";$5.aliases=[];function $5(e){e.register(jn),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"}})}F5.displayName="stan";F5.aliases=[];function F5(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)}B5.displayName="stata";B5.aliases=[];function B5(e){e.register(Up),e.register(Ax),e.register(TO),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}U5.displayName="iecst";U5.aliases=[];function U5(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:/[()[\].,;]/}}j5.displayName="supercollider";j5.aliases=["sclang"];function j5(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}z5.displayName="systemd";z5.aliases=[];function z5(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)}AO.displayName="t4-templating";AO.aliases=[];function AO(e){(function(t){function n(i,o,a){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:o,alias:a}}}}function r(i){var o=t.languages[i],a="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("=",o,a),"class-feature":n("\\+",o,a),standard:n("",o,a)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:r})})(e)}V5.displayName="t4-cs";V5.aliases=["t4"];function V5(e){e.register(Bp),e.register(AO),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}H5.displayName="t4-vb";H5.aliases=[];function H5(e){e.register(AO),e.register(kO),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}W5.displayName="tap";W5.aliases=[];function W5(e){e.register(SO),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"}}}Q5.displayName="tcl";Q5.aliases=[];function Q5(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:/[{}()\[\]]/}}Y5.displayName="tt2";Y5.aliases=[];function Y5(e){e.register(jn),e.register(So),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)}G5.displayName="toml";G5.aliases=[];function G5(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)}q5.displayName="tremor";q5.aliases=["trickle","troy"];function q5(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)}Z5.displayName="typoscript";Z5.aliases=["tsconfig"];function Z5(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)}X5.displayName="unrealscript";X5.aliases=["uc","uscript"];function X5(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}K5.displayName="uorazor";K5.aliases=[];function K5(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:/[()\[\]{}:.,]/}}J5.displayName="v";J5.aliases=[];function J5(e){e.register(jn),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)}e$.displayName="vala";e$.aliases=[];function e$(e){e.register(jn),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]+$/}}})}t$.displayName="velocity";t$.aliases=[];function t$(e){e.register(to),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)}n$.displayName="verilog";n$.aliases=[];function n$(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:/[[\];(),.:]/}}r$.displayName="vhdl";r$.aliases=[];function r$(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:/[{}[\];(),.:]/}}i$.displayName="vim";i$.aliases=[];function i$(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:/[{}[\](),;:]/}}o$.displayName="visual-basic";o$.aliases=["vb","vba"];function o$(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"]}a$.displayName="warpscript";a$.aliases=[];function a$(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/}}s$.displayName="wasm";s$.aliases=[];function s$(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:/[()]/}}l$.displayName="web-idl";l$.aliases=["webidl"];function l$(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 o in t.languages["web-idl"])o!=="class-name"&&(i[o]=t.languages["web-idl"][o]);t.languages.webidl=t.languages["web-idl"]})(e)}u$.displayName="wgsl";u$.aliases=[];function u$(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:/[@(){}[\],;<>:.]/}}c$.displayName="wiki";c$.aliases=[];function c$(e){e.register(to),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}}}})}d$.displayName="wolfram";d$.aliases=["mathematica","nb","wl"];function d$(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}f$.displayName="wren";f$.aliases=[];function f$(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]+/}}}p$.displayName="xeora";p$.aliases=["xeoracube"];function p$(e){e.register(to),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)}h$.displayName="xml-doc";h$.aliases=[];function h$(e){e.register(to),function(t){function n(a,s){t.languages[a]&&t.languages.insertBefore(a,"comment",{"doc-comment":s})}var r=t.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:r}},o={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:r}};n("csharp",i),n("fsharp",i),n("vbnet",o)}(e)}m$.displayName="xojo";m$.aliases=[];function m$(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:/[.,;:()]/}}g$.displayName="xquery";g$.aliases=[];function g$(e){e.register(to),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 o=[],a=0;a0&&o[o.length-1].tagName===n(s.content[0].content[1])&&o.pop():s.content[s.content.length-1].content==="/>"||o.push({tagName:n(s.content[0].content[1]),openedBraces:0}):o.length>0&&s.type==="punctuation"&&s.content==="{"&&(!i[a+1]||i[a+1].type!=="punctuation"||i[a+1].content!=="{")&&(!i[a-1]||i[a-1].type!=="plain-text"||i[a-1].content!=="{")?o[o.length-1].openedBraces++:o.length>0&&o[o.length-1].openedBraces>0&&s.type==="punctuation"&&s.content==="}"?o[o.length-1].openedBraces--:s.type!=="comment"&&(l=!0)),(l||typeof s=="string")&&o.length>0&&o[o.length-1].openedBraces===0){var u=n(s);a0&&(typeof i[a-1]=="string"||i[a-1].type==="plain-text")&&(u=n(i[a-1])+u,i.splice(a-1,1),a--),/^\s+$/.test(u)?i[a]=u:i[a]=new t.Token("plain-text",u,null,u)}s.content&&typeof s.content!="string"&&r(s.content)}};t.hooks.add("after-tokenize",function(i){i.language==="xquery"&&r(i.tokens)})}(e)}b$.displayName="yang";b$.aliases=[];function b$(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:/[{};:]/}}y$.displayName="zig";y$.aliases=[];function y$(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",o=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,a=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,n(o)),s=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,n(i)),l="(?!\\s)(?:!?\\s*(?:"+a+"\\s*)*"+s+")+";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(o))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,n(l)).replace(//g,n(o))),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)}te.register(to);te.register(df);te.register(jn);te.register(gx);te.register(Eo);te.register(L3);te.register(M3);te.register($3);te.register(F3);te.register(B3);te.register(U3);te.register(j3);te.register(z3);te.register(Hg);te.register(V3);te.register(H3);te.register(W3);te.register(Q3);te.register(zl);te.register(Fp);te.register(fx);te.register(Y3);te.register(G3);te.register(vO);te.register(SO);te.register(vx);te.register(q3);te.register(Z3);te.register(Bp);te.register(X3);te.register(K3);te.register(J3);te.register(eL);te.register(tL);te.register(nL);te.register(rL);te.register(iL);te.register(wO);te.register(oL);te.register(aL);te.register(sL);te.register(lL);te.register(uL);te.register(cL);te.register(dL);te.register(fL);te.register(pL);te.register(hL);te.register(mL);te.register(gL);te.register(bL);te.register(yL);te.register(OL);te.register(vL);te.register(EL);te.register(SL);te.register(TL);te.register(wL);te.register(kL);te.register(xL);te.register(CL);te.register(AL);te.register(_L);te.register(zp);te.register(RL);te.register(IL);te.register(DL);te.register(NL);te.register(PL);te.register(LL);te.register(ML);te.register($L);te.register(FL);te.register(BL);te.register(px);te.register(So);te.register(UL);te.register(jL);te.register(zL);te.register(VL);te.register(HL);te.register(WL);te.register(QL);te.register(YL);te.register(GL);te.register(qL);te.register(EO);te.register(ZL);te.register(XL);te.register(KL);te.register(JL);te.register(eM);te.register(tM);te.register(nM);te.register(rM);te.register(iM);te.register(oM);te.register(aM);te.register(sM);te.register(lM);te.register(uM);te.register(cM);te.register(dM);te.register(fM);te.register(pM);te.register(hM);te.register(mM);te.register(gM);te.register(bM);te.register(hx);te.register(yM);te.register(OM);te.register(vM);te.register(EM);te.register(yx);te.register(xx);te.register(SM);te.register(TM);te.register(wM);te.register(xO);te.register(kM);te.register(xM);te.register(CM);te.register(AM);te.register(_M);te.register(RM);te.register(Vg);te.register(IM);te.register(DM);te.register(NM);te.register(PM);te.register(LM);te.register(MM);te.register($M);te.register(FM);te.register(mx);te.register(BM);te.register(UM);te.register(Up);te.register(jp);te.register(Yg);te.register(jM);te.register(zM);te.register(VM);te.register(HM);te.register(WM);te.register(QM);te.register(YM);te.register(Wg);te.register(GM);te.register(qM);te.register(ZM);te.register(XM);te.register(KM);te.register(JM);te.register(e4);te.register(t4);te.register(n4);te.register(bx);te.register(r4);te.register(i4);te.register(o4);te.register(a4);te.register(CO);te.register(s4);te.register(l4);te.register(u4);te.register(c4);te.register(d4);te.register(f4);te.register(p4);te.register(h4);te.register(Ox);te.register(Ax);te.register(m4);te.register(g4);te.register(b4);te.register(y4);te.register(O4);te.register(v4);te.register(E4);te.register(S4);te.register(T4);te.register(w4);te.register(k4);te.register(x4);te.register(C4);te.register(A4);te.register(_4);te.register(R4);te.register(I4);te.register(D4);te.register(N4);te.register(Ex);te.register(P4);te.register(L4);te.register(M4);te.register($4);te.register(F4);te.register(B4);te.register(U4);te.register(j4);te.register(z4);te.register(V4);te.register(H4);te.register(W4);te.register(Sx);te.register(Q4);te.register(Y4);te.register(G4);te.register(q4);te.register(Z4);te.register(X4);te.register(K4);te.register(J4);te.register(e5);te.register(t5);te.register(n5);te.register(r5);te.register(i5);te.register(o5);te.register(a5);te.register(s5);te.register(l5);te.register(u5);te.register(TO);te.register(c5);te.register(d5);te.register(f5);te.register(p5);te.register(Tx);te.register(h5);te.register(m5);te.register(_x);te.register(g5);te.register(b5);te.register(y5);te.register(O5);te.register(v5);te.register(E5);te.register(S5);te.register(T5);te.register(w5);te.register(wx);te.register(k5);te.register(kx);te.register(x5);te.register(C5);te.register(A5);te.register(_5);te.register(R5);te.register(I5);te.register(D5);te.register(N5);te.register(Rx);te.register(P5);te.register(L5);te.register(M5);te.register($5);te.register(F5);te.register(B5);te.register(U5);te.register(j5);te.register(Cx);te.register(z5);te.register(AO);te.register(V5);te.register(kO);te.register(H5);te.register(W5);te.register(Q5);te.register(Y5);te.register(G5);te.register(q5);te.register(Z5);te.register(X5);te.register(K5);te.register(J5);te.register(e$);te.register(t$);te.register(n$);te.register(r$);te.register(i$);te.register(o$);te.register(a$);te.register(s$);te.register(l$);te.register(u$);te.register(c$);te.register(d$);te.register(f$);te.register(p$);te.register(h$);te.register(m$);te.register(g$);te.register(b$);te.register(y$);function RI(){RI=function(i,o){return new n(i,void 0,o)};var e=RegExp.prototype,t=new WeakMap;function n(i,o,a){var s=new RegExp(i,o);return t.set(s,a||t.get(i)),JT(s,n.prototype)}function r(i,o){var a=t.get(o);return Object.keys(a).reduce(function(s,l){var u=a[l];if(typeof u=="number")s[l]=i[u];else{for(var c=0;i[u[c]]===void 0&&c+1]+)>/g,function(l,u){var c=a[u];return"$"+(Array.isArray(c)?c.join("$"):c)}))}if(typeof o=="function"){var s=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,s)),o.apply(this,l)})}return e[Symbol.replace].call(this,i,o)},RI.apply(this,arguments)}function JT(e,t){return JT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},JT(e,t)}function Iz(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 S9e=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){Da(r,"element",n)};function n(r,i,o){var a,s;if(o&&o.tagName==="pre"&&r.tagName==="code"){var l=(r==null||(a=r.data)==null?void 0:a.meta)||(r==null||(s=r.properties)==null?void 0:s.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,c,d=function(C){for(var w,E=d2(C.properties.className);!(w=E()).done;){var $=w.value;if($.slice(0,9)==="language-")return $.slice(9).toLowerCase()}return null}(r);if(!d&&t.defaultLanguage&&r.properties.className.push("language-"+(d=t.defaultLanguage)),r.properties.className.push("code-highlight"),d)try{var p,h;h=(p=d)!=null&&p.includes("diff-")?d.split("-")[1]:d,u=e.highlight(Xh(r),h),o.properties.className=(o.properties.className||[]).concat("language-"+h)}catch(C){if(!t.ignoreMissing||!/Unknown language/.test(C.message))throw C;u=r}else u=r;u.children=(c=1,function C(w){return w.reduce(function(E,$){if($.type==="text"){var N=$.value,R=(N.match(/\n/g)||"").length;if(R===0)$.position={start:{line:c,column:1},end:{line:c,column:1}},E.push($);else for(var B,U=N.split(` -`),V=d2(U.entries());!(B=V()).done;){var z=B.value,W=z[0],X=z[1];E.push({type:"text",value:W===U.length-1?X:X+` -`,position:{start:{line:c+W,column:1},end:{line:c+W,column:1}}})}return c+=R,E}if(Object.prototype.hasOwnProperty.call($,"children")){var q=c;return $.children=C($.children),E.push($),$.position={start:{line:q,column:1},end:{line:c,column:1}},E}return E.push($),E},[])})(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 m,b=function(C){var w=/{([\d,-]+)}/,E=C.split(",").map(function(R){return R.trim()}).join();if(w.test(E)){var $=w.exec(E)[1],N=qUe($);return function(R){return N.includes(R+1)}}return function(){return!1}}(l),O=function(C){var w=RI(/showLineNumbers=(\d+)/i,{lines:1});if(w.test(C)){var E=w.exec(C);return Number(E.groups.lines)}return 1}(l),y=function(C){for(var w=new Array(C),E=0;E=$+1});N.children=R.children,!l.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||v.some(function(B){return l.toLowerCase().includes(B)})||(N.properties.line=[($+O).toString()],N.properties.className.push("line-number")),b($)&&N.properties.className.push("highlight-line"),(d==="diff"||(C=d)!=null&&C.includes("diff-"))&&Xh(N).substring(0,1)==="-"?N.properties.className.push("deleted"):(d==="diff"||(w=d)!=null&&w.includes("diff-"))&&Xh(N).substring(0,1)==="+"&&N.properties.className.push("inserted")},k=d2(y.entries());!(m=k()).done;)S();y.length>0&&Xh(y[y.length-1]).trim()===""&&y.pop(),r.children=y}}}},T9e=S9e(te),lS={},II={};function w9e(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"]}}}),NI=_O(wte,{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"]}}}),PI=_O(NI,{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"]}}}),D9e=_O(PI,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),$z={css1:Tte,css2:wte,css3:NI,"selectors-3":NI,"selectors-4":PI,latest:PI,progressive:D9e};function U0(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function N9e(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function j0(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var P9e={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},L9e={'"':!0,"'":!0},p2={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},M9e=6,h2="css-selector-parser parse error: ";function $9e(e){e===void 0&&(e={});var t=e.syntax,n=t===void 0?"latest":t,r=e.substitutes,i=e.strict,o=i===void 0?!0:i,a=typeof n=="object"?n:$z[n];a.baseSyntax&&(a=_O($z[a.baseSyntax],a));var s=a.tag?[!0,!!_9e(a.tag).wildcard]:[!1,!1],l=s[0],u=s[1],c=!!a.ids,d=!!a.classNames,p=!!a.namespace,h=a.namespace&&(a.namespace===!0||a.namespace.wildcard===!0);if(p&&!l)throw new Error("".concat(h2,"Namespaces cannot be enabled while tags are disabled."));var m=!!r,b=a.combinators?Dz(a.combinators):lS,O=a.attributes?[!0,a.attributes.operators?Dz(a.attributes.operators):lS,a.attributes.caseSensitivityModifiers?k9e(a.attributes.caseSensitivityModifiers):II,a.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,lS,II,!1],y=O[0],v=O[1],S=O[2],k=O[3],C=k||Object.keys(S).length>0,w=a.pseudoClasses?[!0,a.pseudoClasses.definitions?Pz(a.pseudoClasses.definitions):hE,a.pseudoClasses.unknown==="accept"]:[!1,hE,!1],E=w[0],$=w[1],N=w[2],R=a.pseudoElements?[!0,a.pseudoElements.notation==="singleColon"||a.pseudoElements.notation==="both",!a.pseudoElements.notation||a.pseudoElements.notation==="doubleColon"||a.pseudoElements.notation==="both",a.pseudoElements.definitions?Pz(Array.isArray(a.pseudoElements.definitions)?{NoArgument:a.pseudoElements.definitions}:a.pseudoElements.definitions):hE,a.pseudoElements.unknown==="accept"]:[!1,!1,!1,hE,!1],B=R[0],U=R[1],V=R[2],z=R[3],W=R[4],X="",q=X.length,Y=0,Z="",j=function(de){return Z===de},se=function(){return j("*")||U0(Z)},ve=function(de){Y=de,Z=X.charAt(Y)},G=function(){Y++,Z=X.charAt(Y)},ce=function(){var de=Z;return Y++,Z=X.charAt(Y),de};function ge(de){var Oe=Math.min(q-1,Y),Te=new Error("".concat(h2).concat(de," Pos: ").concat(Oe,"."));throw Te.position=Oe,Te.name="ParserError",Te}function ue(de,Oe){if(!de)return ge(Oe)}var xe=function(){ue(Y=q},Ve=function(de){ue(Y(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,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"]}$x.displayName="ini";$x.aliases=[];function $x(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:/=/}}Vp.displayName="java";Vp.aliases=[];function Vp(e){e.register(jn),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)}Fx.displayName="regex";Fx.aliases=[];function Fx(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"},o={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},a="(?:[^\\\\-]|"+r.source+")",s=RegExp(a+"-"+a),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:s,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":o,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}Kg.displayName="json";Kg.aliases=["webmanifest"];function Kg(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}Bx.displayName="kotlin";Bx.aliases=["kt","kts"];function Bx(e){e.register(jn),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)}Ux.displayName="less";Ux.aliases=[];function Ux(e){e.register(ff),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"}})}PO.displayName="lua";PO.aliases=[];function PO(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:/[\[\](){},;]|\.+|:+/}}jx.displayName="makefile";jx.aliases=[];function jx(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:/[:;(){}]/}}LO.displayName="yaml";LO.aliases=["yml"];function LO(e){(function(t){var n=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+r.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+r.source+")?)",o=/(?:[^\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}),a=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function s(l,u){u=(u||"").replace(/m/g,"")+"m";var c=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return l});return RegExp(c,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"(?:"+o+"|"+a+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:s(/\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:s(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:s(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:s(a),lookbehind:!0,greedy:!0},number:{pattern:s(/[+-]?(?: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)}zx.displayName="markdown";zx.aliases=["md"];function zx(e){e.register(ro),function(t){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(s){return s=s.replace(//g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+s+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),a=/\|?[ \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("^"+o+a+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+a+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+a+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),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(s){["url","bold","italic","strike","code-snippet"].forEach(function(l){s!==l&&(t.languages.markdown[s].inside.content.inside[l]=t.languages.markdown[l])})}),t.hooks.add("after-tokenize",function(s){if(s.language!=="markdown"&&s.language!=="md")return;function l(u){if(!(!u||typeof u=="string"))for(var c=0,d=u.length;c]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}Hx.displayName="perl";Hx.aliases=[];function Hx(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)}wo.displayName="markup-templating";wo.aliases=[];function wo(e){e.register(ro),function(t){function n(r,i){return"___"+r.toUpperCase()+i+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,i,o,a){if(r.language===i){var s=r.tokenStack=[];r.code=r.code.replace(o,function(l){if(typeof a=="function"&&!a(l))return l;for(var u=s.length,c;r.code.indexOf(c=n(i,u))!==-1;)++u;return s[u]=l,c}),r.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(r,i){if(r.language!==i||!r.tokenStack)return;r.grammar=t.languages[i];var o=0,a=Object.keys(r.tokenStack);function s(l){for(var u=0;u=a.length);u++){var c=l[u];if(typeof c=="string"||c.content&&typeof c.content=="string"){var d=a[o],p=r.tokenStack[d],h=typeof c=="string"?c:c.content,m=n(i,d),b=h.indexOf(m);if(b>-1){++o;var O=h.substring(0,b),y=new t.Token(i,t.tokenize(p,r.grammar),"language-"+i,p),v=h.substring(b+m.length),S=[];O&&S.push.apply(S,s([O])),S.push(y),v&&S.push.apply(S,s([v])),typeof c=="string"?l.splice.apply(l,[u,1].concat(S)):c.content=S}}else c.content&&s(c.content)}return l}s(r.tokens)}}})}(e)}Hp.displayName="php";Hp.aliases=[];function Hp(e){e.register(wo),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,o=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,a=/[{}\[\](),:;]/;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:o,punctuation:a};var s={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:s}},{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:s}}];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:o,punctuation:a}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(u){if(/<\?/.test(u.code)){var c=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;t.languages["markup-templating"].buildPlaceholders(u,"php",c)}}),t.hooks.add("after-tokenize",function(u){t.languages["markup-templating"].tokenizePlaceholders(u,"php")})}(e)}MO.displayName="python";MO.aliases=["py"];function MO(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}Wx.displayName="r";Wx.aliases=[];function Wx(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:/[(){}\[\],;]/}}Wp.displayName="ruby";Wp.aliases=["rb"];function Wp(e){e.register(jn),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)}Qx.displayName="rust";Qx.aliases=[];function Qx(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)}Yx.displayName="sass";Yx.aliases=[];function Yx(e){e.register(ff),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)}Gx.displayName="scss";Gx.aliases=[];function Gx(e){e.register(ff),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}Jg.displayName="sql";Jg.aliases=[];function Jg(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:/[;[\]()`,.]/}}qx.displayName="swift";qx.aliases=[];function qx(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})}e0.displayName="typescript";e0.aliases=["ts"];function e0(e){e.register(To),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)}$O.displayName="basic";$O.aliases=[];function $O(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:/[,;:()]/}}FO.displayName="vbnet";FO.aliases=[];function FO(e){e.register($O),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:/[,;:(){}]/})}const EV=/[#.]/g;function hXe(e,t){const n=e||"",r={};let i=0,o,a;for(;i=48&&t<=57}function TXe(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function wXe(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function wV(e){return wXe(e)||oie(e)}const bh=String.fromCharCode,kXe=["","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 xXe(e,t={}){const n=typeof t.additional=="string"?t.additional.charCodeAt(0):t.additional,r=[];let i=0,o=-1,a="",s,l;t.position&&("start"in t.position||"indent"in t.position?(l=t.position.indent,s=t.position.start):s=t.position);let u=(s?s.line:0)||1,c=(s?s.column:0)||1,d=h(),p;for(i--;++i<=e.length;)if(p===10&&(c=(l?l[o]:0)||1),p=e.charCodeAt(i),p===38){const O=e.charCodeAt(i+1);if(O===9||O===10||O===12||O===32||O===38||O===60||Number.isNaN(O)||n&&O===n){a+=bh(p),c++;continue}const y=i+1;let v=y,S=y,k;if(O===35){S=++v;const U=e.charCodeAt(S);U===88||U===120?(k="hexadecimal",S=++v):k="decimal"}else k="named";let C="",w="",E="";const $=k==="named"?wV:k==="decimal"?oie:TXe;for(S--;++S<=e.length;){const U=e.charCodeAt(S);if(!$(U))break;E+=bh(U),k==="named"&&SXe.includes(E)&&(C=E,w=v1(E))}let P=e.charCodeAt(S)===59;if(P){S++;const U=k==="named"?v1(E):!1;U&&(C=E,w=U)}let R=1+S-y,B="";if(!(!P&&t.nonTerminated===!1))if(!E)k!=="named"&&m(4,R);else if(k==="named"){if(P&&!w)m(5,1);else if(C!==E&&(S=v+C.length,R=1+S-v,P=!1),!P){const U=C?1:3;if(t.attribute){const V=e.charCodeAt(S);V===61?(m(U,R),w=""):wV(V)?w="":m(U,R)}else m(U,R)}B=w}else{P||m(2,R);let U=Number.parseInt(E,k==="hexadecimal"?16:10);if(CXe(U))m(7,R),B=bh(65533);else if(U in TV)m(6,R),B=TV[U];else{let V="";AXe(U)&&m(6,R),U>65535&&(U-=65536,V+=bh(U>>>10|55296),U=56320|U&1023),B=V+bh(U)}}if(B){b(),d=h(),i=S-1,c+=S-y+1,r.push(B);const U=h();U.offset++,t.reference&&t.reference.call(t.referenceContext,B,{start:d,end:U},e.slice(y-1,S)),d=U}else E=e.slice(y-1,S),a+=E,c+=E.length,i=S-1}else p===10&&(u++,o++,c=0),Number.isNaN(p)?b():(a+=bh(p),c++);return r.join("");function h(){return{line:u,column:c,offset:i+((s?s.offset:0)||0)}}function m(O,y){let v;t.warning&&(v=h(),v.column+=y,v.offset+=y,t.warning.call(t.warningContext,kXe[O],v,O))}function b(){a&&(r.push(a),t.text&&t.text.call(t.textContext,a,{start:d,end:h()}),a="")}}function CXe(e){return e>=55296&&e<=57343||e>1114111}function AXe(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 _Xe=0,SE={},Wi={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++_Xe}),e.__id},clone:function e(t,n){n=n||{};var r,i;switch(Wi.util.type(t)){case"Object":if(i=Wi.util.objId(t),n[i])return n[i];r={},n[i]=r;for(var o in t)t.hasOwnProperty(o)&&(r[o]=e(t[o],n));return r;case"Array":return i=Wi.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(a,s){r[s]=e(a,n)}),r);default:return t}}},languages:{plain:SE,plaintext:SE,text:SE,txt:SE,extend:function(e,t){var n=Wi.util.clone(Wi.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||Wi.languages;var i=r[e],o={};for(var a in i)if(i.hasOwnProperty(a)){if(a==t)for(var s in n)n.hasOwnProperty(s)&&(o[s]=n[s]);n.hasOwnProperty(a)||(o[a]=i[a])}var l=r[e];return r[e]=o,Wi.languages.DFS(Wi.languages,function(u,c){c===l&&u!=e&&(this[u]=o)}),o},DFS:function e(t,n,r,i){i=i||{};var o=Wi.util.objId;for(var a in t)if(t.hasOwnProperty(a)){n.call(t,a,t[a],r||a);var s=t[a],l=Wi.util.type(s);l==="Object"&&!i[o(s)]?(i[o(s)]=!0,e(s,n,null,i)):l==="Array"&&!i[o(s)]&&(i[o(s)]=!0,e(s,n,a,i))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(Wi.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=Wi.tokenize(r.code,r.grammar),Wi.hooks.run("after-tokenize",r),iy.stringify(Wi.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 RXe;return bS(i,i.head,e),aie(e,i,t,i.head,0),DXe(i)},hooks:{all:{},add:function(e,t){var n=Wi.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=Wi.hooks.all[e];if(!(!n||!n.length))for(var r=0,i;i=n[r++];)i(t)}},Token:iy};function iy(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function kV(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var o=i[1].length;i.index+=o,i[0]=i[0].slice(o)}return i}function aie(e,t,n,r,i,o){for(var a in n)if(!(!n.hasOwnProperty(a)||!n[a])){var s=n[a];s=Array.isArray(s)?s:[s];for(var l=0;l=o.reach);y+=O.value.length,O=O.next){var v=O.value;if(t.length>e.length)return;if(!(v instanceof iy)){var S=1,k;if(p){if(k=kV(b,y,e,d),!k||k.index>=e.length)break;var $=k.index,C=k.index+k[0].length,w=y;for(w+=O.value.length;$>=w;)O=O.next,w+=O.value.length;if(w-=O.value.length,y=w,O.value instanceof iy)continue;for(var E=O;E!==t.tail&&(wo.reach&&(o.reach=U);var V=O.prev;R&&(V=bS(t,V,R),y+=R.length),IXe(t,V,S);var z=new iy(a,c?Wi.tokenize(P,c):P,h,P);if(O=bS(t,V,z),B&&bS(t,O,B),S>1){var W={cause:a+","+l,reach:U};aie(e,t,n,O.prev,y,W),o&&W.reach>o.reach&&(o.reach=W.reach)}}}}}}function RXe(){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 bS(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 IXe(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:/[,.:()]/}}VL.displayName="abnf";VL.aliases=[];function VL(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)}HL.displayName="actionscript";HL.aliases=[];function HL(e){e.register(To),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}})}WL.displayName="ada";WL.aliases=[];function WL(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}}QL.displayName="agda";QL.aliases=[];function QL(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)}YL.displayName="al";YL.aliases=[];function YL(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:/[()\[\]{}:.;,]/}}GL.displayName="antlr4";GL.aliases=["g4"];function GL(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}qL.displayName="apacheconf";qL.aliases=[];function qL(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:/\^?.*\$|\^.*\$?/}}ZL.displayName="apex";ZL.aliases=[];function ZL(e){e.register(jn),e.register(Jg),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(a){return RegExp(a.replace(//g,function(){return r}),"i")}var o={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:o},{pattern:i(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:o},{pattern:i(/(?=\s*\w+\s*[;=,(){:])/.source),inside:o}],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)}XL.displayName="apl";XL.aliases=[];function XL(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"}}}KL.displayName="applescript";KL.aliases=[];function KL(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:/[{}():,¬«»《》]/}}JL.displayName="aql";JL.aliases=[];function JL(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:/::|[?.:,;()[\]{}]/}}eM.displayName="arff";eM.aliases=[];function eM(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:/[{},]/}}tM.displayName="armasm";tM.aliases=["arm-asm"];function tM(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}nM.displayName="arturo";nM.aliases=["art"];function nM(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)}rM.displayName="asciidoc";rM.aliases=["adoc"];function rM(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(o){o=o.split(" ");for(var a={},s=0,l=o.length;s/,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||{}}})}oM.displayName="asm6502";oM.aliases=[];function oM(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:/[(),:]/}}aM.displayName="asmatmel";aM.aliases=[];function aM(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:/[(),:]/}}sM.displayName="autohotkey";sM.aliases=[];function sM(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:/[{}[\]():,]/}}lM.displayName="autoit";lM.aliases=[];function lM(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:/[\[\]().,:]/}}uM.displayName="avisynth";uM.aliases=["avs"];function uM(e){(function(t){function n(u,c){return u.replace(/<<(\d+)>>/g,function(d,p){return c[+p]})}function r(u,c,d){return RegExp(n(u,c),d||"")}var i=/bool|clip|float|int|string|val/.source,o=[/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("|"),a=[/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("|"),s=[/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=[o,a,s].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)}cM.displayName="avro-idl";cM.aliases=["avdl"];function cM(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"]}dM.displayName="awk";dM.aliases=["gawk"];function dM(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}fM.displayName="batch";fM.aliases=[];function fM(e){(function(t){var n=/%%?[~:\w]+%?|!\S+!/,r={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,o=/(?:\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:o,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:o,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:o,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:o,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(e)}pM.displayName="bbcode";pM.aliases=["shortcode"];function pM(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}hM.displayName="bbj";hM.aliases=[];function hM(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)}mM.displayName="bicep";mM.aliases=[];function mM(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}gM.displayName="birb";gM.aliases=[];function gM(e){e.register(jn),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"}})}bM.displayName="bison";bM.aliases=[];function bM(e){e.register(Hl),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:/%[%?]|[|:;\[\]<>]/}}})}yM.displayName="bnf";yM.aliases=["rbnf"];function yM(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}OM.displayName="bqn";OM.aliases=[];function OM(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:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}vM.displayName="brainfuck";vM.aliases=[];function vM(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}EM.displayName="brightscript";EM.aliases=[];function EM(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}SM.displayName="bro";SM.aliases=[];function SM(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:/[{}[\];(),.:]/}}TM.displayName="bsl";TM.aliases=["oscript"];function TM(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}wM.displayName="cfscript";wM.aliases=["cfc"];function wM(e){e.register(jn),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}kM.displayName="chaiscript";kM.aliases=[];function kM(e){e.register(jn),e.register(jp),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]+/}}})}xM.displayName="cil";xM.aliases=[];function xM(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]+/}}CM.displayName="cilkc";CM.aliases=["cilk-c"];function CM(e){e.register(Hl),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}AM.displayName="cilkcpp";AM.aliases=["cilk","cilk-cpp"];function AM(e){e.register(jp),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}_M.displayName="clojure";_M.aliases=[];function _M(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:/[{}\[\](),]/}}RM.displayName="cmake";RM.aliases=[];function RM(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:/[()>}]|\$[<{]/}}IM.displayName="cobol";IM.aliases=[];function IM(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:/[.:,()]/}}DM.displayName="coffeescript";DM.aliases=["coffee"];function DM(e){e.register(To),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)}NM.displayName="concurnas";NM.aliases=["conc"];function NM(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}PM.displayName="csp";PM.aliases=[];function PM(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)}LM.displayName="cooklang";LM.aliases=[];function LM(e){(function(t){var n=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,r=/[^{}@#]+/.source,i=/\{[^}#@]*\}/.source,o=r+i,a=/(?:h|hours|hrs|m|min|minutes)/.source,s={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("#(?:"+o+"|"+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("@(?:"+o+"|"+n+")"),inside:{ingredient:{pattern:new RegExp("(^@)(?:"+r+")"),lookbehind:!0,alias:"variable"},"ingredient-keyword":{pattern:/^@/,alias:"keyword"},"amount-group":s}},"timer-group":{pattern:/~(?!\s)[^@#~{}]*\{[^{}]*\}/,inside:{timer:{pattern:/(^~)[^{]+/,lookbehind:!0,alias:"variable"},"duration-group":{pattern:/\{[^{}]*\}/,inside:{punctuation:/[{}]/,unit:{pattern:new RegExp(/(%\s*)/.source+a+/\b/.source),lookbehind:!0,alias:"symbol"},operator:/%/,duration:{pattern:/\d+/,alias:"number"}}},"timer-keyword":{pattern:/^~/,alias:"keyword"}}}}})(e)}MM.displayName="coq";MM.aliases=[];function MM(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)}$M.displayName="crystal";$M.aliases=[];function $M(e){e.register(Wp),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)}FM.displayName="css-extras";FM.aliases=[];function FM(e){e.register(ff),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},o={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:o,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:o})}(e)}BM.displayName="csv";BM.aliases=[];function BM(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}UM.displayName="cue";UM.aliases=[];function UM(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)}jM.displayName="cypher";jM.aliases=[];function jM(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:/[()[\]{},;.]/}}zM.displayName="d";zM.aliases=[];function zM(e){e.register(jn),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"}})}VM.displayName="dart";VM.aliases=[];function VM(e){e.register(jn),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)}HM.displayName="dataweave";HM.aliases=[];function HM(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)}WM.displayName="dax";WM.aliases=[];function WM(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:/[;\[\](){}`,.]/}}QM.displayName="dhall";QM.aliases=[];function QM(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}YM.displayName="django";YM.aliases=["jinja2"];function YM(e){e.register(wo),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)}GM.displayName="dns-zone-file";GM.aliases=["dns-zone"];function GM(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"]}qM.displayName="docker";qM.aliases=["dockerfile"];function qM(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,o=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return i}),a={pattern:RegExp(i),greedy:!0},s={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function l(u,c){return u=u.replace(//g,function(){return o}).replace(//g,function(){return r}),RegExp(u,c)}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:[a,{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:s,string:a,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:s},t.languages.dockerfile=t.languages.docker})(e)}ZM.displayName="dot";ZM.aliases=["gv"];function ZM(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(o,a){return RegExp(o.replace(//g,function(){return n}),a)}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)}XM.displayName="ebnf";XM.aliases=[];function XM(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:/[-=|*/!]/}}KM.displayName="editorconfig";KM.aliases=[];function KM(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:/^=/}}}}JM.displayName="eiffel";JM.aliases=[];function JM(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:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}e4.displayName="ejs";e4.aliases=["eta"];function e4(e){e.register(To),e.register(wo),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)}t4.displayName="elixir";t4.aliases=[];function t4(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}}}})}n4.displayName="elm";n4.aliases=[];function n4(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:/[{}[\]|(),.:]/}}r4.displayName="etlua";r4.aliases=[];function r4(e){e.register(PO),e.register(wo),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)}i4.displayName="erb";i4.aliases=[];function i4(e){e.register(wo),e.register(Wp),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)}o4.displayName="erlang";o4.aliases=[];function o4(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:/[()[\]{}:;,.#|]|<<|>>/}}a4.displayName="excel-formula";a4.aliases=["xls","xlsx"];function a4(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"]}s4.displayName="fsharp";s4.aliases=[];function s4(e){e.register(jn),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}})}l4.displayName="factor";l4.aliases=[];function l4(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}},o=function(u){return(u+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},a=function(u){return new RegExp("(^|\\s)(?:"+u.map(o).join("|")+")(?=\\s|$)")},s={"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(s).forEach(function(u){i[u].pattern=a(s[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=a(l),t.languages.factor=i})(e)}u4.displayName="false";u4.aliases=[];function u4(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:/,/}}})}d4.displayName="flow";d4.aliases=[];function d4(e){e.register(To),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)}f4.displayName="fortran";f4.aliases=[];function f4(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:/\(\/|\/\)|[(),;:&]/}}p4.displayName="ftl";p4.aliases=[];function p4(e){e.register(wo),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(o){var a=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return n}),"gi");t.languages["markup-templating"].buildPlaceholders(o,"ftl",a)}),t.hooks.add("after-tokenize",function(o){t.languages["markup-templating"].tokenizePlaceholders(o,"ftl")})}(e)}h4.displayName="gml";h4.aliases=["gamemakerlanguage"];function h4(e){e.register(jn),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/})}m4.displayName="gap";m4.aliases=[];function m4(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}g4.displayName="gcode";g4.aliases=[];function g4(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:/[:*]/}}b4.displayName="gdscript";b4.aliases=[];function b4(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:/[.:,;()[\]{}]/}}y4.displayName="gedcom";y4.aliases=[];function y4(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"}}}O4.displayName="gettext";O4.aliases=["po"];function O4(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}v4.displayName="gherkin";v4.aliases=[];function v4(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)}E4.displayName="git";E4.aliases=[];function E4(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}}S4.displayName="glsl";S4.aliases=[];function S4(e){e.register(Hl),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/})}T4.displayName="gn";T4.aliases=["gni"];function T4(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}w4.displayName="linker-script";w4.aliases=["ld"];function w4(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"]}k4.displayName="go-module";k4.aliases=["go-mod"];function k4(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:/[()[\],]/}}x4.displayName="gradle";x4.aliases=[];function x4(e){e.register(jn),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)}C4.displayName="graphql";C4.aliases=[];function C4(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(O){return typeof O!="string"&&O.type!=="comment"&&O.type!=="scalar"}),i=0;function o(O){return r[i+O]}function a(O,y){y=y||0;for(var v=0;v0)){var h=s(/^\{$/,/^\}$/);if(h===-1)continue;for(var m=i;m=0&&l(b,"variable-input")}}}}})}A4.displayName="groovy";A4.aliases=[];function A4(e){e.register(jn),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)}_4.displayName="textile";_4.aliases=[];function _4(e){e.register(ro),function(t){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,r=/\)|\((?![^|()\n]+\))/.source;function i(d,p){return RegExp(d.replace(//g,function(){return"(?:"+n+")"}).replace(//g,function(){return"(?:"+r+")"}),p||"")}var o={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/},a=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:o},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)+/.source),lookbehind:!0,inside:o},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:o},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:o},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:o},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:o},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:/[()]/}}}}}),s=a.phrase.inside,l={inline:s.inline,link:s.link,image:s.image,footnote:s.footnote,acronym:s.acronym,mark:s.mark};a.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var u=s.inline.inside;u.bold.inside=l,u.italic.inside=l,u.inserted.inside=l,u.deleted.inside=l,u.span.inside=l;var c=s.table.inside;c.inline=l.inline,c.link=l.link,c.image=l.image,c.footnote=l.footnote,c.acronym=l.acronym,c.mark=l.mark}(e)}R4.displayName="haml";R4.aliases=[];function R4(e){e.register(Wp),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={},o=0,a=r.length;o@\[\\\]^`{|}~]/,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)}BO.displayName="haskell";BO.aliases=["hs"];function BO(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}D4.displayName="haxe";D4.aliases=[];function D4(e){e.register(jn),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"}})}N4.displayName="hcl";N4.aliases=[];function N4(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:/[=\[\]{}]/}}P4.displayName="hlsl";P4.aliases=[];function P4(e){e.register(Hl),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/})}L4.displayName="hoon";L4.aliases=[];function L4(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:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}M4.displayName="hpkp";M4.aliases=[];function M4(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}$4.displayName="hsts";$4.aliases=[];function $4(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}F4.displayName="uri";F4.aliases=["url"];function F4(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}B4.displayName="http";B4.aliases=[];function B4(e){(function(t){function n(c){return RegExp("(^(?:"+c+"):[ ]*(?![ ]))[^]+","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},o={"application/json":!0,"application/xml":!0};function a(c){var d=c.replace(/^[a-z]+\//,""),p="\\w+/(?:[\\w.-]+\\+)+"+d+"(?![+\\w.-])";return"(?:"+c+"|"+p+")"}var s;for(var l in i)if(i[l]){s=s||{};var u=o[l]?a(l):l;s[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]}}s&&t.languages.insertBefore("http","header",s)})(e)}U4.displayName="ichigojam";U4.aliases=[];function U4(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:/[\[,;:()\]]/}}j4.displayName="icon";j4.aliases=[];function j4(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:/[\[\](){},;]/}}z4.displayName="icu-message-format";z4.aliases=[];function z4(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"},o={pattern:r,greedy:!0,inside:{escape:i}},a=n(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return r.source}),8),s={pattern:RegExp(a),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};t.languages["icu-message-format"]={argument:{pattern:RegExp(a),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":s,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":s,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:o},s.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)}V4.displayName="idris";V4.aliases=["idr"];function V4(e){e.register(BO),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}H4.displayName="ignore";H4.aliases=["gitignore","hgignore","npmignore"];function H4(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)}W4.displayName="inform7";W4.aliases=[];function W4(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"}}Q4.displayName="io";Q4.aliases=[];function Q4(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:/[()]/}}n0.displayName="javadoclike";n0.aliases=[];function n0(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(o,a){var s="doc-comment",l=t.languages[o];if(l){var u=l[s];if(!u){var c={};c[s]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},l=t.languages.insertBefore(o,"comment",c),u=l[s]}if(u instanceof RegExp&&(u=l[s]={pattern:u}),Array.isArray(u))for(var d=0,p=u.length;d|\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}q4.displayName="javadoc";q4.aliases=[];function q4(e){e.register(Vp),e.register(n0),e.register(ro),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)}Z4.displayName="javastacktrace";Z4.aliases=[];function Z4(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/}}}}X4.displayName="jexl";X4.aliases=[];function X4(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:/[{}[\](),.]/}}K4.displayName="jolie";K4.aliases=[];function K4(e){e.register(jn),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]*:)/}})}J4.displayName="jq";J4.aliases=[];function J4(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:/^\\\(|\)$/}}},o=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=o})(e)}e5.displayName="js-templates";e5.aliases=[];function e5(e){e.register(To),function(t){var n=t.languages.javascript["template-string"],r=n.pattern.source,i=n.inside.interpolation,o=i.inside["interpolation-punctuation"],a=i.pattern.source;function s(m,b){if(t.languages[m])return{pattern:RegExp("((?:"+b+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:m}}}}t.languages.javascript["template-string"]=[s("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),s("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),s("svg",/\bsvg/.source),s("markdown",/\b(?:markdown|md)/.source),s("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),s("sql",/\bsql/.source),n].filter(Boolean);function l(m,b){return"___"+b.toUpperCase()+"_"+m+"___"}function u(m,b,O){var y={code:m,grammar:b,language:O};return t.hooks.run("before-tokenize",y),y.tokens=t.tokenize(y.code,y.grammar),t.hooks.run("after-tokenize",y),y.tokens}function c(m){var b={};b["interpolation-punctuation"]=o;var O=t.tokenize(m,b);if(O.length===3){var y=[1,1];y.push.apply(y,u(O[1],t.languages.javascript,"javascript")),O.splice.apply(O,y)}return new t.Token("interpolation",O,i.alias,m)}function d(m,b,O){var y=t.tokenize(m,{interpolation:{pattern:RegExp(a),lookbehind:!0}}),v=0,S={},k=y.map(function($){if(typeof $=="string")return $;for(var P=$.content,R;m.indexOf(R=l(v++,O))!==-1;);return S[R]=P,R}).join(""),C=u(k,b,O),w=Object.keys(S);v=0;function E($){for(var P=0;P<$.length;P++){if(v>=w.length)return;var R=$[P];if(typeof R=="string"||typeof R.content=="string"){var B=w[v],U=typeof R=="string"?R:R.content,V=U.indexOf(B);if(V!==-1){++v;var z=U.substring(0,V),W=c(S[B]),X=U.substring(V+B.length),q=[];if(z&&q.push(z),q.push(W),X){var Y=[X];E(Y),q.push.apply(q,Y)}typeof R=="string"?($.splice.apply($,[P,1].concat(q)),P+=q.length-1):R.content=q}}else{var Z=R.content;Array.isArray(Z)?E(Z):E([Z])}}}return E(C),new t.Token(O,C,"language-"+O,m)}var p={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};t.hooks.add("after-tokenize",function(m){if(!(m.language in p))return;function b(O){for(var y=0,v=O.length;y\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)}n5.displayName="n4js";n5.aliases=["n4jsd"];function n5(e){e.register(To),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}r5.displayName="js-extras";r5.aliases=[];function r5(e){e.register(To),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:/:/}}}}}}s5.displayName="julia";s5.aliases=[];function s5(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|[πℯ]/}}l5.displayName="keepalived";l5.aliases=[];function l5(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:/[\{\}]/}}u5.displayName="keyman";u5.aliases=[];function u5(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:/[()=,]/}}c5.displayName="kumir";c5.aliases=["kum"];function c5(e){(function(t){var n=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function r(i,o){return RegExp(i.replace(//g,n),o)}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)}d5.displayName="kusto";d5.aliases=[];function d5(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:/[()\[\]{},;.:]/}}f5.displayName="latex";f5.aliases=["context","tex"];function f5(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)}p5.displayName="latte";p5.aliases=[];function p5(e){e.register(jn),e.register(wo),e.register(Hp),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)}UO.displayName="scheme";UO.aliases=[];function UO(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(o){return"(?:"+r[o].trim()+")"});return r[i]}})(e)}h5.displayName="lilypond";h5.aliases=["ly"];function h5(e){e.register(UO),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 o=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/};o["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=o,t.languages.ly=o}(e)}m5.displayName="liquid";m5.aliases=[];function m5(e){e.register(wo),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 o=/^\{%-?\s*(\w+)/.exec(i);if(o){var a=o[1];if(a==="raw"&&!r)return r=!0,!0;if(a==="endraw")return r=!1,!0}return!r})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}g5.displayName="lisp";g5.aliases=["elisp","emacs","emacs-lisp"];function g5(e){(function(t){function n(m){return RegExp(/(\()/.source+"(?:"+m+")"+/(?=[\s\)])/.source)}function r(m){return RegExp(/([\s([])/.source+"(?:"+m+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,o="&"+i,a="(\\()",s="(?=\\))",l="(?=\\s)",u=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,c={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(a+"(?: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(a+"(?: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(a+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(a+/(?: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(a+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(a+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},d={"lisp-marker":RegExp(o),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+u+/\)/.source),inside:c},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:c},p="\\S+(?:\\s+\\S+)*",h={pattern:RegExp(a+u+s),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+p),inside:d},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+p),inside:d},keys:{pattern:RegExp("&key\\s+"+p+"(?:\\s+&allow-other-keys)?"),inside:d},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};c.lambda.inside.arguments=h,c.defun.inside.arguments=t.util.clone(h),c.defun.inside.arguments.inside.sublist=h,t.languages.lisp=c,t.languages.elisp=c,t.languages.emacs=c,t.languages["emacs-lisp"]=c})(e)}b5.displayName="livescript";b5.aliases=[];function b5(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}y5.displayName="llvm";y5.aliases=[];function y5(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)}O5.displayName="log";O5.aliases=[];function O5(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:/[\[\].,]/}}v5.displayName="lolcode";v5.aliases=[];function v5(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}|…|,|!/}}E5.displayName="magma";E5.aliases=[];function E5(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:/[()[\]{}<>,;.:]/}}Zx.displayName="mata";Zx.aliases=[];function Zx(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)}S5.displayName="matlab";S5.aliases=[];function S5(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}|[.,;\[\](){}!]/}}T5.displayName="maxscript";T5.aliases=[];function T5(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)}w5.displayName="mel";w5.aliases=[];function w5(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}k5.displayName="mermaid";k5.aliases=[];function k5(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:/[(){};]/}}x5.displayName="metafont";x5.aliases=[];function x5(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}}}C5.displayName="mizar";C5.aliases=[];function C5(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:/\(#|#\)|[,:;\[\](){}]/}}A5.displayName="mongodb";A5.aliases=[];function A5(e){e.register(To),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(o){return o.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)}_5.displayName="monkey";_5.aliases=[];function _5(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:/[.,:;()\[\]]/}}R5.displayName="moonscript";R5.aliases=["moon"];function R5(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}I5.displayName="n1ql";I5.aliases=[];function I5(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:/[;[\](),.{}:]/}}D5.displayName="nand2tetris-hdl";D5.aliases=[];function D5(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:/[{}[\];(),:]/}}N5.displayName="naniscript";N5.aliases=["nani"];function N5(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(a){var s=a.tokens;s.forEach(function(l){if(typeof l!="string"&&l.type==="generic-text"){var u=o(l);i(u)||(l.type="bad-line",l.content=u)}})});function i(a){for(var s="[]{}",l=[],u=0;u=&|$!]/}}L5.displayName="neon";L5.aliases=[];function L5(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:/[,:=[\]{}()-]/}}M5.displayName="nevod";M5.aliases=[];function M5(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\-.]+/}}$5.displayName="nginx";$5.aliases=[];function $5(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)}F5.displayName="nim";F5.aliases=[];function F5(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:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}B5.displayName="nix";B5.aliases=[];function B5(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}U5.displayName="nsis";U5.aliases=[];function U5(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}}}j5.displayName="ocaml";j5.aliases=[];function j5(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/}}z5.displayName="odin";z5.aliases=[];function z5(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)}V5.displayName="opencl";V5.aliases=[];function V5(e){e.register(Hl),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)}H5.displayName="openqasm";H5.aliases=["qasm"];function H5(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}W5.displayName="oz";W5.aliases=[];function W5(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:/[\[\](){}.:;?]/}}Q5.displayName="parigp";Q5.aliases=[];function Q5(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:/[\[\]{}().,:;|]/}}Y5.displayName="parser";Y5.aliases=[];function Y5(e){e.register(ro),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)}G5.displayName="pascal";G5.aliases=["objectpascal"];function G5(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}q5.displayName="pascaligo";q5.aliases=[];function q5(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:/\(\.|\.\)|[()\[\]:;,.{}]/},o=["comment","keyword","builtin","operator","punctuation"].reduce(function(a,s){return a[s]=i[s],a},{});i["class-name"].forEach(function(a){a.inside=o})})(e)}Z5.displayName="psl";Z5.aliases=[];function Z5(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:/[(){}\[\];,]/}}X5.displayName="pcaxis";X5.aliases=["px"];function X5(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}K5.displayName="peoplecode";K5.aliases=["pcode"];function K5(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}J5.displayName="phpdoc";J5.aliases=[];function J5(e){e.register(n0),e.register(Hp),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)}e$.displayName="php-extras";e$.aliases=[];function e$(e){e.register(Hp),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:/::|\\/}}})}t$.displayName="plant-uml";t$.aliases=["plantuml"];function t$(e){(function(t){var n=/\$\w+|%[a-z]+%/,r=/\[[^[\]]*\]/.source,i=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,o="(?:-+"+i+"-+|\\.+"+i+"\\.+|-+(?:"+r+"-*)?|"+r+"-+|\\.+(?:"+r+"\\.*)?|"+r+"\\.+)",a=/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source,s=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,l=/[[?]?[ox]?/.source,u=/[ox]?[\]?]?/.source,c=l+"(?:"+o+s+"|"+a+o+"(?:"+s+")?)"+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+c+/(?![-.<>?|\\\]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)}n$.displayName="plsql";n$.aliases=[];function n$(e){e.register(Jg),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"}})}r$.displayName="powerquery";r$.aliases=["mscript","pq"];function r$(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}i$.displayName="powershell";i$.aliases=[];function i$(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)}o$.displayName="processing";o$.aliases=[];function o$(e){e.register(jn),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"}})}a$.displayName="prolog";a$.aliases=[];function a$(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:/[(){}\[\],]/}}s$.displayName="promql";s$.aliases=[];function s$(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"],o=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(?:"+o.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)}l$.displayName="properties";l$.aliases=[];function l$(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:/[=:]/}}u$.displayName="protobuf";u$.aliases=[];function u$(e){e.register(jn),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)}c$.displayName="stylus";c$.aliases=[];function c$(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)}d$.displayName="twig";d$.aliases=[];function d$(e){e.register(wo),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")})}f$.displayName="pug";f$.aliases=[];function f$(e){e.register(To),e.register(ro),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={},o=0,a=r.length;o",function(){return s.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[s.language,"language-"+s.language],inside:t.languages[s.language]}}})}t.languages.insertBefore("pug","filter",i)}(e)}p$.displayName="puppet";p$.aliases=[];function p$(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)}h$.displayName="pure";h$.aliases=[];function h$(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 o=i;if(typeof i!="string"&&(o=i.alias,i=i.lang),t.languages[o]){var a={};a["inline-lang-"+o]={pattern:RegExp(r.replace("",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:t.util.clone(t.languages.pure["inline-lang"].inside)},a["inline-lang-"+o].inside.rest=t.util.clone(t.languages[o]),t.languages.insertBefore("pure","inline-lang",a)}}),t.languages.c&&(t.languages.pure["inline-lang"].inside.rest=t.util.clone(t.languages.c))})(e)}m$.displayName="purebasic";m$.aliases=["pbfasm"];function m$(e){e.register(jn),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}g$.displayName="purescript";g$.aliases=["purs"];function g$(e){e.register(BO),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}b$.displayName="qsharp";b$.aliases=["qs"];function b$(e){e.register(jn),function(t){function n(h,m){return h.replace(/<<(\d+)>>/g,function(b,O){return"(?:"+m[+O]+")"})}function r(h,m,b){return RegExp(n(h,m),b||"")}function i(h,m){for(var b=0;b>/g,function(){return"(?:"+h+")"});return h.replace(/<>/g,"[^\\s\\S]")}var o={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 a(h){return"\\b(?:"+h.trim().replace(/ /g,"|")+")\\b"}var s=RegExp(a(o.type+" "+o.other)),l=/\b[A-Za-z_]\w*\b/.source,u=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[l]),c={keyword:s,punctuation:/[<>()?,.:[\]]/},d=/"(?:\\.|[^\\"])*"/.source;t.languages.qsharp=t.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[d]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[u]),lookbehind:!0,inside:c},{pattern:r(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[u]),lookbehind:!0,inside:c}],keyword:s,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,[d]),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}y$.displayName="q";y$.aliases=[];function y$(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:/[(){}\[\];.]/}}O$.displayName="qml";O$.aliases=[];function O$(e){e.register(To),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}),o=0;o<2;o++)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)}v$.displayName="qore";v$.aliases=[];function v$(e){e.register(jn),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/})}E$.displayName="racket";E$.aliases=["rkt"];function E$(e){e.register(UO),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}S$.displayName="cshtml";S$.aliases=["razor"];function S$(e){e.register(zp),e.register(ro),function(t){var n=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,r=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function i(v,S){for(var k=0;k/g,function(){return"(?:"+v+")"});return v.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+r+")").replace(//g,"(?:"+n+")")}var o=i(/\((?:[^()'"@/]|||)*\)/.source,2),a=i(/\[(?:[^\[\]'"@/]|||)*\]/.source,1),s=i(/\{(?:[^{}'"@/]|||)*\}/.source,2),l=i(/<(?:[^<>'"@/]||)*>/.source,1),u=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+o+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+l+")?"+o+"|"+a+")*"+/(?![?!\.(\[]|<(?!\/))/.source,c=/@(?![\w()])/.source+"|"+u,d="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+`|["'][^"'@]*(?:(?:`+c+`)[^"'@]*)+["'])`,p=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*|(?=[\s/>])))+)?/.source.replace(//,d),h=/(?!\d)[^\s>\/=$<%]+/.source+p+/\s*\/?>/.source,m=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+h+"|"+i(/<\1/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+h+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/*\.{3}(?:[^{}]|)*\})/.source;function a(u,c){return u=u.replace(//g,function(){return r}).replace(//g,function(){return i}).replace(//g,function(){return o}),RegExp(u,c)}o=a(o).source,t.languages.jsx=t.languages.extend("markup",n),t.languages.jsx.tag.pattern=a(/<\/?(?:[\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:a(//.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:a(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var s=function(u){return u?typeof u=="string"?u:typeof u.content=="string"?u.content:u.content.map(s).join(""):""},l=function(u){for(var c=[],d=0;d0&&c[c.length-1].tagName===s(p.content[0].content[1])&&c.pop():p.content[p.content.length-1].content==="/>"||c.push({tagName:s(p.content[0].content[1]),openedBraces:0}):c.length>0&&p.type==="punctuation"&&p.content==="{"?c[c.length-1].openedBraces++:c.length>0&&c[c.length-1].openedBraces>0&&p.type==="punctuation"&&p.content==="}"?c[c.length-1].openedBraces--:h=!0),(h||typeof p=="string")&&c.length>0&&c[c.length-1].openedBraces===0){var m=s(p);d0&&(typeof u[d-1]=="string"||u[d-1].type==="plain-text")&&(m=s(u[d-1])+m,u.splice(d-1,1),d--),u[d]=new t.Token("plain-text",m,null,m)}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)}T$.displayName="tsx";T$.aliases=[];function T$(e){e.register(Xx),e.register(e0),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)}w$.displayName="reason";w$.aliases=[];function w$(e){e.register(jn),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}k$.displayName="rego";k$.aliases=[];function k$(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:/[,;.\[\]{}()]/}}x$.displayName="renpy";x$.aliases=["rpy"];function x$(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}C$.displayName="rescript";C$.aliases=["res"];function C$(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}A$.displayName="rest";A$.aliases=[];function A$(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}}}_$.displayName="rip";_$.aliases=[];function _$(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`'",.:;#\/\\()<>\[\]{}]*/}}R$.displayName="roboconf";R$.aliases=[];function R$(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:/[{},.;:=]/}}I$.displayName="robotframework";I$.aliases=["robot"];function I$(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 c={};c["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var d in u)c[d]=u[d];return c.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},c.variable=r,c.comment=n,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return l}),"im"),alias:"section",inside:c}}var o={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},a={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:r}},s={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":a,documentation:o,property:s}),keywords:i("Keywords",{"keyword-name":a,documentation:o,property:s}),tasks:i("Tasks",{"task-name":a,documentation:o,property:s}),comment:n},t.languages.robot=t.languages.robotframework})(e)}D$.displayName="sas";D$.aliases=[];function D$(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"},o={pattern:/&[a-z_]\w*/i},a={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"},s={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},c=/[$%@.(){}\[\];,\\]/,d={pattern:/%?\b\w+(?=\()/,alias:"keyword"},p={function:d,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":o,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:r,"numeric-constant":i,punctuation:c,string:u},h={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},m={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},b={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"},O={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},y=/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,v={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return y}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return y}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:l,function:d,"arg-value":p["arg-value"],operator:p.operator,argument:p.arg,number:r,"numeric-constant":i,punctuation:c,string:u}},S={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":b,"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:c,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:S,"submit-statement":O,"global-statements":b,number:r,"numeric-constant":i,punctuation:c,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:S,"submit-statement":O,"global-statements":b,number:r,"numeric-constant":i,punctuation:c,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":v,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:p},step:s,keyword:S,function:d,format:h,altformat:m,"global-statements":b,number:r,"numeric-constant":i,punctuation:c,string:u}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,inside:p},"macro-keyword":a,"macro-variable":o,"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":a,"macro-variable":o,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:c}},"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":v,comment:l,function:d,format:h,altformat:m,"numeric-constant":i,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:u,step:s,keyword:S,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:r,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:c}})(e)}N$.displayName="shell-session";N$.aliases=["sh-session","shellsession"];function N$(e){e.register(NO),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)}P$.displayName="smali";P$.aliases=[];function P$(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:/[{}(),;:]/}}L$.displayName="smalltalk";L$.aliases=[];function L$(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:/[.;:?\[\](){}]/}}M$.displayName="smarty";M$.aliases=[];function M$(e){e.register(wo),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 o="{literal}",a="{/literal}",s=!1;t.languages["markup-templating"].buildPlaceholders(i,"smarty",r,function(l){return l===a&&(s=!1),s?!1:(l===o&&(s=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"smarty")})}(e)}$$.displayName="sml";$$.aliases=["smlnj"];function $$(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)}F$.displayName="solidity";F$.aliases=["sol"];function F$(e){e.register(jn),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}B$.displayName="solution-file";B$.aliases=["sln"];function B$(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)}U$.displayName="soy";U$.aliases=[];function U$(e){e.register(wo),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 o=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,a="{literal}",s="{/literal}",l=!1;t.languages["markup-templating"].buildPlaceholders(i,"soy",o,function(u){return u===s&&(l=!1),l?!1:(u===a&&(l=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"soy")})}(e)}Kx.displayName="turtle";Kx.aliases=["trig"];function Kx(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}j$.displayName="sparql";j$.aliases=["rq"];function j$(e){e.register(Kx),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}z$.displayName="splunk-spl";z$.aliases=[];function z$(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:/[()[\],]/}}V$.displayName="sqf";V$.aliases=[];function V$(e){e.register(jn),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"]}H$.displayName="squirrel";H$.aliases=[];function H$(e){e.register(jn),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"}})}W$.displayName="stan";W$.aliases=[];function W$(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)}Q$.displayName="stata";Q$.aliases=[];function Q$(e){e.register(Vp),e.register(Zx),e.register(MO),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}Y$.displayName="iecst";Y$.aliases=[];function Y$(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:/[()[\].,;]/}}G$.displayName="supercollider";G$.aliases=["sclang"];function G$(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}q$.displayName="systemd";q$.aliases=[];function q$(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)}jO.displayName="t4-templating";jO.aliases=[];function jO(e){(function(t){function n(i,o,a){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:o,alias:a}}}}function r(i){var o=t.languages[i],a="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("=",o,a),"class-feature":n("\\+",o,a),standard:n("",o,a)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:r})})(e)}Z$.displayName="t4-cs";Z$.aliases=["t4"];function Z$(e){e.register(zp),e.register(jO),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}X$.displayName="t4-vb";X$.aliases=[];function X$(e){e.register(jO),e.register(FO),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}K$.displayName="tap";K$.aliases=[];function K$(e){e.register(LO),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"}}}J$.displayName="tcl";J$.aliases=[];function J$(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:/[{}()\[\]]/}}eF.displayName="tt2";eF.aliases=[];function eF(e){e.register(jn),e.register(wo),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)}tF.displayName="toml";tF.aliases=[];function tF(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)}nF.displayName="tremor";nF.aliases=["trickle","troy"];function nF(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)}rF.displayName="typoscript";rF.aliases=["tsconfig"];function rF(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)}iF.displayName="unrealscript";iF.aliases=["uc","uscript"];function iF(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}oF.displayName="uorazor";oF.aliases=[];function oF(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:/[()\[\]{}:.,]/}}aF.displayName="v";aF.aliases=[];function aF(e){e.register(jn),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)}sF.displayName="vala";sF.aliases=[];function sF(e){e.register(jn),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]+$/}}})}lF.displayName="velocity";lF.aliases=[];function lF(e){e.register(ro),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)}uF.displayName="verilog";uF.aliases=[];function uF(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:/[[\];(),.:]/}}cF.displayName="vhdl";cF.aliases=[];function cF(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:/[{}[\];(),.:]/}}dF.displayName="vim";dF.aliases=[];function dF(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:/[{}[\](),;:]/}}fF.displayName="visual-basic";fF.aliases=["vb","vba"];function fF(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"]}pF.displayName="warpscript";pF.aliases=[];function pF(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/}}hF.displayName="wasm";hF.aliases=[];function hF(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:/[()]/}}mF.displayName="web-idl";mF.aliases=["webidl"];function mF(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 o in t.languages["web-idl"])o!=="class-name"&&(i[o]=t.languages["web-idl"][o]);t.languages.webidl=t.languages["web-idl"]})(e)}gF.displayName="wgsl";gF.aliases=[];function gF(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:/[@(){}[\],;<>:.]/}}bF.displayName="wiki";bF.aliases=[];function bF(e){e.register(ro),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}}}})}yF.displayName="wolfram";yF.aliases=["mathematica","nb","wl"];function yF(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}OF.displayName="wren";OF.aliases=[];function OF(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]+/}}}vF.displayName="xeora";vF.aliases=["xeoracube"];function vF(e){e.register(ro),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)}EF.displayName="xml-doc";EF.aliases=[];function EF(e){e.register(ro),function(t){function n(a,s){t.languages[a]&&t.languages.insertBefore(a,"comment",{"doc-comment":s})}var r=t.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:r}},o={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:r}};n("csharp",i),n("fsharp",i),n("vbnet",o)}(e)}SF.displayName="xojo";SF.aliases=[];function SF(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:/[.,;:()]/}}TF.displayName="xquery";TF.aliases=[];function TF(e){e.register(ro),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 o=[],a=0;a0&&o[o.length-1].tagName===n(s.content[0].content[1])&&o.pop():s.content[s.content.length-1].content==="/>"||o.push({tagName:n(s.content[0].content[1]),openedBraces:0}):o.length>0&&s.type==="punctuation"&&s.content==="{"&&(!i[a+1]||i[a+1].type!=="punctuation"||i[a+1].content!=="{")&&(!i[a-1]||i[a-1].type!=="plain-text"||i[a-1].content!=="{")?o[o.length-1].openedBraces++:o.length>0&&o[o.length-1].openedBraces>0&&s.type==="punctuation"&&s.content==="}"?o[o.length-1].openedBraces--:s.type!=="comment"&&(l=!0)),(l||typeof s=="string")&&o.length>0&&o[o.length-1].openedBraces===0){var u=n(s);a0&&(typeof i[a-1]=="string"||i[a-1].type==="plain-text")&&(u=n(i[a-1])+u,i.splice(a-1,1),a--),/^\s+$/.test(u)?i[a]=u:i[a]=new t.Token("plain-text",u,null,u)}s.content&&typeof s.content!="string"&&r(s.content)}};t.hooks.add("after-tokenize",function(i){i.language==="xquery"&&r(i.tokens)})}(e)}wF.displayName="yang";wF.aliases=[];function wF(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:/[{};:]/}}kF.displayName="zig";kF.aliases=[];function kF(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",o=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,a=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,n(o)),s=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,n(i)),l="(?!\\s)(?:!?\\s*(?:"+a+"\\s*)*"+s+")+";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(o))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,n(l)).replace(//g,n(o))),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)}te.register(ro);te.register(ff);te.register(jn);te.register(Fx);te.register(To);te.register(zL);te.register(VL);te.register(HL);te.register(WL);te.register(QL);te.register(YL);te.register(GL);te.register(qL);te.register(Jg);te.register(ZL);te.register(XL);te.register(KL);te.register(JL);te.register(Hl);te.register(jp);te.register(Px);te.register(eM);te.register(tM);te.register(NO);te.register(LO);te.register(zx);te.register(nM);te.register(rM);te.register(zp);te.register(iM);te.register(oM);te.register(aM);te.register(sM);te.register(lM);te.register(uM);te.register(cM);te.register(dM);te.register($O);te.register(fM);te.register(pM);te.register(hM);te.register(mM);te.register(gM);te.register(bM);te.register(yM);te.register(OM);te.register(vM);te.register(EM);te.register(SM);te.register(TM);te.register(wM);te.register(kM);te.register(xM);te.register(CM);te.register(AM);te.register(_M);te.register(RM);te.register(IM);te.register(DM);te.register(NM);te.register(PM);te.register(LM);te.register(MM);te.register(Wp);te.register($M);te.register(FM);te.register(BM);te.register(UM);te.register(jM);te.register(zM);te.register(VM);te.register(HM);te.register(WM);te.register(QM);te.register(Lx);te.register(wo);te.register(YM);te.register(GM);te.register(qM);te.register(ZM);te.register(XM);te.register(KM);te.register(JM);te.register(e4);te.register(t4);te.register(n4);te.register(PO);te.register(r4);te.register(i4);te.register(o4);te.register(a4);te.register(s4);te.register(l4);te.register(u4);te.register(c4);te.register(d4);te.register(f4);te.register(p4);te.register(h4);te.register(m4);te.register(g4);te.register(b4);te.register(y4);te.register(O4);te.register(v4);te.register(E4);te.register(S4);te.register(T4);te.register(w4);te.register(Mx);te.register(k4);te.register(x4);te.register(C4);te.register(A4);te.register(Ux);te.register(Gx);te.register(_4);te.register(R4);te.register(I4);te.register(BO);te.register(D4);te.register(N4);te.register(P4);te.register(L4);te.register(M4);te.register($4);te.register(Kg);te.register(F4);te.register(B4);te.register(U4);te.register(j4);te.register(z4);te.register(V4);te.register(H4);te.register(W4);te.register($x);te.register(Q4);te.register(Y4);te.register(Vp);te.register(Hp);te.register(n0);te.register(G4);te.register(q4);te.register(Z4);te.register(X4);te.register(K4);te.register(J4);te.register(e5);te.register(e0);te.register(t5);te.register(n5);te.register(r5);te.register(i5);te.register(o5);te.register(a5);te.register(s5);te.register(l5);te.register(u5);te.register(Bx);te.register(c5);te.register(d5);te.register(f5);te.register(p5);te.register(UO);te.register(h5);te.register(m5);te.register(g5);te.register(b5);te.register(y5);te.register(O5);te.register(v5);te.register(E5);te.register(jx);te.register(Zx);te.register(S5);te.register(T5);te.register(w5);te.register(k5);te.register(x5);te.register(C5);te.register(A5);te.register(_5);te.register(R5);te.register(I5);te.register(D5);te.register(N5);te.register(P5);te.register(L5);te.register(M5);te.register($5);te.register(F5);te.register(B5);te.register(U5);te.register(Vx);te.register(j5);te.register(z5);te.register(V5);te.register(H5);te.register(W5);te.register(Q5);te.register(Y5);te.register(G5);te.register(q5);te.register(Z5);te.register(X5);te.register(K5);te.register(Hx);te.register(J5);te.register(e$);te.register(t$);te.register(n$);te.register(r$);te.register(i$);te.register(o$);te.register(a$);te.register(s$);te.register(l$);te.register(u$);te.register(c$);te.register(d$);te.register(f$);te.register(p$);te.register(h$);te.register(m$);te.register(g$);te.register(MO);te.register(b$);te.register(y$);te.register(O$);te.register(v$);te.register(Wx);te.register(E$);te.register(S$);te.register(Xx);te.register(T$);te.register(w$);te.register(k$);te.register(x$);te.register(C$);te.register(A$);te.register(_$);te.register(R$);te.register(I$);te.register(Qx);te.register(D$);te.register(Yx);te.register(N$);te.register(P$);te.register(L$);te.register(M$);te.register($$);te.register(F$);te.register(B$);te.register(U$);te.register(Kx);te.register(j$);te.register(z$);te.register(V$);te.register(H$);te.register(W$);te.register(Q$);te.register(Y$);te.register(G$);te.register(qx);te.register(q$);te.register(jO);te.register(Z$);te.register(FO);te.register(X$);te.register(K$);te.register(J$);te.register(eF);te.register(tF);te.register(nF);te.register(rF);te.register(iF);te.register(oF);te.register(aF);te.register(sF);te.register(lF);te.register(uF);te.register(cF);te.register(dF);te.register(fF);te.register(pF);te.register(hF);te.register(mF);te.register(gF);te.register(bF);te.register(yF);te.register(OF);te.register(vF);te.register(EF);te.register(SF);te.register(TF);te.register(wF);te.register(kF);function sD(){sD=function(i,o){return new n(i,void 0,o)};var e=RegExp.prototype,t=new WeakMap;function n(i,o,a){var s=new RegExp(i,o);return t.set(s,a||t.get(i)),gw(s,n.prototype)}function r(i,o){var a=t.get(o);return Object.keys(a).reduce(function(s,l){var u=a[l];if(typeof u=="number")s[l]=i[u];else{for(var c=0;i[u[c]]===void 0&&c+1]+)>/g,function(l,u){var c=a[u];return"$"+(Array.isArray(c)?c.join("$"):c)}))}if(typeof o=="function"){var s=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,s)),o.apply(this,l)})}return e[Symbol.replace].call(this,i,o)},sD.apply(this,arguments)}function gw(e,t){return gw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},gw(e,t)}function xV(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 UXe=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){Na(r,"element",n)};function n(r,i,o){var a,s;if(o&&o.tagName==="pre"&&r.tagName==="code"){var l=(r==null||(a=r.data)==null?void 0:a.meta)||(r==null||(s=r.properties)==null?void 0:s.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,c,d=function(C){for(var w,E=A2(C.properties.className);!(w=E()).done;){var $=w.value;if($.slice(0,9)==="language-")return $.slice(9).toLowerCase()}return null}(r);if(!d&&t.defaultLanguage&&r.properties.className.push("language-"+(d=t.defaultLanguage)),r.properties.className.push("code-highlight"),d)try{var p,h;h=(p=d)!=null&&p.includes("diff-")?d.split("-")[1]:d,u=e.highlight(em(r),h),o.properties.className=(o.properties.className||[]).concat("language-"+h)}catch(C){if(!t.ignoreMissing||!/Unknown language/.test(C.message))throw C;u=r}else u=r;u.children=(c=1,function C(w){return w.reduce(function(E,$){if($.type==="text"){var P=$.value,R=(P.match(/\n/g)||"").length;if(R===0)$.position={start:{line:c,column:1},end:{line:c,column:1}},E.push($);else for(var B,U=P.split(` +`),V=A2(U.entries());!(B=V()).done;){var z=B.value,W=z[0],X=z[1];E.push({type:"text",value:W===U.length-1?X:X+` +`,position:{start:{line:c+W,column:1},end:{line:c+W,column:1}}})}return c+=R,E}if(Object.prototype.hasOwnProperty.call($,"children")){var q=c;return $.children=C($.children),E.push($),$.position={start:{line:q,column:1},end:{line:c,column:1}},E}return E.push($),E},[])})(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 m,b=function(C){var w=/{([\d,-]+)}/,E=C.split(",").map(function(R){return R.trim()}).join();if(w.test(E)){var $=w.exec(E)[1],P=pXe($);return function(R){return P.includes(R+1)}}return function(){return!1}}(l),O=function(C){var w=sD(/showLineNumbers=(\d+)/i,{lines:1});if(w.test(C)){var E=w.exec(C);return Number(E.groups.lines)}return 1}(l),y=function(C){for(var w=new Array(C),E=0;E=$+1});P.children=R.children,!l.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||v.some(function(B){return l.toLowerCase().includes(B)})||(P.properties.line=[($+O).toString()],P.properties.className.push("line-number")),b($)&&P.properties.className.push("highlight-line"),(d==="diff"||(C=d)!=null&&C.includes("diff-"))&&em(P).substring(0,1)==="-"?P.properties.className.push("deleted"):(d==="diff"||(w=d)!=null&&w.includes("diff-"))&&em(P).substring(0,1)==="+"&&P.properties.className.push("inserted")},k=A2(y.entries());!(m=k()).done;)S();y.length>0&&em(y[y.length-1]).trim()===""&&y.pop(),r.children=y}}}},jXe=UXe(te),yS={},lD={};function zXe(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"]}}}),cD=zO(cie,{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"]}}}),dD=zO(cD,{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"]}}}),ZXe=zO(dD,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),DV={css1:uie,css2:cie,css3:cD,"selectors-3":cD,"selectors-4":dD,latest:dD,progressive:ZXe};function G0(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function XXe(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function q0(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var KXe={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},JXe={'"':!0,"'":!0},R2={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},eKe=6,I2="css-selector-parser parse error: ";function tKe(e){e===void 0&&(e={});var t=e.syntax,n=t===void 0?"latest":t,r=e.substitutes,i=e.strict,o=i===void 0?!0:i,a=typeof n=="object"?n:DV[n];a.baseSyntax&&(a=zO(DV[a.baseSyntax],a));var s=a.tag?[!0,!!YXe(a.tag).wildcard]:[!1,!1],l=s[0],u=s[1],c=!!a.ids,d=!!a.classNames,p=!!a.namespace,h=a.namespace&&(a.namespace===!0||a.namespace.wildcard===!0);if(p&&!l)throw new Error("".concat(I2,"Namespaces cannot be enabled while tags are disabled."));var m=!!r,b=a.combinators?CV(a.combinators):yS,O=a.attributes?[!0,a.attributes.operators?CV(a.attributes.operators):yS,a.attributes.caseSensitivityModifiers?VXe(a.attributes.caseSensitivityModifiers):lD,a.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,yS,lD,!1],y=O[0],v=O[1],S=O[2],k=O[3],C=k||Object.keys(S).length>0,w=a.pseudoClasses?[!0,a.pseudoClasses.definitions?_V(a.pseudoClasses.definitions):TE,a.pseudoClasses.unknown==="accept"]:[!1,TE,!1],E=w[0],$=w[1],P=w[2],R=a.pseudoElements?[!0,a.pseudoElements.notation==="singleColon"||a.pseudoElements.notation==="both",!a.pseudoElements.notation||a.pseudoElements.notation==="doubleColon"||a.pseudoElements.notation==="both",a.pseudoElements.definitions?_V(Array.isArray(a.pseudoElements.definitions)?{NoArgument:a.pseudoElements.definitions}:a.pseudoElements.definitions):TE,a.pseudoElements.unknown==="accept"]:[!1,!1,!1,TE,!1],B=R[0],U=R[1],V=R[2],z=R[3],W=R[4],X="",q=X.length,Y=0,Z="",j=function(de){return Z===de},se=function(){return j("*")||G0(Z)},ve=function(de){Y=de,Z=X.charAt(Y)},G=function(){Y++,Z=X.charAt(Y)},ce=function(){var de=Z;return Y++,Z=X.charAt(Y),de};function ge(de){var Oe=Math.min(q-1,Y),Te=new Error("".concat(I2).concat(de," Pos: ").concat(Oe,"."));throw Te.position=Oe,Te.name="ParserError",Te}function ue(de,Oe){if(!de)return ge(Oe)}var xe=function(){ue(Y=q},Ve=function(de){ue(Y=2&&ge("Identifiers cannot start with two hyphens with strict mode on."),p2[Z]&&ge("Identifiers cannot start with hyphens followed by digits.");Y=2&&ge("Identifiers cannot start with two hyphens with strict mode on."),R2[Z]&&ge("Identifiers cannot start with hyphens followed by digits.");Y0)return(t.commaSeparated?f3:h3)(e)}else return String(e)}const Q9e=[];function Y9e(e,t){return(t.properties.className||Q9e).includes(e.name)}function G9e(e,t){return t.properties.id===e.name}function q9e(e,t){return e.name===t.tagName}function Z9e(e,t){return function(n,r){let i=Bz(n,"tag");const o=Bz(r??"*","range"),a=[];let s=-1;for(;++s=Uz&&e.charCodeAt(t)<=eje;)u=u*10+(e.charCodeAt(t)-Uz),t++;return t===l?null:u}function s(){for(;to<=n;if(t===0)return o=>o===n;if(t===1)return n<0?jz.trueFunc:o=>o>=n;const r=Math.abs(t),i=(n%r+r)%r;return t>1?o=>o>=n&&o%r===i:o=>o<=n&&o%r===i}function zz(e){return rje(tje(e))}const ije=zz.default||zz,oje=k3("name",{handlers:{"any-link":aje,blank:sje,checked:lje,dir:uje,disabled:Cte,empty:cje,enabled:dje,"first-child":fje,"first-of-type":pje,has:hje,is:Ate,lang:gje,"last-child":bje,"last-of-type":yje,not:Oje,"nth-child":vje,"nth-last-child":Eje,"nth-last-of-type":Sje,"nth-of-type":Tje,"only-child":wje,"only-of-type":kje,optional:xje,"read-only":Cje,"read-write":_te,required:Rte,root:Aje,scope:_je},invalid:mje,unknown:Rje});function aje(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&Ap(t,"href")}function ju(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function sje(e,t){return!Ite(t,n);function n(r){return r.type==="element"||r.type==="text"&&!TJ(r)}}function lje(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&Ap(t,"checked")):t.tagName==="option"?Ap(t,"selected"):!1}function uje(e,t,n,r,i){return e.argument,e.argument.type,i.direction===e.argument.value}function Cte(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")&&Ap(t,"disabled")}function cje(e,t){return!Ite(t,n);function n(r){return r.type==="element"||r.type==="text"}}function dje(e,t){return!Cte(e,t)}function fje(e,t,n,r,i){return ju(i,e),i.elementIndex===0}function pje(e,t,n,r,i){return ju(i,e),i.typeIndex===0}function Ix(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=ije(n.a+"n+"+n.b),e._cachedFn=t}return t}function hje(e,t,n,r,i){e.argument,e.argument.type;const o={...i,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return O$(o,{type:"root",children:t.children}),o.results.length>0}function mje(){}function Ate(e,t,n,r,i){e.argument,e.argument.type;const o={...i,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return O$(o,t),o.results[0]===t}function gje(e,t,n,r,i){return e.argument,e.argument.type,i.language!==""&&i.language!==void 0&&X9e(i.language,i1(e.argument.value)).length>0}function bje(e,t,n,r,i){return ju(i,e),!!(i.elementCount&&i.elementIndex===i.elementCount-1)}function yje(e,t,n,r,i){return ju(i,e),typeof i.typeIndex=="number"&&typeof i.typeCount=="number"&&i.typeIndex===i.typeCount-1}function Oje(e,t,n,r,i){return!Ate(e,t,n,r,i)}function vje(e,t,n,r,i){const o=Ix(e);return ju(i,e),typeof i.elementIndex=="number"&&o(i.elementIndex)}function Eje(e,t,n,r,i){const o=Ix(e);return ju(i,e),!!(typeof i.elementCount=="number"&&typeof i.elementIndex=="number"&&o(i.elementCount-i.elementIndex-1))}function Sje(e,t,n,r,i){const o=Ix(e);return ju(i,e),typeof i.typeCount=="number"&&typeof i.typeIndex=="number"&&o(i.typeCount-1-i.typeIndex)}function Tje(e,t,n,r,i){const o=Ix(e);return ju(i,e),typeof i.typeIndex=="number"&&o(i.typeIndex)}function wje(e,t,n,r,i){return ju(i,e),i.elementCount===1}function kje(e,t,n,r,i){return ju(i,e),i.typeCount===1}function xje(e,t){return!Rte(e,t)}function Cje(e,t,n,r,i){return!_te(e,t,n,r,i)}function _te(e,t,n,r,i){return t.tagName==="input"||t.tagName==="textarea"?!Ap(t,"readOnly")&&!Ap(t,"disabled"):!!i.editableOrEditingHost}function Rte(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&Ap(t,"required")}function Aje(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 _je(e,t,n,r,i){return i.scopeElements.includes(t)}function Ite(e,t){const n=e.children;let r=-1;for(;++r"?"directChild":"descendant";g2(o,u,l)}else e.found=!0,e.results.includes(n)||e.results.push(n)}s.combinator===void 0?g2(o,"descendant",s):s.combinator==="~"&&g2(o,"generalSibling",s)}return o}function uS(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:Dje}function Vz(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 Dte(e,t,n,r,i,o){let a={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const s=V9e(e,n);if(n.type==="element"){let l=e.rootQuery.rules;i&&i!==o&&(l=e.rootQuery.rules.filter(u=>u.combinator===void 0||u.combinator===">"&&i===o)),a=Pje(e,uS(t,l),n,r,i)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&Nje(e,a,n,o),s(),a}function Lje(e,t,n){const r=Mje(e,t,n);return O$(r,t||void 0),r.results}function Mje(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:B9e(e),schema:n==="svg"?Fu:Mp,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const Nte=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=Nte(n.children))}),t),$je=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const i=Lje(t,r);i&&i.length>0&&Da(r,i,(o,a,s)=>{n(o,a,s)});return}Da(r,(i,o,a)=>{n(i,o,a)})}}},Fje=$je,Bje=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),Uje=(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]}},Pte=(e=[],t,n,r)=>{let i=t;for(;i/,"$2")||"")?void 0:r?Pte(e,i,"pre",r)?void 0:(o.value=(o.value||"").replace(/^(\n|\s)+/,""),o):(o.value=(o.value||"").replace(/^(\n|\s)+/,""),o)}},Hz=({value:e=""})=>{const t=Bje(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},Wz=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},jje=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{Da(r,"element",(i,o,a)=>{if(n&&i.tagName==="pre"&&i&&Array.isArray(i.children)&&a&&Array.isArray(a.children)&&a.children.length>1){const s=i.children[0];if(s&&s.tagName==="code"&&typeof o=="number"){const l=Uje(a.children,o);if(l){const u=Hz(l);Object.keys(u).length>0&&(i.properties={...i.properties,"data-type":"rehyp"},s.properties=Wz(s.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)&&a&&Array.isArray(a.children)&&typeof o=="number"){const s=Pte(a.children,o,"",n);if(s){const l=Hz(s);Object.keys(l).length>0&&(i.properties=Wz(i.properties,l,t))}}})}},zje=jje;var Vje=function(t){return n=>{Da(n,r=>{r.type==="element"&&r.tagName==="code"&&r.data&&r.data.meta&&(r.properties=L({},r.properties,{"data-meta":String(r.data.meta)}))})}},Hje=function(t){return n=>{Da(n,r=>{r.type==="element"&&r.tagName==="code"&&r.properties&&r.properties.dataMeta&&(r.data||(r.data={}),r.data.meta=r.properties.dataMeta,delete r.properties.dataMeta)})}};const Wje=/[\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,Qje=Object.hasOwnProperty;class Yje{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let i=Gje(t,n===!0);const o=i;for(;Qje.call(r.occurrences,i);)r.occurrences[o]++,i=o+"-"+r.occurrences[o];return r.occurrences[i]=0,i}reset(){this.occurrences=Object.create(null)}}function Gje(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(Wje,"").replace(/ /g,"-"))}function Lte(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 qje={},Qz=new Yje;function Zje(e){const n=(e||qje).prefix||"";return function(r){Qz.reset(),Da(r,"element",function(i){Lte(i)&&!i.properties.id&&(i.properties.id=n+Qz.slug(Xh(i)))})}}const Mte=function(e){if(e==null)return Jje;if(typeof e=="string")return Kje(e);if(typeof e=="object")return Xje(e);if(typeof e=="function")return v$(e);throw new Error("Expected function, string, or array as `test`")};function Xje(e){const t=[];let n=-1;for(;++n{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{Da(r,(i,o,a)=>{if(i.type==="element"||i.type==="root"){let s=!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 s=!0,!1;if(u===n)return s=!1,!1}return!s})}})}},ize=rze;var oze={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 aze(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 sze=(e,t)=>(n,r,i)=>{if(n.type==="element"&&i&&i.type==="root"&&/h(1|2|3|4|5|6)/.test(n.tagName)){var o=n.children&&n.children[0];o&&o.properties&&o.properties.ariaHidden==="true"&&(o.properties=L({class:"anchor"},o.properties),o.children=[oze])}if(n.type==="element"&&n.tagName==="pre"&&!e){var a=Nte(n.children);n.children.push(aze(a))}t&&t(n,r===null?void 0:r,i===null?void 0:i)},lze=[Zje,nze,ize];const uze=Qt.forwardRef((e,t)=>{var n,r=[Vje,gte,Hje,[T9e,{ignoreMissing:!0}],...lze,[Fje,{rewrite:sze((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[zje,{properties:"attr"}],...e.rehypePlugins||[]];return P.jsx(VUe,L({},e,{rehypePlugins:r,ref:t}))});function qz(){const e=vP(),t=_c(Vk),[n,r]=I.useState("");return I.useEffect(()=>{var o,a;if(!t.doc)return;r(((a=(o=t.doc)==null?void 0:o.getRoot().content)==null?void 0:a.toString())||"");const i=t.doc.subscribe("$.content",()=>{var s;r((s=t.doc)==null?void 0:s.getRoot().content.toString())});return()=>{i(),r("")}},[t.doc]),t!=null&&t.doc?P.jsx(uze,{source:n,wrapperElement:{"data-color-mode":e}}):P.jsx(Dp,{sx:{marginX:"auto",mt:4}})}var Gg=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(){}},fg=typeof window>"u"||"Deno"in window;function Is(){}function cze(e,t){return typeof e=="function"?e(t):e}function LI(e){return typeof e=="number"&&e>=0&&e!==1/0}function Fte(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Zz(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==S$(a,t.options))return!1}else if(!u1(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof i<"u"&&i!==t.state.fetchStatus||o&&!o(t))}function Xz(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(_p(t.options.mutationKey)!==_p(o))return!1}else if(!u1(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function S$(e,t){return((t==null?void 0:t.queryKeyHashFn)||_p)(e)}function _p(e){return JSON.stringify(e,(t,n)=>MI(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function u1(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!u1(e[n],t[n])):!1}function Bte(e,t){if(e===t)return e;const n=Kz(e)&&Kz(t);if(n||MI(e)&&MI(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),a=o.length,s=n?[]:{};let l=0;for(let u=0;u"u")return!0;const n=t.prototype;return!(!Jz(n)||!n.hasOwnProperty("isPrototypeOf"))}function Jz(e){return Object.prototype.toString.call(e)==="[object Object]"}function dze(e){return new Promise(t=>{setTimeout(t,e)})}function $I(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Bte(e,t):t}function fze(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function pze(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var qf,od,wm,jV,hze=(jV=class extends Gg{constructor(){super();Xt(this,qf,void 0);Xt(this,od,void 0);Xt(this,wm,void 0);Bt(this,wm,t=>{if(!fg&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){ke(this,od)||this.setEventListener(ke(this,wm))}onUnsubscribe(){var t;this.hasListeners()||((t=ke(this,od))==null||t.call(this),Bt(this,od,void 0))}setEventListener(t){var n;Bt(this,wm,t),(n=ke(this,od))==null||n.call(this),Bt(this,od,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){ke(this,qf)!==t&&(Bt(this,qf,t),this.onFocus())}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){var t;return typeof ke(this,qf)=="boolean"?ke(this,qf):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},qf=new WeakMap,od=new WeakMap,wm=new WeakMap,jV),nw=new hze,km,ad,xm,zV,mze=(zV=class extends Gg{constructor(){super();Xt(this,km,!0);Xt(this,ad,void 0);Xt(this,xm,void 0);Bt(this,xm,t=>{if(!fg&&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(){ke(this,ad)||this.setEventListener(ke(this,xm))}onUnsubscribe(){var t;this.hasListeners()||((t=ke(this,ad))==null||t.call(this),Bt(this,ad,void 0))}setEventListener(t){var n;Bt(this,xm,t),(n=ke(this,ad))==null||n.call(this),Bt(this,ad,t(this.setOnline.bind(this)))}setOnline(t){ke(this,km)!==t&&(Bt(this,km,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return ke(this,km)}},km=new WeakMap,ad=new WeakMap,xm=new WeakMap,zV),rw=new mze;function gze(e){return Math.min(1e3*2**e,3e4)}function Dx(e){return(e??"online")==="online"?rw.isOnline():!0}var Ute=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function y2(e){return e instanceof Ute}function jte(e){let t=!1,n=0,r=!1,i,o,a;const s=new Promise((O,y)=>{o=O,a=y}),l=O=>{var y;r||(h(new Ute(O)),(y=e.abort)==null||y.call(e))},u=()=>{t=!0},c=()=>{t=!1},d=()=>!nw.isFocused()||e.networkMode!=="always"&&!rw.isOnline(),p=O=>{var y;r||(r=!0,(y=e.onSuccess)==null||y.call(e,O),i==null||i(),o(O))},h=O=>{var y;r||(r=!0,(y=e.onError)==null||y.call(e,O),i==null||i(),a(O))},m=()=>new Promise(O=>{var y;i=v=>{const S=r||!d();return S&&O(v),S},(y=e.onPause)==null||y.call(e)}).then(()=>{var O;i=void 0,r||(O=e.onContinue)==null||O.call(e)}),b=()=>{if(r)return;let O;try{O=e.fn()}catch(y){O=Promise.reject(y)}Promise.resolve(O).then(p).catch(y=>{var w;if(r)return;const v=e.retry??(fg?0:3),S=e.retryDelay??gze,k=typeof S=="function"?S(n,y):S,C=v===!0||typeof v=="number"&&n{if(d())return m()}).then(()=>{t?h(y):b()})})};return Dx(e.networkMode)?b():m().then(b),{promise:s,cancel:l,continue:()=>(i==null?void 0:i())?s:Promise.resolve(),cancelRetry:u,continueRetry:c}}function bze(){let e=[],t=0,n=p=>{p()},r=p=>{p()},i=p=>setTimeout(p,0);const o=p=>{i=p},a=p=>{let h;t++;try{h=p()}finally{t--,t||u()}return h},s=p=>{t?e.push(p):i(()=>{n(p)})},l=p=>(...h)=>{s(()=>{p(...h)})},u=()=>{const p=e;e=[],p.length&&i(()=>{r(()=>{p.forEach(h=>{n(h)})})})};return{batch:a,batchCalls:l,schedule:s,setNotifyFunction:p=>{n=p},setBatchNotifyFunction:p=>{r=p},setScheduler:o}}var Pi=bze(),Zf,VV,zte=(VV=class{constructor(){Xt(this,Zf,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),LI(this.gcTime)&&Bt(this,Zf,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(fg?1/0:5*60*1e3))}clearGcTimeout(){ke(this,Zf)&&(clearTimeout(ke(this,Zf)),Bt(this,Zf,void 0))}},Zf=new WeakMap,VV),Cm,Am,Cs,sd,As,Qi,v1,Xf,_m,cS,fl,Ku,HV,yze=(HV=class extends zte{constructor(t){super();Xt(this,_m);Xt(this,fl);Xt(this,Cm,void 0);Xt(this,Am,void 0);Xt(this,Cs,void 0);Xt(this,sd,void 0);Xt(this,As,void 0);Xt(this,Qi,void 0);Xt(this,v1,void 0);Xt(this,Xf,void 0);Bt(this,Xf,!1),Bt(this,v1,t.defaultOptions),Tn(this,_m,cS).call(this,t.options),Bt(this,Qi,[]),Bt(this,Cs,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Bt(this,Cm,t.state||Oze(this.options)),this.state=ke(this,Cm),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!ke(this,Qi).length&&this.state.fetchStatus==="idle"&&ke(this,Cs).remove(this)}setData(t,n){const r=$I(this.state.data,t,this.options);return Tn(this,fl,Ku).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Tn(this,fl,Ku).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r;const n=ke(this,sd);return(r=ke(this,As))==null||r.cancel(t),n?n.then(Is).catch(Is):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(ke(this,Cm))}isActive(){return ke(this,Qi).some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||ke(this,Qi).some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Fte(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=ke(this,Qi).find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=ke(this,As))==null||n.continue()}onOnline(){var n;const t=ke(this,Qi).find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=ke(this,As))==null||n.continue()}addObserver(t){ke(this,Qi).includes(t)||(ke(this,Qi).push(t),this.clearGcTimeout(),ke(this,Cs).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){ke(this,Qi).includes(t)&&(Bt(this,Qi,ke(this,Qi).filter(n=>n!==t)),ke(this,Qi).length||(ke(this,As)&&(ke(this,Xf)?ke(this,As).cancel({revert:!0}):ke(this,As).cancelRetry()),this.scheduleGc()),ke(this,Cs).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return ke(this,Qi).length}invalidate(){this.state.isInvalidated||Tn(this,fl,Ku).call(this,{type:"invalidate"})}fetch(t,n){var u,c,d,p;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(ke(this,sd))return(u=ke(this,As))==null||u.continueRetry(),ke(this,sd)}if(t&&Tn(this,_m,cS).call(this,t),!this.options.queryFn){const h=ke(this,Qi).find(m=>m.options.queryFn);h&&Tn(this,_m,cS).call(this,h.options)}const r=new AbortController,i={queryKey:this.queryKey,meta:this.meta},o=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(Bt(this,Xf,!0),r.signal)})};o(i);const a=()=>this.options.queryFn?(Bt(this,Xf,!1),this.options.persister?this.options.persister(this.options.queryFn,i,this):this.options.queryFn(i)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),s={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};o(s),(c=this.options.behavior)==null||c.onFetch(s,this),Bt(this,Am,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=s.fetchOptions)==null?void 0:d.meta))&&Tn(this,fl,Ku).call(this,{type:"fetch",meta:(p=s.fetchOptions)==null?void 0:p.meta});const l=h=>{var m,b,O,y;y2(h)&&h.silent||Tn(this,fl,Ku).call(this,{type:"error",error:h}),y2(h)||((b=(m=ke(this,Cs).config).onError)==null||b.call(m,h,this),(y=(O=ke(this,Cs).config).onSettled)==null||y.call(O,this.state.data,h,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return Bt(this,As,jte({fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var m,b,O,y;if(typeof h>"u"){l(new Error(`${this.queryHash} data is undefined`));return}this.setData(h),(b=(m=ke(this,Cs).config).onSuccess)==null||b.call(m,h,this),(y=(O=ke(this,Cs).config).onSettled)==null||y.call(O,h,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(h,m)=>{Tn(this,fl,Ku).call(this,{type:"failed",failureCount:h,error:m})},onPause:()=>{Tn(this,fl,Ku).call(this,{type:"pause"})},onContinue:()=>{Tn(this,fl,Ku).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode})),Bt(this,sd,ke(this,As).promise),ke(this,sd)}},Cm=new WeakMap,Am=new WeakMap,Cs=new WeakMap,sd=new WeakMap,As=new WeakMap,Qi=new WeakMap,v1=new WeakMap,Xf=new WeakMap,_m=new WeakSet,cS=function(t){this.options={...ke(this,v1),...t},this.updateGcTime(this.options.gcTime)},fl=new WeakSet,Ku=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,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:t.meta??null,fetchStatus:Dx(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"pending"}};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 y2(i)&&i.revert&&ke(this,Am)?{...ke(this,Am),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),Pi.batch(()=>{ke(this,Qi).forEach(r=>{r.onQueryUpdate()}),ke(this,Cs).notify({query:this,type:"updated",action:t})})},HV);function Oze(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",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 ou,WV,Vte=(WV=class extends Gg{constructor(t={}){super();Xt(this,ou,void 0);this.config=t,Bt(this,ou,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??S$(i,n);let a=this.get(o);return a||(a=new yze({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}add(t){ke(this,ou).has(t.queryHash)||(ke(this,ou).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=ke(this,ou).get(t.queryHash);n&&(t.destroy(),n===t&&ke(this,ou).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Pi.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return ke(this,ou).get(t)}getAll(){return[...ke(this,ou).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Zz(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Zz(t,r)):n}notify(t){Pi.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Pi.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Pi.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ou=new WeakMap,WV),au,E1,Ga,Rm,su,Gc,QV,vze=(QV=class extends zte{constructor(t){super();Xt(this,su);Xt(this,au,void 0);Xt(this,E1,void 0);Xt(this,Ga,void 0);Xt(this,Rm,void 0);this.mutationId=t.mutationId,Bt(this,E1,t.defaultOptions),Bt(this,Ga,t.mutationCache),Bt(this,au,[]),this.state=t.state||Hte(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...ke(this,E1),...t},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){ke(this,au).includes(t)||(ke(this,au).push(t),this.clearGcTimeout(),ke(this,Ga).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Bt(this,au,ke(this,au).filter(n=>n!==t)),this.scheduleGc(),ke(this,Ga).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){ke(this,au).length||(this.state.status==="pending"?this.scheduleGc():ke(this,Ga).remove(this))}continue(){var t;return((t=ke(this,Rm))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,a,s,l,u,c,d,p,h,m,b,O,y,v,S,k,C,w,E;const n=()=>(Bt(this,Rm,jte({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:($,N)=>{Tn(this,su,Gc).call(this,{type:"failed",failureCount:$,error:N})},onPause:()=>{Tn(this,su,Gc).call(this,{type:"pause"})},onContinue:()=>{Tn(this,su,Gc).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),ke(this,Rm).promise),r=this.state.status==="pending";try{if(!r){Tn(this,su,Gc).call(this,{type:"pending",variables:t}),await((o=(i=ke(this,Ga).config).onMutate)==null?void 0:o.call(i,t,this));const N=await((s=(a=this.options).onMutate)==null?void 0:s.call(a,t));N!==this.state.context&&Tn(this,su,Gc).call(this,{type:"pending",context:N,variables:t})}const $=await n();return await((u=(l=ke(this,Ga).config).onSuccess)==null?void 0:u.call(l,$,t,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,$,t,this.state.context)),await((h=(p=ke(this,Ga).config).onSettled)==null?void 0:h.call(p,$,null,this.state.variables,this.state.context,this)),await((b=(m=this.options).onSettled)==null?void 0:b.call(m,$,null,t,this.state.context)),Tn(this,su,Gc).call(this,{type:"success",data:$}),$}catch($){try{throw await((y=(O=ke(this,Ga).config).onError)==null?void 0:y.call(O,$,t,this.state.context,this)),await((S=(v=this.options).onError)==null?void 0:S.call(v,$,t,this.state.context)),await((C=(k=ke(this,Ga).config).onSettled)==null?void 0:C.call(k,void 0,$,this.state.variables,this.state.context,this)),await((E=(w=this.options).onSettled)==null?void 0:E.call(w,void 0,$,t,this.state.context)),$}finally{Tn(this,su,Gc).call(this,{type:"error",error:$})}}}},au=new WeakMap,E1=new WeakMap,Ga=new WeakMap,Rm=new WeakMap,su=new WeakSet,Gc=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:!Dx(this.options.networkMode),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),Pi.batch(()=>{ke(this,au).forEach(r=>{r.onMutationUpdate(t)}),ke(this,Ga).notify({mutation:this,type:"updated",action:t})})},QV);function Hte(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var _s,S1,Kf,YV,Eze=(YV=class extends Gg{constructor(t={}){super();Xt(this,_s,void 0);Xt(this,S1,void 0);Xt(this,Kf,void 0);this.config=t,Bt(this,_s,[]),Bt(this,S1,0)}build(t,n,r){const i=new vze({mutationCache:this,mutationId:++JO(this,S1)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){ke(this,_s).push(t),this.notify({type:"added",mutation:t})}remove(t){Bt(this,_s,ke(this,_s).filter(n=>n!==t)),this.notify({type:"removed",mutation:t})}clear(){Pi.batch(()=>{ke(this,_s).forEach(t=>{this.remove(t)})})}getAll(){return ke(this,_s)}find(t){const n={exact:!0,...t};return ke(this,_s).find(r=>Xz(n,r))}findAll(t={}){return ke(this,_s).filter(n=>Xz(t,n))}notify(t){Pi.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){return Bt(this,Kf,(ke(this,Kf)??Promise.resolve()).then(()=>{const t=ke(this,_s).filter(n=>n.state.isPaused);return Pi.batch(()=>t.reduce((n,r)=>n.then(()=>r.continue().catch(Is)),Promise.resolve()))}).then(()=>{Bt(this,Kf,void 0)})),ke(this,Kf)}},_s=new WeakMap,S1=new WeakMap,Kf=new WeakMap,YV);function FI(e){return{onFetch:(t,n)=>{const r=async()=>{var m,b,O,y,v;const i=t.options,o=(O=(b=(m=t.fetchOptions)==null?void 0:m.meta)==null?void 0:b.fetchMore)==null?void 0:O.direction,a=((y=t.state.data)==null?void 0:y.pages)||[],s=((v=t.state.data)==null?void 0:v.pageParams)||[],l={pages:[],pageParams:[]};let u=!1;const c=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},d=t.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`))),p=async(S,k,C)=>{if(u)return Promise.reject();if(k==null&&S.pages.length)return Promise.resolve(S);const w={queryKey:t.queryKey,pageParam:k,direction:C?"backward":"forward",meta:t.options.meta};c(w);const E=await d(w),{maxPages:$}=t.options,N=C?pze:fze;return{pages:N(S.pages,E,$),pageParams:N(S.pageParams,k,$)}};let h;if(o&&a.length){const S=o==="backward",k=S?Wte:BI,C={pages:a,pageParams:s},w=k(i,C);h=await p(C,w,S)}else{h=await p(l,s[0]??i.initialPageParam);const S=e??a.length;for(let k=1;k{var i,o;return(o=(i=t.options).persister)==null?void 0:o.call(i,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function BI(e,{pages:t,pageParams:n}){const r=t.length-1;return e.getNextPageParam(t[r],t,n[r],n)}function Wte(e,{pages:t,pageParams:n}){var r;return(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n)}function Sze(e,t){return t?BI(e,t)!=null:!1}function Tze(e,t){return!t||!e.getPreviousPageParam?!1:Wte(e,t)!=null}var Ri,ld,ud,Im,Dm,cd,Nm,Pm,GV,wze=(GV=class{constructor(e={}){Xt(this,Ri,void 0);Xt(this,ld,void 0);Xt(this,ud,void 0);Xt(this,Im,void 0);Xt(this,Dm,void 0);Xt(this,cd,void 0);Xt(this,Nm,void 0);Xt(this,Pm,void 0);Bt(this,Ri,e.queryCache||new Vte),Bt(this,ld,e.mutationCache||new Eze),Bt(this,ud,e.defaultOptions||{}),Bt(this,Im,new Map),Bt(this,Dm,new Map),Bt(this,cd,0)}mount(){JO(this,cd)._++,ke(this,cd)===1&&(Bt(this,Nm,nw.subscribe(()=>{nw.isFocused()&&(this.resumePausedMutations(),ke(this,Ri).onFocus())})),Bt(this,Pm,rw.subscribe(()=>{rw.isOnline()&&(this.resumePausedMutations(),ke(this,Ri).onOnline())})))}unmount(){var e,t;JO(this,cd)._--,ke(this,cd)===0&&((e=ke(this,Nm))==null||e.call(this),Bt(this,Nm,void 0),(t=ke(this,Pm))==null||t.call(this),Bt(this,Pm,void 0))}isFetching(e){return ke(this,Ri).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return ke(this,ld).findAll({...e,status:"pending"}).length}getQueryData(e){var t;return(t=ke(this,Ri).find({queryKey:e}))==null?void 0:t.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);return t!==void 0?Promise.resolve(t):this.fetchQuery(e)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=ke(this,Ri).find({queryKey:e}),i=r==null?void 0:r.state.data,o=cze(t,i);if(typeof o>"u")return;const a=this.defaultQueryOptions({queryKey:e});return ke(this,Ri).build(this,a).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Pi.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var t;return(t=ke(this,Ri).find({queryKey:e}))==null?void 0:t.state}removeQueries(e){const t=ke(this,Ri);Pi.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=ke(this,Ri),r={type:"active",...e};return Pi.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Pi.batch(()=>ke(this,Ri).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Is).catch(Is)}invalidateQueries(e={},t={}){return Pi.batch(()=>{if(ke(this,Ri).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=Pi.batch(()=>ke(this,Ri).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(Is)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Is)}fetchQuery(e){const t=this.defaultQueryOptions(e);typeof t.retry>"u"&&(t.retry=!1);const n=ke(this,Ri).build(this,t);return n.isStaleByTime(t.staleTime)?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Is).catch(Is)}fetchInfiniteQuery(e){return e.behavior=FI(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Is).catch(Is)}resumePausedMutations(){return ke(this,ld).resumePausedMutations()}getQueryCache(){return ke(this,Ri)}getMutationCache(){return ke(this,ld)}getDefaultOptions(){return ke(this,ud)}setDefaultOptions(e){Bt(this,ud,e)}setQueryDefaults(e,t){ke(this,Im).set(_p(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...ke(this,Im).values()];let n={};return t.forEach(r=>{u1(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){ke(this,Dm).set(_p(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...ke(this,Dm).values()];let n={};return t.forEach(r=>{u1(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...ke(this,ud).queries,...(e==null?void 0:e.queryKey)&&this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=S$(t.queryKey,t)),typeof t.refetchOnReconnect>"u"&&(t.refetchOnReconnect=t.networkMode!=="always"),typeof t.throwOnError>"u"&&(t.throwOnError=!!t.suspense),typeof t.networkMode>"u"&&t.persister&&(t.networkMode="offlineFirst"),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...ke(this,ud).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){ke(this,Ri).clear(),ke(this,ld).clear()}},Ri=new WeakMap,ld=new WeakMap,ud=new WeakMap,Im=new WeakMap,Dm=new WeakMap,cd=new WeakMap,Nm=new WeakMap,Pm=new WeakMap,GV),ya,Ir,T1,Xo,Jf,Lm,lu,w1,Mm,$m,ep,tp,dd,Fm,np,cb,k1,UI,x1,jI,C1,zI,A1,VI,_1,HI,R1,WI,I1,QI,gw,Yte,qV,Qte=(qV=class extends Gg{constructor(t,n){super();Xt(this,np);Xt(this,k1);Xt(this,x1);Xt(this,C1);Xt(this,A1);Xt(this,_1);Xt(this,R1);Xt(this,I1);Xt(this,gw);Xt(this,ya,void 0);Xt(this,Ir,void 0);Xt(this,T1,void 0);Xt(this,Xo,void 0);Xt(this,Jf,void 0);Xt(this,Lm,void 0);Xt(this,lu,void 0);Xt(this,w1,void 0);Xt(this,Mm,void 0);Xt(this,$m,void 0);Xt(this,ep,void 0);Xt(this,tp,void 0);Xt(this,dd,void 0);Xt(this,Fm,new Set);this.options=n,Bt(this,ya,t),Bt(this,lu,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(ke(this,Ir).addObserver(this),eV(ke(this,Ir),this.options)?Tn(this,np,cb).call(this):this.updateResult(),Tn(this,A1,VI).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return YI(ke(this,Ir),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return YI(ke(this,Ir),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Tn(this,_1,HI).call(this),Tn(this,R1,WI).call(this),ke(this,Ir).removeObserver(this)}setOptions(t,n){const r=this.options,i=ke(this,Ir);if(this.options=ke(this,ya).defaultQueryOptions(t),tw(r,this.options)||ke(this,ya).getQueryCache().notify({type:"observerOptionsUpdated",query:ke(this,Ir),observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),Tn(this,I1,QI).call(this);const o=this.hasListeners();o&&tV(ke(this,Ir),i,this.options,r)&&Tn(this,np,cb).call(this),this.updateResult(n),o&&(ke(this,Ir)!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&Tn(this,k1,UI).call(this);const a=Tn(this,x1,jI).call(this);o&&(ke(this,Ir)!==i||this.options.enabled!==r.enabled||a!==ke(this,dd))&&Tn(this,C1,zI).call(this,a)}getOptimisticResult(t){const n=ke(this,ya).getQueryCache().build(ke(this,ya),t),r=this.createResult(n,t);return xze(this,r)&&(Bt(this,Xo,r),Bt(this,Lm,this.options),Bt(this,Jf,ke(this,Ir).state)),r}getCurrentResult(){return ke(this,Xo)}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(ke(this,Fm).add(r),t[r])})}),n}getCurrentQuery(){return ke(this,Ir)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=ke(this,ya).defaultQueryOptions(t),r=ke(this,ya).getQueryCache().build(ke(this,ya),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Tn(this,np,cb).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),ke(this,Xo)))}createResult(t,n){var w;const r=ke(this,Ir),i=this.options,o=ke(this,Xo),a=ke(this,Jf),s=ke(this,Lm),u=t!==r?t.state:ke(this,T1),{state:c}=t;let{error:d,errorUpdatedAt:p,fetchStatus:h,status:m}=c,b=!1,O;if(n._optimisticResults){const E=this.hasListeners(),$=!E&&eV(t,n),N=E&&tV(t,r,n,i);($||N)&&(h=Dx(t.options.networkMode)?"fetching":"paused",c.dataUpdatedAt||(m="pending")),n._optimisticResults==="isRestoring"&&(h="idle")}if(n.select&&typeof c.data<"u")if(o&&c.data===(a==null?void 0:a.data)&&n.select===ke(this,w1))O=ke(this,Mm);else try{Bt(this,w1,n.select),O=n.select(c.data),O=$I(o==null?void 0:o.data,O,n),Bt(this,Mm,O),Bt(this,lu,null)}catch(E){Bt(this,lu,E)}else O=c.data;if(typeof n.placeholderData<"u"&&typeof O>"u"&&m==="pending"){let E;if(o!=null&&o.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData))E=o.data;else if(E=typeof n.placeholderData=="function"?n.placeholderData((w=ke(this,$m))==null?void 0:w.state.data,ke(this,$m)):n.placeholderData,n.select&&typeof E<"u")try{E=n.select(E),Bt(this,lu,null)}catch($){Bt(this,lu,$)}typeof E<"u"&&(m="success",O=$I(o==null?void 0:o.data,E,n),b=!0)}ke(this,lu)&&(d=ke(this,lu),O=ke(this,Mm),p=Date.now(),m="error");const y=h==="fetching",v=m==="pending",S=m==="error",k=v&&y;return{status:m,fetchStatus:h,isPending:v,isSuccess:m==="success",isError:S,isInitialLoading:k,isLoading:k,data:O,dataUpdatedAt:c.dataUpdatedAt,error:d,errorUpdatedAt:p,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:y,isRefetching:y&&!v,isLoadingError:S&&c.dataUpdatedAt===0,isPaused:h==="paused",isPlaceholderData:b,isRefetchError:S&&c.dataUpdatedAt!==0,isStale:T$(t,n),refetch:this.refetch}}updateResult(t){const n=ke(this,Xo),r=this.createResult(ke(this,Ir),this.options);if(Bt(this,Jf,ke(this,Ir).state),Bt(this,Lm,this.options),ke(this,Jf).data!==void 0&&Bt(this,$m,ke(this,Ir)),tw(r,n))return;Bt(this,Xo,r);const i={},o=()=>{if(!n)return!0;const{notifyOnChangeProps:a}=this.options,s=typeof a=="function"?a():a;if(s==="all"||!s&&!ke(this,Fm).size)return!0;const l=new Set(s??ke(this,Fm));return this.options.throwOnError&&l.add("error"),Object.keys(ke(this,Xo)).some(u=>{const c=u;return ke(this,Xo)[c]!==n[c]&&l.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),Tn(this,gw,Yte).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Tn(this,A1,VI).call(this)}},ya=new WeakMap,Ir=new WeakMap,T1=new WeakMap,Xo=new WeakMap,Jf=new WeakMap,Lm=new WeakMap,lu=new WeakMap,w1=new WeakMap,Mm=new WeakMap,$m=new WeakMap,ep=new WeakMap,tp=new WeakMap,dd=new WeakMap,Fm=new WeakMap,np=new WeakSet,cb=function(t){Tn(this,I1,QI).call(this);let n=ke(this,Ir).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Is)),n},k1=new WeakSet,UI=function(){if(Tn(this,_1,HI).call(this),fg||ke(this,Xo).isStale||!LI(this.options.staleTime))return;const n=Fte(ke(this,Xo).dataUpdatedAt,this.options.staleTime)+1;Bt(this,ep,setTimeout(()=>{ke(this,Xo).isStale||this.updateResult()},n))},x1=new WeakSet,jI=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(ke(this,Ir)):this.options.refetchInterval)??!1},C1=new WeakSet,zI=function(t){Tn(this,R1,WI).call(this),Bt(this,dd,t),!(fg||this.options.enabled===!1||!LI(ke(this,dd))||ke(this,dd)===0)&&Bt(this,tp,setInterval(()=>{(this.options.refetchIntervalInBackground||nw.isFocused())&&Tn(this,np,cb).call(this)},ke(this,dd)))},A1=new WeakSet,VI=function(){Tn(this,k1,UI).call(this),Tn(this,C1,zI).call(this,Tn(this,x1,jI).call(this))},_1=new WeakSet,HI=function(){ke(this,ep)&&(clearTimeout(ke(this,ep)),Bt(this,ep,void 0))},R1=new WeakSet,WI=function(){ke(this,tp)&&(clearInterval(ke(this,tp)),Bt(this,tp,void 0))},I1=new WeakSet,QI=function(){const t=ke(this,ya).getQueryCache().build(ke(this,ya),this.options);if(t===ke(this,Ir))return;const n=ke(this,Ir);Bt(this,Ir,t),Bt(this,T1,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},gw=new WeakSet,Yte=function(t){Pi.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(ke(this,Xo))}),ke(this,ya).getQueryCache().notify({query:ke(this,Ir),type:"observerResultsUpdated"})})},qV);function kze(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function eV(e,t){return kze(e,t)||e.state.dataUpdatedAt>0&&YI(e,t,t.refetchOnMount)}function YI(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&T$(e,t)}return!1}function tV(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&T$(e,n)}function T$(e,t){return e.isStaleByTime(t.staleTime)}function xze(e,t){return!tw(e.getCurrentResult(),t)}var Cze=class extends Qte{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:FI()},t)}getOptimisticResult(e){return e.behavior=FI(),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 l,u,c,d;const{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:o}=r,a=i&&((u=(l=n.fetchMeta)==null?void 0:l.fetchMore)==null?void 0:u.direction)==="forward",s=i&&((d=(c=n.fetchMeta)==null?void 0:c.fetchMore)==null?void 0:d.direction)==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Sze(t,n.data),hasPreviousPage:Tze(t,n.data),isFetchingNextPage:a,isFetchingPreviousPage:s,isRefetching:o&&!a&&!s}}},fd,rc,qa,ic,Bm,dS,D1,GI,ZV,Aze=(ZV=class extends Gg{constructor(n,r){super();Xt(this,Bm);Xt(this,D1);Xt(this,fd,void 0);Xt(this,rc,void 0);Xt(this,qa,void 0);Xt(this,ic,void 0);Bt(this,rc,void 0),Bt(this,fd,n),this.setOptions(r),this.bindMethods(),Tn(this,Bm,dS).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=ke(this,fd).defaultMutationOptions(n),tw(r,this.options)||ke(this,fd).getMutationCache().notify({type:"observerOptionsUpdated",mutation:ke(this,qa),observer:this}),(i=ke(this,qa))==null||i.setOptions(this.options),r!=null&&r.mutationKey&&this.options.mutationKey&&_p(r.mutationKey)!==_p(this.options.mutationKey)&&this.reset()}onUnsubscribe(){var n;this.hasListeners()||(n=ke(this,qa))==null||n.removeObserver(this)}onMutationUpdate(n){Tn(this,Bm,dS).call(this),Tn(this,D1,GI).call(this,n)}getCurrentResult(){return ke(this,rc)}reset(){var n;(n=ke(this,qa))==null||n.removeObserver(this),Bt(this,qa,void 0),Tn(this,Bm,dS).call(this),Tn(this,D1,GI).call(this)}mutate(n,r){var i;return Bt(this,ic,r),(i=ke(this,qa))==null||i.removeObserver(this),Bt(this,qa,ke(this,fd).getMutationCache().build(ke(this,fd),this.options)),ke(this,qa).addObserver(this),ke(this,qa).execute(n)}},fd=new WeakMap,rc=new WeakMap,qa=new WeakMap,ic=new WeakMap,Bm=new WeakSet,dS=function(){var r;const n=((r=ke(this,qa))==null?void 0:r.state)??Hte();Bt(this,rc,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},D1=new WeakSet,GI=function(n){Pi.batch(()=>{var r,i,o,a,s,l,u,c;if(ke(this,ic)&&this.hasListeners()){const d=ke(this,rc).variables,p=ke(this,rc).context;(n==null?void 0:n.type)==="success"?((i=(r=ke(this,ic)).onSuccess)==null||i.call(r,n.data,d,p),(a=(o=ke(this,ic)).onSettled)==null||a.call(o,n.data,null,d,p)):(n==null?void 0:n.type)==="error"&&((l=(s=ke(this,ic)).onError)==null||l.call(s,n.error,d,p),(c=(u=ke(this,ic)).onSettled)==null||c.call(u,void 0,n.error,d,p))}this.listeners.forEach(d=>{d(ke(this,rc))})})},ZV),Gte=I.createContext(void 0),w$=e=>{const t=I.useContext(Gte);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},_ze=({client:e,children:t})=>(I.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),I.createElement(Gte.Provider,{value:e},t)),qte=I.createContext(!1),Rze=()=>I.useContext(qte);qte.Provider;function Ize(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Dze=I.createContext(Ize()),Nze=()=>I.useContext(Dze);function Zte(e,t){return typeof e=="function"?e(...t):!!e}var Pze=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},Lze=e=>{I.useEffect(()=>{e.clearReset()},[e])},Mze=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&Zte(n,[e.error,r]),$ze=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},Fze=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Bze=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Xte(e,t,n){const r=w$(n),i=Rze(),o=Nze(),a=r.defaultQueryOptions(e);a._optimisticResults=i?"isRestoring":"optimistic",$ze(a),Pze(a,o),Lze(o);const[s]=I.useState(()=>new t(r,a)),l=s.getOptimisticResult(a);if(I.useSyncExternalStore(I.useCallback(u=>{const c=i?()=>{}:s.subscribe(Pi.batchCalls(u));return s.updateResult(),c},[s,i]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),I.useEffect(()=>{s.setOptions(a,{listeners:!1})},[a,s]),Fze(a,l))throw Bze(a,s,o);if(Mze({result:l,errorResetBoundary:o,throwOnError:a.throwOnError,query:r.getQueryCache().get(a.queryHash)}))throw l.error;return a.notifyOnChangeProps?l:s.trackResult(l)}function k$(e,t){return Xte(e,Qte,t)}function Nx(e,t){const n=w$(t),[r]=I.useState(()=>new Aze(n,e));I.useEffect(()=>{r.setOptions(e)},[r,e]);const i=I.useSyncExternalStore(I.useCallback(a=>r.subscribe(Pi.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=I.useCallback((a,s)=>{r.mutate(a,s).catch(Uze)},[r]);if(i.error&&Zte(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}function Uze(){}function x$(e,t){return Xte(e,Cze,t)}const jze=e=>["documents",e],zze=e=>k$({queryKey:jze(e||""),enabled:!!e,queryFn:async()=>(await ir.get(`/documents/${e}`)).data,meta:{errorMessage:"This is a non-existent or unauthorized Workspace."}});function Vze(){const e=Ag(),t=xg(),n=tMe(),r=_c(Vk),{data:i}=zze(e.documentSlug||"");return I.useEffect(()=>{let o,a;return i!=null&&i.yorkieDocumentId?((async()=>{o=new sI.Client("https://api.yorkie.dev",{apiKey:"cmggkp8ksk14av0keupg"}),await o.activate(),a=new sI.Document(i==null?void 0:i.yorkieDocumentId),await o.attach(a,{initialPresence:{name:"Yorkie",color:VLe(OLe()).fade(.15).toString(),selection:null}}),t(P7(a)),t(L7(o))})(),()=>{(async()=>{await(o==null?void 0:o.deactivate()),t(P7(null)),t(L7(null))})()}):void 0},[t,i==null?void 0:i.yorkieDocumentId]),P.jsxs(_a,{height:"calc(100% - 64px)",children:[P.jsx("div",{className:"wmde-markdown-var"}),r.mode==="both"&&P.jsx(GLe,{axis:"x",initial:n/2,min:400,children:({position:o,separatorProps:a})=>P.jsxs("div",{id:"wrapper",style:{display:"flex",height:"100%",overflow:"hidden"},children:[P.jsx("div",{id:"left-block",style:{width:o},children:P.jsx(pj,{})}),P.jsx(Na,{id:"splitter",...a,sx:{height:"100%",width:8,borderRadius:0,cursor:"col-resize",zIndex:100}}),P.jsx("div",{className:"right-block",style:{width:`calc(100% - ${o}px)`,overflow:"auto"},children:P.jsx(_a,{sx:{p:4},height:"100%",children:P.jsx(qz,{})})})]})}),r.mode==="read"&&P.jsx(_a,{sx:{p:4,overflow:"auto"},height:"100%",children:P.jsx(qz,{})}),r.mode==="edit"&&P.jsx(pj,{})]})}function Hze(){return P.jsx(ui,{sx:{flexGrow:1},gap:3,children:P.jsx(eP,{})})}function Wze(e){return P.jsx(zd,{...e,children:P.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:[P.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"}),P.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"}),P.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"})]})})}var Qze=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,o){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var a in r)n.d(o,a,(function(s){return r[s]}).bind(null,a));return o},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=I},function(e,t,n){var r=n(3);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function a(u,c,d,p,h,m){if(m!==r){var b=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 b.name="Invariant Violation",b}}function s(){return a}a.isRequired=a;var l={array:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:s,element:a,elementType:a,instanceOf:s,node:a,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:o,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 q}),n.d(t,"GoogleLoginButton",function(){return j}),n.d(t,"GithubLoginButton",function(){return G}),n.d(t,"TwitterLoginButton",function(){return ue}),n.d(t,"AmazonLoginButton",function(){return Ve}),n.d(t,"InstagramLoginButton",function(){return Ye}),n.d(t,"LinkedInLoginButton",function(){return $e}),n.d(t,"MicrosoftLoginButton",function(){return Be}),n.d(t,"BufferLoginButton",function(){return J}),n.d(t,"TelegramLoginButton",function(){return De}),n.d(t,"AppleLoginButton",function(){return de}),n.d(t,"DiscordLoginButton",function(){return rt}),n.d(t,"OktaLoginButton",function(){return et}),n.d(t,"SlackLoginButton",function(){return it}),n.d(t,"YahooLoginButton",function(){return on}),n.d(t,"createButton",function(){return V}),n.d(t,"createSvgIcon",function(){return W}),n.d(t,"ZaloLoginButton",function(){return zn}),n.d(t,"TikTokLoginButton",function(){return pe}),n.d(t,"MetamaskLoginButton",function(){return $t});var r={};n.r(r),n.d(r,"FacebookLoginButton",function(){return q}),n.d(r,"GoogleLoginButton",function(){return j}),n.d(r,"GithubLoginButton",function(){return G}),n.d(r,"TwitterLoginButton",function(){return ue}),n.d(r,"AmazonLoginButton",function(){return Ve}),n.d(r,"InstagramLoginButton",function(){return Ye}),n.d(r,"LinkedInLoginButton",function(){return $e}),n.d(r,"MicrosoftLoginButton",function(){return Be}),n.d(r,"BufferLoginButton",function(){return J}),n.d(r,"TelegramLoginButton",function(){return De}),n.d(r,"AppleLoginButton",function(){return de}),n.d(r,"DiscordLoginButton",function(){return rt}),n.d(r,"OktaLoginButton",function(){return et}),n.d(r,"SlackLoginButton",function(){return it}),n.d(r,"YahooLoginButton",function(){return on}),n.d(r,"createButton",function(){return V}),n.d(r,"createSvgIcon",function(){return W}),n.d(r,"ZaloLoginButton",function(){return zn}),n.d(r,"TikTokLoginButton",function(){return pe}),n.d(r,"MetamaskLoginButton",function(){return $t});var i=n(1),o=n.n(i),a=n(0),s=n.n(a),l=function(Ie){var we=Ie.name,Qe=Ie.size,ot=Ie.format;return o.a.createElement("i",{className:ot(we),style:{fontSize:Qe}})};l.propTypes={format:s.a.func,name:s.a.string.isRequired,size:s.a.oneOfType([s.a.string,s.a.number]).isRequired},l.defaultProps={format:function(Ie){return"demo-icon icon-".concat(Ie)},size:26};var u=l,c=function(Ie){var we=Ie.type,Qe=Ie.size,ot=Ie.format,rn=Ie.color,Wt=rn===void 0?"#FFFFFF":rn;return typeof we=="string"?o.a.createElement(u,{format:ot,name:we,size:Qe}):o.a.createElement(we,{size:Qe,color:Wt})};c.propTypes={format:s.a.func,size:s.a.oneOfType([s.a.number,s.a.string]),type:s.a.oneOfType([s.a.string,s.a.node,s.a.func]),color:s.a.string};var d=c;function p(Ie,we){var Qe=Object.keys(Ie);if(Object.getOwnPropertySymbols){var ot=Object.getOwnPropertySymbols(Ie);we&&(ot=ot.filter(function(rn){return Object.getOwnPropertyDescriptor(Ie,rn).enumerable})),Qe.push.apply(Qe,ot)}return Qe}function h(Ie){for(var we=1;we"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 Qe,ot=C(Ie);if(we){var rn=C(this).constructor;Qe=Reflect.construct(ot,arguments,rn)}else Qe=ot.apply(this,arguments);return k(this,Qe)}}function k(Ie,we){return!we||b(we)!=="object"&&typeof we!="function"?function(Qe){if(Qe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Qe}(Ie):we}function C(Ie){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(we){return we.__proto__||Object.getPrototypeOf(we)})(Ie)}var w=function(Ie){(function(Wt,mn){if(typeof mn!="function"&&mn!==null)throw new TypeError("Super expression must either be null or a function");Wt.prototype=Object.create(mn&&mn.prototype,{constructor:{value:Wt,writable:!0,configurable:!0}}),mn&&v(Wt,mn)})(rn,Ie);var we,Qe,ot=S(rn);function rn(Wt){var mn;return function(tr,Ue){if(!(tr instanceof Ue))throw new TypeError("Cannot call a class as a function")}(this,rn),(mn=ot.call(this,Wt)).state={focused:!1,hovered:!1},mn.handleMouseEnter=function(){mn.setState({hovered:!0}),typeof mn.props.onMouseEnter=="function"&&mn.props.onMouseEnter()},mn.handleMouseLeave=function(){mn.setState({hovered:!1}),typeof mn.props.onMouseLeave=="function"&&mn.props.onMouseLeave()},mn.handleFocus=function(){mn.setState({focused:!0})},mn.handleBlur=function(){mn.setState({focused:!1})},mn.handleClick=function(tr){typeof mn.props.onClick=="function"&&mn.props.onClick(tr)},mn}return we=rn,(Qe=[{key:"render",value:function(){var Wt=this.props,mn=Wt.activeStyle,tr=Wt.align,Ue=Wt.text,Ce=Wt.children,mt=Ce===void 0?Ue:Ce,Dt=Wt.className,tn=Wt.icon,Mn=Wt.iconFormat,Dn=Wt.iconSize,Kt=Wt.iconColor,bn=Kt===void 0?"#FFFFFF":Kt,Wn=Wt.preventActiveStyles,Qn=Wt.size,ht=Wt.style,Yr=Wt.disabled,En=this.state,An=En.focused,la=En.hovered,Qp=$(N.button,{activeStyle:Wn?ht:mn,customStyle:ht,active:la||An,size:Qn});return o.a.createElement("button",O({type:"button",style:Qp,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur},{className:Dt},{disabled:Yr}),o.a.createElement("div",{style:N.flex},!E(Dn)&&o.a.createElement("div",{style:{display:"flex",justifyContent:"center",minWidth:Dn}},o.a.createElement(d,{type:tn,size:Dn,format:Mn,color:bn})),!E(Dn)&&o.a.createElement("div",{style:N.divider}),o.a.createElement("div",{style:{textAlign:tr,width:"100%"}},mt)))}}])&&y(we.prototype,Qe),rn}(i.Component),E=function(Ie){return Ie==="0"||Ie==="0px"||Ie===0},$=function(Ie,we){var Qe=we.size,ot=we.customStyle,rn=we.active,Wt=we.activeStyle;return h(h(h({},Ie),{},{height:Qe},ot),rn&&Wt)};w.propTypes={activeStyle:s.a.object,align:s.a.oneOf(["left","right","center"]),children:s.a.node,className:s.a.string,icon:s.a.oneOfType([s.a.string,s.a.node,s.a.func]),iconFormat:s.a.func,iconSize:s.a.string,iconColor:s.a.string,onClick:s.a.func,onMouseEnter:s.a.func,onMouseLeave:s.a.func,preventActiveStyles:s.a.bool,size:s.a.string,style:s.a.object,text:s.a.string,disabled:s.a.bool},w.defaultProps={align:"left",iconSize:"26px",preventActiveStyles:!1,size:"50px"};var N={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 R(Ie,we){var Qe=Object.keys(Ie);if(Object.getOwnPropertySymbols){var ot=Object.getOwnPropertySymbols(Ie);we&&(ot=ot.filter(function(rn){return Object.getOwnPropertyDescriptor(Ie,rn).enumerable})),Qe.push.apply(Qe,ot)}return Qe}function B(Ie){for(var we=1;we{window.location.href=`${Yze.VITE_API_ADDR}/auth/login/${t}`};return P.jsx(D0e,{children:P.jsx(ui,{alignItems:"center",justifyContent:"center",sx:{height:"100vh"},children:P.jsx(Na,{sx:{p:5,width:"small",boxShadow:2,maxWidth:"80%"},children:P.jsxs(ui,{gap:4,children:[P.jsxs(_a,{children:[P.jsxs(ui,{direction:"row",gap:1,children:[P.jsx(Wze,{}),P.jsx(br,{variant:"h6",children:"Login"})]}),P.jsx(br,{variant:"body2",color:"text.secondary",maxWidth:320,children:"Real-time markdown editor for interviews, meetings and more..."})]}),P.jsxs(ui,{gap:2,children:[P.jsxs(Hh,{container:!0,spacing:1,alignItems:"center",children:[P.jsx(Hh,{item:!0,xs:!0,children:P.jsx(lc,{sx:{width:1}})}),P.jsx(Hh,{item:!0,xs:"auto",children:P.jsx(br,{variant:"body2",color:"text.secondary",children:"Login with"})}),P.jsx(Hh,{item:!0,xs:!0,children:P.jsx(lc,{sx:{width:1}})})]}),Gze.map(({SocailLoginComponent:t,provider:n})=>P.jsx(t,{size:"48px",onClick:()=>e(n)},n))]})]})})})})}const Zze={accessToken:null},Kte=Mk({name:"auth",initialState:Zze,reducers:{setAccessToken:(e,t)=>{e.accessToken=t.payload}}}),{setAccessToken:C$}=Kte.actions,Xze=e=>e.auth,Kze=Kte.reducer;function Jze(){const e=xg(),t=Pp(),[n]=LTe();return I.useEffect(()=>{const r=n.get("token");if(!r){t("/");return}e(C$(r))},[e,t,n]),P.jsx(_a,{})}function eVe(){return P.jsx(eP,{})}const A$=Qt.createContext({isLoading:!0,isLoggedIn:!1}),tVe={data:null},Jte=Mk({name:"user",initialState:tVe,reducers:{setUserData:(e,t)=>{e.data=t.payload}}}),{setUserData:qI}=Jte.actions,ene=e=>e.user,nVe=Jte.reducer,rVe=e=>{var o;const{children:t}=e,{isLoggedIn:n}=I.useContext(A$),r=Cg(),i=_c(ene);return n?P.jsx(cG,{to:`/workspace/${(o=i.data)==null?void 0:o.lastWorkspaceSlug}`,state:{from:r},replace:!0}):t},iVe=e=>{const{children:t}=e,{isLoggedIn:n,isLoading:r}=I.useContext(A$),i=Cg();return r?P.jsx(xk,{open:!0,children:P.jsx(Dp,{color:"inherit"})}):n?t:P.jsx(cG,{to:"/",state:{from:i},replace:!0})};var _$={},oVe=Oo;Object.defineProperty(_$,"__esModule",{value:!0});var tne=_$.default=void 0,aVe=oVe(vo()),sVe=P;tne=_$.default=(0,aVe.default)((0,sVe.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert");var R$={},lVe=Oo;Object.defineProperty(R$,"__esModule",{value:!0});var nne=R$.default=void 0,uVe=lVe(vo()),cVe=P;nne=R$.default=(0,uVe.default)((0,cVe.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");function dVe(e){const t=xg(),n=()=>{t(C$(null)),t(qI(null))};return P.jsx(WN,{anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"},...e,children:P.jsx(G1,{children:P.jsxs(yp,{onClick:n,children:[P.jsx(HN,{children:P.jsx(nne,{fontSize:"small"})}),P.jsx(sp,{children:"Logout"})]})})})}const fVe=e=>["workspaces",e],pVe=()=>["workspaces"],I$=e=>k$({queryKey:fVe(e||""),enabled:!!e,queryFn:async()=>(await ir.get(`/workspaces/${e}`)).data,meta:{errorMessage:"This is a non-existent or unauthorized Workspace."}}),hVe=()=>x$({queryKey:pVe(),queryFn:async({pageParam:t})=>(await ir.get("/workspaces",{params:{cursor:t}})).data,initialPageParam:void 0,getPreviousPageParam:t=>t.cursor??void 0,getNextPageParam:t=>t.cursor??void 0}),mVe=()=>Nx({mutationFn:async e=>(await ir.post("/workspaces",e)).data}),gVe=e=>Nx({mutationFn:async t=>(await ir.post(`/workspaces/${e}/invite-token`,t)).data}),bVe=()=>Nx({mutationFn:async e=>(await ir.post("/workspaces/join",e)).data});var D$={},yVe=Oo;Object.defineProperty(D$,"__esModule",{value:!0});var rne=D$.default=void 0,OVe=yVe(vo()),vVe=P;rne=D$.default=(0,OVe.default)((0,vVe.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");var N$={},EVe=Oo;Object.defineProperty(N$,"__esModule",{value:!0});var ine=N$.default=void 0,SVe=EVe(vo()),TVe=P;ine=N$.default=(0,SVe.default)((0,TVe.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");class c1 extends I.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 o=document.documentElement||document.body.parentNode||document.body,a=n.pageYOffset!==void 0?n.pageYOffset:o.scrollTop;this.props.isReverse?i=a:i=this.calculateOffset(t,a)}else this.props.isReverse?i=r.scrollTop:i=t.scrollHeight-r.scrollTop-r.clientHeight;i{this.scrollComponent=y,c&&c(y)};const O=[n];return i&&(s?a?O.unshift(s):O.push(s):this.defaultLoader&&(a?O.unshift(this.defaultLoader):O.push(this.defaultLoader))),Qt.createElement(r,b,O)}}qo(c1,"propTypes",{children:Q.node.isRequired,element:Q.node,hasMore:Q.bool,initialLoad:Q.bool,isReverse:Q.bool,loader:Q.node,loadMore:Q.func.isRequired,pageStart:Q.number,ref:Q.func,getScrollParent:Q.func,threshold:Q.number,useCapture:Q.bool,useWindow:Q.bool}),qo(c1,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});var P$={},wVe=Oo;Object.defineProperty(P$,"__esModule",{value:!0});var one=P$.default=void 0,kVe=wVe(vo()),xVe=P;one=P$.default=(0,kVe.default)((0,xVe.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var RO=e=>e.type==="checkbox",Kh=e=>e instanceof Date,ea=e=>e==null;const ane=e=>typeof e=="object";var Fi=e=>!ea(e)&&!Array.isArray(e)&&ane(e)&&!Kh(e),sne=e=>Fi(e)&&e.target?RO(e.target)?e.target.checked:e.target.value:e,CVe=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,lne=(e,t)=>e.has(CVe(t)),AVe=e=>{const t=e.constructor&&e.constructor.prototype;return Fi(t)&&t.hasOwnProperty("isPrototypeOf")},L$=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function ga(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(!(L$&&(e instanceof Blob||e instanceof FileList))&&(n||Fi(e)))if(t=n?[]:{},!n&&!AVe(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=ga(e[r]));else return e;return t}var IO=e=>Array.isArray(e)?e.filter(Boolean):[],li=e=>e===void 0,Ut=(e,t,n)=>{if(!t||!Fi(e))return n;const r=IO(t.split(/[,[\].]+?/)).reduce((i,o)=>ea(i)?i:i[o],e);return li(r)||r===e?li(e[t])?n:e[t]:r},vl=e=>typeof e=="boolean";const iw={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Tl={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Yu={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},une=Qt.createContext(null),M$=()=>Qt.useContext(une),cne=e=>{const{children:t,...n}=e;return Qt.createElement(une.Provider,{value:n},t)};var dne=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const a=o;return t._proxyFormState[a]!==Tl.all&&(t._proxyFormState[a]=!r||Tl.all),n&&(n[a]=!0),e[a]}});return i},Ds=e=>Fi(e)&&!Object.keys(e).length,fne=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return Ds(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(a=>t[a]===(!r||Tl.all))},fS=e=>Array.isArray(e)?e:[e],pne=(e,t,n)=>!e||!t||e===t||fS(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function $$(e){const t=Qt.useRef(e);t.current=e,Qt.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function _Ve(e){const t=M$(),{control:n=t.control,disabled:r,name:i,exact:o}=e||{},[a,s]=Qt.useState(n._formState),l=Qt.useRef(!0),u=Qt.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=Qt.useRef(i);return c.current=i,$$({disabled:r,next:d=>l.current&&pne(c.current,d.name,o)&&fne(d,u.current,n._updateFormState)&&s({...n._formState,...d}),subject:n._subjects.state}),Qt.useEffect(()=>(l.current=!0,u.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),dne(a,n,u.current,!1)}var Eu=e=>typeof e=="string",hne=(e,t,n,r,i)=>Eu(e)?(r&&t.watch.add(e),Ut(n,e,i)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),Ut(n,o))):(r&&(t.watchAll=!0),n);function mne(e){const t=M$(),{control:n=t.control,name:r,defaultValue:i,disabled:o,exact:a}=e||{},s=Qt.useRef(r);s.current=r,$$({disabled:o,subject:n._subjects.values,next:c=>{pne(s.current,c.name,a)&&u(ga(hne(s.current,n._names,c.values||n._formValues,!1,i)))}});const[l,u]=Qt.useState(n._getWatch(r,i));return Qt.useEffect(()=>n._removeUnmounted()),l}var F$=e=>/^\w*$/.test(e),gne=e=>IO(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Sr=(e,t,n)=>{let r=-1;const i=F$(t)?[t]:gne(t),o=i.length,a=o-1;for(;++r{const c=i._options.shouldUnregister||o,d=(p,h)=>{const m=Ut(i._fields,p);m&&(m._f.mount=h)};if(d(n,!0),c){const p=ga(Ut(i._options.defaultValues,n));Sr(i._defaultValues,n,p),li(Ut(i._formValues,n))&&Sr(i._formValues,n,p)}return()=>{(a?c&&!i._state.action:c)?i.unregister(n):d(n,!1)}},[n,i,a,o]),Qt.useEffect(()=>{Ut(i._fields,n)&&i._updateDisabledField({disabled:r,fields:i._fields,name:n,value:Ut(i._fields,n)._f.value})},[r,n,i]),{field:{name:n,value:s,...vl(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:Qt.useCallback(c=>u.current.onChange({target:{value:sne(c),name:n},type:iw.CHANGE}),[n]),onBlur:Qt.useCallback(()=>u.current.onBlur({target:{value:Ut(i._formValues,n),name:n},type:iw.BLUR}),[n,i]),ref:c=>{const d=Ut(i._fields,n);d&&c&&(d._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:p=>c.setCustomValidity(p),reportValidity:()=>c.reportValidity()})}},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ut(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ut(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ut(l.touchedFields,n)},error:{enumerable:!0,get:()=>Ut(l.errors,n)}})}}var RVe=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},nV=e=>({isOnSubmit:!e||e===Tl.onSubmit,isOnBlur:e===Tl.onBlur,isOnChange:e===Tl.onChange,isOnAll:e===Tl.all,isOnTouch:e===Tl.onTouched}),rV=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Zb=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const o=Ut(e,i);if(o){const{_f:a,...s}=o;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],i)&&!r)break;if(a.ref&&t(a.ref,a.name)&&!r)break;Zb(s,t)}else Fi(s)&&Zb(s,t)}}};var IVe=(e,t,n)=>{const r=IO(Ut(e,n));return Sr(r,"root",t[n]),Sr(e,n,r),e},B$=e=>e.type==="file",vd=e=>typeof e=="function",ow=e=>{if(!L$)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},pS=e=>Eu(e),U$=e=>e.type==="radio",aw=e=>e instanceof RegExp;const iV={value:!1,isValid:!1},oV={value:!0,isValid:!0};var bne=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&&!li(e[0].attributes.value)?li(e[0].value)||e[0].value===""?oV:{value:e[0].value,isValid:!0}:oV:iV}return iV};const aV={isValid:!1,value:null};var yne=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,aV):aV;function sV(e,t,n="validate"){if(pS(e)||Array.isArray(e)&&e.every(pS)||vl(e)&&!e)return{type:n,message:pS(e)?e:"",ref:t}}var gh=e=>Fi(e)&&!aw(e)?e:{value:e,message:""},lV=async(e,t,n,r,i)=>{const{ref:o,refs:a,required:s,maxLength:l,minLength:u,min:c,max:d,pattern:p,validate:h,name:m,valueAsNumber:b,mount:O,disabled:y}=e._f,v=Ut(t,m);if(!O||y)return{};const S=a?a[0]:o,k=U=>{r&&S.reportValidity&&(S.setCustomValidity(vl(U)?"":U||""),S.reportValidity())},C={},w=U$(o),E=RO(o),$=w||E,N=(b||B$(o))&&li(o.value)&&li(v)||ow(o)&&o.value===""||v===""||Array.isArray(v)&&!v.length,R=RVe.bind(null,m,n,C),B=(U,V,z,W=Yu.maxLength,X=Yu.minLength)=>{const q=U?V:z;C[m]={type:U?W:X,message:q,ref:o,...R(U?W:X,q)}};if(i?!Array.isArray(v)||!v.length:s&&(!$&&(N||ea(v))||vl(v)&&!v||E&&!bne(a).isValid||w&&!yne(a).isValid)){const{value:U,message:V}=pS(s)?{value:!!s,message:s}:gh(s);if(U&&(C[m]={type:Yu.required,message:V,ref:S,...R(Yu.required,V)},!n))return k(V),C}if(!N&&(!ea(c)||!ea(d))){let U,V;const z=gh(d),W=gh(c);if(!ea(v)&&!isNaN(v)){const X=o.valueAsNumber||v&&+v;ea(z.value)||(U=X>z.value),ea(W.value)||(V=Xnew Date(new Date().toDateString()+" "+j),Y=o.type=="time",Z=o.type=="week";Eu(z.value)&&v&&(U=Y?q(v)>q(z.value):Z?v>z.value:X>new Date(z.value)),Eu(W.value)&&v&&(V=Y?q(v)+U.value,W=!ea(V.value)&&v.length<+V.value;if((z||W)&&(B(z,U.message,V.message),!n))return k(C[m].message),C}if(p&&!N&&Eu(v)){const{value:U,message:V}=gh(p);if(aw(U)&&!v.match(U)&&(C[m]={type:Yu.pattern,message:V,ref:o,...R(Yu.pattern,V)},!n))return k(V),C}if(h){if(vd(h)){const U=await h(v,t),V=sV(U,S);if(V&&(C[m]={...V,...R(Yu.validate,V.message)},!n))return k(V.message),C}else if(Fi(h)){let U={};for(const V in h){if(!Ds(U)&&!n)break;const z=sV(await h[V](v,t),S,V);z&&(U={...z,...R(V,z.message)},k(z.message),n&&(C[m]=U))}if(!Ds(U)&&(C[m]={ref:S,...U},!n))return C}}return k(!0),C};function DVe(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 o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}},sw=e=>ea(e)||!ane(e);function Qf(e,t){if(sw(e)||sw(t))return e===t;if(Kh(e)&&Kh(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 o=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const a=t[i];if(Kh(o)&&Kh(a)||Fi(o)&&Fi(a)||Array.isArray(o)&&Array.isArray(a)?!Qf(o,a):o!==a)return!1}}return!0}var One=e=>e.type==="select-multiple",PVe=e=>U$(e)||RO(e),v2=e=>ow(e)&&e.isConnected,vne=e=>{for(const t in e)if(vd(e[t]))return!0;return!1};function lw(e,t={}){const n=Array.isArray(e);if(Fi(e)||n)for(const r in e)Array.isArray(e[r])||Fi(e[r])&&!vne(e[r])?(t[r]=Array.isArray(e[r])?[]:{},lw(e[r],t[r])):ea(e[r])||(t[r]=!0);return t}function Ene(e,t,n){const r=Array.isArray(e);if(Fi(e)||r)for(const i in e)Array.isArray(e[i])||Fi(e[i])&&!vne(e[i])?li(t)||sw(n[i])?n[i]=Array.isArray(e[i])?lw(e[i],[]):{...lw(e[i])}:Ene(e[i],ea(t)?{}:t[i],n[i]):n[i]=!Qf(e[i],t[i]);return n}var E2=(e,t)=>Ene(e,t,lw(t)),Sne=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>li(e)?e:t?e===""?NaN:e&&+e:n&&Eu(e)?new Date(e):r?r(e):e;function S2(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return B$(t)?t.files:U$(t)?yne(e.refs).value:One(t)?[...t.selectedOptions].map(({value:n})=>n):RO(t)?bne(e.refs).value:Sne(li(t.value)?e.ref.value:t.value,e)}var LVe=(e,t,n,r)=>{const i={};for(const o of e){const a=Ut(t,o);a&&Sr(i,o,a._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},z0=e=>li(e)?e:aw(e)?e.source:Fi(e)?aw(e.value)?e.value.source:e.value:e,MVe=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function uV(e,t,n){const r=Ut(e,n);if(r||F$(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const o=i.join("."),a=Ut(t,o),s=Ut(e,o);if(a&&!Array.isArray(a)&&n!==o)return{name:n};if(s&&s.type)return{name:o,error:s};i.pop()}return{name:n}}var $Ve=(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,FVe=(e,t)=>!IO(Ut(e,t)).length&&ao(e,t);const BVe={mode:Tl.onSubmit,reValidateMode:Tl.onChange,shouldFocusError:!0};function UVe(e={},t){let n={...BVe,...e},r={submitCount:0,isDirty:!1,isLoading:vd(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:n.errors||{},disabled:n.disabled||!1},i={},o=Fi(n.defaultValues)||Fi(n.values)?ga(n.defaultValues||n.values)||{}:{},a=n.shouldUnregister?{}:ga(o),s={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u,c=0;const d={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={values:O2(),array:O2(),state:O2()},h=nV(n.mode),m=nV(n.reValidateMode),b=n.criteriaMode===Tl.all,O=re=>ee=>{clearTimeout(c),c=setTimeout(re,ee)},y=async re=>{if(d.isValid||re){const ee=n.resolver?Ds((await N()).errors):await B(i,!0);ee!==r.isValid&&p.state.next({isValid:ee})}},v=re=>d.isValidating&&p.state.next({isValidating:re}),S=(re,ee=[],J,Re,Le=!0,De=!0)=>{if(Re&&J){if(s.action=!0,De&&Array.isArray(Ut(i,re))){const ie=J(Ut(i,re),Re.argA,Re.argB);Le&&Sr(i,re,ie)}if(De&&Array.isArray(Ut(r.errors,re))){const ie=J(Ut(r.errors,re),Re.argA,Re.argB);Le&&Sr(r.errors,re,ie),FVe(r.errors,re)}if(d.touchedFields&&De&&Array.isArray(Ut(r.touchedFields,re))){const ie=J(Ut(r.touchedFields,re),Re.argA,Re.argB);Le&&Sr(r.touchedFields,re,ie)}d.dirtyFields&&(r.dirtyFields=E2(o,a)),p.state.next({name:re,isDirty:V(re,ee),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Sr(a,re,ee)},k=(re,ee)=>{Sr(r.errors,re,ee),p.state.next({errors:r.errors})},C=re=>{r.errors=re,p.state.next({errors:r.errors,isValid:!1})},w=(re,ee,J,Re)=>{const Le=Ut(i,re);if(Le){const De=Ut(a,re,li(J)?Ut(o,re):J);li(De)||Re&&Re.defaultChecked||ee?Sr(a,re,ee?De:S2(Le._f)):X(re,De),s.mount&&y()}},E=(re,ee,J,Re,Le)=>{let De=!1,ie=!1;const fe={name:re},de=!!(Ut(i,re)&&Ut(i,re)._f.disabled);if(!J||Re){d.isDirty&&(ie=r.isDirty,r.isDirty=fe.isDirty=V(),De=ie!==fe.isDirty);const Oe=de||Qf(Ut(o,re),ee);ie=!!(!de&&Ut(r.dirtyFields,re)),Oe||de?ao(r.dirtyFields,re):Sr(r.dirtyFields,re,!0),fe.dirtyFields=r.dirtyFields,De=De||d.dirtyFields&&ie!==!Oe}if(J){const Oe=Ut(r.touchedFields,re);Oe||(Sr(r.touchedFields,re,J),fe.touchedFields=r.touchedFields,De=De||d.touchedFields&&Oe!==J)}return De&&Le&&p.state.next(fe),De?fe:{}},$=(re,ee,J,Re)=>{const Le=Ut(r.errors,re),De=d.isValid&&vl(ee)&&r.isValid!==ee;if(e.delayError&&J?(u=O(()=>k(re,J)),u(e.delayError)):(clearTimeout(c),u=null,J?Sr(r.errors,re,J):ao(r.errors,re)),(J?!Qf(Le,J):Le)||!Ds(Re)||De){const ie={...Re,...De&&vl(ee)?{isValid:ee}:{},errors:r.errors,name:re};r={...r,...ie},p.state.next(ie)}v(!1)},N=async re=>n.resolver(a,n.context,LVe(re||l.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),R=async re=>{const{errors:ee}=await N(re);if(re)for(const J of re){const Re=Ut(ee,J);Re?Sr(r.errors,J,Re):ao(r.errors,J)}else r.errors=ee;return ee},B=async(re,ee,J={valid:!0})=>{for(const Re in re){const Le=re[Re];if(Le){const{_f:De,...ie}=Le;if(De){const fe=l.array.has(De.name),de=await lV(Le,a,b,n.shouldUseNativeValidation&&!ee,fe);if(de[De.name]&&(J.valid=!1,ee))break;!ee&&(Ut(de,De.name)?fe?IVe(r.errors,de,De.name):Sr(r.errors,De.name,de[De.name]):ao(r.errors,De.name))}ie&&await B(ie,ee,J)}}return J.valid},U=()=>{for(const re of l.unMount){const ee=Ut(i,re);ee&&(ee._f.refs?ee._f.refs.every(J=>!v2(J)):!v2(ee._f.ref))&&xe(re)}l.unMount=new Set},V=(re,ee)=>(re&&ee&&Sr(a,re,ee),!Qf(ve(),o)),z=(re,ee,J)=>hne(re,l,{...s.mount?a:li(ee)?o:Eu(re)?{[re]:ee}:ee},J,ee),W=re=>IO(Ut(s.mount?a:o,re,e.shouldUnregister?Ut(o,re,[]):[])),X=(re,ee,J={})=>{const Re=Ut(i,re);let Le=ee;if(Re){const De=Re._f;De&&(!De.disabled&&Sr(a,re,Sne(ee,De)),Le=ow(De.ref)&&ea(ee)?"":ee,One(De.ref)?[...De.ref.options].forEach(ie=>ie.selected=Le.includes(ie.value)):De.refs?RO(De.ref)?De.refs.length>1?De.refs.forEach(ie=>(!ie.defaultChecked||!ie.disabled)&&(ie.checked=Array.isArray(Le)?!!Le.find(fe=>fe===ie.value):Le===ie.value)):De.refs[0]&&(De.refs[0].checked=!!Le):De.refs.forEach(ie=>ie.checked=ie.value===Le):B$(De.ref)?De.ref.value="":(De.ref.value=Le,De.ref.type||p.values.next({name:re,values:{...a}})))}(J.shouldDirty||J.shouldTouch)&&E(re,Le,J.shouldTouch,J.shouldDirty,!0),J.shouldValidate&&se(re)},q=(re,ee,J)=>{for(const Re in ee){const Le=ee[Re],De=`${re}.${Re}`,ie=Ut(i,De);(l.array.has(re)||!sw(Le)||ie&&!ie._f)&&!Kh(Le)?q(De,Le,J):X(De,Le,J)}},Y=(re,ee,J={})=>{const Re=Ut(i,re),Le=l.array.has(re),De=ga(ee);Sr(a,re,De),Le?(p.array.next({name:re,values:{...a}}),(d.isDirty||d.dirtyFields)&&J.shouldDirty&&p.state.next({name:re,dirtyFields:E2(o,a),isDirty:V(re,De)})):Re&&!Re._f&&!ea(De)?q(re,De,J):X(re,De,J),rV(re,l)&&p.state.next({...r}),p.values.next({name:re,values:{...a}}),!s.mount&&t()},Z=async re=>{const ee=re.target;let J=ee.name,Re=!0;const Le=Ut(i,J),De=()=>ee.type?S2(Le._f):sne(re),ie=fe=>{Re=Number.isNaN(fe)||fe===Ut(a,J,fe)};if(Le){let fe,de;const Oe=De(),Te=re.type===iw.BLUR||re.type===iw.FOCUS_OUT,rt=!MVe(Le._f)&&!n.resolver&&!Ut(r.errors,J)&&!Le._f.deps||$Ve(Te,Ut(r.touchedFields,J),r.isSubmitted,m,h),pt=rV(J,l,Te);Sr(a,J,Oe),Te?(Le._f.onBlur&&Le._f.onBlur(re),u&&u(0)):Le._f.onChange&&Le._f.onChange(re);const xt=E(J,Oe,Te,!1),et=!Ds(xt)||pt;if(!Te&&p.values.next({name:J,type:re.type,values:{...a}}),rt)return d.isValid&&y(),et&&p.state.next({name:J,...pt?{}:xt});if(!Te&&pt&&p.state.next({...r}),v(!0),n.resolver){const{errors:vt}=await N([J]);if(ie(Oe),Re){const qe=uV(r.errors,i,J),it=uV(vt,i,qe.name||J);fe=it.error,J=it.name,de=Ds(vt)}}else fe=(await lV(Le,a,b,n.shouldUseNativeValidation))[J],ie(Oe),Re&&(fe?de=!1:d.isValid&&(de=await B(i,!0)));Re&&(Le._f.deps&&se(Le._f.deps),$(J,de,fe,xt))}},j=(re,ee)=>{if(Ut(r.errors,ee)&&re.focus)return re.focus(),1},se=async(re,ee={})=>{let J,Re;const Le=fS(re);if(v(!0),n.resolver){const De=await R(li(re)?re:Le);J=Ds(De),Re=re?!Le.some(ie=>Ut(De,ie)):J}else re?(Re=(await Promise.all(Le.map(async De=>{const ie=Ut(i,De);return await B(ie&&ie._f?{[De]:ie}:ie)}))).every(Boolean),!(!Re&&!r.isValid)&&y()):Re=J=await B(i);return p.state.next({...!Eu(re)||d.isValid&&J!==r.isValid?{}:{name:re},...n.resolver||!re?{isValid:J}:{},errors:r.errors,isValidating:!1}),ee.shouldFocus&&!Re&&Zb(i,j,re?Le:l.mount),Re},ve=re=>{const ee={...o,...s.mount?a:{}};return li(re)?ee:Eu(re)?Ut(ee,re):re.map(J=>Ut(ee,J))},G=(re,ee)=>({invalid:!!Ut((ee||r).errors,re),isDirty:!!Ut((ee||r).dirtyFields,re),isTouched:!!Ut((ee||r).touchedFields,re),error:Ut((ee||r).errors,re)}),ce=re=>{re&&fS(re).forEach(ee=>ao(r.errors,ee)),p.state.next({errors:re?r.errors:{}})},ge=(re,ee,J)=>{const Re=(Ut(i,re,{_f:{}})._f||{}).ref;Sr(r.errors,re,{...ee,ref:Re}),p.state.next({name:re,errors:r.errors,isValid:!1}),J&&J.shouldFocus&&Re&&Re.focus&&Re.focus()},ue=(re,ee)=>vd(re)?p.values.subscribe({next:J=>re(z(void 0,ee),J)}):z(re,ee,!0),xe=(re,ee={})=>{for(const J of re?fS(re):l.mount)l.mount.delete(J),l.array.delete(J),ee.keepValue||(ao(i,J),ao(a,J)),!ee.keepError&&ao(r.errors,J),!ee.keepDirty&&ao(r.dirtyFields,J),!ee.keepTouched&&ao(r.touchedFields,J),!n.shouldUnregister&&!ee.keepDefaultValue&&ao(o,J);p.values.next({values:{...a}}),p.state.next({...r,...ee.keepDirty?{isDirty:V()}:{}}),!ee.keepIsValid&&y()},Ne=({disabled:re,name:ee,field:J,fields:Re,value:Le})=>{if(vl(re)){const De=re?void 0:li(Le)?S2(J?J._f:Ut(Re,ee)._f):Le;Sr(a,ee,De),E(ee,De,!1,!1,!0)}},Ve=(re,ee={})=>{let J=Ut(i,re);const Re=vl(ee.disabled);return Sr(i,re,{...J||{},_f:{...J&&J._f?J._f:{ref:{name:re}},name:re,mount:!0,...ee}}),l.mount.add(re),J?Ne({field:J,disabled:ee.disabled,name:re,value:ee.value}):w(re,!0,ee.value),{...Re?{disabled:ee.disabled}:{},...n.progressive?{required:!!ee.required,min:z0(ee.min),max:z0(ee.max),minLength:z0(ee.minLength),maxLength:z0(ee.maxLength),pattern:z0(ee.pattern)}:{},name:re,onChange:Z,onBlur:Z,ref:Le=>{if(Le){Ve(re,ee),J=Ut(i,re);const De=li(Le.value)&&Le.querySelectorAll&&Le.querySelectorAll("input,select,textarea")[0]||Le,ie=PVe(De),fe=J._f.refs||[];if(ie?fe.find(de=>de===De):De===J._f.ref)return;Sr(i,re,{_f:{...J._f,...ie?{refs:[...fe.filter(v2),De,...Array.isArray(Ut(o,re))?[{}]:[]],ref:{type:De.type,name:re}}:{ref:De}}}),w(re,!1,void 0,De)}else J=Ut(i,re,{}),J._f&&(J._f.mount=!1),(n.shouldUnregister||ee.shouldUnregister)&&!(lne(l.array,re)&&s.action)&&l.unMount.add(re)}}},Ke=()=>n.shouldFocusError&&Zb(i,j,l.mount),Me=re=>{vl(re)&&(p.state.next({disabled:re}),Zb(i,(ee,J)=>{let Re=re;const Le=Ut(i,J);Le&&vl(Le._f.disabled)&&(Re||(Re=Le._f.disabled)),ee.disabled=Re},0,!1))},Ye=(re,ee)=>async J=>{J&&(J.preventDefault&&J.preventDefault(),J.persist&&J.persist());let Re=ga(a);if(p.state.next({isSubmitting:!0}),n.resolver){const{errors:Le,values:De}=await N();r.errors=Le,Re=De}else await B(i);ao(r.errors,"root"),Ds(r.errors)?(p.state.next({errors:{}}),await re(Re,J)):(ee&&await ee({...r.errors},J),Ke(),setTimeout(Ke)),p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ds(r.errors),submitCount:r.submitCount+1,errors:r.errors})},ye=(re,ee={})=>{Ut(i,re)&&(li(ee.defaultValue)?Y(re,ga(Ut(o,re))):(Y(re,ee.defaultValue),Sr(o,re,ga(ee.defaultValue))),ee.keepTouched||ao(r.touchedFields,re),ee.keepDirty||(ao(r.dirtyFields,re),r.isDirty=ee.defaultValue?V(re,ga(Ut(o,re))):V()),ee.keepError||(ao(r.errors,re),d.isValid&&y()),p.state.next({...r}))},ze=(re,ee={})=>{const J=re?ga(re):o,Re=ga(J),Le=re&&!Ds(re)?Re:o;if(ee.keepDefaultValues||(o=J),!ee.keepValues){if(ee.keepDirtyValues)for(const De of l.mount)Ut(r.dirtyFields,De)?Sr(Le,De,Ut(a,De)):Y(De,Ut(Le,De));else{if(L$&&li(re))for(const De of l.mount){const ie=Ut(i,De);if(ie&&ie._f){const fe=Array.isArray(ie._f.refs)?ie._f.refs[0]:ie._f.ref;if(ow(fe)){const de=fe.closest("form");if(de){de.reset();break}}}}i={}}a=e.shouldUnregister?ee.keepDefaultValues?ga(o):{}:ga(Le),p.array.next({values:{...Le}}),p.values.next({values:{...Le}})}l={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!s.mount&&t(),s.mount=!d.isValid||!!ee.keepIsValid,s.watch=!!e.shouldUnregister,p.state.next({submitCount:ee.keepSubmitCount?r.submitCount:0,isDirty:ee.keepDirty?r.isDirty:!!(ee.keepDefaultValues&&!Qf(re,o)),isSubmitted:ee.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:ee.keepDirtyValues?r.dirtyFields:ee.keepDefaultValues&&re?E2(o,re):{},touchedFields:ee.keepTouched?r.touchedFields:{},errors:ee.keepErrors?r.errors:{},isSubmitSuccessful:ee.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},$e=(re,ee)=>ze(vd(re)?re(a):re,ee);return{control:{register:Ve,unregister:xe,getFieldState:G,handleSubmit:Ye,setError:ge,_executeSchema:N,_getWatch:z,_getDirty:V,_updateValid:y,_removeUnmounted:U,_updateFieldArray:S,_updateDisabledField:Ne,_getFieldArray:W,_reset:ze,_resetDefaultValues:()=>vd(n.defaultValues)&&n.defaultValues().then(re=>{$e(re,n.resetOptions),p.state.next({isLoading:!1})}),_updateFormState:re=>{r={...r,...re}},_disableForm:Me,_subjects:p,_proxyFormState:d,_setErrors:C,get _fields(){return i},get _formValues(){return a},get _state(){return s},set _state(re){s=re},get _defaultValues(){return o},get _names(){return l},set _names(re){l=re},get _formState(){return r},set _formState(re){r=re},get _options(){return n},set _options(re){n={...n,...re}}},trigger:se,register:Ve,handleSubmit:Ye,watch:ue,setValue:Y,getValues:ve,reset:$e,resetField:ye,clearErrors:ce,unregister:xe,setError:ge,setFocus:(re,ee={})=>{const J=Ut(i,re),Re=J&&J._f;if(Re){const Le=Re.refs?Re.refs[0]:Re.ref;Le.focus&&(Le.focus(),ee.shouldSelect&&Le.select())}},getFieldState:G}}function jVe(e={}){const t=Qt.useRef(),n=Qt.useRef(),[r,i]=Qt.useState({isDirty:!1,isValidating:!1,isLoading:vd(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:vd(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...UVe(e,()=>i(a=>({...a}))),formState:r});const o=t.current.control;return o._options=e,$$({subject:o._subjects.state,next:a=>{fne(a,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),Qt.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),Qt.useEffect(()=>{if(o._proxyFormState.isDirty){const a=o._getDirty();a!==r.isDirty&&o._subjects.state.next({isDirty:a})}},[o,r.isDirty]),Qt.useEffect(()=>{e.values&&!Qf(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,i(a=>({...a}))):o._resetDefaultValues()},[e.values,o]),Qt.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),Qt.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=dne(r,o),t.current}const hu=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),j$=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const i=n??r;let o;if(e!=null)o=e;else if(i.includes(t))o=t;else if(i.length>0)o=i[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:i,openTo:o}},Xb=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:i,isDateDisabled:o,utils:a,timezone:s})=>{const l=a.startOfDay(a.dateWithTimezone(void 0,s));n&&a.isBefore(i,l)&&(i=l),t&&a.isAfter(r,l)&&(r=l);let u=e,c=e;for(a.isBefore(e,i)&&(u=i,c=null),a.isAfter(e,r)&&(c&&(c=r),u=null);u||c;){if(u&&a.isAfter(u,r)&&(u=null),c&&a.isBefore(c,i)&&(c=null),u){if(!o(u))return u;u=a.addDays(u,1)}if(c){if(!o(c))return c;c=a.addDays(c,-1)}}return null},zVe=(e,t)=>t==null||!e.isValid(t)?null:t,Bo=(e,t,n)=>t==null||!e.isValid(t)?n:t,VVe=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),z$=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const i=r[r.length-1];r.push(e.addMonths(i,1))}return r},ZI=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r},V$=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),kl=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},HVe=["year","month","day"],ym=e=>HVe.includes(e),d1=(e,{format:t,views:n},r)=>{if(t!=null)return t;const i=e.formats;return hu(n,["year"])?i.year:hu(n,["month"])?i.month:hu(n,["day"])?i.dayOfMonth:hu(n,["month","year"])?`${i.month} ${i.year}`:hu(n,["day","month"])?`${i.month} ${i.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?i.normalDateWithWeekday:i.normalDate:i.keyboardDate},WVe=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},Tne=["hours","minutes","seconds"],pg=e=>Tne.includes(e),qc=e=>Tne.includes(e)||e==="meridiem",QVe=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,f1=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,YVe=(e,t,n,r)=>{const i=f1(r.getHours(e),t,n);return r.setHours(e,i)},cV=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),DO=(e,t)=>(n,r)=>e?t.isAfter(n,r):cV(n,t)>cV(r,t),uw=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const i=e.formats;return hu(n,["hours"])?r?`${i.hours12h} ${i.meridiem}`:i.hours24h:hu(n,["minutes"])?i.minutes:hu(n,["seconds"])?i.seconds:hu(n,["minutes","seconds"])?`${i.minutes}:${i.seconds}`:hu(n,["hours","minutes","seconds"])?r?`${i.hours12h}:${i.minutes}:${i.seconds} ${i.meridiem}`:`${i.hours24h}:${i.minutes}:${i.seconds}`:r?`${i.hours12h}:${i.minutes} ${i.meridiem}`:`${i.hours24h}:${i.minutes}`},El={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},GVe=e=>Math.max(...e.map(t=>{var n;return(n=El[t.type])!=null?n:1})),V0=(e,t,n)=>{if(t===El.year)return e.startOfYear(n);if(t===El.month)return e.startOfMonth(n);if(t===El.day)return e.startOfDay(n);let r=n;return t{var o;let a=i?i():V0(t,n,V$(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,a)&&(a=V0(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,a)&&(a=V0(t,n,e.maxDate));const s=DO((o=e.disableIgnoringDatePartForTimeValidation)!=null?o:!1,t);return e.minTime!=null&&s(e.minTime,a)&&(a=V0(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:ZI(t,a,e.minTime))),e.maxTime!=null&&s(a,e.maxTime)&&(a=V0(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:ZI(t,a,e.maxTime))),a},wne=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` -`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},ZVe=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},Px=(e,t,n)=>{const r=[],i=e.dateWithTimezone(void 0,t),o=e.startOfWeek(i),a=e.endOfWeek(i);let s=o;for(;e.isBefore(s,a);)r.push(s),s=e.addDays(s,1);return r.map(l=>e.formatByString(l,n))},kne=(e,t,n,r)=>{switch(n){case"month":return z$(e,e.dateWithTimezone(void 0,t)).map(i=>e.formatByString(i,r));case"weekDay":return Px(e,t,r);case"meridiem":{const i=e.dateWithTimezone(void 0,t);return[e.startOfDay(i),e.endOfDay(i)].map(o=>e.formatByString(o,r))}default:return[]}},xne=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length{if(i.type==="day"&&i.contentType==="digit-with-letter"){const a=e.setDate(r.longestMonth,n);return e.formatByString(a,i.format)}const o=n.toString();return i.hasLeadingZerosInInput?xne(e,o,i.maxLength):o},XVe=(e,t,n,r,i,o,a)=>{const s=ZVe(r),l=r==="Home",u=r==="End",c=n.value===""||l||u,d=()=>{const h=i[n.type]({currentDate:o,format:n.format,contentType:n.contentType}),m=v=>Cne(e,t,v,h,n),b=n.type==="minutes"&&a!=null&&a.minutesStep?a.minutesStep:1;let y=parseInt(n.value,10)+s*b;if(c){if(n.type==="year"&&!u&&!l)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);s>0||l?y=h.minimum:y=h.maximum}return y%b!==0&&((s<0||l)&&(y+=b-(b+y)%b),(s>0||u)&&(y-=y%b)),y>h.maximum?m(h.minimum+(y-h.maximum-1)%(h.maximum-h.minimum+1)):y{const h=kne(e,t,n.type,n.format);if(h.length===0)return n.value;if(c)return s>0||l?h[0]:h[h.length-1];const b=(h.indexOf(n.value)+h.length+s)%h.length;return h[b]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?d():p()},H$=(e,t)=>{let n=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(n).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&n.length===1&&(n=`${n}‎`),t==="input-rtl"&&(n=`⁨${n}⁩`),n},Jh=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),Ane=(e,t)=>{let n=0,r=t?1:0;const i=[];for(let o=0;o{switch(r.type){case"year":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.dateWithTimezone(void 0,t),i).length,format:i});case"month":return n.fieldMonthPlaceholder({contentType:r.contentType,format:i});case"day":return n.fieldDayPlaceholder({format:i});case"weekDay":return n.fieldWeekDayPlaceholder({contentType:r.contentType,format:i});case"hours":return n.fieldHoursPlaceholder({format:i});case"minutes":return n.fieldMinutesPlaceholder({format:i});case"seconds":return n.fieldSecondsPlaceholder({format:i});case"meridiem":return n.fieldMeridiemPlaceholder({format:i});default:return i}},dV=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),_ne=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,Rne=(e,t,n,r,i)=>{if(n!=="digit")return!1;const o=e.dateWithTimezone(void 0,t);switch(r){case"year":return _ne(e,t,i)?e.formatByString(e.setYear(o,1),i)==="0001":e.formatByString(e.setYear(o,2001),i)==="01";case"month":return e.formatByString(e.startOfYear(o),i).length>1;case"day":return e.formatByString(e.startOfMonth(o),i).length>1;case"weekDay":return e.formatByString(e.startOfWeek(o),i).length>1;case"hours":return e.formatByString(e.setHours(o,1),i).length>1;case"minutes":return e.formatByString(e.setMinutes(o,1),i).length>1;case"seconds":return e.formatByString(e.setSeconds(o,1),i).length>1;default:throw new Error("Invalid section type")}},JVe=(e,t)=>{const n=[],{start:r,end:i}=e.escapedCharacters,o=new RegExp(`(\\${r}[^\\${i}]*\\${i})+`,"g");let a=null;for(;a=o.exec(t);)n.push({start:a.index,end:o.lastIndex-1});return n},fV=(e,t,n,r,i,o,a,s)=>{let l="";const u=[],c=e.date(),d=S=>{if(S==="")return null;const k=wne(e,S),C=Rne(e,t,k.contentType,k.type,S),w=a?C:k.contentType==="digit",E=i!=null&&e.isValid(i);let $=E?e.formatByString(i,S):"",N=null;if(w)if(C)N=$===""?e.formatByString(c,S).length:$.length;else{if(k.maxLength==null)throw new Error(`MUI: The token ${S} should have a 'maxDigitNumber' property on it's adapter`);N=k.maxLength,E&&($=xne(e,$,N))}return u.push(L({},k,{format:S,maxLength:N,value:$,placeholder:KVe(e,t,n,k,S),hasLeadingZeros:C,hasLeadingZerosInFormat:C,hasLeadingZerosInInput:w,startSeparator:u.length===0?l:"",endSeparator:"",modified:!1})),null};let p=10,h=r,m=e.expandFormat(r);for(;m!==h;)if(h=m,m=e.expandFormat(h),p-=1,p<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const b=m,O=JVe(e,b),y=new RegExp(`^(${Object.keys(e.formatTokenMap).sort((S,k)=>k.length-S.length).join("|")})`,"g");let v="";for(let S=0;SN.start<=S&&N.end>=S),C=b[S],w=k!=null,E=`${v}${b.slice(S)}`,$=y.test(E);!w&&C.match(/([A-Za-z]+)/)&&$?(v=E.slice(0,y.lastIndex),S+=y.lastIndex-1):w&&(k==null?void 0:k.start)===S||(k==null?void 0:k.end)===S||(d(v),v="",u.length===0?l+=C:u[u.length-1].endSeparator+=C)}return d(v),u.map(S=>{const k=C=>{let w=C;return s&&w!==null&&w.includes(" ")&&(w=`⁩${w}⁦`),o==="spacious"&&["/",".","-"].includes(w)&&(w=` ${w} `),w};return S.startSeparator=k(S.startSeparator),S.endSeparator=k(S.endSeparator),S})},eHe=(e,t)=>{const n=t.some(s=>s.type==="day"),r=[],i=[];for(let s=0;s{const r=e.map(i=>{const o=H$(i,t?"input-rtl":"input-ltr");return`${i.startSeparator}${o}${i.endSeparator}`}).join("");return t?`⁦${r}⁩`:r},nHe=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),i=e.endOfDay(n),{maxDaysInMonth:o,longestMonth:a}=z$(e,n).reduce((s,l)=>{const u=e.getDaysInMonth(l);return u>s.maxDaysInMonth?{maxDaysInMonth:u,longestMonth:l}:s},{maxDaysInMonth:0,longestMonth:null});return{year:({format:s})=>({minimum:0,maximum:_ne(e,t,s)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:s})=>({minimum:1,maximum:s!=null&&e.isValid(s)?e.getDaysInMonth(s):o,longestMonth:a}),weekDay:({format:s,contentType:l})=>{if(l==="digit"){const u=Px(e,t,s).map(Number);return{minimum:Math.min(...u),maximum:Math.max(...u)}}return{minimum:1,maximum:7}},hours:({format:s})=>{const l=e.getHours(i);return e.formatByString(e.endOfDay(n),s)!==l.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),s))}:{minimum:0,maximum:l}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:0})}},rHe=(e,t,n,r,i)=>{switch(n.type){case"year":return e.setYear(i,e.getYear(r));case"month":return e.setMonth(i,e.getMonth(r));case"weekDay":{const o=Px(e,t,n.format),a=e.formatByString(r,n.format),s=o.indexOf(a),u=o.indexOf(n.value)-s;return e.addDays(r,u)}case"day":return e.setDate(i,e.getDate(r));case"meridiem":{const o=e.getHours(r)<12,a=e.getHours(i);return o&&a>=12?e.addHours(i,-12):!o&&a<12?e.addHours(i,12):i}case"hours":return e.setHours(i,e.getHours(r));case"minutes":return e.setMinutes(i,e.getMinutes(r));case"seconds":return e.setSeconds(i,e.getSeconds(r));default:return i}},pV={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},hV=(e,t,n,r,i,o)=>[...r].sort((a,s)=>pV[a.type]-pV[s.type]).reduce((a,s)=>!o||s.modified?rHe(e,t,s,n,a):a,i),iHe=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,oHe=(e,t)=>{const n={};if(!t)return e.forEach((l,u)=>{const c=u===0?null:u-1,d=u===e.length-1?null:u+1;n[u]={leftIndex:c,rightIndex:d}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},i={};let o=0,a=0,s=e.length-1;for(;s>=0;){a=e.findIndex((l,u)=>{var c;return u>=o&&((c=l.endSeparator)==null?void 0:c.includes(" "))&&l.endSeparator!==" / "}),a===-1&&(a=e.length-1);for(let l=a;l>=o;l-=1)i[l]=s,r[s]=l,s-=1;o=a+1}return e.forEach((l,u)=>{const c=i[u],d=c===0?null:r[c-1],p=c===e.length-1?null:r[c+1];n[u]={leftIndex:d,rightIndex:p}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},aHe=["value","referenceDate"],Bi={emptyValue:null,getTodayValue:V$,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Ge(e,aHe);return t!=null&&r.utils.isValid(t)?t:n??qVe(r)},cleanValue:zVe,areValuesEqual:VVe,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},W$={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,i)=>!e.isValid(t)&&!!n?n:Ane(i(t),r),getValueStrFromSections:tHe,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},sHe=["localeText"],XI=I.createContext(null),Ine=function(t){var n;const{localeText:r}=t,i=Ge(t,sHe),{utils:o,localeText:a}=(n=I.useContext(XI))!=null?n:{utils:void 0,localeText:void 0},s=gt({props:i,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:u,dateFormats:c,dateLibInstance:d,adapterLocale:p,localeText:h}=s,m=I.useMemo(()=>L({},h,a,r),[h,a,r]),b=I.useMemo(()=>{if(!u)return o||null;const v=new u({locale:p,formats:c,instance:d});if(!v.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` -`));return v},[u,p,c,d,o]),O=I.useMemo(()=>b?{minDate:b.date("1900-01-01T00:00:00.000"),maxDate:b.date("2099-12-31T00:00:00.000")}:null,[b]),y=I.useMemo(()=>({utils:b,defaultDates:O,localeText:m}),[O,b,m]);return P.jsx(XI.Provider,{value:y,children:l})},lHe=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:L({},e)}}}}),Dne={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},uHe=Dne;lHe(Dne);const Vl=()=>{const e=I.useContext(XI);if(e===null)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` -`));if(e.utils===null)throw new Error(["MUI: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(` -`));const t=I.useMemo(()=>L({},uHe,e.localeText),[e.localeText]);return I.useMemo(()=>L({},e,{localeText:t}),[e,t])},Rn=()=>Vl().utils,Vp=()=>Vl().defaultDates,Ui=()=>Vl().localeText,ff=e=>{const t=Rn(),n=I.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current};function Nne(e){return At("MuiPickersToolbar",e)}_t("MuiPickersToolbar",["root","content"]);const cHe=e=>{const{classes:t,isLandscape:n}=e;return kt({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},Nne,t)},dHe=Se("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>L({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),fHe=Se("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>{var t;return{display:"flex",flexWrap:"wrap",width:"100%",justifyContent:e.isLandscape?"flex-start":"space-between",flexDirection:e.isLandscape?(t=e.landscapeDirection)!=null?t:"column":"row",flex:1,alignItems:e.isLandscape?"flex-start":"center"}}),Q$=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersToolbar"}),{children:i,className:o,toolbarTitle:a,hidden:s,titleId:l}=r,u=r,c=cHe(u);return s?null:P.jsxs(dHe,{ref:n,className:Je(c.root,o),ownerState:u,children:[P.jsx(br,{color:"text.secondary",variant:"overline",id:l,children:a}),P.jsx(fHe,{className:c.content,ownerState:u,children:i})]})});function pHe(e){return At("MuiDatePickerToolbar",e)}_t("MuiDatePickerToolbar",["root","title"]);const hHe=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views"],mHe=e=>{const{classes:t}=e;return kt({root:["root"],title:["title"]},pHe,t)},gHe=Se(Q$,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),bHe=Se(br,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>L({},e.isLandscape&&{margin:"auto 16px auto auto"})),yHe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDatePickerToolbar"}),{value:i,isLandscape:o,toolbarFormat:a,toolbarPlaceholder:s="––",views:l}=r,u=Ge(r,hHe),c=Rn(),d=Ui(),p=mHe(r),h=I.useMemo(()=>{if(!i)return s;const b=d1(c,{format:a,views:l},!0);return c.formatByString(i,b)},[i,a,s,c,l]),m=r;return P.jsx(gHe,L({ref:n,toolbarTitle:d.datePickerToolbarTitle,isLandscape:o,className:p.root},u,{children:P.jsx(bHe,{variant:"h4",align:o?"left":"center",ownerState:m,className:p.title,children:h})}))}),NO=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>L({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function Pne(e,t){var n,r,i,o;const a=Rn(),s=Vp(),l=gt({props:e,name:t}),u=I.useMemo(()=>{var d;return((d=l.localeText)==null?void 0:d.toolbarTitle)==null?l.localeText:L({},l.localeText,{datePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),c=(n=l.slots)!=null?n:NO(l.components);return L({},l,{localeText:u},j$({views:l.views,openTo:l.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:(r=l.disableFuture)!=null?r:!1,disablePast:(i=l.disablePast)!=null?i:!1,minDate:Bo(a,l.minDate,s.minDate),maxDate:Bo(a,l.maxDate,s.maxDate),slots:L({toolbar:yHe},c),slotProps:(o=l.slotProps)!=null?o:l.componentsProps})}const OHe=ki(P.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),vHe=ki(P.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),EHe=ki(P.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),Lne=ki(P.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),SHe=ki(P.jsxs(I.Fragment,{children:[P.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 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),P.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),THe=ki(P.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),wHe=ki(P.jsxs(I.Fragment,{children:[P.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 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),P.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),kHe=ki(P.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"}),"Clear");function xHe(e){return At("MuiPickersArrowSwitcher",e)}_t("MuiPickersArrowSwitcher",["root","spacer","button"]);const CHe=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],AHe=["ownerState"],_He=["ownerState"],RHe=Se("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),IHe=Se("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),mV=Se(oa,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>L({},e.hidden&&{visibility:"hidden"})),DHe=e=>{const{classes:t}=e;return kt({root:["root"],spacer:["spacer"],button:["button"]},xHe,t)},Mne=I.forwardRef(function(t,n){var r,i,o,a;const l=ci().direction==="rtl",u=gt({props:t,name:"MuiPickersArrowSwitcher"}),{children:c,className:d,slots:p,slotProps:h,isNextDisabled:m,isNextHidden:b,onGoToNext:O,nextLabel:y,isPreviousDisabled:v,isPreviousHidden:S,onGoToPrevious:k,previousLabel:C}=u,w=Ge(u,CHe),E=u,$=DHe(E),N={isDisabled:m,isHidden:b,goTo:O,label:y},R={isDisabled:v,isHidden:S,goTo:k,label:C},B=(r=p==null?void 0:p.previousIconButton)!=null?r:mV,U=kn({elementType:B,externalSlotProps:h==null?void 0:h.previousIconButton,additionalProps:{size:"medium",title:R.label,"aria-label":R.label,disabled:R.isDisabled,edge:"end",onClick:R.goTo},ownerState:L({},E,{hidden:R.isHidden}),className:$.button}),V=(i=p==null?void 0:p.nextIconButton)!=null?i:mV,z=kn({elementType:V,externalSlotProps:h==null?void 0:h.nextIconButton,additionalProps:{size:"medium",title:N.label,"aria-label":N.label,disabled:N.isDisabled,edge:"start",onClick:N.goTo},ownerState:L({},E,{hidden:N.isHidden}),className:$.button}),W=(o=p==null?void 0:p.leftArrowIcon)!=null?o:vHe,X=kn({elementType:W,externalSlotProps:h==null?void 0:h.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),q=Ge(X,AHe),Y=(a=p==null?void 0:p.rightArrowIcon)!=null?a:EHe,Z=kn({elementType:Y,externalSlotProps:h==null?void 0:h.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),j=Ge(Z,_He);return P.jsxs(RHe,L({ref:n,className:Je($.root,d),ownerState:E},w,{children:[P.jsx(B,L({},U,{children:l?P.jsx(Y,L({},j)):P.jsx(W,L({},q))})),c?P.jsx(br,{variant:"subtitle1",component:"span",children:c}):P.jsx(IHe,{className:$.spacer,ownerState:E}),P.jsx(V,L({},z,{children:l?P.jsx(W,L({},q)):P.jsx(Y,L({},j))}))]}))}),p1=36,Lx=2,Mx=320,NHe=280,$x=334,$ne=232,db=48,PHe=Se(J0e)({[`& .${Ab.container}`]:{outline:0},[`& .${Ab.paper}`]:{outline:0,minWidth:Mx}}),LHe=Se(pbe)({"&:first-of-type":{padding:0}});function MHe(e){var t,n;const{children:r,onDismiss:i,open:o,slots:a,slotProps:s}=e,l=(t=a==null?void 0:a.dialog)!=null?t:PHe,u=(n=a==null?void 0:a.mobileTransition)!=null?n:Tg;return P.jsx(l,L({open:o,onClose:i},s==null?void 0:s.dialog,{TransitionComponent:u,TransitionProps:s==null?void 0:s.mobileTransition,PaperComponent:a==null?void 0:a.mobilePaper,PaperProps:s==null?void 0:s.mobilePaper,children:P.jsx(LHe,{children:r})}))}function $He(e){return At("MuiPickersPopper",e)}_t("MuiPickersPopper",["root","paper"]);function Rh(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const FHe=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},cw=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?cw(t.shadowRoot):t:null},Y$="@media (pointer: fine)",BHe="@media (prefers-reduced-motion: reduce)",Om=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),gV=Om&&Om[1]?parseInt(Om[1],10):null,bV=Om&&Om[2]?parseInt(Om[2],10):null,UHe=gV&&gV<10||bV&&bV<13||!1,Fne=()=>kg(BHe,{defaultMatches:!1})||UHe,jHe=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],zHe=e=>{const{classes:t}=e;return kt({root:["root"],paper:["paper"]},$He,t)},VHe=Se(Q1,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),HHe=Se(Na,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>L({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"}));function WHe(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){o.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),o.current=!1}},[e]);const a=jt(l=>{if(!o.current)return;const u=r.current;r.current=!1;const c=yr(i.current);if(!i.current||"clientX"in l&&WHe(l,c))return;if(n.current){n.current=!1;return}let d;l.composedPath?d=l.composedPath().indexOf(i.current)>-1:d=!c.documentElement.contains(l.target)||i.current.contains(l.target),!d&&!u&&t(l)}),s=()=>{r.current=!0};return I.useEffect(()=>{if(e){const l=yr(i.current),u=()=>{n.current=!0};return l.addEventListener("touchstart",a),l.addEventListener("touchmove",u),()=>{l.removeEventListener("touchstart",a),l.removeEventListener("touchmove",u)}}},[e,a]),I.useEffect(()=>{if(e){const l=yr(i.current);return l.addEventListener("click",a),()=>{l.removeEventListener("click",a),r.current=!1}}},[e,a]),[i,s,s]}const YHe=I.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:i,children:o,paperSlotProps:a,paperClasses:s,onPaperClick:l,onPaperTouchStart:u}=e,c=Ge(e,jHe),d=L({},i,{placement:r}),p=kn({elementType:n,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:d});return P.jsx(n,L({},c,p,{onClick:h=>{var m;l(h),(m=p.onClick)==null||m.call(p,h)},onTouchStart:h=>{var m;u(h),(m=p.onTouchStart)==null||m.call(p,h)},ownerState:d,children:o}))});function GHe(e){var t,n,r,i;const o=gt({props:e,name:"MuiPickersPopper"}),{anchorEl:a,children:s,containerRef:l=null,shouldRestoreFocus:u,onBlur:c,onDismiss:d,open:p,role:h,placement:m,slots:b,slotProps:O,reduceAnimations:y}=o;I.useEffect(()=>{function Z(j){p&&(j.key==="Escape"||j.key==="Esc")&&d()}return document.addEventListener("keydown",Z),()=>{document.removeEventListener("keydown",Z)}},[d,p]);const v=I.useRef(null);I.useEffect(()=>{h==="tooltip"||u&&!u()||(p?v.current=cw(document):v.current&&v.current instanceof HTMLElement&&setTimeout(()=>{v.current instanceof HTMLElement&&v.current.focus()}))},[p,h,u]);const[S,k,C]=QHe(p,c??d),w=I.useRef(null),E=yn(w,l),$=yn(E,S),N=o,R=zHe(N),B=Fne(),U=y??B,V=Z=>{Z.key==="Escape"&&(Z.stopPropagation(),d())},z=((t=b==null?void 0:b.desktopTransition)!=null?t:U)?Tg:iT,W=(n=b==null?void 0:b.desktopTrapFocus)!=null?n:JQ,X=(r=b==null?void 0:b.desktopPaper)!=null?r:HHe,q=(i=b==null?void 0:b.popper)!=null?i:VHe,Y=kn({elementType:q,externalSlotProps:O==null?void 0:O.popper,additionalProps:{transition:!0,role:h,open:p,anchorEl:a,placement:m,onKeyDown:V},className:R.root,ownerState:o});return P.jsx(q,L({},Y,{children:({TransitionProps:Z,placement:j})=>P.jsx(W,L({open:p,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:h==="tooltip",isEnabled:()=>!0},O==null?void 0:O.desktopTrapFocus,{children:P.jsx(z,L({},Z,O==null?void 0:O.desktopTransition,{children:P.jsx(YHe,{PaperComponent:X,ownerState:N,popperPlacement:j,ref:$,onPaperClick:k,onPaperTouchStart:C,paperClasses:R.paper,paperSlotProps:O==null?void 0:O.desktopPaper,children:s})}))}))}))}function qHe(e){return At("MuiPickersToolbarText",e)}const yV=_t("MuiPickersToolbarText",["root","selected"]),ZHe=["className","selected","value"],XHe=e=>{const{classes:t,selected:n}=e;return kt({root:["root",n&&"selected"]},qHe,t)},KHe=Se(br,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${yV.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${yV.selected}`]:{color:(e.vars||e).palette.text.primary}})),G$=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersToolbarText"}),{className:i,value:o}=r,a=Ge(r,ZHe),s=XHe(r);return P.jsx(KHe,L({ref:n,className:Je(i,s.root),component:"span"},a,{children:o}))}),JHe=["align","className","selected","typographyClassName","value","variant","width"],eWe=e=>{const{classes:t}=e;return kt({root:["root"]},Nne,t)},tWe=Se(md,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),Ka=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersToolbarButton"}),{align:i,className:o,selected:a,typographyClassName:s,value:l,variant:u,width:c}=r,d=Ge(r,JHe),p=eWe(r);return P.jsx(tWe,L({variant:"text",ref:n,className:Je(o,p.root)},c?{sx:{width:c}}:{},d,{children:P.jsx(G$,{align:i,className:s,variant:u,value:l,selected:a})}))}),q$=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:i})=>{var o,a;const s=Rn(),l=I.useRef(n),u=(o=t??l.current)!=null?o:i.emptyValue,c=I.useMemo(()=>i.getTimezone(s,u),[s,i,u]),d=jt(b=>c==null?b:i.setTimezone(s,c,b)),p=(a=e??c)!=null?a:"default",h=I.useMemo(()=>i.setTimezone(s,p,u),[i,s,p,u]),m=jt((b,...O)=>{const y=d(b);r==null||r(y,...O)});return{value:h,handleValueChange:m,timezone:p}},qg=({name:e,timezone:t,value:n,defaultValue:r,onChange:i,valueManager:o})=>{const[a,s]=Xi({name:e,state:"value",controlled:n,default:r??o.emptyValue}),l=jt((u,...c)=>{s(u),i==null||i(u,...c)});return q$({timezone:t,value:a,defaultValue:void 0,onChange:l,valueManager:o})};function Bne(e,t,n,r){const{value:i,onError:o}=e,a=Vl(),s=I.useRef(r),l=t({adapter:a,value:i,props:e});return I.useEffect(()=>{o&&!n(l,s.current)&&o(l,i),s.current=l},[n,o,s,l,i]),l}const nWe=e=>{const t=Rn(),n=Ui(),r=Vl(),o=ci().direction==="rtl",{valueManager:a,fieldValueManager:s,valueType:l,validator:u,internalProps:c,internalProps:{value:d,defaultValue:p,referenceDate:h,onChange:m,format:b,formatDensity:O="dense",selectedSections:y,onSelectedSectionsChange:v,shouldRespectLeadingZeros:S=!1,timezone:k}}=e,{timezone:C,value:w,handleValueChange:E}=q$({timezone:k,value:d,defaultValue:p,onChange:m,valueManager:a}),$=I.useMemo(()=>nHe(t,C),[t,C]),N=I.useCallback((ce,ge=null)=>s.getSectionsFromValue(t,ce,ge,o,ue=>fV(t,C,n,b,ue,O,S,o)),[s,b,n,o,S,t,O,C]),R=I.useMemo(()=>s.getValueStrFromSections(N(a.emptyValue),o),[s,N,a.emptyValue,o]),[B,U]=I.useState(()=>{const ce=N(w),ge={sections:ce,value:w,referenceValue:a.emptyValue,tempValueStrAndroid:null},ue=GVe(ce),xe=a.getInitialReferenceValue({referenceDate:h,value:w,utils:t,props:c,granularity:ue,timezone:C});return L({},ge,{referenceValue:xe})}),[V,z]=Xi({controlled:y,default:null,name:"useField",state:"selectedSectionIndexes"}),W=ce=>{z(ce),v==null||v(ce),U(ge=>L({},ge,{selectedSectionQuery:null}))},X=I.useMemo(()=>{if(V==null)return null;if(V==="all")return{startIndex:0,endIndex:B.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof V=="number")return{startIndex:V,endIndex:V};if(typeof V=="string"){const ce=B.sections.findIndex(ge=>ge.type===V);return{startIndex:ce,endIndex:ce}}return V},[V,B.sections]),q=({value:ce,referenceValue:ge,sections:ue})=>{if(U(Ne=>L({},Ne,{sections:ue,value:ce,referenceValue:ge,tempValueStrAndroid:null})),a.areValuesEqual(t,B.value,ce))return;const xe={validationError:u({adapter:r,value:ce,props:L({},c,{value:ce,timezone:C})})};E(ce,xe)},Y=(ce,ge)=>{const ue=[...B.sections];return ue[ce]=L({},ue[ce],{value:ge,modified:!0}),Ane(ue,o)},Z=()=>{q({value:a.emptyValue,referenceValue:B.referenceValue,sections:N(a.emptyValue)})},j=()=>{if(X==null)return;const ce=B.sections[X.startIndex],ge=s.getActiveDateManager(t,B,ce),xe=ge.getSections(B.sections).filter(Me=>Me.value!=="").length===(ce.value===""?0:1),Ne=Y(X.startIndex,""),Ve=xe?null:t.date(new Date("")),Ke=ge.getNewValuesFromNewActiveDate(Ve);(Ve!=null&&!t.isValid(Ve))!=(ge.date!=null&&!t.isValid(ge.date))?q(L({},Ke,{sections:Ne})):U(Me=>L({},Me,Ke,{sections:Ne,tempValueStrAndroid:null}))},se=ce=>{const ge=(Ne,Ve)=>{const Ke=t.parse(Ne,b);if(Ke==null||!t.isValid(Ke))return null;const Me=fV(t,C,n,b,Ke,O,S,o);return hV(t,C,Ke,Me,Ve,!1)},ue=s.parseValueStr(ce,B.referenceValue,ge),xe=s.updateReferenceValue(t,ue,B.referenceValue);q({value:ue,referenceValue:xe,sections:N(ue,B.sections)})},ve=({activeSection:ce,newSectionValue:ge,shouldGoToNextSection:ue})=>{ue&&X&&X.startIndexL({},ye,Me,{sections:Ne,tempValueStrAndroid:null}))},G=ce=>U(ge=>L({},ge,{tempValueStrAndroid:ce}));return I.useEffect(()=>{const ce=N(B.value);U(ge=>L({},ge,{sections:ce}))},[b,t.locale]),I.useEffect(()=>{let ce=!1;a.areValuesEqual(t,B.value,w)?ce=a.getTimezone(t,B.value)!==a.getTimezone(t,w):ce=!0,ce&&U(ge=>L({},ge,{value:w,referenceValue:s.updateReferenceValue(t,w,ge.referenceValue),sections:N(w)}))},[w]),{state:B,selectedSectionIndexes:X,setSelectedSections:W,clearValue:Z,clearActiveSection:j,updateSectionValue:ve,updateValueFromValueStr:se,setTempAndroidValueStr:G,sectionsValueBoundaries:$,placeholder:R,timezone:C}},rWe=5e3,bh=e=>e.saveQuery!=null,iWe=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:i})=>{const o=Rn(),[a,s]=I.useState(null),l=jt(()=>s(null));I.useEffect(()=>{var h;a!=null&&((h=e[a.sectionIndex])==null?void 0:h.type)!==a.sectionType&&l()},[e,a,l]),I.useEffect(()=>{if(a!=null){const h=setTimeout(()=>l(),rWe);return()=>{window.clearTimeout(h)}}return()=>{}},[a,l]);const u=({keyPressed:h,sectionIndex:m},b,O)=>{const y=h.toLowerCase(),v=e[m];if(a!=null&&(!O||O(a.value))&&a.sectionIndex===m){const k=`${a.value}${y}`,C=b(k,v);if(!bh(C))return s({sectionIndex:m,value:k,sectionType:v.type}),C}const S=b(y,v);return bh(S)&&!S.saveQuery?(l(),null):(s({sectionIndex:m,value:y,sectionType:v.type}),bh(S)?null:S)},c=h=>{const m=(y,v,S)=>{const k=v.filter(C=>C.toLowerCase().startsWith(S));return k.length===0?{saveQuery:!1}:{sectionValue:k[0],shouldGoToNextSection:k.length===1}},b=(y,v,S,k)=>{const C=w=>kne(o,i,v.type,w);if(v.contentType==="letter")return m(v.format,C(v.format),y);if(S&&k!=null&&wne(o,S).contentType==="letter"){const w=C(S),E=m(S,w,y);return bh(E)?{saveQuery:!1}:L({},E,{sectionValue:k(E.sectionValue,w)})}return{saveQuery:!1}};return u(h,(y,v)=>{switch(v.type){case"month":{const S=k=>dV(o,k,o.formats.month,v.format);return b(y,v,o.formats.month,S)}case"weekDay":{const S=(k,C)=>C.indexOf(k).toString();return b(y,v,o.formats.weekday,S)}case"meridiem":return b(y,v);default:return{saveQuery:!1}}})},d=h=>{const m=(O,y)=>{const v=+`${O}`,S=n[y.type]({currentDate:null,format:y.format,contentType:y.contentType});if(v>S.maximum)return{saveQuery:!1};if(vS.maximum||O.length===S.maximum.toString().length;return{sectionValue:Cne(o,i,v,S,y),shouldGoToNextSection:k}};return u(h,(O,y)=>{if(y.contentType==="digit"||y.contentType==="digit-with-letter")return m(O,y);if(y.type==="month"){const v=Rne(o,i,"digit","month","MM"),S=m(O,{type:y.type,format:"MM",hasLeadingZerosInFormat:v,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(bh(S))return S;const k=dV(o,S.sectionValue,"MM",y.format);return L({},S,{sectionValue:k})}if(y.type==="weekDay"){const v=m(O,y);if(bh(v))return v;const S=Px(o,i,y.format)[Number(v.sectionValue)-1];return L({},v,{sectionValue:S})}return{saveQuery:!1}},O=>!Number.isNaN(Number(O)))};return{applyCharacterEditing:jt(h=>{const m=e[h.sectionIndex],O=!Number.isNaN(Number(h.keyPressed))?d(h):c(h);O==null?r(null):t({activeSection:m,newSectionValue:O.sectionValue,shouldGoToNextSection:O.shouldGoToNextSection})}),resetCharacterQuery:l}},oWe=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],Z$=e=>{const t=Rn(),{state:n,selectedSectionIndexes:r,setSelectedSections:i,clearValue:o,clearActiveSection:a,updateSectionValue:s,updateValueFromValueStr:l,setTempAndroidValueStr:u,sectionsValueBoundaries:c,placeholder:d,timezone:p}=nWe(e),{inputRef:h,internalProps:m,internalProps:{readOnly:b=!1,unstableFieldRef:O,minutesStep:y},forwardedProps:{onClick:v,onKeyDown:S,onFocus:k,onBlur:C,onMouseUp:w,onPaste:E,error:$,clearable:N,onClear:R,disabled:B},fieldValueManager:U,valueManager:V,validator:z}=e,W=Ge(e.forwardedProps,oWe),{applyCharacterEditing:X,resetCharacterQuery:q}=iWe({sections:n.sections,updateSectionValue:s,sectionsValueBoundaries:c,setTempAndroidValueStr:u,timezone:p}),Y=I.useRef(null),Z=yn(h,Y),j=I.useRef(void 0),ve=ci().direction==="rtl",G=I.useMemo(()=>oHe(n.sections,ve),[n.sections,ve]),ce=()=>{var ee;if(b){i(null);return}const J=(ee=Y.current.selectionStart)!=null?ee:0;let Re;J<=n.sections[0].startInInput||J>=n.sections[n.sections.length-1].endInInput?Re=1:Re=n.sections.findIndex(De=>De.startInInput-De.startSeparator.length>J);const Le=Re===-1?n.sections.length-1:Re-1;i(Le)},ge=jt((ee,...J)=>{ee.isDefaultPrevented()||(v==null||v(ee,...J),ce())}),ue=jt(ee=>{w==null||w(ee),ee.preventDefault()}),xe=jt((...ee)=>{k==null||k(...ee);const J=Y.current;window.clearTimeout(j.current),j.current=setTimeout(()=>{!J||J!==Y.current||r!=null||b||(J.value.length&&Number(J.selectionEnd)-Number(J.selectionStart)===J.value.length?i("all"):ce())})}),Ne=jt((...ee)=>{C==null||C(...ee),i(null)}),Ve=jt(ee=>{if(E==null||E(ee),b){ee.preventDefault();return}const J=ee.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const Re=n.sections[r.startIndex],Le=/^[a-zA-Z]+$/.test(J),De=/^[0-9]+$/.test(J),ie=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(J);if(Re.contentType==="letter"&&Le||Re.contentType==="digit"&&De||Re.contentType==="digit-with-letter"&&ie){q(),s({activeSection:Re,newSectionValue:J,shouldGoToNextSection:!0}),ee.preventDefault();return}if(Le||De){ee.preventDefault();return}}ee.preventDefault(),q(),l(J)}),Ke=jt(ee=>{if(b)return;const J=ee.target.value;if(J===""){q(),o();return}const Re=ee.nativeEvent.data,Le=Re&&Re.length>1,De=Le?Re:J,ie=Jh(De);if(r==null||Le){l(Le?Re:ie);return}let fe;if(r.startIndex===0&&r.endIndex===n.sections.length-1&&ie.length===1)fe=ie;else{const de=Jh(U.getValueStrFromSections(n.sections,ve));let Oe=-1,Te=-1;for(let et=0;etrt.end)return;const xt=ie.length-de.length+rt.end-Jh(rt.endSeparator||"").length;fe=ie.slice(rt.start+Jh(rt.startSeparator||"").length,xt)}if(fe.length===0){iHe()?u(De):(q(),a());return}X({keyPressed:fe,sectionIndex:r.startIndex})}),Me=jt(ee=>{switch(S==null||S(ee),!0){case(ee.key==="a"&&(ee.ctrlKey||ee.metaKey)):{ee.preventDefault(),i("all");break}case ee.key==="ArrowRight":{if(ee.preventDefault(),r==null)i(G.startIndex);else if(r.startIndex!==r.endIndex)i(r.endIndex);else{const J=G.neighbors[r.startIndex].rightIndex;J!==null&&i(J)}break}case ee.key==="ArrowLeft":{if(ee.preventDefault(),r==null)i(G.endIndex);else if(r.startIndex!==r.endIndex)i(r.startIndex);else{const J=G.neighbors[r.startIndex].leftIndex;J!==null&&i(J)}break}case ee.key==="Delete":{if(ee.preventDefault(),b)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?o():a(),q();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(ee.key):{if(ee.preventDefault(),b||r==null)break;const J=n.sections[r.startIndex],Re=U.getActiveDateManager(t,n,J),Le=XVe(t,p,J,ee.key,c,Re.date,{minutesStep:y});s({activeSection:J,newSectionValue:Le,shouldGoToNextSection:!1});break}}});Kr(()=>{if(!Y.current)return;if(r==null){Y.current.scrollLeft&&(Y.current.scrollLeft=0);return}const ee=n.sections[r.startIndex],J=n.sections[r.endIndex];let Re=ee.startInInput,Le=J.endInInput;if(r.shouldSelectBoundarySelectors&&(Re-=ee.startSeparator.length,Le+=J.endSeparator.length),Re!==Y.current.selectionStart||Le!==Y.current.selectionEnd){const De=Y.current.scrollTop;Y.current===cw(document)&&Y.current.setSelectionRange(Re,Le),Y.current.scrollTop=De}});const Ye=Bne(L({},m,{value:n.value,timezone:p}),z,V.isSameError,V.defaultErrorState),ye=I.useMemo(()=>$!==void 0?$:V.hasError(Ye),[V,Ye,$]);I.useEffect(()=>{!ye&&!r&&q()},[n.referenceValue,r,ye]),I.useEffect(()=>(Y.current&&Y.current===document.activeElement&&i("all"),()=>window.clearTimeout(j.current)),[]),I.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(q(),a())},[n.tempValueStrAndroid]);const ze=I.useMemo(()=>{var ee;return(ee=n.tempValueStrAndroid)!=null?ee:U.getValueStrFromSections(n.sections,ve)},[n.sections,U,n.tempValueStrAndroid,ve]),$e=I.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"numeric",[r,n.sections]),We=Y.current&&Y.current===cw(document),dt=V.areValuesEqual(t,n.value,V.emptyValue),Be=!We&&dt;I.useImperativeHandle(O,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var ee,J;const Re=(ee=Y.current.selectionStart)!=null?ee:0,Le=(J=Y.current.selectionEnd)!=null?J:0;if(Re===0&&Le===0)return null;const De=Re<=n.sections[0].startInInput?1:n.sections.findIndex(ie=>ie.startInInput-ie.startSeparator.length>Re);return De===-1?n.sections.length-1:De-1},setSelectedSections:ee=>i(ee)}));const re=jt((ee,...J)=>{var Re;ee.preventDefault(),R==null||R(ee,...J),o(),Y==null||(Re=Y.current)==null||Re.focus(),i(0)});return L({placeholder:d,autoComplete:"off",disabled:!!B},W,{value:Be?"":ze,inputMode:$e,readOnly:b,onClick:ge,onFocus:xe,onBlur:Ne,onPaste:Ve,onChange:Ke,onKeyDown:Me,onMouseUp:ue,onClear:re,error:ye,ref:Z,clearable:!!(N&&!dt&&!b&&!B)})},aWe=({open:e,onOpen:t,onClose:n})=>{const r=I.useRef(typeof e=="boolean").current,[i,o]=I.useState(!1);I.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");o(e)}},[r,e]);const a=I.useCallback(s=>{r||o(s),s&&t&&t(),!s&&n&&n()},[r,t,n]);return{isOpen:i,setIsOpen:a}},sWe=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:i}=e,o=!i&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?o&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?o?!0:n(r.lastPublishedValue):!1},lWe=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:i,closeOnSelect:o}=e,a=!i&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&o?a?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},uWe=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},cWe=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i})=>{const{onAccept:o,onChange:a,value:s,defaultValue:l,closeOnSelect:u=r==="desktop",selectedSections:c,onSelectedSectionsChange:d,timezone:p}=e,{current:h}=I.useRef(l),{current:m}=I.useRef(s!==void 0),b=Rn(),O=Vl(),[y,v]=Xi({controlled:c,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:S,setIsOpen:k}=aWe(e),[C,w]=I.useState(()=>{let xe;return s!==void 0?xe=s:h!==void 0?xe=h:xe=t.emptyValue,{draft:xe,lastPublishedValue:xe,lastCommittedValue:xe,lastControlledValue:s,hasBeenModifiedSinceMount:!1}}),{timezone:E,handleValueChange:$}=q$({timezone:p,value:s,defaultValue:h,onChange:a,valueManager:t});Bne(L({},e,{value:C.draft,timezone:E}),i,t.isSameError,t.defaultErrorState);const N=jt(xe=>{const Ne={action:xe,dateState:C,hasChanged:Ye=>!t.areValuesEqual(b,xe.value,Ye),isControlled:m,closeOnSelect:u},Ve=sWe(Ne),Ke=lWe(Ne),Me=uWe(Ne);if(w(Ye=>L({},Ye,{draft:xe.value,lastPublishedValue:Ve?xe.value:Ye.lastPublishedValue,lastCommittedValue:Ke?xe.value:Ye.lastCommittedValue,hasBeenModifiedSinceMount:!0})),Ve){const ye={validationError:xe.name==="setValueFromField"?xe.context.validationError:i({adapter:O,value:xe.value,props:L({},e,{value:xe.value,timezone:E})})};xe.name==="setValueFromShortcut"&&xe.shortcut!=null&&(ye.shortcut=xe.shortcut),$(xe.value,ye)}Ke&&o&&o(xe.value),Me&&k(!1)});if(s!==void 0&&(C.lastControlledValue===void 0||!t.areValuesEqual(b,C.lastControlledValue,s))){const xe=t.areValuesEqual(b,C.draft,s);w(Ne=>L({},Ne,{lastControlledValue:s},xe?{}:{lastCommittedValue:s,lastPublishedValue:s,draft:s,hasBeenModifiedSinceMount:!0}))}const R=jt(()=>{N({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),B=jt(()=>{N({value:C.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),U=jt(()=>{N({value:C.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),V=jt(()=>{N({value:C.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),z=jt(()=>{N({value:t.getTodayValue(b,E,n),name:"setValueFromAction",pickerAction:"today"})}),W=jt(()=>k(!0)),X=jt(()=>k(!1)),q=jt((xe,Ne="partial")=>N({name:"setValueFromView",value:xe,selectionState:Ne})),Y=jt((xe,Ne,Ve)=>N({name:"setValueFromShortcut",value:xe,changeImportance:Ne??"accept",shortcut:Ve})),Z=jt((xe,Ne)=>N({name:"setValueFromField",value:xe,context:Ne})),j=jt(xe=>{v(xe),d==null||d(xe)}),se={onClear:R,onAccept:B,onDismiss:U,onCancel:V,onSetToday:z,onOpen:W,onClose:X},ve={value:C.draft,onChange:Z,selectedSections:y,onSelectedSectionsChange:j},G=I.useMemo(()=>t.cleanValue(b,C.draft),[b,t,C.draft]),ce={value:G,onChange:q,onClose:X,open:S,onSelectedSectionsChange:j},ue=L({},se,{value:G,onChange:q,onSelectShortcut:Y,isValid:xe=>{const Ne=i({adapter:O,value:xe,props:L({},e,{value:xe,timezone:E})});return!t.hasError(Ne)}});return{open:S,fieldProps:ve,viewProps:ce,layoutProps:ue,actions:se}};function PO({onChange:e,onViewChange:t,openTo:n,view:r,views:i,autoFocus:o,focusedView:a,onFocusedViewChange:s}){var l,u;const c=I.useRef(n),d=I.useRef(i),p=I.useRef(i.includes(n)?n:i[0]),[h,m]=Xi({name:"useViews",state:"view",controlled:r,default:p.current}),b=I.useRef(o?h:null),[O,y]=Xi({name:"useViews",state:"focusedView",controlled:a,default:b.current});I.useEffect(()=>{(c.current&&c.current!==n||d.current&&d.current.some(N=>!i.includes(N)))&&(m(i.includes(n)?n:i[0]),d.current=i,c.current=n)},[n,m,h,i]);const v=i.indexOf(h),S=(l=i[v-1])!=null?l:null,k=(u=i[v+1])!=null?u:null,C=jt((N,R)=>{y(R?N:B=>N===B?null:B),s==null||s(N,R)}),w=jt(N=>{C(N,!0),N!==h&&(m(N),t&&t(N))}),E=jt(()=>{k&&w(k)}),$=jt((N,R,B)=>{const U=R==="finish",V=B?i.indexOf(B){const{onChange:o,open:a,onSelectedSectionsChange:s,onClose:l}=t,{views:u,openTo:c,onViewChange:d,disableOpenPicker:p,viewRenderers:h,timezone:m}=e,b=Ge(e,dWe),{view:O,setView:y,defaultView:v,focusedView:S,setFocusedView:k,setValueAndGoToNextView:C}=PO({view:void 0,views:u,openTo:c,onChange:o,onViewChange:d,autoFocus:i}),{hasUIView:w,viewModeLookup:E}=I.useMemo(()=>u.reduce((z,W)=>{let X;return p?X="field":h[W]!=null?X="UI":X="field",z.viewModeLookup[W]=X,X==="UI"&&(z.hasUIView=!0),z},{hasUIView:!1,viewModeLookup:{}}),[p,h,u]),$=I.useMemo(()=>u.reduce((z,W)=>h[W]!=null&&pg(W)?z+1:z,0),[h,u]),N=E[O],R=jt(()=>N==="UI"),[B,U]=I.useState(N==="UI"?O:null);return B!==O&&E[O]==="UI"&&U(O),Kr(()=>{N==="field"&&a&&(l(),setTimeout(()=>{r==null||r.current.focus(),s(O)}))},[O]),Kr(()=>{if(!a)return;let z=O;N==="field"&&B!=null&&(z=B),z!==v&&E[z]==="UI"&&E[v]==="UI"&&(z=v),z!==O&&y(z),k(z,!0)},[a]),{hasUIView:w,shouldRestoreFocus:R,layoutProps:{views:u,view:B,onViewChange:y},renderCurrentView:()=>{if(B==null)return null;const z=h[B];return z==null?null:z(L({},b,n,t,{views:u,timezone:m,onChange:C,view:B,onViewChange:y,focusedView:S,onFocusedViewChange:k,showViewSwitcher:$>1,timeViewsCount:$}))}}};function OV(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const pWe=(e,t)=>{const[n,r]=I.useState(OV);return Kr(()=>{const o=()=>{r(OV())};return window.addEventListener("orientationchange",o),()=>{window.removeEventListener("orientationchange",o)}},[]),Rh(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},hWe=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:i}=e,o=pWe(n.views,i);return{layoutProps:L({},n,t,{isLandscape:o,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},mWe=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(` -`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}};mWe(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const Une=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:i,additionalViewProps:o,validator:a,autoFocusView:s})=>{const l=cWe({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:a}),u=fWe({props:e,inputRef:i,additionalViewProps:o,autoFocusView:s,propsFromPickerValue:l.viewProps}),c=hWe({props:e,wrapperVariant:r,propsFromPickerValue:l.layoutProps,propsFromPickerViews:u.layoutProps});return{open:l.open,actions:l.actions,fieldProps:l.fieldProps,renderCurrentView:u.renderCurrentView,hasUIView:u.hasUIView,shouldRestoreFocus:u.shouldRestoreFocus,layoutProps:c.layoutProps}};function jne(e){return At("MuiPickersLayout",e)}const T2=_t("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]),gWe=["onAccept","onClear","onCancel","onSetToday","actions"];function bWe(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:i,actions:o}=e,a=Ge(e,gWe),s=Ui();if(o==null||o.length===0)return null;const l=o==null?void 0:o.map(u=>{switch(u){case"clear":return P.jsx(md,{onClick:n,children:s.clearButtonLabel},u);case"cancel":return P.jsx(md,{onClick:r,children:s.cancelButtonLabel},u);case"accept":return P.jsx(md,{onClick:t,children:s.okButtonLabel},u);case"today":return P.jsx(md,{onClick:i,children:s.todayButtonLabel},u);default:return null}});return P.jsx(obe,L({},a,{children:l}))}const yWe=["items","changeImportance","isLandscape","onChange","isValid"],OWe=["getValue"];function vWe(e){const{items:t,changeImportance:n,onChange:r,isValid:i}=e,o=Ge(e,yWe);if(t==null||t.length===0)return null;const a=t.map(s=>{let{getValue:l}=s,u=Ge(s,OWe);const c=l({isValid:i});return{label:u.label,onClick:()=>{r(c,n,u)},disabled:!i(c)}});return P.jsx(RY,L({dense:!0,sx:[{maxHeight:$x,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:a.map(s=>P.jsx(Th,{children:P.jsx(BN,L({},s))},s.label))}))}function EWe(e){return e.view!==null}const SWe=e=>{const{classes:t,isLandscape:n}=e;return kt({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},jne,t)},TWe=e=>{var t,n;const{wrapperVariant:r,onAccept:i,onClear:o,onCancel:a,onSetToday:s,view:l,views:u,onViewChange:c,value:d,onChange:p,onSelectShortcut:h,isValid:m,isLandscape:b,disabled:O,readOnly:y,children:v,components:S,componentsProps:k,slots:C,slotProps:w}=e,E=C??NO(S),$=w??k,N=SWe(e),R=(t=E==null?void 0:E.actionBar)!=null?t:bWe,B=kn({elementType:R,externalSlotProps:$==null?void 0:$.actionBar,additionalProps:{onAccept:i,onClear:o,onCancel:a,onSetToday:s,actions:r==="desktop"?[]:["cancel","accept"],className:N.actionBar},ownerState:L({},e,{wrapperVariant:r})}),U=P.jsx(R,L({},B)),V=E==null?void 0:E.toolbar,z=kn({elementType:V,externalSlotProps:$==null?void 0:$.toolbar,additionalProps:{isLandscape:b,onChange:p,value:d,view:l,onViewChange:c,views:u,disabled:O,readOnly:y,className:N.toolbar},ownerState:L({},e,{wrapperVariant:r})}),W=EWe(z)&&V?P.jsx(V,L({},z)):null,X=v,q=E==null?void 0:E.tabs,Y=l&&q?P.jsx(q,L({view:l,onViewChange:c},$==null?void 0:$.tabs)):null,Z=(n=E==null?void 0:E.shortcuts)!=null?n:vWe,j=kn({elementType:Z,externalSlotProps:$==null?void 0:$.shortcuts,additionalProps:{isValid:m,isLandscape:b,onChange:h,className:N.shortcuts},ownerState:{isValid:m,isLandscape:b,onChange:h,className:N.shortcuts,wrapperVariant:r}}),se=l&&Z?P.jsx(Z,L({},j)):null;return{toolbar:W,content:X,tabs:Y,actionBar:U,shortcuts:se}},wWe=e=>{const{isLandscape:t,classes:n}=e;return kt({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},jne,n)},zne=Se("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${T2.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${T2.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${T2.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));zne.propTypes={as:Q.elementType,ownerState:Q.shape({isLandscape:Q.bool.isRequired}).isRequired,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object])};const kWe=Se("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),Vne=function(t){const n=gt({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:i,tabs:o,actionBar:a,shortcuts:s}=TWe(n),{sx:l,className:u,isLandscape:c,ref:d,wrapperVariant:p}=n,h=n,m=wWe(h);return P.jsxs(zne,{ref:d,sx:l,className:Je(u,m.root),ownerState:h,children:[c?s:r,c?r:s,P.jsx(kWe,{className:m.contentWrapper,children:p==="desktop"?P.jsxs(I.Fragment,{children:[i,o]}):P.jsxs(I.Fragment,{children:[o,i]})}),a]})};function xWe(e,{disableFuture:t,maxDate:n,timezone:r}){const i=Rn();return I.useMemo(()=>{const o=i.dateWithTimezone(void 0,r),a=i.startOfMonth(t&&i.isBefore(o,n)?o:n);return!i.isAfter(a,e)},[t,n,e,i,r])}function CWe(e,{disablePast:t,minDate:n,timezone:r}){const i=Rn();return I.useMemo(()=>{const o=i.dateWithTimezone(void 0,r),a=i.startOfMonth(t&&i.isAfter(o,n)?o:n);return!i.isBefore(a,e)},[t,n,e,i,r])}function Fx(e,t,n,r){const i=Rn(),o=QVe(e,i),a=I.useCallback(s=>{const l=e==null?null:YVe(e,s,!!t,i);n(l,r??"partial")},[t,e,n,r,i]);return{meridiemMode:o,handleMeridiemChange:a}}const KI=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],JI=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],Hne=["minDateTime","maxDateTime"],AWe=[...KI,...JI,...Hne],Zg=e=>AWe.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),_We=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],X$=(e,t)=>{const n=L({},e),r={},i=o=>{n.hasOwnProperty(o)&&(r[o]=n[o],delete n[o])};return _We.forEach(i),t==="date"?KI.forEach(i):t==="time"?JI.forEach(i):t==="date-time"&&(KI.forEach(i),JI.forEach(i),Hne.forEach(i)),{forwardedProps:n,internalProps:r}},Hp=({props:e,value:t,adapter:n})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:i,shouldDisableYear:o,disablePast:a,disableFuture:s,timezone:l}=e,u=n.utils.dateWithTimezone(void 0,l),c=Bo(n.utils,e.minDate,n.defaultDates.minDate),d=Bo(n.utils,e.maxDate,n.defaultDates.maxDate);switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(r&&r(t)):return"shouldDisableDate";case!!(i&&i(t)):return"shouldDisableMonth";case!!(o&&o(t)):return"shouldDisableYear";case!!(s&&n.utils.isAfterDay(t,u)):return"disableFuture";case!!(a&&n.utils.isBeforeDay(t,u)):return"disablePast";case!!(c&&n.utils.isBeforeDay(t,c)):return"minDate";case!!(d&&n.utils.isAfterDay(t,d)):return"maxDate";default:return null}},LO=({adapter:e,value:t,props:n})=>{if(t===null)return null;const{minTime:r,maxTime:i,minutesStep:o,shouldDisableClock:a,shouldDisableTime:s,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:u,disableFuture:c,timezone:d}=n,p=e.utils.dateWithTimezone(void 0,d),h=DO(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&h(r,t)):return"minTime";case!!(i&&h(t,i)):return"maxTime";case!!(c&&e.utils.isAfter(t,p)):return"disableFuture";case!!(u&&e.utils.isBefore(t,p)):return"disablePast";case!!(s&&s(t,"hours")):return"shouldDisableTime-hours";case!!(s&&s(t,"minutes")):return"shouldDisableTime-minutes";case!!(s&&s(t,"seconds")):return"shouldDisableTime-seconds";case!!(a&&a(e.utils.getHours(t),"hours")):return"shouldDisableClock-hours";case!!(a&&a(e.utils.getMinutes(t),"minutes")):return"shouldDisableClock-minutes";case!!(a&&a(e.utils.getSeconds(t),"seconds")):return"shouldDisableClock-seconds";case!!(o&&e.utils.getMinutes(t)%o!==0):return"minutesStep";default:return null}},Bx=({props:e,value:t,adapter:n})=>{const r=Hp({adapter:n,value:t,props:e});return r!==null?r:LO({adapter:n,value:t,props:e})};function RWe(e){return At("MuiPickersDay",e)}const Tf=_t("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),IWe=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],DWe=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:i,disabled:o,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:s,classes:l}=e,u=a&&!s;return kt({root:["root",t&&!u&&"selected",o&&"disabled",!n&&"dayWithMargin",!r&&i&&"today",a&&s&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},RWe,l)},Wne=({theme:e,ownerState:t})=>L({},e.typography.caption,{width:p1,height:p1,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:cn(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Tf.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Tf.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Tf.disabled}:not(.${Tf.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Tf.disabled}&.${Tf.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${Lx}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${Tf.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),Qne=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},NWe=Se(hs,{name:"MuiPickersDay",slot:"Root",overridesResolver:Qne})(Wne),PWe=Se("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Qne})(({theme:e,ownerState:t})=>L({},Wne({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),H0=()=>{},LWe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersDay"}),{autoFocus:i=!1,className:o,day:a,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:u=!1,isAnimating:c,onClick:d,onDaySelect:p,onFocus:h=H0,onBlur:m=H0,onKeyDown:b=H0,onMouseDown:O=H0,onMouseEnter:y=H0,outsideCurrentMonth:v,selected:S=!1,showDaysOutsideCurrentMonth:k=!1,children:C,today:w=!1}=r,E=Ge(r,IWe),$=L({},r,{autoFocus:i,disabled:s,disableHighlightToday:l,disableMargin:u,selected:S,showDaysOutsideCurrentMonth:k,today:w}),N=DWe($),R=Rn(),B=I.useRef(null),U=yn(B,n);Kr(()=>{i&&!s&&!c&&!v&&B.current.focus()},[i,s,c,v]);const V=W=>{O(W),v&&W.preventDefault()},z=W=>{s||p(a),v&&W.currentTarget.focus(),d&&d(W)};return v&&!k?P.jsx(PWe,{className:Je(N.root,N.hiddenDaySpacingFiller,o),ownerState:$,role:E.role}):P.jsx(NWe,L({className:Je(N.root,o),ref:U,centerRipple:!0,disabled:s,tabIndex:S?0:-1,onKeyDown:W=>b(W,a),onFocus:W=>h(W,a),onBlur:W=>m(W,a),onMouseEnter:W=>y(W,a),onClick:z,onMouseDown:V},E,{ownerState:$,children:C||R.format(a,"dayOfMonth")}))}),MWe=I.memo(LWe),$We=e=>At("MuiPickersSlideTransition",e),xs=_t("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),FWe=["children","className","reduceAnimations","slideDirection","transKey","classes"],BWe=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return kt(r,$We,t)},UWe=Se(RN,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${xs["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${xs["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${xs.slideEnterActive}`]:t.slideEnterActive},{[`.${xs.slideExit}`]:t.slideExit},{[`.${xs["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${xs["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${xs["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${xs["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${xs.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${xs.slideExit}`]:{transform:"translate(0%)"},[`& .${xs["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${xs["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function jWe(e){const t=gt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:i,transKey:o}=t,a=Ge(t,FWe),s=BWe(t),l=ci();if(i)return P.jsx("div",{className:Je(s.root,r),children:n});const u={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return P.jsx(UWe,{className:Je(s.root,r),childFactory:c=>I.cloneElement(c,{classNames:u}),role:"presentation",children:P.jsx(lfe,L({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:u},a,{children:n}),o)})}const Yne=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:o,disablePast:a,timezone:s})=>{const l=Vl();return I.useCallback(u=>Hp({adapter:l,value:u,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:o,disablePast:a,timezone:s}})!==null,[l,e,t,n,r,i,o,a,s])},zWe=e=>At("MuiDayCalendar",e);_t("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const VWe=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],HWe=["ownerState"],WWe=e=>{const{classes:t}=e;return kt({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},zWe,t)},Gne=(p1+Lx*2)*6,QWe=Se("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),YWe=Se("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),GWe=Se(br,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),qWe=Se(br,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),ZWe=Se(br,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>L({},e.typography.caption,{width:p1,height:p1,padding:0,margin:`0 ${Lx}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),XWe=Se("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Gne}),KWe=Se(jWe,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:Gne}),JWe=Se("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),eQe=Se("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${Lx}px 0`,display:"flex",justifyContent:"center"});function tQe(e){var t,n,r;let{parentProps:i,day:o,focusableDay:a,selectedDays:s,isDateDisabled:l,currentMonthNumber:u,isViewFocused:c}=e,d=Ge(e,VWe);const{disabled:p,disableHighlightToday:h,isMonthSwitchingAnimating:m,showDaysOutsideCurrentMonth:b,components:O,componentsProps:y,slots:v,slotProps:S,timezone:k}=i,C=Rn(),w=ff(k),E=a!==null&&C.isSameDay(o,a),$=s.some(q=>C.isSameDay(q,o)),N=C.isSameDay(o,w),R=(t=(n=v==null?void 0:v.day)!=null?n:O==null?void 0:O.Day)!=null?t:MWe,B=kn({elementType:R,externalSlotProps:(r=S==null?void 0:S.day)!=null?r:y==null?void 0:y.day,additionalProps:L({disableHighlightToday:h,showDaysOutsideCurrentMonth:b,role:"gridcell",isAnimating:m,"data-timestamp":C.toJsDate(o).valueOf()},d),ownerState:L({},i,{day:o,selected:$})}),U=Ge(B,HWe),V=I.useMemo(()=>p||l(o),[p,l,o]),z=I.useMemo(()=>C.getMonth(o)!==u,[C,o,u]),W=I.useMemo(()=>{const q=C.startOfMonth(C.setMonth(o,u));return b?C.isSameDay(o,C.startOfWeek(q)):C.isSameDay(o,q)},[u,o,b,C]),X=I.useMemo(()=>{const q=C.endOfMonth(C.setMonth(o,u));return b?C.isSameDay(o,C.endOfWeek(q)):C.isSameDay(o,q)},[u,o,b,C]);return P.jsx(R,L({},U,{day:o,disabled:V,autoFocus:c&&E,today:N,outsideCurrentMonth:z,isFirstVisibleCell:W,isLastVisibleCell:X,selected:$,tabIndex:E?0:-1,"aria-selected":$,"aria-current":N?"date":void 0}))}function nQe(e){const t=gt({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:r,currentMonth:i,selectedDays:o,focusedDay:a,loading:s,onSelectedDaysChange:l,onMonthSwitchingAnimationEnd:u,readOnly:c,reduceAnimations:d,renderLoading:p=()=>P.jsx("span",{children:"..."}),slideDirection:h,TransitionProps:m,disablePast:b,disableFuture:O,minDate:y,maxDate:v,shouldDisableDate:S,shouldDisableMonth:k,shouldDisableYear:C,dayOfWeekFormatter:w,hasFocus:E,onFocusedViewChange:$,gridLabelId:N,displayWeekNumber:R,fixedWeekNumber:B,autoFocus:U,timezone:V}=t,z=ff(V),W=Rn(),X=WWe(t),Y=ci().direction==="rtl",Z=w||((Be,re)=>W.format(re,"weekdayShort").charAt(0).toUpperCase()),j=Yne({shouldDisableDate:S,shouldDisableMonth:k,shouldDisableYear:C,minDate:y,maxDate:v,disablePast:b,disableFuture:O,timezone:V}),se=Ui(),[ve,G]=Xi({name:"DayCalendar",state:"hasFocus",controlled:E,default:U??!1}),[ce,ge]=I.useState(()=>a||z),ue=jt(Be=>{c||l(Be)}),xe=Be=>{j(Be)||(n(Be),ge(Be),$==null||$(!0),G(!0))},Ne=jt((Be,re)=>{switch(Be.key){case"ArrowUp":xe(W.addDays(re,-7)),Be.preventDefault();break;case"ArrowDown":xe(W.addDays(re,7)),Be.preventDefault();break;case"ArrowLeft":{const ee=W.addDays(re,Y?1:-1),J=W.addMonths(re,Y?1:-1),Re=Xb({utils:W,date:ee,minDate:Y?ee:W.startOfMonth(J),maxDate:Y?W.endOfMonth(J):ee,isDateDisabled:j,timezone:V});xe(Re||ee),Be.preventDefault();break}case"ArrowRight":{const ee=W.addDays(re,Y?-1:1),J=W.addMonths(re,Y?-1:1),Re=Xb({utils:W,date:ee,minDate:Y?W.startOfMonth(J):ee,maxDate:Y?ee:W.endOfMonth(J),isDateDisabled:j,timezone:V});xe(Re||ee),Be.preventDefault();break}case"Home":xe(W.startOfWeek(re)),Be.preventDefault();break;case"End":xe(W.endOfWeek(re)),Be.preventDefault();break;case"PageUp":xe(W.addMonths(re,1)),Be.preventDefault();break;case"PageDown":xe(W.addMonths(re,-1)),Be.preventDefault();break}}),Ve=jt((Be,re)=>xe(re)),Ke=jt((Be,re)=>{ve&&W.isSameDay(ce,re)&&($==null||$(!1))}),Me=W.getMonth(i),Ye=I.useMemo(()=>o.filter(Be=>!!Be).map(Be=>W.startOfDay(Be)),[W,o]),ye=Me,ze=I.useMemo(()=>I.createRef(),[ye]),$e=W.startOfWeek(z),We=I.useMemo(()=>{const Be=W.startOfMonth(i),re=W.endOfMonth(i);return j(ce)||W.isAfterDay(ce,re)||W.isBeforeDay(ce,Be)?Xb({utils:W,date:ce,minDate:Be,maxDate:re,disablePast:b,disableFuture:O,isDateDisabled:j,timezone:V}):ce},[i,O,b,ce,j,W,V]),dt=I.useMemo(()=>{const Be=W.setTimezone(i,V),re=W.getWeekArray(Be);let ee=W.addMonths(Be,1);for(;B&&re.length{re.length{var ee;const J=W.format(Be,"weekdayShort");return P.jsx(GWe,{variant:"caption",role:"columnheader","aria-label":W.format(W.addDays($e,re),"weekday"),className:X.weekDayLabel,children:(ee=Z==null?void 0:Z(J,Be))!=null?ee:J},J+re.toString())})]}),s?P.jsx(XWe,{className:X.loadingContainer,children:p()}):P.jsx(KWe,L({transKey:ye,onExited:u,reduceAnimations:d,slideDirection:h,className:Je(r,X.slideTransition)},m,{nodeRef:ze,children:P.jsx(JWe,{ref:ze,role:"rowgroup",className:X.monthContainer,children:dt.map((Be,re)=>P.jsxs(eQe,{role:"row",className:X.weekContainer,"aria-rowindex":re+1,children:[R&&P.jsx(ZWe,{className:X.weekNumber,role:"rowheader","aria-label":se.calendarWeekNumberAriaLabelText(W.getWeekNumber(Be[0])),children:se.calendarWeekNumberText(W.getWeekNumber(Be[0]))}),Be.map((ee,J)=>P.jsx(tQe,{parentProps:t,day:ee,selectedDays:Ye,focusableDay:We,onKeyDown:Ne,onFocus:Ve,onBlur:Ke,onDaySelect:ue,isDateDisabled:j,currentMonthNumber:Me,isViewFocused:ve,"aria-colindex":J+1},ee.toString()))]},`week-${Be[0]}`))})}))]})}const rQe=(e,t,n)=>(r,i)=>{switch(i.type){case"changeMonth":return L({},r,{slideDirection:i.direction,currentMonth:i.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return L({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&i.focusedDay!=null&&n.isSameDay(i.focusedDay,r.focusedDay))return r;const o=i.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,i.focusedDay);return L({},r,{focusedDay:i.focusedDay,isMonthSwitchingAnimating:o&&!e&&!i.withoutMonthSwitchingAnimation,currentMonth:o?n.startOfMonth(i.focusedDay):r.currentMonth,slideDirection:i.focusedDay!=null&&n.isAfterDay(i.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},iQe=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:r,disableFuture:i,disablePast:o,disableSwitchToMonthOnDayFocus:a=!1,maxDate:s,minDate:l,onMonthChange:u,reduceAnimations:c,shouldDisableDate:d,timezone:p}=e,h=ff(p),m=Rn(),b=I.useRef(rQe(!!c,a,m)).current,O=I.useMemo(()=>{let $=null;return n?$=n:r&&($=m.startOfMonth(r)),Bi.getInitialReferenceValue({value:t,utils:m,timezone:p,props:e,referenceDate:$,granularity:El.day})},[]),[y,v]=I.useReducer(b,{isMonthSwitchingAnimating:!1,focusedDay:m.isValid(t)?t:h,currentMonth:m.startOfMonth(O),slideDirection:"left"}),S=I.useCallback($=>{v(L({type:"changeMonth"},$)),u&&u($.newMonth)},[u]),k=I.useCallback($=>{const N=$;m.isSameMonth(N,y.currentMonth)||S({newMonth:m.startOfMonth(N),direction:m.isAfterDay(N,y.currentMonth)?"left":"right"})},[y.currentMonth,S,m]),C=Yne({shouldDisableDate:d,minDate:l,maxDate:s,disableFuture:i,disablePast:o,timezone:p}),w=I.useCallback(()=>{v({type:"finishMonthSwitchingAnimation"})},[]),E=jt(($,N)=>{C($)||v({type:"changeFocusedDay",focusedDay:$,withoutMonthSwitchingAnimation:N})});return{referenceDate:O,calendarState:y,changeMonth:k,changeFocusedDay:E,isDateDisabled:C,onMonthSwitchingAnimationEnd:w,handleChangeMonth:S}},oQe=["props","getOpenDialogAriaText"],aQe=["ownerState"],sQe=["ownerState"],K$=e=>{var t,n,r,i,o;let{props:a,getOpenDialogAriaText:s}=e,l=Ge(e,oQe);const{slots:u,slotProps:c,className:d,sx:p,format:h,formatDensity:m,timezone:b,name:O,label:y,inputRef:v,readOnly:S,disabled:k,autoFocus:C,localeText:w,reduceAnimations:E}=a,$=Rn(),N=I.useRef(null),R=I.useRef(null),B=$l(),U=(t=c==null||(n=c.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:V,actions:z,hasUIView:W,layoutProps:X,renderCurrentView:q,shouldRestoreFocus:Y,fieldProps:Z}=Une(L({},l,{props:a,inputRef:N,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),j=(r=u.inputAdornment)!=null?r:VN,se=kn({elementType:j,externalSlotProps:c==null?void 0:c.inputAdornment,additionalProps:{position:"end"},ownerState:a}),ve=Ge(se,aQe),G=(i=u.openPickerButton)!=null?i:oa,ce=kn({elementType:G,externalSlotProps:c==null?void 0:c.openPickerButton,additionalProps:{disabled:k||S,onClick:V?z.onClose:z.onOpen,"aria-label":s(Z.value,$),edge:ve.position},ownerState:a}),ge=Ge(ce,sQe),ue=u.openPickerIcon,xe=u.field,Ne=kn({elementType:xe,externalSlotProps:c==null?void 0:c.field,additionalProps:L({},Z,U&&{id:B},{readOnly:S,disabled:k,className:d,sx:p,format:h,formatDensity:m,timezone:b,label:y,name:O,autoFocus:C&&!a.open,focused:V?!0:void 0}),ownerState:a});W&&(Ne.InputProps=L({},Ne.InputProps,{ref:R,[`${ve.position}Adornment`]:P.jsx(j,L({},ve,{children:P.jsx(G,L({},ge,{children:P.jsx(ue,L({},c==null?void 0:c.openPickerIcon))}))}))}));const Ve=L({textField:u.textField,clearIcon:u.clearIcon,clearButton:u.clearButton},Ne.slots),Ke=(o=u.layout)!=null?o:Vne,Me=yn(N,Ne.inputRef,v);let Ye=B;U&&(y?Ye=`${B}-label`:Ye=void 0);const ye=L({},c,{toolbar:L({},c==null?void 0:c.toolbar,{titleId:B}),popper:L({"aria-labelledby":Ye},c==null?void 0:c.popper)});return{renderPicker:()=>P.jsxs(Ine,{localeText:w,children:[P.jsx(xe,L({},Ne,{slots:Ve,slotProps:ye,inputRef:Me})),P.jsx(GHe,L({role:"dialog",placement:"bottom-start",anchorEl:R.current},z,{open:V,slots:u,slotProps:ye,shouldRestoreFocus:Y,reduceAnimations:E,children:P.jsx(Ke,L({},X,ye==null?void 0:ye.layout,{slots:u,slotProps:ye,children:q()}))}))]})}},lQe=e=>{var t,n,r;const i=Rn(),o=Vp();return L({},e,{disablePast:(t=e.disablePast)!=null?t:!1,disableFuture:(n=e.disableFuture)!=null?n:!1,format:(r=e.format)!=null?r:i.formats.keyboardDate,minDate:Bo(i,e.minDate,o.minDate),maxDate:Bo(i,e.maxDate,o.maxDate)})},uQe=({props:e,inputRef:t})=>{const n=lQe(e),{forwardedProps:r,internalProps:i}=X$(n,"date");return Z$({inputRef:t,forwardedProps:r,internalProps:i,valueManager:Bi,fieldValueManager:W$,validator:Hp,valueType:"date"})},cQe=["ownerState"],J$=({clearable:e,fieldProps:t,InputProps:n,onClear:r,slots:i,slotProps:o,components:a,componentsProps:s})=>{var l,u,c,d,p,h;const m=Ui(),b=(l=(u=i==null?void 0:i.clearButton)!=null?u:a==null?void 0:a.ClearButton)!=null?l:oa,O=kn({elementType:b,externalSlotProps:(c=o==null?void 0:o.clearButton)!=null?c:s==null?void 0:s.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:m.fieldClearLabel}}),y=Ge(O,cQe),v=(d=(p=i==null?void 0:i.clearIcon)!=null?p:a==null?void 0:a.ClearIcon)!=null?d:kHe,S=kn({elementType:v,externalSlotProps:(h=o==null?void 0:o.clearIcon)!=null?h:s==null?void 0:s.clearIcon,ownerState:{}}),k=L({},n,{endAdornment:P.jsxs(I.Fragment,{children:[e&&P.jsx(VN,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:P.jsx(b,L({},y,{onClick:r,children:P.jsx(v,L({fontSize:"small"},S))}))}),n==null?void 0:n.endAdornment]})}),C=L({},t,{sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(t.sx)?t.sx:[t.sx]]});return{InputProps:k,fieldProps:C}},dQe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],fQe=["inputRef"],pQe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],qne=I.forwardRef(function(t,n){var r,i,o;const a=gt({props:t,name:"MuiDateField"}),{components:s,componentsProps:l,slots:u,slotProps:c,InputProps:d,inputProps:p}=a,h=Ge(a,dQe),m=a,b=(r=(i=u==null?void 0:u.textField)!=null?i:s==null?void 0:s.TextField)!=null?r:Np,O=kn({elementType:b,externalSlotProps:(o=c==null?void 0:c.textField)!=null?o:l==null?void 0:l.textField,externalForwardedProps:h,ownerState:m}),{inputRef:y}=O,v=Ge(O,fQe);v.inputProps=L({},p,v.inputProps),v.InputProps=L({},d,v.InputProps);const S=uQe({props:v,inputRef:y}),{ref:k,onPaste:C,onKeyDown:w,inputMode:E,readOnly:$,clearable:N,onClear:R}=S,B=Ge(S,pQe),{InputProps:U,fieldProps:V}=J$({onClear:R,clearable:N,fieldProps:B,InputProps:B.InputProps,slots:u,slotProps:c,components:s,componentsProps:l});return P.jsx(b,L({ref:n},V,{InputProps:L({},U,{readOnly:$}),inputProps:L({},B.inputProps,{inputMode:E,onPaste:C,onKeyDown:w,ref:k})}))}),hQe=e=>At("MuiPickersFadeTransitionGroup",e);_t("MuiPickersFadeTransitionGroup",["root"]);const mQe=e=>{const{classes:t}=e;return kt({root:["root"]},hQe,t)},gQe=Se(RN,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function Zne(e){const t=gt({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:i,transKey:o}=t,a=mQe(t),s=ci();return i?n:P.jsx(gQe,{className:Je(a.root,r),children:P.jsx(Tg,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},o)})}function bQe(e){return At("MuiPickersMonth",e)}const gE=_t("MuiPickersMonth",["root","monthButton","disabled","selected"]),yQe=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],OQe=e=>{const{disabled:t,selected:n,classes:r}=e;return kt({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},bQe,r)},vQe=Se("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.monthsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),EQe=Se("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${gE.disabled}`]:t.disabled},{[`&.${gE.selected}`]:t.selected}]})(({theme:e})=>L({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${gE.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${gE.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),SQe=I.memo(function(t){const n=gt({props:t,name:"MuiPickersMonth"}),{autoFocus:r,children:i,disabled:o,selected:a,value:s,tabIndex:l,onClick:u,onKeyDown:c,onFocus:d,onBlur:p,"aria-current":h,"aria-label":m}=n,b=Ge(n,yQe),O=I.useRef(null),y=OQe(n);return Kr(()=>{if(r){var v;(v=O.current)==null||v.focus()}},[r]),P.jsx(vQe,L({className:y.root,ownerState:n},b,{children:P.jsx(EQe,{ref:O,disabled:o,type:"button",role:"radio",tabIndex:o?-1:l,"aria-current":h,"aria-checked":a,"aria-label":m,onClick:v=>u(v,s),onKeyDown:v=>c(v,s),onFocus:v=>d(v,s),onBlur:v=>p(v,s),className:y.monthButton,ownerState:n,children:i})}))});function TQe(e){return At("MuiMonthCalendar",e)}_t("MuiMonthCalendar",["root"]);const wQe=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],kQe=e=>{const{classes:t}=e;return kt({root:["root"]},TQe,t)};function xQe(e,t){const n=Rn(),r=Vp(),i=gt({props:e,name:t});return L({disableFuture:!1,disablePast:!1},i,{minDate:Bo(n,i.minDate,r.minDate),maxDate:Bo(n,i.maxDate,r.maxDate)})}const CQe=Se("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:Mx,boxSizing:"border-box"}),AQe=I.forwardRef(function(t,n){const r=xQe(t,"MuiMonthCalendar"),{className:i,value:o,defaultValue:a,referenceDate:s,disabled:l,disableFuture:u,disablePast:c,maxDate:d,minDate:p,onChange:h,shouldDisableMonth:m,readOnly:b,disableHighlightToday:O,autoFocus:y=!1,onMonthFocus:v,hasFocus:S,onFocusedViewChange:k,monthsPerRow:C=3,timezone:w,gridLabelId:E}=r,$=Ge(r,wQe),{value:N,handleValueChange:R,timezone:B}=qg({name:"MonthCalendar",timezone:w,value:o,defaultValue:a,onChange:h,valueManager:Bi}),U=ff(B),V=Sg(),z=Rn(),W=I.useMemo(()=>Bi.getInitialReferenceValue({value:N,utils:z,props:r,timezone:B,referenceDate:s,granularity:El.month}),[]),X=r,q=kQe(X),Y=I.useMemo(()=>z.getMonth(U),[z,U]),Z=I.useMemo(()=>N!=null?z.getMonth(N):O?null:z.getMonth(W),[N,z,O,W]),[j,se]=I.useState(()=>Z||Y),[ve,G]=Xi({name:"MonthCalendar",state:"hasFocus",controlled:S,default:y??!1}),ce=jt(Me=>{G(Me),k&&k(Me)}),ge=I.useCallback(Me=>{const Ye=z.startOfMonth(c&&z.isAfter(U,p)?U:p),ye=z.startOfMonth(u&&z.isBefore(U,d)?U:d),ze=z.startOfMonth(Me);return z.isBefore(ze,Ye)||z.isAfter(ze,ye)?!0:m?m(ze):!1},[u,c,d,p,U,m,z]),ue=jt((Me,Ye)=>{if(b)return;const ye=z.setMonth(N??W,Ye);R(ye)}),xe=jt(Me=>{ge(z.setMonth(N??W,Me))||(se(Me),ce(!0),v&&v(Me))});I.useEffect(()=>{se(Me=>Z!==null&&Me!==Z?Z:Me)},[Z]);const Ne=jt((Me,Ye)=>{switch(Me.key){case"ArrowUp":xe((12+Ye-3)%12),Me.preventDefault();break;case"ArrowDown":xe((12+Ye+3)%12),Me.preventDefault();break;case"ArrowLeft":xe((12+Ye+(V.direction==="ltr"?-1:1))%12),Me.preventDefault();break;case"ArrowRight":xe((12+Ye+(V.direction==="ltr"?1:-1))%12),Me.preventDefault();break}}),Ve=jt((Me,Ye)=>{xe(Ye)}),Ke=jt((Me,Ye)=>{j===Ye&&ce(!1)});return P.jsx(CQe,L({ref:n,className:Je(q.root,i),ownerState:X,role:"radiogroup","aria-labelledby":E},$,{children:z$(z,N??W).map(Me=>{const Ye=z.getMonth(Me),ye=z.format(Me,"monthShort"),ze=z.format(Me,"month"),$e=Ye===Z,We=l||ge(Me);return P.jsx(SQe,{selected:$e,value:Ye,onClick:ue,onKeyDown:Ne,autoFocus:ve&&Ye===j,disabled:We,tabIndex:Ye===j?0:-1,onFocus:Ve,onBlur:Ke,"aria-current":Y===Ye?"date":void 0,"aria-label":ze,monthsPerRow:C,children:ye},ye)})}))});function _Qe(e){return At("MuiPickersYear",e)}const bE=_t("MuiPickersYear",["root","yearButton","selected","disabled"]),RQe=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],IQe=e=>{const{disabled:t,selected:n,classes:r}=e;return kt({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},_Qe,r)},DQe=Se("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.yearsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),NQe=Se("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${bE.disabled}`]:t.disabled},{[`&.${bE.selected}`]:t.selected}]})(({theme:e})=>L({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:cn(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${bE.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${bE.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),PQe=I.memo(function(t){const n=gt({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:i,children:o,disabled:a,selected:s,value:l,tabIndex:u,onClick:c,onKeyDown:d,onFocus:p,onBlur:h,"aria-current":m}=n,b=Ge(n,RQe),O=I.useRef(null),y=IQe(n);return I.useEffect(()=>{r&&O.current.focus()},[r]),P.jsx(DQe,L({className:Je(y.root,i),ownerState:n},b,{children:P.jsx(NQe,{ref:O,disabled:a,type:"button",role:"radio",tabIndex:a?-1:u,"aria-current":m,"aria-checked":s,onClick:v=>c(v,l),onKeyDown:v=>d(v,l),onFocus:v=>p(v,l),onBlur:v=>h(v,l),className:y.yearButton,ownerState:n,children:o})}))});function LQe(e){return At("MuiYearCalendar",e)}_t("MuiYearCalendar",["root"]);const MQe=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],$Qe=e=>{const{classes:t}=e;return kt({root:["root"]},LQe,t)};function FQe(e,t){var n;const r=Rn(),i=Vp(),o=gt({props:e,name:t});return L({disablePast:!1,disableFuture:!1},o,{yearsPerRow:(n=o.yearsPerRow)!=null?n:3,minDate:Bo(r,o.minDate,i.minDate),maxDate:Bo(r,o.maxDate,i.maxDate)})}const BQe=Se("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:Mx,maxHeight:NHe,boxSizing:"border-box",position:"relative"}),UQe=I.forwardRef(function(t,n){const r=FQe(t,"MuiYearCalendar"),{autoFocus:i,className:o,value:a,defaultValue:s,referenceDate:l,disabled:u,disableFuture:c,disablePast:d,maxDate:p,minDate:h,onChange:m,readOnly:b,shouldDisableYear:O,disableHighlightToday:y,onYearFocus:v,hasFocus:S,onFocusedViewChange:k,yearsPerRow:C,timezone:w,gridLabelId:E}=r,$=Ge(r,MQe),{value:N,handleValueChange:R,timezone:B}=qg({name:"YearCalendar",timezone:w,value:a,defaultValue:s,onChange:m,valueManager:Bi}),U=ff(B),V=Sg(),z=Rn(),W=I.useMemo(()=>Bi.getInitialReferenceValue({value:N,utils:z,props:r,timezone:B,referenceDate:l,granularity:El.year}),[]),X=r,q=$Qe(X),Y=I.useMemo(()=>z.getYear(U),[z,U]),Z=I.useMemo(()=>N!=null?z.getYear(N):y?null:z.getYear(W),[N,z,y,W]),[j,se]=I.useState(()=>Z||Y),[ve,G]=Xi({name:"YearCalendar",state:"hasFocus",controlled:S,default:i??!1}),ce=jt(ye=>{G(ye),k&&k(ye)}),ge=I.useCallback(ye=>{if(d&&z.isBeforeYear(ye,U)||c&&z.isAfterYear(ye,U)||h&&z.isBeforeYear(ye,h)||p&&z.isAfterYear(ye,p))return!0;if(!O)return!1;const ze=z.startOfYear(ye);return O(ze)},[c,d,p,h,U,O,z]),ue=jt((ye,ze)=>{if(b)return;const $e=z.setYear(N??W,ze);R($e)}),xe=jt(ye=>{ge(z.setYear(N??W,ye))||(se(ye),ce(!0),v==null||v(ye))});I.useEffect(()=>{se(ye=>Z!==null&&ye!==Z?Z:ye)},[Z]);const Ne=jt((ye,ze)=>{switch(ye.key){case"ArrowUp":xe(ze-C),ye.preventDefault();break;case"ArrowDown":xe(ze+C),ye.preventDefault();break;case"ArrowLeft":xe(ze+(V.direction==="ltr"?-1:1)),ye.preventDefault();break;case"ArrowRight":xe(ze+(V.direction==="ltr"?1:-1)),ye.preventDefault();break}}),Ve=jt((ye,ze)=>{xe(ze)}),Ke=jt((ye,ze)=>{j===ze&&ce(!1)}),Me=I.useRef(null),Ye=yn(n,Me);return I.useEffect(()=>{if(i||Me.current===null)return;const ye=Me.current.querySelector('[tabindex="0"]');if(!ye)return;const ze=ye.offsetHeight,$e=ye.offsetTop,We=Me.current.clientHeight,dt=Me.current.scrollTop,Be=$e+ze;ze>We||$e{const ze=z.getYear(ye),$e=ze===Z,We=u||ge(ye);return P.jsx(PQe,{selected:$e,value:ze,onClick:ue,onKeyDown:Ne,autoFocus:ve&&ze===j,disabled:We,tabIndex:ze===j?0:-1,onFocus:Ve,onBlur:Ke,"aria-current":Y===ze?"date":void 0,yearsPerRow:C,children:z.format(ye,"year")},z.format(ye,"year"))})}))}),jQe=e=>At("MuiPickersCalendarHeader",e),zQe=_t("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),VQe=["slots","slotProps","components","componentsProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],HQe=["ownerState"],WQe=e=>{const{classes:t}=e;return kt({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},jQe,t)},QQe=Se("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),YQe=Se("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>L({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),GQe=Se("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),qQe=Se(oa,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>L({marginRight:"auto"},e.view==="year"&&{[`.${zQe.switchViewIcon}`]:{transform:"rotate(180deg)"}})),ZQe=Se(OHe,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),XQe=I.forwardRef(function(t,n){var r,i,o,a;const s=Ui(),l=Rn(),u=gt({props:t,name:"MuiPickersCalendarHeader"}),{slots:c,slotProps:d,components:p,currentMonth:h,disabled:m,disableFuture:b,disablePast:O,maxDate:y,minDate:v,onMonthChange:S,onViewChange:k,view:C,reduceAnimations:w,views:E,labelId:$,className:N,timezone:R}=u,B=Ge(u,VQe),U=u,V=WQe(u),z=(r=(i=c==null?void 0:c.switchViewButton)!=null?i:p==null?void 0:p.SwitchViewButton)!=null?r:qQe,W=kn({elementType:z,externalSlotProps:d==null?void 0:d.switchViewButton,additionalProps:{size:"small","aria-label":s.calendarViewSwitchingButtonAriaLabel(C)},ownerState:U,className:V.switchViewButton}),X=(o=(a=c==null?void 0:c.switchViewIcon)!=null?a:p==null?void 0:p.SwitchViewIcon)!=null?o:ZQe,q=kn({elementType:X,externalSlotProps:d==null?void 0:d.switchViewIcon,ownerState:void 0,className:V.switchViewIcon}),Y=Ge(q,HQe),Z=()=>S(l.addMonths(h,1),"left"),j=()=>S(l.addMonths(h,-1),"right"),se=xWe(h,{disableFuture:b,maxDate:y,timezone:R}),ve=CWe(h,{disablePast:O,minDate:v,timezone:R}),G=()=>{if(!(E.length===1||!k||m))if(E.length===2)k(E.find(ce=>ce!==C)||E[0]);else{const ce=E.indexOf(C)!==0?0:1;k(E[ce])}};return E.length===1&&E[0]==="year"?null:P.jsxs(QQe,L({},B,{ownerState:U,className:Je(N,V.root),ref:n,children:[P.jsxs(YQe,{role:"presentation",onClick:G,ownerState:U,"aria-live":"polite",className:V.labelContainer,children:[P.jsx(Zne,{reduceAnimations:w,transKey:l.format(h,"monthAndYear"),children:P.jsx(GQe,{id:$,ownerState:U,className:V.label,children:l.format(h,"monthAndYear")})}),E.length>1&&!m&&P.jsx(z,L({},W,{children:P.jsx(X,L({},Y))}))]}),P.jsx(Tg,{in:C==="day",children:P.jsx(Mne,{slots:c,slotProps:d,onGoToPrevious:j,isPreviousDisabled:ve,previousLabel:s.previousMonth,onGoToNext:Z,isNextDisabled:se,nextLabel:s.nextMonth})})]}))}),Ux=Se("div")({overflow:"hidden",width:Mx,maxHeight:$x,display:"flex",flexDirection:"column",margin:"0 auto"}),KQe=e=>At("MuiDateCalendar",e);_t("MuiDateCalendar",["root","viewTransitionContainer"]);const JQe=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"],eYe=e=>{const{classes:t}=e;return kt({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},KQe,t)};function tYe(e,t){var n,r,i,o,a,s,l;const u=Rn(),c=Vp(),d=Fne(),p=gt({props:e,name:t});return L({},p,{loading:(n=p.loading)!=null?n:!1,disablePast:(r=p.disablePast)!=null?r:!1,disableFuture:(i=p.disableFuture)!=null?i:!1,openTo:(o=p.openTo)!=null?o:"day",views:(a=p.views)!=null?a:["year","day"],reduceAnimations:(s=p.reduceAnimations)!=null?s:d,renderLoading:(l=p.renderLoading)!=null?l:()=>P.jsx("span",{children:"..."}),minDate:Bo(u,p.minDate,c.minDate),maxDate:Bo(u,p.maxDate,c.maxDate)})}const nYe=Se(Ux,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:$x}),rYe=Se(Zne,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),Xne=I.forwardRef(function(t,n){var r,i,o;const a=Rn(),s=$l(),l=tYe(t,"MuiDateCalendar"),{autoFocus:u,onViewChange:c,value:d,defaultValue:p,referenceDate:h,disableFuture:m,disablePast:b,defaultCalendarMonth:O,onChange:y,onYearChange:v,onMonthChange:S,reduceAnimations:k,shouldDisableDate:C,shouldDisableMonth:w,shouldDisableYear:E,view:$,views:N,openTo:R,className:B,disabled:U,readOnly:V,minDate:z,maxDate:W,disableHighlightToday:X,focusedView:q,onFocusedViewChange:Y,showDaysOutsideCurrentMonth:Z,fixedWeekNumber:j,dayOfWeekFormatter:se,components:ve,componentsProps:G,slots:ce,slotProps:ge,loading:ue,renderLoading:xe,displayWeekNumber:Ne,yearsPerRow:Ve,monthsPerRow:Ke,timezone:Me}=l,Ye=Ge(l,JQe),{value:ye,handleValueChange:ze,timezone:$e}=qg({name:"DateCalendar",timezone:Me,value:d,defaultValue:p,onChange:y,valueManager:Bi}),{view:We,setView:dt,focusedView:Be,setFocusedView:re,goToNextView:ee,setValueAndGoToNextView:J}=PO({view:$,views:N,openTo:R,onChange:ze,onViewChange:c,autoFocus:u,focusedView:q,onFocusedViewChange:Y}),{referenceDate:Re,calendarState:Le,changeFocusedDay:De,changeMonth:ie,handleChangeMonth:fe,isDateDisabled:de,onMonthSwitchingAnimationEnd:Oe}=iQe({value:ye,defaultCalendarMonth:O,referenceDate:h,reduceAnimations:k,onMonthChange:S,minDate:z,maxDate:W,shouldDisableDate:C,disablePast:b,disableFuture:m,timezone:$e}),Te=U&&ye||z,rt=U&&ye||W,pt=`${s}-grid-label`,xt=Be!==null,et=(r=(i=ce==null?void 0:ce.calendarHeader)!=null?i:ve==null?void 0:ve.CalendarHeader)!=null?r:XQe,vt=kn({elementType:et,externalSlotProps:(o=ge==null?void 0:ge.calendarHeader)!=null?o:G==null?void 0:G.calendarHeader,additionalProps:{views:N,view:We,currentMonth:Le.currentMonth,onViewChange:dt,onMonthChange:(_e,pe)=>fe({newMonth:_e,direction:pe}),minDate:Te,maxDate:rt,disabled:U,disablePast:b,disableFuture:m,reduceAnimations:k,timezone:$e,labelId:pt,slots:ce,slotProps:ge},ownerState:l}),qe=jt(_e=>{const pe=a.startOfMonth(_e),lt=a.endOfMonth(_e),at=de(_e)?Xb({utils:a,date:_e,minDate:a.isBefore(z,pe)?pe:z,maxDate:a.isAfter(W,lt)?lt:W,disablePast:b,disableFuture:m,isDateDisabled:de,timezone:$e}):_e;at?(J(at,"finish"),S==null||S(pe)):(ee(),ie(pe)),De(at,!0)}),it=jt(_e=>{const pe=a.startOfYear(_e),lt=a.endOfYear(_e),at=de(_e)?Xb({utils:a,date:_e,minDate:a.isBefore(z,pe)?pe:z,maxDate:a.isAfter(W,lt)?lt:W,disablePast:b,disableFuture:m,isDateDisabled:de,timezone:$e}):_e;at?(J(at,"finish"),v==null||v(at)):(ee(),ie(pe)),De(at,!0)}),Et=jt(_e=>ze(_e&&ZI(a,_e,ye??Re),"finish",We));I.useEffect(()=>{ye!=null&&a.isValid(ye)&&ie(ye)},[ye]);const Nt=l,on=eYe(Nt),dn={disablePast:b,disableFuture:m,maxDate:W,minDate:z},pn={disableHighlightToday:X,readOnly:V,disabled:U,timezone:$e,gridLabelId:pt},zn=I.useRef(We);I.useEffect(()=>{zn.current!==We&&(Be===zn.current&&re(We,!0),zn.current=We)},[Be,re,We]);const Ee=I.useMemo(()=>[ye],[ye]);return P.jsxs(nYe,L({ref:n,className:Je(on.root,B),ownerState:Nt},Ye,{children:[P.jsx(et,L({},vt)),P.jsx(rYe,{reduceAnimations:k,className:on.viewTransitionContainer,transKey:We,ownerState:Nt,children:P.jsxs("div",{children:[We==="year"&&P.jsx(UQe,L({},dn,pn,{value:ye,onChange:it,shouldDisableYear:E,hasFocus:xt,onFocusedViewChange:_e=>re("year",_e),yearsPerRow:Ve,referenceDate:Re})),We==="month"&&P.jsx(AQe,L({},dn,pn,{hasFocus:xt,className:B,value:ye,onChange:qe,shouldDisableMonth:w,onFocusedViewChange:_e=>re("month",_e),monthsPerRow:Ke,referenceDate:Re})),We==="day"&&P.jsx(nQe,L({},Le,dn,pn,{onMonthSwitchingAnimationEnd:Oe,onFocusedDayChange:De,reduceAnimations:k,selectedDays:Ee,onSelectedDaysChange:Et,shouldDisableDate:C,shouldDisableMonth:w,shouldDisableYear:E,hasFocus:xt,onFocusedViewChange:_e=>re("day",_e),showDaysOutsideCurrentMonth:Z,fixedWeekNumber:j,dayOfWeekFormatter:se,displayWeekNumber:Ne,components:ve,componentsProps:G,slots:ce,slotProps:ge,loading:ue,renderLoading:xe}))]})})]}))}),Zs=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minDate:h,maxDate:m,shouldDisableDate:b,shouldDisableMonth:O,shouldDisableYear:y,reduceAnimations:v,onMonthChange:S,monthsPerRow:k,onYearChange:C,yearsPerRow:w,defaultCalendarMonth:E,components:$,componentsProps:N,slots:R,slotProps:B,loading:U,renderLoading:V,disableHighlightToday:z,readOnly:W,disabled:X,showDaysOutsideCurrentMonth:q,dayOfWeekFormatter:Y,sx:Z,autoFocus:j,fixedWeekNumber:se,displayWeekNumber:ve,timezone:G})=>P.jsx(Xne,{view:e,onViewChange:t,views:n.filter(ym),focusedView:r&&ym(r)?r:null,onFocusedViewChange:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minDate:h,maxDate:m,shouldDisableDate:b,shouldDisableMonth:O,shouldDisableYear:y,reduceAnimations:v,onMonthChange:S,monthsPerRow:k,onYearChange:C,yearsPerRow:w,defaultCalendarMonth:E,components:$,componentsProps:N,slots:R,slotProps:B,loading:U,renderLoading:V,disableHighlightToday:z,readOnly:W,disabled:X,showDaysOutsideCurrentMonth:q,dayOfWeekFormatter:Y,sx:Z,autoFocus:j,fixedWeekNumber:se,displayWeekNumber:ve,timezone:G}),Kne=I.forwardRef(function(t,n){var r,i,o,a;const s=Ui(),l=Rn(),u=Pne(t,"MuiDesktopDatePicker"),c=L({day:Zs,month:Zs,year:Zs},u.viewRenderers),d=L({},u,{viewRenderers:c,format:d1(l,u,!1),yearsPerRow:(r=u.yearsPerRow)!=null?r:4,slots:L({openPickerIcon:Lne,field:qne},u.slots),slotProps:L({},u.slotProps,{field:h=>{var m;return L({},rf((m=u.slotProps)==null?void 0:m.field,h),Zg(u),{ref:n})},toolbar:L({hidden:!0},(i=u.slotProps)==null?void 0:i.toolbar)})}),{renderPicker:p}=K$({props:d,valueManager:Bi,valueType:"date",getOpenDialogAriaText:(o=(a=d.localeText)==null?void 0:a.openDatePickerDialogue)!=null?o:s.openDatePickerDialogue,validator:Hp});return p()});Kne.propTypes={autoFocus:Q.bool,className:Q.string,closeOnSelect:Q.bool,components:Q.object,componentsProps:Q.object,dayOfWeekFormatter:Q.func,defaultCalendarMonth:Q.any,defaultValue:Q.any,disabled:Q.bool,disableFuture:Q.bool,disableHighlightToday:Q.bool,disableOpenPicker:Q.bool,disablePast:Q.bool,displayWeekNumber:Q.bool,fixedWeekNumber:Q.number,format:Q.string,formatDensity:Q.oneOf(["dense","spacious"]),inputRef:vg,label:Q.node,loading:Q.bool,localeText:Q.object,maxDate:Q.any,minDate:Q.any,monthsPerRow:Q.oneOf([3,4]),name:Q.string,onAccept:Q.func,onChange:Q.func,onClose:Q.func,onError:Q.func,onMonthChange:Q.func,onOpen:Q.func,onSelectedSectionsChange:Q.func,onViewChange:Q.func,onYearChange:Q.func,open:Q.bool,openTo:Q.oneOf(["day","month","year"]),orientation:Q.oneOf(["landscape","portrait"]),readOnly:Q.bool,reduceAnimations:Q.bool,referenceDate:Q.any,renderLoading:Q.func,selectedSections:Q.oneOfType([Q.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Q.number,Q.shape({endIndex:Q.number.isRequired,startIndex:Q.number.isRequired})]),shouldDisableDate:Q.func,shouldDisableMonth:Q.func,shouldDisableYear:Q.func,showDaysOutsideCurrentMonth:Q.bool,slotProps:Q.object,slots:Q.object,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object]),timezone:Q.string,value:Q.any,view:Q.oneOf(["day","month","year"]),viewRenderers:Q.shape({day:Q.func,month:Q.func,year:Q.func}),views:Q.arrayOf(Q.oneOf(["day","month","year"]).isRequired),yearsPerRow:Q.oneOf([3,4])};const iYe=["props","getOpenDialogAriaText"],eF=e=>{var t,n,r;let{props:i,getOpenDialogAriaText:o}=e,a=Ge(e,iYe);const{slots:s,slotProps:l,className:u,sx:c,format:d,formatDensity:p,timezone:h,name:m,label:b,inputRef:O,readOnly:y,disabled:v,localeText:S}=i,k=Rn(),C=I.useRef(null),w=$l(),E=(t=l==null||(n=l.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:$,actions:N,layoutProps:R,renderCurrentView:B,fieldProps:U}=Une(L({},a,{props:i,inputRef:C,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),V=s.field,z=kn({elementType:V,externalSlotProps:l==null?void 0:l.field,additionalProps:L({},U,E&&{id:w},!(v||y)&&{onClick:N.onOpen,onKeyDown:FHe(N.onOpen)},{readOnly:y??!0,disabled:v,className:u,sx:c,format:d,formatDensity:p,timezone:h,label:b,name:m}),ownerState:i});z.inputProps=L({},z.inputProps,{"aria-label":o(U.value,k)});const W=L({textField:s.textField},z.slots),X=(r=s.layout)!=null?r:Vne,q=yn(C,z.inputRef,O);let Y=w;E&&(b?Y=`${w}-label`:Y=void 0);const Z=L({},l,{toolbar:L({},l==null?void 0:l.toolbar,{titleId:w}),mobilePaper:L({"aria-labelledby":Y},l==null?void 0:l.mobilePaper)});return{renderPicker:()=>P.jsxs(Ine,{localeText:S,children:[P.jsx(V,L({},z,{slots:W,slotProps:Z,inputRef:q})),P.jsx(MHe,L({},N,{open:$,slots:s,slotProps:Z,children:P.jsx(X,L({},R,Z==null?void 0:Z.layout,{slots:s,slotProps:Z,children:B()}))}))]})}},tF=I.forwardRef(function(t,n){var r,i,o;const a=Ui(),s=Rn(),l=Pne(t,"MuiMobileDatePicker"),u=L({day:Zs,month:Zs,year:Zs},l.viewRenderers),c=L({},l,{viewRenderers:u,format:d1(s,l,!1),slots:L({field:qne},l.slots),slotProps:L({},l.slotProps,{field:p=>{var h;return L({},rf((h=l.slotProps)==null?void 0:h.field,p),Zg(l),{ref:n})},toolbar:L({hidden:!1},(r=l.slotProps)==null?void 0:r.toolbar)})}),{renderPicker:d}=eF({props:c,valueManager:Bi,valueType:"date",getOpenDialogAriaText:(i=(o=c.localeText)==null?void 0:o.openDatePickerDialogue)!=null?i:a.openDatePickerDialogue,validator:Hp});return d()});tF.propTypes={autoFocus:Q.bool,className:Q.string,closeOnSelect:Q.bool,components:Q.object,componentsProps:Q.object,dayOfWeekFormatter:Q.func,defaultCalendarMonth:Q.any,defaultValue:Q.any,disabled:Q.bool,disableFuture:Q.bool,disableHighlightToday:Q.bool,disableOpenPicker:Q.bool,disablePast:Q.bool,displayWeekNumber:Q.bool,fixedWeekNumber:Q.number,format:Q.string,formatDensity:Q.oneOf(["dense","spacious"]),inputRef:vg,label:Q.node,loading:Q.bool,localeText:Q.object,maxDate:Q.any,minDate:Q.any,monthsPerRow:Q.oneOf([3,4]),name:Q.string,onAccept:Q.func,onChange:Q.func,onClose:Q.func,onError:Q.func,onMonthChange:Q.func,onOpen:Q.func,onSelectedSectionsChange:Q.func,onViewChange:Q.func,onYearChange:Q.func,open:Q.bool,openTo:Q.oneOf(["day","month","year"]),orientation:Q.oneOf(["landscape","portrait"]),readOnly:Q.bool,reduceAnimations:Q.bool,referenceDate:Q.any,renderLoading:Q.func,selectedSections:Q.oneOfType([Q.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Q.number,Q.shape({endIndex:Q.number.isRequired,startIndex:Q.number.isRequired})]),shouldDisableDate:Q.func,shouldDisableMonth:Q.func,shouldDisableYear:Q.func,showDaysOutsideCurrentMonth:Q.bool,slotProps:Q.object,slots:Q.object,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object]),timezone:Q.string,value:Q.any,view:Q.oneOf(["day","month","year"]),viewRenderers:Q.shape({day:Q.func,month:Q.func,year:Q.func}),views:Q.arrayOf(Q.oneOf(["day","month","year"]).isRequired),yearsPerRow:Q.oneOf([3,4])};const oYe=["desktopModeMediaQuery"],aYe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:i=Y$}=r,o=Ge(r,oYe);return kg(i,{defaultMatches:!0})?P.jsx(Kne,L({ref:n},o)):P.jsx(tF,L({ref:n},o))}),sYe=e=>{var t,n,r,i,o,a,s,l;const u=Rn(),c=Vp(),p=((t=e.ampm)!=null?t:u.is12HourCycleInCurrentLocale())?u.formats.keyboardDateTime12h:u.formats.keyboardDateTime24h;return L({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(i=e.format)!=null?i:p,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:Bo(u,(o=e.minDateTime)!=null?o:e.minDate,c.minDate),maxDate:Bo(u,(a=e.maxDateTime)!=null?a:e.maxDate,c.maxDate),minTime:(s=e.minDateTime)!=null?s:e.minTime,maxTime:(l=e.maxDateTime)!=null?l:e.maxTime})},lYe=({props:e,inputRef:t})=>{const n=sYe(e),{forwardedProps:r,internalProps:i}=X$(n,"date-time");return Z$({inputRef:t,forwardedProps:r,internalProps:i,valueManager:Bi,fieldValueManager:W$,validator:Bx,valueType:"date-time"})},uYe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],cYe=["inputRef"],dYe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],Jne=I.forwardRef(function(t,n){var r,i,o;const a=gt({props:t,name:"MuiDateTimeField"}),{components:s,componentsProps:l,slots:u,slotProps:c,InputProps:d,inputProps:p}=a,h=Ge(a,uYe),m=a,b=(r=(i=u==null?void 0:u.textField)!=null?i:s==null?void 0:s.TextField)!=null?r:Np,O=kn({elementType:b,externalSlotProps:(o=c==null?void 0:c.textField)!=null?o:l==null?void 0:l.textField,externalForwardedProps:h,ownerState:m}),{inputRef:y}=O,v=Ge(O,cYe);v.inputProps=L({},p,v.inputProps),v.InputProps=L({},d,v.InputProps);const S=lYe({props:v,inputRef:y}),{ref:k,onPaste:C,onKeyDown:w,inputMode:E,readOnly:$,clearable:N,onClear:R}=S,B=Ge(S,dYe),{InputProps:U,fieldProps:V}=J$({onClear:R,clearable:N,fieldProps:B,InputProps:B.InputProps,slots:u,slotProps:c,components:s,componentsProps:l});return P.jsx(b,L({ref:n},V,{InputProps:L({},U,{readOnly:$}),inputProps:L({},B.inputProps,{inputMode:E,onPaste:C,onKeyDown:w,ref:k})}))});function fYe(e){return At("MuiDateTimePickerTabs",e)}_t("MuiDateTimePickerTabs",["root"]);const pYe=e=>ym(e)?"date":"time",hYe=e=>e==="date"?"day":"hours",mYe=e=>{const{classes:t}=e;return kt({root:["root"]},fYe,t)},gYe=Se(wEe,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${UE.indicator}`]:{bottom:"auto",top:0}}})),bYe=function(t){const n=gt({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=P.jsx(THe,{}),onViewChange:i,timeIcon:o=P.jsx(wHe,{}),view:a,hidden:s=typeof window>"u"||window.innerHeight<667}=n,l=Ui(),u=mYe(n),c=(d,p)=>{i(hYe(p))};return s?null:P.jsxs(gYe,{ownerState:n,variant:"fullWidth",value:pYe(a),onChange:c,className:u.root,children:[P.jsx(U8,{value:"date","aria-label":l.dateTableLabel,icon:P.jsx(I.Fragment,{children:r})}),P.jsx(U8,{value:"time","aria-label":l.timeTableLabel,icon:P.jsx(I.Fragment,{children:o})})]})};function yYe(e){return At("MuiDateTimePickerToolbar",e)}const w2=_t("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),OYe=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],vYe=e=>{const{classes:t,theme:n,isLandscape:r}=e,i={root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",n.direction==="rtl"&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",n.direction==="rtl"&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return kt(i,yYe,t)},ere=Se(Q$,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({paddingLeft:t.toolbarVariant==="desktop"&&!t.isLandscape?24:16,paddingRight:t.toolbarVariant==="desktop"&&!t.isLandscape?0:16,borderBottom:t.toolbarVariant==="desktop"?`1px solid ${(e.vars||e).palette.divider}`:void 0,borderRight:t.toolbarVariant==="desktop"&&t.isLandscape?`1px solid ${(e.vars||e).palette.divider}`:void 0,justifyContent:"space-around",position:"relative"}));ere.propTypes={as:Q.elementType,classes:Q.object,className:Q.string,isLandscape:Q.bool.isRequired,isMobileKeyboardViewOpen:Q.bool,landscapeDirection:Q.oneOf(["column","row"]),ownerState:Q.object.isRequired,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object]),toggleMobileKeyboardView:Q.func,toolbarTitle:Q.node,viewType:Q.oneOf(["date","time"])};const EYe=Se("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),tre=Se("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})(({theme:e,ownerState:t})=>{const n=t.isLandscape&&t.toolbarVariant!=="desktop"?"column":"row";return L({display:"flex",flexDirection:n},t.toolbarVariant==="desktop"&&L({},!t.isLandscape&&{gap:9,marginRight:4,alignSelf:"flex-end"}),e.direction==="rtl"&&{flexDirection:`${n}-reverse`})}),SYe=Se("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})(({theme:e,ownerState:t})=>L({display:"flex"},t.toolbarVariant==="desktop"&&{gap:1.5},e.direction==="rtl"&&{flexDirection:"row-reverse"}));tre.propTypes={as:Q.elementType,ownerState:Q.object.isRequired,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object])};const vV=Se(G$,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})(({ownerState:e})=>({margin:e.toolbarVariant==="desktop"?0:"0 4px 0 2px",cursor:"default"})),TYe=Se("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${w2.ampmLabel}`]:t.ampmLabel},{[`&.${w2.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>L({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${w2.ampmLabel}`]:{fontSize:17}}));function wYe(e){const t=gt({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:i,onChange:o,view:a,isLandscape:s,onViewChange:l,toolbarFormat:u,toolbarPlaceholder:c="––",views:d,disabled:p,readOnly:h,toolbarVariant:m="mobile"}=t,b=Ge(t,OYe),O=t,y=Rn(),{meridiemMode:v,handleMeridiemChange:S}=Fx(i,n,o),k=!!(n&&!r),C=m==="desktop",w=Ui(),E=ci(),$=vYe(L({},O,{theme:E})),N=B=>n?y.format(B,"hours12h"):y.format(B,"hours24h"),R=I.useMemo(()=>i?u?y.formatByString(i,u):y.format(i,"shortDate"):c,[i,u,c,y]);return P.jsxs(ere,L({toolbarTitle:w.dateTimePickerToolbarTitle,isLandscape:s,className:$.root},b,{ownerState:O,children:[P.jsxs(EYe,{className:$.dateContainer,ownerState:O,children:[d.includes("year")&&P.jsx(Ka,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:a==="year",value:i?y.format(i,"year"):"–"}),d.includes("day")&&P.jsx(Ka,{tabIndex:-1,variant:C?"h5":"h4",onClick:()=>l("day"),selected:a==="day",value:R})]}),P.jsxs(tre,{className:$.timeContainer,ownerState:O,children:[P.jsxs(SYe,{className:$.timeDigitsContainer,ownerState:O,children:[d.includes("hours")&&P.jsx(Ka,{variant:C?"h5":"h3",width:C&&!s?db:void 0,onClick:()=>l("hours"),selected:a==="hours",value:i?N(i):"--"}),d.includes("minutes")&&P.jsxs(I.Fragment,{children:[P.jsx(vV,{variant:C?"h5":"h3",value:":",className:$.separator,ownerState:O}),P.jsx(Ka,{variant:C?"h5":"h3",width:C&&!s?db:void 0,onClick:()=>l("minutes"),selected:a==="minutes",value:i?y.format(i,"minutes"):"--"})]}),d.includes("seconds")&&P.jsxs(I.Fragment,{children:[P.jsx(vV,{variant:C?"h5":"h3",value:":",className:$.separator,ownerState:O}),P.jsx(Ka,{variant:C?"h5":"h3",width:C&&!s?db:void 0,onClick:()=>l("seconds"),selected:a==="seconds",value:i?y.format(i,"seconds"):"--"})]})]}),k&&!C&&P.jsxs(TYe,{className:$.ampmSelection,ownerState:O,children:[P.jsx(Ka,{variant:"subtitle2",selected:v==="am",typographyClassName:$.ampmLabel,value:kl(y,"am"),onClick:h?void 0:()=>S("am"),disabled:p}),P.jsx(Ka,{variant:"subtitle2",selected:v==="pm",typographyClassName:$.ampmLabel,value:kl(y,"pm"),onClick:h?void 0:()=>S("pm"),disabled:p})]}),n&&C&&P.jsx(Ka,{variant:"h5",onClick:()=>l("meridiem"),selected:a==="meridiem",value:i&&v?kl(y,v):"--",width:db})]})]}))}function nre(e,t){var n,r,i,o,a,s,l,u,c,d,p;const h=Rn(),m=Vp(),b=gt({props:e,name:t}),O=(n=b.ampm)!=null?n:h.is12HourCycleInCurrentLocale(),y=I.useMemo(()=>{var k;return((k=b.localeText)==null?void 0:k.toolbarTitle)==null?b.localeText:L({},b.localeText,{dateTimePickerToolbarTitle:b.localeText.toolbarTitle})},[b.localeText]),v=(r=b.slots)!=null?r:NO(b.components),S=(i=b.slotProps)!=null?i:b.componentsProps;return L({},b,j$({views:b.views,openTo:b.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:O,localeText:y,orientation:(o=b.orientation)!=null?o:"portrait",disableIgnoringDatePartForTimeValidation:(a=b.disableIgnoringDatePartForTimeValidation)!=null?a:!!(b.minDateTime||b.maxDateTime||b.disablePast||b.disableFuture),disableFuture:(s=b.disableFuture)!=null?s:!1,disablePast:(l=b.disablePast)!=null?l:!1,minDate:Bo(h,(u=b.minDateTime)!=null?u:b.minDate,m.minDate),maxDate:Bo(h,(c=b.maxDateTime)!=null?c:b.maxDate,m.maxDate),minTime:(d=b.minDateTime)!=null?d:b.minTime,maxTime:(p=b.maxDateTime)!=null?p:b.maxTime,slots:L({toolbar:wYe,tabs:bYe},v),slotProps:L({},S,{toolbar:L({ampm:O},S==null?void 0:S.toolbar)})})}function kYe(e){return At("MuiMultiSectionDigitalClock",e)}_t("MuiMultiSectionDigitalClock",["root"]);function xYe(e){return At("MuiMultiSectionDigitalClockSection",e)}const CYe=_t("MuiMultiSectionDigitalClockSection",["root","item"]),AYe=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],_Ye=e=>{const{classes:t}=e;return kt({root:["root"],item:["item"]},xYe,t)},RYe=Se(G1,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({maxHeight:$ne,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:t.alreadyRendered?"smooth":"auto"},"@media (pointer: fine)":{"&:hover":{overflowY:"auto"}},"@media (pointer: none), (pointer: coarse)":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&:after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"}})),IYe=Se(yp,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:db,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:cn(e.palette.primary.main,e.palette.action.focusOpacity)}})),DYe=I.forwardRef(function(t,n){var r;const i=I.useRef(null),o=yn(n,i),a=I.useRef(null),s=gt({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:l,onChange:u,className:c,disabled:d,readOnly:p,items:h,active:m,slots:b,slotProps:O,skipDisabled:y}=s,v=Ge(s,AYe),S=I.useMemo(()=>L({},s,{alreadyRendered:!!i.current}),[s]),k=_Ye(S),C=(r=b==null?void 0:b.digitalClockSectionItem)!=null?r:IYe;return I.useEffect(()=>{if(i.current===null)return;const w=i.current.querySelector('[role="option"][aria-selected="true"]');if(m&&l&&w&&w.focus(),!w||a.current===w)return;a.current=w;const E=w.offsetTop;i.current.scrollTop=E-4}),P.jsx(RYe,L({ref:o,className:Je(k.root,c),ownerState:S,autoFocusItem:l&&m,role:"listbox"},v,{children:h.map(w=>{var E,$;if(y&&(E=w.isDisabled)!=null&&E.call(w,w.value))return null;const N=w.isSelected(w.value);return P.jsx(C,L({onClick:()=>!p&&u(w.value),selected:N,disabled:d||(($=w.isDisabled)==null?void 0:$.call(w,w.value)),disableRipple:p,role:"option","aria-disabled":p,"aria-label":w.ariaLabel,"aria-selected":N,className:k.item},O==null?void 0:O.digitalClockSectionItem,{children:w.label}),w.label)})}))}),NYe=({now:e,value:t,utils:n,ampm:r,isDisabled:i,resolveAriaLabel:o,timeStep:a})=>{const s=t?n.getHours(t):null,l=[],u=d=>s===null?!1:r?d===12?s===12||s===0:s===d||s-12===d:s===d,c=r?11:23;for(let d=0;d<=c;d+=a){let p=n.format(n.setHours(e,d),r?"hours12h":"hours24h");const h=o(parseInt(p,10).toString());p=n.formatNumber(p),l.push({value:d,label:p,isSelected:u,isDisabled:i,ariaLabel:h})}return l},EV=({value:e,utils:t,isDisabled:n,timeStep:r,resolveLabel:i,resolveAriaLabel:o,hasValue:a=!0})=>{const s=l=>e===null?!1:a&&e===l;return[...Array.from({length:Math.ceil(60/r)},(l,u)=>{const c=r*u;return{value:c,label:t.formatNumber(i(c)),isDisabled:n,isSelected:s,ariaLabel:o(c.toString())}})]},nF=({value:e,referenceDate:t,utils:n,props:r,timezone:i})=>{const o=I.useMemo(()=>Bi.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:El.day,timezone:i,getTodayDate:()=>V$(n,i,"date")}),[]);return e??o},PYe=["ampm","timeSteps","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],LYe=e=>{const{classes:t}=e;return kt({root:["root"]},kYe,t)},MYe=Se(Ux,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),$Ye=I.forwardRef(function(t,n){const r=Rn(),i=gt({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:o=r.is12HourCycleInCurrentLocale(),timeSteps:a,autoFocus:s,components:l,componentsProps:u,slots:c,slotProps:d,value:p,defaultValue:h,referenceDate:m,disableIgnoringDatePartForTimeValidation:b=!1,maxTime:O,minTime:y,disableFuture:v,disablePast:S,minutesStep:k=1,shouldDisableClock:C,shouldDisableTime:w,onChange:E,view:$,views:N=["hours","minutes"],openTo:R,onViewChange:B,focusedView:U,onFocusedViewChange:V,className:z,disabled:W,readOnly:X,skipDisabled:q=!1,timezone:Y}=i,Z=Ge(i,PYe),{value:j,handleValueChange:se,timezone:ve}=qg({name:"MultiSectionDigitalClock",timezone:Y,value:p,defaultValue:h,onChange:E,valueManager:Bi}),G=Ui(),ce=ff(ve),ge=I.useMemo(()=>L({hours:1,minutes:5,seconds:5},a),[a]),ue=nF({value:j,referenceDate:m,utils:r,props:i,timezone:ve}),xe=jt((ee,J,Re)=>se(ee,J,Re)),Ne=I.useMemo(()=>!o||!N.includes("hours")||N.includes("meridiem")?N:[...N,"meridiem"],[o,N]),{view:Ve,setValueAndGoToNextView:Ke,focusedView:Me}=PO({view:$,views:Ne,openTo:R,onViewChange:B,onChange:xe,focusedView:U,onFocusedViewChange:V}),Ye=jt(ee=>{Ke(ee,"finish","meridiem")}),{meridiemMode:ye,handleMeridiemChange:ze}=Fx(ue,o,Ye,"finish"),$e=I.useCallback((ee,J)=>{const Re=DO(b,r),Le=J==="hours"||J==="minutes"&&Ne.includes("seconds"),De=({start:fe,end:de})=>!(y&&Re(y,de)||O&&Re(fe,O)||v&&Re(fe,ce)||S&&Re(ce,Le?de:fe)),ie=(fe,de=1)=>{if(fe%de!==0||C!=null&&C(fe,J))return!1;if(w)switch(J){case"hours":return!w(r.setHours(ue,fe),"hours");case"minutes":return!w(r.setMinutes(ue,fe),"minutes");case"seconds":return!w(r.setSeconds(ue,fe),"seconds");default:return!1}return!0};switch(J){case"hours":{const fe=f1(ee,ye,o),de=r.setHours(ue,fe),Oe=r.setSeconds(r.setMinutes(de,0),0),Te=r.setSeconds(r.setMinutes(de,59),59);return!De({start:Oe,end:Te})||!ie(fe)}case"minutes":{const fe=r.setMinutes(ue,ee),de=r.setSeconds(fe,0),Oe=r.setSeconds(fe,59);return!De({start:de,end:Oe})||!ie(ee,k)}case"seconds":{const fe=r.setSeconds(ue,ee);return!De({start:fe,end:fe})||!ie(ee)}default:throw new Error("not supported")}},[o,ue,b,O,ye,y,k,C,w,r,v,S,ce,Ne]),We=I.useCallback(ee=>{switch(ee){case"hours":return{onChange:J=>{const Re=f1(J,ye,o);Ke(r.setHours(ue,Re),"finish","hours")},items:NYe({now:ce,value:j,ampm:o,utils:r,isDisabled:J=>W||$e(J,"hours"),timeStep:ge.hours,resolveAriaLabel:G.hoursClockNumberText})};case"minutes":return{onChange:J=>{Ke(r.setMinutes(ue,J),"finish","minutes")},items:EV({value:r.getMinutes(ue),utils:r,isDisabled:J=>W||$e(J,"minutes"),resolveLabel:J=>r.format(r.setMinutes(ce,J),"minutes"),timeStep:ge.minutes,hasValue:!!j,resolveAriaLabel:G.minutesClockNumberText})};case"seconds":return{onChange:J=>{Ke(r.setSeconds(ue,J),"finish","seconds")},items:EV({value:r.getSeconds(ue),utils:r,isDisabled:J=>W||$e(J,"seconds"),resolveLabel:J=>r.format(r.setSeconds(ce,J),"seconds"),timeStep:ge.seconds,hasValue:!!j,resolveAriaLabel:G.secondsClockNumberText})};case"meridiem":{const J=kl(r,"am"),Re=kl(r,"pm");return{onChange:ze,items:[{value:"am",label:J,isSelected:()=>!!j&&ye==="am",ariaLabel:J},{value:"pm",label:Re,isSelected:()=>!!j&&ye==="pm",ariaLabel:Re}]}}default:throw new Error(`Unknown view: ${ee} found.`)}},[ce,j,o,r,ge.hours,ge.minutes,ge.seconds,G.hoursClockNumberText,G.minutesClockNumberText,G.secondsClockNumberText,ye,Ke,ue,W,$e,ze]),dt=I.useMemo(()=>Ne.reduce((ee,J)=>L({},ee,{[J]:We(J)}),{}),[Ne,We]),Be=i,re=LYe(Be);return P.jsx(MYe,L({ref:n,className:Je(re.root,z),ownerState:Be,role:"group"},Z,{children:Object.entries(dt).map(([ee,J])=>P.jsx(DYe,{items:J.items,onChange:J.onChange,active:Ve===ee,autoFocus:s??Me===ee,disabled:W,readOnly:X,slots:c??l,slotProps:d??u,skipDisabled:q,"aria-label":G.selectViewText(ee)},ee))}))}),FYe=Se("div")({display:"flex",margin:"0 auto"});function BYe(e){return At("MuiTimeClock",e)}_t("MuiTimeClock",["root","arrowSwitcher"]);const hg=220,_u=36,h1={x:hg/2,y:hg/2},rre={x:h1.x,y:0},UYe=rre.x-h1.x,jYe=rre.y-h1.y,zYe=e=>e*(180/Math.PI),ire=(e,t,n)=>{const r=t-h1.x,i=n-h1.y,o=Math.atan2(UYe,jYe)-Math.atan2(r,i);let a=zYe(o);a=Math.round(a/e)*e,a%=360;const s=Math.floor(a/e)||0,l=r**2+i**2,u=Math.sqrt(l);return{value:s,distance:u}},VYe=(e,t,n=1)=>{const r=n*6;let{value:i}=ire(r,e,t);return i=i*n%60,i},HYe=(e,t,n)=>{const{value:r,distance:i}=ire(30,e,t);let o=r||12;return n?o%=12:i{const{classes:t}=e;return kt({root:["root"],thumb:["thumb"]},WYe,t)},GYe=Se("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>L({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),qYe=Se("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>L({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${_u/2}px)`,border:`${(_u-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main}));function ZYe(e){const t=gt({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:i,viewValue:o}=t,a=Ge(t,QYe),s=I.useRef(i);I.useEffect(()=>{s.current=i},[i]);const l=L({},t,{shouldAnimate:s.current!==i}),u=YYe(l),c=()=>{let p=360/(i==="hours"?12:60)*o;return i==="hours"&&o>12&&(p-=360),{height:Math.round((r?.26:.4)*hg),transform:`rotateZ(${p}deg)`}};return P.jsx(GYe,L({style:c(),className:Je(n,u.root),ownerState:l},a,{children:P.jsx(qYe,{ownerState:l,className:u.thumb})}))}function XYe(e){return At("MuiClock",e)}_t("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const KYe=e=>{const{classes:t}=e;return kt({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},XYe,t)},JYe=Se("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),eGe=Se("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),tGe=Se("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),nGe=Se("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>L({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),rGe=Se("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),iGe=Se(oa,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>L({zIndex:1,position:"absolute",bottom:8,left:8,paddingLeft:4,paddingRight:4,width:_u},t.meridiemMode==="am"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),oGe=Se(oa,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>L({zIndex:1,position:"absolute",bottom:8,right:8,paddingLeft:4,paddingRight:4,width:_u},t.meridiemMode==="pm"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),SV=Se(br,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function aGe(e){const t=gt({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:i,children:o,value:a,handleMeridiemChange:s,isTimeDisabled:l,meridiemMode:u,minutesStep:c=1,onChange:d,selectedId:p,type:h,viewValue:m,disabled:b,readOnly:O,className:y}=t,v=t,S=Rn(),k=Ui(),C=I.useRef(!1),w=KYe(v),E=l(m,h),$=!n&&h==="hours"&&(m<1||m>12),N=(Z,j)=>{b||O||l(Z,h)||d(Z,j)},R=(Z,j)=>{let{offsetX:se,offsetY:ve}=Z;if(se===void 0){const ce=Z.target.getBoundingClientRect();se=Z.changedTouches[0].clientX-ce.left,ve=Z.changedTouches[0].clientY-ce.top}const G=h==="seconds"||h==="minutes"?VYe(se,ve,c):HYe(se,ve,!!n);N(G,j)},B=Z=>{C.current=!0,R(Z,"shallow")},U=Z=>{C.current&&(R(Z,"finish"),C.current=!1)},V=Z=>{Z.buttons>0&&R(Z.nativeEvent,"shallow")},z=Z=>{C.current&&(C.current=!1),R(Z.nativeEvent,"finish")},W=I.useMemo(()=>h==="hours"?!0:m%5===0,[h,m]),X=h==="minutes"?c:1,q=I.useRef(null);Kr(()=>{i&&q.current.focus()},[i]);const Y=Z=>{if(!C.current)switch(Z.key){case"Home":N(0,"partial"),Z.preventDefault();break;case"End":N(h==="minutes"?59:23,"partial"),Z.preventDefault();break;case"ArrowUp":N(m+X,"partial"),Z.preventDefault();break;case"ArrowDown":N(m-X,"partial"),Z.preventDefault();break}};return P.jsxs(JYe,{className:Je(y,w.root),children:[P.jsxs(eGe,{className:w.clock,children:[P.jsx(nGe,{onTouchMove:B,onTouchEnd:U,onMouseUp:z,onMouseMove:V,ownerState:{disabled:b},className:w.squareMask}),!E&&P.jsxs(I.Fragment,{children:[P.jsx(rGe,{className:w.pin}),a!=null&&P.jsx(ZYe,{type:h,viewValue:m,isInner:$,hasSelected:W})]}),P.jsx(tGe,{"aria-activedescendant":p,"aria-label":k.clockLabelText(h,a,S),ref:q,role:"listbox",onKeyDown:Y,tabIndex:0,className:w.wrapper,children:o})]}),n&&r&&P.jsxs(I.Fragment,{children:[P.jsx(iGe,{onClick:O?void 0:()=>s("am"),disabled:b||u===null,ownerState:v,className:w.amButton,title:kl(S,"am"),children:P.jsx(SV,{variant:"caption",className:w.meridiemText,children:kl(S,"am")})}),P.jsx(oGe,{disabled:b||u===null,onClick:O?void 0:()=>s("pm"),ownerState:v,className:w.pmButton,title:kl(S,"pm"),children:P.jsx(SV,{variant:"caption",className:w.meridiemText,children:kl(S,"pm")})})]})]})}function sGe(e){return At("MuiClockNumber",e)}const yE=_t("MuiClockNumber",["root","selected","disabled"]),lGe=["className","disabled","index","inner","label","selected"],uGe=e=>{const{classes:t,selected:n,disabled:r}=e;return kt({root:["root",n&&"selected",r&&"disabled"]},sGe,t)},cGe=Se("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${yE.disabled}`]:t.disabled},{[`&.${yE.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>L({height:_u,width:_u,position:"absolute",left:`calc((100% - ${_u}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${yE.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${yE.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&L({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function ore(e){const t=gt({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:i,inner:o,label:a,selected:s}=t,l=Ge(t,lGe),u=t,c=uGe(u),d=i%12/12*Math.PI*2-Math.PI/2,p=(hg-_u-2)/2*(o?.65:1),h=Math.round(Math.cos(d)*p),m=Math.round(Math.sin(d)*p);return P.jsx(cGe,L({className:Je(n,c.root),"aria-disabled":r?!0:void 0,"aria-selected":s?!0:void 0,role:"option",style:{transform:`translate(${h}px, ${m+(hg-_u)/2}px`},ownerState:u},l,{children:a}))}const dGe=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:i,utils:o})=>{const a=t?o.getHours(t):null,s=[],l=e?1:0,u=e?12:23,c=d=>a===null?!1:e?d===12?a===12||a===0:a===d||a-12===d:a===d;for(let d=l;d<=u;d+=1){let p=d.toString();d===0&&(p="00");const h=!e&&(d===0||d>12);p=o.formatNumber(p);const m=c(d);s.push(P.jsx(ore,{id:m?i:void 0,index:d,inner:h,selected:m,disabled:r(d),label:p,"aria-label":n(p)},d))}return s},TV=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:i})=>{const o=e.formatNumber;return[[5,o("05")],[10,o("10")],[15,o("15")],[20,o("20")],[25,o("25")],[30,o("30")],[35,o("35")],[40,o("40")],[45,o("45")],[50,o("50")],[55,o("55")],[0,o("00")]].map(([a,s],l)=>{const u=a===t;return P.jsx(ore,{label:s,id:u?i:void 0,index:l+1,inner:!1,disabled:n(a),selected:u,"aria-label":r(s)},a)})},fGe=["ampm","ampmInClock","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],pGe=e=>{const{classes:t}=e;return kt({root:["root"],arrowSwitcher:["arrowSwitcher"]},BYe,t)},hGe=Se(Ux,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),mGe=Se(Mne,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),gGe=["hours","minutes"],bGe=I.forwardRef(function(t,n){const r=Rn(),i=gt({props:t,name:"MuiTimeClock"}),{ampm:o=r.is12HourCycleInCurrentLocale(),ampmInClock:a=!1,autoFocus:s,components:l,componentsProps:u,slots:c,slotProps:d,value:p,defaultValue:h,referenceDate:m,disableIgnoringDatePartForTimeValidation:b=!1,maxTime:O,minTime:y,disableFuture:v,disablePast:S,minutesStep:k=1,shouldDisableClock:C,shouldDisableTime:w,showViewSwitcher:E,onChange:$,view:N,views:R=gGe,openTo:B,onViewChange:U,focusedView:V,onFocusedViewChange:z,className:W,disabled:X,readOnly:q,timezone:Y}=i,Z=Ge(i,fGe),j=c??NO(l),se=d??u,{value:ve,handleValueChange:G,timezone:ce}=qg({name:"TimeClock",timezone:Y,value:p,defaultValue:h,onChange:$,valueManager:Bi}),ge=nF({value:ve,referenceDate:m,utils:r,props:i,timezone:ce}),ue=Ui(),xe=ff(ce),{view:Ne,setView:Ve,previousView:Ke,nextView:Me,setValueAndGoToNextView:Ye}=PO({view:N,views:R,openTo:B,onViewChange:U,onChange:G,focusedView:V,onFocusedViewChange:z}),{meridiemMode:ye,handleMeridiemChange:ze}=Fx(ge,o,Ye),$e=I.useCallback((ee,J)=>{const Re=DO(b,r),Le=J==="hours"||J==="minutes"&&R.includes("seconds"),De=({start:fe,end:de})=>!(y&&Re(y,de)||O&&Re(fe,O)||v&&Re(fe,xe)||S&&Re(xe,Le?de:fe)),ie=(fe,de=1)=>{if(fe%de!==0||C!=null&&C(fe,J))return!1;if(w)switch(J){case"hours":return!w(r.setHours(ge,fe),"hours");case"minutes":return!w(r.setMinutes(ge,fe),"minutes");case"seconds":return!w(r.setSeconds(ge,fe),"seconds");default:return!1}return!0};switch(J){case"hours":{const fe=f1(ee,ye,o),de=r.setHours(ge,fe),Oe=r.setSeconds(r.setMinutes(de,0),0),Te=r.setSeconds(r.setMinutes(de,59),59);return!De({start:Oe,end:Te})||!ie(fe)}case"minutes":{const fe=r.setMinutes(ge,ee),de=r.setSeconds(fe,0),Oe=r.setSeconds(fe,59);return!De({start:de,end:Oe})||!ie(ee,k)}case"seconds":{const fe=r.setSeconds(ge,ee);return!De({start:fe,end:fe})||!ie(ee)}default:throw new Error("not supported")}},[o,ge,b,O,ye,y,k,C,w,r,v,S,xe,R]),We=$l(),dt=I.useMemo(()=>{switch(Ne){case"hours":{const ee=(J,Re)=>{const Le=f1(J,ye,o);Ye(r.setHours(ge,Le),Re)};return{onChange:ee,viewValue:r.getHours(ge),children:dGe({value:ve,utils:r,ampm:o,onChange:ee,getClockNumberText:ue.hoursClockNumberText,isDisabled:J=>X||$e(J,"hours"),selectedId:We})}}case"minutes":{const ee=r.getMinutes(ge),J=(Re,Le)=>{Ye(r.setMinutes(ge,Re),Le)};return{viewValue:ee,onChange:J,children:TV({utils:r,value:ee,onChange:J,getClockNumberText:ue.minutesClockNumberText,isDisabled:Re=>X||$e(Re,"minutes"),selectedId:We})}}case"seconds":{const ee=r.getSeconds(ge),J=(Re,Le)=>{Ye(r.setSeconds(ge,Re),Le)};return{viewValue:ee,onChange:J,children:TV({utils:r,value:ee,onChange:J,getClockNumberText:ue.secondsClockNumberText,isDisabled:Re=>X||$e(Re,"seconds"),selectedId:We})}}default:throw new Error("You must provide the type for ClockView")}},[Ne,r,ve,o,ue.hoursClockNumberText,ue.minutesClockNumberText,ue.secondsClockNumberText,ye,Ye,ge,$e,We,X]),Be=i,re=pGe(Be);return P.jsxs(hGe,L({ref:n,className:Je(re.root,W),ownerState:Be},Z,{children:[P.jsx(aGe,L({autoFocus:s??!!V,ampmInClock:a&&R.includes("hours"),value:ve,type:Ne,ampm:o,minutesStep:k,isTimeDisabled:$e,meridiemMode:ye,handleMeridiemChange:ze,selectedId:We,disabled:X,readOnly:q},dt)),E&&P.jsx(mGe,{className:re.arrowSwitcher,slots:j,slotProps:se,onGoToPrevious:()=>Ve(Ke),isPreviousDisabled:!Ke,previousLabel:ue.openPreviousView,onGoToNext:()=>Ve(Me),isNextDisabled:!Me,nextLabel:ue.openNextView,ownerState:Be})]}))});function yGe(e){return At("MuiDigitalClock",e)}const OGe=_t("MuiDigitalClock",["root","list","item"]),vGe=["ampm","timeStep","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],EGe=e=>{const{classes:t}=e;return kt({root:["root"],list:["list"],item:["item"]},yGe,t)},SGe=Se(Ux,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:e.alreadyRendered?"smooth":"auto"},maxHeight:$ne})),TGe=Se(G1,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),wGe=Se(yp,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:cn(e.palette.primary.main,e.palette.action.focusOpacity)}})),kGe=I.forwardRef(function(t,n){var r,i,o;const a=Rn(),s=I.useRef(null),l=yn(n,s),u=gt({props:t,name:"MuiDigitalClock"}),{ampm:c=a.is12HourCycleInCurrentLocale(),timeStep:d=30,autoFocus:p,components:h,componentsProps:m,slots:b,slotProps:O,value:y,defaultValue:v,referenceDate:S,disableIgnoringDatePartForTimeValidation:k=!1,maxTime:C,minTime:w,disableFuture:E,disablePast:$,minutesStep:N=1,shouldDisableClock:R,shouldDisableTime:B,onChange:U,view:V,openTo:z,onViewChange:W,focusedView:X,onFocusedViewChange:q,className:Y,disabled:Z,readOnly:j,views:se=["hours"],skipDisabled:ve=!1,timezone:G}=u,ce=Ge(u,vGe),{value:ge,handleValueChange:ue,timezone:xe}=qg({name:"DigitalClock",timezone:G,value:y,defaultValue:v,onChange:U,valueManager:Bi}),Ne=Ui(),Ve=ff(xe),Ke=I.useMemo(()=>L({},u,{alreadyRendered:!!s.current}),[u]),Me=EGe(Ke),Ye=(r=(i=b==null?void 0:b.digitalClockItem)!=null?i:h==null?void 0:h.DigitalClockItem)!=null?r:wGe,ye=kn({elementType:Ye,externalSlotProps:(o=O==null?void 0:O.digitalClockItem)!=null?o:m==null?void 0:m.digitalClockItem,ownerState:{},className:Me.item}),ze=nF({value:ge,referenceDate:S,utils:a,props:u,timezone:xe}),$e=jt(ee=>ue(ee,"finish","hours")),{setValueAndGoToNextView:We}=PO({view:V,views:se,openTo:z,onViewChange:W,onChange:$e,focusedView:X,onFocusedViewChange:q}),dt=jt(ee=>{We(ee,"finish")});I.useEffect(()=>{if(s.current===null)return;const ee=s.current.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');if(!ee)return;const J=ee.offsetTop;s.current.scrollTop=J-4});const Be=I.useCallback(ee=>{const J=DO(k,a),Re=()=>!(w&&J(w,ee)||C&&J(ee,C)||E&&J(ee,Ve)||$&&J(Ve,ee)),Le=()=>a.getMinutes(ee)%N!==0||R!=null&&R(a.toJsDate(ee).getTime(),"hours")?!1:B?!B(ee,"hours"):!0;return!Re()||!Le()},[k,a,w,C,E,Ve,$,N,R,B]),re=I.useMemo(()=>{const ee=a.startOfDay(ze);return[ee,...Array.from({length:Math.ceil(24*60/d)-1},(J,Re)=>a.addMinutes(ee,d*(Re+1)))]},[ze,d,a]);return P.jsx(SGe,L({ref:l,className:Je(Me.root,Y),ownerState:Ke},ce,{children:P.jsx(TGe,{autoFocusItem:p||!!X,role:"listbox","aria-label":Ne.timePickerToolbarTitle,className:Me.list,children:re.map(ee=>{if(ve&&Be(ee))return null;const J=a.isEqual(ee,ge);return P.jsx(Ye,L({onClick:()=>!j&&dt(ee),selected:J,disabled:Z||Be(ee),disableRipple:j,role:"option","aria-disabled":j,"aria-selected":J},ye,{children:a.format(ee,c?"fullTime12h":"fullTime24h")}),a.toISO(ee))})})}))}),vm=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:h,maxTime:m,shouldDisableTime:b,shouldDisableClock:O,minutesStep:y,ampm:v,ampmInClock:S,components:k,componentsProps:C,slots:w,slotProps:E,readOnly:$,disabled:N,sx:R,autoFocus:B,showViewSwitcher:U,disableIgnoringDatePartForTimeValidation:V,timezone:z})=>P.jsx(bGe,{view:e,onViewChange:t,focusedView:n&&pg(n)?n:null,onFocusedViewChange:r,views:i.filter(pg),value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:h,maxTime:m,shouldDisableTime:b,shouldDisableClock:O,minutesStep:y,ampm:v,ampmInClock:S,components:k,componentsProps:C,slots:w,slotProps:E,readOnly:$,disabled:N,sx:R,autoFocus:B,showViewSwitcher:U,disableIgnoringDatePartForTimeValidation:V,timezone:z}),are=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:h,maxTime:m,shouldDisableTime:b,shouldDisableClock:O,minutesStep:y,ampm:v,components:S,componentsProps:k,slots:C,slotProps:w,readOnly:E,disabled:$,sx:N,autoFocus:R,disableIgnoringDatePartForTimeValidation:B,timeSteps:U,skipDisabled:V,timezone:z})=>P.jsx(kGe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(pg),value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:h,maxTime:m,shouldDisableTime:b,shouldDisableClock:O,minutesStep:y,ampm:v,components:S,componentsProps:k,slots:C,slotProps:w,readOnly:E,disabled:$,sx:N,autoFocus:R,disableIgnoringDatePartForTimeValidation:B,timeStep:U==null?void 0:U.minutes,skipDisabled:V,timezone:z}),eD=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:h,maxTime:m,shouldDisableTime:b,shouldDisableClock:O,minutesStep:y,ampm:v,components:S,componentsProps:k,slots:C,slotProps:w,readOnly:E,disabled:$,sx:N,autoFocus:R,disableIgnoringDatePartForTimeValidation:B,timeSteps:U,skipDisabled:V,timezone:z})=>P.jsx($Ye,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(pg),value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:h,maxTime:m,shouldDisableTime:b,shouldDisableClock:O,minutesStep:y,ampm:v,components:S,componentsProps:k,slots:C,slotProps:w,readOnly:E,disabled:$,sx:N,autoFocus:R,disableIgnoringDatePartForTimeValidation:B,timeSteps:U,skipDisabled:V,timezone:z}),wf=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minDate:h,minTime:m,maxDate:b,maxTime:O,shouldDisableDate:y,shouldDisableMonth:v,shouldDisableYear:S,shouldDisableTime:k,shouldDisableClock:C,reduceAnimations:w,minutesStep:E,ampm:$,onMonthChange:N,monthsPerRow:R,onYearChange:B,yearsPerRow:U,defaultCalendarMonth:V,components:z,componentsProps:W,slots:X,slotProps:q,loading:Y,renderLoading:Z,disableHighlightToday:j,readOnly:se,disabled:ve,showDaysOutsideCurrentMonth:G,dayOfWeekFormatter:ce,sx:ge,autoFocus:ue,fixedWeekNumber:xe,displayWeekNumber:Ne,timezone:Ve,disableIgnoringDatePartForTimeValidation:Ke,timeSteps:Me,skipDisabled:Ye,timeViewsCount:ye,shouldRenderTimeInASingleColumn:ze})=>{var $e,We;const dt=!!(($e=rf((We=q==null?void 0:q.actionBar)!=null?We:W==null?void 0:W.actionBar,{}))!=null&&($e=$e.actions)!=null&&$e.length),Be={view:qc(e)?e:"hours",onViewChange:t,focusedView:r&&qc(r)?r:null,onFocusedViewChange:i,views:n.filter(qc),value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:m,maxTime:O,shouldDisableTime:k,shouldDisableClock:C,minutesStep:E,ampm:$,components:z,componentsProps:W,slots:X,slotProps:q,readOnly:se,disabled:ve,autoFocus:ue,disableIgnoringDatePartForTimeValidation:Ke,timeSteps:Me,skipDisabled:Ye,timezone:Ve};return P.jsxs(I.Fragment,{children:[P.jsxs(FYe,{children:[P.jsx(Xne,{view:ym(e)?e:"day",onViewChange:t,views:n.filter(ym),focusedView:r&&ym(r)?r:null,onFocusedViewChange:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minDate:h,maxDate:b,shouldDisableDate:y,shouldDisableMonth:v,shouldDisableYear:S,reduceAnimations:w,onMonthChange:N,monthsPerRow:R,onYearChange:B,yearsPerRow:U,defaultCalendarMonth:V,components:z,componentsProps:W,slots:X,slotProps:q,loading:Y,renderLoading:Z,disableHighlightToday:j,readOnly:se,disabled:ve,showDaysOutsideCurrentMonth:G,dayOfWeekFormatter:ce,sx:ge,autoFocus:ue,fixedWeekNumber:xe,displayWeekNumber:Ne,timezone:Ve}),ye>0&&P.jsxs(I.Fragment,{children:[P.jsx(lc,{orientation:"vertical"}),ze?are(L({},Be,{view:"hours",views:["hours"],focusedView:r&&qc(r)?"hours":null,sx:L({width:"auto",[`&.${OGe.root}`]:{maxHeight:$x}},Array.isArray(ge)?ge:[ge])})):eD(L({},Be,{view:qc(e)?e:"hours",views:n.filter(qc),focusedView:r&&qc(r)?r:null,sx:L({borderBottom:0,width:"auto",[`.${CYe.root}`]:{maxHeight:"100%"}},Array.isArray(ge)?ge:[ge])}))]})]}),dt&&P.jsx(lc,{})]})},xGe=["views","format"],sre=(e,t)=>{let{views:n,format:r}=t,i=Ge(t,xGe);if(r)return r;const o=[],a=[];if(n.forEach(u=>{pg(u)?a.push(u):o.push(u)}),a.length===0)return d1(e,L({views:o},i),!1);if(o.length===0)return uw(e,L({views:a},i));const s=uw(e,L({views:a},i));return`${d1(e,L({views:o},i),!1)} ${s}`},CGe=(e,t,n)=>n?t.filter(r=>!qc(r)||r==="hours"):e?[...t,"meridiem"]:t,AGe=(e,t)=>{var n,r;return 24*60/(((n=e.hours)!=null?n:1)*((r=e.minutes)!=null?r:5))<=t};function lre({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const i=e??24,o=L({hours:1,minutes:5,seconds:5},n),a=AGe(o,i);return{thresholdToRenderTimeInASingleColumn:i,timeSteps:o,shouldRenderTimeInASingleColumn:a,views:CGe(t,r,a)}}const ure=I.forwardRef(function(t,n){var r,i,o,a,s,l,u;const c=Ui(),d=Rn(),p=nre(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:h,thresholdToRenderTimeInASingleColumn:m,views:b,timeSteps:O}=lre(p),y=!p.viewRenderers||Object.keys(p.viewRenderers).length===0,v=y?{day:wf,month:wf,year:wf,hours:wf,minutes:wf,seconds:wf,meridiem:wf}:L({day:Zs,month:Zs,year:Zs,hours:null,minutes:null,seconds:null,meridiem:null},p.viewRenderers),S=(r=p.ampmInClock)!=null?r:!0,k=y?["accept"]:[],C=L({},p,{viewRenderers:v,format:sre(d,p),views:b,yearsPerRow:(i=p.yearsPerRow)!=null?i:4,ampmInClock:S,timeSteps:O,thresholdToRenderTimeInASingleColumn:m,shouldRenderTimeInASingleColumn:h,slots:L({field:Jne,openPickerIcon:Lne},p.slots),slotProps:L({},p.slotProps,{field:E=>{var $;return L({},rf(($=p.slotProps)==null?void 0:$.field,E),Zg(p),{ref:n})},toolbar:L({hidden:!0,ampmInClock:S,toolbarVariant:y?"desktop":"mobile"},(o=p.slotProps)==null?void 0:o.toolbar),tabs:L({hidden:!0},(a=p.slotProps)==null?void 0:a.tabs),actionBar:L({actions:k},(s=p.slotProps)==null?void 0:s.actionBar)})}),{renderPicker:w}=K$({props:C,valueManager:Bi,valueType:"date-time",getOpenDialogAriaText:(l=(u=C.localeText)==null?void 0:u.openDatePickerDialogue)!=null?l:c.openDatePickerDialogue,validator:Bx});return w()});ure.propTypes={ampm:Q.bool,ampmInClock:Q.bool,autoFocus:Q.bool,className:Q.string,closeOnSelect:Q.bool,components:Q.object,componentsProps:Q.object,dayOfWeekFormatter:Q.func,defaultCalendarMonth:Q.any,defaultValue:Q.any,disabled:Q.bool,disableFuture:Q.bool,disableHighlightToday:Q.bool,disableIgnoringDatePartForTimeValidation:Q.bool,disableOpenPicker:Q.bool,disablePast:Q.bool,displayWeekNumber:Q.bool,fixedWeekNumber:Q.number,format:Q.string,formatDensity:Q.oneOf(["dense","spacious"]),inputRef:vg,label:Q.node,loading:Q.bool,localeText:Q.object,maxDate:Q.any,maxDateTime:Q.any,maxTime:Q.any,minDate:Q.any,minDateTime:Q.any,minTime:Q.any,minutesStep:Q.number,monthsPerRow:Q.oneOf([3,4]),name:Q.string,onAccept:Q.func,onChange:Q.func,onClose:Q.func,onError:Q.func,onMonthChange:Q.func,onOpen:Q.func,onSelectedSectionsChange:Q.func,onViewChange:Q.func,onYearChange:Q.func,open:Q.bool,openTo:Q.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:Q.oneOf(["landscape","portrait"]),readOnly:Q.bool,reduceAnimations:Q.bool,referenceDate:Q.any,renderLoading:Q.func,selectedSections:Q.oneOfType([Q.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Q.number,Q.shape({endIndex:Q.number.isRequired,startIndex:Q.number.isRequired})]),shouldDisableClock:Q.func,shouldDisableDate:Q.func,shouldDisableMonth:Q.func,shouldDisableTime:Q.func,shouldDisableYear:Q.func,showDaysOutsideCurrentMonth:Q.bool,skipDisabled:Q.bool,slotProps:Q.object,slots:Q.object,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object]),thresholdToRenderTimeInASingleColumn:Q.number,timeSteps:Q.shape({hours:Q.number,minutes:Q.number,seconds:Q.number}),timezone:Q.string,value:Q.any,view:Q.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:Q.shape({day:Q.func,hours:Q.func,meridiem:Q.func,minutes:Q.func,month:Q.func,seconds:Q.func,year:Q.func}),views:Q.arrayOf(Q.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:Q.oneOf([3,4])};const cre=I.forwardRef(function(t,n){var r,i,o,a,s;const l=Ui(),u=Rn(),c=nre(t,"MuiMobileDateTimePicker"),d=L({day:Zs,month:Zs,year:Zs,hours:vm,minutes:vm,seconds:vm},c.viewRenderers),p=(r=c.ampmInClock)!=null?r:!1,h=L({},c,{viewRenderers:d,format:sre(u,c),ampmInClock:p,slots:L({field:Jne},c.slots),slotProps:L({},c.slotProps,{field:b=>{var O;return L({},rf((O=c.slotProps)==null?void 0:O.field,b),Zg(c),{ref:n})},toolbar:L({hidden:!1,ampmInClock:p},(i=c.slotProps)==null?void 0:i.toolbar),tabs:L({hidden:!1},(o=c.slotProps)==null?void 0:o.tabs)})}),{renderPicker:m}=eF({props:h,valueManager:Bi,valueType:"date-time",getOpenDialogAriaText:(a=(s=h.localeText)==null?void 0:s.openDatePickerDialogue)!=null?a:l.openDatePickerDialogue,validator:Bx});return m()});cre.propTypes={ampm:Q.bool,ampmInClock:Q.bool,autoFocus:Q.bool,className:Q.string,closeOnSelect:Q.bool,components:Q.object,componentsProps:Q.object,dayOfWeekFormatter:Q.func,defaultCalendarMonth:Q.any,defaultValue:Q.any,disabled:Q.bool,disableFuture:Q.bool,disableHighlightToday:Q.bool,disableIgnoringDatePartForTimeValidation:Q.bool,disableOpenPicker:Q.bool,disablePast:Q.bool,displayWeekNumber:Q.bool,fixedWeekNumber:Q.number,format:Q.string,formatDensity:Q.oneOf(["dense","spacious"]),inputRef:vg,label:Q.node,loading:Q.bool,localeText:Q.object,maxDate:Q.any,maxDateTime:Q.any,maxTime:Q.any,minDate:Q.any,minDateTime:Q.any,minTime:Q.any,minutesStep:Q.number,monthsPerRow:Q.oneOf([3,4]),name:Q.string,onAccept:Q.func,onChange:Q.func,onClose:Q.func,onError:Q.func,onMonthChange:Q.func,onOpen:Q.func,onSelectedSectionsChange:Q.func,onViewChange:Q.func,onYearChange:Q.func,open:Q.bool,openTo:Q.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:Q.oneOf(["landscape","portrait"]),readOnly:Q.bool,reduceAnimations:Q.bool,referenceDate:Q.any,renderLoading:Q.func,selectedSections:Q.oneOfType([Q.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Q.number,Q.shape({endIndex:Q.number.isRequired,startIndex:Q.number.isRequired})]),shouldDisableClock:Q.func,shouldDisableDate:Q.func,shouldDisableMonth:Q.func,shouldDisableTime:Q.func,shouldDisableYear:Q.func,showDaysOutsideCurrentMonth:Q.bool,slotProps:Q.object,slots:Q.object,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object]),timezone:Q.string,value:Q.any,view:Q.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:Q.shape({day:Q.func,hours:Q.func,minutes:Q.func,month:Q.func,seconds:Q.func,year:Q.func}),views:Q.arrayOf(Q.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:Q.oneOf([3,4])};const _Ge=["desktopModeMediaQuery"],RGe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:i=Y$}=r,o=Ge(r,_Ge);return kg(i,{defaultMatches:!0})?P.jsx(ure,L({ref:n},o)):P.jsx(cre,L({ref:n},o))}),IGe=e=>{var t,n,r,i;const o=Rn(),s=((t=e.ampm)!=null?t:o.is12HourCycleInCurrentLocale())?o.formats.fullTime12h:o.formats.fullTime24h;return L({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(i=e.format)!=null?i:s})},DGe=({props:e,inputRef:t})=>{const n=IGe(e),{forwardedProps:r,internalProps:i}=X$(n,"time");return Z$({inputRef:t,forwardedProps:r,internalProps:i,valueManager:Bi,fieldValueManager:W$,validator:LO,valueType:"time"})},NGe=["slots","slotProps","components","componentsProps","InputProps","inputProps"],PGe=["inputRef"],LGe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],dre=I.forwardRef(function(t,n){var r,i,o;const a=gt({props:t,name:"MuiTimeField"}),{slots:s,slotProps:l,components:u,componentsProps:c,InputProps:d,inputProps:p}=a,h=Ge(a,NGe),m=a,b=(r=(i=s==null?void 0:s.textField)!=null?i:u==null?void 0:u.TextField)!=null?r:Np,O=kn({elementType:b,externalSlotProps:(o=l==null?void 0:l.textField)!=null?o:c==null?void 0:c.textField,externalForwardedProps:h,ownerState:m}),{inputRef:y}=O,v=Ge(O,PGe);v.inputProps=L({},p,v.inputProps),v.InputProps=L({},d,v.InputProps);const S=DGe({props:v,inputRef:y}),{ref:k,onPaste:C,onKeyDown:w,inputMode:E,readOnly:$,clearable:N,onClear:R}=S,B=Ge(S,LGe),{InputProps:U,fieldProps:V}=J$({onClear:R,clearable:N,fieldProps:B,InputProps:B.InputProps,slots:s,slotProps:l,components:u,componentsProps:c});return P.jsx(b,L({ref:n},V,{InputProps:L({},U,{readOnly:$}),inputProps:L({},B.inputProps,{inputMode:E,onPaste:C,onKeyDown:w,ref:k})}))});function MGe(e){return At("MuiTimePickerToolbar",e)}const Kb=_t("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),$Ge=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly"],FGe=e=>{const{theme:t,isLandscape:n,classes:r}=e,i={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape",t.direction==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return kt(i,MGe,r)},BGe=Se(Q$,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),UGe=Se(G$,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),fre=Se("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${Kb.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${Kb.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>L({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"}));fre.propTypes={as:Q.elementType,ownerState:Q.object.isRequired,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object])};const pre=Se("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${Kb.ampmLabel}`]:t.ampmLabel},{[`&.${Kb.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>L({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${Kb.ampmLabel}`]:{fontSize:17}}));pre.propTypes={as:Q.elementType,ownerState:Q.object.isRequired,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object])};function jGe(e){const t=gt({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:i,isLandscape:o,onChange:a,view:s,onViewChange:l,views:u,disabled:c,readOnly:d}=t,p=Ge(t,$Ge),h=Rn(),m=Ui(),b=ci(),O=!!(n&&!r&&u.includes("hours")),{meridiemMode:y,handleMeridiemChange:v}=Fx(i,n,a),S=E=>n?h.format(E,"hours12h"):h.format(E,"hours24h"),k=t,C=FGe(L({},k,{theme:b})),w=P.jsx(UGe,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:C.separator});return P.jsxs(BGe,L({landscapeDirection:"row",toolbarTitle:m.timePickerToolbarTitle,isLandscape:o,ownerState:k,className:C.root},p,{children:[P.jsxs(fre,{className:C.hourMinuteLabel,ownerState:k,children:[Rh(u,"hours")&&P.jsx(Ka,{tabIndex:-1,variant:"h3",onClick:()=>l("hours"),selected:s==="hours",value:i?S(i):"--"}),Rh(u,["hours","minutes"])&&w,Rh(u,"minutes")&&P.jsx(Ka,{tabIndex:-1,variant:"h3",onClick:()=>l("minutes"),selected:s==="minutes",value:i?h.format(i,"minutes"):"--"}),Rh(u,["minutes","seconds"])&&w,Rh(u,"seconds")&&P.jsx(Ka,{variant:"h3",onClick:()=>l("seconds"),selected:s==="seconds",value:i?h.format(i,"seconds"):"--"})]}),O&&P.jsxs(pre,{className:C.ampmSelection,ownerState:k,children:[P.jsx(Ka,{disableRipple:!0,variant:"subtitle2",selected:y==="am",typographyClassName:C.ampmLabel,value:kl(h,"am"),onClick:d?void 0:()=>v("am"),disabled:c}),P.jsx(Ka,{disableRipple:!0,variant:"subtitle2",selected:y==="pm",typographyClassName:C.ampmLabel,value:kl(h,"pm"),onClick:d?void 0:()=>v("pm"),disabled:c})]})]}))}function hre(e,t){var n,r,i,o,a;const s=Rn(),l=gt({props:e,name:t}),u=(n=l.ampm)!=null?n:s.is12HourCycleInCurrentLocale(),c=I.useMemo(()=>{var h;return((h=l.localeText)==null?void 0:h.toolbarTitle)==null?l.localeText:L({},l.localeText,{timePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),d=(r=l.slots)!=null?r:NO(l.components),p=(i=l.slotProps)!=null?i:l.componentsProps;return L({},l,{ampm:u,localeText:c},j$({views:l.views,openTo:l.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{disableFuture:(o=l.disableFuture)!=null?o:!1,disablePast:(a=l.disablePast)!=null?a:!1,slots:L({toolbar:jGe},d),slotProps:L({},p,{toolbar:L({ampm:u,ampmInClock:l.ampmInClock},p==null?void 0:p.toolbar)})})}const mre=I.forwardRef(function(t,n){var r,i,o,a,s,l;const u=Ui(),c=Rn(),d=hre(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:p,views:h,timeSteps:m}=lre(d),b=p?are:eD,O=L({hours:b,minutes:b,seconds:b,meridiem:b},d.viewRenderers),y=(r=d.ampmInClock)!=null?r:!0,v=p?[]:["accept"],k=((i=O.hours)==null?void 0:i.name)===eD.name?h:h.filter(E=>E!=="meridiem"),C=L({},d,{ampmInClock:y,timeSteps:m,viewRenderers:O,format:uw(c,d),views:p?["hours"]:k,slots:L({field:dre,openPickerIcon:SHe},d.slots),slotProps:L({},d.slotProps,{field:E=>{var $;return L({},rf(($=d.slotProps)==null?void 0:$.field,E),Zg(d),{ref:n})},toolbar:L({hidden:!0,ampmInClock:y},(o=d.slotProps)==null?void 0:o.toolbar),actionBar:L({actions:v},(a=d.slotProps)==null?void 0:a.actionBar)})}),{renderPicker:w}=K$({props:C,valueManager:Bi,valueType:"time",getOpenDialogAriaText:(s=(l=C.localeText)==null?void 0:l.openTimePickerDialogue)!=null?s:u.openTimePickerDialogue,validator:LO});return w()});mre.propTypes={ampm:Q.bool,ampmInClock:Q.bool,autoFocus:Q.bool,className:Q.string,closeOnSelect:Q.bool,components:Q.object,componentsProps:Q.object,defaultValue:Q.any,disabled:Q.bool,disableFuture:Q.bool,disableIgnoringDatePartForTimeValidation:Q.bool,disableOpenPicker:Q.bool,disablePast:Q.bool,format:Q.string,formatDensity:Q.oneOf(["dense","spacious"]),inputRef:vg,label:Q.node,localeText:Q.object,maxTime:Q.any,minTime:Q.any,minutesStep:Q.number,name:Q.string,onAccept:Q.func,onChange:Q.func,onClose:Q.func,onError:Q.func,onOpen:Q.func,onSelectedSectionsChange:Q.func,onViewChange:Q.func,open:Q.bool,openTo:Q.oneOf(["hours","meridiem","minutes","seconds"]),orientation:Q.oneOf(["landscape","portrait"]),readOnly:Q.bool,reduceAnimations:Q.bool,referenceDate:Q.any,selectedSections:Q.oneOfType([Q.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Q.number,Q.shape({endIndex:Q.number.isRequired,startIndex:Q.number.isRequired})]),shouldDisableClock:Q.func,shouldDisableTime:Q.func,skipDisabled:Q.bool,slotProps:Q.object,slots:Q.object,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object]),thresholdToRenderTimeInASingleColumn:Q.number,timeSteps:Q.shape({hours:Q.number,minutes:Q.number,seconds:Q.number}),timezone:Q.string,value:Q.any,view:Q.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:Q.shape({hours:Q.func,meridiem:Q.func,minutes:Q.func,seconds:Q.func}),views:Q.arrayOf(Q.oneOf(["hours","minutes","seconds"]).isRequired)};const gre=I.forwardRef(function(t,n){var r,i,o,a;const s=Ui(),l=Rn(),u=hre(t,"MuiMobileTimePicker"),c=L({hours:vm,minutes:vm,seconds:vm},u.viewRenderers),d=(r=u.ampmInClock)!=null?r:!1,p=L({},u,{ampmInClock:d,viewRenderers:c,format:uw(l,u),slots:L({field:dre},u.slots),slotProps:L({},u.slotProps,{field:m=>{var b;return L({},rf((b=u.slotProps)==null?void 0:b.field,m),Zg(u),{ref:n})},toolbar:L({hidden:!1,ampmInClock:d},(i=u.slotProps)==null?void 0:i.toolbar)})}),{renderPicker:h}=eF({props:p,valueManager:Bi,valueType:"time",getOpenDialogAriaText:(o=(a=p.localeText)==null?void 0:a.openTimePickerDialogue)!=null?o:s.openTimePickerDialogue,validator:LO});return h()});gre.propTypes={ampm:Q.bool,ampmInClock:Q.bool,autoFocus:Q.bool,className:Q.string,closeOnSelect:Q.bool,components:Q.object,componentsProps:Q.object,defaultValue:Q.any,disabled:Q.bool,disableFuture:Q.bool,disableIgnoringDatePartForTimeValidation:Q.bool,disableOpenPicker:Q.bool,disablePast:Q.bool,format:Q.string,formatDensity:Q.oneOf(["dense","spacious"]),inputRef:vg,label:Q.node,localeText:Q.object,maxTime:Q.any,minTime:Q.any,minutesStep:Q.number,name:Q.string,onAccept:Q.func,onChange:Q.func,onClose:Q.func,onError:Q.func,onOpen:Q.func,onSelectedSectionsChange:Q.func,onViewChange:Q.func,open:Q.bool,openTo:Q.oneOf(["hours","minutes","seconds"]),orientation:Q.oneOf(["landscape","portrait"]),readOnly:Q.bool,reduceAnimations:Q.bool,referenceDate:Q.any,selectedSections:Q.oneOfType([Q.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Q.number,Q.shape({endIndex:Q.number.isRequired,startIndex:Q.number.isRequired})]),shouldDisableClock:Q.func,shouldDisableTime:Q.func,slotProps:Q.object,slots:Q.object,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object]),timezone:Q.string,value:Q.any,view:Q.oneOf(["hours","minutes","seconds"]),viewRenderers:Q.shape({hours:Q.func,minutes:Q.func,seconds:Q.func}),views:Q.arrayOf(Q.oneOf(["hours","minutes","seconds"]).isRequired)};const zGe=["desktopModeMediaQuery"],VGe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:i=Y$}=r,o=Ge(r,zGe);return kg(i,{defaultMatches:!0})?P.jsx(mre,L({ref:n},o)):P.jsx(gre,L({ref:n},o))});var rF={},HGe=Oo;Object.defineProperty(rF,"__esModule",{value:!0});var bre=rF.default=void 0,WGe=HGe(vo()),QGe=P;bre=rF.default=(0,WGe.default)((0,QGe.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 iF={},YGe=Oo;Object.defineProperty(iF,"__esModule",{value:!0});var yre=iF.default=void 0,GGe=YGe(vo()),qGe=P;yre=iF.default=(0,GGe.default)((0,qGe.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 tD(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 iqe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function oqe(e,t){return ZGe(e)||eqe(e,t)||Ore(e,t)||tqe()}function Kd(e){return XGe(e)||JGe(e)||Ore(e)||nqe()}function aqe(e){"@swc/helpers - typeof";return e&&typeof Symbol<"u"&&e.constructor===Symbol?"symbol":typeof e}function Ore(e,t){if(e){if(typeof e=="string")return tD(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 tD(e,t)}}var sqe=I.createContext({onError:function(e){return e==null?void 0:e.message}}),Es=function(){var e;return(e=I.useContext(sqe))===null||e===void 0?void 0:e.onError};function La(e){var t;return{value:typeof((t=e.transform)===null||t===void 0?void 0:t.input)=="function"?e.transform.input(e.value):e.value,onChange:function(){for(var n=arguments.length,r=new Array(n),i=0;i()\[\]\\.,;:\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"}}),y=Pa({name:s,control:l,disabled:h.disabled,rules:O}),v=y.field,S=y.fieldState,k=S.error,C=La({value:v.value,onChange:v.onChange,transform:{input:typeof(p==null?void 0:p.input)=="function"?p.input:function(N){return N||""},output:typeof(p==null?void 0:p.output)=="function"?p.output:function(N){var R=N.target.value;return o==="number"&&R?+R:R}}}),w=C.value,E=C.onChange,$=yn(v.ref,d);return P.jsx(c,Cn(zt({},h),{name:v.name,value:w,onChange:function(N){E(N),typeof h.onChange=="function"&&h.onChange(N)},onBlur:v.onBlur,required:a,type:o,error:!!k,helperText:k?typeof b=="function"?b(k):k.message:h.helperText,ref:t,inputRef:$}))});vre.displayName="TextFieldElement";var Ere=vre;function Sre(e){var t=e.handleSubmit,n=e.children,r=e.FormProps,i=e.formContext,o=e.onSuccess,a=e.onError,s=To(e,["handleSubmit","children","FormProps","formContext","onSuccess","onError"]);return i?(typeof o=="function"&&typeof t=="function"&&console.warn("Property `onSuccess` will be ignored because handleSubmit is provided"),P.jsx(cne,Cn(zt({},i),{children:P.jsx("form",Cn(zt({noValidate:!0},r),{onSubmit:t||(o?i.handleSubmit(o,a):function(){return console.log("submit handler `onSuccess` is missing")}),children:n}))}))):P.jsx(lqe,zt({onSuccess:o,onError:a,FormProps:r,children:n},s))}function lqe(e){var t=e.onSuccess,n=e.onError,r=e.FormProps,i=e.children,o=To(e,["onSuccess","onError","FormProps","children"]),a=jVe(zt({},o)),s=a.handleSubmit;return P.jsx(cne,Cn(zt({},a),{children:P.jsx("form",Cn(zt({onSubmit:s(t||function(){return console.log("submit handler `onSuccess` is missing")},n),noValidate:!0},r),{children:i}))}))}var Tre={disableFuture:"Date must be in the past",maxDate:"Date is later than the maximum allowed date",disablePast:"Past date is not allowed",invalidDate:"Date is invalid",minDate:"Date is earlier than the minimum allowed date",shouldDisableDate:"Date is not allowed",shouldDisableMonth:"Month is not allowed",shouldDisableYear:"Year is not allowed"},uqe=I.forwardRef(function(e,t){var n=e.parseError,r=e.name,i=e.required,o=e.validation,a=o===void 0?{}:o,s=e.inputProps,l=e.control,u=e.textReadOnly,c=e.slotProps,d=e.overwriteErrorMessages,p=e.inputRef,h=e.transform,m=To(e,["parseError","name","required","validation","inputProps","control","textReadOnly","slotProps","overwriteErrorMessages","inputRef","transform"]),b=Vl(),O=Es(),y=n||O,v=zt({},Tre,d),S=Cn(zt({},a,i&&!a.required&&{required:"This field is required"}),{validate:zt({internal:function(V){var z,W,X=V==null||!b.utils.isValid(V)?null:b.utils.getTimezone(V),q=Hp({props:{shouldDisableDate:m.shouldDisableDate,shouldDisableMonth:m.shouldDisableMonth,shouldDisableYear:m.shouldDisableYear,disablePast:!!m.disablePast,disableFuture:!!m.disableFuture,minDate:m.minDate,maxDate:m.maxDate,timezone:(W=(z=m.timezone)!==null&&z!==void 0?z:X)!==null&&W!==void 0?W:"default"},value:V,adapter:b});return q==null||v[q]}},a.validate)}),k=Pa({name:r,control:l,rules:S,disabled:m.disabled,defaultValue:null}),C=k.field,w=k.fieldState,E=w.error,$=La({value:C.value,onChange:C.onChange,transform:{input:typeof(h==null?void 0:h.input)=="function"?h.input:function(V){return V&&V==="string"?new Date(V):V},output:typeof(h==null?void 0:h.output)=="function"?h.output:function(V){return V}}}),N=$.value,R=$.onChange,B=yn(C.ref,p),U=E?typeof y=="function"?y(E):E.message:null;return P.jsx(aYe,Cn(zt({},m,C),{value:N,ref:t,inputRef:B,onClose:function(){for(var V=arguments.length,z=new Array(V),W=0;W"u"?"undefined":aqe(V))<"u"&&(S.InputLabelProps=S.InputLabelProps||{},S.InputLabelProps.shrink=!0),P.jsxs(Np,Cn(zt({},S),{name:r,value:V,onBlur:N.onBlur,ref:t,onChange:function(X){if(z(X),typeof S.onChange=="function"){var q=X.target.value;p==="number"&&q&&(q=Number(q)),h&&(q=c.find(function(Y){return Y[a]===q})),S.onChange(q)}},select:!0,required:i,error:!!B,helperText:B?typeof C=="function"?C(B):B.message:S.helperText,inputRef:W,children:[w&&P.jsx("option",{}),c.map(function(X){var q,Y={key:"".concat(r,"_").concat(X[a]),value:(q=X==null?void 0:X[a])!==null&&q!==void 0?q:X,disabled:Ea(X,"disabled")?!!X.disabled:!1,children:X[l]};return w?P.jsx("option",zt({},Y)):P.jsx(yp,zt({},Y))})]}))});wre.displayName="SelectElement";var gqe=wre,bqe=I.forwardRef(function(e,t){var n=e.helperText,r=e.options,i=e.label,o=e.name,a=e.parseError,s=e.required,l=e.labelKey,u=l===void 0?"label":l,c=e.valueKey,d=c===void 0?"id":c,p=e.returnObject,h=e.disabled,m=e.row,b=e.control,O=e.checkboxColor,y=e.rules,v=e.labelProps,S=e.transform,k=e.defaultValue,C=k===void 0?[]:k,w=To(e,["helperText","options","label","name","parseError","required","labelKey","valueKey","returnObject","disabled","row","control","checkboxColor","rules","labelProps","transform","defaultValue"]),E=ci(),$=Es(),N=a||$,R=Pa({name:o,rules:s?{required:"This field is required"}:y,disabled:h,control:b,defaultValue:C}),B=R.field,U=R.fieldState,V=U.error,z=U.invalid,W=La({value:B.value,onChange:B.onChange,transform:{input:typeof(S==null?void 0:S.input)=="function"?S.input:function(j){return Array.isArray(j)?j:[]},output:S==null?void 0:S.output}}),X=W.value,q=W.onChange,Y=function(j){var se=Ea(j,d)?j[d]:j,ve=X.findIndex(function(ce){var ge=Ea(ce,d)?ce[d]:ce;return se===ge}),G=(ve===-1?Kd(X).concat([j]):X.filter(function(ce,ge){return ve!==ge})).map(function(ce){return p||!Ea(ce,d)?ce:ce[d]});q(G),typeof w.onChange=="function"&&w.onChange(G)},Z=V?typeof N=="function"?N(V):V.message:n;return P.jsxs(sf,{error:z,required:s,ref:t,children:[i?P.jsx(_k,{children:i}):null,P.jsx(zN,{row:m,children:r.map(function(j){var se=Ea(j,d)?j[d]:j,ve=Ea(j,u)?j[u]:j,G=X.some(function(ce){return(Ea(ce,d)?ce[d]:ce)===se});return I.createElement(xy,Cn(zt({},v),{control:P.jsx(Ck,{sx:{color:V?E.palette.error.main:void 0},color:O,value:se,checked:G,disabled:h,onChange:function(){return Y(j)}}),label:"".concat(ve),key:"".concat(se)}))})}),Z&&P.jsx(wg,{children:Z})]})});bqe.displayName="CheckboxButtonGroup";var yqe=48,Oqe=8,vqe=I.forwardRef(function(e,t){var n,r,i,o,a,s=e.options,l=e.label,u=l===void 0?"":l,c=e.itemKey,d=c===void 0?"id":c,p=e.itemValue,h=p===void 0?"":p,m=e.itemLabel,b=m===void 0?"label":m,O=e.required,y=O===void 0?!1:O,v=e.validation,S=v===void 0?{}:v,k=e.parseError,C=e.name,w=e.menuMaxHeight,E=w===void 0?yqe*4.5+Oqe:w,$=e.menuMaxWidth,N=$===void 0?250:$,R=e.minWidth,B=R===void 0?120:R,U=e.helperText,V=e.showChips,z=e.preserveOrder,W=e.control,X=e.showCheckbox,q=e.formControlProps,Y=e.inputRef,Z=e.transform,j=To(e,["options","label","itemKey","itemValue","itemLabel","required","validation","parseError","name","menuMaxHeight","menuMaxWidth","minWidth","helperText","showChips","preserveOrder","control","showCheckbox","formControlProps","inputRef","transform"]),se=Es(),ve=k||se,G=function($e){var We,dt;return(dt=(We=s.find(function(Be){var re;return((re=Be[h||d])!==null&&re!==void 0?re:Be)===$e}))===null||We===void 0?void 0:We[b])!==null&&dt!==void 0?dt:$e},ce=zt({},S,y&&!S.required&&{required:"This field is required"}),ge=Pa({name:C,rules:ce,disabled:j.disabled,control:W}),ue=ge.field,xe=ge.fieldState,Ne=xe.error,Ve=La({value:ue.value,onChange:ue.onChange,transform:{input:typeof(Z==null?void 0:Z.input)=="function"?Z.input:function($e){return Array.isArray($e)?$e:[]},output:Z==null?void 0:Z.output}}),Ke=Ve.value,Me=Ve.onChange,Ye=yn(ue.ref,Y),ye=Ne?typeof ve=="function"?ve(Ne):Ne.message:U,ze;return P.jsxs(sf,Cn(zt({},q),{style:zt({minWidth:B},q==null?void 0:q.style),variant:j.variant,fullWidth:j.fullWidth,error:!!Ne,size:j.size,ref:t,children:[u&&P.jsx(_Y,{size:j.size==="small"?"small":void 0,error:!!Ne,htmlFor:j.id||"select-multi-select-".concat(C),required:y,children:u}),P.jsx(jY,Cn(zt({},j),{id:j.id||"select-multi-select-".concat(C),multiple:!0,label:u||void 0,error:!!Ne,value:Ke,required:y,onChange:Me,onBlur:ue.onBlur,MenuProps:Cn(zt({},j.MenuProps),{slotProps:Cn(zt({},(n=j.MenuProps)===null||n===void 0?void 0:n.slotProps),{paper:zt({},(ze=(i=j.MenuProps)===null||i===void 0||(r=i.slotProps)===null||r===void 0?void 0:r.paper)!==null&&ze!==void 0?ze:{style:zt({maxHeight:E,width:N},Ea((a=j.MenuProps)===null||a===void 0||(o=a.slotProps)===null||o===void 0?void 0:o.paper,"style")&&typeof j.MenuProps.slotProps.paper.style=="object"&&zt({},j.MenuProps.slotProps.paper.style))})})}),renderValue:typeof j.renderValue=="function"?j.renderValue:V?function($e){return P.jsx("div",{style:{display:"flex",flexWrap:"wrap"},children:(z?s.filter(function(We){return $e.includes(We)}):$e||[]).map(function(We){return P.jsx(BN,{label:G(We),style:{display:"flex",flexWrap:"wrap"},onDelete:function(){Me((Array.isArray(Ke)?Ke:[]).filter(function(dt){return dt!==We}))},deleteIcon:P.jsx(bre,{onMouseDown:function(dt){dt.stopPropagation()}})},We)})})}:function($e){return Array.isArray($e)?$e.map(G).join(", "):""},inputRef:Ye,children:s.map(function($e){var We=$e[h||d]||$e,dt=Array.isArray(Ke)?Ke.some(function(Be){return Be===We}):!1;return P.jsxs(yp,{value:We,sx:{fontWeight:function(Be){return dt?Be.typography.fontWeightBold:Be.typography.fontWeightRegular}},children:[X&&P.jsx(Ck,{checked:dt}),P.jsx(sp,{primary:$e[b]||$e})]},We)})})),ye&&P.jsx(wg,{error:!!Ne,children:ye})]}))});vqe.displayName="MultiSelectElement";var kre=I.forwardRef(function(e,t){var n=e.iconColor,r=e.renderIcon,i=r===void 0?function(u){return u?P.jsx(gP,{}):P.jsx(yre,{})}:r,o=To(e,["iconColor","renderIcon"]),a=oqe(I.useState(!0),2),s=a[0],l=a[1];return P.jsx(Ere,Cn(zt({},o),{ref:t,InputProps:{endAdornment:P.jsx(VN,{position:"end",children:P.jsx(oa,{onMouseDown:function(u){return u.preventDefault()},onClick:function(){return l(!s)},tabIndex:-1,color:n??"default",children:i(s)})})},type:s?"password":"text"}))});kre.displayName="PasswordElement";var Eqe=kre,Sqe=I.forwardRef(function(e,t){var n=e.helperText,r=e.options,i=e.label,o=e.name,a=e.parseError,s=e.labelKey,l=s===void 0?"label":s,u=e.valueKey,c=u===void 0?"id":u,d=e.required,p=e.emptyOptionLabel,h=e.returnObject,m=e.row,b=e.control,O=e.type,y=e.labelProps,v=e.disabled,S=e.formLabelProps,k=e.transform,C=To(e,["helperText","options","label","name","parseError","labelKey","valueKey","required","emptyOptionLabel","returnObject","row","control","type","labelProps","disabled","formLabelProps","transform"]),w=ci(),E=Es(),$=a||E,N=Pa({name:o,rules:d?{required:"This field is required"}:void 0,disabled:v,control:b}),R=N.field,B=N.fieldState,U=B.error,V=La({value:R.value,onChange:R.onChange,transform:{input:typeof(k==null?void 0:k.input)=="function"?k.input:function(Y){return Y||""},output:typeof(k==null?void 0:k.output)=="function"?k==null?void 0:k.output:function(Y,Z){return Z}}}),z=V.value,W=V.onChange,X=U?typeof $=="function"?$(U):U.message:n,q=function(Y,Z){var j=h?r.find(function(se){return se[c]===Z}):Z;W(Y,j),typeof C.onChange=="function"&&C.onChange(j)};return P.jsxs(sf,{error:!!U,ref:t,children:[i&&P.jsx(_k,Cn(zt({},S),{required:d,error:!!U,children:i})),P.jsxs(HOe,{onChange:q,name:o,row:m,value:z,children:[p&&P.jsx(xy,Cn(zt({},y),{control:P.jsx(M8,{sx:{color:U?w.palette.error.main:void 0},checked:!z}),label:p,value:""})),r.map(function(Y){var Z=Y[c];Z||console.error("CheckboxButtonGroup: valueKey ".concat(c," does not exist on option"),Y);var j=h?z==null?void 0:z[c]:z;O==="number"&&(j=Number(j));var se=j===Z;return I.createElement(xy,Cn(zt({},y),{control:P.jsx(M8,{sx:{color:U?w.palette.error.main:void 0},disabled:v,checked:se}),value:Z,label:Y[l],key:Z}))})]}),X&&P.jsx(wg,{children:X})]})});Sqe.displayName="RadioButtonGroup";var Tqe=I.forwardRef(function(e,t){var n=e.name,r=e.control,i=e.switchProps,o=e.transform,a=To(e,["name","control","switchProps","transform"]),s=Pa({name:n,control:r,disabled:a.disabled}),l=s.field,u=La({value:l.value,onChange:l.onChange,transform:{input:o==null?void 0:o.input,output:typeof(o==null?void 0:o.output)=="function"?o.output:function(h,m){return m}}}),c=u.value,d=u.onChange,p=yn(l.ref,i==null?void 0:i.ref);return P.jsx(xy,zt({ref:t,control:P.jsx(Uve,Cn(zt({},i),{name:l.name,value:c,onChange:function(h,m){d(h,m),typeof(i==null?void 0:i.onChange)=="function"&&i.onChange(h,m)},onBlur:function(h){l.onBlur(),typeof(i==null?void 0:i.onBlur)=="function"&&(i==null||i.onBlur(h))},ref:p,checked:!!c}))},a))});Tqe.displayName="SwitchElement";var wqe=I.forwardRef(function(e,t){var n=e.passwordFieldName,r=e.customInvalidFieldMessage,i=e.control,o=To(e,["passwordFieldName","customInvalidFieldMessage","control"]),a=mne({name:n,control:i});return P.jsx(Eqe,Cn(zt({control:i},o),{ref:t,validation:{validate:function(s){return s===a||(r??"Password should match")}}}))});wqe.displayName="PasswordRepeatElement";var kqe=I.forwardRef(function(e,t){var n=e.textFieldProps,r=e.autocompleteProps,i=e.name,o=e.control,a=e.options,s=e.loading,l=e.showCheckbox,u=e.rules,c=e.loadingIndicator,d=e.required,p=e.multiple,h=e.label,m=e.parseError,b=e.transform,O=e.matchId,y=Es(),v=m||y,S=zt({},u,d&&{required:(u==null?void 0:u.required)||"This field is required"}),k=Pa({name:i,control:o,disabled:r==null?void 0:r.disabled,rules:S}),C=k.field,w=k.fieldState,E=w.error,$=function(q){return typeof(r==null?void 0:r.getOptionLabel)=="function"?r.getOptionLabel(q):Ea(q,"label")?"".concat(q==null?void 0:q.label):"".concat(q)},N=function(q,Y){if(typeof(r==null?void 0:r.isOptionEqualToValue)=="function")return r.isOptionEqualToValue(q,Y);var Z=Ea(q,"id")?q.id:q,j=Ea(Y,"id")?Y.id:Y;return Z===j},R=function(q){return a.find(function(Y){return O&&Ea(Y,"id")?Y.id===q:N(Y,q)})},B=La({value:C.value,onChange:C.onChange,transform:{input:typeof(b==null?void 0:b.input)=="function"?b.input:function(q){var Y;return p?(Array.isArray(q)?q:[]).map(R):(Y=R(q))!==null&&Y!==void 0?Y:null},output:typeof(b==null?void 0:b.output)=="function"?b.output:function(q,Y){if(p){var Z=Array.isArray(Y)?Y:[];return O?Z.map(function(j){return Ea(j,"id")?j.id:j}):Z}return O&&Ea(Y,"id")?Y.id:Y}}}),U=B.value,V=B.onChange,z=yn(C.ref,n==null?void 0:n.inputRef),W=c||P.jsx(Dp,{color:"inherit",size:20}),X;return P.jsx(ige,Cn(zt({},r),{value:U,loading:s,multiple:p,options:a,disableCloseOnSelect:typeof(r==null?void 0:r.disableCloseOnSelect)=="boolean"?r.disableCloseOnSelect:!!p,isOptionEqualToValue:N,getOptionLabel:$,onChange:function(q,Y,Z,j){V(q,Y,Z,j),r!=null&&r.onChange&&r.onChange(q,Y,Z,j)},ref:t,renderOption:(X=r==null?void 0:r.renderOption)!==null&&X!==void 0?X:l?function(q,Y,Z){var j=Z.selected;return P.jsxs("li",Cn(zt({},q),{children:[P.jsx(Ck,{sx:{marginRight:1},checked:j}),$(Y)]}))}:void 0,onBlur:function(q){C.onBlur(),typeof(r==null?void 0:r.onBlur)=="function"&&r.onBlur(q)},renderInput:function(q){return P.jsx(Np,Cn(zt({name:i,required:u!=null&&u.required?!0:d,label:h},n,q),{error:!!E,InputLabelProps:zt({},q.InputLabelProps,n==null?void 0:n.InputLabelProps),InputProps:zt(Cn(zt({},q.InputProps),{endAdornment:P.jsxs(P.Fragment,{children:[s?W:null,q.InputProps.endAdornment]})}),n==null?void 0:n.InputProps),inputProps:zt({},q.inputProps,n==null?void 0:n.inputProps),helperText:E?typeof v=="function"?v(E):E.message:n==null?void 0:n.helperText,inputRef:z}))}}))});kqe.displayName="AutocompleteElement";var xqe=I.forwardRef(function(e,t){var n=e.name,r=e.control,i=e.label,o=e.rules,a=o===void 0?{}:o,s=e.parseError,l=e.required,u=e.formControlProps,c=e.transform,d=To(e,["name","control","label","rules","parseError","required","formControlProps","transform"]),p=Es(),h=s||p,m=zt({},a,l&&!a.required&&{required:"This field is required"}),b=Pa({name:n,control:r,disabled:d.disabled,rules:m}),O=b.field,y=b.fieldState,v=y.error,S=y.invalid,k=La({value:O.value,onChange:O.onChange,transform:c}),C=k.value,w=k.onChange,E=v?typeof h=="function"?h(v):v.message:null;return P.jsxs(sf,Cn(zt({error:S,required:l,fullWidth:!0},u),{ref:t,children:[i&&P.jsx(_k,{component:"legend",error:S,children:i}),P.jsx(Eve,Cn(zt({},d),{value:C,onChange:w,valueLabelDisplay:d.valueLabelDisplay||"auto"})),E&&P.jsx(wg,{error:S,children:E})]}))});xqe.displayName="SliderElement";var Cqe=I.forwardRef(function(e,t){var n=e.validation,r=n===void 0?{}:n,i=e.parseError,o=e.required,a=e.name,s=e.control,l=e.rows,u=e.resizeStyle,c=e.inputRef,d=e.inputProps,p=e.transform,h=To(e,["validation","parseError","required","name","control","rows","resizeStyle","inputRef","inputProps","transform"]),m=Es(),b=i||m,O=zt({},r,o&&!r.required&&{required:"This field is required"}),y=Pa({name:a,control:s,rules:O,disabled:h.disabled}),v=y.field,S=y.fieldState,k=S.error,C=La({value:v.value,onChange:v.onChange,transform:{input:typeof(p==null?void 0:p.input)=="function"?p.input:function(N){return N??""},output:typeof(p==null?void 0:p.output)=="function"?p.output:function(N){return N.target.value}}}),w=C.value,E=C.onChange,$=yn(v.ref,c);return P.jsx(Np,Cn(zt({},h),{name:a,value:w,onChange:function(N){E(N),typeof h.onChange=="function"&&h.onChange(N)},onBlur:v.onBlur,required:o,error:!!k,helperText:k?typeof b=="function"?b(k):k.message:h.helperText,inputRef:$,multiline:!0,InputProps:{inputComponent:fY,inputProps:zt({minRows:l,style:{resize:u||"both"}},d||{})},ref:t}))});Cqe.displayName="TextareaAutosizeElement";var oF={},Aqe=Oo;Object.defineProperty(oF,"__esModule",{value:!0});var aF=oF.default=void 0,_qe=Aqe(vo()),Rqe=P;aF=oF.default=(0,_qe.default)((0,Rqe.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 xre(e){const{title:t,onSuccess:n,...r}=e,i=()=>{var a;(a=r==null?void 0:r.onClose)==null||a.call(r,new Event("Close Modal"),"escapeKeyDown")},o=async a=>{await n(a),i()};return P.jsx(Y1,{disableAutoFocus:!0,...r,children:P.jsxs(Na,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[P.jsx(oa,{sx:{position:"absolute",top:28,right:28},onClick:i,children:P.jsx(aF,{})}),P.jsxs(ui,{gap:4,children:[P.jsxs(br,{variant:"h5",children:["Create New ",t]}),P.jsx(sf,{children:P.jsx(Sre,{defaultValues:{title:""},onSuccess:o,children:P.jsxs(ui,{gap:4,alignItems:"flex-end",children:[P.jsx(Ere,{variant:"standard",name:"title",label:"Title of new note",required:!0,fullWidth:!0,inputProps:{maxLength:255}}),P.jsx(md,{type:"submit",variant:"contained",size:"large",children:"OK"})]})})})]})]})})}function Iqe(e){const{width:t,...n}=e,r=Pp(),i=Ag(),{data:o,hasNextPage:a,fetchNextPage:s}=hVe(),{mutateAsync:l}=mVe(),u=I.useMemo(()=>(o==null?void 0:o.pages.reduce((O,y)=>O.concat(y.workspaces),[]))??[],[o==null?void 0:o.pages]),[c,d]=I.useState(!1),p=O=>{r(`/workspace/${O}`)},h=O=>{var y;i.workspaceSlug!==O&&(p(O),(y=n==null?void 0:n.onClose)==null||y.call(n,new Event("Close Popover"),"backdropClick"))},m=()=>{var O;d(y=>!y),n.open&&((O=n==null?void 0:n.onClose)==null||O.call(n,new Event("Close Popover"),"backdropClick"))},b=async O=>{const y=await l(O);p(y.slug)};return P.jsxs(P.Fragment,{children:[P.jsx(WN,{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...n,children:P.jsxs(G1,{sx:{width:t},children:[P.jsx(_a,{style:{maxHeight:300,overflow:"auto"},children:P.jsx(c1,{pageStart:0,loadMore:()=>s(),hasMore:a,loader:P.jsx(_a,{className:"loader",children:P.jsx(Dp,{size:"sm"})},0),useWindow:!1,children:u.map(O=>P.jsxs(yp,{onClick:()=>h(O.slug),children:[P.jsx(sp,{primaryTypographyProps:{noWrap:!0,variant:"body2"},children:O.title}),i.workspaceSlug===O.slug&&P.jsx(oT,{children:P.jsx(one,{fontSize:"small"})})]},O.id))})}),P.jsx(lc,{}),P.jsxs(yp,{onClick:m,children:[P.jsx(HN,{children:P.jsx(zk,{fontSize:"small"})}),P.jsx(sp,{children:"Create Workspace"})]})]})}),P.jsx(xre,{open:c,title:"Workspace",onClose:m,onSuccess:b})]})}const Cre=e=>["workspaces",e,"documents"],Dqe=e=>x$({queryKey:Cre(e||""),queryFn:async({pageParam:n})=>(await ir.get(`/workspaces/${e}/documents`,{params:{cursor:n,page_size:20}})).data,enabled:!!e,initialPageParam:void 0,getPreviousPageParam:n=>n.cursor??void 0,getNextPageParam:n=>n.cursor??void 0}),Nqe=e=>{const t=w$();return Nx({mutationFn:async n=>(await ir.post(`/workspaces/${e}/documents`,n)).data,onSuccess:()=>{t.invalidateQueries({queryKey:Cre(e)})}})};var sF={},Pqe=Oo;Object.defineProperty(sF,"__esModule",{value:!0});var Are=sF.default=void 0,Lqe=Pqe(vo()),Mqe=P;Are=sF.default=(0,Lqe.default)((0,Mqe.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");const $qe=e=>["workspaces",e,"users"],Fqe=e=>x$({queryKey:$qe(e||""),queryFn:async({pageParam:t})=>(await ir.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}),k2=["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 _re;function Vt(){return _re.apply(null,arguments)}function Bqe(e){_re=e}function Ll(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function lp(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function or(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function lF(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(or(e,t))return!1;return!0}function ba(e){return e===void 0}function xc(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function MO(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Rre(e,t){var n=[],r,i=e.length;for(r=0;r>>0,r;for(r=0;r0)for(n=0;n=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var fF=/(\[[^\[]*\])|(\\)?([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,OE=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,C2={},Em={};function fn(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(Em[e]=i),t&&(Em[t[0]]=function(){return Iu(i.apply(this,arguments),t[1],t[2])}),n&&(Em[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Hqe(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Wqe(e){var t=e.match(fF),n,r;for(n=0,r=t.length;n=0&&OE.test(e);)e=e.replace(OE,r),OE.lastIndex=0,n-=1;return e}var Qqe={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 Yqe(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(fF).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Gqe="Invalid date";function qqe(){return this._invalidDate}var Zqe="%d",Xqe=/\d{1,2}/;function Kqe(e){return this._ordinal.replace("%d",e)}var Jqe={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 eZe(e,t,n,r){var i=this._relativeTime[n];return Vu(i)?i(e,t,n,r):i.replace(/%d/i,e)}function tZe(e,t){var n=this._relativeTime[e>0?"future":"past"];return Vu(n)?n(t):n.replace(/%s/i,t)}var xV={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 ll(e){return typeof e=="string"?xV[e]||xV[e.toLowerCase()]:void 0}function pF(e){var t={},n,r;for(r in e)or(e,r)&&(n=ll(r),n&&(t[n]=e[r]));return t}var nZe={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 rZe(e){var t=[],n;for(n in e)or(e,n)&&t.push({unit:n,priority:nZe[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var Pre=/\d/,Ss=/\d\d/,Lre=/\d{3}/,hF=/\d{4}/,zx=/[+-]?\d{6}/,Fr=/\d\d?/,Mre=/\d\d\d\d?/,$re=/\d\d\d\d\d\d?/,Vx=/\d{1,3}/,mF=/\d{1,4}/,Hx=/[+-]?\d{1,6}/,Xg=/\d+/,Wx=/[+-]?\d+/,iZe=/Z|[+-]\d\d:?\d\d/gi,Qx=/Z|[+-]\d\d(?::?\d\d)?/gi,oZe=/[+-]?\d+(\.\d{1,3})?/,FO=/[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,Kg=/^[1-9]\d?/,gF=/^([1-9]\d|\d)/,dw;dw={};function Yt(e,t,n){dw[e]=Vu(t)?t:function(r,i){return r&&n?n:t}}function aZe(e,t){return or(dw,e)?dw[e](t._strict,t._locale):new RegExp(sZe(e))}function sZe(e){return hc(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,o){return n||r||i||o}))}function hc(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Fs(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Vn(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Fs(t)),n}var oD={};function hr(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),xc(t)&&(r=function(o,a){a[t]=Vn(o)}),i=e.length,n=0;n68?1900:2e3)};var Fre=Jg("FullYear",!0);function dZe(){return Yx(this.year())}function Jg(e,t){return function(n){return n!=null?(Bre(this,e,n),Vt.updateOffset(this,t),this):m1(this,e)}}function m1(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 Bre(e,t,n){var r,i,o,a,s;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}o=n,a=e.month(),s=e.date(),s=s===29&&a===1&&!Yx(o)?28:s,i?r.setUTCFullYear(o,a,s):r.setFullYear(o,a,s)}}function fZe(e){return e=ll(e),Vu(this[e])?this[e]():this}function pZe(e,t){if(typeof e=="object"){e=pF(e);var n=rZe(e),r,i=n.length;for(r=0;r=0?(s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}function g1(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 fw(e,t,n){var r=7+t-n,i=(7+g1(e,0,r).getUTCDay()-t)%7;return-i+r-1}function Wre(e,t,n,r,i){var o=(7+n-r)%7,a=fw(e,r,i),s=1+7*(t-1)+o+a,l,u;return s<=0?(l=e-1,u=Jb(l)+s):s>Jb(e)?(l=e+1,u=s-Jb(e)):(l=e,u=s),{year:l,dayOfYear:u}}function b1(e,t,n){var r=fw(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,o,a;return i<1?(a=e.year()-1,o=i+mc(a,t,n)):i>mc(e.year(),t,n)?(o=i-mc(e.year(),t,n),a=e.year()+1):(a=e.year(),o=i),{week:o,year:a}}function mc(e,t,n){var r=fw(e,t,n),i=fw(e+1,t,n);return(Jb(e)-r+i)/7}fn("w",["ww",2],"wo","week");fn("W",["WW",2],"Wo","isoWeek");Yt("w",Fr,Kg);Yt("ww",Fr,Ss);Yt("W",Fr,Kg);Yt("WW",Fr,Ss);BO(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Vn(e)});function xZe(e){return b1(e,this._week.dow,this._week.doy).week}var CZe={dow:0,doy:6};function AZe(){return this._week.dow}function _Ze(){return this._week.doy}function RZe(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function IZe(e){var t=b1(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}fn("d",0,"do","day");fn("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});fn("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});fn("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});fn("e",0,0,"weekday");fn("E",0,0,"isoWeekday");Yt("d",Fr);Yt("e",Fr);Yt("E",Fr);Yt("dd",function(e,t){return t.weekdaysMinRegex(e)});Yt("ddd",function(e,t){return t.weekdaysShortRegex(e)});Yt("dddd",function(e,t){return t.weekdaysRegex(e)});BO(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:_n(n).invalidWeekday=e});BO(["d","e","E"],function(e,t,n,r){t[r]=Vn(e)});function DZe(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function NZe(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function yF(e,t){return e.slice(t,7).concat(e.slice(0,t))}var PZe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Qre="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),LZe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),MZe=FO,$Ze=FO,FZe=FO;function BZe(e,t){var n=Ll(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?yF(n,this._week.dow):e?n[e.day()]:n}function UZe(e){return e===!0?yF(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function jZe(e){return e===!0?yF(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function zZe(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=zu([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?t==="dddd"?(i=mi.call(this._weekdaysParse,a),i!==-1?i:null):t==="ddd"?(i=mi.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=mi.call(this._minWeekdaysParse,a),i!==-1?i:null):t==="dddd"?(i=mi.call(this._weekdaysParse,a),i!==-1||(i=mi.call(this._shortWeekdaysParse,a),i!==-1)?i:(i=mi.call(this._minWeekdaysParse,a),i!==-1?i:null)):t==="ddd"?(i=mi.call(this._shortWeekdaysParse,a),i!==-1||(i=mi.call(this._weekdaysParse,a),i!==-1)?i:(i=mi.call(this._minWeekdaysParse,a),i!==-1?i:null)):(i=mi.call(this._minWeekdaysParse,a),i!==-1||(i=mi.call(this._weekdaysParse,a),i!==-1)?i:(i=mi.call(this._shortWeekdaysParse,a),i!==-1?i:null))}function VZe(e,t,n){var r,i,o;if(this._weekdaysParseExact)return zZe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=zu([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]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.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 HZe(e){if(!this.isValid())return e!=null?this:NaN;var t=m1(this,"Day");return e!=null?(e=DZe(e,this.localeData()),this.add(e-t,"d")):t}function WZe(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 QZe(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=NZe(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function YZe(e){return this._weekdaysParseExact?(or(this,"_weekdaysRegex")||OF.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(or(this,"_weekdaysRegex")||(this._weekdaysRegex=MZe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function GZe(e){return this._weekdaysParseExact?(or(this,"_weekdaysRegex")||OF.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(or(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$Ze),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function qZe(e){return this._weekdaysParseExact?(or(this,"_weekdaysRegex")||OF.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(or(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=FZe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function OF(){function e(c,d){return d.length-c.length}var t=[],n=[],r=[],i=[],o,a,s,l,u;for(o=0;o<7;o++)a=zu([2e3,1]).day(o),s=hc(this.weekdaysMin(a,"")),l=hc(this.weekdaysShort(a,"")),u=hc(this.weekdays(a,"")),t.push(s),n.push(l),r.push(u),i.push(s),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 vF(){return this.hours()%12||12}function ZZe(){return this.hours()||24}fn("H",["HH",2],0,"hour");fn("h",["hh",2],0,vF);fn("k",["kk",2],0,ZZe);fn("hmm",0,0,function(){return""+vF.apply(this)+Iu(this.minutes(),2)});fn("hmmss",0,0,function(){return""+vF.apply(this)+Iu(this.minutes(),2)+Iu(this.seconds(),2)});fn("Hmm",0,0,function(){return""+this.hours()+Iu(this.minutes(),2)});fn("Hmmss",0,0,function(){return""+this.hours()+Iu(this.minutes(),2)+Iu(this.seconds(),2)});function Yre(e,t){fn(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Yre("a",!0);Yre("A",!1);function Gre(e,t){return t._meridiemParse}Yt("a",Gre);Yt("A",Gre);Yt("H",Fr,gF);Yt("h",Fr,Kg);Yt("k",Fr,Kg);Yt("HH",Fr,Ss);Yt("hh",Fr,Ss);Yt("kk",Fr,Ss);Yt("hmm",Mre);Yt("hmmss",$re);Yt("Hmm",Mre);Yt("Hmmss",$re);hr(["H","HH"],Mi);hr(["k","kk"],function(e,t,n){var r=Vn(e);t[Mi]=r===24?0:r});hr(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});hr(["h","hh"],function(e,t,n){t[Mi]=Vn(e),_n(n).bigHour=!0});hr("hmm",function(e,t,n){var r=e.length-2;t[Mi]=Vn(e.substr(0,r)),t[xl]=Vn(e.substr(r)),_n(n).bigHour=!0});hr("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Mi]=Vn(e.substr(0,r)),t[xl]=Vn(e.substr(r,2)),t[cc]=Vn(e.substr(i)),_n(n).bigHour=!0});hr("Hmm",function(e,t,n){var r=e.length-2;t[Mi]=Vn(e.substr(0,r)),t[xl]=Vn(e.substr(r))});hr("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Mi]=Vn(e.substr(0,r)),t[xl]=Vn(e.substr(r,2)),t[cc]=Vn(e.substr(i))});function XZe(e){return(e+"").toLowerCase().charAt(0)==="p"}var KZe=/[ap]\.?m?\.?/i,JZe=Jg("Hours",!0);function eXe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var qre={calendar:zqe,longDateFormat:Qqe,invalidDate:Gqe,ordinal:Zqe,dayOfMonthOrdinalParse:Xqe,relativeTime:Jqe,months:mZe,monthsShort:Ure,week:CZe,weekdays:PZe,weekdaysMin:LZe,weekdaysShort:Qre,meridiemParse:KZe},Hr={},W0={},y1;function tXe(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(i=Gx(o.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&tXe(o,r)>=n-1)break;n--}t++}return y1}function rXe(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Gx(e){var t=null,n;if(Hr[e]===void 0&&typeof TS<"u"&&TS&&TS.exports&&rXe(e))try{t=y1._abbr,n=require,n("./locale/"+e),$d(t)}catch{Hr[e]=null}return Hr[e]}function $d(e,t){var n;return e&&(ba(t)?n=Nc(e):n=EF(e,t),n?y1=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),y1._abbr}function EF(e,t){if(t!==null){var n,r=qre;if(t.abbr=e,Hr[e]!=null)Dre("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=Hr[e]._config;else if(t.parentLocale!=null)if(Hr[t.parentLocale]!=null)r=Hr[t.parentLocale]._config;else if(n=Gx(t.parentLocale),n!=null)r=n._config;else return W0[t.parentLocale]||(W0[t.parentLocale]=[]),W0[t.parentLocale].push({name:e,config:t}),null;return Hr[e]=new dF(rD(r,t)),W0[e]&&W0[e].forEach(function(i){EF(i.name,i.config)}),$d(e),Hr[e]}else return delete Hr[e],null}function iXe(e,t){if(t!=null){var n,r,i=qre;Hr[e]!=null&&Hr[e].parentLocale!=null?Hr[e].set(rD(Hr[e]._config,t)):(r=Gx(e),r!=null&&(i=r._config),t=rD(i,t),r==null&&(t.abbr=e),n=new dF(t),n.parentLocale=Hr[e],Hr[e]=n),$d(e)}else Hr[e]!=null&&(Hr[e].parentLocale!=null?(Hr[e]=Hr[e].parentLocale,e===$d()&&$d(e)):Hr[e]!=null&&delete Hr[e]);return Hr[e]}function Nc(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return y1;if(!Ll(e)){if(t=Gx(e),t)return t;e=[e]}return nXe(e)}function oXe(){return iD(Hr)}function SF(e){var t,n=e._a;return n&&_n(e).overflow===-2&&(t=n[uc]<0||n[uc]>11?uc:n[mu]<1||n[mu]>bF(n[$o],n[uc])?mu:n[Mi]<0||n[Mi]>24||n[Mi]===24&&(n[xl]!==0||n[cc]!==0||n[Yf]!==0)?Mi:n[xl]<0||n[xl]>59?xl:n[cc]<0||n[cc]>59?cc:n[Yf]<0||n[Yf]>999?Yf:-1,_n(e)._overflowDayOfYear&&(t<$o||t>mu)&&(t=mu),_n(e)._overflowWeeks&&t===-1&&(t=uZe),_n(e)._overflowWeekday&&t===-1&&(t=cZe),_n(e).overflow=t),e}var aXe=/^\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)?)?$/,sXe=/^\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)?)?$/,lXe=/Z|[+-]\d\d(?::?\d\d)?/,vE=[["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]],A2=[["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/]],uXe=/^\/?Date\((-?\d+)/i,cXe=/^(?:(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}))$/,dXe={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 Zre(e){var t,n,r=e._i,i=aXe.exec(r)||sXe.exec(r),o,a,s,l,u=vE.length,c=A2.length;if(i){for(_n(e).iso=!0,t=0,n=u;tJb(a)||e._dayOfYear===0)&&(_n(e)._overflowDayOfYear=!0),n=g1(a,0,e._dayOfYear),e._a[uc]=n.getUTCMonth(),e._a[mu]=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[Mi]===24&&e._a[xl]===0&&e._a[cc]===0&&e._a[Yf]===0&&(e._nextDay=!0,e._a[Mi]=0),e._d=(e._useUTC?g1:kZe).apply(null,r),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Mi]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&(_n(e).weekdayMismatch=!0)}}function OXe(e){var t,n,r,i,o,a,s,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(o=1,a=4,n=Ih(t.GG,e._a[$o],b1($r(),1,4).year),r=Ih(t.W,1),i=Ih(t.E,1),(i<1||i>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,u=b1($r(),o,a),n=Ih(t.gg,e._a[$o],u.year),r=Ih(t.w,u.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):i=o),r<1||r>mc(n,o,a)?_n(e)._overflowWeeks=!0:l!=null?_n(e)._overflowWeekday=!0:(s=Wre(n,r,i,o,a),e._a[$o]=s.year,e._dayOfYear=s.dayOfYear)}Vt.ISO_8601=function(){};Vt.RFC_2822=function(){};function wF(e){if(e._f===Vt.ISO_8601){Zre(e);return}if(e._f===Vt.RFC_2822){Xre(e);return}e._a=[],_n(e).empty=!0;var t=""+e._i,n,r,i,o,a,s=t.length,l=0,u,c;for(i=Nre(e._f,e._locale).match(fF)||[],c=i.length,n=0;n0&&_n(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),l+=r.length),Em[o]?(r?_n(e).empty=!1:_n(e).unusedTokens.push(o),lZe(o,r,e)):e._strict&&!r&&_n(e).unusedTokens.push(o);_n(e).charsLeftOver=s-l,t.length>0&&_n(e).unusedInput.push(t),e._a[Mi]<=12&&_n(e).bigHour===!0&&e._a[Mi]>0&&(_n(e).bigHour=void 0),_n(e).parsedDateParts=e._a.slice(0),_n(e).meridiem=e._meridiem,e._a[Mi]=vXe(e._locale,e._a[Mi],e._meridiem),u=_n(e).era,u!==null&&(e._a[$o]=e._locale.erasConvertYear(u,e._a[$o])),TF(e),SF(e)}function vXe(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 EXe(e){var t,n,r,i,o,a,s=!1,l=e._f.length;if(l===0){_n(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:jx()});function eie(e,t){var n,r;if(t.length===1&&Ll(t[0])&&(t=t[0]),!t.length)return $r();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function zXe(){if(!ba(this._isDSTShifted))return this._isDSTShifted;var e={},t;return cF(e,this),e=Kre(e),e._a?(t=e._isUTC?zu(e._a):$r(e._a),this._isDSTShifted=this.isValid()&&NXe(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function VXe(){return this.isValid()?!this._isUTC:!1}function HXe(){return this.isValid()?this._isUTC:!1}function nie(){return this.isValid()?this._isUTC&&this._offset===0:!1}var WXe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,QXe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Hl(e,t){var n=e,r=null,i,o,a;return mS(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:xc(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=WXe.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:Vn(r[mu])*i,h:Vn(r[Mi])*i,m:Vn(r[xl])*i,s:Vn(r[cc])*i,ms:Vn(aD(r[Yf]*1e3))*i}):(r=QXe.exec(e))?(i=r[1]==="-"?-1:1,n={y:kf(r[2],i),M:kf(r[3],i),w:kf(r[4],i),d:kf(r[5],i),h:kf(r[6],i),m:kf(r[7],i),s:kf(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=YXe($r(n.from),$r(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),o=new qx(n),mS(e)&&or(e,"_locale")&&(o._locale=e._locale),mS(e)&&or(e,"_isValid")&&(o._isValid=e._isValid),o}Hl.fn=qx.prototype;Hl.invalid=DXe;function kf(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function AV(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 YXe(e,t){var n;return e.isValid()&&t.isValid()?(t=xF(t,e),e.isBefore(t)?n=AV(e,t):(n=AV(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function rie(e,t){return function(n,r){var i,o;return r!==null&&!isNaN(+r)&&(Dre(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."),o=n,n=r,r=o),i=Hl(n,r),iie(this,i,e),this}}function iie(e,t,n,r){var i=t._milliseconds,o=aD(t._days),a=aD(t._months);e.isValid()&&(r=r??!0,a&&zre(e,m1(e,"Month")+a*n),o&&Bre(e,"Date",m1(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&Vt.updateOffset(e,o||a))}var GXe=rie(1,"add"),qXe=rie(-1,"subtract");function oie(e){return typeof e=="string"||e instanceof String}function ZXe(e){return Ml(e)||MO(e)||oie(e)||xc(e)||KXe(e)||XXe(e)||e===null||e===void 0}function XXe(e){var t=lp(e)&&!lF(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,o,a=r.length;for(i=0;in.valueOf():n.valueOf()9999?hS(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Vu(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",hS(n,"Z")):hS(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function fKe(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,o;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",o=t+'[")]',this.format(n+r+i+o)}function pKe(e){e||(e=this.isUtc()?Vt.defaultFormatUtc:Vt.defaultFormat);var t=hS(this,e);return this.localeData().postformat(t)}function hKe(e,t){return this.isValid()&&(Ml(e)&&e.isValid()||$r(e).isValid())?Hl({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function mKe(e){return this.from($r(),e)}function gKe(e,t){return this.isValid()&&(Ml(e)&&e.isValid()||$r(e).isValid())?Hl({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function bKe(e){return this.to($r(),e)}function aie(e){var t;return e===void 0?this._locale._abbr:(t=Nc(e),t!=null&&(this._locale=t),this)}var sie=sl("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 lie(){return this._locale}var pw=1e3,Sm=60*pw,hw=60*Sm,uie=(365*400+97)*24*hw;function Tm(e,t){return(e%t+t)%t}function cie(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-uie:new Date(e,t,n).valueOf()}function die(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-uie:Date.UTC(e,t,n)}function yKe(e){var t,n;if(e=ll(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?die:cie,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-=Tm(t+(this._isUTC?0:this.utcOffset()*Sm),hw);break;case"minute":t=this._d.valueOf(),t-=Tm(t,Sm);break;case"second":t=this._d.valueOf(),t-=Tm(t,pw);break}return this._d.setTime(t),Vt.updateOffset(this,!0),this}function OKe(e){var t,n;if(e=ll(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?die:cie,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+=hw-Tm(t+(this._isUTC?0:this.utcOffset()*Sm),hw)-1;break;case"minute":t=this._d.valueOf(),t+=Sm-Tm(t,Sm)-1;break;case"second":t=this._d.valueOf(),t+=pw-Tm(t,pw)-1;break}return this._d.setTime(t),Vt.updateOffset(this,!0),this}function vKe(){return this._d.valueOf()-(this._offset||0)*6e4}function EKe(){return Math.floor(this.valueOf()/1e3)}function SKe(){return new Date(this.valueOf())}function TKe(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function wKe(){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 kKe(){return this.isValid()?this.toISOString():null}function xKe(){return uF(this)}function CKe(){return Ed({},_n(this))}function AKe(){return _n(this).overflow}function _Ke(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}fn("N",0,0,"eraAbbr");fn("NN",0,0,"eraAbbr");fn("NNN",0,0,"eraAbbr");fn("NNNN",0,0,"eraName");fn("NNNNN",0,0,"eraNarrow");fn("y",["y",1],"yo","eraYear");fn("y",["yy",2],0,"eraYear");fn("y",["yyy",3],0,"eraYear");fn("y",["yyyy",4],0,"eraYear");Yt("N",CF);Yt("NN",CF);Yt("NNN",CF);Yt("NNNN",UKe);Yt("NNNNN",jKe);hr(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?_n(n).era=i:_n(n).invalidEra=e});Yt("y",Xg);Yt("yy",Xg);Yt("yyy",Xg);Yt("yyyy",Xg);Yt("yo",zKe);hr(["y","yy","yyy","yyyy"],$o);hr(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[$o]=n._locale.eraYearOrdinalParse(e,i):t[$o]=parseInt(e,10)});function RKe(e,t){var n,r,i,o=this._eras||Nc("en")._eras;for(n=0,r=o.length;n=0)return o[r]}function DKe(e,t){var n=e.since<=e.until?1:-1;return t===void 0?Vt(e.since).year():Vt(e.since).year()+(t-e.offset)*n}function NKe(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;eo&&(t=o),qKe.call(this,e,t,n,r,i))}function qKe(e,t,n,r,i){var o=Wre(e,t,n,r,i),a=g1(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}fn("Q",0,"Qo","quarter");Yt("Q",Pre);hr("Q",function(e,t){t[uc]=(Vn(e)-1)*3});function ZKe(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}fn("D",["DD",2],"Do","date");Yt("D",Fr,Kg);Yt("DD",Fr,Ss);Yt("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});hr(["D","DD"],mu);hr("Do",function(e,t){t[mu]=Vn(e.match(Fr)[0])});var pie=Jg("Date",!0);fn("DDD",["DDDD",3],"DDDo","dayOfYear");Yt("DDD",Vx);Yt("DDDD",Lre);hr(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Vn(e)});function XKe(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}fn("m",["mm",2],0,"minute");Yt("m",Fr,gF);Yt("mm",Fr,Ss);hr(["m","mm"],xl);var KKe=Jg("Minutes",!1);fn("s",["ss",2],0,"second");Yt("s",Fr,gF);Yt("ss",Fr,Ss);hr(["s","ss"],cc);var JKe=Jg("Seconds",!1);fn("S",0,0,function(){return~~(this.millisecond()/100)});fn(0,["SS",2],0,function(){return~~(this.millisecond()/10)});fn(0,["SSS",3],0,"millisecond");fn(0,["SSSS",4],0,function(){return this.millisecond()*10});fn(0,["SSSSS",5],0,function(){return this.millisecond()*100});fn(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});fn(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});fn(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});fn(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Yt("S",Vx,Pre);Yt("SS",Vx,Ss);Yt("SSS",Vx,Lre);var Sd,hie;for(Sd="SSSS";Sd.length<=9;Sd+="S")Yt(Sd,Xg);function eJe(e,t){t[Yf]=Vn(("0."+e)*1e3)}for(Sd="S";Sd.length<=9;Sd+="S")hr(Sd,eJe);hie=Jg("Milliseconds",!1);fn("z",0,0,"zoneAbbr");fn("zz",0,0,"zoneName");function tJe(){return this._isUTC?"UTC":""}function nJe(){return this._isUTC?"Coordinated Universal Time":""}var Tt=$O.prototype;Tt.add=GXe;Tt.calendar=tKe;Tt.clone=nKe;Tt.diff=uKe;Tt.endOf=OKe;Tt.format=pKe;Tt.from=hKe;Tt.fromNow=mKe;Tt.to=gKe;Tt.toNow=bKe;Tt.get=fZe;Tt.invalidAt=AKe;Tt.isAfter=rKe;Tt.isBefore=iKe;Tt.isBetween=oKe;Tt.isSame=aKe;Tt.isSameOrAfter=sKe;Tt.isSameOrBefore=lKe;Tt.isValid=xKe;Tt.lang=sie;Tt.locale=aie;Tt.localeData=lie;Tt.max=xXe;Tt.min=kXe;Tt.parsingFlags=CKe;Tt.set=pZe;Tt.startOf=yKe;Tt.subtract=qXe;Tt.toArray=TKe;Tt.toObject=wKe;Tt.toDate=SKe;Tt.toISOString=dKe;Tt.inspect=fKe;typeof Symbol<"u"&&Symbol.for!=null&&(Tt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});Tt.toJSON=kKe;Tt.toString=cKe;Tt.unix=EKe;Tt.valueOf=vKe;Tt.creationData=_Ke;Tt.eraName=NKe;Tt.eraNarrow=PKe;Tt.eraAbbr=LKe;Tt.eraYear=MKe;Tt.year=Fre;Tt.isLeapYear=dZe;Tt.weekYear=VKe;Tt.isoWeekYear=HKe;Tt.quarter=Tt.quarters=ZKe;Tt.month=Vre;Tt.daysInMonth=SZe;Tt.week=Tt.weeks=RZe;Tt.isoWeek=Tt.isoWeeks=IZe;Tt.weeksInYear=YKe;Tt.weeksInWeekYear=GKe;Tt.isoWeeksInYear=WKe;Tt.isoWeeksInISOWeekYear=QKe;Tt.date=pie;Tt.day=Tt.days=HZe;Tt.weekday=WZe;Tt.isoWeekday=QZe;Tt.dayOfYear=XKe;Tt.hour=Tt.hours=JZe;Tt.minute=Tt.minutes=KKe;Tt.second=Tt.seconds=JKe;Tt.millisecond=Tt.milliseconds=hie;Tt.utcOffset=LXe;Tt.utc=$Xe;Tt.local=FXe;Tt.parseZone=BXe;Tt.hasAlignedHourOffset=UXe;Tt.isDST=jXe;Tt.isLocal=VXe;Tt.isUtcOffset=HXe;Tt.isUtc=nie;Tt.isUTC=nie;Tt.zoneAbbr=tJe;Tt.zoneName=nJe;Tt.dates=sl("dates accessor is deprecated. Use date instead.",pie);Tt.months=sl("months accessor is deprecated. Use month instead",Vre);Tt.years=sl("years accessor is deprecated. Use year instead",Fre);Tt.zone=sl("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",MXe);Tt.isDSTShifted=sl("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",zXe);function rJe(e){return $r(e*1e3)}function iJe(){return $r.apply(null,arguments).parseZone()}function mie(e){return e}var ar=dF.prototype;ar.calendar=Vqe;ar.longDateFormat=Yqe;ar.invalidDate=qqe;ar.ordinal=Kqe;ar.preparse=mie;ar.postformat=mie;ar.relativeTime=eZe;ar.pastFuture=tZe;ar.set=jqe;ar.eras=RKe;ar.erasParse=IKe;ar.erasConvertYear=DKe;ar.erasAbbrRegex=FKe;ar.erasNameRegex=$Ke;ar.erasNarrowRegex=BKe;ar.months=yZe;ar.monthsShort=OZe;ar.monthsParse=EZe;ar.monthsRegex=wZe;ar.monthsShortRegex=TZe;ar.week=xZe;ar.firstDayOfYear=_Ze;ar.firstDayOfWeek=AZe;ar.weekdays=BZe;ar.weekdaysMin=jZe;ar.weekdaysShort=UZe;ar.weekdaysParse=VZe;ar.weekdaysRegex=YZe;ar.weekdaysShortRegex=GZe;ar.weekdaysMinRegex=qZe;ar.isPM=XZe;ar.meridiem=eXe;function mw(e,t,n,r){var i=Nc(),o=zu().set(r,t);return i[n](o,e)}function gie(e,t,n){if(xc(e)&&(t=e,e=void 0),e=e||"",t!=null)return mw(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=mw(e,r,n,"month");return i}function _F(e,t,n,r){typeof e=="boolean"?(xc(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,xc(t)&&(n=t,t=void 0),t=t||"");var i=Nc(),o=e?i._week.dow:0,a,s=[];if(n!=null)return mw(t,(n+o)%7,r,"day");for(a=0;a<7;a++)s[a]=mw(t,(a+o)%7,r,"day");return s}function oJe(e,t){return gie(e,t,"months")}function aJe(e,t){return gie(e,t,"monthsShort")}function sJe(e,t,n){return _F(e,t,n,"weekdays")}function lJe(e,t,n){return _F(e,t,n,"weekdaysShort")}function uJe(e,t,n){return _F(e,t,n,"weekdaysMin")}$d("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=Vn(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});Vt.lang=sl("moment.lang is deprecated. Use moment.locale instead.",$d);Vt.langData=sl("moment.langData is deprecated. Use moment.localeData instead.",Nc);var Gu=Math.abs;function cJe(){var e=this._data;return this._milliseconds=Gu(this._milliseconds),this._days=Gu(this._days),this._months=Gu(this._months),e.milliseconds=Gu(e.milliseconds),e.seconds=Gu(e.seconds),e.minutes=Gu(e.minutes),e.hours=Gu(e.hours),e.months=Gu(e.months),e.years=Gu(e.years),this}function bie(e,t,n,r){var i=Hl(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function dJe(e,t){return bie(this,e,t,1)}function fJe(e,t){return bie(this,e,t,-1)}function _V(e){return e<0?Math.floor(e):Math.ceil(e)}function pJe(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,o,a,s,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=_V(lD(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=Fs(e/1e3),r.seconds=i%60,o=Fs(i/60),r.minutes=o%60,a=Fs(o/60),r.hours=a%24,t+=Fs(a/24),l=Fs(yie(t)),n+=l,t-=_V(lD(l)),s=Fs(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function yie(e){return e*4800/146097}function lD(e){return e*146097/4800}function hJe(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=ll(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+yie(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(lD(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 Pc(e){return function(){return this.as(e)}}var Oie=Pc("ms"),mJe=Pc("s"),gJe=Pc("m"),bJe=Pc("h"),yJe=Pc("d"),OJe=Pc("w"),vJe=Pc("M"),EJe=Pc("Q"),SJe=Pc("y"),TJe=Oie;function wJe(){return Hl(this)}function kJe(e){return e=ll(e),this.isValid()?this[e+"s"]():NaN}function Wp(e){return function(){return this.isValid()?this._data[e]:NaN}}var xJe=Wp("milliseconds"),CJe=Wp("seconds"),AJe=Wp("minutes"),_Je=Wp("hours"),RJe=Wp("days"),IJe=Wp("months"),DJe=Wp("years");function NJe(){return Fs(this.days()/7)}var ec=Math.round,em={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function PJe(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function LJe(e,t,n,r){var i=Hl(e).abs(),o=ec(i.as("s")),a=ec(i.as("m")),s=ec(i.as("h")),l=ec(i.as("d")),u=ec(i.as("M")),c=ec(i.as("w")),d=ec(i.as("y")),p=o<=n.ss&&["s",o]||o0,p[4]=r,PJe.apply(null,p)}function MJe(e){return e===void 0?ec:typeof e=="function"?(ec=e,!0):!1}function $Je(e,t){return em[e]===void 0?!1:t===void 0?em[e]:(em[e]=t,e==="s"&&(em.ss=t-1),!0)}function FJe(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=em,i,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},em,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),o=LJe(this,!n,r,i),n&&(o=i.pastFuture(+this,o)),i.postformat(o)}var _2=Math.abs;function yh(e){return(e>0)-(e<0)||+e}function Xx(){if(!this.isValid())return this.localeData().invalidDate();var e=_2(this._milliseconds)/1e3,t=_2(this._days),n=_2(this._months),r,i,o,a,s=this.asSeconds(),l,u,c,d;return s?(r=Fs(e/60),i=Fs(r/60),e%=60,r%=60,o=Fs(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",u=yh(this._months)!==yh(s)?"-":"",c=yh(this._days)!==yh(s)?"-":"",d=yh(this._milliseconds)!==yh(s)?"-":"",l+"P"+(o?u+o+"Y":"")+(n?u+n+"M":"")+(t?c+t+"D":"")+(i||r||e?"T":"")+(i?d+i+"H":"")+(r?d+r+"M":"")+(e?d+a+"S":"")):"P0D"}var Jn=qx.prototype;Jn.isValid=IXe;Jn.abs=cJe;Jn.add=dJe;Jn.subtract=fJe;Jn.as=hJe;Jn.asMilliseconds=Oie;Jn.asSeconds=mJe;Jn.asMinutes=gJe;Jn.asHours=bJe;Jn.asDays=yJe;Jn.asWeeks=OJe;Jn.asMonths=vJe;Jn.asQuarters=EJe;Jn.asYears=SJe;Jn.valueOf=TJe;Jn._bubble=pJe;Jn.clone=wJe;Jn.get=kJe;Jn.milliseconds=xJe;Jn.seconds=CJe;Jn.minutes=AJe;Jn.hours=_Je;Jn.days=RJe;Jn.weeks=NJe;Jn.months=IJe;Jn.years=DJe;Jn.humanize=FJe;Jn.toISOString=Xx;Jn.toString=Xx;Jn.toJSON=Xx;Jn.locale=aie;Jn.localeData=lie;Jn.toIsoString=sl("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Xx);Jn.lang=sie;fn("X",0,0,"unix");fn("x",0,0,"valueOf");Yt("x",Wx);Yt("X",oZe);hr("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});hr("x",function(e,t,n){n._d=new Date(Vn(e))});//! moment.js -Vt.version="2.30.1";Bqe($r);Vt.fn=Tt;Vt.min=CXe;Vt.max=AXe;Vt.now=_Xe;Vt.utc=zu;Vt.unix=rJe;Vt.months=oJe;Vt.isDate=MO;Vt.locale=$d;Vt.invalid=jx;Vt.duration=Hl;Vt.isMoment=Ml;Vt.weekdays=sJe;Vt.parseZone=iJe;Vt.localeData=Nc;Vt.isDuration=mS;Vt.monthsShort=aJe;Vt.weekdaysMin=uJe;Vt.defineLocale=EF;Vt.updateLocale=iXe;Vt.locales=oXe;Vt.weekdaysShort=lJe;Vt.normalizeUnits=ll;Vt.relativeTimeRounding=MJe;Vt.relativeTimeThreshold=$Je;Vt.calendarFormat=eKe;Vt.prototype=Tt;Vt.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"};var RF={},BJe=Oo;Object.defineProperty(RF,"__esModule",{value:!0});var vie=RF.default=void 0,UJe=BJe(vo()),jJe=P;vie=RF.default=(0,UJe.default)((0,jJe.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");const UO={};UO.write=async e=>{await navigator.clipboard.writeText(e)};UO.read=async()=>navigator.clipboard.readText();UO.readSync=()=>{throw new Error("`.readSync()` is not supported in browsers!")};UO.writeSync=()=>{throw new Error("`.writeSync()` is not supported in browsers!")};function Eie(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 IV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Sie=Qt.createContext(),HJe={mui:{root:{},anchorOriginTopCenter:{},anchorOriginBottomCenter:{},anchorOriginTopRight:{},anchorOriginBottomRight:{},anchorOriginTopLeft:{},anchorOriginBottomLeft:{}},container:{containerRoot:{},containerAnchorOriginTopCenter:{},containerAnchorOriginBottomCenter:{},containerAnchorOriginTopRight:{},containerAnchorOriginBottomRight:{},containerAnchorOriginTopLeft:{},containerAnchorOriginBottomLeft:{}}},qu={view:{default:20,dense:4},snackbar:{default:6,dense:2}},Gf={maxSnack:3,dense:!1,hideIconVariant:!1,variant:"default",autoHideDuration:5e3,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:OY,transitionDuration:{enter:225,exit:195}},ey=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},WJe=function(t){return""+ey(t.vertical)+ey(t.horizontal)},QJe=function(t){return Object.keys(t).filter(function(n){return!HJe.container[n]}).reduce(function(n,r){var i;return Dr({},n,(i={},i[r]=t[r],i))},{})},id={TIMEOUT:"timeout",CLICKAWAY:"clickaway",MAXSNACK:"maxsnack",INSTRUCTED:"instructed"},bS={toContainerAnchorOrigin:function(t){return"containerAnchorOrigin"+t},toAnchorOrigin:function(t){var n=t.vertical,r=t.horizontal;return"anchorOrigin"+ey(n)+ey(r)},toVariant:function(t){return"variant"+ey(t)}},EE=function(t){return!!t||t===0},DV=function(t){return typeof t=="number"||t===null},YJe=function(t,n,r){return function(i){return i==="autoHideDuration"?DV(t.autoHideDuration)?t.autoHideDuration:DV(n.autoHideDuration)?n.autoHideDuration:Gf.autoHideDuration:t[i]||n[i]||r[i]}};function R2(e,t,n){return e===void 0&&(e={}),t===void 0&&(t={}),n===void 0&&(n={}),Dr({},n,{},t,{},e)}var GJe="SnackbarContent",Tie={root:GJe+"-root"},qJe=Se("div")(function(e){var t,n,r=e.theme;return n={},n["&."+Tie.root]=(t={display:"flex",flexWrap:"wrap",flexGrow:1},t[r.breakpoints.up("sm")]={flexGrow:"initial",minWidth:288},t),n}),ZJe=I.forwardRef(function(e,t){var n=e.className,r=Fd(e,["className"]);return Qt.createElement(qJe,Object.assign({ref:t,className:O1(Tie.root,n)},r))}),NV={right:"left",left:"right",bottom:"up",top:"down"},XJe=function(t){return t.horizontal!=="center"?NV[t.horizontal]:NV[t.vertical]},KJe=function(t){return Qt.createElement(zd,Object.assign({},t),Qt.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`}))},JJe=function(t){return Qt.createElement(zd,Object.assign({},t),Qt.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},eet=function(t){return Qt.createElement(zd,Object.assign({},t),Qt.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`}))},tet=function(t){return Qt.createElement(zd,Object.assign({},t),Qt.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`}))},SE={fontSize:20,marginInlineEnd:8},net={default:void 0,success:Qt.createElement(KJe,{style:SE}),warning:Qt.createElement(JJe,{style:SE}),error:Qt.createElement(eet,{style:SE}),info:Qt.createElement(tet,{style:SE})};function ty(e,t){return e.reduce(function(n,r){return r==null?n:function(){for(var o=arguments.length,a=new Array(o),s=0;s .MuiCollapse-container, & > .MuiCollapse-root",wrapper:"& > .MuiCollapse-container > .MuiCollapse-wrapper, & > .MuiCollapse-root > .MuiCollapse-wrapper"},D2=16,xf="SnackbarContainer",ml={root:xf+"-root",rootDense:xf+"-rootDense",top:xf+"-top",bottom:xf+"-bottom",left:xf+"-left",right:xf+"-right",center:xf+"-center"},set=Se("div")(function(e){var t,n,r,i,o,a,s=e.theme;return a={},a["&."+ml.root]=(t={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:s.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[I2.container]={pointerEvents:"all"},t[I2.wrapper]={padding:qu.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},t.maxWidth="calc(100% - "+qu.view.default*2+"px)",t[s.breakpoints.down("sm")]={width:"100%",maxWidth:"calc(100% - "+D2*2+"px)"},t),a["&."+ml.rootDense]=(n={},n[I2.wrapper]={padding:qu.snackbar.dense+"px 0px"},n),a["&."+ml.top]={top:qu.view.default-qu.snackbar.default,flexDirection:"column"},a["&."+ml.bottom]={bottom:qu.view.default-qu.snackbar.default,flexDirection:"column-reverse"},a["&."+ml.left]=(r={left:qu.view.default},r[s.breakpoints.up("sm")]={alignItems:"flex-start"},r[s.breakpoints.down("sm")]={left:D2+"px"},r),a["&."+ml.right]=(i={right:qu.view.default},i[s.breakpoints.up("sm")]={alignItems:"flex-end"},i[s.breakpoints.down("sm")]={right:D2+"px"},i),a["&."+ml.center]=(o={left:"50%",transform:"translateX(-50%)"},o[s.breakpoints.up("sm")]={alignItems:"center"},o),a}),uet=function(t){var n=t.className,r=t.anchorOrigin,i=t.dense,o=Fd(t,["className","anchorOrigin","dense"]),a=O1(ml[r.vertical],ml[r.horizontal],ml.root,n,i&&ml.rootDense);return Qt.createElement(set,Object.assign({className:a},o))},cet=Qt.memo(uet),det=function(e){VJe(t,e);function t(r){var i;return i=e.call(this,r)||this,i.enqueueSnackbar=function(o,a){a===void 0&&(a={});var s=a,l=s.key,u=s.preventDuplicate,c=Fd(s,["key","preventDuplicate"]),d=EE(l),p=d?l:new Date().getTime()+Math.random(),h=YJe(c,i.props,Gf),m=Dr({key:p},c,{message:o,open:!0,entered:!1,requestClose:!1,variant:h("variant"),anchorOrigin:h("anchorOrigin"),autoHideDuration:h("autoHideDuration")});return c.persist&&(m.autoHideDuration=void 0),i.setState(function(b){if(u===void 0&&i.props.preventDuplicate||u){var O=function(k){return d?k.key===l:k.message===o},y=b.queue.findIndex(O)>-1,v=b.snacks.findIndex(O)>-1;if(y||v)return b}return i.handleDisplaySnack(Dr({},b,{queue:[].concat(b.queue,[m])}))}),p},i.handleDisplaySnack=function(o){var a=o.snacks;return a.length>=i.maxSnack?i.handleDismissOldest(o):i.processQueue(o)},i.processQueue=function(o){var a=o.queue,s=o.snacks;return a.length>0?Dr({},o,{snacks:[].concat(s,[a[0]]),queue:a.slice(1,a.length)}):o},i.handleDismissOldest=function(o){if(o.snacks.some(function(c){return!c.open||c.requestClose}))return o;var a=!1,s=!1,l=o.snacks.reduce(function(c,d){return c+(d.open&&d.persist?1:0)},0);l===i.maxSnack&&(s=!0);var u=o.snacks.map(function(c){return!a&&(!c.persist||s)?(a=!0,c.entered?(c.onClose&&c.onClose(null,id.MAXSNACK,c.key),i.props.onClose&&i.props.onClose(null,id.MAXSNACK,c.key),Dr({},c,{open:!1})):Dr({},c,{requestClose:!0})):Dr({},c)});return Dr({},o,{snacks:u})},i.handleEnteredSnack=function(o,a,s){if(!EE(s))throw new Error("handleEnteredSnack Cannot be called with undefined key");i.setState(function(l){var u=l.snacks;return{snacks:u.map(function(c){return c.key===s?Dr({},c,{entered:!0}):Dr({},c)})}})},i.handleCloseSnack=function(o,a,s){if(i.props.onClose&&i.props.onClose(o,a,s),a!==id.CLICKAWAY){var l=s===void 0;i.setState(function(u){var c=u.snacks,d=u.queue;return{snacks:c.map(function(p){return!l&&p.key!==s?Dr({},p):p.entered?Dr({},p,{open:!1}):Dr({},p,{requestClose:!0})}),queue:d.filter(function(p){return p.key!==s})}})}},i.closeSnackbar=function(o){var a=i.state.snacks.find(function(s){return s.key===o});EE(o)&&a&&a.onClose&&a.onClose(null,id.INSTRUCTED,o),i.handleCloseSnack(null,id.INSTRUCTED,o)},i.handleExitedSnack=function(o,a,s){var l=a||s;if(!EE(l))throw new Error("handleExitedSnack Cannot be called with undefined key");i.setState(function(u){var c=i.processQueue(Dr({},u,{snacks:u.snacks.filter(function(d){return d.key!==l})}));return c.queue.length===0?c:i.handleDismissOldest(c)})},i.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:i.enqueueSnackbar.bind(IV(i)),closeSnackbar:i.closeSnackbar.bind(IV(i))}},i}var n=t.prototype;return n.render=function(){var i=this,o=this.state.contextValue,a=this.props,s=a.iconVariant,l=a.dense,u=l===void 0?Gf.dense:l,c=a.hideIconVariant,d=c===void 0?Gf.hideIconVariant:c,p=a.domRoot,h=a.children,m=a.classes,b=m===void 0?{}:m,O=Fd(a,["maxSnack","preventDuplicate","variant","anchorOrigin","iconVariant","dense","hideIconVariant","domRoot","children","classes"]),y=this.state.snacks.reduce(function(S,k){var C,w=WJe(k.anchorOrigin),E=S[w]||[];return Dr({},S,(C={},C[w]=[].concat(E,[k]),C))},{}),v=Object.keys(y).map(function(S){var k=y[S];return Qt.createElement(cet,{key:S,dense:u,anchorOrigin:k[0].anchorOrigin,className:O1(b.containerRoot,b[bS.toContainerAnchorOrigin(S)])},k.map(function(C){return Qt.createElement(aet,Object.assign({},O,{key:C.key,snack:C,dense:u,iconVariant:s,hideIconVariant:d,classes:QJe(b),onClose:i.handleCloseSnack,onExited:ty([i.handleExitedSnack,i.props.onExited]),onEntered:ty([i.handleEnteredSnack,i.props.onEntered])}))}))});return Qt.createElement(Sie.Provider,{value:o},h,p?yg.createPortal(v,p):v)},zJe(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||Gf.maxSnack}}]),t}(I.Component),wie=function(){return I.useContext(Sie)};function fet(e){const{open:t,onClose:n}=e,r=Ag(),{data:i}=I$(r.workspaceSlug),{data:o,fetchNextPage:a,hasNextPage:s}=Fqe(i==null?void 0:i.id),{mutateAsync:l}=gVe((i==null?void 0:i.id)||""),u=I.useMemo(()=>(o==null?void 0:o.pages.reduce((b,O)=>b.concat(O.workspaceUsers),[]))??[],[o==null?void 0:o.pages]),{enqueueSnackbar:c}=wie(),[d,p]=I.useState(null),h=async b=>{let O;if(b.expiredString===k2[0])O=null;else{const[v,S]=b.expiredString.split(" ");O=Vt().add(Number(v),S).toDate()}const{invitationToken:y}=await l({expiredAt:O});p(`${window.location.origin}/join/${y}`)},m=async()=>{d&&(await UO.write(d),c("URL Copied!",{variant:"success"}))};return P.jsx(Y1,{open:t,disableAutoFocus:!0,onClose:n,children:P.jsxs(Na,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[P.jsx(oa,{sx:{position:"absolute",top:28,right:28},onClick:n,children:P.jsx(aF,{})}),P.jsxs(ui,{gap:4,children:[P.jsx(br,{variant:"h5",children:"Members"}),P.jsxs(ui,{gap:1,children:[P.jsx(br,{variant:"subtitle1",children:"Invite Link"}),P.jsx(sf,{children:P.jsx(Sre,{defaultValues:{expiredString:k2[0]},onSuccess:h,children:P.jsxs(ui,{direction:"row",justifyContent:"space-between",gap:2,children:[P.jsx(gqe,{label:"Expired Date",name:"expiredString",options:k2.map(b=>({id:b,label:b})),size:"small",sx:{width:1},variant:"filled"}),P.jsx(md,{type:"submit",variant:"contained",children:"Generate"})]})})}),!!d&&P.jsxs(ui,{direction:"row",alignItems:"center",gap:2,children:[P.jsx(br,{variant:"body1",children:d}),P.jsx(tb,{title:"Copy URL",children:P.jsx(oa,{onClick:m,children:P.jsx(vie,{})})})]})]}),P.jsx(_a,{style:{height:300,maxHeight:"100%",overflow:"auto"},width:1,children:P.jsx(c1,{pageStart:0,loadMore:()=>a(),hasMore:s,loader:P.jsx(_a,{className:"loader",children:P.jsx(Dp,{size:"sm"})},0),useWindow:!1,children:P.jsx(ui,{gap:2,children:u.map(b=>{var O;return P.jsx(ui,{direction:"row",alignItems:"center",children:P.jsxs(ui,{direction:"row",alignItems:"center",gap:1,children:[P.jsx(gY,{children:(O=b.nickname)==null?void 0:O[0]}),P.jsx(br,{children:b.nickname})]})},b.id)})})})})]})]})})}const N2=240;function pet(){var S,k;const e=Ag(),t=_c(ene),{data:n}=I$(e.workspaceSlug),{mutateAsync:r}=Nqe((n==null?void 0:n.id)||""),[i,o]=I.useState(null),[a,s]=I.useState(null),[l,u]=I.useState(!1),[c,d]=I.useState(!1),p=C=>{o(C.currentTarget)},h=()=>{o(null)},m=C=>{s(C.currentTarget)},b=()=>{s(null)},O=async C=>{await r(C)},y=()=>{u(C=>!C)},v=()=>{d(C=>!C)};return P.jsxs(Nbe,{sx:{width:N2,flexShrink:0,"& .MuiDrawer-paper":{width:N2,boxSizing:"border-box"}},variant:"permanent",anchor:"left",open:!0,children:[P.jsxs(Th,{disablePadding:!0,children:[P.jsxs(VC,{onClick:m,children:[P.jsx(sp,{primary:n==null?void 0:n.title,primaryTypographyProps:{variant:"subtitle1",noWrap:!0}}),P.jsx(oT,{children:P.jsx(oa,{children:a?P.jsx(ine,{}):P.jsx(rne,{})})})]}),P.jsx(Iqe,{open:!!a,anchorEl:a,onClose:b,width:N2-32})]}),P.jsx(lc,{}),P.jsx(Th,{children:P.jsx(md,{variant:"contained",startIcon:P.jsx(zk,{}),sx:{width:1},onClick:y,children:"New Note"})}),P.jsx(lc,{}),P.jsx(Th,{disablePadding:!0,children:P.jsxs(VC,{onClick:v,children:[P.jsx(HN,{children:P.jsx(Are,{})}),P.jsx(sp,{primary:"Members"})]})}),P.jsx(lc,{}),P.jsx(Th,{sx:{mt:"auto"},children:P.jsx(ui,{width:1,alignItems:"center",justifyContent:"flex-end",direction:"row",children:P.jsx(eq,{})})}),P.jsx(lc,{}),P.jsxs(Th,{disablePadding:!0,children:[P.jsxs(VC,{onClick:p,children:[P.jsx(x1e,{children:P.jsx(gY,{children:(S=t.data)==null?void 0:S.nickname.charAt(0)})}),P.jsx(sp,{primary:(k=t.data)==null?void 0:k.nickname}),P.jsx(oT,{children:P.jsx(tne,{})})]}),P.jsx(dVe,{open:!!i,anchorEl:i,onClose:h})]}),P.jsx(xre,{open:l,title:"Note",onSuccess:O,onClose:y}),P.jsx(fet,{open:c,onClose:v})]})}var IF={},het=Oo;Object.defineProperty(IF,"__esModule",{value:!0});var kie=IF.default=void 0,met=het(vo()),LV=P;kie=IF.default=(0,met.default)([(0,LV.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,LV.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function get(e){const{document:t}=e,n=Pp(),r=()=>{n(`/document/${t.slug}`)};return P.jsx(Vge,{sx:{width:"100%"},children:P.jsx(Xge,{onClick:r,children:P.jsxs(r0e,{children:[P.jsx(br,{variant:"h5",component:"div",noWrap:!0,children:t.title}),P.jsxs(ui,{direction:"row",alignItems:"center",gap:1,children:[P.jsx(kie,{fontSize:"small",sx:{color:"text.secondary"}}),P.jsxs(br,{variant:"body2",color:"text.secondary",noWrap:!0,children:["Changed ",Vt(t.updatedAt).fromNow()]})]})]})})})}function bet(){const e=Ag(),{data:t}=I$(e.workspaceSlug),{data:n,fetchNextPage:r,hasNextPage:i}=Dqe(t==null?void 0:t.id),o=I.useMemo(()=>(n==null?void 0:n.pages.reduce((a,s)=>a.concat(s.documents),[]))??[],[n==null?void 0:n.pages]);return P.jsxs(ui,{direction:"row",children:[P.jsx(pet,{}),P.jsx(_a,{style:{maxHeight:"100vh",overflow:"auto"},width:1,children:P.jsx(c1,{pageStart:0,loadMore:()=>r(),hasMore:i,loader:P.jsx(_a,{className:"loader",children:P.jsx(Dp,{size:"sm"})},0),useWindow:!1,children:P.jsx(_a,{p:2,width:1,children:P.jsx(Hh,{container:!0,spacing:{xs:2,md:3},columns:{xs:4,sm:8,md:12,lg:12},children:o.map(a=>P.jsx(Hh,{item:!0,xs:4,sm:4,md:4,lg:3,children:P.jsx(get,{document:a})},a.id))})})})})]})}function yet(){const e=uG();return P.jsx(ui,{width:1,height:"100vh",alignItems:"center",justifyContent:"center",children:P.jsxs(ui,{alignItems:"center",children:[P.jsx(br,{variant:"h5",children:"Something went wrong"}),KN(e)&&P.jsxs(br,{variant:"subtitle1",children:["Status Code: ",e.status]})]})})}function Oet(){const e=Ag(),t=Pp(),{mutateAsync:n}=bVe();return I.useEffect(()=>{e.invitationToken&&n({invitationToken:e.invitationToken}).then(r=>{t(`/workspace/${r.slug}`)})},[n,t,e.invitationToken]),P.jsx(xk,{open:!0,children:P.jsx(Dp,{color:"inherit"})})}const vet=[{path:"",accessType:2,element:P.jsx(Hze,{}),children:[{path:"",element:P.jsx(qze,{})}]},{path:"workspace",accessType:0,element:P.jsx(eVe,{}),children:[{path:":workspaceSlug",element:P.jsx(bet,{})}]},{path:"document",accessType:0,element:P.jsx(yxe,{}),children:[{path:":documentSlug",element:P.jsx(Vze,{})}]},{path:"auth/callback",accessType:2,element:P.jsx(Jze,{})},{path:"join/:invitationToken",accessType:0,element:P.jsx(Oet,{})}],Eet=e=>e.map(t=>(t.accessType===0?t.element=P.jsx(iVe,{children:t.element}):t.accessType===2&&(t.element=P.jsx(rVe,{children:t.element})),t.errorElement=P.jsx(yet,{}),t)),Tet=Eet(vet),wet=e=>["users",e],ket=()=>{const e=xg(),t=_c(Xze);t.accessToken&&(ir.defaults.headers.common.Authorization=`Bearer ${t.accessToken}`);const n=k$({queryKey:wet(t.accessToken||""),enabled:!!t.accessToken,queryFn:async()=>(await ir.get("/users")).data});return I.useEffect(()=>{n.isSuccess?e(qI(n.data)):n.isError&&(e(C$(null)),e(qI(null)),ir.defaults.headers.common.Authorization="")},[e,n.data,n.isError,n.isSuccess]),n};function xet(e){const{children:t}=e,{isSuccess:n,isLoading:r}=ket();return P.jsx(A$.Provider,{value:{isLoggedIn:n,isLoading:r},children:t})}function Cet(){const{enqueueSnackbar:e}=wie();return I.useCallback(n=>{e(n.message||"Something went wrong...",{variant:"error"})},[e])}var Aet={VITE_YORKIE_API_ADDR:"https://api.yorkie.dev",VITE_YORKIE_API_KEY:"cmggkp8ksk14av0keupg",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const _et=wTe(Tet);ir.defaults.baseURL=Aet.VITE_API_ADDR;function Ret(){const e=_c(xG),t=kg("(prefers-color-scheme: dark)"),n=I.useMemo(()=>{const o=t?"dark":"light";return wN({typography:{button:{textTransform:"none"}},palette:{mode:e.theme=="default"?o:e.theme}})},[e.theme,t]),r=Cet(),i=I.useMemo(()=>new wze({queryCache:new Vte({onError:r}),defaultOptions:{mutations:{onError:r}}}),[r]);return P.jsx(_ze,{client:i,children:P.jsx(xet,{children:P.jsxs(Xde,{theme:n,children:[P.jsx(M0e,{}),P.jsx(_a,{minHeight:"100vh",children:P.jsx(NTe,{router:_et})})]})})})}var DF={},NF={};NF.__esModule=!0;NF.default=Net;function yS(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?yS=function(n){return typeof n}:yS=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},yS(e)}function P2(){}var Iet={getItem:P2,setItem:P2,removeItem:P2};function Det(e){if((typeof self>"u"?"undefined":yS(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 Net(e){var t="".concat(e,"Storage");return Det(t)?self[t]:Iet}DF.__esModule=!0;DF.default=Met;var Pet=Let(NF);function Let(e){return e&&e.__esModule?e:{default:e}}function Met(e){var t=(0,Pet.default)(e);return{getItem:function(r){return new Promise(function(i,o){i(t.getItem(r))})},setItem:function(r,i){return new Promise(function(o,a){o(t.setItem(r,i))})},removeItem:function(r){return new Promise(function(i,o){i(t.removeItem(r))})}}}var xie=void 0,$et=Fet(DF);function Fet(e){return e&&e.__esModule?e:{default:e}}var Bet=(0,$et.default)("local");xie=Bet;var PF="persist:",Cie="persist/FLUSH",LF="persist/REHYDRATE",Aie="persist/PAUSE",_ie="persist/PERSIST",Rie="persist/PURGE",Iie="persist/REGISTER",Uet=-1;function OS(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?OS=function(n){return typeof n}:OS=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},OS(e)}function MV(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 jet(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ket(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var Jet=5e3;function ett(e,t){var n=e.version!==void 0?e.version:Uet;e.debug;var r=e.stateReconciler===void 0?Vet:e.stateReconciler,i=e.getStoredState||Qet,o=e.timeout!==void 0?e.timeout:Jet,a=null,s=!1,l=!0,u=function(d){return d._persist.rehydrated&&a&&!l&&a.update(d),d};return function(c,d){var p=c||{},h=p._persist,m=Xet(p,["_persist"]),b=m;if(d.type===_ie){var O=!1,y=function($,N){O||(d.rehydrate(e.key,$,N),O=!0)};if(o&&setTimeout(function(){!O&&y(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},o),l=!1,a||(a=Het(e)),h)return Xu({},t(b,d),{_persist:h});if(typeof d.rehydrate!="function"||typeof d.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 d.register(e.key),i(e).then(function(E){var $=e.migrate||function(N,R){return Promise.resolve(N)};$(E,n).then(function(N){y(N)},function(N){y(void 0,N)})},function(E){y(void 0,E)}),Xu({},t(b,d),{_persist:{version:n,rehydrated:!1}})}else{if(d.type===Rie)return s=!0,d.result(Get(e)),Xu({},t(b,d),{_persist:h});if(d.type===Cie)return d.result(a&&a.flush()),Xu({},t(b,d),{_persist:h});if(d.type===Aie)l=!0;else if(d.type===LF){if(s)return Xu({},b,{_persist:Xu({},h,{rehydrated:!0})});if(d.key===e.key){var v=t(b,d),S=d.payload,k=r!==!1&&S!==void 0?r(S,c,v,e):v,C=Xu({},k,{_persist:Xu({},h,{rehydrated:!0})});return u(C)}}}if(!h)return t(c,d);var w=t(b,d);return w===b?c:u(Xu({},w,{_persist:h}))}}function FV(e){return rtt(e)||ntt(e)||ttt()}function ttt(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function ntt(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function rtt(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:Die,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case Iie:return uD({},t,{registry:[].concat(FV(t.registry),[n.key])});case LF:var r=t.registry.indexOf(n.key),i=FV(t.registry);return i.splice(r,1),uD({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function att(e,t,n){var r=n||!1,i=nP(ott,Die,t&&t.enhancer?t.enhancer:void 0),o=function(u){i.dispatch({type:Iie,key:u})},a=function(u,c,d){var p={type:LF,payload:c,err:d,key:u};e.dispatch(p),i.dispatch(p),r&&s.getState().bootstrapped&&(r(),r=!1)},s=uD({},i,{purge:function(){var u=[];return e.dispatch({type:Rie,result:function(d){u.push(d)}}),Promise.all(u)},flush:function(){var u=[];return e.dispatch({type:Cie,result:function(d){u.push(d)}}),Promise.all(u)},pause:function(){e.dispatch({type:Aie})},persist:function(){e.dispatch({type:_ie,register:o,rehydrate:a})}});return t&&t.manualPersist||s.persist(),s}const stt=dG({auth:Kze,config:Iwe,user:nVe,editor:uxe}),ltt={key:"root",storage:xie,whitelist:["auth","config"]},utt=ett(ltt,stt),Nie=bwe({reducer:utt,middleware:e=>e({serializableCheck:{ignoredActions:["persist/PERSIST","editor/setDoc","editor/setClient"],ignoredPaths:["editor.doc","editor.client"]},immutableCheck:{ignoredPaths:["editor.doc","editor.client"]}})});function vS(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?vS=function(n){return typeof n}:vS=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},vS(e)}function ctt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UV(e,t){for(var n=0;n0)return(t.commaSeparated?OL:EL)(e)}else return String(e)}const cKe=[];function dKe(e,t){return(t.properties.className||cKe).includes(e.name)}function fKe(e,t){return t.properties.id===e.name}function pKe(e,t){return e.name===t.tagName}function hKe(e,t){return function(n,r){let i=PV(n,"tag");const o=PV(r??"*","range"),a=[];let s=-1;for(;++s=LV&&e.charCodeAt(t)<=yKe;)u=u*10+(e.charCodeAt(t)-LV),t++;return t===l?null:u}function s(){for(;to<=n;if(t===0)return o=>o===n;if(t===1)return n<0?MV.trueFunc:o=>o>=n;const r=Math.abs(t),i=(n%r+r)%r;return t>1?o=>o>=n&&o%r===i:o=>o<=n&&o%r===i}function $V(e){return EKe(OKe(e))}const SKe=$V.default||$V,TKe=DL("name",{handlers:{"any-link":wKe,blank:kKe,checked:xKe,dir:CKe,disabled:pie,empty:AKe,enabled:_Ke,"first-child":RKe,"first-of-type":IKe,has:DKe,is:hie,lang:PKe,"last-child":LKe,"last-of-type":MKe,not:$Ke,"nth-child":FKe,"nth-last-child":BKe,"nth-last-of-type":UKe,"nth-of-type":jKe,"only-child":zKe,"only-of-type":VKe,optional:HKe,"read-only":WKe,"read-write":mie,required:gie,root:QKe,scope:YKe},invalid:NKe,unknown:GKe});function wKe(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&_p(t,"href")}function Vu(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function kKe(e,t){return!bie(t,n);function n(r){return r.type==="element"||r.type==="text"&&!une(r)}}function xKe(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&_p(t,"checked")):t.tagName==="option"?_p(t,"selected"):!1}function CKe(e,t,n,r,i){return e.argument,e.argument.type,i.direction===e.argument.value}function pie(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")&&_p(t,"disabled")}function AKe(e,t){return!bie(t,n);function n(r){return r.type==="element"||r.type==="text"}}function _Ke(e,t){return!pie(e,t)}function RKe(e,t,n,r,i){return Vu(i,e),i.elementIndex===0}function IKe(e,t,n,r,i){return Vu(i,e),i.typeIndex===0}function Jx(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=SKe(n.a+"n+"+n.b),e._cachedFn=t}return t}function DKe(e,t,n,r,i){e.argument,e.argument.type;const o={...i,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return xF(o,{type:"root",children:t.children}),o.results.length>0}function NKe(){}function hie(e,t,n,r,i){e.argument,e.argument.type;const o={...i,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return xF(o,t),o.results[0]===t}function PKe(e,t,n,r,i){return e.argument,e.argument.type,i.language!==""&&i.language!==void 0&&mKe(i.language,b1(e.argument.value)).length>0}function LKe(e,t,n,r,i){return Vu(i,e),!!(i.elementCount&&i.elementIndex===i.elementCount-1)}function MKe(e,t,n,r,i){return Vu(i,e),typeof i.typeIndex=="number"&&typeof i.typeCount=="number"&&i.typeIndex===i.typeCount-1}function $Ke(e,t,n,r,i){return!hie(e,t,n,r,i)}function FKe(e,t,n,r,i){const o=Jx(e);return Vu(i,e),typeof i.elementIndex=="number"&&o(i.elementIndex)}function BKe(e,t,n,r,i){const o=Jx(e);return Vu(i,e),!!(typeof i.elementCount=="number"&&typeof i.elementIndex=="number"&&o(i.elementCount-i.elementIndex-1))}function UKe(e,t,n,r,i){const o=Jx(e);return Vu(i,e),typeof i.typeCount=="number"&&typeof i.typeIndex=="number"&&o(i.typeCount-1-i.typeIndex)}function jKe(e,t,n,r,i){const o=Jx(e);return Vu(i,e),typeof i.typeIndex=="number"&&o(i.typeIndex)}function zKe(e,t,n,r,i){return Vu(i,e),i.elementCount===1}function VKe(e,t,n,r,i){return Vu(i,e),i.typeCount===1}function HKe(e,t){return!gie(e,t)}function WKe(e,t,n,r,i){return!mie(e,t,n,r,i)}function mie(e,t,n,r,i){return t.tagName==="input"||t.tagName==="textarea"?!_p(t,"readOnly")&&!_p(t,"disabled"):!!i.editableOrEditingHost}function gie(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&_p(t,"required")}function QKe(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 YKe(e,t,n,r,i){return i.scopeElements.includes(t)}function bie(e,t){const n=e.children;let r=-1;for(;++r"?"directChild":"descendant";N2(o,u,l)}else e.found=!0,e.results.includes(n)||e.results.push(n)}s.combinator===void 0?N2(o,"descendant",s):s.combinator==="~"&&N2(o,"generalSibling",s)}return o}function OS(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:ZKe}function FV(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 yie(e,t,n,r,i,o){let a={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const s=sKe(e,n);if(n.type==="element"){let l=e.rootQuery.rules;i&&i!==o&&(l=e.rootQuery.rules.filter(u=>u.combinator===void 0||u.combinator===">"&&i===o)),a=KKe(e,OS(t,l),n,r,i)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&XKe(e,a,n,o),s(),a}function JKe(e,t,n){const r=eJe(e,t,n);return xF(r,t||void 0),r.results}function eJe(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:rKe(e),schema:n==="svg"?Uu:Bp,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const Oie=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=Oie(n.children))}),t),tJe=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const i=JKe(t,r);i&&i.length>0&&Na(r,i,(o,a,s)=>{n(o,a,s)});return}Na(r,(i,o,a)=>{n(i,o,a)})}}},nJe=tJe,rJe=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),iJe=(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]}},vie=(e=[],t,n,r)=>{let i=t;for(;i/,"$2")||"")?void 0:r?vie(e,i,"pre",r)?void 0:(o.value=(o.value||"").replace(/^(\n|\s)+/,""),o):(o.value=(o.value||"").replace(/^(\n|\s)+/,""),o)}},BV=({value:e=""})=>{const t=rJe(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},UV=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},oJe=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{Na(r,"element",(i,o,a)=>{if(n&&i.tagName==="pre"&&i&&Array.isArray(i.children)&&a&&Array.isArray(a.children)&&a.children.length>1){const s=i.children[0];if(s&&s.tagName==="code"&&typeof o=="number"){const l=iJe(a.children,o);if(l){const u=BV(l);Object.keys(u).length>0&&(i.properties={...i.properties,"data-type":"rehyp"},s.properties=UV(s.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)&&a&&Array.isArray(a.children)&&typeof o=="number"){const s=vie(a.children,o,"",n);if(s){const l=BV(s);Object.keys(l).length>0&&(i.properties=UV(i.properties,l,t))}}})}},aJe=oJe;var sJe=function(t){return n=>{Na(n,r=>{r.type==="element"&&r.tagName==="code"&&r.data&&r.data.meta&&(r.properties=L({},r.properties,{"data-meta":String(r.data.meta)}))})}},lJe=function(t){return n=>{Na(n,r=>{r.type==="element"&&r.tagName==="code"&&r.properties&&r.properties.dataMeta&&(r.data||(r.data={}),r.data.meta=r.properties.dataMeta,delete r.properties.dataMeta)})}};const uJe=/[\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,cJe=Object.hasOwnProperty;class dJe{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let i=fJe(t,n===!0);const o=i;for(;cJe.call(r.occurrences,i);)r.occurrences[o]++,i=o+"-"+r.occurrences[o];return r.occurrences[i]=0,i}reset(){this.occurrences=Object.create(null)}}function fJe(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(uJe,"").replace(/ /g,"-"))}function Eie(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 pJe={},jV=new dJe;function hJe(e){const n=(e||pJe).prefix||"";return function(r){jV.reset(),Na(r,"element",function(i){Eie(i)&&!i.properties.id&&(i.properties.id=n+jV.slug(em(i)))})}}const Sie=function(e){if(e==null)return bJe;if(typeof e=="string")return gJe(e);if(typeof e=="object")return mJe(e);if(typeof e=="function")return CF(e);throw new Error("Expected function, string, or array as `test`")};function mJe(e){const t=[];let n=-1;for(;++n{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{Na(r,(i,o,a)=>{if(i.type==="element"||i.type==="root"){let s=!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 s=!0,!1;if(u===n)return s=!1,!1}return!s})}})}},SJe=EJe;var TJe={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 wJe(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 kJe=(e,t)=>(n,r,i)=>{if(n.type==="element"&&i&&i.type==="root"&&/h(1|2|3|4|5|6)/.test(n.tagName)){var o=n.children&&n.children[0];o&&o.properties&&o.properties.ariaHidden==="true"&&(o.properties=L({class:"anchor"},o.properties),o.children=[TJe])}if(n.type==="element"&&n.tagName==="pre"&&!e){var a=Oie(n.children);n.children.push(wJe(a))}t&&t(n,r===null?void 0:r,i===null?void 0:i)},xJe=[hJe,vJe,SJe];const CJe=Qt.forwardRef((e,t)=>{var n,r=[sJe,nie,lJe,[jXe,{ignoreMissing:!0}],...xJe,[nJe,{rewrite:kJe((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[aJe,{properties:"attr"}],...e.rehypePlugins||[]];return N.jsx(sXe,L({},e,{rehypePlugins:r,ref:t}))});function HV(){const e=kP(),t=Ic(Hk),[n,r]=I.useState("");return I.useEffect(()=>{var o,a;if(!t.doc)return;r(((a=(o=t.doc)==null?void 0:o.getRoot().content)==null?void 0:a.toString())||"");const i=t.doc.subscribe("$.content",()=>{var s;r((s=t.doc)==null?void 0:s.getRoot().content.toString())});return()=>{i(),r("")}},[t.doc]),t!=null&&t.doc?N.jsx(CJe,{source:n,wrapperElement:{"data-color-mode":e}}):N.jsx(yr,{direction:"row",justifyContent:"center",children:N.jsx(Dp,{sx:{mt:2}})})}const eC=Qt.createContext({isLoading:!0,isLoggedIn:!1});function AJe(){const e=Ag(),t=Pp(),{isLoggedIn:n}=I.useContext(eC),[r]=aP(),i=Oje(),o=Ic(Hk),{data:a,isError:s}=MX(n?t.documentSlug:null),{data:l,isError:u}=eLe(r.get("token"));return I.useEffect(()=>{let c,d;const p=(a==null?void 0:a.yorkieDocumentId)||(l==null?void 0:l.yorkieDocumentId);return p?((async()=>{c=new FI.Client("https://api.yorkie.dev",{apiKey:"cmggkp8ksk14av0keupg"}),await c.activate(),d=new FI.Document(p),await c.attach(d,{initialPresence:{name:"Yorkie",color:sje($9e()).fade(.15).toString(),selection:null}}),e(V7(d)),e(H7(c))})(),()=>{(async()=>{await(c==null?void 0:c.deactivate()),e(V7(null)),e(H7(null))})()}):void 0},[e,a==null?void 0:a.yorkieDocumentId,l==null?void 0:l.yorkieDocumentId]),I.useEffect(()=>{if(l)return e(W7(l.role)),()=>{W7(null)}},[e,l,l==null?void 0:l.role]),s||u?N.jsx(iP,{to:"/",state:{from:location},replace:!0}):N.jsxs(Ra,{height:"calc(100% - 64px)",children:[N.jsx("div",{className:"wmde-markdown-var"}),o.mode==="both"&&N.jsx(fje,{axis:"x",initial:i/2,min:400,children:({position:c,separatorProps:d})=>N.jsxs("div",{id:"wrapper",style:{display:"flex",height:"100%",overflow:"hidden"},children:[N.jsx("div",{id:"left-block",style:{width:c},children:N.jsx(lz,{})}),N.jsx(la,{id:"splitter",...d,sx:{height:"100%",width:8,borderRadius:0,cursor:"col-resize",zIndex:100}}),N.jsx("div",{className:"right-block",style:{width:`calc(100% - ${c}px)`,overflow:"auto"},children:N.jsx(Ra,{sx:{p:4},height:"100%",children:N.jsx(HV,{})})})]})}),o.mode==="read"&&N.jsx(Ra,{sx:{p:4,overflow:"auto"},height:"100%",children:N.jsx(HV,{})}),o.mode==="edit"&&N.jsx(lz,{})]})}function _Je(){return N.jsx(yr,{sx:{flexGrow:1},gap:3,children:N.jsx(oP,{})})}function RJe(e){return N.jsx(Vd,{...e,children:N.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:[N.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"}),N.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"}),N.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"})]})})}var IJe=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,o){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var a in r)n.d(o,a,(function(s){return r[s]}).bind(null,a));return o},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=I},function(e,t,n){var r=n(3);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function a(u,c,d,p,h,m){if(m!==r){var b=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 b.name="Invariant Violation",b}}function s(){return a}a.isRequired=a;var l={array:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:s,element:a,elementType:a,instanceOf:s,node:a,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:o,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 q}),n.d(t,"GoogleLoginButton",function(){return j}),n.d(t,"GithubLoginButton",function(){return G}),n.d(t,"TwitterLoginButton",function(){return ue}),n.d(t,"AmazonLoginButton",function(){return Ve}),n.d(t,"InstagramLoginButton",function(){return Ye}),n.d(t,"LinkedInLoginButton",function(){return $e}),n.d(t,"MicrosoftLoginButton",function(){return Be}),n.d(t,"BufferLoginButton",function(){return J}),n.d(t,"TelegramLoginButton",function(){return De}),n.d(t,"AppleLoginButton",function(){return de}),n.d(t,"DiscordLoginButton",function(){return rt}),n.d(t,"OktaLoginButton",function(){return et}),n.d(t,"SlackLoginButton",function(){return it}),n.d(t,"YahooLoginButton",function(){return on}),n.d(t,"createButton",function(){return V}),n.d(t,"createSvgIcon",function(){return W}),n.d(t,"ZaloLoginButton",function(){return zn}),n.d(t,"TikTokLoginButton",function(){return pe}),n.d(t,"MetamaskLoginButton",function(){return $t});var r={};n.r(r),n.d(r,"FacebookLoginButton",function(){return q}),n.d(r,"GoogleLoginButton",function(){return j}),n.d(r,"GithubLoginButton",function(){return G}),n.d(r,"TwitterLoginButton",function(){return ue}),n.d(r,"AmazonLoginButton",function(){return Ve}),n.d(r,"InstagramLoginButton",function(){return Ye}),n.d(r,"LinkedInLoginButton",function(){return $e}),n.d(r,"MicrosoftLoginButton",function(){return Be}),n.d(r,"BufferLoginButton",function(){return J}),n.d(r,"TelegramLoginButton",function(){return De}),n.d(r,"AppleLoginButton",function(){return de}),n.d(r,"DiscordLoginButton",function(){return rt}),n.d(r,"OktaLoginButton",function(){return et}),n.d(r,"SlackLoginButton",function(){return it}),n.d(r,"YahooLoginButton",function(){return on}),n.d(r,"createButton",function(){return V}),n.d(r,"createSvgIcon",function(){return W}),n.d(r,"ZaloLoginButton",function(){return zn}),n.d(r,"TikTokLoginButton",function(){return pe}),n.d(r,"MetamaskLoginButton",function(){return $t});var i=n(1),o=n.n(i),a=n(0),s=n.n(a),l=function(Ie){var we=Ie.name,Qe=Ie.size,ot=Ie.format;return o.a.createElement("i",{className:ot(we),style:{fontSize:Qe}})};l.propTypes={format:s.a.func,name:s.a.string.isRequired,size:s.a.oneOfType([s.a.string,s.a.number]).isRequired},l.defaultProps={format:function(Ie){return"demo-icon icon-".concat(Ie)},size:26};var u=l,c=function(Ie){var we=Ie.type,Qe=Ie.size,ot=Ie.format,rn=Ie.color,Wt=rn===void 0?"#FFFFFF":rn;return typeof we=="string"?o.a.createElement(u,{format:ot,name:we,size:Qe}):o.a.createElement(we,{size:Qe,color:Wt})};c.propTypes={format:s.a.func,size:s.a.oneOfType([s.a.number,s.a.string]),type:s.a.oneOfType([s.a.string,s.a.node,s.a.func]),color:s.a.string};var d=c;function p(Ie,we){var Qe=Object.keys(Ie);if(Object.getOwnPropertySymbols){var ot=Object.getOwnPropertySymbols(Ie);we&&(ot=ot.filter(function(rn){return Object.getOwnPropertyDescriptor(Ie,rn).enumerable})),Qe.push.apply(Qe,ot)}return Qe}function h(Ie){for(var we=1;we"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 Qe,ot=C(Ie);if(we){var rn=C(this).constructor;Qe=Reflect.construct(ot,arguments,rn)}else Qe=ot.apply(this,arguments);return k(this,Qe)}}function k(Ie,we){return!we||b(we)!=="object"&&typeof we!="function"?function(Qe){if(Qe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Qe}(Ie):we}function C(Ie){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(we){return we.__proto__||Object.getPrototypeOf(we)})(Ie)}var w=function(Ie){(function(Wt,mn){if(typeof mn!="function"&&mn!==null)throw new TypeError("Super expression must either be null or a function");Wt.prototype=Object.create(mn&&mn.prototype,{constructor:{value:Wt,writable:!0,configurable:!0}}),mn&&v(Wt,mn)})(rn,Ie);var we,Qe,ot=S(rn);function rn(Wt){var mn;return function(nr,Ue){if(!(nr instanceof Ue))throw new TypeError("Cannot call a class as a function")}(this,rn),(mn=ot.call(this,Wt)).state={focused:!1,hovered:!1},mn.handleMouseEnter=function(){mn.setState({hovered:!0}),typeof mn.props.onMouseEnter=="function"&&mn.props.onMouseEnter()},mn.handleMouseLeave=function(){mn.setState({hovered:!1}),typeof mn.props.onMouseLeave=="function"&&mn.props.onMouseLeave()},mn.handleFocus=function(){mn.setState({focused:!0})},mn.handleBlur=function(){mn.setState({focused:!1})},mn.handleClick=function(nr){typeof mn.props.onClick=="function"&&mn.props.onClick(nr)},mn}return we=rn,(Qe=[{key:"render",value:function(){var Wt=this.props,mn=Wt.activeStyle,nr=Wt.align,Ue=Wt.text,Ce=Wt.children,mt=Ce===void 0?Ue:Ce,Dt=Wt.className,tn=Wt.icon,Mn=Wt.iconFormat,Dn=Wt.iconSize,Kt=Wt.iconColor,bn=Kt===void 0?"#FFFFFF":Kt,Wn=Wt.preventActiveStyles,Qn=Wt.size,ht=Wt.style,Gr=Wt.disabled,En=this.state,An=En.focused,ua=En.hovered,Qp=$(P.button,{activeStyle:Wn?ht:mn,customStyle:ht,active:ua||An,size:Qn});return o.a.createElement("button",O({type:"button",style:Qp,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur},{className:Dt},{disabled:Gr}),o.a.createElement("div",{style:P.flex},!E(Dn)&&o.a.createElement("div",{style:{display:"flex",justifyContent:"center",minWidth:Dn}},o.a.createElement(d,{type:tn,size:Dn,format:Mn,color:bn})),!E(Dn)&&o.a.createElement("div",{style:P.divider}),o.a.createElement("div",{style:{textAlign:nr,width:"100%"}},mt)))}}])&&y(we.prototype,Qe),rn}(i.Component),E=function(Ie){return Ie==="0"||Ie==="0px"||Ie===0},$=function(Ie,we){var Qe=we.size,ot=we.customStyle,rn=we.active,Wt=we.activeStyle;return h(h(h({},Ie),{},{height:Qe},ot),rn&&Wt)};w.propTypes={activeStyle:s.a.object,align:s.a.oneOf(["left","right","center"]),children:s.a.node,className:s.a.string,icon:s.a.oneOfType([s.a.string,s.a.node,s.a.func]),iconFormat:s.a.func,iconSize:s.a.string,iconColor:s.a.string,onClick:s.a.func,onMouseEnter:s.a.func,onMouseLeave:s.a.func,preventActiveStyles:s.a.bool,size:s.a.string,style:s.a.object,text:s.a.string,disabled:s.a.bool},w.defaultProps={align:"left",iconSize:"26px",preventActiveStyles:!1,size:"50px"};var P={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 R(Ie,we){var Qe=Object.keys(Ie);if(Object.getOwnPropertySymbols){var ot=Object.getOwnPropertySymbols(Ie);we&&(ot=ot.filter(function(rn){return Object.getOwnPropertyDescriptor(Ie,rn).enumerable})),Qe.push.apply(Qe,ot)}return Qe}function B(Ie){for(var we=1;we{window.location.href=`${DJe.VITE_API_ADDR}/auth/login/${t}`};return N.jsx(j0e,{children:N.jsx(yr,{alignItems:"center",justifyContent:"center",sx:{height:"100vh"},children:N.jsx(la,{sx:{p:5,width:"small",boxShadow:2,maxWidth:"80%"},children:N.jsxs(yr,{gap:4,children:[N.jsxs(Ra,{children:[N.jsxs(yr,{direction:"row",gap:1,children:[N.jsx(RJe,{}),N.jsx(dr,{variant:"h6",children:"Login"})]}),N.jsx(dr,{variant:"body2",color:"text.secondary",maxWidth:320,children:"Real-time markdown editor for interviews, meetings and more..."})]}),N.jsxs(yr,{gap:2,children:[N.jsxs(Hh,{container:!0,spacing:1,alignItems:"center",children:[N.jsx(Hh,{item:!0,xs:!0,children:N.jsx(uc,{sx:{width:1}})}),N.jsx(Hh,{item:!0,xs:"auto",children:N.jsx(dr,{variant:"body2",color:"text.secondary",children:"Login with"})}),N.jsx(Hh,{item:!0,xs:!0,children:N.jsx(uc,{sx:{width:1}})})]}),NJe.map(({SocailLoginComponent:t,provider:n})=>N.jsx(t,{size:"48px",onClick:()=>e(n)},n))]})]})})})})}const LJe={accessToken:null},wie=Fk({name:"auth",initialState:LJe,reducers:{setAccessToken:(e,t)=>{e.accessToken=t.payload}}}),{setAccessToken:_F}=wie.actions,MJe=e=>e.auth,$Je=wie.reducer;function FJe(){const e=Ag(),t=Rg(),[n]=aP();return I.useEffect(()=>{const r=n.get("token");if(!r){t("/");return}e(_F(r))},[e,t,n]),N.jsx(Ra,{})}function BJe(){return N.jsx(oP,{})}const UJe={data:null},kie=Fk({name:"user",initialState:UJe,reducers:{setUserData:(e,t)=>{e.data=t.payload}}}),{setUserData:fD}=kie.actions,xie=e=>e.user,jJe=kie.reducer,zJe=e=>{var o;const{children:t}=e,{isLoggedIn:n}=I.useContext(eC),r=_g(),i=Ic(xie);return n?N.jsx(iP,{to:`/workspace/${(o=i.data)==null?void 0:o.lastWorkspaceSlug}`,state:{from:r},replace:!0}):t},VJe=e=>{const{children:t}=e,{isLoggedIn:n,isLoading:r}=I.useContext(eC),i=_g();return r?N.jsx(Ak,{open:!0,children:N.jsx(Dp,{color:"inherit"})}):n?t:N.jsx(iP,{to:"/",state:{from:i},replace:!0})};var RF={},HJe=eo;Object.defineProperty(RF,"__esModule",{value:!0});var Cie=RF.default=void 0,WJe=HJe(to()),QJe=N;Cie=RF.default=(0,WJe.default)((0,QJe.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert");var IF={},YJe=eo;Object.defineProperty(IF,"__esModule",{value:!0});var Aie=IF.default=void 0,GJe=YJe(to()),qJe=N;Aie=IF.default=(0,GJe.default)((0,qJe.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");function ZJe(e){const t=Ag(),n=()=>{t(_F(null)),t(fD(null))};return N.jsx(qN,{anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"},...e,children:N.jsx(Z1,{children:N.jsxs(yp,{onClick:n,children:[N.jsx(GN,{children:N.jsx(Aie,{fontSize:"small"})}),N.jsx(sp,{children:"Logout"})]})})})}const XJe=e=>["workspaces",e],KJe=()=>["workspaces"],DF=e=>cx({queryKey:XJe(e||""),enabled:!!e,queryFn:async()=>(await Jn.get(`/workspaces/${e}`)).data,meta:{errorMessage:"This is a non-existent or unauthorized Workspace."}}),JJe=()=>T3({queryKey:KJe(),queryFn:async({pageParam:t})=>(await Jn.get("/workspaces",{params:{cursor:t}})).data,initialPageParam:void 0,getPreviousPageParam:t=>t.cursor??void 0,getNextPageParam:t=>t.cursor??void 0}),eet=()=>hO({mutationFn:async e=>(await Jn.post("/workspaces",e)).data}),tet=e=>hO({mutationFn:async t=>(await Jn.post(`/workspaces/${e}/invite-token`,t)).data}),net=()=>hO({mutationFn:async e=>(await Jn.post("/workspaces/join",e)).data});var NF={},ret=eo;Object.defineProperty(NF,"__esModule",{value:!0});var _ie=NF.default=void 0,iet=ret(to()),oet=N;_ie=NF.default=(0,iet.default)((0,oet.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");var PF={},aet=eo;Object.defineProperty(PF,"__esModule",{value:!0});var Rie=PF.default=void 0,set=aet(to()),uet=N;Rie=PF.default=(0,set.default)((0,uet.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");class S1 extends I.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 o=document.documentElement||document.body.parentNode||document.body,a=n.pageYOffset!==void 0?n.pageYOffset:o.scrollTop;this.props.isReverse?i=a:i=this.calculateOffset(t,a)}else this.props.isReverse?i=r.scrollTop:i=t.scrollHeight-r.scrollTop-r.clientHeight;i{this.scrollComponent=y,c&&c(y)};const O=[n];return i&&(s?a?O.unshift(s):O.push(s):this.defaultLoader&&(a?O.unshift(this.defaultLoader):O.push(this.defaultLoader))),Qt.createElement(r,b,O)}}Zo(S1,"propTypes",{children:Q.node.isRequired,element:Q.node,hasMore:Q.bool,initialLoad:Q.bool,isReverse:Q.bool,loader:Q.node,loadMore:Q.func.isRequired,pageStart:Q.number,ref:Q.func,getScrollParent:Q.func,threshold:Q.number,useCapture:Q.bool,useWindow:Q.bool}),Zo(S1,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});var LF={},cet=eo;Object.defineProperty(LF,"__esModule",{value:!0});var Iie=LF.default=void 0,det=cet(to()),fet=N;Iie=LF.default=(0,det.default)((0,fet.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var MF={},pet=eo;Object.defineProperty(MF,"__esModule",{value:!0});var $F=MF.default=void 0,het=pet(to()),met=N;$F=MF.default=(0,het.default)((0,met.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");function Die(e){const{title:t,onSuccess:n,...r}=e,i=()=>{var a;(a=r==null?void 0:r.onClose)==null||a.call(r,new Event("Close Modal"),"escapeKeyDown")},o=async a=>{await n(a),i()};return N.jsx(kg,{disableAutoFocus:!0,...r,children:N.jsxs(la,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[N.jsx(Eo,{sx:{position:"absolute",top:28,right:28},onClick:i,children:N.jsx(dx,{})}),N.jsxs(yr,{gap:4,children:[N.jsxs(dr,{variant:"h5",children:["Create New ",t]}),N.jsx(Rc,{children:N.jsx(XP,{defaultValues:{title:""},onSuccess:o,children:N.jsxs(yr,{gap:4,alignItems:"flex-end",children:[N.jsx(xZ,{variant:"standard",name:"title",label:"Title of new note",required:!0,fullWidth:!0,inputProps:{maxLength:255}}),N.jsx(lc,{type:"submit",variant:"contained",size:"large",children:"OK"})]})})})]})]})})}function get(e){const{width:t,...n}=e,r=Rg(),i=Pp(),{data:o,hasNextPage:a,fetchNextPage:s}=JJe(),{mutateAsync:l}=eet(),u=I.useMemo(()=>(o==null?void 0:o.pages.reduce((O,y)=>O.concat(y.workspaces),[]))??[],[o==null?void 0:o.pages]),[c,d]=I.useState(!1),p=O=>{r(`/workspace/${O}`)},h=O=>{var y;i.workspaceSlug!==O&&(p(O),(y=n==null?void 0:n.onClose)==null||y.call(n,new Event("Close Popover"),"backdropClick"))},m=()=>{var O;d(y=>!y),n.open&&((O=n==null?void 0:n.onClose)==null||O.call(n,new Event("Close Popover"),"backdropClick"))},b=async O=>{const y=await l(O);p(y.slug)};return N.jsxs(N.Fragment,{children:[N.jsx(qN,{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...n,children:N.jsxs(Z1,{sx:{width:t},children:[N.jsx(Ra,{style:{maxHeight:300,overflow:"auto"},children:N.jsx(S1,{pageStart:0,loadMore:()=>s(),hasMore:a,loader:N.jsx(Ra,{className:"loader",children:N.jsx(Dp,{size:"sm"})},0),useWindow:!1,children:u.map(O=>N.jsxs(yp,{onClick:()=>h(O.slug),children:[N.jsx(sp,{primaryTypographyProps:{noWrap:!0,variant:"body2"},children:O.title}),i.workspaceSlug===O.slug&&N.jsx(sT,{children:N.jsx(Iie,{fontSize:"small"})})]},O.id))})}),N.jsx(uc,{}),N.jsxs(yp,{onClick:m,children:[N.jsx(GN,{children:N.jsx($F,{fontSize:"small"})}),N.jsx(sp,{children:"Create Workspace"})]})]})}),N.jsx(Die,{open:c,title:"Workspace",onClose:m,onSuccess:b})]})}var FF={},bet=eo;Object.defineProperty(FF,"__esModule",{value:!0});var Nie=FF.default=void 0,yet=bet(to()),Oet=N;Nie=FF.default=(0,yet.default)((0,Oet.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");const vet=e=>["workspaces",e,"users"],Eet=e=>T3({queryKey:vet(e||""),queryFn:async({pageParam:t})=>(await Jn.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 Tet(e){const{open:t,onClose:n}=e,r=Pp(),{data:i}=DF(r.workspaceSlug),{data:o,fetchNextPage:a,hasNextPage:s}=Eet(i==null?void 0:i.id),{mutateAsync:l}=tet((i==null?void 0:i.id)||""),u=I.useMemo(()=>(o==null?void 0:o.pages.reduce((b,O)=>b.concat(O.workspaceUsers),[]))??[],[o==null?void 0:o.pages]),{enqueueSnackbar:c}=w3(),[d,p]=I.useState(null),h=async b=>{let O;if(b.expiredString===pm[0])O=null;else{const[v,S]=b.expiredString.split(" ");O=zt().add(Number(v),S).toDate()}const{invitationToken:y}=await l({expiredAt:O});p(`${window.location.origin}/join/${y}`)},m=async()=>{d&&(await Fg.write(d),c("URL Copied!",{variant:"success"}))};return N.jsx(kg,{open:t,disableAutoFocus:!0,onClose:n,children:N.jsxs(la,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[N.jsx(Eo,{sx:{position:"absolute",top:28,right:28},onClick:n,children:N.jsx(dx,{})}),N.jsxs(yr,{gap:4,children:[N.jsx(dr,{variant:"h5",children:"Members"}),N.jsxs(yr,{gap:1,children:[N.jsx(dr,{variant:"subtitle1",children:"Invite Link"}),N.jsx(Rc,{children:N.jsx(XP,{defaultValues:{expiredString:pm[0]},onSuccess:h,children:N.jsxs(yr,{direction:"row",justifyContent:"space-between",gap:2,children:[N.jsx(cR,{label:"Expired Date",name:"expiredString",options:pm.map(b=>({id:b,label:b})),size:"small",sx:{width:1},variant:"filled"}),N.jsx(lc,{type:"submit",variant:"contained",children:"Generate"})]})})}),!!d&&N.jsxs(yr,{direction:"row",alignItems:"center",gap:2,children:[N.jsx(dr,{variant:"body1",children:d}),N.jsx(Db,{title:"Copy URL",children:N.jsx(Eo,{onClick:m,children:N.jsx(x3,{})})})]})]}),N.jsx(Ra,{style:{height:300,maxHeight:"100%",overflow:"auto"},width:1,children:N.jsx(S1,{pageStart:0,loadMore:()=>a(),hasMore:s,loader:N.jsx(Ra,{className:"loader",children:N.jsx(Dp,{size:"sm"})},0),useWindow:!1,children:N.jsx(yr,{gap:2,children:u.map(b=>{var O;return N.jsx(yr,{direction:"row",alignItems:"center",children:N.jsxs(yr,{direction:"row",alignItems:"center",gap:1,children:[N.jsx(xY,{children:(O=b.nickname)==null?void 0:O[0]}),N.jsx(dr,{children:b.nickname})]})},b.id)})})})})]})]})})}const L2=240;function wet(){var S,k;const e=Pp(),t=Ic(xie),{data:n}=DF(e.workspaceSlug),{mutateAsync:r}=nLe((n==null?void 0:n.id)||""),[i,o]=I.useState(null),[a,s]=I.useState(null),[l,u]=I.useState(!1),[c,d]=I.useState(!1),p=C=>{o(C.currentTarget)},h=()=>{o(null)},m=C=>{s(C.currentTarget)},b=()=>{s(null)},O=async C=>{await r(C)},y=()=>{u(C=>!C)},v=()=>{d(C=>!C)};return N.jsxs(zbe,{sx:{width:L2,flexShrink:0,"& .MuiDrawer-paper":{width:L2,boxSizing:"border-box"}},variant:"permanent",anchor:"left",open:!0,children:[N.jsxs(Th,{disablePadding:!0,children:[N.jsxs(QC,{onClick:m,children:[N.jsx(sp,{primary:n==null?void 0:n.title,primaryTypographyProps:{variant:"subtitle1",noWrap:!0}}),N.jsx(sT,{children:N.jsx(Eo,{children:a?N.jsx(Rie,{}):N.jsx(_ie,{})})})]}),N.jsx(get,{open:!!a,anchorEl:a,onClose:b,width:L2-32})]}),N.jsx(uc,{}),N.jsx(Th,{children:N.jsx(lc,{variant:"contained",startIcon:N.jsx($F,{}),sx:{width:1},onClick:y,children:"New Note"})}),N.jsx(uc,{}),N.jsx(Th,{disablePadding:!0,children:N.jsxs(QC,{onClick:v,children:[N.jsx(GN,{children:N.jsx(Nie,{})}),N.jsx(sp,{primary:"Members"})]})}),N.jsx(uc,{}),N.jsx(Th,{sx:{mt:"auto"},children:N.jsx(yr,{width:1,alignItems:"center",justifyContent:"flex-end",direction:"row",children:N.jsx(uq,{})})}),N.jsx(uc,{}),N.jsxs(Th,{disablePadding:!0,children:[N.jsxs(QC,{onClick:p,children:[N.jsx(L1e,{children:N.jsx(xY,{children:(S=t.data)==null?void 0:S.nickname.charAt(0)})}),N.jsx(sp,{primary:(k=t.data)==null?void 0:k.nickname}),N.jsx(sT,{children:N.jsx(Cie,{})})]}),N.jsx(ZJe,{open:!!i,anchorEl:i,onClose:h})]}),N.jsx(Die,{open:l,title:"Note",onSuccess:O,onClose:y}),N.jsx(Tet,{open:c,onClose:v})]})}var BF={},ket=eo;Object.defineProperty(BF,"__esModule",{value:!0});var Pie=BF.default=void 0,xet=ket(to()),WV=N;Pie=BF.default=(0,xet.default)([(0,WV.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,WV.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function Cet(e){const{document:t}=e,n=Rg(),r=()=>{n(`/document/${t.slug}`)};return N.jsx(Kge,{sx:{width:"100%"},children:N.jsx(a0e,{onClick:r,children:N.jsxs(f0e,{children:[N.jsx(dr,{variant:"h5",component:"div",noWrap:!0,children:t.title}),N.jsxs(yr,{direction:"row",alignItems:"center",gap:1,children:[N.jsx(Pie,{fontSize:"small",sx:{color:"text.secondary"}}),N.jsxs(dr,{variant:"body2",color:"text.secondary",noWrap:!0,children:["Changed ",zt(t.updatedAt).fromNow()]})]})]})})})}function Aet(){const e=Pp(),{data:t}=DF(e.workspaceSlug),{data:n,fetchNextPage:r,hasNextPage:i}=tLe(t==null?void 0:t.id),o=I.useMemo(()=>(n==null?void 0:n.pages.reduce((a,s)=>a.concat(s.documents),[]))??[],[n==null?void 0:n.pages]);return N.jsxs(yr,{direction:"row",children:[N.jsx(wet,{}),N.jsx(Ra,{style:{maxHeight:"100vh",overflow:"auto"},width:1,children:N.jsx(S1,{pageStart:0,loadMore:()=>r(),hasMore:i,loader:N.jsx(Ra,{className:"loader",children:N.jsx(Dp,{size:"sm"})},0),useWindow:!1,children:N.jsx(Ra,{p:2,width:1,children:N.jsx(Hh,{container:!0,spacing:{xs:2,md:3},columns:{xs:4,sm:8,md:12,lg:12},children:o.map(a=>N.jsx(Hh,{item:!0,xs:4,sm:4,md:4,lg:3,children:N.jsx(Cet,{document:a})},a.id))})})})})]})}function _et(){const e=OG();return N.jsx(yr,{width:1,height:"100vh",alignItems:"center",justifyContent:"center",children:N.jsxs(yr,{alignItems:"center",children:[N.jsx(dr,{variant:"h5",children:"Something went wrong"}),nP(e)&&N.jsxs(dr,{variant:"subtitle1",children:["Status Code: ",e.status]})]})})}function Ret(){const e=Pp(),t=Rg(),{mutateAsync:n}=net();return I.useEffect(()=>{e.invitationToken&&n({invitationToken:e.invitationToken}).then(r=>{t(`/workspace/${r.slug}`)})},[n,t,e.invitationToken]),N.jsx(Ak,{open:!0,children:N.jsx(Dp,{color:"inherit"})})}const Iet=[{path:"",accessType:2,element:N.jsx(_Je,{}),children:[{path:"",element:N.jsx(PJe,{})}]},{path:"workspace",accessType:0,element:N.jsx(BJe,{}),children:[{path:":workspaceSlug",element:N.jsx(Aet,{})}]},{path:"document",accessType:1,element:N.jsx(MLe,{}),children:[{path:":documentSlug",element:N.jsx(AJe,{})}]},{path:"auth/callback",accessType:2,element:N.jsx(FJe,{})},{path:"join/:invitationToken",accessType:0,element:N.jsx(Ret,{})}],Det=e=>e.map(t=>(t.accessType===0?t.element=N.jsx(VJe,{children:t.element}):t.accessType===2&&(t.element=N.jsx(zJe,{children:t.element})),t.errorElement=N.jsx(_et,{}),t)),Net=Det(Iet),Pet=e=>["users",e],Let=()=>{const e=Ag(),t=Ic(MJe);t.accessToken&&(Jn.defaults.headers.common.Authorization=`Bearer ${t.accessToken}`);const n=cx({queryKey:Pet(t.accessToken||""),enabled:!!t.accessToken,queryFn:async()=>(await Jn.get("/users")).data});return I.useEffect(()=>{n.isSuccess?e(fD(n.data)):n.isError&&(e(_F(null)),e(fD(null)),Jn.defaults.headers.common.Authorization="")},[e,n.data,n.isError,n.isSuccess]),n};function Met(e){const{children:t}=e,{isSuccess:n,isLoading:r}=Let();return N.jsx(eC.Provider,{value:{isLoggedIn:n,isLoading:r},children:t})}function $et(){const{enqueueSnackbar:e}=w3();return I.useCallback(n=>{e(n.message||"Something went wrong...",{variant:"error"})},[e])}var Fet={VITE_YORKIE_API_ADDR:"https://api.yorkie.dev",VITE_YORKIE_API_KEY:"cmggkp8ksk14av0keupg",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Bet=NTe(Net);Jn.defaults.baseURL=Fet.VITE_API_ADDR;function Uet(){const e=Ic(LG),t=Cg("(prefers-color-scheme: dark)"),n=I.useMemo(()=>{const o=t?"dark":"light";return AN({typography:{button:{textTransform:"none"}},palette:{mode:e.theme=="default"?o:e.theme}})},[e.theme,t]),r=$et(),i=I.useMemo(()=>new $3e({queryCache:new xX({onError:r}),defaultOptions:{mutations:{onError:r}}}),[r]);return N.jsx(z3e,{client:i,children:N.jsx(Met,{children:N.jsxs(afe,{theme:n,children:[N.jsx(W0e,{}),N.jsx(Ra,{minHeight:"100vh",children:N.jsx(zTe,{router:Bet})})]})})})}var UF={},jF={};jF.__esModule=!0;jF.default=Vet;function vS(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?vS=function(n){return typeof n}:vS=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},vS(e)}function M2(){}var jet={getItem:M2,setItem:M2,removeItem:M2};function zet(e){if((typeof self>"u"?"undefined":vS(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 Vet(e){var t="".concat(e,"Storage");return zet(t)?self[t]:jet}UF.__esModule=!0;UF.default=Qet;var Het=Wet(jF);function Wet(e){return e&&e.__esModule?e:{default:e}}function Qet(e){var t=(0,Het.default)(e);return{getItem:function(r){return new Promise(function(i,o){i(t.getItem(r))})},setItem:function(r,i){return new Promise(function(o,a){o(t.setItem(r,i))})},removeItem:function(r){return new Promise(function(i,o){i(t.removeItem(r))})}}}var Lie=void 0,Yet=Get(UF);function Get(e){return e&&e.__esModule?e:{default:e}}var qet=(0,Yet.default)("local");Lie=qet;var zF="persist:",Mie="persist/FLUSH",VF="persist/REHYDRATE",$ie="persist/PAUSE",Fie="persist/PERSIST",Bie="persist/PURGE",Uie="persist/REGISTER",Zet=-1;function ES(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ES=function(n){return typeof n}:ES=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ES(e)}function QV(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 Xet(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ltt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var utt=5e3;function ctt(e,t){var n=e.version!==void 0?e.version:Zet;e.debug;var r=e.stateReconciler===void 0?Jet:e.stateReconciler,i=e.getStoredState||ntt,o=e.timeout!==void 0?e.timeout:utt,a=null,s=!1,l=!0,u=function(d){return d._persist.rehydrated&&a&&!l&&a.update(d),d};return function(c,d){var p=c||{},h=p._persist,m=stt(p,["_persist"]),b=m;if(d.type===Fie){var O=!1,y=function($,P){O||(d.rehydrate(e.key,$,P),O=!0)};if(o&&setTimeout(function(){!O&&y(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},o),l=!1,a||(a=ett(e)),h)return Xu({},t(b,d),{_persist:h});if(typeof d.rehydrate!="function"||typeof d.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 d.register(e.key),i(e).then(function(E){var $=e.migrate||function(P,R){return Promise.resolve(P)};$(E,n).then(function(P){y(P)},function(P){y(void 0,P)})},function(E){y(void 0,E)}),Xu({},t(b,d),{_persist:{version:n,rehydrated:!1}})}else{if(d.type===Bie)return s=!0,d.result(itt(e)),Xu({},t(b,d),{_persist:h});if(d.type===Mie)return d.result(a&&a.flush()),Xu({},t(b,d),{_persist:h});if(d.type===$ie)l=!0;else if(d.type===VF){if(s)return Xu({},b,{_persist:Xu({},h,{rehydrated:!0})});if(d.key===e.key){var v=t(b,d),S=d.payload,k=r!==!1&&S!==void 0?r(S,c,v,e):v,C=Xu({},k,{_persist:Xu({},h,{rehydrated:!0})});return u(C)}}}if(!h)return t(c,d);var w=t(b,d);return w===b?c:u(Xu({},w,{_persist:h}))}}function GV(e){return ptt(e)||ftt(e)||dtt()}function dtt(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function ftt(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function ptt(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:jie,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case Uie:return pD({},t,{registry:[].concat(GV(t.registry),[n.key])});case VF:var r=t.registry.indexOf(n.key),i=GV(t.registry);return i.splice(r,1),pD({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function gtt(e,t,n){var r=n||!1,i=lP(mtt,jie,t&&t.enhancer?t.enhancer:void 0),o=function(u){i.dispatch({type:Uie,key:u})},a=function(u,c,d){var p={type:VF,payload:c,err:d,key:u};e.dispatch(p),i.dispatch(p),r&&s.getState().bootstrapped&&(r(),r=!1)},s=pD({},i,{purge:function(){var u=[];return e.dispatch({type:Bie,result:function(d){u.push(d)}}),Promise.all(u)},flush:function(){var u=[];return e.dispatch({type:Mie,result:function(d){u.push(d)}}),Promise.all(u)},pause:function(){e.dispatch({type:$ie})},persist:function(){e.dispatch({type:Fie,register:o,rehydrate:a})}});return t&&t.manualPersist||s.persist(),s}const btt=vG({auth:$Je,config:Bwe,user:jJe,editor:pxe}),ytt={key:"root",storage:Lie,whitelist:["auth","config"]},Ott=ctt(ytt,btt),zie=kwe({reducer:Ott,middleware:e=>e({serializableCheck:{ignoredActions:["persist/PERSIST","editor/setDoc","editor/setClient"],ignoredPaths:["editor.doc","editor.client"]},immutableCheck:{ignoredPaths:["editor.doc","editor.client"]}})});function SS(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?SS=function(n){return typeof n}:SS=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},SS(e)}function vtt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZV(e,t){for(var n=0;n - +