From 6b9421654f0e599a8403b942a1f10614638b78d0 Mon Sep 17 00:00:00 2001 From: devleejb <52884648+devleejb@users.noreply.github.com> Date: Tue, 23 Jan 2024 05:56:39 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20yorkie-t?= =?UTF-8?q?eam/codepair-poc@692bdfc451a89631b961382cb04fa45370091217=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{index-KvGT9m0o.js => index-SFfgCzWt.js} | 172 +++++++++--------- index.html | 2 +- 2 files changed, 87 insertions(+), 87 deletions(-) rename assets/{index-KvGT9m0o.js => index-SFfgCzWt.js} (72%) diff --git a/assets/index-KvGT9m0o.js b/assets/index-SFfgCzWt.js similarity index 72% rename from assets/index-KvGT9m0o.js rename to assets/index-SFfgCzWt.js index c5bd3906..328304bb 100644 --- a/assets/index-KvGT9m0o.js +++ b/assets/index-SFfgCzWt.js @@ -1,4 +1,4 @@ -var xoe=Object.defineProperty;var Coe=(e,t,n)=>t in e?xoe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Aoe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var qo=(e,t,n)=>(Coe(e,typeof t!="symbol"?t+"":t,n),n),iC=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var ke=(e,t,n)=>(iC(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)=>(iC(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var XO=(e,t,n,r)=>({set _(i){Bt(e,t,i,n)},get _(){return ke(e,t,r)}}),Tn=(e,t,n)=>(iC(e,t,"access private method"),n);var itt=Aoe((btt,SS)=>{function YV(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 TS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function _oe(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 GV={exports:{}},gw={},qV={exports:{}},Hn={};/** +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={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var xoe=Object.defineProperty;var Coe=(e,t,n)=>t in e?xoe(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 I1=Symbol.for("react.element"),Roe=Symbol.for("react.portal"),Ioe=Symbol.for("react.fragment"),Doe=Symbol.for("react.strict_mode"),Noe=Symbol.for("react.profiler"),Poe=Symbol.for("react.provider"),Loe=Symbol.for("react.context"),Moe=Symbol.for("react.forward_ref"),$oe=Symbol.for("react.suspense"),Foe=Symbol.for("react.memo"),Boe=Symbol.for("react.lazy"),n6=Symbol.iterator;function Uoe(e){return e===null||typeof e!="object"?null:(e=n6&&e[n6]||e["@@iterator"],typeof e=="function"?e:null)}var ZV={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},XV=Object.assign,KV={};function pg(e,t,n){this.props=e,this.context=t,this.refs=KV,this.updater=n||ZV}pg.prototype.isReactComponent={};pg.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")};pg.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function JV(){}JV.prototype=pg.prototype;function lD(e,t,n){this.props=e,this.context=t,this.refs=KV,this.updater=n||ZV}var uD=lD.prototype=new JV;uD.constructor=lD;XV(uD,pg.prototype);uD.isPureReactComponent=!0;var r6=Array.isArray,eH=Object.prototype.hasOwnProperty,cD={current:null},tH={key:!0,ref:!0,__self:!0,__source:!0};function nH(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)eH.call(t,r)&&!tH.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1t in e?xoe(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 Woe=I,Qoe=Symbol.for("react.element"),Yoe=Symbol.for("react.fragment"),Goe=Object.prototype.hasOwnProperty,qoe=Woe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Zoe={key:!0,ref:!0,__self:!0,__source:!0};function rH(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)Goe.call(t,r)&&!Zoe.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:Qoe,type:e,key:o,ref:a,props:i,_owner:qoe.current}}gw.Fragment=Yoe;gw.jsx=rH;gw.jsxs=rH;GV.exports=gw;var M=GV.exports,I2={},iH={exports:{}},ys={},oH={exports:{}},aH={};/** + */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={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var xoe=Object.defineProperty;var Coe=(e,t,n)=>t in e?xoe(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}}}})(aH);oH.exports=aH;var Xoe=oH.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,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;/** * @license React * react-dom.production.min.js * @@ -30,21 +30,21 @@ var xoe=Object.defineProperty;var Coe=(e,t,n)=>t in e?xoe(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 sH=I,ps=Xoe;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"),D2=Object.prototype.hasOwnProperty,Koe=/^[: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]*$/,o6={},a6={};function Joe(e){return D2.call(a6,e)?!0:D2.call(o6,e)?!1:Koe.test(e)?a6[e]=!0:(o6[e]=!0,!1)}function eae(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 tae(e,t,n,r){if(t===null||typeof t>"u"||eae(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 aa(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 aa(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 aa(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){yo[e]=new aa(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){yo[e]=new aa(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 aa(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){yo[e]=new aa(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){yo[e]=new aa(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){yo[e]=new aa(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){yo[e]=new aa(e,5,!1,e.toLowerCase(),null,!1,!1)});var fD=/[\-:]([a-z])/g;function pD(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(fD,pD);yo[t]=new aa(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(fD,pD);yo[t]=new aa(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(fD,pD);yo[t]=new aa(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){yo[e]=new aa(e,1,!1,e.toLowerCase(),null,!1,!1)});yo.xlinkHref=new aa("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){yo[e]=new aa(e,1,!1,e.toLowerCase(),null,!0,!0)});function hD(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"),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||!(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{sC=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Q0(e):""}function nae(e){switch(e.tag){case 5:return Q0(e.type);case 16:return Q0("Lazy");case 13:return Q0("Suspense");case 19:return Q0("SuspenseList");case 0:case 2:case 15:return e=lC(e.type,!1),e;case 11:return e=lC(e.type.render,!1),e;case 1:return e=lC(e.type,!0),e;default:return""}}function M2(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 Ih:return"Fragment";case Rh:return"Portal";case N2:return"Profiler";case mD:return"StrictMode";case P2:return"Suspense";case L2:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case cH:return(e.displayName||"Context")+".Consumer";case uH:return(e._context.displayName||"Context")+".Provider";case gD:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case bD:return t=e.displayName||null,t!==null?t:M2(e.type)||"Memo";case Zc:t=e._payload,e=e._init;try{return M2(e(t))}catch{}}return null}function rae(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 M2(t);case 8:return t===mD?"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 Fd(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fH(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function iae(e){var t=fH(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 ev(e){e._valueTracker||(e._valueTracker=iae(e))}function pH(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=fH(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function wS(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 $2(e,t){var n=t.checked;return Xr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function l6(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Fd(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 hH(e,t){t=t.checked,t!=null&&hD(e,"checked",t,!1)}function F2(e,t){hH(e,t);var n=Fd(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")?B2(e,t.type,n):t.hasOwnProperty("defaultValue")&&B2(e,t.type,Fd(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function u6(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 B2(e,t,n){(t!=="number"||wS(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Y0=Array.isArray;function Jh(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=tv.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ty(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var cb={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},oae=["Webkit","ms","Moz","O"];Object.keys(cb).forEach(function(e){oae.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),cb[t]=cb[e]})});function yH(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||cb.hasOwnProperty(e)&&cb[e]?(""+t).trim():t+"px"}function OH(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=yH(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var aae=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 z2(e,t){if(t){if(aae[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 V2(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 H2=null;function yD(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var W2=null,em=null,tm=null;function f6(e){if(e=P1(e)){if(typeof W2!="function")throw Error(St(280));var t=e.stateNode;t&&(t=Ew(t),W2(e.stateNode,e.type,t))}}function vH(e){em?tm?tm.push(e):tm=[e]:em=e}function EH(){if(em){var e=em,t=tm;if(tm=em=null,f6(e),t)for(e=0;e>>=0,e===0?32:31-(bae(e)/yae|0)|0}var nv=64,rv=4194304;function G0(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 AS(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=G0(s):(o&=a,o!==0&&(r=G0(o)))}else a=n&~i,a!==0?r=G0(a):o!==0&&(r=G0(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 D1(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 Sae(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=fb),E6=" ",S6=!1;function jH(e,t){switch(e){case"keyup":return Zae.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zH(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Dh=!1;function Kae(e,t){switch(e){case"compositionend":return zH(t);case"keypress":return t.which!==32?null:(S6=!0,E6);case"textInput":return e=t.data,e===E6&&S6?null:e;default:return null}}function Jae(e,t){if(Dh)return e==="compositionend"||!xD&&jH(e,t)?(e=BH(),kE=TD=pd=null,Dh=!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=x6(n)}}function QH(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?QH(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function YH(){for(var e=window,t=wS();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=wS(e.document)}return t}function CD(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 lse(e){var t=YH(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&QH(n.ownerDocument.documentElement,n)){if(r!==null&&CD(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=C6(n,o);var a=C6(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,Nh=null,X2=null,hb=null,K2=!1;function A6(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;K2||Nh==null||Nh!==wS(r)||(r=Nh,"selectionStart"in r&&CD(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}),hb&&sy(hb,r)||(hb=r,r=IS(X2,"onSelect"),0Mh||(e.current=i_[Mh],i_[Mh]=null,Mh--)}function kr(e,t){Mh++,i_[Mh]=e.current,e.current=t}var Bd={},Mo=ef(Bd),Ta=ef(!1),lp=Bd;function Um(e,t){var n=e.type.contextTypes;if(!n)return Bd;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 wa(e){return e=e.childContextTypes,e!=null}function NS(){Pr(Ta),Pr(Mo)}function L6(e,t,n){if(Mo.current!==Bd)throw Error(St(168));kr(Mo,t),kr(Ta,n)}function nW(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,rae(e)||"Unknown",i));return Xr({},n,r)}function PS(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Bd,lp=Mo.current,kr(Mo,e),kr(Ta,Ta.current),!0}function M6(e,t,n){var r=e.stateNode;if(!r)throw Error(St(169));n?(e=nW(e,t,lp),r.__reactInternalMemoizedMergedChildContext=e,Pr(Ta),Pr(Mo),kr(Mo,e)):Pr(Ta),kr(Ta,n)}var tc=null,Sw=!1,SC=!1;function rW(e){tc===null?tc=[e]:tc.push(e)}function vse(e){Sw=!0,rW(e)}function tf(){if(!SC&&tc!==null){SC=!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&&kf(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&&kf(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&&kf(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&&kf(y,$),C}function O(y,v,S,k){if(typeof S=="object"&&S!==null&&S.type===Ih&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case JO:e:{for(var C=S.key,w=v;w!==null;){if(w.key===C){if(C=S.type,C===Ih){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&&V6(C)===w.type){n(y,w.sibling),v=i(w,S.props),v.ref=u0(y,w,S),v.return=y,y=v;break e}n(y,w);break}else t(y,w);w=w.sibling}S.type===Ih?(v=rp(S.props.children,y.mode,k,S.key),v.return=y,y=v):(k=NE(S.type,S.key,S.props,null,y.mode,k),k.ref=u0(y,v,S),k.return=y,y=k)}return a(y);case Rh: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=RC(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(Y0(S))return m(y,v,S,k);if(i0(S))return b(y,v,S,k);cv(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=_C(S,y.mode,k),v.return=y,y=v),a(y)):n(y,v)}return O}var zm=dW(!0),fW=dW(!1),L1={},Tu=ef(L1),dy=ef(L1),fy=ef(L1);function Mf(e){if(e===L1)throw Error(St(174));return e}function MD(e,t){switch(kr(fy,t),kr(dy,e),kr(Tu,L1),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:j2(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=j2(t,e)}Pr(Tu),kr(Tu,t)}function Vm(){Pr(Tu),Pr(dy),Pr(fy)}function pW(e){Mf(fy.current);var t=Mf(Tu.current),n=j2(t,e.type);t!==n&&(kr(dy,e),kr(Tu,n))}function $D(e){dy.current===e&&(Pr(Tu),Pr(dy))}var qr=ef(0);function US(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 TC=[];function FD(){for(var e=0;en?n:4,e(!0);var r=wC.transition;wC.transition={};try{e(!1),t()}finally{dr=n,wC.transition=r}}function _W(){return Ks().memoizedState}function wse(e,t,n){var r=Ad(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},RW(e))IW(t,n);else if(n=sW(e,t,n,r),n!==null){var i=na();Al(n,e,r,i),DW(n,t,r)}}function kse(e,t,n){var r=Ad(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(RW(e))IW(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,PD(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=sW(e,t,i,r),n!==null&&(i=na(),Al(n,e,r,i),DW(n,t,r))}}function RW(e){var t=e.alternate;return e===Zr||t!==null&&t===Zr}function IW(e,t){mb=jS=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function DW(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,vD(e,n)}}var zS={readContext:Xs,useCallback:ko,useContext:ko,useEffect:ko,useImperativeHandle:ko,useInsertionEffect:ko,useLayoutEffect:ko,useMemo:ko,useReducer:ko,useRef:ko,useState:ko,useDebugValue:ko,useDeferredValue:ko,useTransition:ko,useMutableSource:ko,useSyncExternalStore:ko,useId:ko,unstable_isNewReconciler:!1},xse={readContext:Xs,useCallback:function(e,t){return nu().memoizedState=[e,t===void 0?null:t],e},useContext:Xs,useEffect:W6,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,_E(4194308,4,wW.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _E(4194308,4,e,t)},useInsertionEffect:function(e,t){return _E(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=wse.bind(null,Zr,e),[r.memoizedState,e]},useRef:function(e){var t=nu();return e={current:e},t.memoizedState=e},useState:H6,useDebugValue:VD,useDeferredValue:function(e){return nu().memoizedState=e},useTransition:function(){var e=H6(!1),t=e[0];return e=Tse.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));cp&30||gW(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,W6(yW.bind(null,r,o,e),[e]),r.flags|=2048,my(9,bW.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=py++,0")&&(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<\/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[cy]=r,jW(e,t,!1,!1),t.stateNode=e;e:{switch(a=V2(n,r),n){case"dialog":_r("cancel",e),_r("close",e),i=r;break;case"iframe":case"object":case"embed":_r("load",e),i=r;break;case"video":case"audio":for(i=0;iWm&&(t.flags|=128,r=!0,c0(o,!1),t.lanes=4194304)}else{if(!r)if(e=US(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),c0(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Wr)return xo(t),null}else 2*gi()-o.renderingStartTime>Wm&&n!==1073741824&&(t.flags|=128,r=!0,c0(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=gi(),t.sibling=null,n=qr.current,kr(qr,r?n&1|2:n&1),t):(xo(t),null);case 22:case 23:return qD(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Za&1073741824&&(xo(t),t.subtreeFlags&6&&(t.flags|=8192)):xo(t),null;case 24:return null;case 25:return null}throw Error(St(156,t.tag))}function Pse(e,t){switch(_D(t),t.tag){case 1:return wa(t.type)&&NS(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vm(),Pr(Ta),Pr(Mo),FD(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return $D(t),null;case 13:if(Pr(qr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(St(340));jm()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Pr(qr),null;case 4:return Vm(),null;case 10:return ND(t.type._context),null;case 22:case 23:return qD(),null;case 24:return null;default:return null}}var fv=!1,Ro=!1,Lse=typeof WeakSet=="function"?WeakSet:Set,Gt=null;function Uh(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 g_(e,t,n){try{n()}catch(r){ai(e,t,r)}}var eB=!1;function Mse(e,t){if(J2=_S,e=YH(),CD(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(e_={focusedElem:e,selectionRange:n},_S=!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=eB,eB=!1,m}function gb(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&&g_(t,n,o)}i=i.next}while(i!==r)}}function kw(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 b_(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 HW(e){var t=e.alternate;t!==null&&(e.alternate=null,HW(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[du],delete t[cy],delete t[r_],delete t[yse],delete t[Ose])),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 WW(e){return e.tag===5||e.tag===3||e.tag===4}function tB(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||WW(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 y_(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=DS));else if(r!==4&&(e=e.child,e!==null))for(y_(e,t,n),e=e.sibling;e!==null;)y_(e,t,n),e=e.sibling}function O_(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(O_(e,t,n),e=e.sibling;e!==null;)O_(e,t,n),e=e.sibling}var lo=null,pl=!1;function Uc(e,t,n){for(n=n.child;n!==null;)QW(e,t,n),n=n.sibling}function QW(e,t,n){if(Su&&typeof Su.onCommitFiberUnmount=="function")try{Su.onCommitFiberUnmount(bw,n)}catch{}switch(n.tag){case 5:Ro||Uh(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?EC(e.parentNode,n):e.nodeType===1&&EC(e,n),oy(e)):EC(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(!Ro&&(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)&&g_(n,t,a),i=i.next}while(i!==r)}Uc(e,t,n);break;case 1:if(!Ro&&(Uh(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?(Ro=(r=Ro)||n.memoizedState!==null,Uc(e,t,n),Ro=r):Uc(e,t,n);break;default:Uc(e,t,n)}}function nB(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Lse),t.forEach(function(r){var i=Wse.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=gi()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Fse(r/1960))-r,10e?16:e,hd===null)var r=!1;else{if(e=hd,hd=null,WS=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;lgi()-YD?np(e,0):QD|=n),ka(e,t)}function eQ(e,t){t===0&&(e.mode&1?(t=rv,rv<<=1,!(rv&130023424)&&(rv=4194304)):t=1);var n=na();e=yc(e,t),e!==null&&(D1(e,t,n),ka(e,n))}function Hse(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),eQ(e,n)}function Wse(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),eQ(e,n)}var tQ;tQ=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ta.current)Ea=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ea=!1,Dse(e,t,n);Ea=!!(e.flags&131072)}else Ea=!1,Wr&&t.flags&1048576&&iW(t,MS,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;RE(e,t),e=t.pendingProps;var i=Um(t,Mo.current);rm(t,n),i=UD(null,t,r,e,i,n);var o=jD();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,wa(r)?(o=!0,PS(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,LD(t),i.updater=Tw,t.stateNode=i,i._reactInternals=t,u_(t,r,e,n),t=f_(null,t,r,!0,o,n)):(t.tag=0,Wr&&o&&AD(t),Ko(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(RE(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Yse(r),e=dl(r,e),i){case 0:t=d_(null,t,r,e,n);break e;case 1:t=X6(null,t,r,e,n);break e;case 11:t=q6(null,t,r,e,n);break e;case 14:t=Z6(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),d_(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dl(r,i),X6(e,t,r,i,n);case 3:e:{if(FW(t),e===null)throw Error(St(387));r=t.pendingProps,o=t.memoizedState,i=o.element,lW(e,t),BS(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=Hm(Error(St(423)),t),t=K6(e,t,r,n,i);break e}else if(r!==i){i=Hm(Error(St(424)),t),t=K6(e,t,r,n,i);break e}else for(as=kd(t.stateNode.containerInfo.firstChild),cs=t,Wr=!0,gl=null,n=fW(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(jm(),r===i){t=Oc(e,t,n);break e}Ko(e,t,r,n)}t=t.child}return t;case 5:return pW(t),e===null&&a_(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,t_(r,i)?a=null:o!==null&&t_(r,o)&&(t.flags|=32),$W(e,t),Ko(e,t,a,n),t.child;case 6:return e===null&&a_(t),null;case 13:return BW(e,t,n);case 4:return MD(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=zm(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),q6(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,kr($S,r._currentValue),r._currentValue=a,o!==null)if(Il(o.value,a)){if(o.children===i.children&&!Ta.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),s_(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),s_(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,rm(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),Z6(e,t,r,i,n);case 15:return LW(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dl(r,i),RE(e,t),t.tag=1,wa(r)?(e=!0,PS(t)):e=!1,rm(t,n),cW(t,r,i),u_(t,r,i,n),f_(null,t,r,!0,e,n);case 19:return UW(e,t,n);case 22:return MW(e,t,n)}throw Error(St(156,t.tag))};function nQ(e,t){return AH(e,t)}function Qse(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 Qse(e,t,n,r)}function XD(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Yse(e){if(typeof e=="function")return XD(e)?1:0;if(e!=null){if(e=e.$$typeof,e===gD)return 11;if(e===bD)return 14}return 2}function _d(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 NE(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")XD(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Ih:return rp(n.children,i,o,t);case mD:a=8,i|=8;break;case N2:return e=Us(12,n,t,i|2),e.elementType=N2,e.lanes=o,e;case P2:return e=Us(13,n,t,i),e.elementType=P2,e.lanes=o,e;case L2:return e=Us(19,n,t,i),e.elementType=L2,e.lanes=o,e;case dH:return Cw(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case uH:a=10;break e;case cH:a=9;break e;case gD:a=11;break e;case bD: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 rp(e,t,n,r){return e=Us(7,e,r,t),e.lanes=n,e}function Cw(e,t,n,r){return e=Us(22,e,r,t),e.elementType=dH,e.lanes=n,e.stateNode={isHidden:!1},e}function _C(e,t,n){return e=Us(6,e,null,t),e.lanes=n,e}function RC(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 Gse(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=cC(0),this.expirationTimes=cC(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=cC(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function KD(e,t,n,r,i,o,a,s,l){return e=new Gse(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},LD(o),e}function qse(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(aQ)}catch(e){console.error(e)}}aQ(),iH.exports=ys;var gg=iH.exports;const Z0=Kd(gg),ele=YV({__proto__:null,default:Z0},[gg]);var cB=gg;I2.createRoot=cB.createRoot,I2.hydrateRoot=cB.hydrateRoot;const tle={black:"#000",white:"#fff"},by=tle,nle={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"},rh=nle,rle={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"},ih=rle,ile={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"},oh=ile,ole={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"},ah=ole,ale={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"},sh=ale,sle={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"},f0=sle,lle={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"},ule=lle;function Ud(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n=0)&&(n[i]=e[i]);return n}function sQ(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var cle=/^((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)-.*))$/,dle=sQ(function(e){return cle.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function fle(e){if(e.sheet)return e.sheet;for(var t=0;t0?co(bg,--_a):0,Qm--,Ei===10&&(Qm=1,Nw--),Ei}function ds(){return Ei=_a2||Oy(Ei)>3?"":" "}function kle(e,t){for(;--t&&ds()&&!(Ei<48||Ei>102||Ei>57&&Ei<65||Ei>70&&Ei<97););return M1(e,PE()+(t<6&&wu()==32&&ds()==32))}function k_(e){for(;ds();)switch(Ei){case e:return _a;case 34:case 39:e!==34&&e!==39&&k_(Ei);break;case 40:e===41&&k_(e);break;case 92:ds();break}return _a}function xle(e,t){for(;ds()&&e+Ei!==57;)if(e+Ei===84&&wu()===47)break;return"/*"+M1(t,_a-1)+"*"+Dw(e===47?e:ds())}function Cle(e){for(;!Oy(wu());)ds();return M1(e,_a)}function Ale(e){return pQ(ME("",null,null,null,[""],e=fQ(e),0,[0],e))}function ME(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){w_(E+=lr(LE(v),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:E+=LE(v);break;case 9:case 10:case 13:case 32:E+=wle(m);break;case 92:E+=kle(PE()-1,7);continue;case 47:switch(wu()){case 42:case 47:mv(_le(xle(ds(),PE()),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=lr(E,/\f/g,"")),h>0&&uu(E)-d&&mv(h>32?fB(E+";",r,n,d-1):fB(lr(E," ","")+";",r,n,d-2),l);break;case 59:E+=";";default:if(mv(w=dB(E,t,n,u,c,i,s,S,k=[],C=[],d),o),v===123)if(c===0)ME(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:ME(e,w,w,r&&mv(dB(e,w,w,0,0,i,s,S,i,k=[],d),C),i,C,d,s,r?k:C);break;default:ME(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&&Tle()==125)continue}switch(E+=Dw(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+=LE(ds())),p=wu(),c=d=uu(S=E+=Cle(PE())),v++;break;case 45:m===45&&uu(E)==2&&(b=0)}}return o}function dB(e,t,n,r,i,o,a,s,l,u,c){for(var d=i-1,p=i===0?o:[""],h=iN(p),m=0,b=0,O=0;m0?p[y]+" "+v:lr(v,/&\f/g,p[y])))&&(l[O++]=S);return Pw(e,t,n,i===0?nN:s,l,u,c)}function _le(e,t,n){return Pw(e,t,n,lQ,Dw(Sle()),yy(e,2,-2),0)}function fB(e,t,n,r){return Pw(e,t,n,rN,yy(e,0,r),yy(e,r+1,-1),r)}function om(e,t){for(var n="",r=iN(e),i=0;i6)switch(co(e,t+1)){case 109:if(co(e,t+4)!==45)break;case 102:return lr(e,/(.+:)(.+)-([^]+)/,"$1"+sr+"$2-$3$1"+GS+(co(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~w_(e,"stretch")?hQ(lr(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-(~w_(e,"!important")&&10))){case 107:return lr(e,":",":"+sr)+e;case 101:return lr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+sr+(co(e,14)===45?"inline-":"")+"box$3$1"+sr+"$2$3$1"+Ao+"$2box$3")+e}break;case 5936:switch(co(e,t+11)){case 114:return sr+e+Ao+lr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return sr+e+Ao+lr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return sr+e+Ao+lr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return sr+e+Ao+e+e}return e}var Fle=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case rN:t.return=hQ(t.value,t.length);break;case uQ:return om([p0(t,{value:lr(t.value,"@","@"+sr)})],i);case nN:if(t.length)return Ele(t.props,function(o){switch(vle(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return om([p0(t,{props:[lr(o,/:(read-\w+)/,":"+GS+"$1")]})],i);case"::placeholder":return om([p0(t,{props:[lr(o,/:(plac\w+)/,":"+sr+"input-$1")]}),p0(t,{props:[lr(o,/:(plac\w+)/,":"+GS+"$1")]}),p0(t,{props:[lr(o,/:(plac\w+)/,Ao+"input-$1")]})],i)}return""})}},Ble=[Fle],Ule=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||Ble,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[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=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 Kle={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},Jle=/[A-Z]|^ms/g,eue=/_EMO_([^_]+?)_([^]*?)_EMO_/g,EQ=function(t){return t.charCodeAt(1)===45},hB=function(t){return t!=null&&typeof t!="boolean"},IC=sQ(function(e){return EQ(e)?e:e.replace(Jle,"-$&").toLowerCase()}),mB=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(eue,function(r,i,o){return cu={name:i,styles:o,next:cu},i})}return Kle[t]!==1&&!EQ(t)&&typeof n=="number"&&n!==0?n+"px":n};function vy(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 tue(e,t,n)}case"function":{if(e!==void 0){var o=cu,a=n(e);return cu=o,vy(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function tue(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?oue:aue},OB=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},sue=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return OQ(n,r,i),rue(function(){return vQ(n,r,i)}),null},lue=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=OB(t,n,r),l=s||yB(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(mue(i)?n:i):t;return M.jsx(iue,{styles:r})}function AQ(e,t){return x_(e,t)}const bue=(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 _Q(e){if(!oc(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=_Q(e[n])}),t}function No(e,t,n={clone:!0}){const r=n.clone?P({},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]=No(e[i],t[i],n):n.clone?r[i]=oc(t[i])?_Q(t[i]):t[i]:r[i]=t[i])}),r}var pr={};/** + */var Ki=typeof Symbol=="function"&&Symbol.for,uN=Ki?Symbol.for("react.element"):60103,cN=Ki?Symbol.for("react.portal"):60106,Mw=Ki?Symbol.for("react.fragment"):60107,$w=Ki?Symbol.for("react.strict_mode"):60108,Fw=Ki?Symbol.for("react.profiler"):60114,Bw=Ki?Symbol.for("react.provider"):60109,Uw=Ki?Symbol.for("react.context"):60110,dN=Ki?Symbol.for("react.async_mode"):60111,jw=Ki?Symbol.for("react.concurrent_mode"):60111,zw=Ki?Symbol.for("react.forward_ref"):60112,Vw=Ki?Symbol.for("react.suspense"):60113,Gle=Ki?Symbol.for("react.suspense_list"):60120,Hw=Ki?Symbol.for("react.memo"):60115,Ww=Ki?Symbol.for("react.lazy"):60116,qle=Ki?Symbol.for("react.block"):60121,Zle=Ki?Symbol.for("react.fundamental"):60117,Xle=Ki?Symbol.for("react.responder"):60118,Kle=Ki?Symbol.for("react.scope"):60119;function vs(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case uN:switch(e=e.type,e){case dN:case jw:case Mw:case Fw:case $w:case Vw:return e;default:switch(e=e&&e.$$typeof,e){case Uw:case zw:case Ww:case Hw:case Bw:return e;default:return t}}case cN:return t}}}function vQ(e){return vs(e)===jw}fr.AsyncMode=dN;fr.ConcurrentMode=jw;fr.ContextConsumer=Uw;fr.ContextProvider=Bw;fr.Element=uN;fr.ForwardRef=zw;fr.Fragment=Mw;fr.Lazy=Ww;fr.Memo=Hw;fr.Portal=cN;fr.Profiler=Fw;fr.StrictMode=$w;fr.Suspense=Vw;fr.isAsyncMode=function(e){return vQ(e)||vs(e)===dN};fr.isConcurrentMode=vQ;fr.isContextConsumer=function(e){return vs(e)===Uw};fr.isContextProvider=function(e){return vs(e)===Bw};fr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===uN};fr.isForwardRef=function(e){return vs(e)===zw};fr.isFragment=function(e){return vs(e)===Mw};fr.isLazy=function(e){return vs(e)===Ww};fr.isMemo=function(e){return vs(e)===Hw};fr.isPortal=function(e){return vs(e)===cN};fr.isProfiler=function(e){return vs(e)===Fw};fr.isStrictMode=function(e){return vs(e)===$w};fr.isSuspense=function(e){return vs(e)===Vw};fr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Mw||e===jw||e===Fw||e===$w||e===Vw||e===Gle||typeof e=="object"&&e!==null&&(e.$$typeof===Ww||e.$$typeof===Hw||e.$$typeof===Bw||e.$$typeof===Uw||e.$$typeof===zw||e.$$typeof===Zle||e.$$typeof===Xle||e.$$typeof===Kle||e.$$typeof===qle)};fr.typeOf=vs;OQ.exports=fr;var Jle=OQ.exports,EQ=Jle,eue={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},tue={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},SQ={};SQ[EQ.ForwardRef]=eue;SQ[EQ.Memo]=tue;var nue=!0;function rue(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var TQ=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||nue===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},wQ=function(t,n,r){TQ(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 iue(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 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={};/** * @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 cN=Symbol.for("react.element"),dN=Symbol.for("react.portal"),Qw=Symbol.for("react.fragment"),Yw=Symbol.for("react.strict_mode"),Gw=Symbol.for("react.profiler"),qw=Symbol.for("react.provider"),Zw=Symbol.for("react.context"),yue=Symbol.for("react.server_context"),Xw=Symbol.for("react.forward_ref"),Kw=Symbol.for("react.suspense"),Jw=Symbol.for("react.suspense_list"),ek=Symbol.for("react.memo"),tk=Symbol.for("react.lazy"),Oue=Symbol.for("react.offscreen"),RQ;RQ=Symbol.for("react.module.reference");function nl(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case cN:switch(e=e.type,e){case Qw:case Gw:case Yw:case Kw:case Jw:return e;default:switch(e=e&&e.$$typeof,e){case yue:case Zw:case Xw:case tk:case ek:case qw:return e;default:return t}}case dN:return t}}}pr.ContextConsumer=Zw;pr.ContextProvider=qw;pr.Element=cN;pr.ForwardRef=Xw;pr.Fragment=Qw;pr.Lazy=tk;pr.Memo=ek;pr.Portal=dN;pr.Profiler=Gw;pr.StrictMode=Yw;pr.Suspense=Kw;pr.SuspenseList=Jw;pr.isAsyncMode=function(){return!1};pr.isConcurrentMode=function(){return!1};pr.isContextConsumer=function(e){return nl(e)===Zw};pr.isContextProvider=function(e){return nl(e)===qw};pr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===cN};pr.isForwardRef=function(e){return nl(e)===Xw};pr.isFragment=function(e){return nl(e)===Qw};pr.isLazy=function(e){return nl(e)===tk};pr.isMemo=function(e){return nl(e)===ek};pr.isPortal=function(e){return nl(e)===dN};pr.isProfiler=function(e){return nl(e)===Gw};pr.isStrictMode=function(e){return nl(e)===Yw};pr.isSuspense=function(e){return nl(e)===Kw};pr.isSuspenseList=function(e){return nl(e)===Jw};pr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Qw||e===Gw||e===Yw||e===Kw||e===Jw||e===Oue||typeof e=="object"&&e!==null&&(e.$$typeof===tk||e.$$typeof===ek||e.$$typeof===qw||e.$$typeof===Zw||e.$$typeof===Xw||e.$$typeof===RQ||e.getModuleId!==void 0)};pr.typeOf=nl;const vue=Q.oneOfType([Q.func,Q.object]),yg=vue;function nt(e){if(typeof e!="string")throw new Error(Ud(7));return e.charAt(0).toUpperCase()+e.slice(1)}function qS(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function Og(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 Eue(e,t){return()=>null}function Ob(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 br(e){return e&&e.ownerDocument||document}function Js(e){return br(e).defaultView||window}function Sue(e,t){return()=>null}function Ey(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Kr=typeof window<"u"?I.useLayoutEffect:I.useEffect;let vB=0;function Tue(e){const[t,n]=I.useState(e),r=e||t;return I.useEffect(()=>{t==null&&(vB+=1,n(`mui-${vB}`))},[t]),r}const EB=Fm.useId;function $l(e){if(EB!==void 0){const t=EB();return e??t}return Tue(e)}function wue(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=>{Ey(n,t)})},e)}let nk=!0,C_=!1,SB;const kue={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 xue(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&kue[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Cue(e){e.metaKey||e.altKey||e.ctrlKey||(nk=!0)}function DC(){nk=!1}function Aue(){this.visibilityState==="hidden"&&C_&&(nk=!0)}function _ue(e){e.addEventListener("keydown",Cue,!0),e.addEventListener("mousedown",DC,!0),e.addEventListener("pointerdown",DC,!0),e.addEventListener("touchstart",DC,!0),e.addEventListener("visibilitychange",Aue,!0)}function Rue(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return nk||xue(t)}function rk(){const e=I.useCallback(i=>{i!=null&&_ue(i.ownerDocument)},[]),t=I.useRef(!1);function n(){return t.current?(C_=!0,window.clearTimeout(SB),SB=window.setTimeout(()=>{C_=!1},100),t.current=!1,!0):!1}function r(i){return Rue(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function IQ(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let lh;function DQ(){if(lh)return lh;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),lh="reverse",e.scrollLeft>0?lh="default":(e.scrollLeft=1,e.scrollLeft===0&&(lh="negative")),document.body.removeChild(e),lh}function Iue(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(DQ()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const Due=e=>{const t=I.useRef({});return I.useEffect(()=>{t.current=e}),t.current};function Nue(e){return I.Children.toArray(e).filter(t=>I.isValidElement(t))}const Pue={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Lue=Pue;function ik(e,t){const n=P({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=P({},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]=P({},o),Object.keys(i).forEach(a=>{n[r][a]=ik(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 TB=e=>e,Mue=()=>{let e=TB;return{configure(t){e=t},generate(t){return e(t)},reset(){e=TB}}},fN=Mue(),NQ={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=NQ[t];return r?`${n}-${r}`:`${fN.generate(e)}-${t}`}function _t(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=At(e,i,n)}),r}function bh(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const $ue=["values","unit","step"],Fue=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)=>P({},n,{[r.key]:r.val}),{})};function Bue(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=Ge(e,$ue),o=Fue(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:${pN[e]}px)`};function Ra(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||wB;return t.reduce((a,s,l)=>(a[o.up(o.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const o=r.breakpoints||wB;return Object.keys(t).reduce((a,s)=>{if(Object.keys(o.values||pN).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 PQ(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function LQ(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function zue(e,...t){const n=PQ(e),r=[n,...t].reduce((i,o)=>No(i,o),{});return LQ(Object.keys(n),r)}function Vue(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 ip({values:e,breakpoints:t,base:n}){const r=n||Vue(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 ok(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 ZS(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=ok(e,n)||r,t&&(i=t(i,r,e)),i}function yi(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=ok(l,r)||{};return Ra(a,s,d=>{let p=ZS(u,i,d);return d===p&&typeof d=="string"&&(p=ZS(u,i,`${t}${d==="default"?"":nt(d)}`,d)),n===!1?p:{[n]:p}})};return o.propTypes={},o.filterProps=[t],o}function Hue(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Wue={m:"margin",p:"padding"},Que={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},kB={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Yue=Hue(e=>{if(e.length>2)if(kB[e])e=kB[e];else return[e];const[t,n]=e.split(""),r=Wue[t],i=Que[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),hN=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],mN=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...hN,...mN];function F1(e,t,n,r){var i;const o=(i=ok(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 gN(e){return F1(e,"spacing",8)}function hp(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 Gue(e,t){return n=>e.reduce((r,i)=>(r[i]=hp(t,n),r),{})}function que(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=Yue(n),o=Gue(i,r),a=e[n];return Ra(e,a,o)}function MQ(e,t){const n=gN(e.theme);return Object.keys(e).map(r=>que(e,t,r,n)).reduce(vb,{})}function ri(e){return MQ(e,hN)}ri.propTypes={};ri.filterProps=hN;function ii(e){return MQ(e,mN)}ii.propTypes={};ii.filterProps=mN;function Zue(e=8){if(e.mui)return e;const t=gN({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 ak(...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]?vb(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 yi({prop:e,themeKey:"borders",transform:t})}const Xue=rl("border",Ms),Kue=rl("borderTop",Ms),Jue=rl("borderRight",Ms),ece=rl("borderBottom",Ms),tce=rl("borderLeft",Ms),nce=rl("borderColor"),rce=rl("borderTopColor"),ice=rl("borderRightColor"),oce=rl("borderBottomColor"),ace=rl("borderLeftColor"),sce=rl("outline",Ms),lce=rl("outlineColor"),sk=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=F1(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:hp(t,r)});return Ra(e,e.borderRadius,n)}return null};sk.propTypes={};sk.filterProps=["borderRadius"];ak(Xue,Kue,Jue,ece,tce,nce,rce,ice,oce,ace,sk,sce,lce);const lk=e=>{if(e.gap!==void 0&&e.gap!==null){const t=F1(e.theme,"spacing",8),n=r=>({gap:hp(t,r)});return Ra(e,e.gap,n)}return null};lk.propTypes={};lk.filterProps=["gap"];const uk=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=F1(e.theme,"spacing",8),n=r=>({columnGap:hp(t,r)});return Ra(e,e.columnGap,n)}return null};uk.propTypes={};uk.filterProps=["columnGap"];const ck=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=F1(e.theme,"spacing",8),n=r=>({rowGap:hp(t,r)});return Ra(e,e.rowGap,n)}return null};ck.propTypes={};ck.filterProps=["rowGap"];const uce=yi({prop:"gridColumn"}),cce=yi({prop:"gridRow"}),dce=yi({prop:"gridAutoFlow"}),fce=yi({prop:"gridAutoColumns"}),pce=yi({prop:"gridAutoRows"}),hce=yi({prop:"gridTemplateColumns"}),mce=yi({prop:"gridTemplateRows"}),gce=yi({prop:"gridTemplateAreas"}),bce=yi({prop:"gridArea"});ak(lk,uk,ck,uce,cce,dce,fce,pce,hce,mce,gce,bce);function am(e,t){return t==="grey"?t:e}const yce=yi({prop:"color",themeKey:"palette",transform:am}),Oce=yi({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:am}),vce=yi({prop:"backgroundColor",themeKey:"palette",transform:am});ak(yce,Oce,vce);function rs(e){return e<=1&&e!==0?`${e*100}%`:e}const Ece=yi({prop:"width",transform:rs}),bN=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])||pN[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 Ra(e,e.maxWidth,t)}return null};bN.filterProps=["maxWidth"];const Sce=yi({prop:"minWidth",transform:rs}),Tce=yi({prop:"height",transform:rs}),wce=yi({prop:"maxHeight",transform:rs}),kce=yi({prop:"minHeight",transform:rs});yi({prop:"size",cssProperty:"width",transform:rs});yi({prop:"size",cssProperty:"height",transform:rs});const xce=yi({prop:"boxSizing"});ak(Ece,bN,Sce,Tce,wce,kce,xce);const Cce={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:sk},color:{themeKey:"palette",transform:am},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:am},backgroundColor:{themeKey:"palette",transform:am},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:lk},rowGap:{style:ck},columnGap:{style:uk},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:bN},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"}},dk=Cce;function Ace(...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 _ce(e,t){return typeof e=="function"?e(t):e}function Rce(){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=ok(i,u)||{};return d?d(a):Ra(a,r,m=>{let b=ZS(p,c,m);return m===b&&typeof m=="string"&&(b=ZS(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:dk;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=PQ(o.breakpoints),d=Object.keys(c);let p=c;return Object.keys(u).forEach(h=>{const m=_ce(u[h],o);if(m!=null)if(typeof m=="object")if(a[h])p=vb(p,e(h,m,o,a));else{const b=Ra({theme:o},m,O=>({[h]:O}));Ace(b,m)?p[h]=t({sx:m,theme:o}):p=vb(p,b)}else p=vb(p,e(h,m,o,a))}),LQ(d,p)}return Array.isArray(i)?i.map(s):s(i)}return t}const B1=Rce();B1.filterProps=["sx"];const Ice=["breakpoints","palette","spacing","shape"];function U1(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=Ge(e,Ice),s=Bue(n),l=Zue(i);let u=No({breakpoints:s,direction:"ltr",components:{},palette:P({mode:"light"},r),spacing:l,shape:P({},jue,o)},a);return u=t.reduce((c,d)=>No(c,d),u),u.unstable_sxConfig=P({},dk,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return B1({sx:d,theme:this})},u}function Dce(e){return Object.keys(e).length===0}function fk(e=null){const t=I.useContext(Ww);return!t||Dce(t)?e:t}const Nce=U1();function vg(e=Nce){return fk(e)}function Pce({styles:e,themeId:t,defaultTheme:n={}}){const r=vg(n),i=typeof e=="function"?e(t&&r[t]||r):e;return M.jsx(gue,{styles:i})}const Lce=["sx"],Mce=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:dk;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function pk(e){const{sx:t}=e,n=Ge(e,Lce),{systemProps:r,otherProps:i}=Mce(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...a)=>{const s=t(...a);return oc(s)?P({},r,s):r}:o=P({},r,t),P({},i,{sx:o})}function $Q(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"})(B1);return I.forwardRef(function(l,u){const c=vg(n),d=pk(l),{className:p,component:h="div"}=d,m=Ge(d,$ce);return M.jsx(o,P({as:h,ref:u,className:Je(p,i?i(r):r),theme:t&&c[t]||c},m))})}const Bce=["variant"];function xB(e){return e.length===0}function FQ(e){const{variant:t}=e,n=Ge(e,Bce);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=xB(r)?e[i]:nt(e[i]):r+=`${xB(r)?i:nt(i)}${nt(e[i].toString())}`}),r}const Uce=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function jce(e){return Object.keys(e).length===0}function zce(e){return typeof e=="string"&&e.charCodeAt(0)>96}const Vce=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,XS=e=>{let t=0;const n={};return e&&e.forEach(r=>{let i="";typeof r.props=="function"?(i=`callback${t}`,t+=1):i=FQ(r.props),n[i]=r.style}),n},Hce=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),XS(n)},KS=(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=P({},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[FQ(a.props)])),typeof a.props=="function"&&(o+=1)}),i},Wce=(e,t,n,r)=>{var i;const o=n==null||(i=n.components)==null||(i=i[r])==null?void 0:i.variants;return KS(e,t,o)};function Eb(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Qce=U1(),Yce=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function $E({defaultTheme:e,theme:t,themeId:n}){return jce(t)?e:t[n]||t}function Gce(e){return e?(t,n)=>n[e]:null}const CB=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const i=e(P({},t,{theme:$E(P({},t,{defaultTheme:n,themeId:r}))}));let o;if(i&&i.variants&&(o=i.variants,delete i.variants),o){const a=KS(t,XS(o),o);return[i,...a]}return i};function BQ(e={}){const{themeId:t,defaultTheme:n=Qce,rootShouldForwardProp:r=Eb,slotShouldForwardProp:i=Eb}=e,o=a=>B1(P({},a,{theme:$E(P({},a,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(a,s={})=>{bue(a,k=>k.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:p=Gce(Yce(u))}=s,h=Ge(s,Uce),m=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,b=d||!1;let O,y=Eb;u==="Root"||u==="root"?y=r:u?y=i:zce(a)&&(y=void 0);const v=AQ(a,P({shouldForwardProp:y,label:O},h)),S=(k,...C)=>{const w=C?C.map(R=>{if(typeof R=="function"&&R.__emotion_real!==R)return B=>CB({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 KS(V,XS(U),U).forEach(X=>{z=No(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 KS(B,XS(R),R).forEach(z=>{U=No(U,z)}),U})}else typeof k=="function"&&k.__emotion_real!==k&&(E=R=>CB({styledArg:k,props:R,defaultTheme:n,themeId:t}));l&&p&&w.push(R=>{const B=$E(P({},R,{defaultTheme:n,themeId:t})),U=Vce(l,B);if(U){const V={};return Object.entries(U).forEach(([z,W])=>{V[z]=typeof W=="function"?W(P({},R,{theme:B})):W}),p(R,V)}return null}),l&&!m&&w.push(R=>{const B=$E(P({},R,{defaultTheme:n,themeId:t}));return Wce(R,Hce(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 UQ=BQ();function jQ(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:ik(t.components[n].defaultProps,r)}function yN({props:e,name:t,defaultTheme:n,themeId:r}){let i=vg(n);return r&&(i=i[r]||i),jQ({theme:i,name:t,props:e})}function ON(e,t=0,n=1){return bh(e,t,n)}function qce(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 mp(e){if(e.type)return e;if(e.charAt(0)==="#")return mp(qce(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Ud(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(Ud(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function hk(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 Zce(e){e=mp(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])),hk({type:s,values:l})}function A_(e){e=mp(e);let t=e.type==="hsl"||e.type==="hsla"?mp(Zce(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 Xce(e,t){const n=A_(e),r=A_(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function cn(e,t){return e=mp(e),t=ON(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,hk(e)}function mk(e,t){if(e=mp(e),t=ON(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 hk(e)}function gk(e,t){if(e=mp(e),t=ON(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 hk(e)}function Kce(e,t=.15){return A_(e)>.5?mk(e,t):gk(e,t)}const Jce=I.createContext(null),zQ=Jce;function VQ(){return I.useContext(zQ)}const ede=typeof Symbol=="function"&&Symbol.for,tde=ede?Symbol.for("mui.nested"):"__THEME_NESTED__";function nde(e,t){return typeof t=="function"?t(e):P({},e,t)}function rde(e){const{children:t,theme:n}=e,r=VQ(),i=I.useMemo(()=>{const o=r===null?n:nde(r,n);return o!=null&&(o[tde]=r!==null),o},[n,r]);return M.jsx(zQ.Provider,{value:i,children:t})}const AB={};function _B(e,t,n,r=!1){return I.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const o=n(i),a=e?P({},t,{[e]:o}):o;return r?()=>a:a}return e?P({},t,{[e]:n}):P({},t,n)},[e,t,n,r])}function ide(e){const{children:t,theme:n,themeId:r}=e,i=fk(AB),o=VQ()||AB,a=_B(r,i,n),s=_B(r,o,n,!0);return M.jsx(rde,{theme:s,children:M.jsx(Ww.Provider,{value:a,children:t})})}const ode=["className","component","disableGutters","fixed","maxWidth","classes"],ade=U1(),sde=UQ("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]}}),lde=e=>yN({props:e,name:"MuiContainer",defaultTheme:ade}),ude=(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 cde(e={}){const{createStyledComponent:t=sde,useThemeProps:n=lde,componentName:r="MuiContainer"}=e,i=t(({theme:a,ownerState:s})=>P({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})=>P({},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,ode),O=P({},u,{component:d,disableGutters:p,fixed:h,maxWidth:m}),y=ude(O,r);return M.jsx(i,P({as:d,ownerState:O,className:Je(y.root,c),ref:l},b))})}const dde=["component","direction","spacing","divider","children","className","useFlexGap"],fde=U1(),pde=UQ("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function hde(e){return yN({props:e,name:"MuiStack",defaultTheme:fde})}function mde(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],bde=({ownerState:e,theme:t})=>{let n=P({display:"flex",flexDirection:"column"},Ra({theme:t},ip({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=gN(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=ip({values:e.direction,base:i}),a=ip({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=No(n,Ra({theme:t},a,(l,u)=>e.useFlexGap?{gap:hp(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${gde(u?o[u]:e.direction)}`]:hp(r,l)}}))}return n=zue(t.breakpoints,n),n};function yde(e={}){const{createStyledComponent:t=pde,useThemeProps:n=hde,componentName:r="MuiStack"}=e,i=()=>kt({root:["root"]},l=>At(r,l),{}),o=t(bde);return I.forwardRef(function(l,u){const c=n(l),d=pk(c),{component:p="div",direction:h="column",spacing:m=0,divider:b,children:O,className:y,useFlexGap:v=!1}=d,S=Ge(d,dde),k={direction:h,spacing:m,useFlexGap:v},C=i();return M.jsx(o,P({as:p,ownerState:k,ref:u,className:Je(C.root,y)},S,{children:b?mde(O,b):O}))})}function Ode(e,t){return P({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const vde=["mode","contrastThreshold","tonalOffset"],RB={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:by.white,default:by.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}},NC={text:{primary:by.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:by.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 IB(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=gk(e.main,i):t==="dark"&&(e.dark=mk(e.main,o)))}function Ede(e="light"){return e==="dark"?{main:oh[200],light:oh[50],dark:oh[400]}:{main:oh[700],light:oh[400],dark:oh[800]}}function Sde(e="light"){return e==="dark"?{main:ih[200],light:ih[50],dark:ih[400]}:{main:ih[500],light:ih[300],dark:ih[700]}}function Tde(e="light"){return e==="dark"?{main:rh[500],light:rh[300],dark:rh[700]}:{main:rh[700],light:rh[400],dark:rh[800]}}function wde(e="light"){return e==="dark"?{main:ah[400],light:ah[300],dark:ah[700]}:{main:ah[700],light:ah[500],dark:ah[900]}}function kde(e="light"){return e==="dark"?{main:sh[400],light:sh[300],dark:sh[700]}:{main:sh[800],light:sh[500],dark:sh[900]}}function xde(e="light"){return e==="dark"?{main:f0[400],light:f0[300],dark:f0[700]}:{main:"#ed6c02",light:f0[500],dark:f0[900]}}function Cde(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=Ge(e,vde),o=e.primary||Ede(t),a=e.secondary||Sde(t),s=e.error||Tde(t),l=e.info||wde(t),u=e.success||kde(t),c=e.warning||xde(t);function d(b){return Xce(b,NC.text.primary)>=n?NC.text.primary:RB.text.primary}const p=({color:b,name:O,mainShade:y=500,lightShade:v=300,darkShade:S=700})=>{if(b=P({},b),!b.main&&b[y]&&(b.main=b[y]),!b.hasOwnProperty("main"))throw new Error(Ud(11,O?` (${O})`:"",y));if(typeof b.main!="string")throw new Error(Ud(12,O?` (${O})`:"",JSON.stringify(b.main)));return IB(b,"light",v,r),IB(b,"dark",S,r),b.contrastText||(b.contrastText=d(b.main)),b},h={dark:NC,light:RB};return No(P({common:P({},by),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:ule,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},h[t]),i)}const Ade=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function _de(e){return Math.round(e*1e5)/1e5}const DB={textTransform:"uppercase"},NB='"Roboto", "Helvetica", "Arial", sans-serif';function Rde(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=NB,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,Ade),h=i/14,m=d||(y=>`${y/u*h}rem`),b=(y,v,S,k,C)=>P({fontFamily:r,fontWeight:y,fontSize:m(v),lineHeight:S},r===NB?{letterSpacing:`${_de(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,DB),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,DB),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return No(P({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},O),p,{clone:!1})}const Ide=.2,Dde=.14,Nde=.12;function jr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Ide})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Dde})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Nde})`].join(",")}const Pde=["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)],Lde=["duration","easing","delay"],Mde={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)"},HQ={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function PB(e){return`${Math.round(e)}ms`}function $de(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Fde(e){const t=P({},Mde,e.easing),n=P({},HQ,e.duration);return P({getAutoHeightDuration:$de,create:(i=["all"],o={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0}=o;return Ge(o,Lde),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof a=="string"?a:PB(a)} ${s} ${typeof l=="string"?l:PB(l)}`).join(",")}},e,{easing:t,duration:n})}const Bde={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Ude=Bde,jde=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function vN(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=Ge(e,jde);if(e.vars)throw new Error(Ud(18));const s=Cde(r),l=U1(e);let u=No(l,{mixins:Ode(l.breakpoints,n),palette:s,shadows:Pde.slice(),typography:Rde(s,o),transitions:Fde(i),zIndex:P({},Ude)});return u=No(u,a),u=t.reduce((c,d)=>No(c,d),u),u.unstable_sxConfig=P({},dk,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return B1({sx:d,theme:this})},u}const zde=vN(),bk=zde;function ui(){const e=vg(bk);return e[pp]||e}function gt({props:e,name:t}){return yN({props:e,name:t,defaultTheme:bk,themeId:pp})}const Ji=e=>Eb(e)&&e!=="classes",EN=Eb,Se=BQ({themeId:pp,defaultTheme:bk,rootShouldForwardProp:Ji}),Vde=["theme"];function Hde(e){let{theme:t}=e,n=Ge(e,Vde);const r=t[pp];return M.jsx(ide,P({},n,{themeId:r?pp:void 0,theme:r||t}))}const LB=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Wde(e){return At("MuiSvgIcon",e)}_t("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Qde=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Yde=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${nt(t)}`,`fontSize${nt(n)}`]};return kt(i,Wde,r)},Gde=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]}}),jd=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,Qde),m=I.isValidElement(i)&&i.type==="svg",b=P({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:m}),O={};c||(O.viewBox=p);const y=Yde(b);return M.jsxs(Gde,P({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?M.jsx("title",{children:d}):null]}))});jd.muiName="SvgIcon";function wi(e,t){function n(r,i){return M.jsx(jd,P({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=jd.muiName,I.memo(I.forwardRef(n))}const qde={configure:e=>{fN.configure(e)}},Zde=Object.freeze(Object.defineProperty({__proto__:null,capitalize:nt,createChainedFunction:qS,createSvgIcon:wi,debounce:Og,deprecatedPropType:Eue,isMuiElement:Ob,ownerDocument:br,ownerWindow:Js,requirePropFactory:Sue,setRef:Ey,unstable_ClassNameGenerator:qde,unstable_useEnhancedEffect:Kr,unstable_useId:$l,unsupportedProp:wue,useControlled:Xi,useEventCallback:jt,useForkRef:yn,useIsFocusVisible:rk},Symbol.toStringTag,{value:"Module"}));function __(e,t){return __=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},__(e,t)}function SN(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,__(e,t)}function Xde(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Kde(e,t){e.classList?e.classList.add(t):Xde(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function MB(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Jde(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=MB(e.className,t):e.setAttribute("class",MB(e.className&&e.className.baseVal||"",t))}const $B={disabled:!1},JS=Qt.createContext(null);var WQ=function(t){return t.scrollTop},X0="unmounted",Cf="exited",Af="entering",yh="entered",R_="exiting",Ac=function(e){SN(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=Cf,o.appearStatus=Af):l=yh:r.unmountOnExit||r.mountOnEnter?l=X0:l=Cf,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===X0?{status:Cf}: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!==Af&&a!==yh&&(o=Af):(a===Af||a===yh)&&(o=R_)}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===Af){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Z0.findDOMNode(this);a&&WQ(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Cf&&this.setState({status:X0})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[Z0.findDOMNode(this),s],u=l[0],c=l[1],d=this.getTimeouts(),p=s?d.appear:d.enter;if(!i&&!a||$B.disabled){this.safeSetState({status:yh},function(){o.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Af},function(){o.props.onEntering(u,c),o.onTransitionEnd(p,function(){o.safeSetState({status:yh},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:Z0.findDOMNode(this);if(!o||$B.disabled){this.safeSetState({status:Cf},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:R_},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:Cf},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:Z0.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===X0)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(JS.Provider,{value:null},typeof a=="function"?a(i,s):Qt.cloneElement(Qt.Children.only(a),s))},t}(Qt.Component);Ac.contextType=JS;Ac.propTypes={};function uh(){}Ac.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:uh,onEntering:uh,onEntered:uh,onExit:uh,onExiting:uh,onExited:uh};Ac.UNMOUNTED=X0;Ac.EXITED=Cf;Ac.ENTERING=Af;Ac.ENTERED=yh;Ac.EXITING=R_;const j1=Ac;var efe=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Kde(t,r)})},PC=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Jde(t,r)})},TN=function(e){SN(t,e);function t(){for(var r,i=arguments.length,o=new Array(i),a=0;ae.scrollTop;function zd(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 lfe(e){return At("MuiCollapse",e)}_t("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const ufe=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],cfe=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return kt(r,lfe,n)},dfe=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})=>P({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&P({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),ffe=Se("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>P({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),pfe=Se("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>P({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),QQ=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=HQ.standard,TransitionComponent:k=j1}=r,C=Ge(r,ufe),w=P({},r,{orientation:y,collapsedSize:s}),E=cfe(w),$=ui(),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}=zd({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}=zd({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 M.jsx(k,P({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)=>M.jsx(dfe,P({as:l,className:Je(E.root,a,{entered:E.entered,exited:!c&&U==="0px"&&E.hidden}[ue]),style:P({[V?"minWidth":"minHeight"]:U},v),ownerState:P({},w,{state:ue}),ref:X},xe,{children:M.jsx(ffe,{ownerState:P({},w,{state:ue}),className:E.wrapper,ref:R,children:M.jsx(pfe,{ownerState:P({},w,{state:ue}),className:E.wrapperInner,children:o})})}))}))});QQ.muiSupportAuto=!0;const hfe=QQ;function mfe(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 gfe=["className","component","elevation","square","variant"],bfe=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return kt(o,mfe,i)},yfe=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 P({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"&&P({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${cn("#fff",LB(t.elevation))}, ${cn("#fff",LB(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Ofe=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,gfe),c=P({},r,{component:o,elevation:a,square:s,variant:l}),d=bfe(c);return M.jsx(yfe,P({as:o,ownerState:c,className:Je(d.root,i),ref:n},u))}),Da=Ofe;function ku(e){return typeof e=="string"}function K0(e,t,n){return e===void 0||ku(e)?t:P({},t,{ownerState:P({},t.ownerState,n)})}function vfe(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const Efe={disableDefaultClasses:!1},Sfe=I.createContext(Efe);function Tfe(e){const{disableDefaultClasses:t}=I.useContext(Sfe);return n=>t?"":e(n)}function Sb(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 nf(e,t,n){return typeof e=="function"?e(t,n):e}function FB(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 wfe(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=P({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),b=P({},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=Sb(P({},i,r)),s=FB(r),l=FB(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=P({},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=P({},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 kfe=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function kn(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,a=Ge(e,kfe),s=o?{}:nf(r,i),{props:l,internalRef:u}=wfe(P({},a,{externalSlotProps:s})),c=yn(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return K0(n,P({},l,{ref:c}),i)}function xfe(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]),M.jsx("span",{className:p,style:h,children:M.jsx("span",{className:m})})}const Ns=_t("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Cfe=["center","classes","className"];let yk=e=>e,BB,UB,jB,zB;const I_=550,Afe=80,_fe=$1(BB||(BB=yk` + */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` 0% { transform: scale(0); opacity: 0.1; @@ -62,7 +62,7 @@ Error generating stack: `+o.message+` transform: scale(1); opacity: 0.3; } -`)),Rfe=$1(UB||(UB=yk` +`)),$fe=B1(HB||(HB=Ok` 0% { opacity: 1; } @@ -70,7 +70,7 @@ Error generating stack: `+o.message+` 100% { opacity: 0; } -`)),Ife=$1(jB||(jB=yk` +`)),Ffe=B1(WB||(WB=Ok` 0% { transform: scale(1); } @@ -82,7 +82,7 @@ Error generating stack: `+o.message+` 100% { transform: scale(1); } -`)),Dfe=Se("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Nfe=Se(xfe,{name:"MuiTouchRipple",slot:"Ripple"})(zB||(zB=yk` +`)),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` opacity: 0; position: absolute; @@ -125,8 +125,8 @@ Error generating stack: `+o.message+` animation-iteration-count: infinite; animation-delay: 200ms; } -`),Ns.rippleVisible,_fe,I_,({theme:e})=>e.transitions.easing.easeInOut,Ns.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Ns.child,Ns.childLeaving,Rfe,I_,({theme:e})=>e.transitions.easing.easeInOut,Ns.childPulsate,Ife,({theme:e})=>e.transitions.easing.easeInOut),Pfe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:a}=r,s=Ge(r,Cfe),[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,M.jsx(Nfe,{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:I_,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)},Afe)):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]),M.jsx(Dfe,P({className:Je(Ns.root,o.root,a),ref:b},s,{children:M.jsx(xN,{component:null,exit:!0,children:l})}))}),Lfe=Pfe;function Mfe(e){return At("MuiButtonBase",e)}const $fe=_t("MuiButtonBase",["root","disabled","focusVisible"]),Ffe=["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"],Bfe=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=kt({root:["root",t&&"disabled",n&&"focusVisible"]},Mfe,i);return n&&r&&(a.root+=` ${r}`),a},Ufe=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"},[`&.${$fe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),jfe=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,Ffe),q=I.useRef(null),Y=I.useRef(null),Z=yn(Y,z),{isFocusVisibleRef:j,onFocus:se,onBlur:ve,ref:G}=rk(),[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=P({},r,{centerRipple:o,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:U,focusVisible:ce}),Oe=Bfe(de);return M.jsxs(Ufe,P({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?M.jsx(Lfe,P({ref:Z,center:o},V)):null]}))}),hs=jfe;function zfe(e){return At("MuiIconButton",e)}const Vfe=_t("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Hfe=["edge","children","className","color","disabled","disableFocusRipple","size"],Wfe=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,zfe,t)},Qfe=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})=>P({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 P({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&P({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":P({},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)},{[`&.${Vfe.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Yfe=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,Hfe),p=P({},r,{edge:i,color:s,disabled:l,disableFocusRipple:u,size:c}),h=Wfe(p);return M.jsx(Qfe,P({className:Je(h.root,a),centerRipple:!0,focusRipple:!u,disabled:l,ref:n,ownerState:p},d,{children:o}))}),Na=Yfe,Gfe=wi(M.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 qfe(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 Zfe=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Xfe=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,qfe,a)},Kfe=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})=>P({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})),VB={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Jfe={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},epe=e=>Jfe[e]||e,tpe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiTypography"}),i=epe(r.color),o=pk(P({},r,{color:i})),{align:a="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:p="body1",variantMapping:h=VB}=o,m=Ge(o,Zfe),b=P({},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]||VB[p])||"span",y=Xfe(b);return M.jsx(Kfe,P({as:O,ref:n,ownerState:b,className:Je(y.root,s)},m))}),Lr=tpe;function npe(e){return At("MuiAppBar",e)}_t("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const rpe=["className","color","enableColorOnDark","position"],ipe=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${nt(t)}`,`position${nt(n)}`]};return kt(i,npe,r)},gv=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,ope=Se(Da,{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 P({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&&P({},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"&&P({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&P({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:gv(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:gv(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:gv(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:gv(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"}))}),ape=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,rpe),u=P({},r,{color:o,position:s,enableColorOnDark:a}),c=ipe(u);return M.jsx(ope,P({square:!0,component:"header",ownerState:u,elevation:4,className:Je(c.root,i,s==="fixed"&&"mui-fixed"),ref:n},l))}),spe=ape,YQ="base";function lpe(e){return`${YQ}--${e}`}function upe(e,t){return`${YQ}-${e}-${t}`}function GQ(e,t){const n=NQ[t];return n?lpe(n):upe(e,t)}function cpe(e,t){const n={};return t.forEach(r=>{n[r]=GQ(e,r)}),n}function HB(e){return e.substring(2).toLowerCase()}function dpe(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=br(s.current);if(!l.current||!s.current||"clientX"in m&&dpe(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=HB(o),b=br(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=HB(r),b=br(s.current);return b.addEventListener(m,d),()=>{b.removeEventListener(m,d)}}},[d,r]),M.jsx(I.Fragment,{children:I.cloneElement(t,h)})}const ppe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function hpe(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 mpe(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 gpe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||mpe(e))}function bpe(e){const t=[],n=[];return Array.from(e.querySelectorAll(ppe)).forEach((r,i)=>{const o=hpe(r);o===-1||!gpe(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 ype(){return!0}function qQ(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=bpe,isEnabled:a=ype,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=br(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=br(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 M.jsxs(I.Fragment,{children:[M.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),I.cloneElement(t,{ref:b,onFocus:y}),M.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}var xa="top",el="bottom",tl="right",Ca="left",AN="auto",z1=[xa,el,tl,Ca],Ym="start",Sy="end",Ope="clippingParents",ZQ="viewport",h0="popper",vpe="reference",WB=z1.reduce(function(e,t){return e.concat([t+"-"+Ym,t+"-"+Sy])},[]),XQ=[].concat(z1,[AN]).reduce(function(e,t){return e.concat([t,t+"-"+Ym,t+"-"+Sy])},[]),Epe="beforeRead",Spe="read",Tpe="afterRead",wpe="beforeMain",kpe="main",xpe="afterMain",Cpe="beforeWrite",Ape="write",_pe="afterWrite",Rpe=[Epe,Spe,Tpe,wpe,kpe,xpe,Cpe,Ape,_pe];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 gp(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 Ipe(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 Dpe(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 Npe={name:"applyStyles",enabled:!0,phase:"write",fn:Ipe,effect:Dpe,requires:["computeStyles"]};function xu(e){return e.split("-")[0]}var op=Math.max,eT=Math.min,Gm=Math.round;function D_(){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 KQ(){return!/^((?!chrome|android).)*safari/i.test(D_())}function qm(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&&Gm(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Gm(r.height)/e.offsetHeight||1);var a=gp(e)?ms(e):window,s=a.visualViewport,l=!KQ()&&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 RN(e){var t=qm(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 JQ(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 vc(e){return ms(e).getComputedStyle(e)}function Ppe(e){return["table","td","th"].indexOf(Ru(e))>=0}function rf(e){return((gp(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ok(e){return Ru(e)==="html"?e:e.assignedSlot||e.parentNode||(_N(e)?e.host:null)||rf(e)}function QB(e){return!Ws(e)||vc(e).position==="fixed"?null:e.offsetParent}function Lpe(e){var t=/firefox/i.test(D_()),n=/Trident/i.test(D_());if(n&&Ws(e)){var r=vc(e);if(r.position==="fixed")return null}var i=Ok(e);for(_N(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 V1(e){for(var t=ms(e),n=QB(e);n&&Ppe(n)&&vc(n).position==="static";)n=QB(n);return n&&(Ru(n)==="html"||Ru(n)==="body"&&vc(n).position==="static")?t:n||Lpe(e)||t}function IN(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Tb(e,t,n){return op(e,eT(t,n))}function Mpe(e,t,n){var r=Tb(e,t,n);return r>n?n:r}function eY(){return{top:0,right:0,bottom:0,left:0}}function tY(e){return Object.assign({},eY(),e)}function nY(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var $pe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,tY(typeof t!="number"?t:nY(t,z1))};function Fpe(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=IN(s),u=[Ca,tl].indexOf(s)>=0,c=u?"height":"width";if(!(!o||!a)){var d=$pe(i.padding,n),p=RN(o),h=l==="y"?xa:Ca,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=V1(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=Tb(k,w,C),$=l;n.modifiersData[r]=(t={},t[$]=E,t.centerOffset=E-w,t)}}function Bpe(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)||JQ(t.elements.popper,i)&&(t.elements.arrow=i))}const Upe={name:"arrow",enabled:!0,phase:"main",fn:Fpe,effect:Bpe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Zm(e){return e.split("-")[1]}var jpe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function zpe(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Gm(n*i)/i||0,y:Gm(r*i)/i||0}}function YB(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=Ca,k=xa,C=window;if(u){var w=V1(n),E="clientHeight",$="clientWidth";if(w===ms(n)&&(w=rf(n),vc(w).position!=="static"&&s==="absolute"&&(E="scrollHeight",$="scrollWidth")),w=w,i===xa||(i===Ca||i===tl)&&o===Sy){k=el;var N=d&&w===C&&C.visualViewport?C.visualViewport.height:w[E];b-=N-r.height,b*=l?1:-1}if(i===Ca||(i===xa||i===el)&&o===Sy){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&&jpe),U=c===!0?zpe({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 Vpe(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:Zm(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,YB(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,YB(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 Hpe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Vpe,data:{}};var bv={passive:!0};function Wpe(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,bv)}),s&&l.addEventListener("resize",n.update,bv),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,bv)}),s&&l.removeEventListener("resize",n.update,bv)}}const Qpe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Wpe,data:{}};var Ype={left:"right",right:"left",bottom:"top",top:"bottom"};function FE(e){return e.replace(/left|right|bottom|top/g,function(t){return Ype[t]})}var Gpe={start:"end",end:"start"};function GB(e){return e.replace(/start|end/g,function(t){return Gpe[t]})}function DN(e){var t=ms(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function NN(e){return qm(rf(e)).left+DN(e).scrollLeft}function qpe(e,t){var n=ms(e),r=rf(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=KQ();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+NN(e),y:l}}function Zpe(e){var t,n=rf(e),r=DN(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=op(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=op(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+NN(e),l=-r.scrollTop;return vc(i||n).direction==="rtl"&&(s+=op(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function PN(e){var t=vc(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function rY(e){return["html","body","#document"].indexOf(Ru(e))>=0?e.ownerDocument.body:Ws(e)&&PN(e)?e:rY(Ok(e))}function wb(e,t){var n;t===void 0&&(t=[]);var r=rY(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=ms(r),a=i?[o].concat(o.visualViewport||[],PN(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(wb(Ok(a)))}function N_(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Xpe(e,t){var n=qm(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 qB(e,t,n){return t===ZQ?N_(qpe(e,n)):gp(t)?Xpe(t,n):N_(Zpe(rf(e)))}function Kpe(e){var t=wb(Ok(e)),n=["absolute","fixed"].indexOf(vc(e).position)>=0,r=n&&Ws(e)?V1(e):e;return gp(r)?t.filter(function(i){return gp(i)&&JQ(i,r)&&Ru(i)!=="body"}):[]}function Jpe(e,t,n,r){var i=t==="clippingParents"?Kpe(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,u){var c=qB(e,u,r);return l.top=op(c.top,l.top),l.right=eT(c.right,l.right),l.bottom=eT(c.bottom,l.bottom),l.left=op(c.left,l.left),l},qB(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 iY(e){var t=e.reference,n=e.element,r=e.placement,i=r?xu(r):null,o=r?Zm(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case xa: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 Ca:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?IN(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case Ym:l[u]=l[u]-(t[c]/2-n[c]/2);break;case Sy:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function Ty(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?Ope:s,u=n.rootBoundary,c=u===void 0?ZQ:u,d=n.elementContext,p=d===void 0?h0:d,h=n.altBoundary,m=h===void 0?!1:h,b=n.padding,O=b===void 0?0:b,y=tY(typeof O!="number"?O:nY(O,z1)),v=p===h0?vpe:h0,S=e.rects.popper,k=e.elements[m?v:p],C=Jpe(gp(k)?k:k.contextElement||rf(e.elements.popper),l,c,a),w=qm(e.elements.reference),E=iY({reference:w,element:S,strategy:"absolute",placement:i}),$=N_(Object.assign({},S,E)),N=p===h0?$: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===h0&&B){var U=B[i];Object.keys(R).forEach(function(V){var z=[tl,el].indexOf(V)>=0?1:-1,W=[xa,el].indexOf(V)>=0?"y":"x";R[V]+=U[W]*z})}return R}function ehe(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?XQ:l,c=Zm(r),d=c?s?WB:WB.filter(function(m){return Zm(m)===c}):z1,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]=Ty(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 the(e){if(xu(e)===AN)return[];var t=FE(e);return[GB(e),t,GB(t)]}function nhe(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?[FE(O)]:the(O)),k=[O].concat(S).reduce(function(ce,ge){return ce.concat(xu(ge)===AN?ehe(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=Ty(t,{placement:B,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),q=z?V?tl:Ca:V?el:xa;C[W]>w[W]&&(q=FE(q));var Y=FE(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 rhe={name:"flip",enabled:!0,phase:"main",fn:nhe,requiresIfExists:["offset"],data:{_skip:!1}};function ZB(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 XB(e){return[xa,tl,el,Ca].some(function(t){return e[t]>=0})}function ihe(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Ty(t,{elementContext:"reference"}),s=Ty(t,{altBoundary:!0}),l=ZB(a,r),u=ZB(s,i,o),c=XB(l),d=XB(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 ohe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ihe};function ahe(e,t,n){var r=xu(e),i=[Ca,xa].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,[Ca,tl].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function she(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=XQ.reduce(function(c,d){return c[d]=ahe(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 lhe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:she};function uhe(e){var t=e.state,n=e.name;t.modifiersData[n]=iY({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const che={name:"popperOffsets",enabled:!0,phase:"read",fn:uhe,data:{}};function dhe(e){return e==="x"?"y":"x"}function fhe(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=Ty(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),y=xu(t.placement),v=Zm(t.placement),S=!v,k=IN(y),C=dhe(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"?xa:Ca,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===Ym?E[X]:$[X],ve=v===Ym?-$[X]:-E[X],G=t.elements.arrow,ce=h&&G?RN(G):{width:0,height:0},ge=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:eY(),ue=ge[z],xe=ge[W],Ne=Tb(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&&V1(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=Tb(h?eT(Y,ze):Y,q,h?op(Z,$e):Z);w[k]=We,U[k]=We-q}if(s){var dt,Be=k==="x"?xa:Ca,re=k==="x"?el:tl,ee=w[C],J=C==="y"?"height":"width",Re=ee+O[Be],Le=ee-O[re],De=[xa,Ca].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?Mpe(fe,ee,de):Tb(h?fe:Re,ee,h?de:Le);w[C]=Oe,U[C]=Oe-ee}t.modifiersData[r]=U}}const phe={name:"preventOverflow",enabled:!0,phase:"main",fn:fhe,requiresIfExists:["offset"]};function hhe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function mhe(e){return e===ms(e)||!Ws(e)?DN(e):hhe(e)}function ghe(e){var t=e.getBoundingClientRect(),n=Gm(t.width)/e.offsetWidth||1,r=Gm(t.height)/e.offsetHeight||1;return n!==1||r!==1}function bhe(e,t,n){n===void 0&&(n=!1);var r=Ws(t),i=Ws(t)&&ghe(t),o=rf(t),a=qm(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ru(t)!=="body"||PN(o))&&(s=mhe(t)),Ws(t)?(l=qm(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=NN(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function yhe(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 Ohe(e){var t=yhe(e);return Rpe.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function vhe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ehe(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 KB={placement:"bottom",modifiers:[],strategy:"absolute"};function JB(){for(var e=arguments.length,t=new Array(e),n=0;n{o||s(khe(i)||document.body)},[i,o]),Kr(()=>{if(a&&!o)return Ey(n,a),()=>{Ey(n,null)}},[n,a,o]),o){if(I.isValidElement(r)){const u={ref:l};return I.cloneElement(r,u)}return M.jsx(I.Fragment,{children:r})}return M.jsx(I.Fragment,{children:a&&gg.createPortal(r,a)})}),aY="Popper";function xhe(e){return GQ(aY,e)}cpe(aY,["root"]);const Che=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Ahe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function _he(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 P_(e){return typeof e=="function"?e():e}function Rhe(e){return e.nodeType!==void 0}const Ihe=()=>kt({root:["root"]},Tfe(xhe)),Dhe={},Nhe=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,Che),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=_he(c,a),[E,$]=I.useState(w),[N,R]=I.useState(P_(i));I.useEffect(()=>{S.current&&S.current.forceUpdate()}),I.useEffect(()=>{i&&R(P_(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=whe(N,y.current,P({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=Ihe(),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 M.jsx(V,P({},z,{children:typeof o=="function"?o(B):o}))}),Phe=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=Dhe,popperRef:h,style:m,transition:b=!1,slotProps:O={},slots:y={}}=t,v=Ge(t,Ahe),[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=P_(r);E=R&&Rhe(R)?br(R).body:br(null).body}const $=!c&&l&&(!b||S)?"none":void 0,N=b?{in:c,onEnter:C,onExited:w}:void 0;return M.jsx(oY,{disablePortal:s,container:E,children:M.jsx(Nhe,P({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:P({position:"fixed",top:0,left:0,display:$},m),TransitionProps:N,children:i}))})});function Lhe(e){const t=br(e);return t.body===e?Js(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function kb(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function e8(e){return parseInt(Js(e).getComputedStyle(e).paddingRight,10)||0}function Mhe(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 t8(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,a=>{const s=o.indexOf(a)===-1,l=!Mhe(a);s&&l&&kb(a,i)})}function LC(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function $he(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Lhe(r)){const a=IQ(br(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${e8(r)+a}px`;const s=br(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${e8(l)+a}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=br(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 Fhe(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Bhe{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&&kb(t.modalRef,!1);const i=Fhe(n);t8(n,t.mount,t.modalRef,i,!0);const o=LC(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=LC(this.containers,o=>o.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=$he(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=LC(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&&kb(t.modalRef,n),t8(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&&kb(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Uhe(e){return typeof e=="function"?e():e}function jhe(e){return e?e.props.hasOwnProperty("in"):!1}const zhe=new Bhe;function Vhe(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=zhe,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=jhe(l);let S=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(S=!1);const k=()=>br(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=Uhe(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&&kb(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=Sb(e);delete q.onTransitionEnter,delete q.onTransitionExited;const Y=P({},q,X);return P({role:"presentation"},Y,{onKeyDown:B(Y),ref:b})},getBackdropProps:(X={})=>{const q=X;return P({"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:qS(X,l==null?void 0:l.props.onEnter),onExited:qS(q,l==null?void 0:l.props.onExited)}},rootRef:b,portalRef:N,isTopModal:$,exited:O,hasTransition:v}}const Hhe=2;function sY(e,t){return e-t}function n8(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}%`})}},qhe=e=>e;let Ev;function i8(){return Ev===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Ev=CSS.supports("touch-action","none"):Ev=!0),Ev}function Zhe(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=qhe,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(sY):[R];z=z.map(ie=>ie==null?l:bh(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}=rk(),[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=Whe(xt,l,s),b)et=Yhe(et,b,l);else{const qe=n8(X,et);et=X[qe]}et=bh(et,l,s);let vt=0;if(V){fe?vt=Ve.current:vt=n8(z,et),i&&(et=bh(et,z[vt-1]||-1/0,z[vt+1]||1/0));const qe=et;et=r8({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=yv(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});Ov({sliderRef:G,activeIndex:Oe,setActive:k}),B(de),!E&&N.current>Hhe&&$(!0),U&&!vv(de,R)&&U(ie,de,Oe)}),ye=jt(ie=>{const fe=yv(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;i8()||ie.preventDefault();const fe=ie.changedTouches[0];fe!=null&&(v.current=fe.identifier);const de=yv(ie,v);if(de!==!1){const{newValue:Te,activeIndex:rt}=Me({finger:de});Ov({sliderRef:G,activeIndex:rt,setActive:k}),B(Te),U&&!vv(Te,R)&&U(ie,Te,rt)}N.current=0;const Oe=br(G.current);Oe.addEventListener("touchmove",Ye,{passive:!0}),Oe.addEventListener("touchend",ye,{passive:!0})}),$e=I.useCallback(()=>{const ie=br(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:i8()}),()=>{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=yv(fe,v);if(Oe!==!1){const{newValue:rt,activeIndex:pt}=Me({finger:Oe});Ov({sliderRef:G,activeIndex:pt,setActive:k}),B(rt),U&&!vv(rt,R)&&U(fe,rt,pt)}N.current=0;const Te=br(G.current);Te.addEventListener("mousemove",Ye,{passive:!0}),Te.addEventListener("mouseup",ye)},dt=tT(V?z[0]:l,l,s),Be=tT(z[z.length-1],l,s)-dt,re=(ie={})=>{const fe=Sb(ie),de={onMouseDown:We(fe||{})},Oe=P({},fe,de);return P({},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:Ghe,dragging:E,focusedThumbIndex:se,getHiddenInputProps:(ie={})=>{var fe;const de=Sb(ie),Oe={onChange:Ne(de||{}),onFocus:ue(de||{}),onBlur:xe(de||{})},Te=P({},de,Oe);return P({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:P({},Lue,{direction:o?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:re,getThumbProps:(ie={})=>{const fe=Sb(ie),de={onMouseOver:ee(fe||{}),onMouseLeave:J(fe||{})};return P({},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 Xhe=["onChange","maxRows","minRows","style","value"];function Sv(e){return parseInt(e,10)||0}const Khe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function o8(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const lY=I.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:o=1,style:a,value:s}=t,l=Ge(t,Xhe),{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=Sv(w.paddingBottom)+Sv(w.paddingTop),R=Sv(w.borderBottomWidth)+Sv(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();o8(k)||b(C=>y(C,k))},[O]);Kr(()=>{const k=()=>{const B=O();o8(B)||gg.flushSync(()=>{b(U=>y(U,B))})},C=()=>{h.current=0,k()};let w;const E=Og(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 M.jsxs(I.Fragment,{children:[M.jsx("textarea",P({value:s,onChange:S,ref:d,rows:o,style:P({height:m.outerHeightStyle,overflow:m.overflow?"hidden":void 0},a)},l)),M.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:P({},Khe.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function a8(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Jhe(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=a8(c));const d=c?s.filter(p=>{let h=(o||u)(p);return n&&(h=h.toLowerCase()),t&&(h=a8(h)),i==="start"?h.indexOf(c)===0:h.indexOf(c)>-1}):s;return typeof r=="number"?d.slice(0,r):d}}function MC(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 nme(e){const{unstable_isActiveElementInListbox:t=tme,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=eme,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=Due({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&&MC(We,Dt=>B(Ce,Dt))!==-1)return;const mt=MC(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=>{Ey(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=MC(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:-s8,direction:"previous",reason:"keyboard",event:Ce}),on(Ce);break;case"PageDown":Ce.preventDefault(),qe({diff:s8,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={})=>P({"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})=>P({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 rme=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],ime=Se(Phe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ome=I.forwardRef(function(t,n){var r;const i=fk(),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,rme),w=(r=S==null?void 0:S.root)!=null?r:l==null?void 0:l.Root,E=P({anchorEl:a,container:c,disablePortal:d,keepMounted:p,modifiers:h,open:m,placement:b,popperOptions:O,popperRef:y,transition:v},C);return M.jsx(ime,P({as:s,direction:i==null?void 0:i.direction,slots:{root:w},slotProps:k??u},E,{ref:n}))}),H1=ome;function ame(e){return At("MuiListSubheader",e)}_t("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const sme=["className","color","component","disableGutters","disableSticky","inset"],lme=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,ame,t)},ume=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})=>P({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})),uY=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,sme),d=P({},r,{color:o,component:a,disableGutters:s,disableSticky:l,inset:u}),p=lme(d);return M.jsx(ume,P({as:a,className:Je(p.root,i),ref:n,ownerState:d},c))});uY.muiSkipListHighlight=!0;const cme=uY,dme=wi(M.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 fme(e){return At("MuiChip",e)}const pme=_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=pme,hme=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],mme=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,fme,t)},gme=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 P({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}`]:P({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&P({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${nr.deleteIcon}`]:P({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})=>P({},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})=>P({},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}}})),bme=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})=>P({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 l8(e){return e.key==="Backspace"||e.key==="Delete"}const yme=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,hme),w=I.useRef(null),E=yn(w,n),$=Z=>{Z.stopPropagation(),m&&m(Z)},N=Z=>{Z.currentTarget===Z.target&&l8(Z)&&Z.preventDefault(),b&&b(Z)},R=Z=>{Z.currentTarget===Z.target&&(m&&l8(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=P({},r,{component:U,disabled:c,size:y,color:s,iconColor:I.isValidElement(d)&&d.props.color||s,onDelete:!!m,clickable:B,variant:v}),z=mme(V),W=U===hs?P({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:$}):M.jsx(dme,{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)})),M.jsxs(gme,P({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,M.jsx(bme,{className:Je(z.label),ownerState:V,children:p}),X]}))}),LN=yme;function of({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 Ome=I.createContext(void 0),vk=Ome;function Du(){return I.useContext(vk)}function cY(e){return M.jsx(Pce,P({},e,{defaultTheme:bk,themeId:pp}))}function u8(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function nT(e,t=!1){return e&&(u8(e.value)&&e.value!==""||t&&u8(e.defaultValue)&&e.defaultValue!=="")}function vme(e){return e.startAdornment}function Eme(e){return At("MuiInputBase",e)}const Sme=_t("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Ja=Sme,Tme=["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"],Ek=(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]},Sk=(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]},wme=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,Eme,t)},Tk=Se("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ek})(({theme:e,ownerState:t})=>P({},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&&P({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),wk=Se("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Sk})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=P({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 P({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"})}),kme=M.jsx(cY,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),xme=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,Tme),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=of({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=>{nT(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(Ud(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=P({type:void 0,minRows:q,maxRows:q},J):J=P({type:void 0,maxRows:k,minRows:C},J),ee=lY);const Re=Oe=>{$e(Oe.animationName==="mui-auto-fill-cancel"?ue.current:{value:"x"})};I.useEffect(()=>{Me&&Me.setAdornedStart(!!j)},[Me,j]);const Le=P({},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=wme(Le),ie=Z.root||u.Root||Tk,fe=Y.root||c.root||{},de=Z.input||u.Input||wk;return J=P({},J,(r=Y.input)!=null?r:c.input),M.jsxs(I.Fragment,{children:[!h&&kme,M.jsxs(ie,P({},fe,!ku(ie)&&{ownerState:P({},Le,fe.ownerState)},{ref:n,onClick:re},G,{className:Je(De.root,fe.className,l,W&&"MuiInputBase-readOnly"),children:[j,M.jsx(vk.Provider,{value:null,children:M.jsx(de,P({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:P({},Le,J.ownerState)},{ref:Ne,className:Je(De.input,J.className,W&&"MuiInputBase-readOnly"),onBlur:dt,onChange:Be,onFocus:We}))}),m,X?X(P({},Ye,{startAdornment:j})):null]}))]})}),MN=xme;function Cme(e){return At("MuiInput",e)}const Ame=P({},Ja,_t("MuiInput",["root","underline","input"])),nd=Ame;function _me(e){return At("MuiOutlinedInput",e)}const Rme=P({},Ja,_t("MuiOutlinedInput",["root","notchedOutline","input"])),ru=Rme;function Ime(e){return At("MuiFilledInput",e)}const Dme=P({},Ja,_t("MuiFilledInput",["root","underline","input"])),es=Dme,dY=wi(M.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Nme(e){return At("MuiAutocomplete",e)}const Pme=_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=Pme;var c8,d8;const Lme=["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"],Mme=["ref"],$me=["key"],Fme=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,Nme,t)},Bme=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})=>P({[`&.${Fn.focused} .${Fn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Fn.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${Fn.tag}`]:P({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}`]:P({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),Ume=Se("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),jme=Se(Na,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),zme=Se(Na,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>P({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>P({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),Vme=Se(H1,{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})=>P({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),Hme=Se(Da,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>P({},e.typography.body1,{overflow:"auto"})),Wme=Se("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Qme=Se("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Yme=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)}}}})),Gme=Se(cme,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),qme=Se("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Fn.option}`]:{paddingLeft:24}}),Zme=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=c8||(c8=M.jsx(Gfe,{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=Da,PopperComponent:Ke=H1,popupIcon:Me=d8||(d8=M.jsx(dY,{})),readOnly:Ye=!1,renderGroup:ye,renderInput:ze,renderOption:$e,renderTags:We,selectOnFocus:dt=!s.freeSolo,size:Be="medium",slotProps:re={}}=s,ee=Ge(s,Lme),{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}=nme(P({},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,Mme),at=yn(pe,Ee),$t=X||(Ce=>{var mt;return(mt=Ce.label)!=null?mt:Ce}),It=P({},s,{disablePortal:R,expanded:pt,focused:vt,fullWidth:z,getOptionLabel:$t,hasClearIcon:dn,hasPopupIcon:pn,inputFocused:qe===-1,popupOpen:et,size:Be}),Ct=Fme(It);let Zt;if(ge&&Te.length>0){const Ce=mt=>P({className:Ct.tag,disabled:E},fe(mt));We?Zt=We(Te,Ce,It):Zt=Te.map((mt,Dt)=>M.jsx(LN,P({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(M.jsx("span",{className:Ct.tag,children:W(Ce)},Zt.length)))}const we=ye||(Ce=>M.jsxs("li",{children:[M.jsx(Gme,{className:Ct.groupLabel,ownerState:It,component:"div",children:Ce.group}),M.jsx(qme,{className:Ct.groupUl,ownerState:It,children:Ce.children})]},Ce.key)),ot=$e||((Ce,mt)=>{const{key:Dt}=Ce,tn=Ge(Ce,$me);return M.jsx("li",P({},tn,{children:$t(mt)}),Dt)}),rn=(Ce,mt)=>{const Dt=Oe({option:Ce,index:mt});return ot(P({},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 M.jsxs(I.Fragment,{children:[M.jsx(Bme,P({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:P({ref:Et,className:Ct.inputRoot,startAdornment:Zt,onClick:Ce=>{Ce.target===Ce.currentTarget&&zn(Ce)}},(dn||pn)&&{endAdornment:M.jsxs(Ume,{className:Ct.endAdornment,ownerState:It,children:[dn?M.jsx(jme,P({},ie(),{"aria-label":y,title:y,ownerState:It},Wt,{className:Je(Ct.clearIndicator,Wt==null?void 0:Wt.className),children:m})):null,pn?M.jsx(zme,P({},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:P({className:Ct.input,disabled:E,readOnly:Ye},Re())})})),it?M.jsx(Vme,P({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:M.jsxs(Hme,P({ownerState:It,as:Ve},mn,{className:Je(Ct.paper,mn==null?void 0:mn.className),children:[G&&on.length===0?M.jsx(Wme,{className:Ct.loading,ownerState:It,children:ce}):null,on.length===0&&!V&&!G?M.jsx(Qme,{className:Ct.noOptions,ownerState:It,role:"presentation",onMouseDown:Ce=>{Ce.preventDefault()},children:ue}):null,on.length>0?M.jsx(Yme,P({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]})}),Xme=Zme,Kme=wi(M.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 Jme(e){return At("MuiAvatar",e)}_t("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const ege=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],tge=e=>{const{classes:t,variant:n,colorDefault:r}=e;return kt({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},Jme,t)},nge=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})=>P({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&&P({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]}))),rge=Se("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),ige=Se(Kme,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function oge({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 age=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,ege);let m=null;const b=oge(P({},l,{src:c,srcSet:d})),O=c||d,y=O&&b!=="error",v=P({},r,{colorDefault:!y,component:s,variant:p}),S=tge(v);return y?m=M.jsx(rge,P({alt:i,srcSet:d,src:c,sizes:u,ownerState:v,className:S.img},l)):o!=null?m=o:O&&i?m=i[0]:m=M.jsx(ige,{ownerState:v,className:S.fallback}),M.jsx(nge,P({as:s,ownerState:v,className:Je(S.root,a),ref:n},h,{children:m}))}),fY=age,sge=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],lge={entering:{opacity:1},entered:{opacity:1}},uge=I.forwardRef(function(t,n){const r=ui(),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=j1}=t,S=Ge(t,sge),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)=>{CN(z);const X=zd({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=zd({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 M.jsx(v,P({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,P({style:P({opacity:0,visibility:z==="exited"&&!u?"hidden":void 0},lge[z],O,s.props.style),ref:C},W))}))}),Eg=uge;function cge(e){return At("MuiBackdrop",e)}_t("MuiBackdrop",["root","invisible"]);const dge=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],fge=e=>{const{classes:t,invisible:n}=e;return kt({root:["root",n&&"invisible"]},cge,t)},pge=Se("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>P({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"})),hge=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=Eg,transitionDuration:y}=a,v=Ge(a,dge),S=P({},a,{component:u,invisible:p}),k=fge(S),C=(r=m.root)!=null?r:d.root;return M.jsx(O,P({in:h,timeout:y},v,{children:M.jsx(pge,P({"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:P({},S,C==null?void 0:C.ownerState),classes:k,ref:n,children:s}))}))}),$N=hge,mge=_t("MuiBox",["root"]),gge=mge,bge=vN(),yge=Fce({themeId:pp,defaultTheme:bge,defaultClassName:gge.root,generateClassName:fN.generate}),Aa=yge;function Oge(e){return At("MuiButton",e)}const vge=_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"]),Tv=vge,Ege=I.createContext({}),Sge=Ege,Tge=I.createContext(void 0),wge=Tge,kge=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],xge=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,Oge,a);return P({},a,l)},pY=e=>P({},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}}),Cge=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 P({},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":P({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":P({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Tv.focusVisible}`]:P({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Tv.disabled}`]:P({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"},[`&.${Tv.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Tv.disabled}`]:{boxShadow:"none"}}),Age=Se("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${nt(n.size)}`]]}})(({ownerState:e})=>P({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},pY(e))),_ge=Se("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${nt(n.size)}`]]}})(({ownerState:e})=>P({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},pY(e))),Rge=I.forwardRef(function(t,n){const r=I.useContext(Sge),i=I.useContext(wge),o=ik(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,kge),w=P({},a,{color:l,component:u,disabled:d,disableElevation:p,disableFocusRipple:h,fullWidth:O,size:y,type:S,variant:k}),E=xge(w),$=v&&M.jsx(Age,{className:E.startIcon,ownerState:w,children:v}),N=m&&M.jsx(_ge,{className:E.endIcon,ownerState:w,children:m}),R=i||"";return M.jsxs(Cge,P({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]}))}),Ff=Rge;function Ige(e){return At("MuiCard",e)}_t("MuiCard",["root"]);const Dge=["className","raised"],Nge=e=>{const{classes:t}=e;return kt({root:["root"]},Ige,t)},Pge=Se(Da,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Lge=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiCard"}),{className:i,raised:o=!1}=r,a=Ge(r,Dge),s=P({},r,{raised:o}),l=Nge(s);return M.jsx(Pge,P({className:Je(l.root,i),elevation:o?8:void 0,ref:n,ownerState:s},a))}),Mge=Lge;function $ge(e){return At("MuiCardActionArea",e)}const Fge=_t("MuiCardActionArea",["root","focusVisible","focusHighlight"]),$C=Fge,Bge=["children","className","focusVisibleClassName"],Uge=e=>{const{classes:t}=e;return kt({root:["root"],focusHighlight:["focusHighlight"]},$ge,t)},jge=Se(hs,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${$C.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${$C.focusVisible} .${$C.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}})),zge=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})})),Vge=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiCardActionArea"}),{children:i,className:o,focusVisibleClassName:a}=r,s=Ge(r,Bge),l=r,u=Uge(l);return M.jsxs(jge,P({className:Je(u.root,o),focusVisibleClassName:Je(a,u.focusVisible),ref:n,ownerState:l},s,{children:[i,M.jsx(zge,{className:u.focusHighlight,ownerState:l})]}))}),Hge=Vge;function Wge(e){return At("MuiCardContent",e)}_t("MuiCardContent",["root"]);const Qge=["className","component"],Yge=e=>{const{classes:t}=e;return kt({root:["root"]},Wge,t)},Gge=Se("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),qge=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiCardContent"}),{className:i,component:o="div"}=r,a=Ge(r,Qge),s=P({},r,{component:o}),l=Yge(s);return M.jsx(Gge,P({as:o,className:Je(l.root,i),ownerState:s,ref:n},a))}),Zge=qge;function Xge(e){return At("PrivateSwitchBase",e)}_t("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Kge=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Jge=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,Xge,t)},e0e=Se(hs)(({ownerState:e})=>P({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),t0e=Se("input",{shouldForwardProp:Ji})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),n0e=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,Kge),[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=P({},t,{checked:N,disabled:W,disableFocusRipple:u,edge:c}),Y=Jge(q);return M.jsxs(e0e,P({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:[M.jsx(t0e,P({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]}))}),FN=n0e,r0e=wi(M.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"),i0e=wi(M.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"),o0e=wi(M.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 a0e(e){return At("MuiCheckbox",e)}const s0e=_t("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),FC=s0e,l0e=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],u0e=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,a0e,t);return P({},t,a)},c0e=Se(FN,{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})=>P({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"&&{[`&.${FC.checked}, &.${FC.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${FC.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),d0e=M.jsx(i0e,{}),f0e=M.jsx(r0e,{}),p0e=M.jsx(o0e,{}),h0e=I.forwardRef(function(t,n){var r,i;const o=gt({props:t,name:"MuiCheckbox"}),{checkedIcon:a=d0e,color:s="primary",icon:l=f0e,indeterminate:u=!1,indeterminateIcon:c=p0e,inputProps:d,size:p="medium",className:h}=o,m=Ge(o,l0e),b=u?c:l,O=u?c:a,y=P({},o,{color:s,indeterminate:u,size:p}),v=u0e(y);return M.jsx(c0e,P({type:"checkbox",inputProps:P({"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}))}),kk=h0e;function m0e(e){return At("MuiCircularProgress",e)}_t("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const g0e=["className","color","disableShrink","size","style","thickness","value","variant"];let xk=e=>e,f8,p8,h8,m8;const jc=44,b0e=$1(f8||(f8=xk` +`),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` 0% { transform: rotate(0deg); } @@ -134,7 +134,7 @@ Error generating stack: `+o.message+` 100% { transform: rotate(360deg); } -`)),y0e=$1(p8||(p8=xk` +`)),k0e=B1(b8||(b8=Ak` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -149,11 +149,11 @@ Error generating stack: `+o.message+` stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`)),O0e=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,m0e,t)},v0e=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})=>P({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"&&uN(h8||(h8=xk` +`)),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` animation: ${0} 1.4s linear infinite; - `),b0e)),E0e=Se("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),S0e=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})=>P({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&&uN(m8||(m8=xk` + `),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` animation: ${0} 1.4s ease-in-out infinite; - `),y0e)),T0e=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,g0e),h=P({},r,{color:o,disableShrink:a,size:s,thickness:u,value:c,variant:d}),m=O0e(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 M.jsx(v0e,P({className:Je(m.root,i),style:P({width:s,height:s},O,l),ownerState:h,ref:n,role:"progressbar"},y,p,{children:M.jsx(E0e,{className:m.svg,ownerState:h,viewBox:`${jc/2} ${jc/2} ${jc} ${jc}`,children:M.jsx(S0e,{className:m.circle,style:b,ownerState:h,cx:jc,cy:jc,r:(jc-u)/2,fill:"none",strokeWidth:u})})}))}),Sg=T0e,w0e=cde({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"})}),k0e=w0e,x0e=(e,t)=>P({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),C0e=e=>P({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}}),A0e=(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=P({html:x0e(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:P({margin:0},C0e(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 _0e(e){const t=gt({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return M.jsxs(I.Fragment,{children:[M.jsx(cY,{styles:i=>A0e(i,r)}),n]})}function R0e(e){return At("MuiModal",e)}_t("MuiModal",["root","hidden","backdrop"]);const I0e=["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"],D0e=e=>{const{open:t,exited:n,classes:r}=e;return kt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},R0e,r)},N0e=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})=>P({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),P0e=Se($N,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),L0e=I.forwardRef(function(t,n){var r,i,o,a,s,l;const u=gt({name:"MuiModal",props:t}),{BackdropComponent:c=P0e,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,I0e),X=P({},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}=Vhe(P({},X,{rootRef:n})),ce=P({},X,{exited:ve}),ge=D0e(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:N0e,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(P({},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:M.jsx(oY,{ref:j,container:b,disablePortal:w,children:M.jsxs(xe,P({},Me,{children:[!N&&c?M.jsx(Ne,P({},Ye)):null,M.jsx(qQ,{disableEnforceFocus:k,disableAutoFocus:S,disableRestoreFocus:E,isEnabled:se,open:U,children:I.cloneElement(m,ue)})]}))})}),W1=L0e;function M0e(e){return At("MuiDialog",e)}const xb=_t("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),$0e=I.createContext({}),F0e=$0e,B0e=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],U0e=Se($N,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),j0e=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,M0e,t)},z0e=Se(W1,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),V0e=Se("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${nt(n.scroll)}`]]}})(({ownerState:e})=>P({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"}})),H0e=Se(Da,{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})=>P({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)`,[`&.${xb.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}`,[`&.${xb.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,[`&.${xb.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),W0e=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDialog"}),i=ui(),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=Da,PaperProps:k={},scroll:C="paper",TransitionComponent:w=Eg,transitionDuration:E=o,TransitionProps:$}=r,N=Ge(r,B0e),R=P({},r,{disableEscapeKeyDown:p,fullScreen:h,fullWidth:m,maxWidth:b,scroll:C}),B=j0e(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 M.jsx(z0e,P({className:Je(B.root,d),closeAfterTransition:!0,components:{Backdrop:U0e},componentsProps:{backdrop:P({transitionDuration:E,as:l},u)},disableEscapeKeyDown:p,onClose:y,open:v,ref:n,onClick:z,ownerState:R},N,{children:M.jsx(w,P({appear:!0,in:v,timeout:E,role:"presentation"},$,{children:M.jsx(V0e,{className:Je(B.container),onMouseDown:V,ownerState:R,children:M.jsx(H0e,P({as:S,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":W},k,{className:Je(B.paper,k.className),ownerState:R,children:M.jsx(F0e.Provider,{value:X,children:c})}))})}))}))}),Q0e=W0e;function Y0e(e){return At("MuiDialogActions",e)}_t("MuiDialogActions",["root","spacing"]);const G0e=["className","disableSpacing"],q0e=e=>{const{classes:t,disableSpacing:n}=e;return kt({root:["root",!n&&"spacing"]},Y0e,t)},Z0e=Se("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>P({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),X0e=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1}=r,a=Ge(r,G0e),s=P({},r,{disableSpacing:o}),l=q0e(s);return M.jsx(Z0e,P({className:Je(l.root,i),ownerState:s,ref:n},a))}),K0e=X0e;function J0e(e){return At("MuiDialogContent",e)}_t("MuiDialogContent",["root","dividers"]);const ebe=_t("MuiDialogTitle",["root"]),tbe=ebe,nbe=["className","dividers"],rbe=e=>{const{classes:t,dividers:n}=e;return kt({root:["root",n&&"dividers"]},J0e,t)},ibe=Se("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>P({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}`}:{[`.${tbe.root} + &`]:{paddingTop:0}})),obe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDialogContent"}),{className:i,dividers:o=!1}=r,a=Ge(r,nbe),s=P({},r,{dividers:o}),l=rbe(s);return M.jsx(ibe,P({className:Je(l.root,i),ownerState:s,ref:n},a))}),abe=obe;function sbe(e){return At("MuiDivider",e)}const lbe=_t("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),g8=lbe,ube=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],cbe=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"]},sbe,r)},dbe=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})=>P({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})=>P({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>P({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>P({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>P({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),fbe=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})=>P({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)`})),hY=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,ube),b=P({},r,{absolute:i,component:s,flexItem:l,light:u,orientation:c,role:d,textAlign:p,variant:h}),O=cbe(b);return M.jsx(dbe,P({as:s,className:Je(O.root,a),role:d,ref:n,ownerState:b},m,{children:o?M.jsx(fbe,{className:O.wrapper,ownerState:b,children:o}):null}))});hY.muiSkipListHighlight=!0;const lc=hY,pbe=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function hbe(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 mbe(e){return typeof e=="function"?e():e}function wv(e,t,n){const r=mbe(n),i=hbe(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const gbe=I.forwardRef(function(t,n){const r=ui(),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=j1}=t,w=Ge(t,pbe),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)=>{wv(c,Y,u),CN(Y),h&&h(Y,Z)}),B=N((Y,Z)=>{const j=zd({timeout:k,style:S,easing:d},{mode:"enter"});Y.style.webkitTransition=r.transitions.create("-webkit-transform",P({},j)),Y.style.transition=r.transitions.create("transform",P({},j)),Y.style.webkitTransform="none",Y.style.transform="none",b&&b(Y,Z)}),U=N(m),V=N(v),z=N(Y=>{const Z=zd({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),wv(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&&wv(c,E.current,u)},[c,u]);return I.useEffect(()=>{if(p||c==="down"||c==="right")return;const Y=Og(()=>{E.current&&wv(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]),M.jsx(C,P({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,P({ref:$,style:P({visibility:Y==="exited"&&!p?"hidden":void 0},S,l.props.style)},Z))}))}),mY=gbe;function bbe(e){return At("MuiDrawer",e)}_t("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const ybe=["BackdropProps"],Obe=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],gY=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},vbe=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,bbe,t)},Ebe=Se(W1,{name:"MuiDrawer",slot:"Root",overridesResolver:gY})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),b8=Se("div",{shouldForwardProp:Ji,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:gY})({flex:"0 0 auto"}),Sbe=Se(Da,{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})=>P({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}`})),bY={left:"right",right:"left",top:"down",bottom:"up"};function Tbe(e){return["left","right"].indexOf(e)!==-1}function wbe(e,t){return e.direction==="rtl"&&Tbe(t)?bY[t]:t}const kbe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDrawer"}),i=ui(),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=mY,transitionDuration:v=o,variant:S="temporary"}=r,k=Ge(r.ModalProps,ybe),C=Ge(r,Obe),w=I.useRef(!1);I.useEffect(()=>{w.current=!0},[]);const E=wbe(i,a),N=P({},r,{anchor:a,elevation:c,open:m,variant:S},C),R=vbe(N),B=M.jsx(Sbe,P({elevation:S==="temporary"?c:0,square:!0},b,{className:Je(R.paper,b.className),ownerState:N,children:l}));if(S==="permanent")return M.jsx(b8,P({className:Je(R.root,R.docked,u),ownerState:N,ref:n},C,{children:B}));const U=M.jsx(y,P({in:m,direction:bY[E],timeout:v,appear:w.current},O,{children:B}));return S==="persistent"?M.jsx(b8,P({className:Je(R.root,R.docked,u),ownerState:N,ref:n},C,{children:U})):M.jsx(Ebe,P({BackdropProps:P({},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}))}),xbe=kbe,Cbe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Abe=e=>{const{classes:t,disableUnderline:n}=e,i=kt({root:["root",!n&&"underline"],input:["input"]},Ime,t);return P({},t,i)},_be=Se(Tk,{shouldForwardProp:e=>Ji(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ek(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 P({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&&P({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}))}),Rbe=Se(wk,{name:"MuiFilledInput",slot:"Input",overridesResolver:Sk})(({theme:e,ownerState:t})=>P({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})),yY=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,Cbe),y=P({},s,{fullWidth:c,inputComponent:d,multiline:p,type:b}),v=Abe(s),S={root:{ownerState:y},input:{ownerState:y}},k=h??u?No(S,h??u):S,C=(r=(i=m.root)!=null?i:l.Root)!=null?r:_be,w=(o=(a=m.input)!=null?a:l.Input)!=null?o:Rbe;return M.jsx(MN,P({slots:{root:C,input:w},componentsProps:k,fullWidth:c,inputComponent:d,multiline:p,ref:n,type:b},O,{classes:v}))});yY.muiName="Input";const OY=yY;function Ibe(e){return At("MuiFormControl",e)}_t("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Dbe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Nbe=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${nt(n)}`,r&&"fullWidth"]};return kt(i,Ibe,t)},Pbe=Se("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>P({},t.root,t[`margin${nt(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>P({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%"})),Lbe=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,Dbe),v=P({},r,{color:a,component:s,disabled:l,error:u,fullWidth:d,hiddenLabel:p,margin:h,required:m,size:b,variant:O}),S=Nbe(v),[k,C]=I.useState(()=>{let V=!1;return i&&I.Children.forEach(i,z=>{if(!Ob(z,["Input","Select"]))return;const W=Ob(z,["Select"])?z.props.input:z;W&&vme(W.props)&&(V=!0)}),V}),[w,E]=I.useState(()=>{let V=!1;return i&&I.Children.forEach(i,z=>{Ob(z,["Input","Select"])&&(nT(z.props,!0)||nT(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 M.jsx(vk.Provider,{value:U,children:M.jsx(Pbe,P({as:s,ownerState:v,className:Je(S.root,o),ref:n},y,{children:i}))})}),Ip=Lbe,Mbe=yde({createStyledComponent:Se("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>gt({props:e,name:"MuiStack"})}),Li=Mbe;function $be(e){return At("MuiFormControlLabel",e)}const Fbe=_t("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),J0=Fbe,Bbe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Ube=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,$be,t)},jbe=Se("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${J0.label}`]:t.label},t.root,t[`labelPlacement${nt(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>P({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${J0.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},{[`& .${J0.label}`]:{[`&.${J0.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),zbe=Se("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${J0.error}`]:{color:(e.vars||e).palette.error.main}})),Vbe=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,Bbe),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=of({props:o,muiFormControl:O,states:["error"]}),C=P({},o,{disabled:y,labelPlacement:p,required:v,error:k.error}),w=Ube(C),E=(i=m.typography)!=null?i:s.typography;let $=d;return $!=null&&$.type!==Lr&&!c&&($=M.jsx(Lr,P({component:"span"},E,{className:Je(w.label,E==null?void 0:E.className),children:$}))),M.jsxs(jbe,P({className:Je(w.root,a),ownerState:C,ref:n},b,{children:[I.cloneElement(l,S),v?M.jsxs(Li,{display:"block",children:[$,M.jsxs(zbe,{ownerState:C,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]}):$]}))}),wy=Vbe;function Hbe(e){return At("MuiFormGroup",e)}_t("MuiFormGroup",["root","row","error"]);const Wbe=["className","row"],Qbe=e=>{const{classes:t,row:n,error:r}=e;return kt({root:["root",n&&"row",r&&"error"]},Hbe,t)},Ybe=Se("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>P({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),Gbe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiFormGroup"}),{className:i,row:o=!1}=r,a=Ge(r,Wbe),s=Du(),l=of({props:r,muiFormControl:s,states:["error"]}),u=P({},r,{row:o,error:l.error}),c=Qbe(u);return M.jsx(Ybe,P({className:Je(c.root,i),ownerState:u,ref:n},a))}),BN=Gbe;function qbe(e){return At("MuiFormHelperText",e)}const Zbe=_t("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),y8=Zbe;var O8;const Xbe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Kbe=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,qbe,t)},Jbe=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})=>P({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${y8.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${y8.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),eye=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiFormHelperText"}),{children:i,className:o,component:a="p"}=r,s=Ge(r,Xbe),l=Du(),u=of({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=P({},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=Kbe(c);return M.jsx(Jbe,P({as:a,ownerState:c,className:Je(d.root,o),ref:n},s,{children:i===" "?O8||(O8=M.jsx("span",{className:"notranslate",children:"​"})):i}))}),Tg=eye;function tye(e){return At("MuiFormLabel",e)}const Cb=_t("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),nye=["children","className","color","component","disabled","error","filled","focused","required"],rye=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,tye,t)},iye=Se("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>P({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>P({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Cb.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Cb.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Cb.error}`]:{color:(e.vars||e).palette.error.main}})),oye=Se("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Cb.error}`]:{color:(e.vars||e).palette.error.main}})),aye=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiFormLabel"}),{children:i,className:o,component:a="label"}=r,s=Ge(r,nye),l=Du(),u=of({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=P({},r,{color:u.color||"primary",component:a,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=rye(c);return M.jsxs(iye,P({as:a,ownerState:c,className:Je(d.root,o),ref:n},s,{children:[i,u.required&&M.jsxs(oye,{ownerState:c,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),Ck=aye,sye=I.createContext(),v8=sye;function lye(e){return At("MuiGrid",e)}const uye=[0,1,2,3,4,5,6,7,8,9,10],cye=["column-reverse","column","row-reverse","row"],dye=["nowrap","wrap-reverse","wrap"],m0=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],ky=_t("MuiGrid",["root","container","item","zeroMinWidth",...uye.map(e=>`spacing-xs-${e}`),...cye.map(e=>`direction-xs-${e}`),...dye.map(e=>`wrap-xs-${e}`),...m0.map(e=>`grid-xs-${e}`),...m0.map(e=>`grid-sm-${e}`),...m0.map(e=>`grid-md-${e}`),...m0.map(e=>`grid-lg-${e}`),...m0.map(e=>`grid-xl-${e}`)]),fye=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function sm(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function pye({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=ip({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} + ${sm(c)})`;u={flexBasis:d,maxWidth:d}}}o=P({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 hye({theme:e,ownerState:t}){const n=ip({values:t.direction,breakpoints:e.breakpoints.values});return Ra({theme:e},n,r=>{const i={flexDirection:r};return r.indexOf("column")===0&&(i[`& > .${ky.item}`]={maxWidth:"none"}),i})}function vY({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 mye({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let i={};if(n&&r!==0){const o=ip({values:r,breakpoints:e.breakpoints.values});let a;typeof o=="object"&&(a=vY({breakpoints:e.breakpoints.values,values:o})),i=Ra({theme:e},o,(s,l)=>{var u;const c=e.spacing(s);return c!=="0px"?{marginTop:`-${sm(c)}`,[`& > .${ky.item}`]:{paddingTop:sm(c)}}:(u=a)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${ky.item}`]:{paddingTop:0}}})}return i}function gye({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let i={};if(n&&r!==0){const o=ip({values:r,breakpoints:e.breakpoints.values});let a;typeof o=="object"&&(a=vY({breakpoints:e.breakpoints.values,values:o})),i=Ra({theme:e},o,(s,l)=>{var u;const c=e.spacing(s);return c!=="0px"?{width:`calc(100% + ${sm(c)})`,marginLeft:`-${sm(c)}`,[`& > .${ky.item}`]:{paddingLeft:sm(c)}}:(u=a)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${ky.item}`]:{paddingLeft:0}}})}return i}function bye(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 yye=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=bye(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})=>P({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}),hye,mye,gye,pye);function Oye(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 vye=e=>{const{classes:t,container:n,direction:r,item:i,spacing:o,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let u=[];n&&(u=Oye(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,lye,t)},Eye=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiGrid"}),{breakpoints:i}=ui(),o=pk(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,fye),v=h||m,S=l||m,k=I.useContext(v8),C=c?s||12:k,w={},E=P({},y);i.keys.forEach(R=>{y[R]!=null&&(w[R]=y[R],delete E[R])});const $=P({},o,{columns:C,container:c,direction:d,item:p,rowSpacing:v,columnSpacing:S,wrap:b,zeroMinWidth:O,spacing:m},w,{breakpoints:i.keys}),N=vye($);return M.jsx(v8.Provider,{value:C,children:M.jsx(yye,P({ownerState:$,className:Je(N.root,a),as:u,ref:n},E))})}),zh=Eye,Sye=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function L_(e){return`scale(${e}, ${e**2})`}const Tye={entering:{opacity:1,transform:L_(1)},entered:{opacity:1,transform:"none"}},BC=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),EY=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=j1}=t,y=Ge(t,Sye),v=I.useRef(),S=I.useRef(),k=ui(),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)=>{CN(W);const{duration:q,delay:Y,easing:Z}=zd({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:BC?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}=zd({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:BC?Z:Z*.666,delay:BC?q:q||Z*.333,easing:Y})].join(","),W.style.opacity=0,W.style.transform=L_(.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)},[]),M.jsx(O,P({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,P({style:P({opacity:0,transform:L_(.75),visibility:W==="exited"&&!s?"hidden":void 0},Tye[W],m,o.props.style),ref:w},X))}))});EY.muiSupportAuto=!0;const rT=EY;function wye(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 SY=I.useSyncExternalStore;function kye(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 SY(l,s,a)}function wg(e,t={}){const n=fk(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:o=r?window.matchMedia:null,ssrMatchMedia:a=null,noSsr:s=!1}=jQ({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(SY!==void 0?kye:wye)(l,i,o,a,s)}const xye=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Cye=e=>{const{classes:t,disableUnderline:n}=e,i=kt({root:["root",!n&&"underline"],input:["input"]},Cme,t);return P({},t,i)},Aye=Se(Tk,{shouldForwardProp:e=>Ji(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ek(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})`),P({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"}})}),_ye=Se(wk,{name:"MuiInput",slot:"Input",overridesResolver:Sk})({}),TY=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,xye),v=Cye(s),k={root:{ownerState:{disableUnderline:l}}},C=m??c?No(m??c,k):k,w=(r=(i=b.root)!=null?i:u.Root)!=null?r:Aye,E=(o=(a=b.input)!=null?a:u.Input)!=null?o:_ye;return M.jsx(MN,P({slots:{root:w,input:E},slotProps:C,fullWidth:d,inputComponent:p,multiline:h,ref:n,type:O},y,{classes:v}))});TY.muiName="Input";const wY=TY;function Rye(e){return At("MuiInputAdornment",e)}const Iye=_t("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),E8=Iye;var S8;const Dye=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Nye=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${nt(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},Pye=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,Rye,t)},Lye=Se("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Nye})(({theme:e,ownerState:t})=>P({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${E8.positionStart}&:not(.${E8.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Mye=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,Dye),p=Du()||{};let h=c;c&&p.variant,p&&!h&&(h=p.variant);const m=P({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:u,variant:h}),b=Pye(m);return M.jsx(vk.Provider,{value:null,children:M.jsx(Lye,P({as:a,ownerState:m,className:Je(b.root,o),ref:n},d,{children:typeof i=="string"&&!l?M.jsx(Lr,{color:"text.secondary",children:i}):M.jsxs(I.Fragment,{children:[u==="start"?S8||(S8=M.jsx("span",{className:"notranslate",children:"​"})):null,i]})}))})}),UN=Mye;function $ye(e){return At("MuiInputLabel",e)}_t("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Fye=["disableAnimation","margin","shrink","variant","className"],Bye=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,$ye,t);return P({},t,u)},Uye=Se(Ck,{shouldForwardProp:e=>Ji(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Cb.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})=>P({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"&&P({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&&P({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"&&P({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)"}))),jye=I.forwardRef(function(t,n){const r=gt({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:o,className:a}=r,s=Ge(r,Fye),l=Du();let u=o;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=of({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),d=P({},r,{disableAnimation:i,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),p=Bye(d);return M.jsx(Uye,P({"data-shrink":u,ownerState:d,ref:n,className:Je(p.root,a)},s,{classes:p}))}),kY=jye,zye=I.createContext({}),Qs=zye;function Vye(e){return At("MuiList",e)}_t("MuiList",["root","padding","dense","subheader"]);const Hye=["children","className","component","dense","disablePadding","subheader"],Wye=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return kt({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},Vye,t)},Qye=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})=>P({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Yye=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,Hye),d=I.useMemo(()=>({dense:s}),[s]),p=P({},r,{component:a,dense:s,disablePadding:l}),h=Wye(p);return M.jsx(Qs.Provider,{value:d,children:M.jsxs(Qye,P({as:a,className:Je(h.root,o),ref:n,ownerState:p},c,{children:[u,i]}))})}),xY=Yye;function Gye(e){return At("MuiListItem",e)}const qye=_t("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Oh=qye;function Zye(e){return At("MuiListItemButton",e)}const Xye=_t("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),vh=Xye,Kye=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Jye=(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]},e1e=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"]},Zye,n);return P({},n,u)},t1e=Se(hs,{shouldForwardProp:e=>Ji(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:Jye})(({theme:e,ownerState:t})=>P({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"}},[`&.${vh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${vh.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)}},[`&.${vh.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)}},[`&.${vh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${vh.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})),n1e=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,Kye),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=P({},r,{alignItems:i,dense:O.dense,disableGutters:u,divider:c,selected:p}),S=e1e(v),k=yn(y,n);return M.jsx(Qs.Provider,{value:O,children:M.jsx(t1e,P({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}))})}),UC=n1e;function r1e(e){return At("MuiListItemSecondaryAction",e)}_t("MuiListItemSecondaryAction",["root","disableGutters"]);const i1e=["className"],o1e=e=>{const{disableGutters:t,classes:n}=e;return kt({root:["root",t&&"disableGutters"]},r1e,n)},a1e=Se("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>P({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),CY=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=r,o=Ge(r,i1e),a=I.useContext(Qs),s=P({},r,{disableGutters:a.disableGutters}),l=o1e(s);return M.jsx(a1e,P({className:Je(l.root,i),ownerState:s,ref:n},o))});CY.muiName="ListItemSecondaryAction";const iT=CY,s1e=["className"],l1e=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],u1e=(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]},c1e=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"]},Gye,r)},d1e=Se("div",{name:"MuiListItem",slot:"Root",overridesResolver:u1e})(({theme:e,ownerState:t})=>P({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&P({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${vh.root}`]:{paddingRight:48}},{[`&.${Oh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Oh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Oh.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)}},[`&.${Oh.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"}},[`&.${Oh.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})),f1e=Se("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),p1e=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,s1e),N=Ge(r,l1e),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&&Ob(V[V.length-1],["ListItemSecondaryAction"]),W=P({},r,{alignItems:i,autoFocus:o,button:a,dense:B.dense,disabled:b,disableGutters:O,disablePadding:y,divider:v,hasSecondaryAction:z,selected:C}),X=c1e(W),q=yn(U,n),Y=E.root||c.Root||d1e,Z=w.root||d.root||{},j=P({className:Je(X.root,Z.className,l),disabled:b},N);let se=u||"li";return a&&(j.component=u||"div",j.focusVisibleClassName=Je(Oh.focusVisible,S),se=hs),z?(se=!j.component&&!u?"div":se,p==="li"&&(se==="li"?se="div":j.component==="li"&&(j.component="div")),M.jsx(Qs.Provider,{value:B,children:M.jsxs(f1e,P({as:p,className:Je(X.container,h),ref:q,ownerState:W},$,{children:[M.jsx(Y,P({},Z,!ku(Y)&&{as:se,ownerState:P({},W,Z.ownerState)},j,{children:V})),V.pop()]}))})):M.jsx(Qs.Provider,{value:B,children:M.jsxs(Y,P({},Z,{as:se,ref:q},!ku(Y)&&{ownerState:P({},W,Z.ownerState)},j,{children:[V,k&&M.jsx(iT,{children:k})]}))})}),Eh=p1e;function h1e(e){return At("MuiListItemAvatar",e)}_t("MuiListItemAvatar",["root","alignItemsFlexStart"]);const m1e=["className"],g1e=e=>{const{alignItems:t,classes:n}=e;return kt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},h1e,n)},b1e=Se("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>P({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),y1e=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiListItemAvatar"}),{className:i}=r,o=Ge(r,m1e),a=I.useContext(Qs),s=P({},r,{alignItems:a.alignItems}),l=g1e(s);return M.jsx(b1e,P({className:Je(l.root,i),ownerState:s,ref:n},o))}),O1e=y1e;function v1e(e){return At("MuiListItemIcon",e)}const E1e=_t("MuiListItemIcon",["root","alignItemsFlexStart"]),T8=E1e,S1e=["className"],T1e=e=>{const{alignItems:t,classes:n}=e;return kt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},v1e,n)},w1e=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})=>P({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),k1e=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiListItemIcon"}),{className:i}=r,o=Ge(r,S1e),a=I.useContext(Qs),s=P({},r,{alignItems:a.alignItems}),l=T1e(s);return M.jsx(w1e,P({className:Je(l.root,i),ownerState:s,ref:n},o))}),jN=k1e;function x1e(e){return At("MuiListItemText",e)}const C1e=_t("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),oT=C1e,A1e=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],_1e=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"]},x1e,t)},R1e=Se("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${oT.primary}`]:t.primary},{[`& .${oT.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>P({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),I1e=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,A1e),{dense:h}=I.useContext(Qs);let m=l??i,b=c;const O=P({},r,{disableTypography:a,inset:s,primary:!!m,secondary:!!b,dense:h}),y=_1e(O);return m!=null&&m.type!==Lr&&!a&&(m=M.jsx(Lr,P({variant:h?"body2":"body1",className:y.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:m}))),b!=null&&b.type!==Lr&&!a&&(b=M.jsx(Lr,P({variant:"body2",className:y.secondary,color:"text.secondary",display:"block"},d,{children:b}))),M.jsxs(R1e,P({className:Je(y.root,o),ownerState:O,ref:n},p,{children:[m,b]}))}),ap=I1e,D1e=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function jC(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function w8(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function AY(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 g0(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")||!AY(s,o)||l)s=i(e,s,n);else return s.focus(),!0}return!1}const N1e=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,D1e),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=br(k).activeElement;if(C==="ArrowDown")S.preventDefault(),g0(k,w,u,l,jC);else if(C==="ArrowUp")S.preventDefault(),g0(k,w,u,l,w8);else if(C==="Home")S.preventDefault(),g0(k,null,u,l,jC);else if(C==="End")S.preventDefault(),g0(k,null,u,l,w8);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&&AY(w,E);E.previousKeyMatched&&(R||g0(k,w,!1,l,jC,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 M.jsx(xY,P({role:"menu",ref:O,className:s,onKeyDown:b,tabIndex:i?0:-1},p,{children:v}))}),Q1=N1e;function P1e(e){return At("MuiPopover",e)}_t("MuiPopover",["root","paper"]);const L1e=["onEntering"],M1e=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],$1e=["slotProps"];function k8(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function x8(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function C8(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function zC(e){return typeof e=="function"?e():e}const F1e=e=>{const{classes:t}=e;return kt({root:["root"],paper:["paper"]},P1e,t)},B1e=Se(W1,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_Y=Se(Da,{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}),U1e=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=rT,transitionDuration:E="auto",TransitionProps:{onEntering:$}={},disableScrollLock:N=!1}=a,R=Ge(a.TransitionProps,L1e),B=Ge(a,M1e),U=(r=k==null?void 0:k.paper)!=null?r:v,V=I.useRef(),z=yn(V,U.ref),W=P({},a,{anchorOrigin:u,anchorReference:d,elevation:b,marginThreshold:O,externalPaperSlotProps:U,transformOrigin:C,TransitionComponent:w,transitionDuration:E,TransitionProps:R}),X=F1e(W),q=I.useCallback(()=>{if(d==="anchorPosition")return c;const ye=zC(l),$e=(ye&&ye.nodeType===1?ye:br(V.current).body).getBoundingClientRect();return{top:$e.top+k8($e,u.vertical),left:$e.left+x8($e,u.horizontal)}},[l,u.horizontal,u.vertical,c,d]),Y=I.useCallback(ye=>({vertical:k8(ye,C.vertical),horizontal:x8(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:C8($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(zC(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:C8($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=Og(()=>{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?br(zC(l)).body:void 0),xe=(i=S==null?void 0:S.root)!=null?i:B1e,Ne=(o=S==null?void 0:S.paper)!=null?o:_Y,Ve=kn({elementType:Ne,externalSlotProps:P({},U,{style:j?U.style:P({},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,$1e);return M.jsx(xe,P({},Ye,!ku(xe)&&{slotProps:Me,disableScrollLock:N},{children:M.jsx(w,P({appear:!0,in:y,onEntering:G,onExited:ce,timeout:ge},R,{children:M.jsx(Ne,P({},Ve,{children:p}))}))}))}),zN=U1e;function j1e(e){return At("MuiMenu",e)}_t("MuiMenu",["root","paper","list"]);const z1e=["onEntering"],V1e=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],H1e={vertical:"top",horizontal:"right"},W1e={vertical:"top",horizontal:"left"},Q1e=e=>{const{classes:t}=e;return kt({root:["root"],paper:["paper"],list:["list"]},j1e,t)},Y1e=Se(zN,{shouldForwardProp:e=>Ji(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),G1e=Se(_Y,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),q1e=Se(Q1,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Z1e=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,z1e),C=Ge(o,V1e),w=ui(),E=w.direction==="rtl",$=P({},o,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:O,PaperProps:h,transitionDuration:b,TransitionProps:k,variant:y}),N=Q1e($),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:G1e,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 M.jsx(Y1e,P({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?H1e:W1e,slots:{paper:W,root:v.root},slotProps:{root:q,paper:Y},open:p,ref:n,transitionDuration:b,TransitionProps:P({onEntering:U},k),ownerState:$},C,{classes:m,children:M.jsx(q1e,P({onKeyDown:V,actions:B,autoFocus:a&&(z===-1||u),autoFocusItem:R,variant:y},c,{className:Je(N.list,c.className),children:s}))}))}),X1e=Z1e;function K1e(e){return At("MuiMenuItem",e)}const J1e=_t("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),b0=J1e,eOe=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],tOe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},nOe=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"]},K1e,a);return P({},a,l)},rOe=Se(hs,{shouldForwardProp:e=>Ji(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:tOe})(({theme:e,ownerState:t})=>P({},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"}},[`&.${b0.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${b0.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)}},[`&.${b0.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)}},[`&.${b0.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${b0.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${g8.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${g8.inset}`]:{marginLeft:52},[`& .${oT.root}`]:{marginTop:0,marginBottom:0},[`& .${oT.inset}`]:{paddingLeft:36},[`& .${T8.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&P({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${T8.root} svg`]:{fontSize:"1.25rem"}}))),iOe=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,eOe),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=P({},r,{dense:b.dense,divider:s,disableGutters:l}),v=nOe(r),S=yn(O,n);let k;return r.disabled||(k=d!==void 0?d:-1),M.jsx(Qs.Provider,{value:b,children:M.jsx(rOe,P({ref:S,role:c,tabIndex:k,component:o,focusVisibleClassName:Je(v.focusVisible,u),className:Je(v.root,p)},h,{ownerState:y,classes:v}))})}),bp=iOe;function oOe(e){return At("MuiNativeSelect",e)}const aOe=_t("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),VN=aOe,sOe=["className","disabled","error","IconComponent","inputRef","variant"],lOe=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,oOe,t)},RY=({ownerState:e,theme:t})=>P({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":P({},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"},[`&.${VN.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}}),uOe=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,{[`&.${VN.multiple}`]:t.multiple}]}})(RY),IY=({ownerState:e,theme:t})=>P({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${VN.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),cOe=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]}})(IY),dOe=I.forwardRef(function(t,n){const{className:r,disabled:i,error:o,IconComponent:a,inputRef:s,variant:l="standard"}=t,u=Ge(t,sOe),c=P({},t,{disabled:i,variant:l,error:o}),d=lOe(c);return M.jsxs(I.Fragment,{children:[M.jsx(uOe,P({ownerState:c,className:Je(d.select,r),disabled:i,ref:s||n},u)),t.multiple?null:M.jsx(cOe,{as:a,ownerState:c,className:d.icon})]})}),fOe=dOe;var A8;const pOe=["children","classes","className","label","notched"],hOe=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%"}),mOe=Se("legend",{shouldForwardProp:Ji})(({ownerState:e,theme:t})=>P({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&&P({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 gOe(e){const{className:t,label:n,notched:r}=e,i=Ge(e,pOe),o=n!=null&&n!=="",a=P({},e,{notched:r,withLabel:o});return M.jsx(hOe,P({"aria-hidden":!0,className:t,ownerState:a},i,{children:M.jsx(mOe,{ownerState:a,children:o?M.jsx("span",{children:n}):A8||(A8=M.jsx("span",{className:"notranslate",children:"​"}))})}))}const bOe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],yOe=e=>{const{classes:t}=e,r=kt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},_me,t);return P({},t,r)},OOe=Se(Tk,{shouldForwardProp:e=>Ji(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ek})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return P({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&&P({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),vOe=Se(gOe,{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}}),EOe=Se(wk,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Sk})(({theme:e,ownerState:t})=>P({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})),DY=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,bOe),v=yOe(l),S=Du(),k=of({props:l,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),C=P({},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:OOe,E=(o=(a=b.input)!=null?a:u.Input)!=null?o:EOe;return M.jsx(MN,P({slots:{root:w,input:E},renderSuffix:$=>M.jsx(vOe,{ownerState:C,className:v.notchedOutline,label:p!=null&&p!==""&&k.required?s||(s=M.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:P({},v,{notchedOutline:null})}))});DY.muiName="Input";const NY=DY,SOe=wi(M.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"),TOe=wi(M.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"),wOe=Se("span",{shouldForwardProp:Ji})({position:"relative",display:"flex"}),kOe=Se(SOe)({transform:"scale(1)"}),xOe=Se(TOe)(({theme:e,ownerState:t})=>P({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 PY(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i=P({},e,{checked:t});return M.jsxs(wOe,{className:n.root,ownerState:i,children:[M.jsx(kOe,{fontSize:r,className:n.background,ownerState:i}),M.jsx(xOe,{fontSize:r,className:n.dot,ownerState:i})]})}const COe=I.createContext(void 0),LY=COe;function AOe(){return I.useContext(LY)}function _Oe(e){return At("MuiRadio",e)}const _8=_t("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),ROe=["checked","checkedIcon","color","icon","name","onChange","size","className"],IOe=e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${nt(n)}`,r!=="medium"&&`size${nt(r)}`]};return P({},t,kt(i,_Oe,t))},DOe=Se(FN,{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})=>P({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"&&{[`&.${_8.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${_8.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function NOe(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const R8=M.jsx(PY,{checked:!0}),I8=M.jsx(PY,{}),POe=I.forwardRef(function(t,n){var r,i;const o=gt({props:t,name:"MuiRadio"}),{checked:a,checkedIcon:s=R8,color:l="primary",icon:u=I8,name:c,onChange:d,size:p="medium",className:h}=o,m=Ge(o,ROe),b=P({},o,{color:l,size:p}),O=IOe(b),y=AOe();let v=a;const S=qS(d,y&&y.onChange);let k=c;return y&&(typeof v>"u"&&(v=NOe(y.value,o.value)),typeof k>"u"&&(k=y.name)),M.jsx(DOe,P({type:"radio",icon:I.cloneElement(u,{fontSize:(r=I8.props.fontSize)!=null?r:p}),checkedIcon:I.cloneElement(s,{fontSize:(i=R8.props.fontSize)!=null?i:p}),ownerState:b,classes:O,name:k,checked:v,onChange:S,ref:n,className:Je(O.root,h)},m))}),D8=POe,LOe=["actions","children","defaultValue","name","onChange","value"],MOe=I.forwardRef(function(t,n){const{actions:r,children:i,defaultValue:o,name:a,onChange:s,value:l}=t,u=Ge(t,LOe),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 M.jsx(LY.Provider,{value:b,children:M.jsx(BN,P({role:"radiogroup",ref:h},u,{children:i}))})}),$Oe=MOe;function FOe(e){return At("MuiSelect",e)}const y0=_t("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var N8;const BOe=["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"],UOe=Se("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${y0.select}`]:t.select},{[`&.${y0.select}`]:t[n.variant]},{[`&.${y0.error}`]:t.error},{[`&.${y0.multiple}`]:t.multiple}]}})(RY,{[`&.${y0.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),jOe=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]}})(IY),zOe=Se("input",{shouldForwardProp:e=>EN(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 P8(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function VOe(e){return e==null||typeof e=="string"&&!e.trim()}const HOe=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,FOe,t)},WOe=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,BOe),[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=br(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;(nT({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(Ud(2));vt=Y.some(qe=>P8(qe,et.props.value)),vt&&De&&Le.push(et.props.children)}else vt=P8(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},HN={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ji(e)&&e!=="variant",slot:"Root"},ZOe=Se(wY,HN)(""),XOe=Se(NY,HN)(""),KOe=Se(OY,HN)(""),MY=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=dY,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,YOe),R=v?fOe:QOe,B=Du(),U=of({props:r,muiFormControl:B,states:["variant","error"]}),V=U.variant||$,z=P({},r,{variant:V,classes:a}),W=qOe(z),X=Ge(W,GOe),q=p||{standard:M.jsx(ZOe,{ownerState:z}),outlined:M.jsx(XOe,{label:m,ownerState:z}),filled:M.jsx(KOe,{ownerState:z})}[V],Y=yn(n,q.ref);return M.jsx(I.Fragment,{children:I.cloneElement(q,P({inputComponent:R,inputProps:P({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:P({id:d},E)},h,{classes:h?No(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))})});MY.muiName="Select";const $Y=MY,JOe=e=>!e||!ku(e);function eve(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"]),tve=e=>{const{open:t}=e;return{offset:Je(t&&wl.valueLabelOpen),circle:wl.valueLabelCircle,label:wl.valueLabelLabel}};function nve(e){const{children:t,className:n,value:r}=e,i=tve(e);return t?I.cloneElement(t,{className:Je(t.props.className)},M.jsxs(I.Fragment,{children:[t.props.children,M.jsx("span",{className:Je(i.offset,n),"aria-hidden":!0,children:M.jsx("span",{className:i.circle,children:M.jsx("span",{className:i.label,children:r})})})]})):null}const rve=["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 L8(e){return e}const ive=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})=>P({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"&&P({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"&&P({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"}}})),ove=Se("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>P({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})),ave=Se("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?gk(e.palette[t.color].main,.62):mk(e.palette[t.color].main,.5);return P({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})}),sve=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})=>P({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":P({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"}}})),lve=Se(nve,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>P({[`&.${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"})),uve=Se("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>EN(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>P({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})),cve=Se("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>EN(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>P({},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})),dve=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,eve,a)},fve=({children:e})=>e,pve=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=ui().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=L8,slotProps:ze,slots:$e,track:We="normal",valueLabelDisplay:dt="off",valueLabelFormat:Be=L8}=B,re=Ge(B,rve),ee=P({},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}=Zhe(P({},ee,{rootRef:n}));ee.marked=pt.length>0&&pt.some(Ue=>Ue.label),ee.dragging=rt,ee.focusedThumbIndex=Oe;const it=dve(ee),Et=(r=(i=$e==null?void 0:$e.root)!=null?i:Y.Root)!=null?r:ive,Nt=(o=(a=$e==null?void 0:$e.rail)!=null?a:Y.Rail)!=null?o:ove,on=(s=(l=$e==null?void 0:$e.track)!=null?l:Y.Track)!=null?s:ave,dn=(u=(c=$e==null?void 0:$e.thumb)!=null?c:Y.Thumb)!=null?u:sve,pn=(d=(p=$e==null?void 0:$e.valueLabel)!=null?p:Y.ValueLabel)!=null?d:lve,zn=(h=(m=$e==null?void 0:$e.mark)!=null?m:Y.Mark)!=null?h:uve,Ee=(b=(O=$e==null?void 0:$e.markLabel)!=null?O:Y.MarkLabel)!=null?b:cve,_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:P({},JOe(Et)&&{as:q}),ownerState:P({},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:P({},J[de].offset(et),J[de].leap(vt))},ownerState:P({},ee,at==null?void 0:at.ownerState),className:it.track}),ot=kn({elementType:dn,getSlotProps:De,externalSlotProps:Mt,ownerState:P({},ee,Mt==null?void 0:Mt.ownerState),className:it.thumb}),rn=kn({elementType:pn,externalSlotProps:$t,ownerState:P({},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 M.jsxs(Et,P({},Ie,{children:[M.jsx(Nt,P({},we)),M.jsx(on,P({},Qe)),pt.filter(Ue=>Ue.value>=Ve&&Ue.value<=Ne).map((Ue,Ce)=>{const mt=tT(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]),M.jsxs(I.Fragment,{children:[M.jsx(zn,P({"data-index":Ce},Wt,!ku(zn)&&{markActive:tn},{style:P({},Dt,Wt.style),className:Je(Wt.className,tn&&it.markActive)})),Ue.label!=null?M.jsx(Ee,P({"aria-hidden":!0,"data-index":Ce},mn,!ku(Ee)&&{markLabelActive:tn},{style:P({},Dt,mn.style),className:Je(it.markLabel,mn.className,tn&&it.markLabelActive),children:Ue.label})):null]},Ce)}),xt.map((Ue,Ce)=>{const mt=tT(Ue,Ve,Ne),Dt=J[de].offset(mt),tn=dt==="off"?fve:pn;return M.jsx(tn,P({},!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:M.jsx(dn,P({"data-index":Ce},ot,{className:Je(it.thumb,ot.className,fe===Ce&&it.active,Oe===Ce&&it.focusVisible),style:P({},Dt,qe(Ce),ot.style),children:M.jsx(_e,P({"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)})]}))}),hve=pve;function mve(e){return At("MuiTooltip",e)}const gve=_t("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),md=gve,bve=["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 yve(e){return Math.round(e*1e5)/1e5}const Ove=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,mve,t)},vve=Se(H1,{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})=>P({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${md.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${md.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${md.arrow}`]:P({},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"] .${md.arrow}`]:P({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Eve=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})=>P({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:`${yve(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${md.popper}[data-popper-placement*="left"] &`]:P({transformOrigin:"right center"},t.isRtl?P({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):P({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${md.popper}[data-popper-placement*="right"] &`]:P({transformOrigin:"left center"},t.isRtl?P({marginRight:"14px"},t.touch&&{marginRight:"24px"}):P({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${md.popper}[data-popper-placement*="top"] &`]:P({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${md.popper}[data-popper-placement*="bottom"] &`]:P({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Sve=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 kv=!1,VC=null,O0={x:0,y:0};function xv(e,t){return n=>{t&&t(n),e(n)}}const Tve=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=rT,TransitionProps:ye}=w,ze=Ge(w,bve),$e=I.isValidElement($)?$:M.jsx("span",{children:$}),We=ui(),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(VC),kv=!0,Te(!0),ce&&!rt&&ce(Kt)},qe=jt(Kt=>{clearTimeout(VC),VC=setTimeout(()=>{kv=!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||kv&&q?ie.current=setTimeout(()=>{vt(Kt)},kv?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}=rk(),[,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),O0={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=P({},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=xv(lt,Qe.onMouseOver),Qe.onMouseLeave=xv(at,Qe.onMouseLeave),Le||(ot.onMouseOver=lt,ot.onMouseLeave=at)),U||(Qe.onFocus=xv(_e,Qe.onFocus),Qe.onBlur=xv(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)),P({},Ne.popperOptions,{modifiers:bn})},[ee,Ne]),Wt=P({},w,{isRtl:dt,arrow:E,disableInteractive:Le,placement:ue,PopperComponentProp:xe,touch:Re.current}),mn=Ove(Wt),tr=(r=(i=Ke.popper)!=null?i:N.Popper)!=null?r:vve,Ue=(o=(a=(s=Ke.transition)!=null?s:N.Transition)!=null?a:Ye)!=null?o:rT,Ce=(l=(u=Ke.tooltip)!=null?u:N.Tooltip)!=null?l:Eve,mt=(c=(d=Ke.arrow)!=null?d:N.Arrow)!=null?c:Sve,Dt=K0(tr,P({},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=K0(Ue,P({},ye,(b=Ve.transition)!=null?b:R.transition),Wt),Mn=K0(Ce,P({},(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=K0(mt,P({},(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 M.jsxs(I.Fragment,{children:[I.cloneElement($e,Qe),M.jsx(tr,P({as:xe??H1,placement:ue,anchorEl:Z?{getBoundingClientRect:()=>({top:O0.y,left:O0.x,right:O0.x,bottom:O0.y,width:0,height:0})}:Be,popperRef:Ct,open:Be?rt:!1,id:pt,transition:!0},ot,Dt,{popperOptions:rn,children:({TransitionProps:Kt})=>M.jsx(Ue,P({timeout:We.transitions.duration.shorter},Kt,tn,{children:M.jsxs(Ce,P({},Mn,{children:[Me,E?M.jsx(mt,P({},Dn,{ref:J})):null]}))}))}))]})}),Cv=Tve;function wve(e){return At("MuiSwitch",e)}const kve=_t("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Zo=kve,xve=["className","color","edge","size","sx"],Cve=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,wve,t);return P({},t,l)},Ave=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})=>P({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)"}}})),_ve=Se(FN,{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})=>P({"&: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"?gk(e.palette[t.color].main,.62):mk(e.palette[t.color].main,.55)}`}},[`&.${Zo.checked} + .${Zo.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),Rve=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}`})),Ive=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%"})),Dve=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,xve),c=P({},r,{color:o,edge:a,size:s}),d=Cve(c),p=M.jsx(Ive,{className:d.thumb,ownerState:c});return M.jsxs(Ave,{className:Je(d.root,i),sx:l,ownerState:c,children:[M.jsx(_ve,P({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:c},u,{classes:P({},d,{root:d.switchBase})})),M.jsx(Rve,{className:d.track,ownerState:c})]})}),Nve=Dve;function Pve(e){return At("MuiTab",e)}const Lve=_t("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),bf=Lve,Mve=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],$ve=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,Pve,t)},Fve=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})=>P({},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,[`& > .${bf.iconWrapper}`]:P({},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,[`&.${bf.selected}`]:{opacity:1},[`&.${bf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${bf.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${bf.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${bf.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${bf.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)})),Bve=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,Mve),C=P({},r,{disabled:o,disableFocusRipple:a,selected:b,icon:!!l,iconPosition:u,label:!!d,fullWidth:s,textColor:y,wrapped:S}),w=$ve(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 M.jsxs(Fve,P({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"?M.jsxs(I.Fragment,{children:[E,d]}):M.jsxs(I.Fragment,{children:[d,E]}),c]}))}),M8=Bve;function Uve(e){return At("MuiToolbar",e)}_t("MuiToolbar",["root","gutters","regular","dense"]);const jve=["className","component","disableGutters","variant"],zve=e=>{const{classes:t,disableGutters:n,variant:r}=e;return kt({root:["root",!n&&"gutters",r]},Uve,t)},Vve=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})=>P({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),Hve=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,jve),u=P({},r,{component:o,disableGutters:a,variant:s}),c=zve(u);return M.jsx(Vve,P({as:o,className:Je(c.root,i),ref:n,ownerState:u},l))}),Wve=Hve,Qve=wi(M.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Yve=wi(M.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Gve(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function qve(e,t,n,r={},i=()=>{}){const{ease:o=Gve,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 Zve=["onChange"],Xve={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Kve(e){const{onChange:t}=e,n=Ge(e,Zve),r=I.useRef(),i=I.useRef(null),o=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return Kr(()=>{const a=Og(()=>{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]),M.jsx("div",P({style:Xve,ref:i},n))}function Jve(e){return At("MuiTabScrollButton",e)}const eEe=_t("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),tEe=eEe,nEe=["className","slots","slotProps","direction","orientation","disabled"],rEe=e=>{const{classes:t,orientation:n,disabled:r}=e;return kt({root:["root",n,r&&"disabled"]},Jve,t)},iEe=Se(hs,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>P({width:40,flexShrink:0,opacity:.8,[`&.${tEe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),oEe=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,nEe),p=ui().direction==="rtl",h=P({isRtl:p},o),m=rEe(h),b=(r=s.StartScrollButtonIcon)!=null?r:Qve,O=(i=s.EndScrollButtonIcon)!=null?i:Yve,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 M.jsx(iEe,P({component:"div",className:Je(m.root,a),ref:n,role:null,ownerState:h,tabIndex:null},c,{children:u==="left"?M.jsx(b,P({},y)):M.jsx(O,P({},v))}))}),aEe=oEe;function sEe(e){return At("MuiTabs",e)}const lEe=_t("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),BE=lEe,uEe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],$8=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,F8=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Av=(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}}},cEe=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"]},sEe,l)},dEe=Se("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${BE.scrollButtons}`]:t.scrollButtons},{[`& .${BE.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>P({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${BE.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),fEe=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})=>P({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"})),pEe=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})=>P({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),hEe=Se("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>P({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})),mEe=Se(Kve)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),B8={},gEe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiTabs"}),i=ui(),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=aEe,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,uEe),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=P({},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=cEe(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(B8),[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:Iue(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?qve(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&&DQ()==="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?M.jsx(mEe,{onChange:fe,className:Je(se.scrollableX,se.hideScrollbar)}):null;const Et=V&&(v==="auto"&&(Ne||Ke)||v===!0);return qe.scrollButtonStart=Et?M.jsx(y,P({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?M.jsx(y,P({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=Og(()=>{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(B8!==ue)},[Oe,ue]),I.useImperativeHandle(l,()=>({updateIndicator:ee,updateScrollButtons:Te}),[ee,Te]);const rt=M.jsx(hEe,P({},w,{className:Je(se.indicator,w.className),ownerState:j,style:P({},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,P({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=br(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(),Av(it,Et,F8);break;case dn:qe.preventDefault(),Av(it,Et,$8);break;case"Home":qe.preventDefault(),Av(it,null,$8);break;case"End":qe.preventDefault(),Av(it,null,F8);break}},vt=de();return M.jsxs(dEe,P({className:Je(se.root,d),ownerState:j,ref:n,as:p},U,{children:[vt.scrollButtonStart,vt.scrollbarSizeListener,M.jsxs(fEe,{className:se.scroller,ownerState:j,style:{overflow:ze.overflow,[z?`margin${o?"Left":"Right"}`:"marginBottom"]:B?void 0:-ze.scrollbarWidth},ref:dt,children:[M.jsx(pEe,{"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]}))}),bEe=gEe;function yEe(e){return At("MuiTextField",e)}_t("MuiTextField",["root"]);const OEe=["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"],vEe={standard:wY,filled:OY,outlined:NY},EEe=e=>{const{classes:t}=e;return kt({root:["root"]},yEe,t)},SEe=Se(Ip,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),TEe=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,OEe),se=P({},r,{autoFocus:o,color:l,disabled:c,error:d,fullWidth:h,multiline:E,required:V,select:W,variant:Z}),ve=EEe(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=vEe[Z],Ne=M.jsx(xe,P({"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 M.jsxs(SEe,P({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!==""&&M.jsx(kY,P({htmlFor:ce,id:ue},O,{children:k})),W?M.jsx($Y,P({"aria-describedby":ge,id:ce,labelId:ue,value:Y,input:Ne},X,{children:a})):Ne,m&&M.jsx(Tg,P({id:ge},p,{children:m}))]}))}),Dp=TEe;function wEe(e){return At("MuiToggleButton",e)}const kEe=_t("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),Vh=kEe,xEe=I.createContext({}),FY=xEe,CEe=I.createContext(void 0),BY=CEe;function AEe(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.indexOf(e)>=0:e===t}const _Ee=["value"],REe=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],IEe=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,wEe,t)},DEe=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),P({},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%"},{[`&.${Vh.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"}},[`&.${Vh.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)})}),NEe=I.forwardRef(function(t,n){const r=I.useContext(FY),{value:i}=r,o=Ge(r,_Ee),a=I.useContext(BY),s=ik(P({},o,{selected:AEe(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,REe),C=P({},l,{color:d,disabled:p,disableFocusRipple:h,fullWidth:m,size:v}),w=IEe(C),E=N=>{O&&(O(N,S),N.defaultPrevented)||b&&b(N,S)},$=a||"";return M.jsx(DEe,P({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}))}),HC=NEe;function PEe(e){return At("MuiToggleButtonGroup",e)}const LEe=_t("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),zr=LEe,MEe=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],$Ee=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,PEe,t)},FEe=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})=>P({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},e.orientation==="vertical"&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${zr.grouped}`]:P({},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}.${Vh.disabled},& .${zr.middleButton}.${Vh.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${zr.lastButton}.${Vh.disabled},& .${zr.middleButton}.${Vh.disabled}`]:{borderTop:"1px solid transparent"}})),BEe=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,MEe),b=P({},r,{disabled:s,fullWidth:u,orientation:d,size:p}),O=$Ee(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=Nue(i),C=k.length,w=E=>{const $=E===0,N=E===C-1;return $&&N?"":$?O.firstButton:N?O.lastButton:O.middleButton};return M.jsx(FEe,P({role:"group",className:Je(O.root,o),ref:n,ownerState:b},m,{children:M.jsx(FY.Provider,{value:S,children:k.map((E,$)=>M.jsx(BY.Provider,{value:w($),children:E},$))})}))}),UEe=BEe;var UY={exports:{}},jY={};/** + `),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={};/** * @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 Y1=I;function jEe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zEe=typeof Object.is=="function"?Object.is:jEe,VEe=Y1.useSyncExternalStore,HEe=Y1.useRef,WEe=Y1.useEffect,QEe=Y1.useMemo,YEe=Y1.useDebugValue;jY.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=HEe(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=QEe(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,zEe(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=VEe(e,o[0],o[1]);return WEe(function(){a.hasValue=!0,a.value=s},[s]),YEe(s),s};UY.exports=jY;var GEe=UY.exports,ss="default"in Fm?Qt:Fm,U8=Symbol.for("react-redux-context"),j8=typeof globalThis<"u"?globalThis:{};function qEe(){if(!ss.createContext)return{};const e=j8[U8]??(j8[U8]=new Map);let t=e.get(ss.createContext);return t||(t=ss.createContext(null),e.set(ss.createContext,t)),t}var Vd=qEe(),ZEe=()=>{throw new Error("uSES not initialized!")};function WN(e=Vd){return function(){return ss.useContext(e)}}var zY=WN(),VY=ZEe,XEe=e=>{VY=e},KEe=(e,t)=>e===t;function JEe(e=Vd){const t=e===Vd?zY:WN(e),n=(r,i={})=>{const{equalityFn:o=KEe,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=VY(l.addNestedSub,s.getState,u||s.getState,p,o);return ss.useDebugValue(h),h};return Object.assign(n,{withTypes:()=>n}),n}var _c=JEe();function eSe(e){e()}function tSe(){let e=null,t=null;return{clear(){e=null,t=null},notify(){eSe(()=>{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 z8={notify(){},get:()=>[]};function nSe(e,t){let n,r=z8,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=tSe())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=z8)}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 rSe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",iSe=rSe?ss.useLayoutEffect:ss.useEffect;function oSe({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const a=ss.useMemo(()=>{const u=nSe(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]);iSe(()=>{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||Vd;return ss.createElement(l.Provider,{value:a},n)}var aSe=oSe;function HY(e=Vd){const t=e===Vd?zY:WN(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var sSe=HY();function lSe(e=Vd){const t=e===Vd?sSe:HY(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var kg=lSe();XEe(GEe.useSyncExternalStoreWithSelector);/** + */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);/** * @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 yp(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function cSe(){return Math.random().toString(36).substr(2,8)}function H8(e,t){return{usr:e.state,key:e.key,idx:t}}function xy(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||cSe()})}function G1(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 dSe(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=pi.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=pi.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=pi.Push;let v=xy(b.location,O,y);n&&n(v,O),u=c()+1;let S=H8(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=pi.Replace;let v=xy(b.location,O,y);n&&n(v,O),u=c();let S=H8(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:G1(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(V8,d),l=O,()=>{i.removeEventListener(V8,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 fSe=new Set(["lazy","caseSensitive","path","id","index","children"]);function pSe(e){return e.index===!0}function M_(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`),pSe(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=M_(i.children,t,a,r)),l}})}function Hh(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Rc(t):t,i=q1(r.pathname||"/",n);if(i==null)return null;let o=WY(e);mSe(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=Rd([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+'".')),WY(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:SSe(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 QY(o.path))i(o,a,l)}),t}function QY(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=QY(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 mSe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:TSe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const gSe=/^:[\w-]+$/,bSe=3,ySe=2,OSe=1,vSe=10,ESe=-2,W8=e=>e==="*";function SSe(e,t){let n=e.split("/"),r=n.length;return n.some(W8)&&(r+=ESe),t&&(r+=ySe),n.filter(i=>!W8(i)).reduce((i,o)=>i+(gSe.test(o)?bSe:o===""?OSe:vSe),r)}function TSe(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 wSe(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]=ASe(m||"",p),u},{}),pathname:o,pathnameBase:a,pattern:e}}function xSe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),yp(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 CSe(e){try{return decodeURI(e)}catch(t){return yp(!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 ASe(e,t){try{return decodeURIComponent(e)}catch(n){return yp(!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 q1(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 _Se(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:RSe(n,t):t,search:DSe(r),hash:NSe(i)}}function RSe(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 WC(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 YY(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function QN(e,t){let n=YY(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function YN(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("?"),WC("?","pathname","search",i)),Bn(!i.pathname||!i.pathname.includes("#"),WC("#","pathname","hash",i)),Bn(!i.search||!i.search.includes("#"),WC("#","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=_Se(i,s),u=a&&a!=="/"&&a.endsWith("/"),c=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Rd=e=>e.join("/").replace(/\/\/+/g,"/"),ISe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),DSe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,NSe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class GN{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 qN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const GY=["post","put","patch","delete"],PSe=new Set(GY),LSe=["get",...GY],MSe=new Set(LSe),$Se=new Set([301,302,303,307,308]),FSe=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},BSe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},v0={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},qY=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,USe=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),ZY="remix-router-transitions";function jSe(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=USe;let o={},a=M_(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=Hh(a,e.history.location,l),y=null;if(O==null){let Ee=Rs(404,{pathname:e.history.location.pathname}),{matches:_e,route:pe}=J8(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=pi.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}yp(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,v0),Me({blockers:Mt})}});return}return $e(_e,pe)}),n){KSe(t,B);let Ee=()=>JSe(t,B);t.addEventListener("pagehide",Ee),U=()=>t.removeEventListener("pagehide",Ee)}return w.initialized||$e(pi.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?K8(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,v0)));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===pi.Pop||(E===pi.Push?e.history.push(Ee,Ee.state):E===pi.Replace&&e.history.replace(Ee,Ee.state));let we;if(E===pi.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=pi.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=$_(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}=Q8(u.v7_normalizeFormMethod,!1,pe,_e),$t=w.location,It=xy(w.location,lt,_e&&_e.state);It=si({},It,e.history.encodeLocation(It));let Ct=_e&&_e.replace!=null?_e.replace:void 0,Zt=pi.Push;Ct===!0?Zt=pi.Replace:Ct===!1||at!=null&&hl(at.formMethod)&&at.formAction===w.location.pathname+w.location.search&&(Zt=pi.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,v0),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=Hh(lt,_e,l),$t=(pe&&pe.flushSync)===!0;if(!Mt){let ot=Rs(404,{pathname:_e.pathname}),{matches:rn,route:Wt}=J8(lt);Et(),Ye(_e,{matches:rn,loaderData:{},errors:{[Wt.id]:ot}},{flushSync:$t});return}if(w.initialized&&!z&&QSe(w.location,_e)&&!(pe&&pe.submission&&hl(pe.submission.formMethod))){Ye(_e,{matches:Mt},{flushSync:$t});return}N=new AbortController;let It=S0(e.history,_e,N.signal,pe&&pe.submission),Ct,Zt;if(pe&&pe.pendingError)Zt={[Ab(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=YC(_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=ZSe(_e,pe);Me({navigation:Mt},{flushSync:at.flushSync===!0});let $t,It=B_(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 E0("action",Ee,It,lt,o,i,l,u.v7_relativeSplatPath),Ee.signal.aborted)return{shortCircuited:!0};if(Uf($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(Wh($t)){let Ct=Ab(lt,It.route.id);return(at&&at.replace)!==!0&&(E=pi.Push),{pendingActionData:{},pendingActionError:{[Ct.route.id]:$t.error}}}if(Bf($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||YC(_e,at),Qe=at||Mt||n7(we),ot=s||a,[rn,Wt]=Y8(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=T0(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=e7(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}=X8(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=$_(w.location,w.matches,l,u.v7_prependBasename,pe,u.v7_relativeSplatPath,_e,lt==null?void 0:lt.relative),It=Hh(Mt,$t,l);if(!It){ie(Ee,_e,Rs(404,{pathname:$t}),{flushSync:at});return}let{path:Ct,submission:Zt,error:Ie}=Q8(u.v7_normalizeFormMethod,!0,$t,lt);if(Ie){ie(Ee,_e,Ie,{flushSync:at});return}let we=B_(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,XSe($t,It),{flushSync:Mt});let Ct=new AbortController,Zt=S0(e.history,pe,Ct.signal,$t);q.set(Ee,Ct);let Ie=Y,we=await E0("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(Uf(we)||Wh(we)){De(Ee,Wc(void 0));return}}else{if(Uf(we))if(q.delete(Ee),Z>Ie){De(Ee,Wc(void 0));return}else return se.add(Ee),De(Ee,T0($t)),J(w,we,{fetcherSubmission:$t});if(Wh(we)){ie(Ee,_e,we.error);return}}if(Bf(we))throw Rs(400,{type:"defer-action"});let Qe=w.navigation.location||w.location,ot=S0(e.history,Qe,Ct.signal),rn=s||a,Wt=w.navigation.state!=="idle"?Hh(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=T0($t,we.data);w.fetchers.set(Ee,tr);let[Ue,Ce]=Y8(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=T0(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=e7(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}=X8(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:K8(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,T0($t,It?It.data:void 0),{flushSync:Mt});let Ct=new AbortController,Zt=S0(e.history,pe,Ct.signal);q.set(Ee,Ct);let Ie=Y,we=await E0("loader",Zt,lt,at,o,i,l,u.v7_relativeSplatPath);if(Bf(we)&&(we=await JY(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(Uf(we))if(Z>Ie){De(Ee,Wc(void 0));return}else{se.add(Ee),await J(w,we);return}if(Wh(we)){ie(Ee,_e,we.error);return}Bn(!Bf(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=xy(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(qY.test(_e.location)){const ot=e.history.createURL(_e.location);Qe=ot.origin!==t.location.origin||q1(ot.pathname,l)==null}if(Qe){Mt?t.location.replace(_e.location):t.location.assign(_e.location);return}}N=null;let It=Mt===!0?pi.Replace:pi.Push,{formMethod:Ct,formAction:Zt,formEncType:Ie}=Ee.navigation;!lt&&!at&&Ct&&Zt&&Ie&&(lt=n7(Ee.navigation));let we=lt||at;if(FSe.has(_e.status)&&we&&hl(we.formMethod))await $e(It,$t,{submission:si({},we,{formAction:_e.location}),preventScrollReset:$});else{let Qe=YC($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=>E0("loader",at,Ct,_e,o,i,l,u.v7_relativeSplatPath)),...lt.map(Ct=>Ct.matches&&Ct.match&&Ct.controller?E0("loader",S0(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([t7(Ee,pe,$t,$t.map(()=>at.signal),!1,w.loaderData),t7(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=Ab(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)||BSe}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)||v0;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)||v0;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&&yp(!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=>hSe(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=M_(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 zSe(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function $_(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=YN(i||".",QN(l,o),q1(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&&!ZN(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:Rd([n,c.pathname])),G1(c)}function Q8(e,t,n,r){if(!r||!zSe(r))return{path:n};if(r.formMethod&&!qSe(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=KY(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=F_(r.formData),u=r.formData;else if(r.body instanceof FormData)l=F_(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=Z8(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=Z8(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&&ZN(d.search)&&l.append("index",""),d.search="?"+l,{path:G1(d),submission:c}}function VSe(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 Y8(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=VSe(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(HSe(t.loaderData,t.matches[$],E)||s.some(U=>U===E.route.id))return!0;let R=t.matches[$],B=E;return G8(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||XY(R,B)}))}),w=[];return c.forEach((E,$)=>{if(o||!n.some(V=>V.route.id===E.routeId)||u.has($))return;let N=Hh(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=B_(N,E.path),U=!1;d.has($)?U=!1:l.includes($)?U=!0:R&&R.state!=="idle"&&R.data===void 0?U=a:U=G8(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 HSe(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function XY(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function G8(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function q8(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";yp(!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&&!fSe.has(a)&&(o[a]=r[a])}Object.assign(i,o),Object.assign(i,si({},t(i),{lazy:void 0}))}async function E0(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}),q8(n.route,o,i)]);if(O)throw O;c=y[0]}else if(await q8(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(GSe(c)){let b=c.status;if($Se.has(b)){let y=c.headers.get("Location");if(Bn(y,"Redirects returned/thrown from loaders/actions must have a Location header"),!qY.test(y))y=$_(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=q1(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 GN(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(YSe(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 S0(e,t,n,r){let i=e.createURL(KY(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=F_(r.formData):o.body=r.formData}return new Request(i,o)}function F_(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Z8(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function WSe(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(!Uf(c),"Cannot handle redirect results in processLoaderData"),Wh(c)){let h=Ab(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=qN(c.error)?c.error.status:500),c.headers&&(u[p]=c.headers)}else Bf(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 X8(e,t,n,r,i,o,a,s){let{loaderData:l,errors:u}=WSe(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 J8(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 GN(e||500,a,new Error(s),!0)}function e7(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Uf(n))return{result:n,idx:t}}}function KY(e){let t=typeof e=="string"?Rc(e):e;return G1(si({},t,{hash:""}))}function QSe(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Bf(e){return e.type===oi.deferred}function Wh(e){return e.type===oi.error}function Uf(e){return(e&&e.type)===oi.redirect}function YSe(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 GSe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function qSe(e){return MSe.has(e.toLowerCase())}function hl(e){return PSe.has(e.toLowerCase())}async function t7(e,t,n,r,i,o){for(let a=0;ad.route.id===l.route.id),c=u!=null&&!XY(u,l)&&(o&&o[l.route.id])!==void 0;if(Bf(s)&&(i||c)){let d=r[a];Bn(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await JY(s,d,i).then(p=>{p&&(n[a]=p||n[a])})}}}async function JY(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 ZN(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function B_(e,t){let n=typeof t=="string"?Rc(t).search:t.search;if(e[e.length-1].route.index&&ZN(n||""))return e[e.length-1];let r=YY(e);return r[r.length-1]}function n7(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 YC(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 ZSe(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 T0(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 XSe(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 KSe(e,t){try{let n=e.sessionStorage.getItem(ZY);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 JSe(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(ZY,JSON.stringify(n))}catch(r){yp(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + */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+").")}}}/** * 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 Cy(){return Cy=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=YN(u,JSON.parse(a),o,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Rd([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,a,o,e])}const tTe=I.createContext(null);function nTe(e){let t=I.useContext(Ic).outlet;return t&&I.createElement(tTe.Provider,{value:e},t)}function K1(){let{matches:e}=I.useContext(Ic),t=e[e.length-1];return t?t.params:{}}function rTe(e,t,n,r){X1()||Bn(!1);let{navigator:i}=I.useContext(Z1),{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=xg(),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=Hh(e,{pathname:h}),b=lTe(m&&m.map(O=>Object.assign({},O,{params:Object.assign({},s,O.params),pathname:Rd([l,i.encodeLocation?i.encodeLocation(O.pathname).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?l:Rd([l,i.encodeLocation?i.encodeLocation(O.pathnameBase).pathname:O.pathnameBase])})),o,n,r);return t&&b?I.createElement(_k.Provider,{value:{location:Cy({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:pi.Pop}},b):b}function iTe(){let e=oG(),t=qN(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 oTe=I.createElement(iTe,null);class aTe 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(tG.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function sTe(e){let{routeContext:t,match:n,children:r}=e,i=I.useContext(Ak);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 lTe(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||oTe,l&&(u<0&&p===0?(pTe("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(sTe,{match:d,routeContext:{outlet:c,matches:y,isDataRoute:n!=null},children:S})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?I.createElement(aTe,{location:n.location,revalidation:n.revalidation,component:b,error:h,children:v(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):v()},null)}var rG=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(rG||{}),aT=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}(aT||{});function uTe(e){let t=I.useContext(Ak);return t||Bn(!1),t}function cTe(e){let t=I.useContext(eG);return t||Bn(!1),t}function dTe(e){let t=I.useContext(Ic);return t||Bn(!1),t}function iG(e){let t=dTe(),n=t.matches[t.matches.length-1];return n.route.id||Bn(!1),n.route.id}function oG(){var e;let t=I.useContext(tG),n=cTe(aT.UseRouteError),r=iG(aT.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function fTe(){let{router:e}=uTe(rG.UseNavigateStable),t=iG(aT.UseNavigateStable),n=I.useRef(!1);return nG(()=>{n.current=!0}),I.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Cy({fromRouteId:t},o)))},[e,t])}const r7={};function pTe(e,t,n){!t&&!r7[e]&&(r7[e]=!0)}function aG(e){let{to:t,replace:n,state:r,relative:i}=e;X1()||Bn(!1);let{future:o,static:a}=I.useContext(Z1),{matches:s}=I.useContext(Ic),{pathname:l}=xg(),u=Cg(),c=YN(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 XN(e){return nTe(e.context)}function hTe(e){let{basename:t="/",children:n=null,location:r,navigationType:i=pi.Pop,navigator:o,static:a=!1,future:s}=e;X1()&&Bn(!1);let l=t.replace(/^\/*/,"/"),u=I.useMemo(()=>({basename:l,navigator:o,static:a,future:Cy({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=q1(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(Z1.Provider,{value:u},I.createElement(_k.Provider,{children:n,value:b}))}new Promise(()=>{});function mTe(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 _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}/** * React Router DOM v6.21.3 * * Copyright (c) Remix Software Inc. @@ -189,38 +189,38 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function sT(){return sT=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 gTe(e,t){let n=U_(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(o=>{n.append(i,o)})}),n}function bTe(e,t){return jSe({basename:t==null?void 0:t.basename,future:sT({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:uSe({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||yTe(),routes:e,mapRouteProperties:mTe,window:t==null?void 0:t.window}).initialize()}function yTe(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=sT({},t,{errors:OTe(t.errors)})),t}function OTe(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 GN(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 vTe=I.createContext({isTransitioning:!1}),ETe=I.createContext(new Map),STe="startTransition",i7=Fm[STe],TTe="flushSync",o7=ele[TTe];function wTe(e){i7?i7(e):e()}function w0(e){o7?o7(e):e()}class kTe{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 xTe(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?wTe(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?w0(()=>o(E)):v(()=>o(E));return}if(R){w0(()=>{p&&(c&&c.resolve(),p.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:B.currentLocation,nextLocation:B.nextLocation})});let V=n.window.document.startViewTransition(()=>{w0(()=>o(E))});V.finished.finally(()=>{w0(()=>{d(void 0),h(void 0),s(void 0),u({isTransitioning:!1})})}),w0(()=>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 kTe)},[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(Ak.Provider,{value:w},I.createElement(eG.Provider,{value:i},I.createElement(ETe.Provider,{value:O.current},I.createElement(vTe.Provider,{value:l},I.createElement(hTe,{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(CTe,{routes:n.routes,future:n.future,state:i}):t))))),null)}function CTe(e){let{routes:t,future:n,state:r}=e;return rTe(t,void 0,r,n)}var a7;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(a7||(a7={}));var s7;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(s7||(s7={}));function ATe(e){let t=I.useRef(U_(e)),n=I.useRef(!1),r=xg(),i=I.useMemo(()=>gTe(r.search,n.current?null:t.current),[r.search]),o=Cg(),a=I.useCallback((s,l)=>{const u=U_(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 _Te=typeof Symbol=="function"&&Symbol.observable||"@@observable",l7=_Te,GC=()=>Math.random().toString(36).substring(7).split("").join("."),RTe={INIT:`@@redux/INIT${GC()}`,REPLACE:`@@redux/REPLACE${GC()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${GC()}`},lT=RTe;function KN(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 JN(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(JN)(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(!KN(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:lT.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)}},[l7](){return this}}}return p({type:lT.INIT}),{dispatch:p,subscribe:d,getState:c,replaceReducer:h,[l7]:m}}function ITe(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:lT.INIT})>"u")throw new Error(so(12));if(typeof n(void 0,{type:lT.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(so(13))})}function sG(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 uT(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function DTe(...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=uT(...s)(i.dispatch),{...i,dispatch:o}}}function NTe(e){return KN(e)&&"type"in e&&typeof e.type=="string"}var lG=Symbol.for("immer-nothing"),u7=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 Xm=Object.getPrototypeOf;function Hd(e){return!!e&&!!e[gs]}function Ec(e){var t;return e?uG(e)||Array.isArray(e)||!!e[u7]||!!((t=e.constructor)!=null&&t[u7])||Ik(e)||Dk(e):!1}var PTe=Object.prototype.constructor.toString();function uG(e){if(!e||typeof e!="object")return!1;const t=Xm(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)===PTe}function Ay(e,t){Rk(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function Rk(e){const t=e[gs];return t?t.type_:Array.isArray(e)?1:Ik(e)?2:Dk(e)?3:0}function j_(e,t){return Rk(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function cG(e,t,n){const r=Rk(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function LTe(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Ik(e){return e instanceof Map}function Dk(e){return e instanceof Set}function _f(e){return e.copy_||e.base_}function z_(e,t){if(Ik(e))return new Map(e);if(Dk(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&uG(e))return Xm(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=MTe),Object.freeze(e),t&&Ay(e,(n,r)=>eP(r,!0))),e}function MTe(){Sl(2)}function Nk(e){return Object.isFrozen(e)}var $Te={};function Op(e){const t=$Te[e];return t||Sl(0,e),t}var _y;function dG(){return _y}function FTe(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function c7(e,t){t&&(Op("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function V_(e){H_(e),e.drafts_.forEach(BTe),e.drafts_=null}function H_(e){e===_y&&(_y=e.parent_)}function d7(e){return _y=FTe(_y,e)}function BTe(e){const t=e[gs];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function f7(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[gs].modified_&&(V_(t),Sl(4)),Ec(e)&&(e=cT(t,e),t.parent_||dT(t,e)),t.patches_&&Op("Patches").generateReplacementPatches_(n[gs].base_,e,t.patches_,t.inversePatches_)):e=cT(t,n,[]),V_(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==lG?e:void 0}function cT(e,t,n){if(Nk(t))return t;const r=t[gs];if(!r)return Ay(t,(i,o)=>p7(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return dT(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),Ay(o,(s,l)=>p7(e,r,i,s,l,n,a)),dT(e,i,!1),n&&e.patches_&&Op("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function p7(e,t,n,r,i,o,a){if(Hd(i)){const s=o&&t&&t.type_!==3&&!j_(t.assigned_,r)?o.concat(r):void 0,l=cT(e,i,s);if(cG(n,r,l),Hd(l))e.canAutoFreeze_=!1;else return}else a&&n.add(i);if(Ec(i)&&!Nk(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;cT(e,i),(!t||!t.scope_.parent_)&&dT(e,i)}}function dT(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&eP(t,n)}function UTe(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:dG(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=tP;n&&(i=[r],o=Ry);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}var tP={get(e,t){if(t===gs)return e;const n=_f(e);if(!j_(n,t))return jTe(e,n,t);const r=n[t];return e.finalized_||!Ec(r)?r:r===qC(e.base_,t)?(ZC(e),e.copy_[t]=Q_(r,e)):r},has(e,t){return t in _f(e)},ownKeys(e){return Reflect.ownKeys(_f(e))},set(e,t,n){const r=fG(_f(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=qC(_f(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(LTe(n,i)&&(n!==void 0||j_(e.base_,t)))return!0;ZC(e),W_(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 qC(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,ZC(e),W_(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=_f(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 Xm(e.base_)},setPrototypeOf(){Sl(12)}},Ry={};Ay(tP,(e,t)=>{Ry[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Ry.deleteProperty=function(e,t){return Ry.set.call(this,e,t,void 0)};Ry.set=function(e,t,n){return tP.set.call(this,e[0],t,n,e[0])};function qC(e,t){const n=e[gs];return(n?_f(n):e)[t]}function jTe(e,t,n){var i;const r=fG(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function fG(e,t){if(!(t in e))return;let n=Xm(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Xm(n)}}function W_(e){e.modified_||(e.modified_=!0,e.parent_&&W_(e.parent_))}function ZC(e){e.copy_||(e.copy_=z_(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var zTe=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=d7(this),a=Q_(t,void 0);let s=!0;try{i=n(a),s=!1}finally{s?V_(o):H_(o)}return c7(o,r),f7(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===lG&&(i=void 0),this.autoFreeze_&&eP(i,!0),r){const o=[],a=[];Op("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),Hd(e)&&(e=pG(e));const t=d7(this),n=Q_(e,void 0);return n[gs].isManual_=!0,H_(t),n}finishDraft(e,t){const n=e&&e[gs];(!n||!n.isManual_)&&Sl(9);const{scope_:r}=n;return c7(r,t),f7(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=Op("Patches").applyPatches_;return Hd(e)?r(e,t):this.produce(e,i=>r(i,t))}};function Q_(e,t){const n=Ik(e)?Op("MapSet").proxyMap_(e,t):Dk(e)?Op("MapSet").proxySet_(e,t):UTe(e,t);return(t?t.scope_:dG()).drafts_.push(n),n}function pG(e){return Hd(e)||Sl(10,e),hG(e)}function hG(e){if(!Ec(e)||Nk(e))return e;const t=e[gs];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=z_(e,t.scope_.immer_.useStrictShallowCopy_)}else n=z_(e,!0);return Ay(n,(r,i)=>{cG(n,r,hG(i))}),t&&(t.finalized_=!1),n}var bs=new zTe,mG=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 VTe(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function HTe(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function WTe(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 h7=e=>Array.isArray(e)?e:[e];function QTe(e){const t=Array.isArray(e[0])?e[0]:e;return WTe(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function YTe(e,t){const n=[],{length:r}=e;for(let i=0;i{n=_v(),a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}function gG(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()),VTe(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const c={...n,...l},{memoize:d,memoizeOptions:p=[],argsMemoize:h=nP,argsMemoizeOptions:m=[],devModeChecks:b={}}=c,O=h7(p),y=h7(m),v=QTe(i),S=d(function(){return o++,u.apply(null,arguments)},...O),k=h(function(){a++;const w=YTe(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 XTe=gG(nP),KTe=Object.assign((e,t=XTe)=>{HTe(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:()=>KTe});function bG(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var JTe=bG(),ewe=bG,twe=(...e)=>{const t=gG(...e);return(...n)=>{const r=t(...n),i=(o,...a)=>r(Hd(o)?pG(o):o,...a);return Object.assign(i,r),i}};twe(nP);var nwe=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?uT:uT.apply(null,arguments)};function Iy(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=>NTe(r)&&r.type===e,n}var yG=class eb extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,eb.prototype)}static get[Symbol.species](){return eb}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new eb(...t[0].concat(this)):new eb(...t.concat(this))}};function g7(e){return Ec(e)?mG(e,()=>{}):e}function b7(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 rwe(e){return typeof e=="boolean"}var iwe=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let a=new yG;return n&&(rwe(n)?a.push(JTe):a.push(ewe(n.extraArgument))),a},owe="RTK_autoBatch",OG=e=>t=>{setTimeout(t,e)},awe=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:OG(10),swe=(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"?awe:e.type==="callback"?e.queueNotification:OG(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[owe]),o=!i,o&&(a||(a=!0,l(u))),r.dispatch(c)}finally{i=!0}}})},lwe=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new yG(e);return r&&i.push(swe(typeof r=="object"?r:void 0)),i},uwe=!0;function cwe(e){const t=iwe(),{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(KN(n))s=sG(n);else throw new Error(_l(1));let l;typeof r=="function"?l=r(t):l=t();let u=uT;i&&(u=nwe({trace:!uwe,...typeof i=="object"&&i}));const c=DTe(...l),d=lwe(c);let p=typeof a=="function"?a(d):d();const h=u(...p);return JN(s,o,h)}function vG(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 dwe(e){return typeof e=="function"}function fwe(e,t){let[n,r,i]=vG(t),o;if(dwe(e))o=()=>g7(e());else{const s=g7(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(Hd(c)){const h=d(c,l);return h===void 0?c:h}else{if(Ec(c))return mG(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 pwe=Symbol.for("rtk-slice-createasyncthunk");function hwe(e,t){return`${e}/${t}`}function mwe({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[pwe];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(bwe()):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:hwe(o,O),createNotation:typeof i.reducers=="function"};Owe(y)?Ewe(v,y,c,t):ywe(v,y,c)});function d(){const[O={},y=[],v=void 0]=typeof i.extraReducers=="function"?vG(i.extraReducers):[i.extraReducers],S={...O,...u.sliceCaseReducersByType};return fwe(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=b7(h,this,{insert:()=>new WeakMap});return b7(y,O,{insert:()=>{const v={};for(const[S,k]of Object.entries(i.selectors??{}))v[S]=gwe(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 gwe(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 Pk=mwe();function bwe(){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 ywe({type:e,reducerName:t,createNotation:n},r,i){let o,a;if("reducer"in r){if(n&&!vwe(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?Iy(e,a):Iy(e))}function Owe(e){return e._reducerDefinitionType==="asyncThunk"}function vwe(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Ewe({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||Rv,pending:s||Rv,rejected:l||Rv,settled:u||Rv})}function Rv(){}var rP="listenerMiddleware";Iy(`${rP}/add`);Iy(`${rP}/removeAll`);Iy(`${rP}/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 Swe={theme:"default"},EG=Pk({name:"editor",initialState:Swe,reducers:{setTheme:(e,t)=>{e.theme=t.payload}}}),{setTheme:Twe}=EG.actions,SG=e=>e.config,wwe=EG.reducer;function TG(e,t){return function(){return e.apply(t,arguments)}}const{toString:kwe}=Object.prototype,{getPrototypeOf:iP}=Object,Lk=(e=>t=>{const n=kwe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Nu=e=>(e=e.toLowerCase(),t=>Lk(t)===e),Mk=e=>t=>typeof t===e,{isArray:Ag}=Array,Dy=Mk("undefined");function xwe(e){return e!==null&&!Dy(e)&&e.constructor!==null&&!Dy(e.constructor)&&Ys(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const wG=Nu("ArrayBuffer");function Cwe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&wG(e.buffer),t}const Awe=Mk("string"),Ys=Mk("function"),kG=Mk("number"),$k=e=>e!==null&&typeof e=="object",_we=e=>e===!0||e===!1,UE=e=>{if(Lk(e)!=="object")return!1;const t=iP(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Rwe=Nu("Date"),Iwe=Nu("File"),Dwe=Nu("Blob"),Nwe=Nu("FileList"),Pwe=e=>$k(e)&&Ys(e.pipe),Lwe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ys(e.append)&&((t=Lk(e))==="formdata"||t==="object"&&Ys(e.toString)&&e.toString()==="[object FormData]"))},Mwe=Nu("URLSearchParams"),$we=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function J1(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Ag(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const CG=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,AG=e=>!Dy(e)&&e!==CG;function Y_(){const{caseless:e}=AG(this)&&this||{},t={},n=(r,i)=>{const o=e&&xG(t,i)||i;UE(t[o])&&UE(r)?t[o]=Y_(t[o],r):UE(r)?t[o]=Y_({},r):Ag(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(J1(t,(i,o)=>{n&&Ys(i)?e[o]=TG(i,n):e[o]=i},{allOwnKeys:r}),e),Bwe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Uwe=(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)},jwe=(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&&iP(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},zwe=(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},Vwe=e=>{if(!e)return null;if(Ag(e))return e;let t=e.length;if(!kG(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Hwe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&iP(Uint8Array)),Wwe=(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])}},Qwe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Ywe=Nu("HTMLFormElement"),Gwe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),y7=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),qwe=Nu("RegExp"),_G=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};J1(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},Zwe=e=>{_G(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+"'")})}})},Xwe=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Ag(e)?r(e):r(String(e).split(t)),n},Kwe=()=>{},Jwe=(e,t)=>(e=+e,Number.isFinite(e)?e:t),XC="abcdefghijklmnopqrstuvwxyz",O7="0123456789",RG={DIGIT:O7,ALPHA:XC,ALPHA_DIGIT:XC+XC.toUpperCase()+O7},eke=(e=16,t=RG.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function tke(e){return!!(e&&Ys(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const nke=e=>{const t=new Array(10),n=(r,i)=>{if($k(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=Ag(r)?[]:{};return J1(r,(a,s)=>{const l=n(a,i+1);!Dy(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},rke=Nu("AsyncFunction"),ike=e=>e&&($k(e)||Ys(e))&&Ys(e.then)&&Ys(e.catch),ut={isArray:Ag,isArrayBuffer:wG,isBuffer:xwe,isFormData:Lwe,isArrayBufferView:Cwe,isString:Awe,isNumber:kG,isBoolean:_we,isObject:$k,isPlainObject:UE,isUndefined:Dy,isDate:Rwe,isFile:Iwe,isBlob:Dwe,isRegExp:qwe,isFunction:Ys,isStream:Pwe,isURLSearchParams:Mwe,isTypedArray:Hwe,isFileList:Nwe,forEach:J1,merge:Y_,extend:Fwe,trim:$we,stripBOM:Bwe,inherits:Uwe,toFlatObject:jwe,kindOf:Lk,kindOfTest:Nu,endsWith:zwe,toArray:Vwe,forEachEntry:Wwe,matchAll:Qwe,isHTMLForm:Ywe,hasOwnProperty:y7,hasOwnProp:y7,reduceDescriptors:_G,freezeMethods:Zwe,toObjectSet:Xwe,toCamelCase:Gwe,noop:Kwe,toFiniteNumber:Jwe,findKey:xG,global:CG,isContextDefined:AG,ALPHABET:RG,generateString:eke,isSpecCompliantForm:tke,toJSONObject:nke,isAsyncFn:rke,isThenable:ike};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 IG=Zn.prototype,DG={};["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=>{DG[e]={value:e}});Object.defineProperties(Zn,DG);Object.defineProperty(IG,"isAxiosError",{value:!0});Zn.from=(e,t,n,r,i,o)=>{const a=Object.create(IG);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 oke=null;function G_(e){return ut.isPlainObject(e)||ut.isArray(e)}function NG(e){return ut.endsWith(e,"[]")?e.slice(0,-2):e}function v7(e,t,n){return e?e.concat(t).map(function(i,o){return i=NG(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function ake(e){return ut.isArray(e)&&!e.some(G_)}const ske=ut.toFlatObject(ut,{},null,function(t){return/^is[A-Z]/.test(t)});function Fk(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)&&ake(m)||(ut.isFileList(m)||ut.endsWith(b,"[]"))&&(y=ut.toArray(m)))return b=NG(b),y.forEach(function(S,k){!(ut.isUndefined(S)||S===null)&&t.append(a===!0?v7([b],k,o):a===null?b:b+"[]",u(S))}),!1}return G_(m)?!0:(t.append(v7(O,b,o),u(m)),!1)}const d=[],p=Object.assign(ske,{defaultVisitor:c,convertValue:u,isVisitable:G_});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 E7(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function oP(e,t){this._pairs=[],e&&Fk(e,this,t)}const PG=oP.prototype;PG.append=function(t,n){this._pairs.push([t,n])};PG.toString=function(t){const n=t?function(r){return t.call(this,r,E7)}:E7;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function lke(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function LG(e,t,n){if(!t)return e;const r=n&&n.encode||lke,i=n&&n.serialize;let o;if(i?o=i(t,n):o=ut.isURLSearchParams(t)?t.toString():new oP(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class S7{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 MG={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},uke=typeof URLSearchParams<"u"?URLSearchParams:oP,cke=typeof FormData<"u"?FormData:null,dke=typeof Blob<"u"?Blob:null,fke={isBrowser:!0,classes:{URLSearchParams:uke,FormData:cke,Blob:dke},protocols:["http","https","file","blob","url","data"]},$G=typeof window<"u"&&typeof document<"u",pke=(e=>$G&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),hke=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",mke=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:$G,hasStandardBrowserEnv:pke,hasStandardBrowserWebWorkerEnv:hke},Symbol.toStringTag,{value:"Module"})),gu={...mke,...fke};function gke(e,t){return Fk(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 bke(e){return ut.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function yke(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]=yke(i[a])),!s)}if(ut.isFormData(e)&&ut.isFunction(e.entries)){const n={};return ut.forEachEntry(e,(r,i)=>{t(bke(r),i,n,0)}),n}return null}function Oke(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 aP={transitional:MG,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(FG(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 gke(t,this.formSerializer).toString();if((s=ut.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Fk(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),Oke(t)):t}],transformResponse:[function(t){const n=this.transitional||aP.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=>{aP.headers[e]={}});const sP=aP,vke=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"]),Eke=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]&&vke[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},T7=Symbol("internals");function k0(e){return e&&String(e).trim().toLowerCase()}function jE(e){return e===!1||e==null?e:ut.isArray(e)?e.map(jE):String(e)}function Ske(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 Tke=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function KC(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 wke(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function kke(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 Bk{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,u){const c=k0(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]=jE(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())&&!Tke(t)?a(Eke(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=k0(t),t){const r=ut.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return Ske(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=k0(t),t){const r=ut.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||KC(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=k0(a),a){const s=ut.findKey(r,a);s&&(!n||KC(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||KC(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]=jE(i),delete n[o];return}const s=t?wke(o):String(o).trim();s!==o&&delete n[o],n[s]=jE(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[T7]=this[T7]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=k0(a);r[s]||(kke(i,a),r[s]=!0)}return ut.isArray(t)?t.forEach(o):o(t),this}}Bk.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ut.reduceDescriptors(Bk.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ut.freezeMethods(Bk);const fc=Bk;function JC(e,t){const n=this||sP,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 BG(e){return!!(e&&e.__CANCEL__)}function eO(e,t,n){Zn.call(this,e??"canceled",Zn.ERR_CANCELED,t,n),this.name="CanceledError"}ut.inherits(eO,Zn,{__CANCEL__:!0});function xke(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 Cke=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 Ake(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function _ke(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function UG(e,t){return e&&!Ake(t)?_ke(e,t):t}const Rke=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 Ike(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Dke(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 Nke=typeof XMLHttpRequest<"u",Pke=Nke&&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=UG(e.baseURL,e.url);d.open(e.method.toUpperCase(),LG(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};xke(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||MG;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&&Rke(p))){const b=e.xsrfHeaderName&&e.xsrfCookieName&&Cke.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",w7(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",w7(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=b=>{d&&(r(!b||b.type?new eO(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=Ike(p);if(m&&gu.protocols.indexOf(m)===-1){r(new Zn("Unsupported protocol "+m+":",Zn.ERR_BAD_REQUEST,e));return}d.send(i||null)})},q_={http:oke,xhr:Pke};ut.forEach(q_,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const k7=e=>`- ${e}`,Lke=e=>ut.isFunction(e)||e===null||e===!1,jG={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(k7).join(` -`):" "+k7(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:q_};function eA(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eO(null,e)}function x7(e){return eA(e),e.headers=fc.from(e.headers),e.data=JC.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),jG.getAdapter(e.adapter||sP.adapter)(e).then(function(r){return eA(e),r.data=JC.call(e,e.transformResponse,r),r.headers=fc.from(r.headers),r},function(r){return BG(r)||(eA(e),r&&r.response&&(r.response.data=JC.call(e,e.transformResponse,r.response),r.response.headers=fc.from(r.response.headers))),Promise.reject(r)})}const C7=e=>e instanceof fc?e.toJSON():e;function Km(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(C7(u),C7(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 zG="1.6.5",lP={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{lP[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const A7={};lP.transitional=function(t,n,r){function i(o,a){return"[Axios v"+zG+"] 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&&!A7[a]&&(A7[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 Mke(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 Z_={assertOptions:Mke,validators:lP},zc=Z_.validators;class fT{constructor(t){this.defaults=t,this.interceptors={request:new S7,response:new S7}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Km(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Z_.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}:Z_.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=[x7.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 eO(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 uP(function(i){t=i}),cancel:t}}}const $ke=uP;function Fke(e){return function(n){return e.apply(null,n)}}function Bke(e){return ut.isObject(e)&&e.isAxiosError===!0}const X_={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(X_).forEach(([e,t])=>{X_[t]=e});const Uke=X_;function VG(e){const t=new zE(e),n=TG(zE.prototype.request,t);return ut.extend(n,zE.prototype,t,{allOwnKeys:!0}),ut.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return VG(Km(e,i))},n}const cr=VG(sP);cr.Axios=zE;cr.CanceledError=eO;cr.CancelToken=$ke;cr.isCancel=BG;cr.VERSION=zG;cr.toFormData=Fk;cr.AxiosError=Zn;cr.Cancel=cr.CanceledError;cr.all=function(t){return Promise.all(t)};cr.spread=Fke;cr.isAxiosError=Bke;cr.mergeConfig=Km;cr.AxiosHeaders=fc;cr.formToJSON=e=>FG(ut.isHTMLForm(e)?new FormData(e):e);cr.getAdapter=jG.getAdapter;cr.HttpStatusCode=Uke;cr.default=cr;var cP={},HG={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})(HG);var Fo=HG.exports,tA={};const jke=_oe(Zde);var _7;function Bo(){return _7||(_7=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=jke}(tA)),tA}var zke=Fo;Object.defineProperty(cP,"__esModule",{value:!0});var WG=cP.default=void 0,Vke=zke(Bo()),Hke=M;WG=cP.default=(0,Vke.default)((0,Hke.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 dP={},Wke=Fo;Object.defineProperty(dP,"__esModule",{value:!0});var QG=dP.default=void 0,Qke=Wke(Bo()),Yke=M;QG=dP.default=(0,Qke.default)((0,Yke.jsx)("path",{d:"M3 15h8v-2H3zm0 4h8v-2H3zm0-8h8V9H3zm0-6v2h8V5zm10 0h8v14h-8z"}),"VerticalSplit");var fP={},Gke=Fo;Object.defineProperty(fP,"__esModule",{value:!0});var pP=fP.default=void 0,qke=Gke(Bo()),Zke=M;pP=fP.default=(0,qke.default)((0,Zke.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 hP={},Xke=Fo;Object.defineProperty(hP,"__esModule",{value:!0});var Uk=hP.default=void 0,Kke=Xke(Bo()),Jke=M;Uk=hP.default=(0,Kke.default)((0,Jke.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");const exe={mode:"both",doc:null,client:null},YG=Pk({name:"editor",initialState:exe,reducers:{setMode:(e,t)=>{e.mode=t.payload},setDoc:(e,t)=>{e.doc=t.payload},setClient:(e,t)=>{e.client=t.payload}}}),{setMode:txe,setDoc:R7,setClient:I7}=YG.actions,jk=e=>e.editor,nxe=YG.reducer;var mP={},rxe=Fo;Object.defineProperty(mP,"__esModule",{value:!0});var GG=mP.default=void 0,ixe=rxe(Bo()),oxe=M;GG=mP.default=(0,ixe.default)((0,oxe.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 gP={},axe=Fo;Object.defineProperty(gP,"__esModule",{value:!0});var qG=gP.default=void 0,sxe=axe(Bo()),lxe=M;qG=gP.default=(0,sxe.default)((0,lxe.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 bP(){const e=wg("(prefers-color-scheme: dark)"),t=_c(SG);return I.useMemo(()=>{const r=e?"dark":"light";return t.theme==="default"?r:t.theme},[t.theme,e])}function ZG(){const e=kg(),t=bP(),n=()=>{e(Twe(t=="light"?"dark":"light"))};return M.jsx(Na,{onClick:n,color:"inherit",children:t==="light"?M.jsx(qG,{}):M.jsx(GG,{})})}function uxe(){return Math.random().toString(36).substring(7)}function cxe(){const e=kg(),t=_c(jk),n=Cg(),r=o=>{e(txe(o))},i=()=>{n(`/${uxe()}`)};return M.jsx(spe,{position:"static",sx:{zIndex:100},children:M.jsx(Wve,{children:M.jsxs(Li,{width:"100%",direction:"row",justifyContent:"space-between",children:[M.jsxs(Li,{direction:"row",spacing:1,children:[M.jsx(Da,{children:M.jsxs(UEe,{value:t.mode,exclusive:!0,onChange:(o,a)=>r(a),size:"small",children:[M.jsx(HC,{value:"edit","aria-label":"edit",children:M.jsx(Cv,{title:"Edit Mode",children:M.jsx(WG,{})})}),M.jsx(HC,{value:"both","aria-label":"both",children:M.jsx(Cv,{title:"Both Mode",children:M.jsx(QG,{})})}),M.jsx(HC,{value:"read","aria-label":"read",children:M.jsx(Cv,{title:"Read Mode",children:M.jsx(pP,{})})})]})}),M.jsx(Cv,{title:"Create New Note",children:M.jsx(Na,{color:"inherit",onClick:i,children:M.jsx(Uk,{})})})]}),M.jsx(ZG,{})]})})})}function dxe(){return M.jsxs(Aa,{sx:{flexGrow:1},height:"100vh",children:[M.jsx(cxe,{}),M.jsx(XN,{})]})}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]=Jm(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]=Jm(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 _b(this),o=new _b(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 _b(this,t)}iterRange(t,n=this.length){return new XG(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 KG(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 mi(t):fu.from(mi.split(t,[]))}}class mi extends rr{constructor(t,n=fxe(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 pxe(i,s,r,a);i=s+1,r++}}decompose(t,n,r,i){let o=t<=0&&n>=this.length?this:new mi(D7(this.text,t,n),Math.min(n,this.length)-Math.max(0,t));if(i&1){let a=r.pop(),s=VE(o.text,a.text.slice(),0,o.length);if(s.length<=32)r.push(new mi(s,a.length+o.length));else{let l=s.length>>1;r.push(new mi(s.slice(0,l)),new mi(s.slice(l)))}}else r.push(o)}replace(t,n,r){if(!(r instanceof mi))return super.replace(t,n,r);[t,n]=Jm(this,t,n);let i=VE(this.text,VE(r.text,D7(this.text,0,t)),n),o=this.length+r.length-(n-t);return i.length<=32?new mi(i,o):fu.from(mi.split(i,[]),o)}sliceString(t,n=this.length,r=` -`){[t,n]=Jm(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 mi(r,i)),r=[],i=-1);return i>-1&&n.push(new mi(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]=Jm(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]=Jm(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 mi(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 mi&&l&&(m=c[c.length-1])instanceof mi&&h.lines+m.lines<=32?(l+=h.lines,u+=h.length+1,c[c.length-1]=new mi(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 mi([""],0);function fxe(e){let t=-1;for(let n of e)t+=n.length+1;return t}function VE(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 mi?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 mi?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 mi){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 mi?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 XG{constructor(t,n,r){this.value="",this.done=!1,this.cursor=new _b(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 KG{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()},_b.prototype[Symbol.iterator]=XG.prototype[Symbol.iterator]=KG.prototype[Symbol.iterator]=function(){return this});let pxe=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 Jm(e,t,n){return t=Math.max(0,Math.min(e.length,t)),[t,Math.max(t,Math.min(e.length,n))]}let lm="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 lm[t-1]<=e;return!1}function N7(e){return e>=127462&&e<=127487}const P7=8205;function go(e,t,n=!0,r=!0){return(n?JG:mxe)(e,t,r)}function JG(e,t,n){if(t==e.length)return t;t&&eq(e.charCodeAt(t))&&tq(e.charCodeAt(t-1))&&t--;let r=fo(e,t);for(t+=Bs(r);t=0&&N7(fo(e,a));)o++,a-=2;if(o%2==0)break;t+=2}else break}return t}function mxe(e,t,n){for(;t>0;){let r=JG(e,t-2,n);if(r=56320&&e<57344}function tq(e){return e>=55296&&e<56320}function fo(e,t){let n=e.charCodeAt(t);if(!tq(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return eq(r)?(n-55296<<10)+(r-56320)+65536:n}function yP(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 K_=/\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 Di 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 J_(this,(n,r,i,o,a)=>t=t.replace(i,i+(r-n),a),!1),t}mapDesc(t,n=!1){return eR(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&&gd(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||K_)):h:rr.empty,b=m.length;if(d==p&&b==0)return;da&&_o(i,d-a,-1),_o(i,p-d,b),gd(o,i,m),a=p}}return u(t),l(!s),s}static empty(t){return new Di(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 gd(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 eR(e,t,n,r=!1){let i=[],o=r?[]:null,a=new Ny(e),s=new Ny(t);for(let l=-1;;)if(a.ins==-1&&s.ins==-1){let u=Math.min(a.len,s.len);_o(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 Ny{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 jf{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 jf(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 jf(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=>jf.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 rq(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let OP=0;class qt{constructor(t,n,r,i,o){this.combine=t,this.compareInput=n,this.compare=r,this.isStatic=i,this.id=OP++,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:vP),!!t.static,t.enables)}of(t){return new HE([],this,0,t)}compute(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new HE(t,this,1,n)}computeN(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new HE(t,this,2,n)}from(t,n){return n||(n=r=>r),this.compute([t],r=>n(r.field(t)))}}function vP(e,t){return e==t||e.length==t.length&&e.every((n,r)=>n===t[r])}class HE{constructor(t,n,r,i){this.dependencies=t,this.facet=n,this.type=r,this.value=i,this.id=OP++}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)||tR(d,c)){let h=r(d);if(s?!L7(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=hT(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?L7(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 L7(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(M7).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,M7.of({field:this,create:t})]}get extension(){return this}}const Rf={lowest:4,low:3,default:2,high:1,highest:0};function x0(e){return t=>new iq(t,e)}const af={highest:x0(Rf.highest),high:x0(Rf.high),default:x0(Rf.default),low:x0(Rf.low),lowest:x0(Rf.lowest)};class iq{constructor(t,n){this.inner=t,this.prec=n}}class zk{of(t){return new nR(this,t)}reconfigure(t){return zk.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class nR{constructor(t,n){this.compartment=t,this.inner=n}}class pT{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 bxe(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,vP(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=>gxe(O,m,h))}}let d=u.map(p=>p(s));return new pT(t,a,d,s,l,o)}}function bxe(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 nR&&n.delete(a.compartment)}if(i.set(a,s),Array.isArray(a))for(let u of a)o(u,s);else if(a instanceof nR){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 iq)o(a.inner,a.prec);else if(a instanceof eo)r[s].push(a),a.provides&&o(a.provides,s);else if(a instanceof HE)r[s].push(a),a.facet.extensions&&o(a.facet.extensions,Rf.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,Rf.default),r.reduce((a,s)=>a.concat(s))}function Rb(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 hT(e,t){return t&1?e.config.staticValues[t>>1]:e.values[t>>1]}const oq=qt.define(),rR=qt.define({combine:e=>e.some(t=>t),static:!0}),aq=qt.define({combine:e=>e.length?e[0]:void 0,static:!0}),sq=qt.define(),lq=qt.define(),uq=qt.define(),cq=qt.define({combine:e=>e.length?e[0]:!1});class Fl{constructor(t,n){this.type=t,this.value=n}static define(){return new yxe}}class yxe{of(t){return new Fl(this,t)}}class Oxe{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 Oxe(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 Ti{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&&rq(r,n.newLength),o.some(s=>s.type==Ti.time)||(this.annotations=o.concat(Ti.time.of(Date.now())))}static create(t,n,r,i,o,a){return new Ti(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(Ti.userEvent);return!!(n&&(n==t||n.length>t.length&&n.slice(0,t.length)==t&&n[t.length]=="."))}}Ti.time=Fl.define();Ti.userEvent=Fl.define();Ti.addToHistory=Fl.define();Ti.remote=Fl.define();function vxe(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 Ti?e=o:Array.isArray(o)&&o.length==1&&o[0]instanceof Ti?e=o[0]:e=fq(t,um(o),!1)}return e}function Sxe(e){let t=e.startState,n=t.facet(uq),r=e;for(let i=n.length-1;i>=0;i--){let o=n[i](e);o&&Object.keys(o).length&&(r=dq(r,iR(t,o,e.changes.newLength),!0))}return r==e?e:Ti.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}const Txe=[];function um(e){return e==null?Txe: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 wxe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let oR;try{oR=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function kxe(e){if(oR)return oR.test(e);for(let t=0;t"€"&&(n.toUpperCase()!=n.toLowerCase()||wxe.test(n)))return!0}return!1}function xxe(e){return t=>{if(!/\S/.test(t))return Qr.Space;if(kxe(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=um(r).concat(s.value));let o;n?o=t.startState.values.slice():(n=pT.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(rR)?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=um(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=pT.resolve(t.extensions||[],new Map),r=t.doc instanceof rr?t.doc:rr.of((t.doc||"").split(n.staticFacet(qn.lineSeparator)||K_)),i=t.selection?t.selection instanceof tt?t.selection:tt.single(t.selection.anchor,t.selection.head):tt.single(0);return rq(i,r.length),n.staticFacet(rR)||(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(cq)}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(oq))for(let a of o(this,n,r))Object.prototype.hasOwnProperty.call(a,t)&&i.push(a[t]);return i}charCategorizer(t){return xxe(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=aq;qn.readOnly=cq;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=oq;qn.changeFilter=sq;qn.transactionFilter=lq;qn.transactionExtender=uq;zk.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 vp{eq(t){return this==t}range(t,n=t){return aR.create(t,n,this)}}vp.prototype.startSide=vp.prototype.endSide=0;vp.prototype.point=!1;vp.prototype.mapMode=ho.TrackDel;let aR=class pq{constructor(t,n,r){this.from=t,this.to=n,this.value=r}static create(t,n,r){return new pq(t,n,r)}};function sR(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class EP{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 EP(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(sR)),this.isEmpty)return n.length?Xn.of(n):this;let s=new hq(this,null,-1).goto(0),l=0,u=[],c=new Wd;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 Py.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,n=0){return Py.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=$7(a,s,r),u=new C0(a,l,o),c=new C0(s,l,o);r.iterGaps((d,p,h)=>F7(u,d,c,p,h,i)),r.empty&&r.length==0&&F7(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=$7(o,a),l=new C0(o,s,0).goto(r),u=new C0(a,s,0).goto(r);for(;;){if(l.to!=u.to||!lR(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 C0(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 Wd;for(let i of t instanceof aR?[t]:n?Cxe(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 Cxe(e){if(e.length>1)for(let t=e[0],n=1;n0)return e.slice().sort(sR);t=r}return e}Xn.empty.nextLayer=Xn.empty;class Wd{finishChunk(t){this.chunks.push(new EP(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 Wd)).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 $7(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 hq(a,n,r,o));return i.length==1?i[0]:new Py(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--)nA(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--)nA(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(),nA(this.heap,0)}}}function nA(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 C0{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=Py.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){Iv(this.active,t),Iv(this.activeTo,t),Iv(this.activeRank,t),this.minActive=B7(this.active,this.activeTo)}addActive(t){let n=0,{value:r,to:i,rank:o}=this.cursor;for(;n0;)n++;Dv(this.active,n,r),Dv(this.activeTo,n,i),Dv(this.activeRank,n,o),t&&Dv(t,n,this.cursor.from),this.minActive=B7(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&&Iv(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 F7(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))&&lR(e.activeForPoint(e.to),n.activeForPoint(n.to))||o.comparePoint(s,d,e.point,n.point):d>s&&!lR(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 lR(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 B7(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 cR="ͼ",U7=typeof Symbol>"u"?"__"+cR:Symbol.for(cR),dR=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),j7=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class Qd{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=j7[U7]||1;return j7[U7]=t+1,cR+t.toString(36)}static mount(t,n,r){let i=t[dR],o=r&&r.nonce;i?o&&i.setNonce(o):i=new Axe(t,o),i.mount(Array.isArray(n)?n:[n])}}let z7=new Map;class Axe{constructor(t,n){let r=t.ownerDocument||t,i=r.defaultView;if(!t.head&&t.adoptedStyleSheets&&i.CSSStyleSheet){let o=z7.get(r);if(o)return t.adoptedStyleSheets=[o.sheet,...t.adoptedStyleSheets],t[dR]=o;this.sheet=new i.CSSStyleSheet,t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets],z7.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[dR]=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:'"'},_xe=typeof navigator<"u"&&/Mac/.test(navigator.platform),Rxe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var po=0;po<10;po++)Yd[48+po]=Yd[96+po]=String(po);for(var po=1;po<=24;po++)Yd[po+111]="F"+po;for(var po=65;po<=90;po++)Yd[po]=String.fromCharCode(po+32),Ly[po]=String.fromCharCode(po);for(var rA in Yd)Ly.hasOwnProperty(rA)||(Ly[rA]=Yd[rA]);function Ixe(e){var t=_xe&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||Rxe&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?Ly:Yd)[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 mT(e){let t;return e.nodeType==11?t=e.getSelection?e:e.ownerDocument:t=e,t.getSelection()}function fR(e,t){return t?e==t||e.contains(t.nodeType!=1?t.parentNode:t):!1}function Dxe(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function WE(e,t){if(!t.anchorNode)return!1;try{return fR(e,t.anchorNode)}catch{return!1}}function My(e){return e.nodeType==3?Ep(e,0,e.nodeValue.length).getClientRects():e.nodeType==1?e.getClientRects():[]}function Ib(e,t,n,r){return n?V7(e,t,n,r,-1)||V7(e,t,n,r,1):!1}function $y(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t}function V7(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=$y(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 SP(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function Nxe(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function mq(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 Pxe(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=Nxe(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}=mq(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 Mxe{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 ch=null;function gq(e){if(e.setActive)return e.setActive();if(ch)return e.focus(ch);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(ch==null?{get preventScroll(){return ch={preventScroll:!0},!0}}:void 0),!ch){ch=!1;for(let n=0;nMath.max(1,e.scrollHeight-e.clientHeight-4)}class Io{constructor(t,n,r=!0){this.node=t,this.offset=n,this.precise=r}static before(t,n){return new Io(t.parentNode,$y(t),n)}static after(t,n){return new Io(t.parentNode,$y(t)+1,n)}}const TP=[];class Nr{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=Nr.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=W7(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=W7(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&&!Nr.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=TP){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 vq(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:G7||/Mac/.test(is.platform),windows:/Win/.test(is.platform),linux:/Linux|X11/.test(is.platform),ie:Vk,ie_version:Sq?pR.documentMode||6:mR?+mR[1]:hR?+hR[1]:0,gecko:Q7,gecko_version:Q7?+(/Firefox\/(\d+)/.exec(is.userAgent)||[0,0])[1]:0,chrome:!!iA,chrome_version:iA?+iA[1]:0,ios:G7,android:/Android\b/.test(is.userAgent),webkit:Y7,safari:Tq,webkit_version:Y7?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:pR.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const Bxe=256;class Tc extends Nr{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>Bxe||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 Io(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 Uxe(this.dom,t,n)}}class wc extends Nr{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(bq(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 wq(this,t)}coordsAt(t,n){return xq(this,t,n)}}function Uxe(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?SP(l,a<0):l||null}class bd extends Nr{static create(t,n,r){return new bd(t,n,r)}constructor(t,n,r){super(),this.widget=t,this.length=n,this.side=r,this.prevWidget=null}split(t){let n=bd.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 bd)||!this.widget.compare(r.widget)||t>0&&o<=0||n0)?Io.before(this.dom):Io.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?Io.before(this.dom):Io.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=bd.prototype.children=eg.prototype.children=TP;function wq(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)?kq(r,t.children[0],n-1):(i.push(t),t.setParent(e)),e.length+=t.length}function xq(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 bR(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 zxe(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){wP(this.attrs,t)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}append(t,n){kq(this,t,n)}addLineDeco(t){let n=t.spec.attributes,r=t.spec.class;n&&(this.attrs=gR(n,this.attrs||{})),r&&(this.attrs=gR({class:r},this.attrs||{}))}domAtPos(t){return wq(this,t)}reuseDOM(t){t.nodeName=="DIV"&&(this.setDOM(t),this.flags|=6)}sync(t,n){var r;this.dom?this.flags&4&&(bq(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&&(bR(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&&Nr.get(i)instanceof wc;)i=i.lastChild;if(!i||!this.length||i.nodeName!="BR"&&((r=Nr.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=My(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=xq(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 Ri)return o;if(a>n)break}i=a+o.breakAfter}return null}}class Id extends Nr{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 Id)||!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 vp{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 tO(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 Gd(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}=Cq(t,n);r=(o?n?-3e8:-1:5e8)-1,i=(a?n?2e8:1:-6e8)+1}return new Gd(t,r,i,n,t.widget||null,!0)}static line(t){return new nO(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 tO extends ln{constructor(t){let{start:n,end:r}=Cq(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 tO&&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))&&wP(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)}}tO.prototype.point=!1;class nO extends ln{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof nO&&this.spec.class==t.spec.class&&wP(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)}}nO.prototype.mapMode=ho.TrackBefore;nO.prototype.point=!0;class Gd 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 Gd&&Vxe(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)}}Gd.prototype.point=!0;function Cq(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 Vxe(e,t){return e==t||!!(e&&t&&e.compare(t))}function yR(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 Db{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 Id&&t.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new Ri),this.atCursorPos=!0),this.curLine}flushBuffer(t=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(Nv(new eg(-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 Id)&&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(Nv(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 Gd){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 Gd)if(r.block)r.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Id(r.widget||new Z7("div"),s,r));else{let l=bd.create(r.widget||new Z7("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(Nv(new eg(1),i),o),o=i.length+Math.max(0,o-i.length)),d.append(Nv(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 Db(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 Nv(e,t){for(let n of t)e=new wc(n,[e],e.length);return e}class Z7 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 Sp=Mr.LTR,kP=Mr.RTL;function Aq(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 Rq(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 qxe(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 vR(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 yd(l,b.from,h));let O=b.direction==Sp!=!(h%2);ER(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?vR(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==Sp?0:1;return ER(e,i,i,n,0,e.length,r),r}function Iq(e){return[new yd(0,e,0)]}let Dq="";function Xxe(e,t,n,r,i){var o;let a=r.head-e.from,s=yd.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),Dq=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)}),Uq=qt.define({combine:e=>e.some(t=>t)});class dm{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 dm(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 dm(tt.cursor(t.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const Pv=xn.define({map:(e,t)=>e.map(t)});function Gs(e,t,n){let r=e.facet(Mq);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 Hk=qt.define({combine:e=>e.length?e[0]:!0});let Jxe=0;const tb=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(Jxe++,t,r,i,s=>{let l=[tb.of(s)];return a&&l.push(Fy.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 oA{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 jq=qt.define(),xP=qt.define(),Fy=qt.define(),zq=qt.define(),CP=qt.define(),Vq=qt.define();function X7(e,t){let n=e.state.facet(Vq);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=Kxe(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 Hq=qt.define();function Wq(e){let t=0,n=0,r=0,i=0;for(let o of e.state.facet(Hq)){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 nb=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 gT{constructor(t,n,r){this.view=t,this.state=n,this.transactions=r,this.flags=0,this.startState=t.state,this.changes=Di.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 gT(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 K7 extends Nr{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 Ri],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:!aCe(t.changes,this.hasComposition)&&!t.selectionSet&&(i=t.state.selection.main.head));let o=i>-1?tCe(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=iCe(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=Db.build(this.view.state.doc,c,r.range.fromB,this.decorations,this.dynamicDecorationMap),C=Db.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}=Db.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);vq(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 Ri;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=Nr.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&&WE(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&&eCe(l)){let d=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(d,l.node.childNodes[l.offset]||null)),l=u=new Io(d,0),a=!0}let c=this.view.observer.selectionRange;(a||!c.focusNode||(!Ib(l.node,l.offset,c.anchorNode,c.anchorOffset)||!Ib(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)&&oCe(c.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let d=mT(this.view.root);if(d)if(s.empty){if(en.gecko){let p=nCe(l.node,l.offset);if(p&&p!=3){let h=Yq(l.node,l.offset,p==1?1:-1);h&&(l=new Io(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 Io(c.anchorNode,c.anchorOffset),this.impreciseHead=u.precise?null:new Io(c.focusNode,c.focusOffset)}suppressWidgetCursorChange(t,n){return this.hasComposition&&n.empty&&Ib(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=mT(t.root),{anchorNode:i,anchorOffset:o}=t.observer.selectionRange;if(!r||!n.empty||!n.assoc||!r.modify)return;let a=Ri.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=Nr.get(n.childNodes[i]);o instanceof Ri&&(r=o.domAtPos(o.length))}return r?new Io(r.node,r.offset,!0):t}nearest(t){for(let n=t;n;){let r=Nr.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 Ri&&!(r instanceof Ri&&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 Ri))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=Ep(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?My(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 Ri){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=My(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 Oq(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 J7(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(Fy).map((i,o)=>(this.dynamicDecorationMap[o]=typeof i=="function")?i(this.view):i),n=!1,r=this.view.state.facet(zq).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=Wq(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;Pxe(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 nCe(e,t){return e.nodeType!=1?0:(t&&e.childNodes[t-1].contentEditable=="false"?1:0)|(t{rt.from&&(n=!0)}),n}function sCe(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 uCe(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function aA(e,t){return e.topt.top+1}function eU(e,t){return te.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function TR(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=My(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&&aA(c,y)?c=tU(c,y.bottom):d&&aA(d,y)&&(d=eU(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 nU(r,p,n);if(s&&r.contentEditable!="false")return TR(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 nU(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)&&Ep(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 Gq(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:rU(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&&cCe(y,v,c)||en.chrome&&dCe(y,v,c))&&(y=void 0))}}if(!y||!e.docView.dom.contains(y)){let k=Ri.find(e.docView,h);if(!k)return p>l.top+l.height/2?l.to:l.from;({node:y,offset:v}=TR(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+uR(a,o,e.state.tabSize)}function cCe(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 Ep(e,r-1,r).getBoundingClientRect().left>n}function dCe(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():Ep(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect();return n-r.left>5}function wR(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 fCe(e,t,n,r){let i=wR(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 iU(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=Xxe(i,o,a,s,n),c=Dq;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 pCe(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 hCe(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=Gq(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&&ICe(t.contentDOM.ownerDocument)}handleEvent(t){!TCe(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=gCe(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||bCe.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,cm(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 oU(e,t){return(n,r)=>{try{return t.call(e,r,n)}catch(i){Gs(n.state,i)}}}function gCe(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(oU(r.value,a))}if(i&&i.domEventObservers)for(let o in i.domEventObservers){let a=i.domEventObservers[o];a&&n(o).observers.push(oU(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 qq=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],bCe="dthko",Zq=[16,17,18,20,91,92,224,225],Lv=6;function Mv(e){return Math.max(0,e)*.7+8}function yCe(e,t){return Math.max(Math.abs(e.clientX-t.clientX),Math.abs(e.clientY-t.clientY))}class OCe{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=Lxe(t.contentDOM),this.atoms=t.state.facet(CP).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)&&vCe(t,n),this.dragging=SCe(t,n)&&eZ(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&&yCe(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=Wq(this.view);t.clientX-a.left<=o.left+Lv?r=-Mv(o.left-t.clientX):t.clientX+a.right>=o.right-Lv&&(r=Mv(t.clientX-o.right)),t.clientY-a.top<=o.top+Lv?i=-Mv(o.top-t.clientY):t.clientY+a.bottom>=o.bottom-Lv&&(i=Mv(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 vCe(e,t){let n=e.state.facet(Nq);return n.length?n[0](t):en.mac?t.metaKey:t.ctrlKey}function ECe(e,t){let n=e.state.facet(Pq);return n.length?n[0](t):en.mac?!t.altKey:!t.ctrlKey}function SCe(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=mT(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 TCe(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=Nr.get(n))&&r.ignoreEvent(t))return!1;return!0}const Nl=Object.create(null),Pl=Object.create(null),Xq=en.ie&&en.ie_version<15||en.ios&&en.webkit_version<604;function wCe(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(),Kq(e,n.value)},50)}function Kq(e,t){let{state:n}=e,r,i=1,o=n.toText(t),a=o.lines==n.selection.ranges.length;if(kR!=null&&n.selection.ranges.every(l=>l.empty)&&kR==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(Lq))if(n=r(e,t),n)break;if(!n&&t.button==0&&(n=CCe(e,t)),n){let r=!e.hasFocus;e.inputState.startMouseSelection(new OCe(e,t,n,r)),r&&e.observer.ignore(()=>gq(e.contentDOM));let i=e.inputState.mouseSelection;if(i)return i.start(t),i.dragging===!1}return!1};function aU(e,t,n,r){if(r==1)return tt.cursor(t,n);if(r==2)return sCe(e.state,t,n);{let i=Ri.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,sU=(e,t,n)=>Jq(t,n)&&e>=n.left&&e<=n.right;function kCe(e,t,n,r){let i=Ri.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&&sU(n,r,a))return-1;let s=i.coordsAt(o,1);return s&&sU(n,r,s)?1:a&&Jq(r,a)?-1:1}function lU(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:kCe(e,n,t.clientX,t.clientY)}}const xCe=en.ie&&en.ie_version<=11;let uU=null,cU=0,dU=0;function eZ(e){if(!xCe)return e.detail;let t=uU,n=dU;return uU=e,dU=Date.now(),cU=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(cU+1)%3:1}function CCe(e,t){let n=lU(e,t),r=eZ(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=lU(e,o),u,c=aU(e,l.pos,l.bias,r);if(n.pos!=l.pos&&!a){let d=aU(e,n.pos,n.bias,r),p=Math.min(d.from,c.from),h=Math.max(d.to,c.to);c=p1&&(u=ACe(i,l.pos))?u:s?i.addRange(c):tt.create([c])}}}function ACe(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 fU(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&&ECe(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&&fU(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 fU(e,t,r,!0),!0}return!1};Nl.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let n=Xq?null:t.clipboardData;return n?(Kq(e,n.getData("text/plain")||n.getData("text/uri-text")),!0):(wCe(e),!1)};function _Ce(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 RCe(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 kR=null;Nl.copy=Nl.cut=(e,t)=>{let{text:n,ranges:r,linewise:i}=RCe(e.state);if(!n&&!i)return!1;kR=i?n:null,t.type=="cut"&&!e.state.readOnly&&e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let o=Xq?null:t.clipboardData;return o?(o.clearData(),o.setData("text/plain",n),!0):(_Ce(e,n),!1)};const tZ=Fl.define();function nZ(e,t){let n=[];for(let r of e.facet(Fq)){let i=r(e,t);i&&n.push(i)}return n?e.update({effects:n,annotations:tZ.of(!0)}):null}function rZ(e){setTimeout(()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=nZ(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),rZ(e)};Pl.blur=e=>{e.observer.clearSelectionRange(),rZ(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=qq.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 pU=new Set;function ICe(e){pU.has(e)||(pU.add(e),e.addEventListener("copy",()=>{}),e.addEventListener("cut",()=>{}))}const hU=["pre-wrap","normal","pre-line","break-spaces"];class DCe{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 hU.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)>YE&&(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,Dr.ByPosNoHeight,r.setDoc(n),0,0),h=p.to>=u?p:o.lineAt(u,Dr.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 iZ{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==Dr.ByHeight)return this.blockAt(t,r,i,o);if(n==Dr.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)>=YE&&(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)>=YE||Math.abs(l-this.heightMetrics(t,n).perLine)>=YE)&&(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 PCe 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==Dr.ByPosNoHeight?Dr.ByPosNoHeight:Dr.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,Dr.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&&mU(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 mU(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 LCe=5;class AP{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=LCe)&&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 BCe(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class lA{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 DCe(n),this.stateDeco=t.facet(Fy).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 $v(o,a))}}this.viewports=t.sort((r,i)=>r.from-i.from),this.scaler=this.heightMap.height<=7e6?bU:new VCe(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:rb(t,this.scaler))})}update(t,n=null){this.state=t.state;let r=this.stateDeco;this.stateDeco=this.state.facet(Fy).filter(c=>typeof c!="function");let i=t.changedRanges,o=qs.extendWithRanges(i,MCe(r,this.stateDeco,t?t.changes:Di.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(Uq)&&(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}=mq(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=yq(t.scrollDOM);let m=(this.printing?BCe:FCe)(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 NCe(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 $v(i.lineAt(a-r*1e3,Dr.ByHeight,o,0,0).from,i.lineAt(s+(1-r)*1e3,Dr.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,Dr.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 lA(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)||rb(this.heightMap.lineAt(t,Dr.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return rb(this.heightMap.lineAt(this.scaler.fromDOM(t),Dr.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 rb(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 $v{constructor(t,n){this.from=t,this.to=n}}function jCe(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 Bv(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 zCe(e,t){for(let n of e)if(t(n))return n}const bU={toDOM(e){return e},fromDOM(e){return e},scale:1};class VCe{constructor(t,n,r){let i=0,o=0,a=0;this.viewports=r.map(({from:s,to:l})=>{let u=n.lineAt(s,Dr.ByPos,t,0,0).top,c=n.lineAt(l,Dr.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=nrb(i,t)):e._content)}const Uv=qt.define({combine:e=>e.join(" ")}),xR=qt.define({combine:e=>e.indexOf(!0)>-1}),CR=Qd.newName(),oZ=Qd.newName(),aZ=Qd.newName(),sZ={"&light":"."+oZ,"&dark":"."+aZ};function AR(e,t,n){return new Qd(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 HCe=AR("."+CR,{"&":{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"}},sZ),ib="￿";class WCe{constructor(t,n){this.points=t,this.text="",this.lineSeparator=n.facet(qn.lineSeparator)}append(t){this.text+=t}lineBreak(){this.text+=ib}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=Nr.get(i),l=Nr.get(a);(s&&l?s.breakAfter:(s?s.breakAfter:yU(i))||yU(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=Nr.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+(QCe(t,r.node,r.offset)?n:0))}}function QCe(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?[]:ZCe(t),l=new WCe(s,t.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=XCe(s,this.bounds.from)}else{let s=t.observer.selectionRange,l=o&&o.node==s.focusNode&&o.offset==s.focusOffset||!fR(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||!fR(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&&cm(e.contentDOM,"Enter",13)||(n.from==i.from-1&&n.to==i.to&&n.insert.length==0||o==8&&n.insert.lengthi.head)&&cm(e.contentDOM,"Backspace",8)||n.from==i.from&&n.to==i.to+1&&n.insert.length==0&&cm(e.contentDOM,"Delete",46)))return!0;let a=n.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let s,l=()=>s||(s=GCe(e,n,r));return e.state.facet($q).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 GCe(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&&Qq(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 qCe(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 ZCe(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 OU(n,r)),(i!=n||o!=r)&&t.push(new OU(i,o))),t}function XCe(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 KCe={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},uA=en.ie&&en.ie_version<=11;class JCe{constructor(t){this.view=t,this.active=!1,this.selectionRange=new Mxe,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()}),uA&&(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(Hk)?r.root.activeElement!=this.dom:!WE(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&&Ib(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&&Dxe(this.dom.ownerDocument)==this.dom&&eAe(this.view)||mT(t.root);if(!n||this.selectionRange.eq(n))return!1;let r=WE(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&&cm(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&&WE(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 YCe(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=lZ(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=vU(n,t.previousSibling||t.target.previousSibling,-1),i=vU(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 vU(e,t,n){for(;t;){let r=Nr.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 eAe(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 Ib(s.node,s.offset,o,a)&&([r,i,o,a]=[o,a,r,i]),{anchorNode:r,anchorOffset:i,focusNode:o,focusOffset:a}}class Vt{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||$xe(t.parent)||document,this.viewState=new gU(t.state||qn.create(t)),t.scrollTo&&t.scrollTo.is(Pv)&&(this.viewState.scrollTarget=t.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(tb).map(r=>new oA(r));for(let r of this.plugins)r.update(this);this.observer=new JCe(this),this.inputState=new mCe(this),this.inputState.ensureHandlers(this.plugins),this.docView=new K7(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...t){let n=t.length==1&&t[0]instanceof Ti?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(tZ))?(this.inputState.notifiedFocused=a,s=1):a!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=a,l=nZ(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=gT.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 dm(h.empty?h:tt.cursor(h.head,h.head>h.anchor?-1:1))}for(let h of p.effects)h.is(Pv)&&(d=h.value.clip(this.state))}this.viewState.update(i,d),this.bidiCache=bT.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),n=this.docView.update(i),this.state.facet(nb)!=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(Uv)!=i.state.facet(Uv)&&(this.viewState.mustMeasureContent=!0),(n||r||d||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!i.empty)for(let p of this.state.facet(SR))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&&!lZ(this,c)&&u.force&&cm(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 gU(t),this.plugins=t.facet(tb).map(r=>new oA(r)),this.pluginMap.clear();for(let r of this.plugins)r.update(this);this.docView.destroy(),this.docView=new K7(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(tb),r=t.state.facet(tb);if(n!=r){let i=[];for(let o of r){let a=n.indexOf(o);if(a<0)i.push(new oA(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(yq(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),EU}}),d=gT.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(SR))s(n)}get themeClasses(){return CR+" "+(this.state.facet(xR)?aZ:oZ)+" "+this.state.facet(Uv)}updateAttrs(){let t=SU(this,jq,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Hk)?"true":"false",class:"cm-content",style:`${en.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),SU(this,xP,n);let r=this.observer.ignore(()=>{let i=bR(this.contentDOM,this.contentAttrs,n),o=bR(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(Vt.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(nb);let t=this.state.facet(Vt.cspNonce);Qd.mount(this.root,this.styleModules.concat(HCe).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 sA(this,t,iU(this,t,n,r))}moveByGroup(t,n){return sA(this,t,iU(this,t,n,r=>pCe(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 fCe(this,t,n,r)}moveVertically(t,n,r){return sA(this,t,hCe(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(),Gq(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[yd.find(o,t-i.from,-1,n)];return SP(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(Bq)||tthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>tAe)return Iq(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||Rq(o.isolates,r=X7(this,t))))return o.order;r||(r=X7(this,t));let i=Zxe(t.text,n,r);return this.bidiCache.push(new bT(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(()=>{gq(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 Pv.of(new dm(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 Pv.of(new dm(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=Qd.newName(),i=[Uv.of(r),nb.of(AR(`.${r}`,t))];return n&&n.dark&&i.push(xR.of(!0)),i}static baseTheme(t){return af.lowest(nb.of(AR("."+CR,t,sZ)))}static findFromDOM(t){var n;let r=t.querySelector(".cm-content"),i=r&&Nr.get(r)||Nr.get(t);return((n=i==null?void 0:i.rootView)===null||n===void 0?void 0:n.view)||null}}Vt.styleModule=nb;Vt.inputHandler=$q;Vt.focusChangeEffect=Fq;Vt.perLineTextDirection=Bq;Vt.exceptionSink=Mq;Vt.updateListener=SR;Vt.editable=Hk;Vt.mouseSelectionStyle=Lq;Vt.dragMovesSelection=Pq;Vt.clickAddsSelectionRange=Nq;Vt.decorations=Fy;Vt.outerDecorations=zq;Vt.atomicRanges=CP;Vt.bidiIsolatedRanges=Vq;Vt.scrollMargins=Hq;Vt.darkTheme=xR;Vt.cspNonce=qt.define({combine:e=>e.length?e[0]:""});Vt.contentAttributes=xP;Vt.editorAttributes=jq;Vt.lineWrapping=Vt.contentAttributes.of({class:"cm-lineWrapping"});Vt.announce=xn.define();const tAe=4096,EU={};class bT{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&&gR(a,n)}return n}const nAe=en.mac?"mac":en.windows?"win":en.linux?"linux":"key";function rAe(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 oAe(e,t,n){return cZ(uZ(e.state),t,e,n)}let rd=null;const aAe=4e3;function sAe(e,t=nAe){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=>rAe(y,t));for(let y=1;y{let k=rd={view:S,prefix:v,scope:a};return setTimeout(()=>{rd==k&&(rd=null)},aAe),!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 cZ(e,t,n,r){let i=Ixe(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+" ",Zq.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+jv(i,t,!a)])?l=!0:a&&(t.altKey||t.metaKey||t.ctrlKey)&&!(en.windows&&t.ctrlKey&&t.altKey)&&(m=Yd[t.keyCode])&&m!=i?(p(h[s+jv(m,t,!0)])||t.shiftKey&&(b=Ly[t.keyCode])!=i&&b!=m&&p(h[s+jv(b,t,!1)]))&&(l=!0):a&&t.shiftKey&&p(h[s+jv(i,t,!0)])&&(l=!0),!l&&p(h._any)&&(l=!0)),u&&(l=!0),l&&c&&t.stopPropagation(),l}class rO{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=dZ(t);return[new rO(n,i.left-o.left,i.top-o.top,null,i.bottom-i.top)]}else return lAe(t,n,r)}}function dZ(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 wU(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 lAe(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=dZ(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=wR(e,r),m=wR(e,i),b=h.type==ra.Text?h:null,O=m.type==ra.Text?m:null;if(b&&(e.lineWrapping||h.widgetLineBreaks)&&(b=wU(e,r,b)),O&&(e.lineWrapping||m.widgetLineBreaks)&&(O=wU(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 uAe(e,t){return e.constructor==t.constructor&&e.eq(t)}class cAe{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(GE)!=t.state.facet(GE)&&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(GE);for(;n!uAe(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 GE=qt.define();function fZ(e){return[Jr.define(t=>new cAe(t,e)),GE.of(e)]}const pZ=!en.ios,By=qt.define({combine(e){return Pu(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(t,n)=>Math.min(t,n),drawRangeCursor:(t,n)=>t||n})}});function dAe(e={}){return[By.of(e),fAe,pAe,hAe,Uq.of(!0)]}function hZ(e){return e.startState.facet(By)!=e.state.facet(By)}const fAe=fZ({above:!0,markers(e){let{state:t}=e,n=t.facet(By),r=[];for(let i of t.selection.ranges){let o=i==t.selection.main;if(i.empty?!o||pZ: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 rO.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=hZ(e);return n&&kU(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){kU(t.state,e)},class:"cm-cursorLayer"});function kU(e,t){t.style.animationDuration=e.facet(By).cursorBlinkRate+"ms"}const pAe=fZ({above:!1,markers(e){return e.state.selection.ranges.map(t=>t.empty?[]:rO.forRange(e,"cm-selectionBackground",t)).reduce((t,n)=>t.concat(n))},update(e,t){return e.docChanged||e.selectionSet||e.viewportChanged||hZ(e)},class:"cm-selectionLayer"}),_R={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};pZ&&(_R[".cm-line"].caretColor="transparent !important",_R[".cm-content"]={caretColor:"transparent !important"});const hAe=af.highest(Vt.theme(_R)),mZ=xn.define({map(e,t){return e==null?null:t.mapPos(e)}}),ob=eo.define({create(){return null},update(e,t){return e!=null&&(e=t.changes.mapPos(e)),t.effects.reduce((n,r)=>r.is(mZ)?r.value:n,e)}}),mAe=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(ob);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(ob)!=n||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:e}=this,t=e.state.field(ob),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(ob)!=e&&this.view.dispatch({effects:mZ.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 gAe(){return[ob,mAe]}function xU(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 bAe(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 yAe{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 Wd,r=n.add.bind(n);for(let{from:i,to:o}of bAe(t,this.maxLength))xU(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 RR=/x/.unicode!=null?"gu":"g",OAe=new RegExp(`[\0-\b ---Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,RR),vAe={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 cA=null;function EAe(){var e;if(cA==null&&typeof document<"u"&&document.body){let t=document.body.style;cA=((e=t.tabSize)!==null&&e!==void 0?e:t.MozTabSize)!=null}return cA||!1}const qE=qt.define({combine(e){let t=Pu(e,{render:null,specialChars:OAe,addSpecialChars:null});return(t.replaceTabs=!EAe())&&(t.specialChars=new RegExp(" |"+t.specialChars.source,RR)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,RR)),t}});function SAe(e={}){return[qE.of(e),TAe()]}let CU=null;function TAe(){return CU||(CU=Jr.fromClass(class{constructor(e){this.view=e,this.decorations=ln.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(qE)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new yAe({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 CAe((s-l%s)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[o]||(this.decorationCache[o]=ln.replace({widget:new xAe(e,o)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(qE);e.startState.facet(qE)!=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 wAe="•";function kAe(e){return e>=32?wAe:e==10?"␤":String.fromCharCode(9216+e)}class xAe extends Lu{constructor(t,n){super(),this.options=t,this.code=n}eq(t){return t.code==this.code}toDOM(t){let n=kAe(this.code),r=t.state.phrase("Control character")+" "+(vAe[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 CAe 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 AAe(){return RAe}const _Ae=ln.line({class:"cm-activeLine"}),RAe=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(_Ae.range(i.from)),t=i.from)}return ln.set(n)}},{decorations:e=>e.decorations}),IR=2e3;function IAe(e,t,n){let r=Math.min(t.line,n.line),i=Math.max(t.line,n.line),o=[];if(t.off>IR||n.off>IR||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=uR(u.text,a,e.tabSize,!0);if(c<0)o.push(tt.cursor(u.to));else{let d=uR(u.text,s,e.tabSize);o.push(tt.range(u.from+c,u.from+d))}}}return o}function DAe(e,t){let n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}function AU(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>IR?-1:i==r.length?DAe(e,t.clientX):Dl(r.text,e.state.tabSize,n-r.from);return{line:r.number,col:o,off:i}}function NAe(e,t){let n=AU(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=AU(e,i);if(!s)return r;let l=IAe(e.state,n,s);return l.length?a?tt.create(l.concat(r.ranges)):tt.create(l):r}}:null}function PAe(e){let t=(e==null?void 0:e.eventFilter)||(n=>n.altKey&&n.button==0);return Vt.mouseSelectionStyle.of((n,r)=>t(r)?NAe(n,r):null)}const LAe={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},MAe={style:"cursor: crosshair"};function $Ae(e={}){let[t,n]=LAe[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,Vt.contentAttributes.of(i=>{var o;return!((o=i.plugin(r))===null||o===void 0)&&o.isDown?MAe:null})]}const A0="-10000px";class gZ{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 FAe(e){let{win:t}=e;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}const dA=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)||FAe}}}),_U=new WeakMap,_P=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(dA);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 gZ(e,RP,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(dA);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=A0,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==A0&&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(dA).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=A0;continue}let h=l.arrow?u.dom.querySelector(".cm-tooltip-arrow"):null,m=h?7:0,b=p.right-p.left,O=(t=_U.get(u))!==null&&t!==void 0?t:p.bottom-p.top,y=u.offset||UAe,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=A0}},{eventObservers:{scroll(){this.maybeMeasure()}}}),BAe=Vt.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"}}}),UAe={x:0,y:0},RP=qt.define({enables:[_P,BAe]}),yT=qt.define();class Wk{static create(t){return new Wk(t)}constructor(t){this.view=t,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new gZ(t,yT,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 jAe=RP.compute([yT],e=>{let t=e.facet(yT).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:Wk.create,above:t[0].above,arrow:t.some(n=>n.arrow)}});class zAe{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(_P),n=t?t.manager.tooltips.findIndex(r=>r.create==Wk.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&&!VAe(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:!HAe(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 zv=4;function VAe(e,t){let n=e.getBoundingClientRect();return t.clientX>=n.left-zv&&t.clientX<=n.right+zv&&t.clientY>=n.top-zv&&t.clientY<=n.bottom+zv}function HAe(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 WAe(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(QAe)&&(i=null);return i},provide:i=>yT.from(i)});return[r,Jr.define(i=>new zAe(i,e,r,n,t.hoverTime||300)),jAe]}function bZ(e,t){let n=e.plugin(_P);if(!n)return null;let r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}const QAe=xn.define(),RU=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 Uy(e,t){let n=e.plugin(yZ),r=n?n.specs.indexOf(t):-1;return r>-1?n.panels[r]:null}const yZ=Jr.fromClass(class{constructor(e){this.input=e.state.facet(jy),this.specs=this.input.filter(n=>n),this.panels=this.specs.map(n=>n(e));let t=e.state.facet(RU);this.top=new Vv(e,!0,t.topContainer),this.bottom=new Vv(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(RU);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new Vv(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new Vv(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(jy);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=>Vt.scrollMargins.of(t=>{let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class Vv{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=IU(t);t=t.nextSibling}else this.dom.insertBefore(n.dom,t);for(;t;)t=IU(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 IU(e){let t=e.nextSibling;return e.remove(),t}const jy=qt.define({enables:yZ});class kc extends vp{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 ZE=qt.define(),YAe={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Xn.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},Nb=qt.define();function GAe(e){return[OZ(),Nb.of(Object.assign(Object.assign({},YAe),e))]}const DR=qt.define({combine:e=>e.some(t=>t)});function OZ(e){let t=[qAe];return e&&e.fixed===!1&&t.push(DR.of(!0)),t}const qAe=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(Nb).map(t=>new NU(e,t));for(let t of this.gutters)this.dom.appendChild(t.dom);this.fixed=!e.state.facet(DR),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(DR)!=!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(ZE),this.view.viewport.from),r=[],i=this.gutters.map(o=>new ZAe(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){NR(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){NR(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(Nb),n=e.state.facet(Nb),r=e.docChanged||e.heightChanged||e.viewportChanged||!Xn.eq(e.startState.facet(ZE),e.state.facet(ZE),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 NU(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=>Vt.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 DU(e){return Array.isArray(e)?e:[e]}function NR(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class ZAe{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 vZ(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=[];NR(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 NU{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=DU(n.markers(t)),n.initialSpacer&&(this.spacer=new vZ(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=DU(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 vZ{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":""),XAe(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 fA extends kc{constructor(t){super(),this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function pA(e,t){return e.state.facet(Qh).formatNumber(t,e.state)}const JAe=Nb.compute([Qh],e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(t){return t.state.facet(KAe)},lineMarker(t,n,r){return r.some(i=>i.toDOM)?null:new fA(pA(t,t.state.doc.lineAt(n.from).number))},widgetMarker:()=>null,lineMarkerChange:t=>t.startState.facet(Qh)!=t.state.facet(Qh),initialSpacer(t){return new fA(pA(t,PU(t.state.doc.lines)))},updateSpacer(t,n){let r=pA(n.view,PU(n.view.state.doc.lines));return r==t.number?t:new fA(r)},domEventHandlers:e.facet(Qh).domEventHandlers}));function e2e(e={}){return[Qh.of(e),OZ(),JAe]}function PU(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(t2e.range(i)))}return Xn.of(t)});function r2e(){return n2e}const EZ=1024;let i2e=0;class js{constructor(t,n){this.from=t,this.to=n}}class vn{constructor(t={}){this.id=i2e++,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 zy{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 o2e=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):o2e,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 iO{constructor(t){this.types=t;for(let n=0;n0;for(let l=this.cursor(a|wr.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:NP($i.none,this.children,this.positions,0,this.children.length,0,this.length,(n,r,i)=>new ur(this.type,n,r,i,this.propValues),t.makeTree||((n,r,i)=>new ur($i.none,n,r,i)))}static build(t){return u2e(t)}}ur.empty=new ur($i.none,[],[],0);class IP{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 IP(this.buffer,this.index)}}class qd{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 Vy(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(SZ(i,r,d,d+c.length)){if(c instanceof qd){if(o&wr.ExcludeBuffers)continue;let p=c.findChild(0,c.buffer.length,n,r-d,i);if(p>-1)return new bu(new a2e(a,c,t,d),null,p)}else if(o&wr.IncludeAnonymous||!c.type.isAnonymous||DP(c)){let p;if(!(o&wr.IgnoreMounts)&&(p=zy.get(c))&&!p.overlay)return new Po(p.tree,d,t,a);let h=new Po(c,d,t,a);return o&wr.IncludeAnonymous||!h.type.isAnonymous?h:h.nextChild(n<0?c.children.length-1:0,n,r,i)}}}if(o&wr.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&wr.IgnoreOverlays)&&(i=zy.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 Po(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 MU(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 PR(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 a2e{constructor(t,n,r,i){this.parent=t,this.buffer=n,this.index=r,this.start=i}}class bu extends TZ{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&wr.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 ur(this.type,t,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function wZ(e){if(!e.length)return null;let t=0,n=e[0];for(let o=1;on.from||a.to=t){let s=new Po(a.tree,a.overlay[0].from+o.from,-1,o);(i||(i=[r])).push(Vy(s,t,n,!1))}}return i?wZ(i):r}class OT{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 Po)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 Po?(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&wr.ExcludeBuffers?!1:this.enterChild(1,t,n):this.yield(this._tree.enter(t,n,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&wr.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&wr.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&wr.IncludeAnonymous||s instanceof qd||!s.type.isAnonymous||DP(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 PR(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 DP(e){return e.children.some(t=>t instanceof qd||!t.type.isAnonymous||DP(t))}function u2e(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:i=EZ,reused:o=[],minRepeatType:a=r.types.length}=e,s=Array.isArray(n)?new IP(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 qd(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=NP(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 qd(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 ur){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 ur(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 ur(l[e.topID],v.reverse(),S.reverse(),k)}const $U=new WeakMap;function XE(e,t){if(!e.isAnonymous||t instanceof qd||t.type!=e)return 1;let n=$U.get(t);if(n==null){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof ur)){n=1;break}n+=XE(e,r)}$U.set(t,n)}return n}function NP(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(NP(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 kZ{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 Po&&this.map.set(t.tree,n)}get(t){return t instanceof bu?this.getBuffer(t.context.buffer,t.index):t instanceof Po?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 c2e{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 xZ(e){return(t,n,r,i)=>new f2e(t,e,n,r,i)}class FU{constructor(t,n,r,i,o){this.parser=t,this.parse=n,this.overlay=r,this.target=i,this.from=o}}function BU(e){if(!e.length||e.some(t=>t.from>=t.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(e))}class d2e{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 LR=new vn({perNode:!0});class f2e{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 ur(r.type,r.children,r.positions,r.length,r.propValues.concat([[LR,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 zy(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=p2e(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 p2e(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 UU(e,t,n,r,i,o){if(t=t&&n.enter(r,1,wr.IgnoreOverlays|wr.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 ur)n=n.children[0];else break}return!1}}let m2e=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(LR))!==null&&n!==void 0?n:r.to,this.inner=new jU(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(LR))!==null&&t!==void 0?t:n.to,this.inner=new jU(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 zU(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 g2e(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=g2e(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 b2e=0;class bl{constructor(t,n,r){this.set=t,this.base=n,this.modified=r,this.id=b2e++}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 vT;return n=>n.modified.indexOf(t)>-1?n:vT.get(n.base||n,n.modified.concat(t).sort((r,i)=>r.id-i.id))}}let y2e=0;class vT{constructor(){this.instances=[],this.id=y2e++}static get(t,n){if(!n.length)return t;let r=n[0].instances.find(s=>s.base==t&&O2e(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=v2e(n);for(let s of t.set)if(!s.modified.length)for(let l of a)i.push(vT.get(s,l));return o}}function O2e(e,t){return e.length==t.length&&e.every((n,r)=>n==t[r])}function v2e(e){let t=[[]];for(let n=0;nr.length-n.length)}function Rg(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 ET(r,a,l>0?o.slice(0,l):null);t[u]=c.sort(t[u])}}return CZ.add(t)}const CZ=new vn;class ET{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 E2e(e,t){let n=null;for(let r of e){let i=r.style(t);i&&(n=n?n+" "+i:i)}return n}function S2e(e,t,n,r=0,i=e.length){let o=new T2e(r,Array.isArray(t)?t:[t],n);o.highlightRange(e.cursor(),r,i,"",o.highlighters),o.flush(i)}class T2e{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=w2e(t)||ET.empty,d=E2e(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 w2e(e){let t=e.type.prop(CZ);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}const Lt=bl.define,Wv=Lt(),Kc=Lt(),HU=Lt(Kc),WU=Lt(Kc),Jc=Lt(),Qv=Lt(Jc),hA=Lt(Jc),tu=Lt(),yf=Lt(tu),Jl=Lt(),eu=Lt(),MR=Lt(),_0=Lt(MR),Yv=Lt(),he={comment:Wv,lineComment:Lt(Wv),blockComment:Lt(Wv),docComment:Lt(Wv),name:Kc,variableName:Lt(Kc),typeName:HU,tagName:Lt(HU),propertyName:WU,attributeName:Lt(WU),className:Lt(Kc),labelName:Lt(Kc),namespace:Lt(Kc),macroName:Lt(Kc),literal:Jc,string:Qv,docString:Lt(Qv),character:Lt(Qv),attributeValue:Lt(Qv),number:hA,integer:Lt(hA),float:Lt(hA),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:MR,separator:Lt(MR),bracket:_0,angleBracket:Lt(_0),squareBracket:Lt(_0),paren:Lt(_0),brace:Lt(_0),content:tu,heading:yf,heading1:Lt(yf),heading2:Lt(yf),heading3:Lt(yf),heading4:Lt(yf),heading5:Lt(yf),heading6:Lt(yf),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:Yv,documentMeta:Lt(Yv),annotation:Lt(Yv),processingInstruction:Lt(Yv),definition:bl.defineModifier(),constant:bl.defineModifier(),function:bl.defineModifier(),standard:bl.defineModifier(),local:bl.defineModifier(),special:bl.defineModifier()};AZ([{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 mA;const zf=new vn;function LP(e){return qt.define({combine:e?t=>t.concat(e):void 0})}const MP=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 xr(this)}}),this.parser=n,this.extension=[Zd.of(this),qn.languageData.of((o,a,s)=>{let l=QU(o,a,s),u=l.type.prop(zf);if(!u)return[];let c=o.facet(u),d=l.type.prop(MP);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 QU(t,n,r).type.prop(zf)==this.data}findRegions(t){let n=t.facet(Zd);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(zf)==this.data){r.push({from:a,to:a+o.length});return}let s=o.prop(vn.mounted);if(s){if(s.tree.prop(zf)==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 tg(this.data,this.parser.configure(t),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function xr(e){let t=e.field(zs.state,!1);return t?t.tree:ur.empty}class k2e{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 R0=null;class Hy{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 Hy(t,n,[],ur.empty,0,r,[],null)}startParse(){return this.parser.startParse(new k2e(this.state.doc),this.fragments)}work(t,n){return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=ur.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=R0;R0=this;try{return t()}finally{R0=n}}withoutTempSkipped(t){for(let n;n=this.tempSkipped.pop();)t=YU(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=ur.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=YU(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 PP{createParse(n,r,i){let o=i[0].from,a=i[i.length-1].to;return{parsedPos:o,advance(){let l=R0;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 ur($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 R0}}function YU(e,t,n){return pc.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class ng{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 ng(n)}static init(t){let n=Math.min(3e3,t.doc.length),r=Hy.create(t.facet(Zd).parser,t,{from:0,to:n});return r.work(20,n)||r.takeTree(),new ng(r)}}zs.state=eo.define({create:ng.init,update(e,t){for(let n of t.effects)if(n.is(zs.setState))return n.value;return t.startState.facet(Zd)!=t.state.facet(Zd)?ng.init(t.state):e.apply(t)}});let _Z=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};typeof requestIdleCallback<"u"&&(_Z=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const gA=typeof navigator<"u"&&(!((mA=navigator.scheduling)===null||mA===void 0)&&mA.isInputPending)?()=>navigator.scheduling.isInputPending():null,x2e=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=_Z(this.work))}work(t){this.working=null;let n=Date.now();if(this.chunkEndi+1e3,l=o.context.work(()=>gA&&gA()||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 ng(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()}}}),Zd=qt.define({combine(e){return e.length?e[0]:null},enables:e=>[zs.state,x2e,Vt.contentAttributes.compute([e],t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]});class Wy{constructor(t,n=[]){this.language=t,this.support=n,this.extension=[t,n]}}class ST{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 ST(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 C2e=qt.define(),oO=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 TT(e){let t=e.facet(oO);return t.charCodeAt(0)==9?e.tabSize*t.length:t.length}function Qy(e,t){let n="",r=e.tabSize,i=e.facet(oO)[0];if(i==" "){for(;t>=r;)n+=" ",t-=r;i=" "}for(let o=0;o=t?A2e(e,n,t):null}class Qk{constructor(t,n={}){this.state=t,this.options=n,this.unit=TT(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 aO=new vn;function A2e(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 RZ(r,e,n)}function RZ(e,t,n){for(let r=e;r;r=r.next){let i=R2e(r.node);if(i)return i(FP.create(t,n,r))}return 0}function _2e(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}function R2e(e){let t=e.type.prop(aO);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=>IZ(a,!0,1,void 0,o&&!_2e(a)?i.from:void 0)}return e.parent==null?I2e:null}function I2e(){return 0}class FP extends Qk{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 FP(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(D2e(r,t))break;n=this.state.doc.lineAt(r.from)}return this.lineIndent(n.from)}continue(){return RZ(this.context.next,this.base,this.pos)}}function D2e(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function N2e(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.fromIZ(r,t,n,e)}function IZ(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?N2e(e):null;return l?s?e.column(l.from):e.column(l.to):e.baseIndent+(s?0:e.unit*n)}const L2e=e=>e.baseIndent;function KE({except:e,units:t=1}={}){return n=>{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}const M2e=200;function $2e(){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+M2e)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=$P(a,c.from);if(d==null)continue;let p=/^\s*/.exec(c.text)[0],h=Qy(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 DZ=qt.define(),Ig=new vn;function NZ(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 B2e(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}function wT(e,t,n){for(let r of e.facet(DZ)){let i=r(e,t,n);if(i)return i}return F2e(e,t,n)}function PZ(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 Yk=xn.define({map:PZ}),sO=xn.define({map:PZ});function LZ(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 Tp=eo.define({create(){return ln.none},update(e,t){e=e.map(t.changes);for(let n of t.effects)if(n.is(Yk)&&!U2e(e,n.value.from,n.value.to)){let{preparePlaceholder:r}=t.state.facet(BP),i=r?ln.replace({widget:new Y2e(r(t.state,n.value))}):GU;e=e.update({add:[i.range(n.value.from,n.value.to)]})}else n.is(sO)&&(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=>Vt.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 U2e(e,t,n){let r=!1;return e.between(t,t,(i,o)=>{i==t&&o==n&&(r=!0)}),r}function MZ(e,t){return e.field(Tp,!1)?t:t.concat(xn.appendConfig.of(FZ()))}const j2e=e=>{for(let t of LZ(e)){let n=wT(e.state,t.from,t.to);if(n)return e.dispatch({effects:MZ(e.state,[Yk.of(n),$Z(e,n)])}),!0}return!1},z2e=e=>{if(!e.state.field(Tp,!1))return!1;let t=[];for(let n of LZ(e)){let r=kT(e.state,n.from,n.to);r&&t.push(sO.of(r),$Z(e,r,!1))}return t.length&&e.dispatch({effects:t}),t.length>0};function $Z(e,t,n=!0){let r=e.state.doc.lineAt(t.from).number,i=e.state.doc.lineAt(t.to).number;return Vt.announce.of(`${e.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${e.state.phrase("to")} ${i}.`)}const V2e=e=>{let{state:t}=e,n=[];for(let r=0;r{let t=e.state.field(Tp,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,(r,i)=>{n.push(sO.of({from:r,to:i}))}),e.dispatch({effects:n}),!0},W2e=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:j2e},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:z2e},{key:"Ctrl-Alt-[",run:V2e},{key:"Ctrl-Alt-]",run:H2e}],Q2e={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},BP=qt.define({combine(e){return Pu(e,Q2e)}});function FZ(e){let t=[Tp,Z2e];return e&&t.push(BP.of(e)),t}function BZ(e,t){let{state:n}=e,r=n.facet(BP),i=a=>{let s=e.lineBlockAt(e.posAtDOM(a.target)),l=kT(e.state,s.from,s.to);l&&e.dispatch({effects:sO.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 GU=ln.replace({widget:new class extends Lu{toDOM(e){return BZ(e,null)}}});class Y2e extends Lu{constructor(t){super(),this.value=t}eq(t){return this.value==t.value}toDOM(t){return BZ(t,this.value)}}const G2e={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class bA 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 q2e(e={}){let t=Object.assign(Object.assign({},G2e),e),n=new bA(t,!0),r=new bA(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(Zd)!=a.state.facet(Zd)||a.startState.field(Tp,!1)!=a.state.field(Tp,!1)||xr(a.startState)!=xr(a.state)||t.foldingChanged(a))&&(this.markers=this.buildMarkers(a.view))}buildMarkers(a){let s=new Wd;for(let l of a.viewportLineBlocks){let u=kT(a.state,l.from,l.to)?r:wT(a.state,l.from,l.to)?n:null;u&&s.add(l.from,l.from,u)}return s.finish()}}),{domEventHandlers:o}=t;return[i,GAe({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 bA(t,!1)},domEventHandlers:Object.assign(Object.assign({},o),{click:(a,s,l)=>{if(o.click&&o.click(a,s,l))return!0;let u=kT(a.state,s.from,s.to);if(u)return a.dispatch({effects:sO.of(u)}),!0;let c=wT(a.state,s.from,s.to);return c?(a.dispatch({effects:Yk.of(c)}),!0):!1}})}),FZ()]}const Z2e=Vt.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 lO{constructor(t,n){this.specs=t;let r;function i(s){let l=Qd.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(zf)==a.data:a?s=>s==a:void 0,this.style=AZ(t.map(s=>({tag:s.tag,class:s.class||i(Object.assign({},s,{tag:null}))})),{all:o}).style,this.module=r?new Qd(r):null,this.themeType=n.themeType}static define(t,n){return new lO(t,n||{})}}const $R=qt.define(),UZ=qt.define({combine(e){return e.length?[e[0]]:null}});function yA(e){let t=e.facet($R);return t.length?t:e.facet(UZ)}function jZ(e,t){let n=[K2e],r;return e instanceof lO&&(e.module&&n.push(Vt.styleModule.of(e.module)),r=e.themeType),t!=null&&t.fallback?n.push(UZ.of(e)):r?n.push($R.computeN([Vt.darkTheme],i=>i.facet(Vt.darkTheme)==(r=="dark")?[e]:[])):n.push($R.of(e)),n}class X2e{constructor(t){this.markCache=Object.create(null),this.tree=xr(t.state),this.decorations=this.buildDeco(t,yA(t.state))}update(t){let n=xr(t.state),r=yA(t.state),i=r!=yA(t.startState);n.length{r.add(a,s,this.markCache[l]||(this.markCache[l]=ln.mark({class:l})))},i,o);return r.finish()}}const K2e=af.high(Jr.fromClass(X2e,{decorations:e=>e.decorations})),J2e=lO.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"}]),e_e=Vt.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),zZ=1e4,VZ="()[]{}",HZ=qt.define({combine(e){return Pu(e,{afterCursor:!0,brackets:VZ,maxScanDistance:zZ,renderMatch:r_e})}}),t_e=ln.mark({class:"cm-matchingBracket"}),n_e=ln.mark({class:"cm-nonmatchingBracket"});function r_e(e){let t=[],n=e.matched?t_e:n_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 i_e=eo.define({create(){return ln.none},update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],r=t.state.facet(HZ);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.headVt.decorations.from(e)}),o_e=[i_e,e_e];function a_e(e={}){return[HZ.of(e),o_e]}const WZ=new vn;function FR(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 BR(e){let t=e.type.prop(WZ);return t?t(e.node):e}function yu(e,t,n,r={}){let i=r.maxScanDistance||zZ,o=r.brackets||VZ,a=xr(e),s=a.resolveInner(t,n);for(let l=s;l;l=l.parent){let u=FR(l.type,n,o);if(u&&l.from0?t>=c.from&&tc.from&&t<=c.to))return s_e(e,t,n,l,c,u,o)}}return l_e(e,t,n,a,s.type,i,o)}function s_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 u_e=Object.create(null),qU=[$i.none],ZU=[],XU=Object.create(null),c_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"]])c_e[e]=d_e(u_e,t);function OA(e,t){ZU.indexOf(e)>-1||(ZU.push(e),console.warn(t))}function d_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):OA(u,`Modifier ${u} used at start of tag`):l.length?OA(u,`Tag ${u} used as modifier`):l=Array.isArray(c)?c:[c]:OA(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=XU[i];if(o)return o.id;let a=XU[i]=$i.define({id:qU.length,name:r,props:[Rg({[r]:n})]});return qU.push(a),a.id}Mr.RTL,Mr.LTR;const f_e=e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=jP(e.state,n.from);return r.line?p_e(e):r.block?m_e(e):!1};function UP(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 p_e=UP(y_e,0),h_e=UP(QZ,0),m_e=UP((e,t)=>QZ(e,t,b_e(t)),0);function jP(e,t){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}const I0=50;function g_e(e,{open:t,close:n},r,i){let o=e.sliceDoc(r-I0,r),a=e.sliceDoc(i,i+I0),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*I0?c=d=e.sliceDoc(r,i):(c=e.sliceDoc(r,r+I0),d=e.sliceDoc(i-I0,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 b_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 QZ(e,t,n=t.selection.ranges){let r=n.map(o=>jP(t,o.from).block);if(!r.every(o=>o))return null;let i=n.map((o,a)=>g_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 UR=Fl.define(),O_e=Fl.define(),v_e=qt.define(),YZ=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)})}}),GZ=eo.define({create(){return Ou.empty},update(e,t){let n=t.state.facet(YZ),r=t.annotation(UR);if(r){let l=Sa.fromTransaction(t,r.selection),u=r.side,c=u==0?e.undone:e.done;return l?c=xT(c,c.length,n.minDepth,l):c=XZ(c,t.startState.selection),new Ou(u==0?r.rest:c,u==0?c:r.rest)}let i=t.annotation(O_e);if((i=="full"||i=="before")&&(e=e.isolate()),t.annotation(Ti.addToHistory)===!1)return t.changes.empty?e:e.addMapping(t.changes.desc);let o=Sa.fromTransaction(t),a=t.annotation(Ti.time),s=t.annotation(Ti.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(Sa.fromJSON),e.undone.map(Sa.fromJSON))}});function E_e(e={}){return[GZ,YZ.of(e),Vt.domEventHandlers({beforeinput(t,n){let r=t.inputType=="historyUndo"?qZ:t.inputType=="historyRedo"?jR:null;return r?(t.preventDefault(),r(n)):!1}})]}function Gk(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let i=n.field(GZ,!1);if(!i)return!1;let o=i.pop(e,n,t);return o?(r(o),!0):!1}}const qZ=Gk(0,!1),jR=Gk(1,!1),S_e=Gk(0,!0),T_e=Gk(1,!0);class Sa{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 Sa(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 Sa(t.changes&&Di.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(v_e)){let o=i(t);o.length&&(r=r.concat(o))}return!r.length&&t.changes.empty?null:new Sa(t.changes.invert(t.startState.doc),r,void 0,n||t.startState.selection,Vs)}static selection(t){return new Sa(void 0,Vs,void 0,void 0,t)}}function xT(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 w_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 k_e(e,t){return e.ranges.length==t.ranges.length&&e.ranges.filter((n,r)=>n.empty!=t.ranges[r].empty).length===0}function ZZ(e,t){return e.length?t.length?e.concat(t):e:t}const Vs=[],x_e=200;function XZ(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-x_e));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),xT(e,e.length-1,1e9,n.setSelAfter(r)))}else return[Sa.selection([t])]}function C_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 vA(e,t){if(!e.length)return e;let n=e.length,r=Vs;for(;n;){let i=A_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?[Sa.selection(r)]:Vs}function A_e(e,t,n){let r=ZZ(e.selectionsAfter.length?e.selectionsAfter.map(s=>s.map(t)):Vs,n);if(!e.changes)return Sa.selection(r);let i=e.changes.map(t),o=t.mapDesc(e.changes,!0),a=e.mapped?e.mapped.composeDesc(o):o;return new Sa(i,xn.mapEffects(e.effects,t),a,e.startSelection.map(o),r)}const __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||__e.test(r))&&(!s.selectionsAfter.length&&n-this.prevTime0&&n-this.prevTimen.empty?e.moveByChar(n,t):qk(n,t))}function Uo(e){return e.textDirectionAt(e.state.selection.main.head)==Mr.LTR}const JZ=e=>KZ(e,!Uo(e)),eX=e=>KZ(e,Uo(e));function tX(e,t){return Bl(e,n=>n.empty?e.moveByGroup(n,t):qk(n,t))}const I_e=e=>tX(e,!Uo(e)),D_e=e=>tX(e,Uo(e));function N_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 Zk(e,t,n){let r=xr(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;N_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 P_e=e=>Bl(e,t=>Zk(e.state,t,!Uo(e))),L_e=e=>Bl(e,t=>Zk(e.state,t,Uo(e)));function nX(e,t){return Bl(e,n=>{if(!n.empty)return qk(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)})}const rX=e=>nX(e,!1),iX=e=>nX(e,!0);function oX(e){let t=e.scrollDOM.clientHeighta.empty?e.moveVertically(a,t,n.height):qk(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.bottomaX(e,!1),zR=e=>aX(e,!0);function sf(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 M_e=e=>Bl(e,t=>sf(e,t,!0)),$_e=e=>Bl(e,t=>sf(e,t,!1)),F_e=e=>Bl(e,t=>sf(e,t,!Uo(e))),B_e=e=>Bl(e,t=>sf(e,t,Uo(e))),U_e=e=>Bl(e,t=>tt.cursor(e.lineBlockAt(t.head).from,1)),j_e=e=>Bl(e,t=>tt.cursor(e.lineBlockAt(t.head).to,-1));function z_e(e,t,n){let r=!1,i=Dg(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.headz_e(e,t,!1);function il(e,t){let n=Dg(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 sX(e,t){return il(e,n=>e.moveByChar(n,t))}const lX=e=>sX(e,!Uo(e)),uX=e=>sX(e,Uo(e));function cX(e,t){return il(e,n=>e.moveByGroup(n,t))}const H_e=e=>cX(e,!Uo(e)),W_e=e=>cX(e,Uo(e)),Q_e=e=>il(e,t=>Zk(e.state,t,!Uo(e))),Y_e=e=>il(e,t=>Zk(e.state,t,Uo(e)));function dX(e,t){return il(e,n=>e.moveVertically(n,t))}const fX=e=>dX(e,!1),pX=e=>dX(e,!0);function hX(e,t){return il(e,n=>e.moveVertically(n,t,oX(e).height))}const JU=e=>hX(e,!1),e9=e=>hX(e,!0),G_e=e=>il(e,t=>sf(e,t,!0)),q_e=e=>il(e,t=>sf(e,t,!1)),Z_e=e=>il(e,t=>sf(e,t,!Uo(e))),X_e=e=>il(e,t=>sf(e,t,Uo(e))),K_e=e=>il(e,t=>tt.cursor(e.lineBlockAt(t.head).from)),J_e=e=>il(e,t=>tt.cursor(e.lineBlockAt(t.head).to)),t9=({state:e,dispatch:t})=>(t(Mu(e,{anchor:0})),!0),n9=({state:e,dispatch:t})=>(t(Mu(e,{anchor:e.doc.length})),!0),r9=({state:e,dispatch:t})=>(t(Mu(e,{anchor:e.selection.main.anchor,head:0})),!0),i9=({state:e,dispatch:t})=>(t(Mu(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0),eRe=({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0),tRe=({state:e,dispatch:t})=>{let n=Xk(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},nRe=({state:e,dispatch:t})=>{let n=Dg(e.selection,r=>{var i;let o=xr(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},rRe=({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 uO(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=Gv(e,l,!0)),a=Math.min(a,l),s=Math.max(s,l)}else a=Gv(e,a,!1),s=Gv(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 mX=(e,t)=>uO(e,n=>{let r=n.from,{state:i}=e,o=i.doc.lineAt(r),a,s;if(!t&&r>o.from&&rmX(e,!1),gX=e=>mX(e,!0),bX=(e,t)=>uO(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}),yX=e=>bX(e,!1),iRe=e=>bX(e,!0),oRe=e=>uO(e,t=>{let n=e.lineBlockAt(t.head).to;return t.headuO(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}),sRe=e=>uO(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},uRe=({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 Xk(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 OX(e,t,n){if(e.readOnly)return!1;let r=[],i=[];for(let o of Xk(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 cRe=({state:e,dispatch:t})=>OX(e,t,!1),dRe=({state:e,dispatch:t})=>OX(e,t,!0);function vX(e,t,n){if(e.readOnly)return!1;let r=[];for(let i of Xk(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 fRe=({state:e,dispatch:t})=>vX(e,t,!1),pRe=({state:e,dispatch:t})=>vX(e,t,!0),hRe=e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(Xk(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 mRe(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n=xr(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 gRe=EX(!1),bRe=EX(!0);function EX(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&&mRe(t,o);e&&(o=a=(a<=s.to?s:t.doc.lineAt(a)).to);let u=new Qk(t,{simulateBreak:o,simulateDoubleBreak:!!l}),c=$P(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 yRe=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new Qk(e,{overrideIndentation:o=>{let a=n[o];return a??-1}}),i=zP(e,(o,a,s)=>{let l=$P(r,o.from);if(l==null)return;/\S/.test(o.text)||(l=0);let u=/^\s*/.exec(o.text)[0],c=Qy(e,l);(u!=c||s.frome.readOnly?!1:(t(e.update(zP(e,(n,r)=>{r.push({from:n.from,insert:e.facet(oO)})}),{userEvent:"input.indent"})),!0),TX=({state:e,dispatch:t})=>e.readOnly?!1:(t(e.update(zP(e,(n,r)=>{let i=/^\s*/.exec(n.text)[0];if(!i)return;let o=Dl(i,e.tabSize),a=0,s=Qy(e,Math.max(0,o-TT(e)));for(;a({mac:e.key,run:e.run,shift:e.shift}))),ERe=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:P_e,shift:Q_e},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:L_e,shift:Y_e},{key:"Alt-ArrowUp",run:cRe},{key:"Shift-Alt-ArrowUp",run:fRe},{key:"Alt-ArrowDown",run:dRe},{key:"Shift-Alt-ArrowDown",run:pRe},{key:"Escape",run:rRe},{key:"Mod-Enter",run:bRe},{key:"Alt-l",mac:"Ctrl-l",run:tRe},{key:"Mod-i",run:nRe,preventDefault:!0},{key:"Mod-[",run:TX},{key:"Mod-]",run:SX},{key:"Mod-Alt-\\",run:yRe},{key:"Shift-Mod-k",run:hRe},{key:"Shift-Mod-\\",run:V_e},{key:"Mod-/",run:f_e},{key:"Alt-A",run:h_e}].concat(vRe),SRe={key:"Tab",run:SX,shift:TX};function Tr(){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 rg{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(o9(s)):o9,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=yP(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=CT(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 fm(n,t.sliceString(n,r));return EA.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=CT(this.text,i+(r==i?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=fm.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(xX.prototype[Symbol.iterator]=CX.prototype[Symbol.iterator]=function(){return this});function TRe(e){try{return new RegExp(e,VP),!0}catch{return!1}}function CT(e,t){if(t>=e.length)return t;let n=e.lineAt(t),r;for(;t=56320&&r<57344;)t++;return t}function HR(e){let t=String(e.state.doc.lineAt(e.state.selection.main.head).number),n=Tr("input",{class:"cm-textfield",name:"line",value:t}),r=Tr("form",{class:"cm-gotoLine",onkeydown:o=>{o.keyCode==27?(o.preventDefault(),e.dispatch({effects:AT.of(!1)}),e.focus()):o.keyCode==13&&(o.preventDefault(),i())},onsubmit:o=>{o.preventDefault(),i()}},Tr("label",e.state.phrase("Go to line"),": ",n)," ",Tr("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:[AT.of(!1),Vt.scrollIntoView(b.from,{y:"center"})],selection:b}),e.focus()}return{dom:r}}const AT=xn.define(),a9=eo.define({create(){return!0},update(e,t){for(let n of t.effects)n.is(AT)&&(e=n.value);return e},provide:e=>jy.from(e,t=>t?HR:null)}),wRe=e=>{let t=Uy(e,HR);if(!t){let n=[AT.of(!0)];e.state.field(a9,!1)==null&&n.push(xn.appendConfig.of([a9,kRe])),e.dispatch({effects:n}),t=Uy(e,HR)}return t&&t.dom.querySelector("input").select(),!0},kRe=Vt.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),xRe={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},AX=qt.define({combine(e){return Pu(e,xRe,{highlightWordAroundCursor:(t,n)=>t||n,minSelectionLength:Math.min,maxMatches:Math.min})}});function CRe(e){let t=[DRe,IRe];return e&&t.push(AX.of(e)),t}const ARe=ln.mark({class:"cm-selectionMatch"}),_Re=ln.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function s9(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 RRe(e,t,n,r){return e(t.sliceDoc(n,n+1))==Qr.Word&&e(t.sliceDoc(r-1,r))==Qr.Word}const IRe=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(AX),{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),!(s9(a,n,i.from,i.to)&&RRe(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 rg(n.doc,o,l.from,l.to);for(;!u.next().done;){let{from:c,to:d}=u.value;if((!a||s9(a,n,c,d))&&(i.empty&&c<=i.from&&d>=i.to?s.push(_Re.range(c,d)):(c>=i.to||d<=i.from)&&s.push(ARe.range(c,d)),s.length>t.maxMatches))return ln.none}}return ln.set(s)}},{decorations:e=>e.decorations}),DRe=Vt.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),NRe=({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 PRe(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 rg(e.doc,t,r[r.length-1].to);;)if(s.next(),s.done){if(a)return null;s=new rg(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 LRe=({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some(o=>o.from===o.to))return NRe({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=PRe(e,r);return i?(t(e.update({selection:e.selection.addRange(tt.range(i.from,i.to),!1),effects:Vt.scrollIntoView(i.to)})),!0):!1},Ng=qt.define({combine(e){return Pu(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:t=>new YRe(t),scrollToMatch:t=>Vt.scrollIntoView(t)})}});class _X{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||TRe(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 BRe(this):new $Re(this)}getCursor(t,n=0,r){let i=t.doc?t:qn.create({doc:t});return r==null&&(r=i.doc.length),this.regexp?Th(this,i,n,r):Sh(this,i,n,r)}}class RX{constructor(t){this.spec=t}}function Sh(e,t,n,r){return new rg(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:i=>i.toLowerCase(),e.wholeWord?MRe(t.doc,t.charCategorizer(t.selection.main.head)):void 0)}function MRe(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=Sh(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 Th(e,t,n,r){return new xX(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?FRe(t.charCategorizer(t.selection.main.head)):void 0},n,r)}function _T(e,t){return e.slice(go(e,t,!1),t)}function RT(e,t){return e.slice(t,go(e,t))}function FRe(e){return(t,n,r)=>!r[0].length||(e(_T(r.input,r.index))!=Qr.Word||e(RT(r.input,r.index))!=Qr.Word)&&(e(RT(r.input,r.index+r[0].length))!=Qr.Word||e(_T(r.input,r.index+r[0].length))!=Qr.Word)}class BRe extends RX{nextMatch(t,n,r){let i=Th(this.spec,t,r,t.doc.length).next();return i.done&&(i=Th(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=Th(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=Th(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 Yy=xn.define(),HP=xn.define(),Dd=eo.define({create(e){return new SA(WR(e).create(),null)},update(e,t){for(let n of t.effects)n.is(Yy)?e=new SA(n.value.create(),e.panel):n.is(HP)&&(e=new SA(e.query,n.value?WP:null));return e},provide:e=>jy.from(e,t=>t.panel)});class SA{constructor(t,n){this.query=t,this.panel=n}}const URe=ln.mark({class:"cm-searchMatch"}),jRe=ln.mark({class:"cm-searchMatch cm-searchMatch-selected"}),zRe=Jr.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(Dd))}update(e){let t=e.state.field(Dd);(t!=e.startState.field(Dd)||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 Wd;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?jRe:URe)})}return r.finish()}},{decorations:e=>e.decorations});function cO(e){return t=>{let n=t.state.field(Dd,!1);return n&&n.query.spec.valid?e(t,n):NX(t)}}const IT=cO((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(Ng);return e.dispatch({selection:i,effects:[QP(e,r),o.scrollToMatch(i.main,e)],userEvent:"select.search"}),DX(e),!0}),DT=cO((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(Ng);return e.dispatch({selection:o,effects:[QP(e,i),a.scrollToMatch(o.main,e)],userEvent:"select.search"}),DX(e),!0}),VRe=cO((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)}),HRe=({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 rg(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},l9=cO((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(Vt.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(Ng).scrollToMatch(s.main,e))}return e.dispatch({changes:a,selection:s,effects:u,userEvent:"input.replace"}),!0}),WRe=cO((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:Vt.announce.of(r),userEvent:"input.replace.all"}),!0});function WP(e){return e.state.facet(Ng).createPanel(e)}function WR(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(Ng);return new _X({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 IX(e){let t=Uy(e,WP);return t&&t.dom.querySelector("[main-field]")}function DX(e){let t=IX(e);t&&t==e.root.activeElement&&t.select()}const NX=e=>{let t=e.state.field(Dd,!1);if(t&&t.panel){let n=IX(e);if(n&&n!=e.root.activeElement){let r=WR(e.state,t.query.spec);r.valid&&e.dispatch({effects:Yy.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[HP.of(!0),t?Yy.of(WR(e.state,t.query.spec)):xn.appendConfig.of(qRe)]});return!0},PX=e=>{let t=e.state.field(Dd,!1);if(!t||!t.panel)return!1;let n=Uy(e,WP);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:HP.of(!1)}),!0},QRe=[{key:"Mod-f",run:NX,scope:"editor search-panel"},{key:"F3",run:IT,shift:DT,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:IT,shift:DT,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:PX,scope:"editor search-panel"},{key:"Mod-Shift-l",run:HRe},{key:"Mod-Alt-g",run:wRe},{key:"Mod-d",run:LRe,preventDefault:!0}];class YRe{constructor(t){this.view=t;let n=this.query=t.state.field(Dd).query.spec;this.commit=this.commit.bind(this),this.searchField=Tr("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=Tr("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=Tr("input",{type:"checkbox",name:"case",form:"",checked:n.caseSensitive,onchange:this.commit}),this.reField=Tr("input",{type:"checkbox",name:"re",form:"",checked:n.regexp,onchange:this.commit}),this.wordField=Tr("input",{type:"checkbox",name:"word",form:"",checked:n.wholeWord,onchange:this.commit});function r(i,o,a){return Tr("button",{class:"cm-button",name:i,onclick:o,type:"button"},a)}this.dom=Tr("div",{onkeydown:i=>this.keydown(i),class:"cm-search"},[this.searchField,r("next",()=>IT(t),[Ha(t,"next")]),r("prev",()=>DT(t),[Ha(t,"previous")]),r("select",()=>VRe(t),[Ha(t,"all")]),Tr("label",null,[this.caseField,Ha(t,"match case")]),Tr("label",null,[this.reField,Ha(t,"regexp")]),Tr("label",null,[this.wordField,Ha(t,"by word")]),...t.state.readOnly?[]:[Tr("br"),this.replaceField,r("replace",()=>l9(t),[Ha(t,"replace")]),r("replaceAll",()=>WRe(t),[Ha(t,"replace all")])],Tr("button",{name:"close",onclick:()=>PX(t),"aria-label":Ha(t,"close"),type:"button"},["×"])])}commit(){let t=new _X({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:Yy.of(t)}))}keydown(t){oAe(this.view,t,"search-panel")?t.preventDefault():t.keyCode==13&&t.target==this.searchField?(t.preventDefault(),(t.shiftKey?DT:IT)(this.view)):t.keyCode==13&&t.target==this.replaceField&&(t.preventDefault(),l9(this.view))}update(t){for(let n of t.transactions)for(let r of n.effects)r.is(Yy)&&!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(Ng).top}}function Ha(e,t){return e.state.phrase(t)}const qv=30,Zv=/[\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-qv),a=Math.min(i,n+qv),s=e.state.sliceDoc(o,a);if(o!=r.from){for(let l=0;ls.length-qv;l--)if(!Zv.test(s[l-1])&&Zv.test(s[l])){s=s.slice(0,l);break}}return Vt.announce.of(`${e.state.phrase("current match")}. ${s} ${e.state.phrase("on line")} ${r.number}.`)}const GRe=Vt.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"}}),qRe=[Dd,af.low(zRe),GRe];class YP{constructor(t,n,r){this.state=t,this.pos=n,this.explicit=r,this.abortListeners=[]}tokenBefore(t){let n=xr(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(MX(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 u9(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 ZRe(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+$/]:ZRe(t);return i=>{let o=i.matchBefore(r);return o||i.explicit?{from:o?o.from:i.pos,options:t,validFor:n}:null}}function XRe(e,t){return n=>{for(let r=xr(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 c9{constructor(t,n,r,i){this.completion=t,this.source=n,this.match=r,this.score=i}}function Nd(e){return e.selection.main.from}function MX(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 $X=Fl.define();function KRe(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 d9=new WeakMap;function JRe(e){if(!Array.isArray(e))return e;let t=d9.get(e);return t||d9.set(e,t=LX(e)),t}const NT=xn.define(),Gy=xn.define();class eIe{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=yP(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:tIe,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=>f9(t(r),n(r)),optionClass:(t,n)=>r=>f9(t(r),n(r)),addToOptions:(t,n)=>t.concat(n)})}});function f9(e,t){return e?t?e+" "+t:e:t}function tIe(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 nIe(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 TA(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 rIe{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=nIe(s),this.optionClass=s.optionClass,this.tooltipClass=s.tooltipClass,this.range=TA(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:Gy.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=TA(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=TA(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&&oIe(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 rIe(n,e,t)}function oIe(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 p9(e){return(e.boost||0)*100+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}function aIe(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 c9(c,l.source,u?u(c):[],1e9-n.length));else{let c=new eIe(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 c9(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):p9(l.completion)>p9(a)&&(o[o.length-1]=l),a=l.completion}return o}class Yh{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 Yh(this.options,h9(n,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,n,r,i,o){let a=aIe(t,n);if(!a.length)return i&&t.some(l=>l.state==1)?new Yh(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:dIe,above:o.aboveCursor},i?i.timestamp:Date.now(),s,!1)}map(t){return new Yh(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class PT{constructor(t,n,r){this.active=t,this.id=n,this.open=r}static start(){return new PT(uIe,"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",Nd(n)).map(JRe)).map(s=>(this.active.find(u=>u.source==s)||new Oa(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))||!sIe(o,this.active)?a=Yh.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 Oa(s.source,0):s));for(let s of t.effects)s.is(BX)&&(a=a&&a.setSelected(s.value,this.id));return o==this.active&&a==this.open?this:new PT(o,this.id,a)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:lIe}}function sIe(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;n-1&&(n["aria-activedescendant"]=e+"-"+t),n}const uIe=[];function QR(e){return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null}class Oa{constructor(t,n,r=-1){this.source=t,this.state=n,this.explicitPos=r}hasResult(){return!1}update(t,n){let r=QR(t),i=this;r?i=i.handleUserEvent(t,r,n):t.docChanged?i=i.handleChange(t):t.selection&&i.state!=0&&(i=new Oa(i.source,0));for(let o of t.effects)if(o.is(NT))i=new Oa(i.source,1,o.value?Nd(t.state):-1);else if(o.is(Gy))i=new Oa(i.source,0);else if(o.is(FX))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 Oa(this.source,1)}handleChange(t){return t.changes.touchesRange(Nd(t.startState))?new Oa(this.source,0):this.map(t.changes)}map(t){return t.empty||this.explicitPos<0?this:new Oa(this.source,this.state,t.mapPos(this.explicitPos))}}class pm extends Oa{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=Nd(t.state);if((this.explicitPos<0?s<=o:sa||n=="delete"&&Nd(t.startState)==this.from)return new Oa(this.source,n=="input"&&r.activateOnTyping?1:0);let l=this.explicitPos<0?-1:t.changes.mapPos(this.explicitPos),u;return cIe(this.result.validFor,t.state,o,a)?new pm(this.source,l,this.result,o,a):this.result.update&&(u=this.result.update(this.result,o,a,new YP(t.state,s,l>=0)))?new pm(this.source,l,u,u.from,(i=u.to)!==null&&i!==void 0?i:Nd(t.state)):new Oa(this.source,1,l)}handleChange(t){return t.changes.touchesRange(this.from,this.to)?new Oa(this.source,0):this.map(t.changes)}map(t){return t.empty?this:new pm(this.source,this.explicitPos<0?-1:t.mapPos(this.explicitPos),this.result,t.mapPos(this.from),t.mapPos(this.to,1))}}function cIe(e,t,n,r){if(!e)return!1;let i=t.sliceDoc(n,r);return typeof e=="function"?e(i,n,r,t):MX(e,!0).test(i)}const FX=xn.define({map(e,t){return e.map(n=>n.map(t))}}),BX=xn.define(),ts=eo.define({create(){return PT.start()},update(e,t){return e.update(t)},provide:e=>[RP.from(e,t=>t.tooltip),Vt.contentAttributes.from(e,t=>t.attrs)]});function UX(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 pm?(typeof n=="string"?e.dispatch(Object.assign(Object.assign({},KRe(e.state,n,r.from,r.to)),{annotations:$X.of(t.completion)})):n(e,t.completion,r.from,r.to),!0):!1}const dIe=iIe(ts,UX);function Xv(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:BX.of(s)}),!0}}const fIe=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:NT.of(!0)}),!0):!1,hIe=e=>{let t=e.state.field(ts,!1);return!t||!t.active.some(n=>n.state!=0)?!1:(e.dispatch({effects:Gy.of(null)}),!0)};class mIe{constructor(t,n){this.active=t,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0}}const gIe=50,bIe=1e3,yIe=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)&&!QR(i));for(let i=0;igIe&&Date.now()-o.time>bIe){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(NT)))&&(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)QR(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=Nd(t),r=new YP(t,n,e.explicitPos==n),i=new mIe(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:Gy.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 Oa(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:FX.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&&bZ(this.view,t.open.tooltip);(!n||!n.dom.contains(e.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:Gy.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:NT.of(!1)}),20),this.composing=0}}}),jX=Vt.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 OIe{constructor(t,n,r,i){this.field=t,this.line=n,this.from=r,this.to=i}}class GP{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 GP(this.field,n,r)}}class qP{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 GP(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 OIe(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 qP(r,i)}}let vIe=ln.widget({widget:new class extends Lu{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),EIe=ln.mark({class:"cm-snippetField"});class Pg{constructor(t,n){this.ranges=t,this.active=n,this.deco=ln.set(t.map(r=>(r.from==r.to?vIe:EIe).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 Pg(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 dO=xn.define({map(e,t){return e&&e.map(t)}}),SIe=xn.define(),qy=eo.define({create(){return null},update(e,t){for(let n of t.effects){if(n.is(dO))return n.value;if(n.is(SIe)&&e)return new Pg(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=>Vt.decorations.from(e,t=>t?t.deco:ln.none)});function ZP(e,t){return tt.create(e.filter(n=>n.field==t).map(n=>tt.range(n.from,n.to)))}function TIe(e){let t=qP.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?[$X.of(r),Ti.userEvent.of("input.complete")]:void 0};if(s.length&&(l.selection=ZP(s,0)),s.some(u=>u.field>0)){let u=new Pg(s,0),c=l.effects=[dO.of(u)];n.state.field(qy,!1)===void 0&&c.push(xn.appendConfig.of([qy,AIe,_Ie,jX]))}n.dispatch(n.state.update(l))}}function zX(e){return({state:t,dispatch:n})=>{let r=t.field(qy,!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:ZP(r.ranges,i),effects:dO.of(o?null:new Pg(r.ranges,i)),scrollIntoView:!0})),!0}}const wIe=({state:e,dispatch:t})=>e.field(qy,!1)?(t(e.update({effects:dO.of(null)})),!0):!1,kIe=zX(1),xIe=zX(-1),CIe=[{key:"Tab",run:kIe,shift:xIe},{key:"Escape",run:wIe}],m9=qt.define({combine(e){return e.length?e[0]:CIe}}),AIe=af.highest(_g.compute([m9],e=>e.facet(m9)));function ha(e,t){return Object.assign(Object.assign({},t),{apply:TIe(e)})}const _Ie=Vt.domEventHandlers({mousedown(e,t){let n=t.state.field(qy,!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:ZP(n.ranges,i.field),effects:dO.of(n.ranges.some(o=>o.field>i.field)?new Pg(n.ranges,i.field):null),scrollIntoView:!0}),!0)}}),Zy={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Vf=xn.define({map(e,t){let n=t.mapPos(e,-1,ho.TrackAfter);return n??void 0}}),XP=new class extends vp{};XP.startSide=1;XP.endSide=-1;const VX=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(Vf)&&(e=e.update({add:[XP.range(n.value,n.value+1)]}));return e}});function RIe(){return[DIe,VX]}const wA="()[]{}<>";function HX(e){for(let t=0;t{if((IIe?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=LIe(e.state,r);return o?(e.dispatch(o),!0):!1}),NIe=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let r=WX(e,e.selection.main.head).brackets||Zy.brackets,i=null,o=e.changeByRange(a=>{if(a.empty){let s=MIe(e.doc,a.head);for(let l of r)if(l==s&&Kk(e.doc,a.head)==HX(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},PIe=[{key:"Backspace",run:NIe}];function LIe(e,t){let n=WX(e,e.selection.main.head),r=n.brackets||Zy.brackets;for(let i of r){let o=HX(fo(i,0));if(t==i)return o==i?BIe(e,i,r.indexOf(i+i+i)>-1,n):$Ie(e,i,o,n.before||Zy.before);if(t==o&&QX(e,e.selection.main.from))return FIe(e,i,o)}return null}function QX(e,t){let n=!1;return e.field(VX).between(0,e.doc.length,r=>{r==t&&(n=!0)}),n}function Kk(e,t){let n=e.sliceString(t,t+2);return n.slice(0,Bs(fo(n,0)))}function MIe(e,t){let n=e.sliceString(t-2,t);return Bs(fo(n,0))==n.length?n:n.slice(1)}function $Ie(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:Vf.of(a.to+t.length),range:tt.range(a.anchor+t.length,a.head+t.length)};let s=Kk(e.doc,a.head);return!s||/\s/.test(s)||r.indexOf(s)>-1?{changes:{insert:t+n,from:a.head},effects:Vf.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 FIe(e,t,n){let r=null,i=e.changeByRange(o=>o.empty&&Kk(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 BIe(e,t,n,r){let i=r.stringPrefixes||Zy.stringPrefixes,o=null,a=e.changeByRange(s=>{if(!s.empty)return{changes:[{insert:t,from:s.from},{insert:t,from:s.to}],effects:Vf.of(s.to+t.length),range:tt.range(s.anchor+t.length,s.head+t.length)};let l=s.head,u=Kk(e.doc,l),c;if(u==t){if(g9(e,l))return{changes:{insert:t+t,from:l},effects:Vf.of(l+t.length),range:tt.cursor(l+t.length)};if(QX(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=b9(e,l-2*t.length,i))>-1&&g9(e,c))return{changes:{insert:t+t+t+t,from:l},effects:Vf.of(l+t.length),range:tt.cursor(l+t.length)};if(e.charCategorizer(l)(u)!=Qr.Word&&b9(e,l,i)>-1&&!UIe(e,l,t,i))return{changes:{insert:t+t,from:l},effects:Vf.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 g9(e,t){let n=xr(e).resolveInner(t+1);return n.parent&&n.from==t}function UIe(e,t,n,r){let i=xr(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 b9(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 jIe(e={}){return[ts,mo.of(e),yIe,zIe,jX]}const YX=[{key:"Ctrl-Space",run:pIe},{key:"Escape",run:hIe},{key:"ArrowDown",run:Xv(!0)},{key:"ArrowUp",run:Xv(!1)},{key:"PageDown",run:Xv(!0,"page")},{key:"PageUp",run:Xv(!1,"page")},{key:"Enter",run:fIe}],zIe=af.highest(_g.computeN([mo],e=>e.facet(mo).defaultKeymap?[YX]:[]));class VIe{constructor(t,n,r){this.from=t,this.to=n,this.diagnostic=r}}class If{constructor(t,n,r){this.diagnostics=t,this.panel=n,this.selected=r}static init(t,n,r){let i=t,o=r.facet(ZX).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 KIe(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 If(a,n,ig(a))}}function ig(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 VIe(i,o,a.diagnostic),!1}),r}function HIe(e,t){let n=e.startState.doc.lineAt(t.pos);return!!(e.effects.some(r=>r.is(GX))||e.changes.touchesRange(n.from,n.to))}function WIe(e,t){return e.field(ls,!1)?t:t.concat(xn.appendConfig.of(tDe))}const GX=xn.define(),KP=xn.define(),qX=xn.define(),ls=eo.define({create(){return new If(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=ig(n,e.selected.diagnostic,i)||ig(n,null,i)}e=new If(n,e.panel,r)}for(let n of t.effects)n.is(GX)?e=If.init(n.value,e.panel,t.state):n.is(KP)?e=new If(e.diagnostics,n.value?Jk.open:null,e.selected):n.is(qX)&&(e=new If(e.diagnostics,e.panel,n.value));return e},provide:e=>[jy.from(e,t=>t.panel),Vt.decorations.from(e,t=>t.diagnostics)]}),QIe=ln.mark({class:"cm-lintRange cm-lintRange-active"});function YIe(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)&&(tKX(e,n,!1)))}const qIe=e=>{let t=e.state.field(ls,!1);(!t||!t.panel)&&e.dispatch({effects:WIe(e.state,[KP.of(!0)])});let n=Uy(e,Jk.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},y9=e=>{let t=e.state.field(ls,!1);return!t||!t.panel?!1:(e.dispatch({effects:KP.of(!1)}),!0)},ZIe=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)},XIe=[{key:"Mod-Shift-m",run:qIe,preventDefault:!0},{key:"F8",run:ZIe}],ZX=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 XX(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 KX(e,t,n){var r;let i=n?XX(t.actions):[];return Tr("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},Tr("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=ig(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),Tr("u",u.slice(c,c+1)),u.slice(c+1)];return Tr("button",{type:"button",class:"cm-diagnosticAction",onclick:l,onmousedown:l,"aria-label":` Action: ${u}${c<0?"":` (access key "${i[a]})"`}.`},d)}),t.source&&Tr("div",{class:"cm-diagnosticSource"},t.source))}class KIe extends Lu{constructor(t){super(),this.diagnostic=t}eq(t){return t.diagnostic==this.diagnostic}toDOM(){return Tr("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class O9{constructor(t,n){this.diagnostic=n,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=KX(t,n,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class Jk{constructor(t){this.view=t,this.items=[];let n=i=>{if(i.keyCode==27)y9(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=XX(o.actions);for(let s=0;s{for(let o=0;oy9(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=ig(n.diagnostics,this.items[t].diagnostic);r&&this.view.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:qX.of(r)})}static open(t){return new Jk(t)}}function JIe(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(e)}')`}function Kv(e){return JIe(``,'width="6" height="3"')}const eDe=Vt.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:Kv("#d11")},".cm-lintRange-warning":{backgroundImage:Kv("orange")},".cm-lintRange-info":{backgroundImage:Kv("#999")},".cm-lintRange-hint":{backgroundImage:Kv("#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}}}),tDe=[ls,Vt.decorations.compute([ls],e=>{let{selected:t,panel:n}=e.field(ls);return!t||!n||t.from==t.to?ln.none:ln.set([QIe.range(t.from,t.to)])}),WAe(YIe,{hideOn:HIe}),eDe],nDe=[e2e(),r2e(),SAe(),E_e(),q2e(),dAe(),gAe(),qn.allowMultipleSelections.of(!0),$2e(),jZ(J2e,{fallback:!0}),a_e(),RIe(),jIe(),PAe(),$Ae(),AAe(),CRe(),_g.of([...PIe,...ERe,...QRe,...R_e,...W2e,...YX,...XIe])];class LT{static create(t,n,r,i,o){let a=i+(i<<8)+t+(n<<4)|0;return new LT(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 ur(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 ur(t.types[this.type],this.children,this.positions,n-this.from).balance({makeTree:(i,o,a)=>new ur($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 rDe{constructor(t,n){this.start=t,this.content=n,this.marks=[],this.parsers=[]}}class iDe{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 Pb(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?t3:e3)(n,t,!1);return r>0&&(e.type!=Rt.BulletList||JP(n,t,!1)<0)&&n.text.charCodeAt(n.pos+r-1)==e.value}const JX={[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]:v9,[Rt.BulletList]:v9,[Rt.Document](){return!0}};function ol(e){return e==32||e==9||e==10||e==13}function Pb(e,t=0){for(;tn&&ol(e.charCodeAt(t-1));)t--;return t}function eK(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 nK(e,t){for(let n=e.stack.length-1;n>=0;n--)if(e.stack[n].type==t)return!0;return!1}function e3(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||nK(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 rK(e){if(e.next!=35)return-1;let t=e.pos+1;for(;t6?-1:n}function iK(e){if(e.next!=45&&e.next!=61||e.indent>=e.baseIndent+4)return-1;let t=e.pos+1;for(;t/,aK=/\?>/,GR=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/,cK=/\?>/,KR=[[/^<(?: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=Ky.test(i),s=Ky.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?fK:pK,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(N0,n,n+1,1)):-1},Image(e,t,n){return t==33&&e.char(n+1)==91?e.append(new yl(T9,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==N0||i.type==T9)){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]=dDe(e,o,i.type==N0?Rt.Link:Rt.Image,i.from,n+1);if(i.type==N0)for(let s=0;st?Gn(Rt.URL,t+n,o+n):o==e.length?null:!1}}function mK(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 Pb(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 dK(t,n)}}function ZR(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=bK(n.from-r,t.ranges);if(n.to-r<=t.ranges[t.rangeI].to)t.addNode(n.tree,c);else{let d=new ur(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")&&(pDe.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 bK(e,t){let n=e;for(let r=1;rJv[e]),Object.keys(Jv).map(e=>sDe[e]),Object.keys(Jv),lDe,JX,Object.keys(xA).map(e=>xA[e]),Object.keys(xA),[]);function bDe(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 yDe(e){let{codeParser:t,htmlParser:n}=e;return{wrap:xZ((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:bDe(i.node,i.from,i.to)};return null})}}const ODe={resolve:"Strikethrough",mark:"StrikethroughMark"},vDe={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=Ky.test(r),l=Ky.test(i);return e.addDelimiter(ODe,n,n+2,!a&&(!l||o||s),!o&&(!s||a||l))},after:"Emphasis"}]};function Lb(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 k9(e,t){for(let n=t;ni instanceof x9)||!k9(t.text,t.basePos))return!1;let r=e.scanLine(e.absoluteLineEnd+1).text;return yK.test(r)&&Lb(e,t.text,t.basePos)==Lb(e,r,t.basePos)},before:"SetextHeading"}]};class SDe{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 TDe={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 SDe:null},after:"SetextHeading"}]},C9=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,A9=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,wDe=/[\w-]+\.[\w-]+($|\/)/,_9=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,R9=/\/[a-zA-Z\d@.]+/gy;function I9(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==")"&&I9(e,t,r,")")>I9(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 D9(e,t){_9.lastIndex=t;let n=_9.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 xDe={parseInline:[{name:"Autolink",parse(e,t,n){let r=n-e.offset;C9.lastIndex=r;let i=C9.exec(e.text),o=-1;return!i||(i[1]||i[2]?o=kDe(e.text,r+i[0].length):i[3]?o=D9(e.text,r):(o=D9(e.text,r+i[0].length),o>-1&&i[0]=="xmpp:"&&(R9.lastIndex=o,i=R9.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)}}]},CDe=[EDe,TDe,vDe,xDe];function OK(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 MT(t,[],n,r,r,0,[],0,i?new P9(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 MT(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 IDe(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 P9{constructor(t,n){this.tracker=t,this.context=n,this.hash=t.strict?t.hash(n):0}}class IDe{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 $T{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 $T(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 $T(this.stack,this.pos,this.index)}}function ab(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 JE{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const L9=new JE;class DDe{constructor(t,n){this.input=t,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=L9,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=L9,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 hm{constructor(t,n){this.data=t,this.id=n}token(t,n){let{parser:r}=n.p;vK(this.data,t,n,this.id,r.data,r.tokenPrecTable)}}hm.prototype.contextual=hm.prototype.fallback=hm.prototype.extend=!1;class FT{constructor(t,n,r){this.precTable=n,this.elseToken=r,this.data=typeof t=="string"?ab(t):t}token(t,n){let r=t.pos,i=0;for(;;){let o=t.next<0,a=t.resolveOffset(1,1);if(vK(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))}}FT.prototype.contextual=hm.prototype.fallback=hm.prototype.extend=!1;class Ul{constructor(t,n={}){this.token=t,this.contextual=!!n.contextual,this.fallback=!!n.fallback,this.extend=!!n.extend}}function vK(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||NDe(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 M9(e,t,n){for(let r=t,i;(i=e[r])!=65535;r++)if(i==n)return r-t;return-1}function NDe(e,t,n,r){let i=M9(n,r,t);return i<0||M9(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 PDe{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?$9(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?$9(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 ur){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 LDe{constructor(t,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(r=>new JE)}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 JE,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 JE,{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 PDe(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&&FDe(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 ur)||d.children.length==0||d.positions[0]>0)break;let h=d.children[0];if(h instanceof ur&&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 F9(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)})`),F9(s,r)):(!i||i.scoree;class EK{constructor(t){this.start=t.start,this.shift=t.shift||AA,this.reduce=t.reduce||AA,this.reuse=t.reuse||AA,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class ag extends PP{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 iO(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=EZ;let a=ab(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 hm(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 MDe(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(ag.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]=B9(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 BDe=54,UDe=1,jDe=55,zDe=2,VDe=56,HDe=3,U9=4,WDe=5,BT=6,SK=7,TK=8,wK=9,kK=10,QDe=11,YDe=12,GDe=13,_A=57,qDe=14,j9=58,xK=20,ZDe=22,CK=23,XDe=24,XR=26,AK=27,KDe=28,JDe=31,eNe=34,tNe=36,nNe=37,rNe=0,iNe=1,oNe={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},aNe={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},z9={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 sNe(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function _K(e){return e==9||e==10||e==13||e==32}let V9=null,H9=null,W9=0;function KR(e,t){let n=e.pos+t;if(W9==n&&H9==e)return V9;let r=e.peek(t);for(;_K(r);)r=e.peek(++t);let i="";for(;sNe(r);)i+=String.fromCharCode(r),r=e.peek(++t);return H9=e,W9=n,V9=i?i.toLowerCase():r==lNe||r==uNe?void 0:null}const RK=60,UT=62,n3=47,lNe=63,uNe=33,cNe=45;function Q9(e,t){this.name=e,this.parent=t,this.hash=t?t.hash:0;for(let n=0;n-1?new Q9(KR(r,1)||"",e):e},reduce(e,t){return t==xK&&e?e.parent:e},reuse(e,t,n,r){let i=t.type.id;return i==BT||i==tNe?new Q9(KR(r,1)||"",e):e},hash(e){return e?e.hash:0},strict:!1}),pNe=new Ul((e,t)=>{if(e.next!=RK){e.next<0&&t.context&&e.acceptToken(_A);return}e.advance();let n=e.next==n3;n&&e.advance();let r=KR(e,0);if(r===void 0)return;if(!r)return e.acceptToken(n?qDe:BT);let i=t.context?t.context.name:null;if(n){if(r==i)return e.acceptToken(QDe);if(i&&aNe[i])return e.acceptToken(_A,-2);if(t.dialectEnabled(rNe))return e.acceptToken(YDe);for(let o=t.context;o;o=o.parent)if(o.name==r)return;e.acceptToken(GDe)}else{if(r=="script")return e.acceptToken(SK);if(r=="style")return e.acceptToken(TK);if(r=="textarea")return e.acceptToken(wK);if(oNe.hasOwnProperty(r))return e.acceptToken(kK);i&&z9[i]&&z9[i][r]?e.acceptToken(_A,-1):e.acceptToken(BT)}},{contextual:!0}),hNe=new Ul(e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(j9);break}if(e.next==cNe)t++;else if(e.next==UT&&t>=2){n>=3&&e.acceptToken(j9,-2);break}else t=0;e.advance()}});function mNe(e){for(;e;e=e.parent)if(e.name=="svg"||e.name=="math")return!0;return!1}const gNe=new Ul((e,t)=>{if(e.next==n3&&e.peek(1)==UT){let n=t.dialectEnabled(iNe)||mNe(t.context);e.acceptToken(n?WDe:U9,2)}else e.next==UT&&e.acceptToken(U9,1)});function r3(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==RK||o==1&&i.next==n3||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 bNe=r3("script",BDe,UDe),yNe=r3("style",jDe,zDe),ONe=r3("textarea",VDe,HDe),vNe=Rg({"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}),ENe=ag.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:fNe,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:[vNe],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==KDe)return RA(s,l,n);if(u==JDe)return RA(s,l,r);if(u==eNe)return RA(s,l,i);if(u==xK&&o.length){let c=s.node,d=c.firstChild,p=d&&Y9(d,l),h;if(p){for(let m of o)if(m.tag==p&&(!m.attrs||m.attrs(h||(h=IK(c,l))))){let b=c.lastChild,O=b.type.id==nNe?b.from:c.to;if(O>d.to)return{parser:m.parser,overlay:[{from:d.to,to:O}]}}}}if(a&&u==CK){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!=Y9(c.parent,l))continue;let m=c.lastChild;if(m.type.id==XR){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==AK)return{parser:h.parser,overlay:[{from:m.from,to:m.to}]}}}}return null})}const SNe=99,G9=1,TNe=100,wNe=101,q9=2,NK=[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],kNe=58,xNe=40,PK=95,CNe=91,eS=45,ANe=46,_Ne=35,RNe=37,INe=38,DNe=92,NNe=10;function Jy(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function PNe(e){return e>=48&&e<=57}const LNe=new Ul((e,t)=>{for(let n=!1,r=0,i=0;;i++){let{next:o}=e;if(Jy(o)||o==eS||o==PK||n&&PNe(o))!n&&(o!=eS||i>0)&&(n=!0),r===i&&o==eS&&r++,e.advance();else if(o==DNe&&e.peek(1)!=NNe)e.advance(),e.next>-1&&e.advance(),n=!0;else{n&&e.acceptToken(o==xNe?TNe:r==2&&t.canShift(q9)?q9:wNe);break}}}),MNe=new Ul(e=>{if(NK.includes(e.peek(-1))){let{next:t}=e;(Jy(t)||t==PK||t==_Ne||t==ANe||t==CNe||t==kNe&&Jy(e.peek(1))||t==eS||t==INe)&&e.acceptToken(SNe)}}),$Ne=new Ul(e=>{if(!NK.includes(e.peek(-1))){let{next:t}=e;if(t==RNe&&(e.advance(),e.acceptToken(G9)),Jy(t)){do e.advance();while(Jy(e.next));e.acceptToken(G9)}}}),FNe=Rg({"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}),BNe={__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},UNe={__proto__:null,"@import":118,"@media":142,"@charset":146,"@namespace":150,"@keyframes":156,"@supports":168},jNe={__proto__:null,not:132,only:132},zNe=ag.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:[MNe,$Ne,LNe,1,2,3,4,new FT("m~RRYZ[z{a~~g~aO#^~~dP!P!Qg~lO#_~~",28,105)],topRules:{StyleSheet:[0,4],Styles:[1,86]},specialized:[{term:100,get:e=>BNe[e]||-1},{term:58,get:e=>UNe[e]||-1},{term:101,get:e=>jNe[e]||-1}],tokenPrec:1200});let IA=null;function DA(){if(!IA&&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)));IA=t.sort().map(r=>({type:"property",label:r}))}return IA||[]}const Z9=["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})),X9=["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}))),VNe=["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-]*|)$/,HNe=/^-(-[\w-]*)?$/;function WNe(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 K9=new kZ,QNe=["Declaration"];function YNe(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function LK(e,t,n){if(t.to-t.from>4096){let r=K9.get(t);if(r)return r;let i=[],o=new Set,a=t.cursor(wr.IncludeAnonymous);if(a.firstChild())do for(let s of LK(e,a.node,n))o.has(s.label)||(o.add(s.label),i.push(s));while(a.nextSibling());return K9.set(t,i),i}else{let r=[],i=new Set;return t.cursor().iterate(o=>{var a;if(n(o)&&o.matchContext(QNe)&&((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 GNe=e=>t=>{let{state:n,pos:r}=t,i=xr(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:DA(),validFor:Vc};if(i.name=="ValueName")return{from:i.from,options:X9,validFor:Vc};if(i.name=="PseudoClassName")return{from:i.from,options:Z9,validFor:Vc};if(e(i)||(t.explicit||o)&&WNe(i,n.doc))return{from:e(i)||o?i.from:r,options:LK(n.doc,YNe(i),e),validFor:HNe};if(i.name=="TagName"){for(let{parent:l}=i;l;l=l.parent)if(l.name=="Block")return{from:i.from,options:DA(),validFor:Vc};return{from:i.from,options:VNe,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:Z9,validFor:Vc}:s&&s.name==":"&&a.name=="Declaration"||a.name=="ArgList"?{from:r,options:X9,validFor:Vc}:a.name=="Block"||a.name=="Styles"?{from:r,options:DA(),validFor:Vc}:null},qNe=GNe(e=>e.name=="VariableName"),jT=tg.define({name:"css",parser:zNe.configure({props:[aO.add({Declaration:KE()}),Ig.add({"Block KeyframeList":NZ})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function ZNe(){return new Wy(jT,jT.data.of({autocomplete:qNe}))}const XNe=309,J9=1,KNe=2,JNe=3,ePe=310,tPe=312,nPe=313,rPe=4,iPe=5,oPe=0,JR=[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],MK=125,aPe=59,eI=47,sPe=42,lPe=43,uPe=45,cPe=60,dPe=44,fPe=new EK({start:!1,shift(e,t){return t==rPe||t==iPe||t==tPe?e:t==nPe},strict:!1}),pPe=new Ul((e,t)=>{let{next:n}=e;(n==MK||n==-1||t.context)&&e.acceptToken(ePe)},{contextual:!0,fallback:!0}),hPe=new Ul((e,t)=>{let{next:n}=e,r;JR.indexOf(n)>-1||n==eI&&((r=e.peek(1))==eI||r==sPe)||n!=MK&&n!=aPe&&n!=-1&&!t.context&&e.acceptToken(XNe)},{contextual:!0}),mPe=new Ul((e,t)=>{let{next:n}=e;if((n==lPe||n==uPe)&&(e.advance(),n==e.next)){e.advance();let r=!t.context&&t.canShift(J9);e.acceptToken(r?J9:KNe)}},{contextual:!0});function NA(e,t){return e>=65&&e<=90||e>=97&&e<=122||e==95||e>=192||!t&&e>=48&&e<=57}const gPe=new Ul((e,t)=>{if(e.next!=cPe||!t.dialectEnabled(oPe)||(e.advance(),e.next==eI))return;let n=0;for(;JR.indexOf(e.next)>-1;)e.advance(),n++;if(NA(e.next,!0)){for(e.advance(),n++;NA(e.next,!1);)e.advance(),n++;for(;JR.indexOf(e.next)>-1;)e.advance(),n++;if(e.next==dPe)return;for(let r=0;;r++){if(r==7){if(!NA(e.next,!0))return;break}if(e.next!="extends".charCodeAt(r))break;e.advance(),n++}}e.acceptToken(JNe,-n)}),bPe=Rg({"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)}),yPe={__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},OPe={__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},vPe={__proto__:null,"<":143},EPe=ag.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:fPe,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:[bPe],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#yPe[e]||-1},{term:334,get:e=>OPe[e]||-1},{term:70,get:e=>vPe[e]||-1}],tokenPrec:14638}),$K=[ha("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),ha("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),ha("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),ha("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),ha("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),ha(`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=MT.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],sg,sg,(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(eI(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?fK(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=eI(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 mK(t,n)}get buffer(){return new hK(this.parser.nodeSet)}}function fK(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=fK(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 nx extends $P{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 bDe(this,t,n,r);for(let o of this.wrappers)i=o(i,t,n,r);return i}configure(t){let n=JR(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(N0(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($i.define({id:S,name:b,props:k&&[[vn.group,k]]})),v&&(h||(h={}),Array.isArray(v)||v instanceof bl?h[b]=v:Object.assign(h,v))}r=new oO(p),h&&(r=r.extend(Ig(h)))}if(N0(n.props)&&(r=r.extend(...n.props)),N0(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(N0(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?tE(s,p.before):p.after?tE(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(N0(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?tE(u,p.before):p.after?tE(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 nx(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 ODe(this,t,n);e:for(let i=n;i=0){i=s;continue e}}i++}return r.resolveMarkers(0)}}function N0(e){return e!=null&&e.length>0}function JR(e){if(!Array.isArray(e))return e;if(e.length==0)return null;let t=JR(e[0]);if(e.length==1)return t;let n=JR(e.slice(1));if(!n||!t)return t||n;let r=(a,s)=>(a||sg).concat(s||sg),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 tE(e,t){let n=e.indexOf(t);if(n<0)throw new RangeError(`Position specified relative to unknown parser ${t}`);return n}let pK=[$i.none];for(let e=1,t;t=Rt[e];e++)pK[e]=$i.define({id:e,name:t,props:e>=Rt.Escape?[]:[[vn.group,e in rK?["Block","BlockContext"]:["Block","LeafBlock"]]],top:t=="Document"});const sg=[];let hK=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})}},Jy=class{constructor(t,n,r,i=sg){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 hK(t).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}};class mK{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 sg}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 Jy(e,t,n,r)}const gK={resolve:"Emphasis",mark:"EmphasisMark"},bK={resolve:"Emphasis",mark:"EmphasisMark"},P0={},C9={};class yl{constructor(t,n,r,i){this.type=t,this.from=n,this.to=r,this.side=i}}const A9="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";let e1=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{e1=new RegExp("[\\p{Pc}|\\p{Pd}|\\p{Pe}|\\p{Pf}|\\p{Pi}|\\p{Po}|\\p{Ps}]","u")}catch{}const _A={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=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 { \${} } catch (\${error}) { \${} -}`,{label:"try",detail:"/ catch block",type:"keyword"}),ha("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),ha(`if (\${}) { +}`,{label:"try",detail:"/ catch block",type:"keyword"}),ma("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),ma(`if (\${}) { \${} } else { \${} -}`,{label:"if",detail:"/ else block",type:"keyword"}),ha(`class \${name} { +}`,{label:"if",detail:"/ else block",type:"keyword"}),ma(`class \${name} { constructor(\${params}) { \${} } -}`,{label:"class",detail:"definition",type:"keyword"}),ha('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),ha('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],SPe=$K.concat([ha("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),ha("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),ha("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),ej=new kZ,FK=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function P0(e){return(t,n)=>{let r=t.node.getChild("VariableDefinition");return r&&n(r,e),!0}}const TPe=["FunctionDeclaration"],wPe={FunctionDeclaration:P0("function"),ClassDeclaration:P0("class"),ClassExpression:()=>!0,EnumDeclaration:P0("constant"),TypeAliasDeclaration:P0("type"),NamespaceDeclaration:P0("namespace"),VariableDefinition(e,t){e.matchContext(TPe)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function BK(e,t){let n=ej.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(wr.IncludeAnonymous).iterate(a=>{if(i)i=!1;else if(a.name){let s=wPe[a.name];if(s&&s(a,o)||FK.has(a.name))return!1}else if(a.to-a.from>8192){for(let s of BK(e,a.node))r.push(s);return!1}}),ej.set(t,r),r}const tj=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,UK=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function kPe(e){let t=xr(e.state).resolveInner(e.pos,-1);if(UK.indexOf(t.name)>-1)return null;let n=t.name=="VariableName"||t.to-t.from<20&&tj.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let i=t;i;i=i.parent)FK.has(i.name)&&(r=r.concat(BK(e.state.doc,i)));return{options:r,from:n?t.from:e.pos,validFor:tj}}const Au=tg.define({name:"javascript",parser:EPe.configure({props:[aO.add({IfStatement:KE({except:/^\s*({|else\b)/}),TryStatement:KE({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:L2e,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:P2e({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":KE({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}}),Ig.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":NZ,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),jK={test:e=>/^JSX/.test(e.name),facet:LP({commentTokens:{block:{open:"{/*",close:"*/}"}}})},zK=Au.configure({dialect:"ts"},"typescript"),VK=Au.configure({dialect:"jsx",props:[MP.add(e=>e.isTop?[jK]:void 0)]}),HK=Au.configure({dialect:"jsx ts",props:[MP.add(e=>e.isTop?[jK]:void 0)]},"typescript");let WK=e=>({label:e,type:"keyword"});const QK="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(WK),xPe=QK.concat(["declare","implements","private","protected","public"].map(WK));function CPe(e={}){let t=e.jsx?e.typescript?HK:VK:e.typescript?zK:Au,n=e.typescript?SPe.concat(xPe):$K.concat(QK);return new Wy(t,[Au.data.of({autocomplete:XRe(UK,LX(n))}),Au.data.of({autocomplete:kPe}),e.jsx?RPe:[]])}function APe(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 nj(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 _Pe=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),RPe=Vt.inputHandler.of((e,t,n,r,i)=>{if((_Pe?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=xr(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=nj(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=APe(d);if(h&&!/^\/?>|^<\//.test(a.doc.sliceString(c,c+2))&&(p=nj(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)}),L0=["_blank","_self","_top","_parent"],PA=["ascii","utf-8","utf-16","latin1","latin1"],LA=["get","post","put","delete"],MA=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Qa=["true","false"],an={},IPe={a:{attrs:{href:null,ping:null,type:null,media:null,target:L0,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:L0}},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:MA,formmethod:LA,formnovalidate:["novalidate"],formtarget:L0,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":PA,autocomplete:["on","off"],enctype:MA,method:LA,novalidate:["novalidate"],target:L0}},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:MA,formmethod:LA,formnovalidate:["novalidate"],formtarget:L0,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:PA,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:PA}},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},YK={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},GK="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 GK)YK[e]=null;let e1=class{constructor(t,n){this.tags=Object.assign(Object.assign({},IPe),t),this.globalAttrs=Object.assign(Object.assign({},YK),n),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};e1.default=new e1;function sg(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 lg(e,t=!1){for(;e;e=e.parent)if(e.name=="Element")if(t)t=!1;else return e;return null}function qK(e,t,n){let r=n.tags[sg(e,lg(t))];return(r==null?void 0:r.children)||n.allTags}function i3(e,t){let n=[];for(let r=lg(t);r&&!r.type.isTop;r=lg(r.parent)){let i=sg(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 ZK=/^[:\-\.\w\u00b7-\uffff]*$/;function rj(e,t,n,r,i){let o=/\s*>/.test(e.sliceDoc(i,i+5))?"":">",a=lg(n,!0);return{from:r,to:i,options:qK(e.doc,a,t).map(s=>({label:s,type:"type"})).concat(i3(e.doc,n).map((s,l)=>({label:"/"+s,apply:"/"+s+o,type:"type",boost:99-l}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function ij(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:n,to:r,options:i3(e.doc,t).map((o,a)=>({label:o,apply:o+i,type:"type",boost:99-a})),validFor:ZK}}function DPe(e,t,n,r){let i=[],o=0;for(let a of qK(e.doc,n,t))i.push({label:"<"+a,type:"type"});for(let a of i3(e.doc,n))i.push({label:"",type:"type",boost:99-o++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function NPe(e,t,n,r,i){let o=lg(n),a=o?t.tags[sg(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:ZK}}function PPe(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=lg(n),p=d?t.tags[sg(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 XK(e,t){let{state:n,pos:r}=t,i=xr(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.fromXK(r,i)}const $Pe=Au.parser.configure({top:"SingleExpression"}),KK=[{tag:"script",attrs:e=>e.type=="text/typescript"||e.lang=="ts",parser:zK.parser},{tag:"script",attrs:e=>e.type=="text/babel"||e.type=="text/jsx",parser:VK.parser},{tag:"script",attrs:e=>e.type=="text/typescript-jsx",parser:HK.parser},{tag:"script",attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:$Pe},{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:jT.parser}],JK=[{name:"style",parser:jT.parser.configure({top:"Styles"})}].concat(GK.map(e=>({name:e,parser:Au.parser}))),eJ=tg.define({name:"html",parser:ENe.configure({props:[aO.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:"-._"}}),tS=eJ.configure({wrap:DK(KK,JK)});function FPe(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=DK((e.nestedLanguages||[]).concat(KK),(e.nestedAttributes||[]).concat(JK)));let r=n?eJ.configure({wrap:n,dialect:t}):t?tS.configure({dialect:t}):tS;return new Wy(r,[tS.data.of({autocomplete:MPe(e)}),e.autoCloseTags!==!1?BPe:[],CPe().support,ZNe().support])}const oj=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),BPe=Vt.inputHandler.of((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||r!=">"&&r!="/"||!tS.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=xr(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=sg(a.doc,m.parent,h))&&!oj.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=sg(a.doc,O,h))&&!oj.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)}),tJ=LP({commentTokens:{block:{open:""}}}),nJ=new vn,rJ=gDe.configure({props:[Ig.add(e=>!e.is("Block")||e.is("Document")||tI(e)!=null?void 0:(t,n)=>({from:n.doc.lineAt(t.from).to,to:t.to})),nJ.add(tI),aO.add({Document:()=>null}),zf.add({Document:tJ})]});function tI(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function UPe(e,t){let n=e;for(;;){let r=n.nextSibling,i;if(!r||(i=tI(r.type))!=null&&i<=t)break;n=r}return n.to}const jPe=DZ.of((e,t,n)=>{for(let r=xr(e).resolveInner(n,-1);r&&!(r.fromn)return{from:n,to:o}}return null});function o3(e){return new zs(tJ,e,[jPe],"markdown")}const zPe=o3(rJ),VPe=rJ.configure([CDe,_De,ADe,RDe,{props:[Ig.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]),iJ=o3(VPe);function HPe(e,t){return n=>{if(n&&e){let r=null;if(n=/\S*/.exec(n)[0],typeof e=="function"?r=e(n):r=ST.matchLanguageName(e,n,!0),r instanceof ST)return r.support?r.support.language.parser:Hy.getSkippingParser(r.load());if(r)return r.parser}return t?t.parser:null}}class tE{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(+aJ(this.item,t)[2]+n):"";return this.spaceBefore+r+this.type+this.spaceAfter}}function oJ(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 tE(o,l,l,"","","",null));else if(o.name=="Blockquote"&&(a=/^ *>( ?)/.exec(s.text.slice(l))))r.push(new tE(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 tE(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 tE(o.parent,l,l+c,a[1],u,d,o))}}return r}function aJ(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function $A(e,t,n,r=0){for(let i=-1,o=e;;){if(o.name=="ListItem"){let s=aJ(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 a3(e,t){let n=/^[ \t]*/.exec(e)[0].length;if(!n||t.facet(oO)!=" ")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 WPe=({state:e,dispatch:t})=>{let n=xr(e),{doc:r}=e,i=null,o=e.changeByRange(a=>{if(!a.empty||!iJ.isActiveAt(e,a.from))return i={range:a};let s=a.from,l=r.lineAt(s),u=oJ(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"&&$A(c.item,r,C,-2),v&&v.node.name=="OrderedList"&&$A(v.item,r,C),{range:tt.cursor(S+k.length),changes:C}}else{let v=sj(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"&&$A(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=a3(m,e),QPe(c.node,e.doc)&&(m=sj(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 aj(e){return e.name=="QuoteMark"||e.name=="ListMark"}function QPe(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=xr(e),r=null,i=e.changeByRange(o=>{let a=o.from,{doc:s}=e;if(o.empty&&iJ.isActiveAt(e,o.from)){let l=s.lineAt(a),u=oJ(YPe(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 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(()=>{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:()=>Qp.I,Api:()=>Ba,BinaryReader:()=>U.oP,BinaryWriter:()=>U.Lt,BoolValue:()=>Ho,BytesValue:()=>Jt,CodeGeneratorRequest:()=>Yo,CodeGeneratorResponse:()=>di,CodeGeneratorResponse_Feature:()=>Gl,CodeGeneratorResponse_File:()=>wo,DescriptorProto:()=>ue,DescriptorProto_ExtensionRange:()=>xe,DescriptorProto_ReservedRange:()=>Ne,DoubleValue:()=>Vo,Duration:()=>Or,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:()=>To,GeneratedCodeInfo:()=>$t,GeneratedCodeInfo_Annotation:()=>It,GeneratedCodeInfo_Annotation_Semantic:()=>Ct,Int32Value:()=>Cr,Int64Value:()=>ji,ListValue:()=>io,LongType:()=>p.p,Message:()=>se.v,MessageOptions:()=>Le,Method:()=>da,MethodDescriptorProto:()=>ee,MethodIdempotency:()=>ve.w,MethodKind:()=>ve.t,MethodOptions:()=>vt,MethodOptions_IdempotencyLevel:()=>qe,Mixin:()=>Ua,NullValue:()=>ro,OneofDescriptorProto:()=>$e,OneofOptions:()=>rt,Option:()=>xi,ScalarType:()=>p.w,ServiceDescriptorProto:()=>re,ServiceOptions:()=>et,SourceCodeInfo:()=>at,SourceCodeInfo_Location:()=>Mt,SourceContext:()=>ua,StringValue:()=>zi,Struct:()=>So,Syntax:()=>ca,Timestamp:()=>la,Type:()=>ki,UInt32Value:()=>Ur,UInt64Value:()=>mr,UninterpretedOption:()=>it,UninterpretedOption_NamePart:()=>Et,Value:()=>Br,Version:()=>Qo,WireType:()=>U.TD,codegenInfo:()=>j,createDescriptorSet:()=>Wt,createRegistry:()=>BO,createRegistryFromDescriptors:()=>df,proto2:()=>E,proto3:()=>c.w,protoBase64:()=>B.W,protoDelimited:()=>X,protoDouble:()=>N,protoInt64:()=>R.q,toPlainMessage:()=>Gp});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,L){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,L,be,Ot);else(0,h.oQ)(x,L,be,Pe);break;case"map":for(const[Ot,Pt]of Object.entries(Pe))(0,h.gQ)(x,L,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 L.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 L=x.localName,le=F;if(x.repeated){le[L]=[];continue}switch(x.kind){case"oneof":le[L]={case:void 0};break;case"map":le[L]={};break}}}}));function $(F){var x,L,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=(L=Ze.repeated)!==null&&L!==void 0?L:!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],L;return x?x.call(F):(F=typeof __values=="function"?__values(F):F[Symbol.iterator](),L={},le("next"),le("throw"),le("return"),L[Symbol.asyncIterator]=function(){return this},L);function le(Pe){L[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,L){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var le=L.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(qx,pf){Pe.push([Sn,ja,qx,pf])>1||Ze(Sn,ja)})},Vi&&(be[Sn]=Vi(be[Sn])))}function Ze(Sn,Vi){try{Ot(le[Sn](Vi))}catch(ja){vr(Pe[0][3],ja)}}function Ot(Sn){Sn.value instanceof z?Promise.resolve(Sn.value.v).then(Pt,On):vr(Pe[0][2],Sn)}function Pt(Sn){Ze("next",Sn)}function On(Sn){Ze("throw",Sn)}function vr(Sn,Vi){Sn(Vi),Pe.shift(),Pe.length&&Ze(Pe[0][0],Pe[0][1])}};const X={enc(F,x){const L=(0,h.gY)().makeWriteOptions(x);return L.writerFactory().bytes(F.toBinary(L)).finish()},dec(F,x,L){const le=(0,h.gY)().makeReadOptions(L);return F.fromBinary(le.readerFactory(x).bytes(),le)},decStream(F,x){return W(this,arguments,function*(){var le,be,Pe,je;function ct(vr,Sn){const Vi=new Uint8Array(vr.byteLength+Sn.byteLength);return Vi.set(vr),Vi.set(Sn,vr.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(vr){be={error:vr}}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 L=0;L<10;L++){if(L>F.byteLength)return x;if(!(F[L]&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),L=F.fields.find(le=>le.number==2&&le.fieldKind=="scalar"&&le.scalar===p.w.BYTES);if(x&&L)return{typeName:F.typeName,typeUrl:x,value:L};break}case"google.protobuf.Timestamp":{const x=F.fields.find(le=>le.number==1&&le.fieldKind=="scalar"&&le.scalar===p.w.INT64),L=F.fields.find(le=>le.number==2&&le.fieldKind=="scalar"&&le.scalar===p.w.INT32);if(x&&L)return{typeName:F.typeName,seconds:x,nanos:L};break}case"google.protobuf.Duration":{const x=F.fields.find(le=>le.number==1&&le.fieldKind=="scalar"&&le.scalar===p.w.INT64),L=F.fields.find(le=>le.number==2&&le.fieldKind=="scalar"&&le.scalar===p.w.INT32);if(x&&L)return{typeName:F.typeName,seconds:x,nanos:L};break}case"google.protobuf.Struct":{const x=F.fields.find(L=>L.number==1&&!L.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"),L=F.fields.find(Ze=>Ze.number==1&&Ze.oneof===x);if((L==null?void 0:L.fieldKind)!=="enum"||L.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:L,numberValue:le,stringValue:be,boolValue:Pe,structValue:je,listValue:ct};break}case"google.protobuf.ListValue":{const x=F.fields.find(L=>L.number==1&&L.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(L=>L.number==1&&L.fieldKind=="scalar"&&L.scalar===p.w.STRING&&L.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(L=>L.number==1&&L.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,L){return new ce().fromBinary(x,L)}static fromJson(x,L){return new ce().fromJson(x,L)}static fromJsonString(x,L){return new ce().fromJsonString(x,L)}static equals(x,L){return E.util.equals(ce,x,L)}}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,L){return new ge().fromBinary(x,L)}static fromJson(x,L){return new ge().fromJson(x,L)}static fromJsonString(x,L){return new ge().fromJsonString(x,L)}static equals(x,L){return E.util.equals(ge,x,L)}}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,L){return new ue().fromBinary(x,L)}static fromJson(x,L){return new ue().fromJson(x,L)}static fromJsonString(x,L){return new ue().fromJsonString(x,L)}static equals(x,L){return E.util.equals(ue,x,L)}}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,L){return new xe().fromBinary(x,L)}static fromJson(x,L){return new xe().fromJson(x,L)}static fromJsonString(x,L){return new xe().fromJsonString(x,L)}static equals(x,L){return E.util.equals(xe,x,L)}}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,L){return new Ne().fromBinary(x,L)}static fromJson(x,L){return new Ne().fromJson(x,L)}static fromJsonString(x,L){return new Ne().fromJsonString(x,L)}static equals(x,L){return E.util.equals(Ne,x,L)}}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,L){return new Ve().fromBinary(x,L)}static fromJson(x,L){return new Ve().fromJson(x,L)}static fromJsonString(x,L){return new Ve().fromJsonString(x,L)}static equals(x,L){return E.util.equals(Ve,x,L)}}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,L){return new Me().fromBinary(x,L)}static fromJson(x,L){return new Me().fromJson(x,L)}static fromJsonString(x,L){return new Me().fromJsonString(x,L)}static equals(x,L){return E.util.equals(Me,x,L)}}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,L){return new Ye().fromBinary(x,L)}static fromJson(x,L){return new Ye().fromJson(x,L)}static fromJsonString(x,L){return new Ye().fromJsonString(x,L)}static equals(x,L){return E.util.equals(Ye,x,L)}}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,L){return new $e().fromBinary(x,L)}static fromJson(x,L){return new $e().fromJson(x,L)}static fromJsonString(x,L){return new $e().fromJsonString(x,L)}static equals(x,L){return E.util.equals($e,x,L)}}$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,L){return new We().fromBinary(x,L)}static fromJson(x,L){return new We().fromJson(x,L)}static fromJsonString(x,L){return new We().fromJsonString(x,L)}static equals(x,L){return E.util.equals(We,x,L)}}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,L){return new dt().fromBinary(x,L)}static fromJson(x,L){return new dt().fromJson(x,L)}static fromJsonString(x,L){return new dt().fromJsonString(x,L)}static equals(x,L){return E.util.equals(dt,x,L)}}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,L){return new Be().fromBinary(x,L)}static fromJson(x,L){return new Be().fromJson(x,L)}static fromJsonString(x,L){return new Be().fromJsonString(x,L)}static equals(x,L){return E.util.equals(Be,x,L)}}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,L){return new re().fromBinary(x,L)}static fromJson(x,L){return new re().fromJson(x,L)}static fromJsonString(x,L){return new re().fromJsonString(x,L)}static equals(x,L){return E.util.equals(re,x,L)}}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,L){return new ee().fromBinary(x,L)}static fromJson(x,L){return new ee().fromJson(x,L)}static fromJsonString(x,L){return new ee().fromJsonString(x,L)}static equals(x,L){return E.util.equals(ee,x,L)}}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,L){return new J().fromBinary(x,L)}static fromJson(x,L){return new J().fromJson(x,L)}static fromJsonString(x,L){return new J().fromJsonString(x,L)}static equals(x,L){return E.util.equals(J,x,L)}}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,L){return new Le().fromBinary(x,L)}static fromJson(x,L){return new Le().fromJson(x,L)}static fromJsonString(x,L){return new Le().fromJsonString(x,L)}static equals(x,L){return E.util.equals(Le,x,L)}}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,L){return new De().fromBinary(x,L)}static fromJson(x,L){return new De().fromJson(x,L)}static fromJsonString(x,L){return new De().fromJsonString(x,L)}static equals(x,L){return E.util.equals(De,x,L)}}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,L){return new Te().fromBinary(x,L)}static fromJson(x,L){return new Te().fromJson(x,L)}static fromJsonString(x,L){return new Te().fromJsonString(x,L)}static equals(x,L){return E.util.equals(Te,x,L)}}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,L){return new rt().fromBinary(x,L)}static fromJson(x,L){return new rt().fromJson(x,L)}static fromJsonString(x,L){return new rt().fromJsonString(x,L)}static equals(x,L){return E.util.equals(rt,x,L)}}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,L){return new pt().fromBinary(x,L)}static fromJson(x,L){return new pt().fromJson(x,L)}static fromJsonString(x,L){return new pt().fromJsonString(x,L)}static equals(x,L){return E.util.equals(pt,x,L)}}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,L){return new xt().fromBinary(x,L)}static fromJson(x,L){return new xt().fromJson(x,L)}static fromJsonString(x,L){return new xt().fromJsonString(x,L)}static equals(x,L){return E.util.equals(xt,x,L)}}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,L){return new et().fromBinary(x,L)}static fromJson(x,L){return new et().fromJson(x,L)}static fromJsonString(x,L){return new et().fromJsonString(x,L)}static equals(x,L){return E.util.equals(et,x,L)}}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,L){return new vt().fromBinary(x,L)}static fromJson(x,L){return new vt().fromJson(x,L)}static fromJsonString(x,L){return new vt().fromJsonString(x,L)}static equals(x,L){return E.util.equals(vt,x,L)}}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,L){return new it().fromBinary(x,L)}static fromJson(x,L){return new it().fromJson(x,L)}static fromJsonString(x,L){return new it().fromJsonString(x,L)}static equals(x,L){return E.util.equals(it,x,L)}}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,L){return new Et().fromBinary(x,L)}static fromJson(x,L){return new Et().fromJson(x,L)}static fromJsonString(x,L){return new Et().fromJsonString(x,L)}static equals(x,L){return E.util.equals(Et,x,L)}}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,L){return new Nt().fromBinary(x,L)}static fromJson(x,L){return new Nt().fromJson(x,L)}static fromJsonString(x,L){return new Nt().fromJsonString(x,L)}static equals(x,L){return E.util.equals(Nt,x,L)}}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,L){return new pe().fromBinary(x,L)}static fromJson(x,L){return new pe().fromJson(x,L)}static fromJsonString(x,L){return new pe().fromJsonString(x,L)}static equals(x,L){return E.util.equals(pe,x,L)}}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,L){return new lt().fromBinary(x,L)}static fromJson(x,L){return new lt().fromJson(x,L)}static fromJsonString(x,L){return new lt().fromJsonString(x,L)}static equals(x,L){return E.util.equals(lt,x,L)}}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,L){return new at().fromBinary(x,L)}static fromJson(x,L){return new at().fromJson(x,L)}static fromJsonString(x,L){return new at().fromJsonString(x,L)}static equals(x,L){return E.util.equals(at,x,L)}}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,L){return new Mt().fromBinary(x,L)}static fromJson(x,L){return new Mt().fromJson(x,L)}static fromJsonString(x,L){return new Mt().fromJsonString(x,L)}static equals(x,L){return E.util.equals(Mt,x,L)}}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,L){return new $t().fromBinary(x,L)}static fromJson(x,L){return new $t().fromJson(x,L)}static fromJsonString(x,L){return new $t().fromJsonString(x,L)}static equals(x,L){return E.util.equals($t,x,L)}}$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,L){return new It().fromBinary(x,L)}static fromJson(x,L){return new It().fromJson(x,L)}static fromJsonString(x,L){return new It().fromJsonString(x,L)}static equals(x,L){return E.util.equals(It,x,L)}}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 L=F.values.find(le=>le.name===x);return(0,k.hu)(L,`cannot parse ${F.name} default value: ${x}`),L.number}function Ie(F,x){switch(F){case p.w.STRING:return x;case p.w.BYTES:{const L=we(x);if(L===!1)throw new Error(`cannot parse ${p.w[F]} default value: ${x}`);return L}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=[],L={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(;L.next();)switch(L.c){case"\\":if(L.next())switch(L.c){case"\\":x.push(L.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=L.c,be=L.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=L.c,be=L.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=L.c,be=L.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=L.c,be=L.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(L.c.charCodeAt(0))}return new Uint8Array(x)}const Qe=pe.fromBinary(B.W.dec("ChESDAgBEAIYAiABKAEwAhjmBwoREgwIAhABGAEgAigBMAEY5wcKERIMCAEQARgBIAIoATABGOgHIOYHKOgH"));function ot(F){const x=F.minimumEdition,L=F.maximumEdition;if(x===void 0||L===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>vr||(Pt={e:vr,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 L=F[x.localName];if(L===void 0||x.kind=="enum"&&L===0)return!1}return!0}function Wt(F,x){var L;const le={enums:new Map,messages:new Map,services:new Map,extensions:new Map,mapEntries:new Map,resolveFeatures:ot((L=x==null?void 0:x.featureSetDefaults)!==null&&L!==void 0?L: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 L,le;(0,k.hu)(F.name,"invalid FileDescriptorProto: missing name");const be=Object.assign(Object.assign({kind:"file",proto:F,deprecated:(le=(L=F.options)===null||L===void 0?void 0:L.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,[ci.FileDescriptorProto_Syntax])},getPackageComments(){return no(this.proto.sourceCodeInfo,[ci.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 L of F.proto.extension){const le=Kt(L,F,void 0,x);F.extensions.push(le),x.extensions.set(le.typeName,le)}break;case"message":for(const L of F.proto.extension){const le=Kt(L,F.file,F,x);F.nestedExtensions.push(le),x.extensions.set(le.typeName,le)}for(const L of F.nestedMessages)tr(L,x);break}}function Ue(F,x){const L=F.proto.oneofDecl.map(be=>Mn(be,F,x)),le=new Set;for(const be of F.proto.field){const Pe=Yr(be,L),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 L.filter(Pe=>le.has(Pe)))F.oneofs.push(be);for(const be of F.nestedMessages)Ue(be,x)}function Ce(F,x,L,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:L,name:F.name,typeName:Wn(F,L,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,ci.DescriptorProto_EnumType,this.parent.proto.enumType.indexOf(this.proto)]:[ci.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 vr=`${this.name} = ${this.number}`;return((On=this.proto.options)===null||On===void 0?void 0:On.deprecated)===!0&&(vr+=" [deprecated = true]"),vr},getComments(){const On=[...this.parent.getComments().sourcePath,ci.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=L==null?void 0:L.nestedEnums)!==null&&je!==void 0?je:x.enums).push(ct)}function mt(F,x,L,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:L,name:F.name,typeName:Wn(F,L,x),fields:[],oneofs:[],members:[],nestedEnums:[],nestedMessages:[],nestedExtensions:[],toString(){return`message ${this.typeName}`},getComments(){const Ot=this.parent?[...this.parent.getComments().sourcePath,ci.DescriptorProto_NestedType,this.parent.proto.nestedType.indexOf(this.proto)]:[ci.FileDescriptorProto_MessageType,this.file.proto.messageType.indexOf(this.proto)];return no(x.proto.sourceCodeInfo,Ot)},getFeatures(){var Ot,Pt,On;const vr=(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,vr,(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=L==null?void 0:L.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,L){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=[ci.FileDescriptorProto_Service,this.file.proto.service.indexOf(this.proto)];return no(x.proto.sourceCodeInfo,je)},getFeatures(){var je;return L.resolveFeatures(this.file.edition,this.file.getFeatures(),(je=this.proto.options)===null||je===void 0?void 0:je.features)}};x.services.push(Pe),L.services.set(Pe.typeName,Pe);for(const je of F.method)Pe.methods.push(tn(je,Pe,L))}function tn(F,x,L){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=L.messages.get(Qn(F.inputType)),Ot=L.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,ci.ServiceDescriptorProto_Method,this.parent.proto.method.indexOf(this.proto)];return no(x.file.proto.sourceCodeInfo,On)},getFeatures(){var On;return L.resolveFeatures(this.parent.file.edition,this.parent.getFeatures(),(On=this.proto.options)===null||On===void 0?void 0:On.features)}}}function Mn(F,x,L){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,ci.DescriptorProto_OneofDecl,this.parent.proto.oneofDecl.indexOf(this.proto)];return no(x.file.proto.sourceCodeInfo,le)},getFeatures(){var le;return L.resolveFeatures(this.parent.file.edition,this.parent.getFeatures(),(le=this.proto.options)===null||le===void 0?void 0:le.features)}}}function Dn(F,x,L,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:L,oneof:le,optional:En(F,x.syntax),packedByDefault:An(x,F,be.resolveFeatures),packed:sa(x,L,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,ci.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:Wp,repeated:Ot,enum:Pt})}default:{const Pt=Hp[F.type];return(0,k.hu)(Pt,`invalid FieldDescriptorProto: unknown type ${F.type}`),Object.assign(Object.assign({},Ze),{kind:"field",fieldKind:"scalar",getDefaultValue:Wp,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,L,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,L,x),parent:L,file:x,extendee:Pe,toString(){return`extension ${this.typeName}`},getComments(){const je=this.parent?[...this.parent.getComments().sourcePath,ci.DescriptorProto_Extension,this.parent.proto.extension.indexOf(F)]:[ci.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 L,le;switch(F){case void 0:case"proto2":le="proto2",L=G.EDITION_PROTO2;break;case"proto3":le="proto3",L=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:L=G.EDITION_UNKNOWN;break;default:L=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:L}}function Wn(F,x,L){(0,k.hu)(F.name,`invalid ${F.getType().typeName}: missing name`);let le;return x?le=`${x.typeName}.${F.name}`:L.proto.package!==void 0?le=`${L.proto.package}.${F.name}`:le=`${F.name}`,le}function Qn(F){return F.startsWith(".")?F.substring(1):F}function ht(F){var x,L;(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 ${(L=le.proto.type)!==null&&L!==void 0?L:-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 L;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 #${(L=F.number)!==null&&L!==void 0?L:-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,L){const{repeatedFieldEncoding:le}=L(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 sa(F,x,L,le){var be,Pe,je,ct,Ze,Ot;switch(L.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=L.options)===null||be===void 0?void 0:be.packed)!==null&&Pe!==void 0?Pe:!1;case G.EDITION_PROTO3:return(ct=(je=L.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=L.options)===null||Ot===void 0?void 0:Ot.features);return Pt==pn.PACKED}}}}const Hp={[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 L of F.location)if(L.path.length===x.length&&!L.path.some((le,be)=>x[be]!==le))return{leadingDetached:L.leadingDetachedComments,leading:L.leadingComments,trailing:L.trailingComments,sourcePath:x};return{leadingDetached:[],sourcePath:x}}var ci;(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"})(ci||(ci={}));function Ma(){var F,x,L;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]}`),((L=this.proto.options)===null||L===void 0?void 0:L.deprecated)===!0&&je.push("deprecated = true"),je.length>0&&le.push("["+je.join(", ")+"]"),le.join(" ")}function Wp(){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 BO(...F){const x={},L={},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 L[Pe.typeName]=Pe},findMessage(Pe){return x[Pe]},findEnum(Pe){return L[Pe]},findService(Pe){return le[Pe]}};for(const Pe of F)be.add(Pe);return be}class la extends se.v{constructor(x){super(),this.seconds=R.q.zero,this.nanos=0,c.w.util.initPartial(x,this)}fromJson(x,L){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 L=Number(this.seconds)*1e3;if(LDate.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(L).toISOString().replace(".000Z",le)}toDate(){return new Date(Number(this.seconds)*1e3+Math.ceil(this.nanos/1e6))}static now(){return la.fromDate(new Date)}static fromDate(x){const L=x.getTime();return new la({seconds:R.q.parse(Math.floor(L/1e3)),nanos:L%1e3*1e6})}static fromBinary(x,L){return new la().fromBinary(x,L)}static fromJson(x,L){return new la().fromJson(x,L)}static fromJsonString(x,L){return new la().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(la,x,L)}}la.runtime=c.w,la.typeName="google.protobuf.Timestamp",la.fields=c.w.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);class Or extends se.v{constructor(x){super(),this.seconds=R.q.zero,this.nanos=0,c.w.util.initPartial(x,this)}fromJson(x,L){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 L=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)),L+="."+le,this.nanos<0&&Number(this.seconds)==0&&(L="-"+L)}return L+"s"}static fromBinary(x,L){return new Or().fromBinary(x,L)}static fromJson(x,L){return new Or().fromJson(x,L)}static fromJsonString(x,L){return new Or().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(Or,x,L)}}Or.runtime=c.w,Or.typeName="google.protobuf.Duration",Or.fields=c.w.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);var Qp=u(733);class Ts extends se.v{constructor(x){super(),c.w.util.initPartial(x,this)}static fromBinary(x,L){return new Ts().fromBinary(x,L)}static fromJson(x,L){return new Ts().fromJson(x,L)}static fromJsonString(x,L){return new Ts().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(Ts,x,L)}}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 L(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 L(le)}).join(",")}fromJson(x,L){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,L){return new ws().fromBinary(x,L)}static fromJson(x,L){return new ws().fromJson(x,L)}static fromJsonString(x,L){return new ws().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(ws,x,L)}}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 So extends se.v{constructor(x){super(),this.fields={},c.w.util.initPartial(x,this)}toJson(x){const L={};for(const[le,be]of Object.entries(this.fields))L[le]=be.toJson(x);return L}fromJson(x,L){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,L){return new So().fromBinary(x,L)}static fromJson(x,L){return new So().fromJson(x,L)}static fromJsonString(x,L){return new So().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(So,x,L)}}So.runtime=c.w,So.typeName="google.protobuf.Struct",So.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,L){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:So.fromJson(x)};break;default:throw new Error("cannot decode google.protobuf.Value from JSON "+c.w.json.debug(x))}return this}static fromBinary(x,L){return new Br().fromBinary(x,L)}static fromJson(x,L){return new Br().fromJson(x,L)}static fromJsonString(x,L){return new Br().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(Br,x,L)}}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:So,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(L=>L.toJson())}fromJson(x,L){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,L){return new io().fromBinary(x,L)}static fromJson(x,L){return new io().fromJson(x,L)}static fromJsonString(x,L){return new io().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(io,x,L)}}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,L){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,L){return new Vo().fromBinary(x,L)}static fromJson(x,L){return new Vo().fromJson(x,L)}static fromJsonString(x,L){return new Vo().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(Vo,x,L)}}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 To 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,L){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,L){return new To().fromBinary(x,L)}static fromJson(x,L){return new To().fromJson(x,L)}static fromJsonString(x,L){return new To().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(To,x,L)}}To.runtime=c.w,To.typeName="google.protobuf.FloatValue",To.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:2}]),To.fieldWrapper={wrapField(F){return new To({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,L){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,L){return new ji().fromBinary(x,L)}static fromJson(x,L){return new ji().fromJson(x,L)}static fromJsonString(x,L){return new ji().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(ji,x,L)}}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,L){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,L){return new mr().fromBinary(x,L)}static fromJson(x,L){return new mr().fromJson(x,L)}static fromJsonString(x,L){return new mr().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(mr,x,L)}}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 Cr 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,L){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,L){return new Cr().fromBinary(x,L)}static fromJson(x,L){return new Cr().fromJson(x,L)}static fromJsonString(x,L){return new Cr().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(Cr,x,L)}}Cr.runtime=c.w,Cr.typeName="google.protobuf.Int32Value",Cr.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:5}]),Cr.fieldWrapper={wrapField(F){return new Cr({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,L){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,L){return new Ur().fromBinary(x,L)}static fromJson(x,L){return new Ur().fromJson(x,L)}static fromJsonString(x,L){return new Ur().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(Ur,x,L)}}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,L){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,L){return new Ho().fromBinary(x,L)}static fromJson(x,L){return new Ho().fromJson(x,L)}static fromJsonString(x,L){return new Ho().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(Ho,x,L)}}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,L){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,L){return new zi().fromBinary(x,L)}static fromJson(x,L){return new zi().fromJson(x,L)}static fromJsonString(x,L){return new zi().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(zi,x,L)}}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,L){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,L){return new Jt().fromBinary(x,L)}static fromJson(x,L){return new Jt().fromJson(x,L)}static fromJsonString(x,L){return new Jt().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(Jt,x,L)}}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 Ar=[Qp.I,Or,Ts,ws,So,Br,io,la,Or,Vo,To,ji,Cr,Ur,mr,Ho,zi,Jt],Yp=[(0,Wl.V3)(ro)];function df(F,x=!0){const L=F instanceof Uint8Array||F instanceof ce?Wt(F):F,le={},be={},Pe={};if(x){for(const je of Ar)be[je.typeName]=je;for(const je of Yp)le[je.typeName]=je}return{findEnum(je){const ct=le[je];if(ct)return ct;const Ze=L.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=L.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 vr of Ze.fields){const Sn=Wo(vr,this);Pt.push(Sn)}return On},findService(je){const ct=Pe[je];if(ct)return ct;const Ze=L.services.get(je);if(!Ze)return;const Ot={};for(const Pt of Ze.methods){const On=this.findMessage(Pt.input.typeName),vr=this.findMessage(Pt.output.typeName);(0,k.hu)(On,`message "${Pt.input.typeName}" for ${Pt.toString()} not found`),(0,k.hu)(vr,`output message "${Pt.output.typeName}" for ${Pt.toString()} not found`),Ot[(0,v.r1)(Pt)]={name:Pt.name,I:On,O:vr,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 ff(F,x);case"enum":{const L=Yl(F,x);return L.default=F.getDefaultValue(),L}case"scalar":{const L=Hu(F);return L.default=F.getDefaultValue(),L}}}function Ql(F,x){const L={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({},L),{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({},L),{V:{kind:"enum",T:le}})}return Object.assign(Object.assign({},L),{V:{kind:"scalar",T:F.mapValue.scalar}})}function Hu(F){const x=F.longType==p.p.STRING?{L:p.p.STRING}:{},L=Object.assign({kind:"scalar",no:F.number,name:F.name,jsonName:F.jsonName,T:F.scalar},x);return F.repeated?Object.assign(Object.assign({},L),{repeated:!0,packed:F.packed,oneof:void 0,T:F.scalar}):F.oneof?Object.assign(Object.assign({},L),{oneof:F.oneof.name}):F.optional?Object.assign(Object.assign({},L),{opt:!0}):L}function ff(F,x){const L=x.findMessage(F.message.typeName);(0,k.hu)(L,`message "${F.message.typeName}" for ${F.toString()} not found`);const le={kind:"message",no:F.number,name:F.name,jsonName:F.jsonName,T:L,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 L=x.findEnum(F.enum.typeName);(0,k.hu)(L,`enum "${F.enum.typeName}" for ${F.toString()} not found`);const le={kind:"enum",no:F.number,name:F.name,jsonName:F.jsonName,T:L};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 Gp(F){if(!(F instanceof se.v))return F;const x=F.getType(),L={};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);L[le.localName]=Pe}return L}function $a(F){if(F===void 0)return F;if(F instanceof se.v)return Gp(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,L){return new Qo().fromBinary(x,L)}static fromJson(x,L){return new Qo().fromJson(x,L)}static fromJsonString(x,L){return new Qo().fromJsonString(x,L)}static equals(x,L){return E.util.equals(Qo,x,L)}}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,L){return new Yo().fromBinary(x,L)}static fromJson(x,L){return new Yo().fromJson(x,L)}static fromJsonString(x,L){return new Yo().fromJsonString(x,L)}static equals(x,L){return E.util.equals(Yo,x,L)}}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 di extends se.v{constructor(x){super(),this.file=[],E.util.initPartial(x,this)}static fromBinary(x,L){return new di().fromBinary(x,L)}static fromJson(x,L){return new di().fromJson(x,L)}static fromJsonString(x,L){return new di().fromJsonString(x,L)}static equals(x,L){return E.util.equals(di,x,L)}}di.runtime=E,di.typeName="google.protobuf.compiler.CodeGeneratorResponse",di.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:wo,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 wo extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,L){return new wo().fromBinary(x,L)}static fromJson(x,L){return new wo().fromJson(x,L)}static fromJsonString(x,L){return new wo().fromJsonString(x,L)}static equals(x,L){return E.util.equals(wo,x,L)}}wo.runtime=E,wo.typeName="google.protobuf.compiler.CodeGeneratorResponse.File",wo.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 ua extends se.v{constructor(x){super(),this.fileName="",c.w.util.initPartial(x,this)}static fromBinary(x,L){return new ua().fromBinary(x,L)}static fromJson(x,L){return new ua().fromJson(x,L)}static fromJsonString(x,L){return new ua().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(ua,x,L)}}ua.runtime=c.w,ua.typeName="google.protobuf.SourceContext",ua.fields=c.w.util.newFieldList(()=>[{no:1,name:"file_name",kind:"scalar",T:9}]);var ca;(function(F){F[F.PROTO2=0]="PROTO2",F[F.PROTO3=1]="PROTO3",F[F.EDITIONS=2]="EDITIONS"})(ca||(ca={})),c.w.util.setEnumType(ca,"google.protobuf.Syntax",[{no:0,name:"SYNTAX_PROTO2"},{no:1,name:"SYNTAX_PROTO3"},{no:2,name:"SYNTAX_EDITIONS"}]);class ki extends se.v{constructor(x){super(),this.name="",this.fields=[],this.oneofs=[],this.options=[],this.syntax=ca.PROTO2,this.edition="",c.w.util.initPartial(x,this)}static fromBinary(x,L){return new ki().fromBinary(x,L)}static fromJson(x,L){return new ki().fromJson(x,L)}static fromJsonString(x,L){return new ki().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(ki,x,L)}}ki.runtime=c.w,ki.typeName="google.protobuf.Type",ki.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:xi,repeated:!0},{no:5,name:"source_context",kind:"message",T:ua},{no:6,name:"syntax",kind:"enum",T:c.w.getEnumType(ca)},{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,L){return new Go().fromBinary(x,L)}static fromJson(x,L){return new Go().fromJson(x,L)}static fromJsonString(x,L){return new Go().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(Go,x,L)}}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:xi,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=ca.PROTO2,this.edition="",c.w.util.initPartial(x,this)}static fromBinary(x,L){return new Yn().fromBinary(x,L)}static fromJson(x,L){return new Yn().fromJson(x,L)}static fromJsonString(x,L){return new Yn().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(Yn,x,L)}}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:xi,repeated:!0},{no:4,name:"source_context",kind:"message",T:ua},{no:5,name:"syntax",kind:"enum",T:c.w.getEnumType(ca)},{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,L){return new Fa().fromBinary(x,L)}static fromJson(x,L){return new Fa().fromJson(x,L)}static fromJsonString(x,L){return new Fa().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(Fa,x,L)}}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:xi,repeated:!0}]);class xi extends se.v{constructor(x){super(),this.name="",c.w.util.initPartial(x,this)}static fromBinary(x,L){return new xi().fromBinary(x,L)}static fromJson(x,L){return new xi().fromJson(x,L)}static fromJsonString(x,L){return new xi().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(xi,x,L)}}xi.runtime=c.w,xi.typeName="google.protobuf.Option",xi.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"value",kind:"message",T:Qp.I}]);class Ba extends se.v{constructor(x){super(),this.name="",this.methods=[],this.options=[],this.version="",this.mixins=[],this.syntax=ca.PROTO2,c.w.util.initPartial(x,this)}static fromBinary(x,L){return new Ba().fromBinary(x,L)}static fromJson(x,L){return new Ba().fromJson(x,L)}static fromJsonString(x,L){return new Ba().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(Ba,x,L)}}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:da,repeated:!0},{no:3,name:"options",kind:"message",T:xi,repeated:!0},{no:4,name:"version",kind:"scalar",T:9},{no:5,name:"source_context",kind:"message",T:ua},{no:6,name:"mixins",kind:"message",T:Ua,repeated:!0},{no:7,name:"syntax",kind:"enum",T:c.w.getEnumType(ca)}]);class da extends se.v{constructor(x){super(),this.name="",this.requestTypeUrl="",this.requestStreaming=!1,this.responseTypeUrl="",this.responseStreaming=!1,this.options=[],this.syntax=ca.PROTO2,c.w.util.initPartial(x,this)}static fromBinary(x,L){return new da().fromBinary(x,L)}static fromJson(x,L){return new da().fromJson(x,L)}static fromJsonString(x,L){return new da().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(da,x,L)}}da.runtime=c.w,da.typeName="google.protobuf.Method",da.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:xi,repeated:!0},{no:7,name:"syntax",kind:"enum",T:c.w.getEnumType(ca)}]);class Ua extends se.v{constructor(x){super(),this.name="",this.root="",c.w.util.initPartial(x,this)}static fromBinary(x,L){return new Ua().fromBinary(x,L)}static fromJson(x,L){return new Ua().fromJson(x,L)}static fromJsonString(x,L){return new Ua().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(Ua,x,L)}}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:()=>pf,Client:()=>e6,ClientEventType:()=>Va,ClientStatus:()=>Bc,Counter:()=>YO,DocEventType:()=>Ln,Document:()=>KF,DocumentSyncResultType:()=>eh,EventSourceDevPanel:()=>Ooe,EventSourceSDK:()=>voe,Primitive:()=>Ar,StreamConnectionStatus:()=>mf,SyncMode:()=>Wu,Text:()=>QO,TimeTicket:()=>Or,Tree:()=>GO,converter:()=>Zl,default:()=>Toe});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(ar){K={error:ar}}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 ar=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(ar.status,ar.headers),!ar.body)throw"missing response body";const oo=$e(ar.body).getReader();let $n,ti;for(;;){const Gr=await oo.read();if(Gr.done)break;const{flags:Oi,data:gf}=Gr.value;if(Oi===Et){if($n!==void 0)throw"extra trailer";$n=Nt(gf);continue}if(ti!==void 0)throw"extra message";ti=ft(gf)}if($n===void 0)throw"missing trailer";if(on($n,ar.headers),ti===void 0)throw"missing message";return{stream:!1,header:ar.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,ar,oo,$n){return zn(this,arguments,function*(){const Gr=$e(Nn).getReader();if(ar){if(!(yield pn(Gr.read())).done)throw"extra data for trailers-only";return yield pn(void 0)}let Oi=!1;for(;;){const gf=yield pn(Gr.read());if(gf.done)break;const{flags:th,data:r0}=gf.value;if((th&Et)===Et){if(Oi)throw"extra trailer";Oi=!0;const t6=Nt(r0);on(t6,$n),t6.forEach((woe,koe)=>oo.set(koe,woe));continue}if(Oi)throw"extra message";yield yield pn(ft(r0))}if(!Oi)throw"missing trailer"})}async function In(Nn){if(_.kind!=m.t.ServerStreaming)throw"The fetch API does not support streaming request bodies";const ar=await Nn[Symbol.asyncIterator]().next();if(ar.done==!0)throw"missing request message";return We(0,Ft(ar.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 ar;const $n=await((ar=A.fetch)!==null&&ar!==void 0?ar: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()})(wS,()=>(()=>{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);/** * @license * Copyright 2009 The Closure Library Authors * Copyright 2020 Daniel Wirtz / The long.js Authors. @@ -261,62 +261,62 @@ 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 sa(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 Hp=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},ci=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 Wp{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:sa(this.presence)}),this.context.setReversePresence(f,g)}get(f){return this.presence[f]}clear(){this.presence={},this.context.setPresenceChange({type:Ma.Clear})}}const BO="000000000000000000000000",la="FFFFFFFFFFFFFFFFFFFFFFFF";class Or{constructor(f,g,T){this.lamport=f,this.delimiter=g,this.actorID=T}static of(f,g,T){return new Or(f,g,T)}static fromStruct(f){return Or.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 Or(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 Qp=0,Ts=4294967295,ws=Yr.MAX_VALUE,ro=new Or(Yr.fromNumber(0),Qp,BO),So=new Or(ws,Ts,la);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 To{constructor(f,g){this.strKey=f,this.value=g}static of(f,g){return new To(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=To.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 Cr;(function(A){A.Local="local",A.Remote="remote",A.UndoRedo="undoredo"})(Cr||(Cr={}));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 Ar extends io{constructor(f,g){super(g),this.valueType=Ar.getPrimitiveType(f),this.value=f===void 0?null:f}static of(f,g){return new Ar(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=Ar.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 Ar.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 Yp extends Ho{constructor(f){super(f),this.value=f}static createAfter(f,g){const T=new Yp(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 df{constructor(){const f=Ar.of(0,ro);f.setRemovedAt(ro),this.dummyHead=new Yp(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 df}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=Yp.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,df.create());const T=df.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 di extends Vo{constructor(f,g){super(g),this.rgaTreeSplit=f}static create(f,g){return new di(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:ci(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:So;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:ci(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:ci(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 di(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 di||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 wo 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 wo(f,g,T,_,H,K)}execute(f){const g=f.findByCreatedAt(this.getParentCreatedAt());g||u.fatal(`fail to find ${this.getParentCreatedAt()}`),g instanceof di||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 ua=2,ca="root",ki="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===ki}get paddedSize(){return this.size+(this.isText?0:ua)}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 xi(A,f,g=0){for(const T of A.children)xi(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 da(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 da(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 da(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(Or.fromStruct(f.parentID.createdAt),f.parentID.offset),Ze.of(Or.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(Or.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?ci((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 vr(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(vr),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=[],ar=new Map;this.traverseInPosRange(oe,Ae,He,yt,([$n,ti],Gr)=>{if(ti===Yn.Start&&!Gr)for(const th of $n.children)Nn.push(th);const Oi=$n.getCreatedAt().getActorID(),gf=K?K.has(Oi)?K.get(Oi):ro:So;if($n.canDelete(_,gf)||sn.includes($n.parent)){const th=ar.get(Oi),r0=$n.getCreatedAt();(!th||r0.after(th))&&ar.set(Oi,r0),(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&&(Oi.remove(_),this.removedNodeMap.set(Oi.id.toIDString(),Oi)),this.nodeMapByID.put(Oi.id,Oi)}),Gr.isRemoved||$n.push(Gr);if($n.length){const Gr=$n.map(Oi=>Pt(Oi));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,ar]}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 vr(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&&ar===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:ar,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),()=>Or.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 Or.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 qx=new ja(0,Yr.fromInt(0,!0),BO);class pf{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 pf({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(),sa(this.presenceChange.presence)):g.delete(this.id.getActorID())),{opInfos:_,reverseOps:H}}toTestString(){return`${this.operations.map(f=>f.toTestString()).join(",")}`}}class UO{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 UO(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 qp{constructor(f,g){this.serverSeq=f,this.clientSeq=g}static of(f,g){return new qp(f,g)}increaseClientSeq(f){return f===0?this:new qp(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 qp.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 Aie=new qp(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(Or.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 _ie=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:So;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 DF=A=>A<0?Math.ceil(A):Math.floor(A);var fi;(function(A){A[A.IntegerCnt=0]="IntegerCnt",A[A.LongCnt=1]="LongCnt"})(fi||(fi={}));class za extends io{constructor(f,g,T){switch(super(T),this.valueType=f,f){case fi.IntegerCnt:typeof g=="number"?g>Math.pow(2,31)-1||g<-Math.pow(2,31)?this.value=Yr.fromNumber(g).toInt():this.value=DF(g):this.value=g.toInt();break;case fi.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 fi.IntegerCnt:return g[0]|g[1]<<8|g[2]<<16|g[3]<<24;case fi.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?fi.LongCnt:void 0;case"number":return f>Math.pow(2,31)-1||f<-Math.pow(2,31)?fi.LongCnt:fi.IntegerCnt;default:return}}static isSupport(f){return!!za.getCounterType(f)}static isInteger(f){return f%1===0}isNumericType(){const f=this.valueType;return f===fi.IntegerCnt||f===fi.LongCnt}getValueType(){return this.valueType}getValue(){return this.value}toBytes(){switch(this.valueType){case fi.IntegerCnt:{const f=this.value;return new Uint8Array([f&255,f>>8&255,f>>16&255,f>>24&255])}case fi.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===fi.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+DF(f.getValue())).toInt(),this}}class Xp extends Ur{constructor(f,g,T){super(f,T),this.value=g}static create(f,g,T){return new Xp(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 Xp.create(this.getParentCreatedAt(),Ar.of(T,f.getCreatedAt()))}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){return`${this.getParentCreatedAt().toTestString()}.INCREASE.${this.value.toJSON()}`}getValue(){return this.value}}class Kp 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 Kp(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 Rie(A){const f=new pe.Presence,g=f.data;for(const[T,_]of Object.entries(A))g[T]=JSON.stringify(_);return f}function Iie(A){if(A.type===Ma.Put)return new pe.PresenceChange({type:pe.PresenceChange_ChangeType.PUT,presence:Rie(A.presence)});if(A.type===Ma.Clear)return new pe.PresenceChange({type:pe.PresenceChange_ChangeType.CLEAR});throw new An(En.Unimplemented,"unimplemented type")}function Die(A){return new pe.Checkpoint({serverSeq:A.getServerSeqAsString(),clientSeq:A.getClientSeq()})}function Nie(A){return new pe.ChangeID({clientSeq:A.getClientSeq(),lamport:A.getLamportAsString(),actorId:nC(A.getActorID())})}function un(A){if(A)return new pe.TimeTicket({lamport:A.getLamportAsString(),delimiter:A.getDelimiter(),actorId:nC(A.getActorID())})}function NF(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 PF(A){switch(A){case fi.IntegerCnt:return pe.ValueType.INTEGER_CNT;case fi.LongCnt:return pe.ValueType.LONG_CNT;default:throw new An(En.Unsupported,`unsupported type: ${A}`)}}function Zx(A){if(A instanceof mr)return new pe.JSONElementSimple({type:pe.ValueType.JSON_OBJECT,createdAt:un(A.getCreatedAt()),value:QF(A)});if(A instanceof Wo)return new pe.JSONElementSimple({type:pe.ValueType.JSON_ARRAY,createdAt:un(A.getCreatedAt()),value:loe(A)});if(A instanceof di)return new pe.JSONElementSimple({type:pe.ValueType.TEXT,createdAt:un(A.getCreatedAt())});if(A instanceof Ar)return new pe.JSONElementSimple({type:NF(A.getType()),createdAt:un(A.getCreatedAt()),value:A.toBytes()});if(A instanceof za)return new pe.JSONElementSimple({type:PF(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:coe(A)});throw new An(En.Unimplemented,"unimplemented element")}function Pie(A){return new pe.TextNodeID({createdAt:un(A.getCreatedAt()),offset:A.getOffset()})}function jO(A){return new pe.TextNodePos({createdAt:un(A.getID().getCreatedAt()),offset:A.getID().getOffset(),relativeOffset:A.getRelativeOffset()})}function zO(A){return new pe.TreePos({parentId:Jg(A.getParentID()),leftSiblingId:Jg(A.getLeftSiblingID())})}function Jg(A){return new pe.TreeNodeID({createdAt:un(A.getCreatedAt()),offset:A.getOffset()})}function Lie(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=Zx(g.getValue()),T.executedAt=un(g.getExecutedAt()),f.body.case="set",f.body.value=T}else if(A instanceof ff){const g=A,T=new pe.Operation_Add;T.parentCreatedAt=un(g.getParentCreatedAt()),T.prevCreatedAt=un(g.getPrevCreatedAt()),T.value=Zx(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=jO(g.getFromPos()),T.to=jO(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 wo){const g=A,T=new pe.Operation_Style;T.parentCreatedAt=un(g.getParentCreatedAt()),T.from=jO(g.getFromPos()),T.to=jO(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 Xp){const g=A,T=new pe.Operation_Increase;T.parentCreatedAt=un(g.getParentCreatedAt()),T.value=Zx(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=zO(g.getFromPos()),T.to=zO(g.getToPos()),T.contents=zie(g.getContents()),T.splitLevel=g.getSplitLevel(),T.executedAt=un(g.getExecutedAt()),f.body.case="treeEdit",f.body.value=T}else if(A instanceof Kp){const g=A,T=new pe.Operation_TreeStyle;T.parentCreatedAt=un(g.getParentCreatedAt()),T.from=zO(g.getFromPos()),T.to=zO(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 Mie(A){const f=[];for(const g of A)f.push(Lie(g));return f}function $ie(A){const f=new pe.Change({id:Nie(A.getID()),message:A.getMessage()});return A.hasOperations()&&(f.operations=Mie(A.getOperations())),A.hasPresenceChange()&&(f.presenceChange=Iie(A.getPresenceChange())),f}function Fie(A){const f=[];for(const g of A)f.push($ie(g));return f}function Bie(A){const f=[];for(const g of A)f.push(new pe.RHTNode({key:g.getStrKey(),element:Xx(g.getValue())}));return f}function Uie(A){const f=[];for(const g of A)f.push(new pe.RGANode({element:Xx(g.getValue())}));return f}function jie(A){const f=[];for(const g of A){const T=new pe.TextNode;T.id=Pie(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 zie(A){const f=[];if(!A||!A.length)return f;for(const g of A)f.push(new pe.TreeNodes({content:LF(g)}));return f}function LF(A){if(!A)return[];const f=[];return xi(A,(g,T)=>{const _=new pe.TreeNode({id:Jg(g.id),type:g.type,removedAt:un(g.removedAt),depth:T});if(g.isText&&(_.value=g.value),g.insPrevID&&(_.insPrevId=Jg(g.insPrevID)),g.insNextID&&(_.insNextId=Jg(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 Vie(A){const f=new pe.JSONElement;return f.body.case="jsonObject",f.body.value=new pe.JSONElement_JSONObject({nodes:Bie(A.getRHT()),createdAt:un(A.getCreatedAt()),movedAt:un(A.getMovedAt()),removedAt:un(A.getRemovedAt())}),f}function MF(A){const f=new pe.JSONElement;return f.body.case="jsonArray",f.body.value=new pe.JSONElement_JSONArray({nodes:Uie(A.getElements()),createdAt:un(A.getCreatedAt()),movedAt:un(A.getMovedAt()),removedAt:un(A.getRemovedAt())}),f}function Hie(A){const f=new pe.JSONElement;return f.body.case="primitive",f.body.value=new pe.JSONElement_Primitive({type:NF(A.getType()),value:A.toBytes(),createdAt:un(A.getCreatedAt()),movedAt:un(A.getMovedAt()),removedAt:un(A.getRemovedAt())}),f}function Wie(A){const f=new pe.JSONElement;return f.body.case="text",f.body.value=new pe.JSONElement_Text({nodes:jie(A.getRGATreeSplit()),createdAt:un(A.getCreatedAt()),movedAt:un(A.getMovedAt()),removedAt:un(A.getRemovedAt())}),f}function Qie(A){const f=new pe.JSONElement;return f.body.case="counter",f.body.value=new pe.JSONElement_Counter({type:PF(A.getType()),value:A.toBytes(),createdAt:un(A.getCreatedAt()),movedAt:un(A.getMovedAt()),removedAt:un(A.getRemovedAt())}),f}function $F(A){const f=new pe.JSONElement;return f.body.case="tree",f.body.value=new pe.JSONElement_Tree({nodes:LF(A.getRoot()),createdAt:un(A.getCreatedAt()),movedAt:un(A.getMovedAt()),removedAt:un(A.getRemovedAt())}),f}function Xx(A){if(A instanceof mr)return Vie(A);if(A instanceof Wo)return MF(A);if(A instanceof Ar)return Hie(A);if(A instanceof di)return Wie(A);if(A instanceof za)return Qie(A);if(A instanceof Sn)return $F(A);throw new An(En.Unimplemented,"unimplemented element")}function Yie(A){return new pe.ChangePack({documentKey:A.getDocumentKey(),checkpoint:Die(A.getCheckpoint()),isRemoved:A.getIsRemoved(),changes:Fie(A.getChanges()),snapshot:A.getSnapshot(),minSyncedTicket:un(A.getMinSyncedTicket())})}function Gie(A){return ja.of(A.clientSeq,Yr.fromString(A.lamport,!0),tC(A.actorId))}function hn(A){if(A)return Or.of(Yr.fromString(A.lamport,!0),A.delimiter,tC(A.actorId))}function Kx(A){const f={};return Object.entries(A.data).forEach(([g,T])=>{f[g]=JSON.parse(T)}),f}function qie(A){const f=A.type;if(f===pe.PresenceChange_ChangeType.PUT){const g=Kx(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 Zie(A){const f=new Map;return Object.entries(A).forEach(([g,T])=>{f.set(g,Kx(T))}),f}function FF(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 VO(A){switch(A){case pe.ValueType.INTEGER_CNT:return fi.IntegerCnt;case pe.ValueType.LONG_CNT:return fi.LongCnt}throw new An(En.Unimplemented,`unimplemented value type: ${A}`)}function Jx(A){switch(A.type){case pe.ValueType.JSON_OBJECT:return A.value?WF(A.value):mr.create(hn(A.createdAt));case pe.ValueType.JSON_ARRAY:return A.value?soe(A.value):Wo.create(hn(A.createdAt));case pe.ValueType.TEXT:return di.create(Zp.create(),hn(A.createdAt));case pe.ValueType.TREE:return uoe(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 Ar.of(Ar.valueFromBytes(FF(A.type),A.value),hn(A.createdAt));case pe.ValueType.INTEGER_CNT:case pe.ValueType.LONG_CNT:return za.create(VO(A.type),za.valueFromBytes(VO(A.type),A.value),hn(A.createdAt))}}function HO(A){return ul.of(ql.of(hn(A.createdAt),A.offset),A.relativeOffset)}function BF(A){return ql.of(hn(A.createdAt),A.offset)}function Xie(A){const f=Yo.create(A.value);Object.entries(A.attributes).forEach(([T,_])=>{f.setAttr(T,_.value,hn(_.updatedAt))});const g=$c.create(BF(A.id),f);return g.remove(hn(A.removedAt)),g}function WO(A){return ct.of(e0(A.parentId),e0(A.leftSiblingId))}function e0(A){return Ze.of(hn(A.createdAt),A.offset)}function Kie(A){if(!A.length)return;const f=[];return A.forEach(g=>{const T=UF(g.content);f.push(T)}),f}function UF(A){if(A.length===0)return;const f=[];for(const T of A)f.push(Jie(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=e0(A.insPrevId)),A.insNextId&&(g.insNextID=e0(A.insNextId)),g.removedAt=hn(A.removedAt),g}function eoe(A){const f=[];for(const g of A){let T;if(g.body.case==="set"){const _=g.body.value;T=Hu.create(_.key,Jx(_.value),hn(_.parentCreatedAt),hn(_.executedAt))}else if(g.body.case==="add"){const _=g.body.value;T=ff.create(hn(_.parentCreatedAt),hn(_.prevCreatedAt),Jx(_.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),HO(_.from),HO(_.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=wo.create(hn(_.parentCreatedAt),HO(_.from),HO(_.to),H,K,hn(_.executedAt))}else{if(g.body.case==="select")continue;if(g.body.case==="increase"){const _=g.body.value;T=Xp.create(hn(_.parentCreatedAt),Jx(_.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),WO(_.from),WO(_.to),Kie(_.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=Kp.create(hn(_.parentCreatedAt),WO(_.from),WO(_.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(pf.create({id:Gie(g.id),operations:eoe(g.operations),presenceChange:g.presenceChange?qie(g.presenceChange):void 0,message:g.message}));return f}function toe(A){return qp.of(Yr.fromString(A.serverSeq,!0),A.clientSeq)}function noe(A){return UO.create(A.documentKey,toe(A.checkpoint),A.isRemoved,jF(A.changes),A.snapshot,hn(A.minSyncedTicket))}function zF(A){const f=new ji;for(const T of A.nodes){const _=eC(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 VF(A){const f=new df;for(const T of A.nodes)f.insert(eC(T.element));const g=new Wo(hn(A.createdAt),f);return g.setMovedAt(hn(A.movedAt)),g.setRemovedAt(hn(A.removedAt)),g}function roe(A){const f=Ar.of(Ar.valueFromBytes(FF(A.type),A.value),hn(A.createdAt));return f.setMovedAt(hn(A.movedAt)),f.setRemovedAt(hn(A.removedAt)),f}function ioe(A){const f=new Zp;let g=f.getHead();for(const _ of A.nodes){const H=f.insertAfter(g,Xie(_));_.insPrevId&&H.setInsPrev(f.findNode(BF(_.insPrevId))),g=H}const T=new di(f,hn(A.createdAt));return T.setMovedAt(hn(A.movedAt)),T.setRemovedAt(hn(A.removedAt)),T}function ooe(A){const f=za.create(VO(A.type),za.valueFromBytes(VO(A.type),A.value),hn(A.createdAt));return f.setMovedAt(hn(A.movedAt)),f.setRemovedAt(hn(A.removedAt)),f}function HF(A){const f=UF(A.nodes);return Sn.create(f,hn(A.createdAt))}function eC(A){if(A.body.case==="jsonObject")return zF(A.body.value);if(A.body.case==="jsonArray")return VF(A.body.value);if(A.body.case==="primitive")return roe(A.body.value);if(A.body.case==="text")return ioe(A.body.value);if(A.body.case==="counter")return ooe(A.body.value);if(A.body.case==="tree")return HF(A.body.value);throw new An(En.Unimplemented,"unimplemented element")}function aoe(A){if(!A)return{root:mr.create(ro),presences:new Map};const f=pe.Snapshot.fromBinary(A);return{root:eC(f.root),presences:Zie(f.presences)}}function WF(A){if(!A)throw new Error("bytes is empty");const f=pe.JSONElement.fromBinary(A);return zF(f.body.value)}function QF(A){return Xx(A).toBinary()}function soe(A){if(!A)throw new Error("bytes is empty");const f=pe.JSONElement.fromBinary(A);return VF(f.body.value)}function loe(A){return MF(A).toBinary()}function uoe(A){if(!A)throw new Error("bytes is empty");const f=pe.JSONElement.fromBinary(A);return HF(f.body.value)}function coe(A){return $F(A).toBinary()}function doe(A){return A?Array.from(A).map(f=>f.toString(16).padStart(2,"0")).join(""):""}function tC(A){return doe(A)}function foe(A){return new Uint8Array(A.match(/.{1,2}/g).map(f=>parseInt(f,16)))}function nC(A){return foe(A)}const Zl={fromPresence:Kx,toChangePack:Yie,fromChangePack:noe,fromChanges:jF,objectToBytes:QF,bytesToObject:WF,bytesToSnapshot:aoe,toHexString:tC,toUint8Array:nC};class poe{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 Jp{constructor(f,g,T,_){this.id=f,this.delimiter=Qp,this.root=g,this.operations=[],this.previousPresence=sa(T),this.presenceChange=void 0,this.reversePresenceKeys=new Set,this.message=_}static create(f,g,T,_){return new Jp(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 pf.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 t0{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 t0(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 t0(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 YF(A,f){const g=new n0(A);return new Proxy(f,g.getHandlers())}class n0{constructor(f){this.context=f,this.handlers={set:(g,T,_)=>(u.isEnabled(s.Trivial)&&u.trivial(`obj[${T}]=${JSON.stringify(_)}`),n0.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():hf(f,g.get(T))),ownKeys:g=>g.getKeys(),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),deleteProperty:(g,T)=>(u.isEnabled(s.Trivial)&&u.trivial(`obj[${T}]`),n0.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=qO(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=qO(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 hoe(A,f){const g=new ei(A,f);return new Proxy(f,g.getHandlers())}function moe(A){return typeof A=="string"||A instanceof String?!isNaN(A):!1}function goe(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)}:moe(_)?hf(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"&&goe(_)?(...K)=>{const oe=Array.from(T).map(Ae=>hf(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=qO(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=qO(f,_,H);return g.insertAfter(T,K),f.registerElement(K,g),f.push(ff.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(Ar.isSupport(T))return Array.from(g).map(He=>hf(f,He)).includes(T,oe);for(let Ae=oe;Ae=K)return-1;if(Ar.isSupport(T))return Array.from(g).map(He=>hf(f,He)).indexOf(T,oe);for(let Ae=oe;Ae=K?K-1:_<0?_+K:_;if(oe<0)return-1;if(Ar.isSupport(T))return Array.from(g).map(He=>hf(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 QO{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 wo(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 YO{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=Ar.of(f,g);if(!T.isNumericType())throw new TypeError(`Unsupported type of value: ${typeof T.getValue()}`);return this.counter.increase(T),this.context.push(Xp.create(this.counter.getCreatedAt(),T,g)),this}}function rC(A,f,g){const{type:T}=A,_=g.issueTimeTicket();if(T===ki){GF(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"&&!Hp(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)rC(He,Ae,g)}}function boe(A,f){const{type:g}=f,T=A.issueTimeTicket();let _;if(f.type===ki){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"&&!Hp(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)rC(Ae,_,A)}return _}function GF(A){if(!A.value.length)throw new Error("text node cannot have empty value");return!0}function qF(A){if(!A.length)return!0;if(A[0].type===ki)for(const g of A){const{type:T}=g;if(T!==ki)throw new Error("element node and text node cannot be passed together");GF(g)}else for(const g of A){const{type:T}=g;if(T===ki)throw new Error("element node and text node cannot be passed together")}return!0}class GO{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),ca);const g=Ot.create(Ze.of(f.issueTimeTicket(),0),this.initialRoot.type);for(const T of this.initialRoot.children)rC(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(Kp.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(Kp.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]&&(qF(T),T[0].type!==ki))for(const He of T){const{children:yt=[]}=He;qF(yt)}const K=this.context.getLastTimeTicket();let oe=new Array;if(((H=T[0])===null||H===void 0?void 0:H.type)===ki){let He="";for(const yt of T){const{value:Ft}=yt;He+=Ft}oe.push(Ot.create(Ze.of(this.context.issueTimeTicket(),0),ki,He))}else oe=T.map(He=>He&&boe(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 ZF(A,f){return YF(A,f)}function Fc(A,f){if(f){if(f instanceof Ar)return f;if(f instanceof mr)return YF(A,f);if(f instanceof Wo)return hoe(A,f);if(f instanceof di)return new QO(A,f);if(f instanceof za){const g=new YO(fi.IntegerCnt,0);return g.initialize(A,f),g}else if(f instanceof Sn){const g=new GO;return g.initialize(A,f),g}}else return;throw new TypeError(`Unsupported type of element: ${typeof f}`)}function hf(A,f){const g=Fc(A,f);return g instanceof Ar?g.getValue():g}function qO(A,f,g){let T;if(Ar.isSupport(f))T=Ar.of(f,g);else if(Array.isArray(f))T=Wo.create(g,ei.buildArrayElements(A,f));else if(typeof f=="object")f instanceof QO?(T=di.create(Zp.create(),g),f.initialize(A,T)):f instanceof YO?(T=za.create(f.getValueType(),f.getValue(),g),f.initialize(A,T)):f instanceof GO?(T=Sn.create(f.buildRoot(A),g),f.initialize(A,T)):T=mr.create(g,n0.buildObjectMembers(A,f));else throw new TypeError(`Unsupported type of value: ${typeof f}`);return T}const XF=50;class yoe{constructor(){this.undoStack=[],this.redoStack=[]}hasUndo(){return this.undoStack.length>0}hasRedo(){return this.redoStack.length>0}pushUndo(f){this.undoStack.length>=XF&&this.undoStack.shift(),this.undoStack.push(f)}popUndo(){return this.undoStack.pop()}pushRedo(f){this.redoStack.length>=XF&&this.redoStack.shift(),this.redoStack.push(f)}popRedo(){return this.redoStack.pop()}clearRedo(){this.redoStack=[]}getUndoStackForTest(){return this.undoStack}getRedoStackForTest(){return this.redoStack}}const Ooe="yorkie-devtools-panel",voe="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 KF{constructor(f,g){this.opts=g||{},this.key=f,this.status=ks.Detached,this.root=t0.create(),this.changeID=qx,this.checkpoint=Aie,this.localChanges=[],this.eventStream=h(T=>{this.eventStreamObserver=T}),this.onlineClients=new Set,this.presences=new Map,this.isUpdating=!1,this.internalHistory=new yoe,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(),_=Jp.create(this.changeID.next(),this.clone.root,this.clone.presences.get(T)||{},g);try{const H=ZF(_,this.clone.root.getObject());this.presences.has(T)||this.clone.presences.set(T,{}),this.isUpdating=!0,f(H,new Wp(_,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,Cr.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:sa(this.presences)})}createChangePack(){const f=Array.from(this.localChanges),g=this.checkpoint.increaseClientSeq(f.length);return UO.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=Jp.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});return ZF(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 t0(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,Cr.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,Cr.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 sa(f)}getPresence(f){if(!this.onlineClients.has(f))return;const g=this.presences.get(f);return g?sa(g):void 0}getPresenceForTest(f){const g=this.presences.get(f);return g?sa(g):void 0}getPresences(){const f=[];for(const g of this.onlineClients)this.presences.has(g)&&f.push({clientID:g,presence:sa(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=Jp.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const Ae of f){if(!(Ae instanceof Ur)){new Wp(g,sa(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,Cr.UndoRedo);const{opInfos:_,reverseOps:H}=T.execute(this.root,this.presences,Cr.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=Jp.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const Ae of f){if(!(Ae instanceof Ur)){new Wp(g,sa(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,Cr.UndoRedo);const{opInfos:_,reverseOps:H}=T.execute(this.root,this.presences,Cr.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 Eoe(A,f){return g=>async T=>(A&&T.header.set("x-api-key",A),f&&T.header.set("authorization",f),await g(T))}const JF=JSON.parse('{"u2":"yorkie-js-sdk","i8":"0.4.13"}');function Soe(){return A=>async f=>(f.header.set("x-yorkie-user-agent",JF.u2+"/"+JF.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 mf;(function(A){A.Connected="connected",A.Disconnected="disconnected"})(mf||(mf={}));var eh;(function(A){A.Synced="synced",A.SyncFailed="sync-failed"})(eh||(eh={}));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 ZO={syncLoopDuration:50,retrySyncLoopDelay:1e3,reconnectStreamDelay:1e3};class e6{constructor(f,g){g=g||ZO,this.key=g.key?g.key:c(),this.status=Bc.Deactivated,this.attachmentMap=new Map,this.apiKey=g.apiKey||"",this.syncLoopDuration=g.syncLoopDuration||ZO.syncLoopDuration,this.reconnectStreamDelay=g.reconnectStreamDelay||ZO.reconnectStreamDelay,this.retrySyncLoopDelay=g.retrySyncLoopDelay||ZO.retrySyncLoopDelay,this.rpcClient=z(_e.V,Ee({baseUrl:f,interceptors:[Eoe(g.apiKey,g.token),Soe()]})),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 poe(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:mf.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:eh.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:eh.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:mf.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:mf.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:mf.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:eh.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 Toe={Client:e6,Document:KF,Primitive:Ar,Text:QO,Counter:YO,Tree:GO,IntType:fi.IntegerCnt,LongType:fi.LongCnt}})(),a})())})(sJ);var rI=sJ.exports;class JPe{constructor(t,n){qo(this,"doc");qo(this,"client");this.doc=t,this.client=n}}const s3=qt.define({combine(e){return e[e.length-1]}}),lj=Fl.define();class e3e{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(s3),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:[lj.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(lj)===this.conf||this._doc.update((n,r)=>{t.changes.iterChanges((i,o,a,s,l)=>{n.content||(n.content=new rI.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 t3e=Jr.fromClass(e3e);class n3e{constructor(t,n){this.left=t,this.right=n}}const nE=(e,t)=>new n3e(e,t),r3e=(e,t)=>e.forEach(n=>t(n.left,n.right)),$u=typeof document<"u"?document:{},i3e=e=>$u.createElement(e),o3e=()=>$u.createDocumentFragment(),a3e=e=>$u.createTextNode(e);typeof DOMParser<"u"&&new DOMParser;const s3e=(e,t)=>(r3e(t,(n,r)=>{r===!1?e.removeAttribute(n):r===!0?e.setAttribute(n,""):e.setAttribute(n,r)}),e),l3e=e=>{const t=o3e();for(let n=0;n(lJ(e,l3e(t)),e),BA=(e,t=[],n=[])=>u3e(s3e(i3e(e),t),n),rE=a3e,lJ=(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 c3e=Vt.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"}}),d3e=Fl.define();class f3e extends Lu{constructor(n,r){super();qo(this,"color");qo(this,"name");this.color=n,this.name=r}toDOM(){return BA("span",[nE("class","cm-ySelectionCaret"),nE("style",`background-color: ${this.color}; border-color: ${this.color}`)],[rE("⁠"),BA("div",[nE("class","cm-ySelectionCaretDot")]),rE("⁠"),BA("div",[nE("class","cm-ySelectionInfo")],[rE(this.name)]),rE("⁠")])}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 p3e{constructor(t){qo(this,"conf");qo(this,"decorations");qo(this,"unsubscribe");this.conf=t.state.facet(s3),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 f3e(a,s)})})}),this.decorations=ln.set(r,!0),r.length>0&&t.dispatch({annotations:[d3e.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 h3e=Jr.fromClass(p3e,{decorations:e=>e.decorations});function m3e(e,t){const n=new JPe(e,t),r=[s3.of(n),t3e];return t&&r.push(c3e,h3e),r}function iE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const g3e=e=>{const t=window.document.createElement("span");return t.classList.add(`codemirror-toolbar__${e.type}`),t},b3e=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},y3e=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?g3e(r):b3e(r))),t.appendChild(n),t};class O3e{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){iE(this,"view",void 0),iE(this,"element",void 0),iE(this,"config",void 0),iE(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=y3e(this.config);r.addEventListener("click",this.handleClick.bind(this)),this.view.dom.prepend(r)}}const v3e=e=>Jr.define(t=>new O3e(t,e)),E3e=Vt.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}}),S3e=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},T3e=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},w3e=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},k3e=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},x3e=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},C3e=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},A3e=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},Lg=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},_3e=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)]},l3=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=_3e(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},R3e=Lg(1),I3e=Lg(2),D3e=Lg(3),N3e=Lg(4),P3e=Lg(5),L3e=Lg(6),M3e=l3("ul"),$3e=l3("ol"),F3e=l3("todo"),B3e={label:"Bold",icon:'',command:S3e},U3e={label:"Italic",icon:'',command:T3e},j3e={label:"Strike",icon:'',command:w3e},z3e={label:"Underline",icon:'',command:k3e},V3e={label:"H1",icon:'',command:R3e},H3e={label:"H2",icon:'',command:I3e},W3e={label:"H3",icon:'',command:D3e},Q3e={label:"H4",icon:'',command:N3e},Y3e={label:"H5",icon:'',command:P3e},G3e={label:"H6",icon:'',command:L3e},q3e={label:"Block Quote",icon:'',command:x3e},Z3e={label:"Unordered List",icon:'',command:M3e},X3e={label:"Ordered List",icon:'',command:$3e},K3e={label:"Todo List",icon:'',command:F3e},J3e={label:"Link",icon:'',command:C3e},eLe={label:"Image",icon:'',command:A3e},UA={type:"split"},tLe={type:"space"},nLe={label:"Full Screen",key:"fullScreen",icon:'',command:e=>(e.dom.ownerDocument.fullscreenElement?e.dom.ownerDocument.exitFullscreen():e.dom.requestFullscreen(),!0)},rLe=[B3e,U3e,j3e,z3e,UA,V3e,H3e,W3e,Q3e,Y3e,G3e,UA,q3e,Z3e,X3e,K3e,UA,J3e,eLe,tLe,nLe],iLe=e=>[v3e(e),E3e];var uJ=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=Vt.theme(i,{dark:t==="dark"}),l=lO.define(r),u=[s,jZ(l)];return u},oLe={background:"#fff",foreground:"#3D3D3D",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#AFAFAF",lineHighlight:"#d5e6ff69"};function aLe(e){var{theme:t="light",settings:n={},styles:r=[]}=e||{};return uJ({theme:t,settings:P({},oLe,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 sLe=aLe(),lLe={background:"#292A30",foreground:"#CECFD0",caret:"#fff",selection:"#727377",selectionMatch:"#727377",lineHighlight:"#ffffff0f"},uLe=e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return uJ({theme:t,settings:P({},lLe,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]})},cLe=uLe();function uj(){const e=bP(),[t,n]=I.useState(),r=_c(jk),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:[nDe,ZPe(),m3e(r.doc,r.client),iLe({items:rLe}),e=="light"?sLe:cLe,Vt.theme({"&":{width:"100%"}}),Vt.lineWrapping,_g.of([SRe])]});return o=new Vt({state:a,parent:t}),()=>{o==null||o.destroy()}},[r.client,r.doc,t,e]),M.jsx("div",{ref:i,style:{display:"flex",alignItems:"stretch",height:"100%"}})}var iI={exports:{}};(function(e,t){(function(n,r){{var i=r();e&&e.exports&&(t=e.exports=i),t.randomColor=i}})(TS,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})})(iI,iI.exports);var dLe=iI.exports;const fLe=Kd(dLe);var cJ={exports:{}},pLe={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]},dJ={exports:{}},hLe=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")},mLe=hLe,gLe=Array.prototype.concat,bLe=Array.prototype.slice,cj=dJ.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 pJ[e.slice(0,3)]};function Pd(e,t,n){return Math.min(Math.max(t,e),n)}function oE(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var OLe=cJ.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]};const t1=vLe,hJ={};for(const e of Object.keys(t1))hJ[t1[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 mJ=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 ELe(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=hJ[e];if(t)return t;let n=1/0,r;for(const i of Object.keys(t1)){const o=t1[i],a=ELe(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 zT=mJ;function SLe(){const e={},t=Object.keys(zT);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function RLe(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{wh[e]={},Object.defineProperty(wh[e],"channels",{value:oI[e].channels}),Object.defineProperty(wh[e],"labels",{value:oI[e].labels});const t=CLe(e);Object.keys(t).forEach(r=>{const i=t[r];wh[e][r]=RLe(i),wh[e][r].raw=_Le(i)})});var ILe=wh;const kh=OLe,os=ILe,gJ=["keyword","gray","hex"],aI={};for(const e of Object.keys(os))aI[[...os[e].labels].sort().join("")]=e;const VT={};function Gi(e,t){if(!(this instanceof Gi))return new Gi(e,t);if(t&&t in gJ&&(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=kh.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=sI(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 aI))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=aI[o];const{labels:a}=os[this.model],s=[];for(n=0;n(e%360+360)%360),saturationl:ni("hsl",1,Ci(100)),lightness:ni("hsl",2,Ci(100)),saturationv:ni("hsv",1,Ci(100)),value:ni("hsv",2,Ci(100)),chroma:ni("hcg",1,Ci(100)),gray:ni("hcg",2,Ci(100)),white:ni("hwb",1,Ci(100)),wblack:ni("hwb",2,Ci(100)),cyan:ni("cmyk",0,Ci(100)),magenta:ni("cmyk",1,Ci(100)),yellow:ni("cmyk",2,Ci(100)),black:ni("cmyk",3,Ci(100)),x:ni("xyz",0,Ci(95.047)),y:ni("xyz",1,Ci(100)),z:ni("xyz",2,Ci(108.833)),l:ni("lab",0,Ci(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):kh.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),kh.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(gJ.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([...PLe(os[this.model][e].raw(this.color)),this.valpha],e)},Gi[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=sI(n,t)),new Gi(r,e)}}function DLe(e,t){return Number(e.toFixed(t))}function NLe(e){return function(t){return DLe(t,e)}}function ni(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(VT[r]||(VT[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 Ci(e){return function(t){return Math.max(0,Math.min(e,t))}}function PLe(e){return Array.isArray(e)?e:[e]}function sI(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:HT({},z,{onPointerDown:q,onKeyDown:Y,onDoubleClick:Z}),setPosition:N,splitterProps:HT({},z,{onPointerDown:q,onKeyDown:Y,onDoubleClick:Z})}},jLe=function(e){var t=e.disabled,n=e.initial,r=e.min,i=e.max;return(0,e.children)(ULe({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 zLe=e=>{const t=I.useRef(e);return I.useEffect(()=>{t.current=e}),t},VLe=(e,t=100,n=!1)=>{const r=zLe(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)},HLe=(e,t,n)=>{const r=I.useState(e);return[r[0],VLe(r[1],t,n)]};function zA(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 WLe={},$b=typeof window>"u"?null:window,QLe=$b&&typeof $b.visualViewport<"u"?$b.visualViewport:null,dj=()=>[document.documentElement.clientWidth,document.documentElement.clientHeight],YLe=function(e){e===void 0&&(e=WLe);const{wait:t,leading:n,initialWidth:r=0,initialHeight:i=0}=e,[o,a]=HLe(typeof document>"u"?[r,i]:dj,t,n),s=()=>a(dj);return zA($b,"resize",s),zA(QLe,"resize",s),zA($b,"orientationchange",s),o},GLe=e=>YLe(e)[0];function n1(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 u3(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const qLe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ZLe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,XLe={};function fj(e,t){return((t||XLe).jsx?ZLe:qLe).test(e)}const KLe=/[ \t\n\f\r]/g;function OJ(e){return typeof e=="object"?e.type==="text"?pj(e.value):!1:pj(e)}function pj(e){return e.replace(KLe,"")===""}class pO{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}pO.prototype.property={};pO.prototype.normal={};pO.prototype.space=null;function vJ(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&rMe.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(mj,aMe);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!mj.test(o)){let a=o.replace(iMe,oMe);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=c3}return new i(r,t)}function oMe(e){return"-"+e.toLowerCase()}function aMe(e){return e.charAt(1).toUpperCase()}const sMe={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"},Pp=vJ([TJ,SJ,xJ,CJ,tMe],"html"),Fu=vJ([TJ,SJ,xJ,CJ,nMe],"svg");function r1(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function d3(e){return e.join(" ").trim()}var AJ={},gj=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,lMe=/\n/g,uMe=/^\s*/,cMe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,dMe=/^:\s*/,fMe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,pMe=/^[;\s]*/,hMe=/^\s+|\s+$/g,mMe=` -`,bj="/",yj="*",Df="",gMe="comment",bMe="declaration",yMe=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(lMe);b&&(n+=b.length);var O=m.lastIndexOf(mMe);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(uMe)}function c(m){var b;for(m=m||[];b=d();)b!==!1&&m.push(b);return m}function d(){var m=o();if(!(bj!=e.charAt(0)||yj!=e.charAt(1))){for(var b=2;Df!=e.charAt(b)&&(yj!=e.charAt(b)||bj!=e.charAt(b+1));)++b;if(b+=2,Df===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:gMe,comment:O})}}function p(){var m=o(),b=l(cMe);if(b){if(d(),!l(dMe))return s("property missing ':'");var O=l(fMe),y=m({type:bMe,property:Oj(b[0].replace(gj,Df)),value:O?Oj(O[0].replace(gj,Df)):Df});return l(pMe),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 Oj(e){return e?e.replace(hMe,Df):Df}var OMe=TS&&TS.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(AJ,"__esModule",{value:!0});var vMe=OMe(yMe);function EMe(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,vMe.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 vj=AJ.default=EMe;const SMe=vj.default||vj,tx=_J("end"),Bu=_J("start");function _J(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 TMe(e){const t=Bu(e),n=tx(e);if(t&&n)return{start:t,end:n}}function Fb(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Ej(e.position):"start"in e||"end"in e?Ej(e):"line"in e||"column"in e?uI(e):""}function uI(e){return Sj(e&&e.line)+":"+Sj(e&&e.column)}function Ej(e){return uI(e&&e.start)+"-"+uI(e&&e.end)}function Sj(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=Fb(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 f3={}.hasOwnProperty,wMe=new Map,kMe=/[A-Z]/g,xMe=/-([a-z])/g,CMe=new Set(["table","tbody","thead","tfoot","tr"]),AMe=new Set(["td","th"]),RJ="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function _Me(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=$Me(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=MMe(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:Pp,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=IJ(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function IJ(e,t,n){if(t.type==="element")return RMe(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return IMe(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return NMe(e,t,n);if(t.type==="mdxjsEsm")return DMe(e,t);if(t.type==="root")return PMe(e,t,n);if(t.type==="text")return LMe(e,t)}function RMe(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=NJ(e,t.tagName,!1),a=FMe(e,t);let s=h3(e,t);return CMe.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!OJ(l):!0})),DJ(e,a,o,t),p3(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function IMe(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)}i1(e,t.position)}function DMe(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);i1(e,t.position)}function NMe(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:NJ(e,t.name,!0),a=BMe(e,t),s=h3(e,t);return DJ(e,a,o,t),p3(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function PMe(e,t,n){const r={};return p3(r,h3(e,t)),e.create(t,e.Fragment,r,n)}function LMe(e,t){return t.value}function DJ(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function p3(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function MMe(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 $Me(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 FMe(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&f3.call(t.properties,i)){const o=UMe(e,i,t.properties[i]);if(o){const[a,s]=o;e.tableCellAlignToStyle&&a==="align"&&typeof s=="string"&&AMe.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 BMe(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 i1(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 i1(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function h3(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:wMe;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 kj={}.hasOwnProperty;function LJ(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 ZMe=lf(new RegExp("\\p{P}","u")),ta=lf(/[A-Za-z]/),Do=lf(/[\dA-Za-z]/),XMe=lf(/[#-'*+\--9=?A-Z^-~]/);function WT(e){return e!==null&&(e<32||e===127)}const cI=lf(/\d/),KMe=lf(/[\dA-Fa-f]/),$J=lf(/[!-/:-@[-`{-~]/);function gn(e){return e!==null&&e<-2}function yr(e){return e!==null&&(e<0||e===32)}function Un(e){return e===-2||e===-1||e===32}function nx(e){return $J(e)||ZMe(e)}const kp=lf(/\s/);function lf(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Fg(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 r4e(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 QT(e){if(e===null||yr(e)||kp(e))return 1;if(nx(e))return 2}function rx(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);Cj(d,-l),Cj(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,rx(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(Aj,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 m4e(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 WA={name:"codeIndented",tokenize:b4e},g4e={tokenize:y4e,partial:!0};function b4e(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(g4e,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 y4e(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 O4e={name:"codeText",tokenize:S4e,resolve:v4e,previous:E4e};function v4e(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 zJ(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||WT(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||yr(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 HJ(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 Bb(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 _4e={name:"definition",tokenize:I4e},R4e={tokenize:D4e,partial:!0};function I4e(e,t,n){const r=this;let i;return o;function o(h){return e.enter("definition"),a(h)}function a(h){return VJ.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 yr(h)?Bb(e,u)(h):u(h)}function u(h){return zJ(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(R4e,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 D4e(e,t,n){return r;function r(s){return yr(s)?Bb(e,i)(s):n(s)}function i(s){return HJ(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 N4e={name:"hardBreakEscape",tokenize:P4e};function P4e(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 L4e={name:"headingAtx",tokenize:$4e,resolve:M4e};function M4e(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 $4e(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||yr(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||yr(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const F4e=["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"],Rj=["pre","script","style","textarea"],B4e={name:"htmlFlow",tokenize:V4e,resolveTo:z4e,concrete:!0},U4e={tokenize:W4e,partial:!0},j4e={tokenize:H4e,partial:!0};function z4e(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 V4e(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||yr(G)){const ce=G===47,ge=a.toLowerCase();return!ce&&!o&&Rj.includes(ge)?(i=1,r.interrupt?t(G):U(G)):F4e.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||Do(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||Do(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||yr(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(U4e,ve,V)(G)):G===null||gn(G)?(e.exit("htmlFlowData"),V(G)):(e.consume(G),U)}function V(G){return e.check(j4e,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 Rj.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 H4e(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 W4e(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(hO,t,n)}}const Q4e={name:"htmlText",tokenize:Y4e};function Y4e(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||Do(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||Do(j)?(e.consume(j),$):j===47||j===62||yr(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||Do(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||yr(j)?N(j):(e.consume(j),z)}function W(j){return j===47||j===62||yr(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 g3={name:"labelEnd",tokenize:J4e,resolveTo:K4e,resolveAll:X4e},G4e={tokenize:e5e},q4e={tokenize:t5e},Z4e={tokenize:n5e};function X4e(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 pa={name:"list",tokenize:d5e,continuation:{tokenize:f5e},exit:h5e},u5e={tokenize:m5e,partial:!0},c5e={tokenize:p5e,partial:!0};function d5e(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:cI(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(nS,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 cI(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(hO,r.interrupt?n:c,e.attempt(u5e,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 f5e(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(hO,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(c5e,t,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Kn(e,e.attempt(pa,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function p5e(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 h5e(e){e.exit(this.containerState.type)}function m5e(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 Ij={name:"setextUnderline",tokenize:b5e,resolveTo:g5e};function g5e(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 b5e(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 y5e={tokenize:O5e};function O5e(e){const t=this,n=e.attempt(hO,r,e.attempt(this.parser.constructs.flowInitial,i,Kn(e,e.attempt(this.parser.constructs.flow,i,e.attempt(w4e,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 v5e={resolveAll:QJ()},E5e=WJ("string"),S5e=WJ("text");function WJ(e){return{tokenize:t,resolveAll:QJ(e==="text"?T5e: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 x5e(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%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(;++n0){const rt=de.tokenStack[de.tokenStack.length-1];(rt[1]||Nj).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 J5e(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 e$e(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function qJ(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 t$e(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return qJ(e,t);const i={src:Fg(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 n$e(e,t){const n={src:Fg(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 r$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 i$e(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return qJ(e,t);const i={href:Fg(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 o$e(e,t){const n={href:Fg(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 a$e(e,t,n){const r=e.all(t),i=n?s$e(n):ZJ(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]||$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(;++s1}function l$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=tx(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 p$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(Mj(t.slice(i),i>0,!1)),o.join("")}function Mj(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===Pj||o===Lj;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===Pj||o===Lj;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function g$e(e,t){const n={type:"text",value:m$e(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function b$e(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const y$e={blockquote:Y5e,break:G5e,code:q5e,delete:Z5e,emphasis:X5e,footnoteReference:K5e,heading:J5e,html:e$e,imageReference:t$e,image:n$e,inlineCode:r$e,linkReference:i$e,link:o$e,listItem:a$e,list:l$e,paragraph:u$e,root:c$e,strong:d$e,table:f$e,tableCell:h$e,tableRow:p$e,text:g$e,thematicBreak:b$e,toml:aE,yaml:aE,definition:aE,footnoteDefinition:aE};function aE(){}const XJ=-1,ix=0,YT=1,GT=2,b3=3,y3=4,O3=5,v3=6,KJ=7,JJ=8,$j=typeof self=="object"?self:globalThis,O$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 ix:case XJ:return n(a,i);case YT:{const s=n([],i);for(const l of a)s.push(r(l));return s}case GT:{const s=n({},i);for(const[l,u]of a)s[r(l)]=r(u);return s}case b3:return n(new Date(a),i);case y3:{const{source:s,flags:l}=a;return n(new RegExp(s,l),i)}case O3:{const s=n(new Map,i);for(const[l,u]of a)s.set(r(l),r(u));return s}case v3:{const s=n(new Set,i);for(const l of a)s.add(r(l));return s}case KJ:{const{name:s,message:l}=a;return n(new $j[s](l),i)}case JJ:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i)}return n(new $j[o](a),i)};return r},Fj=e=>O$e(new Map,e)(0),dh="",{toString:v$e}={},{keys:E$e}=Object,M0=e=>{const t=typeof e;if(t!=="object"||!e)return[ix,t];const n=v$e.call(e).slice(8,-1);switch(n){case"Array":return[YT,dh];case"Object":return[GT,dh];case"Date":return[b3,dh];case"RegExp":return[y3,dh];case"Map":return[O3,dh];case"Set":return[v3,dh]}return n.includes("Array")?[YT,n]:n.includes("Error")?[KJ,n]:[GT,n]},sE=([e,t])=>e===ix&&(t==="function"||t==="symbol"),S$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]=M0(a);switch(s){case ix:{let c=a;switch(l){case"bigint":s=JJ,c=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([XJ],a)}return i([s,c],a)}case YT:{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 GT:{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 E$e(a))(e||!sE(M0(a[p])))&&c.push([o(p),o(a[p])]);return d}case b3:return i([s,a.toISOString()],a);case y3:{const{source:c,flags:d}=a;return i([s,{source:c,flags:d}],a)}case O3:{const c=[],d=i([s,c],a);for(const[p,h]of a)(e||!(sE(M0(p))||sE(M0(h))))&&c.push([o(p),o(h)]);return d}case v3:{const c=[],d=i([s,c],a);for(const p of a)(e||!sE(M0(p)))&&c.push(o(p));return d}}const{message:u}=a;return i([s,{name:l,message:u}],a)};return o},Bj=(e,{json:t,lossy:n}={})=>{const r=[];return S$e(!(t||n),!!t,new Map,r)(e),r},xp=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Fj(Bj(e,t)):structuredClone(e):(e,t)=>Fj(Bj(e,t));function T$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 w$e(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function k$e(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||T$e,r=e.options.footnoteBackLabel||w$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:{...xp(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 h$e(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r1}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:` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:` -`}]}}const mO=function(e){if(e==null)return _$e;if(typeof e=="function")return ox(e);if(typeof e=="object")return Array.isArray(e)?x$e(e):C$e(e);if(typeof e=="string")return A$e(e);throw new Error("Expected function, string, or object as test")};function x$e(e){const t=[];let n=-1;for(;++n":""))+")"})}return p;function p(){let h=eee,m,b,O;if((!t||o(l,u,c[c.length-1]||void 0))&&(h=D$e(n(l,c)),h[0]===qT))return h;if("children"in l&&l.children){const y=l;if(y.children&&h[0]!==Ub)for(b=(r?y.children.length:-1)+a,O=c.concat(y);b>-1&&b":""))+")"})}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&&b0&&n.push({type:"text",value:` -`}),n}function Uj(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function jj(e,t){const n=P$e(e,t),r=n.one(e,void 0),i=k$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 B$e(e,t){return e&&"run"in e?async function(n,r){const i=jj(n,{file:r,...t});await e.run(i,r)}:function(n,r){return jj(n,{file:r,...t||e})}}function zj(e){if(e)throw e}var rS=Object.prototype.hasOwnProperty,nee=Object.prototype.toString,Vj=Object.defineProperty,Hj=Object.getOwnPropertyDescriptor,Wj=function(t){return typeof Array.isArray=="function"?Array.isArray(t):nee.call(t)==="[object Array]"},Qj=function(t){if(!t||nee.call(t)!=="[object Object]")return!1;var n=rS.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&rS.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||rS.call(t,i)},Yj=function(t,n){Vj&&n.name==="__proto__"?Vj(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Gj=function(t,n){if(n==="__proto__")if(rS.call(t,n)){if(Hj)return Hj(t,n).value}else return;return t[n]},U$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:V$e,dirname:H$e,extname:W$e,join:Q$e,sep:"/"};function V$e(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');gO(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 H$e(e){if(gO(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 W$e(e){gO(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 Q$e(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function G$e(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 gO(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const q$e={cwd:Z$e};function Z$e(){return"/"}function hI(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function X$e(e){if(typeof e=="string")e=new URL(e);else if(!hI(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 K$e(e)}function K$e(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];pI(b)&&pI(h)&&(h=YA(!0,b,h)),r[p]=[u,h,...m]}}}}const nFe=new E3().freeze();function XA(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function KA(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function JA(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 Zj(e){if(!pI(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Xj(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function lE(e){return rFe(e)?e:new ree(e)}function rFe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function iFe(e){return typeof e=="string"||oFe(e)}function oFe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const aFe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Kj=[],Jj={allowDangerousHtml:!0},sFe=/^(https?|ircs?|mailto|xmpp)$/i,lFe=[{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 uFe(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,a=e.disallowedElements,s=e.rehypePlugins||Kj,l=e.remarkPlugins||Kj,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Jj}:Jj,c=e.skipHtml,d=e.unwrapDisallowed,p=e.urlTransform||cFe,h=nFe().use(Q5e).use(l).use(B$e,u).use(s),m=new ree;typeof r=="string"&&(m.value=r);for(const v of lFe)Object.hasOwn(e,v.from)&&(""+v.from+(v.to?"use `"+v.to+"` instead":"remove it")+aFe+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]}),Ia(O,y),_Me(O,{Fragment:M.Fragment,components:o,ignoreInvalidStyle:!0,jsx:M.jsx,jsxs:M.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 HA)if(Object.hasOwn(HA,C)&&Object.hasOwn(v.properties,C)){const w=v.properties[C],E=HA[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 cFe(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||sFe.test(e.slice(0,t))?e:""}function ez(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 dFe(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function fFe(e,t,n){const i=mO((n||{}).ignore||[]),o=pFe(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=ez(e,"(");let o=ez(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 iee(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||kp(n)||nx(n))&&(!t||n!==47)}oee.peek=FFe;function AFe(){return{enter:{gfmFootnoteDefinition:RFe,gfmFootnoteDefinitionLabelString:IFe,gfmFootnoteCall:PFe,gfmFootnoteCallString:LFe},exit:{gfmFootnoteDefinition:NFe,gfmFootnoteDefinitionLabelString:DFe,gfmFootnoteCall:$Fe,gfmFootnoteCallString:MFe}}}function _Fe(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:BFe,footnoteReference:oee}}}function RFe(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function IFe(){this.buffer()}function DFe(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 NFe(e){this.exit(e)}function PFe(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function LFe(){this.buffer()}function MFe(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 $Fe(e){this.exit(e)}function oee(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 FFe(){return"["}function BFe(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()),UFe)),a(),o}function UFe(e,t,n){return t===0?e:(n?"":" ")+e}const jFe=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];aee.peek=QFe;function zFe(){return{canContainEols:["delete"],enter:{strikethrough:HFe},exit:{strikethrough:WFe}}}function VFe(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:jFe}],handlers:{delete:aee}}}function HFe(e){this.enter({type:"delete",children:[]},e)}function WFe(e){this.exit(e)}function aee(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 QFe(){return"~"}function YFe(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||qFe,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()),XFe);return i(),a}function XFe(e,t,n){return">"+(n?"":" ")+e}function KFe(e,t){return rz(e,t.inConstruct,!0)&&!rz(e,t.notInConstruct,!1)}function rz(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 e6e(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 t6e(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 n6e(e,t,n,r){const i=t6e(n),o=e.value||"",a=i==="`"?"GraveAccent":"Tilde";if(e6e(e,n)){const d=n.enter("codeIndented"),p=n.indentLines(o,r6e);return d(),p}const s=n.createTracker(r),l=i.repeat(Math.max(JFe(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 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:` `,encode:["`"],...s.current()})),d()}return c+=s.move(` `),o&&(c+=s.move(o+` -`)),c+=s.move(l),u(),c}function r6e(e,t,n){return(n?"":" ")+e}function T3(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 i6e(e,t,n,r){const i=T3(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 o6e(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}see.peek=a6e;function see(e,t,n,r){const i=o6e(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 a6e(e,t,n){return n.options.emphasis||"*"}function s6e(e,t){let n=!1;return Ia(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,qT}),!!((!e.depth||e.depth<3)&&m3(e)&&(t.options.setext||n))}function l6e(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(s6e(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 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:` `,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}lee.peek=u6e;function lee(e){return e.value||""}function u6e(){return"<"}uee.peek=c6e;function uee(e,t,n,r){const i=T3(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 c6e(){return"!"}cee.peek=d6e;function cee(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 d6e(){return"!"}dee.peek=f6e;function dee(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))}pee.peek=p6e;function pee(e,t,n,r){const i=T3(n),o=i==='"'?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(fee(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 p6e(e,t,n){return fee(e,n)?"<":"["}hee.peek=h6e;function hee(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 h6e(){return"["}function w3(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 m6e(e){const t=w3(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 g6e(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 mee(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 b6e(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let a=e.ordered?g6e(n):w3(n);const s=e.ordered?a==="."?")":".":m6e(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),mee(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 v6e(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),a=n.containerPhrasing(e,r);return o(),i(),a}const E6e=mO(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);function S6e(e,t,n,r){return(e.children.some(function(a){return E6e(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function T6e(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}gee.peek=w6e;function gee(e,t,n,r){const i=T6e(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 w6e(e,t,n){return n.options.strong||"*"}function k6e(e,t,n,r){return n.safe(e.value,r)}function x6e(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 C6e(e,t,n){const r=(mee(n)+(n.options.ruleSpaces?" ":"")).repeat(x6e(n));return n.options.ruleSpaces?r.slice(0,-1):r}const bee={blockquote:ZFe,break:iz,code:n6e,definition:i6e,emphasis:see,hardBreak:iz,heading:l6e,html:lee,image:uee,imageReference:cee,inlineCode:dee,link:pee,linkReference:hee,list:b6e,listItem:O6e,paragraph:v6e,root:S6e,strong:gee,text:k6e,thematicBreak:C6e};function A6e(){return{enter:{table:_6e,tableData:oz,tableHeader:oz,tableRow:I6e},exit:{codeText:D6e,table:R6e,tableData:r2,tableHeader:r2,tableRow:r2}}}function _6e(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 R6e(e){this.exit(e),this.data.inTable=void 0}function I6e(e){this.enter({type:"tableRow",children:[]},e)}function r2(e){this.exit(e)}function oz(e){this.enter({type:"tableCell",children:[]},e)}function D6e(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,N6e));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function N6e(e,t){return t==="|"?t:e}function P6e(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}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:` `,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 YFe(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 K6e={tokenize:aBe,partial:!0};function J6e(){return{document:{91:{tokenize:rBe,continuation:{tokenize:iBe},exit:oBe}},text:{91:{tokenize:nBe},93:{add:"after",tokenize:eBe,resolveTo:tBe}}}}function eBe(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 tBe(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 nBe(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||yr(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 yr(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 rBe(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||yr(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 yr(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 iBe(e,t,n){return e.check(hO,t,e.attempt(K6e,t,n))}function oBe(e){e.exit("gfmFootnoteDefinition")}function aBe(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 sBe(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=QT(m);return O._open=!y||y===2&&!!b,O._close=!b||b===2&&!!y,s(m)}}}class lBe{constructor(){this.map=[]}add(t,n,r){uBe(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 uBe(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||yr(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||yr(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 pBe(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 lBe;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({},xh(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function sz(e,t,n,r,i){const o=[],a=xh(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 xh(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const hBe={tokenize:gBe};function mBe(){return{text:{91:hBe}}}function gBe(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 yr(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:bBe},t,n)(l):n(l)}}function bBe(e,t,n){return Kn(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function yBe(e){return LJ([V6e(),J6e(),sBe(e),dBe(),mBe()])}const OBe={};function vBe(e){const t=this,n=e||OBe,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(yBe(n)),o.push(B6e()),a.push(U6e(n))}const lz=/[#.]/g;function EBe(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 YBe(e){return e>=56320&&e<=57343}function GBe(e,t){return(e-55296)*1024+9216+t}function Iee(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Dee(e){return e>=64976&&e<=65007||QBe.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 qBe=65536;class ZBe{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=qBe,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(YBe(n))return this.pos++,this._addGap(),GBe(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,Ree(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){Iee(t)?this._err(Xe.controlCharacterInInputStream):Dee(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))),XBe=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var o2;const KBe=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]]),JBe=(o2=String.fromCodePoint)!==null&&o2!==void 0?o2: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 e8e(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=KBe.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 t8e=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 yI(e){return e>=qi.ZERO&&e<=qi.NINE}function n8e(e){return e>=qi.UPPER_A&&e<=qi.UPPER_F||e>=qi.LOWER_A&&e<=qi.LOWER_F}function r8e(e){return e>=qi.UPPER_A&&e<=qi.UPPER_Z||e>=qi.LOWER_A&&e<=qi.LOWER_Z||yI(e)}function i8e(e){return e===qi.EQUALS||r8e(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 Nf;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Nf||(Nf={}));class o8e{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=Nf.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)|t8e)===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!==Nf.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!==Nf.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 Pee(e){let t="";const n=new o8e(e,r=>t+=JBe(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 Lee(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}Pee(Qc);Pee(XBe);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 Ld;(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"})(Ld=Ld||(Ld={}));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 a8e=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 Ug(e){var t;return(t=a8e.get(e))!==null&&t!==void 0?t:D.UNKNOWN}const bt=D,s8e={[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 Mee(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 l8e=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 bi={DATA:ae.DATA,RCDATA:ae.RCDATA,RAWTEXT:ae.RAWTEXT,SCRIPT_DATA:ae.SCRIPT_DATA,PLAINTEXT:ae.PLAINTEXT,CDATA_SECTION:ae.CDATA_SECTION};function jb(e){return e>=ne.DIGIT_0&&e<=ne.DIGIT_9}function sb(e){return e>=ne.LATIN_CAPITAL_A&&e<=ne.LATIN_CAPITAL_Z}function u8e(e){return e>=ne.LATIN_SMALL_A&&e<=ne.LATIN_SMALL_Z}function Yc(e){return u8e(e)||sb(e)}function OI(e){return Yc(e)||jb(e)}function $ee(e){return e>=ne.LATIN_CAPITAL_A&&e<=ne.LATIN_CAPITAL_F}function Fee(e){return e>=ne.LATIN_SMALL_A&&e<=ne.LATIN_SMALL_F}function c8e(e){return jb(e)||$ee(e)||Fee(e)}function cE(e){return e+32}function Bee(e){return e===ne.SPACE||e===ne.LINE_FEED||e===ne.TABULATION||e===ne.FORM_FEED}function d8e(e){return e===ne.EQUALS_SIGN||OI(e)}function dz(e){return Bee(e)||e===ne.SOLIDUS||e===ne.GREATER_THAN_SIGN}class f8e{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 ZBe(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=Bee(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=Lee(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()&&d8e(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(fa.SCRIPT,!1)&&dz(this.preprocessor.peek(fa.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n1114111)this._err(Xe.characterReferenceOutsideUnicodeRange),this.charRefCode=ne.REPLACEMENT_CHARACTER;else if(Ree(this.charRefCode))this._err(Xe.surrogateCharacterReference),this.charRefCode=ne.REPLACEMENT_CHARACTER;else if(Dee(this.charRefCode))this._err(Xe.noncharacterCharacterReference);else if(Iee(this.charRefCode)||this.charRefCode===ne.CARRIAGE_RETURN){this._err(Xe.controlCharacterReference);const n=l8e.get(this.charRefCode);n!==void 0&&(this.charRefCode=n)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,t)}}const Uee=new Set([D.DD,D.DT,D.LI,D.OPTGROUP,D.OPTION,D.P,D.RB,D.RP,D.RT,D.RTC]),fz=new Set([...Uee,D.CAPTION,D.COLGROUP,D.TBODY,D.TD,D.TFOOT,D.TH,D.THEAD,D.TR]),dE=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]]),p8e=[D.H1,D.H2,D.H3,D.H4,D.H5,D.H6],h8e=[D.TR,D.TEMPLATE,D.HTML],m8e=[D.TBODY,D.TFOOT,D.THEAD,D.TEMPLATE,D.HTML],g8e=[D.TABLE,D.TEMPLATE,D.HTML],b8e=[D.TD,D.TH];class y8e{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(g8e,st.HTML)}clearBackToTableBodyContext(){this.clearBackTo(m8e,st.HTML)}clearBackToTableRowContext(){this.clearBackTo(h8e,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(dE.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(Mee(n)&&r===st.HTML)return!0;if(dE.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||dE.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||dE.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(;Uee.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;fz.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&fz.has(this.currentTagId);)this.pop()}}const a2=3;var Ol;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Ol=Ol||(Ol={}));const pz={type:Ol.Marker};class O8e{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>=a2&&this.entries.splice(s.idx,1))}}insertMarker(){this.entries.unshift(pz)}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(pz);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 hz(e){return{nodeName:"#text",value:e,parentNode:null}}const Ch={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};Ch.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(Ch.isTextNode(n)){n.value+=t;return}}Ch.appendChild(e,hz(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Ch.isTextNode(r)?r.value+=t:Ch.insertBefore(e,hz(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;re.startsWith(n))}function k8e(e){return e.name===jee&&e.publicId===null&&(e.systemId===null||e.systemId===v8e)}function x8e(e){if(e.name!==jee)return ns.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===E8e)return ns.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),T8e.has(n))return ns.QUIRKS;let r=t===null?S8e:zee;if(mz(n,r))return ns.QUIRKS;if(r=t===null?Vee:w8e,mz(n,r))return ns.LIMITED_QUIRKS}return ns.NO_QUIRKS}const gz={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},C8e="definitionurl",A8e="definitionURL",_8e=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])),R8e=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}]]),I8e=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])),D8e=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 N8e(e){const t=e.tagID;return t===D.FONT&&e.attrs.some(({name:r})=>r===Ld.COLOR||r===Ld.SIZE||r===Ld.FACE)||D8e.has(t)}function Hee(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=bi.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=bi.RCDATA;break}case D.STYLE:case D.XMP:case D.IFRAME:case D.NOEMBED:case D.NOFRAMES:case D.NOSCRIPT:{this.tokenizer.state=bi.RAWTEXT;break}case D.SCRIPT:{this.tokenizer.state=bi.SCRIPT_DATA;break}case D.PLAINTEXT:{this.tokenizer.state=bi.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 $8e(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 Qee.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 s8e[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){bUe(this,t);return}switch(this.insertionMode){case me.INITIAL:{$0(this,t);break}case me.BEFORE_HTML:{zb(this,t);break}case me.BEFORE_HEAD:{Vb(this,t);break}case me.IN_HEAD:{Hb(this,t);break}case me.IN_HEAD_NO_SCRIPT:{Wb(this,t);break}case me.AFTER_HEAD:{Qb(this,t);break}case me.IN_BODY:case me.IN_CAPTION:case me.IN_CELL:case me.IN_TEMPLATE:{Gee(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:{s2(this,t);break}case me.IN_TABLE_TEXT:{ete(this,t);break}case me.IN_COLUMN_GROUP:{ZT(this,t);break}case me.AFTER_BODY:{XT(this,t);break}case me.AFTER_AFTER_BODY:{oS(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){gUe(this,t);return}switch(this.insertionMode){case me.INITIAL:{$0(this,t);break}case me.BEFORE_HTML:{zb(this,t);break}case me.BEFORE_HEAD:{Vb(this,t);break}case me.IN_HEAD:{Hb(this,t);break}case me.IN_HEAD_NO_SCRIPT:{Wb(this,t);break}case me.AFTER_HEAD:{Qb(this,t);break}case me.TEXT:{this._insertCharacters(t);break}case me.IN_TABLE:case me.IN_TABLE_BODY:case me.IN_ROW:{s2(this,t);break}case me.IN_COLUMN_GROUP:{ZT(this,t);break}case me.AFTER_BODY:{XT(this,t);break}case me.AFTER_AFTER_BODY:{oS(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){vI(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:{vI(this,t);break}case me.IN_TABLE_TEXT:{F0(this,t);break}case me.AFTER_BODY:{G8e(this,t);break}case me.AFTER_AFTER_BODY:case me.AFTER_AFTER_FRAMESET:{q8e(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case me.INITIAL:{Z8e(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:{F0(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)?yUe(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case me.INITIAL:{$0(this,t);break}case me.BEFORE_HTML:{X8e(this,t);break}case me.BEFORE_HEAD:{J8e(this,t);break}case me.IN_HEAD:{jl(this,t);break}case me.IN_HEAD_NO_SCRIPT:{n7e(this,t);break}case me.AFTER_HEAD:{i7e(this,t);break}case me.IN_BODY:{zo(this,t);break}case me.IN_TABLE:{ug(this,t);break}case me.IN_TABLE_TEXT:{F0(this,t);break}case me.IN_CAPTION:{eUe(this,t);break}case me.IN_COLUMN_GROUP:{I3(this,t);break}case me.IN_TABLE_BODY:{lx(this,t);break}case me.IN_ROW:{ux(this,t);break}case me.IN_CELL:{rUe(this,t);break}case me.IN_SELECT:{rte(this,t);break}case me.IN_SELECT_IN_TABLE:{oUe(this,t);break}case me.IN_TEMPLATE:{sUe(this,t);break}case me.AFTER_BODY:{uUe(this,t);break}case me.IN_FRAMESET:{cUe(this,t);break}case me.AFTER_FRAMESET:{fUe(this,t);break}case me.AFTER_AFTER_BODY:{hUe(this,t);break}case me.AFTER_AFTER_FRAMESET:{mUe(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?OUe(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case me.INITIAL:{$0(this,t);break}case me.BEFORE_HTML:{K8e(this,t);break}case me.BEFORE_HEAD:{e7e(this,t);break}case me.IN_HEAD:{t7e(this,t);break}case me.IN_HEAD_NO_SCRIPT:{r7e(this,t);break}case me.AFTER_HEAD:{o7e(this,t);break}case me.IN_BODY:{sx(this,t);break}case me.TEXT:{H7e(this,t);break}case me.IN_TABLE:{a1(this,t);break}case me.IN_TABLE_TEXT:{F0(this,t);break}case me.IN_CAPTION:{tUe(this,t);break}case me.IN_COLUMN_GROUP:{nUe(this,t);break}case me.IN_TABLE_BODY:{EI(this,t);break}case me.IN_ROW:{nte(this,t);break}case me.IN_CELL:{iUe(this,t);break}case me.IN_SELECT:{ite(this,t);break}case me.IN_SELECT_IN_TABLE:{aUe(this,t);break}case me.IN_TEMPLATE:{lUe(this,t);break}case me.AFTER_BODY:{ate(this,t);break}case me.IN_FRAMESET:{dUe(this,t);break}case me.AFTER_FRAMESET:{pUe(this,t);break}case me.AFTER_AFTER_BODY:{oS(this,t);break}}}onEof(t){switch(this.insertionMode){case me.INITIAL:{$0(this,t);break}case me.BEFORE_HTML:{zb(this,t);break}case me.BEFORE_HEAD:{Vb(this,t);break}case me.IN_HEAD:{Hb(this,t);break}case me.IN_HEAD_NO_SCRIPT:{Wb(this,t);break}case me.AFTER_HEAD:{Qb(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:{Kee(this,t);break}case me.TEXT:{W7e(this,t);break}case me.IN_TABLE_TEXT:{F0(this,t);break}case me.IN_TEMPLATE:{ote(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:{R3(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:{Yee(this,t);break}case me.IN_TABLE:case me.IN_TABLE_BODY:case me.IN_ROW:{s2(this,t);break}case me.IN_TABLE_TEXT:{Jee(this,t);break}}}}function z8e(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):Xee(e,t),n}function V8e(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 H8e(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>=U8e;!s||l?(l&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(a)):(a=W8e(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function W8e(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 Q8e(e,t,n){const r=e.treeAdapter.getTagName(t),i=Ug(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 Y8e(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 _3(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 Z8e(e,t){e._setDocumentType(t);const n=t.forceQuirks?ns.QUIRKS:x8e(t);k8e(t)||e._err(t,Xe.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=me.BEFORE_HTML}function $0(e,t){e._err(t,Xe.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,ns.QUIRKS),e.insertionMode=me.BEFORE_HTML,e._processToken(t)}function X8e(e,t){t.tagID===D.HTML?(e._insertElement(t,st.HTML),e.insertionMode=me.BEFORE_HEAD):zb(e,t)}function K8e(e,t){const n=t.tagID;(n===D.HTML||n===D.HEAD||n===D.BODY||n===D.BR)&&zb(e,t)}function zb(e,t){e._insertFakeRootElement(),e.insertionMode=me.BEFORE_HEAD,e._processToken(t)}function J8e(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:Vb(e,t)}}function e7e(e,t){const n=t.tagID;n===D.HEAD||n===D.BODY||n===D.HTML||n===D.BR?Vb(e,t):e._err(t,Xe.endTagWithoutMatchingOpenElement)}function Vb(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,bi.RCDATA);break}case D.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,bi.RAWTEXT):(e._insertElement(t,st.HTML),e.insertionMode=me.IN_HEAD_NO_SCRIPT);break}case D.NOFRAMES:case D.STYLE:{e._switchToTextParsing(t,bi.RAWTEXT);break}case D.SCRIPT:{e._switchToTextParsing(t,bi.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:Hb(e,t)}}function t7e(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:{Hb(e,t);break}case D.TEMPLATE:{Lp(e,t);break}default:e._err(t,Xe.endTagWithoutMatchingOpenElement)}}function Lp(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 Hb(e,t){e.openElements.pop(),e.insertionMode=me.AFTER_HEAD,e._processToken(t)}function n7e(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:Wb(e,t)}}function r7e(e,t){switch(t.tagID){case D.NOSCRIPT:{e.openElements.pop(),e.insertionMode=me.IN_HEAD;break}case D.BR:{Wb(e,t);break}default:e._err(t,Xe.endTagWithoutMatchingOpenElement)}}function Wb(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 i7e(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:Qb(e,t)}}function o7e(e,t){switch(t.tagID){case D.BODY:case D.HTML:case D.BR:{Qb(e,t);break}case D.TEMPLATE:{Lp(e,t);break}default:e._err(t,Xe.endTagWithoutMatchingOpenElement)}}function Qb(e,t){e._insertFakeElement(Fe.BODY,D.BODY),e.insertionMode=me.IN_BODY,ax(e,t)}function ax(e,t){switch(t.type){case Pn.CHARACTER:{Gee(e,t);break}case Pn.WHITESPACE_CHARACTER:{Yee(e,t);break}case Pn.COMMENT:{vI(e,t);break}case Pn.START_TAG:{zo(e,t);break}case Pn.END_TAG:{sx(e,t);break}case Pn.EOF:{Kee(e,t);break}}}function Yee(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Gee(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function a7e(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function s7e(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function l7e(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 u7e(e,t){e.openElements.hasInButtonScope(D.P)&&e._closePElement(),e._insertElement(t,st.HTML)}function c7e(e,t){e.openElements.hasInButtonScope(D.P)&&e._closePElement(),Mee(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,st.HTML)}function d7e(e,t){e.openElements.hasInButtonScope(D.P)&&e._closePElement(),e._insertElement(t,st.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function f7e(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 p7e(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 h7e(e,t){e.openElements.hasInButtonScope(D.P)&&e._closePElement(),e._insertElement(t,st.HTML),e.tokenizer.state=bi.PLAINTEXT}function m7e(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 g7e(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Fe.A);n&&(_3(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 b7e(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function y7e(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(D.NOBR)&&(_3(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,st.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function O7e(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function v7e(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 qee(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,st.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Zee(e){const t=Nee(e,Ld.TYPE);return t!=null&&t.toLowerCase()===F8e}function E7e(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,st.HTML),Zee(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function S7e(e,t){e._appendElement(t,st.HTML),t.ackSelfClosing=!0}function T7e(e,t){e.openElements.hasInButtonScope(D.P)&&e._closePElement(),e._appendElement(t,st.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function w7e(e,t){t.tagName=Fe.IMG,t.tagID=D.IMG,qee(e,t)}function k7e(e,t){e._insertElement(t,st.HTML),e.skipNextNewLine=!0,e.tokenizer.state=bi.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=me.TEXT}function x7e(e,t){e.openElements.hasInButtonScope(D.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,bi.RAWTEXT)}function C7e(e,t){e.framesetOk=!1,e._switchToTextParsing(t,bi.RAWTEXT)}function Oz(e,t){e._switchToTextParsing(t,bi.RAWTEXT)}function A7e(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 _7e(e,t){e.openElements.currentTagId===D.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML)}function R7e(e,t){e.openElements.hasInScope(D.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,st.HTML)}function I7e(e,t){e.openElements.hasInScope(D.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(D.RTC),e._insertElement(t,st.HTML)}function D7e(e,t){e._reconstructActiveFormattingElements(),Hee(t),A3(t),t.selfClosing?e._appendElement(t,st.MATHML):e._insertElement(t,st.MATHML),t.ackSelfClosing=!0}function N7e(e,t){e._reconstructActiveFormattingElements(),Wee(t),A3(t),t.selfClosing?e._appendElement(t,st.SVG):e._insertElement(t,st.SVG),t.ackSelfClosing=!0}function vz(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:{b7e(e,t);break}case D.A:{g7e(e,t);break}case D.H1:case D.H2:case D.H3:case D.H4:case D.H5:case D.H6:{c7e(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:{u7e(e,t);break}case D.LI:case D.DD:case D.DT:{p7e(e,t);break}case D.BR:case D.IMG:case D.WBR:case D.AREA:case D.EMBED:case D.KEYGEN:{qee(e,t);break}case D.HR:{T7e(e,t);break}case D.RB:case D.RTC:{R7e(e,t);break}case D.RT:case D.RP:{I7e(e,t);break}case D.PRE:case D.LISTING:{d7e(e,t);break}case D.XMP:{x7e(e,t);break}case D.SVG:{N7e(e,t);break}case D.HTML:{a7e(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:{s7e(e,t);break}case D.FORM:{f7e(e,t);break}case D.NOBR:{y7e(e,t);break}case D.MATH:{D7e(e,t);break}case D.TABLE:{v7e(e,t);break}case D.INPUT:{E7e(e,t);break}case D.PARAM:case D.TRACK:case D.SOURCE:{S7e(e,t);break}case D.IMAGE:{w7e(e,t);break}case D.BUTTON:{m7e(e,t);break}case D.APPLET:case D.OBJECT:case D.MARQUEE:{O7e(e,t);break}case D.IFRAME:{C7e(e,t);break}case D.SELECT:{A7e(e,t);break}case D.OPTION:case D.OPTGROUP:{_7e(e,t);break}case D.NOEMBED:{Oz(e,t);break}case D.FRAMESET:{l7e(e,t);break}case D.TEXTAREA:{k7e(e,t);break}case D.NOSCRIPT:{e.options.scriptingEnabled?Oz(e,t):vz(e,t);break}case D.PLAINTEXT:{h7e(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:vz(e,t)}}function P7e(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 L7e(e,t){e.openElements.hasInScope(D.BODY)&&(e.insertionMode=me.AFTER_BODY,ate(e,t))}function M7e(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function $7e(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 F7e(e){e.openElements.hasInButtonScope(D.P)||e._insertFakeElement(Fe.P,D.P),e._closePElement()}function B7e(e){e.openElements.hasInListItemScope(D.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(D.LI),e.openElements.popUntilTagNamePopped(D.LI))}function U7e(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function j7e(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function z7e(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function V7e(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Fe.BR,D.BR),e.openElements.pop(),e.framesetOk=!1}function Xee(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 sx(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:{_3(e,t);break}case D.P:{F7e(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:{M7e(e,t);break}case D.LI:{B7e(e);break}case D.DD:case D.DT:{U7e(e,t);break}case D.H1:case D.H2:case D.H3:case D.H4:case D.H5:case D.H6:{j7e(e);break}case D.BR:{V7e(e);break}case D.BODY:{P7e(e,t);break}case D.HTML:{L7e(e,t);break}case D.FORM:{$7e(e);break}case D.APPLET:case D.OBJECT:case D.MARQUEE:{z7e(e,t);break}case D.TEMPLATE:{Lp(e,t);break}default:Xee(e,t)}}function Kee(e,t){e.tmplInsertionModeStack.length>0?ote(e,t):R3(e,t)}function H7e(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 W7e(e,t){e._err(t,Xe.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function s2(e,t){if(Qee.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:{ete(e,t);break}case Pn.WHITESPACE_CHARACTER:{Jee(e,t);break}}else bO(e,t)}function Q7e(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,st.HTML),e.insertionMode=me.IN_CAPTION}function Y7e(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,st.HTML),e.insertionMode=me.IN_COLUMN_GROUP}function G7e(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Fe.COLGROUP,D.COLGROUP),e.insertionMode=me.IN_COLUMN_GROUP,I3(e,t)}function q7e(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,st.HTML),e.insertionMode=me.IN_TABLE_BODY}function Z7e(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Fe.TBODY,D.TBODY),e.insertionMode=me.IN_TABLE_BODY,lx(e,t)}function X7e(e,t){e.openElements.hasInTableScope(D.TABLE)&&(e.openElements.popUntilTagNamePopped(D.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function K7e(e,t){Zee(t)?e._appendElement(t,st.HTML):bO(e,t),t.ackSelfClosing=!0}function J7e(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,st.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function ug(e,t){switch(t.tagID){case D.TD:case D.TH:case D.TR:{Z7e(e,t);break}case D.STYLE:case D.SCRIPT:case D.TEMPLATE:{jl(e,t);break}case D.COL:{G7e(e,t);break}case D.FORM:{J7e(e,t);break}case D.TABLE:{X7e(e,t);break}case D.TBODY:case D.TFOOT:case D.THEAD:{q7e(e,t);break}case D.INPUT:{K7e(e,t);break}case D.CAPTION:{Q7e(e,t);break}case D.COLGROUP:{Y7e(e,t);break}default:bO(e,t)}}function a1(e,t){switch(t.tagID){case D.TABLE:{e.openElements.hasInTableScope(D.TABLE)&&(e.openElements.popUntilTagNamePopped(D.TABLE),e._resetInsertionMode());break}case D.TEMPLATE:{Lp(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:bO(e,t)}}function bO(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,ax(e,t),e.fosterParentingEnabled=n}function Jee(e,t){e.pendingCharacterTokens.push(t)}function ete(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function F0(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:{Lp(e,t);break}}}function oUe(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)):rte(e,t)}function aUe(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)):ite(e,t)}function sUe(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,ug(e,t);break}case D.COL:{e.tmplInsertionModeStack[0]=me.IN_COLUMN_GROUP,e.insertionMode=me.IN_COLUMN_GROUP,I3(e,t);break}case D.TR:{e.tmplInsertionModeStack[0]=me.IN_TABLE_BODY,e.insertionMode=me.IN_TABLE_BODY,lx(e,t);break}case D.TD:case D.TH:{e.tmplInsertionModeStack[0]=me.IN_ROW,e.insertionMode=me.IN_ROW,ux(e,t);break}default:e.tmplInsertionModeStack[0]=me.IN_BODY,e.insertionMode=me.IN_BODY,zo(e,t)}}function lUe(e,t){t.tagID===D.TEMPLATE&&Lp(e,t)}function ote(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(D.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):R3(e,t)}function uUe(e,t){t.tagID===D.HTML?zo(e,t):XT(e,t)}function ate(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 XT(e,t)}function XT(e,t){e.insertionMode=me.IN_BODY,ax(e,t)}function cUe(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 dUe(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 fUe(e,t){switch(t.tagID){case D.HTML:{zo(e,t);break}case D.NOFRAMES:{jl(e,t);break}}}function pUe(e,t){t.tagID===D.HTML&&(e.insertionMode=me.AFTER_AFTER_FRAMESET)}function hUe(e,t){t.tagID===D.HTML?zo(e,t):oS(e,t)}function oS(e,t){e.insertionMode=me.IN_BODY,ax(e,t)}function mUe(e,t){switch(t.tagID){case D.HTML:{zo(e,t);break}case D.NOFRAMES:{jl(e,t);break}}}function gUe(e,t){t.chars=Vr,e._insertCharacters(t)}function bUe(e,t){e._insertCharacters(t),e.framesetOk=!1}function ste(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==st.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function yUe(e,t){if(N8e(t))ste(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===st.MATHML?Hee(t):r===st.SVG&&(P8e(t),Wee(t)),A3(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function OUe(e,t){if(t.tagID===D.P||t.tagID===D.BR){ste(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 vUe=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Ez={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function lte(e,t){const n=RUe(e),r=S3("type",{handlers:{root:EUe,element:SUe,text:TUe,comment:cte,doctype:wUe,raw:xUe},unknown:CUe}),i={parser:n?new yz(Ez):yz.getFragmentParser(void 0,Ez),handle(s){r(s,i)},stitches:!1,options:t||{}};r(e,i),jg(i,Bu());const o=n?i.parser.document:i.parser.getFragment(),a=DBe(o,{file:i.options.file});return i.stitches&&Ia(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 ute(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 pte(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?pte(t.parentElement):null}function NUe(e){var t=n=>{var r=pte(n.target);r&&(r.classList.add("active"),DUe(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 PUe=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],LUe=e=>e;const MUe=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,PUe),b=Qt.useRef(null);I.useImperativeHandle(t,()=>P({},e,{mdp:b}),[b,e]);var O=(n||"")+" "+(r||"");NUe(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(fte);var S=[...m.remarkPlugins||[],vBe],k=P({},p,d);return M.jsx("div",P({ref:b,onScroll:l,onMouseOver:u},k,{className:O,style:o,children:M.jsx(uFe,P({},v,m,{skipHtml:s,urlTransform:h||LUe,rehypePlugins:c?c("rehype",y):y,remarkPlugins:c?c("remark",S):S,children:i||""}))}))});function qh(e){return"children"in e?hte(e):"value"in e?e.value:""}function $Ue(e){return e.type==="text"?e.value:"children"in e?hte(e):""}function hte(e){let t=-1;const n=[];for(;++t0&&c.length===0)return}const d={};let p;for(p in s)FUe.call(s,p)&&(d[p]=p==="children"?c:s[p]);return d}}function UUe(e){return"children"in e&&e.children!==void 0}var SI={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}Mp.displayName="cpp";Mp.aliases=[];function Mp(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)}cx.displayName="arduino";cx.aliases=["ino"];function cx(e){e.register(Mp),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}OO.displayName="bash";OO.aliases=["sh","shell"];function OO(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}uf.displayName="css";uf.aliases=[];function uf(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)}dx.displayName="diff";dx.aliases=[];function dx(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 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 ?| -|(?![\\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)}fx.displayName="go";fx.aliases=[];function fx(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"]}px.displayName="ini";px.aliases=[];function px(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:/=/}}Fp.displayName="java";Fp.aliases=[];function Fp(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)}hx.displayName="regex";hx.aliases=[];function hx(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}zg.displayName="json";zg.aliases=["webmanifest"];function zg(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}mx.displayName="kotlin";mx.aliases=["kt","kts"];function mx(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)}gx.displayName="less";gx.aliases=[];function gx(e){e.register(uf),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"}})}vO.displayName="lua";vO.aliases=[];function vO(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:/[\[\](){},;]|\.+|:+/}}bx.displayName="makefile";bx.aliases=[];function bx(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:/[:;(){}]/}}EO.displayName="yaml";EO.aliases=["yml"];function EO(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)}yx.displayName="markdown";yx.aliases=["md"];function yx(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}vx.displayName="perl";vx.aliases=[];function vx(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)}vo.displayName="markup-templating";vo.aliases=[];function vo(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)}Bp.displayName="php";Bp.aliases=[];function Bp(e){e.register(vo),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)}SO.displayName="python";SO.aliases=["py"];function SO(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}Ex.displayName="r";Ex.aliases=[];function Ex(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:/[(){}\[\],;]/}}Up.displayName="ruby";Up.aliases=["rb"];function Up(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)}Sx.displayName="rust";Sx.aliases=[];function Sx(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)}Tx.displayName="sass";Tx.aliases=[];function Tx(e){e.register(uf),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)}wx.displayName="scss";wx.aliases=[];function wx(e){e.register(uf),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}Vg.displayName="sql";Vg.aliases=[];function Vg(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:/[;[\]()`,.]/}}kx.displayName="swift";kx.aliases=[];function kx(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})}Hg.displayName="typescript";Hg.aliases=["ts"];function Hg(e){e.register(Oo),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)}TO.displayName="basic";TO.aliases=[];function TO(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:/[,;:()]/}}wO.displayName="vbnet";wO.aliases=[];function wO(e){e.register(TO),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 Sz=/[#.]/g;function VUe(e,t){const n=e||"",r={};let i=0,o,a;for(;i=48&&t<=57}function KUe(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function JUe(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function kz(e){return JUe(e)||mte(e)}const fh=String.fromCharCode,e9e=["","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 t9e(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+=fh(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"?kz:k==="decimal"?mte:KUe;for(S--;++S<=e.length;){const U=e.charCodeAt(S);if(!$(U))break;E+=fh(U),k==="named"&&XUe.includes(E)&&(C=E,w=o1(E))}let N=e.charCodeAt(S)===59;if(N){S++;const U=k==="named"?o1(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=""):kz(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(n9e(U))m(7,R),B=fh(65533);else if(U in wz)m(6,R),B=wz[U];else{let V="";r9e(U)&&m(6,R),U>65535&&(U-=65536,V+=fh(U>>>10|55296),U=56320|U&1023),B=V+fh(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+=fh(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,e9e[O],v,O))}function b(){a&&(r.push(a),t.text&&t.text.call(t.textContext,a,{start:d,end:h()}),a="")}}function n9e(e){return e>=55296&&e<=57343||e>1114111}function r9e(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 i9e=0,fE={},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:++i9e}),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:fE,plaintext:fE,text:fE,txt:fE,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),Yb.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 o9e;return aS(i,i.head,e),gte(e,i,t,i.head,0),s9e(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:Yb};function Yb(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function xz(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 gte(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 Yb)){var S=1,k;if(p){if(k=xz(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 Yb)continue;for(var E=O;E!==t.tail&&(wo.reach&&(o.reach=U);var V=O.prev;R&&(V=aS(t,V,R),y+=R.length),a9e(t,V,S);var z=new Yb(a,c?Wi.tokenize(N,c):N,h,N);if(O=aS(t,V,z),B&&aS(t,O,B),S>1){var W={cause:a+","+l,reach:U};gte(e,t,n,O.prev,y,W),o&&W.reach>o.reach&&(o.reach=W.reach)}}}}}}function o9e(){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 aS(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 a9e(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:/[,.:()]/}}N3.displayName="abnf";N3.aliases=[];function N3(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)}P3.displayName="actionscript";P3.aliases=[];function P3(e){e.register(Oo),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}})}L3.displayName="ada";L3.aliases=[];function L3(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}}M3.displayName="agda";M3.aliases=[];function M3(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)}$3.displayName="al";$3.aliases=[];function $3(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:/[()\[\]{}:.;,]/}}F3.displayName="antlr4";F3.aliases=["g4"];function F3(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}B3.displayName="apacheconf";B3.aliases=[];function B3(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:/\^?.*\$|\^.*\$?/}}U3.displayName="apex";U3.aliases=[];function U3(e){e.register(jn),e.register(Vg),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)}j3.displayName="apl";j3.aliases=[];function j3(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"}}}z3.displayName="applescript";z3.aliases=[];function z3(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:/[{}():,¬«»《》]/}}V3.displayName="aql";V3.aliases=[];function V3(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:/::|[?.:,;()[\]{}]/}}H3.displayName="arff";H3.aliases=[];function H3(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:/[{},]/}}W3.displayName="armasm";W3.aliases=["arm-asm"];function W3(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)}Y3.displayName="asciidoc";Y3.aliases=["adoc"];function Y3(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||{}}})}q3.displayName="asm6502";q3.aliases=[];function q3(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:/[(),:]/}}Z3.displayName="asmatmel";Z3.aliases=[];function Z3(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:/[(),:]/}}X3.displayName="autohotkey";X3.aliases=[];function X3(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:/[{}[\]():,]/}}K3.displayName="autoit";K3.aliases=[];function K3(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:/[\[\]().,:]/}}J3.displayName="avisynth";J3.aliases=["avs"];function J3(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)}eL.displayName="avro-idl";eL.aliases=["avdl"];function eL(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"]}tL.displayName="awk";tL.aliases=["gawk"];function tL(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}nL.displayName="batch";nL.aliases=[];function nL(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)}rL.displayName="bbcode";rL.aliases=["shortcode"];function rL(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}iL.displayName="bbj";iL.aliases=[];function iL(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)}oL.displayName="bicep";oL.aliases=[];function oL(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}aL.displayName="birb";aL.aliases=[];function aL(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"}})}sL.displayName="bison";sL.aliases=[];function sL(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:/%[%?]|[|:;\[\]<>]/}}})}lL.displayName="bnf";lL.aliases=["rbnf"];function lL(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}uL.displayName="bqn";uL.aliases=[];function uL(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:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}cL.displayName="brainfuck";cL.aliases=[];function cL(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}dL.displayName="brightscript";dL.aliases=[];function dL(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}fL.displayName="bro";fL.aliases=[];function fL(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:/[{}[\];(),.:]/}}pL.displayName="bsl";pL.aliases=["oscript"];function pL(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}hL.displayName="cfscript";hL.aliases=["cfc"];function hL(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}mL.displayName="chaiscript";mL.aliases=[];function mL(e){e.register(jn),e.register(Mp),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]+/}}})}gL.displayName="cil";gL.aliases=[];function gL(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]+/}}bL.displayName="cilkc";bL.aliases=["cilk-c"];function bL(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}yL.displayName="cilkcpp";yL.aliases=["cilk","cilk-cpp"];function yL(e){e.register(Mp),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}OL.displayName="clojure";OL.aliases=[];function OL(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:/[{}\[\](),]/}}vL.displayName="cmake";vL.aliases=[];function vL(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:/[()>}]|\$[<{]/}}EL.displayName="cobol";EL.aliases=[];function EL(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:/[.:,()]/}}SL.displayName="coffeescript";SL.aliases=["coffee"];function SL(e){e.register(Oo),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)}TL.displayName="concurnas";TL.aliases=["conc"];function TL(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}wL.displayName="csp";wL.aliases=[];function wL(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)}kL.displayName="cooklang";kL.aliases=[];function kL(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)}xL.displayName="coq";xL.aliases=[];function xL(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)}CL.displayName="crystal";CL.aliases=[];function CL(e){e.register(Up),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)}AL.displayName="css-extras";AL.aliases=[];function AL(e){e.register(uf),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)}_L.displayName="csv";_L.aliases=[];function _L(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}RL.displayName="cue";RL.aliases=[];function RL(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)}IL.displayName="cypher";IL.aliases=[];function IL(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:/[()[\]{},;.]/}}DL.displayName="d";DL.aliases=[];function DL(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"}})}NL.displayName="dart";NL.aliases=[];function NL(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)}PL.displayName="dataweave";PL.aliases=[];function PL(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)}LL.displayName="dax";LL.aliases=[];function LL(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:/[;\[\](){}`,.]/}}ML.displayName="dhall";ML.aliases=[];function ML(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}$L.displayName="django";$L.aliases=["jinja2"];function $L(e){e.register(vo),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)}FL.displayName="dns-zone-file";FL.aliases=["dns-zone"];function FL(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"]}BL.displayName="docker";BL.aliases=["dockerfile"];function BL(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)}UL.displayName="dot";UL.aliases=["gv"];function UL(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)}jL.displayName="ebnf";jL.aliases=[];function jL(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:/[-=|*/!]/}}zL.displayName="editorconfig";zL.aliases=[];function zL(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:/^=/}}}}VL.displayName="eiffel";VL.aliases=[];function VL(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:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}HL.displayName="ejs";HL.aliases=["eta"];function HL(e){e.register(Oo),e.register(vo),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)}WL.displayName="elixir";WL.aliases=[];function WL(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:/[{}[\]|(),.:]/}}YL.displayName="etlua";YL.aliases=[];function YL(e){e.register(vO),e.register(vo),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)}GL.displayName="erb";GL.aliases=[];function GL(e){e.register(vo),e.register(Up),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)}qL.displayName="erlang";qL.aliases=[];function qL(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:/[()[\]{}:;,.#|]|<<|>>/}}ZL.displayName="excel-formula";ZL.aliases=["xls","xlsx"];function ZL(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"]}XL.displayName="fsharp";XL.aliases=[];function XL(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}})}KL.displayName="factor";KL.aliases=[];function KL(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)}JL.displayName="false";JL.aliases=[];function JL(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:/,/}}})}tM.displayName="flow";tM.aliases=[];function tM(e){e.register(Oo),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)}nM.displayName="fortran";nM.aliases=[];function nM(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:/\(\/|\/\)|[(),;:&]/}}rM.displayName="ftl";rM.aliases=[];function rM(e){e.register(vo),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)}iM.displayName="gml";iM.aliases=["gamemakerlanguage"];function iM(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/})}oM.displayName="gap";oM.aliases=[];function oM(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}aM.displayName="gcode";aM.aliases=[];function aM(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:/[:*]/}}sM.displayName="gdscript";sM.aliases=[];function sM(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:/[.:,;()[\]{}]/}}lM.displayName="gedcom";lM.aliases=[];function lM(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"}}}uM.displayName="gettext";uM.aliases=["po"];function uM(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}cM.displayName="gherkin";cM.aliases=[];function cM(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)}dM.displayName="git";dM.aliases=[];function dM(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}}fM.displayName="glsl";fM.aliases=[];function fM(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/})}pM.displayName="gn";pM.aliases=["gni"];function pM(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}hM.displayName="linker-script";hM.aliases=["ld"];function hM(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"]}mM.displayName="go-module";mM.aliases=["go-mod"];function mM(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:/[()[\],]/}}gM.displayName="gradle";gM.aliases=[];function gM(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)}bM.displayName="graphql";bM.aliases=[];function bM(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")}}}}})}yM.displayName="groovy";yM.aliases=[];function yM(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)}OM.displayName="textile";OM.aliases=[];function OM(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)}vM.displayName="haml";vM.aliases=[];function vM(e){e.register(Up),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)}kO.displayName="haskell";kO.aliases=["hs"];function kO(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}SM.displayName="haxe";SM.aliases=[];function SM(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"}})}TM.displayName="hcl";TM.aliases=[];function TM(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:/[=\[\]{}]/}}wM.displayName="hlsl";wM.aliases=[];function wM(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/})}kM.displayName="hoon";kM.aliases=[];function kM(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:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}xM.displayName="hpkp";xM.aliases=[];function xM(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}CM.displayName="hsts";CM.aliases=[];function CM(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}AM.displayName="uri";AM.aliases=["url"];function AM(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}_M.displayName="http";_M.aliases=[];function _M(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)}RM.displayName="ichigojam";RM.aliases=[];function RM(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:/[\[,;:()\]]/}}IM.displayName="icon";IM.aliases=[];function IM(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:/[\[\](){},;]/}}DM.displayName="icu-message-format";DM.aliases=[];function DM(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)}NM.displayName="idris";NM.aliases=["idr"];function NM(e){e.register(kO),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}PM.displayName="ignore";PM.aliases=["gitignore","hgignore","npmignore"];function PM(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)}LM.displayName="inform7";LM.aliases=[];function LM(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"}}MM.displayName="io";MM.aliases=[];function MM(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:/[()]/}}Qg.displayName="javadoclike";Qg.aliases=[];function Qg(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}BM.displayName="javadoc";BM.aliases=[];function BM(e){e.register(Fp),e.register(Qg),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)}UM.displayName="javastacktrace";UM.aliases=[];function UM(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/}}}}jM.displayName="jexl";jM.aliases=[];function jM(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:/[{}[\](),.]/}}zM.displayName="jolie";zM.aliases=[];function zM(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]*:)/}})}VM.displayName="jq";VM.aliases=[];function VM(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)}HM.displayName="js-templates";HM.aliases=[];function HM(e){e.register(Oo),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(Oo),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}YM.displayName="js-extras";YM.aliases=[];function YM(e){e.register(Oo),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:/:/}}}}}}XM.displayName="julia";XM.aliases=[];function XM(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|[πℯ]/}}KM.displayName="keepalived";KM.aliases=[];function KM(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:/[\{\}]/}}JM.displayName="keyman";JM.aliases=[];function JM(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:/[()=,]/}}e4.displayName="kumir";e4.aliases=["kum"];function e4(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)}t4.displayName="kusto";t4.aliases=[];function t4(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:/[()\[\]{},;.:]/}}n4.displayName="latex";n4.aliases=["context","tex"];function n4(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)}r4.displayName="latte";r4.aliases=[];function r4(e){e.register(jn),e.register(vo),e.register(Bp),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)}xO.displayName="scheme";xO.aliases=[];function xO(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)}i4.displayName="lilypond";i4.aliases=["ly"];function i4(e){e.register(xO),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)}o4.displayName="liquid";o4.aliases=[];function o4(e){e.register(vo),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")})}a4.displayName="lisp";a4.aliases=["elisp","emacs","emacs-lisp"];function a4(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)}s4.displayName="livescript";s4.aliases=[];function s4(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}l4.displayName="llvm";l4.aliases=[];function l4(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)}u4.displayName="log";u4.aliases=[];function u4(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:/[\[\].,]/}}c4.displayName="lolcode";c4.aliases=[];function c4(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}|…|,|!/}}d4.displayName="magma";d4.aliases=[];function d4(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:/[()[\]{}<>,;.:]/}}xx.displayName="mata";xx.aliases=[];function xx(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)}f4.displayName="matlab";f4.aliases=[];function f4(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}|[.,;\[\](){}!]/}}p4.displayName="maxscript";p4.aliases=[];function p4(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)}h4.displayName="mel";h4.aliases=[];function h4(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}m4.displayName="mermaid";m4.aliases=[];function m4(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:/[(){};]/}}g4.displayName="metafont";g4.aliases=[];function g4(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}}}b4.displayName="mizar";b4.aliases=[];function b4(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:/\(#|#\)|[,:;\[\](){}]/}}y4.displayName="mongodb";y4.aliases=[];function y4(e){e.register(Oo),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)}O4.displayName="monkey";O4.aliases=[];function O4(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:/[.,:;()\[\]]/}}v4.displayName="moonscript";v4.aliases=["moon"];function v4(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}E4.displayName="n1ql";E4.aliases=[];function E4(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:/[;[\](),.{}:]/}}S4.displayName="nand2tetris-hdl";S4.aliases=[];function S4(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:/[{}[\];(),:]/}}T4.displayName="naniscript";T4.aliases=["nani"];function T4(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=&|$!]/}}k4.displayName="neon";k4.aliases=[];function k4(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:/[,:=[\]{}()-]/}}x4.displayName="nevod";x4.aliases=[];function x4(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\-.]+/}}C4.displayName="nginx";C4.aliases=[];function C4(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)}A4.displayName="nim";A4.aliases=[];function A4(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:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}_4.displayName="nix";_4.aliases=[];function _4(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}R4.displayName="nsis";R4.aliases=[];function R4(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}}}I4.displayName="ocaml";I4.aliases=[];function I4(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/}}D4.displayName="odin";D4.aliases=[];function D4(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)}N4.displayName="opencl";N4.aliases=[];function N4(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)}P4.displayName="openqasm";P4.aliases=["qasm"];function P4(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}L4.displayName="oz";L4.aliases=[];function L4(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:/[\[\](){}.:;?]/}}M4.displayName="parigp";M4.aliases=[];function M4(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:/[\[\]{}().,:;|]/}}$4.displayName="parser";$4.aliases=[];function $4(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)}F4.displayName="pascal";F4.aliases=["objectpascal"];function F4(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}B4.displayName="pascaligo";B4.aliases=[];function B4(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)}U4.displayName="psl";U4.aliases=[];function U4(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:/[(){}\[\];,]/}}j4.displayName="pcaxis";j4.aliases=["px"];function j4(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}z4.displayName="peoplecode";z4.aliases=["pcode"];function z4(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}V4.displayName="phpdoc";V4.aliases=[];function V4(e){e.register(Qg),e.register(Bp),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)}H4.displayName="php-extras";H4.aliases=[];function H4(e){e.register(Bp),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:/::|\\/}}})}W4.displayName="plant-uml";W4.aliases=["plantuml"];function W4(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(Vg),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"}})}Y4.displayName="powerquery";Y4.aliases=["mscript","pq"];function Y4(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}G4.displayName="powershell";G4.aliases=[];function G4(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)}q4.displayName="processing";q4.aliases=[];function q4(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"}})}Z4.displayName="prolog";Z4.aliases=[];function Z4(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:/[(){}\[\],]/}}X4.displayName="promql";X4.aliases=[];function X4(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)}K4.displayName="properties";K4.aliases=[];function K4(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:/[=:]/}}J4.displayName="protobuf";J4.aliases=[];function J4(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)}e5.displayName="stylus";e5.aliases=[];function e5(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)}t5.displayName="twig";t5.aliases=[];function t5(e){e.register(vo),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")})}n5.displayName="pug";n5.aliases=[];function n5(e){e.register(Oo),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)}r5.displayName="puppet";r5.aliases=[];function r5(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)}i5.displayName="pure";i5.aliases=[];function i5(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)}o5.displayName="purebasic";o5.aliases=["pbfasm"];function o5(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}a5.displayName="purescript";a5.aliases=["purs"];function a5(e){e.register(kO),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}s5.displayName="qsharp";s5.aliases=["qs"];function s5(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}l5.displayName="q";l5.aliases=[];function l5(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:/[(){}\[\];.]/}}u5.displayName="qml";u5.aliases=[];function u5(e){e.register(Oo),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)}c5.displayName="qore";c5.aliases=[];function c5(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/})}d5.displayName="racket";d5.aliases=["rkt"];function d5(e){e.register(xO),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}f5.displayName="cshtml";f5.aliases=["razor"];function f5(e){e.register($p),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)}p5.displayName="tsx";p5.aliases=[];function p5(e){e.register(Cx),e.register(Hg),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)}h5.displayName="reason";h5.aliases=[];function h5(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}m5.displayName="rego";m5.aliases=[];function m5(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:/[,;.\[\]{}()]/}}g5.displayName="renpy";g5.aliases=["rpy"];function g5(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}b5.displayName="rescript";b5.aliases=["res"];function b5(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}y5.displayName="rest";y5.aliases=[];function y5(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}}}O5.displayName="rip";O5.aliases=[];function O5(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`'",.:;#\/\\()<>\[\]{}]*/}}v5.displayName="roboconf";v5.aliases=[];function v5(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:/[{},.;:=]/}}E5.displayName="robotframework";E5.aliases=["robot"];function E5(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)}S5.displayName="sas";S5.aliases=[];function S5(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)}T5.displayName="shell-session";T5.aliases=["sh-session","shellsession"];function T5(e){e.register(OO),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)}w5.displayName="smali";w5.aliases=[];function w5(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:/[{}(),;:]/}}k5.displayName="smalltalk";k5.aliases=[];function k5(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:/[.;:?\[\](){}]/}}x5.displayName="smarty";x5.aliases=[];function x5(e){e.register(vo),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)}C5.displayName="sml";C5.aliases=["smlnj"];function C5(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)}A5.displayName="solidity";A5.aliases=["sol"];function A5(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}_5.displayName="solution-file";_5.aliases=["sln"];function _5(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)}R5.displayName="soy";R5.aliases=[];function R5(e){e.register(vo),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)}Ax.displayName="turtle";Ax.aliases=["trig"];function Ax(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}I5.displayName="sparql";I5.aliases=["rq"];function I5(e){e.register(Ax),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}D5.displayName="splunk-spl";D5.aliases=[];function D5(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:/[()[\],]/}}N5.displayName="sqf";N5.aliases=[];function N5(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"]}P5.displayName="squirrel";P5.aliases=[];function P5(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"}})}L5.displayName="stan";L5.aliases=[];function L5(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)}M5.displayName="stata";M5.aliases=[];function M5(e){e.register(Fp),e.register(xx),e.register(SO),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}$5.displayName="iecst";$5.aliases=[];function $5(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:/[()[\].,;]/}}F5.displayName="supercollider";F5.aliases=["sclang"];function F5(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}B5.displayName="systemd";B5.aliases=[];function B5(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)}CO.displayName="t4-templating";CO.aliases=[];function CO(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)}U5.displayName="t4-cs";U5.aliases=["t4"];function U5(e){e.register($p),e.register(CO),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}j5.displayName="t4-vb";j5.aliases=[];function j5(e){e.register(CO),e.register(wO),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}z5.displayName="tap";z5.aliases=[];function z5(e){e.register(EO),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"}}}V5.displayName="tcl";V5.aliases=[];function V5(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:/[{}()\[\]]/}}H5.displayName="tt2";H5.aliases=[];function H5(e){e.register(jn),e.register(vo),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)}W5.displayName="toml";W5.aliases=[];function W5(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)}Y5.displayName="typoscript";Y5.aliases=["tsconfig"];function Y5(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)}G5.displayName="unrealscript";G5.aliases=["uc","uscript"];function G5(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}q5.displayName="uorazor";q5.aliases=[];function q5(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:/[()\[\]{}:.,]/}}Z5.displayName="v";Z5.aliases=[];function Z5(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)}X5.displayName="vala";X5.aliases=[];function X5(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]+$/}}})}K5.displayName="velocity";K5.aliases=[];function K5(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)}J5.displayName="verilog";J5.aliases=[];function J5(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:/[[\];(),.:]/}}e$.displayName="vhdl";e$.aliases=[];function e$(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:/[{}[\];(),.:]/}}t$.displayName="vim";t$.aliases=[];function t$(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:/[{}[\](),;:]/}}n$.displayName="visual-basic";n$.aliases=["vb","vba"];function n$(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"]}r$.displayName="warpscript";r$.aliases=[];function r$(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/}}i$.displayName="wasm";i$.aliases=[];function i$(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:/[()]/}}o$.displayName="web-idl";o$.aliases=["webidl"];function o$(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)}a$.displayName="wgsl";a$.aliases=[];function a$(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:/[@(){}[\],;<>:.]/}}s$.displayName="wiki";s$.aliases=[];function s$(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}}}})}l$.displayName="wolfram";l$.aliases=["mathematica","nb","wl"];function l$(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}u$.displayName="wren";u$.aliases=[];function u$(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]+/}}}c$.displayName="xeora";c$.aliases=["xeoracube"];function c$(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)}d$.displayName="xml-doc";d$.aliases=[];function d$(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)}f$.displayName="xojo";f$.aliases=[];function f$(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:/[.,;:()]/}}p$.displayName="xquery";p$.aliases=[];function p$(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)}h$.displayName="yang";h$.aliases=[];function h$(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:/[{};:]/}}m$.displayName="zig";m$.aliases=[];function m$(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(uf);te.register(jn);te.register(hx);te.register(Oo);te.register(D3);te.register(N3);te.register(P3);te.register(L3);te.register(M3);te.register($3);te.register(F3);te.register(B3);te.register(Vg);te.register(U3);te.register(j3);te.register(z3);te.register(V3);te.register(zl);te.register(Mp);te.register(cx);te.register(H3);te.register(W3);te.register(OO);te.register(EO);te.register(yx);te.register(Q3);te.register(Y3);te.register($p);te.register(G3);te.register(q3);te.register(Z3);te.register(X3);te.register(K3);te.register(J3);te.register(eL);te.register(tL);te.register(TO);te.register(nL);te.register(rL);te.register(iL);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(Up);te.register(CL);te.register(AL);te.register(_L);te.register(RL);te.register(IL);te.register(DL);te.register(NL);te.register(PL);te.register(LL);te.register(ML);te.register(dx);te.register(vo);te.register($L);te.register(FL);te.register(BL);te.register(UL);te.register(jL);te.register(zL);te.register(VL);te.register(HL);te.register(WL);te.register(QL);te.register(vO);te.register(YL);te.register(GL);te.register(qL);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(fx);te.register(mM);te.register(gM);te.register(bM);te.register(yM);te.register(gx);te.register(wx);te.register(OM);te.register(vM);te.register(EM);te.register(kO);te.register(SM);te.register(TM);te.register(wM);te.register(kM);te.register(xM);te.register(CM);te.register(zg);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(px);te.register(MM);te.register($M);te.register(Fp);te.register(Bp);te.register(Qg);te.register(FM);te.register(BM);te.register(UM);te.register(jM);te.register(zM);te.register(VM);te.register(HM);te.register(Hg);te.register(WM);te.register(QM);te.register(YM);te.register(GM);te.register(qM);te.register(ZM);te.register(XM);te.register(KM);te.register(JM);te.register(mx);te.register(e4);te.register(t4);te.register(n4);te.register(r4);te.register(xO);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(bx);te.register(xx);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(k4);te.register(x4);te.register(C4);te.register(A4);te.register(_4);te.register(R4);te.register(Ox);te.register(I4);te.register(D4);te.register(N4);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(vx);te.register(V4);te.register(H4);te.register(W4);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(SO);te.register(s5);te.register(l5);te.register(u5);te.register(c5);te.register(Ex);te.register(d5);te.register(f5);te.register(Cx);te.register(p5);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(Sx);te.register(S5);te.register(Tx);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(Ax);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(kx);te.register(B5);te.register(CO);te.register(U5);te.register(wO);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(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$);function xI(){xI=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)),KT(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)},xI.apply(this,arguments)}function KT(e,t){return KT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},KT(e,t)}function Cz(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 m9e=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){Ia(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=l2(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(qh(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=l2(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=zUe($);return function(R){return N.includes(R+1)}}return function(){return!1}}(l),O=function(C){var w=xI(/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-"))&&qh(N).substring(0,1)==="-"?N.properties.className.push("deleted"):(d==="diff"||(w=d)!=null&&w.includes("diff-"))&&qh(N).substring(0,1)==="+"&&N.properties.className.push("inserted")},k=l2(y.entries());!(m=k()).done;)S();y.length>0&&qh(y[y.length-1]).trim()===""&&y.pop(),r.children=y}}}},g9e=m9e(te),sS={},CI={};function b9e(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"]}}}),_I=AO(vte,{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"]}}}),RI=AO(_I,{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"]}}}),k9e=AO(RI,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),Nz={css1:Ote,css2:vte,css3:_I,"selectors-3":_I,"selectors-4":RI,latest:RI,progressive:k9e};function B0(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function x9e(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function U0(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var C9e={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},A9e={'"':!0,"'":!0},c2={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},_9e=6,d2="css-selector-parser parse error: ";function R9e(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:Nz[n];a.baseSyntax&&(a=AO(Nz[a.baseSyntax],a));var s=a.tag?[!0,!!S9e(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(d2,"Namespaces cannot be enabled while tags are disabled."));var m=!!r,b=a.combinators?Az(a.combinators):sS,O=a.attributes?[!0,a.attributes.operators?Az(a.attributes.operators):sS,a.attributes.caseSensitivityModifiers?y9e(a.attributes.caseSensitivityModifiers):CI,a.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,sS,CI,!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?Rz(a.pseudoClasses.definitions):pE,a.pseudoClasses.unknown==="accept"]:[!1,pE,!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?Rz(Array.isArray(a.pseudoElements.definitions)?{NoArgument:a.pseudoElements.definitions}:a.pseudoElements.definitions):pE,a.pseudoElements.unknown==="accept"]:[!1,!1,!1,pE,!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("*")||B0(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(d2).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"]}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=2&&ge("Identifiers cannot start with two hyphens with strict mode on."),c2[Z]&&ge("Identifiers cannot start with hyphens followed by digits.");Y=2&&ge("Identifiers cannot start with two hyphens with strict mode on."),p2[Z]&&ge("Identifiers cannot start with hyphens followed by digits.");Y0)return(t.commaSeparated?u3:d3)(e)}else return String(e)}const B9e=[];function U9e(e,t){return(t.properties.className||B9e).includes(e.name)}function j9e(e,t){return t.properties.id===e.name}function z9e(e,t){return e.name===t.tagName}function V9e(e,t){return function(n,r){let i=Lz(n,"tag");const o=Lz(r??"*","range"),a=[];let s=-1;for(;++s=Mz&&e.charCodeAt(t)<=Y9e;)u=u*10+(e.charCodeAt(t)-Mz),t++;return t===l?null:u}function s(){for(;to<=n;if(t===0)return o=>o===n;if(t===1)return n<0?$z.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 Fz(e){return Z9e(G9e(e))}const X9e=Fz.default||Fz,K9e=S3("name",{handlers:{"any-link":J9e,blank:eje,checked:tje,dir:nje,disabled:Tte,empty:rje,enabled:ije,"first-child":oje,"first-of-type":aje,has:sje,is:wte,lang:uje,"last-child":cje,"last-of-type":dje,not:fje,"nth-child":pje,"nth-last-child":hje,"nth-last-of-type":mje,"nth-of-type":gje,"only-child":bje,"only-of-type":yje,optional:Oje,"read-only":vje,"read-write":kte,required:xte,root:Eje,scope:Sje},invalid:lje,unknown:Tje});function J9e(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&Cp(t,"href")}function ju(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function eje(e,t){return!Cte(t,n);function n(r){return r.type==="element"||r.type==="text"&&!OJ(r)}}function tje(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&Cp(t,"checked")):t.tagName==="option"?Cp(t,"selected"):!1}function nje(e,t,n,r,i){return e.argument,e.argument.type,i.direction===e.argument.value}function Tte(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")&&Cp(t,"disabled")}function rje(e,t){return!Cte(t,n);function n(r){return r.type==="element"||r.type==="text"}}function ije(e,t){return!Tte(e,t)}function oje(e,t,n,r,i){return ju(i,e),i.elementIndex===0}function aje(e,t,n,r,i){return ju(i,e),i.typeIndex===0}function _x(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=X9e(n.a+"n+"+n.b),e._cachedFn=t}return t}function sje(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 g$(o,{type:"root",children:t.children}),o.results.length>0}function lje(){}function wte(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 g$(o,t),o.results[0]===t}function uje(e,t,n,r,i){return e.argument,e.argument.type,i.language!==""&&i.language!==void 0&&H9e(i.language,n1(e.argument.value)).length>0}function cje(e,t,n,r,i){return ju(i,e),!!(i.elementCount&&i.elementIndex===i.elementCount-1)}function dje(e,t,n,r,i){return ju(i,e),typeof i.typeIndex=="number"&&typeof i.typeCount=="number"&&i.typeIndex===i.typeCount-1}function fje(e,t,n,r,i){return!wte(e,t,n,r,i)}function pje(e,t,n,r,i){const o=_x(e);return ju(i,e),typeof i.elementIndex=="number"&&o(i.elementIndex)}function hje(e,t,n,r,i){const o=_x(e);return ju(i,e),!!(typeof i.elementCount=="number"&&typeof i.elementIndex=="number"&&o(i.elementCount-i.elementIndex-1))}function mje(e,t,n,r,i){const o=_x(e);return ju(i,e),typeof i.typeCount=="number"&&typeof i.typeIndex=="number"&&o(i.typeCount-1-i.typeIndex)}function gje(e,t,n,r,i){const o=_x(e);return ju(i,e),typeof i.typeIndex=="number"&&o(i.typeIndex)}function bje(e,t,n,r,i){return ju(i,e),i.elementCount===1}function yje(e,t,n,r,i){return ju(i,e),i.typeCount===1}function Oje(e,t){return!xte(e,t)}function vje(e,t,n,r,i){return!kte(e,t,n,r,i)}function kte(e,t,n,r,i){return t.tagName==="input"||t.tagName==="textarea"?!Cp(t,"readOnly")&&!Cp(t,"disabled"):!!i.editableOrEditingHost}function xte(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&Cp(t,"required")}function Eje(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 Sje(e,t,n,r,i){return i.scopeElements.includes(t)}function Cte(e,t){const n=e.children;let r=-1;for(;++r"?"directChild":"descendant";p2(o,u,l)}else e.found=!0,e.results.includes(n)||e.results.push(n)}s.combinator===void 0?p2(o,"descendant",s):s.combinator==="~"&&p2(o,"generalSibling",s)}return o}function lS(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:kje}function Bz(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 Ate(e,t,n,r,i,o){let a={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const s=M9e(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=Cje(e,lS(t,l),n,r,i)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&xje(e,a,n,o),s(),a}function Aje(e,t,n){const r=_je(e,t,n);return g$(r,t||void 0),r.results}function _je(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:D9e(e),schema:n==="svg"?Fu:Pp,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const _te=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=_te(n.children))}),t),Rje=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const i=Aje(t,r);i&&i.length>0&&Ia(r,i,(o,a,s)=>{n(o,a,s)});return}Ia(r,(i,o,a)=>{n(i,o,a)})}}},Ije=Rje,Dje=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),Nje=(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]}},Rte=(e=[],t,n,r)=>{let i=t;for(;i/,"$2")||"")?void 0:r?Rte(e,i,"pre",r)?void 0:(o.value=(o.value||"").replace(/^(\n|\s)+/,""),o):(o.value=(o.value||"").replace(/^(\n|\s)+/,""),o)}},Uz=({value:e=""})=>{const t=Dje(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},jz=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},Pje=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{Ia(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=Nje(a.children,o);if(l){const u=Uz(l);Object.keys(u).length>0&&(i.properties={...i.properties,"data-type":"rehyp"},s.properties=jz(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=Rte(a.children,o,"",n);if(s){const l=Uz(s);Object.keys(l).length>0&&(i.properties=jz(i.properties,l,t))}}})}},Lje=Pje;var Mje=function(t){return n=>{Ia(n,r=>{r.type==="element"&&r.tagName==="code"&&r.data&&r.data.meta&&(r.properties=P({},r.properties,{"data-meta":String(r.data.meta)}))})}},$je=function(t){return n=>{Ia(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 Fje=/[\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,Bje=Object.hasOwnProperty;class Uje{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let i=jje(t,n===!0);const o=i;for(;Bje.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 jje(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(Fje,"").replace(/ /g,"-"))}function Ite(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 zje={},zz=new Uje;function Vje(e){const n=(e||zje).prefix||"";return function(r){zz.reset(),Ia(r,"element",function(i){Ite(i)&&!i.properties.id&&(i.properties.id=n+zz.slug(qh(i)))})}}const Dte=function(e){if(e==null)return Qje;if(typeof e=="string")return Wje(e);if(typeof e=="object")return Hje(e);if(typeof e=="function")return b$(e);throw new Error("Expected function, string, or array as `test`")};function Hje(e){const t=[];let n=-1;for(;++n{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{Ia(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})}})}},Xje=Zje;var Kje={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 Jje(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 eze=(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=P({class:"anchor"},o.properties),o.children=[Kje])}if(n.type==="element"&&n.tagName==="pre"&&!e){var a=_te(n.children);n.children.push(Jje(a))}t&&t(n,r===null?void 0:r,i===null?void 0:i)},tze=[Vje,qje,Xje];const nze=Qt.forwardRef((e,t)=>{var n,r=[Mje,fte,$je,[g9e,{ignoreMissing:!0}],...tze,[Ije,{rewrite:eze((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[Lje,{properties:"attr"}],...e.rehypePlugins||[]];return M.jsx(MUe,P({},e,{rehypePlugins:r,ref:t}))});function Wz(){const e=bP(),t=_c(jk),[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?M.jsx(nze,{source:n,wrapperElement:{"data-color-mode":e}}):M.jsx(Sg,{sx:{marginX:"auto",mt:4}})}var Yg=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(){}},cg=typeof window>"u"||"Deno"in window;function Is(){}function rze(e,t){return typeof e=="function"?e(t):e}function II(e){return typeof e=="number"&&e>=0&&e!==1/0}function Pte(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Qz(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==O$(a,t.options))return!1}else if(!s1(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 Yz(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Ap(t.options.mutationKey)!==Ap(o))return!1}else if(!s1(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function O$(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ap)(e)}function Ap(e){return JSON.stringify(e,(t,n)=>DI(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function s1(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!s1(e[n],t[n])):!1}function Lte(e,t){if(e===t)return e;const n=Gz(e)&&Gz(t);if(n||DI(e)&&DI(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!(!qz(n)||!n.hasOwnProperty("isPrototypeOf"))}function qz(e){return Object.prototype.toString.call(e)==="[object Object]"}function ize(e){return new Promise(t=>{setTimeout(t,e)})}function NI(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Lte(e,t):t}function oze(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function aze(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Gf,od,Sm,$V,sze=($V=class extends Yg{constructor(){super();Xt(this,Gf,void 0);Xt(this,od,void 0);Xt(this,Sm,void 0);Bt(this,Sm,t=>{if(!cg&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){ke(this,od)||this.setEventListener(ke(this,Sm))}onUnsubscribe(){var t;this.hasListeners()||((t=ke(this,od))==null||t.call(this),Bt(this,od,void 0))}setEventListener(t){var n;Bt(this,Sm,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,Gf)!==t&&(Bt(this,Gf,t),this.onFocus())}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){var t;return typeof ke(this,Gf)=="boolean"?ke(this,Gf):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Gf=new WeakMap,od=new WeakMap,Sm=new WeakMap,$V),tw=new sze,Tm,ad,wm,FV,lze=(FV=class extends Yg{constructor(){super();Xt(this,Tm,!0);Xt(this,ad,void 0);Xt(this,wm,void 0);Bt(this,wm,t=>{if(!cg&&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,wm))}onUnsubscribe(){var t;this.hasListeners()||((t=ke(this,ad))==null||t.call(this),Bt(this,ad,void 0))}setEventListener(t){var n;Bt(this,wm,t),(n=ke(this,ad))==null||n.call(this),Bt(this,ad,t(this.setOnline.bind(this)))}setOnline(t){ke(this,Tm)!==t&&(Bt(this,Tm,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return ke(this,Tm)}},Tm=new WeakMap,ad=new WeakMap,wm=new WeakMap,FV),nw=new lze;function uze(e){return Math.min(1e3*2**e,3e4)}function Rx(e){return(e??"online")==="online"?nw.isOnline():!0}var Mte=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function m2(e){return e instanceof Mte}function $te(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 Mte(O)),(y=e.abort)==null||y.call(e))},u=()=>{t=!0},c=()=>{t=!1},d=()=>!tw.isFocused()||e.networkMode!=="always"&&!nw.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??(cg?0:3),S=e.retryDelay??uze,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 Rx(e.networkMode)?b():m().then(b),{promise:s,cancel:l,continue:()=>(i==null?void 0:i())?s:Promise.resolve(),cancelRetry:u,continueRetry:c}}function cze(){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 Ni=cze(),qf,BV,Fte=(BV=class{constructor(){Xt(this,qf,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),II(this.gcTime)&&Bt(this,qf,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(cg?1/0:5*60*1e3))}clearGcTimeout(){ke(this,qf)&&(clearTimeout(ke(this,qf)),Bt(this,qf,void 0))}},qf=new WeakMap,BV),km,xm,Cs,sd,As,Qi,y1,Zf,Cm,uS,fl,Ku,UV,dze=(UV=class extends Fte{constructor(t){super();Xt(this,Cm);Xt(this,fl);Xt(this,km,void 0);Xt(this,xm,void 0);Xt(this,Cs,void 0);Xt(this,sd,void 0);Xt(this,As,void 0);Xt(this,Qi,void 0);Xt(this,y1,void 0);Xt(this,Zf,void 0);Bt(this,Zf,!1),Bt(this,y1,t.defaultOptions),Tn(this,Cm,uS).call(this,t.options),Bt(this,Qi,[]),Bt(this,Cs,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Bt(this,km,t.state||fze(this.options)),this.state=ke(this,km),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=NI(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,km))}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||!Pte(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,Zf)?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,Cm,uS).call(this,t),!this.options.queryFn){const h=ke(this,Qi).find(m=>m.options.queryFn);h&&Tn(this,Cm,uS).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,Zf,!0),r.signal)})};o(i);const a=()=>this.options.queryFn?(Bt(this,Zf,!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,xm,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;m2(h)&&h.silent||Tn(this,fl,Ku).call(this,{type:"error",error:h}),m2(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,$te({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)}},km=new WeakMap,xm=new WeakMap,Cs=new WeakMap,sd=new WeakMap,As=new WeakMap,Qi=new WeakMap,y1=new WeakMap,Zf=new WeakMap,Cm=new WeakSet,uS=function(t){this.options={...ke(this,y1),...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:Rx(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 m2(i)&&i.revert&&ke(this,xm)?{...ke(this,xm),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),Ni.batch(()=>{ke(this,Qi).forEach(r=>{r.onQueryUpdate()}),ke(this,Cs).notify({query:this,type:"updated",action:t})})},UV);function fze(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,jV,Bte=(jV=class extends Yg{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??O$(i,n);let a=this.get(o);return a||(a=new dze({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(){Ni.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=>Qz(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Qz(t,r)):n}notify(t){Ni.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ni.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ni.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ou=new WeakMap,jV),au,O1,Ga,Am,su,Gc,zV,pze=(zV=class extends Fte{constructor(t){super();Xt(this,su);Xt(this,au,void 0);Xt(this,O1,void 0);Xt(this,Ga,void 0);Xt(this,Am,void 0);this.mutationId=t.mutationId,Bt(this,O1,t.defaultOptions),Bt(this,Ga,t.mutationCache),Bt(this,au,[]),this.state=t.state||Ute(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...ke(this,O1),...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,Am))==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,Am,$te({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,Am).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,O1=new WeakMap,Ga=new WeakMap,Am=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:!Rx(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),Ni.batch(()=>{ke(this,au).forEach(r=>{r.onMutationUpdate(t)}),ke(this,Ga).notify({mutation:this,type:"updated",action:t})})},zV);function Ute(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var _s,v1,Xf,VV,hze=(VV=class extends Yg{constructor(t={}){super();Xt(this,_s,void 0);Xt(this,v1,void 0);Xt(this,Xf,void 0);this.config=t,Bt(this,_s,[]),Bt(this,v1,0)}build(t,n,r){const i=new pze({mutationCache:this,mutationId:++XO(this,v1)._,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(){Ni.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=>Yz(n,r))}findAll(t={}){return ke(this,_s).filter(n=>Yz(t,n))}notify(t){Ni.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){return Bt(this,Xf,(ke(this,Xf)??Promise.resolve()).then(()=>{const t=ke(this,_s).filter(n=>n.state.isPaused);return Ni.batch(()=>t.reduce((n,r)=>n.then(()=>r.continue().catch(Is)),Promise.resolve()))}).then(()=>{Bt(this,Xf,void 0)})),ke(this,Xf)}},_s=new WeakMap,v1=new WeakMap,Xf=new WeakMap,VV);function PI(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?aze:oze;return{pages:N(S.pages,E,$),pageParams:N(S.pageParams,k,$)}};let h;if(o&&a.length){const S=o==="backward",k=S?jte:LI,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 LI(e,{pages:t,pageParams:n}){const r=t.length-1;return e.getNextPageParam(t[r],t,n[r],n)}function jte(e,{pages:t,pageParams:n}){var r;return(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n)}function mze(e,t){return t?LI(e,t)!=null:!1}function gze(e,t){return!t||!e.getPreviousPageParam?!1:jte(e,t)!=null}var _i,ld,ud,_m,Rm,cd,Im,Dm,HV,bze=(HV=class{constructor(e={}){Xt(this,_i,void 0);Xt(this,ld,void 0);Xt(this,ud,void 0);Xt(this,_m,void 0);Xt(this,Rm,void 0);Xt(this,cd,void 0);Xt(this,Im,void 0);Xt(this,Dm,void 0);Bt(this,_i,e.queryCache||new Bte),Bt(this,ld,e.mutationCache||new hze),Bt(this,ud,e.defaultOptions||{}),Bt(this,_m,new Map),Bt(this,Rm,new Map),Bt(this,cd,0)}mount(){XO(this,cd)._++,ke(this,cd)===1&&(Bt(this,Im,tw.subscribe(()=>{tw.isFocused()&&(this.resumePausedMutations(),ke(this,_i).onFocus())})),Bt(this,Dm,nw.subscribe(()=>{nw.isOnline()&&(this.resumePausedMutations(),ke(this,_i).onOnline())})))}unmount(){var e,t;XO(this,cd)._--,ke(this,cd)===0&&((e=ke(this,Im))==null||e.call(this),Bt(this,Im,void 0),(t=ke(this,Dm))==null||t.call(this),Bt(this,Dm,void 0))}isFetching(e){return ke(this,_i).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return ke(this,ld).findAll({...e,status:"pending"}).length}getQueryData(e){var t;return(t=ke(this,_i).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,_i).find({queryKey:e}),i=r==null?void 0:r.state.data,o=rze(t,i);if(typeof o>"u")return;const a=this.defaultQueryOptions({queryKey:e});return ke(this,_i).build(this,a).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Ni.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var t;return(t=ke(this,_i).find({queryKey:e}))==null?void 0:t.state}removeQueries(e){const t=ke(this,_i);Ni.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=ke(this,_i),r={type:"active",...e};return Ni.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Ni.batch(()=>ke(this,_i).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Is).catch(Is)}invalidateQueries(e={},t={}){return Ni.batch(()=>{if(ke(this,_i).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=Ni.batch(()=>ke(this,_i).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,_i).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=PI(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,_i)}getMutationCache(){return ke(this,ld)}getDefaultOptions(){return ke(this,ud)}setDefaultOptions(e){Bt(this,ud,e)}setQueryDefaults(e,t){ke(this,_m).set(Ap(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...ke(this,_m).values()];let n={};return t.forEach(r=>{s1(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){ke(this,Rm).set(Ap(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...ke(this,Rm).values()];let n={};return t.forEach(r=>{s1(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=O$(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,_i).clear(),ke(this,ld).clear()}},_i=new WeakMap,ld=new WeakMap,ud=new WeakMap,_m=new WeakMap,Rm=new WeakMap,cd=new WeakMap,Im=new WeakMap,Dm=new WeakMap,HV),ba,Rr,E1,Xo,Kf,Nm,lu,S1,Pm,Lm,Jf,ep,dd,Mm,tp,lb,T1,MI,w1,$I,k1,FI,x1,BI,C1,UI,A1,jI,_1,zI,mw,Vte,WV,zte=(WV=class extends Yg{constructor(t,n){super();Xt(this,tp);Xt(this,T1);Xt(this,w1);Xt(this,k1);Xt(this,x1);Xt(this,C1);Xt(this,A1);Xt(this,_1);Xt(this,mw);Xt(this,ba,void 0);Xt(this,Rr,void 0);Xt(this,E1,void 0);Xt(this,Xo,void 0);Xt(this,Kf,void 0);Xt(this,Nm,void 0);Xt(this,lu,void 0);Xt(this,S1,void 0);Xt(this,Pm,void 0);Xt(this,Lm,void 0);Xt(this,Jf,void 0);Xt(this,ep,void 0);Xt(this,dd,void 0);Xt(this,Mm,new Set);this.options=n,Bt(this,ba,t),Bt(this,lu,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(ke(this,Rr).addObserver(this),Zz(ke(this,Rr),this.options)?Tn(this,tp,lb).call(this):this.updateResult(),Tn(this,x1,BI).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return VI(ke(this,Rr),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return VI(ke(this,Rr),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Tn(this,C1,UI).call(this),Tn(this,A1,jI).call(this),ke(this,Rr).removeObserver(this)}setOptions(t,n){const r=this.options,i=ke(this,Rr);if(this.options=ke(this,ba).defaultQueryOptions(t),ew(r,this.options)||ke(this,ba).getQueryCache().notify({type:"observerOptionsUpdated",query:ke(this,Rr),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,_1,zI).call(this);const o=this.hasListeners();o&&Xz(ke(this,Rr),i,this.options,r)&&Tn(this,tp,lb).call(this),this.updateResult(n),o&&(ke(this,Rr)!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&Tn(this,T1,MI).call(this);const a=Tn(this,w1,$I).call(this);o&&(ke(this,Rr)!==i||this.options.enabled!==r.enabled||a!==ke(this,dd))&&Tn(this,k1,FI).call(this,a)}getOptimisticResult(t){const n=ke(this,ba).getQueryCache().build(ke(this,ba),t),r=this.createResult(n,t);return Oze(this,r)&&(Bt(this,Xo,r),Bt(this,Nm,this.options),Bt(this,Kf,ke(this,Rr).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,Mm).add(r),t[r])})}),n}getCurrentQuery(){return ke(this,Rr)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=ke(this,ba).defaultQueryOptions(t),r=ke(this,ba).getQueryCache().build(ke(this,ba),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Tn(this,tp,lb).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),ke(this,Xo)))}createResult(t,n){var w;const r=ke(this,Rr),i=this.options,o=ke(this,Xo),a=ke(this,Kf),s=ke(this,Nm),u=t!==r?t.state:ke(this,E1),{state:c}=t;let{error:d,errorUpdatedAt:p,fetchStatus:h,status:m}=c,b=!1,O;if(n._optimisticResults){const E=this.hasListeners(),$=!E&&Zz(t,n),N=E&&Xz(t,r,n,i);($||N)&&(h=Rx(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,S1))O=ke(this,Pm);else try{Bt(this,S1,n.select),O=n.select(c.data),O=NI(o==null?void 0:o.data,O,n),Bt(this,Pm,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,Lm))==null?void 0:w.state.data,ke(this,Lm)):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=NI(o==null?void 0:o.data,E,n),b=!0)}ke(this,lu)&&(d=ke(this,lu),O=ke(this,Pm),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:v$(t,n),refetch:this.refetch}}updateResult(t){const n=ke(this,Xo),r=this.createResult(ke(this,Rr),this.options);if(Bt(this,Kf,ke(this,Rr).state),Bt(this,Nm,this.options),ke(this,Kf).data!==void 0&&Bt(this,Lm,ke(this,Rr)),ew(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,Mm).size)return!0;const l=new Set(s??ke(this,Mm));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,mw,Vte).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Tn(this,x1,BI).call(this)}},ba=new WeakMap,Rr=new WeakMap,E1=new WeakMap,Xo=new WeakMap,Kf=new WeakMap,Nm=new WeakMap,lu=new WeakMap,S1=new WeakMap,Pm=new WeakMap,Lm=new WeakMap,Jf=new WeakMap,ep=new WeakMap,dd=new WeakMap,Mm=new WeakMap,tp=new WeakSet,lb=function(t){Tn(this,_1,zI).call(this);let n=ke(this,Rr).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Is)),n},T1=new WeakSet,MI=function(){if(Tn(this,C1,UI).call(this),cg||ke(this,Xo).isStale||!II(this.options.staleTime))return;const n=Pte(ke(this,Xo).dataUpdatedAt,this.options.staleTime)+1;Bt(this,Jf,setTimeout(()=>{ke(this,Xo).isStale||this.updateResult()},n))},w1=new WeakSet,$I=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(ke(this,Rr)):this.options.refetchInterval)??!1},k1=new WeakSet,FI=function(t){Tn(this,A1,jI).call(this),Bt(this,dd,t),!(cg||this.options.enabled===!1||!II(ke(this,dd))||ke(this,dd)===0)&&Bt(this,ep,setInterval(()=>{(this.options.refetchIntervalInBackground||tw.isFocused())&&Tn(this,tp,lb).call(this)},ke(this,dd)))},x1=new WeakSet,BI=function(){Tn(this,T1,MI).call(this),Tn(this,k1,FI).call(this,Tn(this,w1,$I).call(this))},C1=new WeakSet,UI=function(){ke(this,Jf)&&(clearTimeout(ke(this,Jf)),Bt(this,Jf,void 0))},A1=new WeakSet,jI=function(){ke(this,ep)&&(clearInterval(ke(this,ep)),Bt(this,ep,void 0))},_1=new WeakSet,zI=function(){const t=ke(this,ba).getQueryCache().build(ke(this,ba),this.options);if(t===ke(this,Rr))return;const n=ke(this,Rr);Bt(this,Rr,t),Bt(this,E1,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},mw=new WeakSet,Vte=function(t){Ni.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(ke(this,Xo))}),ke(this,ba).getQueryCache().notify({query:ke(this,Rr),type:"observerResultsUpdated"})})},WV);function yze(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Zz(e,t){return yze(e,t)||e.state.dataUpdatedAt>0&&VI(e,t,t.refetchOnMount)}function VI(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&v$(e,t)}return!1}function Xz(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&v$(e,n)}function v$(e,t){return e.isStaleByTime(t.staleTime)}function Oze(e,t){return!ew(e.getCurrentResult(),t)}var vze=class extends zte{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:PI()},t)}getOptimisticResult(e){return e.behavior=PI(),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:mze(t,n.data),hasPreviousPage:gze(t,n.data),isFetchingNextPage:a,isFetchingPreviousPage:s,isRefetching:o&&!a&&!s}}},fd,rc,qa,ic,$m,cS,R1,HI,QV,Eze=(QV=class extends Yg{constructor(n,r){super();Xt(this,$m);Xt(this,R1);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,$m,cS).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),ew(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&&Ap(r.mutationKey)!==Ap(this.options.mutationKey)&&this.reset()}onUnsubscribe(){var n;this.hasListeners()||(n=ke(this,qa))==null||n.removeObserver(this)}onMutationUpdate(n){Tn(this,$m,cS).call(this),Tn(this,R1,HI).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,$m,cS).call(this),Tn(this,R1,HI).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,$m=new WeakSet,cS=function(){var r;const n=((r=ke(this,qa))==null?void 0:r.state)??Ute();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})},R1=new WeakSet,HI=function(n){Ni.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))})})},QV),Hte=I.createContext(void 0),E$=e=>{const t=I.useContext(Hte);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Sze=({client:e,children:t})=>(I.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),I.createElement(Hte.Provider,{value:e},t)),Wte=I.createContext(!1),Tze=()=>I.useContext(Wte);Wte.Provider;function wze(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var kze=I.createContext(wze()),xze=()=>I.useContext(kze);function Qte(e,t){return typeof e=="function"?e(...t):!!e}var Cze=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},Aze=e=>{I.useEffect(()=>{e.clearReset()},[e])},_ze=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&Qte(n,[e.error,r]),Rze=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},Ize=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Dze=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Yte(e,t,n){const r=E$(n),i=Tze(),o=xze(),a=r.defaultQueryOptions(e);a._optimisticResults=i?"isRestoring":"optimistic",Rze(a),Cze(a,o),Aze(o);const[s]=I.useState(()=>new t(r,a)),l=s.getOptimisticResult(a);if(I.useSyncExternalStore(I.useCallback(u=>{const c=i?()=>{}:s.subscribe(Ni.batchCalls(u));return s.updateResult(),c},[s,i]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),I.useEffect(()=>{s.setOptions(a,{listeners:!1})},[a,s]),Ize(a,l))throw Dze(a,s,o);if(_ze({result:l,errorResetBoundary:o,throwOnError:a.throwOnError,query:r.getQueryCache().get(a.queryHash)}))throw l.error;return a.notifyOnChangeProps?l:s.trackResult(l)}function S$(e,t){return Yte(e,zte,t)}function Gte(e,t){const n=E$(t),[r]=I.useState(()=>new Eze(n,e));I.useEffect(()=>{r.setOptions(e)},[r,e]);const i=I.useSyncExternalStore(I.useCallback(a=>r.subscribe(Ni.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=I.useCallback((a,s)=>{r.mutate(a,s).catch(Nze)},[r]);if(i.error&&Qte(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}function Nze(){}function T$(e,t){return Yte(e,vze,t)}const Pze=e=>["documents",e],Lze=e=>S$({queryKey:Pze(e||""),enabled:!!e,queryFn:async()=>(await cr.get(`/documents/${e}`)).data,meta:{errorMessage:"This is a non-existent or unauthorized Workspace."}});function Mze(){const e=K1(),t=kg(),n=GLe(),r=_c(jk),{data:i}=Lze(e.documentSlug||"");return I.useEffect(()=>{let o,a;return i!=null&&i.yorkieDocumentId?((async()=>{o=new rI.Client("https://api.yorkie.dev",{apiKey:"cmggkp8ksk14av0keupg"}),await o.activate(),a=new rI.Document(i==null?void 0:i.yorkieDocumentId),await o.attach(a,{initialPresence:{name:"Yorkie",color:MLe(fLe()).fade(.15).toString(),selection:null}}),t(R7(a)),t(I7(o))})(),()=>{(async()=>{await(o==null?void 0:o.deactivate()),t(R7(null)),t(I7(null))})()}):void 0},[t,i==null?void 0:i.yorkieDocumentId]),M.jsxs(Aa,{height:"calc(100% - 64px)",children:[M.jsx("div",{className:"wmde-markdown-var"}),r.mode==="both"&&M.jsx(jLe,{axis:"x",initial:n/2,min:400,children:({position:o,separatorProps:a})=>M.jsxs("div",{id:"wrapper",style:{display:"flex",height:"100%",overflow:"hidden"},children:[M.jsx("div",{id:"left-block",style:{width:o},children:M.jsx(uj,{})}),M.jsx(Da,{id:"splitter",...a,sx:{height:"100%",width:8,borderRadius:0,cursor:"col-resize",zIndex:100}}),M.jsx("div",{className:"right-block",style:{width:`calc(100% - ${o}px)`,overflow:"auto"},children:M.jsx(Aa,{sx:{p:4},height:"100%",children:M.jsx(Wz,{})})})]})}),r.mode==="read"&&M.jsx(Aa,{sx:{p:4,overflow:"auto"},height:"100%",children:M.jsx(Wz,{})}),r.mode==="edit"&&M.jsx(uj,{})]})}function $ze(){return M.jsx(Li,{sx:{flexGrow:1},gap:3,children:M.jsx(XN,{})})}function Fze(e){return M.jsx(jd,{...e,children:M.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:[M.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"}),M.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"}),M.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 Bze=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,sa=En.hovered,Hp=$(N.button,{activeStyle:Wn?ht:mn,customStyle:ht,active:sa||An,size:Qn});return o.a.createElement("button",O({type:"button",style:Hp,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=`${Uze.VITE_API_ADDR}/auth/login/${t}`};return M.jsx(k0e,{children:M.jsx(Li,{alignItems:"center",justifyContent:"center",sx:{height:"100vh"},children:M.jsx(Da,{sx:{p:5,width:"small",boxShadow:2,maxWidth:"80%"},children:M.jsxs(Li,{gap:4,children:[M.jsxs(Aa,{children:[M.jsxs(Li,{direction:"row",gap:1,children:[M.jsx(Fze,{}),M.jsx(Lr,{variant:"h6",children:"Login"})]}),M.jsx(Lr,{variant:"body2",color:"text.secondary",maxWidth:320,children:"Real-time markdown editor for interviews, meetings and more..."})]}),M.jsxs(Li,{gap:2,children:[M.jsxs(zh,{container:!0,spacing:1,alignItems:"center",children:[M.jsx(zh,{item:!0,xs:!0,children:M.jsx(lc,{sx:{width:1}})}),M.jsx(zh,{item:!0,xs:"auto",children:M.jsx(Lr,{variant:"body2",color:"text.secondary",children:"Login with"})}),M.jsx(zh,{item:!0,xs:!0,children:M.jsx(lc,{sx:{width:1}})})]}),jze.map(({SocailLoginComponent:t,provider:n})=>M.jsx(t,{size:"48px",onClick:()=>e(n)},n))]})]})})})})}const Vze={accessToken:null},qte=Pk({name:"auth",initialState:Vze,reducers:{setAccessToken:(e,t)=>{e.accessToken=t.payload}}}),{setAccessToken:w$}=qte.actions,Hze=e=>e.auth,Wze=qte.reducer;function Qze(){const e=kg(),t=Cg(),[n]=ATe();return I.useEffect(()=>{const r=n.get("token");if(!r){t("/");return}e(w$(r))},[e,t,n]),M.jsx(Aa,{})}function Yze(){return M.jsx(XN,{})}const k$=Qt.createContext({isLoading:!0,isLoggedIn:!1}),Gze={data:null},Zte=Pk({name:"user",initialState:Gze,reducers:{setUserData:(e,t)=>{e.data=t.payload}}}),{setUserData:WI}=Zte.actions,Xte=e=>e.user,qze=Zte.reducer,Zze=e=>{var o;const{children:t}=e,{isLoggedIn:n}=I.useContext(k$),r=xg(),i=_c(Xte);return n?M.jsx(aG,{to:`/workspace/${(o=i.data)==null?void 0:o.lastWorkspaceSlug}`,state:{from:r},replace:!0}):t},Xze=e=>{const{children:t}=e,{isLoggedIn:n,isLoading:r}=I.useContext(k$),i=xg();return r?M.jsx($N,{open:!0,children:M.jsx(Sg,{color:"inherit"})}):n?t:M.jsx(aG,{to:"/",state:{from:i},replace:!0})};var x$={},Kze=Fo;Object.defineProperty(x$,"__esModule",{value:!0});var Kte=x$.default=void 0,Jze=Kze(Bo()),eVe=M;Kte=x$.default=(0,Jze.default)((0,eVe.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 C$={},tVe=Fo;Object.defineProperty(C$,"__esModule",{value:!0});var Jte=C$.default=void 0,nVe=tVe(Bo()),rVe=M;Jte=C$.default=(0,nVe.default)((0,rVe.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 iVe(e){const t=kg(),n=()=>{t(w$(null)),t(WI(null))};return M.jsx(zN,{anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"},...e,children:M.jsx(Q1,{children:M.jsxs(bp,{onClick:n,children:[M.jsx(jN,{children:M.jsx(Jte,{fontSize:"small"})}),M.jsx(ap,{children:"Logout"})]})})})}const oVe=e=>["workspaces",e],aVe=()=>["workspaces"],A$=e=>S$({queryKey:oVe(e||""),enabled:!!e,queryFn:async()=>(await cr.get(`/workspaces/${e}`)).data,meta:{errorMessage:"This is a non-existent or unauthorized Workspace."}}),sVe=()=>T$({queryKey:aVe(),queryFn:async({pageParam:t})=>(await cr.get("/workspaces",{params:{cursor:t}})).data,initialPageParam:void 0,getPreviousPageParam:t=>t.cursor??void 0,getNextPageParam:t=>t.cursor??void 0}),lVe=()=>Gte({mutationFn:async e=>(await cr.post("/workspaces",e)).data});var _$={},uVe=Fo;Object.defineProperty(_$,"__esModule",{value:!0});var ene=_$.default=void 0,cVe=uVe(Bo()),dVe=M;ene=_$.default=(0,cVe.default)((0,dVe.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");var R$={},fVe=Fo;Object.defineProperty(R$,"__esModule",{value:!0});var tne=R$.default=void 0,pVe=fVe(Bo()),hVe=M;tne=R$.default=(0,pVe.default)((0,hVe.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");class l1 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(l1,"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(l1,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});var I$={},mVe=Fo;Object.defineProperty(I$,"__esModule",{value:!0});var nne=I$.default=void 0,gVe=mVe(Bo()),bVe=M;nne=I$.default=(0,gVe.default)((0,bVe.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var _O=e=>e.type==="checkbox",Zh=e=>e instanceof Date,ea=e=>e==null;const rne=e=>typeof e=="object";var Fi=e=>!ea(e)&&!Array.isArray(e)&&rne(e)&&!Zh(e),ine=e=>Fi(e)&&e.target?_O(e.target)?e.target.checked:e.target.value:e,yVe=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,one=(e,t)=>e.has(yVe(t)),OVe=e=>{const t=e.constructor&&e.constructor.prototype;return Fi(t)&&t.hasOwnProperty("isPrototypeOf")},D$=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function ma(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(!(D$&&(e instanceof Blob||e instanceof FileList))&&(n||Fi(e)))if(t=n?[]:{},!n&&!OVe(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=ma(e[r]));else return e;return t}var RO=e=>Array.isArray(e)?e.filter(Boolean):[],li=e=>e===void 0,Ut=(e,t,n)=>{if(!t||!Fi(e))return n;const r=RO(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 rw={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"},ane=Qt.createContext(null),N$=()=>Qt.useContext(ane),sne=e=>{const{children:t,...n}=e;return Qt.createElement(ane.Provider,{value:n},t)};var lne=(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,une=(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))},dS=e=>Array.isArray(e)?e:[e],cne=(e,t,n)=>!e||!t||e===t||dS(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function P$(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 vVe(e){const t=N$(),{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,P$({disabled:r,next:d=>l.current&&cne(c.current,d.name,o)&&une(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]),lne(a,n,u.current,!1)}var Eu=e=>typeof e=="string",dne=(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 fne(e){const t=N$(),{control:n=t.control,name:r,defaultValue:i,disabled:o,exact:a}=e||{},s=Qt.useRef(r);s.current=r,P$({disabled:o,subject:n._subjects.values,next:c=>{cne(s.current,c.name,a)&&u(ma(dne(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 L$=e=>/^\w*$/.test(e),pne=e=>RO(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Er=(e,t,n)=>{let r=-1;const i=L$(t)?[t]:pne(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=ma(Ut(i._options.defaultValues,n));Er(i._defaultValues,n,p),li(Ut(i._formValues,n))&&Er(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:ine(c),name:n},type:rw.CHANGE}),[n]),onBlur:Qt.useCallback(()=>u.current.onBlur({target:{value:Ut(i._formValues,n),name:n},type:rw.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 EVe=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},Kz=e=>({isOnSubmit:!e||e===Tl.onSubmit,isOnBlur:e===Tl.onBlur,isOnChange:e===Tl.onChange,isOnAll:e===Tl.all,isOnTouch:e===Tl.onTouched}),Jz=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Gb=(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;Gb(s,t)}else Fi(s)&&Gb(s,t)}}};var SVe=(e,t,n)=>{const r=RO(Ut(e,n));return Er(r,"root",t[n]),Er(e,n,r),e},M$=e=>e.type==="file",Od=e=>typeof e=="function",iw=e=>{if(!D$)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},fS=e=>Eu(e),$$=e=>e.type==="radio",ow=e=>e instanceof RegExp;const eV={value:!1,isValid:!1},tV={value:!0,isValid:!0};var hne=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===""?tV:{value:e[0].value,isValid:!0}:tV:eV}return eV};const nV={isValid:!1,value:null};var mne=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,nV):nV;function rV(e,t,n="validate"){if(fS(e)||Array.isArray(e)&&e.every(fS)||vl(e)&&!e)return{type:n,message:fS(e)?e:"",ref:t}}var hh=e=>Fi(e)&&!ow(e)?e:{value:e,message:""},iV=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=$$(o),E=_O(o),$=w||E,N=(b||M$(o))&&li(o.value)&&li(v)||iw(o)&&o.value===""||v===""||Array.isArray(v)&&!v.length,R=EVe.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&&!hne(a).isValid||w&&!mne(a).isValid)){const{value:U,message:V}=fS(s)?{value:!!s,message:s}:hh(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=hh(d),W=hh(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}=hh(p);if(ow(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(Od(h)){const U=await h(v,t),V=rV(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=rV(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 TVe(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=[]}}},aw=e=>ea(e)||!rne(e);function Wf(e,t){if(aw(e)||aw(t))return e===t;if(Zh(e)&&Zh(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(Zh(o)&&Zh(a)||Fi(o)&&Fi(a)||Array.isArray(o)&&Array.isArray(a)?!Wf(o,a):o!==a)return!1}}return!0}var gne=e=>e.type==="select-multiple",kVe=e=>$$(e)||_O(e),b2=e=>iw(e)&&e.isConnected,bne=e=>{for(const t in e)if(Od(e[t]))return!0;return!1};function sw(e,t={}){const n=Array.isArray(e);if(Fi(e)||n)for(const r in e)Array.isArray(e[r])||Fi(e[r])&&!bne(e[r])?(t[r]=Array.isArray(e[r])?[]:{},sw(e[r],t[r])):ea(e[r])||(t[r]=!0);return t}function yne(e,t,n){const r=Array.isArray(e);if(Fi(e)||r)for(const i in e)Array.isArray(e[i])||Fi(e[i])&&!bne(e[i])?li(t)||aw(n[i])?n[i]=Array.isArray(e[i])?sw(e[i],[]):{...sw(e[i])}:yne(e[i],ea(t)?{}:t[i],n[i]):n[i]=!Wf(e[i],t[i]);return n}var y2=(e,t)=>yne(e,t,sw(t)),One=(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 O2(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return M$(t)?t.files:$$(t)?mne(e.refs).value:gne(t)?[...t.selectedOptions].map(({value:n})=>n):_O(t)?hne(e.refs).value:One(li(t.value)?e.ref.value:t.value,e)}var xVe=(e,t,n,r)=>{const i={};for(const o of e){const a=Ut(t,o);a&&Er(i,o,a._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},j0=e=>li(e)?e:ow(e)?e.source:Fi(e)?ow(e.value)?e.value.source:e.value:e,CVe=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function oV(e,t,n){const r=Ut(e,n);if(r||L$(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 AVe=(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,_Ve=(e,t)=>!RO(Ut(e,t)).length&&ao(e,t);const RVe={mode:Tl.onSubmit,reValidateMode:Tl.onChange,shouldFocusError:!0};function IVe(e={},t){let n={...RVe,...e},r={submitCount:0,isDirty:!1,isLoading:Od(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)?ma(n.defaultValues||n.values)||{}:{},a=n.shouldUnregister?{}:ma(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:g2(),array:g2(),state:g2()},h=Kz(n.mode),m=Kz(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&&Er(i,re,ie)}if(De&&Array.isArray(Ut(r.errors,re))){const ie=J(Ut(r.errors,re),Re.argA,Re.argB);Le&&Er(r.errors,re,ie),_Ve(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&&Er(r.touchedFields,re,ie)}d.dirtyFields&&(r.dirtyFields=y2(o,a)),p.state.next({name:re,isDirty:V(re,ee),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Er(a,re,ee)},k=(re,ee)=>{Er(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?Er(a,re,ee?De:O2(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||Wf(Ut(o,re),ee);ie=!!(!de&&Ut(r.dirtyFields,re)),Oe||de?ao(r.dirtyFields,re):Er(r.dirtyFields,re,!0),fe.dirtyFields=r.dirtyFields,De=De||d.dirtyFields&&ie!==!Oe}if(J){const Oe=Ut(r.touchedFields,re);Oe||(Er(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?Er(r.errors,re,J):ao(r.errors,re)),(J?!Wf(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,xVe(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?Er(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 iV(Le,a,b,n.shouldUseNativeValidation&&!ee,fe);if(de[De.name]&&(J.valid=!1,ee))break;!ee&&(Ut(de,De.name)?fe?SVe(r.errors,de,De.name):Er(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=>!b2(J)):!b2(ee._f.ref))&&xe(re)}l.unMount=new Set},V=(re,ee)=>(re&&ee&&Er(a,re,ee),!Wf(ve(),o)),z=(re,ee,J)=>dne(re,l,{...s.mount?a:li(ee)?o:Eu(re)?{[re]:ee}:ee},J,ee),W=re=>RO(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&&Er(a,re,One(ee,De)),Le=iw(De.ref)&&ea(ee)?"":ee,gne(De.ref)?[...De.ref.options].forEach(ie=>ie.selected=Le.includes(ie.value)):De.refs?_O(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):M$(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)||!aw(Le)||ie&&!ie._f)&&!Zh(Le)?q(De,Le,J):X(De,Le,J)}},Y=(re,ee,J={})=>{const Re=Ut(i,re),Le=l.array.has(re),De=ma(ee);Er(a,re,De),Le?(p.array.next({name:re,values:{...a}}),(d.isDirty||d.dirtyFields)&&J.shouldDirty&&p.state.next({name:re,dirtyFields:y2(o,a),isDirty:V(re,De)})):Re&&!Re._f&&!ea(De)?q(re,De,J):X(re,De,J),Jz(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?O2(Le._f):ine(re),ie=fe=>{Re=Number.isNaN(fe)||fe===Ut(a,J,fe)};if(Le){let fe,de;const Oe=De(),Te=re.type===rw.BLUR||re.type===rw.FOCUS_OUT,rt=!CVe(Le._f)&&!n.resolver&&!Ut(r.errors,J)&&!Le._f.deps||AVe(Te,Ut(r.touchedFields,J),r.isSubmitted,m,h),pt=Jz(J,l,Te);Er(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=oV(r.errors,i,J),it=oV(vt,i,qe.name||J);fe=it.error,J=it.name,de=Ds(vt)}}else fe=(await iV(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=dS(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&&Gb(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&&dS(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;Er(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)=>Od(re)?p.values.subscribe({next:J=>re(z(void 0,ee),J)}):z(re,ee,!0),xe=(re,ee={})=>{for(const J of re?dS(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)?O2(J?J._f:Ut(Re,ee)._f):Le;Er(a,ee,De),E(ee,De,!1,!1,!0)}},Ve=(re,ee={})=>{let J=Ut(i,re);const Re=vl(ee.disabled);return Er(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:j0(ee.min),max:j0(ee.max),minLength:j0(ee.minLength),maxLength:j0(ee.maxLength),pattern:j0(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=kVe(De),fe=J._f.refs||[];if(ie?fe.find(de=>de===De):De===J._f.ref)return;Er(i,re,{_f:{...J._f,...ie?{refs:[...fe.filter(b2),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)&&!(one(l.array,re)&&s.action)&&l.unMount.add(re)}}},Ke=()=>n.shouldFocusError&&Gb(i,j,l.mount),Me=re=>{vl(re)&&(p.state.next({disabled:re}),Gb(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=ma(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,ma(Ut(o,re))):(Y(re,ee.defaultValue),Er(o,re,ma(ee.defaultValue))),ee.keepTouched||ao(r.touchedFields,re),ee.keepDirty||(ao(r.dirtyFields,re),r.isDirty=ee.defaultValue?V(re,ma(Ut(o,re))):V()),ee.keepError||(ao(r.errors,re),d.isValid&&y()),p.state.next({...r}))},ze=(re,ee={})=>{const J=re?ma(re):o,Re=ma(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)?Er(Le,De,Ut(a,De)):Y(De,Ut(Le,De));else{if(D$&&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(iw(fe)){const de=fe.closest("form");if(de){de.reset();break}}}}i={}}a=e.shouldUnregister?ee.keepDefaultValues?ma(o):{}:ma(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&&!Wf(re,o)),isSubmitted:ee.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:ee.keepDirtyValues?r.dirtyFields:ee.keepDefaultValues&&re?y2(o,re):{},touchedFields:ee.keepTouched?r.touchedFields:{},errors:ee.keepErrors?r.errors:{},isSubmitSuccessful:ee.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},$e=(re,ee)=>ze(Od(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:()=>Od(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 DVe(e={}){const t=Qt.useRef(),n=Qt.useRef(),[r,i]=Qt.useState({isDirty:!1,isValidating:!1,isLoading:Od(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Od(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...IVe(e,()=>i(a=>({...a}))),formState:r});const o=t.current.control;return o._options=e,P$({subject:o._subjects.state,next:a=>{une(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&&!Wf(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=lne(r,o),t.current}const hu=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),F$=({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}},qb=({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},NVe=(e,t)=>t==null||!e.isValid(t)?null:t,$o=(e,t,n)=>t==null||!e.isValid(t)?n:t,PVe=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),B$=(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},QI=(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},U$=(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")},LVe=["year","month","day"],gm=e=>LVe.includes(e),u1=(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},MVe=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},vne=["hours","minutes","seconds"],dg=e=>vne.includes(e),qc=e=>vne.includes(e)||e==="meridiem",$Ve=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,c1=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,FVe=(e,t,n,r)=>{const i=c1(r.getHours(e),t,n);return r.setHours(e,i)},aV=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),IO=(e,t)=>(n,r)=>e?t.isAfter(n,r):aV(n,t)>aV(r,t),lw=(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},BVe=e=>Math.max(...e.map(t=>{var n;return(n=El[t.type])!=null?n:1})),z0=(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():z0(t,n,U$(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,a)&&(a=z0(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,a)&&(a=z0(t,n,e.maxDate));const s=IO((o=e.disableIgnoringDatePartForTimeValidation)!=null?o:!1,t);return e.minTime!=null&&s(e.minTime,a)&&(a=z0(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:QI(t,a,e.minTime))),e.maxTime!=null&&s(a,e.maxTime)&&(a=z0(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:QI(t,a,e.maxTime))),a},Ene=(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}},jVe=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},Ix=(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))},Sne=(e,t,n,r)=>{switch(n){case"month":return B$(e,e.dateWithTimezone(void 0,t)).map(i=>e.formatByString(i,r));case"weekDay":return Ix(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[]}},Tne=(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?Tne(e,o,i.maxLength):o},zVe=(e,t,n,r,i,o,a)=>{const s=jVe(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=>wne(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=Sne(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()},j$=(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},Xh=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),kne=(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}},sV=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),xne=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,Cne=(e,t,n,r,i)=>{if(n!=="digit")return!1;const o=e.dateWithTimezone(void 0,t);switch(r){case"year":return xne(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")}},HVe=(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},lV=(e,t,n,r,i,o,a,s)=>{let l="";const u=[],c=e.date(),d=S=>{if(S==="")return null;const k=Ene(e,S),C=Cne(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&&($=Tne(e,$,N))}return u.push(P({},k,{format:S,maxLength:N,value:$,placeholder:VVe(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=HVe(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})},WVe=(e,t)=>{const n=t.some(s=>s.type==="day"),r=[],i=[];for(let s=0;s{const r=e.map(i=>{const o=j$(i,t?"input-rtl":"input-ltr");return`${i.startSeparator}${o}${i.endSeparator}`}).join("");return t?`⁦${r}⁩`:r},YVe=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),i=e.endOfDay(n),{maxDaysInMonth:o,longestMonth:a}=B$(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:xne(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=Ix(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})}},GVe=(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=Ix(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}},uV={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},cV=(e,t,n,r,i,o)=>[...r].sort((a,s)=>uV[a.type]-uV[s.type]).reduce((a,s)=>!o||s.modified?GVe(e,t,s,n,a):a,i),qVe=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,ZVe=(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]}},XVe=["value","referenceDate"],Bi={emptyValue:null,getTodayValue:U$,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Ge(e,XVe);return t!=null&&r.utils.isValid(t)?t:n??UVe(r)},cleanValue:NVe,areValuesEqual:PVe,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)},z$={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,i)=>!e.isValid(t)&&!!n?n:kne(i(t),r),getValueStrFromSections:QVe,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)},KVe=["localeText"],YI=I.createContext(null),Ane=function(t){var n;const{localeText:r}=t,i=Ge(t,KVe),{utils:o,localeText:a}=(n=I.useContext(YI))!=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(()=>P({},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 M.jsx(YI.Provider,{value:y,children:l})},JVe=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:P({},e)}}}}),_ne={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"},eHe=_ne;JVe(_ne);const Vl=()=>{const e=I.useContext(YI);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(` +`&&G()}function dt(){for(;P9e[Z];)G()}function Be(de){de===void 0&&(de=!1),dt();for(var Oe=[fe(de)];j(",");)G(),dt(),Oe.push(fe(de));return{type:"Selector",rules:Oe}}function re(){Ve("["),dt();var de;if(j("|")){ue(p,"Namespaces are not enabled."),G();var Oe=ze();ue(Oe,"Expected attribute name."),de={type:"Attribute",name:Oe,namespace:{type:"NoNamespace"}}}else if(j("*")){ue(p,"Namespaces are not enabled."),ue(h,"Wildcard namespace is not enabled."),G(),Ve("|");var Te=ze();ue(Te,"Expected attribute name."),de={type:"Attribute",name:Te,namespace:{type:"WildcardNamespace"}}}else{var rt=ze();if(ue(rt,"Expected attribute name."),de={type:"Attribute",name:rt},j("|")){var pt=Y;if(G(),U0(Z)){ue(p,"Namespaces are not enabled.");var xt=ze();ue(xt,"Expected attribute name."),de={type:"Attribute",name:xt,namespace:{type:"NamespaceName",name:rt}}}else ve(pt)}}if(ue(de.name,"Expected attribute name."),dt(),Ne()&&!o)return de;if(j("]"))G();else{if(de.operator=Ke(v),ue(de.operator,"Expected a valid attribute selector operator."),dt(),xe(),L9e[Z])de.value={type:"String",value:ye(Z)};else if(m&&j("$")){G();var et=ze();ue(et,"Expected substitute name."),de.value={type:"Substitution",name:et}}else{var vt=ze();ue(vt,"Expected attribute value."),de.value={type:"String",value:vt}}if(dt(),Ne()&&!o)return de;if(!j("]")){var qe=ze();if(ue(qe,"Expected end of attribute selector."),de.caseSensitivityModifier=qe,ue(C,"Attribute case sensitivity modifiers are not enabled."),ue(k||S[de.caseSensitivityModifier],"Unknown attribute case sensitivity modifier."),dt(),Ne()&&!o)return de}Ve("]")}return de}function ee(){for(var de="";p2[Z];)de+=ce();return ue(de!=="","Formula parse error."),parseInt(de)}var J=function(){return j("-")||j("+")||p2[Z]};function Re(){if(j("e")||j("o")){var de=ze();if(de==="even")return dt(),[2,0];if(de==="odd")return dt(),[2,1]}var Oe=null,Te=1;if(j("-")&&(G(),Te=-1),J()&&(j("+")&&G(),Oe=ee(),!j("\\")&&!j("n")))return[0,Oe*Te];Oe===null&&(Oe=1),Oe*=Te;var rt;if(j("\\")?(G(),j0(Z)?rt=Ye():rt=ce()):rt=ce(),ue(rt==="n",'Formula parse error: expected "n".'),dt(),j("+")||j("-")){var pt=j("+")?1:-1;return G(),dt(),[Oe,pt*ee()]}else return[Oe,0]}function Le(de,Oe,Te){var rt;if(j("(")){if(G(),dt(),m&&j("$")){G();var pt=ze();ue(pt,"Expected substitute name."),rt={type:"Substitution",name:pt}}else if(Te.type==="String")rt={type:"String",value:$e()},ue(rt.value,"Expected ".concat(Oe," argument value."));else if(Te.type==="Selector")rt=Be(!0);else if(Te.type==="Formula"){var xt=Re(),et=xt[0],vt=xt[1];if(rt={type:"Formula",a:et,b:vt},Te.ofSelector&&(dt(),j("o")||j("\\"))){var qe=ze();ue(qe==="of","Formula of selector parse error."),dt(),rt={type:"FormulaOfSelector",a:et,b:vt,selector:fe()}}}else return ge("Invalid ".concat(Oe," signature."));if(dt(),Ne()&&!o)return rt;Ve(")")}else ue(Te.optional,"Argument is required for ".concat(Oe,' "').concat(de,'".'));return rt}function De(){if(j("*"))return ue(u,"Wildcard tag name is not enabled."),G(),{type:"WildcardTag"};if(U0(Z)){ue(l,"Tag names are not enabled.");var de=ze();return ue(de,"Expected tag name."),{type:"TagName",name:de}}else return ge("Expected tag name.")}function ie(){if(j("*")){var de=Y;if(G(),!j("|")||(G(),!se()))return ve(de),De();ue(p,"Namespaces are not enabled."),ue(h,"Wildcard namespace is not enabled.");var Oe=De();return Oe.namespace={type:"WildcardNamespace"},Oe}else if(j("|")){ue(p,"Namespaces are not enabled."),G();var Oe=De();return Oe.namespace={type:"NoNamespace"},Oe}else if(U0(Z)){var Te=ze();if(ue(Te,"Expected tag name."),!j("|"))return ue(l,"Tag names are not enabled."),{type:"TagName",name:Te};var de=Y;if(G(),!se())return ve(de),{type:"TagName",name:Te};ue(p,"Namespaces are not enabled.");var Oe=De();return Oe.namespace={type:"NamespaceName",name:Te},Oe}else return ge("Expected tag name.")}function fe(de){var Oe,Te;de===void 0&&(de=!1);var rt={type:"Rule",items:[]};if(de){var pt=Ke(b);pt&&(rt.combinator=pt,dt())}for(;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(()=>P({},eHe,e.localeText),[e.localeText]);return I.useMemo(()=>P({},e,{localeText:t}),[e,t])},Rn=()=>Vl().utils,jp=()=>Vl().defaultDates,Ui=()=>Vl().localeText,cf=e=>{const t=Rn(),n=I.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current};function Rne(e){return At("MuiPickersToolbar",e)}_t("MuiPickersToolbar",["root","content"]);const tHe=e=>{const{classes:t,isLandscape:n}=e;return kt({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},Rne,t)},nHe=Se("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>P({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"})),rHe=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"}}),V$=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=tHe(u);return s?null:M.jsxs(nHe,{ref:n,className:Je(c.root,o),ownerState:u,children:[M.jsx(Lr,{color:"text.secondary",variant:"overline",id:l,children:a}),M.jsx(rHe,{className:c.content,ownerState:u,children:i})]})});function iHe(e){return At("MuiDatePickerToolbar",e)}_t("MuiDatePickerToolbar",["root","title"]);const oHe=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views"],aHe=e=>{const{classes:t}=e;return kt({root:["root"],title:["title"]},iHe,t)},sHe=Se(V$,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),lHe=Se(Lr,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>P({},e.isLandscape&&{margin:"auto 16px auto auto"})),uHe=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,oHe),c=Rn(),d=Ui(),p=aHe(r),h=I.useMemo(()=>{if(!i)return s;const b=u1(c,{format:a,views:l},!0);return c.formatByString(i,b)},[i,a,s,c,l]),m=r;return M.jsx(sHe,P({ref:n,toolbarTitle:d.datePickerToolbarTitle,isLandscape:o,className:p.root},u,{children:M.jsx(lHe,{variant:"h4",align:o?"left":"center",ownerState:m,className:p.title,children:h})}))}),DO=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>P({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function Ine(e,t){var n,r,i,o;const a=Rn(),s=jp(),l=gt({props:e,name:t}),u=I.useMemo(()=>{var d;return((d=l.localeText)==null?void 0:d.toolbarTitle)==null?l.localeText:P({},l.localeText,{datePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),c=(n=l.slots)!=null?n:DO(l.components);return P({},l,{localeText:u},F$({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:$o(a,l.minDate,s.minDate),maxDate:$o(a,l.maxDate,s.maxDate),slots:P({toolbar:uHe},c),slotProps:(o=l.slotProps)!=null?o:l.componentsProps})}const cHe=wi(M.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),dHe=wi(M.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),fHe=wi(M.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),Dne=wi(M.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"),pHe=wi(M.jsxs(I.Fragment,{children:[M.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"}),M.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),hHe=wi(M.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"),mHe=wi(M.jsxs(I.Fragment,{children:[M.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"}),M.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),gHe=wi(M.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 bHe(e){return At("MuiPickersArrowSwitcher",e)}_t("MuiPickersArrowSwitcher",["root","spacer","button"]);const yHe=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],OHe=["ownerState"],vHe=["ownerState"],EHe=Se("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),SHe=Se("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),dV=Se(Na,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>P({},e.hidden&&{visibility:"hidden"})),THe=e=>{const{classes:t}=e;return kt({root:["root"],spacer:["spacer"],button:["button"]},bHe,t)},Nne=I.forwardRef(function(t,n){var r,i,o,a;const l=ui().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,yHe),E=u,$=THe(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:dV,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:P({},E,{hidden:R.isHidden}),className:$.button}),V=(i=p==null?void 0:p.nextIconButton)!=null?i:dV,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:P({},E,{hidden:N.isHidden}),className:$.button}),W=(o=p==null?void 0:p.leftArrowIcon)!=null?o:dHe,X=kn({elementType:W,externalSlotProps:h==null?void 0:h.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),q=Ge(X,OHe),Y=(a=p==null?void 0:p.rightArrowIcon)!=null?a:fHe,Z=kn({elementType:Y,externalSlotProps:h==null?void 0:h.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),j=Ge(Z,vHe);return M.jsxs(EHe,P({ref:n,className:Je($.root,d),ownerState:E},w,{children:[M.jsx(B,P({},U,{children:l?M.jsx(Y,P({},j)):M.jsx(W,P({},q))})),c?M.jsx(Lr,{variant:"subtitle1",component:"span",children:c}):M.jsx(SHe,{className:$.spacer,ownerState:E}),M.jsx(V,P({},z,{children:l?M.jsx(W,P({},q)):M.jsx(Y,P({},j))}))]}))}),d1=36,Dx=2,Nx=320,wHe=280,Px=334,Pne=232,ub=48,kHe=Se(Q0e)({[`& .${xb.container}`]:{outline:0},[`& .${xb.paper}`]:{outline:0,minWidth:Nx}}),xHe=Se(abe)({"&:first-of-type":{padding:0}});function CHe(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:kHe,u=(n=a==null?void 0:a.mobileTransition)!=null?n:Eg;return M.jsx(l,P({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:M.jsx(xHe,{children:r})}))}function AHe(e){return At("MuiPickersPopper",e)}_t("MuiPickersPopper",["root","paper"]);function Ah(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const _He=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},uw=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?uw(t.shadowRoot):t:null},H$="@media (pointer: fine)",RHe="@media (prefers-reduced-motion: reduce)",bm=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),fV=bm&&bm[1]?parseInt(bm[1],10):null,pV=bm&&bm[2]?parseInt(bm[2],10):null,IHe=fV&&fV<10||pV&&pV<13||!1,Lne=()=>wg(RHe,{defaultMatches:!1})||IHe,DHe=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],NHe=e=>{const{classes:t}=e;return kt({root:["root"],paper:["paper"]},AHe,t)},PHe=Se(H1,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),LHe=Se(Da,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>P({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"}));function MHe(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=br(i.current);if(!i.current||"clientX"in l&&MHe(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=br(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=br(i.current);return l.addEventListener("click",a),()=>{l.removeEventListener("click",a),r.current=!1}}},[e,a]),[i,s,s]}const FHe=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,DHe),d=P({},i,{placement:r}),p=kn({elementType:n,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:d});return M.jsx(n,P({},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 BHe(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=uw(document):v.current&&v.current instanceof HTMLElement&&setTimeout(()=>{v.current instanceof HTMLElement&&v.current.focus()}))},[p,h,u]);const[S,k,C]=$He(p,c??d),w=I.useRef(null),E=yn(w,l),$=yn(E,S),N=o,R=NHe(N),B=Lne(),U=y??B,V=Z=>{Z.key==="Escape"&&(Z.stopPropagation(),d())},z=((t=b==null?void 0:b.desktopTransition)!=null?t:U)?Eg:rT,W=(n=b==null?void 0:b.desktopTrapFocus)!=null?n:qQ,X=(r=b==null?void 0:b.desktopPaper)!=null?r:LHe,q=(i=b==null?void 0:b.popper)!=null?i:PHe,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 M.jsx(q,P({},Y,{children:({TransitionProps:Z,placement:j})=>M.jsx(W,P({open:p,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:h==="tooltip",isEnabled:()=>!0},O==null?void 0:O.desktopTrapFocus,{children:M.jsx(z,P({},Z,O==null?void 0:O.desktopTransition,{children:M.jsx(FHe,{PaperComponent:X,ownerState:N,popperPlacement:j,ref:$,onPaperClick:k,onPaperTouchStart:C,paperClasses:R.paper,paperSlotProps:O==null?void 0:O.desktopPaper,children:s})}))}))}))}function UHe(e){return At("MuiPickersToolbarText",e)}const hV=_t("MuiPickersToolbarText",["root","selected"]),jHe=["className","selected","value"],zHe=e=>{const{classes:t,selected:n}=e;return kt({root:["root",n&&"selected"]},UHe,t)},VHe=Se(Lr,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${hV.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${hV.selected}`]:{color:(e.vars||e).palette.text.primary}})),W$=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersToolbarText"}),{className:i,value:o}=r,a=Ge(r,jHe),s=zHe(r);return M.jsx(VHe,P({ref:n,className:Je(i,s.root),component:"span"},a,{children:o}))}),HHe=["align","className","selected","typographyClassName","value","variant","width"],WHe=e=>{const{classes:t}=e;return kt({root:["root"]},Rne,t)},QHe=Se(Ff,{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,HHe),p=WHe(r);return M.jsx(QHe,P({variant:"text",ref:n,className:Je(o,p.root)},c?{sx:{width:c}}:{},d,{children:M.jsx(W$,{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}},Gg=({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 Mne(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 YHe=e=>{const t=Rn(),n=Ui(),r=Vl(),o=ui().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(()=>YVe(t,C),[t,C]),N=I.useCallback((ce,ge=null)=>s.getSectionsFromValue(t,ce,ge,o,ue=>lV(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=BVe(ce),xe=a.getInitialReferenceValue({referenceDate:h,value:w,utils:t,props:c,granularity:ue,timezone:C});return P({},ge,{referenceValue:xe})}),[V,z]=Xi({controlled:y,default:null,name:"useField",state:"selectedSectionIndexes"}),W=ce=>{z(ce),v==null||v(ce),U(ge=>P({},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=>P({},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:P({},c,{value:ce,timezone:C})})};E(ce,xe)},Y=(ce,ge)=>{const ue=[...B.sections];return ue[ce]=P({},ue[ce],{value:ge,modified:!0}),kne(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(P({},Ke,{sections:Ne})):U(Me=>P({},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=lV(t,C,n,b,Ke,O,S,o);return cV(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.startIndexP({},ye,Me,{sections:Ne,tempValueStrAndroid:null}))},G=ce=>U(ge=>P({},ge,{tempValueStrAndroid:ce}));return I.useEffect(()=>{const ce=N(B.value);U(ge=>P({},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=>P({},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}},GHe=5e3,mh=e=>e.saveQuery!=null,qHe=({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(),GHe);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(!mh(C))return s({sectionIndex:m,value:k,sectionType:v.type}),C}const S=b(y,v);return mh(S)&&!S.saveQuery?(l(),null):(s({sectionIndex:m,value:y,sectionType:v.type}),mh(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=>Sne(o,i,v.type,w);if(v.contentType==="letter")return m(v.format,C(v.format),y);if(S&&k!=null&&Ene(o,S).contentType==="letter"){const w=C(S),E=m(S,w,y);return mh(E)?{saveQuery:!1}:P({},E,{sectionValue:k(E.sectionValue,w)})}return{saveQuery:!1}};return u(h,(y,v)=>{switch(v.type){case"month":{const S=k=>sV(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:wne(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=Cne(o,i,"digit","month","MM"),S=m(O,{type:y.type,format:"MM",hasLeadingZerosInFormat:v,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(mh(S))return S;const k=sV(o,S.sectionValue,"MM",y.format);return P({},S,{sectionValue:k})}if(y.type==="weekDay"){const v=m(O,y);if(mh(v))return v;const S=Ix(o,i,y.format)[Number(v.sectionValue)-1];return P({},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}},ZHe=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],Y$=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}=YHe(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,ZHe),{applyCharacterEditing:X,resetCharacterQuery:q}=qHe({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=ui().direction==="rtl",G=I.useMemo(()=>ZVe(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=Xh(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=Xh(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-Xh(rt.endSeparator||"").length;fe=ie.slice(rt.start+Xh(rt.startSeparator||"").length,xt)}if(fe.length===0){qVe()?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=zVe(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===uw(document)&&Y.current.setSelectionRange(Re,Le),Y.current.scrollTop=De}});const Ye=Mne(P({},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===uw(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 P({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)})},XHe=({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}},KHe=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},JHe=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},eWe=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},tWe=({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}=XHe(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});Mne(P({},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=KHe(Ne),Ke=JHe(Ne),Me=eWe(Ne);if(w(Ye=>P({},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:P({},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=>P({},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=P({},se,{value:G,onChange:q,onSelectShortcut:Y,isValid:xe=>{const Ne=i({adapter:O,value:xe,props:P({},e,{value:xe,timezone:E})});return!t.hasError(Ne)}});return{open:S,fieldProps:ve,viewProps:ce,layoutProps:ue,actions:se}};function NO({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,nWe),{view:O,setView:y,defaultView:v,focusedView:S,setFocusedView:k,setValueAndGoToNextView:C}=NO({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&&dg(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(P({},b,n,t,{views:u,timezone:m,onChange:C,view:B,onViewChange:y,focusedView:S,onFocusedViewChange:k,showViewSwitcher:$>1,timeViewsCount:$}))}}};function mV(){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 iWe=(e,t)=>{const[n,r]=I.useState(mV);return Kr(()=>{const o=()=>{r(mV())};return window.addEventListener("orientationchange",o),()=>{window.removeEventListener("orientationchange",o)}},[]),Ah(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},oWe=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:i}=e,o=iWe(n.views,i);return{layoutProps:P({},n,t,{isLandscape:o,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},aWe=(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))}};aWe(["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 $ne=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:i,additionalViewProps:o,validator:a,autoFocusView:s})=>{const l=tWe({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:a}),u=rWe({props:e,inputRef:i,additionalViewProps:o,autoFocusView:s,propsFromPickerValue:l.viewProps}),c=oWe({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 Fne(e){return At("MuiPickersLayout",e)}const v2=_t("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]),sWe=["onAccept","onClear","onCancel","onSetToday","actions"];function lWe(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:i,actions:o}=e,a=Ge(e,sWe),s=Ui();if(o==null||o.length===0)return null;const l=o==null?void 0:o.map(u=>{switch(u){case"clear":return M.jsx(Ff,{onClick:n,children:s.clearButtonLabel},u);case"cancel":return M.jsx(Ff,{onClick:r,children:s.cancelButtonLabel},u);case"accept":return M.jsx(Ff,{onClick:t,children:s.okButtonLabel},u);case"today":return M.jsx(Ff,{onClick:i,children:s.todayButtonLabel},u);default:return null}});return M.jsx(K0e,P({},a,{children:l}))}const uWe=["items","changeImportance","isLandscape","onChange","isValid"],cWe=["getValue"];function dWe(e){const{items:t,changeImportance:n,onChange:r,isValid:i}=e,o=Ge(e,uWe);if(t==null||t.length===0)return null;const a=t.map(s=>{let{getValue:l}=s,u=Ge(s,cWe);const c=l({isValid:i});return{label:u.label,onClick:()=>{r(c,n,u)},disabled:!i(c)}});return M.jsx(xY,P({dense:!0,sx:[{maxHeight:Px,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:a.map(s=>M.jsx(Eh,{children:M.jsx(LN,P({},s))},s.label))}))}function fWe(e){return e.view!==null}const pWe=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"]},Fne,t)},hWe=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??DO(S),$=w??k,N=pWe(e),R=(t=E==null?void 0:E.actionBar)!=null?t:lWe,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:P({},e,{wrapperVariant:r})}),U=M.jsx(R,P({},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:P({},e,{wrapperVariant:r})}),W=fWe(z)&&V?M.jsx(V,P({},z)):null,X=v,q=E==null?void 0:E.tabs,Y=l&&q?M.jsx(q,P({view:l,onViewChange:c},$==null?void 0:$.tabs)):null,Z=(n=E==null?void 0:E.shortcuts)!=null?n:dWe,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?M.jsx(Z,P({},j)):null;return{toolbar:W,content:X,tabs:Y,actionBar:U,shortcuts:se}},mWe=e=>{const{isLandscape:t,classes:n}=e;return kt({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},Fne,n)},Bne=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",[`& .${v2.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${v2.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${v2.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));Bne.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 gWe=Se("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),Une=function(t){const n=gt({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:i,tabs:o,actionBar:a,shortcuts:s}=hWe(n),{sx:l,className:u,isLandscape:c,ref:d,wrapperVariant:p}=n,h=n,m=mWe(h);return M.jsxs(Bne,{ref:d,sx:l,className:Je(u,m.root),ownerState:h,children:[c?s:r,c?r:s,M.jsx(gWe,{className:m.contentWrapper,children:p==="desktop"?M.jsxs(I.Fragment,{children:[i,o]}):M.jsxs(I.Fragment,{children:[o,i]})}),a]})};function bWe(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 yWe(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 Lx(e,t,n,r){const i=Rn(),o=$Ve(e,i),a=I.useCallback(s=>{const l=e==null?null:FVe(e,s,!!t,i);n(l,r??"partial")},[t,e,n,r,i]);return{meridiemMode:o,handleMeridiemChange:a}}const GI=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],qI=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],jne=["minDateTime","maxDateTime"],OWe=[...GI,...qI,...jne],qg=e=>OWe.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),vWe=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],G$=(e,t)=>{const n=P({},e),r={},i=o=>{n.hasOwnProperty(o)&&(r[o]=n[o],delete n[o])};return vWe.forEach(i),t==="date"?GI.forEach(i):t==="time"?qI.forEach(i):t==="date-time"&&(GI.forEach(i),qI.forEach(i),jne.forEach(i)),{forwardedProps:n,internalProps:r}},zp=({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=$o(n.utils,e.minDate,n.defaultDates.minDate),d=$o(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}},PO=({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=IO(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}},Mx=({props:e,value:t,adapter:n})=>{const r=zp({adapter:n,value:t,props:e});return r!==null?r:PO({adapter:n,value:t,props:e})};function EWe(e){return At("MuiPickersDay",e)}const Ef=_t("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),SWe=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],TWe=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"]},EWe,l)},zne=({theme:e,ownerState:t})=>P({},e.typography.caption,{width:d1,height:d1,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),[`&.${Ef.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Ef.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}},[`&.${Ef.disabled}:not(.${Ef.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ef.disabled}&.${Ef.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${Dx}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${Ef.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),Vne=(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]},wWe=Se(hs,{name:"MuiPickersDay",slot:"Root",overridesResolver:Vne})(zne),kWe=Se("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Vne})(({theme:e,ownerState:t})=>P({},zne({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),V0=()=>{},xWe=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=V0,onBlur:m=V0,onKeyDown:b=V0,onMouseDown:O=V0,onMouseEnter:y=V0,outsideCurrentMonth:v,selected:S=!1,showDaysOutsideCurrentMonth:k=!1,children:C,today:w=!1}=r,E=Ge(r,SWe),$=P({},r,{autoFocus:i,disabled:s,disableHighlightToday:l,disableMargin:u,selected:S,showDaysOutsideCurrentMonth:k,today:w}),N=TWe($),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?M.jsx(kWe,{className:Je(N.root,N.hiddenDaySpacingFiller,o),ownerState:$,role:E.role}):M.jsx(wWe,P({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")}))}),CWe=I.memo(xWe),AWe=e=>At("MuiPickersSlideTransition",e),xs=_t("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),_We=["children","className","reduceAnimations","slideDirection","transKey","classes"],RWe=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return kt(r,AWe,t)},IWe=Se(xN,{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 DWe(e){const t=gt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:i,transKey:o}=t,a=Ge(t,_We),s=RWe(t),l=ui();if(i)return M.jsx("div",{className:Je(s.root,r),children:n});const u={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return M.jsx(IWe,{className:Je(s.root,r),childFactory:c=>I.cloneElement(c,{classNames:u}),role:"presentation",children:M.jsx(tfe,P({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:u},a,{children:n}),o)})}const Hne=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:o,disablePast:a,timezone:s})=>{const l=Vl();return I.useCallback(u=>zp({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])},NWe=e=>At("MuiDayCalendar",e);_t("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const PWe=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],LWe=["ownerState"],MWe=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"]},NWe,t)},Wne=(d1+Dx*2)*6,$We=Se("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),FWe=Se("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),BWe=Se(Lr,{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})),UWe=Se(Lr,{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})),jWe=Se(Lr,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>P({},e.typography.caption,{width:d1,height:d1,padding:0,margin:`0 ${Dx}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),zWe=Se("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Wne}),VWe=Se(DWe,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:Wne}),HWe=Se("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),WWe=Se("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${Dx}px 0`,display:"flex",justifyContent:"center"});function QWe(e){var t,n,r;let{parentProps:i,day:o,focusableDay:a,selectedDays:s,isDateDisabled:l,currentMonthNumber:u,isViewFocused:c}=e,d=Ge(e,PWe);const{disabled:p,disableHighlightToday:h,isMonthSwitchingAnimating:m,showDaysOutsideCurrentMonth:b,components:O,componentsProps:y,slots:v,slotProps:S,timezone:k}=i,C=Rn(),w=cf(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:CWe,B=kn({elementType:R,externalSlotProps:(r=S==null?void 0:S.day)!=null?r:y==null?void 0:y.day,additionalProps:P({disableHighlightToday:h,showDaysOutsideCurrentMonth:b,role:"gridcell",isAnimating:m,"data-timestamp":C.toJsDate(o).valueOf()},d),ownerState:P({},i,{day:o,selected:$})}),U=Ge(B,LWe),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 M.jsx(R,P({},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 YWe(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=()=>M.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=cf(V),W=Rn(),X=MWe(t),Y=ui().direction==="rtl",Z=w||((Be,re)=>W.format(re,"weekdayShort").charAt(0).toUpperCase()),j=Hne({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=qb({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=qb({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)?qb({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 M.jsx(BWe,{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?M.jsx(zWe,{className:X.loadingContainer,children:p()}):M.jsx(VWe,P({transKey:ye,onExited:u,reduceAnimations:d,slideDirection:h,className:Je(r,X.slideTransition)},m,{nodeRef:ze,children:M.jsx(HWe,{ref:ze,role:"rowgroup",className:X.monthContainer,children:dt.map((Be,re)=>M.jsxs(WWe,{role:"row",className:X.weekContainer,"aria-rowindex":re+1,children:[R&&M.jsx(jWe,{className:X.weekNumber,role:"rowheader","aria-label":se.calendarWeekNumberAriaLabelText(W.getWeekNumber(Be[0])),children:se.calendarWeekNumberText(W.getWeekNumber(Be[0]))}),Be.map((ee,J)=>M.jsx(QWe,{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 GWe=(e,t,n)=>(r,i)=>{switch(i.type){case"changeMonth":return P({},r,{slideDirection:i.direction,currentMonth:i.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return P({},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 P({},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")}},qWe=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=cf(p),m=Rn(),b=I.useRef(GWe(!!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(P({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=Hne({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}},ZWe=["props","getOpenDialogAriaText"],XWe=["ownerState"],KWe=["ownerState"],q$=e=>{var t,n,r,i,o;let{props:a,getOpenDialogAriaText:s}=e,l=Ge(e,ZWe);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}=$ne(P({},l,{props:a,inputRef:N,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),j=(r=u.inputAdornment)!=null?r:UN,se=kn({elementType:j,externalSlotProps:c==null?void 0:c.inputAdornment,additionalProps:{position:"end"},ownerState:a}),ve=Ge(se,XWe),G=(i=u.openPickerButton)!=null?i:Na,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,KWe),ue=u.openPickerIcon,xe=u.field,Ne=kn({elementType:xe,externalSlotProps:c==null?void 0:c.field,additionalProps:P({},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=P({},Ne.InputProps,{ref:R,[`${ve.position}Adornment`]:M.jsx(j,P({},ve,{children:M.jsx(G,P({},ge,{children:M.jsx(ue,P({},c==null?void 0:c.openPickerIcon))}))}))}));const Ve=P({textField:u.textField,clearIcon:u.clearIcon,clearButton:u.clearButton},Ne.slots),Ke=(o=u.layout)!=null?o:Une,Me=yn(N,Ne.inputRef,v);let Ye=B;U&&(y?Ye=`${B}-label`:Ye=void 0);const ye=P({},c,{toolbar:P({},c==null?void 0:c.toolbar,{titleId:B}),popper:P({"aria-labelledby":Ye},c==null?void 0:c.popper)});return{renderPicker:()=>M.jsxs(Ane,{localeText:w,children:[M.jsx(xe,P({},Ne,{slots:Ve,slotProps:ye,inputRef:Me})),M.jsx(BHe,P({role:"dialog",placement:"bottom-start",anchorEl:R.current},z,{open:V,slots:u,slotProps:ye,shouldRestoreFocus:Y,reduceAnimations:E,children:M.jsx(Ke,P({},X,ye==null?void 0:ye.layout,{slots:u,slotProps:ye,children:q()}))}))]})}},JWe=e=>{var t,n,r;const i=Rn(),o=jp();return P({},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:$o(i,e.minDate,o.minDate),maxDate:$o(i,e.maxDate,o.maxDate)})},eQe=({props:e,inputRef:t})=>{const n=JWe(e),{forwardedProps:r,internalProps:i}=G$(n,"date");return Y$({inputRef:t,forwardedProps:r,internalProps:i,valueManager:Bi,fieldValueManager:z$,validator:zp,valueType:"date"})},tQe=["ownerState"],Z$=({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:Na,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,tQe),v=(d=(p=i==null?void 0:i.clearIcon)!=null?p:a==null?void 0:a.ClearIcon)!=null?d:gHe,S=kn({elementType:v,externalSlotProps:(h=o==null?void 0:o.clearIcon)!=null?h:s==null?void 0:s.clearIcon,ownerState:{}}),k=P({},n,{endAdornment:M.jsxs(I.Fragment,{children:[e&&M.jsx(UN,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:M.jsx(b,P({},y,{onClick:r,children:M.jsx(v,P({fontSize:"small"},S))}))}),n==null?void 0:n.endAdornment]})}),C=P({},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}},nQe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],rQe=["inputRef"],iQe=["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,nQe),m=a,b=(r=(i=u==null?void 0:u.textField)!=null?i:s==null?void 0:s.TextField)!=null?r:Dp,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,rQe);v.inputProps=P({},p,v.inputProps),v.InputProps=P({},d,v.InputProps);const S=eQe({props:v,inputRef:y}),{ref:k,onPaste:C,onKeyDown:w,inputMode:E,readOnly:$,clearable:N,onClear:R}=S,B=Ge(S,iQe),{InputProps:U,fieldProps:V}=Z$({onClear:R,clearable:N,fieldProps:B,InputProps:B.InputProps,slots:u,slotProps:c,components:s,componentsProps:l});return M.jsx(b,P({ref:n},V,{InputProps:P({},U,{readOnly:$}),inputProps:P({},B.inputProps,{inputMode:E,onPaste:C,onKeyDown:w,ref:k})}))}),oQe=e=>At("MuiPickersFadeTransitionGroup",e);_t("MuiPickersFadeTransitionGroup",["root"]);const aQe=e=>{const{classes:t}=e;return kt({root:["root"]},oQe,t)},sQe=Se(xN,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function Yne(e){const t=gt({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:i,transKey:o}=t,a=aQe(t),s=ui();return i?n:M.jsx(sQe,{className:Je(a.root,r),children:M.jsx(Eg,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},o)})}function lQe(e){return At("MuiPickersMonth",e)}const mE=_t("MuiPickersMonth",["root","monthButton","disabled","selected"]),uQe=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],cQe=e=>{const{disabled:t,selected:n,classes:r}=e;return kt({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},lQe,r)},dQe=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"})),fQe=Se("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${mE.disabled}`]:t.disabled},{[`&.${mE.selected}`]:t.selected}]})(({theme:e})=>P({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"},[`&.${mE.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${mE.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:"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,uQe),O=I.useRef(null),y=cQe(n);return Kr(()=>{if(r){var v;(v=O.current)==null||v.focus()}},[r]),M.jsx(dQe,P({className:y.root,ownerState:n},b,{children:M.jsx(fQe,{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 hQe(e){return At("MuiMonthCalendar",e)}_t("MuiMonthCalendar",["root"]);const mQe=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],gQe=e=>{const{classes:t}=e;return kt({root:["root"]},hQe,t)};function bQe(e,t){const n=Rn(),r=jp(),i=gt({props:e,name:t});return P({disableFuture:!1,disablePast:!1},i,{minDate:$o(n,i.minDate,r.minDate),maxDate:$o(n,i.maxDate,r.maxDate)})}const yQe=Se("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:Nx,boxSizing:"border-box"}),OQe=I.forwardRef(function(t,n){const r=bQe(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,mQe),{value:N,handleValueChange:R,timezone:B}=Gg({name:"MonthCalendar",timezone:w,value:o,defaultValue:a,onChange:h,valueManager:Bi}),U=cf(B),V=vg(),z=Rn(),W=I.useMemo(()=>Bi.getInitialReferenceValue({value:N,utils:z,props:r,timezone:B,referenceDate:s,granularity:El.month}),[]),X=r,q=gQe(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 M.jsx(yQe,P({ref:n,className:Je(q.root,i),ownerState:X,role:"radiogroup","aria-labelledby":E},$,{children:B$(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 M.jsx(pQe,{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 vQe(e){return At("MuiPickersYear",e)}const gE=_t("MuiPickersYear",["root","yearButton","selected","disabled"]),EQe=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],SQe=e=>{const{disabled:t,selected:n,classes:r}=e;return kt({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},vQe,r)},TQe=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"})),wQe=Se("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${gE.disabled}`]:t.disabled},{[`&.${gE.selected}`]:t.selected}]})(({theme:e})=>P({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"},[`&.${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}}})),kQe=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,EQe),O=I.useRef(null),y=SQe(n);return I.useEffect(()=>{r&&O.current.focus()},[r]),M.jsx(TQe,P({className:Je(y.root,i),ownerState:n},b,{children:M.jsx(wQe,{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 xQe(e){return At("MuiYearCalendar",e)}_t("MuiYearCalendar",["root"]);const CQe=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],AQe=e=>{const{classes:t}=e;return kt({root:["root"]},xQe,t)};function _Qe(e,t){var n;const r=Rn(),i=jp(),o=gt({props:e,name:t});return P({disablePast:!1,disableFuture:!1},o,{yearsPerRow:(n=o.yearsPerRow)!=null?n:3,minDate:$o(r,o.minDate,i.minDate),maxDate:$o(r,o.maxDate,i.maxDate)})}const RQe=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:Nx,maxHeight:wHe,boxSizing:"border-box",position:"relative"}),IQe=I.forwardRef(function(t,n){const r=_Qe(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,CQe),{value:N,handleValueChange:R,timezone:B}=Gg({name:"YearCalendar",timezone:w,value:a,defaultValue:s,onChange:m,valueManager:Bi}),U=cf(B),V=vg(),z=Rn(),W=I.useMemo(()=>Bi.getInitialReferenceValue({value:N,utils:z,props:r,timezone:B,referenceDate:l,granularity:El.year}),[]),X=r,q=AQe(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 M.jsx(kQe,{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"))})}))}),DQe=e=>At("MuiPickersCalendarHeader",e),NQe=_t("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),PQe=["slots","slotProps","components","componentsProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],LQe=["ownerState"],MQe=e=>{const{classes:t}=e;return kt({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},DQe,t)},$Qe=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}),FQe=Se("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>P({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),BQe=Se("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),UQe=Se(Na,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>P({marginRight:"auto"},e.view==="year"&&{[`.${NQe.switchViewIcon}`]:{transform:"rotate(180deg)"}})),jQe=Se(cHe,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),zQe=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,PQe),U=u,V=MQe(u),z=(r=(i=c==null?void 0:c.switchViewButton)!=null?i:p==null?void 0:p.SwitchViewButton)!=null?r:UQe,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:jQe,q=kn({elementType:X,externalSlotProps:d==null?void 0:d.switchViewIcon,ownerState:void 0,className:V.switchViewIcon}),Y=Ge(q,LQe),Z=()=>S(l.addMonths(h,1),"left"),j=()=>S(l.addMonths(h,-1),"right"),se=bWe(h,{disableFuture:b,maxDate:y,timezone:R}),ve=yWe(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:M.jsxs($Qe,P({},B,{ownerState:U,className:Je(N,V.root),ref:n,children:[M.jsxs(FQe,{role:"presentation",onClick:G,ownerState:U,"aria-live":"polite",className:V.labelContainer,children:[M.jsx(Yne,{reduceAnimations:w,transKey:l.format(h,"monthAndYear"),children:M.jsx(BQe,{id:$,ownerState:U,className:V.label,children:l.format(h,"monthAndYear")})}),E.length>1&&!m&&M.jsx(z,P({},W,{children:M.jsx(X,P({},Y))}))]}),M.jsx(Eg,{in:C==="day",children:M.jsx(Nne,{slots:c,slotProps:d,onGoToPrevious:j,isPreviousDisabled:ve,previousLabel:s.previousMonth,onGoToNext:Z,isNextDisabled:se,nextLabel:s.nextMonth})})]}))}),$x=Se("div")({overflow:"hidden",width:Nx,maxHeight:Px,display:"flex",flexDirection:"column",margin:"0 auto"}),VQe=e=>At("MuiDateCalendar",e);_t("MuiDateCalendar",["root","viewTransitionContainer"]);const HQe=["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"],WQe=e=>{const{classes:t}=e;return kt({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},VQe,t)};function QQe(e,t){var n,r,i,o,a,s,l;const u=Rn(),c=jp(),d=Lne(),p=gt({props:e,name:t});return P({},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:()=>M.jsx("span",{children:"..."}),minDate:$o(u,p.minDate,c.minDate),maxDate:$o(u,p.maxDate,c.maxDate)})}const YQe=Se($x,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:Px}),GQe=Se(Yne,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),Gne=I.forwardRef(function(t,n){var r,i,o;const a=Rn(),s=$l(),l=QQe(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,HQe),{value:ye,handleValueChange:ze,timezone:$e}=Gg({name:"DateCalendar",timezone:Me,value:d,defaultValue:p,onChange:y,valueManager:Bi}),{view:We,setView:dt,focusedView:Be,setFocusedView:re,goToNextView:ee,setValueAndGoToNextView:J}=NO({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}=qWe({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:zQe,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)?qb({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)?qb({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&&QI(a,_e,ye??Re),"finish",We));I.useEffect(()=>{ye!=null&&a.isValid(ye)&&ie(ye)},[ye]);const Nt=l,on=WQe(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 M.jsxs(YQe,P({ref:n,className:Je(on.root,B),ownerState:Nt},Ye,{children:[M.jsx(et,P({},vt)),M.jsx(GQe,{reduceAnimations:k,className:on.viewTransitionContainer,transKey:We,ownerState:Nt,children:M.jsxs("div",{children:[We==="year"&&M.jsx(IQe,P({},dn,pn,{value:ye,onChange:it,shouldDisableYear:E,hasFocus:xt,onFocusedViewChange:_e=>re("year",_e),yearsPerRow:Ve,referenceDate:Re})),We==="month"&&M.jsx(OQe,P({},dn,pn,{hasFocus:xt,className:B,value:ye,onChange:qe,shouldDisableMonth:w,onFocusedViewChange:_e=>re("month",_e),monthsPerRow:Ke,referenceDate:Re})),We==="day"&&M.jsx(YWe,P({},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})=>M.jsx(Gne,{view:e,onViewChange:t,views:n.filter(gm),focusedView:r&&gm(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}),qne=I.forwardRef(function(t,n){var r,i,o,a;const s=Ui(),l=Rn(),u=Ine(t,"MuiDesktopDatePicker"),c=P({day:Zs,month:Zs,year:Zs},u.viewRenderers),d=P({},u,{viewRenderers:c,format:u1(l,u,!1),yearsPerRow:(r=u.yearsPerRow)!=null?r:4,slots:P({openPickerIcon:Dne,field:Qne},u.slots),slotProps:P({},u.slotProps,{field:h=>{var m;return P({},nf((m=u.slotProps)==null?void 0:m.field,h),qg(u),{ref:n})},toolbar:P({hidden:!0},(i=u.slotProps)==null?void 0:i.toolbar)})}),{renderPicker:p}=q$({props:d,valueManager:Bi,valueType:"date",getOpenDialogAriaText:(o=(a=d.localeText)==null?void 0:a.openDatePickerDialogue)!=null?o:s.openDatePickerDialogue,validator:zp});return p()});qne.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:yg,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 qQe=["props","getOpenDialogAriaText"],X$=e=>{var t,n,r;let{props:i,getOpenDialogAriaText:o}=e,a=Ge(e,qQe);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}=$ne(P({},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:P({},U,E&&{id:w},!(v||y)&&{onClick:N.onOpen,onKeyDown:_He(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=P({},z.inputProps,{"aria-label":o(U.value,k)});const W=P({textField:s.textField},z.slots),X=(r=s.layout)!=null?r:Une,q=yn(C,z.inputRef,O);let Y=w;E&&(b?Y=`${w}-label`:Y=void 0);const Z=P({},l,{toolbar:P({},l==null?void 0:l.toolbar,{titleId:w}),mobilePaper:P({"aria-labelledby":Y},l==null?void 0:l.mobilePaper)});return{renderPicker:()=>M.jsxs(Ane,{localeText:S,children:[M.jsx(V,P({},z,{slots:W,slotProps:Z,inputRef:q})),M.jsx(CHe,P({},N,{open:$,slots:s,slotProps:Z,children:M.jsx(X,P({},R,Z==null?void 0:Z.layout,{slots:s,slotProps:Z,children:B()}))}))]})}},K$=I.forwardRef(function(t,n){var r,i,o;const a=Ui(),s=Rn(),l=Ine(t,"MuiMobileDatePicker"),u=P({day:Zs,month:Zs,year:Zs},l.viewRenderers),c=P({},l,{viewRenderers:u,format:u1(s,l,!1),slots:P({field:Qne},l.slots),slotProps:P({},l.slotProps,{field:p=>{var h;return P({},nf((h=l.slotProps)==null?void 0:h.field,p),qg(l),{ref:n})},toolbar:P({hidden:!1},(r=l.slotProps)==null?void 0:r.toolbar)})}),{renderPicker:d}=X$({props:c,valueManager:Bi,valueType:"date",getOpenDialogAriaText:(i=(o=c.localeText)==null?void 0:o.openDatePickerDialogue)!=null?i:a.openDatePickerDialogue,validator:zp});return d()});K$.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:yg,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 ZQe=["desktopModeMediaQuery"],XQe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:i=H$}=r,o=Ge(r,ZQe);return wg(i,{defaultMatches:!0})?M.jsx(qne,P({ref:n},o)):M.jsx(K$,P({ref:n},o))}),KQe=e=>{var t,n,r,i,o,a,s,l;const u=Rn(),c=jp(),p=((t=e.ampm)!=null?t:u.is12HourCycleInCurrentLocale())?u.formats.keyboardDateTime12h:u.formats.keyboardDateTime24h;return P({},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:$o(u,(o=e.minDateTime)!=null?o:e.minDate,c.minDate),maxDate:$o(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})},JQe=({props:e,inputRef:t})=>{const n=KQe(e),{forwardedProps:r,internalProps:i}=G$(n,"date-time");return Y$({inputRef:t,forwardedProps:r,internalProps:i,valueManager:Bi,fieldValueManager:z$,validator:Mx,valueType:"date-time"})},eYe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],tYe=["inputRef"],nYe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],Zne=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,eYe),m=a,b=(r=(i=u==null?void 0:u.textField)!=null?i:s==null?void 0:s.TextField)!=null?r:Dp,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,tYe);v.inputProps=P({},p,v.inputProps),v.InputProps=P({},d,v.InputProps);const S=JQe({props:v,inputRef:y}),{ref:k,onPaste:C,onKeyDown:w,inputMode:E,readOnly:$,clearable:N,onClear:R}=S,B=Ge(S,nYe),{InputProps:U,fieldProps:V}=Z$({onClear:R,clearable:N,fieldProps:B,InputProps:B.InputProps,slots:u,slotProps:c,components:s,componentsProps:l});return M.jsx(b,P({ref:n},V,{InputProps:P({},U,{readOnly:$}),inputProps:P({},B.inputProps,{inputMode:E,onPaste:C,onKeyDown:w,ref:k})}))});function rYe(e){return At("MuiDateTimePickerTabs",e)}_t("MuiDateTimePickerTabs",["root"]);const iYe=e=>gm(e)?"date":"time",oYe=e=>e==="date"?"day":"hours",aYe=e=>{const{classes:t}=e;return kt({root:["root"]},rYe,t)},sYe=Se(bEe,{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}`,[`& .${BE.indicator}`]:{bottom:"auto",top:0}}})),lYe=function(t){const n=gt({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=M.jsx(hHe,{}),onViewChange:i,timeIcon:o=M.jsx(mHe,{}),view:a,hidden:s=typeof window>"u"||window.innerHeight<667}=n,l=Ui(),u=aYe(n),c=(d,p)=>{i(oYe(p))};return s?null:M.jsxs(sYe,{ownerState:n,variant:"fullWidth",value:iYe(a),onChange:c,className:u.root,children:[M.jsx(M8,{value:"date","aria-label":l.dateTableLabel,icon:M.jsx(I.Fragment,{children:r})}),M.jsx(M8,{value:"time","aria-label":l.timeTableLabel,icon:M.jsx(I.Fragment,{children:o})})]})};function uYe(e){return At("MuiDateTimePickerToolbar",e)}const E2=_t("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),cYe=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],dYe=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,uYe,t)},Xne=Se(V$,{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"}));Xne.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 fYe=Se("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),Kne=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 P({display:"flex",flexDirection:n},t.toolbarVariant==="desktop"&&P({},!t.isLandscape&&{gap:9,marginRight:4,alignSelf:"flex-end"}),e.direction==="rtl"&&{flexDirection:`${n}-reverse`})}),pYe=Se("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})(({theme:e,ownerState:t})=>P({display:"flex"},t.toolbarVariant==="desktop"&&{gap:1.5},e.direction==="rtl"&&{flexDirection:"row-reverse"}));Kne.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 gV=Se(W$,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})(({ownerState:e})=>({margin:e.toolbarVariant==="desktop"?0:"0 4px 0 2px",cursor:"default"})),hYe=Se("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${E2.ampmLabel}`]:t.ampmLabel},{[`&.${E2.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>P({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${E2.ampmLabel}`]:{fontSize:17}}));function mYe(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,cYe),O=t,y=Rn(),{meridiemMode:v,handleMeridiemChange:S}=Lx(i,n,o),k=!!(n&&!r),C=m==="desktop",w=Ui(),E=ui(),$=dYe(P({},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 M.jsxs(Xne,P({toolbarTitle:w.dateTimePickerToolbarTitle,isLandscape:s,className:$.root},b,{ownerState:O,children:[M.jsxs(fYe,{className:$.dateContainer,ownerState:O,children:[d.includes("year")&&M.jsx(Ka,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:a==="year",value:i?y.format(i,"year"):"–"}),d.includes("day")&&M.jsx(Ka,{tabIndex:-1,variant:C?"h5":"h4",onClick:()=>l("day"),selected:a==="day",value:R})]}),M.jsxs(Kne,{className:$.timeContainer,ownerState:O,children:[M.jsxs(pYe,{className:$.timeDigitsContainer,ownerState:O,children:[d.includes("hours")&&M.jsx(Ka,{variant:C?"h5":"h3",width:C&&!s?ub:void 0,onClick:()=>l("hours"),selected:a==="hours",value:i?N(i):"--"}),d.includes("minutes")&&M.jsxs(I.Fragment,{children:[M.jsx(gV,{variant:C?"h5":"h3",value:":",className:$.separator,ownerState:O}),M.jsx(Ka,{variant:C?"h5":"h3",width:C&&!s?ub:void 0,onClick:()=>l("minutes"),selected:a==="minutes",value:i?y.format(i,"minutes"):"--"})]}),d.includes("seconds")&&M.jsxs(I.Fragment,{children:[M.jsx(gV,{variant:C?"h5":"h3",value:":",className:$.separator,ownerState:O}),M.jsx(Ka,{variant:C?"h5":"h3",width:C&&!s?ub:void 0,onClick:()=>l("seconds"),selected:a==="seconds",value:i?y.format(i,"seconds"):"--"})]})]}),k&&!C&&M.jsxs(hYe,{className:$.ampmSelection,ownerState:O,children:[M.jsx(Ka,{variant:"subtitle2",selected:v==="am",typographyClassName:$.ampmLabel,value:kl(y,"am"),onClick:h?void 0:()=>S("am"),disabled:p}),M.jsx(Ka,{variant:"subtitle2",selected:v==="pm",typographyClassName:$.ampmLabel,value:kl(y,"pm"),onClick:h?void 0:()=>S("pm"),disabled:p})]}),n&&C&&M.jsx(Ka,{variant:"h5",onClick:()=>l("meridiem"),selected:a==="meridiem",value:i&&v?kl(y,v):"--",width:ub})]})]}))}function Jne(e,t){var n,r,i,o,a,s,l,u,c,d,p;const h=Rn(),m=jp(),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:P({},b.localeText,{dateTimePickerToolbarTitle:b.localeText.toolbarTitle})},[b.localeText]),v=(r=b.slots)!=null?r:DO(b.components),S=(i=b.slotProps)!=null?i:b.componentsProps;return P({},b,F$({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:$o(h,(u=b.minDateTime)!=null?u:b.minDate,m.minDate),maxDate:$o(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:P({toolbar:mYe,tabs:lYe},v),slotProps:P({},S,{toolbar:P({ampm:O},S==null?void 0:S.toolbar)})})}function gYe(e){return At("MuiMultiSectionDigitalClock",e)}_t("MuiMultiSectionDigitalClock",["root"]);function bYe(e){return At("MuiMultiSectionDigitalClockSection",e)}const yYe=_t("MuiMultiSectionDigitalClockSection",["root","item"]),OYe=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],vYe=e=>{const{classes:t}=e;return kt({root:["root"],item:["item"]},bYe,t)},EYe=Se(Q1,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({maxHeight:Pne,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)"}})),SYe=Se(bp,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:ub,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)}})),TYe=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,OYe),S=I.useMemo(()=>P({},s,{alreadyRendered:!!i.current}),[s]),k=vYe(S),C=(r=b==null?void 0:b.digitalClockSectionItem)!=null?r:SYe;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}),M.jsx(EYe,P({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 M.jsx(C,P({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)})}))}),wYe=({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},bV=({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())}})]},J$=({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:()=>U$(n,i,"date")}),[]);return e??o},kYe=["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"],xYe=e=>{const{classes:t}=e;return kt({root:["root"]},gYe,t)},CYe=Se($x,{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}`})),AYe=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,kYe),{value:j,handleValueChange:se,timezone:ve}=Gg({name:"MultiSectionDigitalClock",timezone:Y,value:p,defaultValue:h,onChange:E,valueManager:Bi}),G=Ui(),ce=cf(ve),ge=I.useMemo(()=>P({hours:1,minutes:5,seconds:5},a),[a]),ue=J$({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}=NO({view:$,views:Ne,openTo:R,onViewChange:B,onChange:xe,focusedView:U,onFocusedViewChange:V}),Ye=jt(ee=>{Ke(ee,"finish","meridiem")}),{meridiemMode:ye,handleMeridiemChange:ze}=Lx(ue,o,Ye,"finish"),$e=I.useCallback((ee,J)=>{const Re=IO(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=c1(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=c1(J,ye,o);Ke(r.setHours(ue,Re),"finish","hours")},items:wYe({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:bV({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:bV({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)=>P({},ee,{[J]:We(J)}),{}),[Ne,We]),Be=i,re=xYe(Be);return M.jsx(CYe,P({ref:n,className:Je(re.root,z),ownerState:Be,role:"group"},Z,{children:Object.entries(dt).map(([ee,J])=>M.jsx(TYe,{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))}))}),_Ye=Se("div")({display:"flex",margin:"0 auto"});function RYe(e){return At("MuiTimeClock",e)}_t("MuiTimeClock",["root","arrowSwitcher"]);const fg=220,_u=36,f1={x:fg/2,y:fg/2},ere={x:f1.x,y:0},IYe=ere.x-f1.x,DYe=ere.y-f1.y,NYe=e=>e*(180/Math.PI),tre=(e,t,n)=>{const r=t-f1.x,i=n-f1.y,o=Math.atan2(IYe,DYe)-Math.atan2(r,i);let a=NYe(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}},PYe=(e,t,n=1)=>{const r=n*6;let{value:i}=tre(r,e,t);return i=i*n%60,i},LYe=(e,t,n)=>{const{value:r,distance:i}=tre(30,e,t);let o=r||12;return n?o%=12:i{const{classes:t}=e;return kt({root:["root"],thumb:["thumb"]},MYe,t)},BYe=Se("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>P({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"])})),UYe=Se("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>P({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 jYe(e){const t=gt({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:i,viewValue:o}=t,a=Ge(t,$Ye),s=I.useRef(i);I.useEffect(()=>{s.current=i},[i]);const l=P({},t,{shouldAnimate:s.current!==i}),u=FYe(l),c=()=>{let p=360/(i==="hours"?12:60)*o;return i==="hours"&&o>12&&(p-=360),{height:Math.round((r?.26:.4)*fg),transform:`rotateZ(${p}deg)`}};return M.jsx(BYe,P({style:c(),className:Je(n,u.root),ownerState:l},a,{children:M.jsx(UYe,{ownerState:l,className:u.thumb})}))}function zYe(e){return At("MuiClock",e)}_t("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const VYe=e=>{const{classes:t}=e;return kt({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},zYe,t)},HYe=Se("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),WYe=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"}),QYe=Se("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),YYe=Se("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>P({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"}})),GYe=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%)"})),qYe=Se(Na,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>P({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}})),ZYe=Se(Na,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>P({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}})),yV=Se(Lr,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function XYe(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=VYe(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"?PYe(se,ve,c):LYe(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 M.jsxs(HYe,{className:Je(y,w.root),children:[M.jsxs(WYe,{className:w.clock,children:[M.jsx(YYe,{onTouchMove:B,onTouchEnd:U,onMouseUp:z,onMouseMove:V,ownerState:{disabled:b},className:w.squareMask}),!E&&M.jsxs(I.Fragment,{children:[M.jsx(GYe,{className:w.pin}),a!=null&&M.jsx(jYe,{type:h,viewValue:m,isInner:$,hasSelected:W})]}),M.jsx(QYe,{"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&&M.jsxs(I.Fragment,{children:[M.jsx(qYe,{onClick:O?void 0:()=>s("am"),disabled:b||u===null,ownerState:v,className:w.amButton,title:kl(S,"am"),children:M.jsx(yV,{variant:"caption",className:w.meridiemText,children:kl(S,"am")})}),M.jsx(ZYe,{disabled:b||u===null,onClick:O?void 0:()=>s("pm"),ownerState:v,className:w.pmButton,title:kl(S,"pm"),children:M.jsx(yV,{variant:"caption",className:w.meridiemText,children:kl(S,"pm")})})]})]})}function KYe(e){return At("MuiClockNumber",e)}const bE=_t("MuiClockNumber",["root","selected","disabled"]),JYe=["className","disabled","index","inner","label","selected"],eGe=e=>{const{classes:t,selected:n,disabled:r}=e;return kt({root:["root",n&&"selected",r&&"disabled"]},KYe,t)},tGe=Se("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${bE.disabled}`]:t.disabled},{[`&.${bE.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>P({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},[`&.${bE.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${bE.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&P({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function nre(e){const t=gt({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:i,inner:o,label:a,selected:s}=t,l=Ge(t,JYe),u=t,c=eGe(u),d=i%12/12*Math.PI*2-Math.PI/2,p=(fg-_u-2)/2*(o?.65:1),h=Math.round(Math.cos(d)*p),m=Math.round(Math.sin(d)*p);return M.jsx(tGe,P({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+(fg-_u)/2}px`},ownerState:u},l,{children:a}))}const nGe=({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(M.jsx(nre,{id:m?i:void 0,index:d,inner:h,selected:m,disabled:r(d),label:p,"aria-label":n(p)},d))}return s},OV=({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 M.jsx(nre,{label:s,id:u?i:void 0,index:l+1,inner:!1,disabled:n(a),selected:u,"aria-label":r(s)},a)})},rGe=["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"],iGe=e=>{const{classes:t}=e;return kt({root:["root"],arrowSwitcher:["arrowSwitcher"]},RYe,t)},oGe=Se($x,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),aGe=Se(Nne,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),sGe=["hours","minutes"],lGe=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=sGe,openTo:B,onViewChange:U,focusedView:V,onFocusedViewChange:z,className:W,disabled:X,readOnly:q,timezone:Y}=i,Z=Ge(i,rGe),j=c??DO(l),se=d??u,{value:ve,handleValueChange:G,timezone:ce}=Gg({name:"TimeClock",timezone:Y,value:p,defaultValue:h,onChange:$,valueManager:Bi}),ge=J$({value:ve,referenceDate:m,utils:r,props:i,timezone:ce}),ue=Ui(),xe=cf(ce),{view:Ne,setView:Ve,previousView:Ke,nextView:Me,setValueAndGoToNextView:Ye}=NO({view:N,views:R,openTo:B,onViewChange:U,onChange:G,focusedView:V,onFocusedViewChange:z}),{meridiemMode:ye,handleMeridiemChange:ze}=Lx(ge,o,Ye),$e=I.useCallback((ee,J)=>{const Re=IO(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=c1(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=c1(J,ye,o);Ye(r.setHours(ge,Le),Re)};return{onChange:ee,viewValue:r.getHours(ge),children:nGe({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:OV({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:OV({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=iGe(Be);return M.jsxs(oGe,P({ref:n,className:Je(re.root,W),ownerState:Be},Z,{children:[M.jsx(XYe,P({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&&M.jsx(aGe,{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 uGe(e){return At("MuiDigitalClock",e)}const cGe=_t("MuiDigitalClock",["root","list","item"]),dGe=["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"],fGe=e=>{const{classes:t}=e;return kt({root:["root"],list:["list"],item:["item"]},uGe,t)},pGe=Se($x,{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:Pne})),hGe=Se(Q1,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),mGe=Se(bp,{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)}})),gGe=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,dGe),{value:ge,handleValueChange:ue,timezone:xe}=Gg({name:"DigitalClock",timezone:G,value:y,defaultValue:v,onChange:U,valueManager:Bi}),Ne=Ui(),Ve=cf(xe),Ke=I.useMemo(()=>P({},u,{alreadyRendered:!!s.current}),[u]),Me=fGe(Ke),Ye=(r=(i=b==null?void 0:b.digitalClockItem)!=null?i:h==null?void 0:h.DigitalClockItem)!=null?r:mGe,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=J$({value:ge,referenceDate:S,utils:a,props:u,timezone:xe}),$e=jt(ee=>ue(ee,"finish","hours")),{setValueAndGoToNextView:We}=NO({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=IO(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 M.jsx(pGe,P({ref:l,className:Je(Me.root,Y),ownerState:Ke},ce,{children:M.jsx(hGe,{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 M.jsx(Ye,P({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))})})}))}),ym=({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})=>M.jsx(lGe,{view:e,onViewChange:t,focusedView:n&&dg(n)?n:null,onFocusedViewChange:r,views:i.filter(dg),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}),rre=({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})=>M.jsx(gGe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(dg),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}),ZI=({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})=>M.jsx(AYe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(dg),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}),Sf=({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=nf((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 M.jsxs(I.Fragment,{children:[M.jsxs(_Ye,{children:[M.jsx(Gne,{view:gm(e)?e:"day",onViewChange:t,views:n.filter(gm),focusedView:r&&gm(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&&M.jsxs(I.Fragment,{children:[M.jsx(lc,{orientation:"vertical"}),ze?rre(P({},Be,{view:"hours",views:["hours"],focusedView:r&&qc(r)?"hours":null,sx:P({width:"auto",[`&.${cGe.root}`]:{maxHeight:Px}},Array.isArray(ge)?ge:[ge])})):ZI(P({},Be,{view:qc(e)?e:"hours",views:n.filter(qc),focusedView:r&&qc(r)?r:null,sx:P({borderBottom:0,width:"auto",[`.${yYe.root}`]:{maxHeight:"100%"}},Array.isArray(ge)?ge:[ge])}))]})]}),dt&&M.jsx(lc,{})]})},bGe=["views","format"],ire=(e,t)=>{let{views:n,format:r}=t,i=Ge(t,bGe);if(r)return r;const o=[],a=[];if(n.forEach(u=>{dg(u)?a.push(u):o.push(u)}),a.length===0)return u1(e,P({views:o},i),!1);if(o.length===0)return lw(e,P({views:a},i));const s=lw(e,P({views:a},i));return`${u1(e,P({views:o},i),!1)} ${s}`},yGe=(e,t,n)=>n?t.filter(r=>!qc(r)||r==="hours"):e?[...t,"meridiem"]:t,OGe=(e,t)=>{var n,r;return 24*60/(((n=e.hours)!=null?n:1)*((r=e.minutes)!=null?r:5))<=t};function ore({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const i=e??24,o=P({hours:1,minutes:5,seconds:5},n),a=OGe(o,i);return{thresholdToRenderTimeInASingleColumn:i,timeSteps:o,shouldRenderTimeInASingleColumn:a,views:yGe(t,r,a)}}const are=I.forwardRef(function(t,n){var r,i,o,a,s,l,u;const c=Ui(),d=Rn(),p=Jne(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:h,thresholdToRenderTimeInASingleColumn:m,views:b,timeSteps:O}=ore(p),y=!p.viewRenderers||Object.keys(p.viewRenderers).length===0,v=y?{day:Sf,month:Sf,year:Sf,hours:Sf,minutes:Sf,seconds:Sf,meridiem:Sf}:P({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=P({},p,{viewRenderers:v,format:ire(d,p),views:b,yearsPerRow:(i=p.yearsPerRow)!=null?i:4,ampmInClock:S,timeSteps:O,thresholdToRenderTimeInASingleColumn:m,shouldRenderTimeInASingleColumn:h,slots:P({field:Zne,openPickerIcon:Dne},p.slots),slotProps:P({},p.slotProps,{field:E=>{var $;return P({},nf(($=p.slotProps)==null?void 0:$.field,E),qg(p),{ref:n})},toolbar:P({hidden:!0,ampmInClock:S,toolbarVariant:y?"desktop":"mobile"},(o=p.slotProps)==null?void 0:o.toolbar),tabs:P({hidden:!0},(a=p.slotProps)==null?void 0:a.tabs),actionBar:P({actions:k},(s=p.slotProps)==null?void 0:s.actionBar)})}),{renderPicker:w}=q$({props:C,valueManager:Bi,valueType:"date-time",getOpenDialogAriaText:(l=(u=C.localeText)==null?void 0:u.openDatePickerDialogue)!=null?l:c.openDatePickerDialogue,validator:Mx});return w()});are.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:yg,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 sre=I.forwardRef(function(t,n){var r,i,o,a,s;const l=Ui(),u=Rn(),c=Jne(t,"MuiMobileDateTimePicker"),d=P({day:Zs,month:Zs,year:Zs,hours:ym,minutes:ym,seconds:ym},c.viewRenderers),p=(r=c.ampmInClock)!=null?r:!1,h=P({},c,{viewRenderers:d,format:ire(u,c),ampmInClock:p,slots:P({field:Zne},c.slots),slotProps:P({},c.slotProps,{field:b=>{var O;return P({},nf((O=c.slotProps)==null?void 0:O.field,b),qg(c),{ref:n})},toolbar:P({hidden:!1,ampmInClock:p},(i=c.slotProps)==null?void 0:i.toolbar),tabs:P({hidden:!1},(o=c.slotProps)==null?void 0:o.tabs)})}),{renderPicker:m}=X$({props:h,valueManager:Bi,valueType:"date-time",getOpenDialogAriaText:(a=(s=h.localeText)==null?void 0:s.openDatePickerDialogue)!=null?a:l.openDatePickerDialogue,validator:Mx});return m()});sre.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:yg,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 vGe=["desktopModeMediaQuery"],EGe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:i=H$}=r,o=Ge(r,vGe);return wg(i,{defaultMatches:!0})?M.jsx(are,P({ref:n},o)):M.jsx(sre,P({ref:n},o))}),SGe=e=>{var t,n,r,i;const o=Rn(),s=((t=e.ampm)!=null?t:o.is12HourCycleInCurrentLocale())?o.formats.fullTime12h:o.formats.fullTime24h;return P({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(i=e.format)!=null?i:s})},TGe=({props:e,inputRef:t})=>{const n=SGe(e),{forwardedProps:r,internalProps:i}=G$(n,"time");return Y$({inputRef:t,forwardedProps:r,internalProps:i,valueManager:Bi,fieldValueManager:z$,validator:PO,valueType:"time"})},wGe=["slots","slotProps","components","componentsProps","InputProps","inputProps"],kGe=["inputRef"],xGe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],lre=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,wGe),m=a,b=(r=(i=s==null?void 0:s.textField)!=null?i:u==null?void 0:u.TextField)!=null?r:Dp,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,kGe);v.inputProps=P({},p,v.inputProps),v.InputProps=P({},d,v.InputProps);const S=TGe({props:v,inputRef:y}),{ref:k,onPaste:C,onKeyDown:w,inputMode:E,readOnly:$,clearable:N,onClear:R}=S,B=Ge(S,xGe),{InputProps:U,fieldProps:V}=Z$({onClear:R,clearable:N,fieldProps:B,InputProps:B.InputProps,slots:s,slotProps:l,components:u,componentsProps:c});return M.jsx(b,P({ref:n},V,{InputProps:P({},U,{readOnly:$}),inputProps:P({},B.inputProps,{inputMode:E,onPaste:C,onKeyDown:w,ref:k})}))});function CGe(e){return At("MuiTimePickerToolbar",e)}const Zb=_t("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),AGe=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly"],_Ge=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,CGe,r)},RGe=Se(V$,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),IGe=Se(W$,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),ure=Se("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${Zb.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${Zb.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>P({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"}));ure.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 cre=Se("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${Zb.ampmLabel}`]:t.ampmLabel},{[`&.${Zb.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>P({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${Zb.ampmLabel}`]:{fontSize:17}}));cre.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 DGe(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,AGe),h=Rn(),m=Ui(),b=ui(),O=!!(n&&!r&&u.includes("hours")),{meridiemMode:y,handleMeridiemChange:v}=Lx(i,n,a),S=E=>n?h.format(E,"hours12h"):h.format(E,"hours24h"),k=t,C=_Ge(P({},k,{theme:b})),w=M.jsx(IGe,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:C.separator});return M.jsxs(RGe,P({landscapeDirection:"row",toolbarTitle:m.timePickerToolbarTitle,isLandscape:o,ownerState:k,className:C.root},p,{children:[M.jsxs(ure,{className:C.hourMinuteLabel,ownerState:k,children:[Ah(u,"hours")&&M.jsx(Ka,{tabIndex:-1,variant:"h3",onClick:()=>l("hours"),selected:s==="hours",value:i?S(i):"--"}),Ah(u,["hours","minutes"])&&w,Ah(u,"minutes")&&M.jsx(Ka,{tabIndex:-1,variant:"h3",onClick:()=>l("minutes"),selected:s==="minutes",value:i?h.format(i,"minutes"):"--"}),Ah(u,["minutes","seconds"])&&w,Ah(u,"seconds")&&M.jsx(Ka,{variant:"h3",onClick:()=>l("seconds"),selected:s==="seconds",value:i?h.format(i,"seconds"):"--"})]}),O&&M.jsxs(cre,{className:C.ampmSelection,ownerState:k,children:[M.jsx(Ka,{disableRipple:!0,variant:"subtitle2",selected:y==="am",typographyClassName:C.ampmLabel,value:kl(h,"am"),onClick:d?void 0:()=>v("am"),disabled:c}),M.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 dre(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:P({},l.localeText,{timePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),d=(r=l.slots)!=null?r:DO(l.components),p=(i=l.slotProps)!=null?i:l.componentsProps;return P({},l,{ampm:u,localeText:c},F$({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:P({toolbar:DGe},d),slotProps:P({},p,{toolbar:P({ampm:u,ampmInClock:l.ampmInClock},p==null?void 0:p.toolbar)})})}const fre=I.forwardRef(function(t,n){var r,i,o,a,s,l;const u=Ui(),c=Rn(),d=dre(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:p,views:h,timeSteps:m}=ore(d),b=p?rre:ZI,O=P({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)===ZI.name?h:h.filter(E=>E!=="meridiem"),C=P({},d,{ampmInClock:y,timeSteps:m,viewRenderers:O,format:lw(c,d),views:p?["hours"]:k,slots:P({field:lre,openPickerIcon:pHe},d.slots),slotProps:P({},d.slotProps,{field:E=>{var $;return P({},nf(($=d.slotProps)==null?void 0:$.field,E),qg(d),{ref:n})},toolbar:P({hidden:!0,ampmInClock:y},(o=d.slotProps)==null?void 0:o.toolbar),actionBar:P({actions:v},(a=d.slotProps)==null?void 0:a.actionBar)})}),{renderPicker:w}=q$({props:C,valueManager:Bi,valueType:"time",getOpenDialogAriaText:(s=(l=C.localeText)==null?void 0:l.openTimePickerDialogue)!=null?s:u.openTimePickerDialogue,validator:PO});return w()});fre.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:yg,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 pre=I.forwardRef(function(t,n){var r,i,o,a;const s=Ui(),l=Rn(),u=dre(t,"MuiMobileTimePicker"),c=P({hours:ym,minutes:ym,seconds:ym},u.viewRenderers),d=(r=u.ampmInClock)!=null?r:!1,p=P({},u,{ampmInClock:d,viewRenderers:c,format:lw(l,u),slots:P({field:lre},u.slots),slotProps:P({},u.slotProps,{field:m=>{var b;return P({},nf((b=u.slotProps)==null?void 0:b.field,m),qg(u),{ref:n})},toolbar:P({hidden:!1,ampmInClock:d},(i=u.slotProps)==null?void 0:i.toolbar)})}),{renderPicker:h}=X$({props:p,valueManager:Bi,valueType:"time",getOpenDialogAriaText:(o=(a=p.localeText)==null?void 0:a.openTimePickerDialogue)!=null?o:s.openTimePickerDialogue,validator:PO});return h()});pre.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:yg,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 NGe=["desktopModeMediaQuery"],PGe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:i=H$}=r,o=Ge(r,NGe);return wg(i,{defaultMatches:!0})?M.jsx(fre,P({ref:n},o)):M.jsx(pre,P({ref:n},o))});var eF={},LGe=Fo;Object.defineProperty(eF,"__esModule",{value:!0});var hre=eF.default=void 0,MGe=LGe(Bo()),$Ge=M;hre=eF.default=(0,MGe.default)((0,$Ge.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 tF={},FGe=Fo;Object.defineProperty(tF,"__esModule",{value:!0});var mre=tF.default=void 0,BGe=FGe(Bo()),UGe=M;mre=tF.default=(0,BGe.default)((0,UGe.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 XI(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 qGe(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 ZGe(e,t){return jGe(e)||WGe(e,t)||gre(e,t)||QGe()}function Xd(e){return zGe(e)||HGe(e)||gre(e)||YGe()}function XGe(e){"@swc/helpers - typeof";return e&&typeof Symbol<"u"&&e.constructor===Symbol?"symbol":typeof e}function gre(e,t){if(e){if(typeof e=="string")return XI(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 XI(e,t)}}var KGe=I.createContext({onError:function(e){return e==null?void 0:e.message}}),Es=function(){var e;return(e=I.useContext(KGe))===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 M.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:$}))});bre.displayName="TextFieldElement";var yre=bre;function JGe(e){var t=e.handleSubmit,n=e.children,r=e.FormProps,i=e.formContext,o=e.onSuccess,a=e.onError,s=Eo(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"),M.jsx(sne,Cn(zt({},i),{children:M.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}))}))):M.jsx(eqe,zt({onSuccess:o,onError:a,FormProps:r,children:n},s))}function eqe(e){var t=e.onSuccess,n=e.onError,r=e.FormProps,i=e.children,o=Eo(e,["onSuccess","onError","FormProps","children"]),a=DVe(zt({},o)),s=a.handleSubmit;return M.jsx(sne,Cn(zt({},a),{children:M.jsx("form",Cn(zt({onSubmit:s(t||function(){return console.log("submit handler `onSuccess` is missing")},n),noValidate:!0},r),{children:i}))}))}var Ore={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"},tqe=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=Eo(e,["parseError","name","required","validation","inputProps","control","textReadOnly","slotProps","overwriteErrorMessages","inputRef","transform"]),b=Vl(),O=Es(),y=n||O,v=zt({},Ore,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=zp({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 M.jsx(XQe,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":XGe(V))<"u"&&(S.InputLabelProps=S.InputLabelProps||{},S.InputLabelProps.shrink=!0),M.jsxs(Dp,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&&M.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:va(X,"disabled")?!!X.disabled:!1,children:X[l]};return w?M.jsx("option",zt({},Y)):M.jsx(bp,zt({},Y))})]}))});lqe.displayName="SelectElement";var uqe=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=Eo(e,["helperText","options","label","name","parseError","required","labelKey","valueKey","returnObject","disabled","row","control","checkboxColor","rules","labelProps","transform","defaultValue"]),E=ui(),$=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=va(j,d)?j[d]:j,ve=X.findIndex(function(ce){var ge=va(ce,d)?ce[d]:ce;return se===ge}),G=(ve===-1?Xd(X).concat([j]):X.filter(function(ce,ge){return ve!==ge})).map(function(ce){return p||!va(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 M.jsxs(Ip,{error:z,required:s,ref:t,children:[i?M.jsx(Ck,{children:i}):null,M.jsx(BN,{row:m,children:r.map(function(j){var se=va(j,d)?j[d]:j,ve=va(j,u)?j[u]:j,G=X.some(function(ce){return(va(ce,d)?ce[d]:ce)===se});return I.createElement(wy,Cn(zt({},v),{control:M.jsx(kk,{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&&M.jsx(Tg,{children:Z})]})});uqe.displayName="CheckboxButtonGroup";var cqe=48,dqe=8,fqe=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?cqe*4.5+dqe: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=Eo(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 M.jsxs(Ip,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&&M.jsx(kY,{size:j.size==="small"?"small":void 0,error:!!Ne,htmlFor:j.id||"select-multi-select-".concat(C),required:y,children:u}),M.jsx($Y,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},va((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 M.jsx("div",{style:{display:"flex",flexWrap:"wrap"},children:(z?s.filter(function(We){return $e.includes(We)}):$e||[]).map(function(We){return M.jsx(LN,{label:G(We),style:{display:"flex",flexWrap:"wrap"},onDelete:function(){Me((Array.isArray(Ke)?Ke:[]).filter(function(dt){return dt!==We}))},deleteIcon:M.jsx(hre,{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 M.jsxs(bp,{value:We,sx:{fontWeight:function(Be){return dt?Be.typography.fontWeightBold:Be.typography.fontWeightRegular}},children:[X&&M.jsx(kk,{checked:dt}),M.jsx(ap,{primary:$e[b]||$e})]},We)})})),ye&&M.jsx(Tg,{error:!!Ne,children:ye})]}))});fqe.displayName="MultiSelectElement";var vre=I.forwardRef(function(e,t){var n=e.iconColor,r=e.renderIcon,i=r===void 0?function(u){return u?M.jsx(pP,{}):M.jsx(mre,{})}:r,o=Eo(e,["iconColor","renderIcon"]),a=ZGe(I.useState(!0),2),s=a[0],l=a[1];return M.jsx(yre,Cn(zt({},o),{ref:t,InputProps:{endAdornment:M.jsx(UN,{position:"end",children:M.jsx(Na,{onMouseDown:function(u){return u.preventDefault()},onClick:function(){return l(!s)},tabIndex:-1,color:n??"default",children:i(s)})})},type:s?"password":"text"}))});vre.displayName="PasswordElement";var pqe=vre,hqe=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=Eo(e,["helperText","options","label","name","parseError","labelKey","valueKey","required","emptyOptionLabel","returnObject","row","control","type","labelProps","disabled","formLabelProps","transform"]),w=ui(),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 M.jsxs(Ip,{error:!!U,ref:t,children:[i&&M.jsx(Ck,Cn(zt({},S),{required:d,error:!!U,children:i})),M.jsxs($Oe,{onChange:q,name:o,row:m,value:z,children:[p&&M.jsx(wy,Cn(zt({},y),{control:M.jsx(D8,{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(wy,Cn(zt({},y),{control:M.jsx(D8,{sx:{color:U?w.palette.error.main:void 0},disabled:v,checked:se}),value:Z,label:Y[l],key:Z}))})]}),X&&M.jsx(Tg,{children:X})]})});hqe.displayName="RadioButtonGroup";var mqe=I.forwardRef(function(e,t){var n=e.name,r=e.control,i=e.switchProps,o=e.transform,a=Eo(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 M.jsx(wy,zt({ref:t,control:M.jsx(Nve,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))});mqe.displayName="SwitchElement";var gqe=I.forwardRef(function(e,t){var n=e.passwordFieldName,r=e.customInvalidFieldMessage,i=e.control,o=Eo(e,["passwordFieldName","customInvalidFieldMessage","control"]),a=fne({name:n,control:i});return M.jsx(pqe,Cn(zt({control:i},o),{ref:t,validation:{validate:function(s){return s===a||(r??"Password should match")}}}))});gqe.displayName="PasswordRepeatElement";var bqe=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):va(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=va(q,"id")?q.id:q,j=va(Y,"id")?Y.id:Y;return Z===j},R=function(q){return a.find(function(Y){return O&&va(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 va(j,"id")?j.id:j}):Z}return O&&va(Y,"id")?Y.id:Y}}}),U=B.value,V=B.onChange,z=yn(C.ref,n==null?void 0:n.inputRef),W=c||M.jsx(Sg,{color:"inherit",size:20}),X;return M.jsx(Xme,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 M.jsxs("li",Cn(zt({},q),{children:[M.jsx(kk,{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 M.jsx(Dp,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:M.jsxs(M.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}))}}))});bqe.displayName="AutocompleteElement";var yqe=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=Eo(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 M.jsxs(Ip,Cn(zt({error:S,required:l,fullWidth:!0},u),{ref:t,children:[i&&M.jsx(Ck,{component:"legend",error:S,children:i}),M.jsx(hve,Cn(zt({},d),{value:C,onChange:w,valueLabelDisplay:d.valueLabelDisplay||"auto"})),E&&M.jsx(Tg,{error:S,children:E})]}))});yqe.displayName="SliderElement";var Oqe=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=Eo(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 M.jsx(Dp,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:lY,inputProps:zt({minRows:l,style:{resize:u||"both"}},d||{})},ref:t}))});Oqe.displayName="TextareaAutosizeElement";var nF={},vqe=Fo;Object.defineProperty(nF,"__esModule",{value:!0});var rF=nF.default=void 0,Eqe=vqe(Bo()),Sqe=M;rF=nF.default=(0,Eqe.default)((0,Sqe.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 Ere(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 M.jsx(W1,{disableAutoFocus:!0,...r,children:M.jsxs(Da,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[M.jsx(Na,{sx:{position:"absolute",top:28,right:28},onClick:i,children:M.jsx(rF,{})}),M.jsxs(Li,{gap:4,children:[M.jsxs(Lr,{variant:"h5",children:["Create New ",t]}),M.jsx(Ip,{children:M.jsx(JGe,{defaultValues:{title:""},onSuccess:o,children:M.jsxs(Li,{gap:4,alignItems:"flex-end",children:[M.jsx(yre,{variant:"standard",name:"title",label:"Title of new note",required:!0,fullWidth:!0,inputProps:{maxLength:255}}),M.jsx(Ff,{type:"submit",variant:"contained",size:"large",children:"OK"})]})})})]})]})})}function Tqe(e){const{width:t,...n}=e,r=Cg(),i=K1(),{data:o,hasNextPage:a,fetchNextPage:s}=sVe(),{mutateAsync:l}=lVe(),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 M.jsxs(M.Fragment,{children:[M.jsx(zN,{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...n,children:M.jsxs(Q1,{sx:{width:t},children:[M.jsx(Aa,{style:{maxHeight:300,overflow:"auto"},children:M.jsx(l1,{pageStart:0,loadMore:()=>s(),hasMore:a,loader:M.jsx(Aa,{className:"loader",children:M.jsx(Sg,{size:"sm"})},0),useWindow:!1,children:u.map(O=>M.jsxs(bp,{onClick:()=>h(O.slug),children:[M.jsx(ap,{primaryTypographyProps:{noWrap:!0,variant:"body2"},children:O.title}),i.workspaceSlug===O.slug&&M.jsx(iT,{children:M.jsx(nne,{fontSize:"small"})})]},O.id))})}),M.jsx(lc,{}),M.jsxs(bp,{onClick:m,children:[M.jsx(jN,{children:M.jsx(Uk,{fontSize:"small"})}),M.jsx(ap,{children:"Create Workspace"})]})]})}),M.jsx(Ere,{open:c,title:"Workspace",onClose:m,onSuccess:b})]})}const Sre=e=>["workspaces",e,"documents"],wqe=e=>T$({queryKey:Sre(e||""),queryFn:async({pageParam:n})=>(await cr.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}),kqe=e=>{const t=E$();return Gte({mutationFn:async n=>(await cr.post(`/workspaces/${e}/documents`,n)).data,onSuccess:()=>{t.invalidateQueries({queryKey:Sre(e)})}})};var iF={},xqe=Fo;Object.defineProperty(iF,"__esModule",{value:!0});var Tre=iF.default=void 0,Cqe=xqe(Bo()),Aqe=M;Tre=iF.default=(0,Cqe.default)((0,Aqe.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"],Rqe=e=>T$({queryKey:_qe(e||""),queryFn:async({pageParam:t})=>(await cr.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 Iqe(e){const{open:t,onClose:n}=e,r=K1(),{data:i}=A$(r.workspaceSlug),{data:o,fetchNextPage:a,hasNextPage:s}=Rqe(i==null?void 0:i.id),l=I.useMemo(()=>(o==null?void 0:o.pages.reduce((u,c)=>u.concat(c.workspaceUsers),[]))??[],[o==null?void 0:o.pages]);return M.jsx(W1,{open:t,disableAutoFocus:!0,onClose:n,children:M.jsxs(Da,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[M.jsx(Na,{sx:{position:"absolute",top:28,right:28},onClick:n,children:M.jsx(rF,{})}),M.jsxs(Li,{gap:4,children:[M.jsx(Lr,{variant:"h5",children:"Members"}),M.jsx(Aa,{style:{height:300,maxHeight:"100%",overflow:"auto"},width:1,children:M.jsx(l1,{pageStart:0,loadMore:()=>a(),hasMore:s,loader:M.jsx(Aa,{className:"loader",children:M.jsx(Sg,{size:"sm"})},0),useWindow:!1,children:M.jsx(Li,{gap:2,children:l.map(u=>{var c;return M.jsx(Li,{direction:"row",alignItems:"center",children:M.jsxs(Li,{direction:"row",alignItems:"center",gap:1,children:[M.jsx(fY,{children:(c=u.nickname)==null?void 0:c[0]}),M.jsx(Lr,{children:u.nickname})]})},u.id)})})})})]})]})})}const S2=240;function Dqe(){var S,k;const e=K1(),t=_c(Xte),{data:n}=A$(e.workspaceSlug),{mutateAsync:r}=kqe((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 M.jsxs(xbe,{sx:{width:S2,flexShrink:0,"& .MuiDrawer-paper":{width:S2,boxSizing:"border-box"}},variant:"permanent",anchor:"left",open:!0,children:[M.jsxs(Eh,{disablePadding:!0,children:[M.jsxs(UC,{onClick:m,children:[M.jsx(ap,{primary:n==null?void 0:n.title,primaryTypographyProps:{variant:"subtitle1",noWrap:!0}}),M.jsx(iT,{children:M.jsx(Na,{children:a?M.jsx(tne,{}):M.jsx(ene,{})})})]}),M.jsx(Tqe,{open:!!a,anchorEl:a,onClose:b,width:S2-32})]}),M.jsx(lc,{}),M.jsx(Eh,{children:M.jsx(Ff,{variant:"contained",startIcon:M.jsx(Uk,{}),sx:{width:1},onClick:y,children:"New Note"})}),M.jsx(lc,{}),M.jsx(Eh,{disablePadding:!0,children:M.jsxs(UC,{onClick:v,children:[M.jsx(jN,{children:M.jsx(Tre,{})}),M.jsx(ap,{primary:"Members"})]})}),M.jsx(lc,{}),M.jsx(Eh,{sx:{mt:"auto"},children:M.jsx(Li,{width:1,alignItems:"center",justifyContent:"flex-end",direction:"row",children:M.jsx(ZG,{})})}),M.jsx(lc,{}),M.jsxs(Eh,{disablePadding:!0,children:[M.jsxs(UC,{onClick:p,children:[M.jsx(O1e,{children:M.jsx(fY,{children:(S=t.data)==null?void 0:S.nickname.charAt(0)})}),M.jsx(ap,{primary:(k=t.data)==null?void 0:k.nickname}),M.jsx(iT,{children:M.jsx(Kte,{})})]}),M.jsx(iVe,{open:!!i,anchorEl:i,onClose:h})]}),M.jsx(Ere,{open:l,title:"Note",onSuccess:O,onClose:y}),M.jsx(Iqe,{open:c,onClose:v})]})}//! moment.js +`));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 wre;function Ht(){return wre.apply(null,arguments)}function Nqe(e){wre=e}function Ll(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function sp(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function ir(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function oF(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(ir(e,t))return!1;return!0}function ga(e){return e===void 0}function xc(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function LO(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function kre(e,t){var n=[],r,i=e.length;for(r=0;r>>0,r;for(r=0;r0)for(n=0;n>>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 uF=/(\[[^\[]*\])|(\\)?([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,yE=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,w2={},Om={};function fn(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(Om[e]=i),t&&(Om[t[0]]=function(){return Iu(i.apply(this,arguments),t[1],t[2])}),n&&(Om[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Fqe(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Bqe(e){var t=e.match(uF),n,r;for(n=0,r=t.length;n=0&&yE.test(e);)e=e.replace(yE,r),yE.lastIndex=0,n-=1;return e}var Uqe={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 jqe(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(uF).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var zqe="Invalid date";function Vqe(){return this._invalidDate}var Hqe="%d",Wqe=/\d{1,2}/;function Qqe(e){return this._ordinal.replace("%d",e)}var Yqe={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 Gqe(e,t,n,r){var i=this._relativeTime[n];return Vu(i)?i(e,t,n,r):i.replace(/%d/i,e)}function qqe(e,t){var n=this._relativeTime[e>0?"future":"past"];return Vu(n)?n(t):n.replace(/%s/i,t)}var SV={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"?SV[e]||SV[e.toLowerCase()]:void 0}function cF(e){var t={},n,r;for(r in e)ir(e,r)&&(n=ll(r),n&&(t[n]=e[r]));return t}var Zqe={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 Xqe(e){var t=[],n;for(n in e)ir(e,n)&&t.push({unit:n,priority:Zqe[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var _re=/\d/,Ss=/\d\d/,Rre=/\d{3}/,dF=/\d{4}/,Bx=/[+-]?\d{6}/,Fr=/\d\d?/,Ire=/\d\d\d\d?/,Dre=/\d\d\d\d\d\d?/,Ux=/\d{1,3}/,fF=/\d{1,4}/,jx=/[+-]?\d{1,6}/,Zg=/\d+/,zx=/[+-]?\d+/,Kqe=/Z|[+-]\d\d:?\d\d/gi,Vx=/Z|[+-]\d\d(?::?\d\d)?/gi,Jqe=/[+-]?\d+(\.\d{1,3})?/,$O=/[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,Xg=/^[1-9]\d?/,pF=/^([1-9]\d|\d)/,cw;cw={};function Yt(e,t,n){cw[e]=Vu(t)?t:function(r,i){return r&&n?n:t}}function eZe(e,t){return ir(cw,e)?cw[e](t._strict,t._locale):new RegExp(tZe(e))}function tZe(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 tD={};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 Nre=Kg("FullYear",!0);function oZe(){return Hx(this.year())}function Kg(e,t){return function(n){return n!=null?(Pre(this,e,n),Ht.updateOffset(this,t),this):p1(this,e)}}function p1(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 Pre(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&&!Hx(o)?28:s,i?r.setUTCFullYear(o,a,s):r.setFullYear(o,a,s)}}function aZe(e){return e=ll(e),Vu(this[e])?this[e]():this}function sZe(e,t){if(typeof e=="object"){e=cF(e);var n=Xqe(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 h1(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 dw(e,t,n){var r=7+t-n,i=(7+h1(e,0,r).getUTCDay()-t)%7;return-i+r-1}function Ure(e,t,n,r,i){var o=(7+n-r)%7,a=dw(e,r,i),s=1+7*(t-1)+o+a,l,u;return s<=0?(l=e-1,u=Xb(l)+s):s>Xb(e)?(l=e+1,u=s-Xb(e)):(l=e,u=s),{year:l,dayOfYear:u}}function m1(e,t,n){var r=dw(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=dw(e,t,n),i=dw(e+1,t,n);return(Xb(e)-r+i)/7}fn("w",["ww",2],"wo","week");fn("W",["WW",2],"Wo","isoWeek");Yt("w",Fr,Xg);Yt("ww",Fr,Ss);Yt("W",Fr,Xg);Yt("WW",Fr,Ss);FO(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Vn(e)});function vZe(e){return m1(e,this._week.dow,this._week.doy).week}var EZe={dow:0,doy:6};function SZe(){return this._week.dow}function TZe(){return this._week.doy}function wZe(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function kZe(e){var t=m1(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)});FO(["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});FO(["d","e","E"],function(e,t,n,r){t[r]=Vn(e)});function xZe(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function CZe(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function mF(e,t){return e.slice(t,7).concat(e.slice(0,t))}var AZe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),jre="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),_Ze="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),RZe=$O,IZe=$O,DZe=$O;function NZe(e,t){var n=Ll(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?mF(n,this._week.dow):e?n[e.day()]:n}function PZe(e){return e===!0?mF(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function LZe(e){return e===!0?mF(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function MZe(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=hi.call(this._weekdaysParse,a),i!==-1?i:null):t==="ddd"?(i=hi.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=hi.call(this._minWeekdaysParse,a),i!==-1?i:null):t==="dddd"?(i=hi.call(this._weekdaysParse,a),i!==-1||(i=hi.call(this._shortWeekdaysParse,a),i!==-1)?i:(i=hi.call(this._minWeekdaysParse,a),i!==-1?i:null)):t==="ddd"?(i=hi.call(this._shortWeekdaysParse,a),i!==-1||(i=hi.call(this._weekdaysParse,a),i!==-1)?i:(i=hi.call(this._minWeekdaysParse,a),i!==-1?i:null)):(i=hi.call(this._minWeekdaysParse,a),i!==-1||(i=hi.call(this._weekdaysParse,a),i!==-1)?i:(i=hi.call(this._shortWeekdaysParse,a),i!==-1?i:null))}function $Ze(e,t,n){var r,i,o;if(this._weekdaysParseExact)return MZe.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 FZe(e){if(!this.isValid())return e!=null?this:NaN;var t=p1(this,"Day");return e!=null?(e=xZe(e,this.localeData()),this.add(e-t,"d")):t}function BZe(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 UZe(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=CZe(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function jZe(e){return this._weekdaysParseExact?(ir(this,"_weekdaysRegex")||gF.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(ir(this,"_weekdaysRegex")||(this._weekdaysRegex=RZe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function zZe(e){return this._weekdaysParseExact?(ir(this,"_weekdaysRegex")||gF.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(ir(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=IZe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function VZe(e){return this._weekdaysParseExact?(ir(this,"_weekdaysRegex")||gF.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(ir(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=DZe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function gF(){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 bF(){return this.hours()%12||12}function HZe(){return this.hours()||24}fn("H",["HH",2],0,"hour");fn("h",["hh",2],0,bF);fn("k",["kk",2],0,HZe);fn("hmm",0,0,function(){return""+bF.apply(this)+Iu(this.minutes(),2)});fn("hmmss",0,0,function(){return""+bF.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 zre(e,t){fn(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}zre("a",!0);zre("A",!1);function Vre(e,t){return t._meridiemParse}Yt("a",Vre);Yt("A",Vre);Yt("H",Fr,pF);Yt("h",Fr,Xg);Yt("k",Fr,Xg);Yt("HH",Fr,Ss);Yt("hh",Fr,Ss);Yt("kk",Fr,Ss);Yt("hmm",Ire);Yt("hmmss",Dre);Yt("Hmm",Ire);Yt("Hmmss",Dre);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 WZe(e){return(e+"").toLowerCase().charAt(0)==="p"}var QZe=/[ap]\.?m?\.?/i,YZe=Kg("Hours",!0);function GZe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Hre={calendar:Mqe,longDateFormat:Uqe,invalidDate:zqe,ordinal:Hqe,dayOfMonthOrdinalParse:Wqe,relativeTime:Yqe,months:uZe,monthsShort:Lre,week:EZe,weekdays:AZe,weekdaysMin:_Ze,weekdaysShort:jre,meridiemParse:QZe},Hr={},H0={},g1;function qZe(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(i=Wx(o.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&qZe(o,r)>=n-1)break;n--}t++}return g1}function XZe(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Wx(e){var t=null,n;if(Hr[e]===void 0&&typeof SS<"u"&&SS&&SS.exports&&XZe(e))try{t=g1._abbr,n=require,n("./locale/"+e),Md(t)}catch{Hr[e]=null}return Hr[e]}function Md(e,t){var n;return e&&(ga(t)?n=Nc(e):n=yF(e,t),n?g1=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),g1._abbr}function yF(e,t){if(t!==null){var n,r=Hre;if(t.abbr=e,Hr[e]!=null)Cre("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=Wx(t.parentLocale),n!=null)r=n._config;else return H0[t.parentLocale]||(H0[t.parentLocale]=[]),H0[t.parentLocale].push({name:e,config:t}),null;return Hr[e]=new lF(JI(r,t)),H0[e]&&H0[e].forEach(function(i){yF(i.name,i.config)}),Md(e),Hr[e]}else return delete Hr[e],null}function KZe(e,t){if(t!=null){var n,r,i=Hre;Hr[e]!=null&&Hr[e].parentLocale!=null?Hr[e].set(JI(Hr[e]._config,t)):(r=Wx(e),r!=null&&(i=r._config),t=JI(i,t),r==null&&(t.abbr=e),n=new lF(t),n.parentLocale=Hr[e],Hr[e]=n),Md(e)}else Hr[e]!=null&&(Hr[e].parentLocale!=null?(Hr[e]=Hr[e].parentLocale,e===Md()&&Md(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 g1;if(!Ll(e)){if(t=Wx(e),t)return t;e=[e]}return ZZe(e)}function JZe(){return eD(Hr)}function OF(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]>hF(n[Lo],n[uc])?mu:n[Mi]<0||n[Mi]>24||n[Mi]===24&&(n[xl]!==0||n[cc]!==0||n[Qf]!==0)?Mi:n[xl]<0||n[xl]>59?xl:n[cc]<0||n[cc]>59?cc:n[Qf]<0||n[Qf]>999?Qf:-1,_n(e)._overflowDayOfYear&&(tmu)&&(t=mu),_n(e)._overflowWeeks&&t===-1&&(t=rZe),_n(e)._overflowWeekday&&t===-1&&(t=iZe),_n(e).overflow=t),e}var eXe=/^\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)?)?$/,tXe=/^\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)?)?$/,nXe=/Z|[+-]\d\d(?::?\d\d)?/,OE=[["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]],k2=[["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/]],rXe=/^\/?Date\((-?\d+)/i,iXe=/^(?:(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}))$/,oXe={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 Wre(e){var t,n,r=e._i,i=eXe.exec(r)||tXe.exec(r),o,a,s,l,u=OE.length,c=k2.length;if(i){for(_n(e).iso=!0,t=0,n=u;tXb(a)||e._dayOfYear===0)&&(_n(e)._overflowDayOfYear=!0),n=h1(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[Qf]===0&&(e._nextDay=!0,e._a[Mi]=0),e._d=(e._useUTC?h1:OZe).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 pXe(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=_h(t.GG,e._a[Lo],m1($r(),1,4).year),r=_h(t.W,1),i=_h(t.E,1),(i<1||i>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,u=m1($r(),o,a),n=_h(t.gg,e._a[Lo],u.year),r=_h(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=Ure(n,r,i,o,a),e._a[Lo]=s.year,e._dayOfYear=s.dayOfYear)}Ht.ISO_8601=function(){};Ht.RFC_2822=function(){};function EF(e){if(e._f===Ht.ISO_8601){Wre(e);return}if(e._f===Ht.RFC_2822){Qre(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=Are(e._f,e._locale).match(uF)||[],c=i.length,n=0;n0&&_n(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),l+=r.length),Om[o]?(r?_n(e).empty=!1:_n(e).unusedTokens.push(o),nZe(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]=hXe(e._locale,e._a[Mi],e._meridiem),u=_n(e).era,u!==null&&(e._a[Lo]=e._locale.erasConvertYear(u,e._a[Lo])),vF(e),OF(e)}function hXe(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 mXe(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:Fx()});function qre(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 MXe(){if(!ga(this._isDSTShifted))return this._isDSTShifted;var e={},t;return sF(e,this),e=Yre(e),e._a?(t=e._isUTC?zu(e._a):$r(e._a),this._isDSTShifted=this.isValid()&&CXe(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function $Xe(){return this.isValid()?!this._isUTC:!1}function FXe(){return this.isValid()?this._isUTC:!1}function Xre(){return this.isValid()?this._isUTC&&this._offset===0:!1}var BXe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,UXe=/^(-|\+)?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 hS(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:xc(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=BXe.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(nD(r[Qf]*1e3))*i}):(r=UXe.exec(e))?(i=r[1]==="-"?-1:1,n={y:Tf(r[2],i),M:Tf(r[3],i),w:Tf(r[4],i),d:Tf(r[5],i),h:Tf(r[6],i),m:Tf(r[7],i),s:Tf(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=jXe($r(n.from),$r(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),o=new Qx(n),hS(e)&&ir(e,"_locale")&&(o._locale=e._locale),hS(e)&&ir(e,"_isValid")&&(o._isValid=e._isValid),o}Hl.fn=Qx.prototype;Hl.invalid=xXe;function Tf(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function wV(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 jXe(e,t){var n;return e.isValid()&&t.isValid()?(t=TF(t,e),e.isBefore(t)?n=wV(e,t):(n=wV(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Kre(e,t){return function(n,r){var i,o;return r!==null&&!isNaN(+r)&&(Cre(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),Jre(this,i,e),this}}function Jre(e,t,n,r){var i=t._milliseconds,o=nD(t._days),a=nD(t._months);e.isValid()&&(r=r??!0,a&&$re(e,p1(e,"Month")+a*n),o&&Pre(e,"Date",p1(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&Ht.updateOffset(e,o||a))}var zXe=Kre(1,"add"),VXe=Kre(-1,"subtract");function eie(e){return typeof e=="string"||e instanceof String}function HXe(e){return Ml(e)||LO(e)||eie(e)||xc(e)||QXe(e)||WXe(e)||e===null||e===void 0}function WXe(e){var t=sp(e)&&!oF(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?pS(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",pS(n,"Z")):pS(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function aKe(){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 sKe(e){e||(e=this.isUtc()?Ht.defaultFormatUtc:Ht.defaultFormat);var t=pS(this,e);return this.localeData().postformat(t)}function lKe(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 uKe(e){return this.from($r(),e)}function cKe(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 dKe(e){return this.to($r(),e)}function tie(e){var t;return e===void 0?this._locale._abbr:(t=Nc(e),t!=null&&(this._locale=t),this)}var nie=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 rie(){return this._locale}var fw=1e3,vm=60*fw,pw=60*vm,iie=(365*400+97)*24*pw;function Em(e,t){return(e%t+t)%t}function oie(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-iie:new Date(e,t,n).valueOf()}function aie(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-iie:Date.UTC(e,t,n)}function fKe(e){var t,n;if(e=ll(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?aie:oie,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-=Em(t+(this._isUTC?0:this.utcOffset()*vm),pw);break;case"minute":t=this._d.valueOf(),t-=Em(t,vm);break;case"second":t=this._d.valueOf(),t-=Em(t,fw);break}return this._d.setTime(t),Ht.updateOffset(this,!0),this}function pKe(e){var t,n;if(e=ll(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?aie:oie,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+=pw-Em(t+(this._isUTC?0:this.utcOffset()*vm),pw)-1;break;case"minute":t=this._d.valueOf(),t+=vm-Em(t,vm)-1;break;case"second":t=this._d.valueOf(),t+=fw-Em(t,fw)-1;break}return this._d.setTime(t),Ht.updateOffset(this,!0),this}function hKe(){return this._d.valueOf()-(this._offset||0)*6e4}function mKe(){return Math.floor(this.valueOf()/1e3)}function gKe(){return new Date(this.valueOf())}function bKe(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function yKe(){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 OKe(){return this.isValid()?this.toISOString():null}function vKe(){return aF(this)}function EKe(){return vd({},_n(this))}function SKe(){return _n(this).overflow}function TKe(){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",wF);Yt("NN",wF);Yt("NNN",wF);Yt("NNNN",PKe);Yt("NNNNN",LKe);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",Zg);Yt("yy",Zg);Yt("yyy",Zg);Yt("yyyy",Zg);Yt("yo",MKe);hr(["y","yy","yyy","yyyy"],Lo);hr(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Lo]=n._locale.eraYearOrdinalParse(e,i):t[Lo]=parseInt(e,10)});function wKe(e,t){var n,r,i,o=this._eras||Nc("en")._eras;for(n=0,r=o.length;n=0)return o[r]}function xKe(e,t){var n=e.since<=e.until?1:-1;return t===void 0?Ht(e.since).year():Ht(e.since).year()+(t-e.offset)*n}function CKe(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;eo&&(t=o),VKe.call(this,e,t,n,r,i))}function VKe(e,t,n,r,i){var o=Ure(e,t,n,r,i),a=h1(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",_re);hr("Q",function(e,t){t[uc]=(Vn(e)-1)*3});function HKe(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,Xg);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 lie=Kg("Date",!0);fn("DDD",["DDDD",3],"DDDo","dayOfYear");Yt("DDD",Ux);Yt("DDDD",Rre);hr(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Vn(e)});function WKe(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,pF);Yt("mm",Fr,Ss);hr(["m","mm"],xl);var QKe=Kg("Minutes",!1);fn("s",["ss",2],0,"second");Yt("s",Fr,pF);Yt("ss",Fr,Ss);hr(["s","ss"],cc);var YKe=Kg("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",Ux,_re);Yt("SS",Ux,Ss);Yt("SSS",Ux,Rre);var Ed,uie;for(Ed="SSSS";Ed.length<=9;Ed+="S")Yt(Ed,Zg);function GKe(e,t){t[Qf]=Vn(("0."+e)*1e3)}for(Ed="S";Ed.length<=9;Ed+="S")hr(Ed,GKe);uie=Kg("Milliseconds",!1);fn("z",0,0,"zoneAbbr");fn("zz",0,0,"zoneName");function qKe(){return this._isUTC?"UTC":""}function ZKe(){return this._isUTC?"Coordinated Universal Time":""}var Tt=MO.prototype;Tt.add=zXe;Tt.calendar=qXe;Tt.clone=ZXe;Tt.diff=rKe;Tt.endOf=pKe;Tt.format=sKe;Tt.from=lKe;Tt.fromNow=uKe;Tt.to=cKe;Tt.toNow=dKe;Tt.get=aZe;Tt.invalidAt=SKe;Tt.isAfter=XXe;Tt.isBefore=KXe;Tt.isBetween=JXe;Tt.isSame=eKe;Tt.isSameOrAfter=tKe;Tt.isSameOrBefore=nKe;Tt.isValid=vKe;Tt.lang=nie;Tt.locale=tie;Tt.localeData=rie;Tt.max=vXe;Tt.min=OXe;Tt.parsingFlags=EKe;Tt.set=sZe;Tt.startOf=fKe;Tt.subtract=VXe;Tt.toArray=bKe;Tt.toObject=yKe;Tt.toDate=gKe;Tt.toISOString=oKe;Tt.inspect=aKe;typeof Symbol<"u"&&Symbol.for!=null&&(Tt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});Tt.toJSON=OKe;Tt.toString=iKe;Tt.unix=mKe;Tt.valueOf=hKe;Tt.creationData=TKe;Tt.eraName=CKe;Tt.eraNarrow=AKe;Tt.eraAbbr=_Ke;Tt.eraYear=RKe;Tt.year=Nre;Tt.isLeapYear=oZe;Tt.weekYear=$Ke;Tt.isoWeekYear=FKe;Tt.quarter=Tt.quarters=HKe;Tt.month=Fre;Tt.daysInMonth=gZe;Tt.week=Tt.weeks=wZe;Tt.isoWeek=Tt.isoWeeks=kZe;Tt.weeksInYear=jKe;Tt.weeksInWeekYear=zKe;Tt.isoWeeksInYear=BKe;Tt.isoWeeksInISOWeekYear=UKe;Tt.date=lie;Tt.day=Tt.days=FZe;Tt.weekday=BZe;Tt.isoWeekday=UZe;Tt.dayOfYear=WKe;Tt.hour=Tt.hours=YZe;Tt.minute=Tt.minutes=QKe;Tt.second=Tt.seconds=YKe;Tt.millisecond=Tt.milliseconds=uie;Tt.utcOffset=_Xe;Tt.utc=IXe;Tt.local=DXe;Tt.parseZone=NXe;Tt.hasAlignedHourOffset=PXe;Tt.isDST=LXe;Tt.isLocal=$Xe;Tt.isUtcOffset=FXe;Tt.isUtc=Xre;Tt.isUTC=Xre;Tt.zoneAbbr=qKe;Tt.zoneName=ZKe;Tt.dates=sl("dates accessor is deprecated. Use date instead.",lie);Tt.months=sl("months accessor is deprecated. Use month instead",Fre);Tt.years=sl("years accessor is deprecated. Use year instead",Nre);Tt.zone=sl("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",RXe);Tt.isDSTShifted=sl("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",MXe);function XKe(e){return $r(e*1e3)}function KKe(){return $r.apply(null,arguments).parseZone()}function cie(e){return e}var or=lF.prototype;or.calendar=$qe;or.longDateFormat=jqe;or.invalidDate=Vqe;or.ordinal=Qqe;or.preparse=cie;or.postformat=cie;or.relativeTime=Gqe;or.pastFuture=qqe;or.set=Lqe;or.eras=wKe;or.erasParse=kKe;or.erasConvertYear=xKe;or.erasAbbrRegex=DKe;or.erasNameRegex=IKe;or.erasNarrowRegex=NKe;or.months=fZe;or.monthsShort=pZe;or.monthsParse=mZe;or.monthsRegex=yZe;or.monthsShortRegex=bZe;or.week=vZe;or.firstDayOfYear=TZe;or.firstDayOfWeek=SZe;or.weekdays=NZe;or.weekdaysMin=LZe;or.weekdaysShort=PZe;or.weekdaysParse=$Ze;or.weekdaysRegex=jZe;or.weekdaysShortRegex=zZe;or.weekdaysMinRegex=VZe;or.isPM=WZe;or.meridiem=GZe;function hw(e,t,n,r){var i=Nc(),o=zu().set(r,t);return i[n](o,e)}function die(e,t,n){if(xc(e)&&(t=e,e=void 0),e=e||"",t!=null)return hw(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=hw(e,r,n,"month");return i}function xF(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 hw(t,(n+o)%7,r,"day");for(a=0;a<7;a++)s[a]=hw(t,(a+o)%7,r,"day");return s}function JKe(e,t){return die(e,t,"months")}function eJe(e,t){return die(e,t,"monthsShort")}function tJe(e,t,n){return xF(e,t,n,"weekdays")}function nJe(e,t,n){return xF(e,t,n,"weekdaysShort")}function rJe(e,t,n){return xF(e,t,n,"weekdaysMin")}Md("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}});Ht.lang=sl("moment.lang is deprecated. Use moment.locale instead.",Md);Ht.langData=sl("moment.langData is deprecated. Use moment.localeData instead.",Nc);var Gu=Math.abs;function iJe(){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 fie(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 oJe(e,t){return fie(this,e,t,1)}function aJe(e,t){return fie(this,e,t,-1)}function kV(e){return e<0?Math.floor(e):Math.ceil(e)}function sJe(){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+=kV(iD(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(pie(t)),n+=l,t-=kV(iD(l)),s=Fs(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function pie(e){return e*4800/146097}function iD(e){return e*146097/4800}function lJe(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+pie(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(iD(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 hie=Pc("ms"),uJe=Pc("s"),cJe=Pc("m"),dJe=Pc("h"),fJe=Pc("d"),pJe=Pc("w"),hJe=Pc("M"),mJe=Pc("Q"),gJe=Pc("y"),bJe=hie;function yJe(){return Hl(this)}function OJe(e){return e=ll(e),this.isValid()?this[e+"s"]():NaN}function Vp(e){return function(){return this.isValid()?this._data[e]:NaN}}var vJe=Vp("milliseconds"),EJe=Vp("seconds"),SJe=Vp("minutes"),TJe=Vp("hours"),wJe=Vp("days"),kJe=Vp("months"),xJe=Vp("years");function CJe(){return Fs(this.days()/7)}var ec=Math.round,Kh={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function AJe(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function _Je(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,AJe.apply(null,p)}function RJe(e){return e===void 0?ec:typeof e=="function"?(ec=e,!0):!1}function IJe(e,t){return Kh[e]===void 0?!1:t===void 0?Kh[e]:(Kh[e]=t,e==="s"&&(Kh.ss=t-1),!0)}function DJe(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Kh,i,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},Kh,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),o=_Je(this,!n,r,i),n&&(o=i.pastFuture(+this,o)),i.postformat(o)}var x2=Math.abs;function gh(e){return(e>0)-(e<0)||+e}function Gx(){if(!this.isValid())return this.localeData().invalidDate();var e=x2(this._milliseconds)/1e3,t=x2(this._days),n=x2(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=gh(this._months)!==gh(s)?"-":"",c=gh(this._days)!==gh(s)?"-":"",d=gh(this._milliseconds)!==gh(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=kXe;Jn.abs=iJe;Jn.add=oJe;Jn.subtract=aJe;Jn.as=lJe;Jn.asMilliseconds=hie;Jn.asSeconds=uJe;Jn.asMinutes=cJe;Jn.asHours=dJe;Jn.asDays=fJe;Jn.asWeeks=pJe;Jn.asMonths=hJe;Jn.asQuarters=mJe;Jn.asYears=gJe;Jn.valueOf=bJe;Jn._bubble=sJe;Jn.clone=yJe;Jn.get=OJe;Jn.milliseconds=vJe;Jn.seconds=EJe;Jn.minutes=SJe;Jn.hours=TJe;Jn.days=wJe;Jn.weeks=CJe;Jn.months=kJe;Jn.years=xJe;Jn.humanize=DJe;Jn.toISOString=Gx;Jn.toString=Gx;Jn.toJSON=Gx;Jn.locale=tie;Jn.localeData=rie;Jn.toIsoString=sl("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Gx);Jn.lang=nie;fn("X",0,0,"unix");fn("x",0,0,"valueOf");Yt("x",zx);Yt("X",Jqe);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 -Ht.version="2.30.1";Nqe($r);Ht.fn=Tt;Ht.min=EXe;Ht.max=SXe;Ht.now=TXe;Ht.utc=zu;Ht.unix=XKe;Ht.months=JKe;Ht.isDate=LO;Ht.locale=Md;Ht.invalid=Fx;Ht.duration=Hl;Ht.isMoment=Ml;Ht.weekdays=tJe;Ht.parseZone=KKe;Ht.localeData=Nc;Ht.isDuration=hS;Ht.monthsShort=eJe;Ht.weekdaysMin=rJe;Ht.defineLocale=yF;Ht.updateLocale=KZe;Ht.locales=JZe;Ht.weekdaysShort=nJe;Ht.normalizeUnits=ll;Ht.relativeTimeRounding=RJe;Ht.relativeTimeThreshold=IJe;Ht.calendarFormat=GXe;Ht.prototype=Tt;Ht.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 CF={},NJe=Fo;Object.defineProperty(CF,"__esModule",{value:!0});var mie=CF.default=void 0,PJe=NJe(Bo()),xV=M;mie=CF.default=(0,PJe.default)([(0,xV.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,xV.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function LJe(e){const{document:t}=e,n=Cg(),r=()=>{n(`/document/${t.slug}`)};return M.jsx(Mge,{sx:{width:"100%"},children:M.jsx(Hge,{onClick:r,children:M.jsxs(Zge,{children:[M.jsx(Lr,{variant:"h5",component:"div",noWrap:!0,children:t.title}),M.jsxs(Li,{direction:"row",alignItems:"center",gap:1,children:[M.jsx(mie,{fontSize:"small",sx:{color:"text.secondary"}}),M.jsxs(Lr,{variant:"body2",color:"text.secondary",noWrap:!0,children:["Changed ",Ht(t.updatedAt).fromNow()]})]})]})})})}function MJe(){const e=K1(),{data:t}=A$(e.workspaceSlug),{data:n,fetchNextPage:r,hasNextPage:i}=wqe(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 M.jsxs(Li,{direction:"row",children:[M.jsx(Dqe,{}),M.jsx(Aa,{style:{maxHeight:"100vh",overflow:"auto"},width:1,children:M.jsx(l1,{pageStart:0,loadMore:()=>r(),hasMore:i,loader:M.jsx(Aa,{className:"loader",children:M.jsx(Sg,{size:"sm"})},0),useWindow:!1,children:M.jsx(Aa,{p:2,width:1,children:M.jsx(zh,{container:!0,spacing:{xs:2,md:3},columns:{xs:4,sm:8,md:12,lg:12},children:o.map(a=>M.jsx(zh,{item:!0,xs:4,sm:4,md:4,lg:3,children:M.jsx(LJe,{document:a})},a.id))})})})})]})}function $Je(){const e=oG();return M.jsx(Li,{width:1,height:"100vh",alignItems:"center",justifyContent:"center",children:M.jsxs(Li,{alignItems:"center",children:[M.jsx(Lr,{variant:"h5",children:"Something went wrong"}),qN(e)&&M.jsxs(Lr,{variant:"subtitle1",children:["Status Code: ",e.status]})]})})}const FJe=[{path:"",accessType:2,element:M.jsx($ze,{}),children:[{path:"",element:M.jsx(zze,{})}]},{path:"workspace",accessType:0,element:M.jsx(Yze,{}),children:[{path:":workspaceSlug",element:M.jsx(MJe,{})}]},{path:"document",accessType:0,element:M.jsx(dxe,{}),children:[{path:":documentSlug",element:M.jsx(Mze,{})}]},{path:"auth/callback",accessType:2,element:M.jsx(Qze,{})}],BJe=e=>e.map(t=>(t.accessType===0?t.element=M.jsx(Xze,{children:t.element}):t.accessType===2&&(t.element=M.jsx(Zze,{children:t.element})),t.errorElement=M.jsx($Je,{}),t)),UJe=BJe(FJe),jJe=e=>["users",e],zJe=()=>{const e=kg(),t=_c(Hze);t.accessToken&&(cr.defaults.headers.common.Authorization=`Bearer ${t.accessToken}`);const n=S$({queryKey:jJe(t.accessToken||""),enabled:!!t.accessToken,queryFn:async()=>(await cr.get("/users")).data});return I.useEffect(()=>{n.isSuccess?e(WI(n.data)):n.isError&&(e(w$(null)),e(WI(null)),cr.defaults.headers.common.Authorization="")},[e,n.data,n.isError,n.isSuccess]),n};function VJe(e){const{children:t}=e,{isSuccess:n,isLoading:r}=zJe();return M.jsx(k$.Provider,{value:{isLoggedIn:n,isLoading:r},children:t})}function gie(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 AV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var bie=Qt.createContext(),QJe={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}},Yf={maxSnack:3,dense:!1,hideIconVariant:!1,variant:"default",autoHideDuration:5e3,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:mY,transitionDuration:{enter:225,exit:195}},Kb=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},YJe=function(t){return""+Kb(t.vertical)+Kb(t.horizontal)},GJe=function(t){return Object.keys(t).filter(function(n){return!QJe.container[n]}).reduce(function(n,r){var i;return Ir({},n,(i={},i[r]=t[r],i))},{})},id={TIMEOUT:"timeout",CLICKAWAY:"clickaway",MAXSNACK:"maxsnack",INSTRUCTED:"instructed"},gS={toContainerAnchorOrigin:function(t){return"containerAnchorOrigin"+t},toAnchorOrigin:function(t){var n=t.vertical,r=t.horizontal;return"anchorOrigin"+Kb(n)+Kb(r)},toVariant:function(t){return"variant"+Kb(t)}},vE=function(t){return!!t||t===0},_V=function(t){return typeof t=="number"||t===null},qJe=function(t,n,r){return function(i){return i==="autoHideDuration"?_V(t.autoHideDuration)?t.autoHideDuration:_V(n.autoHideDuration)?n.autoHideDuration:Yf.autoHideDuration:t[i]||n[i]||r[i]}};function C2(e,t,n){return e===void 0&&(e={}),t===void 0&&(t={}),n===void 0&&(n={}),Ir({},n,{},t,{},e)}var ZJe="SnackbarContent",yie={root:ZJe+"-root"},XJe=Se("div")(function(e){var t,n,r=e.theme;return n={},n["&."+yie.root]=(t={display:"flex",flexWrap:"wrap",flexGrow:1},t[r.breakpoints.up("sm")]={flexGrow:"initial",minWidth:288},t),n}),KJe=I.forwardRef(function(e,t){var n=e.className,r=$d(e,["className"]);return Qt.createElement(XJe,Object.assign({ref:t,className:b1(yie.root,n)},r))}),RV={right:"left",left:"right",bottom:"up",top:"down"},JJe=function(t){return t.horizontal!=="center"?RV[t.horizontal]:RV[t.vertical]},eet=function(t){return Qt.createElement(jd,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`}))},tet=function(t){return Qt.createElement(jd,Object.assign({},t),Qt.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},net=function(t){return Qt.createElement(jd,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, +`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var kV={};function Dre(e,t){Vt.deprecationHandler!=null&&Vt.deprecationHandler(e,t),kV[e]||(Ire(t),kV[e]=!0)}Vt.suppressDeprecationWarnings=!1;Vt.deprecationHandler=null;function Vu(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function jqe(e){var t,n;for(n in e)or(e,n)&&(t=e[n],Vu(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function rD(e,t){var n=Ed({},e),r;for(r in t)or(t,r)&&(lp(e[r])&&lp(t[r])?(n[r]={},Ed(n[r],e[r]),Ed(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)or(e,r)&&!or(t,r)&&lp(e[r])&&(n[r]=Ed({},n[r]));return n}function dF(e){e!=null&&this.set(e)}var iD;Object.keys?iD=Object.keys:iD=function(e){var t,n=[];for(t in e)or(e,t)&&n.push(t);return n};var zqe={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Vqe(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return Vu(r)?r.call(t,n):r}function Iu(e,t,n){var r=""+Math.abs(e),i=t-r.length,o=e>=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`}))},ret=function(t){return Qt.createElement(jd,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`}))},EE={fontSize:20,marginInlineEnd:8},iet={default:void 0,success:Qt.createElement(eet,{style:EE}),warning:Qt.createElement(tet,{style:EE}),error:Qt.createElement(net,{style:EE}),info:Qt.createElement(ret,{style:EE})};function Jb(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"},_2=16,wf="SnackbarContainer",ml={root:wf+"-root",rootDense:wf+"-rootDense",top:wf+"-top",bottom:wf+"-bottom",left:wf+"-left",right:wf+"-right",center:wf+"-center"},cet=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[A2.container]={pointerEvents:"all"},t[A2.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% - "+_2*2+"px)"},t),a["&."+ml.rootDense]=(n={},n[A2.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:_2+"px"},r),a["&."+ml.right]=(i={right:qu.view.default},i[s.breakpoints.up("sm")]={alignItems:"flex-end"},i[s.breakpoints.down("sm")]={right:_2+"px"},i),a["&."+ml.center]=(o={left:"50%",transform:"translateX(-50%)"},o[s.breakpoints.up("sm")]={alignItems:"center"},o),a}),det=function(t){var n=t.className,r=t.anchorOrigin,i=t.dense,o=$d(t,["className","anchorOrigin","dense"]),a=b1(ml[r.vertical],ml[r.horizontal],ml.root,n,i&&ml.rootDense);return Qt.createElement(cet,Object.assign({className:a},o))},fet=Qt.memo(det),pet=function(e){WJe(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=$d(s,["key","preventDuplicate"]),d=vE(l),p=d?l:new Date().getTime()+Math.random(),h=qJe(c,i.props,Yf),m=Ir({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(Ir({},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?Ir({},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),Ir({},c,{open:!1})):Ir({},c,{requestClose:!0})):Ir({},c)});return Ir({},o,{snacks:u})},i.handleEnteredSnack=function(o,a,s){if(!vE(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?Ir({},c,{entered:!0}):Ir({},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?Ir({},p):p.entered?Ir({},p,{open:!1}):Ir({},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});vE(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(!vE(l))throw new Error("handleExitedSnack Cannot be called with undefined key");i.setState(function(u){var c=i.processQueue(Ir({},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(AV(i)),closeSnackbar:i.closeSnackbar.bind(AV(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?Yf.dense:l,c=a.hideIconVariant,d=c===void 0?Yf.hideIconVariant:c,p=a.domRoot,h=a.children,m=a.classes,b=m===void 0?{}:m,O=$d(a,["maxSnack","preventDuplicate","variant","anchorOrigin","iconVariant","dense","hideIconVariant","domRoot","children","classes"]),y=this.state.snacks.reduce(function(S,k){var C,w=YJe(k.anchorOrigin),E=S[w]||[];return Ir({},S,(C={},C[w]=[].concat(E,[k]),C))},{}),v=Object.keys(y).map(function(S){var k=y[S];return Qt.createElement(fet,{key:S,dense:u,anchorOrigin:k[0].anchorOrigin,className:b1(b.containerRoot,b[gS.toContainerAnchorOrigin(S)])},k.map(function(C){return Qt.createElement(uet,Object.assign({},O,{key:C.key,snack:C,dense:u,iconVariant:s,hideIconVariant:d,classes:GJe(b),onClose:i.handleCloseSnack,onExited:Jb([i.handleExitedSnack,i.props.onExited]),onEntered:Jb([i.handleEnteredSnack,i.props.onEntered])}))}))});return Qt.createElement(bie.Provider,{value:o},h,p?gg.createPortal(v,p):v)},HJe(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||Yf.maxSnack}}]),t}(I.Component),het=function(){return I.useContext(bie)};function met(){const{enqueueSnackbar:e}=het();return I.useCallback(n=>{e(n.message||"Something went wrong...",{variant:"error"})},[e])}var get={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=bTe(UJe);cr.defaults.baseURL=get.VITE_API_ADDR;function yet(){const e=_c(SG),t=wg("(prefers-color-scheme: dark)"),n=I.useMemo(()=>{const o=t?"dark":"light";return vN({typography:{button:{textTransform:"none"}},palette:{mode:e.theme=="default"?o:e.theme}})},[e.theme,t]),r=met(),i=I.useMemo(()=>new bze({queryCache:new Bte({onError:r}),defaultOptions:{mutations:{onError:r}}}),[r]);return M.jsx(Sze,{client:i,children:M.jsx(VJe,{children:M.jsxs(Hde,{theme:n,children:[M.jsx(_0e,{}),M.jsx(Aa,{minHeight:"100vh",children:M.jsx(xTe,{router:bet})})]})})})}var AF={},_F={};_F.__esModule=!0;_F.default=Eet;function bS(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?bS=function(n){return typeof n}:bS=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},bS(e)}function R2(){}var Oet={getItem:R2,setItem:R2,removeItem:R2};function vet(e){if((typeof self>"u"?"undefined":bS(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 Eet(e){var t="".concat(e,"Storage");return vet(t)?self[t]:Oet}AF.__esModule=!0;AF.default=ket;var Tet=wet(_F);function wet(e){return e&&e.__esModule?e:{default:e}}function ket(e){var t=(0,Tet.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 Oie=void 0,xet=Cet(AF);function Cet(e){return e&&e.__esModule?e:{default:e}}var Aet=(0,xet.default)("local");Oie=Aet;var RF="persist:",vie="persist/FLUSH",IF="persist/REHYDRATE",Eie="persist/PAUSE",Sie="persist/PERSIST",Tie="persist/PURGE",wie="persist/REGISTER",_et=-1;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 DV(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 Ret(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jet(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 zet=5e3;function Vet(e,t){var n=e.version!==void 0?e.version:_et;e.debug;var r=e.stateReconciler===void 0?Det:e.stateReconciler,i=e.getStoredState||Let,o=e.timeout!==void 0?e.timeout:zet,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=Uet(p,["_persist"]),b=m;if(d.type===Sie){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=Net(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===Tie)return s=!0,d.result($et(e)),Xu({},t(b,d),{_persist:h});if(d.type===vie)return d.result(a&&a.flush()),Xu({},t(b,d),{_persist:h});if(d.type===Eie)l=!0;else if(d.type===IF){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 PV(e){return Qet(e)||Wet(e)||Het()}function Het(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Wet(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Qet(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:kie,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case wie:return oD({},t,{registry:[].concat(PV(t.registry),[n.key])});case IF:var r=t.registry.indexOf(n.key),i=PV(t.registry);return i.splice(r,1),oD({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function qet(e,t,n){var r=n||!1,i=JN(Get,kie,t&&t.enhancer?t.enhancer:void 0),o=function(u){i.dispatch({type:wie,key:u})},a=function(u,c,d){var p={type:IF,payload:c,err:d,key:u};e.dispatch(p),i.dispatch(p),r&&s.getState().bootstrapped&&(r(),r=!1)},s=oD({},i,{purge:function(){var u=[];return e.dispatch({type:Tie,result:function(d){u.push(d)}}),Promise.all(u)},flush:function(){var u=[];return e.dispatch({type:vie,result:function(d){u.push(d)}}),Promise.all(u)},pause:function(){e.dispatch({type:Eie})},persist:function(){e.dispatch({type:Sie,register:o,rehydrate:a})}});return t&&t.manualPersist||s.persist(),s}const Zet=sG({auth:Wze,config:wwe,user:qze,editor:nxe}),Xet={key:"root",storage:Oie,whitelist:["auth","config"]},Ket=Vet(Xet,Zet),xie=cwe({reducer:Ket,middleware:e=>e({serializableCheck:{ignoredActions:["persist/PERSIST","editor/setDoc","editor/setClient"],ignoredPaths:["editor.doc","editor.client"]},immutableCheck:{ignoredPaths:["editor.doc","editor.client"]}})});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 Jet(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MV(e,t){for(var n=0;n .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;n - +